mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-18 09:27:14 +08:00
348 lines
1.7 MiB
348 lines
1.7 MiB
import{a as Mg}from"./chunk-GJ6CDUB5.js";import{a as F,b as Ee,c as xs,d as TS,e as Ui,f as To,g as bc,i as Ia,j as ct}from"./chunk-MGYUK2XN.js";var IT=To((mle,LT)=>{"use strict";var Hh=Object.prototype.hasOwnProperty,RT=Object.prototype.toString,PT=Object.defineProperty,QT=Object.getOwnPropertyDescriptor,_T=function(e){return typeof Array.isArray=="function"?Array.isArray(e):RT.call(e)==="[object Array]"},AT=function(e){if(!e||RT.call(e)!=="[object Object]")return!1;var i=Hh.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Hh.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!n)return!1;var r;for(r in e);return typeof r=="undefined"||Hh.call(e,r)},$T=function(e,i){PT&&i.name==="__proto__"?PT(e,i.name,{enumerable:!0,configurable:!0,value:i.newValue,writable:!0}):e[i.name]=i.newValue},XT=function(e,i){if(i==="__proto__")if(Hh.call(e,i)){if(QT)return QT(e,i).value}else return;return e[i]};LT.exports=function t(){var e,i,n,r,o,s,a=arguments[0],l=1,c=arguments.length,u=!1;for(typeof a=="boolean"&&(u=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<c;++l)if(e=arguments[l],e!=null)for(i in e)n=XT(a,i),r=XT(e,i),a!==r&&(u&&r&&(AT(r)||(o=_T(r)))?(o?(o=!1,s=n&&_T(n)?n:[]):s=n&&AT(n)?n:{},$T(a,{name:i,newValue:t(u,s,r)})):typeof r!="undefined"&&$T(a,{name:i,newValue:r}));return a}});var LR=To(()=>{});var lm=To((am,IR)=>{(function(t,e){typeof am=="object"?IR.exports=am=e():typeof define=="function"&&define.amd?define([],e):t.CryptoJS=e()})(am,function(){var t=t||function(e,i){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof xs=="function")try{n=LR()}catch(w){}var r=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(w){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(w){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function w(){}return function(T){var Q;return w.prototype=T,Q=new w,w.prototype=null,Q}}(),s={},a=s.lib={},l=a.Base=function(){return{extend:function(w){var T=o(this);return w&&T.mixIn(w),(!T.hasOwnProperty("init")||this.init===T.init)&&(T.init=function(){T.$super.init.apply(this,arguments)}),T.init.prototype=T,T.$super=this,T},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var T in w)w.hasOwnProperty(T)&&(this[T]=w[T]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=a.WordArray=l.extend({init:function(w,T){w=this.words=w||[],T!=i?this.sigBytes=T:this.sigBytes=w.length*4},toString:function(w){return(w||f).stringify(this)},concat:function(w){var T=this.words,Q=w.words,I=this.sigBytes,z=w.sigBytes;if(this.clamp(),I%4)for(var $=0;$<z;$++){var X=Q[$>>>2]>>>24-$%4*8&255;T[I+$>>>2]|=X<<24-(I+$)%4*8}else for(var Y=0;Y<z;Y+=4)T[I+Y>>>2]=Q[Y>>>2];return this.sigBytes+=z,this},clamp:function(){var w=this.words,T=this.sigBytes;w[T>>>2]&=4294967295<<32-T%4*8,w.length=e.ceil(T/4)},clone:function(){var w=l.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var T=[],Q=0;Q<w;Q+=4)T.push(r());return new c.init(T,w)}}),u=s.enc={},f=u.Hex={stringify:function(w){for(var T=w.words,Q=w.sigBytes,I=[],z=0;z<Q;z++){var $=T[z>>>2]>>>24-z%4*8&255;I.push(($>>>4).toString(16)),I.push(($&15).toString(16))}return I.join("")},parse:function(w){for(var T=w.length,Q=[],I=0;I<T;I+=2)Q[I>>>3]|=parseInt(w.substr(I,2),16)<<24-I%8*4;return new c.init(Q,T/2)}},d=u.Latin1={stringify:function(w){for(var T=w.words,Q=w.sigBytes,I=[],z=0;z<Q;z++){var $=T[z>>>2]>>>24-z%4*8&255;I.push(String.fromCharCode($))}return I.join("")},parse:function(w){for(var T=w.length,Q=[],I=0;I<T;I++)Q[I>>>2]|=(w.charCodeAt(I)&255)<<24-I%4*8;return new c.init(Q,T)}},O=u.Utf8={stringify:function(w){try{return decodeURIComponent(escape(d.stringify(w)))}catch(T){throw new Error("Malformed UTF-8 data")}},parse:function(w){return d.parse(unescape(encodeURIComponent(w)))}},m=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=O.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var T,Q=this._data,I=Q.words,z=Q.sigBytes,$=this.blockSize,X=$*4,Y=z/X;w?Y=e.ceil(Y):Y=e.max((Y|0)-this._minBufferSize,0);var K=Y*$,N=e.min(K*4,z);if(K){for(var te=0;te<K;te+=$)this._doProcessBlock(I,te);T=I.splice(0,K),Q.sigBytes-=N}return new c.init(T,N)},clone:function(){var w=l.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0}),x=a.Hasher=m.extend({cfg:l.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var T=this._doFinalize();return T},blockSize:512/32,_createHelper:function(w){return function(T,Q){return new w.init(Q).finalize(T)}},_createHmacHelper:function(w){return function(T,Q){return new v.HMAC.init(w,Q).finalize(T)}}}),v=s.algo={};return s}(Math);return t})});var zR=To((cm,DR)=>{(function(t,e){typeof cm=="object"?DR.exports=cm=e(lm()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(cm,function(t){return function(e){var i=t,n=i.lib,r=n.WordArray,o=n.Hasher,s=i.algo,a=[];(function(){for(var O=0;O<64;O++)a[O]=e.abs(e.sin(O+1))*4294967296|0})();var l=s.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(O,m){for(var x=0;x<16;x++){var v=m+x,w=O[v];O[v]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var T=this._hash.words,Q=O[m+0],I=O[m+1],z=O[m+2],$=O[m+3],X=O[m+4],Y=O[m+5],K=O[m+6],N=O[m+7],te=O[m+8],oe=O[m+9],re=O[m+10],de=O[m+11],pe=O[m+12],ve=O[m+13],j=O[m+14],ue=O[m+15],Z=T[0],C=T[1],W=T[2],se=T[3];Z=c(Z,C,W,se,Q,7,a[0]),se=c(se,Z,C,W,I,12,a[1]),W=c(W,se,Z,C,z,17,a[2]),C=c(C,W,se,Z,$,22,a[3]),Z=c(Z,C,W,se,X,7,a[4]),se=c(se,Z,C,W,Y,12,a[5]),W=c(W,se,Z,C,K,17,a[6]),C=c(C,W,se,Z,N,22,a[7]),Z=c(Z,C,W,se,te,7,a[8]),se=c(se,Z,C,W,oe,12,a[9]),W=c(W,se,Z,C,re,17,a[10]),C=c(C,W,se,Z,de,22,a[11]),Z=c(Z,C,W,se,pe,7,a[12]),se=c(se,Z,C,W,ve,12,a[13]),W=c(W,se,Z,C,j,17,a[14]),C=c(C,W,se,Z,ue,22,a[15]),Z=u(Z,C,W,se,I,5,a[16]),se=u(se,Z,C,W,K,9,a[17]),W=u(W,se,Z,C,de,14,a[18]),C=u(C,W,se,Z,Q,20,a[19]),Z=u(Z,C,W,se,Y,5,a[20]),se=u(se,Z,C,W,re,9,a[21]),W=u(W,se,Z,C,ue,14,a[22]),C=u(C,W,se,Z,X,20,a[23]),Z=u(Z,C,W,se,oe,5,a[24]),se=u(se,Z,C,W,j,9,a[25]),W=u(W,se,Z,C,$,14,a[26]),C=u(C,W,se,Z,te,20,a[27]),Z=u(Z,C,W,se,ve,5,a[28]),se=u(se,Z,C,W,z,9,a[29]),W=u(W,se,Z,C,N,14,a[30]),C=u(C,W,se,Z,pe,20,a[31]),Z=f(Z,C,W,se,Y,4,a[32]),se=f(se,Z,C,W,te,11,a[33]),W=f(W,se,Z,C,de,16,a[34]),C=f(C,W,se,Z,j,23,a[35]),Z=f(Z,C,W,se,I,4,a[36]),se=f(se,Z,C,W,X,11,a[37]),W=f(W,se,Z,C,N,16,a[38]),C=f(C,W,se,Z,re,23,a[39]),Z=f(Z,C,W,se,ve,4,a[40]),se=f(se,Z,C,W,Q,11,a[41]),W=f(W,se,Z,C,$,16,a[42]),C=f(C,W,se,Z,K,23,a[43]),Z=f(Z,C,W,se,oe,4,a[44]),se=f(se,Z,C,W,pe,11,a[45]),W=f(W,se,Z,C,ue,16,a[46]),C=f(C,W,se,Z,z,23,a[47]),Z=d(Z,C,W,se,Q,6,a[48]),se=d(se,Z,C,W,N,10,a[49]),W=d(W,se,Z,C,j,15,a[50]),C=d(C,W,se,Z,Y,21,a[51]),Z=d(Z,C,W,se,pe,6,a[52]),se=d(se,Z,C,W,$,10,a[53]),W=d(W,se,Z,C,re,15,a[54]),C=d(C,W,se,Z,I,21,a[55]),Z=d(Z,C,W,se,te,6,a[56]),se=d(se,Z,C,W,ue,10,a[57]),W=d(W,se,Z,C,K,15,a[58]),C=d(C,W,se,Z,ve,21,a[59]),Z=d(Z,C,W,se,X,6,a[60]),se=d(se,Z,C,W,de,10,a[61]),W=d(W,se,Z,C,z,15,a[62]),C=d(C,W,se,Z,oe,21,a[63]),T[0]=T[0]+Z|0,T[1]=T[1]+C|0,T[2]=T[2]+W|0,T[3]=T[3]+se|0},_doFinalize:function(){var O=this._data,m=O.words,x=this._nDataBytes*8,v=O.sigBytes*8;m[v>>>5]|=128<<24-v%32;var w=e.floor(x/4294967296),T=x;m[(v+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,m[(v+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,O.sigBytes=(m.length+1)*4,this._process();for(var Q=this._hash,I=Q.words,z=0;z<4;z++){var $=I[z];I[z]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return Q},clone:function(){var O=o.clone.call(this);return O._hash=this._hash.clone(),O}});function c(O,m,x,v,w,T,Q){var I=O+(m&x|~m&v)+w+Q;return(I<<T|I>>>32-T)+m}function u(O,m,x,v,w,T,Q){var I=O+(m&v|x&~v)+w+Q;return(I<<T|I>>>32-T)+m}function f(O,m,x,v,w,T,Q){var I=O+(m^x^v)+w+Q;return(I<<T|I>>>32-T)+m}function d(O,m,x,v,w,T,Q){var I=O+(x^(m|~v))+w+Q;return(I<<T|I>>>32-T)+m}i.MD5=o._createHelper(l),i.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5})});var MR=To((um,UR)=>{(function(t,e){typeof um=="object"?UR.exports=um=e(lm()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(um,function(t){return function(e){var i=t,n=i.lib,r=n.WordArray,o=n.Hasher,s=i.algo,a=[],l=[];(function(){function f(x){for(var v=e.sqrt(x),w=2;w<=v;w++)if(!(x%w))return!1;return!0}function d(x){return(x-(x|0))*4294967296|0}for(var O=2,m=0;m<64;)f(O)&&(m<8&&(a[m]=d(e.pow(O,1/2))),l[m]=d(e.pow(O,1/3)),m++),O++})();var c=[],u=s.SHA256=o.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(f,d){for(var O=this._hash.words,m=O[0],x=O[1],v=O[2],w=O[3],T=O[4],Q=O[5],I=O[6],z=O[7],$=0;$<64;$++){if($<16)c[$]=f[d+$]|0;else{var X=c[$-15],Y=(X<<25|X>>>7)^(X<<14|X>>>18)^X>>>3,K=c[$-2],N=(K<<15|K>>>17)^(K<<13|K>>>19)^K>>>10;c[$]=Y+c[$-7]+N+c[$-16]}var te=T&Q^~T&I,oe=m&x^m&v^x&v,re=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),de=(T<<26|T>>>6)^(T<<21|T>>>11)^(T<<7|T>>>25),pe=z+de+te+l[$]+c[$],ve=re+oe;z=I,I=Q,Q=T,T=w+pe|0,w=v,v=x,x=m,m=pe+ve|0}O[0]=O[0]+m|0,O[1]=O[1]+x|0,O[2]=O[2]+v|0,O[3]=O[3]+w|0,O[4]=O[4]+T|0,O[5]=O[5]+Q|0,O[6]=O[6]+I|0,O[7]=O[7]+z|0},_doFinalize:function(){var f=this._data,d=f.words,O=this._nDataBytes*8,m=f.sigBytes*8;return d[m>>>5]|=128<<24-m%32,d[(m+64>>>9<<4)+14]=e.floor(O/4294967296),d[(m+64>>>9<<4)+15]=O,f.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});i.SHA256=o._createHelper(u),i.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256})});var qR=To((fm,NR)=>{(function(t,e){typeof fm=="object"?NR.exports=fm=e(lm()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(fm,function(t){return function(){var e=t,i=e.lib,n=i.WordArray,r=e.enc,o=r.Base64={stringify:function(a){var l=a.words,c=a.sigBytes,u=this._map;a.clamp();for(var f=[],d=0;d<c;d+=3)for(var O=l[d>>>2]>>>24-d%4*8&255,m=l[d+1>>>2]>>>24-(d+1)%4*8&255,x=l[d+2>>>2]>>>24-(d+2)%4*8&255,v=O<<16|m<<8|x,w=0;w<4&&d+w*.75<c;w++)f.push(u.charAt(v>>>6*(3-w)&63));var T=u.charAt(64);if(T)for(;f.length%4;)f.push(T);return f.join("")},parse:function(a){var l=a.length,c=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var f=0;f<c.length;f++)u[c.charCodeAt(f)]=f}var d=c.charAt(64);if(d){var O=a.indexOf(d);O!==-1&&(l=O)}return s(a,l,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(a,l,c){for(var u=[],f=0,d=0;d<l;d++)if(d%4){var O=c[a.charCodeAt(d-1)]<<d%4*2,m=c[a.charCodeAt(d)]>>>6-d%4*2,x=O|m;u[f>>>2]|=x<<24-f%4*8,f++}return n.create(u,f)}}(),t.enc.Base64})});var Q7=To((P7,F2)=>{(function(t){if(typeof P7=="object"&&typeof F2!="undefined")F2.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.HyperList=t()}})(function(){var t,e,i;return function(){function n(r,o,s){function a(u,f){if(!o[u]){if(!r[u]){var d=typeof xs=="function"&&xs;if(!f&&d)return d(u,!0);if(l)return l(u,!0);var O=new Error("Cannot find module '"+u+"'");throw O.code="MODULE_NOT_FOUND",O}var m=o[u]={exports:{}};r[u][0].call(m.exports,function(x){var v=r[u][1][x];return a(v||x)},m,m.exports,n,r,o,s)}return o[u].exports}for(var l=typeof xs=="function"&&xs,c=0;c<s.length;c++)a(s[c]);return a}return n}()({1:[function(n,r,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function O(m,x){for(var v=0;v<x.length;v++){var w=x[v];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(m,w.key,w)}}return function(m,x,v){return x&&O(m.prototype,x),v&&O(m,v),m}}();function a(O,m,x){return m in O?Object.defineProperty(O,m,{value:x,enumerable:!0,configurable:!0,writable:!0}):O[m]=x,O}function l(O,m){if(!(O instanceof m))throw new TypeError("Cannot call a class as a function")}var c={width:"100%",height:"100%"},u=function(m){return Number(m)===Number(m)},f="classList"in document.documentElement?function(O,m){O.classList.add(m)}:function(O,m){var x=O.getAttribute("class")||"";O.setAttribute("class",x+" "+m)},d=function(){s(O,null,[{key:"create",value:function(x,v){return new O(x,v)}},{key:"mergeStyle",value:function(x,v){for(var w in v)x.style[w]!==v[w]&&(x.style[w]=v[w])}},{key:"getMaxBrowserHeight",value:function(){var x=document.createElement("div"),v=document.createElement("div");O.mergeStyle(x,{position:"absolute",height:"1px",opacity:0}),O.mergeStyle(v,{height:"1e7px"}),x.appendChild(v),document.body.appendChild(x);var w=v.offsetHeight;return document.body.removeChild(x),w}}]);function O(m,x){var v=this;l(this,O),this._config={},this._lastRepaint=null,this._maxElementHeight=O.getMaxBrowserHeight(),this.refresh(m,x);var w=this._config,T=function Q(){var I=v._getScrollPosition(),z=v._lastRepaint;if(v._renderAnimationFrame=window.requestAnimationFrame(Q),I!==z){var $=z?I-z:0;if(!z||$<0||$>v._averageHeight){var X=v._renderChunk();v._lastRepaint=I,X!==!1&&typeof w.afterRender=="function"&&w.afterRender()}}};T()}return s(O,[{key:"destroy",value:function(){window.cancelAnimationFrame(this._renderAnimationFrame)}},{key:"refresh",value:function(x,v){var w;if(Object.assign(this._config,c,v),!x||x.nodeType!==1)throw new Error("HyperList requires a valid DOM Node container");this._element=x;var T=this._config,Q=this._scroller||T.scroller||document.createElement(T.scrollerTagName||"tr");if(typeof T.useFragment!="boolean"&&(this._config.useFragment=!0),!T.generate)throw new Error("Missing required `generate` function");if(!u(T.total))throw new Error("Invalid required `total` value, expected number");if(!Array.isArray(T.itemHeight)&&!u(T.itemHeight))throw new Error("\n Invalid required `itemHeight` value, expected number or array\n ".trim());u(T.itemHeight)?this._itemHeights=Array(T.total).fill(T.itemHeight):this._itemHeights=T.itemHeight,Object.keys(c).filter(function(ve){return ve in T}).forEach(function(ve){var j=T[ve],ue=u(j);if(j&&typeof j!="string"&&typeof j!="number"){var Z="Invalid optional `"+ve+"`, expected string or number";throw new Error(Z)}else ue&&(T[ve]=j+"px")});var I=!!T.horizontal,z=T[I?"width":"height"];if(z){var $=u(z),X=$?!1:z.slice(-1)==="%",Y=$?z:parseInt(z.replace(/px|%/,""),10),K=window[I?"innerWidth":"innerHeight"];X?this._containerSize=K*Y/100:this._containerSize=u(z)?z:Y}var N=T.scrollContainer,te=T.itemHeight*T.total,oe=this._maxElementHeight;te>oe&&console.warn(["HyperList: The maximum element height",oe+"px has","been exceeded; please reduce your item height."].join(" "));var re={width:""+T.width,height:N?te+"px":""+T.height,overflow:N?"none":"auto",position:"relative"};O.mergeStyle(x,re),N&&O.mergeStyle(T.scrollContainer,{overflow:"auto"});var de=(w={opacity:"0",position:"absolute"},a(w,I?"height":"width","1px"),a(w,I?"width":"height",te+"px"),w);O.mergeStyle(Q,de),this._scroller||x.appendChild(Q);var pe=this._computeScrollPadding();this._scrollPaddingBottom=pe.bottom,this._scrollPaddingTop=pe.top,this._scroller=Q,this._scrollHeight=this._computeScrollHeight(),this._itemPositions=this._itemPositions||Array(T.total).fill(0),this._computePositions(0),this._renderChunk(this._lastRepaint!==null),typeof T.afterRender=="function"&&T.afterRender()}},{key:"_getRow",value:function(x){var v=this._config,w=v.generate(x),T=w.height;if(T!==void 0&&u(T)?(w=w.element,T!==this._itemHeights[x]&&(this._itemHeights[x]=T,this._computePositions(x),this._scrollHeight=this._computeScrollHeight(x))):T=this._itemHeights[x],!w||w.nodeType!==1)throw new Error("Generator did not return a DOM Node for index: "+x);f(w,v.rowClassName||"vrow");var Q=this._itemPositions[x]+this._scrollPaddingTop;return O.mergeStyle(w,a({position:"absolute"},v.horizontal?"left":"top",Q+"px")),w}},{key:"_getScrollPosition",value:function(){var x=this._config;return typeof x.overrideScrollPosition=="function"?x.overrideScrollPosition():this._element[x.horizontal?"scrollLeft":"scrollTop"]}},{key:"_renderChunk",value:function(x){var v=this._config,w=this._element,T=this._getScrollPosition(),Q=v.total,I=v.reverse?this._getReverseFrom(T):this._getFrom(T)-1;if((I<0||I-this._screenItemsLen<0)&&(I=0),!x&&this._lastFrom===I)return!1;this._lastFrom=I;var z=I+this._cachedItemsLen;(z>Q||z+this._cachedItemsLen>Q)&&(z=Q);var $=v.useFragment?document.createDocumentFragment():[],X=this._scroller;$[v.useFragment?"appendChild":"push"](X);for(var Y=I;Y<z;Y++){var K=this._getRow(Y);$[v.useFragment?"appendChild":"push"](K)}if(v.applyPatch)return v.applyPatch(w,$);w.innerHTML="",w.appendChild($)}},{key:"_computePositions",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,v=this._config,w=v.total,T=v.reverse;x<1&&!T&&(x=1);for(var Q=x;Q<w;Q++)T?Q===0?this._itemPositions[0]=this._scrollHeight-this._itemHeights[0]:this._itemPositions[Q]=this._itemPositions[Q-1]-this._itemHeights[Q]:this._itemPositions[Q]=this._itemHeights[Q-1]+this._itemPositions[Q-1]}},{key:"_computeScrollHeight",value:function(){var x,v=this,w=this._config,T=!!w.horizontal,Q=w.total,I=this._itemHeights.reduce(function(te,oe){return te+oe},0)+this._scrollPaddingBottom+this._scrollPaddingTop;O.mergeStyle(this._scroller,(x={opacity:0,position:"absolute",top:"0px"},a(x,T?"height":"width","1px"),a(x,T?"width":"height",I+"px"),x));var z=this._itemHeights.slice(0).sort(function(te,oe){return te-oe}),$=Math.floor(Q/2),X=Q%2===0?(z[$]+z[$-1])/2:z[$],Y=T?"clientWidth":"clientHeight",K=w.scrollContainer?w.scrollContainer:this._element,N=K[Y]?K[Y]:this._containerSize;return this._screenItemsLen=Math.ceil(N/X),this._containerSize=N,this._cachedItemsLen=Math.max(this._cachedItemsLen||0,this._screenItemsLen*3),this._averageHeight=X,w.reverse&&window.requestAnimationFrame(function(){T?v._element.scrollLeft=I:v._element.scrollTop=I}),I}},{key:"_computeScrollPadding",value:function(){var x=this._config,v=!!x.horizontal,w=x.reverse,T=window.getComputedStyle(this._element),Q=function(z){var $=T.getPropertyValue("padding-"+z);return parseInt($,10)||0};return v&&w?{bottom:Q("left"),top:Q("right")}:v?{bottom:Q("right"),top:Q("left")}:w?{bottom:Q("top"),top:Q("bottom")}:{bottom:Q("bottom"),top:Q("top")}}},{key:"_getFrom",value:function(x){for(var v=0;this._itemPositions[v]<x;)v++;return v}},{key:"_getReverseFrom",value:function(x){for(var v=this._config.total-1;v>0&&this._itemPositions[v]<x+this._containerSize;)v--;return v}}]),O}();o.default=d,r.exports=o.default},{}]},{},[1])(1)})});var I7=To((L7,Tg)=>{(function(t,e){"use strict";function i(){n.width=t.innerWidth,n.height=5*c.barThickness;var f=n.getContext("2d");f.shadowBlur=c.shadowBlur,f.shadowColor=c.shadowColor;var d,O=f.createLinearGradient(0,0,n.width,0);for(d in c.barColors)O.addColorStop(d,c.barColors[d]);f.lineWidth=c.barThickness,f.beginPath(),f.moveTo(0,c.barThickness/2),f.lineTo(Math.ceil(r*n.width),c.barThickness/2),f.strokeStyle=O,f.stroke()}var n,r,o,s=null,a=null,l=null,c={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},u={config:function(f){for(var d in f)c.hasOwnProperty(d)&&(c[d]=f[d])},show:function(f){var d,O;o||(f?l=l||setTimeout(()=>u.show(),f):(o=!0,a!==null&&t.cancelAnimationFrame(a),n||((O=(n=e.createElement("canvas")).style).position="fixed",O.top=O.left=O.right=O.margin=O.padding=0,O.zIndex=100001,O.display="none",c.className&&n.classList.add(c.className),d="resize",f=i,(O=t).addEventListener?O.addEventListener(d,f,!1):O.attachEvent?O.attachEvent("on"+d,f):O["on"+d]=f),n.parentElement||e.body.appendChild(n),n.style.opacity=1,n.style.display="block",u.progress(0),c.autoRun&&function m(){s=t.requestAnimationFrame(m),u.progress("+"+.05*Math.pow(1-Math.sqrt(r),2))}()))},progress:function(f){return f===void 0||(typeof f=="string"&&(f=(0<=f.indexOf("+")||0<=f.indexOf("-")?r:0)+parseFloat(f)),r=1<f?1:f,i()),r},hide:function(){clearTimeout(l),l=null,o&&(o=!1,s!=null&&(t.cancelAnimationFrame(s),s=null),function f(){return 1<=u.progress("+.1")&&(n.style.opacity-=.05,n.style.opacity<=.05)?(n.style.display="none",void(a=null)):void(a=t.requestAnimationFrame(f))}())}};typeof Tg=="object"&&typeof Tg.exports=="object"?Tg.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):this.topbar=u}).call(L7,window,document)});(function(){var t=e();function e(){if(typeof window.CustomEvent=="function")return window.CustomEvent;function r(o,s){s=s||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(o,s.bubbles,s.cancelable,s.detail),a}return r.prototype=window.Event.prototype,r}function i(r,o){var s=document.createElement("input");return s.type="hidden",s.name=r,s.value=o,s}function n(r,o){var s=r.getAttribute("data-to"),a=i("_method",r.getAttribute("data-method")),l=i("_csrf_token",r.getAttribute("data-csrf")),c=document.createElement("form"),u=document.createElement("input"),f=r.getAttribute("target");c.method=r.getAttribute("data-method")==="get"?"get":"post",c.action=s,c.style.display="none",f?c.target=f:o&&(c.target="_blank"),c.appendChild(l),c.appendChild(a),document.body.appendChild(c),u.type="submit",c.appendChild(u),u.click()}window.addEventListener("click",function(r){var o=r.target;if(!r.defaultPrevented)for(;o&&o.getAttribute;){var s=new t("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!o.dispatchEvent(s))return r.preventDefault(),r.stopImmediatePropagation(),!1;if(o.getAttribute("data-method")&&o.getAttribute("data-to"))return n(o,r.metaKey||r.shiftKey),r.preventDefault(),!1;o=o.parentNode}},!1),window.addEventListener("phoenix.link.click",function(r){var o=r.target.getAttribute("data-confirm");o&&!window.confirm(o)&&r.preventDefault()},!1)})();var vc=t=>typeof t=="function"?t:function(){return t},TD=typeof self!="undefined"?self:null,xc=typeof window!="undefined"?window:null,rr=TD||xc||globalThis,ED="2.0.0",or={connecting:0,open:1,closing:2,closed:3},CD=1e4,PD=1e3,Ji={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Qr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Ng={longpoll:"longpoll",websocket:"websocket"},QD={complete:4},qg="base64url.bearer.phx.",Ah=class{constructor(t,e,i,n){this.channel=t,this.event=e,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(t){this.timeout=t,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:t,response:e,_ref:i}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},ES=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},_D=class{constructor(t,e,i){this.state=Ji.closed,this.topic=t,this.params=vc(e||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Ah(this,Qr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new ES(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Ji.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Ji.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Ji.closed,this.socket.remove(this)}),this.onError(n=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.isJoining()&&this.joinPush.reset(),this.state=Ji.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Ah(this,Qr.leave,vc({}),this.timeout).send(),this.state=Ji.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Qr.reply,(n,r)=>{this.trigger(this.replyEventName(r),n)})}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(t){this.on(Qr.close,t)}onError(t){return this.on(Qr.error,e=>t(e))}on(t,e){let i=this.bindingRef++;return this.bindings.push({event:t,ref:i,callback:e}),i}off(t,e){this.bindings=this.bindings.filter(i=>!(i.event===t&&(typeof e=="undefined"||e===i.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,i=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new Ah(this,t,function(){return e},i);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Ji.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Qr.close,"leave")},i=new Ah(this,Qr.leave,vc({}),t);return i.receive("ok",()=>e()).receive("timeout",()=>e()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(t,e,i){return e}isMember(t,e,i,n){return this.topic!==t?!1:n&&n!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:i,joinRef:n}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ji.joining,this.joinPush.resend(t))}trigger(t,e,i,n){let r=this.onMessage(t,e,i,n);if(e&&!r)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(s=>s.event===t);for(let s=0;s<o.length;s++)o[s].callback(r,i,n||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===Ji.closed}isErrored(){return this.state===Ji.errored}isJoined(){return this.state===Ji.joined}isJoining(){return this.state===Ji.joining}isLeaving(){return this.state===Ji.leaving}},Xh=class{static request(t,e,i,n,r,o,s){if(rr.XDomainRequest){let a=new rr.XDomainRequest;return this.xdomainRequest(a,t,e,n,r,o,s)}else if(rr.XMLHttpRequest){let a=new rr.XMLHttpRequest;return this.xhrRequest(a,t,e,i,n,r,o,s)}else{if(rr.fetch&&rr.AbortController)return this.fetchRequest(t,e,i,n,r,o,s);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,i,n,r,o,s){let a={method:t,headers:i,body:n},l=null;if(r){l=new AbortController;let c=setTimeout(()=>l.abort(),r);a.signal=l.signal}return rr.fetch(e,a).then(c=>c.text()).then(c=>this.parseJSON(c)).then(c=>s&&s(c)).catch(c=>{c.name==="AbortError"&&o?o():s&&s(null)}),l}static xdomainRequest(t,e,i,n,r,o,s){return t.timeout=r,t.open(e,i),t.onload=()=>{let a=this.parseJSON(t.responseText);s&&s(a)},o&&(t.ontimeout=o),t.onprogress=()=>{},t.send(n),t}static xhrRequest(t,e,i,n,r,o,s,a){t.open(e,i,!0),t.timeout=o;for(let[l,c]of Object.entries(n))t.setRequestHeader(l,c);return t.onerror=()=>a&&a(null),t.onreadystatechange=()=>{if(t.readyState===QD.complete&&a){let l=this.parseJSON(t.responseText);a(l)}},s&&(t.ontimeout=s),t.send(r),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch(e){return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let i=[];for(var n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let r=e?`${e}[${n}]`:n,o=t[n];typeof o=="object"?i.push(this.serialize(o,r)):i.push(encodeURIComponent(r)+"="+encodeURIComponent(o))}return i.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let i=t.match(/\?/)?"&":"?";return`${t}${i}${this.serialize(e)}`}},AD=t=>{let e="",i=new Uint8Array(t),n=i.byteLength;for(let r=0;r<n;r++)e+=String.fromCharCode(i[r]);return btoa(e)},yc=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(qg)&&(this.authToken=atob(e[1].slice(qg.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=or.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Ng.websocket),"$1/"+Ng.longpoll)}endpointURL(){return Xh.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,i){this.close(t,e,i),this.readyState=or.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===or.open||this.readyState===or.connecting}poll(){let t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),e=>{if(e){var{status:i,token:n,messages:r}=e;this.token=n}else i=0;switch(i){case 200:r.forEach(o=>{setTimeout(()=>this.onmessage({data:o}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=or.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${i}`)}})}send(t){typeof t!="string"&&(t=AD(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},t.join(`
|
||
`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(t,e,i){for(let r of this.reqs)r.abort();this.readyState=or.closed;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:i});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent!="undefined"?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(t,e,i,n,r){let o,s=()=>{this.reqs.delete(o),n()};o=Xh.request(t,this.endpointURL(),e,i,this.timeout,s,a=>{this.reqs.delete(o),this.isActive()&&r(a)}),this.reqs.add(o)}};var $h={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let i=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(i))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[i,n,r,o,s]=JSON.parse(t);return e({join_ref:i,ref:n,topic:r,event:o,payload:s})}},binaryEncode(t){let{join_ref:e,ref:i,event:n,topic:r,payload:o}=t,s=this.META_LENGTH+e.length+i.length+r.length+n.length,a=new ArrayBuffer(this.HEADER_LENGTH+s),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,e.length),l.setUint8(c++,i.length),l.setUint8(c++,r.length),l.setUint8(c++,n.length),Array.from(e,f=>l.setUint8(c++,f.charCodeAt(0))),Array.from(i,f=>l.setUint8(c++,f.charCodeAt(0))),Array.from(r,f=>l.setUint8(c++,f.charCodeAt(0))),Array.from(n,f=>l.setUint8(c++,f.charCodeAt(0)));var u=new Uint8Array(a.byteLength+o.byteLength);return u.set(new Uint8Array(a),0),u.set(new Uint8Array(o),a.byteLength),u.buffer},binaryDecode(t){let e=new DataView(t),i=e.getUint8(0),n=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(t,e,n);case this.KINDS.reply:return this.decodeReply(t,e,n);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,n)}},decodePush(t,e,i){let n=e.getUint8(1),r=e.getUint8(2),o=e.getUint8(3),s=this.HEADER_LENGTH+this.META_LENGTH-1,a=i.decode(t.slice(s,s+n));s=s+n;let l=i.decode(t.slice(s,s+r));s=s+r;let c=i.decode(t.slice(s,s+o));s=s+o;let u=t.slice(s,t.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:u}},decodeReply(t,e,i){let n=e.getUint8(1),r=e.getUint8(2),o=e.getUint8(3),s=e.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=i.decode(t.slice(a,a+n));a=a+n;let c=i.decode(t.slice(a,a+r));a=a+r;let u=i.decode(t.slice(a,a+o));a=a+o;let f=i.decode(t.slice(a,a+s));a=a+s;let d=t.slice(a,t.byteLength),O={status:f,response:d};return{join_ref:l,ref:c,topic:u,event:Qr.reply,payload:O}},decodeBroadcast(t,e,i){let n=e.getUint8(1),r=e.getUint8(2),o=this.HEADER_LENGTH+2,s=i.decode(t.slice(o,o+n));o=o+n;let a=i.decode(t.slice(o,o+r));o=o+r;let l=t.slice(o,t.byteLength);return{join_ref:null,ref:null,topic:s,event:a,payload:l}}},Rh=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||CD,this.transport=e.transport||rr.WebSocket||yc,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=e.sessionStorage||rr&&rr.sessionStorage,this.establishedConnections=0,this.defaultEncoder=$h.encode.bind($h),this.defaultDecoder=$h.decode.bind($h),this.closeWasClean=!1,this.disconnecting=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==yc?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let i=null;xc&&xc.addEventListener&&(xc.addEventListener("pagehide",n=>{this.conn&&(this.disconnect(),i=this.connectClock)}),xc.addEventListener("pageshow",n=>{i===this.connectClock&&(i=null,this.connect())})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=n=>e.rejoinAfterMs?e.rejoinAfterMs(n):[1e3,2e3,5e3][n-1]||1e4,this.reconnectAfterMs=n=>e.reconnectAfterMs?e.reconnectAfterMs(n):[10,50,100,150,200,250,500,1e3,2e3][n-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(n,r,o)=>{console.log(`${n}: ${r}`,o)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=vc(e.params||{}),this.endPoint=`${t}/${Ng.websocket}`,this.vsn=e.vsn||ED,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new ES(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs),this.authToken=e.authToken}getLongPollTransport(){return yc}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Xh.appendParams(Xh.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,i){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,i)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=vc(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==yc?this.connectWithFallback(yc,this.longPollFallbackMs):this.transportConnect())}log(t,e,i){this.logger&&this.logger(t,e,i)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let n=this.onMessage(r=>{r.ref===e&&(this.off([n]),t(Date.now()-i))});return!0}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${qg}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,e){this.sessionStore&&this.sessionStore.setItem(t,e)}connectWithFallback(t,e=2500){clearTimeout(this.fallbackTimer);let i=!1,n=!0,r,o,s=a=>{this.log("transport",`falling back to ${t.name}...`,a),this.off([r,o]),n=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${t.name}`))return s("memorized");this.fallbackTimer=setTimeout(s,e),o=this.onError(a=>{this.log("transport","error",a),n&&!i&&(clearTimeout(this.fallbackTimer),s(a))}),this.onOpen(()=>{if(i=!0,!n)return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${t.name}`,"true"),this.log("transport",`established ${t.name} fallback`);clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(s,e),this.ping(a=>{this.log("transport","connected to primary after",a),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transport.name} connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,t])=>t())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),PD,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,i){if(!this.conn)return t&&t();let n=this.connectClock;this.waitForBufferDone(()=>{n===this.connectClock&&(this.conn&&(e?this.conn.close(e,i||""):this.conn.close()),this.waitForSocketClosed(()=>{n===this.connectClock&&(this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t())}))})}waitForBufferDone(t,e=1){if(e===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,e+1)},150*e)}waitForSocketClosed(t,e=1){if(e===5||!this.conn||this.conn.readyState===or.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,e+1)},150*e)}onConnClose(t){let e=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,i])=>i(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let e=this.transport,i=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,n])=>{n(t,e,i)}),(e===this.transport||i>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Qr.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case or.connecting:return"connecting";case or.open:return"open";case or.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e!==t)}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([i])=>t.indexOf(i)===-1)}channel(t,e={}){let i=new _D(t,e,this);return this.channels.push(i),i}push(t){if(this.hasLogger()){let{topic:e,event:i,payload:n,ref:r,join_ref:o}=t;this.log("push",`${e} ${i} (${o}, ${r})`,n)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:i,event:n,payload:r,ref:o,join_ref:s}=e;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${r.status||""} ${i} ${n} ${o&&"("+o+")"||""}`,r);for(let a=0;a<this.channels.length;a++){let l=this.channels[a];l.isMember(i,n,r,s)&&l.trigger(n,r,o,s)}for(let a=0;a<this.stateChangeCallbacks.message.length;a++){let[,l]=this.stateChangeCallbacks.message[a];l(e)}})}leaveOpenTopic(t){let e=this.channels.find(i=>i.topic===t&&(i.isJoined()||i.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};var eT="consecutive-reloads",$D=10,XD=5e3,RD=1e4,LD=3e4,tT=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading","phx-hook-loading"],Ar="data-phx-component",qa="data-phx-view",jg="data-phx-link",ID="track-static",DD="data-phx-link-state",ja="data-phx-ref-loading",gn="data-phx-ref-src",zt="data-phx-ref-lock",CS="phx-pending-refs",iT="track-uploads",$r="data-phx-upload-ref",r0="data-phx-preflighted-refs",zD="data-phx-done-refs",PS="drop-target",Hg="data-phx-active-refs",Nh="phx:live-file:updated",nT="data-phx-skip",rT="data-phx-id",QS="data-phx-prune",_S="phx-connected",vs="phx-loading",Da="phx-error",AS="phx-client-error",wc="phx-server-error",Ts="data-phx-parent-id",o0="data-phx-main",Po="data-phx-root-id",Gg="viewport-top",Kg="viewport-bottom",UD="trigger-action",Vh="phx-has-focused",MD=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],oT=["checkbox","radio"],Ac="phx-has-submitted",lr="data-phx-session",$c=`[${lr}]`,Jg="data-phx-sticky",ks="data-phx-static",e0="data-phx-readonly",Na="data-phx-disabled",$S="disable-with",Zh="data-phx-disable-with-restore",kc="hook",ND="debounce",qD="throttle",Bh="update",qh="stream",Sc="data-phx-stream",sT="data-phx-portal",Wa="data-phx-teleported",Wg="data-phx-teleported-src",jh="data-phx-runtime-hook",jD="data-phx-pid",WD="key",sr="phxPrivate",XS="auto-recover",Lh="phx:live-socket:debug",Vg="phx:live-socket:profiling",Zg="phx:live-socket:latency-sim",Ih="phx:nav-history-position",VD="progress",RS="mounted",LS="__phoenix_reload_status__",ZD=1,IS=3,BD=200,YD=500,FD="phx-",HD=3e4,Tc="debounce-trigger",Ec="throttled",DS="debounce-prev-key",GD={debounce:300,throttle:300},zS=[ja,gn,zt],mn="s",Bg="r",Pi="c",Dt="k",ar="kc",US="e",MS="r",NS="t",Eo="p",za="stream",KD=class{constructor(t,e,i){let{chunk_size:n,chunk_timeout:r}=e;this.liveSocket=i,this.entry=t,this.offset=0,this.chunkSize=n,this.chunkTimeout=r,this.chunkTimer=null,this.errored=!1,this.uploadChannel=i.channel(`lvu:${t.ref}`,{token:t.metadata()})}error(t){this.errored||(this.uploadChannel.leave(),this.errored=!0,clearTimeout(this.chunkTimer),this.entry.error(t))}upload(){this.uploadChannel.onError(t=>this.error(t)),this.uploadChannel.join().receive("ok",t=>this.readNextChunk()).receive("error",t=>this.error(t))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let t=new window.FileReader,e=this.entry.file.slice(this.offset,this.chunkSize+this.offset);t.onload=i=>{if(i.target.error===null)this.offset+=i.target.result.byteLength,this.pushChunk(i.target.result);else return wt("Read error: "+i.target.error)},t.readAsArrayBuffer(e)}pushChunk(t){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",t,this.chunkTimeout).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))}).receive("error",({reason:e})=>this.error(e))}},wt=(t,e)=>console.error&&console.error(t,e),_r=t=>{let e=typeof t;return e==="number"||e==="string"&&/^(0|[1-9]\d*)$/.test(t)};function JD(){let t=new Set,e=document.querySelectorAll("*[id]");for(let i=0,n=e.length;i<n;i++)t.has(e[i].id)?console.error(`Multiple IDs detected: ${e[i].id}. Ensure unique element ids.`):t.add(e[i].id)}function e8(t){let e=new Set;Object.keys(t).forEach(i=>{let n=document.getElementById(i);n&&n.parentElement&&n.parentElement.getAttribute("phx-update")!=="stream"&&e.add(`The stream container with id "${n.parentElement.id}" is missing the phx-update="stream" attribute. Ensure it is set for streams to work properly.`)}),e.forEach(i=>console.error(i))}var t8=(t,e,i,n)=>{t.liveSocket.isDebugEnabled()&&console.log(`${t.id} ${e}: ${i} - `,n)},Cc=t=>typeof t=="function"?t:function(){return t},Wh=t=>JSON.parse(JSON.stringify(t)),_c=(t,e,i)=>{do{if(t.matches(`[${e}]`)&&!t.disabled)return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1&&!(i&&i.isSameNode(t)||t.matches($c)));return null},Ua=t=>t!==null&&typeof t=="object"&&!(t instanceof Array),i8=(t,e)=>JSON.stringify(t)===JSON.stringify(e),qS=t=>{for(let e in t)return!1;return!0},Ss=(t,e)=>t&&e(t),n8=function(t,e,i,n){t.forEach(r=>{new KD(r,i.config,n).upload()})},r8={canPushState(){return typeof history.pushState!="undefined"},dropLocal(t,e,i){return t.removeItem(this.localKey(e,i))},updateLocal(t,e,i,n,r){let o=this.getLocal(t,e,i),s=this.localKey(e,i),a=o===null?n:r(o);return t.setItem(s,JSON.stringify(a)),a},getLocal(t,e,i){return JSON.parse(t.getItem(this.localKey(e,i)))},updateCurrentState(t){this.canPushState()&&history.replaceState(t(history.state||{}),"",window.location.href)},pushState(t,e,i){if(this.canPushState()){if(i!==window.location.href){if(e.type=="redirect"&&e.scroll){let n=history.state||{};n.scroll=e.scroll,history.replaceState(n,"",window.location.href)}delete e.scroll,history[t+"State"](e,"",i||null),window.requestAnimationFrame(()=>{let n=this.getHashTargetEl(window.location.hash);n?n.scrollIntoView():e.type==="redirect"&&window.scroll(0,0)})}}else this.redirect(i)},setCookie(t,e,i){let n=typeof i=="number"?` max-age=${i};`:"";document.cookie=`${t}=${e};${n} path=/`},getCookie(t){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${t}s*=s*([^;]*).*$)|^.*$`),"$1")},deleteCookie(t){document.cookie=`${t}=; max-age=-1; path=/`},redirect(t,e,i=n=>{window.location.href=n}){e&&this.setCookie("__phoenix_flash__",e,60),i(t)},localKey(t,e){return`${t}-${e}`},getHashTargetEl(t){let e=t.toString().substring(1);if(e!=="")return document.getElementById(e)||document.querySelector(`a[name="${e}"]`)}},Mi=r8,ws={byId(t){return document.getElementById(t)||wt(`no id found for ${t}`)},removeClass(t,e){t.classList.remove(e),t.classList.length===0&&t.removeAttribute("class")},all(t,e,i){if(!t)return[];let n=Array.from(t.querySelectorAll(e));return i&&n.forEach(i),n},childNodeLength(t){let e=document.createElement("template");return e.innerHTML=t,e.content.childElementCount},isUploadInput(t){return t.type==="file"&&t.getAttribute($r)!==null},isAutoUpload(t){return t.hasAttribute("data-phx-auto-upload")},findUploadInputs(t){let e=t.id,i=this.all(document,`input[type="file"][${$r}][form="${e}"]`);return this.all(t,`input[type="file"][${$r}]`).concat(i)},findComponentNodeList(t,e,i=document){return this.all(i,`[${qa}="${t}"][${Ar}="${e}"]`)},isPhxDestroyed(t){return!!(t.id&&ws.private(t,"destroyed"))},wantsNewTab(t){let e=t.ctrlKey||t.shiftKey||t.metaKey||t.button&&t.button===1,i=t.target instanceof HTMLAnchorElement&&t.target.hasAttribute("download"),n=t.target.hasAttribute("target")&&t.target.getAttribute("target").toLowerCase()==="_blank",r=t.target.hasAttribute("target")&&!t.target.getAttribute("target").startsWith("_");return e||n||i||r},isUnloadableFormSubmit(t){return t.target&&t.target.getAttribute("method")==="dialog"||t.submitter&&t.submitter.getAttribute("formmethod")==="dialog"?!1:!t.defaultPrevented&&!this.wantsNewTab(t)},isNewPageClick(t,e){let i=t.target instanceof HTMLAnchorElement?t.target.getAttribute("href"):null,n;if(t.defaultPrevented||i===null||this.wantsNewTab(t)||i.startsWith("mailto:")||i.startsWith("tel:")||t.target.isContentEditable)return!1;try{n=new URL(i)}catch(r){try{n=new URL(i,e)}catch(o){return!0}}return n.host===e.host&&n.protocol===e.protocol&&n.pathname===e.pathname&&n.search===e.search?n.hash===""&&!n.href.endsWith("#"):n.protocol.startsWith("http")},markPhxChildDestroyed(t){this.isPhxChild(t)&&t.setAttribute(lr,""),this.putPrivate(t,"destroyed",!0)},findPhxChildrenInFragment(t,e){let i=document.createElement("template");return i.innerHTML=t,this.findPhxChildren(i.content,e)},isIgnored(t,e){return(t.getAttribute(e)||t.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(t,e,i){return t.getAttribute&&i.indexOf(t.getAttribute(e))>=0},findPhxSticky(t){return this.all(t,`[${Jg}]`)},findPhxChildren(t,e){return this.all(t,`${$c}[${Ts}="${e}"]`)},findExistingParentCIDs(t,e){let i=new Set,n=new Set;return e.forEach(r=>{this.all(document,`[${qa}="${t}"][${Ar}="${r}"]`).forEach(o=>{i.add(r),this.all(o,`[${qa}="${t}"][${Ar}]`).map(s=>parseInt(s.getAttribute(Ar))).forEach(s=>n.add(s))})}),n.forEach(r=>i.delete(r)),i},private(t,e){return t[sr]&&t[sr][e]},deletePrivate(t,e){t[sr]&&delete t[sr][e]},putPrivate(t,e,i){t[sr]||(t[sr]={}),t[sr][e]=i},updatePrivate(t,e,i,n){let r=this.private(t,e);r===void 0?this.putPrivate(t,e,n(i)):this.putPrivate(t,e,n(r))},syncPendingAttrs(t,e){t.hasAttribute(gn)&&(tT.forEach(i=>{t.classList.contains(i)&&e.classList.add(i)}),zS.filter(i=>t.hasAttribute(i)).forEach(i=>{e.setAttribute(i,t.getAttribute(i))}))},copyPrivates(t,e){e[sr]&&(t[sr]=e[sr])},putTitle(t){let e=document.querySelector("title");if(e){let{prefix:i,suffix:n,default:r}=e.dataset,o=typeof t!="string"||t.trim()==="";if(o&&typeof r!="string")return;let s=o?r:t;document.title=`${i||""}${s||""}${n||""}`}else document.title=t},debounce(t,e,i,n,r,o,s,a){let l=t.getAttribute(i),c=t.getAttribute(r);l===""&&(l=n),c===""&&(c=o);let u=l||c;switch(u){case null:return a();case"blur":this.incCycle(t,"debounce-blur-cycle",()=>{s()&&a()}),this.once(t,"debounce-blur")&&t.addEventListener("blur",()=>this.triggerCycle(t,"debounce-blur-cycle"));return;default:let f=parseInt(u),d=()=>c?this.deletePrivate(t,Ec):a(),O=this.incCycle(t,Tc,d);if(isNaN(f))return wt(`invalid throttle/debounce value: ${u}`);if(c){let x=!1;if(e.type==="keydown"){let v=this.private(t,DS);this.putPrivate(t,DS,e.key),x=v!==e.key}if(!x&&this.private(t,Ec))return!1;{a();let v=setTimeout(()=>{s()&&this.triggerCycle(t,Tc)},f);this.putPrivate(t,Ec,v)}}else setTimeout(()=>{s()&&this.triggerCycle(t,Tc,O)},f);let m=t.form;m&&this.once(m,"bind-debounce")&&m.addEventListener("submit",()=>{Array.from(new FormData(m).entries(),([x])=>{let v=m.querySelector(`[name="${x}"]`);this.incCycle(v,Tc),this.deletePrivate(v,Ec)})}),this.once(t,"bind-debounce")&&t.addEventListener("blur",()=>{clearTimeout(this.private(t,Ec)),this.triggerCycle(t,Tc)})}},triggerCycle(t,e,i){let[n,r]=this.private(t,e);i||(i=n),i===n&&(this.incCycle(t,e),r())},once(t,e){return this.private(t,e)===!0?!1:(this.putPrivate(t,e,!0),!0)},incCycle(t,e,i=function(){}){let[n]=this.private(t,e)||[0,i];return n++,this.putPrivate(t,e,[n,i]),n},maintainPrivateHooks(t,e,i,n){t.hasAttribute&&t.hasAttribute("data-phx-hook")&&!e.hasAttribute("data-phx-hook")&&e.setAttribute("data-phx-hook",t.getAttribute("data-phx-hook")),e.hasAttribute&&(e.hasAttribute(i)||e.hasAttribute(n))&&e.setAttribute("data-phx-hook","Phoenix.InfiniteScroll")},putCustomElHook(t,e){t.isConnected?t.setAttribute("data-phx-hook",""):console.error(`
|
||
hook attached to non-connected DOM element
|
||
ensure you are calling createHook within your connectedCallback. ${t.outerHTML}
|
||
`),this.putPrivate(t,"custom-el-hook",e)},getCustomElHook(t){return this.private(t,"custom-el-hook")},isUsedInput(t){return t.nodeType===Node.ELEMENT_NODE&&(this.private(t,Vh)||this.private(t,Ac))},resetForm(t){Array.from(t.elements).forEach(e=>{this.deletePrivate(e,Vh),this.deletePrivate(e,Ac)})},isPhxChild(t){return t.getAttribute&&t.getAttribute(Ts)},isPhxSticky(t){return t.getAttribute&&t.getAttribute(Jg)!==null},isChildOfAny(t,e){return!!e.find(i=>i.contains(t))},firstPhxChild(t){return this.isPhxChild(t)?t:this.all(t,`[${Ts}]`)[0]},isPortalTemplate(t){return t.tagName==="TEMPLATE"&&t.hasAttribute(sT)},closestViewEl(t){let e=t.closest(`[${Wa}],${$c}`);return e?e.hasAttribute(Wa)?this.byId(e.getAttribute(Wa)):e.hasAttribute(lr)?e:null:null},dispatchEvent(t,e,i={}){let n=!0;t.nodeName==="INPUT"&&t.type==="file"&&e==="click"&&(n=!1);let s={bubbles:i.bubbles===void 0?n:!!i.bubbles,cancelable:!0,detail:i.detail||{}},a=e==="click"?new MouseEvent("click",s):new CustomEvent(e,s);t.dispatchEvent(a)},cloneNode(t,e){if(typeof e=="undefined")return t.cloneNode(!0);{let i=t.cloneNode(!1);return i.innerHTML=e,i}},mergeAttrs(t,e,i={}){var a;let n=new Set(i.exclude||[]),r=i.isIgnored,o=e.attributes;for(let l=o.length-1;l>=0;l--){let c=o[l].name;if(n.has(c)){if(c==="value"){let u=(a=e.value)!=null?a:e.getAttribute(c);t.value===u&&t.setAttribute("value",e.getAttribute(c))}}else{let u=e.getAttribute(c);t.getAttribute(c)!==u&&(!r||r&&c.startsWith("data-"))&&t.setAttribute(c,u)}}let s=t.attributes;for(let l=s.length-1;l>=0;l--){let c=s[l].name;r?c.startsWith("data-")&&!e.hasAttribute(c)&&!zS.includes(c)&&t.removeAttribute(c):e.hasAttribute(c)||t.removeAttribute(c)}},mergeFocusedInput(t,e){t instanceof HTMLSelectElement||ws.mergeAttrs(t,e,{exclude:["value"]}),e.readOnly?t.setAttribute("readonly",!0):t.removeAttribute("readonly")},hasSelectionRange(t){return t.setSelectionRange&&(t.type==="text"||t.type==="textarea")},restoreFocus(t,e,i){if(t instanceof HTMLSelectElement&&t.focus(),!ws.isTextualInput(t))return;t.matches(":focus")||t.focus(),this.hasSelectionRange(t)&&t.setSelectionRange(e,i)},isFormInput(t){return t.localName&&customElements.get(t.localName)?customElements.get(t.localName).formAssociated:/^(?:input|select|textarea)$/i.test(t.tagName)&&t.type!=="button"},syncAttrsToProps(t){t instanceof HTMLInputElement&&oT.indexOf(t.type.toLocaleLowerCase())>=0&&(t.checked=t.getAttribute("checked")!==null)},isTextualInput(t){return MD.indexOf(t.type)>=0},isNowTriggerFormExternal(t,e){return t.getAttribute&&t.getAttribute(e)!==null&&document.body.contains(t)},cleanChildNodes(t,e){if(ws.isPhxUpdate(t,e,["append","prepend",qh])){let i=[];t.childNodes.forEach(n=>{n.id||(!(n.nodeType===Node.TEXT_NODE&&n.nodeValue.trim()==="")&&n.nodeType!==Node.COMMENT_NODE&&wt(`only HTML element tags with an id are allowed inside containers with phx-update.
|
||
|
||
removing illegal node: "${(n.outerHTML||n.nodeValue).trim()}"
|
||
|
||
`),i.push(n))}),i.forEach(n=>n.remove())}},replaceRootContainer(t,e,i){let n=new Set(["id",lr,ks,o0,Po]);if(t.tagName.toLowerCase()===e.toLowerCase())return Array.from(t.attributes).filter(r=>!n.has(r.name.toLowerCase())).forEach(r=>t.removeAttribute(r.name)),Object.keys(i).filter(r=>!n.has(r.toLowerCase())).forEach(r=>t.setAttribute(r,i[r])),t;{let r=document.createElement(e);return Object.keys(i).forEach(o=>r.setAttribute(o,i[o])),n.forEach(o=>r.setAttribute(o,t.getAttribute(o))),r.innerHTML=t.innerHTML,t.replaceWith(r),r}},getSticky(t,e,i){let n=(ws.private(t,"sticky")||[]).find(([r])=>e===r);if(n){let[r,o,s]=n;return s}else return typeof i=="function"?i():i},deleteSticky(t,e){this.updatePrivate(t,"sticky",[],i=>i.filter(([n,r])=>n!==e))},putSticky(t,e,i){let n=i(t);this.updatePrivate(t,"sticky",[],r=>{let o=r.findIndex(([s])=>e===s);return o>=0?r[o]=[e,i,n]:r.push([e,i,n]),r})},applyStickyOperations(t){let e=ws.private(t,"sticky");e&&e.forEach(([i,n,r])=>this.putSticky(t,i,n))},isLocked(t){return t.hasAttribute&&t.hasAttribute(zt)}},H=ws,Pc=class{static isActive(t,e){let i=e._phxRef===void 0,r=t.getAttribute(Hg).split(",").indexOf(ii.genFileRef(e))>=0;return e.size>0&&(i||r)}static isPreflighted(t,e){return t.getAttribute(r0).split(",").indexOf(ii.genFileRef(e))>=0&&this.isActive(t,e)}static isPreflightInProgress(t){return t._preflightInProgress===!0}static markPreflightInProgress(t){t._preflightInProgress=!0}constructor(t,e,i,n){this.ref=ii.genFileRef(e),this.fileEl=t,this.file=e,this.view=i,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(Nh,this._onElUpdated),this.autoUpload=n}metadata(){return this.meta}progress(t){this._progress=Math.floor(t),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{ii.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}isCancelled(){return this._isCancelled}cancel(){this.file._preflightInProgress=!1,this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(t="failed"){this.fileEl.removeEventListener(Nh,this._onElUpdated),this.view.pushFileProgress(this.fileEl,this.ref,{error:t}),this.isAutoUpload()||ii.clearFiles(this.fileEl)}isAutoUpload(){return this.autoUpload}onDone(t){this._onDone=()=>{this.fileEl.removeEventListener(Nh,this._onElUpdated),t()}}onElUpdated(){this.fileEl.getAttribute(Hg).split(",").indexOf(this.ref)===-1&&(ii.untrackFile(this.fileEl,this.file),this.cancel())}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,relative_path:this.file.webkitRelativePath,size:this.file.size,type:this.file.type,ref:this.ref,meta:typeof this.file.meta=="function"?this.file.meta():void 0}}uploader(t){if(this.meta.uploader){let e=t[this.meta.uploader]||wt(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:e}}else return{name:"channel",callback:n8}}zipPostFlight(t){this.meta=t.entries[this.ref],this.meta||wt(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:t})}},o8=0,ii=class t0{static genFileRef(e){let i=e._phxRef;return i!==void 0?i:(e._phxRef=(o8++).toString(),e._phxRef)}static getEntryDataURL(e,i,n){let r=this.activeFiles(e).find(o=>this.genFileRef(o)===i);n(URL.createObjectURL(r))}static hasUploadsInProgress(e){let i=0;return H.findUploadInputs(e).forEach(n=>{n.getAttribute(r0)!==n.getAttribute(zD)&&i++}),i>0}static serializeUploads(e){let i=this.activeFiles(e),n={};return i.forEach(r=>{let o={path:e.name},s=e.getAttribute($r);n[s]=n[s]||[],o.ref=this.genFileRef(r),o.last_modified=r.lastModified,o.name=r.name||o.ref,o.relative_path=r.webkitRelativePath,o.type=r.type,o.size=r.size,typeof r.meta=="function"&&(o.meta=r.meta()),n[s].push(o)}),n}static clearFiles(e){e.value=null,e.removeAttribute($r),H.putPrivate(e,"files",[])}static untrackFile(e,i){H.putPrivate(e,"files",H.private(e,"files").filter(n=>!Object.is(n,i)))}static trackFiles(e,i,n){if(e.getAttribute("multiple")!==null){let r=i.filter(o=>!this.activeFiles(e).find(s=>Object.is(s,o)));H.updatePrivate(e,"files",[],o=>o.concat(r)),e.value=null}else n&&n.files.length>0&&(e.files=n.files),H.putPrivate(e,"files",i)}static activeFileInputs(e){let i=H.findUploadInputs(e);return Array.from(i).filter(n=>n.files&&this.activeFiles(n).length>0)}static activeFiles(e){return(H.private(e,"files")||[]).filter(i=>Pc.isActive(e,i))}static inputsAwaitingPreflight(e){let i=H.findUploadInputs(e);return Array.from(i).filter(n=>this.filesAwaitingPreflight(n).length>0)}static filesAwaitingPreflight(e){return this.activeFiles(e).filter(i=>!Pc.isPreflighted(e,i)&&!Pc.isPreflightInProgress(i))}static markPreflightInProgress(e){e.forEach(i=>Pc.markPreflightInProgress(i.file))}constructor(e,i,n){this.autoUpload=H.isAutoUpload(e),this.view=i,this.onComplete=n,this._entries=Array.from(t0.filesAwaitingPreflight(e)||[]).map(r=>new Pc(e,r,i,this.autoUpload)),t0.markPreflightInProgress(this._entries),this.numEntriesInProgress=this._entries.length}isAutoUpload(){return this.autoUpload}entries(){return this._entries}initAdapterUpload(e,i,n){this._entries=this._entries.map(o=>(o.isCancelled()?(this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()):(o.zipPostFlight(e),o.onDone(()=>{this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()})),o));let r=this._entries.reduce((o,s)=>{if(!s.meta)return o;let{name:a,callback:l}=s.uploader(n.uploaders);return o[a]=o[a]||{callback:l,entries:[]},o[a].entries.push(s),o},{});for(let o in r){let{callback:s,entries:a}=r[o];s(a,i,e,n)}}},s8={anyOf(t,e){return e.find(i=>t instanceof i)},isFocusable(t,e){return t instanceof HTMLAnchorElement&&t.rel!=="ignore"||t instanceof HTMLAreaElement&&t.href!==void 0||!t.disabled&&this.anyOf(t,[HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement,HTMLButtonElement])||t instanceof HTMLIFrameElement||t.tabIndex>=0&&t.getAttribute("aria-hidden")!=="true"||!e&&t.getAttribute("tabindex")!==null&&t.getAttribute("aria-hidden")!=="true"},attemptFocus(t,e){if(this.isFocusable(t,e))try{t.focus()}catch(i){}return!!document.activeElement&&document.activeElement.isSameNode(t)},focusFirstInteractive(t){let e=t.firstElementChild;for(;e;){if(this.attemptFocus(e,!0)||this.focusFirstInteractive(e))return!0;e=e.nextElementSibling}},focusFirst(t){let e=t.firstElementChild;for(;e;){if(this.attemptFocus(e)||this.focusFirst(e))return!0;e=e.nextElementSibling}},focusLast(t){let e=t.lastElementChild;for(;e;){if(this.attemptFocus(e)||this.focusLast(e))return!0;e=e.previousElementSibling}}},en=s8,aT={LiveFileUpload:{activeRefs(){return this.el.getAttribute(Hg)},preflightedRefs(){return this.el.getAttribute(r0)},mounted(){this.preflightedWas=this.preflightedRefs()},updated(){let t=this.preflightedRefs();this.preflightedWas!==t&&(this.preflightedWas=t,t===""&&this.__view().cancelSubmit(this.el.form)),this.activeRefs()===""&&(this.el.value=null),this.el.dispatchEvent(new CustomEvent(Nh))}},LiveImgPreview:{mounted(){this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute($r)),ii.getEntryDataURL(this.inputEl,this.ref,t=>{this.url=t,this.el.src=t})},destroyed(){URL.revokeObjectURL(this.url)}},FocusWrap:{mounted(){this.focusStart=this.el.firstElementChild,this.focusEnd=this.el.lastElementChild,this.focusStart.addEventListener("focus",t=>{if(!t.relatedTarget||!this.el.contains(t.relatedTarget)){let e=t.target.nextElementSibling;en.attemptFocus(e)||en.focusFirst(e)}else en.focusLast(this.el)}),this.focusEnd.addEventListener("focus",t=>{if(!t.relatedTarget||!this.el.contains(t.relatedTarget)){let e=t.target.previousElementSibling;en.attemptFocus(e)||en.focusLast(e)}else en.focusFirst(this.el)}),this.el.contains(document.activeElement)||(this.el.addEventListener("phx:show-end",()=>this.el.focus()),window.getComputedStyle(this.el).display!=="none"&&en.focusFirst(this.el))}}},lT=t=>["HTML","BODY"].indexOf(t.nodeName.toUpperCase())>=0?null:["scroll","auto"].indexOf(getComputedStyle(t).overflowY)>=0?t:lT(t.parentElement),jS=t=>t?t.scrollTop:document.documentElement.scrollTop||document.body.scrollTop,s0=t=>t?t.getBoundingClientRect().bottom:window.innerHeight||document.documentElement.clientHeight,a0=t=>t?t.getBoundingClientRect().top:0,a8=(t,e)=>{let i=t.getBoundingClientRect();return Math.ceil(i.top)>=a0(e)&&Math.ceil(i.left)>=0&&Math.floor(i.top)<=s0(e)},l8=(t,e)=>{let i=t.getBoundingClientRect();return Math.ceil(i.bottom)>=a0(e)&&Math.ceil(i.left)>=0&&Math.floor(i.bottom)<=s0(e)},WS=(t,e)=>{let i=t.getBoundingClientRect();return Math.ceil(i.top)>=a0(e)&&Math.ceil(i.left)>=0&&Math.floor(i.top)<=s0(e)};aT.InfiniteScroll={mounted(){this.scrollContainer=lT(this.el);let t=jS(this.scrollContainer),e=!1,i=500,n=null,r=this.throttle(i,(a,l)=>{n=()=>!0,this.liveSocket.js().push(this.el,a,{value:{id:l.id,_overran:!0},callback:()=>{n=null}})}),o=this.throttle(i,(a,l)=>{n=()=>l.scrollIntoView({block:"start"}),this.liveSocket.js().push(this.el,a,{value:{id:l.id},callback:()=>{n=null,window.requestAnimationFrame(()=>{WS(l,this.scrollContainer)||l.scrollIntoView({block:"start"})})}})}),s=this.throttle(i,(a,l)=>{n=()=>l.scrollIntoView({block:"end"}),this.liveSocket.js().push(this.el,a,{value:{id:l.id},callback:()=>{n=null,window.requestAnimationFrame(()=>{WS(l,this.scrollContainer)||l.scrollIntoView({block:"end"})})}})});this.onScroll=a=>{let l=jS(this.scrollContainer);if(n)return t=l,n();let c=this.el.getBoundingClientRect(),u=this.el.getAttribute(this.liveSocket.binding("viewport-top")),f=this.el.getAttribute(this.liveSocket.binding("viewport-bottom")),d=this.el.lastElementChild,O=this.el.firstElementChild,m=l<t,x=l>t;m&&u&&!e&&c.top>=0?(e=!0,r(u,O)):x&&e&&c.top<=0&&(e=!1),u&&m&&a8(O,this.scrollContainer)?o(u,O):f&&x&&l8(d,this.scrollContainer)&&s(f,d),t=l},this.scrollContainer?this.scrollContainer.addEventListener("scroll",this.onScroll):window.addEventListener("scroll",this.onScroll)},destroyed(){this.scrollContainer?this.scrollContainer.removeEventListener("scroll",this.onScroll):window.removeEventListener("scroll",this.onScroll)},throttle(t,e){let i=0,n;return(...r)=>{let o=Date.now(),s=t-(o-i);s<=0||s>t?(n&&(clearTimeout(n),n=null),i=o,e(...r)):n||(n=setTimeout(()=>{i=Date.now(),n=null,e(...r)},s))}}};var c8=aT,i0=class{static onUnlock(t,e){if(!H.isLocked(t)&&!t.closest(`[${zt}]`))return e();let i=t.closest(`[${zt}]`),n=i.closest(`[${zt}]`).getAttribute(zt);i.addEventListener(`phx:undo-lock:${n}`,()=>{e()},{once:!0})}constructor(t){this.el=t,this.loadingRef=t.hasAttribute(ja)?parseInt(t.getAttribute(ja),10):null,this.lockRef=t.hasAttribute(zt)?parseInt(t.getAttribute(zt),10):null}maybeUndo(t,e,i){if(!this.isWithin(t)){H.updatePrivate(this.el,CS,[],n=>(n.push(t),n));return}this.undoLocks(t,e,i),this.undoLoading(t,e),H.updatePrivate(this.el,CS,[],n=>n.filter(r=>{let o={detail:{ref:r,event:e},bubbles:!0,cancelable:!1};return this.loadingRef&&this.loadingRef>r&&this.el.dispatchEvent(new CustomEvent(`phx:undo-loading:${r}`,o)),this.lockRef&&this.lockRef>r&&this.el.dispatchEvent(new CustomEvent(`phx:undo-lock:${r}`,o)),r>t})),this.isFullyResolvedBy(t)&&this.el.removeAttribute(gn)}isWithin(t){return!(this.loadingRef!==null&&this.loadingRef>t&&this.lockRef!==null&&this.lockRef>t)}undoLocks(t,e,i){if(!this.isLockUndoneBy(t))return;let n=H.private(this.el,zt);n&&(i(n),H.deletePrivate(this.el,zt)),this.el.removeAttribute(zt);let r={detail:{ref:t,event:e},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-lock:${this.lockRef}`,r))}undoLoading(t,e){if(!this.isLoadingUndoneBy(t)){this.canUndoLoading(t)&&this.el.classList.contains("phx-submit-loading")&&this.el.classList.remove("phx-change-loading");return}if(this.canUndoLoading(t)){this.el.removeAttribute(ja);let i=this.el.getAttribute(Na),n=this.el.getAttribute(e0);n!==null&&(this.el.readOnly=n==="true",this.el.removeAttribute(e0)),i!==null&&(this.el.disabled=i==="true",this.el.removeAttribute(Na));let r=this.el.getAttribute(Zh);r!==null&&(this.el.innerText=r,this.el.removeAttribute(Zh));let o={detail:{ref:t,event:e},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-loading:${this.loadingRef}`,o))}tT.forEach(i=>{(i!=="phx-submit-loading"||this.canUndoLoading(t))&&H.removeClass(this.el,i)})}isLoadingUndoneBy(t){return this.loadingRef===null?!1:this.loadingRef<=t}isLockUndoneBy(t){return this.lockRef===null?!1:this.lockRef<=t}isFullyResolvedBy(t){return(this.loadingRef===null||this.loadingRef<=t)&&(this.lockRef===null||this.lockRef<=t)}canUndoLoading(t){return this.lockRef===null||this.lockRef<=t}},u8=class{constructor(t,e,i){let n=new Set,r=new Set([...e.children].map(s=>s.id)),o=[];Array.from(t.children).forEach(s=>{if(s.id&&(n.add(s.id),r.has(s.id))){let a=s.previousElementSibling&&s.previousElementSibling.id;o.push({elementId:s.id,previousElementId:a})}}),this.containerId=e.id,this.updateType=i,this.elementsToModify=o,this.elementIdsToAdd=[...r].filter(s=>!n.has(s))}perform(){let t=H.byId(this.containerId);t&&(this.elementsToModify.forEach(e=>{e.previousElementId?Ss(document.getElementById(e.previousElementId),i=>{Ss(document.getElementById(e.elementId),n=>{n.previousElementSibling&&n.previousElementSibling.id==i.id||i.insertAdjacentElement("afterend",n)})}):Ss(document.getElementById(e.elementId),i=>{i.previousElementSibling==null||t.insertAdjacentElement("afterbegin",i)})}),this.updateType=="prepend"&&this.elementIdsToAdd.reverse().forEach(e=>{Ss(document.getElementById(e),i=>t.insertAdjacentElement("afterbegin",i))}))}},VS=11;function f8(t,e){var i=e.attributes,n,r,o,s,a;if(!(e.nodeType===VS||t.nodeType===VS)){for(var l=i.length-1;l>=0;l--)n=i[l],r=n.name,o=n.namespaceURI,s=n.value,o?(r=n.localName||r,a=t.getAttributeNS(o,r),a!==s&&(n.prefix==="xmlns"&&(r=n.name),t.setAttributeNS(o,r,s))):(a=t.getAttribute(r),a!==s&&t.setAttribute(r,s));for(var c=t.attributes,u=c.length-1;u>=0;u--)n=c[u],r=n.name,o=n.namespaceURI,o?(r=n.localName||r,e.hasAttributeNS(o,r)||t.removeAttributeNS(o,r)):e.hasAttribute(r)||t.removeAttribute(r)}}var Dh,h8="http://www.w3.org/1999/xhtml",Ni=typeof document=="undefined"?void 0:document,d8=!!Ni&&"content"in Ni.createElement("template"),O8=!!Ni&&Ni.createRange&&"createContextualFragment"in Ni.createRange();function p8(t){var e=Ni.createElement("template");return e.innerHTML=t,e.content.childNodes[0]}function m8(t){Dh||(Dh=Ni.createRange(),Dh.selectNode(Ni.body));var e=Dh.createContextualFragment(t);return e.childNodes[0]}function g8(t){var e=Ni.createElement("body");return e.innerHTML=t,e.childNodes[0]}function b8(t){return t=t.trim(),d8?p8(t):O8?m8(t):g8(t)}function zh(t,e){var i=t.nodeName,n=e.nodeName,r,o;return i===n?!0:(r=i.charCodeAt(0),o=n.charCodeAt(0),r<=90&&o>=97?i===n.toUpperCase():o<=90&&r>=97?n===i.toUpperCase():!1)}function y8(t,e){return!e||e===h8?Ni.createElement(t):Ni.createElementNS(e,t)}function x8(t,e){for(var i=t.firstChild;i;){var n=i.nextSibling;e.appendChild(i),i=n}return e}function Yg(t,e,i){t[i]!==e[i]&&(t[i]=e[i],t[i]?t.setAttribute(i,""):t.removeAttribute(i))}var ZS={OPTION:function(t,e){var i=t.parentNode;if(i){var n=i.nodeName.toUpperCase();n==="OPTGROUP"&&(i=i.parentNode,n=i&&i.nodeName.toUpperCase()),n==="SELECT"&&!i.hasAttribute("multiple")&&(t.hasAttribute("selected")&&!e.selected&&(t.setAttribute("selected","selected"),t.removeAttribute("selected")),i.selectedIndex=-1)}Yg(t,e,"selected")},INPUT:function(t,e){Yg(t,e,"checked"),Yg(t,e,"disabled"),t.value!==e.value&&(t.value=e.value),e.hasAttribute("value")||t.removeAttribute("value")},TEXTAREA:function(t,e){var i=e.value;t.value!==i&&(t.value=i);var n=t.firstChild;if(n){var r=n.nodeValue;if(r==i||!i&&r==t.placeholder)return;n.nodeValue=i}},SELECT:function(t,e){if(!e.hasAttribute("multiple")){for(var i=-1,n=0,r=t.firstChild,o,s;r;)if(s=r.nodeName&&r.nodeName.toUpperCase(),s==="OPTGROUP")o=r,r=o.firstChild,r||(r=o.nextSibling,o=null);else{if(s==="OPTION"){if(r.hasAttribute("selected")){i=n;break}n++}r=r.nextSibling,!r&&o&&(r=o.nextSibling,o=null)}t.selectedIndex=i}}},Qc=1,BS=11,YS=3,FS=8;function Co(){}function v8(t){if(t)return t.getAttribute&&t.getAttribute("id")||t.id}function w8(t){return function(i,n,r){if(r||(r={}),typeof n=="string")if(i.nodeName==="#document"||i.nodeName==="HTML"||i.nodeName==="BODY"){var o=n;n=Ni.createElement("html"),n.innerHTML=o}else n=b8(n);else n.nodeType===BS&&(n=n.firstElementChild);var s=r.getNodeKey||v8,a=r.onBeforeNodeAdded||Co,l=r.onNodeAdded||Co,c=r.onBeforeElUpdated||Co,u=r.onElUpdated||Co,f=r.onBeforeNodeDiscarded||Co,d=r.onNodeDiscarded||Co,O=r.onBeforeElChildrenUpdated||Co,m=r.skipFromChildren||Co,x=r.addChild||function(j,ue){return j.appendChild(ue)},v=r.childrenOnly===!0,w=Object.create(null),T=[];function Q(j){T.push(j)}function I(j,ue){if(j.nodeType===Qc)for(var Z=j.firstChild;Z;){var C=void 0;ue&&(C=s(Z))?Q(C):(d(Z),Z.firstChild&&I(Z,ue)),Z=Z.nextSibling}}function z(j,ue,Z){f(j)!==!1&&(ue&&ue.removeChild(j),d(j),I(j,Z))}function $(j){if(j.nodeType===Qc||j.nodeType===BS)for(var ue=j.firstChild;ue;){var Z=s(ue);Z&&(w[Z]=ue),$(ue),ue=ue.nextSibling}}$(i);function X(j){l(j);for(var ue=j.firstChild;ue;){var Z=ue.nextSibling,C=s(ue);if(C){var W=w[C];W&&zh(ue,W)?(ue.parentNode.replaceChild(W,ue),K(W,ue)):X(ue)}else X(ue);ue=Z}}function Y(j,ue,Z){for(;ue;){var C=ue.nextSibling;(Z=s(ue))?Q(Z):z(ue,j,!0),ue=C}}function K(j,ue,Z){var C=s(ue);if(C&&delete w[C],!Z){var W=c(j,ue);if(W===!1||(W instanceof HTMLElement&&(j=W,$(j)),t(j,ue),u(j),O(j,ue)===!1))return}j.nodeName!=="TEXTAREA"?N(j,ue):ZS.TEXTAREA(j,ue)}function N(j,ue){var Z=m(j,ue),C=ue.firstChild,W=j.firstChild,se,D,Ne,We,Ve;e:for(;C;){for(We=C.nextSibling,se=s(C);!Z&&W;){if(Ne=W.nextSibling,C.isSameNode&&C.isSameNode(W)){C=We,W=Ne;continue e}D=s(W);var Ct=W.nodeType,Xe=void 0;if(Ct===C.nodeType&&(Ct===Qc?(se?se!==D&&((Ve=w[se])?Ne===Ve?Xe=!1:(j.insertBefore(Ve,W),D?Q(D):z(W,j,!0),W=Ve,D=s(W)):Xe=!1):D&&(Xe=!1),Xe=Xe!==!1&&zh(W,C),Xe&&K(W,C)):(Ct===YS||Ct==FS)&&(Xe=!0,W.nodeValue!==C.nodeValue&&(W.nodeValue=C.nodeValue))),Xe){C=We,W=Ne;continue e}D?Q(D):z(W,j,!0),W=Ne}if(se&&(Ve=w[se])&&zh(Ve,C))Z||x(j,Ve),K(Ve,C);else{var Lt=a(C);Lt!==!1&&(Lt&&(C=Lt),C.actualize&&(C=C.actualize(j.ownerDocument||Ni)),x(j,C),X(C))}C=We,W=Ne}Y(j,W,D);var It=ZS[j.nodeName];It&&It(j,ue)}var te=i,oe=te.nodeType,re=n.nodeType;if(!v){if(oe===Qc)re===Qc?zh(i,n)||(d(i),te=x8(i,y8(n.nodeName,n.namespaceURI))):te=n;else if(oe===YS||oe===FS){if(re===oe)return te.nodeValue!==n.nodeValue&&(te.nodeValue=n.nodeValue),te;te=n}}if(te===n)d(i);else{if(n.isSameNode&&n.isSameNode(te))return;if(K(te,n,v),T)for(var de=0,pe=T.length;de<pe;de++){var ve=w[T[de]];ve&&z(ve,ve.parentNode,!1)}}return!v&&te!==i&&i.parentNode&&(te.actualize&&(te=te.actualize(i.ownerDocument||Ni)),i.parentNode.replaceChild(te,i)),te}}var k8=w8(f8),n0=k8,Uh=class{constructor(t,e,i,n,r,o,s={}){this.view=t,this.liveSocket=t.liveSocket,this.container=e,this.id=i,this.rootID=t.root.id,this.html=n,this.streams=r,this.streamInserts={},this.streamComponentRestore={},this.targetCID=o,this.cidPatch=_r(this.targetCID),this.pendingRemoves=[],this.phxRemove=this.liveSocket.binding("remove"),this.targetContainer=this.isCIDPatch()?this.targetCIDContainer(n):e,this.callbacks={beforeadded:[],beforeupdated:[],beforephxChildAdded:[],afteradded:[],afterupdated:[],afterdiscarded:[],afterphxChildAdded:[],aftertransitionsDiscarded:[]},this.withChildren=s.withChildren||s.undoRef||!1,this.undoRef=s.undoRef}before(t,e){this.callbacks[`before${t}`].push(e)}after(t,e){this.callbacks[`after${t}`].push(e)}trackBefore(t,...e){this.callbacks[`before${t}`].forEach(i=>i(...e))}trackAfter(t,...e){this.callbacks[`after${t}`].forEach(i=>i(...e))}markPrunableContentForRemoval(){let t=this.liveSocket.binding(Bh);H.all(this.container,`[${t}=append] > *, [${t}=prepend] > *`,e=>{e.setAttribute(QS,"")})}perform(t){let{view:e,liveSocket:i,html:n,container:r}=this,o=this.targetContainer;if(this.isCIDPatch()&&!this.targetContainer)return;if(this.isCIDPatch()){let Q=o.closest(`[${zt}]`);if(Q){let I=H.private(Q,zt);I&&(o=I.querySelector(`[data-phx-component="${this.targetCID}"]`))}}let s=i.getActiveElement(),{selectionStart:a,selectionEnd:l}=s&&H.hasSelectionRange(s)?s:{},c=i.binding(Bh),u=i.binding(Gg),f=i.binding(Kg),d=i.binding(UD),O=[],m=[],x=[],v=[],w=null,T=(Q,I,z=this.withChildren)=>{let $={childrenOnly:Q.getAttribute(Ar)===null&&!z,getNodeKey:X=>H.isPhxDestroyed(X)?null:t?X.id:X.id||X.getAttribute&&X.getAttribute(rT),skipFromChildren:X=>X.getAttribute(c)===qh,addChild:(X,Y)=>{let{ref:K,streamAt:N}=this.getStreamInsert(Y);if(K===void 0)return X.appendChild(Y);if(this.setStreamRef(Y,K),N===0)X.insertAdjacentElement("afterbegin",Y);else if(N===-1){let te=X.lastElementChild;if(te&&!te.hasAttribute(Sc)){let oe=Array.from(X.children).find(re=>!re.hasAttribute(Sc));X.insertBefore(Y,oe)}else X.appendChild(Y)}else if(N>0){let te=Array.from(X.children)[N];X.insertBefore(Y,te)}},onBeforeNodeAdded:X=>{var K;if((K=this.getStreamInsert(X))!=null&&K.updateOnly&&!this.streamComponentRestore[X.id])return!1;H.maintainPrivateHooks(X,X,u,f),this.trackBefore("added",X);let Y=X;return this.streamComponentRestore[X.id]&&(Y=this.streamComponentRestore[X.id],delete this.streamComponentRestore[X.id],T(Y,X,!0)),Y},onNodeAdded:X=>{X.getAttribute&&this.maybeReOrderStream(X,!0),H.isPortalTemplate(X)&&v.push(()=>this.teleport(X,T)),X instanceof HTMLImageElement&&X.srcset?X.srcset=X.srcset:X instanceof HTMLVideoElement&&X.autoplay&&X.play(),H.isNowTriggerFormExternal(X,d)&&(w=X),(H.isPhxChild(X)&&e.ownsElement(X)||H.isPhxSticky(X)&&e.ownsElement(X.parentNode))&&this.trackAfter("phxChildAdded",X),X.nodeName==="SCRIPT"&&X.hasAttribute(jh)&&this.handleRuntimeHook(X,I),O.push(X)},onNodeDiscarded:X=>this.onNodeDiscarded(X),onBeforeNodeDiscarded:X=>{if(X.getAttribute&&X.getAttribute(QS)!==null)return!0;if(X.parentElement!==null&&X.id&&H.isPhxUpdate(X.parentElement,c,[qh,"append","prepend"])||X.getAttribute&&X.getAttribute(Wa)||this.maybePendingRemove(X)||this.skipCIDSibling(X))return!1;if(H.isPortalTemplate(X)){let Y=document.getElementById(X.content.firstElementChild.id);Y&&(Y.remove(),$.onNodeDiscarded(Y),this.view.dropPortalElementId(Y.id))}return!0},onElUpdated:X=>{H.isNowTriggerFormExternal(X,d)&&(w=X),m.push(X),this.maybeReOrderStream(X,!1)},onBeforeElUpdated:(X,Y)=>{if(X.id&&X.isSameNode(Q)&&X.id!==Y.id)return $.onNodeDiscarded(X),X.replaceWith(Y),$.onNodeAdded(Y);if(H.syncPendingAttrs(X,Y),H.maintainPrivateHooks(X,Y,u,f),H.cleanChildNodes(Y,c),this.skipCIDSibling(Y))return this.maybeReOrderStream(X),!1;if(H.isPhxSticky(X))return[lr,ks,Po].map(te=>[te,X.getAttribute(te),Y.getAttribute(te)]).forEach(([te,oe,re])=>{re&&oe!==re&&X.setAttribute(te,re)}),!1;if(H.isIgnored(X,c)||X.form&&X.form.isSameNode(w))return this.trackBefore("updated",X,Y),H.mergeAttrs(X,Y,{isIgnored:H.isIgnored(X,c)}),m.push(X),H.applyStickyOperations(X),!1;if(X.type==="number"&&X.validity&&X.validity.badInput)return!1;let K=s&&X.isSameNode(s)&&H.isFormInput(X),N=K&&this.isChangedSelect(X,Y);if(X.hasAttribute(gn)){let te=new i0(X);if(te.lockRef&&(!this.undoRef||!te.isLockUndoneBy(this.undoRef))){H.isUploadInput(X)&&(H.mergeAttrs(X,Y,{isIgnored:!0}),this.trackBefore("updated",X,Y),m.push(X)),H.applyStickyOperations(X);let re=X.hasAttribute(zt)?H.private(X,zt)||X.cloneNode(!0):null;re&&(H.putPrivate(X,zt,re),K||(X=re))}}if(H.isPhxChild(Y)){let te=X.getAttribute(lr);return H.mergeAttrs(X,Y,{exclude:[ks]}),te!==""&&X.setAttribute(lr,te),X.setAttribute(Po,this.rootID),H.applyStickyOperations(X),!1}return this.undoRef&&H.private(Y,zt)&&H.putPrivate(X,zt,H.private(Y,zt)),H.copyPrivates(Y,X),H.isPortalTemplate(Y)?(v.push(()=>this.teleport(Y,T)),!1):K&&X.type!=="hidden"&&!N?(this.trackBefore("updated",X,Y),H.mergeFocusedInput(X,Y),H.syncAttrsToProps(X),m.push(X),H.applyStickyOperations(X),!1):(N&&X.blur(),H.isPhxUpdate(Y,c,["append","prepend"])&&x.push(new u8(X,Y,Y.getAttribute(c))),H.syncAttrsToProps(Y),H.applyStickyOperations(Y),this.trackBefore("updated",X,Y),X)}};n0(Q,I,$)};if(this.trackBefore("added",r),this.trackBefore("updated",r,r),i.time("morphdom",()=>{this.streams.forEach(([Q,I,z,$])=>{I.forEach(([X,Y,K,N])=>{this.streamInserts[X]={ref:Q,streamAt:Y,limit:K,reset:$,updateOnly:N}}),$!==void 0&&H.all(r,`[${Sc}="${Q}"]`,X=>{this.removeStreamChildElement(X)}),z.forEach(X=>{let Y=r.querySelector(`[id="${X}"]`);Y&&this.removeStreamChildElement(Y)})}),t&&H.all(this.container,`[${c}=${qh}]`).filter(Q=>this.view.ownsElement(Q)).forEach(Q=>{Array.from(Q.children).forEach(I=>{this.removeStreamChildElement(I,!0)})}),T(o,n),v.forEach(Q=>Q()),this.view.portalElementIds.forEach(Q=>{let I=document.getElementById(Q);I&&(document.getElementById(I.getAttribute(Wg))||(I.remove(),this.onNodeDiscarded(I),this.view.dropPortalElementId(Q)))})}),i.isDebugEnabled()&&(JD(),e8(this.streamInserts),Array.from(document.querySelectorAll("input[name=id]")).forEach(Q=>{Q instanceof HTMLInputElement&&Q.form&&console.error(`Detected an input with name="id" inside a form! This will cause problems when patching the DOM.
|
||
`,Q)})),x.length>0&&i.time("post-morph append/prepend restoration",()=>{x.forEach(Q=>Q.perform())}),i.silenceEvents(()=>H.restoreFocus(s,a,l)),H.dispatchEvent(document,"phx:update"),O.forEach(Q=>this.trackAfter("added",Q)),m.forEach(Q=>this.trackAfter("updated",Q)),this.transitionPendingRemoves(),w){i.unload();let Q=H.private(w,"submitter");if(Q&&Q.name&&o.contains(Q)){let I=document.createElement("input");I.type="hidden";let z=Q.getAttribute("form");z&&I.setAttribute("form",z),I.name=Q.name,I.value=Q.value,Q.parentElement.insertBefore(I,Q)}Object.getPrototypeOf(w).submit.call(w)}return!0}onNodeDiscarded(t){(H.isPhxChild(t)||H.isPhxSticky(t))&&this.liveSocket.destroyViewByEl(t),this.trackAfter("discarded",t)}maybePendingRemove(t){return t.getAttribute&&t.getAttribute(this.phxRemove)!==null?(this.pendingRemoves.push(t),!0):!1}removeStreamChildElement(t,e=!1){!e&&!this.view.ownsElement(t)||(this.streamInserts[t.id]?(this.streamComponentRestore[t.id]=t,t.remove()):this.maybePendingRemove(t)||(t.remove(),this.onNodeDiscarded(t)))}getStreamInsert(t){return(t.id?this.streamInserts[t.id]:{})||{}}setStreamRef(t,e){H.putSticky(t,Sc,i=>i.setAttribute(Sc,e))}maybeReOrderStream(t,e){let{ref:i,streamAt:n,reset:r}=this.getStreamInsert(t);if(n!==void 0&&(this.setStreamRef(t,i),!(!r&&!e)&&t.parentElement)){if(n===0)t.parentElement.insertBefore(t,t.parentElement.firstElementChild);else if(n>0){let o=Array.from(t.parentElement.children),s=o.indexOf(t);if(n>=o.length-1)t.parentElement.appendChild(t);else{let a=o[n];s>n?t.parentElement.insertBefore(t,a):t.parentElement.insertBefore(t,a.nextElementSibling)}}this.maybeLimitStream(t)}}maybeLimitStream(t){let{limit:e}=this.getStreamInsert(t),i=e!==null&&Array.from(t.parentElement.children);e&&e<0&&i.length>e*-1?i.slice(0,i.length+e).forEach(n=>this.removeStreamChildElement(n)):e&&e>=0&&i.length>e&&i.slice(e).forEach(n=>this.removeStreamChildElement(n))}transitionPendingRemoves(){let{pendingRemoves:t,liveSocket:e}=this;t.length>0&&e.transitionRemoves(t,()=>{t.forEach(i=>{let n=H.firstPhxChild(i);n&&e.destroyViewByEl(n),i.remove()}),this.trackAfter("transitionsDiscarded",t)})}isChangedSelect(t,e){return!(t instanceof HTMLSelectElement)||t.multiple?!1:t.options.length!==e.options.length?!0:(e.value=t.value,!t.isEqualNode(e))}isCIDPatch(){return this.cidPatch}skipCIDSibling(t){return t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute(nT)}targetCIDContainer(t){if(!this.isCIDPatch())return;let[e,...i]=H.findComponentNodeList(this.view.id,this.targetCID);return i.length===0&&H.childNodeLength(t)===1?e:e&&e.parentNode}indexOf(t,e){return Array.from(t.children).indexOf(e)}teleport(t,e){let i=t.getAttribute(sT),n=document.querySelector(i);if(!n)throw new Error("portal target with selector "+i+" not found");let r=t.content.firstElementChild;if(this.skipCIDSibling(r))return;if(!(r!=null&&r.id))throw new Error("phx-portal template must have a single root element with ID!");let o=document.getElementById(r.id),s;o?(n.contains(o)||n.appendChild(o),s=o):(s=document.createElement(r.tagName),n.appendChild(s)),r.setAttribute(Wa,this.view.id),r.setAttribute(Wg,t.id),e(s,r,!0),r.removeAttribute(Wa),r.removeAttribute(Wg),this.view.pushPortalElementId(r.id)}handleRuntimeHook(t,e){let i=t.getAttribute(jh),n=t.hasAttribute("nonce")?t.getAttribute("nonce"):null;if(t.hasAttribute("nonce")){let o=document.createElement("template");o.innerHTML=e,n=o.content.querySelector(`script[${jh}="${CSS.escape(i)}"]`).getAttribute("nonce")}let r=document.createElement("script");r.textContent=t.textContent,H.mergeAttrs(r,t,{isIgnored:!1}),n&&(r.nonce=n),t.replaceWith(r),t=r}},S8=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),T8=new Set(["'",'"']),HS=(t,e,i)=>{let n=0,r=!1,o,s,a,l,c,u,f=t.match(/^(\s*(?:<!--.*?-->\s*)*)<([^\s\/>]+)/);if(f===null)throw new Error(`malformed html ${t}`);for(n=f[0].length,o=f[1],a=f[2],l=n,n;n<t.length&&t.charAt(n)!==">";n++)if(t.charAt(n)==="="){let m=t.slice(n-3,n)===" id";n++;let x=t.charAt(n);if(T8.has(x)){let v=n;for(n++,n;n<t.length&&t.charAt(n)!==x;n++);if(m){c=t.slice(v+1,n);break}}}let d=t.length-1;for(r=!1;d>=o.length+a.length;){let m=t.charAt(d);if(r)m==="-"&&t.slice(d-3,d)==="<!-"?(r=!1,d-=4):d-=1;else if(m===">"&&t.slice(d-2,d)==="--")r=!0,d-=3;else{if(m===">")break;d-=1}}s=t.slice(d+1,t.length);let O=Object.keys(e).map(m=>e[m]===!0?m:`${m}="${e[m]}"`).join(" ");if(i){let m=c?` id="${c}"`:"";S8.has(a)?u=`<${a}${m}${O===""?"":" "}${O}/>`:u=`<${a}${m}${O===""?"":" "}${O}></${a}>`}else{let m=t.slice(l,d+1);u=`<${a}${O===""?"":" "}${O}${m}`}return[u,o,s]},GS=class{static extract(t){let{[MS]:e,[US]:i,[NS]:n}=t;return delete t[MS],delete t[US],delete t[NS],{diff:t,title:n,reply:e||null,events:i||[]}}constructor(t,e){this.viewId=t,this.rendered={},this.magicId=0,this.mergeDiff(e)}parentViewId(){return this.viewId}toString(t){let{buffer:e,streams:i}=this.recursiveToString(this.rendered,this.rendered[Pi],t,!0,{});return{buffer:e,streams:i}}recursiveToString(t,e=t[Pi],i,n,r){i=i?new Set(i):null;let o={buffer:"",components:e,onlyCids:i,streams:new Set};return this.toOutputBuffer(t,null,o,n,r),{buffer:o.buffer,streams:o.streams}}componentCIDs(t){return Object.keys(t[Pi]||{}).map(e=>parseInt(e))}isComponentOnlyDiff(t){return t[Pi]?Object.keys(t).length===1:!1}getComponent(t,e){return t[Pi][e]}resetRender(t){this.rendered[Pi][t]&&(this.rendered[Pi][t].reset=!0)}mergeDiff(t){let e=t[Pi],i={};if(delete t[Pi],this.rendered=this.mutableMerge(this.rendered,t),this.rendered[Pi]=this.rendered[Pi]||{},e){let n=this.rendered[Pi];for(let r in e)e[r]=this.cachedFindComponent(r,e[r],n,e,i);for(let r in e)n[r]=e[r];t[Pi]=e}}cachedFindComponent(t,e,i,n,r){if(r[t])return r[t];{let o,s,a=e[mn];if(_r(a)){let l;a>0?l=this.cachedFindComponent(a,n[a],i,n,r):l=i[-a],s=l[mn],o=this.cloneMerge(l,e,!0),o[mn]=s}else o=e[mn]!==void 0||i[t]===void 0?e:this.cloneMerge(i[t],e,!1);return r[t]=o,o}}mutableMerge(t,e){return e[mn]!==void 0?e:(this.doMutableMerge(t,e),t)}doMutableMerge(t,e){if(e[Dt])this.mergeKeyed(t,e);else for(let i in e){let n=e[i],r=t[i];Ua(n)&&n[mn]===void 0&&Ua(r)?this.doMutableMerge(r,n):t[i]=n}t[Bg]&&(t.newRender=!0)}clone(t){return"structuredClone"in window?structuredClone(t):JSON.parse(JSON.stringify(t))}mergeKeyed(t,e){let i=this.clone(t);if(Object.entries(e[Dt]).forEach(([n,r])=>{if(n!==ar)if(Array.isArray(r)){let[o,s]=r;t[Dt][n]=i[Dt][o],this.doMutableMerge(t[Dt][n],s)}else if(typeof r=="number"){let o=r;t[Dt][n]=i[Dt][o]}else typeof r=="object"&&(t[Dt][n]||(t[Dt][n]={}),this.doMutableMerge(t[Dt][n],r))}),e[Dt][ar]<t[Dt][ar])for(let n=e[Dt][ar];n<t[Dt][ar];n++)delete t[Dt][n];t[Dt][ar]=e[Dt][ar],e[za]&&(t[za]=e[za]),e[Eo]&&(t[Eo]=e[Eo])}cloneMerge(t,e,i){let n=F(F({},t),e);for(let r in n){let o=e[r],s=t[r];Ua(o)&&o[mn]===void 0&&Ua(s)?n[r]=this.cloneMerge(s,o,i):o===void 0&&Ua(s)&&(n[r]=this.cloneMerge(s,{},i))}return i?(delete n.magicId,delete n.newRender):t[Bg]&&(n.newRender=!0),n}componentToString(t){let{buffer:e,streams:i}=this.recursiveCIDToString(this.rendered[Pi],t,null),[n,r,o]=HS(e,{});return{buffer:n,streams:i}}pruneCIDs(t){t.forEach(e=>delete this.rendered[Pi][e])}get(){return this.rendered}isNewFingerprint(t={}){return!!t[mn]}templateStatic(t,e){return typeof t=="number"?e[t]:t}nextMagicID(){return this.magicId++,`m${this.magicId}-${this.parentViewId()}`}toOutputBuffer(t,e,i,n,r={}){if(t[Dt])return this.comprehensionToBuffer(t,e,i,n);t[Eo]&&(e=t[Eo],delete t[Eo]);let{[mn]:o}=t;o=this.templateStatic(o,e),t[mn]=o;let s=t[Bg],a=i.buffer;s&&(i.buffer=""),n&&s&&!t.magicId&&(t.newRender=!0,t.magicId=this.nextMagicID()),i.buffer+=o[0];for(let l=1;l<o.length;l++)this.dynamicToBuffer(t[l-1],e,i,n),i.buffer+=o[l];if(s){let l=!1,c;n||t.magicId?(l=n&&!t.newRender,c=F({[rT]:t.magicId},r)):c=r,l&&(c[nT]=!0);let[u,f,d]=HS(i.buffer,c,l);t.newRender=!1,i.buffer=a+f+u+d}}comprehensionToBuffer(t,e,i,n){let r=e||t[Eo],o=this.templateStatic(t[mn],e);t[mn]=o,delete t[Eo];for(let s=0;s<t[Dt][ar];s++){i.buffer+=o[0];for(let a=1;a<o.length;a++)this.dynamicToBuffer(t[Dt][s][a-1],r,i,n),i.buffer+=o[a]}if(t[za]){let s=t[za],[a,l,c,u]=s||[null,{},[],null];s!==void 0&&(t[Dt][ar]>0||c.length>0||u)&&(delete t[za],t[Dt]={[ar]:0},i.streams.add(s))}}dynamicToBuffer(t,e,i,n){if(typeof t=="number"){let{buffer:r,streams:o}=this.recursiveCIDToString(i.components,t,i.onlyCids);i.buffer+=r,i.streams=new Set([...i.streams,...o])}else Ua(t)?this.toOutputBuffer(t,e,i,n,{}):i.buffer+=t}recursiveCIDToString(t,e,i){let n=t[e]||wt(`no component for CID ${e}`,t),r={[Ar]:e,[qa]:this.viewId},o=i&&!i.has(e);n.newRender=!o,n.magicId=`c${e}-${this.parentViewId()}`;let s=!n.reset,{buffer:a,streams:l}=this.recursiveToString(n,t,i,s,r);return delete n.reset,{buffer:a,streams:l}}},KS=[],JS=200,E8={exec(t,e,i,n,r,o){let[s,a]=o||[null,{callback:o&&o.callback}];(i.charAt(0)==="["?JSON.parse(i):[[s,a]]).forEach(([c,u])=>{c===s&&(u=F(F({},a),u),u.callback=u.callback||a.callback),this.filterToEls(n.liveSocket,r,u).forEach(f=>{this[`exec_${c}`](t,e,i,n,r,f,u)})})},isVisible(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length>0)},isInViewport(t){let e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth;return e.right>0&&e.bottom>0&&e.left<n&&e.top<i},exec_exec(t,e,i,n,r,o,{attr:s,to:a}){let l=o.getAttribute(s);if(!l)throw new Error(`expected ${s} to contain JS command on "${a}"`);n.liveSocket.execJS(o,l,e)},exec_dispatch(t,e,i,n,r,o,{event:s,detail:a,bubbles:l,blocking:c}){if(a=a||{},a.dispatcher=r,c){let u=new Promise((f,d)=>{a.done=f});n.liveSocket.asyncTransition(u)}H.dispatchEvent(o,s,{detail:a,bubbles:l})},exec_push(t,e,i,n,r,o,s){let{event:a,data:l,target:c,page_loading:u,loading:f,value:d,dispatcher:O,callback:m}=s,x={loading:f,value:d,target:c,page_loading:!!u,originalEvent:t},v=e==="change"&&O?O:r,w=c||v.getAttribute(n.binding("target"))||v,T=(Q,I)=>{if(Q.isConnected())if(e==="change"){let{newCid:z,_target:$}=s;$=$||(H.isFormInput(r)?r.name:void 0),$&&(x._target=$),Q.pushInput(r,I,z,a||i,x,m)}else if(e==="submit"){let{submitter:z}=s;Q.submitForm(r,I,a||i,z,x,m)}else Q.pushEvent(e,r,I,a||i,l,x,m)};s.targetView&&s.targetCtx?T(s.targetView,s.targetCtx):n.withinTargets(w,T)},exec_navigate(t,e,i,n,r,o,{href:s,replace:a}){n.liveSocket.historyRedirect(t,s,a?"replace":"push",null,r)},exec_patch(t,e,i,n,r,o,{href:s,replace:a}){n.liveSocket.pushHistoryPatch(t,s,a?"replace":"push",r)},exec_focus(t,e,i,n,r,o){en.attemptFocus(o),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>en.attemptFocus(o))})},exec_focus_first(t,e,i,n,r,o){en.focusFirstInteractive(o)||en.focusFirst(o),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>en.focusFirstInteractive(o)||en.focusFirst(o))})},exec_push_focus(t,e,i,n,r,o){KS.push(o||r)},exec_pop_focus(t,e,i,n,r,o){let s=KS.pop();s&&(s.focus(),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>s.focus())}))},exec_add_class(t,e,i,n,r,o,{names:s,transition:a,time:l,blocking:c}){this.addOrRemoveClasses(o,s,[],a,l,n,c)},exec_remove_class(t,e,i,n,r,o,{names:s,transition:a,time:l,blocking:c}){this.addOrRemoveClasses(o,[],s,a,l,n,c)},exec_toggle_class(t,e,i,n,r,o,{names:s,transition:a,time:l,blocking:c}){this.toggleClasses(o,s,a,l,n,c)},exec_toggle_attr(t,e,i,n,r,o,{attr:[s,a,l]}){this.toggleAttr(o,s,a,l)},exec_ignore_attrs(t,e,i,n,r,o,{attrs:s}){this.ignoreAttrs(o,s)},exec_transition(t,e,i,n,r,o,{time:s,transition:a,blocking:l}){this.addOrRemoveClasses(o,[],[],a,s,n,l)},exec_toggle(t,e,i,n,r,o,{display:s,ins:a,outs:l,time:c,blocking:u}){this.toggle(e,n,o,s,a,l,c,u)},exec_show(t,e,i,n,r,o,{display:s,transition:a,time:l,blocking:c}){this.show(e,n,o,s,a,l,c)},exec_hide(t,e,i,n,r,o,{display:s,transition:a,time:l,blocking:c}){this.hide(e,n,o,s,a,l,c)},exec_set_attr(t,e,i,n,r,o,{attr:[s,a]}){this.setOrRemoveAttrs(o,[[s,a]],[])},exec_remove_attr(t,e,i,n,r,o,{attr:s}){this.setOrRemoveAttrs(o,[],[s])},ignoreAttrs(t,e){H.putPrivate(t,"JS:ignore_attrs",{apply:(i,n)=>{Array.from(i.attributes).forEach(r=>{e.some(o=>r.name==o||o.includes("*")&&r.name.match(o)!=null)&&n.setAttribute(r.name,r.value)})}})},onBeforeElUpdated(t,e){let i=H.private(t,"JS:ignore_attrs");i&&i.apply(t,e)},show(t,e,i,n,r,o,s){this.isVisible(i)||this.toggle(t,e,i,n,r,null,o,s)},hide(t,e,i,n,r,o,s){this.isVisible(i)&&this.toggle(t,e,i,n,null,r,o,s)},toggle(t,e,i,n,r,o,s,a){s=s||JS;let[l,c,u]=r||[[],[],[]],[f,d,O]=o||[[],[],[]];if(l.length>0||f.length>0)if(this.isVisible(i)){let m=()=>{this.addOrRemoveClasses(i,d,l.concat(c).concat(u)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,f,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(i,O,d))})},x=()=>{this.addOrRemoveClasses(i,[],f.concat(O)),H.putSticky(i,"toggle",v=>v.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))};i.dispatchEvent(new Event("phx:hide-start")),a===!1?(m(),setTimeout(x,s)):e.transition(s,m,x)}else{if(t==="remove")return;let m=()=>{this.addOrRemoveClasses(i,c,f.concat(d).concat(O));let v=n||this.defaultDisplay(i);window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,l,[]),window.requestAnimationFrame(()=>{H.putSticky(i,"toggle",w=>w.style.display=v),this.addOrRemoveClasses(i,u,c)})})},x=()=>{this.addOrRemoveClasses(i,[],l.concat(u)),i.dispatchEvent(new Event("phx:show-end"))};i.dispatchEvent(new Event("phx:show-start")),a===!1?(m(),setTimeout(x,s)):e.transition(s,m,x)}else this.isVisible(i)?window.requestAnimationFrame(()=>{i.dispatchEvent(new Event("phx:hide-start")),H.putSticky(i,"toggle",m=>m.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))}):window.requestAnimationFrame(()=>{i.dispatchEvent(new Event("phx:show-start"));let m=n||this.defaultDisplay(i);H.putSticky(i,"toggle",x=>x.style.display=m),i.dispatchEvent(new Event("phx:show-end"))})},toggleClasses(t,e,i,n,r,o){window.requestAnimationFrame(()=>{let[s,a]=H.getSticky(t,"classes",[[],[]]),l=e.filter(u=>s.indexOf(u)<0&&!t.classList.contains(u)),c=e.filter(u=>a.indexOf(u)<0&&t.classList.contains(u));this.addOrRemoveClasses(t,l,c,i,n,r,o)})},toggleAttr(t,e,i,n){t.hasAttribute(e)?n!==void 0?t.getAttribute(e)===i?this.setOrRemoveAttrs(t,[[e,n]],[]):this.setOrRemoveAttrs(t,[[e,i]],[]):this.setOrRemoveAttrs(t,[],[e]):this.setOrRemoveAttrs(t,[[e,i]],[])},addOrRemoveClasses(t,e,i,n,r,o,s){r=r||JS;let[a,l,c]=n||[[],[],[]];if(a.length>0){let u=()=>{this.addOrRemoveClasses(t,l,[].concat(a).concat(c)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(t,a,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(t,c,l))})},f=()=>this.addOrRemoveClasses(t,e.concat(c),i.concat(a).concat(l));s===!1?(u(),setTimeout(f,r)):o.transition(r,u,f);return}window.requestAnimationFrame(()=>{let[u,f]=H.getSticky(t,"classes",[[],[]]),d=e.filter(v=>u.indexOf(v)<0&&!t.classList.contains(v)),O=i.filter(v=>f.indexOf(v)<0&&t.classList.contains(v)),m=u.filter(v=>i.indexOf(v)<0).concat(d),x=f.filter(v=>e.indexOf(v)<0).concat(O);H.putSticky(t,"classes",v=>(v.classList.remove(...x),v.classList.add(...m),[m,x]))})},setOrRemoveAttrs(t,e,i){let[n,r]=H.getSticky(t,"attrs",[[],[]]),o=e.map(([l,c])=>l).concat(i),s=n.filter(([l,c])=>!o.includes(l)).concat(e),a=r.filter(l=>!o.includes(l)).concat(i);H.putSticky(t,"attrs",l=>(a.forEach(c=>l.removeAttribute(c)),s.forEach(([c,u])=>l.setAttribute(c,u)),[s,a]))},hasAllClasses(t,e){return e.every(i=>t.classList.contains(i))},isToggledOut(t,e){return!this.isVisible(t)||this.hasAllClasses(t,e)},filterToEls(t,e,{to:i}){let n=()=>{if(typeof i=="string")return document.querySelectorAll(i);if(i.closest){let r=e.closest(i.closest);return r?[r]:[]}else if(i.inner)return e.querySelectorAll(i.inner)};return i?t.jsQuerySelectorAll(e,i,n):[e]},defaultDisplay(t){return{tr:"table-row",td:"table-cell"}[t.tagName.toLowerCase()]||"block"},transitionClasses(t){if(!t)return null;let[e,i,n]=Array.isArray(t)?t:[t.split(" "),[],[]];return e=Array.isArray(e)?e:e.split(" "),i=Array.isArray(i)?i:i.split(" "),n=Array.isArray(n)?n:n.split(" "),[e,i,n]}},rt=E8,cT=(t,e)=>({exec(i,n){t.execJS(i,n,e)},show(i,n={}){let r=t.owner(i);rt.show(e,r,i,n.display,rt.transitionClasses(n.transition),n.time,n.blocking)},hide(i,n={}){let r=t.owner(i);rt.hide(e,r,i,null,rt.transitionClasses(n.transition),n.time,n.blocking)},toggle(i,n={}){let r=t.owner(i),o=rt.transitionClasses(n.in),s=rt.transitionClasses(n.out);rt.toggle(e,r,i,n.display,o,s,n.time,n.blocking)},addClass(i,n,r={}){let o=Array.isArray(n)?n:n.split(" "),s=t.owner(i);rt.addOrRemoveClasses(i,o,[],rt.transitionClasses(r.transition),r.time,s,r.blocking)},removeClass(i,n,r={}){let o=Array.isArray(n)?n:n.split(" "),s=t.owner(i);rt.addOrRemoveClasses(i,[],o,rt.transitionClasses(r.transition),r.time,s,r.blocking)},toggleClass(i,n,r={}){let o=Array.isArray(n)?n:n.split(" "),s=t.owner(i);rt.toggleClasses(i,o,rt.transitionClasses(r.transition),r.time,s,r.blocking)},transition(i,n,r={}){let o=t.owner(i);rt.addOrRemoveClasses(i,[],[],rt.transitionClasses(n),r.time,o,r.blocking)},setAttribute(i,n,r){rt.setOrRemoveAttrs(i,[[n,r]],[])},removeAttribute(i,n){rt.setOrRemoveAttrs(i,[],[n])},toggleAttribute(i,n,r,o){rt.toggleAttr(i,n,r,o)},push(i,n,r={}){t.withinOwners(i,o=>{let s=r.value||{};delete r.value;let a=new CustomEvent("phx:exec",{detail:{sourceElement:i}});rt.exec(a,e,n,o,i,["push",F({data:s},r)])})},navigate(i,n={}){let r=new CustomEvent("phx:exec");t.historyRedirect(r,i,n.replace?"replace":"push",null,null)},patch(i,n={}){let r=new CustomEvent("phx:exec");t.pushHistoryPatch(r,i,n.replace?"replace":"push",null)},ignoreAttributes(i,n){rt.ignoreAttrs(i,Array.isArray(n)?n:[n])}}),Fg="hookId",C8=1,Ma=class uT{static makeID(){return C8++}static elementID(e){return H.private(e,Fg)}constructor(e,i,n){if(this.el=i,this.__attachView(e),this.__listeners=new Set,this.__isDisconnected=!1,H.putPrivate(this.el,Fg,uT.makeID()),n){let r=new Set(["el","liveSocket","__view","__listeners","__isDisconnected","constructor","js","pushEvent","pushEventTo","handleEvent","removeHandleEvent","upload","uploadTo","__mounted","__updated","__beforeUpdate","__destroyed","__reconnected","__disconnected","__cleanup__"]);for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&(this[s]=n[s],r.has(s)&&console.warn(`Hook object for element #${i.id} overwrites core property '${s}'!`));["mounted","beforeUpdate","updated","destroyed","disconnected","reconnected"].forEach(s=>{n[s]&&typeof n[s]=="function"&&(this[s]=n[s])})}}__attachView(e){e?(this.__view=()=>e,this.liveSocket=e.liveSocket):(this.__view=()=>{throw new Error(`hook not yet attached to a live view: ${this.el.outerHTML}`)},this.liveSocket=null)}mounted(){}beforeUpdate(){}updated(){}destroyed(){}disconnected(){}reconnected(){}__mounted(){this.mounted()}__updated(){this.updated()}__beforeUpdate(){this.beforeUpdate()}__destroyed(){this.destroyed(),H.deletePrivate(this.el,Fg)}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected()}js(){return Ee(F({},cT(this.__view().liveSocket,"hook")),{exec:e=>{this.__view().liveSocket.execJS(this.el,e,"hook")}})}pushEvent(e,i,n){let r=this.__view().pushHookEvent(this.el,null,e,i||{});if(n===void 0)return r.then(({reply:o})=>o);r.then(({reply:o,ref:s})=>n(o,s)).catch(()=>{})}pushEventTo(e,i,n,r){if(r===void 0){let o=[];this.__view().withinTargets(e,(a,l)=>{o.push({view:a,targetCtx:l})});let s=o.map(({view:a,targetCtx:l})=>a.pushHookEvent(this.el,l,i,n||{}));return Promise.allSettled(s)}this.__view().withinTargets(e,(o,s)=>{o.pushHookEvent(this.el,s,i,n||{}).then(({reply:a,ref:l})=>r(a,l)).catch(()=>{})})}handleEvent(e,i){let n={event:e,callback:r=>i(r.detail)};return window.addEventListener(`phx:${e}`,n.callback),this.__listeners.add(n),n}removeHandleEvent(e){window.removeEventListener(`phx:${e.event}`,e.callback),this.__listeners.delete(e)}upload(e,i){return this.__view().dispatchUploads(null,e,i)}uploadTo(e,i,n){return this.__view().withinTargets(e,(r,o)=>{r.dispatchUploads(o,i,n)})}__cleanup__(){this.__listeners.forEach(e=>this.removeHandleEvent(e))}},P8=(t,e)=>{let i=t.endsWith("[]"),n=i?t.slice(0,-2):t;return n=n.replace(/([^\[\]]+)(\]?$)/,`${e}$1$2`),i&&(n+="[]"),n},Mh=(t,e,i=[])=>{let{submitter:n}=e,r;if(n&&n.name){let u=document.createElement("input");u.type="hidden";let f=n.getAttribute("form");f&&u.setAttribute("form",f),u.name=n.name,u.value=n.value,n.parentElement.insertBefore(u,n),r=u}let o=new FormData(t),s=[];o.forEach((u,f,d)=>{u instanceof File&&s.push(f)}),s.forEach(u=>o.delete(u));let a=new URLSearchParams,{inputsUnused:l,onlyHiddenInputs:c}=Array.from(t.elements).reduce((u,f)=>{let{inputsUnused:d,onlyHiddenInputs:O}=u,m=f.name;if(!m)return u;d[m]===void 0&&(d[m]=!0),O[m]===void 0&&(O[m]=!0);let x=H.private(f,Vh)||H.private(f,Ac),v=f.type==="hidden";return d[m]=d[m]&&!x,O[m]=O[m]&&v,u},{inputsUnused:{},onlyHiddenInputs:{}});for(let[u,f]of o.entries())if(i.length===0||i.indexOf(u)>=0){let d=l[u],O=c[u];d&&!(n&&n.name==u)&&!O&&a.append(P8(u,"_unused_"),""),typeof f=="string"&&a.append(u,f)}return n&&r&&n.parentElement.removeChild(r),a.toString()},Q8=class fT{static closestView(e){let i=e.closest($c);return i?H.private(i,"view"):null}constructor(e,i,n,r,o){this.isDead=!1,this.liveSocket=i,this.flash=r,this.parent=n,this.root=n?n.root:this,this.el=e;let s=H.private(this.el,"view");if(s!==void 0&&s.isDead!==!0)throw wt(`The DOM element for this view has already been bound to a view.
|
||
|
||
An element can only ever be associated with a single view!
|
||
Please ensure that you are not trying to initialize multiple LiveSockets on the same page.
|
||
This could happen if you're accidentally trying to render your root layout more than once.
|
||
Ensure that the template set on the LiveView is different than the root layout.
|
||
`,{view:s}),new Error("Cannot bind multiple views to the same DOM element.");H.putPrivate(this.el,"view",this),this.id=this.el.id,this.ref=0,this.lastAckRef=null,this.childJoins=0,this.loaderTimer=null,this.disconnectedTimer=null,this.pendingDiffs=[],this.pendingForms=new Set,this.redirect=!1,this.href=null,this.joinCount=this.parent?this.parent.joinCount-1:0,this.joinAttempts=0,this.joinPending=!0,this.destroyed=!1,this.joinCallback=function(a){a&&a()},this.stopCallback=function(){},this.pendingJoinOps=[],this.viewHooks={},this.formSubmits=[],this.children=this.parent?null:{},this.root.children[this.id]={},this.formsForRecovery={},this.channel=this.liveSocket.channel(`lv:${this.id}`,()=>{let a=this.href&&this.expandURL(this.href);return{redirect:this.redirect?a:void 0,url:this.redirect?void 0:a||void 0,params:this.connectParams(o),session:this.getSession(),static:this.getStatic(),flash:this.flash,sticky:this.el.hasAttribute(Jg)}}),this.portalElementIds=new Set}setHref(e){this.href=e}setRedirect(e){this.redirect=!0,this.href=e}isMain(){return this.el.hasAttribute(o0)}connectParams(e){let i=this.liveSocket.params(this.el),n=H.all(document,`[${this.binding(ID)}]`).map(r=>r.src||r.href).filter(r=>typeof r=="string");return n.length>0&&(i._track_static=n),i._mounts=this.joinCount,i._mount_attempts=this.joinAttempts,i._live_referer=e,this.joinAttempts++,i}isConnected(){return this.channel.canPush()}getSession(){return this.el.getAttribute(lr)}getStatic(){let e=this.el.getAttribute(ks);return e===""?null:e}destroy(e=function(){}){this.destroyAllChildren(),this.destroyPortalElements(),this.destroyed=!0,H.deletePrivate(this.el,"view"),delete this.root.children[this.id],this.parent&&delete this.root.children[this.parent.id][this.id],clearTimeout(this.loaderTimer);let i=()=>{e();for(let n in this.viewHooks)this.destroyHook(this.viewHooks[n])};H.markPhxChildDestroyed(this.el),this.log("destroyed",()=>["the child has been removed from the parent"]),this.channel.leave().receive("ok",i).receive("error",i).receive("timeout",i)}setContainerClasses(...e){this.el.classList.remove(_S,vs,Da,AS,wc),this.el.classList.add(...e)}showLoader(e){if(clearTimeout(this.loaderTimer),e)this.loaderTimer=setTimeout(()=>this.showLoader(),e);else{for(let i in this.viewHooks)this.viewHooks[i].__disconnected();this.setContainerClasses(vs)}}execAll(e){H.all(this.el,`[${e}]`,i=>this.liveSocket.execJS(i,i.getAttribute(e)))}hideLoader(){clearTimeout(this.loaderTimer),clearTimeout(this.disconnectedTimer),this.setContainerClasses(_S),this.execAll(this.binding("connected"))}triggerReconnected(){for(let e in this.viewHooks)this.viewHooks[e].__reconnected()}log(e,i){this.liveSocket.log(this,e,i)}transition(e,i,n=function(){}){this.liveSocket.transition(e,i,n)}withinTargets(e,i,n=document){if(e instanceof HTMLElement||e instanceof SVGElement)return this.liveSocket.owner(e,r=>i(r,e));if(_r(e))H.findComponentNodeList(this.id,e,n).length===0?wt(`no component found matching phx-target of ${e}`):i(this,parseInt(e));else{let r=Array.from(n.querySelectorAll(e));r.length===0&&wt(`nothing found matching the phx-target selector "${e}"`),r.forEach(o=>this.liveSocket.owner(o,s=>i(s,o)))}}applyDiff(e,i,n){this.log(e,()=>["",Wh(i)]);let{diff:r,reply:o,events:s,title:a}=GS.extract(i);n({diff:r,reply:o,events:s}),(typeof a=="string"||e=="mount")&&window.requestAnimationFrame(()=>H.putTitle(a))}onJoin(e){let{rendered:i,container:n,liveview_version:r,pid:o}=e;if(n){let[s,a]=n;this.el=H.replaceRootContainer(this.el,s,a)}this.childJoins=0,this.joinPending=!0,this.flash=null,this.root===this&&(this.formsForRecovery=this.getFormsForRecovery()),this.isMain()&&window.history.state===null&&Mi.pushState("replace",{type:"patch",id:this.id,position:this.liveSocket.currentHistoryPosition}),r!==this.liveSocket.version()&&console.error(`LiveView asset version mismatch. JavaScript version ${this.liveSocket.version()} vs. server ${r}. To avoid issues, please ensure that your assets use the same version as the server.`),o&&this.el.setAttribute(jD,o),Mi.dropLocal(this.liveSocket.localStorage,window.location.pathname,eT),this.applyDiff("mount",i,({diff:s,events:a})=>{this.rendered=new GS(this.id,s);let[l,c]=this.renderContainer(null,"join");this.dropPendingRefs(),this.joinCount++,this.joinAttempts=0,this.maybeRecoverForms(l,()=>{this.onJoinComplete(e,l,c,a)})})}dropPendingRefs(){H.all(document,`[${gn}="${this.refSrc()}"]`,e=>{e.removeAttribute(ja),e.removeAttribute(gn),e.removeAttribute(zt)})}onJoinComplete({live_patch:e},i,n,r){if(this.joinCount>1||this.parent&&!this.parent.isJoinPending())return this.applyJoinPatch(e,i,n,r);H.findPhxChildrenInFragment(i,this.id).filter(s=>{let a=s.id&&this.el.querySelector(`[id="${s.id}"]`),l=a&&a.getAttribute(ks);return l&&s.setAttribute(ks,l),a&&a.setAttribute(Po,this.root.id),this.joinChild(s)}).length===0?this.parent?(this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(e,i,n,r)]),this.parent.ackJoin(this)):(this.onAllChildJoinsComplete(),this.applyJoinPatch(e,i,n,r)):this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(e,i,n,r)])}attachTrueDocEl(){this.el=H.byId(this.id),this.el.setAttribute(Po,this.root.id)}execNewMounted(e=document){let i=this.binding(Gg),n=this.binding(Kg);this.all(e,`[${i}], [${n}]`,r=>{H.maintainPrivateHooks(r,r,i,n),this.maybeAddNewHook(r)}),this.all(e,`[${this.binding(kc)}], [data-phx-${kc}]`,r=>{this.maybeAddNewHook(r)}),this.all(e,`[${this.binding(RS)}]`,r=>{this.maybeMounted(r)})}all(e,i,n){H.all(e,i,r=>{this.ownsElement(r)&&n(r)})}applyJoinPatch(e,i,n,r){this.joinCount>1&&this.pendingJoinOps.length&&(this.pendingJoinOps.forEach(s=>typeof s=="function"&&s()),this.pendingJoinOps=[]),this.attachTrueDocEl();let o=new Uh(this,this.el,this.id,i,n,null);if(o.markPrunableContentForRemoval(),this.performPatch(o,!1,!0),this.joinNewChildren(),this.execNewMounted(),this.joinPending=!1,this.liveSocket.dispatchEvents(r),this.applyPendingUpdates(),e){let{kind:s,to:a}=e;this.liveSocket.historyPatch(a,s)}this.hideLoader(),this.joinCount>1&&this.triggerReconnected(),this.stopCallback()}triggerBeforeUpdateHook(e,i){this.liveSocket.triggerDOM("onBeforeElUpdated",[e,i]);let n=this.getHook(e),r=n&&H.isIgnored(e,this.binding(Bh));if(n&&!e.isEqualNode(i)&&!(r&&i8(e.dataset,i.dataset)))return n.__beforeUpdate(),n}maybeMounted(e){let i=e.getAttribute(this.binding(RS)),n=i&&H.private(e,"mounted");i&&!n&&(this.liveSocket.execJS(e,i),H.putPrivate(e,"mounted",!0))}maybeAddNewHook(e){let i=this.addHook(e);i&&i.__mounted()}performPatch(e,i,n=!1){let r=[],o=!1,s=new Set;return this.liveSocket.triggerDOM("onPatchStart",[e.targetContainer]),e.after("added",a=>{this.liveSocket.triggerDOM("onNodeAdded",[a]);let l=this.binding(Gg),c=this.binding(Kg);H.maintainPrivateHooks(a,a,l,c),this.maybeAddNewHook(a),a.getAttribute&&this.maybeMounted(a)}),e.after("phxChildAdded",a=>{H.isPhxSticky(a)?this.liveSocket.joinRootViews():o=!0}),e.before("updated",(a,l)=>{this.triggerBeforeUpdateHook(a,l)&&s.add(a.id),rt.onBeforeElUpdated(a,l)}),e.after("updated",a=>{s.has(a.id)&&this.getHook(a).__updated()}),e.after("discarded",a=>{a.nodeType===Node.ELEMENT_NODE&&r.push(a)}),e.after("transitionsDiscarded",a=>this.afterElementsRemoved(a,i)),e.perform(n),this.afterElementsRemoved(r,i),this.liveSocket.triggerDOM("onPatchEnd",[e.targetContainer]),o}afterElementsRemoved(e,i){let n=[];e.forEach(r=>{let o=H.all(r,`[${qa}="${this.id}"][${Ar}]`),s=H.all(r,`[${this.binding(kc)}], [data-phx-hook]`);o.concat(r).forEach(a=>{let l=this.componentID(a);_r(l)&&n.indexOf(l)===-1&&a.getAttribute(qa)===this.id&&n.push(l)}),s.concat(r).forEach(a=>{let l=this.getHook(a);l&&this.destroyHook(l)})}),i&&this.maybePushComponentsDestroyed(n)}joinNewChildren(){H.findPhxChildren(document,this.id).forEach(e=>this.joinChild(e))}maybeRecoverForms(e,i){let n=this.binding("change"),r=this.root.formsForRecovery,o=document.createElement("template");o.innerHTML=e;let s=o.content.firstElementChild;s.id=this.id,s.setAttribute(Po,this.root.id),s.setAttribute(lr,this.getSession()),s.setAttribute(ks,this.getStatic()),s.setAttribute(Ts,this.parent?this.parent.id:null);let a=H.all(o.content,"form").filter(l=>l.id&&r[l.id]).filter(l=>!this.pendingForms.has(l.id)).filter(l=>r[l.id].getAttribute(n)===l.getAttribute(n)).map(l=>[r[l.id],l]);if(a.length===0)return i();a.forEach(([l,c],u)=>{this.pendingForms.add(c.id),this.pushFormRecovery(l,c,o.content.firstElementChild,()=>{this.pendingForms.delete(c.id),u===a.length-1&&i()})})}getChildById(e){return this.root.children[this.id][e]}getDescendentByEl(e){var i;return e.id===this.id?this:(i=this.children[e.getAttribute(Ts)])==null?void 0:i[e.id]}destroyDescendent(e){for(let i in this.root.children)for(let n in this.root.children[i])if(n===e)return this.root.children[i][n].destroy()}joinChild(e){if(!this.getChildById(e.id)){let n=new fT(e,this.liveSocket,this);return this.root.children[this.id][n.id]=n,n.join(),this.childJoins++,!0}}isJoinPending(){return this.joinPending}ackJoin(e){this.childJoins--,this.childJoins===0&&(this.parent?this.parent.ackJoin(this):this.onAllChildJoinsComplete())}onAllChildJoinsComplete(){this.pendingForms.clear(),this.formsForRecovery={},this.joinCallback(()=>{this.pendingJoinOps.forEach(([e,i])=>{e.isDestroyed()||i()}),this.pendingJoinOps=[]})}update(e,i,n=!1){if(this.isJoinPending()||this.liveSocket.hasPendingLink()&&this.root.isMain())return n||this.pendingDiffs.push({diff:e,events:i}),!1;this.rendered.mergeDiff(e);let r=!1;return this.rendered.isComponentOnlyDiff(e)?this.liveSocket.time("component patch complete",()=>{H.findExistingParentCIDs(this.id,this.rendered.componentCIDs(e)).forEach(s=>{this.componentPatch(this.rendered.getComponent(e,s),s)&&(r=!0)})}):qS(e)||this.liveSocket.time("full patch complete",()=>{let[o,s]=this.renderContainer(e,"update"),a=new Uh(this,this.el,this.id,o,s,null);r=this.performPatch(a,!0)}),this.liveSocket.dispatchEvents(i),r&&this.joinNewChildren(),!0}renderContainer(e,i){return this.liveSocket.time(`toString diff (${i})`,()=>{let n=this.el.tagName,r=e?this.rendered.componentCIDs(e):null,{buffer:o,streams:s}=this.rendered.toString(r);return[`<${n}>${o}</${n}>`,s]})}componentPatch(e,i){if(qS(e))return!1;let{buffer:n,streams:r}=this.rendered.componentToString(i),o=new Uh(this,this.el,this.id,n,r,i);return this.performPatch(o,!0)}getHook(e){return this.viewHooks[Ma.elementID(e)]}addHook(e){let i=Ma.elementID(e);if(!(e.getAttribute&&!this.ownsElement(e)))if(i&&!this.viewHooks[i]){let n=H.getCustomElHook(e)||wt(`no hook found for custom element: ${e.id}`);return this.viewHooks[i]=n,n.__attachView(this),n}else{if(i||!e.getAttribute)return;{let n=e.getAttribute(`data-phx-${kc}`)||e.getAttribute(this.binding(kc));if(!n)return;let r=this.liveSocket.getHookDefinition(n);if(r){if(!e.id){wt(`no DOM ID for hook "${n}". Hooks require a unique ID on each element.`,e);return}let o;try{if(typeof r=="function"&&r.prototype instanceof Ma)o=new r(this,e);else if(typeof r=="object"&&r!==null)o=new Ma(this,e,r);else{wt(`Invalid hook definition for "${n}". Expected a class extending ViewHook or an object definition.`,e);return}}catch(s){let a=s instanceof Error?s.message:String(s);wt(`Failed to create hook "${n}": ${a}`,e);return}return this.viewHooks[Ma.elementID(o.el)]=o,o}else n!==null&&wt(`unknown hook found for "${n}"`,e)}}}destroyHook(e){let i=Ma.elementID(e.el);e.__destroyed(),e.__cleanup__(),delete this.viewHooks[i]}applyPendingUpdates(){this.pendingDiffs=this.pendingDiffs.filter(({diff:e,events:i})=>!this.update(e,i,!0)),this.eachChild(e=>e.applyPendingUpdates())}eachChild(e){let i=this.root.children[this.id]||{};for(let n in i)e(this.getChildById(n))}onChannel(e,i){this.liveSocket.onChannel(this.channel,e,n=>{this.isJoinPending()?this.joinCount>1?this.pendingJoinOps.push(()=>i(n)):this.root.pendingJoinOps.push([this,()=>i(n)]):this.liveSocket.requestDOMUpdate(()=>i(n))})}bindChannel(){this.liveSocket.onChannel(this.channel,"diff",e=>{this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",e,({diff:i,events:n})=>this.update(i,n))})}),this.onChannel("redirect",({to:e,flash:i})=>this.onRedirect({to:e,flash:i})),this.onChannel("live_patch",e=>this.onLivePatch(e)),this.onChannel("live_redirect",e=>this.onLiveRedirect(e)),this.channel.onError(e=>this.onError(e)),this.channel.onClose(e=>this.onClose(e))}destroyAllChildren(){this.eachChild(e=>e.destroy())}onLiveRedirect(e){let{to:i,kind:n,flash:r}=e,o=this.expandURL(i),s=new CustomEvent("phx:server-navigate",{detail:{to:i,kind:n,flash:r}});this.liveSocket.historyRedirect(s,o,n,r)}onLivePatch(e){let{to:i,kind:n}=e;this.href=this.expandURL(i),this.liveSocket.historyPatch(i,n)}expandURL(e){return e.startsWith("/")?`${window.location.protocol}//${window.location.host}${e}`:e}onRedirect({to:e,flash:i,reloadToken:n}){this.liveSocket.redirect(e,i,n)}isDestroyed(){return this.destroyed}joinDead(){this.isDead=!0}joinPush(){return this.joinPush=this.joinPush||this.channel.join(),this.joinPush}join(e){this.showLoader(this.liveSocket.loaderTimeout),this.bindChannel(),this.isMain()&&(this.stopCallback=this.liveSocket.withPageLoading({to:this.href,kind:"initial"})),this.joinCallback=i=>{i=i||function(){},e?e(this.joinCount,i):i()},this.wrapPush(()=>this.channel.join(),{ok:i=>this.liveSocket.requestDOMUpdate(()=>this.onJoin(i)),error:i=>this.onJoinError(i),timeout:()=>this.onJoinError({reason:"timeout"})})}onJoinError(e){if(e.reason==="reload"){this.log("error",()=>[`failed mount with ${e.status}. Falling back to page reload`,e]),this.onRedirect({to:this.root.href,reloadToken:e.token});return}else if(e.reason==="unauthorized"||e.reason==="stale"){this.log("error",()=>["unauthorized live_redirect. Falling back to page request",e]),this.onRedirect({to:this.root.href,flash:this.flash});return}if((e.redirect||e.live_redirect)&&(this.joinPending=!1,this.channel.leave()),e.redirect)return this.onRedirect(e.redirect);if(e.live_redirect)return this.onLiveRedirect(e.live_redirect);if(this.log("error",()=>["unable to join",e]),this.isMain())this.displayError([vs,Da,wc],{unstructuredError:e,errorKind:"server"}),this.liveSocket.isConnected()&&this.liveSocket.reloadWithJitter(this);else{this.joinAttempts>=IS&&(this.root.displayError([vs,Da,wc],{unstructuredError:e,errorKind:"server"}),this.log("error",()=>[`giving up trying to mount after ${IS} tries`,e]),this.destroy());let i=H.byId(this.el.id);i?(H.mergeAttrs(i,this.el),this.displayError([vs,Da,wc],{unstructuredError:e,errorKind:"server"}),this.el=i):this.destroy()}}onClose(e){if(!this.isDestroyed()){if(this.isMain()&&this.liveSocket.hasPendingLink()&&e!=="leave")return this.liveSocket.reloadWithJitter(this);this.destroyAllChildren(),this.liveSocket.dropActiveElement(this),this.liveSocket.isUnloaded()&&this.showLoader(BD)}}onError(e){this.onClose(e),this.liveSocket.isConnected()&&this.log("error",()=>["view crashed",e]),this.liveSocket.isUnloaded()||(this.liveSocket.isConnected()?this.displayError([vs,Da,wc],{unstructuredError:e,errorKind:"server"}):this.displayError([vs,Da,AS],{unstructuredError:e,errorKind:"client"}))}displayError(e,i={}){this.isMain()&&H.dispatchEvent(window,"phx:page-loading-start",{detail:F({to:this.href,kind:"error"},i)}),this.showLoader(),this.setContainerClasses(...e),this.delayedDisconnected()}delayedDisconnected(){this.disconnectedTimer=setTimeout(()=>{this.execAll(this.binding("disconnected"))},this.liveSocket.disconnectedTimeout)}wrapPush(e,i){let n=this.liveSocket.getLatencySim(),r=n?o=>setTimeout(()=>!this.isDestroyed()&&o(),n):o=>!this.isDestroyed()&&o();r(()=>{e().receive("ok",o=>r(()=>i.ok&&i.ok(o))).receive("error",o=>r(()=>i.error&&i.error(o))).receive("timeout",()=>r(()=>i.timeout&&i.timeout()))})}pushWithReply(e,i,n){if(!this.isConnected())return Promise.reject(new Error("no connection"));let[r,[o],s]=e?e({payload:n}):[null,[],{}],a=this.joinCount,l=function(){};return s.page_loading&&(l=this.liveSocket.withPageLoading({kind:"element",target:o})),typeof n.cid!="number"&&delete n.cid,new Promise((c,u)=>{this.wrapPush(()=>this.channel.push(i,n,HD),{ok:f=>{r!==null&&(this.lastAckRef=r);let d=O=>{f.redirect&&this.onRedirect(f.redirect),f.live_patch&&this.onLivePatch(f.live_patch),f.live_redirect&&this.onLiveRedirect(f.live_redirect),l(),c({resp:f,reply:O,ref:r})};f.diff?this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",f.diff,({diff:O,reply:m,events:x})=>{r!==null&&this.undoRefs(r,n.event),this.update(O,x),d(m)})}):(r!==null&&this.undoRefs(r,n.event),d(null))},error:f=>u(new Error(`failed with reason: ${f}`)),timeout:()=>{u(new Error("timeout")),this.joinCount===a&&this.liveSocket.reloadWithJitter(this,()=>{this.log("timeout",()=>["received timeout while communicating with server. Falling back to hard refresh for recovery"])})}})})}undoRefs(e,i,n){if(!this.isConnected())return;let r=`[${gn}="${this.refSrc()}"]`;n?(n=new Set(n),H.all(document,r,o=>{n&&!n.has(o)||(H.all(o,r,s=>this.undoElRef(s,e,i)),this.undoElRef(o,e,i))})):H.all(document,r,o=>this.undoElRef(o,e,i))}undoElRef(e,i,n){new i0(e).maybeUndo(i,n,o=>{let s=new Uh(this,e,this.id,o,[],null,{undoRef:i}),a=this.performPatch(s,!0);H.all(e,`[${gn}="${this.refSrc()}"]`,l=>this.undoElRef(l,i,n)),a&&this.joinNewChildren()})}refSrc(){return this.el.id}putRef(e,i,n,r={}){let o=this.ref++,s=this.binding($S);if(r.loading){let a=H.all(document,r.loading).map(l=>({el:l,lock:!0,loading:!0}));e=e.concat(a)}for(let{el:a,lock:l,loading:c}of e){if(!l&&!c)throw new Error("putRef requires lock or loading");if(a.setAttribute(gn,this.refSrc()),c&&a.setAttribute(ja,o),l&&a.setAttribute(zt,o),!c||r.submitter&&!(a===r.submitter||a===r.form))continue;let u=new Promise(m=>{a.addEventListener(`phx:undo-lock:${o}`,()=>m(O),{once:!0})}),f=new Promise(m=>{a.addEventListener(`phx:undo-loading:${o}`,()=>m(O),{once:!0})});a.classList.add(`phx-${n}-loading`);let d=a.getAttribute(s);d!==null&&(a.getAttribute(Zh)||a.setAttribute(Zh,a.innerText),d!==""&&(a.innerText=d),a.setAttribute(Na,a.getAttribute(Na)||a.disabled),a.setAttribute("disabled",""));let O={event:i,eventType:n,ref:o,isLoading:c,isLocked:l,lockElements:e.filter(({lock:m})=>m).map(({el:m})=>m),loadingElements:e.filter(({loading:m})=>m).map(({el:m})=>m),unlock:m=>{m=Array.isArray(m)?m:[m],this.undoRefs(o,i,m)},lockComplete:u,loadingComplete:f,lock:m=>new Promise(x=>{if(this.isAcked(o))return x(O);m.setAttribute(zt,o),m.setAttribute(gn,this.refSrc()),m.addEventListener(`phx:lock-stop:${o}`,()=>x(O),{once:!0})})};r.payload&&(O.payload=r.payload),r.target&&(O.target=r.target),r.originalEvent&&(O.originalEvent=r.originalEvent),a.dispatchEvent(new CustomEvent("phx:push",{detail:O,bubbles:!0,cancelable:!1})),i&&a.dispatchEvent(new CustomEvent(`phx:push:${i}`,{detail:O,bubbles:!0,cancelable:!1}))}return[o,e.map(({el:a})=>a),r]}isAcked(e){return this.lastAckRef!==null&&this.lastAckRef>=e}componentID(e){let i=e.getAttribute&&e.getAttribute(Ar);return i?parseInt(i):null}targetComponentID(e,i,n={}){if(_r(i))return i;let r=n.target||e.getAttribute(this.binding("target"));return _r(r)?parseInt(r):i&&(r!==null||n.target)?this.closestComponentID(i):null}closestComponentID(e){return _r(e)?e:e?Ss(e.closest(`[${Ar}]`),i=>this.ownsElement(i)&&this.componentID(i)):null}pushHookEvent(e,i,n,r){if(!this.isConnected())return this.log("hook",()=>["unable to push hook event. LiveView not connected",n,r]),Promise.reject(new Error("unable to push hook event. LiveView not connected"));let o=()=>this.putRef([{el:e,loading:!0,lock:!0}],n,"hook",{payload:r,target:i});return this.pushWithReply(o,"event",{type:"hook",event:n,value:r,cid:this.closestComponentID(i)}).then(({resp:s,reply:a,ref:l})=>({reply:a,ref:l}))}extractMeta(e,i,n){let r=this.binding("value-");for(let o=0;o<e.attributes.length;o++){i||(i={});let s=e.attributes[o].name;s.startsWith(r)&&(i[s.replace(r,"")]=e.getAttribute(s))}if(e.value!==void 0&&!(e instanceof HTMLFormElement)&&(i||(i={}),i.value=e.value,e.tagName==="INPUT"&&oT.indexOf(e.type)>=0&&!e.checked&&delete i.value),n){i||(i={});for(let o in n)i[o]=n[o]}return i}pushEvent(e,i,n,r,o,s={},a){this.pushWithReply(l=>this.putRef([{el:i,loading:!0,lock:!0}],r,e,Ee(F({},s),{payload:l==null?void 0:l.payload})),"event",{type:e,event:r,value:this.extractMeta(i,o,s.value),cid:this.targetComponentID(i,n,s)}).then(({reply:l})=>a&&a(l)).catch(l=>wt("Failed to push event",l))}pushFileProgress(e,i,n,r=function(){}){this.liveSocket.withinOwners(e.form,(o,s)=>{o.pushWithReply(null,"progress",{event:e.getAttribute(o.binding(VD)),ref:e.getAttribute($r),entry_ref:i,progress:n,cid:o.targetComponentID(e.form,s)}).then(()=>r()).catch(a=>wt("Failed to push file progress",a))})}pushInput(e,i,n,r,o,s){if(!e.form)throw new Error("form events require the input to be inside a form");let a,l=_r(n)?n:this.targetComponentID(e.form,i,o),c=m=>this.putRef([{el:e,loading:!0,lock:!0},{el:e.form,loading:!0,lock:!0}],r,"change",Ee(F({},o),{payload:m==null?void 0:m.payload})),u,f=this.extractMeta(e.form,{},o.value),d={};e instanceof HTMLButtonElement&&(d.submitter=e),e.getAttribute(this.binding("change"))?u=Mh(e.form,d,[e.name]):u=Mh(e.form,d),H.isUploadInput(e)&&e.files&&e.files.length>0&&ii.trackFiles(e,Array.from(e.files)),a=ii.serializeUploads(e);let O={type:"form",event:r,value:u,meta:F({_target:o._target||"undefined"},f),uploads:a,cid:l};this.pushWithReply(c,"event",O).then(({resp:m})=>{H.isUploadInput(e)&&H.isAutoUpload(e)?i0.onUnlock(e,()=>{if(ii.filesAwaitingPreflight(e).length>0){let[x,v]=c();this.undoRefs(x,r,[e.form]),this.uploadFiles(e.form,r,i,x,l,w=>{s&&s(m),this.triggerAwaitingSubmit(e.form,r),this.undoRefs(x,r)})}}):s&&s(m)}).catch(m=>wt("Failed to push input event",m))}triggerAwaitingSubmit(e,i){let n=this.getScheduledSubmit(e);if(n){let[r,o,s,a]=n;this.cancelSubmit(e,i),a()}}getScheduledSubmit(e){return this.formSubmits.find(([i,n,r,o])=>i.isSameNode(e))}scheduleSubmit(e,i,n,r){if(this.getScheduledSubmit(e))return!0;this.formSubmits.push([e,i,n,r])}cancelSubmit(e,i){this.formSubmits=this.formSubmits.filter(([n,r,o,s])=>n.isSameNode(e)?(this.undoRefs(r,i),!1):!0)}disableForm(e,i,n={}){let r=m=>!(_c(m,`${this.binding(Bh)}=ignore`,m.form)||_c(m,"data-phx-update=ignore",m.form)),o=m=>m.hasAttribute(this.binding($S)),s=m=>m.tagName=="BUTTON",a=m=>["INPUT","TEXTAREA","SELECT"].includes(m.tagName),l=Array.from(e.elements),c=l.filter(o),u=l.filter(s).filter(r),f=l.filter(a).filter(r);u.forEach(m=>{m.setAttribute(Na,m.disabled),m.disabled=!0}),f.forEach(m=>{m.setAttribute(e0,m.readOnly),m.readOnly=!0,m.files&&(m.setAttribute(Na,m.disabled),m.disabled=!0)});let d=c.concat(u).concat(f).map(m=>({el:m,loading:!0,lock:!0})),O=[{el:e,loading:!0,lock:!1}].concat(d).reverse();return this.putRef(O,i,"submit",n)}pushFormSubmit(e,i,n,r,o,s){let a=c=>this.disableForm(e,n,Ee(F({},o),{form:e,payload:c==null?void 0:c.payload,submitter:r}));H.putPrivate(e,"submitter",r);let l=this.targetComponentID(e,i);if(ii.hasUploadsInProgress(e)){let[c,u]=a(),f=()=>this.pushFormSubmit(e,i,n,r,o,s);return this.scheduleSubmit(e,c,o,f)}else if(ii.inputsAwaitingPreflight(e).length>0){let[c,u]=a(),f=()=>[c,u,o];this.uploadFiles(e,n,i,c,l,d=>{if(ii.inputsAwaitingPreflight(e).length>0)return this.undoRefs(c,n);let O=this.extractMeta(e,{},o.value),m=Mh(e,{submitter:r});this.pushWithReply(f,"event",{type:"form",event:n,value:m,meta:O,cid:l}).then(({resp:x})=>s(x)).catch(x=>wt("Failed to push form submit",x))})}else if(!(e.hasAttribute(gn)&&e.classList.contains("phx-submit-loading"))){let c=this.extractMeta(e,{},o.value),u=Mh(e,{submitter:r});this.pushWithReply(a,"event",{type:"form",event:n,value:u,meta:c,cid:l}).then(({resp:f})=>s(f)).catch(f=>wt("Failed to push form submit",f))}}uploadFiles(e,i,n,r,o,s){let a=this.joinCount,l=ii.activeFileInputs(e),c=l.length;l.forEach(u=>{let f=new ii(u,this,()=>{c--,c===0&&s()}),d=f.entries().map(m=>m.toPreflightPayload());if(d.length===0){c--;return}let O={ref:u.getAttribute($r),entries:d,cid:this.targetComponentID(u.form,n)};this.log("upload",()=>["sending preflight request",O]),this.pushWithReply(null,"allow_upload",O).then(({resp:m})=>{if(this.log("upload",()=>["got preflight response",m]),f.entries().forEach(x=>{m.entries&&!m.entries[x.ref]&&this.handleFailedEntryPreflight(x.ref,"failed preflight",f)}),m.error||Object.keys(m.entries).length===0)this.undoRefs(r,i),(m.error||[]).map(([v,w])=>{this.handleFailedEntryPreflight(v,w,f)});else{let x=v=>{this.channel.onError(()=>{this.joinCount===a&&v()})};f.initAdapterUpload(m,x,this.liveSocket)}}).catch(m=>wt("Failed to push upload",m))})}handleFailedEntryPreflight(e,i,n){if(n.isAutoUpload()){let r=n.entries().find(o=>o.ref===e.toString());r&&r.cancel()}else n.entries().map(r=>r.cancel());this.log("upload",()=>[`error for entry ${e}`,i])}dispatchUploads(e,i,n){let r=this.targetCtxElement(e)||this.el,o=H.findUploadInputs(r).filter(s=>s.name===i);o.length===0?wt(`no live file inputs found matching the name "${i}"`):o.length>1?wt(`duplicate live file inputs found matching the name "${i}"`):H.dispatchEvent(o[0],iT,{detail:{files:n}})}targetCtxElement(e){if(_r(e)){let[i]=H.findComponentNodeList(this.id,e);return i}else return e||null}pushFormRecovery(e,i,n,r){let o=this.binding("change"),s=i.getAttribute(this.binding("target"))||i,a=i.getAttribute(this.binding(XS))||i.getAttribute(this.binding("change")),l=Array.from(e.elements).filter(f=>H.isFormInput(f)&&f.name&&!f.hasAttribute(o));if(l.length===0){r();return}l.forEach(f=>f.hasAttribute($r)&&ii.clearFiles(f));let c=l.find(f=>f.type!=="hidden")||l[0],u=0;this.withinTargets(s,(f,d)=>{let O=this.targetComponentID(i,d);u++;let m=new CustomEvent("phx:form-recovery",{detail:{sourceElement:e}});rt.exec(m,"change",a,this,c,["push",{_target:c.name,targetView:f,targetCtx:d,newCid:O,callback:()=>{u--,u===0&&r()}}])},n)}pushLinkPatch(e,i,n,r){let o=this.liveSocket.setPendingLink(i),s=e.isTrusted&&e.type!=="popstate",a=n?()=>this.putRef([{el:n,loading:s,lock:!0}],null,"click"):null,l=()=>this.liveSocket.redirect(window.location.href),c=i.startsWith("/")?`${location.protocol}//${location.host}${i}`:i;this.pushWithReply(a,"live_patch",{url:c}).then(({resp:u})=>{this.liveSocket.requestDOMUpdate(()=>{u.link_redirect?this.liveSocket.replaceMain(i,null,r,o):(this.liveSocket.commitPendingLink(o)&&(this.href=i),this.applyPendingUpdates(),r&&r(o))})},({error:u,timeout:f})=>l())}getFormsForRecovery(){if(this.joinCount===0)return{};let e=this.binding("change");return H.all(this.el,`form[${e}]`).filter(i=>i.id).filter(i=>i.elements.length>0).filter(i=>i.getAttribute(this.binding(XS))!=="ignore").map(i=>{let n=i.cloneNode(!0);n0(n,i,{onBeforeElUpdated:(o,s)=>(H.copyPrivates(o,s),!0)});let r=document.querySelectorAll(`[form="${i.id}"]`);return Array.from(r).forEach(o=>{if(i.contains(o))return;let s=o.cloneNode(!0);n0(s,o),H.copyPrivates(s,o),n.appendChild(s)}),n}).reduce((i,n)=>(i[n.id]=n,i),{})}maybePushComponentsDestroyed(e){let i=e.filter(r=>H.findComponentNodeList(this.id,r).length===0),n=r=>{this.isDestroyed()||wt("Failed to push components destroyed",r)};i.length>0&&(i.forEach(r=>this.rendered.resetRender(r)),this.pushWithReply(null,"cids_will_destroy",{cids:i}).then(()=>{this.liveSocket.requestDOMUpdate(()=>{let r=i.filter(o=>H.findComponentNodeList(this.id,o).length===0);r.length>0&&this.pushWithReply(null,"cids_destroyed",{cids:r}).then(({resp:o})=>{this.rendered.pruneCIDs(o.cids)}).catch(n)})}).catch(n))}ownsElement(e){let i=H.closestViewEl(e);return e.getAttribute(Ts)===this.id||i&&i.id===this.id||!i&&this.isDead}submitForm(e,i,n,r,o={}){H.putPrivate(e,Ac,!0),Array.from(e.elements).forEach(a=>H.putPrivate(a,Ac,!0)),this.liveSocket.blurActiveElement(this),this.pushFormSubmit(e,i,n,r,o,()=>{this.liveSocket.restorePreviouslyActiveFocus()})}binding(e){return this.liveSocket.binding(e)}pushPortalElementId(e){this.portalElementIds.add(e)}dropPortalElementId(e){this.portalElementIds.delete(e)}destroyPortalElements(){this.portalElementIds.forEach(e=>{let i=document.getElementById(e);i&&i.remove()})}};var _8=class{constructor(t,e,i={}){if(this.unloaded=!1,!e||e.constructor.name==="Object")throw new Error(`
|
||
a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:
|
||
|
||
import {Socket} from "phoenix"
|
||
import {LiveSocket} from "phoenix_live_view"
|
||
let liveSocket = new LiveSocket("/live", Socket, {...})
|
||
`);this.socket=new e(t,i),this.bindingPrefix=i.bindingPrefix||FD,this.opts=i,this.params=Cc(i.params||{}),this.viewLogger=i.viewLogger,this.metadataCallbacks=i.metadata||{},this.defaults=Object.assign(Wh(GD),i.defaults||{}),this.prevActive=null,this.silenced=!1,this.main=null,this.outgoingMainEl=null,this.clickStartedAtTarget=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=Wh(window.location),this.hooks=i.hooks||{},this.uploaders=i.uploaders||{},this.loaderTimeout=i.loaderTimeout||ZD,this.disconnectedTimeout=i.disconnectedTimeout||YD,this.reloadWithJitterTimer=null,this.maxReloads=i.maxReloads||$D,this.reloadJitterMin=i.reloadJitterMin||XD,this.reloadJitterMax=i.reloadJitterMax||RD,this.failsafeJitter=i.failsafeJitter||LD,this.localStorage=i.localStorage||window.localStorage,this.sessionStorage=i.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.boundEventNames=new Set,this.blockPhxChangeWhileComposing=i.blockPhxChangeWhileComposing||!1,this.serverCloseRef=null,this.domCallbacks=Object.assign({jsQuerySelectorAll:null,onPatchStart:Cc(),onPatchEnd:Cc(),onNodeAdded:Cc(),onBeforeElUpdated:Cc()},i.dom||{}),this.transitions=new A8,this.currentHistoryPosition=parseInt(this.sessionStorage.getItem(Ih))||0,window.addEventListener("pagehide",n=>{this.unloaded=!0}),this.socket.onOpen(()=>{this.isUnloaded()&&window.location.reload()})}version(){return"1.1.11"}isProfileEnabled(){return this.sessionStorage.getItem(Vg)==="true"}isDebugEnabled(){return this.sessionStorage.getItem(Lh)==="true"}isDebugDisabled(){return this.sessionStorage.getItem(Lh)==="false"}enableDebug(){this.sessionStorage.setItem(Lh,"true")}enableProfiling(){this.sessionStorage.setItem(Vg,"true")}disableDebug(){this.sessionStorage.setItem(Lh,"false")}disableProfiling(){this.sessionStorage.removeItem(Vg)}enableLatencySim(t){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem(Zg,t)}disableLatencySim(){this.sessionStorage.removeItem(Zg)}getLatencySim(){let t=this.sessionStorage.getItem(Zg);return t?parseInt(t):null}getSocket(){return this.socket}connect(){window.location.hostname==="localhost"&&!this.isDebugDisabled()&&this.enableDebug();let t=()=>{this.resetReloadStatus(),this.joinRootViews()?(this.bindTopLevelEvents(),this.socket.connect()):this.main?this.socket.connect():this.bindTopLevelEvents({dead:!0}),this.joinDeadView()};["complete","loaded","interactive"].indexOf(document.readyState)>=0?t():document.addEventListener("DOMContentLoaded",()=>t())}disconnect(t){clearTimeout(this.reloadWithJitterTimer),this.serverCloseRef&&(this.socket.off(this.serverCloseRef),this.serverCloseRef=null),this.socket.disconnect(t)}replaceTransport(t){clearTimeout(this.reloadWithJitterTimer),this.socket.replaceTransport(t),this.connect()}execJS(t,e,i=null){let n=new CustomEvent("phx:exec",{detail:{sourceElement:t}});this.owner(t,r=>rt.exec(n,i,e,r,t))}js(){return cT(this,"js")}unload(){this.unloaded||(this.main&&this.isConnected()&&this.log(this.main,"socket",()=>["disconnect for page nav"]),this.unloaded=!0,this.destroyAllViews(),this.disconnect())}triggerDOM(t,e){this.domCallbacks[t](...e)}time(t,e){if(!this.isProfileEnabled()||!console.time)return e();console.time(t);let i=e();return console.timeEnd(t),i}log(t,e,i){if(this.viewLogger){let[n,r]=i();this.viewLogger(t,e,n,r)}else if(this.isDebugEnabled()){let[n,r]=i();t8(t,e,n,r)}}requestDOMUpdate(t){this.transitions.after(t)}asyncTransition(t){this.transitions.addAsyncTransition(t)}transition(t,e,i=function(){}){this.transitions.addTransition(t,e,i)}onChannel(t,e,i){t.on(e,n=>{let r=this.getLatencySim();r?setTimeout(()=>i(n),r):i(n)})}reloadWithJitter(t,e){clearTimeout(this.reloadWithJitterTimer),this.disconnect();let i=this.reloadJitterMin,n=this.reloadJitterMax,r=Math.floor(Math.random()*(n-i+1))+i,o=Mi.updateLocal(this.localStorage,window.location.pathname,eT,0,s=>s+1);o>=this.maxReloads&&(r=this.failsafeJitter),this.reloadWithJitterTimer=setTimeout(()=>{t.isDestroyed()||t.isConnected()||(t.destroy(),e?e():this.log(t,"join",()=>[`encountered ${o} consecutive reloads`]),o>=this.maxReloads&&this.log(t,"join",()=>[`exceeded ${this.maxReloads} consecutive reloads. Entering failsafe mode`]),this.hasPendingLink()?window.location=this.pendingLink:window.location.reload())},r)}getHookDefinition(t){if(t)return this.maybeInternalHook(t)||this.hooks[t]||this.maybeRuntimeHook(t)}maybeInternalHook(t){return t&&t.startsWith("Phoenix.")&&c8[t.split(".")[1]]}maybeRuntimeHook(t){let e=document.querySelector(`script[${jh}="${CSS.escape(t)}"]`);if(!e)return;let i=window[`phx_hook_${t}`];if(!i||typeof i!="function"){wt("a runtime hook must be a function",e);return}let n=i();if(n&&(typeof n=="object"||typeof n=="function"))return n;wt("runtime hook must return an object with hook callbacks or an instance of ViewHook",e)}isUnloaded(){return this.unloaded}isConnected(){return this.socket.isConnected()}getBindingPrefix(){return this.bindingPrefix}binding(t){return`${this.getBindingPrefix()}${t}`}channel(t,e){return this.socket.channel(t,e)}joinDeadView(){let t=document.body;if(t&&!this.isPhxView(t)&&!this.isPhxView(document.firstElementChild)){let e=this.newRootView(t);e.setHref(this.getHref()),e.joinDead(),this.main||(this.main=e),window.requestAnimationFrame(()=>{var i;e.execNewMounted(),this.maybeScroll((i=history.state)==null?void 0:i.scroll)})}}joinRootViews(){let t=!1;return H.all(document,`${$c}:not([${Ts}])`,e=>{if(!this.getRootById(e.id)){let i=this.newRootView(e);H.isPhxSticky(e)||i.setHref(this.getHref()),i.join(),e.hasAttribute(o0)&&(this.main=i)}t=!0}),t}redirect(t,e,i){i&&Mi.setCookie(LS,i,60),this.unload(),Mi.redirect(t,e)}replaceMain(t,e,i=null,n=this.setPendingLink(t)){let r=this.currentLocation.href;this.outgoingMainEl=this.outgoingMainEl||this.main.el;let o=H.findPhxSticky(document)||[],s=H.all(this.outgoingMainEl,`[${this.binding("remove")}]`).filter(l=>!H.isChildOfAny(l,o)),a=H.cloneNode(this.outgoingMainEl,"");this.main.showLoader(this.loaderTimeout),this.main.destroy(),this.main=this.newRootView(a,e,r),this.main.setRedirect(t),this.transitionRemoves(s),this.main.join((l,c)=>{l===1&&this.commitPendingLink(n)&&this.requestDOMUpdate(()=>{s.forEach(u=>u.remove()),o.forEach(u=>a.appendChild(u)),this.outgoingMainEl.replaceWith(a),this.outgoingMainEl=null,i&&i(n),c()})})}transitionRemoves(t,e){let i=this.binding("remove"),n=r=>{r.preventDefault(),r.stopImmediatePropagation()};t.forEach(r=>{for(let o of this.boundEventNames)r.addEventListener(o,n,!0);this.execJS(r,r.getAttribute(i),"remove")}),this.requestDOMUpdate(()=>{t.forEach(r=>{for(let o of this.boundEventNames)r.removeEventListener(o,n,!0)}),e&&e()})}isPhxView(t){return t.getAttribute&&t.getAttribute(lr)!==null}newRootView(t,e,i){let n=new Q8(t,this,null,e,i);return this.roots[n.id]=n,n}owner(t,e){let i,n=H.closestViewEl(t);return n?i=this.getViewByEl(n):i=this.main,i&&e?e(i):i}withinOwners(t,e){this.owner(t,i=>e(i,t))}getViewByEl(t){let e=t.getAttribute(Po);return Ss(this.getRootById(e),i=>i.getDescendentByEl(t))}getRootById(t){return this.roots[t]}destroyAllViews(){for(let t in this.roots)this.roots[t].destroy(),delete this.roots[t];this.main=null}destroyViewByEl(t){let e=this.getRootById(t.getAttribute(Po));e&&e.id===t.id?(e.destroy(),delete this.roots[e.id]):e&&e.destroyDescendent(t.id)}getActiveElement(){return document.activeElement}dropActiveElement(t){this.prevActive&&t.ownsElement(this.prevActive)&&(this.prevActive=null)}restorePreviouslyActiveFocus(){this.prevActive&&this.prevActive!==document.body&&this.prevActive instanceof HTMLElement&&this.prevActive.focus()}blurActiveElement(){this.prevActive=this.getActiveElement(),this.prevActive!==document.body&&this.prevActive instanceof HTMLElement&&this.prevActive.blur()}bindTopLevelEvents({dead:t}={}){this.boundTopLevelEvents||(this.boundTopLevelEvents=!0,this.serverCloseRef=this.socket.onClose(e=>{if(e&&e.code===1e3&&this.main)return this.reloadWithJitter(this.main)}),document.body.addEventListener("click",function(){}),window.addEventListener("pageshow",e=>{e.persisted&&(this.getSocket().disconnect(),this.withPageLoading({to:window.location.href,kind:"redirect"}),window.location.reload())},!0),t||this.bindNav(),this.bindClicks(),t||this.bindForms(),this.bind({keyup:"keyup",keydown:"keydown"},(e,i,n,r,o,s)=>{let a=r.getAttribute(this.binding(WD)),l=e.key&&e.key.toLowerCase();if(a&&a.toLowerCase()!==l)return;let c=F({key:e.key},this.eventMeta(i,e,r));rt.exec(e,i,o,n,r,["push",{data:c}])}),this.bind({blur:"focusout",focus:"focusin"},(e,i,n,r,o,s)=>{if(!s){let a=F({key:e.key},this.eventMeta(i,e,r));rt.exec(e,i,o,n,r,["push",{data:a}])}}),this.bind({blur:"blur",focus:"focus"},(e,i,n,r,o,s)=>{if(s==="window"){let a=this.eventMeta(i,e,r);rt.exec(e,i,o,n,r,["push",{data:a}])}}),this.on("dragover",e=>e.preventDefault()),this.on("drop",e=>{e.preventDefault();let i=Ss(_c(e.target,this.binding(PS)),o=>o.getAttribute(this.binding(PS))),n=i&&document.getElementById(i),r=Array.from(e.dataTransfer.files||[]);!n||!(n instanceof HTMLInputElement)||n.disabled||r.length===0||!(n.files instanceof FileList)||(ii.trackFiles(n,r,e.dataTransfer),n.dispatchEvent(new Event("input",{bubbles:!0})))}),this.on(iT,e=>{let i=e.target;if(!H.isUploadInput(i))return;let n=Array.from(e.detail.files||[]).filter(r=>r instanceof File||r instanceof Blob);ii.trackFiles(i,n),i.dispatchEvent(new Event("input",{bubbles:!0}))}))}eventMeta(t,e,i){let n=this.metadataCallbacks[t];return n?n(e,i):{}}setPendingLink(t){return this.linkRef++,this.pendingLink=t,this.resetReloadStatus(),this.linkRef}resetReloadStatus(){Mi.deleteCookie(LS)}commitPendingLink(t){return this.linkRef!==t?!1:(this.href=this.pendingLink,this.pendingLink=null,!0)}getHref(){return this.href}hasPendingLink(){return!!this.pendingLink}bind(t,e){for(let i in t){let n=t[i];this.on(n,r=>{let o=this.binding(i),s=this.binding(`window-${i}`),a=r.target.getAttribute&&r.target.getAttribute(o);a?this.debounce(r.target,r,n,()=>{this.withinOwners(r.target,l=>{e(r,i,l,r.target,a,null)})}):H.all(document,`[${s}]`,l=>{let c=l.getAttribute(s);this.debounce(l,r,n,()=>{this.withinOwners(l,u=>{e(r,i,u,l,c,"window")})})})})}}bindClicks(){this.on("mousedown",t=>this.clickStartedAtTarget=t.target),this.bindClick("click","click")}bindClick(t,e){let i=this.binding(e);window.addEventListener(t,n=>{let r=null;n.detail===0&&(this.clickStartedAtTarget=n.target);let o=this.clickStartedAtTarget||n.target;r=_c(n.target,i),this.dispatchClickAway(n,o),this.clickStartedAtTarget=null;let s=r&&r.getAttribute(i);if(!s){H.isNewPageClick(n,window.location)&&this.unload();return}r.getAttribute("href")==="#"&&n.preventDefault(),!r.hasAttribute(gn)&&this.debounce(r,n,"click",()=>{this.withinOwners(r,a=>{rt.exec(n,"click",s,a,r,["push",{data:this.eventMeta("click",n,r)}])})})},!1)}dispatchClickAway(t,e){let i=this.binding("click-away");H.all(document,`[${i}]`,n=>{n.isSameNode(e)||n.contains(e)||this.withinOwners(n,r=>{let o=n.getAttribute(i);rt.isVisible(n)&&rt.isInViewport(n)&&rt.exec(t,"click",o,r,n,["push",{data:this.eventMeta("click",t,t.target)}])})})}bindNav(){if(!Mi.canPushState())return;history.scrollRestoration&&(history.scrollRestoration="manual");let t=null;window.addEventListener("scroll",e=>{clearTimeout(t),t=setTimeout(()=>{Mi.updateCurrentState(i=>Object.assign(i,{scroll:window.scrollY}))},100)}),window.addEventListener("popstate",e=>{if(!this.registerNewLocation(window.location))return;let{type:i,backType:n,id:r,scroll:o,position:s}=e.state||{},a=window.location.href,l=s>this.currentHistoryPosition,c=l?i:n||i;this.currentHistoryPosition=s||0,this.sessionStorage.setItem(Ih,this.currentHistoryPosition.toString()),H.dispatchEvent(window,"phx:navigate",{detail:{href:a,patch:c==="patch",pop:!0,direction:l?"forward":"backward"}}),this.requestDOMUpdate(()=>{let u=()=>{this.maybeScroll(o)};this.main.isConnected()&&c==="patch"&&r===this.main.id?this.main.pushLinkPatch(e,a,null,u):this.replaceMain(a,null,u)})},!1),window.addEventListener("click",e=>{let i=_c(e.target,jg),n=i&&i.getAttribute(jg);if(!n||!this.isConnected()||!this.main||H.wantsNewTab(e))return;let r=i.href instanceof SVGAnimatedString?i.href.baseVal:i.href,o=i.getAttribute(DD);e.preventDefault(),e.stopImmediatePropagation(),this.pendingLink!==r&&this.requestDOMUpdate(()=>{if(n==="patch")this.pushHistoryPatch(e,r,o,i);else if(n==="redirect")this.historyRedirect(e,r,o,null,i);else throw new Error(`expected ${jg} to be "patch" or "redirect", got: ${n}`);let s=i.getAttribute(this.binding("click"));s&&this.requestDOMUpdate(()=>this.execJS(i,s,"click"))})},!1)}maybeScroll(t){typeof t=="number"&&requestAnimationFrame(()=>{window.scrollTo(0,t)})}dispatchEvent(t,e={}){H.dispatchEvent(window,`phx:${t}`,{detail:e})}dispatchEvents(t){t.forEach(([e,i])=>this.dispatchEvent(e,i))}withPageLoading(t,e){H.dispatchEvent(window,"phx:page-loading-start",{detail:t});let i=()=>H.dispatchEvent(window,"phx:page-loading-stop",{detail:t});return e?e(i):i}pushHistoryPatch(t,e,i,n){if(!this.isConnected()||!this.main.isMain())return Mi.redirect(e);this.withPageLoading({to:e,kind:"patch"},r=>{this.main.pushLinkPatch(t,e,n,o=>{this.historyPatch(e,i,o),r()})})}historyPatch(t,e,i=this.setPendingLink(t)){this.commitPendingLink(i)&&(this.currentHistoryPosition++,this.sessionStorage.setItem(Ih,this.currentHistoryPosition.toString()),Mi.updateCurrentState(n=>Ee(F({},n),{backType:"patch"})),Mi.pushState(e,{type:"patch",id:this.main.id,position:this.currentHistoryPosition},t),H.dispatchEvent(window,"phx:navigate",{detail:{patch:!0,href:t,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location))}historyRedirect(t,e,i,n,r){let o=r&&t.isTrusted&&t.type!=="popstate";if(o&&r.classList.add("phx-click-loading"),!this.isConnected()||!this.main.isMain())return Mi.redirect(e,n);if(/^\/$|^\/[^\/]+.*$/.test(e)){let{protocol:a,host:l}=window.location;e=`${a}//${l}${e}`}let s=window.scrollY;this.withPageLoading({to:e,kind:"redirect"},a=>{this.replaceMain(e,n,l=>{l===this.linkRef&&(this.currentHistoryPosition++,this.sessionStorage.setItem(Ih,this.currentHistoryPosition.toString()),Mi.updateCurrentState(c=>Ee(F({},c),{backType:"redirect"})),Mi.pushState(i,{type:"redirect",id:this.main.id,scroll:s,position:this.currentHistoryPosition},e),H.dispatchEvent(window,"phx:navigate",{detail:{href:e,patch:!1,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location)),o&&r.classList.remove("phx-click-loading"),a()})})}registerNewLocation(t){let{pathname:e,search:i}=this.currentLocation;return e+i===t.pathname+t.search?!1:(this.currentLocation=Wh(t),!0)}bindForms(){let t=0,e=!1;this.on("submit",i=>{let n=i.target.getAttribute(this.binding("submit")),r=i.target.getAttribute(this.binding("change"));!e&&r&&!n&&(e=!0,i.preventDefault(),this.withinOwners(i.target,o=>{o.disableForm(i.target),window.requestAnimationFrame(()=>{H.isUnloadableFormSubmit(i)&&this.unload(),i.target.submit()})}))}),this.on("submit",i=>{let n=i.target.getAttribute(this.binding("submit"));if(!n){H.isUnloadableFormSubmit(i)&&this.unload();return}i.preventDefault(),i.target.disabled=!0,this.withinOwners(i.target,r=>{rt.exec(i,"submit",n,r,i.target,["push",{submitter:i.submitter}])})});for(let i of["change","input"])this.on(i,n=>{if(n instanceof CustomEvent&&(n.target instanceof HTMLInputElement||n.target instanceof HTMLSelectElement||n.target instanceof HTMLTextAreaElement)&&n.target.form===void 0){if(n.detail&&n.detail.dispatcher)throw new Error(`dispatching a custom ${i} event is only supported on input elements inside a form`);return}let r=this.binding("change"),o=n.target;if(this.blockPhxChangeWhileComposing&&n.isComposing){let O=`composition-listener-${i}`;H.private(o,O)||(H.putPrivate(o,O,!0),o.addEventListener("compositionend",()=>{o.dispatchEvent(new Event(i,{bubbles:!0})),H.deletePrivate(o,O)},{once:!0}));return}let s=o.getAttribute(r),a=o.form&&o.form.getAttribute(r),l=s||a;if(!l||o.type==="number"&&o.validity&&o.validity.badInput)return;let c=s?o:o.form,u=t;t++;let{at:f,type:d}=H.private(o,"prev-iteration")||{};f===u-1&&i==="change"&&d==="input"||(H.putPrivate(o,"prev-iteration",{at:u,type:i}),this.debounce(o,n,i,()=>{this.withinOwners(c,O=>{H.putPrivate(o,Vh,!0),rt.exec(n,"change",l,O,o,["push",{_target:n.target.name,dispatcher:c}])})}))});this.on("reset",i=>{let n=i.target;H.resetForm(n);let r=Array.from(n.elements).find(o=>o.type==="reset");r&&window.requestAnimationFrame(()=>{r.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1}))})})}debounce(t,e,i,n){if(i==="blur"||i==="focusout")return n();let r=this.binding(ND),o=this.binding(qD),s=this.defaults.debounce.toString(),a=this.defaults.throttle.toString();this.withinOwners(t,l=>{let c=()=>!l.isDestroyed()&&document.body.contains(t);H.debounce(t,e,r,s,o,a,c,()=>{n()})})}silenceEvents(t){this.silenced=!0,t(),this.silenced=!1}on(t,e){this.boundEventNames.add(t),window.addEventListener(t,i=>{this.silenced||e(i)})}jsQuerySelectorAll(t,e,i){let n=this.domCallbacks.jsQuerySelectorAll;return n?n(t,e,i):i()}},A8=class{constructor(){this.transitions=new Set,this.promises=new Set,this.pendingOps=[]}reset(){this.transitions.forEach(t=>{clearTimeout(t),this.transitions.delete(t)}),this.promises.clear(),this.flushPendingOps()}after(t){this.size()===0?t():this.pushPendingOp(t)}addTransition(t,e,i){e();let n=setTimeout(()=>{this.transitions.delete(n),i(),this.flushPendingOps()},t);this.transitions.add(n)}addAsyncTransition(t){this.promises.add(t),t.then(()=>{this.promises.delete(t),this.flushPendingOps()})}pushPendingOp(t){this.pendingOps.push(t)}size(){return this.transitions.size+this.promises.size}flushPendingOps(){if(this.size()>0)return;let t=this.pendingOps.shift();t&&(t(),this.flushPendingOps())}},hT=_8;var dT="livebook:";function Es(t){try{let e=localStorage.getItem(dT+t);if(e)return JSON.parse(e)}catch(e){console.error(`Failed to load from local storage, reason: ${e.message}`)}}function Va(t,e){try{let i=JSON.stringify(e);localStorage.setItem(dT+t,i)}catch(i){console.error(`Failed to write to local storage, reason: ${i.message}`)}}var OT="app_auth_token:";function pT(t,e){Va(OT+t,e)}function mT(){let t=window.location.pathname;if(t.startsWith("/apps/")){let e=t.split("/")[2],i=Es(OT+e);if(i)return i}return null}var $8={mounted(){this.handleEvent("persist_app_auth",({slug:t,token:e})=>{pT(t,e),this.pushEvent("app_auth_persisted")})}},gT=$8;function pt(t,e){let i={};for(let n of e){let r=`data-p-${n}`;if(!t.hasAttribute(r))throw new Error(`Missing attribute "${r}" on element <${t.tagName}:${t.id}>`);let o=t.getAttribute(r);i[X8(n)]=JSON.parse(o)}return i}function X8(t){let[e,...i]=t.split("-");return[e,...i.map(n=>n.charAt(0).toUpperCase()+n.slice(1))].join("")}function bT(t,e,i){let r=new ArrayBuffer(44+t.byteLength),o=new DataView(r),s=t.byteLength/4,a=4,l=e*a,c=i*l,u=s*l,f=0;function d(w){o.setUint32(f,w,!1),f+=4}function O(w){o.setUint32(f,w,!0),f+=4}function m(w){o.setUint16(f,w,!0),f+=2}function x(w){o.setFloat32(f,w,!0),f+=4}d(1380533830),O(36+u),d(1463899717),d(1718449184),O(16),m(3),m(e),O(i),O(c),m(l),m(a*8),d(1684108385),O(u);let v=new Float32Array(t);for(let w=0;w<v.length;w++)x(v[w]);return r}var Xc=4;function yT(t,e){let n=new TextEncoder().encode(JSON.stringify(t)),r=new ArrayBuffer(Xc+n.byteLength+e.byteLength);return new DataView(r).setUint32(0,n.byteLength),new Uint8Array(r,Xc,n.byteLength).set(n),new Uint8Array(r,Xc+n.byteLength).set(new Uint8Array(e)),r}function xT(t){let i=new DataView(t).getUint32(0),n=new Uint8Array(t,Xc,i),r=t.slice(Xc+i),o=new TextDecoder;return[JSON.parse(o.decode(n)),r]}var l0=["bg-yellow-100","border-yellow-300"],R8={mounted(){this.props=this.getProps(),this.inputEl=this.el.querySelector("[data-input]"),this.audioEl=this.el.querySelector("[data-preview]"),this.uploadButton=this.el.querySelector("[data-btn-upload]"),this.recordButton=this.el.querySelector("[data-btn-record]"),this.stopButton=this.el.querySelector("[data-btn-stop]"),this.cancelButton=this.el.querySelector("[data-btn-cancel]"),this.mediaRecorder=null,this.audioEl.src=this.props.audioUrl,this.uploadButton.addEventListener("click",t=>{this.inputEl.click()}),this.inputEl.addEventListener("change",t=>{let[e]=t.target.files;e&&this.loadFile(e)}),this.el.addEventListener("dragover",t=>{t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}),this.el.addEventListener("drop",t=>{t.stopPropagation(),t.preventDefault();let[e]=t.dataTransfer.files;e&&!this.isRecording()&&this.loadFile(e)}),this.el.addEventListener("dragenter",t=>{this.el.classList.add(...l0)}),this.el.addEventListener("dragleave",t=>{this.el.contains(t.relatedTarget)||this.el.classList.remove(...l0)}),this.el.addEventListener("drop",t=>{this.el.classList.remove(...l0)}),this.recordButton.addEventListener("click",t=>{this.startRecording()}),this.stopButton.addEventListener("click",t=>{this.stopRecording()}),this.cancelButton.addEventListener("click",t=>{this.stopRecording(!1)})},updated(){this.props=this.getProps(),this.audioEl.src=this.props.audioUrl},getProps(){return pt(this.el,["id","phx-target","sampling-rate","endianness","format","audio-url"])},startRecording(){this.audioEl.classList.add("hidden"),this.uploadButton.classList.add("hidden"),this.recordButton.classList.add("hidden"),this.stopButton.classList.remove("hidden"),this.cancelButton.classList.remove("hidden"),this.audioChunks=[],navigator.mediaDevices.getUserMedia({audio:!0}).then(t=>{this.mediaRecorder=new MediaRecorder(t),this.mediaRecorder.addEventListener("dataavailable",e=>{this.audioChunks.push(e.data)}),this.mediaRecorder.start()})},stopRecording(t=!0){this.audioEl.classList.remove("hidden"),this.uploadButton.classList.remove("hidden"),this.recordButton.classList.remove("hidden"),this.stopButton.classList.add("hidden"),this.cancelButton.classList.add("hidden"),t&&this.mediaRecorder.addEventListener("stop",e=>{new Blob(this.audioChunks).arrayBuffer().then(n=>{this.loadEncodedAudio(n)})}),this.mediaRecorder.stop()},isRecording(){return this.mediaRecorder&&this.mediaRecorder.state==="recording"},loadFile(t){let e=new FileReader;e.onload=i=>{this.loadEncodedAudio(i.target.result)},e.readAsArrayBuffer(t)},loadEncodedAudio(t){this.pushEventTo(this.props.phxTarget,"decoding",{}),new AudioContext({sampleRate:this.props.samplingRate}).decodeAudioData(t,i=>{let n=L8(i);this.pushAudio(n)})},pushAudio(t){let e={num_channels:t.numChannels,sampling_rate:t.samplingRate},i=this.encodeAudio(t),n=new Blob([i]);n.meta=()=>e,this.uploadTo(this.props.phxTarget,"file",[n])},encodeAudio(t){if(this.props.format==="pcm_f32")return I8(t.data,this.props.endianness);if(this.props.format==="wav")return bT(t.data,t.numChannels,t.samplingRate)}};function L8(t){let e=t.numberOfChannels,i=t.sampleRate,n=t.length,r=4*e*n,o=new ArrayBuffer(r),s=new Float32Array(o);for(let a=0;a<e;a++){let l=t.getChannelData(a);for(let c=0;c<l.length;c++)s[e*c+a]=l[c]}return{data:s.buffer,numChannels:e,samplingRate:i}}function I8(t,e){if(D8()===e)return t;for(let i=0;i<t.byteLength/4;i++){let n=t[i],r=t[i+1],o=t[i+2],s=t[i+3];t[i]=s,t[i+1]=o,t[i+2]=r,t[i+3]=n}return t}function D8(){let t=new ArrayBuffer(2),e=new Uint16Array(t),i=new Uint8Array(t);return e[0]=1,i[0]===1?"little":"big"}var vT=R8;var wT=11;function z8(t,e){var i=e.attributes,n,r,o,s,a;if(!(e.nodeType===wT||t.nodeType===wT)){for(var l=i.length-1;l>=0;l--)n=i[l],r=n.name,o=n.namespaceURI,s=n.value,o?(r=n.localName||r,a=t.getAttributeNS(o,r),a!==s&&(n.prefix==="xmlns"&&(r=n.name),t.setAttributeNS(o,r,s))):(a=t.getAttribute(r),a!==s&&t.setAttribute(r,s));for(var c=t.attributes,u=c.length-1;u>=0;u--)n=c[u],r=n.name,o=n.namespaceURI,o?(r=n.localName||r,e.hasAttributeNS(o,r)||t.removeAttributeNS(o,r)):e.hasAttribute(r)||t.removeAttribute(r)}}var Yh,U8="http://www.w3.org/1999/xhtml",qi=typeof document=="undefined"?void 0:document,M8=!!qi&&"content"in qi.createElement("template"),N8=!!qi&&qi.createRange&&"createContextualFragment"in qi.createRange();function q8(t){var e=qi.createElement("template");return e.innerHTML=t,e.content.childNodes[0]}function j8(t){Yh||(Yh=qi.createRange(),Yh.selectNode(qi.body));var e=Yh.createContextualFragment(t);return e.childNodes[0]}function W8(t){var e=qi.createElement("body");return e.innerHTML=t,e.childNodes[0]}function V8(t){return t=t.trim(),M8?q8(t):N8?j8(t):W8(t)}function Fh(t,e){var i=t.nodeName,n=e.nodeName,r,o;return i===n?!0:(r=i.charCodeAt(0),o=n.charCodeAt(0),r<=90&&o>=97?i===n.toUpperCase():o<=90&&r>=97?n===i.toUpperCase():!1)}function Z8(t,e){return!e||e===U8?qi.createElement(t):qi.createElementNS(e,t)}function B8(t,e){for(var i=t.firstChild;i;){var n=i.nextSibling;e.appendChild(i),i=n}return e}function c0(t,e,i){t[i]!==e[i]&&(t[i]=e[i],t[i]?t.setAttribute(i,""):t.removeAttribute(i))}var kT={OPTION:function(t,e){var i=t.parentNode;if(i){var n=i.nodeName.toUpperCase();n==="OPTGROUP"&&(i=i.parentNode,n=i&&i.nodeName.toUpperCase()),n==="SELECT"&&!i.hasAttribute("multiple")&&(t.hasAttribute("selected")&&!e.selected&&(t.setAttribute("selected","selected"),t.removeAttribute("selected")),i.selectedIndex=-1)}c0(t,e,"selected")},INPUT:function(t,e){c0(t,e,"checked"),c0(t,e,"disabled"),t.value!==e.value&&(t.value=e.value),e.hasAttribute("value")||t.removeAttribute("value")},TEXTAREA:function(t,e){var i=e.value;t.value!==i&&(t.value=i);var n=t.firstChild;if(n){var r=n.nodeValue;if(r==i||!i&&r==t.placeholder)return;n.nodeValue=i}},SELECT:function(t,e){if(!e.hasAttribute("multiple")){for(var i=-1,n=0,r=t.firstChild,o,s;r;)if(s=r.nodeName&&r.nodeName.toUpperCase(),s==="OPTGROUP")o=r,r=o.firstChild;else{if(s==="OPTION"){if(r.hasAttribute("selected")){i=n;break}n++}r=r.nextSibling,!r&&o&&(r=o.nextSibling,o=null)}t.selectedIndex=i}}},Rc=1,ST=11,TT=3,ET=8;function Qo(){}function Y8(t){if(t)return t.getAttribute&&t.getAttribute("id")||t.id}function F8(t){return function(i,n,r){if(r||(r={}),typeof n=="string")if(i.nodeName==="#document"||i.nodeName==="HTML"||i.nodeName==="BODY"){var o=n;n=qi.createElement("html"),n.innerHTML=o}else n=V8(n);else n.nodeType===ST&&(n=n.firstElementChild);var s=r.getNodeKey||Y8,a=r.onBeforeNodeAdded||Qo,l=r.onNodeAdded||Qo,c=r.onBeforeElUpdated||Qo,u=r.onElUpdated||Qo,f=r.onBeforeNodeDiscarded||Qo,d=r.onNodeDiscarded||Qo,O=r.onBeforeElChildrenUpdated||Qo,m=r.skipFromChildren||Qo,x=r.addChild||function(j,ue){return j.appendChild(ue)},v=r.childrenOnly===!0,w=Object.create(null),T=[];function Q(j){T.push(j)}function I(j,ue){if(j.nodeType===Rc)for(var Z=j.firstChild;Z;){var C=void 0;ue&&(C=s(Z))?Q(C):(d(Z),Z.firstChild&&I(Z,ue)),Z=Z.nextSibling}}function z(j,ue,Z){f(j)!==!1&&(ue&&ue.removeChild(j),d(j),I(j,Z))}function $(j){if(j.nodeType===Rc||j.nodeType===ST)for(var ue=j.firstChild;ue;){var Z=s(ue);Z&&(w[Z]=ue),$(ue),ue=ue.nextSibling}}$(i);function X(j){l(j);for(var ue=j.firstChild;ue;){var Z=ue.nextSibling,C=s(ue);if(C){var W=w[C];W&&Fh(ue,W)?(ue.parentNode.replaceChild(W,ue),K(W,ue)):X(ue)}else X(ue);ue=Z}}function Y(j,ue,Z){for(;ue;){var C=ue.nextSibling;(Z=s(ue))?Q(Z):z(ue,j,!0),ue=C}}function K(j,ue,Z){var C=s(ue);if(C&&delete w[C],!Z){var W=c(j,ue);if(W===!1||(W instanceof HTMLElement&&(j=W,$(j)),t(j,ue),u(j),O(j,ue)===!1))return}j.nodeName!=="TEXTAREA"?N(j,ue):kT.TEXTAREA(j,ue)}function N(j,ue){var Z=m(j,ue),C=ue.firstChild,W=j.firstChild,se,D,Ne,We,Ve;e:for(;C;){for(We=C.nextSibling,se=s(C);!Z&&W;){if(Ne=W.nextSibling,C.isSameNode&&C.isSameNode(W)){C=We,W=Ne;continue e}D=s(W);var Ct=W.nodeType,Xe=void 0;if(Ct===C.nodeType&&(Ct===Rc?(se?se!==D&&((Ve=w[se])?Ne===Ve?Xe=!1:(j.insertBefore(Ve,W),D?Q(D):z(W,j,!0),W=Ve,D=s(W)):Xe=!1):D&&(Xe=!1),Xe=Xe!==!1&&Fh(W,C),Xe&&K(W,C)):(Ct===TT||Ct==ET)&&(Xe=!0,W.nodeValue!==C.nodeValue&&(W.nodeValue=C.nodeValue))),Xe){C=We,W=Ne;continue e}D?Q(D):z(W,j,!0),W=Ne}if(se&&(Ve=w[se])&&Fh(Ve,C))Z||x(j,Ve),K(Ve,C);else{var Lt=a(C);Lt!==!1&&(Lt&&(C=Lt),C.actualize&&(C=C.actualize(j.ownerDocument||qi)),x(j,C),X(C))}C=We,W=Ne}Y(j,W,D);var It=kT[j.nodeName];It&&It(j,ue)}var te=i,oe=te.nodeType,re=n.nodeType;if(!v){if(oe===Rc)re===Rc?Fh(i,n)||(d(i),te=B8(i,Z8(n.nodeName,n.namespaceURI))):te=n;else if(oe===TT||oe===ET){if(re===oe)return te.nodeValue!==n.nodeValue&&(te.nodeValue=n.nodeValue),te;te=n}}if(te===n)d(i);else{if(n.isSameNode&&n.isSameNode(te))return;if(K(te,n,v),T)for(var de=0,pe=T.length;de<pe;de++){var ve=w[T[de]];ve&&z(ve,ve.parentNode,!1)}}return!v&&te!==i&&i.parentNode&&(te.actualize&&(te=te.actualize(i.ownerDocument||qi)),i.parentNode.replaceChild(te,i)),te}}var H8=F8(z8),CT=H8;function u0(t){if(t)throw t}var Kh=Ia(IT(),1);function Lc(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function DT(){let t=[],e={run:i,use:n};return e;function i(...r){let o=-1,s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(l,...c){let u=t[++o],f=-1;if(l){s(l);return}for(;++f<r.length;)(c[f]===null||c[f]===void 0)&&(c[f]=r[f]);r=c,u?G8(u,a)(...c):s(null,...c)}}function n(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return t.push(r),e}}function G8(t,e){let i;return n;function n(...s){let a=t.length>s.length,l;a&&s.push(r);try{l=t.apply(this,s)}catch(c){let u=c;if(a&&i)throw u;return r(u)}a||(l instanceof Promise?l.then(o,r):l instanceof Error?r(l):o(l))}function r(s,...a){i||(i=!0,e(s,...a))}function o(s){r(null,s)}}function h0(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?zT(t.position):"start"in t||"end"in t?zT(t):"line"in t||"column"in t?f0(t):""}function f0(t){return UT(t&&t.line)+":"+UT(t&&t.column)}function zT(t){return f0(t&&t.start)+"-"+f0(t&&t.end)}function UT(t){return t&&typeof t=="number"?t:1}var Yt=class extends Error{constructor(e,i,n){super(),typeof i=="string"&&(n=i,i=void 0);let r="",o={},s=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o=F({},i)),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?o.ruleId=n:(o.source=n.slice(0,l),o.ruleId=n.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=h0(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}};Yt.prototype.file="";Yt.prototype.name="";Yt.prototype.reason="";Yt.prototype.message="";Yt.prototype.stack="";Yt.prototype.column=void 0;Yt.prototype.line=void 0;Yt.prototype.ancestors=void 0;Yt.prototype.cause=void 0;Yt.prototype.fatal=void 0;Yt.prototype.place=void 0;Yt.prototype.ruleId=void 0;Yt.prototype.source=void 0;var Un={basename:K8,dirname:J8,extname:ez,join:tz,sep:"/"};function K8(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Ic(t);let i=0,n=-1,r=t.length,o;if(e===void 0||e.length===0||e.length>t.length){for(;r--;)if(t.codePointAt(r)===47){if(o){i=r+1;break}}else n<0&&(o=!0,n=r+1);return n<0?"":t.slice(i,n)}if(e===t)return"";let s=-1,a=e.length-1;for(;r--;)if(t.codePointAt(r)===47){if(o){i=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(t.codePointAt(r)===e.codePointAt(a--)?a<0&&(n=r):(a=-1,n=s));return i===n?n=s:n<0&&(n=t.length),t.slice(i,n)}function J8(t){if(Ic(t),t.length===0)return".";let e=-1,i=t.length,n;for(;--i;)if(t.codePointAt(i)===47){if(n){e=i;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function ez(t){Ic(t);let e=t.length,i=-1,n=0,r=-1,o=0,s;for(;e--;){let a=t.codePointAt(e);if(a===47){if(s){n=e+1;break}continue}i<0&&(s=!0,i=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||i<0||o===0||o===1&&r===i-1&&r===n+1?"":t.slice(r,i)}function tz(...t){let e=-1,i;for(;++e<t.length;)Ic(t[e]),t[e]&&(i=i===void 0?t[e]:i+"/"+t[e]);return i===void 0?".":iz(i)}function iz(t){Ic(t);let e=t.codePointAt(0)===47,i=nz(t,!e);return i.length===0&&!e&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),e?"/"+i:i}function nz(t,e){let i="",n=0,r=-1,o=0,s=-1,a,l;for(;++s<=t.length;){if(s<t.length)a=t.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(i.length<2||n!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(l=i.lastIndexOf("/"),l!==i.length-1){l<0?(i="",n=0):(i=i.slice(0,l),n=i.length-1-i.lastIndexOf("/")),r=s,o=0;continue}}else if(i.length>0){i="",n=0,r=s,o=0;continue}}e&&(i=i.length>0?i+"/..":"..",n=2)}else i.length>0?i+="/"+t.slice(r+1,s):i=t.slice(r+1,s),n=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return i}function Ic(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}var MT={cwd:rz};function rz(){return"/"}function Za(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function NT(t){if(typeof t=="string")t=new URL(t);else if(!Za(t)){let e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){let e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return oz(t)}function oz(t){if(t.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let e=t.pathname,i=-1;for(;++i<e.length;)if(e.codePointAt(i)===37&&e.codePointAt(i+1)===50){let n=e.codePointAt(i+2);if(n===70||n===102){let r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(e)}var d0=["history","path","basename","stem","extname","dirname"],_o=class{constructor(e){let i;e?Za(e)?i={path:e}:typeof e=="string"||sz(e)?i={value:e}:i=e:i={},this.cwd=MT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<d0.length;){let o=d0[n];o in i&&i[o]!==void 0&&i[o]!==null&&(this[o]=o==="history"?[...i[o]]:i[o])}let r;for(r in i)d0.includes(r)||(this[r]=i[r])}get basename(){return typeof this.path=="string"?Un.basename(this.path):void 0}set basename(e){p0(e,"basename"),O0(e,"basename"),this.path=Un.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Un.dirname(this.path):void 0}set dirname(e){qT(this.basename,"dirname"),this.path=Un.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Un.extname(this.path):void 0}set extname(e){if(O0(e,"extname"),qT(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Un.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Za(e)&&(e=NT(e)),p0(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Un.basename(this.path,this.extname):void 0}set stem(e){p0(e,"stem"),O0(e,"stem"),this.path=Un.join(this.dirname||"",e+(this.extname||""))}fail(e,i,n){let r=this.message(e,i,n);throw r.fatal=!0,r}info(e,i,n){let r=this.message(e,i,n);return r.fatal=void 0,r}message(e,i,n){let r=new Yt(e,i,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function O0(t,e){if(t&&t.includes(Un.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Un.sep+"`")}function p0(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function qT(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function sz(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var jT=function(t){let n=this.constructor.prototype,r=n[t],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,n),o};var az={}.hasOwnProperty,y0=class t extends jT{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=DT()}copy(){let e=new t,i=-1;for(;++i<this.attachers.length;){let n=this.attachers[i];e.use(...n)}return e.data((0,Kh.default)(!0,{},this.namespace)),e}data(e,i){return typeof e=="string"?arguments.length===2?(b0("data",this.frozen),this.namespace[e]=i,this):az.call(this.namespace,e)&&this.namespace[e]||void 0:e?(b0("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[i,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=i.call(e,...n);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let i=Gh(e),n=this.parser||this.Parser;return m0("parse",n),n(String(i),i)}process(e,i){let n=this;return this.freeze(),m0("process",this.parser||this.Parser),g0("process",this.compiler||this.Compiler),i?r(void 0,i):new Promise(r);function r(o,s){let a=Gh(e),l=n.parse(a);n.run(l,a,function(u,f,d){if(u||!f||!d)return c(u);let O=f,m=n.stringify(O,d);cz(m)?d.value=m:d.result=m,c(u,d)});function c(u,f){u||!f?s(u):o?o(f):i(void 0,f)}}}processSync(e){let i=!1,n;return this.freeze(),m0("processSync",this.parser||this.Parser),g0("processSync",this.compiler||this.Compiler),this.process(e,r),VT("processSync","process",i),n;function r(o,s){i=!0,u0(o),n=s}}run(e,i,n){WT(e),this.freeze();let r=this.transformers;return!n&&typeof i=="function"&&(n=i,i=void 0),n?o(void 0,n):new Promise(o);function o(s,a){let l=Gh(i);r.run(e,l,c);function c(u,f,d){let O=f||e;u?a(u):s?s(O):n(void 0,O,d)}}}runSync(e,i){let n=!1,r;return this.run(e,i,o),VT("runSync","run",n),r;function o(s,a){u0(s),r=a,n=!0}}stringify(e,i){this.freeze();let n=Gh(i),r=this.compiler||this.Compiler;return g0("stringify",r),WT(e),r(e,n)}use(e,...i){let n=this.attachers,r=this.namespace;if(b0("use",this.frozen),e!=null)if(typeof e=="function")l(e,i);else if(typeof e=="object")Array.isArray(e)?a(e):s(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function o(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[u,...f]=c;l(u,f)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(r.settings=(0,Kh.default)(!0,r.settings,c.settings))}function a(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){let f=c[u];o(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let f=-1,d=-1;for(;++f<n.length;)if(n[f][0]===c){d=f;break}if(d===-1)n.push([c,...u]);else if(u.length>0){let[O,...m]=u,x=n[d][1];Lc(x)&&Lc(O)&&(O=(0,Kh.default)(!0,x,O)),n[d]=[c,O,...m]}}}},Jh=new y0().freeze();function m0(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function g0(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function b0(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function WT(t){if(!Lc(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function VT(t,e,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Gh(t){return lz(t)?t:new _o(t)}function lz(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function cz(t){return typeof t=="string"||uz(t)}function uz(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var fz={};function x0(t,e){let i=e||fz,n=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,r=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return BT(t,n,r)}function BT(t,e,i){if(hz(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return ZT(t.children,e,i)}return Array.isArray(t)?ZT(t,e,i):""}function ZT(t,e,i){let n=[],r=-1;for(;++r<t.length;)n[r]=BT(t[r],e,i);return n.join("")}function hz(t){return!!(t&&typeof t=="object")}var YT=document.createElement("i");function Ba(t){let e="&"+t+";";YT.innerHTML=e;let i=YT.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===e?!1:i}function ui(t,e,i,n){let r=t.length,o=0,s;if(e<0?e=-e>r?0:r+e:e=e>r?r:e,i=i>0?i:0,n.length<1e4)s=Array.from(n),s.unshift(e,i),t.splice(...s);else for(i&&t.splice(e,i);o<n.length;)s=n.slice(o,o+1e4),s.unshift(e,0),t.splice(...s),o+=1e4,e+=1e4}function Qi(t,e){return t.length>0?(ui(t,t.length,0,e),t):e}var FT={}.hasOwnProperty;function HT(t){let e={},i=-1;for(;++i<t.length;)dz(e,t[i]);return e}function dz(t,e){let i;for(i in e){let r=(FT.call(t,i)?t[i]:void 0)||(t[i]={}),o=e[i],s;if(o)for(s in o){FT.call(r,s)||(r[s]=[]);let a=o[s];Oz(r[s],Array.isArray(a)?a:a?[a]:[])}}}function Oz(t,e){let i=-1,n=[];for(;++i<e.length;)(e[i].add==="after"?t:n).push(e[i]);ui(t,0,0,n)}function ed(t,e){let i=Number.parseInt(t,e);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"\uFFFD":String.fromCharCode(i)}function Xr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var pz=Ao(new RegExp("\\p{P}","u")),tn=Ao(/[A-Za-z]/),_i=Ao(/[\dA-Za-z]/),GT=Ao(/[#-'*+\--9=?A-Z^-~]/);function Dc(t){return t!==null&&(t<32||t===127)}var zc=Ao(/\d/),KT=Ao(/[\dA-Fa-f]/),v0=Ao(/[!-/:-@[-`{-~]/);function Te(t){return t!==null&&t<-2}function Vt(t){return t!==null&&(t<0||t===32)}function Le(t){return t===-2||t===-1||t===32}function JT(t){return v0(t)||pz(t)}var e3=Ao(/\s/);function Ao(t){return e;function e(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function Ie(t,e,i,n){let r=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return Le(l)?(t.enter(i),a(l)):e(l)}function a(l){return Le(l)&&o++<r?(t.consume(l),a):(t.exit(i),e(l))}}var t3={tokenize:mz};function mz(t){let e=t.attempt(this.parser.constructs.contentInitial,n,r),i;return e;function n(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ie(t,e,"linePrefix")}function r(a){return t.enter("paragraph"),o(a)}function o(a){let l=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=l),i=l,s(a)}function s(a){if(a===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(a);return}return Te(a)?(t.consume(a),t.exit("chunkText"),o):(t.consume(a),s)}}var n3={tokenize:gz},i3={tokenize:bz};function gz(t){let e=this,i=[],n=0,r,o,s;return a;function a(Q){if(n<i.length){let I=i[n];return e.containerState=I[1],t.attempt(I[0].continuation,l,c)(Q)}return c(Q)}function l(Q){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&T();let I=e.events.length,z=I,$;for(;z--;)if(e.events[z][0]==="exit"&&e.events[z][1].type==="chunkFlow"){$=e.events[z][1].end;break}w(n);let X=I;for(;X<e.events.length;)e.events[X][1].end=Object.assign({},$),X++;return ui(e.events,z+1,0,e.events.slice(I)),e.events.length=X,c(Q)}return a(Q)}function c(Q){if(n===i.length){if(!r)return d(Q);if(r.currentConstruct&&r.currentConstruct.concrete)return m(Q);e.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(i3,u,f)(Q)}function u(Q){return r&&T(),w(n),d(Q)}function f(Q){return e.parser.lazy[e.now().line]=n!==i.length,s=e.now().offset,m(Q)}function d(Q){return e.containerState={},t.attempt(i3,O,m)(Q)}function O(Q){return n++,i.push([e.currentConstruct,e.containerState]),d(Q)}function m(Q){if(Q===null){r&&T(),w(0),t.consume(Q);return}return r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),x(Q)}function x(Q){if(Q===null){v(t.exit("chunkFlow"),!0),w(0),t.consume(Q);return}return Te(Q)?(t.consume(Q),v(t.exit("chunkFlow")),n=0,e.interrupt=void 0,a):(t.consume(Q),x)}function v(Q,I){let z=e.sliceStream(Q);if(I&&z.push(null),Q.previous=o,o&&(o.next=Q),o=Q,r.defineSkip(Q.start),r.write(z),e.parser.lazy[Q.start.line]){let $=r.events.length;for(;$--;)if(r.events[$][1].start.offset<s&&(!r.events[$][1].end||r.events[$][1].end.offset>s))return;let X=e.events.length,Y=X,K,N;for(;Y--;)if(e.events[Y][0]==="exit"&&e.events[Y][1].type==="chunkFlow"){if(K){N=e.events[Y][1].end;break}K=!0}for(w(n),$=X;$<e.events.length;)e.events[$][1].end=Object.assign({},N),$++;ui(e.events,Y+1,0,e.events.slice(X)),e.events.length=$}}function w(Q){let I=i.length;for(;I-- >Q;){let z=i[I];e.containerState=z[1],z[0].exit.call(e,t)}i.length=Q}function T(){r.write([null]),o=void 0,r=void 0,e.containerState._closeFlow=void 0}}function bz(t,e,i){return Ie(t,t.attempt(this.parser.constructs.document,e,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function w0(t){if(t===null||Vt(t)||e3(t))return 1;if(JT(t))return 2}function Ya(t,e,i){let n=[],r=-1;for(;++r<t.length;){let o=t[r].resolveAll;o&&!n.includes(o)&&(e=o(e,i),n.push(o))}return e}var Uc={name:"attention",tokenize:xz,resolveAll:yz};function yz(t,e){let i=-1,n,r,o,s,a,l,c,u;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(n=i;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[n][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;l=t[n][1].end.offset-t[n][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;let f=Object.assign({},t[n][1].end),d=Object.assign({},t[i][1].start);r3(f,-l),r3(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},t[n][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[i][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[i][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},a.end)},t[n][1].end=Object.assign({},s.start),t[i][1].start=Object.assign({},a.end),c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=Qi(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=Qi(c,[["enter",r,e],["enter",s,e],["exit",s,e],["enter",o,e]]),c=Qi(c,Ya(e.parser.constructs.insideSpan.null,t.slice(n+1,i),e)),c=Qi(c,[["exit",o,e],["enter",a,e],["exit",a,e],["exit",r,e]]),t[i][1].end.offset-t[i][1].start.offset?(u=2,c=Qi(c,[["enter",t[i][1],e],["exit",t[i][1],e]])):u=0,ui(t,n-1,i-n+3,c),i=n+c.length-u-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function xz(t,e){let i=this.parser.constructs.attentionMarkers.null,n=this.previous,r=w0(n),o;return s;function s(l){return o=l,t.enter("attentionSequence"),a(l)}function a(l){if(l===o)return t.consume(l),a;let c=t.exit("attentionSequence"),u=w0(l),f=!u||u===2&&r||i.includes(l),d=!r||r===2&&u||i.includes(n);return c._open=!!(o===42?f:f&&(r||!d)),c._close=!!(o===42?d:d&&(u||!f)),e(l)}}function r3(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}var k0={name:"autolink",tokenize:vz};function vz(t,e,i){let n=0;return r;function r(O){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(O),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(O){return tn(O)?(t.consume(O),s):c(O)}function s(O){return O===43||O===45||O===46||_i(O)?(n=1,a(O)):c(O)}function a(O){return O===58?(t.consume(O),n=0,l):(O===43||O===45||O===46||_i(O))&&n++<32?(t.consume(O),a):(n=0,c(O))}function l(O){return O===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(O),t.exit("autolinkMarker"),t.exit("autolink"),e):O===null||O===32||O===60||Dc(O)?i(O):(t.consume(O),l)}function c(O){return O===64?(t.consume(O),u):GT(O)?(t.consume(O),c):i(O)}function u(O){return _i(O)?f(O):i(O)}function f(O){return O===46?(t.consume(O),n=0,u):O===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(O),t.exit("autolinkMarker"),t.exit("autolink"),e):d(O)}function d(O){if((O===45||_i(O))&&n++<63){let m=O===45?d:f;return t.consume(O),m}return i(O)}}var $o={tokenize:wz,partial:!0};function wz(t,e,i){return n;function n(o){return Le(o)?Ie(t,r,"linePrefix")(o):r(o)}function r(o){return o===null||Te(o)?e(o):i(o)}}var td={name:"blockQuote",tokenize:kz,continuation:{tokenize:Sz},exit:Tz};function kz(t,e,i){let n=this;return r;function r(s){if(s===62){let a=n.containerState;return a.open||(t.enter("blockQuote",{_container:!0}),a.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),o}return i(s)}function o(s){return Le(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function Sz(t,e,i){let n=this;return r;function r(s){return Le(s)?Ie(t,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return t.attempt(td,e,i)(s)}}function Tz(t){t.exit("blockQuote")}var id={name:"characterEscape",tokenize:Ez};function Ez(t,e,i){return n;function n(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),r}function r(o){return v0(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):i(o)}}var nd={name:"characterReference",tokenize:Cz};function Cz(t,e,i){let n=this,r=0,o,s;return a;function a(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),l}function l(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),o=31,s=_i,u(f))}function c(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,s=KT,u):(t.enter("characterReferenceValue"),o=7,s=zc,u(f))}function u(f){if(f===59&&r){let d=t.exit("characterReferenceValue");return s===_i&&!Ba(n.sliceSerialize(d))?i(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(f)&&r++<o?(t.consume(f),u):i(f)}}var o3={tokenize:Qz,partial:!0},rd={name:"codeFenced",tokenize:Pz,concrete:!0};function Pz(t,e,i){let n=this,r={tokenize:z,partial:!0},o=0,s=0,a;return l;function l($){return c($)}function c($){let X=n.events[n.events.length-1];return o=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,a=$,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),u($)}function u($){return $===a?(s++,t.consume($),u):s<3?i($):(t.exit("codeFencedFenceSequence"),Le($)?Ie(t,f,"whitespace")($):f($))}function f($){return $===null||Te($)?(t.exit("codeFencedFence"),n.interrupt?e($):t.check(o3,x,I)($)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),d($))}function d($){return $===null||Te($)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f($)):Le($)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ie(t,O,"whitespace")($)):$===96&&$===a?i($):(t.consume($),d)}function O($){return $===null||Te($)?f($):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),m($))}function m($){return $===null||Te($)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f($)):$===96&&$===a?i($):(t.consume($),m)}function x($){return t.attempt(r,I,v)($)}function v($){return t.enter("lineEnding"),t.consume($),t.exit("lineEnding"),w}function w($){return o>0&&Le($)?Ie(t,T,"linePrefix",o+1)($):T($)}function T($){return $===null||Te($)?t.check(o3,x,I)($):(t.enter("codeFlowValue"),Q($))}function Q($){return $===null||Te($)?(t.exit("codeFlowValue"),T($)):(t.consume($),Q)}function I($){return t.exit("codeFenced"),e($)}function z($,X,Y){let K=0;return N;function N(pe){return $.enter("lineEnding"),$.consume(pe),$.exit("lineEnding"),te}function te(pe){return $.enter("codeFencedFence"),Le(pe)?Ie($,oe,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(pe):oe(pe)}function oe(pe){return pe===a?($.enter("codeFencedFenceSequence"),re(pe)):Y(pe)}function re(pe){return pe===a?(K++,$.consume(pe),re):K>=s?($.exit("codeFencedFenceSequence"),Le(pe)?Ie($,de,"whitespace")(pe):de(pe)):Y(pe)}function de(pe){return pe===null||Te(pe)?($.exit("codeFencedFence"),X(pe)):Y(pe)}}}function Qz(t,e,i){let n=this;return r;function r(s){return s===null?i(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?i(s):e(s)}}var Mc={name:"codeIndented",tokenize:Az},_z={tokenize:$z,partial:!0};function Az(t,e,i){let n=this;return r;function r(c){return t.enter("codeIndented"),Ie(t,o,"linePrefix",5)(c)}function o(c){let u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):i(c)}function s(c){return c===null?l(c):Te(c)?t.attempt(_z,s,l)(c):(t.enter("codeFlowValue"),a(c))}function a(c){return c===null||Te(c)?(t.exit("codeFlowValue"),s(c)):(t.consume(c),a)}function l(c){return t.exit("codeIndented"),e(c)}}function $z(t,e,i){let n=this;return r;function r(s){return n.parser.lazy[n.now().line]?i(s):Te(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r):Ie(t,o,"linePrefix",5)(s)}function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(s):Te(s)?r(s):i(s)}}var S0={name:"codeText",tokenize:Lz,resolve:Xz,previous:Rz};function Xz(t){let e=t.length-4,i=3,n,r;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=i;++n<e;)if(t[n][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[e][1].type="codeTextPadding",i+=2,e-=2;break}}for(n=i-1,e++;++n<=e;)r===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(r=n):(n===e||t[n][1].type==="lineEnding")&&(t[r][1].type="codeTextData",n!==r+2&&(t[r][1].end=t[n-1][1].end,t.splice(r+2,n-r-2),e-=n-r-2,n=r+2),r=void 0);return t}function Rz(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Lz(t,e,i){let n=this,r=0,o,s;return a;function a(d){return t.enter("codeText"),t.enter("codeTextSequence"),l(d)}function l(d){return d===96?(t.consume(d),r++,l):(t.exit("codeTextSequence"),c(d))}function c(d){return d===null?i(d):d===32?(t.enter("space"),t.consume(d),t.exit("space"),c):d===96?(s=t.enter("codeTextSequence"),o=0,f(d)):Te(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),c):(t.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||Te(d)?(t.exit("codeTextData"),c(d)):(t.consume(d),u)}function f(d){return d===96?(t.consume(d),o++,f):o===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(d)):(s.type="codeTextData",u(d))}}function od(t){let e={},i=-1,n,r,o,s,a,l,c;for(;++i<t.length;){for(;i in e;)i=e[i];if(n=t[i],i&&n[1].type==="chunkFlow"&&t[i-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(e,Iz(t,i)),i=e[i],c=!0);else if(n[1]._container){for(o=i,r=void 0;o--&&(s=t[o],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(r&&(t[r][1].type="lineEndingBlank"),s[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},t[r][1].start),a=t.slice(r,i),a.unshift(n),ui(t,r,i-r+1,a))}}return!c}function Iz(t,e){let i=t[e][1],n=t[e][2],r=e-1,o=[],s=i._tokenizer||n.parser[i.contentType](i.start),a=s.events,l=[],c={},u,f,d=-1,O=i,m=0,x=0,v=[x];for(;O;){for(;t[++r][1]!==O;);o.push(r),O._tokenizer||(u=n.sliceStream(O),O.next||u.push(null),f&&s.defineSkip(O.start),O._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),O._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=O,O=O.next}for(O=i;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(x=d+1,v.push(x),O._tokenizer=void 0,O.previous=void 0,O=O.next);for(s.events=[],O?(O._tokenizer=void 0,O.previous=void 0):v.pop(),d=v.length;d--;){let w=a.slice(v[d],v[d+1]),T=o.pop();l.unshift([T,T+w.length-1]),ui(t,T,2,w)}for(d=-1;++d<l.length;)c[m+l[d][0]]=m+l[d][1],m+=l[d][1]-l[d][0]-1;return c}var T0={tokenize:Uz,resolve:zz},Dz={tokenize:Mz,partial:!0};function zz(t){return od(t),t}function Uz(t,e){let i;return n;function n(a){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),r(a)}function r(a){return a===null?o(a):Te(a)?t.check(Dz,s,o)(a):(t.consume(a),r)}function o(a){return t.exit("chunkContent"),t.exit("content"),e(a)}function s(a){return t.consume(a),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,r}}function Mz(t,e,i){let n=this;return r;function r(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Ie(t,o,"linePrefix")}function o(s){if(s===null||Te(s))return i(s);let a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(s):t.interrupt(n.parser.constructs.flow,i,e)(s)}}function sd(t,e,i,n,r,o,s,a,l){let c=l||Number.POSITIVE_INFINITY,u=0;return f;function f(w){return w===60?(t.enter(n),t.enter(r),t.enter(o),t.consume(w),t.exit(o),d):w===null||w===32||w===41||Dc(w)?i(w):(t.enter(n),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),x(w))}function d(w){return w===62?(t.enter(o),t.consume(w),t.exit(o),t.exit(r),t.exit(n),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),O(w))}function O(w){return w===62?(t.exit("chunkString"),t.exit(a),d(w)):w===null||w===60||Te(w)?i(w):(t.consume(w),w===92?m:O)}function m(w){return w===60||w===62||w===92?(t.consume(w),O):O(w)}function x(w){return!u&&(w===null||w===41||Vt(w))?(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(n),e(w)):u<c&&w===40?(t.consume(w),u++,x):w===41?(t.consume(w),u--,x):w===null||w===32||w===40||Dc(w)?i(w):(t.consume(w),w===92?v:x)}function v(w){return w===40||w===41||w===92?(t.consume(w),x):x(w)}}function ad(t,e,i,n,r,o){let s=this,a=0,l;return c;function c(O){return t.enter(n),t.enter(r),t.consume(O),t.exit(r),t.enter(o),u}function u(O){return a>999||O===null||O===91||O===93&&!l||O===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?i(O):O===93?(t.exit(o),t.enter(r),t.consume(O),t.exit(r),t.exit(n),e):Te(O)?(t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),u):(t.enter("chunkString",{contentType:"string"}),f(O))}function f(O){return O===null||O===91||O===93||Te(O)||a++>999?(t.exit("chunkString"),u(O)):(t.consume(O),l||(l=!Le(O)),O===92?d:f)}function d(O){return O===91||O===92||O===93?(t.consume(O),a++,f):f(O)}}function ld(t,e,i,n,r,o){let s;return a;function a(d){return d===34||d===39||d===40?(t.enter(n),t.enter(r),t.consume(d),t.exit(r),s=d===40?41:d,l):i(d)}function l(d){return d===s?(t.enter(r),t.consume(d),t.exit(r),t.exit(n),e):(t.enter(o),c(d))}function c(d){return d===s?(t.exit(o),l(s)):d===null?i(d):Te(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Ie(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===s||d===null||Te(d)?(t.exit("chunkString"),c(d)):(t.consume(d),d===92?f:u)}function f(d){return d===s||d===92?(t.consume(d),u):u(d)}}function Cs(t,e){let i;return n;function n(r){return Te(r)?(t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),i=!0,n):Le(r)?Ie(t,n,i?"linePrefix":"lineSuffix")(r):e(r)}}var E0={name:"definition",tokenize:qz},Nz={tokenize:jz,partial:!0};function qz(t,e,i){let n=this,r;return o;function o(O){return t.enter("definition"),s(O)}function s(O){return ad.call(n,t,a,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(O)}function a(O){return r=Xr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),O===58?(t.enter("definitionMarker"),t.consume(O),t.exit("definitionMarker"),l):i(O)}function l(O){return Vt(O)?Cs(t,c)(O):c(O)}function c(O){return sd(t,u,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(O)}function u(O){return t.attempt(Nz,f,f)(O)}function f(O){return Le(O)?Ie(t,d,"whitespace")(O):d(O)}function d(O){return O===null||Te(O)?(t.exit("definition"),n.parser.defined.push(r),e(O)):i(O)}}function jz(t,e,i){return n;function n(a){return Vt(a)?Cs(t,r)(a):i(a)}function r(a){return ld(t,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Le(a)?Ie(t,s,"whitespace")(a):s(a)}function s(a){return a===null||Te(a)?e(a):i(a)}}var C0={name:"hardBreakEscape",tokenize:Wz};function Wz(t,e,i){return n;function n(o){return t.enter("hardBreakEscape"),t.consume(o),r}function r(o){return Te(o)?(t.exit("hardBreakEscape"),e(o)):i(o)}}var P0={name:"headingAtx",tokenize:Zz,resolve:Vz};function Vz(t,e){let i=t.length-2,n=3,r,o;return t[n][1].type==="whitespace"&&(n+=2),i-2>n&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(n===i-1||i-4>n&&t[i-2][1].type==="whitespace")&&(i-=n+1===i?2:4),i>n&&(r={type:"atxHeadingText",start:t[n][1].start,end:t[i][1].end},o={type:"chunkText",start:t[n][1].start,end:t[i][1].end,contentType:"text"},ui(t,n,i-n+1,[["enter",r,e],["enter",o,e],["exit",o,e],["exit",r,e]])),t}function Zz(t,e,i){let n=0;return r;function r(u){return t.enter("atxHeading"),o(u)}function o(u){return t.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&n++<6?(t.consume(u),s):u===null||Vt(u)?(t.exit("atxHeadingSequence"),a(u)):i(u)}function a(u){return u===35?(t.enter("atxHeadingSequence"),l(u)):u===null||Te(u)?(t.exit("atxHeading"),e(u)):Le(u)?Ie(t,a,"whitespace")(u):(t.enter("atxHeadingText"),c(u))}function l(u){return u===35?(t.consume(u),l):(t.exit("atxHeadingSequence"),a(u))}function c(u){return u===null||u===35||Vt(u)?(t.exit("atxHeadingText"),a(u)):(t.consume(u),c)}}var s3=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Q0=["pre","script","style","textarea"];var _0={name:"htmlFlow",tokenize:Hz,resolveTo:Fz,concrete:!0},Bz={tokenize:Kz,partial:!0},Yz={tokenize:Gz,partial:!0};function Fz(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function Hz(t,e,i){let n=this,r,o,s,a,l;return c;function c(D){return u(D)}function u(D){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(D),f}function f(D){return D===33?(t.consume(D),d):D===47?(t.consume(D),o=!0,x):D===63?(t.consume(D),r=3,n.interrupt?e:C):tn(D)?(t.consume(D),s=String.fromCharCode(D),v):i(D)}function d(D){return D===45?(t.consume(D),r=2,O):D===91?(t.consume(D),r=5,a=0,m):tn(D)?(t.consume(D),r=4,n.interrupt?e:C):i(D)}function O(D){return D===45?(t.consume(D),n.interrupt?e:C):i(D)}function m(D){let Ne="CDATA[";return D===Ne.charCodeAt(a++)?(t.consume(D),a===Ne.length?n.interrupt?e:oe:m):i(D)}function x(D){return tn(D)?(t.consume(D),s=String.fromCharCode(D),v):i(D)}function v(D){if(D===null||D===47||D===62||Vt(D)){let Ne=D===47,We=s.toLowerCase();return!Ne&&!o&&Q0.includes(We)?(r=1,n.interrupt?e(D):oe(D)):s3.includes(s.toLowerCase())?(r=6,Ne?(t.consume(D),w):n.interrupt?e(D):oe(D)):(r=7,n.interrupt&&!n.parser.lazy[n.now().line]?i(D):o?T(D):Q(D))}return D===45||_i(D)?(t.consume(D),s+=String.fromCharCode(D),v):i(D)}function w(D){return D===62?(t.consume(D),n.interrupt?e:oe):i(D)}function T(D){return Le(D)?(t.consume(D),T):N(D)}function Q(D){return D===47?(t.consume(D),N):D===58||D===95||tn(D)?(t.consume(D),I):Le(D)?(t.consume(D),Q):N(D)}function I(D){return D===45||D===46||D===58||D===95||_i(D)?(t.consume(D),I):z(D)}function z(D){return D===61?(t.consume(D),$):Le(D)?(t.consume(D),z):Q(D)}function $(D){return D===null||D===60||D===61||D===62||D===96?i(D):D===34||D===39?(t.consume(D),l=D,X):Le(D)?(t.consume(D),$):Y(D)}function X(D){return D===l?(t.consume(D),l=null,K):D===null||Te(D)?i(D):(t.consume(D),X)}function Y(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Vt(D)?z(D):(t.consume(D),Y)}function K(D){return D===47||D===62||Le(D)?Q(D):i(D)}function N(D){return D===62?(t.consume(D),te):i(D)}function te(D){return D===null||Te(D)?oe(D):Le(D)?(t.consume(D),te):i(D)}function oe(D){return D===45&&r===2?(t.consume(D),ve):D===60&&r===1?(t.consume(D),j):D===62&&r===4?(t.consume(D),W):D===63&&r===3?(t.consume(D),C):D===93&&r===5?(t.consume(D),Z):Te(D)&&(r===6||r===7)?(t.exit("htmlFlowData"),t.check(Bz,se,re)(D)):D===null||Te(D)?(t.exit("htmlFlowData"),re(D)):(t.consume(D),oe)}function re(D){return t.check(Yz,de,se)(D)}function de(D){return t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),pe}function pe(D){return D===null||Te(D)?re(D):(t.enter("htmlFlowData"),oe(D))}function ve(D){return D===45?(t.consume(D),C):oe(D)}function j(D){return D===47?(t.consume(D),s="",ue):oe(D)}function ue(D){if(D===62){let Ne=s.toLowerCase();return Q0.includes(Ne)?(t.consume(D),W):oe(D)}return tn(D)&&s.length<8?(t.consume(D),s+=String.fromCharCode(D),ue):oe(D)}function Z(D){return D===93?(t.consume(D),C):oe(D)}function C(D){return D===62?(t.consume(D),W):D===45&&r===2?(t.consume(D),C):oe(D)}function W(D){return D===null||Te(D)?(t.exit("htmlFlowData"),se(D)):(t.consume(D),W)}function se(D){return t.exit("htmlFlow"),e(D)}}function Gz(t,e,i){let n=this;return r;function r(s){return Te(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):i(s)}function o(s){return n.parser.lazy[n.now().line]?i(s):e(s)}}function Kz(t,e,i){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt($o,e,i)}}var A0={name:"htmlText",tokenize:Jz};function Jz(t,e,i){let n=this,r,o,s;return a;function a(C){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(C),l}function l(C){return C===33?(t.consume(C),c):C===47?(t.consume(C),z):C===63?(t.consume(C),Q):tn(C)?(t.consume(C),Y):i(C)}function c(C){return C===45?(t.consume(C),u):C===91?(t.consume(C),o=0,m):tn(C)?(t.consume(C),T):i(C)}function u(C){return C===45?(t.consume(C),O):i(C)}function f(C){return C===null?i(C):C===45?(t.consume(C),d):Te(C)?(s=f,j(C)):(t.consume(C),f)}function d(C){return C===45?(t.consume(C),O):f(C)}function O(C){return C===62?ve(C):C===45?d(C):f(C)}function m(C){let W="CDATA[";return C===W.charCodeAt(o++)?(t.consume(C),o===W.length?x:m):i(C)}function x(C){return C===null?i(C):C===93?(t.consume(C),v):Te(C)?(s=x,j(C)):(t.consume(C),x)}function v(C){return C===93?(t.consume(C),w):x(C)}function w(C){return C===62?ve(C):C===93?(t.consume(C),w):x(C)}function T(C){return C===null||C===62?ve(C):Te(C)?(s=T,j(C)):(t.consume(C),T)}function Q(C){return C===null?i(C):C===63?(t.consume(C),I):Te(C)?(s=Q,j(C)):(t.consume(C),Q)}function I(C){return C===62?ve(C):Q(C)}function z(C){return tn(C)?(t.consume(C),$):i(C)}function $(C){return C===45||_i(C)?(t.consume(C),$):X(C)}function X(C){return Te(C)?(s=X,j(C)):Le(C)?(t.consume(C),X):ve(C)}function Y(C){return C===45||_i(C)?(t.consume(C),Y):C===47||C===62||Vt(C)?K(C):i(C)}function K(C){return C===47?(t.consume(C),ve):C===58||C===95||tn(C)?(t.consume(C),N):Te(C)?(s=K,j(C)):Le(C)?(t.consume(C),K):ve(C)}function N(C){return C===45||C===46||C===58||C===95||_i(C)?(t.consume(C),N):te(C)}function te(C){return C===61?(t.consume(C),oe):Te(C)?(s=te,j(C)):Le(C)?(t.consume(C),te):K(C)}function oe(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(t.consume(C),r=C,re):Te(C)?(s=oe,j(C)):Le(C)?(t.consume(C),oe):(t.consume(C),de)}function re(C){return C===r?(t.consume(C),r=void 0,pe):C===null?i(C):Te(C)?(s=re,j(C)):(t.consume(C),re)}function de(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||Vt(C)?K(C):(t.consume(C),de)}function pe(C){return C===47||C===62||Vt(C)?K(C):i(C)}function ve(C){return C===62?(t.consume(C),t.exit("htmlTextData"),t.exit("htmlText"),e):i(C)}function j(C){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),ue}function ue(C){return Le(C)?Ie(t,Z,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):Z(C)}function Z(C){return t.enter("htmlTextData"),s(C)}}var Ps={name:"labelEnd",tokenize:oU,resolveTo:rU,resolveAll:nU},eU={tokenize:sU},tU={tokenize:aU},iU={tokenize:lU};function nU(t){let e=-1;for(;++e<t.length;){let i=t[e][1];(i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd")&&(t.splice(e+1,i.type==="labelImage"?4:2),i.type="data",e++)}return t}function rU(t,e){let i=t.length,n=0,r,o,s,a;for(;i--;)if(r=t[i][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;t[i][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(t[i][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=i,r.type!=="labelLink")){n=2;break}}else r.type==="labelEnd"&&(s=i);let l={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},c={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[s][1].end)},u={type:"labelText",start:Object.assign({},t[o+n+2][1].end),end:Object.assign({},t[s-2][1].start)};return a=[["enter",l,e],["enter",c,e]],a=Qi(a,t.slice(o+1,o+n+3)),a=Qi(a,[["enter",u,e]]),a=Qi(a,Ya(e.parser.constructs.insideSpan.null,t.slice(o+n+4,s-3),e)),a=Qi(a,[["exit",u,e],t[s-2],t[s-1],["exit",c,e]]),a=Qi(a,t.slice(s+1)),a=Qi(a,[["exit",l,e]]),ui(t,o,t.length,a),t}function oU(t,e,i){let n=this,r=n.events.length,o,s;for(;r--;)if((n.events[r][1].type==="labelImage"||n.events[r][1].type==="labelLink")&&!n.events[r][1]._balanced){o=n.events[r][1];break}return a;function a(d){return o?o._inactive?f(d):(s=n.parser.defined.includes(Xr(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelEnd"),l):i(d)}function l(d){return d===40?t.attempt(eU,u,s?u:f)(d):d===91?t.attempt(tU,u,s?c:f)(d):s?u(d):f(d)}function c(d){return t.attempt(iU,u,f)(d)}function u(d){return e(d)}function f(d){return o._balanced=!0,i(d)}}function sU(t,e,i){return n;function n(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),r}function r(f){return Vt(f)?Cs(t,o)(f):o(f)}function o(f){return f===41?u(f):sd(t,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Vt(f)?Cs(t,l)(f):u(f)}function a(f){return i(f)}function l(f){return f===34||f===39||f===40?ld(t,c,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function c(f){return Vt(f)?Cs(t,u)(f):u(f)}function u(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):i(f)}}function aU(t,e,i){let n=this;return r;function r(a){return ad.call(n,t,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(Xr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?e(a):i(a)}function s(a){return i(a)}}function lU(t,e,i){return n;function n(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),r}function r(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):i(o)}}var $0={name:"labelStartImage",tokenize:cU,resolveAll:Ps.resolveAll};function cU(t,e,i){let n=this;return r;function r(a){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(a),t.exit("labelImageMarker"),o}function o(a){return a===91?(t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelImage"),s):i(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?i(a):e(a)}}var X0={name:"labelStartLink",tokenize:uU,resolveAll:Ps.resolveAll};function uU(t,e,i){let n=this;return r;function r(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?i(s):e(s)}}var Nc={name:"lineEnding",tokenize:fU};function fU(t,e){return i;function i(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Ie(t,e,"linePrefix")}}var Qs={name:"thematicBreak",tokenize:hU};function hU(t,e,i){let n=0,r;return o;function o(c){return t.enter("thematicBreak"),s(c)}function s(c){return r=c,a(c)}function a(c){return c===r?(t.enter("thematicBreakSequence"),l(c)):n>=3&&(c===null||Te(c))?(t.exit("thematicBreak"),e(c)):i(c)}function l(c){return c===r?(t.consume(c),n++,l):(t.exit("thematicBreakSequence"),Le(c)?Ie(t,a,"whitespace")(c):a(c))}}var yi={name:"list",tokenize:pU,continuation:{tokenize:mU},exit:bU},dU={tokenize:yU,partial:!0},OU={tokenize:gU,partial:!0};function pU(t,e,i){let n=this,r=n.events[n.events.length-1],o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return a;function a(O){let m=n.containerState.type||(O===42||O===43||O===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||O===n.containerState.marker:zc(O)){if(n.containerState.type||(n.containerState.type=m,t.enter(m,{_container:!0})),m==="listUnordered")return t.enter("listItemPrefix"),O===42||O===45?t.check(Qs,i,c)(O):c(O);if(!n.interrupt||O===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(O)}return i(O)}function l(O){return zc(O)&&++s<10?(t.consume(O),l):(!n.interrupt||s<2)&&(n.containerState.marker?O===n.containerState.marker:O===41||O===46)?(t.exit("listItemValue"),c(O)):i(O)}function c(O){return t.enter("listItemMarker"),t.consume(O),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||O,t.check($o,n.interrupt?i:u,t.attempt(dU,d,f))}function u(O){return n.containerState.initialBlankLine=!0,o++,d(O)}function f(O){return Le(O)?(t.enter("listItemPrefixWhitespace"),t.consume(O),t.exit("listItemPrefixWhitespace"),d):i(O)}function d(O){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(O)}}function mU(t,e,i){let n=this;return n.containerState._closeFlow=void 0,t.check($o,r,o);function r(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Ie(t,e,"listItemIndent",n.containerState.size+1)(a)}function o(a){return n.containerState.furtherBlankLines||!Le(a)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(a)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(OU,e,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,Ie(t,t.attempt(yi,e,i),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function gU(t,e,i){let n=this;return Ie(t,r,"listItemIndent",n.containerState.size+1);function r(o){let s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?e(o):i(o)}}function bU(t){t.exit(this.containerState.type)}function yU(t,e,i){let n=this;return Ie(t,r,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){let s=n.events[n.events.length-1];return!Le(o)&&s&&s[1].type==="listItemPrefixWhitespace"?e(o):i(o)}}var cd={name:"setextUnderline",tokenize:vU,resolveTo:xU};function xU(t,e){let i=t.length,n,r,o;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){n=i;break}t[i][1].type==="paragraph"&&(r=i)}else t[i][1].type==="content"&&t.splice(i,1),!o&&t[i][1].type==="definition"&&(o=i);let s={type:"setextHeading",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[r][1].type="setextHeadingText",o?(t.splice(r,0,["enter",s,e]),t.splice(o+1,0,["exit",t[n][1],e]),t[n][1].end=Object.assign({},t[o][1].end)):t[n][1]=s,t.push(["exit",s,e]),t}function vU(t,e,i){let n=this,r;return o;function o(c){let u=n.events.length,f;for(;u--;)if(n.events[u][1].type!=="lineEnding"&&n.events[u][1].type!=="linePrefix"&&n.events[u][1].type!=="content"){f=n.events[u][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(t.enter("setextHeadingLine"),r=c,s(c)):i(c)}function s(c){return t.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===r?(t.consume(c),a):(t.exit("setextHeadingLineSequence"),Le(c)?Ie(t,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Te(c)?(t.exit("setextHeadingLine"),e(c)):i(c)}}var a3={tokenize:wU};function wU(t){let e=this,i=t.attempt($o,n,t.attempt(this.parser.constructs.flowInitial,r,Ie(t,t.attempt(this.parser.constructs.flow,r,t.attempt(T0,r)),"linePrefix")));return i;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,i}function r(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,i}}var l3={resolveAll:h3()},c3=f3("string"),u3=f3("text");function f3(t){return{tokenize:e,resolveAll:h3(t==="text"?kU:void 0)};function e(i){let n=this,r=this.parser.constructs[t],o=i.attempt(r,s,a);return s;function s(u){return c(u)?o(u):a(u)}function a(u){if(u===null){i.consume(u);return}return i.enter("data"),i.consume(u),l}function l(u){return c(u)?(i.exit("data"),o(u)):(i.consume(u),l)}function c(u){if(u===null)return!0;let f=r[u],d=-1;if(f)for(;++d<f.length;){let O=f[d];if(!O.previous||O.previous.call(n,n.previous))return!0}return!1}}}function h3(t){return e;function e(i,n){let r=-1,o;for(;++r<=i.length;)o===void 0?i[r]&&i[r][1].type==="data"&&(o=r,r++):(!i[r]||i[r][1].type!=="data")&&(r!==o+2&&(i[o][1].end=i[r-1][1].end,i.splice(o+2,r-o-2),r=o+2),o=void 0);return t?t(i,n):i}}function kU(t,e){let i=0;for(;++i<=t.length;)if((i===t.length||t[i][1].type==="lineEnding")&&t[i-1][1].type==="data"){let n=t[i-1][1],r=e.sliceStream(n),o=r.length,s=-1,a=0,l;for(;o--;){let c=r[o];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(c===-2)l=!0,a++;else if(c!==-1){o++;break}}if(a){let c={type:i===t.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-a,offset:n.end.offset-a,_index:n.start._index+o,_bufferIndex:o?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},c.start),n.start.offset===n.end.offset?Object.assign(n,c):(t.splice(i,0,["enter",c,e],["exit",c,e]),i+=2)}i++}return t}function d3(t,e,i){let n=Object.assign(i?Object.assign({},i):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),r={},o=[],s=[],a=[],l=!0,c={consume:I,enter:z,exit:$,attempt:K(X),check:K(Y),interrupt:K(Y,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:x,sliceSerialize:m,now:v,defineSkip:w,write:O},f=e.tokenize.call(u,c),d;return e.resolveAll&&o.push(e),u;function O(re){return s=Qi(s,re),T(),s[s.length-1]!==null?[]:(N(e,0),u.events=Ya(o,u.events,u),u.events)}function m(re,de){return TU(x(re),de)}function x(re){return SU(s,re)}function v(){let{line:re,column:de,offset:pe,_index:ve,_bufferIndex:j}=n;return{line:re,column:de,offset:pe,_index:ve,_bufferIndex:j}}function w(re){r[re.line]=re.column,oe()}function T(){let re;for(;n._index<s.length;){let de=s[n._index];if(typeof de=="string")for(re=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===re&&n._bufferIndex<de.length;)Q(de.charCodeAt(n._bufferIndex));else Q(de)}}function Q(re){l=void 0,d=re,f=f(re)}function I(re){Te(re)?(n.line++,n.column=1,n.offset+=re===-3?2:1,oe()):re!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=re,l=!0}function z(re,de){let pe=de||{};return pe.type=re,pe.start=v(),u.events.push(["enter",pe,u]),a.push(pe),pe}function $(re){let de=a.pop();return de.end=v(),u.events.push(["exit",de,u]),de}function X(re,de){N(re,de.from)}function Y(re,de){de.restore()}function K(re,de){return pe;function pe(ve,j,ue){let Z,C,W,se;return Array.isArray(ve)?Ne(ve):"tokenize"in ve?Ne([ve]):D(ve);function D(Xe){return Lt;function Lt(It){let On=It!==null&&Xe[It],pn=It!==null&&Xe.null,Wt=[...Array.isArray(On)?On:On?[On]:[],...Array.isArray(pn)?pn:pn?[pn]:[]];return Ne(Wt)(It)}}function Ne(Xe){return Z=Xe,C=0,Xe.length===0?ue:We(Xe[C])}function We(Xe){return Lt;function Lt(It){return se=te(),W=Xe,Xe.partial||(u.currentConstruct=Xe),Xe.name&&u.parser.constructs.disable.null.includes(Xe.name)?Ct(It):Xe.tokenize.call(de?Object.assign(Object.create(u),de):u,c,Ve,Ct)(It)}}function Ve(Xe){return l=!0,re(W,se),j}function Ct(Xe){return l=!0,se.restore(),++C<Z.length?We(Z[C]):ue}}}function N(re,de){re.resolveAll&&!o.includes(re)&&o.push(re),re.resolve&&ui(u.events,de,u.events.length-de,re.resolve(u.events.slice(de),u)),re.resolveTo&&(u.events=re.resolveTo(u.events,u))}function te(){let re=v(),de=u.previous,pe=u.currentConstruct,ve=u.events.length,j=Array.from(a);return{restore:ue,from:ve};function ue(){n=re,u.previous=de,u.currentConstruct=pe,u.events.length=ve,a=j,oe()}}function oe(){n.line in r&&n.column<2&&(n.column=r[n.line],n.offset+=r[n.line]-1)}}function SU(t,e){let i=e.start._index,n=e.start._bufferIndex,r=e.end._index,o=e.end._bufferIndex,s;if(i===r)s=[t[i].slice(n,o)];else{if(s=t.slice(i,r),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}o>0&&s.push(t[r].slice(0,o))}return s}function TU(t,e){let i=-1,n=[],r;for(;++i<t.length;){let o=t[i],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
||
`;break}case-3:{s=`\r
|
||
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,n.push(s)}return n.join("")}var R0={};bc(R0,{attentionMarkers:()=>XU,contentInitial:()=>CU,disable:()=>RU,document:()=>EU,flow:()=>QU,flowInitial:()=>PU,insideSpan:()=>$U,string:()=>_U,text:()=>AU});var EU={42:yi,43:yi,45:yi,48:yi,49:yi,50:yi,51:yi,52:yi,53:yi,54:yi,55:yi,56:yi,57:yi,62:td},CU={91:E0},PU={[-2]:Mc,[-1]:Mc,32:Mc},QU={35:P0,42:Qs,45:[cd,Qs],60:_0,61:cd,95:Qs,96:rd,126:rd},_U={38:nd,92:id},AU={[-5]:Nc,[-4]:Nc,[-3]:Nc,33:$0,38:nd,42:Uc,60:[k0,A0],91:X0,92:[C0,id],93:Ps,95:Uc,96:S0},$U={null:[Uc,l3]},XU={null:[42,95]},RU={null:[]};function L0(t){let i=HT([R0,...(t||{}).extensions||[]]),n={defined:[],lazy:{},constructs:i,content:r(t3),document:r(n3),flow:r(a3),string:r(c3),text:r(u3)};return n;function r(o){return s;function s(a){return d3(n,o,a)}}}function I0(t){for(;!od(t););return t}var O3=/[\0\t\n\r]/g;function D0(){let t=1,e="",i=!0,n;return r;function r(o,s,a){let l=[],c,u,f,d,O;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,e="",i&&(o.charCodeAt(0)===65279&&f++,i=void 0);f<o.length;){if(O3.lastIndex=f,c=O3.exec(o),d=c&&c.index!==void 0?c.index:o.length,O=o.charCodeAt(d),!c){e=o.slice(f);break}if(O===10&&f===d&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<d&&(l.push(o.slice(f,d)),t+=d-f),O){case 0:{l.push(65533),t++;break}case 9:{for(u=Math.ceil(t/4)*4,l.push(-2);t++<u;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:n=!0,t=1}f=d+1}return a&&(n&&l.push(-5),e&&l.push(e),l.push(null)),l}}var LU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function p3(t){return t.replace(LU,IU)}function IU(t,e,i){if(e)return e;if(i.charCodeAt(0)===35){let r=i.charCodeAt(1),o=r===120||r===88;return ed(i.slice(o?2:1),o?16:10)}return Ba(i)||t}function Fa(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?m3(t.position):"start"in t||"end"in t?m3(t):"line"in t||"column"in t?z0(t):""}function z0(t){return g3(t&&t.line)+":"+g3(t&&t.column)}function m3(t){return z0(t&&t.start)+"-"+z0(t&&t.end)}function g3(t){return t&&typeof t=="number"?t:1}var y3={}.hasOwnProperty;function U0(t,e,i){return typeof e!="string"&&(i=e,e=void 0),DU(i)(I0(L0(i).document().write(D0()(t,e,!0))))}function DU(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(dc),autolinkProtocol:K,autolinkEmail:K,atxHeading:o(Ch),blockQuote:o(Lt),characterEscape:K,characterReference:K,codeFenced:o(It),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(It,s),codeText:o(On,s),codeTextData:K,data:K,codeFlowValue:K,definition:o(pn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Wt),hardBreakEscape:o(Gi),hardBreakTrailing:o(Gi),htmlFlow:o(Ph,s),htmlFlowData:K,htmlText:o(Ph,s),htmlTextData:K,image:o(Cg),label:s,link:o(dc),listItem:o(Ln),listItemValue:d,listOrdered:o(er,f),listUnordered:o(er),paragraph:o(Pg),reference:D,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Ch),strong:o(Qh),thematicBreak:o(Qg)},exit:{atxHeading:l(),atxHeadingSequence:z,autolink:l(),autolinkEmail:Xe,autolinkProtocol:Ct,blockQuote:l(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:We,characterReferenceMarkerNumeric:We,characterReferenceValue:Ve,codeFenced:l(v),codeFencedFence:x,codeFencedFenceInfo:O,codeFencedFenceMeta:m,codeFlowValue:N,codeIndented:l(w),codeText:l(pe),codeTextData:N,data:N,definition:l(),definitionDestinationString:I,definitionLabelString:T,definitionTitleString:Q,emphasis:l(),hardBreakEscape:l(oe),hardBreakTrailing:l(oe),htmlFlow:l(re),htmlFlowData:N,htmlText:l(de),htmlTextData:N,image:l(j),label:Z,labelText:ue,lineEnding:te,link:l(ve),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Ne,resourceDestinationString:C,resourceTitleString:W,resource:se,setextHeading:l(Y),setextHeadingLineSequence:X,setextHeadingText:$,strong:l(),thematicBreak:l()}};x3(e,(t||{}).mdastExtensions||[]);let i={};return n;function n(ce){let ye={type:"root",children:[]},Ce={stack:[ye],tokenStack:[],config:e,enter:a,exit:c,buffer:s,resume:u,data:i},je=[],$e=-1;for(;++$e<ce.length;)if(ce[$e][1].type==="listOrdered"||ce[$e][1].type==="listUnordered")if(ce[$e][0]==="enter")je.push($e);else{let Ki=je.pop();$e=r(ce,Ki,$e)}for($e=-1;++$e<ce.length;){let Ki=e[ce[$e][0]];y3.call(Ki,ce[$e][1].type)&&Ki[ce[$e][1].type].call(Object.assign({sliceSerialize:ce[$e][2].sliceSerialize},Ce),ce[$e][1])}if(Ce.tokenStack.length>0){let Ki=Ce.tokenStack[Ce.tokenStack.length-1];(Ki[1]||b3).call(Ce,void 0,Ki[0])}for(ye.position={start:Xo(ce.length>0?ce[0][1].start:{line:1,column:1,offset:0}),end:Xo(ce.length>0?ce[ce.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e<e.transforms.length;)ye=e.transforms[$e](ye)||ye;return ye}function r(ce,ye,Ce){let je=ye-1,$e=-1,Ki=!1,Cr,In,vo,nt;for(;++je<=Ce;){let vt=ce[je];switch(vt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{vt[0]==="enter"?$e++:$e--,nt=void 0;break}case"lineEndingBlank":{vt[0]==="enter"&&(Cr&&!nt&&!$e&&!vo&&(vo=je),nt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:nt=void 0}if(!$e&&vt[0]==="enter"&&vt[1].type==="listItemPrefix"||$e===-1&&vt[0]==="exit"&&(vt[1].type==="listUnordered"||vt[1].type==="listOrdered")){if(Cr){let ft=je;for(In=void 0;ft--;){let $t=ce[ft];if($t[1].type==="lineEnding"||$t[1].type==="lineEndingBlank"){if($t[0]==="exit")continue;In&&(ce[In][1].type="lineEndingBlank",Ki=!0),$t[1].type="lineEnding",In=ft}else if(!($t[1].type==="linePrefix"||$t[1].type==="blockQuotePrefix"||$t[1].type==="blockQuotePrefixWhitespace"||$t[1].type==="blockQuoteMarker"||$t[1].type==="listItemIndent"))break}vo&&(!In||vo<In)&&(Cr._spread=!0),Cr.end=Object.assign({},In?ce[In][1].start:vt[1].end),ce.splice(In||je,0,["exit",Cr,vt[2]]),je++,Ce++}if(vt[1].type==="listItemPrefix"){let ft={type:"listItem",_spread:!1,start:Object.assign({},vt[1].start),end:void 0};Cr=ft,ce.splice(je,0,["enter",ft,vt[2]]),je++,Ce++,vo=void 0,nt=!0}}}return ce[ye][1]._spread=Ki,Ce}function o(ce,ye){return Ce;function Ce(je){a.call(this,ce(je),je),ye&&ye.call(this,je)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(ce,ye,Ce){this.stack[this.stack.length-1].children.push(ce),this.stack.push(ce),this.tokenStack.push([ye,Ce]),ce.position={start:Xo(ye.start),end:void 0}}function l(ce){return ye;function ye(Ce){ce&&ce.call(this,Ce),c.call(this,Ce)}}function c(ce,ye){let Ce=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==ce.type&&(ye?ye.call(this,ce,je[0]):(je[1]||b3).call(this,ce,je[0]));else throw new Error("Cannot close `"+ce.type+"` ("+Fa({start:ce.start,end:ce.end})+"): it\u2019s not open");Ce.position.end=Xo(ce.end)}function u(){return x0(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(ce){if(this.data.expectingFirstListItemValue){let ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(ce),10),this.data.expectingFirstListItemValue=void 0}}function O(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=ce}function m(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=ce}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce.replace(/(\r?\n|\r)$/g,"")}function T(ce){let ye=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ye,Ce.identifier=Xr(this.sliceSerialize(ce)).toLowerCase()}function Q(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ce}function I(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ce}function z(ce){let ye=this.stack[this.stack.length-1];if(!ye.depth){let Ce=this.sliceSerialize(ce).length;ye.depth=Ce}}function $(){this.data.setextHeadingSlurpLineEnding=!0}function X(ce){let ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(ce).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function K(ce){let Ce=this.stack[this.stack.length-1].children,je=Ce[Ce.length-1];(!je||je.type!=="text")&&(je=Oc(),je.position={start:Xo(ce.start),end:void 0},Ce.push(je)),this.stack.push(je)}function N(ce){let ye=this.stack.pop();ye.value+=this.sliceSerialize(ce),ye.position.end=Xo(ce.end)}function te(ce){let ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){let Ce=ye.children[ye.children.length-1];Ce.position.end=Xo(ce.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(ye.type)&&(K.call(this,ce),N.call(this,ce))}function oe(){this.data.atHardBreak=!0}function re(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce}function de(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce}function pe(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce}function ve(){let ce=this.stack[this.stack.length-1];if(this.data.inReference){let ye=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=ye,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function j(){let ce=this.stack[this.stack.length-1];if(this.data.inReference){let ye=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=ye,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function ue(ce){let ye=this.sliceSerialize(ce),Ce=this.stack[this.stack.length-2];Ce.label=p3(ye),Ce.identifier=Xr(ye).toLowerCase()}function Z(){let ce=this.stack[this.stack.length-1],ye=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){let je=ce.children;Ce.children=je}else Ce.alt=ye}function C(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ce}function W(){let ce=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ce}function se(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function Ne(ce){let ye=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ye,Ce.identifier=Xr(this.sliceSerialize(ce)).toLowerCase(),this.data.referenceType="full"}function We(ce){this.data.characterReferenceType=ce.type}function Ve(ce){let ye=this.sliceSerialize(ce),Ce=this.data.characterReferenceType,je;Ce?(je=ed(ye,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=Ba(ye);let $e=this.stack.pop();$e.value+=je,$e.position.end=Xo(ce.end)}function Ct(ce){N.call(this,ce);let ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(ce)}function Xe(ce){N.call(this,ce);let ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(ce)}function Lt(){return{type:"blockquote",children:[]}}function It(){return{type:"code",lang:null,meta:null,value:""}}function On(){return{type:"inlineCode",value:""}}function pn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wt(){return{type:"emphasis",children:[]}}function Ch(){return{type:"heading",depth:0,children:[]}}function Gi(){return{type:"break"}}function Ph(){return{type:"html",value:""}}function Cg(){return{type:"image",title:null,url:"",alt:null}}function dc(){return{type:"link",title:null,url:"",children:[]}}function er(ce){return{type:"list",ordered:ce.type==="listOrdered",start:null,spread:ce._spread,children:[]}}function Ln(ce){return{type:"listItem",spread:ce._spread,checked:null,children:[]}}function Pg(){return{type:"paragraph",children:[]}}function Qh(){return{type:"strong",children:[]}}function Oc(){return{type:"text",value:""}}function Qg(){return{type:"thematicBreak"}}}function Xo(t){return{line:t.line,column:t.column,offset:t.offset}}function x3(t,e){let i=-1;for(;++i<e.length;){let n=e[i];Array.isArray(n)?x3(t,n):zU(t,n)}}function zU(t,e){let i;for(i in e)if(y3.call(e,i))switch(i){case"canContainEols":{let n=e[i];n&&t[i].push(...n);break}case"transforms":{let n=e[i];n&&t[i].push(...n);break}case"enter":case"exit":{let n=e[i];n&&Object.assign(t[i],n);break}}}function b3(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Fa({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Fa({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Fa({start:e.start,end:e.end})+") is still open")}function ud(t){let e=this;e.parser=i;function i(n){return U0(n,Ee(F(F({},e.data("settings")),t),{extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]}))}}function Ha(t,e){let i=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,r=i.indexOf(e);for(;r!==-1;)n++,r=i.indexOf(e,r+e.length);return n}var UU=Ro(new RegExp("\\p{P}","u")),Ohe=Ro(/[A-Za-z]/),phe=Ro(/[\dA-Za-z]/),mhe=Ro(/[#-'*+\--9=?A-Z^-~]/);var ghe=Ro(/\d/),bhe=Ro(/[\dA-Fa-f]/),MU=Ro(/[!-/:-@[-`{-~]/);function v3(t){return MU(t)||UU(t)}var w3=Ro(/\s/);function Ro(t){return e;function e(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function M0(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var cr=function(t){if(t==null)return WU;if(typeof t=="function")return fd(t);if(typeof t=="object")return Array.isArray(t)?NU(t):qU(t);if(typeof t=="string")return jU(t);throw new Error("Expected function, string, or object as test")};function NU(t){let e=[],i=-1;for(;++i<t.length;)e[i]=cr(t[i]);return fd(n);function n(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function qU(t){let e=t;return fd(i);function i(n){let r=n,o;for(o in t)if(r[o]!==e[o])return!1;return!0}}function jU(t){return fd(e);function e(i){return i&&i.type===t}}function fd(t){return e;function e(i,n,r){return!!(VU(i)&&t.call(this,i,typeof n=="number"?n:void 0,r||void 0))}}function WU(){return!0}function VU(t){return t!==null&&typeof t=="object"&&"type"in t}var k3=[],hd=!0,_s=!1,Ga="skip";function As(t,e,i,n){let r;typeof e=="function"&&typeof i!="function"?(n=i,i=e):r=e;let o=cr(r),s=n?-1:1;a(t,void 0,[])();function a(l,c,u){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let O=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(O?"<"+O+">":""))+")"})}return d;function d(){let O=k3,m,x,v;if((!e||o(l,c,u[u.length-1]||void 0))&&(O=ZU(i(l,u)),O[0]===_s))return O;if("children"in l&&l.children){let w=l;if(w.children&&O[0]!==Ga)for(x=(n?w.children.length:-1)+s,v=u.concat(w);x>-1&&x<w.children.length;){let T=w.children[x];if(m=a(T,x,v)(),m[0]===_s)return m;x=typeof m[1]=="number"?m[1]:x+s}}return O}}}function ZU(t){return Array.isArray(t)?t:typeof t=="number"?[hd,t]:t==null?k3:[t]}function N0(t,e,i){let r=cr((i||{}).ignore||[]),o=BU(e),s=-1;for(;++s<o.length;)As(t,"text",a);function a(c,u){let f=-1,d;for(;++f<u.length;){let O=u[f],m=d?d.children:void 0;if(r(O,m?m.indexOf(O):void 0,d))return;d=O}if(d)return l(c,u)}function l(c,u){let f=u[u.length-1],d=o[s][0],O=o[s][1],m=0,v=f.children.indexOf(c),w=!1,T=[];d.lastIndex=0;let Q=d.exec(c.value);for(;Q;){let I=Q.index,z={index:Q.index,input:Q.input,stack:[...u,c]},$=O(...Q,z);if(typeof $=="string"&&($=$.length>0?{type:"text",value:$}:void 0),$===!1?d.lastIndex=I+1:(m!==I&&T.push({type:"text",value:c.value.slice(m,I)}),Array.isArray($)?T.push(...$):$&&T.push($),m=I+Q[0].length,w=!0),!d.global)break;Q=d.exec(c.value)}return w?(m<c.value.length&&T.push({type:"text",value:c.value.slice(m)}),f.children.splice(v,1,...T)):T=[c],v+T.length}}function BU(t){let e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");let i=!t[0]||Array.isArray(t[0])?t:[t],n=-1;for(;++n<i.length;){let r=i[n];e.push([YU(r[0]),FU(r[1])])}return e}function YU(t){return typeof t=="string"?new RegExp(M0(t),"g"):t}function FU(t){return typeof t=="function"?t:function(){return t}}var q0="phrasing",j0=["autolink","link","image","label"];function V0(){return{transforms:[t9],enter:{literalAutolink:HU,literalAutolinkEmail:W0,literalAutolinkHttp:W0,literalAutolinkWww:W0},exit:{literalAutolink:e9,literalAutolinkEmail:JU,literalAutolinkHttp:GU,literalAutolinkWww:KU}}}function Z0(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:q0,notInConstruct:j0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:q0,notInConstruct:j0},{character:":",before:"[ps]",after:"\\/",inConstruct:q0,notInConstruct:j0}]}}function HU(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function W0(t){this.config.enter.autolinkProtocol.call(this,t)}function GU(t){this.config.exit.autolinkProtocol.call(this,t)}function KU(t){this.config.exit.data.call(this,t);let e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function JU(t){this.config.exit.autolinkEmail.call(this,t)}function e9(t){this.exit(t)}function t9(t){N0(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,i9],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,n9]],{ignore:["link","linkReference"]})}function i9(t,e,i,n,r){let o="";if(!S3(r)||(/^w/i.test(e)&&(i=e+i,e="",o="http://"),!r9(i)))return!1;let s=o9(i+n);if(!s[0])return!1;let a={type:"link",title:null,url:o+e+s[0],children:[{type:"text",value:e+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function n9(t,e,i,n){return!S3(n,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+i,children:[{type:"text",value:e+"@"+i}]}}function r9(t){let e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function o9(t){let e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let i=e[0],n=i.indexOf(")"),r=Ha(t,"("),o=Ha(t,")");for(;n!==-1&&r>o;)t+=i.slice(0,n+1),i=i.slice(n+1),n=i.indexOf(")"),o++;return[t,i]}function S3(t,e){let i=t.input.charCodeAt(t.index-1);return(t.index===0||w3(i)||v3(i))&&(!e||i!==47)}function B0(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}T3.peek=O9;function Y0(){return{enter:{gfmFootnoteDefinition:s9,gfmFootnoteDefinitionLabelString:a9,gfmFootnoteCall:u9,gfmFootnoteCallString:f9},exit:{gfmFootnoteDefinition:c9,gfmFootnoteDefinitionLabelString:l9,gfmFootnoteCall:d9,gfmFootnoteCallString:h9}}}function F0(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:p9,footnoteReference:T3}}}function s9(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function a9(){this.buffer()}function l9(t){let e=this.resume(),i=this.stack[this.stack.length-1];i.type,i.label=e,i.identifier=B0(this.sliceSerialize(t)).toLowerCase()}function c9(t){this.exit(t)}function u9(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function f9(){this.buffer()}function h9(t){let e=this.resume(),i=this.stack[this.stack.length-1];i.type,i.label=e,i.identifier=B0(this.sliceSerialize(t)).toLowerCase()}function d9(t){this.exit(t)}function T3(t,e,i,n){let r=i.createTracker(n),o=r.move("[^"),s=i.enter("footnoteReference"),a=i.enter("reference");return o+=r.move(i.safe(i.associationId(t),Ee(F({},r.current()),{before:o,after:"]"}))),a(),s(),o+=r.move("]"),o}function O9(){return"["}function p9(t,e,i,n){let r=i.createTracker(n),o=r.move("[^"),s=i.enter("footnoteDefinition"),a=i.enter("label");return o+=r.move(i.safe(i.associationId(t),Ee(F({},r.current()),{before:o,after:"]"}))),a(),o+=r.move("]:"+(t.children&&t.children.length>0?" ":"")),r.shift(4),o+=r.move(i.indentLines(i.containerFlow(t,r.current()),m9)),s(),o}function m9(t,e,i){return e===0?t:(i?"":" ")+t}var g9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];E3.peek=x9;function H0(){return{canContainEols:["delete"],enter:{strikethrough:b9},exit:{strikethrough:y9}}}function G0(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:g9}],handlers:{delete:E3}}}function b9(t){this.enter({type:"delete",children:[]},t)}function y9(t){this.exit(t)}function E3(t,e,i,n){let r=i.createTracker(n),o=i.enter("strikethrough"),s=r.move("~~");return s+=i.containerPhrasing(t,Ee(F({},r.current()),{before:s,after:"~"})),s+=r.move("~~"),o(),s}function x9(){return"~"}function P3(t,e={}){let i=(e.align||[]).concat(),n=e.stringLength||w9,r=[],o=[],s=[],a=[],l=0,c=-1;for(;++c<t.length;){let m=[],x=[],v=-1;for(t[c].length>l&&(l=t[c].length);++v<t[c].length;){let w=v9(t[c][v]);if(e.alignDelimiters!==!1){let T=n(w);x[v]=T,(a[v]===void 0||T>a[v])&&(a[v]=T)}m.push(w)}o[c]=m,s[c]=x}let u=-1;if(typeof i=="object"&&"length"in i)for(;++u<l;)r[u]=C3(i[u]);else{let m=C3(i);for(;++u<l;)r[u]=m}u=-1;let f=[],d=[];for(;++u<l;){let m=r[u],x="",v="";m===99?(x=":",v=":"):m===108?x=":":m===114&&(v=":");let w=e.alignDelimiters===!1?1:Math.max(1,a[u]-x.length-v.length),T=x+"-".repeat(w)+v;e.alignDelimiters!==!1&&(w=x.length+w+v.length,w>a[u]&&(a[u]=w),d[u]=w),f[u]=T}o.splice(1,0,f),s.splice(1,0,d),c=-1;let O=[];for(;++c<o.length;){let m=o[c],x=s[c];u=-1;let v=[];for(;++u<l;){let w=m[u]||"",T="",Q="";if(e.alignDelimiters!==!1){let I=a[u]-(x[u]||0),z=r[u];z===114?T=" ".repeat(I):z===99?I%2?(T=" ".repeat(I/2+.5),Q=" ".repeat(I/2-.5)):(T=" ".repeat(I/2),Q=T):Q=" ".repeat(I)}e.delimiterStart!==!1&&!u&&v.push("|"),e.padding!==!1&&!(e.alignDelimiters===!1&&w==="")&&(e.delimiterStart!==!1||u)&&v.push(" "),e.alignDelimiters!==!1&&v.push(T),v.push(w),e.alignDelimiters!==!1&&v.push(Q),e.padding!==!1&&v.push(" "),(e.delimiterEnd!==!1||u!==l-1)&&v.push("|")}O.push(e.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return O.join(`
|
||
`)}function v9(t){return t==null?"":String(t)}function w9(t){return t.length}function C3(t){let e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}var Q3={}.hasOwnProperty;function Ka(t,e){let i=e||{};function n(r,...o){let s=n.invalid,a=n.handlers;if(r&&Q3.call(r,t)){let l=String(r[t]);s=Q3.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,r,...o)}return n.handlers=i.handlers||{},n.invalid=i.invalid,n.unknown=i.unknown,n}function _3(t,e,i,n){let r=i.enter("blockquote"),o=i.createTracker(n);o.move("> "),o.shift(2);let s=i.indentLines(i.containerFlow(t,o.current()),k9);return r(),s}function k9(t,e,i){return">"+(i?"":" ")+t}function $3(t,e){return A3(t,e.inConstruct,!0)&&!A3(t,e.notInConstruct,!1)}function A3(t,e,i){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return i;let n=-1;for(;++n<e.length;)if(t.includes(e[n]))return!0;return!1}function K0(t,e,i,n){let r=-1;for(;++r<i.unsafe.length;)if(i.unsafe[r].character===`
|
||
`&&$3(i.stack,i.unsafe[r]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
||
`}function dd(t,e){let i=String(t),n=i.indexOf(e),r=n,o=0,s=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===r?++o>s&&(s=o):o=1,r=n+e.length,n=i.indexOf(e,r);return s}function X3(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function R3(t){let e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function L3(t,e,i,n){let r=R3(i),o=t.value||"",s=r==="`"?"GraveAccent":"Tilde";if(X3(t,i)){let f=i.enter("codeIndented"),d=i.indentLines(o,S9);return f(),d}let a=i.createTracker(n),l=r.repeat(Math.max(dd(o,r)+1,3)),c=i.enter("codeFenced"),u=a.move(l);if(t.lang){let f=i.enter(`codeFencedLang${s}`);u+=a.move(i.safe(t.lang,F({before:u,after:" ",encode:["`"]},a.current()))),f()}if(t.lang&&t.meta){let f=i.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(i.safe(t.meta,F({before:u,after:`
|
||
`,encode:["`"]},a.current()))),f()}return u+=a.move(`
|
||
`),o&&(u+=a.move(o+`
|
||
`)),u+=a.move(l),c(),u}function S9(t,e,i){return(i?"":" ")+t}function Ja(t){let e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function I3(t,e,i,n){let r=Ja(i),o=r==='"'?"Quote":"Apostrophe",s=i.enter("definition"),a=i.enter("label"),l=i.createTracker(n),c=l.move("[");return c+=l.move(i.safe(i.associationId(t),F({before:c,after:"]"},l.current()))),c+=l.move("]: "),a(),!t.url||/[\0- \u007F]/.test(t.url)?(a=i.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(i.safe(t.url,F({before:c,after:">"},l.current()))),c+=l.move(">")):(a=i.enter("destinationRaw"),c+=l.move(i.safe(t.url,F({before:c,after:t.title?" ":`
|
||
`},l.current())))),a(),t.title&&(a=i.enter(`title${o}`),c+=l.move(" "+r),c+=l.move(i.safe(t.title,F({before:c,after:r},l.current()))),c+=l.move(r),a()),s(),c}function D3(t){let e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}J0.peek=T9;function J0(t,e,i,n){let r=D3(i),o=i.enter("emphasis"),s=i.createTracker(n),a=s.move(r);return a+=s.move(i.containerPhrasing(t,F({before:a,after:r},s.current()))),a+=s.move(r),o(),a}function T9(t,e,i){return i.options.emphasis||"*"}function xi(t,e,i,n){let r,o,s;typeof e=="function"&&typeof i!="function"?(o=void 0,s=e,r=i):(o=e,s=i,r=n),As(t,o,a,r);function a(l,c){let u=c[c.length-1],f=u?u.children.indexOf(l):void 0;return s(l,f,u)}}var E9={};function qc(t,e){let i=e||E9,n=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,r=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return U3(t,n,r)}function U3(t,e,i){if(C9(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return z3(t.children,e,i)}return Array.isArray(t)?z3(t,e,i):""}function z3(t,e,i){let n=[],r=-1;for(;++r<t.length;)n[r]=U3(t[r],e,i);return n.join("")}function C9(t){return!!(t&&typeof t=="object")}function M3(t,e){let i=!1;return xi(t,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return i=!0,_s}),!!((!t.depth||t.depth<3)&&qc(t)&&(e.options.setext||i))}function N3(t,e,i,n){let r=Math.max(Math.min(6,t.depth||1),1),o=i.createTracker(n);if(M3(t,i)){let u=i.enter("headingSetext"),f=i.enter("phrasing"),d=i.containerPhrasing(t,Ee(F({},o.current()),{before:`
|
||
`,after:`
|
||
`}));return f(),u(),d+`
|
||
`+(r===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
||
`))+1))}let s="#".repeat(r),a=i.enter("headingAtx"),l=i.enter("phrasing");o.move(s+" ");let c=i.containerPhrasing(t,F({before:"# ",after:`
|
||
`},o.current()));return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?s+" "+c:s,i.options.closeAtx&&(c+=" "+s),l(),a(),c}eb.peek=P9;function eb(t){return t.value||""}function P9(){return"<"}tb.peek=Q9;function tb(t,e,i,n){let r=Ja(i),o=r==='"'?"Quote":"Apostrophe",s=i.enter("image"),a=i.enter("label"),l=i.createTracker(n),c=l.move("![");return c+=l.move(i.safe(t.alt,F({before:c,after:"]"},l.current()))),c+=l.move("]("),a(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(a=i.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(i.safe(t.url,F({before:c,after:">"},l.current()))),c+=l.move(">")):(a=i.enter("destinationRaw"),c+=l.move(i.safe(t.url,F({before:c,after:t.title?" ":")"},l.current())))),a(),t.title&&(a=i.enter(`title${o}`),c+=l.move(" "+r),c+=l.move(i.safe(t.title,F({before:c,after:r},l.current()))),c+=l.move(r),a()),c+=l.move(")"),s(),c}function Q9(){return"!"}ib.peek=_9;function ib(t,e,i,n){let r=t.referenceType,o=i.enter("imageReference"),s=i.enter("label"),a=i.createTracker(n),l=a.move("!["),c=i.safe(t.alt,F({before:l,after:"]"},a.current()));l+=a.move(c+"]["),s();let u=i.stack;i.stack=[],s=i.enter("reference");let f=i.safe(i.associationId(t),F({before:l,after:"]"},a.current()));return s(),i.stack=u,o(),r==="full"||!c||c!==f?l+=a.move(f+"]"):r==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function _9(){return"!"}nb.peek=A9;function nb(t,e,i){let n=t.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(n);)r+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<i.unsafe.length;){let s=i.unsafe[o],a=i.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(n);){let c=l.index;n.charCodeAt(c)===10&&n.charCodeAt(c-1)===13&&c--,n=n.slice(0,c)+" "+n.slice(l.index+1)}}return r+n+r}function A9(){return"`"}function rb(t,e){let i=qc(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(i===t.url||"mailto:"+i===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}ob.peek=$9;function ob(t,e,i,n){let r=Ja(i),o=r==='"'?"Quote":"Apostrophe",s=i.createTracker(n),a,l;if(rb(t,i)){let u=i.stack;i.stack=[],a=i.enter("autolink");let f=s.move("<");return f+=s.move(i.containerPhrasing(t,F({before:f,after:">"},s.current()))),f+=s.move(">"),a(),i.stack=u,f}a=i.enter("link"),l=i.enter("label");let c=s.move("[");return c+=s.move(i.containerPhrasing(t,F({before:c,after:"]("},s.current()))),c+=s.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=i.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(i.safe(t.url,F({before:c,after:">"},s.current()))),c+=s.move(">")):(l=i.enter("destinationRaw"),c+=s.move(i.safe(t.url,F({before:c,after:t.title?" ":")"},s.current())))),l(),t.title&&(l=i.enter(`title${o}`),c+=s.move(" "+r),c+=s.move(i.safe(t.title,F({before:c,after:r},s.current()))),c+=s.move(r),l()),c+=s.move(")"),a(),c}function $9(t,e,i){return rb(t,i)?"<":"["}sb.peek=X9;function sb(t,e,i,n){let r=t.referenceType,o=i.enter("linkReference"),s=i.enter("label"),a=i.createTracker(n),l=a.move("["),c=i.containerPhrasing(t,F({before:l,after:"]"},a.current()));l+=a.move(c+"]["),s();let u=i.stack;i.stack=[],s=i.enter("reference");let f=i.safe(i.associationId(t),F({before:l,after:"]"},a.current()));return s(),i.stack=u,o(),r==="full"||!c||c!==f?l+=a.move(f+"]"):r==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function X9(){return"["}function el(t){let e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function q3(t){let e=el(t),i=t.options.bulletOther;if(!i)return e==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+i+"`) to be different");return i}function j3(t){let e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function Od(t){let e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function W3(t,e,i,n){let r=i.enter("list"),o=i.bulletCurrent,s=t.ordered?j3(i):el(i),a=t.ordered?s==="."?")":".":q3(i),l=e&&i.bulletLastUsed?s===i.bulletLastUsed:!1;if(!t.ordered){let u=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&u&&(!u.children||!u.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(l=!0),Od(i)===s&&u){let f=-1;for(;++f<t.children.length;){let d=t.children[f];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),i.bulletCurrent=s;let c=i.containerFlow(t,n);return i.bulletLastUsed=s,i.bulletCurrent=o,r(),c}function V3(t){let e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function Z3(t,e,i,n){let r=V3(i),o=i.bulletCurrent||el(i);e&&e.type==="list"&&e.ordered&&(o=(typeof e.start=="number"&&e.start>-1?e.start:1)+(i.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let s=o.length+1;(r==="tab"||r==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(s=Math.ceil(s/4)*4);let a=i.createTracker(n);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=i.enter("listItem"),c=i.indentLines(i.containerFlow(t,a.current()),u);return l(),c;function u(f,d,O){return d?(O?"":" ".repeat(s))+f:(O?o:o+" ".repeat(s-o.length))+f}}function B3(t,e,i,n){let r=i.enter("paragraph"),o=i.enter("phrasing"),s=i.containerPhrasing(t,n);return o(),r(),s}var ab=cr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Y3(t,e,i,n){return(t.children.some(function(s){return ab(s)})?i.containerPhrasing:i.containerFlow).call(i,t,n)}function F3(t){let e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}lb.peek=R9;function lb(t,e,i,n){let r=F3(i),o=i.enter("strong"),s=i.createTracker(n),a=s.move(r+r);return a+=s.move(i.containerPhrasing(t,F({before:a,after:r},s.current()))),a+=s.move(r+r),o(),a}function R9(t,e,i){return i.options.strong||"*"}function H3(t,e,i,n){return i.safe(t.value,n)}function G3(t){let e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function K3(t,e,i){let n=(Od(i)+(i.options.ruleSpaces?" ":"")).repeat(G3(i));return i.options.ruleSpaces?n.slice(0,-1):n}var jc={blockquote:_3,break:K0,code:L3,definition:I3,emphasis:J0,hardBreak:K0,heading:N3,html:eb,image:tb,imageReference:ib,inlineCode:nb,link:ob,linkReference:sb,list:W3,listItem:Z3,paragraph:B3,root:Y3,strong:lb,text:H3,thematicBreak:K3};function ub(){return{enter:{table:L9,tableData:J3,tableHeader:J3,tableRow:D9},exit:{codeText:z9,table:I9,tableData:cb,tableHeader:cb,tableRow:cb}}}function L9(t){let e=t._align;this.enter({type:"table",align:e.map(function(i){return i==="none"?null:i}),children:[]},t),this.data.inTable=!0}function I9(t){this.exit(t),this.data.inTable=void 0}function D9(t){this.enter({type:"tableRow",children:[]},t)}function cb(t){this.exit(t)}function J3(t){this.enter({type:"tableCell",children:[]},t)}function z9(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,U9));let i=this.stack[this.stack.length-1];i.type,i.value=e,this.exit(t)}function U9(t,e){return e==="|"?e:t}function fb(t){let e=t||{},i=e.tableCellPadding,n=e.tablePipeAlign,r=e.stringLength,o=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
||
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:l,tableRow:a}};function s(O,m,x,v){return c(u(O,x,v),O.align)}function a(O,m,x,v){let w=f(O,x,v),T=c([w]);return T.slice(0,T.indexOf(`
|
||
`))}function l(O,m,x,v){let w=x.enter("tableCell"),T=x.enter("phrasing"),Q=x.containerPhrasing(O,Ee(F({},v),{before:o,after:o}));return T(),w(),Q}function c(O,m){return P3(O,{align:m,alignDelimiters:n,padding:i,stringLength:r})}function u(O,m,x){let v=O.children,w=-1,T=[],Q=m.enter("table");for(;++w<v.length;)T[w]=f(v[w],m,x);return Q(),T}function f(O,m,x){let v=O.children,w=-1,T=[],Q=m.enter("tableRow");for(;++w<v.length;)T[w]=l(v[w],O,m,x);return Q(),T}function d(O,m,x){let v=jc.inlineCode(O,m,x);return x.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function hb(){return{exit:{taskListCheckValueChecked:e5,taskListCheckValueUnchecked:e5,paragraph:M9}}}function db(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:N9}}}function e5(t){let e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function M9(t){let e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){let i=this.stack[this.stack.length-1];i.type;let n=i.children[0];if(n&&n.type==="text"){let r=e.children,o=-1,s;for(;++o<r.length;){let a=r[o];if(a.type==="paragraph"){s=a;break}}s===i&&(n.value=n.value.slice(1),n.value.length===0?i.children.shift():i.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,i.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function N9(t,e,i,n){let r=t.children[0],o=typeof t.checked=="boolean"&&r&&r.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",a=i.createTracker(n);o&&a.move(s);let l=jc.listItem(t,e,i,F(F({},n),a.current()));return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+s}}function Ob(){return[V0(),Y0(),H0(),ub(),hb()]}function pb(t){return{extensions:[Z0(),F0(),G0(),fb(t),db()]}}function t5(t,e,i,n){let r=t.length,o=0,s;if(e<0?e=-e>r?0:r+e:e=e>r?r:e,i=i>0?i:0,n.length<1e4)s=Array.from(n),s.unshift(e,i),t.splice(...s);else for(i&&t.splice(e,i);o<n.length;)s=n.slice(o,o+1e4),s.unshift(e,0),t.splice(...s),o+=1e4,e+=1e4}var i5={}.hasOwnProperty;function n5(t){let e={},i=-1;for(;++i<t.length;)q9(e,t[i]);return e}function q9(t,e){let i;for(i in e){let r=(i5.call(t,i)?t[i]:void 0)||(t[i]={}),o=e[i],s;if(o)for(s in o){i5.call(r,s)||(r[s]=[]);let a=o[s];j9(r[s],Array.isArray(a)?a:a?[a]:[])}}}function j9(t,e){let i=-1,n=[];for(;++i<e.length;)(e[i].add==="after"?t:n).push(e[i]);t5(t,0,0,n)}var W9=Lo(new RegExp("\\p{P}","u")),tl=Lo(/[A-Za-z]/),pd=Lo(/[\dA-Za-z]/),Ope=Lo(/[#-'*+\--9=?A-Z^-~]/);function r5(t){return t!==null&&(t<32||t===127)}var ppe=Lo(/\d/),mpe=Lo(/[\dA-Fa-f]/),V9=Lo(/[!-/:-@[-`{-~]/);function $s(t){return t!==null&&(t<0||t===32)}function mb(t){return V9(t)||W9(t)}var il=Lo(/\s/);function Lo(t){return e;function e(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}var Z9={tokenize:G9,partial:!0},o5={tokenize:K9,partial:!0},s5={tokenize:J9,partial:!0},a5={tokenize:eM,partial:!0},B9={tokenize:tM,partial:!0},l5={tokenize:F9,previous:u5},c5={tokenize:H9,previous:f5},Rr={tokenize:Y9,previous:h5},ur={};function bb(){return{text:ur}}var Xs=48;for(;Xs<123;)ur[Xs]=Rr,Xs++,Xs===58?Xs=65:Xs===91&&(Xs=97);ur[43]=Rr;ur[45]=Rr;ur[46]=Rr;ur[95]=Rr;ur[72]=[Rr,c5];ur[104]=[Rr,c5];ur[87]=[Rr,l5];ur[119]=[Rr,l5];function Y9(t,e,i){let n=this,r,o;return s;function s(f){return!gb(f)||!h5.call(n,n.previous)||yb(n.events)?i(f):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(f))}function a(f){return gb(f)?(t.consume(f),a):f===64?(t.consume(f),l):i(f)}function l(f){return f===46?t.check(B9,u,c)(f):f===45||f===95||pd(f)?(o=!0,t.consume(f),l):u(f)}function c(f){return t.consume(f),r=!0,l}function u(f){return o&&r&&tl(n.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(f)):i(f)}}function F9(t,e,i){let n=this;return r;function r(s){return s!==87&&s!==119||!u5.call(n,n.previous)||yb(n.events)?i(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Z9,t.attempt(o5,t.attempt(s5,o),i),i)(s))}function o(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(s)}}function H9(t,e,i){let n=this,r="",o=!1;return s;function s(f){return(f===72||f===104)&&f5.call(n,n.previous)&&!yb(n.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),r+=String.fromCodePoint(f),t.consume(f),a):i(f)}function a(f){if(tl(f)&&r.length<5)return r+=String.fromCodePoint(f),t.consume(f),a;if(f===58){let d=r.toLowerCase();if(d==="http"||d==="https")return t.consume(f),l}return i(f)}function l(f){return f===47?(t.consume(f),o?c:(o=!0,l)):i(f)}function c(f){return f===null||r5(f)||$s(f)||il(f)||mb(f)?i(f):t.attempt(o5,t.attempt(s5,u),i)(f)}function u(f){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(f)}}function G9(t,e,i){let n=0;return r;function r(s){return(s===87||s===119)&&n<3?(n++,t.consume(s),r):s===46&&n===3?(t.consume(s),o):i(s)}function o(s){return s===null?i(s):e(s)}}function K9(t,e,i){let n,r,o;return s;function s(c){return c===46||c===95?t.check(a5,l,a)(c):c===null||$s(c)||il(c)||c!==45&&mb(c)?l(c):(o=!0,t.consume(c),s)}function a(c){return c===95?n=!0:(r=n,n=void 0),t.consume(c),s}function l(c){return r||n||!o?i(c):e(c)}}function J9(t,e){let i=0,n=0;return r;function r(s){return s===40?(i++,t.consume(s),r):s===41&&n<i?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(a5,e,o)(s):s===null||$s(s)||il(s)?e(s):(t.consume(s),r)}function o(s){return s===41&&n++,t.consume(s),r}}function eM(t,e,i){return n;function n(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(t.consume(a),n):a===38?(t.consume(a),o):a===93?(t.consume(a),r):a===60||a===null||$s(a)||il(a)?e(a):i(a)}function r(a){return a===null||a===40||a===91||$s(a)||il(a)?e(a):n(a)}function o(a){return tl(a)?s(a):i(a)}function s(a){return a===59?(t.consume(a),n):tl(a)?(t.consume(a),s):i(a)}}function tM(t,e,i){return n;function n(o){return t.consume(o),r}function r(o){return pd(o)?i(o):e(o)}}function u5(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||$s(t)}function f5(t){return!tl(t)}function h5(t){return!(t===47||gb(t))}function gb(t){return t===43||t===45||t===46||t===95||pd(t)}function yb(t){let e=t.length,i=!1;for(;e--;){let n=t[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){i=!0;break}if(n._gfmAutolinkLiteralWalkedInto){i=!1;break}}return t.length>0&&!i&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}var wpe=Io(new RegExp("\\p{P}","u")),kpe=Io(/[A-Za-z]/),Spe=Io(/[\dA-Za-z]/),Tpe=Io(/[#-'*+\--9=?A-Z^-~]/);var Epe=Io(/\d/),Cpe=Io(/[\dA-Fa-f]/),Ppe=Io(/[!-/:-@[-`{-~]/);function d5(t){return t!==null&&t<-2}function Wc(t){return t!==null&&(t<0||t===32)}function Vc(t){return t===-2||t===-1||t===32}var Qpe=Io(/\s/);function Io(t){return e;function e(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function Zc(t,e,i,n){let r=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return Vc(l)?(t.enter(i),a(l)):e(l)}function a(l){return Vc(l)&&o++<r?(t.consume(l),a):(t.exit(i),e(l))}}var xb={tokenize:iM,partial:!0};function iM(t,e,i){return n;function n(o){return Vc(o)?Zc(t,r,"linePrefix")(o):r(o)}function r(o){return o===null||d5(o)?e(o):i(o)}}function md(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var nM={tokenize:uM,partial:!0};function vb(){return{document:{91:{tokenize:aM,continuation:{tokenize:lM},exit:cM}},text:{91:{tokenize:sM},93:{add:"after",tokenize:rM,resolveTo:oM}}}}function rM(t,e,i){let n=this,r=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;r--;){let l=n.events[r][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return i(l);let c=md(n.sliceSerialize({start:s.end,end:n.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?i(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function oM(t,e){let i=t.length,n;for(;i--;)if(t[i][1].type==="labelImage"&&t[i][0]==="enter"){n=t[i][1];break}t[i+1][1].type="data",t[i+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},t[i+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[i+3][1].end),end:Object.assign({},t[i+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[t[i+1],t[i+2],["enter",r,e],t[i+3],t[i+4],["enter",o,e],["exit",o,e],["enter",s,e],["enter",a,e],["exit",a,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(i,t.length-i+1,...l),t}function sM(t,e,i){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,s;return a;function a(f){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?i(f):(t.enter("gfmFootnoteCallMarker"),t.consume(f),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(f){if(o>999||f===93&&!s||f===null||f===91||Wc(f))return i(f);if(f===93){t.exit("chunkString");let d=t.exit("gfmFootnoteCallString");return r.includes(md(n.sliceSerialize(d)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):i(f)}return Wc(f)||(s=!0),o++,t.consume(f),f===92?u:c}function u(f){return f===91||f===92||f===93?(t.consume(f),o++,c):c(f)}}function aM(t,e,i){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,s=0,a;return l;function l(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",u):i(m)}function u(m){if(s>999||m===93&&!a||m===null||m===91||Wc(m))return i(m);if(m===93){t.exit("chunkString");let x=t.exit("gfmFootnoteDefinitionLabelString");return o=md(n.sliceSerialize(x)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),d}return Wc(m)||(a=!0),s++,t.consume(m),m===92?f:u}function f(m){return m===91||m===92||m===93?(t.consume(m),s++,u):u(m)}function d(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),r.includes(o)||r.push(o),Zc(t,O,"gfmFootnoteDefinitionWhitespace")):i(m)}function O(m){return e(m)}}function lM(t,e,i){return t.check(xb,e,t.attempt(nM,e,i))}function cM(t){t.exit("gfmFootnoteDefinition")}function uM(t,e,i){let n=this;return Zc(t,r,"gfmFootnoteDefinitionIndent",5);function r(o){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?e(o):i(o)}}function gd(t,e,i,n){let r=t.length,o=0,s;if(e<0?e=-e>r?0:r+e:e=e>r?r:e,i=i>0?i:0,n.length<1e4)s=Array.from(n),s.unshift(e,i),t.splice(...s);else for(i&&t.splice(e,i);o<n.length;)s=n.slice(o,o+1e4),s.unshift(e,0),t.splice(...s),o+=1e4,e+=1e4}var fM=Do(new RegExp("\\p{P}","u")),Bpe=Do(/[A-Za-z]/),Ype=Do(/[\dA-Za-z]/),Fpe=Do(/[#-'*+\--9=?A-Z^-~]/);var Hpe=Do(/\d/),Gpe=Do(/[\dA-Fa-f]/),hM=Do(/[!-/:-@[-`{-~]/);function O5(t){return t!==null&&(t<0||t===32)}function p5(t){return hM(t)||fM(t)}var m5=Do(/\s/);function Do(t){return e;function e(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function wb(t){if(t===null||O5(t)||m5(t))return 1;if(p5(t))return 2}function g5(t,e,i){let n=[],r=-1;for(;++r<t.length;){let o=t[r].resolveAll;o&&!n.includes(o)&&(e=o(e,i),n.push(o))}return e}function kb(t){let i=(t||{}).singleTilde,n={tokenize:o,resolveAll:r};return i==null&&(i=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";let u={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},d=[["enter",u,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",f,a]],O=a.parser.constructs.insideSpan.null;O&&gd(d,d.length,0,g5(O,s.slice(c+1,l),a)),gd(d,d.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",u,a]]),gd(s,c-1,l-c+3,d),l=c+d.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){let c=this.previous,u=this.events,f=0;return d;function d(m){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),O(m))}function O(m){let x=wb(c);if(m===126)return f>1?l(m):(s.consume(m),f++,O);if(f<2&&!i)return l(m);let v=s.exit("strikethroughSequenceTemporary"),w=wb(m);return v._open=!w||w===2&&!!x,v._close=!x||x===2&&!!w,a(m)}}}var lme=zo(new RegExp("\\p{P}","u")),cme=zo(/[A-Za-z]/),ume=zo(/[\dA-Za-z]/),fme=zo(/[#-'*+\--9=?A-Z^-~]/);var hme=zo(/\d/),dme=zo(/[\dA-Fa-f]/),Ome=zo(/[!-/:-@[-`{-~]/);function Bc(t){return t!==null&&t<-2}function Sb(t){return t!==null&&(t<0||t===32)}function Lr(t){return t===-2||t===-1||t===32}var pme=zo(/\s/);function zo(t){return e;function e(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function nl(t,e,i,n){let r=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return Lr(l)?(t.enter(i),a(l)):e(l)}function a(l){return Lr(l)&&o++<r?(t.consume(l),a):(t.exit(i),e(l))}}var bd=class{constructor(){this.map=[]}add(e,i,n){dM(this,e,i,n)}consume(e){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let i=this.map.length,n=[];for(;i>0;)i-=1,n.push(e.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),e.length=this.map[i][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}};function dM(t,e,i,n){let r=0;if(!(i===0&&n.length===0)){for(;r<t.map.length;){if(t.map[r][0]===e){t.map[r][1]+=i,t.map[r][2].push(...n);return}r+=1}t.map.push([e,i,n])}}function b5(t,e){let i=!1,n=[];for(;e<t.length;){let r=t[e];if(i){if(r[0]==="enter")r[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(i=!0);e+=1}return n}function Tb(){return{flow:{null:{tokenize:OM,resolveAll:pM}}}}function OM(t,e,i){let n=this,r=0,o=0,s;return a;function a(N){let te=n.events.length-1;for(;te>-1;){let de=n.events[te][1].type;if(de==="lineEnding"||de==="linePrefix")te--;else break}let oe=te>-1?n.events[te][1].type:null,re=oe==="tableHead"||oe==="tableRow"?$:l;return re===$&&n.parser.lazy[n.now().line]?i(N):re(N)}function l(N){return t.enter("tableHead"),t.enter("tableRow"),c(N)}function c(N){return N===124||(s=!0,o+=1),u(N)}function u(N){return N===null?i(N):Bc(N)?o>1?(o=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),O):i(N):Lr(N)?nl(t,u,"whitespace")(N):(o+=1,s&&(s=!1,r+=1),N===124?(t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),s=!0,u):(t.enter("data"),f(N)))}function f(N){return N===null||N===124||Sb(N)?(t.exit("data"),u(N)):(t.consume(N),N===92?d:f)}function d(N){return N===92||N===124?(t.consume(N),f):f(N)}function O(N){return n.interrupt=!1,n.parser.lazy[n.now().line]?i(N):(t.enter("tableDelimiterRow"),s=!1,Lr(N)?nl(t,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):m(N))}function m(N){return N===45||N===58?v(N):N===124?(s=!0,t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),x):z(N)}function x(N){return Lr(N)?nl(t,v,"whitespace")(N):v(N)}function v(N){return N===58?(o+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(N),t.exit("tableDelimiterMarker"),w):N===45?(o+=1,w(N)):N===null||Bc(N)?I(N):z(N)}function w(N){return N===45?(t.enter("tableDelimiterFiller"),T(N)):z(N)}function T(N){return N===45?(t.consume(N),T):N===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(N),t.exit("tableDelimiterMarker"),Q):(t.exit("tableDelimiterFiller"),Q(N))}function Q(N){return Lr(N)?nl(t,I,"whitespace")(N):I(N)}function I(N){return N===124?m(N):N===null||Bc(N)?!s||r!==o?z(N):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(N)):z(N)}function z(N){return i(N)}function $(N){return t.enter("tableRow"),X(N)}function X(N){return N===124?(t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),X):N===null||Bc(N)?(t.exit("tableRow"),e(N)):Lr(N)?nl(t,X,"whitespace")(N):(t.enter("data"),Y(N))}function Y(N){return N===null||N===124||Sb(N)?(t.exit("data"),X(N)):(t.consume(N),N===92?K:Y)}function K(N){return N===92||N===124?(t.consume(N),Y):Y(N)}}function pM(t,e){let i=-1,n=!0,r=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,c,u,f,d=new bd;for(;++i<t.length;){let O=t[i],m=O[1];O[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(y5(d,e,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(i,0,[["enter",c,e]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,f=void 0,o=[0,0,0,0],s=[0,i+1,0,0],a&&(a=!1,u={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(i,0,[["enter",u,e]])),r=m.type==="tableDelimiterRow"?2:u?3:1):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],f=yd(d,e,o,r,void 0,f),o=[0,0,0,0]),s[2]=i)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(s[0]=s[1],f=yd(d,e,o,r,void 0,f)),o=s,s=[o[1],i,0,0])):m.type==="tableHead"?(a=!0,l=i):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=i,o[1]!==0?(s[0]=s[1],f=yd(d,e,o,r,i,f)):s[1]!==0&&(f=yd(d,e,s,r,i,f)),r=0):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=i)}for(l!==0&&y5(d,e,l,c,u),d.consume(e.events),i=-1;++i<e.events.length;){let O=e.events[i];O[0]==="enter"&&O[1].type==="table"&&(O[1]._align=b5(e.events,i))}return t}function yd(t,e,i,n,r,o){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";i[0]!==0&&(o.end=Object.assign({},rl(e.events,i[0])),t.add(i[0],0,[["exit",o,e]]));let l=rl(e.events,i[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},t.add(i[1],0,[["enter",o,e]]),i[2]!==0){let c=rl(e.events,i[2]),u=rl(e.events,i[3]),f={type:a,start:Object.assign({},c),end:Object.assign({},u)};if(t.add(i[2],0,[["enter",f,e]]),n!==2){let d=e.events[i[2]],O=e.events[i[3]];if(d[1].end=Object.assign({},O[1].end),d[1].type="chunkText",d[1].contentType="text",i[3]>i[2]+1){let m=i[2]+1,x=i[3]-i[2]-1;t.add(m,x,[])}}t.add(i[3]+1,0,[["exit",f,e]])}return r!==void 0&&(o.end=Object.assign({},rl(e.events,r)),t.add(r,0,[["exit",o,e]]),o=void 0),o}function y5(t,e,i,n,r){let o=[],s=rl(e.events,i);r&&(r.end=Object.assign({},s),o.push(["exit",r,e])),n.end=Object.assign({},s),o.push(["exit",n,e]),t.add(i+1,0,o)}function rl(t,e){let i=t[e],n=i[0]==="enter"?"start":"end";return i[1][n]}var Pme=Uo(new RegExp("\\p{P}","u")),Qme=Uo(/[A-Za-z]/),_me=Uo(/[\dA-Za-z]/),Ame=Uo(/[#-'*+\--9=?A-Z^-~]/);var $me=Uo(/\d/),Xme=Uo(/[\dA-Fa-f]/),Rme=Uo(/[!-/:-@[-`{-~]/);function x5(t){return t!==null&&t<-2}function v5(t){return t!==null&&(t<0||t===32)}function Yc(t){return t===-2||t===-1||t===32}var Lme=Uo(/\s/);function Uo(t){return e;function e(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function w5(t,e,i,n){let r=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return Yc(l)?(t.enter(i),a(l)):e(l)}function a(l){return Yc(l)&&o++<r?(t.consume(l),a):(t.exit(i),e(l))}}var mM={tokenize:gM};function Eb(){return{text:{91:mM}}}function gM(t,e,i){let n=this;return r;function r(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?i(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),o)}function o(l){return v5(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),s):i(l)}function s(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):i(l)}function a(l){return x5(l)?e(l):Yc(l)?t.check({tokenize:bM},e,i)(l):i(l)}}function bM(t,e,i){return w5(t,n,"whitespace");function n(r){return r===null?i(r):e(r)}}function k5(t){return n5([bb(),vb(),kb(t),Tb(),Eb()])}var yM={};function xd(t){let e=this,i=t||yM,n=e.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(k5(i)),o.push(Ob()),s.push(pb(i))}function Cb(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:o},exit:{mathFlow:r,mathFlowFence:n,mathFlowFenceMeta:i,mathFlowValue:a,mathText:s,mathTextData:a}};function t(l){let c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},l)}function e(){this.buffer()}function i(){let l=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=l}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function r(l){let c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.stack[this.stack.length-1];u.type,this.exit(l),u.value=c;let f=u.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function o(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){let c=this.resume(),u=this.stack[this.stack.length-1];u.type,this.exit(l),u.value=c,u.data.hChildren.push({type:"text",value:c})}function a(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function Pb(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),n.peek=r,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
||
`,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:i,inlineMath:n}};function i(o,s,a,l){let c=o.value||"",u=a.createTracker(l),f="$".repeat(Math.max(dd(c,"$")+1,2)),d=a.enter("mathFlow"),O=u.move(f);if(o.meta){let m=a.enter("mathFlowMeta");O+=u.move(a.safe(o.meta,F({after:`
|
||
`,before:O,encode:["$"]},u.current()))),m()}return O+=u.move(`
|
||
`),c&&(O+=u.move(c+`
|
||
`)),O+=u.move(f),d(),O}function n(o,s,a){let l=o.value||"",c=1;for(e||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;let u="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f<a.unsafe.length;){let d=a.unsafe[f];if(!d.atBreak)continue;let O=a.compilePattern(d),m;for(;m=O.exec(l);){let x=m.index;l.codePointAt(x)===10&&l.codePointAt(x-1)===13&&x--,l=l.slice(0,x)+" "+l.slice(m.index+1)}}return u+l+u}function r(){return"$"}}var dge=Mo(new RegExp("\\p{P}","u")),Oge=Mo(/[A-Za-z]/),pge=Mo(/[\dA-Za-z]/),mge=Mo(/[#-'*+\--9=?A-Z^-~]/);var gge=Mo(/\d/),bge=Mo(/[\dA-Fa-f]/),yge=Mo(/[!-/:-@[-`{-~]/);function Ir(t){return t!==null&&t<-2}function Qb(t){return t===-2||t===-1||t===32}var xge=Mo(/\s/);function Mo(t){return e;function e(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function Fc(t,e,i,n){let r=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return Qb(l)?(t.enter(i),a(l)):e(l)}function a(l){return Qb(l)&&o++<r?(t.consume(l),a):(t.exit(i),e(l))}}var T5={tokenize:xM,concrete:!0},S5={tokenize:vM,partial:!0};function xM(t,e,i){let n=this,r=n.events[n.events.length-1],o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return a;function a(T){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),l(T)}function l(T){return T===36?(t.consume(T),s++,l):s<2?i(T):(t.exit("mathFlowFenceSequence"),Fc(t,c,"whitespace")(T))}function c(T){return T===null||Ir(T)?f(T):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),u(T))}function u(T){return T===null||Ir(T)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),f(T)):T===36?i(T):(t.consume(T),u)}function f(T){return t.exit("mathFlowFence"),n.interrupt?e(T):t.attempt(S5,d,v)(T)}function d(T){return t.attempt({tokenize:w,partial:!0},v,O)(T)}function O(T){return(o?Fc(t,m,"linePrefix",o+1):m)(T)}function m(T){return T===null?v(T):Ir(T)?t.attempt(S5,d,v)(T):(t.enter("mathFlowValue"),x(T))}function x(T){return T===null||Ir(T)?(t.exit("mathFlowValue"),m(T)):(t.consume(T),x)}function v(T){return t.exit("mathFlow"),e(T)}function w(T,Q,I){let z=0;return Fc(T,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function $(K){return T.enter("mathFlowFence"),T.enter("mathFlowFenceSequence"),X(K)}function X(K){return K===36?(z++,T.consume(K),X):z<s?I(K):(T.exit("mathFlowFenceSequence"),Fc(T,Y,"whitespace")(K))}function Y(K){return K===null||Ir(K)?(T.exit("mathFlowFence"),Q(K)):I(K)}}}function vM(t,e,i){let n=this;return r;function r(s){return s===null?e(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?i(s):e(s)}}function E5(t){let i=(t||{}).singleDollarTextMath;return i==null&&(i=!0),{tokenize:n,resolve:wM,previous:kM};function n(r,o,s){let a=this,l=0,c,u;return f;function f(v){return r.enter("mathText"),r.enter("mathTextSequence"),d(v)}function d(v){return v===36?(r.consume(v),l++,d):l<2&&!i?s(v):(r.exit("mathTextSequence"),O(v))}function O(v){return v===null?s(v):v===36?(u=r.enter("mathTextSequence"),c=0,x(v)):v===32?(r.enter("space"),r.consume(v),r.exit("space"),O):Ir(v)?(r.enter("lineEnding"),r.consume(v),r.exit("lineEnding"),O):(r.enter("mathTextData"),m(v))}function m(v){return v===null||v===32||v===36||Ir(v)?(r.exit("mathTextData"),O(v)):(r.consume(v),m)}function x(v){return v===36?(r.consume(v),c++,x):c===l?(r.exit("mathTextSequence"),r.exit("mathText"),o(v)):(u.type="mathTextData",m(v))}}}function wM(t){let e=t.length-4,i=3,n,r;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=i;++n<e;)if(t[n][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[i][1].type="mathTextPadding",i+=2,e-=2;break}}for(n=i-1,e++;++n<=e;)r===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(r=n):(n===e||t[n][1].type==="lineEnding")&&(t[r][1].type="mathTextData",n!==r+2&&(t[r][1].end=t[n-1][1].end,t.splice(r+2,n-r-2),e-=n-r-2,n=r+2),r=void 0);return t}function kM(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function _b(t){return{flow:{36:T5},text:{36:E5(t)}}}var SM={};function vd(t){let e=this,i=t||SM,n=e.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(_b(i)),o.push(Cb()),s.push(Pb(i))}function C5(t,e){let i={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,i),t.applyData(e,i)}function P5(t,e){let i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,i),[t.applyData(e,i),{type:"text",value:`
|
||
`}]}function Q5(t,e){let i=e.value?e.value+`
|
||
`:"",n={};e.lang&&(n.className=["language-"+e.lang]);let r={type:"element",tagName:"code",properties:n,children:[{type:"text",value:i}]};return e.meta&&(r.data={meta:e.meta}),t.patch(e,r),r=t.applyData(e,r),r={type:"element",tagName:"pre",properties:{},children:[r]},t.patch(e,r),r}function _5(t,e){let i={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function A5(t,e){let i={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}var Wge=No(new RegExp("\\p{P}","u")),Vge=No(/[A-Za-z]/),Ab=No(/[\dA-Za-z]/),Zge=No(/[#-'*+\--9=?A-Z^-~]/);var Bge=No(/\d/),Yge=No(/[\dA-Fa-f]/),Fge=No(/[!-/:-@[-`{-~]/);var Hge=No(/\s/);function No(t){return e;function e(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function bn(t){let e=[],i=-1,n=0,r=0;for(;++i<t.length;){let o=t.charCodeAt(i),s="";if(o===37&&Ab(t.charCodeAt(i+1))&&Ab(t.charCodeAt(i+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let a=t.charCodeAt(i+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),r=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(e.push(t.slice(n,i),encodeURIComponent(s)),n=i+r+1,s=""),r&&(i+=r,r=0)}return e.join("")+t.slice(n)}function $5(t,e){let i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=String(e.identifier).toUpperCase(),r=bn(n.toLowerCase()),o=t.footnoteOrder.indexOf(n),s,a=t.footnoteCounts.get(n);a===void 0?(a=0,t.footnoteOrder.push(n),s=t.footnoteOrder.length):s=o+1,a+=1,t.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+r,id:i+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(e,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,c),t.applyData(e,c)}function X5(t,e){let i={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function R5(t,e){if(t.options.allowDangerousHtml){let i={type:"raw",value:e.value};return t.patch(e,i),t.applyData(e,i)}}function wd(t,e){let i=e.referenceType,n="]";if(i==="collapsed"?n+="[]":i==="full"&&(n+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+n}];let r=t.all(e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});let s=r[r.length-1];return s&&s.type==="text"?s.value+=n:r.push({type:"text",value:n}),r}function L5(t,e){let i=String(e.identifier).toUpperCase(),n=t.definitionById.get(i);if(!n)return wd(t,e);let r={src:bn(n.url||""),alt:e.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);let o={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,o),t.applyData(e,o)}function I5(t,e){let i={src:bn(e.url)};e.alt!==null&&e.alt!==void 0&&(i.alt=e.alt),e.title!==null&&e.title!==void 0&&(i.title=e.title);let n={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,n),t.applyData(e,n)}function D5(t,e){let i={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,i);let n={type:"element",tagName:"code",properties:{},children:[i]};return t.patch(e,n),t.applyData(e,n)}function z5(t,e){let i=String(e.identifier).toUpperCase(),n=t.definitionById.get(i);if(!n)return wd(t,e);let r={href:bn(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);let o={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,o),t.applyData(e,o)}function U5(t,e){let i={href:bn(e.url)};e.title!==null&&e.title!==void 0&&(i.title=e.title);let n={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function M5(t,e,i){let n=t.all(e),r=i?TM(i):N5(e),o={},s=[];if(typeof e.checked=="boolean"){let u=n[0],f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<n.length;){let u=n[a];(r||a!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
||
`}),u.type==="element"&&u.tagName==="p"&&!r?s.push(...u.children):s.push(u)}let l=n[n.length-1];l&&(r||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
||
`});let c={type:"element",tagName:"li",properties:o,children:s};return t.patch(e,c),t.applyData(e,c)}function TM(t){let e=!1;if(t.type==="list"){e=t.spread||!1;let i=t.children,n=-1;for(;!e&&++n<i.length;)e=N5(i[n])}return e}function N5(t){let e=t.spread;return e==null?t.children.length>1:e}function q5(t,e){let i={},n=t.all(e),r=-1;for(typeof e.start=="number"&&e.start!==1&&(i.start=e.start);++r<n.length;){let s=n[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}let o={type:"element",tagName:e.ordered?"ol":"ul",properties:i,children:t.wrap(n,!0)};return t.patch(e,o),t.applyData(e,o)}function j5(t,e){let i={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function W5(t,e){let i={type:"root",children:t.wrap(t.all(e))};return t.patch(e,i),t.applyData(e,i)}function V5(t,e){let i={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}var Rs=Z5("end"),yn=Z5("start");function Z5(t){return e;function e(i){let n=i&&i.position&&i.position[t]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Hc(t){let e=yn(t),i=Rs(t);if(e&&i)return{start:e,end:i}}function B5(t,e){let i=t.all(e),n=i.shift(),r=[];if(n){let s={type:"element",tagName:"thead",properties:{},children:t.wrap([n],!0)};t.patch(e.children[0],s),r.push(s)}if(i.length>0){let s={type:"element",tagName:"tbody",properties:{},children:t.wrap(i,!0)},a=yn(e.children[1]),l=Rs(e.children[e.children.length-1]);a&&l&&(s.position={start:a,end:l}),r.push(s)}let o={type:"element",tagName:"table",properties:{},children:t.wrap(r,!0)};return t.patch(e,o),t.applyData(e,o)}function Y5(t,e,i){let n=i?i.children:void 0,o=(n?n.indexOf(e):1)===0?"th":"td",s=i&&i.type==="table"?i.align:void 0,a=s?s.length:e.children.length,l=-1,c=[];for(;++l<a;){let f=e.children[l],d={},O=s?s[l]:void 0;O&&(d.align=O);let m={type:"element",tagName:o,properties:d,children:[]};f&&(m.children=t.all(f),t.patch(f,m),m=t.applyData(f,m)),c.push(m)}let u={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,u),t.applyData(e,u)}function F5(t,e){let i={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function G5(t){let e=String(t),i=/\r?\n|\r/g,n=i.exec(e),r=0,o=[];for(;n;)o.push(H5(e.slice(r,n.index),r>0,!0),n[0]),r=n.index+n[0].length,n=i.exec(e);return o.push(H5(e.slice(r),r>0,!1)),o.join("")}function H5(t,e,i){let n=0,r=t.length;if(e){let o=t.codePointAt(n);for(;o===9||o===32;)n++,o=t.codePointAt(n)}if(i){let o=t.codePointAt(r-1);for(;o===9||o===32;)r--,o=t.codePointAt(r-1)}return r>n?t.slice(n,r):""}function K5(t,e){let i={type:"text",value:G5(String(e.value))};return t.patch(e,i),t.applyData(e,i)}function J5(t,e){let i={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,i),t.applyData(e,i)}var e4={blockquote:C5,break:P5,code:Q5,delete:_5,emphasis:A5,footnoteReference:$5,heading:X5,html:R5,imageReference:L5,image:I5,inlineCode:D5,linkReference:z5,link:U5,listItem:M5,list:q5,paragraph:j5,root:W5,strong:V5,table:B5,tableCell:F5,tableRow:Y5,text:K5,thematicBreak:J5,toml:kd,yaml:kd,definition:kd,footnoteDefinition:kd};function kd(){}var t4=typeof self=="object"?self:globalThis,EM=(t,e)=>{let i=(r,o)=>(t.set(o,r),r),n=r=>{if(t.has(r))return t.get(r);let[o,s]=e[r];switch(o){case 0:case-1:return i(s,r);case 1:{let a=i([],r);for(let l of s)a.push(n(l));return a}case 2:{let a=i({},r);for(let[l,c]of s)a[n(l)]=n(c);return a}case 3:return i(new Date(s),r);case 4:{let{source:a,flags:l}=s;return i(new RegExp(a,l),r)}case 5:{let a=i(new Map,r);for(let[l,c]of s)a.set(n(l),n(c));return a}case 6:{let a=i(new Set,r);for(let l of s)a.add(n(l));return a}case 7:{let{name:a,message:l}=s;return i(new t4[a](l),r)}case 8:return i(BigInt(s),r);case"BigInt":return i(Object(BigInt(s)),r)}return i(new t4[o](s),r)};return n},Lb=t=>EM(new Map,t)(0);var ol="",{toString:CM}={},{keys:PM}=Object,eu=t=>{let e=typeof t;if(e!=="object"||!t)return[0,e];let i=CM.call(t).slice(8,-1);switch(i){case"Array":return[1,ol];case"Object":return[2,ol];case"Date":return[3,ol];case"RegExp":return[4,ol];case"Map":return[5,ol];case"Set":return[6,ol]}return i.includes("Array")?[1,i]:i.includes("Error")?[7,i]:[2,i]},Pd=([t,e])=>t===0&&(e==="function"||e==="symbol"),QM=(t,e,i,n)=>{let r=(s,a)=>{let l=n.push(s)-1;return i.set(a,l),l},o=s=>{if(i.has(s))return i.get(s);let[a,l]=eu(s);switch(a){case 0:{let u=s;switch(l){case"bigint":a=8,u=s.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return r([-1],s)}return r([a,u],s)}case 1:{if(l)return r([l,[...s]],s);let u=[],f=r([a,u],s);for(let d of s)u.push(o(d));return f}case 2:{if(l)switch(l){case"BigInt":return r([l,s.toString()],s);case"Boolean":case"Number":case"String":return r([l,s.valueOf()],s)}if(e&&"toJSON"in s)return o(s.toJSON());let u=[],f=r([a,u],s);for(let d of PM(s))(t||!Pd(eu(s[d])))&&u.push([o(d),o(s[d])]);return f}case 3:return r([a,s.toISOString()],s);case 4:{let{source:u,flags:f}=s;return r([a,{source:u,flags:f}],s)}case 5:{let u=[],f=r([a,u],s);for(let[d,O]of s)(t||!(Pd(eu(d))||Pd(eu(O))))&&u.push([o(d),o(O)]);return f}case 6:{let u=[],f=r([a,u],s);for(let d of s)(t||!Pd(eu(d)))&&u.push(o(d));return f}}let{message:c}=s;return r([a,{name:l,message:c}],s)};return o},Ib=(t,{json:e,lossy:i}={})=>{let n=[];return QM(!(e||i),!!e,new Map,n)(t),n};var Mn=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Lb(Ib(t,e)):structuredClone(t):(t,e)=>Lb(Ib(t,e));function _M(t,e){let i=[{type:"text",value:"\u21A9"}];return e>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),i}function AM(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function i4(t){let e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=t.options.footnoteBackContent||_M,n=t.options.footnoteBackLabel||AM,r=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<t.footnoteOrder.length;){let c=t.footnoteById.get(t.footnoteOrder[l]);if(!c)continue;let u=t.all(c),f=String(c.identifier).toUpperCase(),d=bn(f.toLowerCase()),O=0,m=[],x=t.footnoteCounts.get(f);for(;x!==void 0&&++O<=x;){m.length>0&&m.push({type:"text",value:" "});let T=typeof i=="string"?i:i(l,O);typeof T=="string"&&(T={type:"text",value:T}),m.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+d+(O>1?"-"+O:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,O),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}let v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){let T=v.children[v.children.length-1];T&&T.type==="text"?T.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else u.push(...m);let w={type:"element",tagName:"li",properties:{id:e+"fn-"+d},children:t.wrap(u,!0)};t.patch(c,w),a.push(w)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:Ee(F({},Mn(s)),{id:"footnote-label"}),children:[{type:"text",value:r}]},{type:"text",value:`
|
||
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(a,!0)},{type:"text",value:`
|
||
`}]}}var Db={}.hasOwnProperty,$M={};function r4(t,e){let i=e||$M,n=new Map,r=new Map,o=new Map,s=F(F({},e4),i.handlers),a={all:c,applyData:RM,definitionById:n,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:i,patch:XM,wrap:IM};return xi(t,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){let f=u.type==="definition"?n:r,d=String(u.identifier).toUpperCase();f.has(d)||f.set(d,u)}}),a;function l(u,f){let d=u.type,O=a.handlers[d];if(Db.call(a.handlers,d)&&O)return O(a,u,f);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in u){let x=u,{children:v}=x,w=Ui(x,["children"]),T=Mn(w);return T.children=a.all(u),T}return Mn(u)}return(a.options.unknownHandler||LM)(a,u,f)}function c(u){let f=[];if("children"in u){let d=u.children,O=-1;for(;++O<d.length;){let m=a.one(d[O],u);if(m){if(O&&d[O-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=n4(m.value)),!Array.isArray(m)&&m.type==="element")){let x=m.children[0];x&&x.type==="text"&&(x.value=n4(x.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function XM(t,e){t.position&&(e.position=Hc(t))}function RM(t,e){let i=e;if(t&&t.data){let n=t.data.hName,r=t.data.hChildren,o=t.data.hProperties;if(typeof n=="string")if(i.type==="element")i.tagName=n;else{let s="children"in i?i.children:[i];i={type:"element",tagName:n,properties:{},children:s}}i.type==="element"&&o&&Object.assign(i.properties,Mn(o)),"children"in i&&i.children&&r!==null&&r!==void 0&&(i.children=r)}return i}function LM(t,e){let i=e.data||{},n="value"in e&&!(Db.call(i,"hProperties")||Db.call(i,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function IM(t,e){let i=[],n=-1;for(e&&i.push({type:"text",value:`
|
||
`});++n<t.length;)n&&i.push({type:"text",value:`
|
||
`}),i.push(t[n]);return e&&t.length>0&&i.push({type:"text",value:`
|
||
`}),i}function n4(t){let e=0,i=t.charCodeAt(e);for(;i===9||i===32;)e++,i=t.charCodeAt(e);return t.slice(e)}function Qd(t,e){let i=r4(t,e),n=i.one(t,void 0),r=i4(i),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return r&&("children"in o,o.children.push({type:"text",value:`
|
||
`},r)),o}function _d(t,e){return t&&"run"in t?async function(i,n){let r=Qd(i,F({file:n},e));await t.run(r,n)}:function(i,n){return Qd(i,F({file:n},t||e))}}var Dr=class{constructor(e,i,n){this.property=e,this.normal=i,n&&(this.space=n)}};Dr.prototype.property={};Dr.prototype.normal={};Dr.prototype.space=null;function zb(t,e){let i={},n={},r=-1;for(;++r<t.length;)Object.assign(i,t[r].property),Object.assign(n,t[r].normal);return new Dr(i,n,e)}function zr(t){return t.toLowerCase()}var vi=class{constructor(e,i){this.property=e,this.attribute=i}};vi.prototype.space=null;vi.prototype.boolean=!1;vi.prototype.booleanish=!1;vi.prototype.overloadedBoolean=!1;vi.prototype.number=!1;vi.prototype.commaSeparated=!1;vi.prototype.spaceSeparated=!1;vi.prototype.commaOrSpaceSeparated=!1;vi.prototype.mustUseProperty=!1;vi.prototype.defined=!1;var tu={};bc(tu,{boolean:()=>De,booleanish:()=>Ut,commaOrSpaceSeparated:()=>ji,commaSeparated:()=>qo,number:()=>me,overloadedBoolean:()=>Ub,spaceSeparated:()=>ht});var DM=0,De=Ls(),Ut=Ls(),Ub=Ls(),me=Ls(),ht=Ls(),qo=Ls(),ji=Ls();function Ls(){return 2**++DM}var Mb=Object.keys(tu),Is=class extends vi{constructor(e,i,n,r){let o=-1;if(super(e,i),o4(this,"space",r),typeof n=="number")for(;++o<Mb.length;){let s=Mb[o];o4(this,Mb[o],(n&tu[s])===tu[s])}}};Is.prototype.defined=!0;function o4(t,e,i){i&&(t[e]=i)}var zM={}.hasOwnProperty;function xn(t){let e={},i={},n;for(n in t.properties)if(zM.call(t.properties,n)){let r=t.properties[n],o=new Is(n,t.transform(t.attributes||{},n),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),e[n]=o,i[zr(n)]=n,i[zr(o.attribute)]=n}return new Dr(e,i,t.space)}var Nb=xn({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var qb=xn({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ad(t,e){return e in t?t[e]:e}function $d(t,e){return Ad(t,e.toLowerCase())}var jb=xn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$d,properties:{xmlns:null,xmlnsXLink:null}});var Wb=xn({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ut,ariaAutoComplete:null,ariaBusy:Ut,ariaChecked:Ut,ariaColCount:me,ariaColIndex:me,ariaColSpan:me,ariaControls:ht,ariaCurrent:null,ariaDescribedBy:ht,ariaDetails:null,ariaDisabled:Ut,ariaDropEffect:ht,ariaErrorMessage:null,ariaExpanded:Ut,ariaFlowTo:ht,ariaGrabbed:Ut,ariaHasPopup:null,ariaHidden:Ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ht,ariaLevel:me,ariaLive:null,ariaModal:Ut,ariaMultiLine:Ut,ariaMultiSelectable:Ut,ariaOrientation:null,ariaOwns:ht,ariaPlaceholder:null,ariaPosInSet:me,ariaPressed:Ut,ariaReadOnly:Ut,ariaRelevant:null,ariaRequired:Ut,ariaRoleDescription:ht,ariaRowCount:me,ariaRowIndex:me,ariaRowSpan:me,ariaSelected:Ut,ariaSetSize:me,ariaSort:null,ariaValueMax:me,ariaValueMin:me,ariaValueNow:me,ariaValueText:null,role:null}});var s4=xn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$d,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qo,acceptCharset:ht,accessKey:ht,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:ht,autoFocus:De,autoPlay:De,blocking:ht,capture:De,charSet:null,checked:De,cite:null,className:ht,cols:me,colSpan:null,content:null,contentEditable:Ut,controls:De,controlsList:ht,coords:me|qo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:Ub,draggable:Ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:ht,height:me,hidden:De,high:me,href:null,hrefLang:null,htmlFor:ht,httpEquiv:ht,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:ht,itemRef:ht,itemScope:De,itemType:ht,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:me,manifest:null,max:null,maxLength:me,media:null,method:null,min:null,minLength:me,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:De,optimum:me,pattern:null,ping:ht,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:ht,required:De,reversed:De,rows:me,rowSpan:me,sandbox:ht,scope:null,scoped:De,seamless:De,selected:De,shape:null,size:me,sizes:null,slot:null,span:me,spellCheck:Ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:me,step:null,style:null,tabIndex:me,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:Ut,width:me,wrap:null,align:null,aLink:null,archive:ht,axis:null,background:null,bgColor:null,border:me,borderColor:null,bottomMargin:me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:me,leftMargin:me,link:null,longDesc:null,lowSrc:null,marginHeight:me,marginWidth:me,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:me,rules:null,scheme:null,scrolling:Ut,standby:null,summary:null,text:null,topMargin:me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:me,security:null,unselectable:null}});var a4=xn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Ad,properties:{about:ji,accentHeight:me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:me,amplitude:me,arabicForm:null,ascent:me,attributeName:null,attributeType:null,azimuth:me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:me,by:null,calcMode:null,capHeight:me,className:ht,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:me,diffuseConstant:me,direction:null,display:null,dur:null,divisor:me,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:me,enableBackground:null,end:null,event:null,exponent:me,externalResourcesRequired:null,fill:null,fillOpacity:me,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qo,g2:qo,glyphName:qo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:me,horizOriginX:me,horizOriginY:me,id:null,ideographic:me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:me,k:me,k1:me,k2:me,k3:me,k4:me,kernelMatrix:ji,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:me,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:me,overlineThickness:me,paintOrder:null,panose1:null,path:null,pathLength:me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ht,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:me,pointsAtY:me,pointsAtZ:me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ji,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ji,rev:ji,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ji,requiredFeatures:ji,requiredFonts:ji,requiredFormats:ji,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:me,specularExponent:me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:me,strikethroughThickness:me,string:null,stroke:null,strokeDashArray:ji,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:me,strokeOpacity:me,strokeWidth:null,style:null,surfaceScale:me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ji,tabIndex:me,tableValues:null,target:null,targetX:me,targetY:me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ji,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:me,underlineThickness:me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:me,values:null,vAlphabetic:me,vMathematical:me,vectorEffect:null,vHanging:me,vIdeographic:me,version:null,vertAdvY:me,vertOriginX:me,vertOriginY:me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var UM=/^data[-\w.:]+$/i,l4=/-[a-z]/g,MM=/[A-Z]/g;function Ur(t,e){let i=zr(e),n=e,r=vi;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&UM.test(e)){if(e.charAt(4)==="-"){let o=e.slice(5).replace(l4,qM);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=e.slice(4);if(!l4.test(o)){let s=o.replace(MM,NM);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}r=Is}return new r(n,e)}function NM(t){return"-"+t.toLowerCase()}function qM(t){return t.charAt(1).toUpperCase()}var Mr=zb([qb,Nb,jb,Wb,s4],"html"),vn=zb([qb,Nb,jb,Wb,a4],"svg");function Vb(t){let e=[],i=String(t||""),n=i.indexOf(","),r=0,o=!1;for(;!o;){n===-1&&(n=i.length,o=!0);let s=i.slice(r,n).trim();(s||!o)&&e.push(s),r=n+1,n=i.indexOf(",",r)}return e}function Xd(t,e){let i=e||{};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}var c4=/[#.]/g;function Zb(t,e){let i=t||"",n={},r=0,o,s;for(;r<i.length;){c4.lastIndex=r;let a=c4.exec(i),l=i.slice(r,a?a.index:i.length);l&&(o?o==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:s=l,r+=l.length),a&&(o=a[0],r++)}return{type:"element",tagName:s||e||"div",properties:n,children:[]}}function Bb(t){let e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Rd(t){return t.join(" ").trim()}var jM=new Set(["button","menu","reset","submit"]),Yb={}.hasOwnProperty;function Hb(t,e,i){let n=i&&BM(i);function r(o,s,...a){let l=-1,c;if(o==null){c={type:"root",children:[]};let u=s;a.unshift(u)}else if(c=Zb(o,e),c.tagName=c.tagName.toLowerCase(),n&&Yb.call(n,c.tagName)&&(c.tagName=n[c.tagName]),WM(s,c.tagName)){let u;for(u in s)Yb.call(s,u)&&VM(t,c.properties,u,s[u])}else a.unshift(s);for(;++l<a.length;)Fb(c.children,a[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return r}function WM(t,e){return t==null||typeof t!="object"||Array.isArray(t)?!1:e==="input"||!t.type||typeof t.type!="string"?!0:"children"in t&&Array.isArray(t.children)?!1:e==="button"?jM.has(t.type.toLowerCase()):!("value"in t)}function VM(t,e,i,n){let r=Ur(t,i),o=-1,s;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;s=n}else typeof n=="boolean"?s=n:typeof n=="string"?r.spaceSeparated?s=Bb(n):r.commaSeparated?s=Vb(n):r.commaOrSpaceSeparated?s=Bb(Vb(n).join(" ")):s=u4(r,r.property,n):Array.isArray(n)?s=n.concat():s=r.property==="style"?ZM(n):String(n);if(Array.isArray(s)){let a=[];for(;++o<s.length;){let l=u4(r,r.property,s[o]);a[o]=l}s=a}if(r.property==="className"&&Array.isArray(e.className)){let a=s;s=e.className.concat(a)}e[r.property]=s}}function Fb(t,e){let i=-1;if(e!=null)if(typeof e=="string"||typeof e=="number")t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(;++i<e.length;)Fb(t,e[i]);else if(typeof e=="object"&&"type"in e)e.type==="root"?Fb(t,e.children):t.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function u4(t,e,i){if(typeof i=="string"){if(t.number&&i&&!Number.isNaN(Number(i)))return Number(i);if((t.boolean||t.overloadedBoolean)&&(i===""||zr(i)===zr(e)))return!0}return i}function ZM(t){let e=[],i;for(i in t)Yb.call(t,i)&&e.push([i,t[i]].join(": "));return e.join("; ")}function BM(t){let e={},i=-1;for(;++i<t.length;)e[t[i].toLowerCase()]=t[i];return e}var f4=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];var iu=Hb(Mr,"div"),nu=Hb(vn,"g",f4);var Gb=/\r?\n|\r/g;function Kb(t){let e=String(t),i=[];for(Gb.lastIndex=0;Gb.test(e);)i.push(Gb.lastIndex);return i.push(e.length+1),{toPoint:n,toOffset:r};function n(o){let s=-1;if(typeof o=="number"&&o>-1&&o<i[i.length-1]){for(;++s<i.length;)if(i[s]>o)return{line:s+1,column:o-(s>0?i[s-1]:0)+1,offset:o}}}function r(o){let s=o&&o.line,a=o&&o.column;if(typeof s=="number"&&typeof a=="number"&&!Number.isNaN(s)&&!Number.isNaN(a)&&s-1 in i){let l=(i[s-2]||0)+a-1||0;if(l>-1&&l<i[i.length-1])return l}}}var Wi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};var d4={}.hasOwnProperty,YM=Object.prototype;function ru(t,e){let i=e||{};return Jb({file:i.file||void 0,location:!1,schema:i.space==="svg"?vn:Mr,verbose:i.verbose||!1},t)}function Jb(t,e){let i;switch(e.nodeName){case"#comment":{let n=e;return i={type:"comment",value:n.data},Ld(t,n,i),i}case"#document":case"#document-fragment":{let n=e,r="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(i={type:"root",children:O4(t,e.childNodes),data:{quirksMode:r}},t.file&&t.location){let o=String(t.file),s=Kb(o),a=s.toPoint(0),l=s.toPoint(o.length);i.position={start:a,end:l}}return i}case"#documentType":{let n=e;return i={type:"doctype"},Ld(t,n,i),i}case"#text":{let n=e;return i={type:"text",value:n.value},Ld(t,n,i),i}default:return i=FM(t,e),i}}function O4(t,e){let i=-1,n=[];for(;++i<e.length;){let r=Jb(t,e[i]);n.push(r)}return n}function FM(t,e){let i=t.schema;t.schema=e.namespaceURI===Wi.svg?vn:Mr;let n=-1,r={};for(;++n<e.attrs.length;){let a=e.attrs[n],l=(a.prefix?a.prefix+":":"")+a.name;d4.call(YM,l)||(r[l]=a.value)}let s=(t.schema.space==="svg"?nu:iu)(e.tagName,r,O4(t,e.childNodes));if(Ld(t,e,s),s.tagName==="template"){let a=e,l=a.sourceCodeLocation,c=l&&l.startTag&&sl(l.startTag),u=l&&l.endTag&&sl(l.endTag),f=Jb(t,a.content);c&&u&&t.file&&(f.position={start:c.end,end:u.start}),s.content=f}return t.schema=i,s}function Ld(t,e,i){if("sourceCodeLocation"in e&&e.sourceCodeLocation&&t.file){let n=HM(t,i,e.sourceCodeLocation);n&&(t.location=!0,i.position=n)}}function HM(t,e,i){let n=sl(i);if(e.type==="element"){let r=e.children[e.children.length-1];if(n&&!i.endTag&&r&&r.position&&r.position.end&&(n.end=Object.assign({},r.position.end)),t.verbose){let o={},s;if(i.attrs)for(s in i.attrs)d4.call(i.attrs,s)&&(o[Ur(t.schema,s).property]=sl(i.attrs[s]));i.startTag;let a=sl(i.startTag),l=i.endTag?sl(i.endTag):void 0,c={opening:a};l&&(c.closing=l),c.properties=o,e.data={position:c}}}return n}function sl(t){let e=h4({line:t.startLine,column:t.startCol,offset:t.startOffset}),i=h4({line:t.endLine,column:t.endCol,offset:t.endOffset});return e||i?{start:e,end:i}:void 0}function h4(t){return t.line&&t.column?t:void 0}var GM={},KM={}.hasOwnProperty,p4=Ka("type",{handlers:{root:JM,element:rN,text:iN,comment:nN,doctype:tN}});function e1(t,e){let n=(e||GM).space;return p4(t,n==="svg"?vn:Mr)}function JM(t,e){let i={nodeName:"#document",mode:(t.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return i.childNodes=t1(t.children,i,e),al(t,i),i}function eN(t,e){let i={nodeName:"#document-fragment",childNodes:[]};return i.childNodes=t1(t.children,i,e),al(t,i),i}function tN(t){let e={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return al(t,e),e}function iN(t){let e={nodeName:"#text",value:t.value,parentNode:null};return al(t,e),e}function nN(t){let e={nodeName:"#comment",data:t.value,parentNode:null};return al(t,e),e}function rN(t,e){let i=e,n=i;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(n=vn);let r=[],o;if(t.properties){for(o in t.properties)if(o!=="children"&&KM.call(t.properties,o)){let l=oN(n,o,t.properties[o]);l&&r.push(l)}}let s=n.space;let a={nodeName:t.tagName,tagName:t.tagName,attrs:r,namespaceURI:Wi[s],childNodes:[],parentNode:null};return a.childNodes=t1(t.children,a,n),al(t,a),t.tagName==="template"&&t.content&&(a.content=eN(t.content,n)),a}function oN(t,e,i){let n=Ur(t,e);if(i===!1||i===null||i===void 0||typeof i=="number"&&Number.isNaN(i)||!i&&n.boolean)return;Array.isArray(i)&&(i=n.commaSeparated?Xd(i):Rd(i));let r={name:n.attribute,value:i===!0?"":String(i)};if(n.space&&n.space!=="html"&&n.space!=="svg"){let o=r.name.indexOf(":");o<0?r.prefix="":(r.name=r.name.slice(o+1),r.prefix=n.attribute.slice(0,o)),r.namespace=Wi[n.space]}return r}function t1(t,e,i){let n=-1,r=[];if(t)for(;++n<t.length;){let o=p4(t[n],i);o.parentNode=e,r.push(o)}return r}function al(t,e){let i=t.position;i&&i.start&&i.end&&(i.start.offset,i.end.offset,e.sourceCodeLocation={startLine:i.start.line,startCol:i.start.column,startOffset:i.start.offset,endLine:i.end.line,endCol:i.end.column,endOffset:i.end.offset})}var Id=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var sN=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),kt="\uFFFD",_;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",t[t.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_F=102]="LATIN_SMALL_F",t[t.LATIN_SMALL_X=120]="LATIN_SMALL_X",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",t[t.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(_=_||(_={}));var Ai={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Dd(t){return t>=55296&&t<=57343}function m4(t){return t>=56320&&t<=57343}function g4(t,e){return(t-55296)*1024+9216+e}function zd(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Ud(t){return t>=64976&&t<=65007||sN.has(t)}var ie;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ie=ie||(ie={}));var lN=65536,Md=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=lN,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:i,col:n,offset:r}=this;return{code:e,startLine:i,endLine:i,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let i=this.html.charCodeAt(this.pos+1);if(m4(i))return this.pos++,this._addGap(),g4(e,i)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,_.EOF;return this._err(ie.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,i){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=i}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,i){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(i)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==e.charCodeAt(n))return!1;return!0}peek(e){let i=this.pos+e;if(i>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;let n=this.html.charCodeAt(i);return n===_.CARRIAGE_RETURN?_.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;let e=this.html.charCodeAt(this.pos);return e===_.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,_.LINE_FEED):e===_.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Dd(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===_.LINE_FEED||e===_.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){zd(e)?this._err(ie.controlCharacterInInputStream):Ud(e)&&this._err(ie.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var Nr={};bc(Nr,{TokenType:()=>Ye,getTokenAttr:()=>ou});var Ye;(function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"})(Ye=Ye||(Ye={}));function ou(t,e){for(let i=t.attrs.length-1;i>=0;i--)if(t.attrs[i].name===e)return t.attrs[i].value;return null}var fr=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(t=>t.charCodeAt(0)));var b4=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(t=>t.charCodeAt(0)));var i1,cN=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),n1=(i1=String.fromCodePoint)!==null&&i1!==void 0?i1:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function r1(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=cN.get(t))!==null&&e!==void 0?e:t}var ri;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(ri||(ri={}));var uN=32,Nn;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Nn||(Nn={}));function o1(t){return t>=ri.ZERO&&t<=ri.NINE}function fN(t){return t>=ri.UPPER_A&&t<=ri.UPPER_F||t>=ri.LOWER_A&&t<=ri.LOWER_F}function hN(t){return t>=ri.UPPER_A&&t<=ri.UPPER_Z||t>=ri.LOWER_A&&t<=ri.LOWER_Z||o1(t)}function dN(t){return t===ri.EQUALS||hN(t)}var ni;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(ni||(ni={}));var Ds;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Ds||(Ds={}));var s1=class{constructor(e,i,n){this.decodeTree=e,this.emitCodePoint=i,this.errors=n,this.state=ni.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ds.Strict}startEntity(e){this.decodeMode=e,this.state=ni.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,i){switch(this.state){case ni.EntityStart:return e.charCodeAt(i)===ri.NUM?(this.state=ni.NumericStart,this.consumed+=1,this.stateNumericStart(e,i+1)):(this.state=ni.NamedEntity,this.stateNamedEntity(e,i));case ni.NumericStart:return this.stateNumericStart(e,i);case ni.NumericDecimal:return this.stateNumericDecimal(e,i);case ni.NumericHex:return this.stateNumericHex(e,i);case ni.NamedEntity:return this.stateNamedEntity(e,i)}}stateNumericStart(e,i){return i>=e.length?-1:(e.charCodeAt(i)|uN)===ri.LOWER_X?(this.state=ni.NumericHex,this.consumed+=1,this.stateNumericHex(e,i+1)):(this.state=ni.NumericDecimal,this.stateNumericDecimal(e,i))}addToNumericResult(e,i,n,r){if(i!==n){let o=n-i;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(i,o),r),this.consumed+=o}}stateNumericHex(e,i){let n=i;for(;i<e.length;){let r=e.charCodeAt(i);if(o1(r)||fN(r))i+=1;else return this.addToNumericResult(e,n,i,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,i,16),-1}stateNumericDecimal(e,i){let n=i;for(;i<e.length;){let r=e.charCodeAt(i);if(o1(r))i+=1;else return this.addToNumericResult(e,n,i,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,i,10),-1}emitNumericEntity(e,i){var n;if(this.consumed<=i)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ri.SEMI)this.consumed+=1;else if(this.decodeMode===Ds.Strict)return 0;return this.emitCodePoint(r1(this.result),this.consumed),this.errors&&(e!==ri.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,i){let{decodeTree:n}=this,r=n[this.treeIndex],o=(r&Nn.VALUE_LENGTH)>>14;for(;i<e.length;i++,this.excess++){let s=e.charCodeAt(i);if(this.treeIndex=a1(n,r,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ds.Attribute&&(o===0||dN(s))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&Nn.VALUE_LENGTH)>>14,o!==0){if(s===ri.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ds.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:i,decodeTree:n}=this,r=(n[i]&Nn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(i,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,i,n){let{decodeTree:r}=this;return this.emitCodePoint(i===1?r[e]&~Nn.VALUE_LENGTH:r[e+1],n),i===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case ni.NamedEntity:return this.result!==0&&(this.decodeMode!==Ds.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ni.NumericDecimal:return this.emitNumericEntity(0,2);case ni.NumericHex:return this.emitNumericEntity(0,3);case ni.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ni.EntityStart:return 0}}};function y4(t){let e="",i=new s1(t,n=>e+=n1(n));return function(r,o){let s=0,a=0;for(;(a=r.indexOf("&",a))>=0;){e+=r.slice(s,a),i.startEntity(o);let c=i.write(r,a+1);if(c<0){s=a+i.end();break}s=a+c,a=c===0?s+1:s}let l=e+r.slice(s);return e="",l}}function a1(t,e,i,n){let r=(e&Nn.BRANCH_LENGTH)>>7,o=e&Nn.JUMP_TABLE;if(r===0)return o!==0&&n===o?i:-1;if(o){let l=n-o;return l<0||l>=r?-1:t[i+l]-1}let s=i,a=s+r-1;for(;s<=a;){let l=s+a>>>1,c=t[l];if(c<n)s=l+1;else if(c>n)a=l-1;else return t[l+r]}return-1}var mye=y4(fr),gye=y4(b4);var ll={};bc(ll,{ATTRS:()=>qn,DOCUMENT_MODE:()=>fi,NS:()=>le,SPECIAL_ELEMENTS:()=>l1,TAG_ID:()=>g,TAG_NAMES:()=>B,getTagID:()=>jo,hasUnescapedText:()=>x4,isNumberedHeader:()=>su});var le;(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(le=le||(le={}));var qn;(function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(qn=qn||(qn={}));var fi;(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(fi=fi||(fi={}));var B;(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(B=B||(B={}));var g;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SECTION=94]="SECTION",t[t.SELECT=95]="SELECT",t[t.SOURCE=96]="SOURCE",t[t.SMALL=97]="SMALL",t[t.SPAN=98]="SPAN",t[t.STRIKE=99]="STRIKE",t[t.STRONG=100]="STRONG",t[t.STYLE=101]="STYLE",t[t.SUB=102]="SUB",t[t.SUMMARY=103]="SUMMARY",t[t.SUP=104]="SUP",t[t.TABLE=105]="TABLE",t[t.TBODY=106]="TBODY",t[t.TEMPLATE=107]="TEMPLATE",t[t.TEXTAREA=108]="TEXTAREA",t[t.TFOOT=109]="TFOOT",t[t.TD=110]="TD",t[t.TH=111]="TH",t[t.THEAD=112]="THEAD",t[t.TITLE=113]="TITLE",t[t.TR=114]="TR",t[t.TRACK=115]="TRACK",t[t.TT=116]="TT",t[t.U=117]="U",t[t.UL=118]="UL",t[t.SVG=119]="SVG",t[t.VAR=120]="VAR",t[t.WBR=121]="WBR",t[t.XMP=122]="XMP"})(g=g||(g={}));var ON=new Map([[B.A,g.A],[B.ADDRESS,g.ADDRESS],[B.ANNOTATION_XML,g.ANNOTATION_XML],[B.APPLET,g.APPLET],[B.AREA,g.AREA],[B.ARTICLE,g.ARTICLE],[B.ASIDE,g.ASIDE],[B.B,g.B],[B.BASE,g.BASE],[B.BASEFONT,g.BASEFONT],[B.BGSOUND,g.BGSOUND],[B.BIG,g.BIG],[B.BLOCKQUOTE,g.BLOCKQUOTE],[B.BODY,g.BODY],[B.BR,g.BR],[B.BUTTON,g.BUTTON],[B.CAPTION,g.CAPTION],[B.CENTER,g.CENTER],[B.CODE,g.CODE],[B.COL,g.COL],[B.COLGROUP,g.COLGROUP],[B.DD,g.DD],[B.DESC,g.DESC],[B.DETAILS,g.DETAILS],[B.DIALOG,g.DIALOG],[B.DIR,g.DIR],[B.DIV,g.DIV],[B.DL,g.DL],[B.DT,g.DT],[B.EM,g.EM],[B.EMBED,g.EMBED],[B.FIELDSET,g.FIELDSET],[B.FIGCAPTION,g.FIGCAPTION],[B.FIGURE,g.FIGURE],[B.FONT,g.FONT],[B.FOOTER,g.FOOTER],[B.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[B.FORM,g.FORM],[B.FRAME,g.FRAME],[B.FRAMESET,g.FRAMESET],[B.H1,g.H1],[B.H2,g.H2],[B.H3,g.H3],[B.H4,g.H4],[B.H5,g.H5],[B.H6,g.H6],[B.HEAD,g.HEAD],[B.HEADER,g.HEADER],[B.HGROUP,g.HGROUP],[B.HR,g.HR],[B.HTML,g.HTML],[B.I,g.I],[B.IMG,g.IMG],[B.IMAGE,g.IMAGE],[B.INPUT,g.INPUT],[B.IFRAME,g.IFRAME],[B.KEYGEN,g.KEYGEN],[B.LABEL,g.LABEL],[B.LI,g.LI],[B.LINK,g.LINK],[B.LISTING,g.LISTING],[B.MAIN,g.MAIN],[B.MALIGNMARK,g.MALIGNMARK],[B.MARQUEE,g.MARQUEE],[B.MATH,g.MATH],[B.MENU,g.MENU],[B.META,g.META],[B.MGLYPH,g.MGLYPH],[B.MI,g.MI],[B.MO,g.MO],[B.MN,g.MN],[B.MS,g.MS],[B.MTEXT,g.MTEXT],[B.NAV,g.NAV],[B.NOBR,g.NOBR],[B.NOFRAMES,g.NOFRAMES],[B.NOEMBED,g.NOEMBED],[B.NOSCRIPT,g.NOSCRIPT],[B.OBJECT,g.OBJECT],[B.OL,g.OL],[B.OPTGROUP,g.OPTGROUP],[B.OPTION,g.OPTION],[B.P,g.P],[B.PARAM,g.PARAM],[B.PLAINTEXT,g.PLAINTEXT],[B.PRE,g.PRE],[B.RB,g.RB],[B.RP,g.RP],[B.RT,g.RT],[B.RTC,g.RTC],[B.RUBY,g.RUBY],[B.S,g.S],[B.SCRIPT,g.SCRIPT],[B.SECTION,g.SECTION],[B.SELECT,g.SELECT],[B.SOURCE,g.SOURCE],[B.SMALL,g.SMALL],[B.SPAN,g.SPAN],[B.STRIKE,g.STRIKE],[B.STRONG,g.STRONG],[B.STYLE,g.STYLE],[B.SUB,g.SUB],[B.SUMMARY,g.SUMMARY],[B.S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.TR,Oe.TRACK,Oe.UL,Oe.WBR,Oe.XMP]),[le.MATHML]:new Set([Oe.MI,Oe.MO,Oe.MN,Oe.MS,Oe.MTEXT,Oe.ANNOTATION_XML]),[le.SVG]:new Set([Oe.TITLE,Oe.FOREIGN_OBJECT,Oe.DESC]),[le.XLINK]:new Set,[le.XML]:new Set,[le.XMLNS]:new Set};function su(t){return t===Oe.H1||t===Oe.H2||t===Oe.H3||t===Oe.H4||t===Oe.H5||t===Oe.H6}var pN=new Set([B.STYLE,B.SCRIPT,B.XMP,B.IFRAME,B.NOEMBED,B.NOFRAMES,B.PLAINTEXT]);function x4(t,e){return pN.has(t)||e&&t===B.NOSCRIPT}var mN=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),L;(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",t[t.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",t[t.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",t[t.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",t[t.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",t[t.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(L||(L={}));var Pt={DATA:L.DATA,RCDATA:L.RCDATA,RAWTEXT:L.RAWTEXT,SCRIPT_DATA:L.SCRIPT_DATA,PLAINTEXT:L.PLAINTEXT,CDATA_SECTION:L.CDATA_SECTION};function lu(t){return t>=_.DIGIT_0&&t<=_.DIGIT_9}function au(t){return t>=_.LATIN_CAPITAL_A&&t<=_.LATIN_CAPITAL_Z}function gN(t){return t>=_.LATIN_SMALL_A&&t<=_.LATIN_SMALL_Z}function Wo(t){return gN(t)||au(t)}function c1(t){return Wo(t)||lu(t)}function w4(t){return t>=_.LATIN_CAPITAL_A&&t<=_.LATIN_CAPITAL_F}function k4(t){return t>=_.LATIN_SMALL_A&&t<=_.LATIN_SMALL_F}function bN(t){return lu(t)||w4(t)||k4(t)}function Nd(t){return t+32}function S4(t){return t===_.SPACE||t===_.LINE_FEED||t===_.TABULATION||t===_.FORM_FEED}function yN(t){return t===_.EQUALS_SIGN||c1(t)}function v4(t){return S4(t)||t===_.SOLIDUS||t===_.GREATER_THAN_SIGN}var cu=class{constructor(e,i){this.options=e,this.handler=i,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=L.DATA,this.returnState=L.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Md(i),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var i,n;(n=(i=this.handler).onParseError)===null||n===void 0||n.call(i,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e==null||e())}write(e,i,n){this.active=!0,this.preprocessor.write(e,i),this._runParsingLoop(),this.paused||n==null||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,i){this.state=e,this._callState(i)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let i=0;i<e;i++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,i){return this.preprocessor.startsWith(e,i)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ye.START_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ye.END_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Ye.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Ye.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,i){this.currentCharacterToken={type:e,chars:i,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,i;let n=this.currentToken;if(ou(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){let r=(e=(i=n.location).attrs)!==null&&e!==void 0?e:i.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ie.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=jo(e.tagName),e.type===Ye.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(ie.endTagWithAttributes),e.selfClosing&&this._err(ie.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Ye.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ye.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ye.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Ye.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,i){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=i;return}this._createCharacterToken(e,i)}_emitCodePoint(e){let i=S4(e)?Ye.WHITESPACE_CHARACTER:e===_.NULL?Ye.NULL_CHARACTER:Ye.CHARACTER;this._appendCharToCurrentCharacterToken(i,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Ye.CHARACTER,e)}_matchNamedCharacterReference(e){let i=null,n=0,r=!1;for(let o=0,s=fr[0];o>=0&&(o=a1(fr,s,o+1,e),!(o<0));e=this._consume()){n+=1,s=fr[o];let a=s&Nn.VALUE_LENGTH;if(a){let l=(a>>14)-1;if(e!==_.SEMICOLON&&this._isCharacterReferenceInAttribute()&&yN(this.preprocessor.peek(1))?(i=[_.AMPERSAND],o+=l):(i=l===0?[fr[o]&~Nn.VALUE_LENGTH]:l===1?[fr[++o]]:[fr[++o],fr[++o]],n=0,r=e!==_.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(ie.missingSemicolonAfterCharacterReference),this._unconsume(1),i}_isCharacterReferenceInAttribute(){return this.returnState===L.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case L.DATA:{this._stateData(e);break}case L.RCDATA:{this._stateRcdata(e);break}case L.RAWTEXT:{this._stateRawtext(e);break}case L.SCRIPT_DATA:{this._stateScriptData(e);break}case L.PLAINTEXT:{this._statePlaintext(e);break}case L.TAG_OPEN:{this._stateTagOpen(e);break}case L.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case L.TAG_NAME:{this._stateTagName(e);break}case L.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case L.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case L.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case L.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case L.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case L.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case L.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case L.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case L.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case L.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case L.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case L.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case L.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case L.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case L.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case L.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case L.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case L.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case L.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case L.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case L.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case L.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case L.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case L.BOGUS_COMMENT:{this._stateBogusComment(e);break}case L.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case L.COMMENT_START:{this._stateCommentStart(e);break}case L.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case L.COMMENT:{this._stateComment(e);break}case L.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case L.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case L.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case L.COMMENT_END:{this._stateCommentEnd(e);break}case L.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case L.DOCTYPE:{this._stateDoctype(e);break}case L.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case L.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case L.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case L.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case L.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case L.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case L.CDATA_SECTION:{this._stateCdataSection(e);break}case L.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case L.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case L.CHARACTER_REFERENCE:{this._stateCharacterReference(e);break}case L.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(e);break}case L.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}case L.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(e);break}case L.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(e);break}case L.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(e);break}case L.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(e);break}case L.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case _.LESS_THAN_SIGN:{this.state=L.TAG_OPEN;break}case _.AMPERSAND:{this.returnState=L.DATA,this.state=L.CHARACTER_REFERENCE;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this._emitCodePoint(e);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case _.AMPERSAND:{this.returnState=L.RCDATA,this.state=L.CHARACTER_REFERENCE;break}case _.LESS_THAN_SIGN:{this.state=L.RCDATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(kt);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case _.LESS_THAN_SIGN:{this.state=L.RAWTEXT_LESS_THAN_SIGN;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(kt);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case _.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(kt);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case _.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(kt);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Wo(e))this._createStartTagToken(),this.state=L.TAG_NAME,this._stateTagName(e);else switch(e){case _.EXCLAMATION_MARK:{this.state=L.MARKUP_DECLARATION_OPEN;break}case _.SOLIDUS:{this.state=L.END_TAG_OPEN;break}case _.QUESTION_MARK:{this._err(ie.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=L.BOGUS_COMMENT,this._stateBogusComment(e);break}case _.EOF:{this._err(ie.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ie.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=L.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Wo(e))this._createEndTagToken(),this.state=L.TAG_NAME,this._stateTagName(e);else switch(e){case _.GREATER_THAN_SIGN:{this._err(ie.missingEndTagName),this.state=L.DATA;break}case _.EOF:{this._err(ie.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ie.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=L.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(ie.unexpectedNullCharacter),i.tagName+=kt;break}case _.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:i.tagName+=String.fromCodePoint(au(e)?Nd(e):e)}}_stateRcdataLessThanSign(e){e===_.SOLIDUS?this.state=L.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Wo(e)?(this.state=L.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let i=this.currentToken;switch(i.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=L.BEFORE_ATTRIBUTE_NAME,!1;case _.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=L.SELF_CLOSING_START_TAG,!1;case _.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=L.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===_.SOLIDUS?this.state=L.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Wo(e)?(this.state=L.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case _.SOLIDUS:{this.state=L.SCRIPT_DATA_END_TAG_OPEN;break}case _.EXCLAMATION_MARK:{this.state=L.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=L.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Wo(e)?(this.state=L.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===_.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===_.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case _.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(kt);break}case _.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case _.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(kt);break}case _.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(kt);break}case _.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===_.SOLIDUS?this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Wo(e)?(this._emitChars("<"),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Wo(e)?(this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Ai.SCRIPT,!1)&&v4(this.preprocessor.peek(Ai.SCRIPT.length))){this._emitCodePoint(e);for(let i=0;i<Ai.SCRIPT.length;i++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case _.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(kt);break}case _.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case _.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(kt);break}case _.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(kt);break}case _.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===_.SOLIDUS?(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Ai.SCRIPT,!1)&&v4(this.preprocessor.peek(Ai.SCRIPT.length))){this._emitCodePoint(e);for(let i=0;i<Ai.SCRIPT.length;i++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case _.EQUALS_SIGN:{this._err(ie.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=L.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this._leaveAttrName(),this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case _.EQUALS_SIGN:{this._leaveAttrName(),this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:{this._err(ie.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.name+=kt;break}default:this.currentAttr.name+=String.fromCodePoint(au(e)?Nd(e):e)}}_stateAfterAttributeName(e){switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case _.EQUALS_SIGN:{this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case _.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{this.state=L.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this.state=L.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ie.missingAttributeValue),this.state=L.DATA,this.emitCurrentTagToken();break}default:this.state=L.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case _.QUOTATION_MARK:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this.returnState=L.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=L.CHARACTER_REFERENCE;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.value+=kt;break}case _.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case _.APOSTROPHE:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this.returnState=L.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=L.CHARACTER_REFERENCE;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.value+=kt;break}case _.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case _.AMPERSAND:{this.returnState=L.ATTRIBUTE_VALUE_UNQUOTED,this.state=L.CHARACTER_REFERENCE;break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.value+=kt;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:case _.EQUALS_SIGN:case _.GRAVE_ACCENT:{this._err(ie.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case _.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this._leaveAttrValue(),this.state=L.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this._err(ie.missingWhitespaceBetweenAttributes),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case _.GREATER_THAN_SIGN:{let i=this.currentToken;i.selfClosing=!0,this.state=L.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this._err(ie.unexpectedSolidusInTag),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let i=this.currentToken;switch(e){case _.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(i);break}case _.EOF:{this.emitCurrentComment(i),this._emitEOFToken();break}case _.NULL:{this._err(ie.unexpectedNullCharacter),i.data+=kt;break}default:i.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(Ai.DASH_DASH,!0)?(this._createCommentToken(Ai.DASH_DASH.length+1),this.state=L.COMMENT_START):this._consumeSequenceIfMatch(Ai.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ai.DOCTYPE.length+1),this.state=L.DOCTYPE):this._consumeSequenceIfMatch(Ai.CDATA_START,!0)?this.inForeignNode?this.state=L.CDATA_SECTION:(this._err(ie.cdataInHtmlContent),this._createCommentToken(Ai.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=L.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ie.incorrectlyOpenedComment),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case _.HYPHEN_MINUS:{this.state=L.COMMENT_START_DASH;break}case _.GREATER_THAN_SIGN:{this._err(ie.abruptClosingOfEmptyComment),this.state=L.DATA;let i=this.currentToken;this.emitCurrentComment(i);break}default:this.state=L.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let i=this.currentToken;switch(e){case _.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case _.GREATER_THAN_SIGN:{this._err(ie.abruptClosingOfEmptyComment),this.state=L.DATA,this.emitCurrentComment(i);break}case _.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+="-",this.state=L.COMMENT,this._stateComment(e)}}_stateComment(e){let i=this.currentToken;switch(e){case _.HYPHEN_MINUS:{this.state=L.COMMENT_END_DASH;break}case _.LESS_THAN_SIGN:{i.data+="<",this.state=L.COMMENT_LESS_THAN_SIGN;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),i.data+=kt;break}case _.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let i=this.currentToken;switch(e){case _.EXCLAMATION_MARK:{i.data+="!",this.state=L.COMMENT_LESS_THAN_SIGN_BANG;break}case _.LESS_THAN_SIGN:{i.data+="<";break}default:this.state=L.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===_.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=L.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===_.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=L.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==_.GREATER_THAN_SIGN&&e!==_.EOF&&this._err(ie.nestedComment),this.state=L.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let i=this.currentToken;switch(e){case _.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case _.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+="-",this.state=L.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let i=this.currentToken;switch(e){case _.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(i);break}case _.EXCLAMATION_MARK:{this.state=L.COMMENT_END_BANG;break}case _.HYPHEN_MINUS:{i.data+="-";break}case _.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+="--",this.state=L.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let i=this.currentToken;switch(e){case _.HYPHEN_MINUS:{i.data+="--!",this.state=L.COMMENT_END_DASH;break}case _.GREATER_THAN_SIGN:{this._err(ie.incorrectlyClosedComment),this.state=L.DATA,this.emitCurrentComment(i);break}case _.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+="--!",this.state=L.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case _.EOF:{this._err(ie.eofInDoctype),this._createDoctypeToken(null);let i=this.currentToken;i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(ie.missingWhitespaceBeforeDoctypeName),this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(au(e))this._createDoctypeToken(String.fromCharCode(Nd(e))),this.state=L.DOCTYPE_NAME;else switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.NULL:{this._err(ie.unexpectedNullCharacter),this._createDoctypeToken(kt),this.state=L.DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this._err(ie.missingDoctypeName),this._createDoctypeToken(null);let i=this.currentToken;i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=L.DATA;break}case _.EOF:{this._err(ie.eofInDoctype),this._createDoctypeToken(null);let i=this.currentToken;i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=L.DOCTYPE_NAME}}_stateDoctypeName(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=L.AFTER_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(i);break}case _.NULL:{this._err(ie.unexpectedNullCharacter),i.name+=kt;break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.name+=String.fromCodePoint(au(e)?Nd(e):e)}}_stateAfterDoctypeName(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(i);break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ai.PUBLIC,!1)?this.state=L.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ai.SYSTEM,!1)?this.state=L.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ie.invalidCharacterSequenceAfterDoctypeName),i.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(ie.missingWhitespaceAfterDoctypePublicKeyword),i.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(ie.missingWhitespaceAfterDoctypePublicKeyword),i.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ie.missingDoctypePublicIdentifier),i.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(i);break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypePublicIdentifier),i.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{i.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{i.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ie.missingDoctypePublicIdentifier),i.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(i);break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypePublicIdentifier),i.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let i=this.currentToken;switch(e){case _.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),i.publicId+=kt;break}case _.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypePublicIdentifier),i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=L.DATA;break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let i=this.currentToken;switch(e){case _.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),i.publicId+=kt;break}case _.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypePublicIdentifier),i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=L.DATA;break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case _.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(i);break}case _.QUOTATION_MARK:{this._err(ie.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),i.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(ie.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),i.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(i),this.state=L.DATA;break}case _.QUOTATION_MARK:{i.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{i.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(ie.missingWhitespaceAfterDoctypeSystemKeyword),i.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(ie.missingWhitespaceAfterDoctypeSystemKeyword),i.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ie.missingDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(i);break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{i.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{i.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ie.missingDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(i);break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let i=this.currentToken;switch(e){case _.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),i.systemId+=kt;break}case _.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypeSystemIdentifier),i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=L.DATA;break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let i=this.currentToken;switch(e){case _.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(ie.unexpectedNullCharacter),i.systemId+=kt;break}case _.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypeSystemIdentifier),i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=L.DATA;break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let i=this.currentToken;switch(e){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(i),this.state=L.DATA;break}case _.EOF:{this._err(ie.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(ie.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let i=this.currentToken;switch(e){case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(i),this.state=L.DATA;break}case _.NULL:{this._err(ie.unexpectedNullCharacter);break}case _.EOF:{this.emitCurrentDoctype(i),this._emitEOFToken();break}default:}}_stateCdataSection(e){switch(e){case _.RIGHT_SQUARE_BRACKET:{this.state=L.CDATA_SECTION_BRACKET;break}case _.EOF:{this._err(ie.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===_.RIGHT_SQUARE_BRACKET?this.state=L.CDATA_SECTION_END:(this._emitChars("]"),this.state=L.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case _.GREATER_THAN_SIGN:{this.state=L.DATA;break}case _.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=L.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===_.NUMBER_SIGN?this.state=L.NUMERIC_CHARACTER_REFERENCE:c1(e)?(this.state=L.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(_.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){let i=this._matchNamedCharacterReference(e);if(!this._ensureHibernation())if(i){for(let n=0;n<i.length;n++)this._flushCodePointConsumedAsCharacterReference(i[n]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(_.AMPERSAND),this.state=L.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){c1(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===_.SEMICOLON&&this._err(ie.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===_.LATIN_SMALL_X||e===_.LATIN_CAPITAL_X?this.state=L.HEXADEMICAL_CHARACTER_REFERENCE_START:lu(e)?(this.state=L.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(ie.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(_.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(_.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){bN(e)?(this.state=L.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e)):(this._err(ie.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(_.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(_.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(e){w4(e)?this.charRefCode=this.charRefCode*16+e-55:k4(e)?this.charRefCode=this.charRefCode*16+e-87:lu(e)?this.charRefCode=this.charRefCode*16+e-48:e===_.SEMICOLON?this.state=L.NUMERIC_CHARACTER_REFERENCE_END:(this._err(ie.missingSemicolonAfterCharacterReference),this.state=L.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){lu(e)?this.charRefCode=this.charRefCode*10+e-48:e===_.SEMICOLON?this.state=L.NUMERIC_CHARACTER_REFERENCE_END:(this._err(ie.missingSemicolonAfterCharacterReference),this.state=L.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===_.NULL)this._err(ie.nullCharacterReference),this.charRefCode=_.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(ie.characterReferenceOutsideUnicodeRange),this.charRefCode=_.REPLACEMENT_CHARACTER;else if(Dd(this.charRefCode))this._err(ie.surrogateCharacterReference),this.charRefCode=_.REPLACEMENT_CHARACTER;else if(Ud(this.charRefCode))this._err(ie.noncharacterCharacterReference);else if(zd(this.charRefCode)||this.charRefCode===_.CARRIAGE_RETURN){this._err(ie.controlCharacterReference);let i=mN.get(this.charRefCode);i!==void 0&&(this.charRefCode=i)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}};var E4=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),T4=new Set([...E4,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),qd=new Map([[g.APPLET,le.HTML],[g.CAPTION,le.HTML],[g.HTML,le.HTML],[g.MARQUEE,le.HTML],[g.OBJECT,le.HTML],[g.TABLE,le.HTML],[g.TD,le.HTML],[g.TEMPLATE,le.HTML],[g.TH,le.HTML],[g.ANNOTATION_XML,le.MATHML],[g.MI,le.MATHML],[g.MN,le.MATHML],[g.MO,le.MATHML],[g.MS,le.MATHML],[g.MTEXT,le.MATHML],[g.DESC,le.SVG],[g.FOREIGN_OBJECT,le.SVG],[g.TITLE,le.SVG]]),xN=[g.H1,g.H2,g.H3,g.H4,g.H5,g.H6],vN=[g.TR,g.TEMPLATE,g.HTML],wN=[g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML],kN=[g.TABLE,g.TEMPLATE,g.HTML],SN=[g.TD,g.TH],jd=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,i,n){this.treeAdapter=i,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=g.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===g.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===le.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,i){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=i,this.currentTagId=i,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,i,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,i){let n=this._indexOf(e);this.items[n]=i,n===this.stackTop&&(this.current=i)}insertAfter(e,i,n){let r=this._indexOf(e)+1;this.items.splice(r,0,i),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let i=this.stackTop+1;do i=this.tagIDs.lastIndexOf(e,i-1);while(i>0&&this.treeAdapter.getNamespaceURI(this.items[i])!==le.HTML);this.shortenToLength(i<0?0:i)}shortenToLength(e){for(;this.stackTop>=e;){let i=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(i,this.stackTop<e)}}popUntilElementPopped(e){let i=this._indexOf(e);this.shortenToLength(i<0?0:i)}popUntilPopped(e,i){let n=this._indexOfTagNames(e,i);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(xN,le.HTML)}popUntilTableCellPopped(){this.popUntilPopped(SN,le.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,i){for(let n=this.stackTop;n>=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===i)return n;return-1}clearBackTo(e,i){let n=this._indexOfTagNames(e,i);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(kN,le.HTML)}clearBackToTableBodyContext(){this.clearBackTo(wN,le.HTML)}clearBackToTableRowContext(){this.clearBackTo(vN,le.HTML)}remove(e){let i=this._indexOf(e);i>=0&&(i===this.stackTop?this.pop():(this.items.splice(i,1),this.tagIDs.splice(i,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let i=this._indexOf(e)-1;return i>=0?this.items[i]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInScope(e){for(let i=this.stackTop;i>=0;i--){let n=this.tagIDs[i],r=this.treeAdapter.getNamespaceURI(this.items[i]);if(n===e&&r===le.HTML)return!0;if(qd.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let i=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(su(i)&&n===le.HTML)return!0;if(qd.get(i)===n)return!1}return!0}hasInListItemScope(e){for(let i=this.stackTop;i>=0;i--){let n=this.tagIDs[i],r=this.treeAdapter.getNamespaceURI(this.items[i]);if(n===e&&r===le.HTML)return!0;if((n===g.UL||n===g.OL)&&r===le.HTML||qd.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let i=this.stackTop;i>=0;i--){let n=this.tagIDs[i],r=this.treeAdapter.getNamespaceURI(this.items[i]);if(n===e&&r===le.HTML)return!0;if(n===g.BUTTON&&r===le.HTML||qd.get(n)===r)return!1}return!0}hasInTableScope(e){for(let i=this.stackTop;i>=0;i--){let n=this.tagIDs[i];if(this.treeAdapter.getNamespaceURI(this.items[i])===le.HTML){if(n===e)return!0;if(n===g.TABLE||n===g.TEMPLATE||n===g.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let i=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===le.HTML){if(i===g.TBODY||i===g.THEAD||i===g.TFOOT)return!0;if(i===g.TABLE||i===g.HTML)return!1}}return!0}hasInSelectScope(e){for(let i=this.stackTop;i>=0;i--){let n=this.tagIDs[i];if(this.treeAdapter.getNamespaceURI(this.items[i])===le.HTML){if(n===e)return!0;if(n!==g.OPTION&&n!==g.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;E4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;T4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&T4.has(this.currentTagId);)this.pop()}};var wn;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})(wn=wn||(wn={}));var C4={type:wn.Marker},Wd=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,i){let n=[],r=i.length,o=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let a=0;a<this.entries.length;a++){let l=this.entries[a];if(l.type===wn.Marker)break;let{element:c}=l;if(this.treeAdapter.getTagName(c)===o&&this.treeAdapter.getNamespaceURI(c)===s){let u=this.treeAdapter.getAttrList(c);u.length===r&&n.push({idx:a,attrs:u})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let i=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,i);if(n.length<3)return;let r=new Map(i.map(s=>[s.name,s.value])),o=0;for(let s=0;s<n.length;s++){let a=n[s];a.attrs.every(l=>r.get(l.name)===l.value)&&(o+=1,o>=3&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(C4)}pushElement(e,i){this._ensureNoahArkCondition(e),this.entries.unshift({type:wn.Element,element:e,token:i})}insertElementAfterBookmark(e,i){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:wn.Element,element:e,token:i})}removeEntry(e){let i=this.entries.indexOf(e);i>=0&&this.entries.splice(i,1)}clearToLastMarker(){let e=this.entries.indexOf(C4);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let i=this.entries.find(n=>n.type===wn.Marker||this.treeAdapter.getTagName(n.element)===e);return i&&i.type===wn.Element?i:null}getElementEntry(e){return this.entries.find(i=>i.type===wn.Element&&i.element===e)}};function P4(t){return{nodeName:"#text",value:t,parentNode:null}}var qr={createDocument(){return{nodeName:"#document",mode:fi.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,e,i){return{nodeName:t,tagName:t,attrs:i,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,i){let n=t.childNodes.indexOf(i);t.childNodes.splice(n,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent(t){return t.content},setDocumentType(t,e,i,n){let r=t.childNodes.find(o=>o.nodeName==="#documentType");if(r)r.name=e,r.publicId=i,r.systemId=n;else{let o={nodeName:"#documentType",name:e,publicId:i,systemId:n,parentNode:null};qr.appendChild(t,o)}},setDocumentMode(t,e){t.mode=e},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){let e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){let i=t.childNodes[t.childNodes.length-1];if(qr.isTextNode(i)){i.value+=e;return}}qr.appendChild(t,P4(e))},insertTextBefore(t,e,i){let n=t.childNodes[t.childNodes.indexOf(i)-1];n&&qr.isTextNode(n)?n.value+=e:qr.insertBefore(t,P4(e),i)},adoptAttributes(t,e){let i=new Set(t.attrs.map(n=>n.name));for(let n=0;n<e.length;n++)i.has(e[n].name)||t.attrs.push(e[n])},getFirstChild(t){return t.childNodes[0]},getChildNodes(t){return t.childNodes},getParentNode(t){return t.parentNode},getAttrList(t){return t.attrs},getTagName(t){return t.tagName},getNamespaceURI(t){return t.namespaceURI},getTextNodeContent(t){return t.value},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){return t.name},getDocumentTypeNodePublicId(t){return t.publicId},getDocumentTypeNodeSystemId(t){return t.systemId},isTextNode(t){return t.nodeName==="#text"},isCommentNode(t){return t.nodeName==="#comment"},isDocumentTypeNode(t){return t.nodeName==="#documentType"},isElementNode(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation=F(F({},t.sourceCodeLocation),e)}};var _4="html",TN="about:legacy-compat",EN="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",A4=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],CN=[...A4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],PN=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),$4=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],QN=[...$4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Q4(t,e){return e.some(i=>t.startsWith(i))}function X4(t){return t.name===_4&&t.publicId===null&&(t.systemId===null||t.systemId===TN)}function R4(t){if(t.name!==_4)return fi.QUIRKS;let{systemId:e}=t;if(e&&e.toLowerCase()===EN)return fi.QUIRKS;let{publicId:i}=t;if(i!==null){if(i=i.toLowerCase(),PN.has(i))return fi.QUIRKS;let n=e===null?CN:A4;if(Q4(i,n))return fi.QUIRKS;if(n=e===null?$4:QN,Q4(i,n))return fi.LIMITED_QUIRKS}return fi.NO_QUIRKS}var Bd={};bc(Bd,{SVG_TAG_NAMES_ADJUSTMENT_MAP:()=>I4,adjustTokenMathMLAttrs:()=>Vd,adjustTokenSVGAttrs:()=>Zd,adjustTokenSVGTagName:()=>f1,adjustTokenXMLAttrs:()=>uu,causesExit:()=>u1,isIntegrationPoint:()=>h1});var L4={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},AN="definitionurl",$N="definitionURL",XN=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),RN=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:le.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:le.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:le.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:le.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:le.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:le.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:le.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:le.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:le.XML}],["xml:space",{prefix:"xml",name:"space",namespace:le.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:le.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:le.XMLNS}]]),I4=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),LN=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function u1(t){let e=t.tagID;return e===g.FONT&&t.attrs.some(({name:n})=>n===qn.COLOR||n===qn.SIZE||n===qn.FACE)||LN.has(e)}function Vd(t){for(let e=0;e<t.attrs.length;e++)if(t.attrs[e].name===AN){t.attrs[e].name=$N;break}}function Zd(t){for(let e=0;e<t.attrs.length;e++){let i=XN.get(t.attrs[e].name);i!=null&&(t.attrs[e].name=i)}}function uu(t){for(let e=0;e<t.attrs.length;e++){let i=RN.get(t.attrs[e].name);i&&(t.attrs[e].prefix=i.prefix,t.attrs[e].name=i.name,t.attrs[e].namespace=i.namespace)}}function f1(t){let e=I4.get(t.tagName);e!=null&&(t.tagName=e,t.tagID=jo(t.tagName))}function IN(t,e){return e===le.MATHML&&(t===g.MI||t===g.MO||t===g.MN||t===g.MS||t===g.MTEXT)}function DN(t,e,i){if(e===le.MATHML&&t===g.ANNOTATION_XML){for(let n=0;n<i.length;n++)if(i[n].name===qn.ENCODING){let r=i[n].value.toLowerCase();return r===L4.TEXT_HTML||r===L4.APPLICATION_XML}}return e===le.SVG&&(t===g.FOREIGN_OBJECT||t===g.DESC||t===g.TITLE)}function h1(t,e,i,n){return(!n||n===le.HTML)&&DN(t,e,i)||(!n||n===le.MATHML)&&IN(t,e)}var zN="hidden",UN=8,MN=3,U;(function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(U||(U={}));var NN={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},M4=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),D4={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:qr,onParseError:null},jr=class{constructor(e,i,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=F(F({},D4),e),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=i!=null?i:this.treeAdapter.createDocument(),this.tokenizer=new cu(this.options,this),this.activeFormattingElements=new Wd(this.treeAdapter),this.fragmentContextID=n?jo(this.treeAdapter.getTagName(n)):g.UNKNOWN,this._setContextModes(n!=null?n:this.document,this.fragmentContextID),this.openElements=new jd(this.document,this.treeAdapter,this)}static parse(e,i){let n=new this(i);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,i){let n=F(F({},D4),i);e!=null||(e=n.treeAdapter.createElement(B.TEMPLATE,le.HTML,[]));let r=n.treeAdapter.createElement("documentmock",le.HTML,[]),o=new this(n,r,e);return o.fragmentContextID===g.TEMPLATE&&o.tmplInsertionModeStack.unshift(U.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,i),i}_err(e,i,n){var r;if(!this.onParseError)return;let o=(r=e.location)!==null&&r!==void 0?r:NN,s={code:i,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:n?o.startLine:o.endLine,endCol:n?o.startCol:o.endCol,endOffset:n?o.startOffset:o.endOffset};this.onParseError(s)}onItemPush(e,i,n){var r,o;(o=(r=this.treeAdapter).onItemPush)===null||o===void 0||o.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,i)}onItemPop(e,i){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)===null||r===void 0||r.call(n,e,this.openElements.current),i){let o,s;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,s=this.fragmentContextID):{current:o,currentTagId:s}=this.openElements,this._setContextModes(o,s)}}_setContextModes(e,i){let n=e===this.document||this.treeAdapter.getNamespaceURI(e)===le.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(i,e)}_switchToTextParsing(e,i){this._insertElement(e,le.HTML),this.tokenizer.state=i,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=Pt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===B.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==le.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=Pt.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=Pt.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=Pt.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=Pt.PLAINTEXT;break}default:}}_setDocumentType(e){let i=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,i,n,r),e.location){let s=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));s&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_attachElementToTree(e,i){if(this.options.sourceCodeLocationInfo){let n=i&&Ee(F({},i),{startTag:i});this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n,e)}}_appendElement(e,i){let n=this.treeAdapter.createElement(e.tagName,i,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,i){let n=this.treeAdapter.createElement(e.tagName,i,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,i){let n=this.treeAdapter.createElement(e,le.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,i)}_insertTemplate(e){let i=this.treeAdapter.createElement(e.tagName,le.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(i,n),this._attachElementToTree(i,e.location),this.openElements.push(i,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(B.HTML,le.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,g.HTML)}_appendCommentNode(e,i){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(i,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let i,n;if(this._shouldFosterParentOnInsertion()?({parent:i,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(i,e.chars,n):this.treeAdapter.insertText(i,e.chars)):(i=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(i,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(i),o=n?r.lastIndexOf(n):r.length,s=r[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:l,endCol:c,endOffset:u}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:u})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,i){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(i,n)}_setEndLocation(e,i){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&i.location){let n=i.location,r=this.treeAdapter.getTagName(e),o=i.type===Ye.END_TAG&&r===i.tagName?{endTag:F({},n),endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let i,n;return this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,n=this.fragmentContextID):{current:i,currentTagId:n}=this.openElements,e.tagID===g.SVG&&this.treeAdapter.getTagName(i)===B.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(i)===le.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===g.MGLYPH||e.tagID===g.MALIGNMARK)&&!this._isIntegrationPoint(n,i,le.HTML)}_processToken(e){switch(e.type){case Ye.CHARACTER:{this.onCharacter(e);break}case Ye.NULL_CHARACTER:{this.onNullCharacter(e);break}case Ye.COMMENT:{this.onComment(e);break}case Ye.DOCTYPE:{this.onDoctype(e);break}case Ye.START_TAG:{this._processStartTag(e);break}case Ye.END_TAG:{this.onEndTag(e);break}case Ye.EOF:{this.onEof(e);break}case Ye.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,i,n){let r=this.treeAdapter.getNamespaceURI(i),o=this.treeAdapter.getAttrList(i);return h1(e,r,o,n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let i=this.activeFormattingElements.entries.findIndex(r=>r.type===wn.Marker||this.openElements.contains(r.element)),n=i<0?e-1:i-1;for(let r=n;r>=0;r--){let o=this.activeFormattingElements.entries[r];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case g.TR:{this.insertionMode=U.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=U.IN_TABLE;return}case g.BODY:{this.insertionMode=U.IN_BODY;return}case g.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(e);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case g.TD:case g.TH:{if(e>0){this.insertionMode=U.IN_CELL;return}break}case g.HEAD:{if(e>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let i=e-1;i>0;i--){let n=this.openElements.tagIDs[i];if(n===g.TEMPLATE)break;if(n===g.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(e){return M4.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let i=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(i)===le.HTML)return{parent:this.treeAdapter.getTemplateContent(i),beforeElement:null};break}case g.TABLE:{let n=this.treeAdapter.getParentNode(i);return n?{parent:n,beforeElement:i}:{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let i=this._findFosterParentingLocation();i.beforeElement?this.treeAdapter.insertBefore(i.parent,e,i.beforeElement):this.treeAdapter.appendChild(i.parent,e)}_isSpecialElement(e,i){let n=this.treeAdapter.getNamespaceURI(e);return l1[n].has(i)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gj(this,e);return}switch(this.insertionMode){case U.INITIAL:{fu(this,e);break}case U.BEFORE_HTML:{du(this,e);break}case U.BEFORE_HEAD:{Ou(this,e);break}case U.IN_HEAD:{pu(this,e);break}case U.IN_HEAD_NO_SCRIPT:{mu(this,e);break}case U.AFTER_HEAD:{gu(this,e);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{q4(this,e);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{d1(this,e);break}case U.IN_TABLE_TEXT:{Y4(this,e);break}case U.IN_COLUMN_GROUP:{Fd(this,e);break}case U.AFTER_BODY:{Hd(this,e);break}case U.AFTER_AFTER_BODY:{Yd(this,e);break}default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){mj(this,e);return}switch(this.insertionMode){case U.INITIAL:{fu(this,e);break}case U.BEFORE_HTML:{du(this,e);break}case U.BEFORE_HEAD:{Ou(this,e);break}case U.IN_HEAD:{pu(this,e);break}case U.IN_HEAD_NO_SCRIPT:{mu(this,e);break}case U.AFTER_HEAD:{gu(this,e);break}case U.TEXT:{this._insertCharacters(e);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{d1(this,e);break}case U.IN_COLUMN_GROUP:{Fd(this,e);break}case U.AFTER_BODY:{Hd(this,e);break}case U.AFTER_AFTER_BODY:{Yd(this,e);break}default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){O1(this,e);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{O1(this,e);break}case U.IN_TABLE_TEXT:{hu(this,e);break}case U.AFTER_BODY:{YN(this,e);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{FN(this,e);break}default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{HN(this,e);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(e,ie.misplacedDoctype);break}case U.IN_TABLE_TEXT:{hu(this,e);break}default:}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,ie.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?bj(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case U.INITIAL:{fu(this,e);break}case U.BEFORE_HTML:{GN(this,e);break}case U.BEFORE_HEAD:{JN(this,e);break}case U.IN_HEAD:{jn(this,e);break}case U.IN_HEAD_NO_SCRIPT:{iq(this,e);break}case U.AFTER_HEAD:{rq(this,e);break}case U.IN_BODY:{wi(this,e);break}case U.IN_TABLE:{cl(this,e);break}case U.IN_TABLE_TEXT:{hu(this,e);break}case U.IN_CAPTION:{ej(this,e);break}case U.IN_COLUMN_GROUP:{b1(this,e);break}case U.IN_TABLE_BODY:{Jd(this,e);break}case U.IN_ROW:{eO(this,e);break}case U.IN_CELL:{nj(this,e);break}case U.IN_SELECT:{G4(this,e);break}case U.IN_SELECT_IN_TABLE:{oj(this,e);break}case U.IN_TEMPLATE:{aj(this,e);break}case U.AFTER_BODY:{cj(this,e);break}case U.IN_FRAMESET:{uj(this,e);break}case U.AFTER_FRAMESET:{hj(this,e);break}case U.AFTER_AFTER_BODY:{Oj(this,e);break}case U.AFTER_AFTER_FRAMESET:{pj(this,e);break}default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?yj(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case U.INITIAL:{fu(this,e);break}case U.BEFORE_HTML:{KN(this,e);break}case U.BEFORE_HEAD:{eq(this,e);break}case U.IN_HEAD:{tq(this,e);break}case U.IN_HEAD_NO_SCRIPT:{nq(this,e);break}case U.AFTER_HEAD:{oq(this,e);break}case U.IN_BODY:{Kd(this,e);break}case U.TEXT:{Wq(this,e);break}case U.IN_TABLE:{bu(this,e);break}case U.IN_TABLE_TEXT:{hu(this,e);break}case U.IN_CAPTION:{tj(this,e);break}case U.IN_COLUMN_GROUP:{ij(this,e);break}case U.IN_TABLE_BODY:{p1(this,e);break}case U.IN_ROW:{H4(this,e);break}case U.IN_CELL:{rj(this,e);break}case U.IN_SELECT:{K4(this,e);break}case U.IN_SELECT_IN_TABLE:{sj(this,e);break}case U.IN_TEMPLATE:{lj(this,e);break}case U.AFTER_BODY:{eE(this,e);break}case U.IN_FRAMESET:{fj(this,e);break}case U.AFTER_FRAMESET:{dj(this,e);break}case U.AFTER_AFTER_BODY:{Yd(this,e);break}default:}}onEof(e){switch(this.insertionMode){case U.INITIAL:{fu(this,e);break}case U.BEFORE_HTML:{du(this,e);break}case U.BEFORE_HEAD:{Ou(this,e);break}case U.IN_HEAD:{pu(this,e);break}case U.IN_HEAD_NO_SCRIPT:{mu(this,e);break}case U.AFTER_HEAD:{gu(this,e);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{Z4(this,e);break}case U.TEXT:{Vq(this,e);break}case U.IN_TABLE_TEXT:{hu(this,e);break}case U.IN_TEMPLATE:{J4(this,e);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{g1(this,e);break}default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===_.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(e);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{N4(this,e);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{d1(this,e);break}case U.IN_TABLE_TEXT:{B4(this,e);break}default:}}};function qN(t,e){let i=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return i?t.openElements.contains(i.element)?t.openElements.hasInScope(e.tagID)||(i=null):(t.activeFormattingElements.removeEntry(i),i=null):V4(t,e),i}function jN(t,e){let i=null,n=t.openElements.stackTop;for(;n>=0;n--){let r=t.openElements.items[n];if(r===e.element)break;t._isSpecialElement(r,t.openElements.tagIDs[n])&&(i=r)}return i||(t.openElements.shortenToLength(n<0?0:n),t.activeFormattingElements.removeEntry(e)),i}function WN(t,e,i){let n=e,r=t.openElements.getCommonAncestor(e);for(let o=0,s=r;s!==i;o++,s=r){r=t.openElements.getCommonAncestor(s);let a=t.activeFormattingElements.getElementEntry(s),l=a&&o>=MN;!a||l?(l&&t.activeFormattingElements.removeEntry(a),t.openElements.remove(s)):(s=VN(t,a),n===e&&(t.activeFormattingElements.bookmark=a),t.treeAdapter.detachNode(n),t.treeAdapter.appendChild(s,n),n=s)}return n}function VN(t,e){let i=t.treeAdapter.getNamespaceURI(e.element),n=t.treeAdapter.createElement(e.token.tagName,i,e.token.attrs);return t.openElements.replace(e.element,n),e.element=n,n}function ZN(t,e,i){let n=t.treeAdapter.getTagName(e),r=jo(n);if(t._isElementCausesFosterParenting(r))t._fosterParentElement(i);else{let o=t.treeAdapter.getNamespaceURI(e);r===g.TEMPLATE&&o===le.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,i)}}function BN(t,e,i){let n=t.treeAdapter.getNamespaceURI(i.element),{token:r}=i,o=t.treeAdapter.createElement(r.tagName,n,r.attrs);t._adoptNodes(e,o),t.treeAdapter.appendChild(e,o),t.activeFormattingElements.insertElementAfterBookmark(o,r),t.activeFormattingElements.removeEntry(i),t.openElements.remove(i.element),t.openElements.insertAfter(e,o,r.tagID)}function m1(t,e){for(let i=0;i<UN;i++){let n=qN(t,e);if(!n)break;let r=jN(t,n);if(!r)break;t.activeFormattingElements.bookmark=n;let o=WN(t,r,n.element),s=t.openElements.getCommonAncestor(n.element);t.treeAdapter.detachNode(o),s&&ZN(t,s,o),BN(t,r,n)}}function O1(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function YN(t,e){t._appendCommentNode(e,t.openElements.items[0])}function FN(t,e){t._appendCommentNode(e,t.document)}function g1(t,e){if(t.stopped=!0,e.location){let i=t.fragmentContext?0:2;for(let n=t.openElements.stackTop;n>=i;n--)t._setEndLocation(t.openElements.items[n],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){let n=t.openElements.items[0],r=t.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(t._setEndLocation(n,e),t.openElements.stackTop>=1)){let o=t.openElements.items[1],s=t.treeAdapter.getNodeSourceCodeLocation(o);s&&!s.endTag&&t._setEndLocation(o,e)}}}}function HN(t,e){t._setDocumentType(e);let i=e.forceQuirks?fi.QUIRKS:R4(e);X4(e)||t._err(e,ie.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,i),t.insertionMode=U.BEFORE_HTML}function fu(t,e){t._err(e,ie.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,fi.QUIRKS),t.insertionMode=U.BEFORE_HTML,t._processToken(e)}function GN(t,e){e.tagID===g.HTML?(t._insertElement(e,le.HTML),t.insertionMode=U.BEFORE_HEAD):du(t,e)}function KN(t,e){let i=e.tagID;(i===g.HTML||i===g.HEAD||i===g.BODY||i===g.BR)&&du(t,e)}function du(t,e){t._insertFakeRootElement(),t.insertionMode=U.BEFORE_HEAD,t._processToken(e)}function JN(t,e){switch(e.tagID){case g.HTML:{wi(t,e);break}case g.HEAD:{t._insertElement(e,le.HTML),t.headElement=t.openElements.current,t.insertionMode=U.IN_HEAD;break}default:Ou(t,e)}}function eq(t,e){let i=e.tagID;i===g.HEAD||i===g.BODY||i===g.HTML||i===g.BR?Ou(t,e):t._err(e,ie.endTagWithoutMatchingOpenElement)}function Ou(t,e){t._insertFakeElement(B.HEAD,g.HEAD),t.headElement=t.openElements.current,t.insertionMode=U.IN_HEAD,t._processToken(e)}function jn(t,e){switch(e.tagID){case g.HTML:{wi(t,e);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{t._appendElement(e,le.HTML),e.ackSelfClosing=!0;break}case g.TITLE:{t._switchToTextParsing(e,Pt.RCDATA);break}case g.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(e,Pt.RAWTEXT):(t._insertElement(e,le.HTML),t.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{t._switchToTextParsing(e,Pt.RAWTEXT);break}case g.SCRIPT:{t._switchToTextParsing(e,Pt.SCRIPT_DATA);break}case g.TEMPLATE:{t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=U.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case g.HEAD:{t._err(e,ie.misplacedStartTagForHeadElement);break}default:pu(t,e)}}function tq(t,e){switch(e.tagID){case g.HEAD:{t.openElements.pop(),t.insertionMode=U.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{pu(t,e);break}case g.TEMPLATE:{zs(t,e);break}default:t._err(e,ie.endTagWithoutMatchingOpenElement)}}function zs(t,e){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==g.TEMPLATE&&t._err(e,ie.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(g.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,ie.endTagWithoutMatchingOpenElement)}function pu(t,e){t.openElements.pop(),t.insertionMode=U.AFTER_HEAD,t._processToken(e)}function iq(t,e){switch(e.tagID){case g.HTML:{wi(t,e);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{jn(t,e);break}case g.NOSCRIPT:{t._err(e,ie.nestedNoscriptInHead);break}default:mu(t,e)}}function nq(t,e){switch(e.tagID){case g.NOSCRIPT:{t.openElements.pop(),t.insertionMode=U.IN_HEAD;break}case g.BR:{mu(t,e);break}default:t._err(e,ie.endTagWithoutMatchingOpenElement)}}function mu(t,e){let i=e.type===Ye.EOF?ie.openElementsLeftAfterEof:ie.disallowedContentInNoscriptInHead;t._err(e,i),t.openElements.pop(),t.insertionMode=U.IN_HEAD,t._processToken(e)}function rq(t,e){switch(e.tagID){case g.HTML:{wi(t,e);break}case g.BODY:{t._insertElement(e,le.HTML),t.framesetOk=!1,t.insertionMode=U.IN_BODY;break}case g.FRAMESET:{t._insertElement(e,le.HTML),t.insertionMode=U.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{t._err(e,ie.abandonedHeadElementChild),t.openElements.push(t.headElement,g.HEAD),jn(t,e),t.openElements.remove(t.headElement);break}case g.HEAD:{t._err(e,ie.misplacedStartTagForHeadElement);break}default:gu(t,e)}}function oq(t,e){switch(e.tagID){case g.BODY:case g.HTML:case g.BR:{gu(t,e);break}case g.TEMPLATE:{zs(t,e);break}default:t._err(e,ie.endTagWithoutMatchingOpenElement)}}function gu(t,e){t._insertFakeElement(B.BODY,g.BODY),t.insertionMode=U.IN_BODY,Gd(t,e)}function Gd(t,e){switch(e.type){case Ye.CHARACTER:{q4(t,e);break}case Ye.WHITESPACE_CHARACTER:{N4(t,e);break}case Ye.COMMENT:{O1(t,e);break}case Ye.START_TAG:{wi(t,e);break}case Ye.END_TAG:{Kd(t,e);break}case Ye.EOF:{Z4(t,e);break}default:}}function N4(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function q4(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function sq(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function aq(t,e){let i=t.openElements.tryPeekProperlyNestedBodyElement();i&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(i,e.attrs))}function lq(t,e){let i=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&i&&(t.treeAdapter.detachNode(i),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,le.HTML),t.insertionMode=U.IN_FRAMESET)}function cq(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,le.HTML)}function uq(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),su(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,le.HTML)}function fq(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,le.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function hq(t,e){let i=t.openElements.tmplCount>0;(!t.formElement||i)&&(t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,le.HTML),i||(t.formElement=t.openElements.current))}function dq(t,e){t.framesetOk=!1;let i=e.tagID;for(let n=t.openElements.stackTop;n>=0;n--){let r=t.openElements.tagIDs[n];if(i===g.LI&&r===g.LI||(i===g.DD||i===g.DT)&&(r===g.DD||r===g.DT)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.popUntilTagNamePopped(r);break}if(r!==g.ADDRESS&&r!==g.DIV&&r!==g.P&&t._isSpecialElement(t.openElements.items[n],r))break}t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,le.HTML)}function Oq(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,le.HTML),t.tokenizer.state=Pt.PLAINTEXT}function pq(t,e){t.openElements.hasInScope(g.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(g.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,le.HTML),t.framesetOk=!1}function mq(t,e){let i=t.activeFormattingElements.getElementEntryInScopeWithTagName(B.A);i&&(m1(t,e),t.openElements.remove(i.element),t.activeFormattingElements.removeEntry(i)),t._reconstructActiveFormattingElements(),t._insertElement(e,le.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function gq(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,le.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function bq(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(g.NOBR)&&(m1(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,le.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function yq(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,le.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function xq(t,e){t.treeAdapter.getDocumentMode(t.document)!==fi.QUIRKS&&t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._insertElement(e,le.HTML),t.framesetOk=!1,t.insertionMode=U.IN_TABLE}function j4(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,le.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function W4(t){let e=ou(t,qn.TYPE);return e!=null&&e.toLowerCase()===zN}function vq(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,le.HTML),W4(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}function wq(t,e){t._appendElement(e,le.HTML),e.ackSelfClosing=!0}function kq(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._appendElement(e,le.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function Sq(t,e){e.tagName=B.IMG,e.tagID=g.IMG,j4(t,e)}function Tq(t,e){t._insertElement(e,le.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Pt.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=U.TEXT}function Eq(t,e){t.openElements.hasInButtonScope(g.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Pt.RAWTEXT)}function Cq(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Pt.RAWTEXT)}function z4(t,e){t._switchToTextParsing(e,Pt.RAWTEXT)}function Pq(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,le.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===U.IN_TABLE||t.insertionMode===U.IN_CAPTION||t.insertionMode===U.IN_TABLE_BODY||t.insertionMode===U.IN_ROW||t.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function Qq(t,e){t.openElements.currentTagId===g.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,le.HTML)}function _q(t,e){t.openElements.hasInScope(g.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,le.HTML)}function Aq(t,e){t.openElements.hasInScope(g.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(g.RTC),t._insertElement(e,le.HTML)}function $q(t,e){t._reconstructActiveFormattingElements(),Vd(e),uu(e),e.selfClosing?t._appendElement(e,le.MATHML):t._insertElement(e,le.MATHML),e.ackSelfClosing=!0}function Xq(t,e){t._reconstructActiveFormattingElements(),Zd(e),uu(e),e.selfClosing?t._appendElement(e,le.SVG):t._insertElement(e,le.SVG),e.ackSelfClosing=!0}function U4(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,le.HTML)}function wi(t,e){switch(e.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{gq(t,e);break}case g.A:{mq(t,e);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{uq(t,e);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{cq(t,e);break}case g.LI:case g.DD:case g.DT:{dq(t,e);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{j4(t,e);break}case g.HR:{kq(t,e);break}case g.RB:case g.RTC:{_q(t,e);break}case g.RT:case g.RP:{Aq(t,e);break}case g.PRE:case g.LISTING:{fq(t,e);break}case g.XMP:{Eq(t,e);break}case g.SVG:{Xq(t,e);break}case g.HTML:{sq(t,e);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{jn(t,e);break}case g.BODY:{aq(t,e);break}case g.FORM:{hq(t,e);break}case g.NOBR:{bq(t,e);break}case g.MATH:{$q(t,e);break}case g.TABLE:{xq(t,e);break}case g.INPUT:{vq(t,e);break}case g.PARAM:case g.TRACK:case g.SOURCE:{wq(t,e);break}case g.IMAGE:{Sq(t,e);break}case g.BUTTON:{pq(t,e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{yq(t,e);break}case g.IFRAME:{Cq(t,e);break}case g.SELECT:{Pq(t,e);break}case g.OPTION:case g.OPTGROUP:{Qq(t,e);break}case g.NOEMBED:{z4(t,e);break}case g.FRAMESET:{lq(t,e);break}case g.TEXTAREA:{Tq(t,e);break}case g.NOSCRIPT:{t.options.scriptingEnabled?z4(t,e):U4(t,e);break}case g.PLAINTEXT:{Oq(t,e);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:U4(t,e)}}function Rq(t,e){if(t.openElements.hasInScope(g.BODY)&&(t.insertionMode=U.AFTER_BODY,t.options.sourceCodeLocationInfo)){let i=t.openElements.tryPeekProperlyNestedBodyElement();i&&t._setEndLocation(i,e)}}function Lq(t,e){t.openElements.hasInScope(g.BODY)&&(t.insertionMode=U.AFTER_BODY,eE(t,e))}function Iq(t,e){let i=e.tagID;t.openElements.hasInScope(i)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(i))}function Dq(t){let e=t.openElements.tmplCount>0,{formElement:i}=t;e||(t.formElement=null),(i||e)&&t.openElements.hasInScope(g.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(g.FORM):i&&t.openElements.remove(i))}function zq(t){t.openElements.hasInButtonScope(g.P)||t._insertFakeElement(B.P,g.P),t._closePElement()}function Uq(t){t.openElements.hasInListItemScope(g.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(g.LI),t.openElements.popUntilTagNamePopped(g.LI))}function Mq(t,e){let i=e.tagID;t.openElements.hasInScope(i)&&(t.openElements.generateImpliedEndTagsWithExclusion(i),t.openElements.popUntilTagNamePopped(i))}function Nq(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function qq(t,e){let i=e.tagID;t.openElements.hasInScope(i)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(i),t.activeFormattingElements.clearToLastMarker())}function jq(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(B.BR,g.BR),t.openElements.pop(),t.framesetOk=!1}function V4(t,e){let i=e.tagName,n=e.tagID;for(let r=t.openElements.stackTop;r>0;r--){let o=t.openElements.items[r],s=t.openElements.tagIDs[r];if(n===s&&(n!==g.UNKNOWN||t.treeAdapter.getTagName(o)===i)){t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.stackTop>=r&&t.openElements.shortenToLength(r);break}if(t._isSpecialElement(o,s))break}}function Kd(t,e){switch(e.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{m1(t,e);break}case g.P:{zq(t);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{Iq(t,e);break}case g.LI:{Uq(t);break}case g.DD:case g.DT:{Mq(t,e);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{Nq(t);break}case g.BR:{jq(t);break}case g.BODY:{Rq(t,e);break}case g.HTML:{Lq(t,e);break}case g.FORM:{Dq(t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{qq(t,e);break}case g.TEMPLATE:{zs(t,e);break}default:V4(t,e)}}function Z4(t,e){t.tmplInsertionModeStack.length>0?J4(t,e):g1(t,e)}function Wq(t,e){var i;e.tagID===g.SCRIPT&&((i=t.scriptHandler)===null||i===void 0||i.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function Vq(t,e){t._err(e,ie.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}function d1(t,e){if(M4.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=U.IN_TABLE_TEXT,e.type){case Ye.CHARACTER:{Y4(t,e);break}case Ye.WHITESPACE_CHARACTER:{B4(t,e);break}}else yu(t,e)}function Zq(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,le.HTML),t.insertionMode=U.IN_CAPTION}function Bq(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,le.HTML),t.insertionMode=U.IN_COLUMN_GROUP}function Yq(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(B.COLGROUP,g.COLGROUP),t.insertionMode=U.IN_COLUMN_GROUP,b1(t,e)}function Fq(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,le.HTML),t.insertionMode=U.IN_TABLE_BODY}function Hq(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(B.TBODY,g.TBODY),t.insertionMode=U.IN_TABLE_BODY,Jd(t,e)}function Gq(t,e){t.openElements.hasInTableScope(g.TABLE)&&(t.openElements.popUntilTagNamePopped(g.TABLE),t._resetInsertionMode(),t._processStartTag(e))}function Kq(t,e){W4(e)?t._appendElement(e,le.HTML):yu(t,e),e.ackSelfClosing=!0}function Jq(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,le.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function cl(t,e){switch(e.tagID){case g.TD:case g.TH:case g.TR:{Hq(t,e);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{jn(t,e);break}case g.COL:{Yq(t,e);break}case g.FORM:{Jq(t,e);break}case g.TABLE:{Gq(t,e);break}case g.TBODY:case g.TFOOT:case g.THEAD:{Fq(t,e);break}case g.INPUT:{Kq(t,e);break}case g.CAPTION:{Zq(t,e);break}case g.COLGROUP:{Bq(t,e);break}default:yu(t,e)}}function bu(t,e){switch(e.tagID){case g.TABLE:{t.openElements.hasInTableScope(g.TABLE)&&(t.openElements.popUntilTagNamePopped(g.TABLE),t._resetInsertionMode());break}case g.TEMPLATE:{zs(t,e);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:yu(t,e)}}function yu(t,e){let i=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,Gd(t,e),t.fosterParentingEnabled=i}function B4(t,e){t.pendingCharacterTokens.push(e)}function Y4(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function hu(t,e){let i=0;if(t.hasNonWhitespacePendingCharacterToken)for(;i<t.pendingCharacterTokens.length;i++)yu(t,t.pendingCharacterTokens[i]);else for(;i<t.pendingCharacterTokens.length;i++)t._insertCharacters(t.pendingCharacterTokens[i]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}var F4=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function ej(t,e){let i=e.tagID;F4.has(i)?t.openElements.hasInTableScope(g.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(g.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=U.IN_TABLE,cl(t,e)):wi(t,e)}function tj(t,e){let i=e.tagID;switch(i){case g.CAPTION:case g.TABLE:{t.openElements.hasInTableScope(g.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(g.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=U.IN_TABLE,i===g.TABLE&&bu(t,e));break}case g.BODY:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Kd(t,e)}}function b1(t,e){switch(e.tagID){case g.HTML:{wi(t,e);break}case g.COL:{t._appendElement(e,le.HTML),e.ackSelfClosing=!0;break}case g.TEMPLATE:{jn(t,e);break}default:Fd(t,e)}}function ij(t,e){switch(e.tagID){case g.COLGROUP:{t.openElements.currentTagId===g.COLGROUP&&(t.openElements.pop(),t.insertionMode=U.IN_TABLE);break}case g.TEMPLATE:{zs(t,e);break}case g.COL:break;default:Fd(t,e)}}function Fd(t,e){t.openElements.currentTagId===g.COLGROUP&&(t.openElements.pop(),t.insertionMode=U.IN_TABLE,t._processToken(e))}function Jd(t,e){switch(e.tagID){case g.TR:{t.openElements.clearBackToTableBodyContext(),t._insertElement(e,le.HTML),t.insertionMode=U.IN_ROW;break}case g.TH:case g.TD:{t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(B.TR,g.TR),t.insertionMode=U.IN_ROW,eO(t,e);break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=U.IN_TABLE,cl(t,e));break}default:cl(t,e)}}function p1(t,e){let i=e.tagID;switch(e.tagID){case g.TBODY:case g.TFOOT:case g.THEAD:{t.openElements.hasInTableScope(i)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=U.IN_TABLE);break}case g.TABLE:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=U.IN_TABLE,bu(t,e));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:case g.TR:break;default:bu(t,e)}}function eO(t,e){switch(e.tagID){case g.TH:case g.TD:{t.openElements.clearBackToTableRowContext(),t._insertElement(e,le.HTML),t.insertionMode=U.IN_CELL,t.activeFormattingElements.insertMarker();break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{t.openElements.hasInTableScope(g.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=U.IN_TABLE_BODY,Jd(t,e));break}default:cl(t,e)}}function H4(t,e){switch(e.tagID){case g.TR:{t.openElements.hasInTableScope(g.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=U.IN_TABLE_BODY);break}case g.TABLE:{t.openElements.hasInTableScope(g.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=U.IN_TABLE_BODY,p1(t,e));break}case g.TBODY:case g.TFOOT:case g.THEAD:{(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(g.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=U.IN_TABLE_BODY,p1(t,e));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:break;default:bu(t,e)}}function nj(t,e){let i=e.tagID;F4.has(i)?(t.openElements.hasInTableScope(g.TD)||t.openElements.hasInTableScope(g.TH))&&(t._closeTableCell(),eO(t,e)):wi(t,e)}function rj(t,e){let i=e.tagID;switch(i){case g.TD:case g.TH:{t.openElements.hasInTableScope(i)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(i),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=U.IN_ROW);break}case g.TABLE:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{t.openElements.hasInTableScope(i)&&(t._closeTableCell(),H4(t,e));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:Kd(t,e)}}function G4(t,e){switch(e.tagID){case g.HTML:{wi(t,e);break}case g.OPTION:{t.openElements.currentTagId===g.OPTION&&t.openElements.pop(),t._insertElement(e,le.HTML);break}case g.OPTGROUP:{t.openElements.currentTagId===g.OPTION&&t.openElements.pop(),t.openElements.currentTagId===g.OPTGROUP&&t.openElements.pop(),t._insertElement(e,le.HTML);break}case g.INPUT:case g.KEYGEN:case g.TEXTAREA:case g.SELECT:{t.openElements.hasInSelectScope(g.SELECT)&&(t.openElements.popUntilTagNamePopped(g.SELECT),t._resetInsertionMode(),e.tagID!==g.SELECT&&t._processStartTag(e));break}case g.SCRIPT:case g.TEMPLATE:{jn(t,e);break}default:}}function K4(t,e){switch(e.tagID){case g.OPTGROUP:{t.openElements.stackTop>0&&t.openElements.currentTagId===g.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===g.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===g.OPTGROUP&&t.openElements.pop();break}case g.OPTION:{t.openElements.currentTagId===g.OPTION&&t.openElements.pop();break}case g.SELECT:{t.openElements.hasInSelectScope(g.SELECT)&&(t.openElements.popUntilTagNamePopped(g.SELECT),t._resetInsertionMode());break}case g.TEMPLATE:{zs(t,e);break}default:}}function oj(t,e){let i=e.tagID;i===g.CAPTION||i===g.TABLE||i===g.TBODY||i===g.TFOOT||i===g.THEAD||i===g.TR||i===g.TD||i===g.TH?(t.openElements.popUntilTagNamePopped(g.SELECT),t._resetInsertionMode(),t._processStartTag(e)):G4(t,e)}function sj(t,e){let i=e.tagID;i===g.CAPTION||i===g.TABLE||i===g.TBODY||i===g.TFOOT||i===g.THEAD||i===g.TR||i===g.TD||i===g.TH?t.openElements.hasInTableScope(i)&&(t.openElements.popUntilTagNamePopped(g.SELECT),t._resetInsertionMode(),t.onEndTag(e)):K4(t,e)}function aj(t,e){switch(e.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{jn(t,e);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{t.tmplInsertionModeStack[0]=U.IN_TABLE,t.insertionMode=U.IN_TABLE,cl(t,e);break}case g.COL:{t.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,t.insertionMode=U.IN_COLUMN_GROUP,b1(t,e);break}case g.TR:{t.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,t.insertionMode=U.IN_TABLE_BODY,Jd(t,e);break}case g.TD:case g.TH:{t.tmplInsertionModeStack[0]=U.IN_ROW,t.insertionMode=U.IN_ROW,eO(t,e);break}default:t.tmplInsertionModeStack[0]=U.IN_BODY,t.insertionMode=U.IN_BODY,wi(t,e)}}function lj(t,e){e.tagID===g.TEMPLATE&&zs(t,e)}function J4(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(g.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):g1(t,e)}function cj(t,e){e.tagID===g.HTML?wi(t,e):Hd(t,e)}function eE(t,e){var i;if(e.tagID===g.HTML){if(t.fragmentContext||(t.insertionMode=U.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===g.HTML){t._setEndLocation(t.openElements.items[0],e);let n=t.openElements.items[1];n&&!(!((i=t.treeAdapter.getNodeSourceCodeLocation(n))===null||i===void 0)&&i.endTag)&&t._setEndLocation(n,e)}}else Hd(t,e)}function Hd(t,e){t.insertionMode=U.IN_BODY,Gd(t,e)}function uj(t,e){switch(e.tagID){case g.HTML:{wi(t,e);break}case g.FRAMESET:{t._insertElement(e,le.HTML);break}case g.FRAME:{t._appendElement(e,le.HTML),e.ackSelfClosing=!0;break}case g.NOFRAMES:{jn(t,e);break}default:}}function fj(t,e){e.tagID===g.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==g.FRAMESET&&(t.insertionMode=U.AFTER_FRAMESET))}function hj(t,e){switch(e.tagID){case g.HTML:{wi(t,e);break}case g.NOFRAMES:{jn(t,e);break}default:}}function dj(t,e){e.tagID===g.HTML&&(t.insertionMode=U.AFTER_AFTER_FRAMESET)}function Oj(t,e){e.tagID===g.HTML?wi(t,e):Yd(t,e)}function Yd(t,e){t.insertionMode=U.IN_BODY,Gd(t,e)}function pj(t,e){switch(e.tagID){case g.HTML:{wi(t,e);break}case g.NOFRAMES:{jn(t,e);break}default:}}function mj(t,e){e.chars=kt,t._insertCharacters(e)}function gj(t,e){t._insertCharacters(e),t.framesetOk=!1}function tE(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==le.HTML&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function bj(t,e){if(u1(e))tE(t),t._startTagOutsideForeignContent(e);else{let i=t._getAdjustedCurrentElement(),n=t.treeAdapter.getNamespaceURI(i);n===le.MATHML?Vd(e):n===le.SVG&&(f1(e),Zd(e)),uu(e),e.selfClosing?t._appendElement(e,n):t._insertElement(e,n),e.ackSelfClosing=!0}}function yj(t,e){if(e.tagID===g.P||e.tagID===g.BR){tE(t),t._endTagOutsideForeignContent(e);return}for(let i=t.openElements.stackTop;i>0;i--){let n=t.openElements.items[i];if(t.treeAdapter.getNamespaceURI(n)===le.HTML){t._endTagOutsideForeignContent(e);break}let r=t.treeAdapter.getTagName(n);if(r.toLowerCase()===e.tagName){e.tagName=r,t.openElements.shortenToLength(i);break}}}var xj=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Wye=String.prototype.codePointAt!=null?(t,e)=>t.codePointAt(e):(t,e)=>(t.charCodeAt(e)&64512)===55296?(t.charCodeAt(e)-55296)*1024+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e);function y1(t,e){return function(n){let r,o=0,s="";for(;r=t.exec(n);)o!==r.index&&(s+=n.substring(o,r.index)),s+=e.get(r[0].charCodeAt(0)),o=r.index+1;return s+n.substring(o)}}var Vye=y1(/[&<>'"]/g,xj),vj=y1(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),wj=y1(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var Hye=new Set([B.AREA,B.BASE,B.BASEFONT,B.BGSOUND,B.BR,B.COL,B.EMBED,B.FRAME,B.HR,B.IMG,B.INPUT,B.KEYGEN,B.LINK,B.META,B.PARAM,B.SOURCE,B.TRACK,B.WBR]);function iE(t,e){return jr.parse(t,e)}function nE(t,e,i){typeof t=="string"&&(i=e,e=t,t=null);let n=jr.getFragmentParser(t,i);return n.tokenizer.write(e,!0),n.getFragment()}var kj=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),rE={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tO(t,e){let i=Xj(t),n=Ka("type",{handlers:{root:Sj,element:Tj,text:Ej,comment:sE,doctype:Cj,raw:Qj},unknown:_j}),r={parser:i?new jr(rE):jr.getFragmentParser(void 0,rE),handle(a){n(a,r)},stitches:!1,options:e||{}};n(t,r),ul(r,yn());let o=i?r.parser.document:r.parser.getFragment(),s=ru(o,{file:r.options.file});return r.stitches&&xi(s,"comment",function(a,l,c){let u=a;if(u.value.stitch&&c&&l!==void 0){let f=c.children;return f[l]=u.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===t.type?s.children[0]:s}function oE(t,e){let i=-1;if(t)for(;++i<t.length;)e.handle(t[i])}function Sj(t,e){oE(t.children,e)}function Tj(t,e){Aj(t,e),oE(t.children,e),$j(t,e)}function Ej(t,e){let i={type:Nr.TokenType.CHARACTER,chars:t.value,location:xu(t)};ul(e,yn(t)),e.parser.currentToken=i,e.parser._processToken(e.parser.currentToken)}function Cj(t,e){let i={type:Nr.TokenType.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xu(t)};ul(e,yn(t)),e.parser.currentToken=i,e.parser._processToken(e.parser.currentToken)}function Pj(t,e){e.stitches=!0;let i=Rj(t);if("children"in t&&"children"in i){let n=tO({type:"root",children:t.children},e.options);i.children=n.children}sE({type:"comment",value:{stitch:i}},e)}function sE(t,e){let i=t.value,n={type:Nr.TokenType.COMMENT,data:i,location:xu(t)};ul(e,yn(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function Qj(t,e){if(e.parser.tokenizer.preprocessor.html="",e.parser.tokenizer.preprocessor.pos=-1,e.parser.tokenizer.preprocessor.lastGapPos=-2,e.parser.tokenizer.preprocessor.gapStack=[],e.parser.tokenizer.preprocessor.skipNextNewLine=!1,e.parser.tokenizer.preprocessor.lastChunkWritten=!1,e.parser.tokenizer.preprocessor.endOfChunkHit=!1,e.parser.tokenizer.preprocessor.isEol=!1,aE(e,yn(t)),e.parser.tokenizer.write(t.value,!1),e.parser.tokenizer._runParsingLoop(),e.parser.tokenizer.state===72||e.parser.tokenizer.state===78){e.parser.tokenizer.preprocessor.lastChunkWritten=!0;let i=e.parser.tokenizer._consume();e.parser.tokenizer._callState(i)}}function _j(t,e){let i=t;if(e.options.passThrough&&e.options.passThrough.includes(i.type))Pj(i,e);else{let n="";throw kj.has(i.type)&&(n=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+i.type+"` node"+n)}}function ul(t,e){aE(t,e);let i=t.parser.tokenizer.currentCharacterToken;i&&i.location&&(i.location.endLine=t.parser.tokenizer.preprocessor.line,i.location.endCol=t.parser.tokenizer.preprocessor.col+1,i.location.endOffset=t.parser.tokenizer.preprocessor.offset+1,t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)),t.parser.tokenizer.paused=!1,t.parser.tokenizer.inLoop=!1,t.parser.tokenizer.active=!1,t.parser.tokenizer.returnState=Pt.DATA,t.parser.tokenizer.charRefCode=-1,t.parser.tokenizer.consumedAfterSnapshot=-1,t.parser.tokenizer.currentLocation=null,t.parser.tokenizer.currentCharacterToken=null,t.parser.tokenizer.currentToken=null,t.parser.tokenizer.currentAttr={name:"",value:""}}function aE(t,e){if(e&&e.offset!==void 0){let i={startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:-1,endCol:-1,endOffset:-1};t.parser.tokenizer.preprocessor.lineStartPos=-e.column+1,t.parser.tokenizer.preprocessor.droppedBufferSize=e.offset,t.parser.tokenizer.preprocessor.line=e.line,t.parser.tokenizer.currentLocation=i}}function Aj(t,e){if(e.parser.tokenizer.state===Pt.PLAINTEXT)return;ul(e,yn(t));let i=e.parser.openElements.current,n="namespaceURI"in i?i.namespaceURI:Wi.html;n===Wi.html&&t.tagName==="svg"&&(n=Wi.svg);let r=e1(Ee(F({},t),{children:[]}),{space:n===Wi.svg?"svg":"html"}),o="attrs"in r?r.attrs:[],s={type:Nr.TokenType.START_TAG,tagName:t.tagName,tagID:ll.getTagID(t.tagName),selfClosing:!1,ackSelfClosing:!1,attrs:o,location:xu(t)};e.parser.currentToken=s,e.parser._processToken(e.parser.currentToken),e.parser.tokenizer.lastStartTagName=t.tagName}function $j(t,e){if(!e.parser.tokenizer.inForeignNode&&Id.includes(t.tagName)||e.parser.tokenizer.state===Pt.PLAINTEXT)return;ul(e,Rs(t));let i={type:Nr.TokenType.END_TAG,tagName:t.tagName,tagID:ll.getTagID(t.tagName),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:xu(t)};e.parser.currentToken=i,e.parser._processToken(e.parser.currentToken),i.tagName===e.parser.tokenizer.lastStartTagName&&(e.parser.tokenizer.state===Pt.RCDATA||e.parser.tokenizer.state===Pt.RAWTEXT||e.parser.tokenizer.state===Pt.SCRIPT_DATA)&&(e.parser.tokenizer.state=Pt.DATA)}function Xj(t){let e=t.type==="root"?t.children[0]:t;return!!(e&&(e.type==="doctype"||e.type==="element"&&e.tagName==="html"))}function xu(t){let e=yn(t)||{line:void 0,column:void 0,offset:void 0},i=Rs(t)||{line:void 0,column:void 0,offset:void 0};return{startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:i.line,endCol:i.column,endOffset:i.offset}}function Rj(t){return"children"in t?Mn(Ee(F({},t),{children:[]})):Mn(t)}function iO(t){return function(e,i){return tO(e,Ee(F({},t),{file:i}))}}function x1(t,e){return cE(t,e||{})||{type:"root",children:[]}}function cE(t,e){let i=Lj(t,e);return i&&e.afterTransform&&e.afterTransform(t,i),i}function Lj(t,e){switch(t.nodeType){case 1:return Uj(t,e);case 3:return Dj(t);case 8:return zj(t);case 9:return lE(t,e);case 10:return Ij();case 11:return lE(t,e);default:return}}function lE(t,e){return{type:"root",children:uE(t,e)}}function Ij(){return{type:"doctype"}}function Dj(t){return{type:"text",value:t.nodeValue||""}}function zj(t){return{type:"comment",value:t.nodeValue||""}}function Uj(t,e){let i=t.namespaceURI,n=i===Wi.svg?nu:iu,r=i===Wi.html?t.tagName.toLowerCase():t.tagName,o=i===Wi.html&&r==="template"?t.content:t,s=t.getAttributeNames(),a={},l=-1;for(;++l<s.length;)a[s[l]]=t.getAttribute(s[l])||"";return n(r,a,uE(o,e))}function uE(t,e){let i=t.childNodes,n=[],r=-1;for(;++r<i.length;){let o=cE(i[r],e);o!==void 0&&n.push(o)}return n}var Mj=new DOMParser;function fE(t,e){let i=e!=null&&e.fragment?Nj(t):Mj.parseFromString(t,"text/html");return x1(i)}function Nj(t){let e=document.createElement("template");return e.innerHTML=t,e.content}var nO=function(t,e,i){let n=cr(i);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(n(t.children[e],e,t))return t.children[e]};var Wr=function(t){if(t==null)return Wj;if(typeof t=="string")return jj(t);if(typeof t=="object")return qj(t);if(typeof t=="function")return v1(t);throw new Error("Expected function, string, or array as `test`")};function qj(t){let e=[],i=-1;for(;++i<t.length;)e[i]=Wr(t[i]);return v1(n);function n(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function jj(t){return v1(e);function e(i){return i.tagName===t}}function v1(t){return e;function e(i,n,r){return!!(Vj(i)&&t.call(this,i,typeof n=="number"?n:void 0,r||void 0))}}function Wj(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function Vj(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}var hE=/\n/g,dE=/[\t ]+/g,w1=Wr("br"),OE=Wr(Kj),Zj=Wr("p"),pE=Wr("tr"),Bj=Wr(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Gj,Jj]),mE=Wr(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function vu(t,e){let i=e||{},n="children"in t?t.children:[],r=mE(t),o=yE(t,{whitespace:i.whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];(t.type==="text"||t.type==="comment")&&s.push(...bE(t,{whitespace:o,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<n.length;)s.push(...gE(n[a],t,{whitespace:o,breakBefore:a?void 0:r,breakAfter:a<n.length-1?w1(n[a+1]):r}));let l=[],c;for(a=-1;++a<s.length;){let u=s[a];typeof u=="number"?c!==void 0&&u>c&&(c=u):u&&(c!==void 0&&c>-1&&l.push(`
|
||
`.repeat(c)||" "),c=-1,l.push(u))}return l.join("")}function gE(t,e,i){return t.type==="element"?Yj(t,e,i):t.type==="text"?i.whitespace==="normal"?bE(t,i):Fj(t):[]}function Yj(t,e,i){let n=yE(t,i),r=t.children||[],o=-1,s=[];if(Bj(t))return s;let a,l;for(w1(t)||pE(t)&&nO(e,t,pE)?l=`
|
||
`:Zj(t)?(a=2,l=2):mE(t)&&(a=1,l=1);++o<r.length;)s=s.concat(gE(r[o],t,{whitespace:n,breakBefore:o?void 0:a,breakAfter:o<r.length-1?w1(r[o+1]):l}));return OE(t)&&nO(e,t,OE)&&s.push(" "),a&&s.unshift(a),l&&s.push(l),s}function bE(t,e){let i=String(t.value),n=[],r=[],o=0;for(;o<=i.length;){hE.lastIndex=o;let l=hE.exec(i),c=l&&"index"in l?l.index:i.length;n.push(Hj(i.slice(o,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?e.breakBefore:!0,c===i.length?e.breakAfter:!0)),o=c+1}let s=-1,a;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(r.push(n[s]),a=void 0):n[s]?(typeof a=="number"&&r.push(a),r.push(n[s]),a=0):(s===0||s===n.length-1)&&r.push(0);return r}function Fj(t){return[String(t.value)]}function Hj(t,e,i){let n=[],r=0,o;for(;r<t.length;){dE.lastIndex=r;let s=dE.exec(t);o=s?s.index:t.length,!r&&!o&&s&&!e&&n.push(""),r!==o&&n.push(t.slice(r,o)),r=s?o+s[0].length:o}return r!==o&&!i&&n.push(""),n.join(" ")}function yE(t,e){if(t.type==="element"){let i=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return i.wrap?"pre-wrap":"pre";case"td":case"th":return i.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap";default:}}return e.whitespace}function Gj(t){return!!(t.properties||{}).hidden}function Kj(t){return t.tagName==="td"||t.tagName==="th"}function Jj(t){return t.tagName==="dialog"&&!(t.properties||{}).open}var eW={},tW=[];function rO(t){let e=t||eW;return function(i,n){As(i,"element",function(r,o){let s=Array.isArray(r.properties.className)?r.properties.className:tW,a=s.includes("language-math"),l=s.includes("math-display"),c=s.includes("math-inline"),u=l;if(!a&&!l&&!c)return;let f=o[o.length-1],d=r;if(r.tagName==="code"&&a&&f&&f.type==="element"&&f.tagName==="pre"&&(d=f,f=o[o.length-2],u=!0),!f)return;let O=vu(d,{whitespace:"pre"}),m;try{m=Mg.renderToString(O,Ee(F({},e),{displayMode:u,throwOnError:!0}))}catch(v){let w=v,T=w.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...o,r],cause:w,place:r.position,ruleId:T,source:"rehype-katex"});try{m=Mg.renderToString(O,Ee(F({},e),{displayMode:u,strict:"ignore",throwOnError:!1}))}catch(Q){m=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(e.errorColor||"#cc0000"),title:String(v)},children:[{type:"text",value:O}]}]}}typeof m=="string"&&(m=fE(m,{fragment:!0}).children);let x=f.children.indexOf(d);return f.children.splice(x,1,...m),Ga})}}var xE={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}};var iW="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",nW=/-[a-z]/g,rW=/%c(?:([-+])(\d+))?/g,oW=/%x/g,sW={2:!0,1:!1,0:null},aW={};function k1(t,e){let i=e||aW,n=i.onerror,r=t instanceof _o?t:new _o(t),o=i.fragment?nE:iE,s=String(r),a=o(s,{sourceCodeLocationInfo:!0,onParseError:i.onerror?l:null,scriptingEnabled:!1});return ru(a,{file:r,space:i.space,verbose:i.verbose});function l(c){let u=c.code,f=lW(u),d=i[f],O=d==null?!0:d,m=typeof O=="number"?O:O?1:0;if(m){let v=xE[f];let w=new Yt(x(v.reason),{place:{start:{line:c.startLine,column:c.startCol,offset:c.startOffset},end:{line:c.endLine,column:c.endCol,offset:c.endOffset}},ruleId:u,source:"hast-util-from-html"});r.path&&(w.file=r.path,w.name=r.path+":"+w.name),w.fatal=sW[m],w.note=x(v.description),w.url=v.url===!1?void 0:iW+u,n(w)}function x(v){return v.replace(rW,w).replace(oW,T);function w(Q,I,z){let $=(z?Number.parseInt(z,10):0)*(I==="-"?-1:1),X=s.charAt(c.startOffset+$);return uW(X)}function T(){return fW(s.charCodeAt(c.startOffset))}}}}function lW(t){return t.replace(nW,cW)}function cW(t){return t.charAt(1).toUpperCase()}function uW(t){return t==="`"?"` ` `":t}function fW(t){return"0x"+t.toString(16).toUpperCase()}function oO(t){let e=this,o=F(F({},e.data("settings")),t),{emitParseErrors:i}=o,n=Ui(o,["emitParseErrors"]);e.parser=r;function r(s,a){return k1(s,Ee(F({},n),{onerror:i?function(l){a.path&&(l.name=a.path+":"+l.name,l.file=a.path),a.messages.push(l)}:void 0}))}}var Us=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Wn={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Us,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Us],h2:[["id","footnote-label"],["className","sr-only"]],img:[...Us,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Us,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Us],table:[...Us],ul:[...Us,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","disabled","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]};var Vo={}.hasOwnProperty;function S1(t,e){let i={type:"root",children:[]},n={schema:e?F(F({},Wn),e):Wn,stack:[]},r=wE(n,t);return r&&(Array.isArray(r)?r.length===1?i=r[0]:i.children=r:i=r),i}function wE(t,e){if(e&&typeof e=="object"){let i=e;switch(typeof i.type=="string"?i.type:""){case"comment":return hW(t,i);case"doctype":return dW(t,i);case"element":return OW(t,i);case"root":return pW(t,i);case"text":return mW(t,i);default:}}}function hW(t,e){if(t.schema.allowComments){let i=typeof e.value=="string"?e.value:"",n=i.indexOf("-->"),o={type:"comment",value:n<0?i:i.slice(0,n)};return wu(o,e),o}}function dW(t,e){if(t.schema.allowDoctypes){let i={type:"doctype"};return wu(i,e),i}}function OW(t,e){let i=typeof e.tagName=="string"?e.tagName:"";t.stack.push(i);let n=kE(t,e.children),r=gW(t,e.properties);t.stack.pop();let o=!1;if(i.length>0&&i!=="*"&&(!t.schema.tagNames||t.schema.tagNames.includes(i))&&(o=!0,t.schema.ancestors&&Vo.call(t.schema.ancestors,i))){let a=t.schema.ancestors[i],l=-1;for(o=!1;++l<a.length;)t.stack.includes(a[l])&&(o=!0)}if(!o)return t.schema.strip&&!t.schema.strip.includes(i)?n:void 0;let s={type:"element",tagName:i,properties:r,children:n};return wu(s,e),s}function pW(t,e){let n={type:"root",children:kE(t,e.children)};return wu(n,e),n}function mW(t,e){let n={type:"text",value:typeof e.value=="string"?e.value:""};return wu(n,e),n}function kE(t,e){let i=[];if(Array.isArray(e)){let n=e,r=-1;for(;++r<n.length;){let o=wE(t,n[r]);o&&(Array.isArray(o)?i.push(...o):i.push(o))}}return i}function gW(t,e){let i=t.stack[t.stack.length-1],n=t.schema.attributes,r=t.schema.required,o=n&&Vo.call(n,i)?n[i]:void 0,s=n&&Vo.call(n,"*")?n["*"]:void 0,a=e&&typeof e=="object"?e:{},l={},c;for(c in a)if(Vo.call(a,c)){let u;if(o&&(u=vE(o,c)),!u&&s&&(u=vE(s,c)),u){let f=a[c],d=Array.isArray(f)?bW(t,u,c,f):SE(t,u,c,f);d!=null&&(l[c]=d)}}if(r&&Vo.call(r,i)){let u=r[i];for(c in u)Vo.call(u,c)&&!Vo.call(l,c)&&(l[c]=u[c])}return l}function bW(t,e,i,n){let r=-1,o=[];for(;++r<n.length;){let s=SE(t,e,i,n[r]);(typeof s=="number"||typeof s=="string")&&o.push(s)}return o}function SE(t,e,i,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&yW(t,i,n)){if(typeof e=="object"&&e.length>1){let r=!1,o=0;for(;++o<e.length;){let s=e[o];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){r=!0;break}}else if(s===n){r=!0;break}}if(!r)return}return t.schema.clobber&&t.schema.clobberPrefix&&t.schema.clobber.includes(i)?t.schema.clobberPrefix+n:n}}function yW(t,e,i){let n=t.schema.protocols&&Vo.call(t.schema.protocols,e)?t.schema.protocols[e]:void 0;if(!n||n.length===0)return!0;let r=String(i),o=r.indexOf(":"),s=r.indexOf("?"),a=r.indexOf("#"),l=r.indexOf("/");if(o<0||l>-1&&o>l||s>-1&&o>s||a>-1&&o>a)return!0;let c=-1;for(;++c<n.length;){let u=n[c];if(o===u.length&&r.slice(0,u.length)===u)return!0}return!1}function wu(t,e){let i=Hc(e);e.data&&(t.data=Mn(e.data)),i&&(t.position=i)}function vE(t,e){let i,n=-1;for(;++n<t.length;){let r=t[n],o=typeof r=="string"?r:r[0];if(o===e)return r;o==="data*"&&(i=r)}if(e.length>4&&e.slice(0,4).toLowerCase()==="data")return i}function sO(t){return function(e){return S1(e,t)}}function TE(t,e){if(t=t.replace(e.subset?xW(e.subset):/["&'<>`]/g,n),e.subset||e.escapeOnly)return t;return t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function i(r,o,s){return e.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),e)}function n(r,o,s){return e.format(r.charCodeAt(0),s.charCodeAt(o+1),e)}}function xW(t){let e=[],i=-1;for(;++i<t.length;)e.push(t[i].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}function EE(t,e,i){let n="&#x"+t.toString(16).toUpperCase();return i&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?n:n+";"}function CE(t,e,i){let n="&#"+String(t);return i&&e&&!/\d/.test(String.fromCharCode(e))?n:n+";"}var PE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var aO={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var QE=["cent","copy","divide","gt","lt","not","para","times"];var _E={}.hasOwnProperty,T1={},lO;for(lO in aO)_E.call(aO,lO)&&(T1[aO[lO]]=lO);function AE(t,e,i,n){let r=String.fromCharCode(t);if(_E.call(T1,r)){let o=T1[r],s="&"+o;return i&&PE.includes(o)&&!QE.includes(o)&&(!n||e&&e!==61&&/[^\da-z]/i.test(String.fromCharCode(e)))?s:s+";"}return""}function $E(t,e,i){let n=EE(t,e,i.omitOptionalSemicolons),r;if((i.useNamedReferences||i.useShortestReferences)&&(r=AE(t,e,i.omitOptionalSemicolons,i.attribute)),(i.useShortestReferences||!r)&&i.useShortestReferences){let o=CE(t,e,i.omitOptionalSemicolons);o.length<n.length&&(n=o)}return r&&(!i.useShortestReferences||r.length<n.length)?r:n}function Vr(t,e){return TE(t,Object.assign({format:$E},e))}function XE(t,e,i,n){return n.settings.bogusComments?"<?"+Vr(t.value,Object.assign({},n.settings.characterReferences,{subset:[">"]}))+">":"<!--"+t.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,r)+"-->";function r(o){return Vr(o,Object.assign({},n.settings.characterReferences,{subset:["<",">"]}))}}function RE(t,e,i,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}var vW=/[ \t\n\f\r]/g;function Ms(t){return typeof t=="object"?t.type==="text"?LE(t.value):!1:LE(t)}function LE(t){return t.replace(vW,"")===""}var Zt=IE(1),E1=IE(-1),wW=[];function IE(t){return e;function e(i,n,r){let o=i?i.children:wW,s=(n||0)+t,a=o[s];if(!r)for(;a&&Ms(a);)s+=t,a=o[s];return a}}var kW={}.hasOwnProperty;function cO(t){return e;function e(i,n,r){return kW.call(t,i.tagName)&&t[i.tagName](i,n,r)}}var ku=cO({body:TW,caption:C1,colgroup:C1,dd:QW,dt:PW,head:C1,html:SW,li:CW,optgroup:_W,option:AW,p:EW,rp:DE,rt:DE,tbody:XW,td:zE,tfoot:RW,th:zE,thead:$W,tr:LW});function C1(t,e,i){let n=Zt(i,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Ms(n.value.charAt(0)))}function SW(t,e,i){let n=Zt(i,e);return!n||n.type!=="comment"}function TW(t,e,i){let n=Zt(i,e);return!n||n.type!=="comment"}function EW(t,e,i){let n=Zt(i,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!i||!(i.type==="element"&&(i.tagName==="a"||i.tagName==="audio"||i.tagName==="del"||i.tagName==="ins"||i.tagName==="map"||i.tagName==="noscript"||i.tagName==="video"))}function CW(t,e,i){let n=Zt(i,e);return!n||n.type==="element"&&n.tagName==="li"}function PW(t,e,i){let n=Zt(i,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function QW(t,e,i){let n=Zt(i,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function DE(t,e,i){let n=Zt(i,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function _W(t,e,i){let n=Zt(i,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function AW(t,e,i){let n=Zt(i,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function $W(t,e,i){let n=Zt(i,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function XW(t,e,i){let n=Zt(i,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function RW(t,e,i){return!Zt(i,e)}function LW(t,e,i){let n=Zt(i,e);return!n||n.type==="element"&&n.tagName==="tr"}function zE(t,e,i){let n=Zt(i,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var UE=cO({body:zW,colgroup:UW,head:DW,html:IW,tbody:MW});function IW(t){let e=Zt(t,-1);return!e||e.type!=="comment"}function DW(t){let e=t.children,i=[],n=-1;for(;++n<e.length;){let r=e[n];if(r.type==="element"&&(r.tagName==="title"||r.tagName==="base")){if(i.includes(r.tagName))return!1;i.push(r.tagName)}}return e.length>0}function zW(t){let e=Zt(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ms(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function UW(t,e,i){let n=E1(i,e),r=Zt(t,-1,!0);return i&&n&&n.type==="element"&&n.tagName==="colgroup"&&ku(n,i.children.indexOf(n),i)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function MW(t,e,i){let n=E1(i,e),r=Zt(t,-1);return i&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&ku(n,i.children.indexOf(n),i)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}var uO={name:[[`
|
||
\f\r &/=>`.split(""),`
|
||
\f\r "&'/=>\``.split("")],[`\0
|
||
\f\r "&'/<=>`.split(""),`\0
|
||
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
||
\f\r &>`.split(""),`\0
|
||
\f\r "&'<=>\``.split("")],[`\0
|
||
\f\r "&'<=>\``.split(""),`\0
|
||
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function ME(t,e,i,n){let r=n.schema,o=r.space==="svg"?!1:n.settings.omitOptionalTags,s=r.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase()),a=[],l;r.space==="html"&&t.tagName==="svg"&&(n.schema=vn);let c=NW(n,t.properties),u=n.all(r.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=r,u&&(s=!1),(c||!o||!UE(t,e,i))&&(a.push("<",t.tagName,c?" "+c:""),s&&(r.space==="svg"||n.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(u),!s&&(!o||!ku(t,e,i))&&a.push("</"+t.tagName+">"),a.join("")}function NW(t,e){let i=[],n=-1,r;if(e){for(r in e)if(e[r]!==null&&e[r]!==void 0){let o=qW(t,r,e[r]);o&&i.push(o)}}for(;++n<i.length;){let o=t.settings.tightAttributes?i[n].charAt(i[n].length-1):void 0;n!==i.length-1&&o!=='"'&&o!=="'"&&(i[n]+=" ")}return i.join("")}function qW(t,e,i){let n=Ur(t.schema,e),r=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1,s=t.quote,a;if(n.overloadedBoolean&&(i===n.attribute||i==="")?i=!0:(n.boolean||n.overloadedBoolean&&typeof i!="string")&&(i=!!i),i==null||i===!1||typeof i=="number"&&Number.isNaN(i))return"";let l=Vr(n.attribute,Object.assign({},t.settings.characterReferences,{subset:uO.name[r][o]}));return i===!0||(i=Array.isArray(i)?(n.commaSeparated?Xd:Rd)(i,{padLeft:!t.settings.tightCommaSeparatedLists}):String(i),t.settings.collapseEmptyAttributes&&!i)?l:(t.settings.preferUnquoted&&(a=Vr(i,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:uO.unquoted[r][o]}))),a!==i&&(t.settings.quoteSmart&&Ha(i,s)>Ha(i,t.alternative)&&(s=t.alternative),a=s+Vr(i,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?uO.single:uO.double)[r][o],attribute:!0}))+s),l+(a&&"="+a))}function fO(t,e,i,n){return i&&i.type==="element"&&(i.tagName==="script"||i.tagName==="style")?t.value:Vr(t.value,Object.assign({},n.settings.characterReferences,{subset:["<","&"]}))}function NE(t,e,i,n){return n.settings.allowDangerousHtml?t.value:fO(t,e,i,n)}function qE(t,e,i,n){return n.all(t)}var jE=Ka("type",{invalid:jW,unknown:WW,handlers:{comment:XE,doctype:RE,element:ME,raw:NE,root:qE,text:fO}});function jW(t){throw new Error("Expected node, not `"+t+"`")}function WW(t){let e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}var VW={},ZW={},BW=[];function P1(t,e){let i=e||VW,n=i.quote||'"',r=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:YW,all:FW,settings:{omitOptionalTags:i.omitOptionalTags||!1,allowParseErrors:i.allowParseErrors||!1,allowDangerousCharacters:i.allowDangerousCharacters||!1,quoteSmart:i.quoteSmart||!1,preferUnquoted:i.preferUnquoted||!1,tightAttributes:i.tightAttributes||!1,upperDoctype:i.upperDoctype||!1,tightDoctype:i.tightDoctype||!1,bogusComments:i.bogusComments||!1,tightCommaSeparatedLists:i.tightCommaSeparatedLists||!1,tightSelfClosing:i.tightSelfClosing||!1,collapseEmptyAttributes:i.collapseEmptyAttributes||!1,allowDangerousHtml:i.allowDangerousHtml||!1,voids:i.voids||Id,characterReferences:i.characterReferences||ZW,closeSelfClosing:i.closeSelfClosing||!1,closeEmptyElements:i.closeEmptyElements||!1},schema:i.space==="svg"?vn:Mr,quote:n,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function YW(t,e,i){return jE(t,e,i,this)}function FW(t){let e=[],i=t&&t.children||BW,n=-1;for(;++n<i.length;)e[n]=this.one(i[n],n,t);return e.join("")}function hO(t){let e=this,i=F(F({},e.data("settings")),t);e.compiler=n;function n(r){return P1(r,i)}}var HW={inline:["$","$"],display:["$$","$$"]};function GW(t,e){e===void 0&&(e=HW);for(var i=t.querySelectorAll(".katex-mathml + .katex-html"),n=0;n<i.length;n++){var r=i[n];r.remove?r.remove():r.parentNode&&r.parentNode.removeChild(r)}for(var o=t.querySelectorAll(".katex-mathml"),s=0;s<o.length;s++){var a=o[s],l=a.querySelector("annotation");l&&(a.replaceWith?a.replaceWith(l):a.parentNode&&a.parentNode.replaceChild(l,a),l.innerHTML=e.inline[0]+l.innerHTML+e.inline[1])}for(var c=t.querySelectorAll(".katex-display annotation"),u=0;u<c.length;u++){var f=c[u];f.innerHTML=e.display[0]+f.innerHTML.substr(e.inline[0].length,f.innerHTML.length-e.inline[0].length-e.inline[1].length)+e.display[1]}return t}function WE(t){var e=t instanceof Element?t:t.parentElement;return e&&e.closest(".katex")}document.addEventListener("copy",function(t){var e=window.getSelection();if(!(e.isCollapsed||!t.clipboardData)){var i=t.clipboardData,n=e.getRangeAt(0),r=WE(n.startContainer);r&&n.setStartBefore(r);var o=WE(n.endContainer);o&&n.setEndAfter(o);var s=n.cloneContents();if(s.querySelector(".katex-mathml")){var a=Array.prototype.map.call(s.childNodes,l=>l instanceof Text?l.textContent:l.outerHTML).join("");i.setData("text/html",a),i.setData("text/plain",GW(s).textContent),t.preventDefault()}}});function Q1(t,e){let n=(e||{}).force||!1;xi(t,r);function r(o){n?delete o.position:o.position=void 0}}var KW=0,Vi=class{constructor(e,i){this.from=e,this.to=i}},_e=class{constructor(e={}){this.id=KW++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Xt.match(e)),i=>{let n=e(i);return n===void 0?null:[this,n]}}};_e.closedBy=new _e({deserialize:t=>t.split(" ")});_e.openedBy=new _e({deserialize:t=>t.split(" ")});_e.group=new _e({deserialize:t=>t.split(" ")});_e.isolate=new _e({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});_e.contextHash=new _e({perNode:!0});_e.lookAhead=new _e({perNode:!0});_e.mounted=new _e({perNode:!0});var Ns=class{constructor(e,i,n){this.tree=e,this.overlay=i,this.parser=n}static get(e){return e&&e.props&&e.props[_e.mounted.id]}},JW=Object.create(null),Xt=class t{constructor(e,i,n,r=0){this.name=e,this.props=i,this.id=n,this.flags=r}static define(e){let i=e.props&&e.props.length?Object.create(null):JW,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new t(e.name||"",i,e.id,n);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(r)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");i[o[0].id]=o[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let i=this.prop(_e.group);return i?i.indexOf(e)>-1:!1}return this.id==e}static match(e){let i=Object.create(null);for(let n in e)for(let r of n.split(" "))i[r]=e[n];return n=>{for(let r=n.prop(_e.group),o=-1;o<(r?r.length:0);o++){let s=i[o<0?n.name:r[o]];if(s)return s}}}};Xt.none=new Xt("",Object.create(null),0,8);var Zr=class t{constructor(e){this.types=e;for(let i=0;i<e.length;i++)if(e[i].id!=i)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let i=[];for(let n of this.types){let r=null;for(let o of e){let s=o(n);s&&(r||(r=Object.assign({},n.props)),r[s[0].id]=s[1])}i.push(r?new Xt(n.name,r,n.id,n.flags):n)}return new t(i)}},dO=new WeakMap,VE=new WeakMap,ot;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(ot||(ot={}));var Ze=class t{constructor(e,i,n,r,o){if(this.type=e,this.children=i,this.positions=n,this.length=r,this.props=null,o&&o.length){this.props=Object.create(null);for(let[s,a]of o)this.props[typeof s=="number"?s:s.id]=a}}toString(){let e=Ns.get(this);if(e&&!e.overlay)return e.tree.toString();let i="";for(let n of this.children){let r=n.toString();r&&(i&&(i+=","),i+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(i.length?"("+i+")":""):i}cursor(e=0){return new fl(this.topNode,e)}cursorAt(e,i=0,n=0){let r=dO.get(this)||this.topNode,o=new fl(r);return o.moveTo(e,i),dO.set(this,o._tree),o}get topNode(){return new Zi(this,0,0,null)}resolve(e,i=0){let n=Su(dO.get(this)||this.topNode,e,i,!1);return dO.set(this,n),n}resolveInner(e,i=0){let n=Su(VE.get(this)||this.topNode,e,i,!0);return VE.set(this,n),n}resolveStack(e,i=0){return eV(this,e,i)}iterate(e){let{enter:i,leave:n,from:r=0,to:o=this.length}=e,s=e.mode||0,a=(s&ot.IncludeAnonymous)>0;for(let l=this.cursor(s|ot.IncludeAnonymous);;){let c=!1;if(l.from<=o&&l.to>=r&&(!a&&l.type.isAnonymous||i(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let i in this.props)e.push([+i,this.props[i]]);return e}balance(e={}){return this.children.length<=8?this:M1(Xt.none,this.children,this.positions,0,this.children.length,0,this.length,(i,n,r)=>new t(this.type,i,n,r,this.propValues),e.makeTree||((i,n,r)=>new t(Xt.none,i,n,r)))}static build(e){return tV(e)}};Ze.empty=new Ze(Xt.none,[],[],0);var _1=class t{constructor(e,i){this.buffer=e,this.index=i}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new t(this.buffer,this.index)}},Zo=class t{constructor(e,i,n){this.buffer=e,this.length=i,this.set=n}get type(){return Xt.none}toString(){let e=[];for(let i=0;i<this.buffer.length;)e.push(this.childString(i)),i=this.buffer[i+3];return e.join(",")}childString(e){let i=this.buffer[e],n=this.buffer[e+3],r=this.set.types[i],o=r.name;if(/\W/.test(o)&&!r.isError&&(o=JSON.stringify(o)),e+=4,n==e)return o;let s=[];for(;e<n;)s.push(this.childString(e)),e=this.buffer[e+3];return o+"("+s.join(",")+")"}findChild(e,i,n,r,o){let{buffer:s}=this,a=-1;for(let l=e;l!=i&&!(KE(o,r,s[l+1],s[l+2])&&(a=l,n>0));l=s[l+3]);return a}slice(e,i,n){let r=this.buffer,o=new Uint16Array(i-e),s=0;for(let a=e,l=0;a<i;){o[l++]=r[a++],o[l++]=r[a++]-n;let c=o[l++]=r[a++]-n;o[l++]=r[a++]-e,s=Math.max(s,c)}return new t(o,s,this.set)}};function KE(t,e,i,n){switch(t){case-2:return i<e;case-1:return n>=e&&i<e;case 0:return i<e&&n>e;case 1:return i<=e&&n>e;case 2:return n>e;case 4:return!0}}function Su(t,e,i,n){for(var r;t.from==t.to||(i<1?t.from>=e:t.from>e)||(i>-1?t.to<=e:t.to<e);){let s=!n&&t instanceof Zi&&t.index<0?null:t.parent;if(!s)return t;t=s}let o=n?0:ot.IgnoreOverlays;if(n)for(let s=t,a=s.parent;a;s=a,a=s.parent)s instanceof Zi&&s.index<0&&((r=a.enter(e,i,o))===null||r===void 0?void 0:r.from)!=s.from&&(t=a);for(;;){let s=t.enter(e,i,o);if(!s)return t;t=s}}var pO=class{cursor(e=0){return new fl(this,e)}getChild(e,i=null,n=null){let r=ZE(this,e,i,n);return r.length?r[0]:null}getChildren(e,i=null,n=null){return ZE(this,e,i,n)}resolve(e,i=0){return Su(this,e,i,!1)}resolveInner(e,i=0){return Su(this,e,i,!0)}matchContext(e){return A1(this.parent,e)}enterUnfinishedNodesBefore(e){let i=this.childBefore(e),n=this;for(;i;){let r=i.lastChild;if(!r||r.to!=i.to)break;r.type.isError&&r.from==r.to?(n=i,i=r.prevSibling):i=r}return n}get node(){return this}get next(){return this.parent}},Zi=class t extends pO{constructor(e,i,n,r){super(),this._tree=e,this.from=i,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,i,n,r,o=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,c=i>0?a.length:-1;e!=c;e+=i){let u=a[e],f=l[e]+s.from;if(KE(r,n,f,f+u.length)){if(u instanceof Zo){if(o&ot.ExcludeBuffers)continue;let d=u.findChild(0,u.buffer.length,i,n-f,r);if(d>-1)return new qs(new $1(s,u,e,f),null,d)}else if(o&ot.IncludeAnonymous||!u.type.isAnonymous||U1(u)){let d;if(!(o&ot.IgnoreMounts)&&(d=Ns.get(u))&&!d.overlay)return new t(d.tree,f,e,s);let O=new t(u,f,e,s);return o&ot.IncludeAnonymous||!O.type.isAnonymous?O:O.nextChild(i<0?u.children.length-1:0,i,n,r)}}}if(o&ot.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+i:e=i<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,i,n=0){let r;if(!(n&ot.IgnoreOverlays)&&(r=Ns.get(this._tree))&&r.overlay){let o=e-this.from;for(let{from:s,to:a}of r.overlay)if((i>0?s<=o:s<o)&&(i<0?a>=o:a>o))return new t(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,i,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function ZE(t,e,i,n){let r=t.cursor(),o=[];if(!r.firstChild())return o;if(i!=null){for(let s=!1;!s;)if(s=r.type.is(i),!r.nextSibling())return o}for(;;){if(n!=null&&r.type.is(n))return o;if(r.type.is(e)&&o.push(r.node),!r.nextSibling())return n==null?o:[]}}function A1(t,e,i=e.length-1){for(let n=t;i>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[i]&&e[i]!=n.name)return!1;i--}}return!0}var $1=class{constructor(e,i,n,r){this.parent=e,this.buffer=i,this.index=n,this.start=r}},qs=class t extends pO{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,i,n){super(),this.context=e,this._parent=i,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,i,n){let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],e,i-this.context.start,n);return o<0?null:new t(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,i,n=0){if(n&ot.ExcludeBuffers)return null;let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],i>0?1:-1,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,i=e.buffer[this.index+3];return i<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,i):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,i=this._parent?this._parent.index+4:0;return this.index==i?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(i,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],i=[],{buffer:n}=this.context,r=this.index+4,o=n.buffer[this.index+3];if(o>r){let s=n.buffer[this.index+1];e.push(n.slice(r,o,s)),i.push(0)}return new Ze(this.type,e,i,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function JE(t){if(!t.length)return null;let e=0,i=t[0];for(let o=1;o<t.length;o++){let s=t[o];(s.from>i.from||s.to<i.to)&&(i=s,e=o)}let n=i instanceof Zi&&i.index<0?null:i.parent,r=t.slice();return n?r[e]=n:r.splice(e,1),new X1(r,i)}var X1=class{constructor(e,i){this.heads=e,this.node=i}get next(){return JE(this.heads)}};function eV(t,e,i){let n=t.resolveInner(e,i),r=null;for(let o=n instanceof Zi?n:n.context.parent;o;o=o.parent)if(o.index<0){let s=o.parent;(r||(r=[n])).push(s.resolve(e,i)),o=s}else{let s=Ns.get(o.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let a=new Zi(s.tree,s.overlay[0].from+o.from,-1,o);(r||(r=[n])).push(Su(a,e,i,!1))}}return r?JE(r):n}var fl=class{get name(){return this.type.name}constructor(e,i=0){if(this.mode=i,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Zi)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,i){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=i||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return e?e instanceof Zi?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,i,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,i,n,this.mode));let{buffer:r}=this.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e,i-this.buffer.start,n);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,i,n=this.mode){return this.buffer?n&ot.ExcludeBuffers?!1:this.enterChild(1,e,i):this.yield(this._tree.enter(e,i,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ot.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&ot.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:i}=this.buffer,n=this.stack.length-1;if(e<0){let r=n<0?0:this.stack[n]+4;if(this.index!=r)return this.yieldBuf(i.findChild(r,this.index,-1,0,4))}else{let r=i.buffer[this.index+3];if(r<(n<0?i.buffer.length:i.buffer[this.stack[n]+3]))return this.yieldBuf(r)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let i,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(r.buffer.buffer[o+3]<this.index)return!1;({index:i,parent:n}=r)}else({index:i,_parent:n}=this._tree);for(;n;{index:i,_parent:n}=n)if(i>-1)for(let o=i+e,s=e<0?-1:n._tree.children.length;o!=s;o+=e){let a=n._tree.children[o];if(this.mode&ot.IncludeAnonymous||a instanceof Zo||!a.type.isAnonymous||U1(a))return!1}return!0}move(e,i){if(i&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,i=0){for(;(this.from==this.to||(i<1?this.from>=e:this.from>e)||(i>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,i););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,i=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,o=this.stack.length;o>=0;){for(let s=e;s;s=s._parent)if(s.index==r){if(r==this.index)return s;i=s,n=o+1;break e}r=this.stack[--o]}for(let r=n;r<this.stack.length;r++)i=new qs(this.buffer,i,this.stack[r]);return this.bufferNode=new qs(this.buffer,i,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,i){for(let n=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;r&&i&&i(this),r=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return A1(this.node.parent,e);let{buffer:i}=this.buffer,{types:n}=i.set;for(let r=e.length-1,o=this.stack.length-1;r>=0;o--){if(o<0)return A1(this._tree,e,r);let s=n[i.buffer[this.stack[o]]];if(!s.isAnonymous){if(e[r]&&e[r]!=s.name)return!1;r--}}return!0}};function U1(t){return t.children.some(e=>e instanceof Zo||!e.type.isAnonymous||U1(e))}function tV(t){var e;let{buffer:i,nodeSet:n,maxBufferLength:r=1024,reused:o=[],minRepeatType:s=n.types.length}=t,a=Array.isArray(i)?new _1(i,i.length):i,l=n.types,c=0,u=0;function f(z,$,X,Y,K,N){let{id:te,start:oe,end:re,size:de}=a,pe=u,ve=c;for(;de<0;)if(a.next(),de==-1){let W=o[te];X.push(W),Y.push(oe-z);return}else if(de==-3){c=te;return}else if(de==-4){u=te;return}else throw new RangeError(`Unrecognized record size: ${de}`);let j=l[te],ue,Z,C=oe-z;if(re-oe<=r&&(Z=v(a.pos-$,K))){let W=new Uint16Array(Z.size-Z.skip),se=a.pos-Z.size,D=W.length;for(;a.pos>se;)D=w(Z.start,W,D);ue=new Zo(W,re-Z.start,n),C=Z.start-z}else{let W=a.pos-de;a.next();let se=[],D=[],Ne=te>=s?te:-1,We=0,Ve=re;for(;a.pos>W;)Ne>=0&&a.id==Ne&&a.size>=0?(a.end<=Ve-r&&(m(se,D,oe,We,a.end,Ve,Ne,pe,ve),We=se.length,Ve=a.end),a.next()):N>2500?d(oe,W,se,D):f(oe,W,se,D,Ne,N+1);if(Ne>=0&&We>0&&We<se.length&&m(se,D,oe,We,oe,Ve,Ne,pe,ve),se.reverse(),D.reverse(),Ne>-1&&We>0){let Ct=O(j,ve);ue=M1(j,se,D,0,se.length,0,re-oe,Ct,Ct)}else ue=x(j,se,D,re-oe,pe-re,ve)}X.push(ue),Y.push(C)}function d(z,$,X,Y){let K=[],N=0,te=-1;for(;a.pos>$;){let{id:oe,start:re,end:de,size:pe}=a;if(pe>4)a.next();else{if(te>-1&&re<te)break;te<0&&(te=de-r),K.push(oe,re,de),N++,a.next()}}if(N){let oe=new Uint16Array(N*4),re=K[K.length-2];for(let de=K.length-3,pe=0;de>=0;de-=3)oe[pe++]=K[de],oe[pe++]=K[de+1]-re,oe[pe++]=K[de+2]-re,oe[pe++]=pe;X.push(new Zo(oe,K[2]-re,n)),Y.push(re-z)}}function O(z,$){return(X,Y,K)=>{let N=0,te=X.length-1,oe,re;if(te>=0&&(oe=X[te])instanceof Ze){if(!te&&oe.type==z&&oe.length==K)return oe;(re=oe.prop(_e.lookAhead))&&(N=Y[te]+oe.length+re)}return x(z,X,Y,K,N,$)}}function m(z,$,X,Y,K,N,te,oe,re){let de=[],pe=[];for(;z.length>Y;)de.push(z.pop()),pe.push($.pop()+X-K);z.push(x(n.types[te],de,pe,N-K,oe-N,re)),$.push(K-X)}function x(z,$,X,Y,K,N,te){if(N){let oe=[_e.contextHash,N];te=te?[oe].concat(te):[oe]}if(K>25){let oe=[_e.lookAhead,K];te=te?[oe].concat(te):[oe]}return new Ze(z,$,X,Y,te)}function v(z,$){let X=a.fork(),Y=0,K=0,N=0,te=X.end-r,oe={size:0,start:0,skip:0};e:for(let re=X.pos-z;X.pos>re;){let de=X.size;if(X.id==$&&de>=0){oe.size=Y,oe.start=K,oe.skip=N,N+=4,Y+=4,X.next();continue}let pe=X.pos-de;if(de<0||pe<re||X.start<te)break;let ve=X.id>=s?4:0,j=X.start;for(X.next();X.pos>pe;){if(X.size<0)if(X.size==-3)ve+=4;else break e;else X.id>=s&&(ve+=4);X.next()}K=j,Y+=de,N+=ve}return($<0||Y==z)&&(oe.size=Y,oe.start=K,oe.skip=N),oe.size>4?oe:void 0}function w(z,$,X){let{id:Y,start:K,end:N,size:te}=a;if(a.next(),te>=0&&Y<s){let oe=X;if(te>4){let re=a.pos-(te-4);for(;a.pos>re;)X=w(z,$,X)}$[--X]=oe,$[--X]=N-z,$[--X]=K-z,$[--X]=Y}else te==-3?c=Y:te==-4&&(u=Y);return X}let T=[],Q=[];for(;a.pos>0;)f(t.start||0,t.bufferStart||0,T,Q,-1,0);let I=(e=t.length)!==null&&e!==void 0?e:T.length?Q[0]+T[0].length:0;return new Ze(l[t.topID],T.reverse(),Q.reverse(),I)}var BE=new WeakMap;function OO(t,e){if(!t.isAnonymous||e instanceof Zo||e.type!=t)return 1;let i=BE.get(e);if(i==null){i=1;for(let n of e.children){if(n.type!=t||!(n instanceof Ze)){i=1;break}i+=OO(t,n)}BE.set(e,i)}return i}function M1(t,e,i,n,r,o,s,a,l){let c=0;for(let m=n;m<r;m++)c+=OO(t,e[m]);let u=Math.ceil(c*1.5/8),f=[],d=[];function O(m,x,v,w,T){for(let Q=v;Q<w;){let I=Q,z=x[Q],$=OO(t,m[Q]);for(Q++;Q<w;Q++){let X=OO(t,m[Q]);if($+X>=u)break;$+=X}if(Q==I+1){if($>u){let X=m[I];O(X.children,X.positions,0,X.children.length,x[I]+T);continue}f.push(m[I])}else{let X=x[Q-1]+m[Q-1].length-z;f.push(M1(t,m,x,I,Q,z,X,null,l))}d.push(z+T-o)}}return O(e,i,n,r,0),(a||l)(f,d,s)}var Bo=class{constructor(){this.map=new WeakMap}setBuffer(e,i,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(i,n)}getBuffer(e,i){let n=this.map.get(e);return n&&n.get(i)}set(e,i){e instanceof qs?this.setBuffer(e.context.buffer,e.index,i):e instanceof Zi&&this.map.set(e.tree,i)}get(e){return e instanceof qs?this.getBuffer(e.context.buffer,e.index):e instanceof Zi?this.map.get(e.tree):void 0}cursorSet(e,i){e.buffer?this.setBuffer(e.buffer.buffer,e.index,i):this.map.set(e.tree,i)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},Br=class t{constructor(e,i,n,r,o=!1,s=!1){this.from=e,this.to=i,this.tree=n,this.offset=r,this.open=(o?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,i=[],n=!1){let r=[new t(0,e.length,e,0,!1,n)];for(let o of i)o.to>e.length&&r.push(o);return r}static applyChanges(e,i,n=128){if(!i.length)return e;let r=[],o=1,s=e.length?e[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<i.length?i[a]:null,f=u?u.fromA:1e9;if(f-l>=n)for(;s&&s.from<f;){let d=s;if(l>=d.from||f<=d.to||c){let O=Math.max(d.from,l)-c,m=Math.min(d.to,f)-c;d=O>=m?null:new t(O,m,d.tree,d.offset+c,a>0,!!u)}if(d&&r.push(d),s.to>f)break;s=o<e.length?e[o++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return r}},Yr=class{startParse(e,i,n){return typeof e=="string"&&(e=new R1(e)),n=n?n.length?n.map(r=>new Vi(r.from,r.to)):[new Vi(0,0)]:[new Vi(0,e.length)],this.createParse(e,i||[],n)}parse(e,i,n){let r=this.startParse(e,i,n);for(;;){let o=r.advance();if(o)return o}}},R1=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,i){return this.string.slice(e,i)}};function Tu(t){return(e,i,n,r)=>new D1(e,t,i,n,r)}var mO=class{constructor(e,i,n,r,o){this.parser=e,this.parse=i,this.overlay=n,this.target=r,this.from=o}};function YE(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}var L1=class{constructor(e,i,n,r,o,s,a){this.parser=e,this.predicate=i,this.mounts=n,this.index=r,this.start=o,this.target=s,this.prev=a,this.depth=0,this.ranges=[]}},I1=new _e({perNode:!0}),D1=class{constructor(e,i,n,r,o){this.nest=i,this.input=n,this.fragments=r,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new Ze(n.type,n.children,n.positions,n.length,n.propValues.concat([[I1,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],i=e.parse.advance();if(i){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[_e.mounted.id]=new Ns(i,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let i=this.innerDone;i<this.inner.length;i++)this.inner[i].from<e&&(e=Math.min(e,this.inner[i].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let i=this.innerDone;i<this.inner.length;i++)this.inner[i].parse.stopAt(e)}startInner(){let e=new z1(this.fragments),i=null,n=null,r=new fl(new Zi(this.baseTree,this.ranges[0].from,0,null),ot.IncludeAnonymous|ot.IgnoreMounts);e:for(let o,s;;){let a=!0,l;if(this.stoppedAt!=null&&r.from>=this.stoppedAt)a=!1;else if(e.hasNode(r)){if(i){let c=i.mounts.find(u=>u.frag.from<=r.from&&u.frag.to>=r.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let f=u.from+c.pos,d=u.to+c.pos;f>=r.from&&d<=r.to&&!i.ranges.some(O=>O.from<d&&O.to>f)&&i.ranges.push({from:f,to:d})}}a=!1}else if(n&&(s=iV(n.ranges,r.from,r.to)))a=s!=2;else if(!r.type.isAnonymous&&(o=this.nest(r,this.input))&&(r.from<r.to||!o.overlay)){r.tree||nV(r);let c=e.findMounts(r.from,o.parser);if(typeof o.overlay=="function")i=new L1(o.parser,o.overlay,c,this.inner.length,r.from,r.tree,i);else{let u=HE(this.ranges,o.overlay||(r.from<r.to?[new Vi(r.from,r.to)]:[]));u.length&&YE(u),(u.length||!o.overlay)&&this.inner.push(new mO(o.parser,u.length?o.parser.startParse(this.input,GE(c,u),u):o.parser.startParse(""),o.overlay?o.overlay.map(f=>new Vi(f.from-r.from,f.to-r.from)):null,r.tree,u.length?u[0].from:r.from)),o.overlay?u.length&&(n={ranges:u,depth:0,prev:n}):a=!1}}else if(i&&(l=i.predicate(r))&&(l===!0&&(l=new Vi(r.from,r.to)),l.from<l.to)){let c=i.ranges.length-1;c>=0&&i.ranges[c].to==l.from?i.ranges[c]={from:i.ranges[c].from,to:l.to}:i.ranges.push(l)}if(a&&r.firstChild())i&&i.depth++,n&&n.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(i&&!--i.depth){let c=HE(this.ranges,i.ranges);c.length&&(YE(c),this.inner.splice(i.index,0,new mO(i.parser,i.parser.startParse(this.input,GE(i.mounts,c),c),i.ranges.map(u=>new Vi(u.from-i.start,u.to-i.start)),i.target,c[0].from))),i=i.prev}n&&!--n.depth&&(n=n.prev)}}}};function iV(t,e,i){for(let n of t){if(n.from>=i)break;if(n.to>e)return n.from<=e&&n.to>=i?2:1}return 0}function FE(t,e,i,n,r,o){if(e<i){let s=t.buffer[e+1];n.push(t.slice(e,i,s)),r.push(s-o)}}function nV(t){let{node:e}=t,i=[],n=e.context.buffer;do i.push(t.index),t.parent();while(!t.tree);let r=t.tree,o=r.children.indexOf(n),s=r.children[o],a=s.buffer,l=[o];function c(u,f,d,O,m,x){let v=i[x],w=[],T=[];FE(s,u,v,w,T,O);let Q=a[v+1],I=a[v+2];l.push(w.length);let z=x?c(v+4,a[v+3],s.set.types[a[v]],Q,I-Q,x-1):e.toTree();return w.push(z),T.push(Q-O),FE(s,a[v+3],f,w,T,O),new Ze(d,w,T,m)}r.children[o]=c(0,a.length,Xt.none,0,s.length,i.length-1);for(let u of l){let f=t.tree.children[u],d=t.tree.positions[u];t.yield(new Zi(f,d+t.from,u,t._tree))}}var gO=class{constructor(e,i){this.offset=i,this.done=!1,this.cursor=e.cursor(ot.IncludeAnonymous|ot.IgnoreMounts)}moveTo(e){let{cursor:i}=this,n=e-this.offset;for(;!this.done&&i.from<n;)i.to>=e&&i.enter(n,1,ot.IgnoreOverlays|ot.ExcludeBuffers)||i.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let i=this.cursor.tree;;){if(i==e.tree)return!0;if(i.children.length&&i.positions[0]==0&&i.children[0]instanceof Ze)i=i.children[0];else break}return!1}},z1=class{constructor(e){var i;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(i=n.tree.prop(I1))!==null&&i!==void 0?i:n.to,this.inner=new gO(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let i=this.curFrag=this.fragments[this.fragI];this.curTo=(e=i.tree.prop(I1))!==null&&e!==void 0?e:i.to,this.inner=new gO(i.tree,-i.offset)}}findMounts(e,i){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let o=this.inner.cursor.node;o;o=o.parent){let s=(n=o.tree)===null||n===void 0?void 0:n.prop(_e.mounted);if(s&&s.parser==i)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=o.to)break;l.tree==this.curFrag.tree&&r.push({frag:l,pos:o.from-l.offset,mount:s})}}}return r}};function HE(t,e){let i=null,n=e;for(let r=1,o=0;r<t.length;r++){let s=t[r-1].to,a=t[r].from;for(;o<n.length;o++){let l=n[o];if(l.from>=a)break;l.to<=s||(i||(n=i=e.slice()),l.from<s?(i[o]=new Vi(l.from,s),l.to>a&&i.splice(o+1,0,new Vi(a,l.to))):l.to>a?i[o--]=new Vi(a,l.to):i.splice(o--,1))}}return n}function rV(t,e,i,n){let r=0,o=0,s=!1,a=!1,l=-1e9,c=[];for(;;){let u=r==t.length?1e9:s?t[r].to:t[r].from,f=o==e.length?1e9:a?e[o].to:e[o].from;if(s!=a){let d=Math.max(l,i),O=Math.min(u,f,n);d<O&&c.push(new Vi(d,O))}if(l=Math.min(u,f),l==1e9)break;u==l&&(s?(s=!1,r++):s=!0),f==l&&(a?(a=!1,o++):a=!0)}return c}function GE(t,e){let i=[];for(let{pos:n,mount:r,frag:o}of t){let s=n+(r.overlay?r.overlay[0].from:0),a=s+r.tree.length,l=Math.max(o.from,s),c=Math.min(o.to,a);if(r.overlay){let u=r.overlay.map(d=>new Vi(d.from+n,d.to+n)),f=rV(e,u,l,c);for(let d=0,O=l;;d++){let m=d==f.length,x=m?c:f[d].from;if(x>O&&i.push(new Br(O,x,r.tree,-s,o.from>=O||o.openStart,o.to<=x||o.openEnd)),m)break;O=f[d].to}}else i.push(new Br(l,c,r.tree,-s,o.from>=s||o.openStart,o.to<=a||o.openEnd))}return i}var q1=[],nC=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,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i+t[e])})();function oV(t){if(t<768)return!1;for(let e=0,i=q1.length;;){let n=e+i>>1;if(t<q1[n])i=n;else if(t>=nC[n])e=n+1;else return!0;if(e==i)return!1}}function eC(t){return t>=127462&&t<=127487}var tC=8205;function rC(t,e,i=!0,n=!0){return(i?oC:sV)(t,e,n)}function oC(t,e,i){if(e==t.length)return e;e&&sC(t.charCodeAt(e))&&aC(t.charCodeAt(e-1))&&e--;let n=N1(t,e);for(e+=iC(n);e<t.length;){let r=N1(t,e);if(n==tC||r==tC||i&&oV(r))e+=iC(r),n=r;else if(eC(r)){let o=0,s=e-2;for(;s>=0&&eC(N1(t,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function sV(t,e,i){for(;e>0;){let n=oC(t,e-2,i);if(n<e)return n;e--}return 0}function N1(t,e){let i=t.charCodeAt(e);if(!aC(i)||e+1==t.length)return i;let n=t.charCodeAt(e+1);return sC(n)?(i-55296<<10)+(n-56320)+65536:i}function sC(t){return t>=56320&&t<57344}function aC(t){return t>=55296&&t<56320}function iC(t){return t<65536?1:2}var Fe=class t{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,i,n){[e,i]=ml(this,e,i);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(i,this.length,r,1),dl.from(r,this.length-(i-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,i=this.length){[e,i]=ml(this,e,i);let n=[];return this.decompose(e,i,n,0),dl.from(n,i-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let i=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new Vs(this),o=new Vs(e);for(let s=i,a=i;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new Vs(this,e)}iterRange(e,i=this.length){return new wO(this,e,i)}iterLines(e,i){let n;if(e==null)n=this.iter();else{i==null&&(i=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,i==this.lines+1?this.length:i<=1?0:this.line(i-1).to))}return new kO(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?t.empty:e.length<=32?new nn(e):dl.from(nn.split(e,[]))}},nn=class t extends Fe{constructor(e,i=aV(e)){super(),this.text=e,this.length=i}get lines(){return this.text.length}get children(){return null}lineInner(e,i,n,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((i?n:a)>=e)return new W1(r,a,n,s);r=a+1,n++}}decompose(e,i,n,r){let o=e<=0&&i>=this.length?this:new t(lC(this.text,e,i),Math.min(i,this.length)-Math.max(0,e));if(r&1){let s=n.pop(),a=vO(o.text,s.text.slice(),0,o.length);if(a.length<=32)n.push(new t(a,s.length+o.length));else{let l=a.length>>1;n.push(new t(a.slice(0,l)),new t(a.slice(l)))}}else n.push(o)}replace(e,i,n){if(!(n instanceof t))return super.replace(e,i,n);[e,i]=ml(this,e,i);let r=vO(this.text,vO(n.text,lC(this.text,0,e)),i),o=this.length+n.length-(i-e);return r.length<=32?new t(r,o):dl.from(t.split(r,[]),o)}sliceString(e,i=this.length,n=`
|
||
`){[e,i]=ml(this,e,i);let r="";for(let o=0,s=0;o<=i&&s<this.text.length;s++){let a=this.text[s],l=o+a.length;o>e&&s&&(r+=n),e<l&&i>o&&(r+=a.slice(Math.max(0,e-o),i-o)),o=l+1}return r}flatten(e){for(let i of this.text)e.push(i)}scanIdentical(){return 0}static split(e,i){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,n.length==32&&(i.push(new t(n,r)),n=[],r=-1);return r>-1&&i.push(new t(n,r)),i}},dl=class t extends Fe{constructor(e,i){super(),this.children=e,this.length=i,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,i,n,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,l=n+s.lines-1;if((i?l:a)>=e)return s.lineInner(e,i,n,r);r=a+1,n=l+1}}decompose(e,i,n,r){for(let o=0,s=0;s<=i&&o<this.children.length;o++){let a=this.children[o],l=s+a.length;if(e<=l&&i>=s){let c=r&((s<=e?1:0)|(l>=i?2:0));s>=e&&l<=i&&!c?n.push(a):a.decompose(e-s,i-s,n,c)}s=l+1}}replace(e,i,n){if([e,i]=ml(this,e,i),n.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e>=o&&i<=a){let l=s.replace(e-o,i-o,n),c=this.lines-s.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let u=this.children.slice();return u[r]=l,new t(u,this.length-(i-e)+n.length)}return super.replace(o,a,l)}o=a+1}return super.replace(e,i,n)}sliceString(e,i=this.length,n=`
|
||
`){[e,i]=ml(this,e,i);let r="";for(let o=0,s=0;o<this.children.length&&s<=i;o++){let a=this.children[o],l=s+a.length;s>e&&o&&(r+=n),e<l&&i>s&&(r+=a.sliceString(e-s,i-s,n)),s=l+1}return r}flatten(e){for(let i of this.children)i.flatten(e)}scanIdentical(e,i){if(!(e instanceof t))return 0;let n=0,[r,o,s,a]=i>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=i,o+=i){if(r==s||o==a)return n;let l=this.children[r],c=e.children[o];if(l!=c)return n+l.scanIdentical(c,i);n+=l.length+1}}static from(e,i=e.reduce((n,r)=>n+r.length+1,-1)){let n=0;for(let O of e)n+=O.lines;if(n<32){let O=[];for(let m of e)m.flatten(O);return new nn(O,i)}let r=Math.max(32,n>>5),o=r<<1,s=r>>1,a=[],l=0,c=-1,u=[];function f(O){let m;if(O.lines>o&&O instanceof t)for(let x of O.children)f(x);else O.lines>s&&(l>s||!l)?(d(),a.push(O)):O instanceof nn&&l&&(m=u[u.length-1])instanceof nn&&O.lines+m.lines<=32?(l+=O.lines,c+=O.length+1,u[u.length-1]=new nn(m.text.concat(O.text),m.length+1+O.length)):(l+O.lines>r&&d(),l+=O.lines,c+=O.length+1,u.push(O))}function d(){l!=0&&(a.push(u.length==1?u[0]:t.from(u,c)),c=-1,l=u.length=0)}for(let O of e)f(O);return d(),a.length==1?a[0]:new t(a,i)}};Fe.empty=new nn([""],0);function aV(t){let e=-1;for(let i of t)e+=i.length+1;return e}function vO(t,e,i=0,n=1e9){for(let r=0,o=0,s=!0;o<t.length&&r<=n;o++){let a=t[o],l=r+a.length;l>=i&&(l>n&&(a=a.slice(0,n-r)),r<i&&(a=a.slice(i-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=l+1}return e}function lC(t,e,i){return vO(t,[""],e,i)}var Vs=class{constructor(e,i=1){this.dir=i,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[i>0?1:(e instanceof nn?e.text.length:e.children.length)<<1]}nextInner(e,i){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],s=o>>1,a=r instanceof nn?r.text.length:r.children.length;if(s==(i>0?a:0)){if(n==0)return this.done=!0,this.value="",this;i>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(i>0?0:1)){if(this.offsets[n]+=i,e==0)return this.lineBreak=!0,this.value=`
|
||
`,this;e--}else if(r instanceof nn){let l=r.text[s+(i<0?-1:0)];if(this.offsets[n]+=i,l.length>Math.max(0,e))return this.value=e==0?l:i>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=r.children[s+(i<0?-1:0)];e>l.length?(e-=l.length,this.offsets[n]+=i):(i<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(i>0?1:(l instanceof nn?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},wO=class{constructor(e,i,n){this.value="",this.done=!1,this.cursor=new Vs(e,i>n?-1:1),this.pos=i>n?e.length:0,this.from=Math.min(i,n),this.to=Math.max(i,n)}nextInner(e,i){if(i<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,i<0?this.pos-this.to:this.from-this.pos);let n=i<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*i,this.value=r.length<=n?r:i<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},kO=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:i,lineBreak:n,value:r}=this.inner.next(e);return i&&this.afterBreak?(this.value="",this.afterBreak=!1):i?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol!="undefined"&&(Fe.prototype[Symbol.iterator]=function(){return this.iter()},Vs.prototype[Symbol.iterator]=wO.prototype[Symbol.iterator]=kO.prototype[Symbol.iterator]=function(){return this});var W1=class{constructor(e,i,n,r){this.from=e,this.to=i,this.number=n,this.text=r}get length(){return this.to-this.from}};function ml(t,e,i){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,i))]}function Ft(t,e,i=!0,n=!0){return rC(t,e,i,n)}function lV(t){return t>=56320&&t<57344}function cV(t){return t>=55296&&t<56320}function hi(t,e){let i=t.charCodeAt(e);if(!cV(i)||e+1==t.length)return i;let n=t.charCodeAt(e+1);return lV(n)?(i-55296<<10)+(n-56320)+65536:i}function Au(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function rn(t){return t<65536?1:2}var V1=/\r\n?|\n/,Qt=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Qt||(Qt={})),Fr=class t{constructor(e){this.sections=e}get length(){let e=0;for(let i=0;i<this.sections.length;i+=2)e+=this.sections[i];return e}get newLength(){let e=0;for(let i=0;i<this.sections.length;i+=2){let n=this.sections[i+1];e+=n<0?this.sections[i]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let i=0,n=0,r=0;i<this.sections.length;){let o=this.sections[i++],s=this.sections[i++];s<0?(e(n,r,o),r+=o):r+=s,n+=o}}iterChangedRanges(e,i=!1){Z1(this,e,i)}get invertedDesc(){let e=[];for(let i=0;i<this.sections.length;){let n=this.sections[i++],r=this.sections[i++];r<0?e.push(n,r):e.push(r,n)}return new t(e)}composeDesc(e){return this.empty?e:e.empty?this:dC(this,e)}mapDesc(e,i=!1){return e.empty?this:B1(this,e,i)}mapPos(e,i=-1,n=Qt.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],l=this.sections[s++],c=r+a;if(l<0){if(c>e)return o+(e-r);o+=a}else{if(n!=Qt.Simple&&c>=e&&(n==Qt.TrackDel&&r<e&&c>e||n==Qt.TrackBefore&&r<e||n==Qt.TrackAfter&&c>e))return null;if(c>e||c==e&&i<0&&!a)return e==r||i<0?o:o+l;o+=l}r=c}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,i=e){for(let n=0,r=0;n<this.sections.length&&r<=i;){let o=this.sections[n++],s=this.sections[n++],a=r+o;if(s>=0&&r<=i&&a>=e)return r<e&&a>i?"cover":!0;r=a}return!1}toString(){let e="";for(let i=0;i<this.sections.length;){let n=this.sections[i++],r=this.sections[i++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(i=>typeof i!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(e)}static create(e){return new t(e)}},$i=class t extends Fr{constructor(e,i){super(e),this.inserted=i}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Z1(this,(i,n,r,o,s)=>e=e.replace(r,r+(n-i),s),!1),e}mapDesc(e,i=!1){return B1(this,e,i,!0)}invert(e){let i=this.sections.slice(),n=[];for(let r=0,o=0;r<i.length;r+=2){let s=i[r],a=i[r+1];if(a>=0){i[r]=a,i[r+1]=s;let l=r>>1;for(;n.length<l;)n.push(Fe.empty);n.push(s?e.slice(o,o+s):Fe.empty)}o+=s}return new t(i,n)}compose(e){return this.empty?e:e.empty?this:dC(this,e,!0)}map(e,i=!1){return e.empty?this:B1(this,e,i,!0)}iterChanges(e,i=!1){Z1(this,e,i)}get desc(){return Fr.create(this.sections)}filter(e){let i=[],n=[],r=[],o=new Zs(this);e:for(let s=0,a=0;;){let l=s==e.length?1e9:e[s++];for(;a<l||a==l&&o.len==0;){if(o.done)break e;let u=Math.min(o.len,l-a);ki(r,u,-1);let f=o.ins==-1?-1:o.off==0?o.ins:0;ki(i,u,f),f>0&&Yo(n,i,o.text),o.forward(u),a+=u}let c=e[s++];for(;a<c;){if(o.done)break e;let u=Math.min(o.len,c-a);ki(i,u,-1),ki(r,u,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(u),a+=u}}return{changes:new t(i,n),filtered:Fr.create(r)}}toJSON(){let e=[];for(let i=0;i<this.sections.length;i+=2){let n=this.sections[i],r=this.sections[i+1];r<0?e.push(n):r==0?e.push([n]):e.push([n].concat(this.inserted[i>>1].toJSON()))}return e}static of(e,i,n){let r=[],o=[],s=0,a=null;function l(u=!1){if(!u&&!r.length)return;s<i&&ki(r,i-s,-1);let f=new t(r,o);a=a?a.compose(f.map(a)):f,r=[],o=[],s=0}function c(u){if(Array.isArray(u))for(let f of u)c(f);else if(u instanceof t){if(u.length!=i)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${i})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:f,to:d=f,insert:O}=u;if(f>d||f<0||d>i)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${i})`);let m=O?typeof O=="string"?Fe.of(O.split(n||V1)):O:Fe.empty,x=m.length;if(f==d&&x==0)return;f<s&&l(),f>s&&ki(r,f-s,-1),ki(r,d-f,x),Yo(o,r,m),s=d}}return c(e),l(!a),a}static empty(e){return new t(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let i=[],n=[];for(let r=0;r<e.length;r++){let o=e[r];if(typeof o=="number")i.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((s,a)=>a&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)i.push(o[0],0);else{for(;n.length<r;)n.push(Fe.empty);n[r]=Fe.of(o.slice(1)),i.push(o[0],n[r].length)}}}return new t(i,n)}static createSet(e,i){return new t(e,i)}};function ki(t,e,i,n=!1){if(e==0&&i<=0)return;let r=t.length-2;r>=0&&i<=0&&i==t[r+1]?t[r]+=e:r>=0&&e==0&&t[r]==0?t[r+1]+=i:n?(t[r]+=e,t[r+1]+=i):t.push(e,i)}function Yo(t,e,i){if(i.length==0)return;let n=e.length-2>>1;if(n<t.length)t[t.length-1]=t[t.length-1].append(i);else{for(;t.length<n;)t.push(Fe.empty);t.push(i)}}function Z1(t,e,i){let n=t.inserted;for(let r=0,o=0,s=0;s<t.sections.length;){let a=t.sections[s++],l=t.sections[s++];if(l<0)r+=a,o+=a;else{let c=r,u=o,f=Fe.empty;for(;c+=a,u+=l,l&&n&&(f=f.append(n[s-2>>1])),!(i||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];e(r,c,o,u,f),r=c,o=u}}}function B1(t,e,i,n=!1){let r=[],o=n?[]:null,s=new Zs(t),a=new Zs(e);for(let l=-1;;){if(s.done&&a.len||a.done&&s.len)throw new Error("Mismatched change set lengths");if(s.ins==-1&&a.ins==-1){let c=Math.min(s.len,a.len);ki(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(a.len<s.len||a.len==s.len&&!i))){let c=a.len;for(ki(r,a.ins,-1);c;){let u=Math.min(s.len,c);s.ins>=0&&l<s.i&&s.len<=u&&(ki(r,0,s.ins),o&&Yo(o,r,s.text),l=s.i),s.forward(u),c-=u}a.next()}else if(s.ins>=0){let c=0,u=s.len;for(;u;)if(a.ins==-1){let f=Math.min(u,a.len);c+=f,u-=f,a.forward(f)}else if(a.ins==0&&a.len<u)u-=a.len,a.next();else break;ki(r,c,l<s.i?s.ins:0),o&&l<s.i&&Yo(o,r,s.text),l=s.i,s.forward(s.len-u)}else{if(s.done&&a.done)return o?$i.createSet(r,o):Fr.create(r);throw new Error("Mismatched change set lengths")}}}function dC(t,e,i=!1){let n=[],r=i?[]:null,o=new Zs(t),s=new Zs(e);for(let a=!1;;){if(o.done&&s.done)return r?$i.createSet(n,r):Fr.create(n);if(o.ins==0)ki(n,o.len,0,a),o.next();else if(s.len==0&&!s.done)ki(n,0,s.ins,a),r&&Yo(r,n,s.text),s.next();else{if(o.done||s.done)throw new Error("Mismatched change set lengths");{let l=Math.min(o.len2,s.len),c=n.length;if(o.ins==-1){let u=s.ins==-1?-1:s.off?0:s.ins;ki(n,l,u,a),r&&u&&Yo(r,n,s.text)}else s.ins==-1?(ki(n,o.off?0:o.len,l,a),r&&Yo(r,n,o.textBit(l))):(ki(n,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&Yo(r,n,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||n.length>c),o.forward2(l),s.forward(l)}}}}var Zs=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length?Fe.empty:e[i]}textBit(e){let{inserted:i}=this.set,n=this.i-2>>1;return n>=i.length&&!e?Fe.empty:i[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},hl=class t{constructor(e,i,n){this.from=e,this.to=i,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,i=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,i):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new t(n,r,this.flags)}extend(e,i=e){if(e<=this.anchor&&i>=this.anchor)return J.range(e,i);let n=Math.abs(e-this.anchor)>Math.abs(i-this.anchor)?e:i;return J.range(this.anchor,n)}eq(e,i=!1){return this.anchor==e.anchor&&this.head==e.head&&(!i||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return J.range(e.anchor,e.head)}static create(e,i,n){return new t(e,i,n)}},J=class t{constructor(e,i){this.ranges=e,this.mainIndex=i}map(e,i=-1){return e.empty?this:t.create(this.ranges.map(n=>n.map(e,i)),this.mainIndex)}eq(e,i=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],i))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new t([this.main],0)}addRange(e,i=!0){return t.create([e].concat(this.ranges),i?0:this.mainIndex+1)}replaceRange(e,i=this.mainIndex){let n=this.ranges.slice();return n[i]=e,t.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(e.ranges.map(i=>hl.fromJSON(i)),e.main)}static single(e,i=e){return new t([t.range(e,i)],0)}static create(e,i=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let o=e[r];if(o.empty?o.from<=n:o.from<n)return t.normalized(e.slice(),i);n=o.to}return new t(e,i)}static cursor(e,i=0,n,r){return hl.create(e,e,(i==0?0:i<0?8:16)|(n==null?7:Math.min(6,n))|(r!=null?r:16777215)<<6)}static range(e,i,n,r){let o=(n!=null?n:16777215)<<6|(r==null?7:Math.min(6,r));return i<e?hl.create(i,e,48|o):hl.create(e,i,(i>e?8:0)|o)}static normalized(e,i=0){let n=e[i];e.sort((r,o)=>r.from-o.from),i=e.indexOf(n);for(let r=1;r<e.length;r++){let o=e[r],s=e[r-1];if(o.empty?o.from<=s.to:o.from<s.to){let a=s.from,l=Math.max(o.to,s.to);r<=i&&i--,e.splice(--r,2,o.anchor>o.head?t.range(l,a):t.range(a,l))}}return new t(e,i)}};function OC(t,e){for(let i of t.ranges)if(i.to>e)throw new RangeError("Selection points outside of document")}var ny=0,be=class t{constructor(e,i,n,r,o){this.combine=e,this.compareInput=i,this.compare=n,this.isStatic=r,this.id=ny++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new t(e.combine||(i=>i),e.compareInput||((i,n)=>i===n),e.compare||(e.combine?(i,n)=>i===n:ry),!!e.static,e.enables)}of(e){return new Ol([],this,0,e)}compute(e,i){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ol(e,this,1,i)}computeN(e,i){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ol(e,this,2,i)}from(e,i){return i||(i=n=>n),this.compute([e],n=>i(n.field(e)))}};function ry(t,e){return t==e||t.length==e.length&&t.every((i,n)=>i===e[n])}var Ol=class{constructor(e,i,n,r){this.dependencies=e,this.facet=i,this.type=n,this.value=r,this.id=ny++}dynamicSlot(e){var i;let n=this.value,r=this.facet.compareInput,o=this.id,s=e[o]>>1,a=this.type==2,l=!1,c=!1,u=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?c=!0:((i=e[f.id])!==null&&i!==void 0?i:1)&1||u.push(e[f.id]);return{create(f){return f.values[s]=n(f),1},update(f,d){if(l&&d.docChanged||c&&(d.docChanged||d.selection)||Y1(f,u)){let O=n(f);if(a?!cC(O,f.values[s],r):!r(O,f.values[s]))return f.values[s]=O,1}return 0},reconfigure:(f,d)=>{let O,m=d.config.address[o];if(m!=null){let x=EO(d,m);if(this.dependencies.every(v=>v instanceof be?d.facet(v)===f.facet(v):v instanceof Ge?d.field(v,!1)==f.field(v,!1):!0)||(a?cC(O=n(f),x,r):r(O=n(f),x)))return f.values[s]=x,0}else O=n(f);return f.values[s]=O,1}}}};function cC(t,e,i){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!i(t[n],e[n]))return!1;return!0}function Y1(t,e){let i=!1;for(let n of e)Cu(t,n)&1&&(i=!0);return i}function uV(t,e,i){let n=i.map(l=>t[l.id]),r=i.map(l=>l.type),o=n.filter(l=>!(l&1)),s=t[e.id]>>1;function a(l){let c=[];for(let u=0;u<n.length;u++){let f=EO(l,n[u]);if(r[u]==2)for(let d of f)c.push(d);else c.push(f)}return e.combine(c)}return{create(l){for(let c of n)Cu(l,c);return l.values[s]=a(l),1},update(l,c){if(!Y1(l,o))return 0;let u=a(l);return e.compare(u,l.values[s])?0:(l.values[s]=u,1)},reconfigure(l,c){let u=Y1(l,n),f=c.config.facets[e.id],d=c.facet(e);if(f&&!u&&ry(i,f))return l.values[s]=d,0;let O=a(l);return e.compare(O,d)?(l.values[s]=d,0):(l.values[s]=O,1)}}}var bO=be.define({static:!0}),Ge=class t{constructor(e,i,n,r,o){this.id=e,this.createF=i,this.updateF=n,this.compareF=r,this.spec=o,this.provides=void 0}static define(e){let i=new t(ny++,e.create,e.update,e.compare||((n,r)=>n===r),e);return e.provide&&(i.provides=e.provide(i)),i}create(e){let i=e.facet(bO).find(n=>n.field==this);return((i==null?void 0:i.create)||this.createF)(e)}slot(e){let i=e[this.id]>>1;return{create:n=>(n.values[i]=this.create(n),1),update:(n,r)=>{let o=n.values[i],s=this.updateF(o,r);return this.compareF(o,s)?0:(n.values[i]=s,1)},reconfigure:(n,r)=>{let o=n.facet(bO),s=r.facet(bO),a;return(a=o.find(l=>l.field==this))&&a!=s.find(l=>l.field==this)?(n.values[i]=a.create(n),1):r.config.address[this.id]!=null?(n.values[i]=r.field(this),0):(n.values[i]=this.create(n),1)}}}init(e){return[this,bO.of({field:this,create:e})]}get extension(){return this}},js={lowest:4,low:3,default:2,high:1,highest:0};function Eu(t){return e=>new SO(e,t)}var Mt={highest:Eu(js.highest),high:Eu(js.high),default:Eu(js.default),low:Eu(js.low),lowest:Eu(js.lowest)},SO=class{constructor(e,i){this.inner=e,this.prec=i}},Fo=class t{of(e){return new Pu(this,e)}reconfigure(e){return t.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Pu=class{constructor(e,i){this.compartment=e,this.inner=i}},TO=class t{constructor(e,i,n,r,o,s){for(this.base=e,this.compartments=i,this.dynamicSlots=n,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let i=this.address[e.id];return i==null?e.default:this.staticValues[i>>1]}static resolve(e,i,n){let r=[],o=Object.create(null),s=new Map;for(let d of fV(e,i,s))d instanceof Ge?r.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let a=Object.create(null),l=[],c=[];for(let d of r)a[d.id]=c.length<<1,c.push(O=>d.slot(O));let u=n==null?void 0:n.config.facets;for(let d in o){let O=o[d],m=O[0].facet,x=u&&u[d]||[];if(O.every(v=>v.type==0))if(a[m.id]=l.length<<1|1,ry(x,O))l.push(n.facet(m));else{let v=m.combine(O.map(w=>w.value));l.push(n&&m.compare(v,n.facet(m))?n.facet(m):v)}else{for(let v of O)v.type==0?(a[v.id]=l.length<<1|1,l.push(v.value)):(a[v.id]=c.length<<1,c.push(w=>v.dynamicSlot(w)));a[m.id]=c.length<<1,c.push(v=>uV(v,m,O))}}let f=c.map(d=>d(a));return new t(e,s,f,a,l,o)}};function fV(t,e,i){let n=[[],[],[],[],[]],r=new Map;function o(s,a){let l=r.get(s);if(l!=null){if(l<=a)return;let c=n[l].indexOf(s);c>-1&&n[l].splice(c,1),s instanceof Pu&&i.delete(s.compartment)}if(r.set(s,a),Array.isArray(s))for(let c of s)o(c,a);else if(s instanceof Pu){if(i.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(s.compartment)||s.inner;i.set(s.compartment,c),o(c,a)}else if(s instanceof SO)o(s.inner,s.prec);else if(s instanceof Ge)n[a].push(s),s.provides&&o(s.provides,a);else if(s instanceof Ol)n[a].push(s),s.facet.extensions&&o(s.facet.extensions,js.default);else{let c=s.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(c,a)}}return o(t,js.default),n.reduce((s,a)=>s.concat(a))}function Cu(t,e){if(e&1)return 2;let i=e>>1,n=t.status[i];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;t.status[i]=4;let r=t.computeSlot(t,t.config.dynamicSlots[i]);return t.status[i]=2|r}function EO(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}var pC=be.define(),F1=be.define({combine:t=>t.some(e=>e),static:!0}),mC=be.define({combine:t=>t.length?t[0]:void 0,static:!0}),gC=be.define(),bC=be.define(),yC=be.define(),xC=be.define({combine:t=>t.length?t[0]:!1}),Si=class{constructor(e,i){this.type=e,this.value=i}static define(){return new H1}},H1=class{of(e){return new Si(this,e)}},G1=class{constructor(e){this.map=e}of(e){return new Se(this,e)}},Se=class t{constructor(e,i){this.type=e,this.value=i}map(e){let i=this.type.map(this.value,e);return i===void 0?void 0:i==this.value?this:new t(this.type,i)}is(e){return this.type==e}static define(e={}){return new G1(e.map||(i=>i))}static mapEffects(e,i){if(!e.length)return e;let n=[];for(let r of e){let o=r.map(i);o&&n.push(o)}return n}};Se.reconfigure=Se.define();Se.appendConfig=Se.define();var Rt=class t{constructor(e,i,n,r,o,s){this.startState=e,this.changes=i,this.selection=n,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,n&&OC(n,i.newLength),o.some(a=>a.type==t.time)||(this.annotations=o.concat(t.time.of(Date.now())))}static create(e,i,n,r,o,s){return new t(e,i,n,r,o,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let i of this.annotations)if(i.type==e)return i.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let i=this.annotation(t.userEvent);return!!(i&&(i==e||i.length>e.length&&i.slice(0,e.length)==e&&i[e.length]=="."))}};Rt.time=Si.define();Rt.userEvent=Si.define();Rt.addToHistory=Si.define();Rt.remote=Si.define();function hV(t,e){let i=[];for(let n=0,r=0;;){let o,s;if(n<t.length&&(r==e.length||e[r]>=t[n]))o=t[n++],s=t[n++];else if(r<e.length)o=e[r++],s=e[r++];else return i;!i.length||i[i.length-1]<o?i.push(o,s):i[i.length-1]<s&&(i[i.length-1]=s)}}function vC(t,e,i){var n;let r,o,s;return i?(r=e.changes,o=$i.empty(e.changes.length),s=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),o=t.changes.mapDesc(e.changes,!0),s=t.changes.compose(r)),{changes:s,selection:e.selection?e.selection.map(o):(n=t.selection)===null||n===void 0?void 0:n.map(r),effects:Se.mapEffects(t.effects,r).concat(Se.mapEffects(e.effects,o)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function K1(t,e,i){let n=e.selection,r=pl(e.annotations);return e.userEvent&&(r=r.concat(Rt.userEvent.of(e.userEvent))),{changes:e.changes instanceof $i?e.changes:$i.of(e.changes||[],i,t.facet(mC)),selection:n&&(n instanceof J?n:J.single(n.anchor,n.head)),effects:pl(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function wC(t,e,i){let n=K1(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(i=!1);for(let o=1;o<e.length;o++){e[o].filter===!1&&(i=!1);let s=!!e[o].sequential;n=vC(n,K1(t,e[o],s?n.changes.newLength:t.doc.length),s)}let r=Rt.create(t,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return OV(i?dV(r):r)}function dV(t){let e=t.startState,i=!0;for(let r of e.facet(gC)){let o=r(t);if(o===!1){i=!1;break}Array.isArray(o)&&(i=i===!0?o:hV(i,o))}if(i!==!0){let r,o;if(i===!1)o=t.changes.invertedDesc,r=$i.empty(e.doc.length);else{let s=t.changes.filter(i);r=s.changes,o=s.filtered.mapDesc(s.changes).invertedDesc}t=Rt.create(e,r,t.selection&&t.selection.map(o),Se.mapEffects(t.effects,o),t.annotations,t.scrollIntoView)}let n=e.facet(bC);for(let r=n.length-1;r>=0;r--){let o=n[r](t);o instanceof Rt?t=o:Array.isArray(o)&&o.length==1&&o[0]instanceof Rt?t=o[0]:t=wC(e,pl(o),!1)}return t}function OV(t){let e=t.startState,i=e.facet(yC),n=t;for(let r=i.length-1;r>=0;r--){let o=i[r](t);o&&Object.keys(o).length&&(n=vC(n,K1(e,o,t.changes.newLength),!0))}return n==t?t:Rt.create(e,t.changes,t.selection,n.effects,n.annotations,n.scrollIntoView)}var pV=[];function pl(t){return t==null?pV:Array.isArray(t)?t:[t]}var mt=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(mt||(mt={})),mV=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,J1;try{J1=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(t){}function gV(t){if(J1)return J1.test(t);for(let e=0;e<t.length;e++){let i=t[e];if(/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||mV.test(i)))return!0}return!1}function bV(t){return e=>{if(!/\S/.test(e))return mt.Space;if(gV(e))return mt.Word;for(let i=0;i<t.length;i++)if(e.indexOf(t[i])>-1)return mt.Word;return mt.Other}}var st=class t{constructor(e,i,n,r,o,s){this.config=e,this.doc=i,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)Cu(this,a<<1);this.computeSlot=null}field(e,i=!0){let n=this.config.address[e.id];if(n==null){if(i)throw new RangeError("Field is not present in this state");return}return Cu(this,n),EO(this,n)}update(...e){return wC(this,e,!0)}applyTransaction(e){let i=this.config,{base:n,compartments:r}=i;for(let a of e.effects)a.is(Fo.reconfigure)?(i&&(r=new Map,i.compartments.forEach((l,c)=>r.set(c,l)),i=null),r.set(a.value.compartment,a.value.extension)):a.is(Se.reconfigure)?(i=null,n=a.value):a.is(Se.appendConfig)&&(i=null,n=pl(n).concat(a.value));let o;i?o=e.startState.values.slice():(i=TO.resolve(n,r,this),o=new t(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let s=e.startState.facet(F1)?e.newSelection:e.newSelection.asSingle();new t(i,e.newDoc,s,o,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:e},range:J.cursor(i.from+e.length)}))}changeByRange(e){let i=this.selection,n=e(i.ranges[0]),r=this.changes(n.changes),o=[n.range],s=pl(n.effects);for(let a=1;a<i.ranges.length;a++){let l=e(i.ranges[a]),c=this.changes(l.changes),u=c.map(r);for(let d=0;d<a;d++)o[d]=o[d].map(u);let f=r.mapDesc(c,!0);o.push(l.range.map(f)),r=r.compose(u),s=Se.mapEffects(s,u).concat(Se.mapEffects(pl(l.effects),f))}return{changes:r,selection:J.create(o,i.mainIndex),effects:s}}changes(e=[]){return e instanceof $i?e:$i.of(e,this.doc.length,this.facet(t.lineSeparator))}toText(e){return Fe.of(e.split(this.facet(t.lineSeparator)||V1))}sliceDoc(e=0,i=this.doc.length){return this.doc.sliceString(e,i,this.lineBreak)}facet(e){let i=this.config.address[e.id];return i==null?e.default:(Cu(this,i),EO(this,i))}toJSON(e){let i={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof Ge&&this.config.address[r.id]!=null&&(i[n]=r.spec.toJSON(this.field(e[n]),this))}return i}static fromJSON(e,i={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let o in n)if(Object.prototype.hasOwnProperty.call(e,o)){let s=n[o],a=e[o];r.push(s.init(l=>s.spec.fromJSON(a,l)))}}return t.create({doc:e.doc,selection:J.fromJSON(e.selection),extensions:i.extensions?r.concat([i.extensions]):r})}static create(e={}){let i=TO.resolve(e.extensions||[],new Map),n=e.doc instanceof Fe?e.doc:Fe.of((e.doc||"").split(i.staticFacet(t.lineSeparator)||V1)),r=e.selection?e.selection instanceof J?e.selection:J.single(e.selection.anchor,e.selection.head):J.single(0);return OC(r,n.length),i.staticFacet(F1)||(r=r.asSingle()),new t(i,n,r,i.dynamicSlots.map(()=>null),(o,s)=>s.create(o),null)}get tabSize(){return this.facet(t.tabSize)}get lineBreak(){return this.facet(t.lineSeparator)||`
|
||
`}get readOnly(){return this.facet(xC)}phrase(e,...i){for(let n of this.facet(t.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return i.length&&(e=e.replace(/\$(\$|\d*)/g,(n,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>i.length?n:i[o-1]})),e}languageDataAt(e,i,n=-1){let r=[];for(let o of this.facet(pC))for(let s of o(this,i,n))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){return bV(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:i,from:n,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-n,a=e-n;for(;s>0;){let l=Ft(i,s,!1);if(o(i.slice(l,s))!=mt.Word)break;s=l}for(;a<r;){let l=Ft(i,a);if(o(i.slice(a,l))!=mt.Word)break;a=l}return s==a?null:J.range(s+n,a+n)}};st.allowMultipleSelections=F1;st.tabSize=be.define({combine:t=>t.length?t[0]:4});st.lineSeparator=mC;st.readOnly=xC;st.phrases=be.define({compare(t,e){let i=Object.keys(t),n=Object.keys(e);return i.length==n.length&&i.every(r=>t[r]==e[r])}});st.languageData=pC;st.changeFilter=gC;st.transactionFilter=bC;st.transactionExtender=yC;Fo.reconfigure=Se.define();function _t(t,e,i={}){let n={};for(let r of t)for(let o of Object.keys(r)){let s=r[o],a=n[o];if(a===void 0)n[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(i,o))n[o]=i[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)n[r]===void 0&&(n[r]=e[r]);return n}var Vn=class{eq(e){return this==e}range(e,i=e){return Qu.create(e,i,this)}};Vn.prototype.startSide=Vn.prototype.endSide=0;Vn.prototype.point=!1;Vn.prototype.mapMode=Qt.TrackDel;var Qu=class t{constructor(e,i,n){this.from=e,this.to=i,this.value=n}static create(e,i,n){return new t(e,i,n)}};function ey(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}var ty=class t{constructor(e,i,n,r){this.from=e,this.to=i,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,i,n,r=0){let o=n?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let l=s+a>>1,c=o[l]-e||(n?this.value[l].endSide:this.value[l].startSide)-i;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}between(e,i,n,r){for(let o=this.findIndex(i,-1e9,!0),s=this.findIndex(n,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,i){let n=[],r=[],o=[],s=-1,a=-1;for(let l=0;l<this.value.length;l++){let c=this.value[l],u=this.from[l]+e,f=this.to[l]+e,d,O;if(u==f){let m=i.mapPos(u,c.startSide,c.mapMode);if(m==null||(d=O=m,c.startSide!=c.endSide&&(O=i.mapPos(u,c.endSide),O<d)))continue}else if(d=i.mapPos(u,c.startSide),O=i.mapPos(f,c.endSide),d>O||d==O&&c.startSide>0&&c.endSide<=0)continue;(O-d||c.endSide-c.startSide)<0||(s<0&&(s=d),c.point&&(a=Math.max(a,O-d)),n.push(c),r.push(d-s),o.push(O-s))}return{mapped:n.length?new t(r,o,n,a):null,pos:s}}},Je=class t{constructor(e,i,n,r){this.chunkPos=e,this.chunk=i,this.nextLayer=n,this.maxPoint=r}static create(e,i,n,r){return new t(e,i,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let i of this.chunk)e+=i.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:i=[],sort:n=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(i.length==0&&!s)return this;if(n&&(i=i.slice().sort(ey)),this.isEmpty)return i.length?t.of(i):this;let a=new CO(this,null,-1).goto(0),l=0,c=[],u=new Xi;for(;a.value||l<i.length;)if(l<i.length&&(a.from-i[l].from||a.startSide-i[l].value.startSide)>=0){let f=i[l++];u.addInner(f.from,f.to,f.value)||c.push(f)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==i.length||this.chunkEnd(a.chunkIndex)<i[l].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&u.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(u.addInner(a.from,a.to,a.value)||c.push(Qu.create(a.from,a.to,a.value))),a.next());return u.finishInner(this.nextLayer.isEmpty&&!c.length?t.empty:this.nextLayer.update({add:c,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let i=[],n=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],l=this.chunk[s],c=e.touchesRange(a,a+l.length);if(c===!1)r=Math.max(r,l.maxPoint),i.push(l),n.push(e.mapPos(a));else if(c===!0){let{mapped:u,pos:f}=l.map(a,e);u&&(r=Math.max(r,u.maxPoint),i.push(u),n.push(f))}}let o=this.nextLayer.map(e);return i.length==0?o:new t(n,i,o||t.empty,r)}between(e,i,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(i>=o&&e<=o+s.length&&s.between(o,e-o,i-o,n)===!1)return}this.nextLayer.between(e,i,n)}}iter(e=0){return _u.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,i=0){return _u.from(e).goto(i)}static compare(e,i,n,r,o=-1){let s=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),a=i.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),l=uC(s,a,n),c=new Ws(s,l,o),u=new Ws(a,l,o);n.iterGaps((f,d,O)=>fC(c,f,u,d,O,r)),n.empty&&n.length==0&&fC(c,0,u,0,0,r)}static eq(e,i,n=0,r){r==null&&(r=999999999);let o=e.filter(u=>!u.isEmpty&&i.indexOf(u)<0),s=i.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(o.length!=s.length)return!1;if(!o.length)return!0;let a=uC(o,s),l=new Ws(o,a,0).goto(n),c=new Ws(s,a,0).goto(n);for(;;){if(l.to!=c.to||!iy(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}static spans(e,i,n,r,o=-1){let s=new Ws(e,null,o).goto(i),a=i,l=s.openStart;for(;;){let c=Math.min(s.to,n);if(s.point){let u=s.activeForPoint(s.to),f=s.pointFrom<i?u.length+1:s.point.startSide<0?u.length:Math.min(u.length,l);r.point(a,c,s.point,u,f,s.pointRank),l=Math.min(s.openEnd(c),u.length)}else c>a&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>n)return l+(s.point&&s.to>n?1:0);a=s.to,s.next()}}static of(e,i=!1){let n=new Xi;for(let r of e instanceof Qu?[e]:i?yV(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return t.empty;let i=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=t.empty;r=r.nextLayer)i=new t(r.chunkPos,r.chunk,i,Math.max(r.maxPoint,i.maxPoint));return i}};Je.empty=new Je([],[],null,-1);function yV(t){if(t.length>1)for(let e=t[0],i=1;i<t.length;i++){let n=t[i];if(ey(e,n)>0)return t.slice().sort(ey);e=n}return t}Je.empty.nextLayer=Je.empty;var Xi=class t{finishChunk(e){this.chunks.push(new ty(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,i,n){this.addInner(e,i,n)||(this.nextLayer||(this.nextLayer=new t)).add(e,i,n)}addInner(e,i,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(i-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=i,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,i-e)),!0)}addChunk(e,i){if((e-this.lastTo||i.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,i.maxPoint),this.chunks.push(i),this.chunkPos.push(e);let n=i.value.length-1;return this.last=i.value[n],this.lastFrom=i.from[n]+e,this.lastTo=i.to[n]+e,!0}finish(){return this.finishInner(Je.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let i=Je.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,i}};function uC(t,e,i){let n=new Map;for(let o of t)for(let s=0;s<o.chunk.length;s++)o.chunk[s].maxPoint<=0&&n.set(o.chunk[s],o.chunkPos[s]);let r=new Set;for(let o of e)for(let s=0;s<o.chunk.length;s++){let a=n.get(o.chunk[s]);a!=null&&(i?i.mapPos(a):a)==o.chunkPos[s]&&!(i!=null&&i.touchesRange(a,a+o.chunk[s].length))&&r.add(o.chunk[s])}return r}var CO=class{constructor(e,i,n,r=0){this.layer=e,this.skip=i,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,i=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,i,!1),this}gotoInner(e,i,n){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],i,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,i){(this.to-e||this.endSide-i)<0&&this.gotoInner(e,i,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],i=this.layer.chunk[this.chunkIndex],n=e+i.from[this.rangeIndex];if(this.from=n,this.to=e+i.to[this.rangeIndex],this.value=i.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}},_u=class t{constructor(e){this.heap=e}static from(e,i=null,n=-1){let r=[];for(let o=0;o<e.length;o++)for(let s=e[o];!s.isEmpty;s=s.nextLayer)s.maxPoint>=n&&r.push(new CO(s,i,n,o));return r.length==1?r[0]:new t(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,i=-1e9){for(let n of this.heap)n.goto(e,i);for(let n=this.heap.length>>1;n>=0;n--)j1(this.heap,n);return this.next(),this}forward(e,i){for(let n of this.heap)n.forward(e,i);for(let n=this.heap.length>>1;n>=0;n--)j1(this.heap,n);(this.to-e||this.value.endSide-i)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),j1(this.heap,0)}}};function j1(t,e){for(let i=t[e];;){let n=(e<<1)+1;if(n>=t.length)break;let r=t[n];if(n+1<t.length&&r.compare(t[n+1])>=0&&(r=t[n+1],n++),i.compare(r)<0)break;t[n]=i,t[e]=r,e=n}}var Ws=class{constructor(e,i,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=_u.from(e,i,n)}goto(e,i=-1e9){return this.cursor.goto(e,i),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=i,this.openStart=-1,this.next(),this}forward(e,i){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-i)<0;)this.removeActive(this.minActive);this.cursor.forward(e,i)}removeActive(e){yO(this.active,e),yO(this.activeTo,e),yO(this.activeRank,e),this.minActive=hC(this.active,this.activeTo)}addActive(e){let i=0,{value:n,to:r,rank:o}=this.cursor;for(;i<this.activeRank.length&&(o-this.activeRank[i]||r-this.activeTo[i])>0;)i++;xO(this.active,i,n),xO(this.activeTo,i,r),xO(this.activeRank,i,o),e&&xO(e,i,this.cursor.from),this.minActive=hC(this.active,this.activeTo)}next(){let e=this.to,i=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&yO(n,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(n),this.cursor.next();else if(i&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let r=n.length-1;r>=0&&n[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let i=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&i.push(this.active[n]);return i.reverse()}openEnd(e){let i=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)i++;return i}};function fC(t,e,i,n,r,o){t.goto(e),i.goto(n);let s=n+r,a=n,l=n-e;for(;;){let c=t.to+l-i.to,u=c||t.endSide-i.endSide,f=u<0?t.to+l:i.to,d=Math.min(f,s);if(t.point||i.point?t.point&&i.point&&(t.point==i.point||t.point.eq(i.point))&&iy(t.activeForPoint(t.to),i.activeForPoint(i.to))||o.comparePoint(a,d,t.point,i.point):d>a&&!iy(t.active,i.active)&&o.compareRange(a,d,t.active,i.active),f>s)break;(c||t.openEnd!=i.openEnd)&&o.boundChange&&o.boundChange(f),a=f,u<=0&&t.next(),u>=0&&i.next()}}function iy(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!=e[i]&&!t[i].eq(e[i]))return!1;return!0}function yO(t,e){for(let i=e,n=t.length-1;i<n;i++)t[i]=t[i+1];t.pop()}function xO(t,e,i){for(let n=t.length-1;n>=e;n--)t[n+1]=t[n];t[e]=i}function hC(t,e){let i=-1,n=1e9;for(let r=0;r<e.length;r++)(e[r]-n||t[r].endSide-t[i].endSide)<0&&(i=r,n=e[r]);return i}function Ri(t,e,i=t.length){let n=0;for(let r=0;r<i&&r<t.length;)t.charCodeAt(r)==9?(n+=e-n%e,r++):(n++,r=Ft(t,r));return n}function PO(t,e,i,n){for(let r=0,o=0;;){if(o>=e)return r;if(r==t.length)break;o+=t.charCodeAt(r)==9?i-o%i:1,r=Ft(t,r)}return n===!0?-1:t.length}var oy="\u037C",kC=typeof Symbol=="undefined"?"__"+oy:Symbol.for(oy),sy=typeof Symbol=="undefined"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),SC=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:{},Bi=class{constructor(e,i){this.rules=[];let{finish:n}=i||{};function r(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function o(s,a,l,c){let u=[],f=/^@(\w+)\b/.exec(s[0]),d=f&&f[1]=="keyframes";if(f&&a==null)return l.push(s[0]+";");for(let O in a){let m=a[O];if(/&/.test(O))o(O.split(/,\s*/).map(x=>s.map(v=>x.replace(/&/,v))).reduce((x,v)=>x.concat(v)),m,l);else if(m&&typeof m=="object"){if(!f)throw new RangeError("The value of a property ("+O+") should be a primitive value.");o(r(O),m,u,d)}else m!=null&&u.push(O.replace(/_.*/,"").replace(/[A-Z]/g,x=>"-"+x.toLowerCase())+": "+m+";")}(u.length||d)&&l.push((n&&!f&&!c?s.map(n):s).join(", ")+" {"+u.join(" ")+"}")}for(let s in e)o(r(s),e[s],this.rules)}getRules(){return this.rules.join(`
|
||
`)}static newName(){let e=SC[kC]||1;return SC[kC]=e+1,oy+e.toString(36)}static mount(e,i,n){let r=e[sy],o=n&&n.nonce;r?o&&r.setNonce(o):r=new ay(e,o),r.mount(Array.isArray(i)?i:[i])}},TC=new Map,ay=class{constructor(e,i){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=TC.get(n);if(o)return e.adoptedStyleSheets=[o.sheet,...e.adoptedStyleSheets],e[sy]=o;this.sheet=new r.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],TC.set(n,this)}else{this.styleTag=n.createElement("style"),i&&this.styleTag.setAttribute("nonce",i);let o=e.head||e;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],e[sy]=this}mount(e){let i=this.sheet,n=0,r=0;for(let o=0;o<e.length;o++){let s=e[o],a=this.modules.indexOf(s);if(a<r&&a>-1&&(this.modules.splice(a,1),r--,a=-1),a==-1){if(this.modules.splice(r++,0,s),i)for(let l=0;l<s.rules.length;l++)i.insertRule(s.rules[l],n++)}else{for(;r<a;)n+=this.modules[r++].rules.length;n+=s.rules.length,r++}}if(!i){let o="";for(let s=0;s<this.modules.length;s++)o+=this.modules[s].getRules()+`
|
||
`;this.styleTag.textContent=o}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};var Hr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},gl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},xV=typeof navigator!="undefined"&&/Mac/.test(navigator.platform),vV=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(Ht=0;Ht<10;Ht++)Hr[48+Ht]=Hr[96+Ht]=String(Ht);var Ht;for(Ht=1;Ht<=24;Ht++)Hr[Ht+111]="F"+Ht;var Ht;for(Ht=65;Ht<=90;Ht++)Hr[Ht]=String.fromCharCode(Ht+32),gl[Ht]=String.fromCharCode(Ht);var Ht;for(QO in Hr)gl.hasOwnProperty(QO)||(gl[QO]=Hr[QO]);var QO;function EC(t){var e=xV&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||vV&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",i=!e&&t.key||(t.shiftKey?gl:Hr)[t.keyCode]||t.key||"Unidentified";return i=="Esc"&&(i="Escape"),i=="Del"&&(i="Delete"),i=="Left"&&(i="ArrowLeft"),i=="Up"&&(i="ArrowUp"),i=="Right"&&(i="ArrowRight"),i=="Down"&&(i="ArrowDown"),i}function Vu(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function py(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function UO(t,e){if(!e.anchorNode)return!1;try{return py(t,e.anchorNode)}catch(i){return!1}}function Zu(t){return t.nodeType==3?Fs(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function zu(t,e,i,n){return i?CC(t,e,i,n,-1)||CC(t,e,i,n,1):!1}function Ys(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function ZO(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function CC(t,e,i,n,r){for(;;){if(t==i&&e==n)return!0;if(e==(r<0?0:mr(t))){if(t.nodeName=="DIV")return!1;let o=t.parentNode;if(!o||o.nodeType!=1)return!1;e=Ys(t)+(r<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=r<0?mr(t):0}else return!1}}function mr(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ap(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}function wV(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function pP(t,e){let i=e.width/t.offsetWidth,n=e.height/t.offsetHeight;return(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.width-t.offsetWidth)<1)&&(i=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-t.offsetHeight)<1)&&(n=1),{scaleX:i,scaleY:n}}function kV(t,e,i,n,r,o,s,a){let l=t.ownerDocument,c=l.defaultView||window;for(let u=t,f=!1;u&&!f;)if(u.nodeType==1){let d,O=u==l.body,m=1,x=1;if(O)d=wV(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(f=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let T=u.getBoundingClientRect();({scaleX:m,scaleY:x}=pP(u,T)),d={left:T.left,right:T.left+u.clientWidth*m,top:T.top,bottom:T.top+u.clientHeight*x}}let v=0,w=0;if(r=="nearest")e.top<d.top?(w=e.top-(d.top+s),i>0&&e.bottom>d.bottom+w&&(w=e.bottom-d.bottom+s)):e.bottom>d.bottom&&(w=e.bottom-d.bottom+s,i<0&&e.top-w<d.top&&(w=e.top-(d.top+s)));else{let T=e.bottom-e.top,Q=d.bottom-d.top;w=(r=="center"&&T<=Q?e.top+T/2-Q/2:r=="start"||r=="center"&&i<0?e.top-s:e.bottom-Q+s)-d.top}if(n=="nearest"?e.left<d.left?(v=e.left-(d.left+o),i>0&&e.right>d.right+v&&(v=e.right-d.right+o)):e.right>d.right&&(v=e.right-d.right+o,i<0&&e.left<d.left+v&&(v=e.left-(d.left+o))):v=(n=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:n=="start"==a?e.left-o:e.right-(d.right-d.left)+o)-d.left,v||w)if(O)c.scrollBy(v,w);else{let T=0,Q=0;if(w){let I=u.scrollTop;u.scrollTop+=w/x,Q=(u.scrollTop-I)*x}if(v){let I=u.scrollLeft;u.scrollLeft+=v/m,T=(u.scrollLeft-I)*m}e={left:e.left-T,top:e.top-Q,right:e.right-T,bottom:e.bottom-Q},T&&Math.abs(T-v)<1&&(n="nearest"),Q&&Math.abs(Q-w)<1&&(r="nearest")}if(O)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function SV(t){let e=t.ownerDocument,i,n;for(let r=t.parentNode;r&&!(r==e.body||i&&n);)if(r.nodeType==1)!n&&r.scrollHeight>r.clientHeight&&(n=r),!i&&r.scrollWidth>r.clientWidth&&(i=r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;return{x:i,y:n}}var my=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:i,focusNode:n}=e;this.set(i,Math.min(e.anchorOffset,i?mr(i):0),n,Math.min(e.focusOffset,n?mr(n):0))}set(e,i,n,r){this.anchorNode=e,this.anchorOffset=i,this.focusNode=n,this.focusOffset=r}},bl=null;function mP(t){if(t.setActive)return t.setActive();if(bl)return t.focus(bl);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(bl==null?{get preventScroll(){return bl={preventScroll:!0},!0}}:void 0),!bl){bl=!1;for(let i=0;i<e.length;){let n=e[i++],r=e[i++],o=e[i++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=o&&(n.scrollLeft=o)}}}var PC;function Fs(t,e,i=e){let n=PC||(PC=document.createRange());return n.setEnd(t,i),n.setStart(t,e),n}function wl(t,e,i,n){let r={key:e,code:e,keyCode:i,which:i,cancelable:!0};n&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=n);let o=new KeyboardEvent("keydown",r);o.synthetic=!0,t.dispatchEvent(o);let s=new KeyboardEvent("keyup",r);return s.synthetic=!0,t.dispatchEvent(s),o.defaultPrevented||s.defaultPrevented}function TV(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function gP(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function EV(t,e){let i=e.focusNode,n=e.focusOffset;if(!i||e.anchorNode!=i||e.anchorOffset!=n)return!1;for(n=Math.min(n,mr(i));;)if(n){if(i.nodeType!=1)return!1;let r=i.childNodes[n-1];r.contentEditable=="false"?n--:(i=r,n=mr(i))}else{if(i==t)return!0;n=Ys(i),i=i.parentNode}}function bP(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function yP(t,e){for(let i=t,n=e;;){if(i.nodeType==3&&n>0)return{node:i,offset:n};if(i.nodeType==1&&n>0){if(i.contentEditable=="false")return null;i=i.childNodes[n-1],n=mr(i)}else if(i.parentNode&&!ZO(i))n=Ys(i),i=i.parentNode;else return null}}function xP(t,e){for(let i=t,n=e;;){if(i.nodeType==3&&n<i.nodeValue.length)return{node:i,offset:n};if(i.nodeType==1&&n<i.childNodes.length){if(i.contentEditable=="false")return null;i=i.childNodes[n],n=0}else if(i.parentNode&&!ZO(i))n=Ys(i)+1,i=i.parentNode;else return null}}var Li=class t{constructor(e,i,n=!0){this.node=e,this.offset=i,this.precise=n}static before(e,i){return new t(e.parentNode,Ys(e),i)}static after(e,i){return new t(e.parentNode,Ys(e)+1,i)}},nx=[],St=class t{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let i=this.posAtStart;for(let n of this.children){if(n==e)return i;i+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,i){if(this.flags&2){let n=this.dom,r=null,o;for(let s of this.children){if(s.flags&7){if(!s.dom&&(o=r?r.nextSibling:n.firstChild)){let a=t.get(o);(!a||!a.parent&&a.canReuseDOM(s))&&s.reuseDOM(o)}s.sync(e,i),s.flags&=-8}if(o=r?r.nextSibling:n.firstChild,i&&!i.written&&i.node==n&&o!=s.dom&&(i.written=!0),s.dom.parentNode==n)for(;o&&o!=s.dom;)o=QC(o);else n.insertBefore(s.dom,o);r=s.dom}for(o=r?r.nextSibling:n.firstChild,o&&i&&i.node==n&&(i.written=!0);o;)o=QC(o)}else if(this.flags&1)for(let n of this.children)n.flags&7&&(n.sync(e,i),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,i){let n;if(e==this.dom)n=this.dom.childNodes[i];else{let r=mr(e)==0?0:i==0?-1:1;for(;;){let o=e.parentNode;if(o==this.dom)break;r==0&&o.firstChild!=o.lastChild&&(e==o.firstChild?r=-1:r=1),e=o}r<0?n=e:n=e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!t.get(n);)n=n.nextSibling;if(!n)return this.length;for(let r=0,o=0;;r++){let s=this.children[r];if(s.dom==n)return o;o+=s.length+s.breakAfter}}domBoundsAround(e,i,n=0){let r=-1,o=-1,s=-1,a=-1;for(let l=0,c=n,u=n;l<this.children.length;l++){let f=this.children[l],d=c+f.length;if(c<e&&d>i)return f.domBoundsAround(e,i,c);if(d>=e&&r==-1&&(r=l,o=c),c>i&&f.dom.parentNode==this.dom){s=l,a=u;break}u=d,c=d+f.breakAfter}return{from:o,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s<this.children.length&&s>=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let i=this.parent;i;i=i.parent){if(e&&(i.flags|=2),i.flags&1)return;i.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let i=e.parent;if(!i)return e;e=i}}replaceChildren(e,i,n=nx){this.markDirty();for(let r=e;r<i;r++){let o=this.children[r];o.parent==this&&n.indexOf(o)<0&&o.destroy()}n.length<250?this.children.splice(e,i-e,...n):this.children=[].concat(this.children.slice(0,e),n,this.children.slice(i));for(let r=0;r<n.length;r++)n[r].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new BO(this.children,e,this.children.length)}childPos(e,i=1){return this.childCursor().findPos(e,i)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,i,n,r,o,s){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}};St.prototype.breakAfter=0;function QC(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}var BO=class{constructor(e,i,n){this.children=e,this.pos=i,this.i=n,this.off=0}findPos(e,i=1){for(;;){if(e>this.pos||e==this.pos&&(i>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}};function vP(t,e,i,n,r,o,s,a,l){let{children:c}=t,u=c.length?c[e]:null,f=o.length?o[o.length-1]:null,d=f?f.breakAfter:s;if(!(e==n&&u&&!s&&!d&&o.length<2&&u.merge(i,r,o.length?f:null,i==0,a,l))){if(n<c.length){let O=c[n];O&&(r<O.length||O.breakAfter&&(f!=null&&f.breakAfter))?(e==n&&(O=O.split(r),r=0),!d&&f&&O.merge(0,r,f,!0,0,l)?o[o.length-1]=O:((r||O.children.length&&!O.children[0].length)&&O.merge(0,r,null,!1,0,l),o.push(O))):O!=null&&O.breakAfter&&(f?f.breakAfter=1:s=1),n++}for(u&&(u.breakAfter=s,i>0&&(!s&&o.length&&u.merge(i,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(i<u.length||u.children.length&&u.children[u.children.length-1].length==0)&&u.merge(i,u.length,null,!1,a,0),e++));e<n&&o.length;)if(c[n-1].become(o[o.length-1]))n--,o.pop(),l=o.length?0:a;else if(c[e].become(o[0]))e++,o.shift(),a=o.length?0:l;else break;!o.length&&e&&n<c.length&&!c[e-1].breakAfter&&c[n].merge(0,0,c[e-1],!1,a,l)&&e--,(e<n||o.length)&&t.replaceChildren(e,n,o)}}function wP(t,e,i,n,r,o){let s=t.childCursor(),{i:a,off:l}=s.findPos(i,1),{i:c,off:u}=s.findPos(e,-1),f=e-i;for(let d of n)f+=d.length;t.length+=f,vP(t,c,u,a,l,n,0,r,o)}var Yi=typeof navigator!="undefined"?navigator:{userAgent:"",vendor:"",platform:""},gy=typeof document!="undefined"?document:{documentElement:{style:{}}},by=/Edge\/(\d+)/.exec(Yi.userAgent),kP=/MSIE \d/.test(Yi.userAgent),yy=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yi.userAgent),lp=!!(kP||yy||by),_C=!lp&&/gecko\/(\d+)/i.test(Yi.userAgent),ly=!lp&&/Chrome\/(\d+)/.exec(Yi.userAgent),AC="webkitFontSmoothing"in gy.documentElement.style,SP=!lp&&/Apple Computer/.test(Yi.vendor),$C=SP&&(/Mobile\/\w+/.test(Yi.userAgent)||Yi.maxTouchPoints>2),ke={mac:$C||/Mac/.test(Yi.platform),windows:/Win/.test(Yi.platform),linux:/Linux|X11/.test(Yi.platform),ie:lp,ie_version:kP?gy.documentMode||6:yy?+yy[1]:by?+by[1]:0,gecko:_C,gecko_version:_C?+(/Firefox\/(\d+)/.exec(Yi.userAgent)||[0,0])[1]:0,chrome:!!ly,chrome_version:ly?+ly[1]:0,ios:$C,android:/Android\b/.test(Yi.userAgent),webkit:AC,safari:SP,webkit_version:AC?+(/\bAppleWebKit\/(\d+)/.exec(Yi.userAgent)||[0,0])[1]:0,tabSize:gy.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},CV=256,gr=class t extends St{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,i){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(i&&i.node==this.dom&&(i.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,i,n){return this.flags&8||n&&(!(n instanceof t)||this.length-(i-e)+n.length>CV||n.flags&8)?!1:(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(i),this.markDirty(),!0)}split(e){let i=new t(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),i.flags|=this.flags&8,i}localPosFromDOM(e,i){return e==this.dom?i:i?this.text.length:0}domAtPos(e){return new Li(this.dom,e)}domBoundsAround(e,i,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,i){return PV(this.dom,e,i)}},Ko=class t extends St{constructor(e,i=[],n=0){super(),this.mark=e,this.children=i,this.length=n;for(let r of i)r.setParent(this)}setAttrs(e){if(gP(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let i in this.mark.attrs)e.setAttribute(i,this.mark.attrs[i]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,i){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,i)}merge(e,i,n,r,o,s){return n&&(!(n instanceof t&&n.mark.eq(this.mark))||e&&o<=0||i<this.length&&s<=0)?!1:(wP(this,e,i,n?n.children.slice():[],o-1,s-1),this.markDirty(),!0)}split(e){let i=[],n=0,r=-1,o=0;for(let a of this.children){let l=n+a.length;l>e&&i.push(n<e?a.split(e-n):a),r<0&&n>=e&&(r=o),n=l,o++}let s=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new t(this.mark,i,s)}domAtPos(e){return TP(this,e)}coordsAt(e,i){return CP(this,e,i)}};function PV(t,e,i){let n=t.nodeValue.length;e>n&&(e=n);let r=e,o=e,s=0;e==0&&i<0||e==n&&i>=0?ke.chrome||ke.gecko||(e?(r--,s=1):o<n&&(o++,s=-1)):i<0?r--:o<n&&o++;let a=Fs(t,r,o).getClientRects();if(!a.length)return null;let l=a[(s?s<0:i>=0)?0:a.length-1];return ke.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(a,c=>c.width)||l),s?ap(l,s<0):l||null}var Bu=class t extends St{static create(e,i,n){return new t(e,i,n)}constructor(e,i,n){super(),this.widget=e,this.length=i,this.side=n,this.prevWidget=null}split(e){let i=t.create(this.widget,this.length-e,this.side);return this.length-=e,i}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,i,n,r,o,s){return n&&(!(n instanceof t)||!this.widget.compare(n.widget)||e>0&&o<=0||i<this.length&&s<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-i),!0)}become(e){return e instanceof t&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return Fe.empty;let e=this;for(;e.parent;)e=e.parent;let{view:i}=e,n=i&&i.state.doc,r=this.posAtStart;return n?n.slice(r,r+this.length):Fe.empty}domAtPos(e){return(this.length?e==0:this.side>0)?Li.before(this.dom):Li.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,i){let n=this.widget.coordsAt(this.dom,e,i);if(n)return n;let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let s=this.side?this.side<0:e>0;for(let a=s?r.length-1:0;o=r[a],!(e>0?a==0:a==r.length-1||o.top<o.bottom);a+=s?-1:1);return ap(o,!s)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}},Yu=class t extends St{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof t&&e.side==this.side}split(){return new t(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?Li.before(this.dom):Li.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Fe.empty}get isHidden(){return!0}};gr.prototype.children=Bu.prototype.children=Yu.prototype.children=nx;function TP(t,e){let i=t.dom,{children:n}=t,r=0;for(let o=0;r<n.length;r++){let s=n[r],a=o+s.length;if(!(a==o&&s.getSide()<=0)){if(e>o&&e<a&&s.dom.parentNode==i)return s.domAtPos(e-o);if(e<=o)break;o=a}}for(let o=r;o>0;o--){let s=n[o-1];if(s.dom.parentNode==i)return s.domAtPos(s.length)}for(let o=r;o<n.length;o++){let s=n[o];if(s.dom.parentNode==i)return s.domAtPos(0)}return new Li(i,0)}function EP(t,e,i){let n,{children:r}=t;i>0&&e instanceof Ko&&r.length&&(n=r[r.length-1])instanceof Ko&&n.mark.eq(e.mark)?EP(n,e.children[0],i-1):(r.push(e),e.setParent(t)),t.length+=e.length}function CP(t,e,i){let n=null,r=-1,o=null,s=-1;function a(c,u){for(let f=0,d=0;f<c.children.length&&d<=u;f++){let O=c.children[f],m=d+O.length;m>=u&&(O.children.length?a(O,u-d):(!o||o.isHidden&&i>0)&&(m>u||d==m&&O.getSide()>0)?(o=O,s=u-d):(d<u||d==m&&O.getSide()<0&&!O.isHidden)&&(n=O,r=u-d)),d=m}}a(t,e);let l=(i<0?n:o)||n||o;return l?l.coordsAt(Math.max(0,l==n?r:s),i):QV(t)}function QV(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=Zu(e);return i[i.length-1]||null}function xy(t,e){for(let i in t)i=="class"&&e.class?e.class+=" "+t.class:i=="style"&&e.style?e.style+=";"+t.style:e[i]=t[i];return e}var XC=Object.create(null);function YO(t,e,i){if(t==e)return!0;t||(t=XC),e||(e=XC);let n=Object.keys(t),r=Object.keys(e);if(n.length-(i&&n.indexOf(i)>-1?1:0)!=r.length-(i&&r.indexOf(i)>-1?1:0))return!1;for(let o of n)if(o!=i&&(r.indexOf(o)==-1||t[o]!==e[o]))return!1;return!0}function vy(t,e,i){let n=!1;if(e)for(let r in e)i&&r in i||(n=!0,r=="style"?t.style.cssText="":t.removeAttribute(r));if(i)for(let r in i)e&&e[r]==i[r]||(n=!0,r=="style"?t.style.cssText=i[r]:t.setAttribute(r,i[r]));return n}function _V(t){let e=Object.create(null);for(let i=0;i<t.attributes.length;i++){let n=t.attributes[i];e[n.name]=n.value}return e}var oi=class{eq(e){return!1}updateDOM(e,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,i,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},Ii=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Ii||(Ii={})),we=class extends Vn{constructor(e,i,n,r){super(),this.startSide=e,this.endSide=i,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new Fu(e)}static widget(e){let i=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return i+=n&&!e.inlineOrder?i>0?3e8:-4e8:i>0?1e8:-1e8,new Jo(e,i,i,n,e.widget||null,!1)}static replace(e){let i=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:o,end:s}=PP(e,i);n=(o?i?-3e8:-1:5e8)-1,r=(s?i?2e8:1:-6e8)+1}return new Jo(e,n,r,i,e.widget||null,!0)}static line(e){return new Hu(e)}static set(e,i=!1){return Je.of(e,i)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};we.none=Je.empty;var Fu=class t extends we{constructor(e){let{start:i,end:n}=PP(e);super(i?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var i,n;return this==e||e instanceof t&&this.tagName==e.tagName&&(this.class||((i=this.attrs)===null||i===void 0?void 0:i.class))==(e.class||((n=e.attrs)===null||n===void 0?void 0:n.class))&&YO(this.attrs,e.attrs,"class")}range(e,i=e){if(e>=i)throw new RangeError("Mark decorations may not be empty");return super.range(e,i)}};Fu.prototype.point=!1;var Hu=class t extends we{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof t&&this.spec.class==e.spec.class&&YO(this.spec.attributes,e.spec.attributes)}range(e,i=e){if(i!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,i)}};Hu.prototype.mapMode=Qt.TrackBefore;Hu.prototype.point=!0;var Jo=class t extends we{constructor(e,i,n,r,o,s){super(i,n,o,e),this.block=r,this.isReplace=s,this.mapMode=r?i<=0?Qt.TrackBefore:Qt.TrackAfter:Qt.TrackDel}get type(){return this.startSide!=this.endSide?Ii.WidgetRange:this.startSide<=0?Ii.WidgetBefore:Ii.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof t&&AV(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,i=e){if(this.isReplace&&(e>i||e==i&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&i!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,i)}};Jo.prototype.point=!0;function PP(t,e=!1){let{inclusiveStart:i,inclusiveEnd:n}=t;return i==null&&(i=t.inclusive),n==null&&(n=t.inclusive),{start:i!=null?i:e,end:n!=null?n:e}}function AV(t,e){return t==e||!!(t&&e&&t.compare(e))}function MO(t,e,i,n=0){let r=i.length-1;r>=0&&i[r]+n>=t?i[r]=Math.max(i[r],e):i.push(t,e)}var di=class t extends St{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,i,n,r,o,s){if(n){if(!(n instanceof t))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),wP(this,e,i,n?n.children.slice():[],o,s),!0}split(e){let i=new t;if(i.breakAfter=this.breakAfter,this.length==0)return i;let{i:n,off:r}=this.childPos(e);r&&(i.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let o=n;o<this.children.length;o++)i.append(this.children[o],0);for(;n>0&&this.children[n-1].length==0;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,i}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){YO(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,i){EP(this,e,i)}addLineDeco(e){let i=e.spec.attributes,n=e.spec.class;i&&(this.attrs=xy(i,this.attrs||{})),n&&(this.attrs=xy({class:n},this.attrs||{}))}domAtPos(e){return TP(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,i){var n;this.dom?this.flags&4&&(gP(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(vy(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,i);let r=this.dom.lastChild;for(;r&&St.get(r)instanceof Ko;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((n=St.get(r))===null||n===void 0?void 0:n.isEditable)==!1&&(!ke.ios||!this.children.some(o=>o instanceof gr))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,i;for(let n of this.children){if(!(n instanceof gr)||/[^ -~]/.test(n.text))return null;let r=Zu(n.dom);if(r.length!=1)return null;e+=r[0].width,i=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:i}:null}coordsAt(e,i){let n=CP(this,e,i);if(!this.children.length&&n&&this.parent){let{heightOracle:r}=this.parent.view.viewState,o=n.bottom-n.top;if(Math.abs(o-r.lineHeight)<2&&r.textHeight<o){let s=(o-r.textHeight)/2;return{top:n.top+s,bottom:n.bottom-s,left:n.left,right:n.left}}}return n}become(e){return e instanceof t&&this.children.length==0&&e.children.length==0&&YO(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,i){for(let n=0,r=0;n<e.children.length;n++){let o=e.children[n],s=r+o.length;if(s>=i){if(o instanceof t)return o;if(s>i)break}r=s+o.breakAfter}return null}},Bs=class t extends St{constructor(e,i,n){super(),this.widget=e,this.length=i,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,i,n,r,o,s){return n&&(!(n instanceof t)||!this.widget.compare(n.widget)||e>0&&o<=0||i<this.length&&s<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-i),!0)}domAtPos(e){return e==0?Li.before(this.dom):Li.after(this.dom,e==this.length)}split(e){let i=this.length-e;this.length=e;let n=new t(this.widget,i,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return nx}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Fe.empty}domBoundsAround(){return null}become(e){return e instanceof t&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,i){let n=this.widget.coordsAt(this.dom,e,i);return n||(this.widget instanceof Gu?null:ap(this.dom.getBoundingClientRect(),this.length?e==0:i<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:i,endSide:n}=this.deco;return i==n?!1:e<0?i<0:n>0}},Gu=class extends oi{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}},Uu=class t{constructor(e,i,n,r){this.doc=e,this.pos=i,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=i}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Bs&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new di),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(_O(new Yu(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Bs)&&this.getLine()}buildText(e,i,n){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:s,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(i.slice(i.length-n)),this.getLine().append(_O(new gr(this.text.slice(this.textOff,this.textOff+r)),i),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,i,n,r){this.buildText(i-e,n,r),this.pos=i,this.openStart<0&&(this.openStart=r)}point(e,i,n,r,o,s){if(this.disallowBlockEffectsFor[s]&&n instanceof Jo){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(i>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=i-e;if(n instanceof Jo)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Bs(n.widget||es.block,a,n));else{let l=Bu.create(n.widget||es.inline,a,a?0:n.startSide),c=this.atCursorPos&&!l.isEditable&&o<=r.length&&(e<i||n.startSide>0),u=!l.isEditable&&(e<i||o>r.length||n.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),c&&(f.append(_O(new Yu(1),r),o),o=r.length+Math.max(0,o-r.length)),f.append(_O(l,r),o),this.atCursorPos=u,this.pendingBuffer=u?e<i||o>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=i),this.openStart<0&&(this.openStart=o)}static build(e,i,n,r,o){let s=new t(e,i,n,o);return s.openEnd=Je.spans(r,i,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}};function _O(t,e){for(let i of e)t=new Ko(i,[t],t.length);return t}var es=class extends oi{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};es.inline=new es("span");es.block=new es("div");var at=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(at||(at={})),Hs=at.LTR,rx=at.RTL;function QP(t){let e=[];for(let i=0;i<t.length;i++)e.push(1<<+t[i]);return e}var $V=QP("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),XV=QP("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),wy=Object.create(null),hr=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),i=t.charCodeAt(1);wy[e]=i,wy[i]=-e}function _P(t){return t<=247?$V[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?XV[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}var RV=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,Or=class{get dir(){return this.level%2?rx:Hs}constructor(e,i,n){this.from=e,this.to=i,this.level=n}side(e,i){return this.dir==i==e?this.to:this.from}forward(e,i){return e==(this.dir==i)}static find(e,i,n,r){let o=-1;for(let s=0;s<e.length;s++){let a=e[s];if(a.from<=i&&a.to>=i){if(a.level==n)return s;(o<0||(r!=0?r<0?a.from<i:a.to>i:e[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}};function AP(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++){let n=t[i],r=e[i];if(n.from!=r.from||n.to!=r.to||n.direction!=r.direction||!AP(n.inner,r.inner))return!1}return!0}var yt=[];function LV(t,e,i,n,r){for(let o=0;o<=n.length;o++){let s=o?n[o-1].to:e,a=o<n.length?n[o].from:i,l=o?256:r;for(let c=s,u=l,f=l;c<a;c++){let d=_P(t.charCodeAt(c));d==512?d=u:d==8&&f==4&&(d=16),yt[c]=d==4?2:d,d&7&&(f=d),u=d}for(let c=s,u=l,f=l;c<a;c++){let d=yt[c];if(d==128)c<a-1&&u==yt[c+1]&&u&24?d=yt[c]=u:yt[c]=256;else if(d==64){let O=c+1;for(;O<a&&yt[O]==64;)O++;let m=c&&u==8||O<i&&yt[O]==8?f==1?1:8:256;for(let x=c;x<O;x++)yt[x]=m;c=O-1}else d==8&&f==1&&(yt[c]=1);u=d,d&7&&(f=d)}}}function IV(t,e,i,n,r){let o=r==1?2:1;for(let s=0,a=0,l=0;s<=n.length;s++){let c=s?n[s-1].to:e,u=s<n.length?n[s].from:i;for(let f=c,d,O,m;f<u;f++)if(O=wy[d=t.charCodeAt(f)])if(O<0){for(let x=a-3;x>=0;x-=3)if(hr[x+1]==-O){let v=hr[x+2],w=v&2?r:v&4?v&1?o:r:0;w&&(yt[f]=yt[hr[x]]=w),a=x;break}}else{if(hr.length==189)break;hr[a++]=f,hr[a++]=d,hr[a++]=l}else if((m=yt[f])==2||m==1){let x=m==r;l=x?0:1;for(let v=a-3;v>=0;v-=3){let w=hr[v+2];if(w&2)break;if(x)hr[v+2]|=2;else{if(w&4)break;hr[v+2]|=4}}}}}function DV(t,e,i,n){for(let r=0,o=n;r<=i.length;r++){let s=r?i[r-1].to:t,a=r<i.length?i[r].from:e;for(let l=s;l<a;){let c=yt[l];if(c==256){let u=l+1;for(;;)if(u==a){if(r==i.length)break;u=i[r++].to,a=r<i.length?i[r].from:e}else if(yt[u]==256)u++;else break;let f=o==1,d=(u<e?yt[u]:n)==1,O=f==d?f?1:2:n;for(let m=u,x=r,v=x?i[x-1].to:t;m>l;)m==v&&(m=i[--x].from,v=x?i[x-1].to:t),yt[--m]=O;l=u}else o=c,l++}}}function ky(t,e,i,n,r,o,s){let a=n%2?2:1;if(n%2==r%2)for(let l=e,c=0;l<i;){let u=!0,f=!1;if(c==o.length||l<o[c].from){let x=yt[l];x!=a&&(u=!1,f=x==16)}let d=!u&&a==1?[]:null,O=u?n:n+1,m=l;e:for(;;)if(c<o.length&&m==o[c].from){if(f)break e;let x=o[c];if(!u)for(let v=x.to,w=c+1;;){if(v==i)break e;if(w<o.length&&o[w].from==v)v=o[w++].to;else{if(yt[v]==a)break e;break}}if(c++,d)d.push(x);else{x.from>l&&s.push(new Or(l,x.from,O));let v=x.direction==Hs!=!(O%2);Sy(t,v?n+1:n,r,x.inner,x.from,x.to,s),l=x.to}m=x.to}else{if(m==i||(u?yt[m]!=a:yt[m]==a))break;m++}d?ky(t,l,m,n+1,r,d,s):l<m&&s.push(new Or(l,m,O)),l=m}else for(let l=i,c=o.length;l>e;){let u=!0,f=!1;if(!c||l>o[c-1].to){let x=yt[l-1];x!=a&&(u=!1,f=x==16)}let d=!u&&a==1?[]:null,O=u?n:n+1,m=l;e:for(;;)if(c&&m==o[c-1].to){if(f)break e;let x=o[--c];if(!u)for(let v=x.from,w=c;;){if(v==e)break e;if(w&&o[w-1].to==v)v=o[--w].from;else{if(yt[v-1]==a)break e;break}}if(d)d.push(x);else{x.to<l&&s.push(new Or(x.to,l,O));let v=x.direction==Hs!=!(O%2);Sy(t,v?n+1:n,r,x.inner,x.from,x.to,s),l=x.from}m=x.from}else{if(m==e||(u?yt[m-1]!=a:yt[m-1]==a))break;m--}d?ky(t,m,l,n+1,r,d,s):m<l&&s.push(new Or(m,l,O)),l=m}}function Sy(t,e,i,n,r,o,s){let a=e%2?2:1;LV(t,r,o,n,a),IV(t,r,o,n,a),DV(r,o,n,a),ky(t,r,o,e,i,n,s)}function zV(t,e,i){if(!t)return[new Or(0,0,e==rx?1:0)];if(e==Hs&&!i.length&&!RV.test(t))return $P(t.length);if(i.length)for(;t.length>yt.length;)yt[yt.length]=256;let n=[],r=e==Hs?0:1;return Sy(t,r,r,i,0,t.length,n),n}function $P(t){return[new Or(0,t,0)]}var XP="";function UV(t,e,i,n,r){var o;let s=n.head-t.from,a=Or.find(e,s,(o=n.bidiLevel)!==null&&o!==void 0?o:-1,n.assoc),l=e[a],c=l.side(r,i);if(s==c){let d=a+=r?1:-1;if(d<0||d>=e.length)return null;l=e[a=d],s=l.side(!r,i),c=l.side(r,i)}let u=Ft(t.text,s,l.forward(r,i));(u<l.from||u>l.to)&&(u=c),XP=t.text.slice(Math.min(s,u),Math.max(s,u));let f=a==(r?e.length-1:0)?null:e[a+(r?1:-1)];return f&&u==c&&f.level+(r?0:1)<l.level?J.cursor(f.side(!r,i)+t.from,f.forward(r,i)?1:-1,f.level):J.cursor(u+t.from,l.forward(r,i)?-1:1,l.level)}function MV(t,e,i){for(let n=e;n<i;n++){let r=_P(t.charCodeAt(n));if(r==1)return Hs;if(r==2||r==4)return rx}return Hs}var RP=be.define(),LP=be.define(),IP=be.define(),DP=be.define(),Ty=be.define(),zP=be.define(),UP=be.define(),ox=be.define(),sx=be.define(),MP=be.define({combine:t=>t.some(e=>e)}),NP=be.define({combine:t=>t.some(e=>e)}),qP=be.define(),Mu=class t{constructor(e,i="nearest",n="nearest",r=5,o=5,s=!1){this.range=e,this.y=i,this.x=n,this.yMargin=r,this.xMargin=o,this.isSnapshot=s}map(e){return e.empty?this:new t(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new t(J.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},AO=Se.define({map:(t,e)=>t.map(e)}),jP=Se.define();function Oi(t,e,i){let n=t.facet(DP);n.length?n[0](e):window.onerror?window.onerror(String(e),i,void 0,void 0,e):i?console.error(i+":",e):console.error(e)}var Gr=be.define({combine:t=>t.length?t[0]:!0}),NV=0,Xu=be.define(),He=class t{constructor(e,i,n,r,o){this.id=e,this.create=i,this.domEventHandlers=n,this.domEventObservers=r,this.extension=o(this)}static define(e,i){let{eventHandlers:n,eventObservers:r,provide:o,decorations:s}=i||{};return new t(NV++,e,n,r,a=>{let l=[Xu.of(a)];return s&&l.push(Ku.of(c=>{let u=c.plugin(a);return u?s(u):we.none})),o&&l.push(o(a)),l})}static fromClass(e,i){return t.define(n=>new e(n),i)}},Nu=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let i=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(i)}catch(n){if(Oi(i.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(r){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(i){Oi(e.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var i;if(!((i=this.value)===null||i===void 0)&&i.destroy)try{this.value.destroy()}catch(n){Oi(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},WP=be.define(),ax=be.define(),Ku=be.define(),VP=be.define(),lx=be.define(),ZP=be.define();function RC(t,e){let i=t.state.facet(ZP);if(!i.length)return i;let n=i.map(o=>o instanceof Function?o(t):o),r=[];return Je.spans(n,e.from,e.to,{point(){},span(o,s,a,l){let c=o-e.from,u=s-e.from,f=r;for(let d=a.length-1;d>=0;d--,l--){let O=a[d].spec.bidiIsolate,m;if(O==null&&(O=MV(e.text,c,u)),l>0&&f.length&&(m=f[f.length-1]).to==c&&m.direction==O)m.to=u,f=m.inner;else{let x={from:c,to:u,direction:O,inner:[]};f.push(x),f=x.inner}}}}),r}var BP=be.define();function cx(t){let e=0,i=0,n=0,r=0;for(let o of t.state.facet(BP)){let s=o(t);s&&(s.left!=null&&(e=Math.max(e,s.left)),s.right!=null&&(i=Math.max(i,s.right)),s.top!=null&&(n=Math.max(n,s.top)),s.bottom!=null&&(r=Math.max(r,s.bottom)))}return{left:e,right:i,top:n,bottom:r}}var Ru=be.define(),pr=class t{constructor(e,i,n,r){this.fromA=e,this.toA=i,this.fromB=n,this.toB=r}join(e){return new t(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let i=e.length,n=this;for(;i>0;i--){let r=e[i-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(i-1,1)}}return e.splice(i,0,n),e}static extendWithRanges(e,i){if(i.length==0)return e;let n=[];for(let r=0,o=0,s=0,a=0;;r++){let l=r==e.length?null:e[r],c=s-a,u=l?l.fromB:1e9;for(;o<i.length&&i[o]<u;){let f=i[o],d=i[o+1],O=Math.max(a,f),m=Math.min(u,d);if(O<=m&&new t(O+c,m+c,O,m).addToSet(n),d>u)break;o+=2}if(!l)return n;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(n),s=l.toA,a=l.toB}}},FO=class t{constructor(e,i,n){this.view=e,this.state=i,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=$i.empty(this.startState.doc.length);for(let o of n)this.changes=this.changes.compose(o.changes);let r=[];this.changes.iterChangedRanges((o,s,a,l)=>r.push(new pr(o,s,a,l))),this.changedRanges=r}static create(e,i,n){return new t(e,i,n)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},HO=class extends St{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=we.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new di],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new pr(0,0,0,e.state.doc.length)],0,null)}update(e){var i;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:c,toA:u})=>u<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((i=this.domChanged)===null||i===void 0)&&i.newSel?r=this.domChanged.newSel.head:!YV(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let o=r>-1?jV(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:u}=this.hasComposition;n=new pr(c,u,e.changes.mapPos(c,-1),e.changes.mapPos(u,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(ke.ie||ke.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,a=this.updateDeco(),l=ZV(s,a,e.changes);return n=pr.extendWithRanges(n,l),!(this.flags&7)&&n.length==0?!1:(this.updateInner(n,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,i,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,i,n);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=ke.chrome||ke.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||r.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let s of this.children)s instanceof Bs&&s.widget instanceof Gu&&o.push(s.dom);r.updateGaps(o)}updateChildren(e,i,n){let r=n?n.range.addToSet(e.slice()):e,o=this.childCursor(i);for(let s=r.length-1;;s--){let a=s>=0?r[s]:null;if(!a)break;let{fromA:l,toA:c,fromB:u,toB:f}=a,d,O,m,x;if(n&&n.range.fromB<f&&n.range.toB>u){let I=Uu.build(this.view.state.doc,u,n.range.fromB,this.decorations,this.dynamicDecorationMap),z=Uu.build(this.view.state.doc,n.range.toB,f,this.decorations,this.dynamicDecorationMap);O=I.breakAtStart,m=I.openStart,x=z.openEnd;let $=this.compositionView(n);z.breakAtStart?$.breakAfter=1:z.content.length&&$.merge($.length,$.length,z.content[0],!1,z.openStart,0)&&($.breakAfter=z.content[0].breakAfter,z.content.shift()),I.content.length&&$.merge(0,0,I.content[I.content.length-1],!0,0,I.openEnd)&&I.content.pop(),d=I.content.concat($).concat(z.content)}else({content:d,breakAtStart:O,openStart:m,openEnd:x}=Uu.build(this.view.state.doc,u,f,this.decorations,this.dynamicDecorationMap));let{i:v,off:w}=o.findPos(c,1),{i:T,off:Q}=o.findPos(l,-1);vP(this,T,Q,v,w,d,O,m,x)}n&&this.fixCompositionDOM(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let i of e.transactions)for(let n of i.effects)n.is(jP)&&(this.editContextFormatting=n.value)}compositionView(e){let i=new gr(e.text.nodeValue);i.flags|=8;for(let{deco:r}of e.marks)i=new Ko(r,[i],i.length);let n=new di;return n.append(i,0),n}fixCompositionDOM(e){let i=(o,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let a=St.get(o);a&&a!=s&&(a.dom=null),s.setDOM(o)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];i(e.line,r);for(let o=e.marks.length-1;o>=-1;o--)n=r.childPos(n.off,1),r=r.children[n.i],i(o>=0?e.marks[o].node:e.text,r)}updateSelection(e=!1,i=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,o=!r&&!(this.view.state.facet(Gr)||this.dom.tabIndex>-1)&&UO(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||i||o))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(ke.gecko&&a.empty&&!this.hasComposition&&qV(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=c=new Li(f,0),s=!0}let u=this.view.observer.selectionRange;(s||!u.focusNode||(!zu(l.node,l.offset,u.anchorNode,u.anchorOffset)||!zu(c.node,c.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,a))&&(this.view.observer.ignore(()=>{ke.android&&ke.chrome&&this.dom.contains(u.focusNode)&&BV(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=Vu(this.view.root);if(f)if(a.empty){if(ke.gecko){let d=WV(l.node,l.offset);if(d&&d!=3){let O=(d==1?yP:xP)(l.node,l.offset);O&&(l=new Li(O.node,O.offset))}}f.collapse(l.node,l.offset),a.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=a.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(c.node,c.offset)}catch(d){}}else{let d=document.createRange();a.anchor>a.head&&([l,c]=[c,l]),d.setEnd(c.node,c.offset),d.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(d)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Li(u.anchorNode,u.anchorOffset),this.impreciseHead=c.precise?null:new Li(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,i){return this.hasComposition&&i.empty&&zu(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==i.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,i=e.state.selection.main,n=Vu(e.root),{anchorNode:r,anchorOffset:o}=e.observer.selectionRange;if(!n||!i.empty||!i.assoc||!n.modify)return;let s=di.find(this,i.head);if(!s)return;let a=s.posAtStart;if(i.head==a||i.head==a+s.length)return;let l=this.coordsAt(i.head,-1),c=this.coordsAt(i.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(i.head+i.assoc);n.collapse(u.node,u.offset),n.modify("move",i.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=i.from&&n.collapse(r,o)}moveToLine(e){let i=this.dom,n;if(e.node!=i)return e;for(let r=e.offset;!n&&r<i.childNodes.length;r++){let o=St.get(i.childNodes[r]);o instanceof di&&(n=o.domAtPos(0))}for(let r=e.offset-1;!n&&r>=0;r--){let o=St.get(i.childNodes[r]);o instanceof di&&(n=o.domAtPos(o.length))}return n?new Li(n.node,n.offset,!0):e}nearest(e){for(let i=e;i;){let n=St.get(i);if(n&&n.rootView==this)return n;i=i.parentNode}return null}posFromDOM(e,i){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,i)+n.posAtStart}domAtPos(e){let{i,off:n}=this.childCursor().findPos(e,-1);for(;i<this.children.length-1;){let r=this.children[i];if(n<r.length||r instanceof di)break;i++,n=0}return this.children[i].domAtPos(n)}coordsAt(e,i){let n=null,r=0;for(let o=this.length,s=this.children.length-1;s>=0;s--){let a=this.children[s],l=o-a.breakAfter,c=l-a.length;if(l<e)break;if(c<=e&&(c<e||a.covers(-1))&&(l>e||a.covers(1))&&(!n||a instanceof di&&!(n instanceof di&&i>=0)))n=a,r=c;else if(n&&c==e&&l==e&&a instanceof Bs&&Math.abs(i)<2){if(a.deco.startSide<0)break;s&&(n=null)}o=c}return n?n.coordsAt(e-r,i):null}coordsForChar(e){let{i,off:n}=this.childPos(e,1),r=this.children[i];if(!(r instanceof di))return null;for(;r.children.length;){let{i:a,off:l}=r.childPos(n,1);for(;;a++){if(a==r.children.length)return null;if((r=r.children[a]).length)break}n=l}if(!(r instanceof gr))return null;let o=Ft(r.text,n);if(o==n)return null;let s=Fs(r.dom,n,o).getClientRects();for(let a=0;a<s.length;a++){let l=s[a];if(a==s.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let i=[],{from:n,to:r}=e,o=this.view.contentDOM.clientWidth,s=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==at.LTR;for(let c=0,u=0;u<this.children.length;u++){let f=this.children[u],d=c+f.length;if(d>r)break;if(c>=n){let O=f.dom.getBoundingClientRect();if(i.push(O.height),s){let m=f.dom.lastChild,x=m?Zu(m):[];if(x.length){let v=x[x.length-1],w=l?v.right-O.left:O.right-v.left;w>a&&(a=w,this.minWidth=o,this.minWidthFrom=c,this.minWidthTo=d)}}}c=d+f.breakAfter}return i}textDirectionAt(e){let{i}=this.childPos(e,1);return getComputedStyle(this.children[i].dom).direction=="rtl"?at.RTL:at.LTR}measureTextSize(){for(let o of this.children)if(o instanceof di){let s=o.measureTextSize();if(s)return s}let e=document.createElement("div"),i,n,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=Zu(e.firstChild)[0];i=e.getBoundingClientRect().height,n=o?o.width/27:7,r=o?o.height:i,e.remove()}),{lineHeight:i,charWidth:n,textHeight:r}}childCursor(e=this.length){let i=this.children.length;return i&&(e-=this.children[--i].length),new BO(this.children,e,i)}computeBlockGapDeco(){let e=[],i=this.view.viewState;for(let n=0,r=0;;r++){let o=r==i.viewports.length?null:i.viewports[r],s=o?o.from-1:this.length;if(s>n){let a=(i.lineBlockAt(s).bottom-i.lineBlockAt(n).top)/this.view.scaleY;e.push(we.replace({widget:new Gu(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,s))}if(!o)break;n=o.to+1}return we.set(e)}updateDeco(){let e=1,i=this.view.state.facet(Ku).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),n=!1,r=this.view.state.facet(VP).map((o,s)=>{let a=typeof o=="function";return a&&(n=!0),a?o(this.view):o});for(r.length&&(this.dynamicDecorationMap[e++]=n,i.push(Je.join(r))),this.decorations=[this.editContextFormatting,...i,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(qP))try{if(c(this.view,e.range,e))return!0}catch(u){Oi(this.view.state,u,"scroll handler")}let{range:i}=e,n=this.coordsAt(i.head,i.empty?i.assoc:i.head>i.anchor?-1:1),r;if(!n)return;!i.empty&&(r=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let o=cx(this.view),s={left:n.left-o.left,top:n.top-o.top,right:n.right+o.right,bottom:n.bottom+o.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;kV(this.view.scrollDOM,s,i.head<i.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==at.LTR)}};function qV(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function YP(t,e){let i=t.observer.selectionRange;if(!i.focusNode)return null;let n=yP(i.focusNode,i.focusOffset),r=xP(i.focusNode,i.focusOffset),o=n||r;if(r&&n&&r.node!=n.node){let a=St.get(r.node);if(!a||a instanceof gr&&a.text!=r.node.nodeValue)o=r;else if(t.docView.lastCompositionAfterCursor){let l=St.get(n.node);!l||l instanceof gr&&l.text!=n.node.nodeValue||(o=r)}}if(t.docView.lastCompositionAfterCursor=o!=n,!o)return null;let s=e-o.offset;return{from:s,to:s+o.node.nodeValue.length,node:o.node}}function jV(t,e,i){let n=YP(t,i);if(!n)return null;let{node:r,from:o,to:s}=n,a=r.nodeValue;if(/[\n\r]/.test(a)||t.state.doc.sliceString(n.from,n.to)!=a)return null;let l=e.invertedDesc,c=new pr(l.mapPos(o),l.mapPos(s),o,s),u=[];for(let f=r.parentNode;;f=f.parentNode){let d=St.get(f);if(d instanceof Ko)u.push({node:f,deco:d.mark});else{if(d instanceof di||f.nodeName=="DIV"&&f.parentNode==t.contentDOM)return{range:c,text:r,marks:u,line:f};if(f!=t.contentDOM)u.push({node:f,deco:new Fu({inclusive:!0,attributes:_V(f),tagName:f.tagName.toLowerCase()})});else return null}}}function WV(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}var VV=class{constructor(){this.changes=[]}compareRange(e,i){MO(e,i,this.changes)}comparePoint(e,i){MO(e,i,this.changes)}boundChange(e){MO(e,e,this.changes)}};function ZV(t,e,i){let n=new VV;return Je.compare(t,e,i,n),n.changes}function BV(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(i.nodeType==1&&i.contentEditable=="false")return!0;return!1}function YV(t,e){let i=!1;return e&&t.iterChangedRanges((n,r)=>{n<e.to&&r>e.from&&(i=!0)}),i}function FV(t,e,i=1){let n=t.charCategorizer(e),r=t.doc.lineAt(e),o=e-r.from;if(r.length==0)return J.cursor(e);o==0?i=1:o==r.length&&(i=-1);let s=o,a=o;i<0?s=Ft(r.text,o,!1):a=Ft(r.text,o);let l=n(r.text.slice(s,a));for(;s>0;){let c=Ft(r.text,s,!1);if(n(r.text.slice(c,s))!=l)break;s=c}for(;a<r.length;){let c=Ft(r.text,a);if(n(r.text.slice(a,c))!=l)break;a=c}return J.range(s+r.from,a+r.from)}function HV(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function GV(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function cy(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function LC(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function IC(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Ey(t,e,i){let n,r,o,s,a=!1,l,c,u,f;for(let m=t.firstChild;m;m=m.nextSibling){let x=Zu(m);for(let v=0;v<x.length;v++){let w=x[v];r&&cy(r,w)&&(w=LC(IC(w,r.bottom),r.top));let T=HV(e,w),Q=GV(i,w);if(T==0&&Q==0)return m.nodeType==3?DC(m,e,i):Ey(m,e,i);if(!n||s>Q||s==Q&&o>T){n=m,r=w,o=T,s=Q;let I=Q?i<w.top?-1:1:T?e<w.left?-1:1:0;a=!I||(I>0?v<x.length-1:v>0)}T==0?i>w.bottom&&(!u||u.bottom<w.bottom)?(l=m,u=w):i<w.top&&(!f||f.top>w.top)&&(c=m,f=w):u&&cy(u,w)?u=IC(u,w.bottom):f&&cy(f,w)&&(f=LC(f,w.top))}}if(u&&u.bottom>=i?(n=l,r=u):f&&f.top<=i&&(n=c,r=f),!n)return{node:t,offset:0};let d=Math.max(r.left,Math.min(r.right,e));if(n.nodeType==3)return DC(n,d,i);if(a&&n.contentEditable!="false")return Ey(n,d,i);let O=Array.prototype.indexOf.call(t.childNodes,n)+(e>=(r.left+r.right)/2?1:0);return{node:t,offset:O}}function DC(t,e,i){let n=t.nodeValue.length,r=-1,o=1e9,s=0;for(let a=0;a<n;a++){let l=Fs(t,a,a+1).getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(u.top==u.bottom)continue;s||(s=e-u.left);let f=(u.top>i?u.top-i:i-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&f<o){let d=e>=(u.left+u.right)/2,O=d;if((ke.chrome||ke.gecko)&&Fs(t,a).getBoundingClientRect().left==u.right&&(O=!d),f<=0)return{node:t,offset:a+(O?1:0)};r=a+(O?1:0),o=f}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function FP(t,e,i,n=-1){var r,o;let s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l,{docHeight:c}=t.viewState,{x:u,y:f}=e,d=f-a;if(d<0)return 0;if(d>c)return t.state.doc.length;for(let I=t.viewState.heightOracle.textHeight/2,z=!1;l=t.elementAtHeight(d),l.type!=Ii.Text;)for(;d=n>0?l.bottom+I:l.top-I,!(d>=0&&d<=c);){if(z)return i?null:0;z=!0,n=-n}f=a+d;let O=l.from;if(O<t.viewport.from)return t.viewport.from==0?0:i?null:zC(t,s,l,u,f);if(O>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:i?null:zC(t,s,l,u,f);let m=t.dom.ownerDocument,x=t.root.elementFromPoint?t.root:m,v=x.elementFromPoint(u,f);v&&!t.contentDOM.contains(v)&&(v=null),v||(u=Math.max(s.left+1,Math.min(s.right-1,u)),v=x.elementFromPoint(u,f),v&&!t.contentDOM.contains(v)&&(v=null));let w,T=-1;if(v&&((r=t.docView.nearest(v))===null||r===void 0?void 0:r.isEditable)!=!1){if(m.caretPositionFromPoint){let I=m.caretPositionFromPoint(u,f);I&&({offsetNode:w,offset:T}=I)}else if(m.caretRangeFromPoint){let I=m.caretRangeFromPoint(u,f);I&&({startContainer:w,startOffset:T}=I,(!t.contentDOM.contains(w)||ke.safari&&KV(w,T,u)||ke.chrome&&JV(w,T,u))&&(w=void 0))}w&&(T=Math.min(mr(w),T))}if(!w||!t.docView.dom.contains(w)){let I=di.find(t.docView,O);if(!I)return d>l.top+l.height/2?l.to:l.from;({node:w,offset:T}=Ey(I.dom,u,f))}let Q=t.docView.nearest(w);if(!Q)return null;if(Q.isWidget&&((o=Q.dom)===null||o===void 0?void 0:o.nodeType)==1){let I=Q.dom.getBoundingClientRect();return e.y<I.top||e.y<=I.bottom&&e.x<=(I.left+I.right)/2?Q.posAtStart:Q.posAtEnd}else return Q.localPosFromDOM(w,T)+Q.posAtStart}function zC(t,e,i,n,r){let o=Math.round((n-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&i.height>t.defaultLineHeight*1.5){let a=t.viewState.heightOracle.textHeight,l=Math.floor((r-i.top-(t.defaultLineHeight-a)*.5)/a);o+=l*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(i.from,i.to);return i.from+PO(s,o,t.state.tabSize)}function KV(t,e,i){let n;if(t.nodeType!=3||e!=(n=t.nodeValue.length))return!1;for(let r=t.nextSibling;r;r=r.nextSibling)if(r.nodeType!=1||r.nodeName!="BR")return!1;return Fs(t,n-1,n).getBoundingClientRect().left>i}function JV(t,e,i){if(e!=0)return!1;for(let r=t;;){let o=r.parentNode;if(!o||o.nodeType!=1||o.firstChild!=r)return!1;if(o.classList.contains("cm-line"))break;r=o}let n=t.nodeType==1?t.getBoundingClientRect():Fs(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return i-n.left>5}function Cy(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type)){for(let n of i.type)if(n.to>e||n.to==e&&(n.to==i.to||n.type==Ii.Text))return n}return i}function eZ(t,e,i,n){let r=Cy(t,e.head),o=!n||r.type!=Ii.Text||!(t.lineWrapping||r.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(o){let s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:i==(a==at.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(l!=null)return J.cursor(l,i?-1:1)}return J.cursor(i?r.to:r.from,i?-1:1)}function UC(t,e,i,n){let r=t.state.doc.lineAt(e.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from);for(let a=e,l=null;;){let c=UV(r,o,s,a,i),u=XP;if(!c){if(r.number==(i?t.state.doc.lines:1))return a;u=`
|
||
`,r=t.state.doc.line(r.number+(i?1:-1)),o=t.bidiSpans(r),c=t.visualLineSide(r,!i)}if(l){if(!l(u))return a}else{if(!n)return c;l=n(u)}a=c}}function tZ(t,e,i){let n=t.state.charCategorizer(e),r=n(i);return o=>{let s=n(o);return r==mt.Space&&(r=s),r==s}}function iZ(t,e,i,n){let r=e.head,o=i?1:-1;if(r==(i?t.state.doc.length:0))return J.cursor(r,e.assoc);let s=e.goalColumn,a,l=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(r,e.assoc||-1),u=t.documentTop;if(c)s==null&&(s=c.left-l.left),a=o<0?c.top:c.bottom;else{let O=t.viewState.lineBlockAt(r);s==null&&(s=Math.min(l.right-l.left,t.defaultCharacterWidth*(r-O.from))),a=(o<0?O.top:O.bottom)+u}let f=l.left+s,d=n!=null?n:t.viewState.heightOracle.textHeight>>1;for(let O=0;;O+=10){let m=a+(d+O)*o,x=FP(t,{x:f,y:m},!1,o);if(m<l.top||m>l.bottom||(o<0?x<r:x>r)){let v=t.docView.coordsForChar(x),w=!v||m<v.top?-1:1;return J.cursor(x,w,void 0,s)}}}function NO(t,e,i){for(;;){let n=0;for(let r of t)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let l=n||i||(e-o<s-e?-1:1);e=l<0?o:s,n=l}});if(!n)return e}}function uy(t,e,i){let n=NO(t.state.facet(lx).map(r=>r(t)),i.from,e.head>i.from?-1:1);return n==i.from?i:J.cursor(n,n<i.from?1:-1)}var Lu="\uFFFF",Py=class{constructor(e,i){this.points=e,this.text="",this.lineSeparator=i.facet(st.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Lu}readRange(e,i){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let o=this.text.length;this.readNode(r);let s=r.nextSibling;if(s==i)break;let a=St.get(r),l=St.get(s);(a&&l?a.breakAfter:(a?a.breakAfter:ZO(r))||ZO(s)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>o)&&this.lineBreak(),r=s}return this.findPointBefore(n,i),this}readTextNode(e){let i=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,i.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,s=1,a;if(this.lineSeparator?(o=i.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(a=r.exec(i))&&(o=a.index,s=a[0].length),this.append(i.slice(n,o<0?i.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let i=St.get(e),n=i&&i.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let r=n.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,i){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==i&&(n.pos=this.text.length)}findPointInside(e,i){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(nZ(e,n.node,n.offset)?i:0))}};function nZ(t,e,i){for(;;){if(!e||i<mr(e))return!1;if(e==t)return!0;i=Ys(e)+1,e=e.parentNode}}var GO=class{constructor(e,i){this.node=e,this.offset=i,this.pos=-1}},Qy=class{constructor(e,i,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=i>-1;let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&i>-1)this.newSel=null;else if(i>-1&&(this.bounds=e.docView.domBoundsAround(i,n,0))){let a=o||s?[]:sZ(e),l=new Py(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=aZ(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!py(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),c=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!py(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),u=e.viewport;if((ke.ios||ke.chrome)&&e.state.selection.main.empty&&l!=c&&(u.from>0||u.to<e.state.doc.length)){let f=Math.min(l,c),d=Math.max(l,c),O=u.from-f,m=u.to-d;(O==0||O==1||f==0)&&(m==0||m==-1||d==e.state.doc.length)&&(l=0,c=e.state.doc.length)}this.newSel=J.single(c,l)}}};function HP(t,e){let i,{newSel:n}=e,r=t.state.selection.main,o=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:a}=e.bounds,l=r.from,c=null;(o===8||ke.android&&e.text.length<a-s)&&(l=r.to,c="end");let u=oZ(t.state.doc.sliceString(s,a,Lu),e.text,l-s,c);u&&(ke.chrome&&o==13&&u.toB==u.from+2&&e.text.slice(u.from,u.toB)==Lu+Lu&&u.toB--,i={from:s+u.from,to:s+u.toA,insert:Fe.of(e.text.slice(u.from,u.toB).split(Lu))})}else n&&(!t.hasFocus&&t.state.facet(Gr)||n.main.eq(r))&&(n=null);if(!i&&!n)return!1;if(!i&&e.typeOver&&!r.empty&&n&&n.main.empty?i={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:(ke.mac||ke.android)&&i&&i.from==i.to&&i.from==r.head-1&&/^\. ?$/.test(i.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(n&&i.insert.length==2&&(n=J.single(n.main.anchor-1,n.main.head-1)),i={from:i.from,to:i.to,insert:Fe.of([i.insert.toString().replace("."," ")])}):i&&i.from>=r.from&&i.to<=r.to&&(i.from!=r.from||i.to!=r.to)&&r.to-r.from-(i.to-i.from)<=4?i={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,r.to))}:ke.chrome&&i&&i.from==i.to&&i.from==r.head&&i.insert.toString()==`
|
||
`&&t.lineWrapping&&(n&&(n=J.single(n.main.anchor-1,n.main.head-1)),i={from:r.from,to:r.to,insert:Fe.of([" "])}),i)return ux(t,i,n,o);if(n&&!n.main.eq(r)){let s=!1,a="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),a=t.inputState.lastSelectionOrigin),t.dispatch({selection:n,scrollIntoView:s,userEvent:a}),!0}else return!1}function ux(t,e,i,n=-1){if(ke.ios&&t.inputState.flushIOSKey(e))return!0;let r=t.state.selection.main;if(ke.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&t.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&wl(t.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||n==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&wl(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&wl(t.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let s,a=()=>s||(s=rZ(t,e,i));return t.state.facet(zP).some(l=>l(t,e.from,e.to,o,a))||t.dispatch(a()),!0}function rZ(t,e,i){let n,r=t.state,o=r.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let a=o.from<e.from?r.sliceDoc(o.from,e.from):"",l=o.to>e.to?r.sliceDoc(e.to,o.to):"";n=r.replaceSelection(t.state.toText(a+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let a=r.changes(e),l=i&&i.main.to<=a.newLength?i.main:void 0;if(r.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let c=t.state.sliceDoc(e.from,e.to),u,f=i&&YP(t,i.main.head);if(f){let m=e.insert.length-(e.to-e.from);u={from:f.from,to:f.to-m}}else u=t.state.doc.lineAt(o.head);let d=o.to-e.to,O=o.to-o.from;n=r.changeByRange(m=>{if(m.from==o.from&&m.to==o.to)return{changes:a,range:l||m.map(a)};let x=m.to-d,v=x-c.length;if(m.to-m.from!=O||t.state.sliceDoc(v,x)!=c||m.to>=u.from&&m.from<=u.to)return{range:m};let w=r.changes({from:v,to:x,insert:e.insert}),T=m.to-o.to;return{changes:w,range:l?J.range(Math.max(0,l.anchor+T),Math.max(0,l.head+T)):m.map(w)}})}else n={changes:a,selection:l&&r.selection.replaceRange(l)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:s,scrollIntoView:!0})}function oZ(t,e,i,n){let r=Math.min(t.length,e.length),o=0;for(;o<r&&t.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&t.length==e.length)return null;let s=t.length,a=e.length;for(;s>0&&a>0&&t.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(n=="end"){let l=Math.max(0,o-Math.min(s,a));i-=s+l-o}if(s<o&&t.length<e.length){let l=i<=o&&i>=s?o-i:0;o-=l,a=o+(a-s),s=o}else if(a<o){let l=i<=o&&i>=a?o-i:0;o-=l,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function sZ(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:o}=t.observer.selectionRange;return i&&(e.push(new GO(i,n)),(r!=i||o!=n)&&e.push(new GO(r,o))),e}function aZ(t,e){if(t.length==0)return null;let i=t[0].pos,n=t.length==2?t[1].pos:i;return i>-1&&n>-1?J.single(i+e,n+e):null}var _y=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,ke.safari&&e.contentDOM.addEventListener("input",()=>null),ke.gecko&&wZ(e.contentDOM.ownerDocument)}handleEvent(e){!OZ(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,i){let n=this.handlers[e];if(n){for(let r of n.observers)r(this.view,i);for(let r of n.handlers){if(i.defaultPrevented)break;if(r(this.view,i)){i.preventDefault();break}}}}ensureHandlers(e){let i=lZ(e),n=this.handlers,r=this.view.contentDOM;for(let o in i)if(o!="scroll"){let s=!i[o].handlers.length,a=n[o];a&&s!=!a.handlers.length&&(r.removeEventListener(o,this.handleEvent),a=null),a||r.addEventListener(o,this.handleEvent,{passive:s})}for(let o in n)o!="scroll"&&!i[o]&&r.removeEventListener(o,this.handleEvent);this.handlers=i}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&KP.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),ke.android&&ke.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let i;return ke.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((i=GP.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||cZ.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=i||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let i=this.pendingIOSKey;return!i||i.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,wl(this.view.contentDOM,i.key,i.keyCode,i instanceof KeyboardEvent?i:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:ke.safari&&!ke.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function MC(t,e){return(i,n)=>{try{return e.call(t,n,i)}catch(r){Oi(i.state,r)}}}function lZ(t){let e=Object.create(null);function i(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of t){let r=n.spec;if(r&&r.domEventHandlers)for(let o in r.domEventHandlers){let s=r.domEventHandlers[o];s&&i(o).handlers.push(MC(n.value,s))}if(r&&r.domEventObservers)for(let o in r.domEventObservers){let s=r.domEventObservers[o];s&&i(o).observers.push(MC(n.value,s))}}for(let n in Zn)i(n).handlers.push(Zn[n]);for(let n in Sn)i(n).observers.push(Sn[n]);return e}var GP=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],cZ="dthko",KP=[16,17,18,20,91,92,224,225],$O=6;function XO(t){return Math.max(0,t)*.7+8}function uZ(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}var Ay=class{constructor(e,i,n,r){this.view=e,this.startEvent=i,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=i,this.scrollParents=SV(e.contentDOM),this.atoms=e.state.facet(lx).map(s=>s(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=i.shiftKey,this.multiple=e.state.facet(st.allowMultipleSelections)&&fZ(e,i),this.dragging=dZ(e,i)&&tQ(i)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&uZ(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let i=0,n=0,r=0,o=0,s=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=cx(this.view);e.clientX-l.left<=r+$O?i=-XO(r-e.clientX):e.clientX+l.right>=s-$O&&(i=XO(e.clientX-s)),e.clientY-l.top<=o+$O?n=-XO(o-e.clientY):e.clientY+l.bottom>=a-$O&&(n=XO(e.clientY-a)),this.setScrollSpeed(i,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,i){this.scrollSpeed={x:e,y:i},e||i?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:i}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),i&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=i,i=0),(e||i)&&this.view.win.scrollBy(e,i),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let i=null;for(let n=0;n<e.ranges.length;n++){let r=e.ranges[n],o=null;if(r.empty){let s=NO(this.atoms,r.from,0);s!=r.from&&(o=J.cursor(s,-1))}else{let s=NO(this.atoms,r.from,-1),a=NO(this.atoms,r.to,1);(s!=r.from||a!=r.to)&&(o=J.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(i||(i=e.ranges.slice()),i[n]=o)}return i?J.create(i,e.mainIndex):e}select(e){let{view:i}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(i.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(i=>i.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};function fZ(t,e){let i=t.state.facet(RP);return i.length?i[0](e):ke.mac?e.metaKey:e.ctrlKey}function hZ(t,e){let i=t.state.facet(LP);return i.length?i[0](e):ke.mac?!e.altKey:!e.ctrlKey}function dZ(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let n=Vu(t.root);if(!n||n.rangeCount==0)return!0;let r=n.getRangeAt(0).getClientRects();for(let o=0;o<r.length;o++){let s=r[o];if(s.left<=e.clientX&&s.right>=e.clientX&&s.top<=e.clientY&&s.bottom>=e.clientY)return!0}return!1}function OZ(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i=e.target,n;i!=t.contentDOM;i=i.parentNode)if(!i||i.nodeType==11||(n=St.get(i))&&n.ignoreEvent(e))return!1;return!0}var Zn=Object.create(null),Sn=Object.create(null),JP=ke.ie&&ke.ie_version<15||ke.ios&&ke.webkit_version<604;function pZ(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{t.focus(),i.remove(),eQ(t,i.value)},50)}function cp(t,e,i){for(let n of t.facet(e))i=n(i,t);return i}function eQ(t,e){e=cp(t.state,ox,e);let{state:i}=t,n,r=1,o=i.toText(e),s=o.lines==i.selection.ranges.length;if($y!=null&&i.selection.ranges.every(l=>l.empty)&&$y==o.toString()){let l=-1;n=i.changeByRange(c=>{let u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;let f=i.toText((s?o.line(r++).text:e)+i.lineBreak);return{changes:{from:u.from,insert:f},range:J.cursor(c.from+f.length)}})}else s?n=i.changeByRange(l=>{let c=o.line(r++);return{changes:{from:l.from,to:l.to,insert:c.text},range:J.cursor(l.from+c.length)}}):n=i.replaceSelection(o);t.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}Sn.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Zn.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);Sn.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Sn.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Zn.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let i=null;for(let n of t.state.facet(IP))if(i=n(t,e),i)break;if(!i&&e.button==0&&(i=bZ(t,e)),i){let n=!t.hasFocus;t.inputState.startMouseSelection(new Ay(t,e,i,n)),n&&t.observer.ignore(()=>{mP(t.contentDOM);let o=t.root.activeElement;o&&!o.contains(t.contentDOM)&&o.blur()});let r=t.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}return!1};function NC(t,e,i,n){if(n==1)return J.cursor(e,i);if(n==2)return FV(t.state,e,i);{let r=di.find(t.docView,e),o=t.state.doc.lineAt(r?r.posAtEnd:e),s=r?r.posAtStart:o.from,a=r?r.posAtEnd:o.to;return a<t.state.doc.length&&a==o.to&&a++,J.range(s,a)}}var qC=(t,e,i)=>e>=i.top&&e<=i.bottom&&t>=i.left&&t<=i.right;function mZ(t,e,i,n){let r=di.find(t.docView,e);if(!r)return 1;let o=e-r.posAtStart;if(o==0)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&qC(i,n,s))return-1;let a=r.coordsAt(o,1);return a&&qC(i,n,a)?1:s&&s.bottom>=n?-1:1}function jC(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:mZ(t,i,e.clientX,e.clientY)}}var gZ=ke.ie&&ke.ie_version<=11,WC=null,VC=0,ZC=0;function tQ(t){if(!gZ)return t.detail;let e=WC,i=ZC;return WC=t,ZC=Date.now(),VC=!e||i>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(VC+1)%3:1}function bZ(t,e){let i=jC(t,e),n=tQ(e),r=t.state.selection;return{update(o){o.docChanged&&(i.pos=o.changes.mapPos(i.pos),r=r.map(o.changes))},get(o,s,a){let l=jC(t,o),c,u=NC(t,l.pos,l.bias,n);if(i.pos!=l.pos&&!s){let f=NC(t,i.pos,i.bias,n),d=Math.min(f.from,u.from),O=Math.max(f.to,u.to);u=d<u.from?J.range(d,O):J.range(O,d)}return s?r.replaceRange(r.main.extend(u.from,u.to)):a&&n==1&&r.ranges.length>1&&(c=yZ(r,l.pos))?c:a?r.addRange(u):J.create([u])}}}function yZ(t,e){for(let i=0;i<t.ranges.length;i++){let{from:n,to:r}=t.ranges[i];if(n<=e&&r>=e)return J.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}Zn.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let o=r.posAtStart,s=o+r.length;(o>=i.to||s<=i.from)&&(i=J.range(o,s))}}let{inputState:n}=t;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=i,e.dataTransfer&&(e.dataTransfer.setData("Text",cp(t.state,sx,t.state.sliceDoc(i.from,i.to))),e.dataTransfer.effectAllowed="copyMove"),!1};Zn.dragend=t=>(t.inputState.draggedContent=null,!1);function BC(t,e,i,n){if(i=cp(t.state,ox,i),!i)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=t.inputState,s=n&&o&&hZ(t,e)?{from:o.from,to:o.to}:null,a={from:r,insert:i},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Zn.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let i=e.dataTransfer.files;if(i&&i.length){let n=Array(i.length),r=0,o=()=>{++r==i.length&&BC(t,e,n.filter(s=>s!=null).join(t.state.lineBreak),!1)};for(let s=0;s<i.length;s++){let a=new FileReader;a.onerror=o,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(n[s]=a.result),o()},a.readAsText(i[s])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return BC(t,e,n,!0),!0}return!1};Zn.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let i=JP?null:e.clipboardData;return i?(eQ(t,i.getData("text/plain")||i.getData("text/uri-list")),!0):(pZ(t),!1)};function xZ(t,e){let i=t.dom.parentNode;if(!i)return;let n=i.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),t.focus()},50)}function vZ(t){let e=[],i=[],n=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),i.push(r));if(!e.length){let r=-1;for(let{from:o}of t.selection.ranges){let s=t.doc.lineAt(o);s.number>r&&(e.push(s.text),i.push({from:s.from,to:Math.min(t.doc.length,s.to+1)})),r=s.number}n=!0}return{text:cp(t,sx,e.join(t.lineBreak)),ranges:i,linewise:n}}var $y=null;Zn.copy=Zn.cut=(t,e)=>{let{text:i,ranges:n,linewise:r}=vZ(t.state);if(!i&&!r)return!1;$y=r?i:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let o=JP?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",i),!0):(xZ(t,i),!1)};var iQ=Si.define();function nQ(t,e){let i=[];for(let n of t.facet(UP)){let r=n(t,e);r&&i.push(r)}return i?t.update({effects:i,annotations:iQ.of(!0)}):null}function rQ(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=nQ(t.state,e);i?t.dispatch(i):t.update([])}},10)}Sn.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),rQ(t)};Sn.blur=t=>{t.observer.clearSelectionRange(),rQ(t)};Sn.compositionstart=Sn.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};Sn.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,ke.chrome&&ke.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};Sn.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Zn.beforeinput=(t,e)=>{var i,n;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let o=(i=e.dataTransfer)===null||i===void 0?void 0:i.getData("text/plain"),s=e.getTargetRanges();if(o&&s.length){let a=s[0],l=t.posAtDOM(a.startContainer,a.startOffset),c=t.posAtDOM(a.endContainer,a.endOffset);return ux(t,{from:l,to:c,insert:t.state.toText(o)},null),!0}}let r;if(ke.chrome&&ke.android&&(r=GP.find(o=>o.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let o=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>o+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return ke.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),ke.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Sn.compositionend(t,e),20),!1};var YC=new Set;function wZ(t){YC.has(t)||(YC.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}var FC=["pre-wrap","normal","pre-line","break-spaces"],kl=!1;function HC(){kl=!1}var Xy=class{constructor(e){this.lineWrapping=e,this.doc=Fe.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,i){let n=this.doc.lineAt(i).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((i-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return FC.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let i=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(r*10)]||(i=!0,this.heightSamples[Math.floor(r*10)]=!0)}return i}refresh(e,i,n,r,o,s){let a=FC.indexOf(e)>-1,l=Math.round(i)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=i,this.charWidth=n,this.textHeight=r,this.lineLength=o,l){this.heightSamples={};for(let c=0;c<s.length;c++){let u=s[c];u<0?c++:this.heightSamples[Math.floor(u*10)]=!0}}return l}},Ry=class{constructor(e,i){this.from=e,this.heights=i,this.index=0}get more(){return this.index<this.heights.length}},dr=class t{constructor(e,i,n,r,o){this.from=e,this.length=i,this.top=n,this.height=r,this._content=o}get type(){return typeof this._content=="number"?Ii.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Jo?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let i=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new t(this.from,this.length+e.length,this.top,this.height+e.height,i)}},Tt=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(Tt||(Tt={})),qO=.001,on=class t{constructor(e,i,n=2){this.length=e,this.height=i,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>qO&&(kl=!0),this.height=e)}replace(e,i,n){return t.of(n)}decomposeLeft(e,i){i.push(this)}decomposeRight(e,i){i.push(this)}applyChanges(e,i,n,r){let o=this,s=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:u,toB:f}=r[a],d=o.lineAt(l,Tt.ByPosNoHeight,n.setDoc(i),0,0),O=d.to>=c?d:o.lineAt(c,Tt.ByPosNoHeight,n,0,0);for(f+=O.to-c,c=O.to;a>0&&d.from<=r[a-1].toA;)l=r[a-1].fromA,u=r[a-1].fromB,a--,l<d.from&&(d=o.lineAt(l,Tt.ByPosNoHeight,n,0,0));u+=d.from-l,l=d.from;let m=Iy.build(n.setDoc(s),e,u,f);o=KO(o,o.replace(l,c,m))}return o.updateHeight(n,0)}static empty(){return new kn(0,0)}static of(e){if(e.length==1)return e[0];let i=0,n=e.length,r=0,o=0;for(;;)if(i==n)if(r>o*2){let a=e[i-1];a.break?e.splice(--i,1,a.left,null,a.right):e.splice(--i,1,a.left,a.right),n+=1+a.break,r-=a.size}else if(o>r*2){let a=e[n];a.break?e.splice(n,1,a.left,null,a.right):e.splice(n,1,a.left,a.right),n+=2+a.break,o-=a.size}else break;else if(r<o){let a=e[i++];a&&(r+=a.size)}else{let a=e[--n];a&&(o+=a.size)}let s=0;return e[i-1]==null?(s=1,i--):e[i]==null&&(s=1,n++),new Ly(t.of(e.slice(0,i)),s,t.of(e.slice(n)))}};function KO(t,e){return t==e?t:(t.constructor!=e.constructor&&(kl=!0),e)}on.prototype.size=1;var JO=class extends on{constructor(e,i,n){super(e,i),this.deco=n}blockAt(e,i,n,r){return new dr(r,this.length,n,this.height,this.deco||0)}lineAt(e,i,n,r,o){return this.blockAt(0,n,r,o)}forEachLine(e,i,n,r,o,s){e<=o+this.length&&i>=o&&s(this.blockAt(0,n,r,o))}updateHeight(e,i=0,n=!1,r){return r&&r.from<=i&&r.more&&this.setHeight(r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}},kn=class t extends JO{constructor(e,i){super(e,i,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,i,n,r){return new dr(r,this.length,n,this.height,this.breaks)}replace(e,i,n){let r=n[0];return n.length==1&&(r instanceof t||r instanceof Go&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof Go?r=new t(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):on.of(n)}updateHeight(e,i=0,n=!1,r){return r&&r.from<=i&&r.more?this.setHeight(r.heights[r.index++]):(n||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},Go=class t extends on{constructor(e){super(e,0)}heightMetrics(e,i){let n=e.doc.lineAt(i).number,r=e.doc.lineAt(i+this.length).number,o=r-n+1,s,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*o);s=l/o,this.length>o+1&&(a=(this.height-l)/(this.length-o-1))}else s=this.height/o;return{firstLine:n,lastLine:r,perLine:s,perChar:a}}blockAt(e,i,n,r){let{firstLine:o,lastLine:s,perLine:a,perChar:l}=this.heightMetrics(i,r);if(i.lineWrapping){let c=r+(e<i.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),u=i.doc.lineAt(c),f=a+u.length*l,d=Math.max(n,e-f/2);return new dr(u.from,u.length,d,f,0)}else{let c=Math.max(0,Math.min(s-o,Math.floor((e-n)/a))),{from:u,length:f}=i.doc.line(o+c);return new dr(u,f,n+a*c,a,0)}}lineAt(e,i,n,r,o){if(i==Tt.ByHeight)return this.blockAt(e,n,r,o);if(i==Tt.ByPosNoHeight){let{from:O,to:m}=n.doc.lineAt(e);return new dr(O,m-O,0,0,0)}let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(n,o),c=n.doc.lineAt(e),u=a+c.length*l,f=c.number-s,d=r+a*f+l*(c.from-o-f);return new dr(c.from,c.length,Math.max(r,Math.min(d,r+this.height-u)),u,0)}forEachLine(e,i,n,r,o,s){e=Math.max(e,o),i=Math.min(i,o+this.length);let{firstLine:a,perLine:l,perChar:c}=this.heightMetrics(n,o);for(let u=e,f=r;u<=i;){let d=n.doc.lineAt(u);if(u==e){let m=d.number-a;f+=l*m+c*(e-o-m)}let O=l+c*d.length;s(new dr(d.from,d.length,f,O,0)),f+=O,u=d.to+1}}replace(e,i,n){let r=this.length-i;if(r>0){let o=n[n.length-1];o instanceof t?n[n.length-1]=new t(o.length+r):n.push(null,new t(r-1))}if(e>0){let o=n[0];o instanceof t?n[0]=new t(e+o.length):n.unshift(new t(e-1),null)}return on.of(n)}decomposeLeft(e,i){i.push(new t(e-1),null)}decomposeRight(e,i){i.push(null,new t(this.length-e-1))}updateHeight(e,i=0,n=!1,r){let o=i+this.length;if(r&&r.from<=i+this.length&&r.more){let s=[],a=Math.max(i,r.from),l=-1;for(r.from>i&&s.push(new t(r.from-i-1).updateHeight(e,i));a<=o&&r.more;){let u=e.doc.lineAt(a).length;s.length&&s.push(null);let f=r.heights[r.index++];l==-1?l=f:Math.abs(f-l)>=qO&&(l=-2);let d=new kn(u,f);d.outdated=!1,s.push(d),a+=u+1}a<=o&&s.push(null,new t(o-a).updateHeight(e,a));let c=on.of(s);return(l<0||Math.abs(c.height-this.height)>=qO||Math.abs(l-this.heightMetrics(e,i).perLine)>=qO)&&(kl=!0),KO(this,c)}else(n||this.outdated)&&(this.setHeight(e.heightForGap(i,i+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},Ly=class extends on{constructor(e,i,n){super(e.length+i+n.length,e.height+n.height,i|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,i,n,r){let o=n+this.left.height;return e<o?this.left.blockAt(e,i,n,r):this.right.blockAt(e,i,o,r+this.left.length+this.break)}lineAt(e,i,n,r,o){let s=r+this.left.height,a=o+this.left.length+this.break,l=i==Tt.ByHeight?e<s:e<a,c=l?this.left.lineAt(e,i,n,r,o):this.right.lineAt(e,i,n,s,a);if(this.break||(l?c.to<a:c.from>a))return c;let u=i==Tt.ByPosNoHeight?Tt.ByPosNoHeight:Tt.ByPos;return l?c.join(this.right.lineAt(a,u,n,s,a)):this.left.lineAt(a,u,n,r,o).join(c)}forEachLine(e,i,n,r,o,s){let a=r+this.left.height,l=o+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,i,n,r,o,s),i>=l&&this.right.forEachLine(e,i,n,a,l,s);else{let c=this.lineAt(l,Tt.ByPos,n,r,o);e<c.from&&this.left.forEachLine(e,c.from-1,n,r,o,s),c.to>=e&&c.from<=i&&s(c),i>c.to&&this.right.forEachLine(c.to+1,i,n,a,l,s)}}replace(e,i,n){let r=this.left.length+this.break;if(i<r)return this.balanced(this.left.replace(e,i,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,i-r,n));let o=[];e>0&&this.decomposeLeft(e,o);let s=o.length;for(let a of n)o.push(a);if(e>0&&GC(o,s-1),i<this.length){let a=o.length;this.decomposeRight(i,o),GC(o,a)}return on.of(o)}decomposeLeft(e,i){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,i);i.push(this.left),this.break&&(n++,e>=n&&i.push(null)),e>n&&this.right.decomposeLeft(e-n,i)}decomposeRight(e,i){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,i);e<n&&this.left.decomposeRight(e,i),this.break&&e<r&&i.push(null),i.push(this.right)}balanced(e,i){return e.size>2*i.size||i.size>2*e.size?on.of(this.break?[e,null,i]:[e,i]):(this.left=KO(this.left,e),this.right=KO(this.right,i),this.setHeight(e.height+i.height),this.outdated=e.outdated||i.outdated,this.size=e.size+i.size,this.length=e.length+this.break+i.length,this)}updateHeight(e,i=0,n=!1,r){let{left:o,right:s}=this,a=i+o.length+this.break,l=null;return r&&r.from<=i+o.length&&r.more?l=o=o.updateHeight(e,i,n,r):o.updateHeight(e,i,n),r&&r.from<=a+s.length&&r.more?l=s=s.updateHeight(e,a,n,r):s.updateHeight(e,a,n),l?this.balanced(o,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function GC(t,e){let i,n;t[e]==null&&(i=t[e-1])instanceof Go&&(n=t[e+1])instanceof Go&&t.splice(e-1,3,new Go(i.length+1+n.length))}var kZ=5,Iy=class t{constructor(e,i){this.pos=e,this.oracle=i,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,i){if(this.lineStart>-1){let n=Math.min(i,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof kn?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new kn(n-this.pos,-1)),this.writtenTo=n,i>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=i}point(e,i,n){if(e<i||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,o=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let s=i-e;n.block?this.addBlock(new JO(s,r,n)):(s||o||r>=kZ)&&this.addLineDeco(r,o,s)}else i>e&&this.span(e,i);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:i}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=i,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new kn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,i){let n=new Go(i-e);return this.oracle.doc.lineAt(e).to==i&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof kn)return e;let i=new kn(0,-1);return this.nodes.push(i),i}addBlock(e){this.enterLine();let i=e.deco;i&&i.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,i&&i.endSide>0&&(this.covering=e)}addLineDeco(e,i,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=i,this.writtenTo=this.pos=this.pos+n}finish(e){let i=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(i instanceof kn)&&!this.isCovered?this.nodes.push(new kn(0,-1)):(this.writtenTo<this.pos||i==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let r of this.nodes)r instanceof kn&&r.updateHeight(this.oracle,n),n+=r?r.length:1;return this.nodes}static build(e,i,n,r){let o=new t(n,e);return Je.spans(i,n,r,o,0),o.finish(n)}};function SZ(t,e,i){let n=new Dy;return Je.compare(t,e,i,n,0),n.changes}var Dy=class{constructor(){this.changes=[]}compareRange(){}comparePoint(e,i,n,r){(e<i||n&&n.heightRelevant||r&&r.heightRelevant)&&MO(e,i,this.changes,5)}};function TZ(t,e){let i=t.getBoundingClientRect(),n=t.ownerDocument,r=n.defaultView||window,o=Math.max(0,i.left),s=Math.min(r.innerWidth,i.right),a=Math.max(0,i.top),l=Math.min(r.innerHeight,i.bottom);for(let c=t.parentNode;c&&c!=n.body;)if(c.nodeType==1){let u=c,f=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&f.overflow!="visible"){let d=u.getBoundingClientRect();o=Math.max(o,d.left),s=Math.min(s,d.right),a=Math.max(a,d.top),l=Math.min(c==t.parentNode?r.innerHeight:l,d.bottom)}c=f.position=="absolute"||f.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:o-i.left,right:Math.max(o,s)-i.left,top:a-(i.top+e),bottom:Math.max(a,l)-(i.top+e)}}function EZ(t){let e=t.getBoundingClientRect(),i=t.ownerDocument.defaultView||window;return e.left<i.innerWidth&&e.right>0&&e.top<i.innerHeight&&e.bottom>0}function CZ(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}var qu=class{constructor(e,i,n,r){this.from=e,this.to=i,this.size=n,this.displaySize=r}static same(e,i){if(e.length!=i.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],o=i[n];if(r.from!=o.from||r.to!=o.to||r.size!=o.size)return!1}return!0}draw(e,i){return we.replace({widget:new zy(this.displaySize*(i?e.scaleY:e.scaleX),i)}).range(this.from,this.to)}},zy=class extends oi{constructor(e,i){super(),this.size=e,this.vertical=i}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}},ep=class{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=KC,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=at.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let i=e.facet(ax).some(n=>typeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new Xy(i),this.stateDeco=e.facet(Ku).filter(n=>typeof n!="function"),this.heightMap=on.empty().applyChanges(this.stateDeco,Fe.empty,this.heightOracle.setDoc(e.doc),[new pr(0,0,0,e.doc.length)]);for(let n=0;n<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());n++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=we.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:i}=this.state.selection;for(let n=0;n<=1;n++){let r=n?i.head:i.anchor;if(!e.some(({from:o,to:s})=>r>=o&&r<=s)){let{from:o,to:s}=this.lineBlockAt(r);e.push(new yl(o,s))}}return this.viewports=e.sort((n,r)=>n.from-r.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?KC:new Uy(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Iu(e,this.scaler))})}update(e,i=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(Ku).filter(u=>typeof u!="function");let r=e.changedRanges,o=pr.extendWithRanges(r,SZ(n,this.stateDeco,e?e.changes:$i.empty(this.state.doc.length))),s=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);HC(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=s||kl)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(i&&(i.range.head<l.from||i.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,i));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),i&&(this.scrollTarget=i),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(NP)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let i=e.contentDOM,n=window.getComputedStyle(i),r=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?at.RTL:at.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=i.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,u=0;if(a.width&&a.height){let{scaleX:I,scaleY:z}=pP(i,a);(I>.005&&Math.abs(this.scaleX-I)>.005||z>.005&&Math.abs(this.scaleY-z)>.005)&&(this.scaleX=I,this.scaleY=z,c|=16,s=l=!0)}let f=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let O=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=O&&(this.scrollAnchorHeight=-1,this.scrollTop=O),this.scrolledToBottom=bP(e.scrollDOM);let m=(this.printing?CZ:TZ)(i,this.paddingTop),x=m.top-this.pixelViewport.top,v=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(l=!0)),!this.inView&&!this.scrollTarget&&!EZ(e.dom))return 0;let T=a.width;if((this.contentDOMWidth!=T||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),l){let I=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(I)&&(s=!0),s||r.lineWrapping&&Math.abs(T-this.contentDOMWidth)>r.charWidth){let{lineHeight:z,charWidth:$,textHeight:X}=e.docView.measureTextSize();s=z>0&&r.refresh(o,z,$,X,T/$,I),s&&(e.docView.minWidth=0,c|=16)}x>0&&v>0?u=Math.max(x,v):x<0&&v<0&&(u=Math.min(x,v)),HC();for(let z of this.viewports){let $=z.from==this.viewport.from?I:e.docView.measureVisibleLineHeights(z);this.heightMap=(s?on.empty().applyChanges(this.stateDeco,Fe.empty,this.heightOracle,[new pr(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new Ry(z.from,$))}kl&&(c|=2)}let Q=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return Q&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),c|=this.updateForViewport()),(c&2||Q)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,i){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,o=this.heightOracle,{visibleTop:s,visibleBottom:a}=this,l=new yl(r.lineAt(s-n*1e3,Tt.ByHeight,o,0,0).from,r.lineAt(a+(1-n)*1e3,Tt.ByHeight,o,0,0).to);if(i){let{head:c}=i.range;if(c<l.from||c>l.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=r.lineAt(c,Tt.ByPos,o,0,0),d;i.y=="center"?d=(f.top+f.bottom)/2-u/2:i.y=="start"||i.y=="nearest"&&c<l.from?d=f.top:d=f.bottom-u,l=new yl(r.lineAt(d-1e3/2,Tt.ByHeight,o,0,0).from,r.lineAt(d+u+1e3/2,Tt.ByHeight,o,0,0).to)}}return l}mapViewport(e,i){let n=i.mapPos(e.from,-1),r=i.mapPos(e.to,1);return new yl(this.heightMap.lineAt(n,Tt.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,Tt.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:i},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,Tt.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(i,Tt.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:a}=this;return(e==0||r<=s-Math.max(10,Math.min(-n,250)))&&(i==this.state.doc.length||o>=a+Math.max(10,Math.min(n,250)))&&r>s-2*1e3&&o<a+2*1e3}mapLineGaps(e,i){if(!e.length||i.empty)return e;let n=[];for(let r of e)i.touchesRange(r.from,r.to)||n.push(new qu(i.mapPos(r.from),i.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,i){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,o=r>>1,s=r<<1;if(this.defaultTextDirection!=at.LTR&&!n)return[];let a=[],l=(u,f,d,O)=>{if(f-u<o)return;let m=this.state.selection.main,x=[m.from];m.empty||x.push(m.to);for(let w of x)if(w>u&&w<f){l(u,w-10,d,O),l(w+10,f,d,O);return}let v=QZ(e,w=>w.from>=d.from&&w.to<=d.to&&Math.abs(w.from-u)<o&&Math.abs(w.to-f)<o&&!x.some(T=>w.from<T&&w.to>T));if(!v){if(f<d.to&&i&&n&&i.visibleRanges.some(Q=>Q.from<=f&&Q.to>=f)){let Q=i.moveToLineBoundary(J.cursor(f),!1,!0).head;Q>u&&(f=Q)}let w=this.gapSize(d,u,f,O),T=n||w<2e6?w:2e6;v=new qu(u,f,w,T)}a.push(v)},c=u=>{if(u.length<s||u.type!=Ii.Text)return;let f=PZ(u.from,u.to,this.stateDeco);if(f.total<s)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,O,m;if(n){let x=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,v,w;if(d!=null){let T=LO(f,d),Q=((this.visibleBottom-this.visibleTop)/2+x)/u.height;v=T-Q,w=T+Q}else v=(this.visibleTop-u.top-x)/u.height,w=(this.visibleBottom-u.top+x)/u.height;O=RO(f,v),m=RO(f,w)}else{let x=f.total*this.heightOracle.charWidth,v=r*this.heightOracle.charWidth,w=0;if(x>2e6)for(let $ of e)$.from>=u.from&&$.from<u.to&&$.size!=$.displaySize&&$.from*this.heightOracle.charWidth+w<this.pixelViewport.left&&(w=$.size-$.displaySize);let T=this.pixelViewport.left+w,Q=this.pixelViewport.right+w,I,z;if(d!=null){let $=LO(f,d),X=((Q-T)/2+v)/x;I=$-X,z=$+X}else I=(T-v)/x,z=(Q+v)/x;O=RO(f,I),m=RO(f,z)}O>u.from&&l(u.from,O,u,f),m<u.to&&l(m,u.to,u,f)};for(let u of this.viewportLines)Array.isArray(u.type)?u.type.forEach(c):c(u);return a}gapSize(e,i,n,r){let o=LO(r,n)-LO(r,i);return this.heightOracle.lineWrapping?e.height*o:r.total*this.heightOracle.charWidth*o}updateLineGaps(e){qu.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=we.set(e.map(i=>i.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let i=this.stateDeco;this.lineGaps.length&&(i=i.concat(this.lineGapDeco));let n=[];Je.spans(i,this.viewport.from,this.viewport.to,{span(o,s){n.push({from:o,to:s})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let o=0;o<n.length&&!(r&8);o++){let s=this.visibleRanges[o],a=n[o];(s.from!=a.from||s.to!=a.to)&&(r|=4,e&&e.mapPos(s.from,-1)==a.from&&e.mapPos(s.to,1)==a.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(i=>i.from<=e&&i.to>=e)||Iu(this.heightMap.lineAt(e,Tt.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(i=>i.top<=e&&i.bottom>=e)||Iu(this.heightMap.lineAt(this.scaler.fromDOM(e),Tt.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let i=this.lineBlockAtHeight(e+8);return i.from>=this.viewport.from||this.viewportLines[0].top-e>200?i:this.viewportLines[0]}elementAtHeight(e){return Iu(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},yl=class{constructor(e,i){this.from=e,this.to=i}};function PZ(t,e,i){let n=[],r=t,o=0;return Je.spans(i,t,e,{span(){},point(s,a){s>r&&(n.push({from:r,to:s}),o+=s-r),r=a}},20),r<e&&(n.push({from:r,to:e}),o+=e-r),{total:o,ranges:n}}function RO({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let n=Math.floor(t*i);for(let r=0;;r++){let{from:o,to:s}=e[r],a=s-o;if(n<=a)return o+n;n-=a}}function LO(t,e){let i=0;for(let{from:n,to:r}of t.ranges){if(e<=r){i+=e-n;break}i+=r-n}return i/t.total}function QZ(t,e){for(let i of t)if(e(i))return i}var KC={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}},Uy=class t{constructor(e,i,n){let r=0,o=0,s=0;this.viewports=n.map(({from:a,to:l})=>{let c=i.lineAt(a,Tt.ByPos,e,0,0).top,u=i.lineAt(l,Tt.ByPos,e,0,0).bottom;return r+=u-c,{from:a,to:l,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(i.height-r);for(let a of this.viewports)a.domTop=s+(a.top-o)*this.scale,s=a.domBottom=a.domTop+(a.bottom-a.top),o=a.bottom}toDOM(e){for(let i=0,n=0,r=0;;i++){let o=i<this.viewports.length?this.viewports[i]:null;if(!o||e<o.top)return r+(e-n)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);n=o.bottom,r=o.domBottom}}fromDOM(e){for(let i=0,n=0,r=0;;i++){let o=i<this.viewports.length?this.viewports[i]:null;if(!o||e<o.domTop)return n+(e-r)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);n=o.bottom,r=o.domBottom}}eq(e){return e instanceof t?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((i,n)=>i.from==e.viewports[n].from&&i.to==e.viewports[n].to):!1}};function Iu(t,e){if(e.scale==1)return t;let i=e.toDOM(t.top),n=e.toDOM(t.bottom);return new dr(t.from,t.length,i,n-i,Array.isArray(t._content)?t._content.map(r=>Iu(r,e)):t._content)}var IO=be.define({combine:t=>t.join(" ")}),My=be.define({combine:t=>t.indexOf(!0)>-1}),Ny=Bi.newName(),oQ=Bi.newName(),sQ=Bi.newName(),aQ={"&light":"."+oQ,"&dark":"."+sQ};function qy(t,e,i){return new Bi(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,r=>{if(r=="&")return t;if(!i||!i[r])throw new RangeError(`Unsupported selector: ${r}`);return i[r]}):t+" "+n}})}var _Z=qy("."+Ny,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},aQ),AZ={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},fy=ke.ie&&ke.ie_version<=11,jy=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new my,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(i=>{for(let n of i)this.queue.push(n);(ke.ie&&ke.ie_version<=11||ke.ios&&e.composing)&&i.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(ke.chrome&&ke.chrome_version<126)&&(this.editContext=new Wy(e),e.state.facet(Gr)&&(e.contentDOM.editContext=this.editContext.editContext)),fy&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var i;((i=this.view.docView)===null||i===void 0?void 0:i.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(i=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),i.length>0&&i[i.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(i=>{i.length>0&&i[i.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((i,n)=>i!=e[n]))){this.gapIntersection.disconnect();for(let i of e)this.gapIntersection.observe(i);this.gaps=e}}onSelectionChange(e){let i=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Gr)?n.root.activeElement!=this.dom:!UO(this.dom,r))return;let o=r.anchorNode&&n.docView.nearest(r.anchorNode);if(o&&o.ignoreEvent(e)){i||(this.selectionChanged=!1);return}(ke.ie&&ke.ie_version<=11||ke.android&&ke.chrome)&&!n.state.selection.main.empty&&r.focusNode&&zu(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,i=Vu(e.root);if(!i)return!1;let n=ke.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&$Z(this.view,i)||i;if(!n||this.selectionRange.eq(n))return!1;let r=UO(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&EV(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,i){this.selectionRange.set(e.node,e.offset,i.node,i.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,i=null;for(let n=this.dom;n;)if(n.nodeType==1)!i&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:i||(i=this.scrollTargets.slice(0,e)),i&&i.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!i&&(i=this.scrollTargets.slice(0,e)),i){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=i)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,AZ),fy&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),fy&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,i){var n;if(!this.delayedAndroidKey){let r=()=>{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&wl(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:i,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let i=-1,n=-1,r=!1;for(let o of e){let s=this.readMutation(o);s&&(s.typeOver&&(r=!0),i==-1?{from:i,to:n}=s:(i=Math.min(s.from,i),n=Math.max(s.to,n)))}return{from:i,to:n,typeOver:r}}readChange(){let{from:e,to:i,typeOver:n}=this.processRecords(),r=this.selectionChanged&&UO(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new Qy(this.view,e,i,n);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let i=this.readChange();if(!i)return this.view.requestMeasure(),!1;let n=this.view.state,r=HP(this.view,i);return this.view.state==n&&(i.domChanged||i.newSel&&!i.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(e){let i=this.view.docView.nearest(e.target);if(!i||i.ignoreMutation(e))return null;if(i.markDirty(e.type=="attributes"),e.type=="attributes"&&(i.flags|=4),e.type=="childList"){let n=JC(i,e.previousSibling||e.target.previousSibling,-1),r=JC(i,e.nextSibling||e.target.nextSibling,1);return{from:n?i.posAfter(n):i.posAtStart,to:r?i.posBefore(r):i.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:i.posAtStart,to:i.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Gr)!=e.state.facet(Gr)&&(e.view.contentDOM.editContext=e.state.facet(Gr)?this.editContext.editContext:null))}destroy(){var e,i,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(i=this.gapIntersection)===null||i===void 0||i.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function JC(t,e,i){for(;e;){let n=St.get(e);if(n&&n.parent==t)return n;let r=e.parentNode;e=r!=t.dom?r:i>0?e.nextSibling:e.previousSibling}return null}function eP(t,e){let i=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset,s=t.docView.domAtPos(t.state.selection.main.anchor);return zu(s.node,s.offset,r,o)&&([i,n,r,o]=[r,o,i,n]),{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:o}}function $Z(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return eP(t,r)}let i=null;function n(r){r.preventDefault(),r.stopImmediatePropagation(),i=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",n,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",n,!0),i?eP(t,i):null}var Wy=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let i=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:o,head:s}=r,a=this.toEditorPos(n.updateRangeStart),l=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:a,drifted:!1});let c={from:a,to:l,insert:Fe.of(n.text.split(`
|
||
`))};if(c.from==this.from&&o<this.from?c.from=o:c.to==this.to&&o>this.to&&(c.to=o),c.from==c.to&&!c.insert.length){let u=J.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));u.main.eq(r)||e.dispatch({selection:u,userEvent:"select"});return}if((ke.mac||ke.android)&&c.from==s-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(c={from:a,to:l,insert:Fe.of([n.text.replace("."," ")])}),this.pendingContextChange=c,!e.state.readOnly){let u=this.to-this.from+(c.to-c.from+c.insert.length);ux(e,c,J.single(this.toEditorPos(n.selectionStart,u),this.toEditorPos(n.selectionEnd,u)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=n=>{let r=[],o=null;for(let s=this.toEditorPos(n.rangeStart),a=this.toEditorPos(n.rangeEnd);s<a;s++){let l=e.coordsForChar(s);o=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||o||new DOMRect,r.push(o)}i.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=n=>{let r=[];for(let o of n.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(s!="None"&&a!="None"){let l=this.toEditorPos(o.rangeStart),c=this.toEditorPos(o.rangeEnd);if(l<c){let u=`text-decoration: underline ${s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${a=="Thin"?1:2}px`;r.push(we.mark({attributes:{style:u}}).range(l,c))}}}e.dispatch({effects:jP.of(we.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:n}=this.composing;this.composing=null,n&&this.reset(e.state)}};for(let n in this.handlers)i.addEventListener(n,this.handlers[n]);this.measureReq={read:n=>{this.editContext.updateControlBounds(n.contentDOM.getBoundingClientRect());let r=Vu(n.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let i=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((o,s,a,l,c)=>{if(n)return;let u=c.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(c)){r=this.pendingContextChange=null,i+=u,this.to+=u;return}else r=null,this.revertPending(e.state);if(o+=i,s+=i,s<=this.from)this.from+=u,this.to+=u;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+c.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),c.toString()),this.to+=u}i+=u}),r&&!n&&this.revertPending(e.state),!n}update(e){let i=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||i)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:i}=e.selection.main;this.from=Math.max(0,i-1e4),this.to=Math.min(e.doc.length,i+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let i=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(i.from),this.toContextPos(i.from+i.insert.length),e.doc.sliceString(i.from,i.to))}setSelection(e){let{main:i}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,i.anchor))),r=this.toContextPos(i.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:i}=e.selection.main;return!(this.from>0&&i-this.from<500||this.to<e.doc.length&&this.to-i<500||this.to-this.from>1e4*3)}toEditorPos(e,i=this.to-this.from){e=Math.min(e,i);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let i=this.composing;return i&&i.drifted?i.contextBase+(e-i.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},fe=class t{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var i;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(r=>r.forEach(o=>n(o,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||TV(e.parent)||document,this.viewState=new ep(e.state||st.create(e)),e.scrollTo&&e.scrollTo.is(AO)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Xu).map(r=>new Nu(r));for(let r of this.plugins)r.update(this);this.observer=new jy(this),this.inputState=new _y(this),this.inputState.ensureHandlers(this.plugins),this.docView=new HO(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((i=document.fonts)===null||i===void 0)&&i.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let i=e.length==1&&e[0]instanceof Rt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(i,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let i=!1,n=!1,r,o=this.state;for(let d of e){if(d.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=d.state}if(this.destroyed){this.viewState.state=o;return}let s=this.hasFocus,a=0,l=null;e.some(d=>d.annotation(iQ))?(this.inputState.notifiedFocused=s,a=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=nQ(o,s),l||(a=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(u=null)):this.observer.clear(),o.facet(st.phrases)!=this.state.facet(st.phrases))return this.setState(o);r=FO.create(this,o,e),r.flags|=a;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:O}=d.state.selection;f=new Mu(O.empty?O:J.cursor(O.head,O.head>O.anchor?-1:1))}for(let O of d.effects)O.is(AO)&&(f=O.value.clip(this.state))}this.viewState.update(r,f),this.bidiCache=tp.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),i=this.docView.update(r),this.state.facet(Ru)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(i,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(IO)!=r.state.facet(IO)&&(this.viewState.mustMeasureContent=!0),(i||n||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!r.empty)for(let d of this.state.facet(Ty))try{d(r)}catch(O){Oi(this.state,O,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!HP(this,u)&&c.force&&wl(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let i=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new ep(e),this.plugins=e.facet(Xu).map(n=>new Nu(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new HO(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}i&&this.focus(),this.requestMeasure()}updatePlugins(e){let i=e.startState.facet(Xu),n=e.state.facet(Xu);if(i!=n){let r=[];for(let o of n){let s=i.indexOf(o);if(s<0)r.push(new Nu(o));else{let a=this.plugins[s];a.mustUpdate=e,r.push(a)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);i!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let i=e.value;if(i&&i.docViewUpdate)try{i.docViewUpdate(this)}catch(n){Oi(this.state,n,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let i=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:s}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(s<0)if(bP(n))o=-1,s=this.viewState.heightMap.height;else{let O=this.viewState.scrollAnchorAt(r);o=O.from,s=O.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(O=>{try{return O.read(this)}catch(m){return Oi(this.state,m),tP}}),f=FO.create(this,this.state,[]),d=!1;f.flags|=l,i?i.flags|=l:i=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),d=this.docView.update(f),d&&this.docViewUpdate());for(let O=0;O<c.length;O++)if(u[O]!=tP)try{let m=c[O];m.write&&m.write(u[O],this)}catch(m){Oi(this.state,m)}if(d&&this.docView.updateSelection(!0),!f.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}else{let m=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-s;if(m>1||m<-1){r=r+m,n.scrollTop=r/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty)for(let a of this.state.facet(Ty))a(i)}get themeClasses(){return Ny+" "+(this.state.facet(My)?sQ:oQ)+" "+this.state.facet(IO)}updateAttrs(){let e=iP(this,WP,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Gr)?"true":"false",class:"cm-content",style:`${ke.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),iP(this,ax,i);let n=this.observer.ignore(()=>{let r=vy(this.contentDOM,this.contentAttrs,i),o=vy(this.dom,this.editorAttrs,e);return r||o});return this.editorAttrs=e,this.contentAttrs=i,n}showAnnouncements(e){let i=!0;for(let n of e)for(let r of n.effects)if(r.is(t.announce)){i&&(this.announceDOM.textContent=""),i=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(Ru);let e=this.state.facet(t.cspNonce);Bi.mount(this.root,this.styleModules.concat(_Z).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let i=0;i<this.measureRequests.length;i++)if(this.measureRequests[i].key===e.key){this.measureRequests[i]=e;return}}this.measureRequests.push(e)}}plugin(e){let i=this.pluginMap.get(e);return(i===void 0||i&&i.spec!=e)&&this.pluginMap.set(e,i=this.plugins.find(n=>n.spec==e)||null),i&&i.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,i,n){return uy(this,e,UC(this,e,i,n))}moveByGroup(e,i){return uy(this,e,UC(this,e,i,n=>tZ(this,e.head,n)))}visualLineSide(e,i){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),o=n[i?n.length-1:0];return J.cursor(o.side(i,r)+e.from,o.forward(!i,r)?1:-1)}moveToLineBoundary(e,i,n=!0){return eZ(this,e,i,n)}moveVertically(e,i,n){return uy(this,e,iZ(this,e,i,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,i=0){return this.docView.posFromDOM(e,i)}posAtCoords(e,i=!0){return this.readMeasured(),FP(this,e,i)}coordsAtPos(e,i=1){this.readMeasured();let n=this.docView.coordsAt(e,i);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),o=this.bidiSpans(r),s=o[Or.find(o,e-r.from,-1,i)];return ap(n,s.dir==at.LTR==i>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(MP)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>XZ)return $P(e.length);let i=this.textDirectionAt(e.from),n;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==i&&(o.fresh||AP(o.isolates,n=RC(this,e))))return o.order;n||(n=RC(this,e));let r=zV(e.text,i,n);return this.bidiCache.push(new tp(e.from,e.to,i,n,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||ke.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{mP(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,i={}){return AO.of(new Mu(typeof e=="number"?J.cursor(e):e,i.y,i.x,i.yMargin,i.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:i}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return AO.of(new Mu(J.cursor(n.from),"start","start",n.top-e,i,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return He.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return He.define(()=>({}),{eventObservers:e})}static theme(e,i){let n=Bi.newName(),r=[IO.of(n),Ru.of(qy(`.${n}`,e))];return i&&i.dark&&r.push(My.of(!0)),r}static baseTheme(e){return Mt.lowest(Ru.of(qy("."+Ny,e,aQ)))}static findFromDOM(e){var i;let n=e.querySelector(".cm-content"),r=n&&St.get(n)||St.get(e);return((i=r==null?void 0:r.rootView)===null||i===void 0?void 0:i.view)||null}};fe.styleModule=Ru;fe.inputHandler=zP;fe.clipboardInputFilter=ox;fe.clipboardOutputFilter=sx;fe.scrollHandler=qP;fe.focusChangeEffect=UP;fe.perLineTextDirection=MP;fe.exceptionSink=DP;fe.updateListener=Ty;fe.editable=Gr;fe.mouseSelectionStyle=IP;fe.dragMovesSelection=LP;fe.clickAddsSelectionRange=RP;fe.decorations=Ku;fe.outerDecorations=VP;fe.atomicRanges=lx;fe.bidiIsolatedRanges=ZP;fe.scrollMargins=BP;fe.darkTheme=My;fe.cspNonce=be.define({combine:t=>t.length?t[0]:""});fe.contentAttributes=ax;fe.editorAttributes=WP;fe.lineWrapping=fe.contentAttributes.of({class:"cm-lineWrapping"});fe.announce=Se.define();var XZ=4096,tP={},tp=class t{constructor(e,i,n,r,o,s){this.from=e,this.to=i,this.dir=n,this.isolates=r,this.fresh=o,this.order=s}static update(e,i){if(i.empty&&!e.some(o=>o.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:at.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let s=e[o];s.dir==r&&!i.touchesRange(s.from,s.to)&&n.push(new t(i.mapPos(s.from,1),i.mapPos(s.to,-1),s.dir,s.isolates,!1,s.order))}return n}};function iP(t,e,i){for(let n=t.state.facet(e),r=n.length-1;r>=0;r--){let o=n[r],s=typeof o=="function"?o(t):o;s&&xy(s,i)}return i}var RZ=ke.mac?"mac":ke.windows?"win":ke.linux?"linux":"key";function LZ(t,e){let i=t.split(/-(?!$)/),n=i[i.length-1];n=="Space"&&(n=" ");let r,o,s,a;for(let l=0;l<i.length-1;++l){let c=i[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))o=!0;else if(/^s(hift)?$/i.test(c))s=!0;else if(/^mod$/i.test(c))e=="mac"?a=!0:o=!0;else throw new Error("Unrecognized modifier name: "+c)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),a&&(n="Meta-"+n),s&&(n="Shift-"+n),n}function DO(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),i!==!1&&e.shiftKey&&(t="Shift-"+t),t}var IZ=Mt.default(fe.domEventHandlers({keydown(t,e){return cQ(lQ(e.state),t,e,"editor")}})),Jt=be.define({enables:IZ}),nP=new WeakMap;function lQ(t){let e=t.facet(Jt),i=nP.get(e);return i||nP.set(e,i=zZ(e.reduce((n,r)=>n.concat(r),[]))),i}function fx(t,e,i){return cQ(lQ(t.state),e,t,i)}var Ho=null,DZ=4e3;function zZ(t,e=RZ){let i=Object.create(null),n=Object.create(null),r=(s,a)=>{let l=n[s];if(l==null)n[s]=a;else if(l!=a)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},o=(s,a,l,c,u)=>{var f,d;let O=i[s]||(i[s]=Object.create(null)),m=a.split(/ (?!$)/).map(w=>LZ(w,e));for(let w=1;w<m.length;w++){let T=m.slice(0,w).join(" ");r(T,!0),O[T]||(O[T]={preventDefault:!0,stopPropagation:!1,run:[Q=>{let I=Ho={view:Q,prefix:T,scope:s};return setTimeout(()=>{Ho==I&&(Ho=null)},DZ),!0}]})}let x=m.join(" ");r(x,!1);let v=O[x]||(O[x]={preventDefault:!1,stopPropagation:!1,run:((d=(f=O._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});l&&v.run.push(l),c&&(v.preventDefault=!0),u&&(v.stopPropagation=!0)};for(let s of t){let a=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let c of a){let u=i[c]||(i[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=s;for(let d in u)u[d].run.push(O=>f(O,Vy))}let l=s[e]||s.key;if(l)for(let c of a)o(c,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&o(c,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return i}var Vy=null;function cQ(t,e,i,n){Vy=e;let r=EC(e),o=hi(r,0),s=rn(o)==r.length&&r!=" ",a="",l=!1,c=!1,u=!1;Ho&&Ho.view==i&&Ho.scope==n&&(a=Ho.prefix+" ",KP.indexOf(e.keyCode)<0&&(c=!0,Ho=null));let f=new Set,d=v=>{if(v){for(let w of v.run)if(!f.has(w)&&(f.add(w),w(i)))return v.stopPropagation&&(u=!0),!0;v.preventDefault&&(v.stopPropagation&&(u=!0),c=!0)}return!1},O=t[n],m,x;return O&&(d(O[a+DO(r,e,!s)])?l=!0:s&&(e.altKey||e.metaKey||e.ctrlKey)&&!(ke.windows&&e.ctrlKey&&e.altKey)&&(m=Hr[e.keyCode])&&m!=r?(d(O[a+DO(m,e,!0)])||e.shiftKey&&(x=gl[e.keyCode])!=r&&x!=m&&d(O[a+DO(x,e,!1)]))&&(l=!0):s&&e.shiftKey&&d(O[a+DO(r,e,!0)])&&(l=!0),!l&&d(O._any)&&(l=!0)),c&&(l=!0),l&&u&&e.stopPropagation(),Vy=null,l}var Ju=class t{constructor(e,i,n,r,o){this.className=e,this.left=i,this.top=n,this.width=r,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,i){return i.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,i,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let o=uQ(e);return[new t(i,r.left-o.left,r.top-o.top,null,r.bottom-r.top)]}else return UZ(e,i,n)}};function uQ(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==at.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function rP(t,e,i,n){let r=t.coordsAtPos(e,i*2);if(!r)return n;let o=t.dom.getBoundingClientRect(),s=(r.top+r.bottom)/2,a=t.posAtCoords({x:o.left+1,y:s}),l=t.posAtCoords({x:o.right-1,y:s});return a==null||l==null?n:{from:Math.max(n.from,Math.min(a,l)),to:Math.min(n.to,Math.max(a,l))}}function UZ(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let n=Math.max(i.from,t.viewport.from),r=Math.min(i.to,t.viewport.to),o=t.textDirection==at.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=uQ(t),c=s.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),f=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),d=a.right-(u?parseInt(u.paddingRight):0),O=Cy(t,n),m=Cy(t,r),x=O.type==Ii.Text?O:null,v=m.type==Ii.Text?m:null;if(x&&(t.lineWrapping||O.widgetLineBreaks)&&(x=rP(t,n,1,x)),v&&(t.lineWrapping||m.widgetLineBreaks)&&(v=rP(t,r,-1,v)),x&&v&&x.from==v.from&&x.to==v.to)return T(Q(i.from,i.to,x));{let z=x?Q(i.from,null,x):I(O,!1),$=v?Q(null,i.to,v):I(m,!0),X=[];return(x||O).to<(v||m).from-(x&&v?1:0)||O.widgetLineBreaks>1&&z.bottom+t.defaultLineHeight/2<$.top?X.push(w(f,z.bottom,d,$.top)):z.bottom<$.top&&t.elementAtHeight((z.bottom+$.top)/2).type==Ii.Text&&(z.bottom=$.top=(z.bottom+$.top)/2),T(z).concat(X).concat(T($))}function w(z,$,X,Y){return new Ju(e,z-l.left,$-l.top,X-z,Y-$)}function T({top:z,bottom:$,horizontal:X}){let Y=[];for(let K=0;K<X.length;K+=2)Y.push(w(X[K],z,X[K+1],$));return Y}function Q(z,$,X){let Y=1e9,K=-1e9,N=[];function te(de,pe,ve,j,ue){let Z=t.coordsAtPos(de,de==X.to?-2:2),C=t.coordsAtPos(ve,ve==X.from?2:-2);!Z||!C||(Y=Math.min(Z.top,C.top,Y),K=Math.max(Z.bottom,C.bottom,K),ue==at.LTR?N.push(o&&pe?f:Z.left,o&&j?d:C.right):N.push(!o&&j?f:C.left,!o&&pe?d:Z.right))}let oe=z!=null?z:X.from,re=$!=null?$:X.to;for(let de of t.visibleRanges)if(de.to>oe&&de.from<re)for(let pe=Math.max(de.from,oe),ve=Math.min(de.to,re);;){let j=t.state.doc.lineAt(pe);for(let ue of t.bidiSpans(j)){let Z=ue.from+j.from,C=ue.to+j.from;if(Z>=ve)break;C>pe&&te(Math.max(Z,pe),z==null&&Z<=oe,Math.min(C,ve),$==null&&C>=re,ue.dir)}if(pe=j.to+1,pe>=ve)break}return N.length==0&&te(oe,z==null,re,$==null,t.textDirection),{top:Y,bottom:K,horizontal:N}}function I(z,$){let X=a.top+($?z.top:z.bottom);return{top:X,bottom:X,horizontal:[]}}}function MZ(t,e){return t.constructor==e.constructor&&t.eq(e)}var Zy=class{constructor(e,i){this.view=e,this.layer=i,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),i.above&&this.dom.classList.add("cm-layer-above"),i.class&&this.dom.classList.add(i.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),i.mount&&i.mount(this.dom,e)}update(e){e.startState.facet(jO)!=e.state.facet(jO)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let i=0,n=e.facet(jO);for(;i<n.length&&n[i]!=this.layer;)i++;this.dom.style.zIndex=String((this.layer.above?150:-1)-i)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:i}=this.view;(e!=this.scaleX||i!=this.scaleY)&&(this.scaleX=e,this.scaleY=i,this.dom.style.transform=`scale(${1/e}, ${1/i})`)}draw(e){if(e.length!=this.drawn.length||e.some((i,n)=>!MZ(i,this.drawn[n]))){let i=this.dom.firstChild,n=0;for(let r of e)r.update&&i&&r.constructor&&this.drawn[n].constructor&&r.update(i,this.drawn[n])?(i=i.nextSibling,n++):this.dom.insertBefore(r.draw(),i);for(;i;){let r=i.nextSibling;i.remove(),i=r}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},jO=be.define();function fQ(t){return[He.define(e=>new Zy(e,t)),jO.of(t)]}var hQ=!(ke.ios&&ke.webkit&&ke.webkit_version<534),Sl=be.define({combine(t){return _t(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,i)=>Math.min(e,i),drawRangeCursor:(e,i)=>e||i})}});function dQ(t={}){return[Sl.of(t),NZ,qZ,jZ,NP.of(!0)]}function up(t){return t.facet(Sl)}function OQ(t){return t.startState.facet(Sl)!=t.state.facet(Sl)}var NZ=fQ({above:!0,markers(t){let{state:e}=t,i=e.facet(Sl),n=[];for(let r of e.selection.ranges){let o=r==e.selection.main;if(r.empty?!o||hQ:i.drawRangeCursor){let s=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=r.empty?r:J.cursor(r.head,r.head>r.anchor?-1:1);for(let l of Ju.forRange(t,s,a))n.push(l)}}return n},update(t,e){t.transactions.some(n=>n.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let i=OQ(t);return i&&oP(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){oP(e.state,t)},class:"cm-cursorLayer"});function oP(t,e){e.style.animationDuration=t.facet(Sl).cursorBlinkRate+"ms"}var qZ=fQ({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:Ju.forRange(t,"cm-selectionBackground",e)).reduce((e,i)=>e.concat(i))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||OQ(t)},class:"cm-selectionLayer"}),By={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};hQ&&(By[".cm-line"].caretColor=By[".cm-content"].caretColor="transparent !important");var jZ=Mt.highest(fe.theme(By)),pQ=Se.define({map(t,e){return t==null?null:e.mapPos(t)}}),Du=Ge.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((i,n)=>n.is(pQ)?n.value:i,t)}}),WZ=He.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(Du);i==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Du)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Du),i=e!=null&&t.coordsAtPos(e);if(!i)return null;let n=t.scrollDOM.getBoundingClientRect();return{left:i.left-n.left+t.scrollDOM.scrollLeft*t.scaleX,top:i.top-n.top+t.scrollDOM.scrollTop*t.scaleY,height:i.bottom-i.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:i}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/i+"px",this.cursor.style.height=t.height/i+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Du)!=t&&this.view.dispatch({effects:pQ.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function mQ(){return[Du,WZ]}function sP(t,e,i,n,r){e.lastIndex=0;for(let o=t.iterRange(i,n),s=i,a;!o.next().done;s+=o.value.length)if(!o.lineBreak)for(;a=e.exec(o.value);)r(s+a.index,a)}function VZ(t,e){let i=t.visibleRanges;if(i.length==1&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let n=[];for(let{from:r,to:o}of i)r=Math.max(t.state.doc.lineAt(r).from,r-e),o=Math.min(t.state.doc.lineAt(o).to,o+e),n.length&&n[n.length-1].to>=r?n[n.length-1].to=o:n.push({from:r,to:o});return n}var Yy=class{constructor(e){let{regexp:i,decoration:n,decorate:r,boundary:o,maxLength:s=1e3}=e;if(!i.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=i,r)this.addMatch=(a,l,c,u)=>r(u,c,c+a[0].length,a,l);else if(typeof n=="function")this.addMatch=(a,l,c,u)=>{let f=n(a,l,c);f&&u(c,c+a[0].length,f)};else if(n)this.addMatch=(a,l,c,u)=>u(c,c+a[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=s}createDeco(e){let i=new Xi,n=i.add.bind(i);for(let{from:r,to:o}of VZ(e,this.maxLength))sP(e.state.doc,this.regexp,r,o,(s,a)=>this.addMatch(a,e,s,n));return i.finish()}updateDeco(e,i){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((o,s,a,l)=>{l>=e.view.viewport.from&&a<=e.view.viewport.to&&(n=Math.min(a,n),r=Math.max(l,r))}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,i.map(e.changes),n,r):i}updateRange(e,i,n,r){for(let o of e.visibleRanges){let s=Math.max(o.from,n),a=Math.min(o.to,r);if(a>s){let l=e.state.doc.lineAt(s),c=l.to<a?e.state.doc.lineAt(a):l,u=Math.max(o.from,l.from),f=Math.min(o.to,c.to);if(this.boundary){for(;s>l.from;s--)if(this.boundary.test(l.text[s-1-l.from])){u=s;break}for(;a<c.to;a++)if(this.boundary.test(c.text[a-c.from])){f=a;break}}let d=[],O,m=(x,v,w)=>d.push(w.range(x,v));if(l==c)for(this.regexp.lastIndex=u-l.from;(O=this.regexp.exec(l.text))&&O.index<f-l.from;)this.addMatch(O,e,O.index+l.from,m);else sP(e.state.doc,this.regexp,u,f,(x,v)=>this.addMatch(v,e,x,m));i=i.update({filterFrom:u,filterTo:f,filter:(x,v)=>x<u||v>f,add:d})}}return i}},Fy=/x/.unicode!=null?"gu":"g",ZZ=new RegExp(`[\0-\b
|
||
-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,Fy),BZ={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},hy=null;function YZ(){var t;if(hy==null&&typeof document!="undefined"&&document.body){let e=document.body.style;hy=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return hy||!1}var WO=be.define({combine(t){let e=_t(t,{render:null,specialChars:ZZ,addSpecialChars:null});return(e.replaceTabs=!YZ())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Fy)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Fy)),e}});function gQ(t={}){return[WO.of(t),FZ()]}var aP=null;function FZ(){return aP||(aP=He.fromClass(class{constructor(t){this.view=t,this.decorations=we.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(WO)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Yy({regexp:t.specialChars,decoration:(e,i,n)=>{let{doc:r}=i.state,o=hi(e[0],0);if(o==9){let s=r.lineAt(n),a=i.state.tabSize,l=Ri(s.text,a,n-s.from);return we.replace({widget:new Gy((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=we.replace({widget:new Hy(t,o)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(WO);t.startState.facet(WO)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}var HZ="\u2022";function GZ(t){return t>=32?HZ:t==10?"\u2424":String.fromCharCode(9216+t)}var Hy=class extends oi{constructor(e,i){super(),this.options=e,this.code=i}eq(e){return e.code==this.code}toDOM(e){let i=GZ(this.code),n=e.state.phrase("Control character")+" "+(BZ[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,i);if(r)return r;let o=document.createElement("span");return o.textContent=i,o.title=n,o.setAttribute("aria-label",n),o.className="cm-specialChar",o}ignoreEvent(){return!1}},Gy=class extends oi{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function bQ(){return JZ}var KZ=we.line({class:"cm-activeLine"}),JZ=He.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let n of t.state.selection.ranges){let r=t.lineBlockAt(n.head);r.from>e&&(i.push(KZ.range(r.from)),e=r.from)}return we.set(i)}},{decorations:t=>t.decorations});var Ky=2e3;function eB(t,e,i){let n=Math.min(e.line,i.line),r=Math.max(e.line,i.line),o=[];if(e.off>Ky||i.off>Ky||e.col<0||i.col<0){let s=Math.min(e.off,i.off),a=Math.max(e.off,i.off);for(let l=n;l<=r;l++){let c=t.doc.line(l);c.length<=a&&o.push(J.range(c.from+s,c.to+a))}}else{let s=Math.min(e.col,i.col),a=Math.max(e.col,i.col);for(let l=n;l<=r;l++){let c=t.doc.line(l),u=PO(c.text,s,t.tabSize,!0);if(u<0)o.push(J.cursor(c.to));else{let f=PO(c.text,a,t.tabSize);o.push(J.range(c.from+u,c.from+f))}}}return o}function tB(t,e){let i=t.coordsAtPos(t.viewport.from);return i?Math.round(Math.abs((i.left-e)/t.defaultCharacterWidth)):-1}function lP(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(i),r=i-n.from,o=r>Ky?-1:r==n.length?tB(t,e.clientX):Ri(n.text,t.state.tabSize,i-n.from);return{line:n.number,col:o,off:r}}function iB(t,e){let i=lP(t,e),n=t.state.selection;return i?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(i.line).from),s=r.state.doc.lineAt(o);i={line:s.number,col:i.col,off:Math.min(i.off,s.length)},n=n.map(r.changes)}},get(r,o,s){let a=lP(t,r);if(!a)return n;let l=eB(t.state,i,a);return l.length?s?J.create(l.concat(n.ranges)):J.create(l):n}}:null}function yQ(t){let e=(t==null?void 0:t.eventFilter)||(i=>i.altKey&&i.button==0);return fe.mouseSelectionStyle.of((i,n)=>e(n)?iB(i,n):null)}var nB={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},rB={style:"cursor: crosshair"};function xQ(t={}){let[e,i]=nB[t.key||"Alt"],n=He.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||i(r))},keyup(r){(r.keyCode==e||!i(r))&&this.set(!1)},mousemove(r){this.set(i(r))}}});return[n,fe.contentAttributes.of(r=>{var o;return!((o=r.plugin(n))===null||o===void 0)&&o.isDown?rB:null})]}var $u="-10000px",ip=class{constructor(e,i,n,r){this.facet=i,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(i),this.tooltips=this.input.filter(s=>s);let o=null;this.tooltipViews=this.tooltips.map(s=>o=n(s,o))}update(e,i){var n;let r=e.state.facet(this.facet),o=r.filter(l=>l);if(r===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let s=[],a=i?[]:null;for(let l=0;l<o.length;l++){let c=o[l],u=-1;if(c){for(let f=0;f<this.tooltips.length;f++){let d=this.tooltips[f];d&&d.create==c.create&&(u=f)}if(u<0)s[l]=this.createTooltipView(c,l?s[l-1]:null),a&&(a[l]=!!c.above);else{let f=s[l]=this.tooltipViews[u];a&&(a[l]=i[u]),f.update&&f.update(e)}}}for(let l of this.tooltipViews)s.indexOf(l)<0&&(this.removeTooltipView(l),(n=l.destroy)===null||n===void 0||n.call(l));return i&&(a.forEach((l,c)=>i[c]=l),i.length=a.length),this.input=r,this.tooltips=o,this.tooltipViews=s,!0}};function oB(t){let e=t.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}var dy=be.define({combine:t=>{var e,i,n;return{position:ke.ios?"absolute":((e=t.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((i=t.find(r=>r.parent))===null||i===void 0?void 0:i.parent)||null,tooltipSpace:((n=t.find(r=>r.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||oB}}}),cP=new WeakMap,hx=He.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(dy);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ip(t,Kr,(i,n)=>this.createTooltip(i,n),i=>{this.resizeObserver&&this.resizeObserver.unobserve(i.dom),i.dom.remove()}),this.above=this.manager.tooltips.map(i=>!!i.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(i=>{Date.now()>this.lastTransaction-50&&i.length>0&&i[i.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let i=e||t.geometryChanged,n=t.state.facet(dy);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;i=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t,e){let i=t.create(this.view),n=e?e.dom:null;if(i.dom.classList.add("cm-tooltip"),t.arrow&&!i.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",i.dom.appendChild(r)}return i.dom.style.position=this.position,i.dom.style.top=$u,i.dom.style.left="0px",this.container.insertBefore(i.dom,n),i.mount&&i.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(i.dom),i}destroy(){var t,e,i;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(t=n.destroy)===null||t===void 0||t.call(n);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(i=this.intersectionObserver)===null||i===void 0||i.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:o}=this.manager.tooltipViews[0];if(ke.gecko)i=o.offsetParent!=this.container.ownerDocument.body;else if(o.style.top==$u&&o.style.left=="0px"){let s=o.getBoundingClientRect();i=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(i||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(t=o.width/this.parent.offsetWidth,e=o.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);let n=this.view.scrollDOM.getBoundingClientRect(),r=cx(this.view);return{visible:{left:n.left+r.left,top:n.top+r.top,right:n.right-r.right,bottom:n.bottom-r.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((o,s)=>{let a=this.manager.tooltipViews[s];return a.getCoords?a.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(dy).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{visible:i,space:n,scaleX:r,scaleY:o}=t,s=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],c=this.manager.tooltipViews[a],{dom:u}=c,f=t.pos[a],d=t.size[a];if(!f||l.clip!==!1&&(f.bottom<=Math.max(i.top,n.top)||f.top>=Math.min(i.bottom,n.bottom)||f.right<Math.max(i.left,n.left)-.1||f.left>Math.min(i.right,n.right)+.1)){u.style.top=$u;continue}let O=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,m=O?7:0,x=d.right-d.left,v=(e=cP.get(c))!==null&&e!==void 0?e:d.bottom-d.top,w=c.offset||aB,T=this.view.textDirection==at.LTR,Q=d.width>n.right-n.left?T?n.left:n.right-d.width:T?Math.max(n.left,Math.min(f.left-(O?14:0)+w.x,n.right-x)):Math.min(Math.max(n.left,f.left-x+(O?14:0)-w.x),n.right-x),I=this.above[a];!l.strictSide&&(I?f.top-v-m-w.y<n.top:f.bottom+v+m+w.y>n.bottom)&&I==n.bottom-f.bottom>f.top-n.top&&(I=this.above[a]=!I);let z=(I?f.top-n.top:n.bottom-f.bottom)-m;if(z<v&&c.resize!==!1){if(z<this.view.defaultLineHeight){u.style.top=$u;continue}cP.set(c,v),u.style.height=(v=z)/o+"px"}else u.style.height&&(u.style.height="");let $=I?f.top-v-m-w.y:f.bottom+m+w.y,X=Q+x;if(c.overlap!==!0)for(let Y of s)Y.left<X&&Y.right>Q&&Y.top<$+v&&Y.bottom>$&&($=I?Y.top-v-2-m:Y.bottom+m+2);if(this.position=="absolute"?(u.style.top=($-t.parent.top)/o+"px",uP(u,(Q-t.parent.left)/r)):(u.style.top=$/o+"px",uP(u,Q/r)),O){let Y=f.left+(T?w.x:-w.x)-(Q+14-7);O.style.left=Y/r+"px"}c.overlap!==!0&&s.push({left:Q,top:$,right:X,bottom:$+v}),u.classList.toggle("cm-tooltip-above",I),u.classList.toggle("cm-tooltip-below",!I),c.positioned&&c.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=$u}},{eventObservers:{scroll(){this.maybeMeasure()}}});function uP(t,e){let i=parseInt(t.style.left,10);(isNaN(i)||Math.abs(e-i)>1)&&(t.style.left=e+"px")}var sB=fe.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),aB={x:0,y:0},Kr=be.define({enables:[hx,sB]}),np=be.define({combine:t=>t.reduce((e,i)=>e.concat(i),[])}),rp=class t{static create(e){return new t(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ip(e,np,(i,n)=>this.createHostedView(i,n),i=>i.dom.remove())}createHostedView(e,i){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,i?i.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let i of this.manager.tooltipViews)i.mount&&i.mount(e);this.mounted=!0}positioned(e){for(let i of this.manager.tooltipViews)i.positioned&&i.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let i of this.manager.tooltipViews)(e=i.destroy)===null||e===void 0||e.call(i)}passProp(e){let i;for(let n of this.manager.tooltipViews){let r=n[e];if(r!==void 0){if(i===void 0)i=r;else if(i!==r)return}}return i}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}},lB=Kr.compute([np],t=>{let e=t.facet(np);return e.length===0?null:{pos:Math.min(...e.map(i=>i.pos)),end:Math.max(...e.map(i=>{var n;return(n=i.end)!==null&&n!==void 0?n:i.pos})),create:rp.create,above:e[0].above,arrow:e.some(i=>i.arrow)}}),Jy=class{constructor(e,i,n,r,o){this.view=e,this.source=i,this.field=n,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:i}=this,n=e.docView.nearest(i.target);if(!n)return;let r,o=1;if(n instanceof Bu)r=n.posAtStart;else{if(r=e.posAtCoords(i),r==null)return;let a=e.coordsAtPos(r);if(!a||i.y<a.top||i.y>a.bottom||i.x<a.left-e.defaultCharacterWidth||i.x>a.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(r)).find(u=>u.from<=r&&u.to>=r),c=l&&l.dir==at.RTL?-1:1;o=i.x<a.left?-c:c}let s=this.source(e,r,o);if(s!=null&&s.then){let a=this.pending={pos:r};s.then(l=>{this.pending==a&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>Oi(e.state,l,"hover tooltip"))}else s&&!(Array.isArray(s)&&!s.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let e=this.view.plugin(hx),i=e?e.manager.tooltips.findIndex(n=>n.create==rp.create):-1;return i>-1?e.manager.tooltipViews[i]:null}mousemove(e){var i,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:o}=this;if(r.length&&o&&!cB(o.dom,e)||this.pending){let{pos:s}=r[0]||this.pending,a=(n=(i=r[0])===null||i===void 0?void 0:i.end)!==null&&n!==void 0?n:s;(s==a?this.view.posAtCoords(this.lastMove)!=s:!uB(this.view,s,a,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:i}=this;if(i.length){let{tooltip:n}=this;n&&n.dom.contains(e.relatedTarget)?this.watchTooltipLeave(n.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let i=n=>{e.removeEventListener("mouseleave",i),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",i)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},zO=4;function cB(t,e){let{left:i,right:n,top:r,bottom:o}=t.getBoundingClientRect(),s;if(s=t.querySelector(".cm-tooltip-arrow")){let a=s.getBoundingClientRect();r=Math.min(a.top,r),o=Math.max(a.bottom,o)}return e.clientX>=i-zO&&e.clientX<=n+zO&&e.clientY>=r-zO&&e.clientY<=o+zO}function uB(t,e,i,n,r,o){let s=t.scrollDOM.getBoundingClientRect(),a=t.documentTop+t.documentPadding.top+t.contentHeight;if(s.left>n||s.right<n||s.top>r||Math.min(s.bottom,a)<r)return!1;let l=t.posAtCoords({x:n,y:r},!1);return l>=e&&l<=i}function fp(t,e={}){let i=Se.define(),n=Ge.define({create(){return[]},update(r,o){if(r.length&&(e.hideOnChange&&(o.docChanged||o.selection)?r=[]:e.hideOn&&(r=r.filter(s=>!e.hideOn(o,s))),o.docChanged)){let s=[];for(let a of r){let l=o.changes.mapPos(a.pos,-1,Qt.TrackDel);if(l!=null){let c=Object.assign(Object.create(null),a);c.pos=l,c.end!=null&&(c.end=o.changes.mapPos(c.end)),s.push(c)}}r=s}for(let s of o.effects)s.is(i)&&(r=s.value),s.is(fB)&&(r=[]);return r},provide:r=>np.from(r)});return{active:n,extension:[n,He.define(r=>new Jy(r,t,n,i,e.hoverTime||300)),lB]}}function dx(t,e){let i=t.plugin(hx);if(!i)return null;let n=i.manager.tooltips.indexOf(e);return n<0?null:i.manager.tooltipViews[n]}var fB=Se.define();var fP=be.define({combine(t){let e,i;for(let n of t)e=e||n.topContainer,i=i||n.bottomContainer;return{topContainer:e,bottomContainer:i}}});function Gs(t,e){let i=t.plugin(vQ),n=i?i.specs.indexOf(e):-1;return n>-1?i.panels[n]:null}var vQ=He.fromClass(class{constructor(t){this.input=t.state.facet(Tn),this.specs=this.input.filter(i=>i),this.panels=this.specs.map(i=>i(t));let e=t.state.facet(fP);this.top=new xl(t,!0,e.topContainer),this.bottom=new xl(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(i=>i.top)),this.bottom.sync(this.panels.filter(i=>!i.top));for(let i of this.panels)i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(t){let e=t.state.facet(fP);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new xl(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new xl(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(Tn);if(i!=this.input){let n=i.filter(l=>l),r=[],o=[],s=[],a=[];for(let l of n){let c=this.specs.indexOf(l),u;c<0?(u=l(t.view),a.push(u)):(u=this.panels[c],u.update&&u.update(t)),r.push(u),(u.top?o:s).push(u)}this.specs=n,this.panels=r,this.top.sync(o),this.bottom.sync(s);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let n of this.panels)n.update&&n.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>fe.scrollMargins.of(e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})}),xl=class{constructor(e,i,n){this.view=e,this.top=i,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let i of this.panels)i.destroy&&e.indexOf(i)<0&&i.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let i=this.container||this.view.dom;i.insertBefore(this.dom,this.top?i.firstChild:null)}let e=this.dom.firstChild;for(let i of this.panels)if(i.dom.parentNode==this.dom){for(;e!=i.dom;)e=hP(e);e=e.nextSibling}else this.dom.insertBefore(i.dom,e);for(;e;)e=hP(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};function hP(t){let e=t.nextSibling;return t.remove(),e}var Tn=be.define({enables:vQ}),sn=class extends Vn{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};sn.prototype.elementClass="";sn.prototype.toDOM=void 0;sn.prototype.mapMode=Qt.TrackBefore;sn.prototype.startSide=sn.prototype.endSide=-1;sn.prototype.point=!0;var VO=be.define(),hB=be.define(),dB={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Je.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},ju=be.define();function Ox(t){return[wQ(),ju.of(Object.assign(Object.assign({},dB),t))]}var ex=be.define({combine:t=>t.some(e=>e)});function wQ(t){let e=[OB];return t&&t.fixed===!1&&e.push(ex.of(!0)),e}var OB=He.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(ju).map(e=>new op(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(ex),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,n=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(n<(i.to-i.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(ex)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let i=Je.iter(this.view.state.facet(VO),this.view.viewport.from),n=[],r=this.gutters.map(o=>new ix(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(o.type)){let s=!0;for(let a of o.type)if(a.type==Ii.Text&&s){tx(i,n,a.from);for(let l of r)l.line(this.view,a,n);s=!1}else if(a.widget)for(let l of r)l.widget(this.view,a)}else if(o.type==Ii.Text){tx(i,n,o.from);for(let s of r)s.line(this.view,o,n)}else if(o.widget)for(let s of r)s.widget(this.view,o);for(let o of r)o.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(ju),i=t.state.facet(ju),n=t.docChanged||t.heightChanged||t.viewportChanged||!Je.eq(t.startState.facet(VO),t.state.facet(VO),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let r of this.gutters)r.update(t)&&(n=!0);else{n=!0;let r=[];for(let o of i){let s=e.indexOf(o);s<0?r.push(new op(this.view,o)):(this.gutters[s].update(t),r.push(this.gutters[s]))}for(let o of this.gutters)o.dom.remove(),r.indexOf(o)<0&&o.destroy();for(let o of r)this.dom.appendChild(o.dom);this.gutters=r}return n}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>fe.scrollMargins.of(e=>{let i=e.plugin(t);return!i||i.gutters.length==0||!i.fixed?null:e.textDirection==at.LTR?{left:i.dom.offsetWidth*e.scaleX}:{right:i.dom.offsetWidth*e.scaleX}})});function dP(t){return Array.isArray(t)?t:[t]}function tx(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}var ix=class{constructor(e,i,n){this.gutter=e,this.height=n,this.i=0,this.cursor=Je.iter(e.markers,i.from)}addElement(e,i,n){let{gutter:r}=this,o=(i.top-this.height)/e.scaleY,s=i.height/e.scaleY;if(this.i==r.elements.length){let a=new sp(e,s,o,n);r.elements.push(a),r.dom.appendChild(a.dom)}else r.elements[this.i].update(e,s,o,n);this.height=i.bottom,this.i++}line(e,i,n){let r=[];tx(this.cursor,r,i.from),n.length&&(r=r.concat(n));let o=this.gutter.config.lineMarker(e,i,r);o&&r.unshift(o);let s=this.gutter;r.length==0&&!s.config.renderEmptyElements||this.addElement(e,i,r)}widget(e,i){let n=this.gutter.config.widgetMarker(e,i.widget,i),r=n?[n]:null;for(let o of e.state.facet(hB)){let s=o(e,i.widget,i);s&&(r||(r=[])).push(s)}r&&this.addElement(e,i,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let i=e.elements.pop();e.dom.removeChild(i.dom),i.destroy()}}},op=class{constructor(e,i){this.view=e,this.config=i,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in i.domEventHandlers)this.dom.addEventListener(n,r=>{let o=r.target,s;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=r.clientY;let a=e.lineBlockAtHeight(s-e.documentTop);i.domEventHandlers[n](e,a,r)&&r.preventDefault()});this.markers=dP(i.markers(e)),i.initialSpacer&&(this.spacer=new sp(e,0,0,[i.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let i=this.markers;if(this.markers=dP(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let n=e.view.viewport;return!Je.eq(this.markers,i,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},sp=class{constructor(e,i,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,i,n,r)}update(e,i,n,r){this.height!=i&&(this.height=i,this.dom.style.height=i+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),pB(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,i){let n="cm-gutterElement",r=this.dom.firstChild;for(let o=0,s=0;;){let a=s,l=o<i.length?i[o++]:null,c=!1;if(l){let u=l.elementClass;u&&(n+=" "+u);for(let f=s;f<this.markers.length;f++)if(this.markers[f].compare(l)){a=f,c=!0;break}}else a=this.markers.length;for(;s<a;){let u=this.markers[s++];if(u.toDOM){u.destroy(r);let f=r.nextSibling;r.remove(),r=f}}if(!l)break;l.toDOM&&(c?r=r.nextSibling:this.dom.insertBefore(l.toDOM(e),r)),c&&s++}this.dom.className=n,this.markers=i}destroy(){this.setMarkers(null,[])}};function pB(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!t[i].compare(e[i]))return!1;return!0}var mB=be.define(),gB=be.define(),vl=be.define({combine(t){return _t(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,i){let n=Object.assign({},e);for(let r in i){let o=n[r],s=i[r];n[r]=o?(a,l,c)=>o(a,l,c)||s(a,l,c):s}return n}})}}),Wu=class extends sn{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function Oy(t,e){return t.state.facet(vl).formatNumber(e,t.state)}var bB=ju.compute([vl],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(mB)},lineMarker(e,i,n){return n.some(r=>r.toDOM)?null:new Wu(Oy(e,e.state.doc.lineAt(i.from).number))},widgetMarker:(e,i,n)=>{for(let r of e.state.facet(gB)){let o=r(e,i,n);if(o)return o}return null},lineMarkerChange:e=>e.startState.facet(vl)!=e.state.facet(vl),initialSpacer(e){return new Wu(Oy(e,OP(e.state.doc.lines)))},updateSpacer(e,i){let n=Oy(i.view,OP(i.view.state.doc.lines));return n==e.number?e:new Wu(n)},domEventHandlers:t.facet(vl).domEventHandlers}));function kQ(t={}){return[vl.of(t),wQ(),bB]}function OP(t){let e=9;for(;e<t;)e=e*10+9;return e}var yB=new class extends sn{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},xB=VO.compute(["selection"],t=>{let e=[],i=-1;for(let n of t.selection.ranges){let r=t.doc.lineAt(n.head).from;r>i&&(i=r,e.push(yB.range(r)))}return Je.of(e)});function SQ(){return xB}var vB=0,En=class t{constructor(e,i,n){this.set=e,this.base=i,this.modified=n,this.id=vB++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let i=new t([],null,[]);if(i.set.push(i),e)for(let n of e.set)i.set.push(n);return i}static defineModifier(){let e=new pp;return i=>i.modified.indexOf(e)>-1?i:pp.get(i.base||i,i.modified.concat(e).sort((n,r)=>n.id-r.id))}},wB=0,pp=class t{constructor(){this.instances=[],this.id=wB++}static get(e,i){if(!i.length)return e;let n=i[0].instances.find(a=>a.base==e&&kB(i,a.modified));if(n)return n;let r=[],o=new En(r,e,i);for(let a of i)a.instances.push(o);let s=SB(i);for(let a of e.set)if(!a.modified.length)for(let l of s)r.push(t.get(a,l));return o}};function kB(t,e){return t.length==e.length&&t.every((i,n)=>i==e[n])}function SB(t){let e=[[]];for(let i=0;i<t.length;i++)for(let n=0,r=e.length;n<r;n++)e.push(e[n].concat(t[i]));return e.sort((i,n)=>n.length-i.length)}function Et(t){let e=Object.create(null);for(let i in t){let n=t[i];Array.isArray(n)||(n=[n]);for(let r of i.split(" "))if(r){let o=[],s=2,a=r;for(let f=0;;){if(a=="..."&&f>0&&f+3==r.length){s=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!d)throw new RangeError("Invalid path: "+r);if(o.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==r.length)break;let O=r[f++];if(f==r.length&&O=="!"){s=0;break}if(O!="/")throw new RangeError("Invalid path: "+r);a=r.slice(f)}let l=o.length-1,c=o[l];if(!c)throw new RangeError("Invalid path: "+r);let u=new Tl(n,s,l>0?o.slice(0,l):null);e[c]=u.sort(e[c])}}return PQ.add(e)}var PQ=new _e,Tl=class{constructor(e,i,n,r){this.tags=e,this.mode=i,this.context=n,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};Tl.empty=new Tl([],2,null);function bx(t,e){let i=Object.create(null);for(let o of t)if(!Array.isArray(o.tag))i[o.tag.id]=o.class;else for(let s of o.tag)i[s.id]=o.class;let{scope:n,all:r=null}=e||{};return{style:o=>{let s=r;for(let a of o)for(let l of a.set){let c=i[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:n}}function TB(t,e){let i=null;for(let n of t){let r=n.style(e);r&&(i=i?i+" "+r:r)}return i}function yx(t,e,i,n=0,r=t.length){let o=new mx(n,Array.isArray(e)?e:[e],i);o.highlightRange(t.cursor(),n,r,"",o.highlighters),o.flush(r)}function QQ(t,e,i,n,r,o=0,s=t.length){let a=o;function l(c,u){if(!(c<=a)){for(let f=t.slice(a,c),d=0;;){let O=f.indexOf(`
|
||
`,d),m=O<0?f.length:O;if(m>d&&n(f.slice(d,m),u),O<0)break;r(),d=O+1}a=c}}yx(e,i,(c,u,f)=>{l(c,""),l(u,f)},o,s),l(s,"")}var mx=class{constructor(e,i,n){this.at=e,this.highlighters=i,this.span=n,this.class=""}startSpan(e,i){i!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=i)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,i,n,r,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=i)return;s.isTop&&(o=this.highlighters.filter(O=>!O.scope||O.scope(s)));let c=r,u=EB(e)||Tl.empty,f=TB(o,u.tags);if(f&&(c&&(c+=" "),c+=f,u.mode==1&&(r+=(r?" ":"")+f)),this.startSpan(Math.max(i,a),c),u.opaque)return;let d=e.tree&&e.tree.prop(_e.mounted);if(d&&d.overlay){let O=e.node.enter(d.overlay[0].from+a,1),m=this.highlighters.filter(v=>!v.scope||v.scope(d.tree.type)),x=e.firstChild();for(let v=0,w=a;;v++){let T=v<d.overlay.length?d.overlay[v]:null,Q=T?T.from+a:l,I=Math.max(i,w),z=Math.min(n,Q);if(I<z&&x)for(;e.from<z&&(this.highlightRange(e,I,z,r,o),this.startSpan(Math.min(z,e.to),c),!(e.to>=Q||!e.nextSibling())););if(!T||Q>n)break;w=T.to+a,w>i&&(this.highlightRange(O.cursor(),Math.max(i,T.from+a),Math.min(n,w),"",m),this.startSpan(Math.min(n,w),c))}x&&e.parent()}else if(e.firstChild()){d&&(r="");do if(!(e.to<=i)){if(e.from>=n)break;this.highlightRange(e,i,n,r,o),this.startSpan(Math.min(n,e.to),c)}while(e.nextSibling());e.parent()}}};function EB(t){let e=t.type.prop(PQ);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}var xe=En.define,hp=xe(),ts=xe(),EQ=xe(ts),CQ=xe(ts),is=xe(),dp=xe(is),px=xe(is),xr=xe(),Ks=xe(xr),br=xe(),yr=xe(),gx=xe(),ef=xe(gx),Op=xe(),E={comment:hp,lineComment:xe(hp),blockComment:xe(hp),docComment:xe(hp),name:ts,variableName:xe(ts),typeName:EQ,tagName:xe(EQ),propertyName:CQ,attributeName:xe(CQ),className:xe(ts),labelName:xe(ts),namespace:xe(ts),macroName:xe(ts),literal:is,string:dp,docString:xe(dp),character:xe(dp),attributeValue:xe(dp),number:px,integer:xe(px),float:xe(px),bool:xe(is),regexp:xe(is),escape:xe(is),color:xe(is),url:xe(is),keyword:br,self:xe(br),null:xe(br),atom:xe(br),unit:xe(br),modifier:xe(br),operatorKeyword:xe(br),controlKeyword:xe(br),definitionKeyword:xe(br),moduleKeyword:xe(br),operator:yr,derefOperator:xe(yr),arithmeticOperator:xe(yr),logicOperator:xe(yr),bitwiseOperator:xe(yr),compareOperator:xe(yr),updateOperator:xe(yr),definitionOperator:xe(yr),typeOperator:xe(yr),controlOperator:xe(yr),punctuation:gx,separator:xe(gx),bracket:ef,angleBracket:xe(ef),squareBracket:xe(ef),paren:xe(ef),brace:xe(ef),content:xr,heading:Ks,heading1:xe(Ks),heading2:xe(Ks),heading3:xe(Ks),heading4:xe(Ks),heading5:xe(Ks),heading6:xe(Ks),contentSeparator:xe(xr),list:xe(xr),quote:xe(xr),emphasis:xe(xr),strong:xe(xr),link:xe(xr),monospace:xe(xr),strikethrough:xe(xr),inserted:xe(),deleted:xe(),changed:xe(),invalid:xe(),meta:Op,documentMeta:xe(Op),annotation:xe(Op),processingInstruction:xe(Op),definition:En.defineModifier(),constant:En.defineModifier(),function:En.defineModifier(),standard:En.defineModifier(),local:En.defineModifier(),special:En.defineModifier()},uke=bx([{tag:E.link,class:"tok-link"},{tag:E.heading,class:"tok-heading"},{tag:E.emphasis,class:"tok-emphasis"},{tag:E.strong,class:"tok-strong"},{tag:E.keyword,class:"tok-keyword"},{tag:E.atom,class:"tok-atom"},{tag:E.bool,class:"tok-bool"},{tag:E.url,class:"tok-url"},{tag:E.labelName,class:"tok-labelName"},{tag:E.inserted,class:"tok-inserted"},{tag:E.deleted,class:"tok-deleted"},{tag:E.literal,class:"tok-literal"},{tag:E.string,class:"tok-string"},{tag:E.number,class:"tok-number"},{tag:[E.regexp,E.escape,E.special(E.string)],class:"tok-string2"},{tag:E.variableName,class:"tok-variableName"},{tag:E.local(E.variableName),class:"tok-variableName tok-local"},{tag:E.definition(E.variableName),class:"tok-variableName tok-definition"},{tag:E.special(E.variableName),class:"tok-variableName2"},{tag:E.definition(E.propertyName),class:"tok-propertyName tok-definition"},{tag:E.typeName,class:"tok-typeName"},{tag:E.namespace,class:"tok-namespace"},{tag:E.className,class:"tok-className"},{tag:E.macroName,class:"tok-macroName"},{tag:E.propertyName,class:"tok-propertyName"},{tag:E.operator,class:"tok-operator"},{tag:E.comment,class:"tok-comment"},{tag:E.meta,class:"tok-meta"},{tag:E.invalid,class:"tok-invalid"},{tag:E.punctuation,class:"tok-punctuation"}]);var xx,Jr=new _e;function Pl(t){return be.define({combine:t?e=>e.concat(t):void 0})}var yp=new _e,pi=class{constructor(e,i,n=[],r=""){this.data=e,this.name=r,st.prototype.hasOwnProperty("tree")||Object.defineProperty(st.prototype,"tree",{get(){return qe(this)}}),this.parser=i,this.extension=[ns.of(this),st.languageData.of((o,s,a)=>{let l=_Q(o,s,a),c=l.type.prop(Jr);if(!c)return[];let u=o.facet(c),f=l.type.prop(yp);if(f){let d=l.resolve(s-l.from,a);for(let O of f)if(O.test(d,o)){let m=o.facet(O.facet);return O.type=="replace"?m:m.concat(u)}}return u})].concat(n)}isActiveAt(e,i,n=-1){return _Q(e,i,n).type.prop(Jr)==this.data}findRegions(e){let i=e.facet(ns);if((i==null?void 0:i.data)==this.data)return[{from:0,to:e.doc.length}];if(!i||!i.allowsNesting)return[];let n=[],r=(o,s)=>{if(o.prop(Jr)==this.data){n.push({from:s,to:s+o.length});return}let a=o.prop(_e.mounted);if(a){if(a.tree.prop(Jr)==this.data){if(a.overlay)for(let l of a.overlay)n.push({from:l.from+s,to:l.to+s});else n.push({from:s,to:s+o.length});return}else if(a.overlay){let l=n.length;if(r(a.tree,a.overlay[0].from+s),n.length>l)return}}for(let l=0;l<o.children.length;l++){let c=o.children[l];c instanceof Ze&&r(c,o.positions[l]+s)}};return r(qe(e),0),n}get allowsNesting(){return!0}};pi.setState=Se.define();function _Q(t,e,i){let n=t.facet(ns),r=qe(t).topNode;if(!n||n.allowsNesting)for(let o=r;o;o=o.enter(e,i,ot.ExcludeBuffers))o.type.isTop&&(r=o);return r}var Bt=class t extends pi{constructor(e,i,n){super(e,i,[],n),this.parser=i}static define(e){let i=Pl(e.languageData);return new t(i,e.parser.configure({props:[Jr.add(n=>n.isTop?i:void 0)]}),e.name)}configure(e,i){return new t(this.data,this.parser.configure(e),i||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function qe(t){let e=t.field(pi.state,!1);return e?e.tree:Ze.empty}function $x(t,e,i=50){var n;let r=(n=t.field(pi.state,!1))===null||n===void 0?void 0:n.context;if(!r)return null;let o=r.viewport;r.updateViewport({from:0,to:e});let s=r.isDone(e)||r.work(i,e)?r.tree:null;return r.updateViewport(o),s}var Sx=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,i){let n=this.cursorPos-this.string.length;return e<n||i>=this.cursorPos?this.doc.sliceString(e,i):this.string.slice(e-n,i-n)}},tf=null,Js=class t{constructor(e,i,n=[],r,o,s,a,l){this.parser=e,this.state=i,this.fragments=n,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,i,n){return new t(e,i,[],Ze.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Sx(this.state.doc),this.fragments)}work(e,i){return i!=null&&i>=this.state.doc.length&&(i=void 0),this.tree!=Ze.empty&&this.isDone(i!=null?i:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),i!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>i)&&i<this.state.doc.length&&this.parse.stopAt(i);;){let r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(Br.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=r,this.parse=null,this.treeLen<(i!=null?i:this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,i;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(i=this.parse.advance()););}),this.treeLen=e,this.tree=i,this.fragments=this.withoutTempSkipped(Br.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let i=tf;tf=this;try{return e()}finally{tf=i}}withoutTempSkipped(e){for(let i;i=this.tempSkipped.pop();)e=AQ(e,i.from,i.to);return e}changes(e,i){let{fragments:n,tree:r,treeLen:o,viewport:s,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((c,u,f,d)=>l.push({fromA:c,toA:u,fromB:f,toB:d})),n=Br.applyChanges(n,l),r=Ze.empty,o=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let u=e.mapPos(c.from,1),f=e.mapPos(c.to,-1);u<f&&a.push({from:u,to:f})}}}return new t(this.parser,i,n,r,o,s,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let i=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:r,to:o}=this.skipped[n];r<e.to&&o>e.from&&(this.fragments=AQ(this.fragments,r,o),this.skipped.splice(n--,1))}return this.skipped.length>=i?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,i){this.skipped.push({from:e,to:i})}static getSkippingParser(e){return new class extends Yr{createParse(i,n,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let l=tf;if(l){for(let c of r)l.tempSkipped.push(c);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=s,new Ze(Xt.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let i=this.fragments;return this.treeLen>=e&&i.length&&i[0].from==0&&i[0].to>=e}static get(){return tf}};function AQ(t,e,i){return Br.applyChanges(t,[{fromA:e,toA:i,fromB:e,toB:i}])}var rf=class t{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let i=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),i.viewport.to);return i.work(20,n)||i.takeTree(),new t(i)}static init(e){let i=Math.min(3e3,e.doc.length),n=Js.create(e.facet(ns).parser,e,{from:0,to:i});return n.work(20,i)||n.takeTree(),new t(n)}};pi.state=Ge.define({create:rf.init,update(t,e){for(let i of e.effects)if(i.is(pi.setState))return i.value;return e.startState.facet(ns)!=e.state.facet(ns)?rf.init(e.state):t.apply(e)}});var DQ=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback!="undefined"&&(DQ=t=>{let e=-1,i=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(i):cancelIdleCallback(e)});var vx=typeof navigator!="undefined"&&(!((xx=navigator.scheduling)===null||xx===void 0)&&xx.isInputPending)?()=>navigator.scheduling.isInputPending():null,CB=He.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let i=this.view.state.field(pi.state).context;(i.updateViewport(e.view.viewport)||this.view.viewport.to>i.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(i)}scheduleWork(){if(this.working)return;let{state:e}=this.view,i=e.field(pi.state);(i.tree!=i.context.tree||!i.context.isDone(e.doc.length))&&(this.working=DQ(this.work))}work(e){this.working=null;let i=Date.now();if(this.chunkEnd<i&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=i+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,o=n.field(pi.state);if(o.tree==o.context.tree&&o.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!vx?Math.max(25,e.timeRemaining()-5):1e9),a=o.context.treeLen<r&&n.doc.length>r+1e3,l=o.context.work(()=>vx&&vx()||Date.now()>s,r+(a?0:1e5));this.chunkBudget-=Date.now()-i,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:pi.setState.of(new rf(o.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(i=>Oi(this.view.state,i)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ns=be.define({combine(t){return t.length?t[0]:null},enables:t=>[pi.state,CB,fe.contentAttributes.compute([t],e=>{let i=e.facet(t);return i&&i.name?{"data-language":i.name}:{}})]}),gt=class{constructor(e,i=[]){this.language=e,this.support=i,this.extension=[e,i]}},At=class t{constructor(e,i,n,r,o,s=void 0){this.name=e,this.alias=i,this.extensions=n,this.filename=r,this.loadFunc=o,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:i,support:n}=e;if(!i){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");i=()=>Promise.resolve(n)}return new t(e.name,(e.alias||[]).concat(e.name).map(r=>r.toLowerCase()),e.extensions||[],e.filename,i,n)}static matchFilename(e,i){for(let r of e)if(r.filename&&r.filename.test(i))return r;let n=/\.([^.]+)$/.exec(i);if(n){for(let r of e)if(r.extensions.indexOf(n[1])>-1)return r}return null}static matchLanguageName(e,i,n=!0){i=i.toLowerCase();for(let r of e)if(r.alias.some(o=>o==i))return r;if(n)for(let r of e)for(let o of r.alias){let s=i.indexOf(o);if(s>-1&&(o.length>2||!/\w/.test(i[s-1])&&!/\w/.test(i[s+o.length])))return r}return null}},PB=be.define(),Bn=be.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(i=>i!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function vr(t){let e=t.facet(Bn);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function eo(t,e){let i="",n=t.tabSize,r=t.facet(Bn)[0];if(r==" "){for(;e>=n;)i+=" ",e-=n;r=" "}for(let o=0;o<e;o++)i+=r;return i}function Ql(t,e){t instanceof st&&(t=new ea(t));for(let n of t.state.facet(PB)){let r=n(t,e);if(r!==void 0)return r}let i=qe(t.state);return i.length>=e?QB(t,i,e):null}var ea=class{constructor(e,i={}){this.state=e,this.options=i,this.unit=vr(e)}lineAt(e,i=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:o}=this.options;return r!=null&&r>=n.from&&r<=n.to?o&&r==e?{text:"",from:e}:(i<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,i=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,i);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,i=1){let{text:n,from:r}=this.lineAt(e,i),o=this.countColumn(n,e-r),s=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return s>-1&&(o+=s-this.countColumn(n,n.search(/\S|$/))),o}countColumn(e,i=e.length){return Ri(e,this.state.tabSize,i)}lineIndent(e,i=1){let{text:n,from:r}=this.lineAt(e,i),o=this.options.overrideIndentation;if(o){let s=o(r);if(s>-1)return s}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Nt=new _e;function QB(t,e,i){let n=e.resolveStack(i),r=e.resolveInner(i,-1).resolve(i,0).enterUnfinishedNodesBefore(i);if(r!=n.node){let o=[];for(let s=r;s&&!(s.from==n.node.from&&s.type==n.node.type);s=s.parent)o.push(s);for(let s=o.length-1;s>=0;s--)n={node:o[s],next:n}}return zQ(n,t,i)}function zQ(t,e,i){for(let n=t;n;n=n.next){let r=AB(n.node);if(r)return r(Tx.create(e,i,n))}return 0}function _B(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function AB(t){let e=t.type.prop(Nt);if(e)return e;let i=t.firstChild,n;if(i&&(n=i.type.prop(_e.closedBy))){let r=t.lastChild,o=r&&n.indexOf(r.name)>-1;return s=>UQ(s,!0,1,void 0,o&&!_B(s)?r.from:void 0)}return t.parent==null?$B:null}function $B(){return 0}var Tx=class t extends ea{constructor(e,i,n){super(e.state,e.options),this.base=e,this.pos=i,this.context=n}get node(){return this.context.node}static create(e,i,n){return new t(e,i,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let i=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(i.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(XB(n,e))break;i=this.state.doc.lineAt(n.from)}return this.lineIndent(i.from)}continue(){return zQ(this.context.next,this.base,this.pos)}};function XB(t,e){for(let i=e;i;i=i.parent)if(t==i)return!0;return!1}function RB(t){let e=t.node,i=e.childAfter(e.from),n=e.lastChild;if(!i)return null;let r=t.options.simulateBreak,o=t.state.doc.lineAt(i.from),s=r==null||r<=o.from?o.to:Math.min(o.to,r);for(let a=i.to;;){let l=e.childAfter(a);if(!l||l==n)return null;if(!l.type.isSkipped){if(l.from>=s)return null;let c=/^ */.exec(o.text.slice(i.to-o.from))[0].length;return{from:i.from,to:i.to+c}}a=l.to}}function mi({closing:t,align:e=!0,units:i=1}){return n=>UQ(n,e,i,t)}function UQ(t,e,i,n,r){let o=t.textAfter,s=o.match(/^\s*/)[0].length,a=n&&o.slice(s,s+n.length)==n||r==t.pos+s,l=e?RB(t):null;return l?a?t.column(l.from):t.column(l.to):t.baseIndent+(a?0:t.unit*i)}var xp=t=>t.baseIndent;function Ti({except:t,units:e=1}={}){return i=>{let n=t&&t.test(i.textAfter);return i.baseIndent+(n?0:e*i.unit)}}var LB=200;function MQ(){return st.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let i=t.newDoc,{head:n}=t.newSelection.main,r=i.lineAt(n);if(n>r.from+LB)return t;let o=i.sliceString(r.from,n);if(!e.some(c=>c.test(o)))return t;let{state:s}=t,a=-1,l=[];for(let{head:c}of s.selection.ranges){let u=s.doc.lineAt(c);if(u.from==a)continue;a=u.from;let f=Ql(s,u.from);if(f==null)continue;let d=/^\s*/.exec(u.text)[0],O=eo(s,f);d!=O&&l.push({from:u.from,to:u.from+d.length,insert:O})}return l.length?[t,{changes:l,sequential:!0}]:t})}var Xx=be.define(),qt=new _e;function Pn(t){let e=t.firstChild,i=t.lastChild;return e&&e.to<i.from?{from:e.to,to:i.type.isError?t.to:i.from}:null}function IB(t,e,i){let n=qe(t);if(n.length<i)return null;let r=n.resolveStack(i,1),o=null;for(let s=r;s;s=s.next){let a=s.node;if(a.to<=i||a.from>i)continue;if(o&&a.from<e)break;let l=a.type.prop(qt);if(l&&(a.to<n.length-50||n.length==t.doc.length||!DB(a))){let c=l(a,t);c&&c.from<=i&&c.from>=e&&c.to>i&&(o=c)}}return o}function DB(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function mp(t,e,i){for(let n of t.facet(Xx)){let r=n(t,e,i);if(r)return r}return IB(t,e,i)}function NQ(t,e){let i=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);return i>=n?void 0:{from:i,to:n}}var vp=Se.define({map:NQ}),sf=Se.define({map:NQ});function qQ(t){let e=[];for(let{head:i}of t.state.selection.ranges)e.some(n=>n.from<=i&&n.to>=i)||e.push(t.lineBlockAt(i));return e}var ta=Ge.define({create(){return we.none},update(t,e){t=t.map(e.changes);for(let i of e.effects)if(i.is(vp)&&!zB(t,i.value.from,i.value.to)){let{preparePlaceholder:n}=e.state.facet(Rx),r=n?we.replace({widget:new Ex(n(e.state,i.value))}):$Q;t=t.update({add:[r.range(i.value.from,i.value.to)]})}else i.is(sf)&&(t=t.update({filter:(n,r)=>i.value.from!=n||i.value.to!=r,filterFrom:i.value.from,filterTo:i.value.to}));if(e.selection){let i=!1,{head:n}=e.selection.main;t.between(n,n,(r,o)=>{r<n&&o>n&&(i=!0)}),i&&(t=t.update({filterFrom:n,filterTo:n,filter:(r,o)=>o<=n||r>=n}))}return t},provide:t=>fe.decorations.from(t),toJSON(t,e){let i=[];return t.between(0,e.doc.length,(n,r)=>{i.push(n,r)}),i},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let i=0;i<t.length;){let n=t[i++],r=t[i++];if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid JSON for fold state");e.push($Q.range(n,r))}return we.set(e,!0)}});function gp(t,e,i){var n;let r=null;return(n=t.field(ta,!1))===null||n===void 0||n.between(e,i,(o,s)=>{(!r||r.from>o)&&(r={from:o,to:s})}),r}function zB(t,e,i){let n=!1;return t.between(e,e,(r,o)=>{r==e&&o==i&&(n=!0)}),n}function jQ(t,e){return t.field(ta,!1)?e:e.concat(Se.appendConfig.of(kp()))}var wp=t=>{for(let e of qQ(t)){let i=mp(t.state,e.from,e.to);if(i)return t.dispatch({effects:jQ(t.state,[vp.of(i),VQ(t,i)])}),!0}return!1},WQ=t=>{if(!t.state.field(ta,!1))return!1;let e=[];for(let i of qQ(t)){let n=gp(t.state,i.from,i.to);n&&e.push(sf.of(n),VQ(t,n,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function VQ(t,e,i=!0){let n=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return fe.announce.of(`${t.state.phrase(i?"Folded lines":"Unfolded lines")} ${n} ${t.state.phrase("to")} ${r}.`)}var ZQ=t=>{let{state:e}=t,i=[];for(let n=0;n<e.doc.length;){let r=t.lineBlockAt(n),o=mp(e,r.from,r.to);o&&i.push(vp.of(o)),n=(o?t.lineBlockAt(o.to):r).to+1}return i.length&&t.dispatch({effects:jQ(t.state,i)}),!!i.length},BQ=t=>{let e=t.state.field(ta,!1);if(!e||!e.size)return!1;let i=[];return e.between(0,t.state.doc.length,(n,r)=>{i.push(sf.of({from:n,to:r}))}),t.dispatch({effects:i}),!0};var UB={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},Rx=be.define({combine(t){return _t(t,UB)}});function kp(t){let e=[ta,NB];return t&&e.push(Rx.of(t)),e}function YQ(t,e){let{state:i}=t,n=i.facet(Rx),r=s=>{let a=t.lineBlockAt(t.posAtDOM(s.target)),l=gp(t.state,a.from,a.to);l&&t.dispatch({effects:sf.of(l)}),s.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,r,e);let o=document.createElement("span");return o.textContent=n.placeholderText,o.setAttribute("aria-label",i.phrase("folded code")),o.title=i.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=r,o}var $Q=we.replace({widget:new class extends oi{toDOM(t){return YQ(t,null)}}}),Ex=class extends oi{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return YQ(e,this.value)}},MB={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1},nf=class extends sn{constructor(e,i){super(),this.config=e,this.open=i}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let i=document.createElement("span");return i.textContent=this.open?this.config.openText:this.config.closedText,i.title=e.state.phrase(this.open?"Fold line":"Unfold line"),i}};function FQ(t={}){let e=Object.assign(Object.assign({},MB),t),i=new nf(e,!0),n=new nf(e,!1),r=He.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(ns)!=s.state.facet(ns)||s.startState.field(ta,!1)!=s.state.field(ta,!1)||qe(s.startState)!=qe(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let a=new Xi;for(let l of s.viewportLineBlocks){let c=gp(s.state,l.from,l.to)?n:mp(s.state,l.from,l.to)?i:null;c&&a.add(l.from,l.from,c)}return a.finish()}}),{domEventHandlers:o}=e;return[r,Ox({class:"cm-foldGutter",markers(s){var a;return((a=s.plugin(r))===null||a===void 0?void 0:a.markers)||Je.empty},initialSpacer(){return new nf(e,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(s,a,l)=>{if(o.click&&o.click(s,a,l))return!0;let c=gp(s.state,a.from,a.to);if(c)return s.dispatch({effects:sf.of(c)}),!0;let u=mp(s.state,a.from,a.to);return u?(s.dispatch({effects:vp.of(u)}),!0):!1}})}),kp()]}var NB=fe.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),El=class t{constructor(e,i){this.specs=e;let n;function r(a){let l=Bi.newName();return(n||(n=Object.create(null)))["."+l]=a,l}let o=typeof i.all=="string"?i.all:i.all?r(i.all):void 0,s=i.scope;this.scope=s instanceof pi?a=>a.prop(Jr)==s.data:s?a=>a==s:void 0,this.style=bx(e.map(a=>({tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))})),{all:o}).style,this.module=n?new Bi(n):null,this.themeType=i.themeType}static define(e,i){return new t(e,i||{})}},Cx=be.define(),HQ=be.define({combine(t){return t.length?[t[0]]:null}});function wx(t){let e=t.facet(Cx);return e.length?e:t.facet(HQ)}function Lx(t,e){let i=[qB],n;return t instanceof El&&(t.module&&i.push(fe.styleModule.of(t.module)),n=t.themeType),e!=null&&e.fallback?i.push(HQ.of(t)):n?i.push(Cx.computeN([fe.darkTheme],r=>r.facet(fe.darkTheme)==(n=="dark")?[t]:[])):i.push(Cx.of(t)),i}var Px=class{constructor(e){this.markCache=Object.create(null),this.tree=qe(e.state),this.decorations=this.buildDeco(e,wx(e.state)),this.decoratedTo=e.viewport.to}update(e){let i=qe(e.state),n=wx(e.state),r=n!=wx(e.startState),{viewport:o}=e.view,s=e.changes.mapPos(this.decoratedTo,1);i.length<o.to&&!r&&i.type==this.tree.type&&s>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(i!=this.tree||e.viewportChanged||r)&&(this.tree=i,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=o.to)}buildDeco(e,i){if(!i||!this.tree.length)return we.none;let n=new Xi;for(let{from:r,to:o}of e.visibleRanges)yx(this.tree,i,(s,a,l)=>{n.add(s,a,this.markCache[l]||(this.markCache[l]=we.mark({class:l})))},r,o);return n.finish()}},qB=Mt.high(He.fromClass(Px,{decorations:t=>t.decorations})),bke=El.define([{tag:E.meta,color:"#404740"},{tag:E.link,textDecoration:"underline"},{tag:E.heading,textDecoration:"underline",fontWeight:"bold"},{tag:E.emphasis,fontStyle:"italic"},{tag:E.strong,fontWeight:"bold"},{tag:E.strikethrough,textDecoration:"line-through"},{tag:E.keyword,color:"#708"},{tag:[E.atom,E.bool,E.url,E.contentSeparator,E.labelName],color:"#219"},{tag:[E.literal,E.inserted],color:"#164"},{tag:[E.string,E.deleted],color:"#a11"},{tag:[E.regexp,E.escape,E.special(E.string)],color:"#e40"},{tag:E.definition(E.variableName),color:"#00f"},{tag:E.local(E.variableName),color:"#30a"},{tag:[E.typeName,E.namespace],color:"#085"},{tag:E.className,color:"#167"},{tag:[E.special(E.variableName),E.macroName],color:"#256"},{tag:E.definition(E.propertyName),color:"#00c"},{tag:E.comment,color:"#940"},{tag:E.invalid,color:"#f00"}]),jB=fe.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),GQ=1e4,KQ="()[]{}",JQ=be.define({combine(t){return _t(t,{afterCursor:!0,brackets:KQ,maxScanDistance:GQ,renderMatch:ZB})}}),WB=we.mark({class:"cm-matchingBracket"}),VB=we.mark({class:"cm-nonmatchingBracket"});function ZB(t){let e=[],i=t.matched?WB:VB;return e.push(i.range(t.start.from,t.start.to)),t.end&&e.push(i.range(t.end.from,t.end.to)),e}var BB=Ge.define({create(){return we.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let i=[],n=e.state.facet(JQ);for(let r of e.state.selection.ranges){if(!r.empty)continue;let o=Cn(e.state,r.head,-1,n)||r.head>0&&Cn(e.state,r.head-1,1,n)||n.afterCursor&&(Cn(e.state,r.head,1,n)||r.head<e.state.doc.length&&Cn(e.state,r.head+1,-1,n));o&&(i=i.concat(n.renderMatch(o,e.state)))}return we.set(i,!0)},provide:t=>fe.decorations.from(t)}),YB=[BB,jB];function e_(t={}){return[JQ.of(t),YB]}var af=new _e;function Qx(t,e,i){let n=t.prop(e<0?_e.openedBy:_e.closedBy);if(n)return n;if(t.name.length==1){let r=i.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[i[r+e]]}return null}function _x(t){let e=t.type.prop(af);return e?e(t.node):t}function Cn(t,e,i,n={}){let r=n.maxScanDistance||GQ,o=n.brackets||KQ,s=qe(t),a=s.resolveInner(e,i);for(let l=a;l;l=l.parent){let c=Qx(l.type,i,o);if(c&&l.from<l.to){let u=_x(l);if(u&&(i>0?e>=u.from&&e<u.to:e>u.from&&e<=u.to))return FB(t,e,i,l,u,c,o)}}return HB(t,e,i,s,a.type,r,o)}function FB(t,e,i,n,r,o,s){let a=n.parent,l={from:r.from,to:r.to},c=0,u=a==null?void 0:a.cursor();if(u&&(i<0?u.childBefore(n.from):u.childAfter(n.to)))do if(i<0?u.to<=n.from:u.from>=n.to){if(c==0&&o.indexOf(u.type.name)>-1&&u.from<u.to){let f=_x(u);return{start:l,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(Qx(u.type,i,s))c++;else if(Qx(u.type,-i,s)){if(c==0){let f=_x(u);return{start:l,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}c--}}while(i<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}function HB(t,e,i,n,r,o,s){let a=i<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=s.indexOf(a);if(l<0||l%2==0!=i>0)return null;let c={from:i<0?e-1:e,to:i>0?e+1:e},u=t.doc.iterRange(e,i>0?t.doc.length:0),f=0;for(let d=0;!u.next().done&&d<=o;){let O=u.value;i<0&&(d+=O.length);let m=e+d*i;for(let x=i>0?0:O.length-1,v=i>0?O.length:-1;x!=v;x+=i){let w=s.indexOf(O[x]);if(!(w<0||n.resolveInner(m+x,1).type!=r))if(w%2==0==i>0)f++;else{if(f==1)return{start:c,end:{from:m+x,to:m+x+1},matched:w>>1==l>>1};f--}}i>0&&(d+=O.length)}return u.done?{start:c,matched:!1}:null}function XQ(t,e,i,n=0,r=0){e==null&&(e=t.search(/[^\s\u00a0]/),e==-1&&(e=t.length));let o=r;for(let s=n;s<e;s++)t.charCodeAt(s)==9?o+=i-o%i:o++;return o}var Cl=class{constructor(e,i,n,r){this.string=e,this.tabSize=i,this.indentUnit=n,this.overrideIndent=r,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let i=this.string.charAt(this.pos),n;if(typeof e=="string"?n=i==e:n=i&&(e instanceof RegExp?e.test(i):e(i)),n)return++this.pos,i}eatWhile(e){let i=this.pos;for(;this.eat(e););return this.pos>i}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=XQ(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return(e=this.overrideIndent)!==null&&e!==void 0?e:XQ(this.string,null,this.tabSize)}match(e,i,n){if(typeof e=="string"){let r=s=>n?s.toLowerCase():s,o=this.string.substr(this.pos,e.length);return r(o)==r(e)?(i!==!1&&(this.pos+=e.length),!0):null}else{let r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&i!==!1&&(this.pos+=r[0].length),r)}}current(){return this.string.slice(this.start,this.pos)}};function GB(t){return{name:t.name||"",token:t.token,blankLine:t.blankLine||(()=>{}),startState:t.startState||(()=>!0),copyState:t.copyState||KB,indent:t.indent||(()=>null),languageData:t.languageData||{},tokenTable:t.tokenTable||Dx}}function KB(t){if(typeof t!="object")return t;let e={};for(let i in t){let n=t[i];e[i]=n instanceof Array?n.slice():n}return e}var RQ=new WeakMap,ia=class t extends pi{constructor(e){let i=Pl(e.languageData),n=GB(e),r,o=new class extends Yr{createParse(s,a,l){return new Ax(r,s,a,l)}};super(i,o,[],e.name),this.topNode=iY(i,this),r=this,this.streamParser=n,this.stateAfter=new _e({perNode:!0}),this.tokenTable=e.tokenTable?new bp(n.tokenTable):tY}static define(e){return new t(e)}getIndent(e){let i,{overrideIndentation:n}=e.options;n&&(i=RQ.get(e.state),i!=null&&i<e.pos-1e4&&(i=void 0));let r=Ix(this,e.node.tree,e.node.from,e.node.from,i!=null?i:e.pos),o,s;if(r?(s=r.state,o=r.pos+1):(s=this.streamParser.startState(e.unit),o=e.node.from),e.pos-o>1e4)return null;for(;o<e.pos;){let l=e.state.doc.lineAt(o),c=Math.min(e.pos,l.to);if(l.length){let u=n?n(l.from):-1,f=new Cl(l.text,e.state.tabSize,e.unit,u<0?void 0:u);for(;f.pos<c-l.from;)i_(this.streamParser.token,f,s)}else this.streamParser.blankLine(s,e.unit);if(c==e.pos)break;o=l.to+1}let a=e.lineAt(e.pos);return n&&i==null&&RQ.set(e.state,a.from),this.streamParser.indent(s,/^\s*(.*)/.exec(a.text)[1],e)}get allowsNesting(){return!1}};function Ix(t,e,i,n,r){let o=i>=n&&i+e.length<=r&&e.prop(t.stateAfter);if(o)return{state:t.streamParser.copyState(o),pos:i+e.length};for(let s=e.children.length-1;s>=0;s--){let a=e.children[s],l=i+e.positions[s],c=a instanceof Ze&&l<r&&Ix(t,a,l,n,r);if(c)return c}return null}function t_(t,e,i,n,r){if(r&&i<=0&&n>=e.length)return e;!r&&i==0&&e.type==t.topNode&&(r=!0);for(let o=e.children.length-1;o>=0;o--){let s=e.positions[o],a=e.children[o],l;if(s<n&&a instanceof Ze){if(!(l=t_(t,a,i-s,n-s,r)))break;return r?new Ze(e.type,e.children.slice(0,o).concat(l),e.positions.slice(0,o+1),s+l.length):l}}return null}function JB(t,e,i,n,r){for(let o of e){let s=o.from+(o.openStart?25:0),a=o.to-(o.openEnd?25:0),l=s<=i&&a>i&&Ix(t,o.tree,0-o.offset,i,a),c;if(l&&l.pos<=n&&(c=t_(t,o.tree,i+o.offset,l.pos+o.offset,!1)))return{state:l.state,tree:c}}return{state:t.streamParser.startState(r?vr(r):4),tree:Ze.empty}}var Ax=class{constructor(e,i,n,r){this.lang=e,this.input=i,this.fragments=n,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let o=Js.get(),s=r[0].from,{state:a,tree:l}=JB(e,n,s,this.to,o==null?void 0:o.state);this.state=a,this.parsedPos=this.chunkStart=s+l.length;for(let c=0;c<l.children.length;c++)this.chunks.push(l.children[c]),this.chunkPos.push(l.positions[c]);o&&this.parsedPos<o.viewport.from-1e5&&r.some(c=>c.from<=o.viewport.from&&c.to>=o.viewport.from)&&(this.state=this.lang.streamParser.startState(vr(o.state)),o.skipUntilInView(this.parsedPos,o.viewport.from),this.parsedPos=o.viewport.from),this.moveRangeIndex()}advance(){let e=Js.get(),i=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(i,this.chunkStart+2048);for(e&&(n=Math.min(n,e.viewport.to));this.parsedPos<n;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=i?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,i),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let i=this.input.chunk(e);if(this.input.lineChunks)i==`
|
||
`&&(i="");else{let n=i.indexOf(`
|
||
`);n>-1&&(i=i.slice(0,n))}return e+i.length<=this.to?i:i.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,i=this.lineAfter(e),n=e+i.length;for(let r=this.rangeIndex;;){let o=this.ranges[r].to;if(o>=n||(i=i.slice(0,o-(n-i.length)),r++,r==this.ranges.length))break;let s=this.ranges[r].from,a=this.lineAfter(s);i+=a,n=s+a.length}return{line:i,end:n}}skipGapsTo(e,i,n){for(;;){let r=this.ranges[this.rangeIndex].to,o=e+i;if(n>0?r>o:r>=o)break;let s=this.ranges[++this.rangeIndex].from;i+=s-r}return i}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,i,n,r){let o=4;if(this.ranges.length>1){r=this.skipGapsTo(i,r,1),i+=r;let a=this.chunk.length;r=this.skipGapsTo(n,r,-1),n+=r,o+=this.chunk.length-a}let s=this.chunk.length-4;return o==4&&s>=0&&this.chunk[s]==e&&this.chunk[s+2]==i?this.chunk[s+2]=n:this.chunk.push(e,i,n,o),r}parseLine(e){let{line:i,end:n}=this.nextLine(),r=0,{streamParser:o}=this.lang,s=new Cl(i,e?e.state.tabSize:4,e?vr(e.state):2);if(s.eol())o.blankLine(this.state,s.indentUnit);else for(;!s.eol();){let a=i_(o.token,s,this.state);if(a&&(r=this.emitToken(this.lang.tokenTable.resolve(a),this.parsedPos+s.start,this.parsedPos+s.pos,r)),s.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=Ze.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:eY,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new Ze(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new Ze(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}};function i_(t,e,i){e.start=e.pos;for(let n=0;n<10;n++){let r=t(e,i);if(e.pos>e.start)return r}throw new Error("Stream parser failed to advance stream.")}var Dx=Object.create(null),of=[Xt.none],eY=new Zr(of),LQ=[],IQ=Object.create(null),n_=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])n_[t]=r_(Dx,e);var bp=class{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),n_)}resolve(e){return e?this.table[e]||(this.table[e]=r_(this.extra,e)):0}},tY=new bp(Dx);function kx(t,e){LQ.indexOf(t)>-1||(LQ.push(t),console.warn(e))}function r_(t,e){let i=[];for(let a of e.split(" ")){let l=[];for(let c of a.split(".")){let u=t[c]||E[c];u?typeof u=="function"?l.length?l=l.map(u):kx(c,`Modifier ${c} used at start of tag`):l.length?kx(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:kx(c,`Unknown highlighting tag ${c}`)}for(let c of l)i.push(c)}if(!i.length)return 0;let n=e.replace(/ /g,"_"),r=n+" "+i.map(a=>a.id),o=IQ[r];if(o)return o.id;let s=IQ[r]=Xt.define({id:of.length,name:n,props:[Et({[n]:i})]});return of.push(s),s.id}function iY(t,e){let i=Xt.define({id:of.length,name:"Document",props:[Jr.add(()=>t),Nt.add(()=>n=>e.getIndent(n))],top:!0});return of.push(i),i}var yke={rtl:we.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:at.RTL}),ltr:we.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:at.LTR}),auto:we.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var _l=class{constructor(e,i,n,r){this.state=e,this.pos=i,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let i=qe(this.state).resolveInner(this.pos,-1);for(;i&&e.indexOf(i.name)<0;)i=i.parent;return i?{from:i.from,to:this.pos,text:this.state.sliceDoc(i.from,this.pos),type:i.type}:null}matchBefore(e){let i=this.state.doc.lineAt(this.pos),n=Math.max(i.from,this.pos-250),r=i.text.slice(n-i.from,this.pos-i.from),o=r.search(d_(e,!1));return o<0?null:{from:n+o,to:this.pos,text:r.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,i,n){e=="abort"&&this.abortListeners&&(this.abortListeners.push(i),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function o_(t){let e=Object.keys(t).join(""),i=/\w/.test(e);return i&&(e=e.replace(/\w/g,"")),`[${i?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function nY(t){let e=Object.create(null),i=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let o=1;o<r.length;o++)i[r[o]]=!0}let n=o_(e)+o_(i)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function oa(t){let e=t.map(r=>typeof r=="string"?{label:r}:r),[i,n]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:nY(e);return r=>{let o=r.matchBefore(n);return o||r.explicit?{from:o?o.from:r.pos,options:e,validFor:i}:null}}function Xl(t,e){return i=>{for(let n=qe(i.state).resolveInner(i.pos,-1);n;n=n.parent){if(t.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(i)}}var Sp=class{constructor(e,i,n,r){this.completion=e,this.source=i,this.match=n,this.score=r}};function ra(t){return t.selection.main.from}function d_(t,e){var i;let{source:n}=t,r=e&&n[0]!="^",o=n[n.length-1]!="$";return!r&&!o?t:new RegExp(`${r?"^":""}(?:${n})${o?"$":""}`,(i=t.flags)!==null&&i!==void 0?i:t.ignoreCase?"i":"")}var Fx=Si.define();function rY(t,e,i,n){let{main:r}=t.selection,o=i-r.from,s=n-r.from;return Object.assign(Object.assign({},t.changeByRange(a=>{if(a!=r&&i!=n&&t.sliceDoc(a.from+o,a.from+s)!=t.sliceDoc(i,n))return{range:a};let l=t.toText(e);return{changes:{from:a.from+o,to:n==r.from?a.to:a.from+s,insert:l},range:J.cursor(a.from+o+l.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}var s_=new WeakMap;function oY(t){if(!Array.isArray(t))return t;let e=s_.get(t);return e||s_.set(t,e=oa(t)),e}var Tp=Se.define(),lf=Se.define(),Mx=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let i=0;i<e.length;){let n=hi(e,i),r=rn(n);this.chars.push(n);let o=e.slice(i,i+r),s=o.toUpperCase();this.folded.push(hi(s==o?o.toLowerCase():s,0)),i+=r}this.astral=e.length!=this.chars.length}ret(e,i){return this.score=e,this.matched=i,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:i,folded:n,any:r,precise:o,byWord:s}=this;if(i.length==1){let T=hi(e,0),Q=rn(T),I=Q==e.length?0:-100;if(T!=i[0])if(T==n[0])I+=-200;else return null;return this.ret(I,[0,Q])}let a=e.indexOf(this.pattern);if(a==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=i.length,c=0;if(a<0){for(let T=0,Q=Math.min(e.length,200);T<Q&&c<l;){let I=hi(e,T);(I==i[c]||I==n[c])&&(r[c++]=T),T+=rn(I)}if(c<l)return null}let u=0,f=0,d=!1,O=0,m=-1,x=-1,v=/[a-z]/.test(e),w=!0;for(let T=0,Q=Math.min(e.length,200),I=0;T<Q&&f<l;){let z=hi(e,T);a<0&&(u<l&&z==i[u]&&(o[u++]=T),O<l&&(z==i[O]||z==n[O]?(O==0&&(m=T),x=T+1,O++):O=0));let $,X=z<255?z>=48&&z<=57||z>=97&&z<=122?2:z>=65&&z<=90?1:0:($=Au(z))!=$.toLowerCase()?1:$!=$.toUpperCase()?2:0;(!T||X==1&&v||I==0&&X!=0)&&(i[f]==z||n[f]==z&&(d=!0)?s[f++]=T:s.length&&(w=!1)),I=X,T+=rn(z)}return f==l&&s[0]==0&&w?this.result(-100+(d?-200:0),s,e):O==l&&m==0?this.ret(-200-e.length+(x==e.length?0:-100),[0,x]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):O==l?this.ret(-900-e.length,[m,x]):f==l?this.result(-100+(d?-200:0)+-700+(w?0:-1100),s,e):i.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,i,n){let r=[],o=0;for(let s of i){let a=s+(this.astral?rn(hi(n,s)):1);o&&r[o-1]==s?r[o-1]=a:(r[o++]=s,r[o++]=a)}return this.ret(e-n.length,r)}},Nx=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let i=e.slice(0,this.pattern.length),n=i==this.pattern?0:i.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,i.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},si=be.define({combine(t){return _t(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:sY,filterStrict:!1,compareCompletions:(e,i)=>e.label.localeCompare(i.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,i)=>e&&i,closeOnBlur:(e,i)=>e&&i,icons:(e,i)=>e&&i,tooltipClass:(e,i)=>n=>a_(e(n),i(n)),optionClass:(e,i)=>n=>a_(e(n),i(n)),addToOptions:(e,i)=>e.concat(i),filterStrict:(e,i)=>e||i})}});function a_(t,e){return t?e?t+" "+e:t:e}function sY(t,e,i,n,r,o){let s=t.textDirection==at.RTL,a=s,l=!1,c="top",u,f,d=e.left-r.left,O=r.right-e.right,m=n.right-n.left,x=n.bottom-n.top;if(a&&d<Math.min(m,O)?a=!1:!a&&O<Math.min(m,d)&&(a=!0),m<=(a?d:O))u=Math.max(r.top,Math.min(i.top,r.bottom-x))-e.top,f=Math.min(400,a?d:O);else{l=!0,f=Math.min(400,(s?e.right:r.right-e.left)-30);let T=r.bottom-e.bottom;T>=x||T>e.top?u=i.bottom-e.top:(c="bottom",u=e.bottom-i.top)}let v=(e.bottom-e.top)/o.offsetHeight,w=(e.right-e.left)/o.offsetWidth;return{style:`${c}: ${u/v}px; max-width: ${f/w}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":a?"left":"right")}}function aY(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(i){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),i.type&&n.classList.add(...i.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(i,n,r,o){let s=document.createElement("span");s.className="cm-completionLabel";let a=i.displayLabel||i.label,l=0;for(let c=0;c<o.length;){let u=o[c++],f=o[c++];u>l&&s.appendChild(document.createTextNode(a.slice(l,u)));let d=s.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(a.slice(u,f))),d.className="cm-completionMatchedText",l=f}return l<a.length&&s.appendChild(document.createTextNode(a.slice(l))),s},position:50},{render(i){if(!i.detail)return null;let n=document.createElement("span");return n.className="cm-completionDetail",n.textContent=i.detail,n},position:80}),e.sort((i,n)=>i.position-n.position).map(i=>i.render)}function zx(t,e,i){if(t<=i)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let r=Math.floor(e/i);return{from:r*i,to:(r+1)*i}}let n=Math.floor((t-e)/i);return{from:t-(n+1)*i,to:t-n*i}}var qx=class{constructor(e,i,n){this.view=e,this.stateField=i,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let r=e.state.field(i),{options:o,selected:s}=r.open,a=e.state.facet(si);this.optionContent=aY(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=zx(o.length,s,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=e.state.field(i).open;for(let u=l.target,f;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(f=/-(\d+)$/.exec(u.id))&&+f[1]<c.length){this.applyCompletion(e,c[+f[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(si).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:lf.of(null)})}),this.showOptions(o,r.id)}mount(){this.updateSel()}showOptions(e,i){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,i,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var i;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:o,selected:s,disabled:a}=n.open;(!r.open||r.open.options!=o)&&(this.range=zx(o.length,s,e.state.facet(si).maxRenderedOptions),this.showOptions(o,n.id)),this.updateSel(),a!=((i=r.open)===null||i===void 0?void 0:i.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let i=this.tooltipClass(e);if(i!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of i.split(" "))n&&this.dom.classList.add(n);this.currentClass=i}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),i=e.open;if((i.selected>-1&&i.selected<this.range.from||i.selected>=this.range.to)&&(this.range=zx(i.options.length,i.selected,this.view.state.facet(si).maxRenderedOptions),this.showOptions(i.options,e.id)),this.updateSelectedOption(i.selected)){this.destroyInfo();let{completion:n}=i.options[i.selected],{info:r}=n;if(!r)return;let o=typeof r=="string"?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,n)}).catch(s=>Oi(this.view.state,s,"completion info")):this.addInfoPane(o,n)}}addInfoPane(e,i){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:o}=e;n.appendChild(r),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let i=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!="LI"||!n.id?r--:r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),i=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return i&&cY(this.list,i),i}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let i=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),o=this.space;if(!o){let s=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:s.clientWidth,bottom:s.clientHeight}}return r.top>Math.min(o.bottom,i.bottom)-10||r.bottom<Math.max(o.top,i.top)+10?null:this.view.state.facet(si).positionInfo(this.view,i,r,n,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,i,n){let r=document.createElement("ul");r.id=i,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",s=>{s.target==r&&s.preventDefault()});let o=null;for(let s=n.from;s<n.to;s++){let{completion:a,match:l}=e[s],{section:c}=a;if(c){let d=typeof c=="string"?c:c.name;if(d!=o&&(s>n.from||n.from==0))if(o=d,typeof c!="string"&&c.header)r.appendChild(c.header(c));else{let O=r.appendChild(document.createElement("completion-section"));O.textContent=d}}let u=r.appendChild(document.createElement("li"));u.id=i+"-"+s,u.setAttribute("role","option");let f=this.optionClass(a);f&&(u.className=f);for(let d of this.optionContent){let O=d(a,this.view.state,this.view,l);O&&u.appendChild(O)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}};function lY(t,e){return i=>new qx(i,t,e)}function cY(t,e){let i=t.getBoundingClientRect(),n=e.getBoundingClientRect(),r=i.height/t.offsetHeight;n.top<i.top?t.scrollTop-=(i.top-n.top)/r:n.bottom>i.bottom&&(t.scrollTop+=(n.bottom-i.bottom)/r)}function l_(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function uY(t,e){let i=[],n=null,r=c=>{i.push(c);let{section:u}=c.completion;if(u){n||(n=[]);let f=typeof u=="string"?u:u.name;n.some(d=>d.name==f)||n.push(typeof u=="string"?{name:f}:u)}},o=e.facet(si);for(let c of t)if(c.hasResult()){let u=c.result.getMatch;if(c.result.filter===!1)for(let f of c.result.options)r(new Sp(f,c.source,u?u(f):[],1e9-i.length));else{let f=e.sliceDoc(c.from,c.to),d,O=o.filterStrict?new Nx(f):new Mx(f);for(let m of c.result.options)if(d=O.match(m.label)){let x=m.displayLabel?u?u(m,d.matched):[]:d.matched;r(new Sp(m,c.source,x,d.score+(m.boost||0)))}}}if(n){let c=Object.create(null),u=0,f=(d,O)=>{var m,x;return((m=d.rank)!==null&&m!==void 0?m:1e9)-((x=O.rank)!==null&&x!==void 0?x:1e9)||(d.name<O.name?-1:1)};for(let d of n.sort(f))u-=1e5,c[d.name]=u;for(let d of i){let{section:O}=d.completion;O&&(d.score+=c[typeof O=="string"?O:O.name])}}let s=[],a=null,l=o.compareCompletions;for(let c of i.sort((u,f)=>f.score-u.score||l(u.completion,f.completion))){let u=c.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?s.push(c):l_(c.completion)>l_(a)&&(s[s.length-1]=c),a=c.completion}return s}var jx=class t{constructor(e,i,n,r,o,s){this.options=e,this.attrs=i,this.tooltip=n,this.timestamp=r,this.selected=o,this.disabled=s}setSelected(e,i){return e==this.selected||e>=this.options.length?this:new t(this.options,c_(i,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,i,n,r,o,s){if(r&&!s&&e.some(c=>c.isPending))return r.setDisabled();let a=uY(e,i);if(!a.length)return r&&e.some(c=>c.isPending)?r.setDisabled():null;let l=i.facet(si).selectOnOpen?0:-1;if(r&&r.selected!=l&&r.selected!=-1){let c=r.options[r.selected].completion;for(let u=0;u<a.length;u++)if(a[u].completion==c){l=u;break}}return new t(a,c_(n,l),{pos:e.reduce((c,u)=>u.hasResult()?Math.min(c,u.from):c,1e8),create:mY,above:o.aboveCursor},r?r.timestamp:Date.now(),l,!1)}map(e){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new t(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},Wx=class t{constructor(e,i,n){this.active=e,this.id=i,this.open=n}static start(){return new t(OY,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:i}=e,n=i.facet(si),o=(n.override||i.languageDataAt("autocomplete",ra(i)).map(oY)).map(l=>(this.active.find(u=>u.source==l)||new to(l,this.active.some(u=>u.state!=0)?1:0)).update(e,n));o.length==this.active.length&&o.every((l,c)=>l==this.active[c])&&(o=this.active);let s=this.open,a=e.effects.some(l=>l.is(Hx));s&&e.docChanged&&(s=s.map(e.changes)),e.selection||o.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!fY(o,this.active)||a?s=jx.build(o,i,this.id,s,n,a):s&&s.disabled&&!o.some(l=>l.isPending)&&(s=null),!s&&o.every(l=>!l.isPending)&&o.some(l=>l.hasResult())&&(o=o.map(l=>l.hasResult()?new to(l.source,0):l));for(let l of e.effects)l.is(p_)&&(s=s&&s.setSelected(l.value,this.id));return o==this.active&&s==this.open?this:new t(o,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?hY:dY}};function fY(t,e){if(t==e)return!0;for(let i=0,n=0;;){for(;i<t.length&&!t[i].hasResult();)i++;for(;n<e.length&&!e[n].hasResult();)n++;let r=i==t.length,o=n==e.length;if(r||o)return r==o;if(t[i++].result!=e[n++].result)return!1}}var hY={"aria-autocomplete":"list"},dY={};function c_(t,e){let i={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(i["aria-activedescendant"]=t+"-"+e),i}var OY=[];function O_(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(Fx);if(n&&e.activateOnCompletion(n))return 12}let i=t.isUserEvent("input.type");return i&&e.activateOnTyping?5:i?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}var to=class t{constructor(e,i,n=!1){this.source=e,this.state=i,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(e,i){let n=O_(e,i),r=this;(n&8||n&16&&this.touches(e))&&(r=new t(r.source,0)),n&4&&r.state==0&&(r=new t(this.source,1)),r=r.updateFor(e,n);for(let o of e.effects)if(o.is(Tp))r=new t(r.source,1,o.value);else if(o.is(lf))r=new t(r.source,0);else if(o.is(Hx))for(let s of o.value)s.source==r.source&&(r=s);return r}updateFor(e,i){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(ra(e.state))}},Ep=class t extends to{constructor(e,i,n,r,o,s){super(e,3,i),this.limit=n,this.result=r,this.from=o,this.to=s}hasResult(){return!0}updateFor(e,i){var n;if(!(i&3))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let o=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),a=ra(e.state);if(a>s||!r||i&2&&(ra(e.startState)==this.from||a<this.limit))return new to(this.source,i&4?1:0);let l=e.changes.mapPos(this.limit);return pY(r.validFor,e.state,o,s)?new t(this.source,this.explicit,l,r,o,s):r.update&&(r=r.update(r,o,s,new _l(e.state,a,!1)))?new t(this.source,this.explicit,l,r,r.from,(n=r.to)!==null&&n!==void 0?n:ra(e.state)):new to(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new t(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new to(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function pY(t,e,i,n){if(!t)return!1;let r=e.sliceDoc(i,n);return typeof t=="function"?t(r,i,n,e):d_(t,!0).test(r)}var Hx=Se.define({map(t,e){return t.map(i=>i.map(e))}}),p_=Se.define(),Di=Ge.define({create(){return Wx.start()},update(t,e){return t.update(e)},provide:t=>[Kr.from(t,e=>e.tooltip),fe.contentAttributes.from(t,e=>e.attrs)]});function Gx(t,e){let i=e.completion.apply||e.completion.label,n=t.state.field(Di).active.find(r=>r.source==e.source);return n instanceof Ep?(typeof i=="string"?t.dispatch(Object.assign(Object.assign({},rY(t.state,i,n.from,n.to)),{annotations:Fx.of(e.completion)})):i(t,e.completion,n.from,n.to),!0):!1}var mY=lY(Di,Gx);function io(t,e="option"){return i=>{let n=i.state.field(Di,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<i.state.facet(si).interactionDelay)return!1;let r=1,o;e=="page"&&(o=dx(i,n.open.tooltip))&&(r=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:s}=n.open.options,a=n.open.selected>-1?n.open.selected+r*(t?1:-1):t?0:s-1;return a<0?a=e=="page"?0:s-1:a>=s&&(a=e=="page"?s-1:0),i.dispatch({effects:p_.of(a)}),!0}}var Cp=t=>{let e=t.state.field(Di,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(si).interactionDelay?!1:Gx(t,e.open.options[e.open.selected])},Al=t=>t.state.field(Di,!1)?(t.dispatch({effects:Tp.of(!0)}),!0):!1,ff=t=>{let e=t.state.field(Di,!1);return!e||!e.active.some(i=>i.state!=0)?!1:(t.dispatch({effects:lf.of(null)}),!0)},Vx=class{constructor(e,i){this.active=e,this.context=i,this.time=Date.now(),this.updates=[],this.done=void 0}},gY=50,bY=1e3,yY=He.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(Di).active)e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(Di),i=t.state.facet(si);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Di)==e)return;let n=t.transactions.some(o=>{let s=O_(o,i);return s&8||(o.selection||o.docChanged)&&!(s&3)});for(let o=0;o<this.running.length;o++){let s=this.running[o];if(n||s.context.abortOnDocChange&&t.docChanged||s.updates.length+t.transactions.length>gY&&Date.now()-s.time>bY){for(let a of s.context.abortListeners)try{a()}catch(l){Oi(this.view.state,l)}s.context.abortListeners=null,this.running.splice(o--,1)}else s.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(o=>o.effects.some(s=>s.is(Tp)))&&(this.pendingStart=!0);let r=this.pendingStart?50:i.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.isPending&&!this.running.some(s=>s.active.source==o.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let o of t.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Di);for(let i of e.active)i.isPending&&!this.running.some(n=>n.active.source==i.source)&&this.startQuery(i);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(si).updateSyncTime))}startQuery(t){let{state:e}=this.view,i=ra(e),n=new _l(e,i,t.explicit,this.view),r=new Vx(t,n);this.running.push(r),Promise.resolve(t.source(n)).then(o=>{r.context.aborted||(r.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:lf.of(null)}),Oi(this.view.state,o)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(si).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],i=this.view.state.facet(si),n=this.view.state.field(Di);for(let r=0;r<this.running.length;r++){let o=this.running[r];if(o.done===void 0)continue;if(this.running.splice(r--,1),o.done){let a=ra(o.updates.length?o.updates[0].startState:this.view.state),l=Math.min(a,o.done.from+(o.active.explicit?0:1)),c=new Ep(o.active.source,o.active.explicit,l,o.done,o.done.from,(t=o.done.to)!==null&&t!==void 0?t:a);for(let u of o.updates)c=c.update(u,i);if(c.hasResult()){e.push(c);continue}}let s=n.active.find(a=>a.source==o.active.source);if(s&&s.isPending)if(o.done==null){let a=new to(o.active.source,0);for(let l of o.updates)a=a.update(l,i);a.isPending||e.push(a)}else this.startQuery(s)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:Hx.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Di,!1);if(e&&e.tooltip&&this.view.state.facet(si).closeOnBlur){let i=e.open&&dx(this.view,e.open.tooltip);(!i||!i.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:lf.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Tp.of(!1)}),20),this.composing=0}}}),xY=typeof navigator=="object"&&/Win/.test(navigator.platform),vY=Mt.highest(fe.domEventHandlers({keydown(t,e){let i=e.state.field(Di,!1);if(!i||!i.open||i.open.disabled||i.open.selected<0||t.key.length>1||t.ctrlKey&&!(xY&&t.altKey)||t.metaKey)return!1;let n=i.open.options[i.open.selected],r=i.active.find(s=>s.source==n.source),o=n.completion.commitCharacters||r.result.commitCharacters;return o&&o.indexOf(t.key)>-1&&Gx(e,n),!1}})),m_=fe.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Zx=class{constructor(e,i,n,r){this.field=e,this.line=i,this.from=n,this.to=r}},Bx=class t{constructor(e,i,n){this.field=e,this.from=i,this.to=n}map(e){let i=e.mapPos(this.from,-1,Qt.TrackDel),n=e.mapPos(this.to,1,Qt.TrackDel);return i==null||n==null?null:new t(this.field,i,n)}},Yx=class t{constructor(e,i){this.lines=e,this.fieldPositions=i}instantiate(e,i){let n=[],r=[i],o=e.doc.lineAt(i),s=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(n.length){let c=s,u=/^\t*/.exec(l)[0].length;for(let f=0;f<u;f++)c+=e.facet(Bn);r.push(i+c.length-u),l=c+l.slice(u)}n.push(l),i+=l.length+1}let a=this.fieldPositions.map(l=>new Bx(l.field,r[l.line]+l.from,r[l.line]+l.to));return{text:n,ranges:a}}static parse(e){let i=[],n=[],r=[],o;for(let s of e.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let a=o[1]?+o[1]:null,l=o[2]||o[3]||"",c=-1,u=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f<i.length;f++)(a!=null?i[f].seq==a:u&&i[f].name==u)&&(c=f);if(c<0){let f=0;for(;f<i.length&&(a==null||i[f].seq!=null&&i[f].seq<a);)f++;i.splice(f,0,{seq:a,name:u}),c=f;for(let d of r)d.field>=c&&d.field++}r.push(new Zx(c,n.length,o.index,o.index+u.length)),s=s.slice(0,o.index)+l+s.slice(o.index+o[0].length)}s=s.replace(/\\([{}])/g,(a,l,c)=>{for(let u of r)u.line==n.length&&u.from>c&&(u.from--,u.to--);return l}),n.push(s)}return new t(n,r)}},wY=we.widget({widget:new class extends oi{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),kY=we.mark({class:"cm-snippetField"}),$l=class t{constructor(e,i){this.ranges=e,this.active=i,this.deco=we.set(e.map(n=>(n.from==n.to?wY:kY).range(n.from,n.to)))}map(e){let i=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;i.push(r)}return new t(i,this.active)}selectionInsideField(e){return e.ranges.every(i=>this.ranges.some(n=>n.field==this.active&&n.from<=i.from&&n.to>=i.to))}},hf=Se.define({map(t,e){return t&&t.map(e)}}),SY=Se.define(),cf=Ge.define({create(){return null},update(t,e){for(let i of e.effects){if(i.is(hf))return i.value;if(i.is(SY)&&t)return new $l(t.ranges,i.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>fe.decorations.from(t,e=>e?e.deco:we.none)});function Kx(t,e){return J.create(t.filter(i=>i.field==e).map(i=>J.range(i.from,i.to)))}function TY(t){let e=Yx.parse(t);return(i,n,r,o)=>{let{text:s,ranges:a}=e.instantiate(i.state,r),{main:l}=i.state.selection,c={changes:{from:r,to:o==l.from?l.to:o,insert:Fe.of(s)},scrollIntoView:!0,annotations:n?[Fx.of(n),Rt.userEvent.of("input.complete")]:void 0};if(a.length&&(c.selection=Kx(a,0)),a.some(u=>u.field>0)){let u=new $l(a,0),f=c.effects=[hf.of(u)];i.state.field(cf,!1)===void 0&&f.push(Se.appendConfig.of([cf,_Y,AY,m_]))}i.dispatch(i.state.update(c))}}function g_(t){return({state:e,dispatch:i})=>{let n=e.field(cf,!1);if(!n||t<0&&n.active==0)return!1;let r=n.active+t,o=t>0&&!n.ranges.some(s=>s.field==r+t);return i(e.update({selection:Kx(n.ranges,r),effects:hf.of(o?null:new $l(n.ranges,r)),scrollIntoView:!0})),!0}}var EY=({state:t,dispatch:e})=>t.field(cf,!1)?(e(t.update({effects:hf.of(null)})),!0):!1,CY=g_(1),PY=g_(-1);var QY=[{key:"Tab",run:CY,shift:PY},{key:"Escape",run:EY}],u_=be.define({combine(t){return t.length?t[0]:QY}}),_Y=Mt.highest(Jt.compute([u_],t=>t.facet(u_)));function xt(t,e){return Object.assign(Object.assign({},e),{apply:TY(t)})}var AY=fe.domEventHandlers({mousedown(t,e){let i=e.state.field(cf,!1),n;if(!i||(n=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let r=i.ranges.find(o=>o.from<=n&&o.to>=n);return!r||r.field==i.active?!1:(e.dispatch({selection:Kx(i.ranges,r.field),effects:hf.of(i.ranges.some(o=>o.field>r.field)?new $l(i.ranges,r.field):null),scrollIntoView:!0}),!0)}});var uf={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},na=Se.define({map(t,e){let i=e.mapPos(t,-1,Qt.TrackAfter);return i==null?void 0:i}}),Jx=new class extends Vn{};Jx.startSide=1;Jx.endSide=-1;var b_=Ge.define({create(){return Je.empty},update(t,e){if(t=t.map(e.changes),e.selection){let i=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:n=>n>=i.from&&n<=i.to})}for(let i of e.effects)i.is(na)&&(t=t.update({add:[Jx.range(i.value,i.value+1)]}));return t}});function y_(){return[XY,b_]}var Ux="()[]{}<>\xAB\xBB\xBB\xAB\uFF3B\uFF3D\uFF5B\uFF5D";function x_(t){for(let e=0;e<Ux.length;e+=2)if(Ux.charCodeAt(e)==t)return Ux.charAt(e+1);return Au(t<128?t:t+1)}function v_(t,e){return t.languageDataAt("closeBrackets",e)[0]||uf}var $Y=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),XY=fe.inputHandler.of((t,e,i,n)=>{if(($Y?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let r=t.state.selection.main;if(n.length>2||n.length==2&&rn(hi(n,0))==1||e!=r.from||i!=r.to)return!1;let o=RY(t.state,n);return o?(t.dispatch(o),!0):!1}),w_=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=v_(t,t.selection.main.head).brackets||uf.brackets,r=null,o=t.changeByRange(s=>{if(s.empty){let a=LY(t.doc,s.head);for(let l of n)if(l==a&&Pp(t.doc,s.head)==x_(hi(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:J.cursor(s.head-l.length)}}return{range:r=s}});return r||e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!r};function RY(t,e){let i=v_(t,t.selection.main.head),n=i.brackets||uf.brackets;for(let r of n){let o=x_(hi(r,0));if(e==r)return o==r?zY(t,r,n.indexOf(r+r+r)>-1,i):IY(t,r,o,i.before||uf.before);if(e==o&&k_(t,t.selection.main.from))return DY(t,r,o)}return null}function k_(t,e){let i=!1;return t.field(b_).between(0,t.doc.length,n=>{n==e&&(i=!0)}),i}function Pp(t,e){let i=t.sliceString(e,e+2);return i.slice(0,rn(hi(i,0)))}function LY(t,e){let i=t.sliceString(e-2,e);return rn(hi(i,0))==i.length?i:i.slice(1)}function IY(t,e,i,n){let r=null,o=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:i,from:s.to}],effects:na.of(s.to+e.length),range:J.range(s.anchor+e.length,s.head+e.length)};let a=Pp(t.doc,s.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:e+i,from:s.head},effects:na.of(s.head+e.length),range:J.cursor(s.head+e.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function DY(t,e,i){let n=null,r=t.changeByRange(o=>o.empty&&Pp(t.doc,o.head)==i?{changes:{from:o.head,to:o.head+i.length,insert:i},range:J.cursor(o.head+i.length)}:n={range:o});return n?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function zY(t,e,i,n){let r=n.stringPrefixes||uf.stringPrefixes,o=null,s=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:na.of(a.to+e.length),range:J.range(a.anchor+e.length,a.head+e.length)};let l=a.head,c=Pp(t.doc,l),u;if(c==e){if(f_(t,l))return{changes:{insert:e+e,from:l},effects:na.of(l+e.length),range:J.cursor(l+e.length)};if(k_(t,l)){let d=i&&t.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+d.length,insert:d},range:J.cursor(l+d.length)}}}else{if(i&&t.sliceDoc(l-2*e.length,l)==e+e&&(u=h_(t,l-2*e.length,r))>-1&&f_(t,u))return{changes:{insert:e+e+e+e,from:l},effects:na.of(l+e.length),range:J.cursor(l+e.length)};if(t.charCategorizer(l)(c)!=mt.Word&&h_(t,l,r)>-1&&!UY(t,l,e,r))return{changes:{insert:e+e,from:l},effects:na.of(l+e.length),range:J.cursor(l+e.length)}}return{range:o=a}});return o?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function f_(t,e){let i=qe(t).resolveInner(e+1);return i.parent&&i.from==e}function UY(t,e,i,n){let r=qe(t).resolveInner(e,-1),o=n.reduce((s,a)=>Math.max(s,a.length),0);for(let s=0;s<5;s++){let a=t.sliceDoc(r.from,Math.min(r.to,r.from+i.length+o)),l=a.indexOf(i);if(!l||l>-1&&n.indexOf(a.slice(0,l))>-1){let u=r.firstChild;for(;u&&u.from==r.from&&u.to-u.from>i.length+l;){if(t.sliceDoc(u.to-i.length,u.to)==i)return!1;u=u.firstChild}return!0}let c=r.to==e&&r.parent;if(!c)break;r=c}return!1}function h_(t,e,i){let n=t.charCategorizer(e);if(n(t.sliceDoc(e-1,e))!=mt.Word)return e;for(let r of i){let o=e-r.length;if(t.sliceDoc(o,e)==r&&n(t.sliceDoc(o-1,o))!=mt.Word)return o}return-1}function ev(t={}){return[vY,Di,si.of(t),yY,NY,m_]}var MY=[{key:"Ctrl-Space",run:Al},{mac:"Alt-`",run:Al},{key:"Escape",run:ff},{key:"ArrowDown",run:io(!0)},{key:"ArrowUp",run:io(!1)},{key:"PageDown",run:io(!0,"page")},{key:"PageUp",run:io(!1,"page")},{key:"Enter",run:Cp}],NY=Mt.highest(Jt.computeN([si],t=>t.facet(si).defaultKeymap?[MY]:[]));function S_(t){let e=t.field(Di,!1);return e&&e.active.some(i=>i.isPending)?"pending":e&&e.active.some(i=>i.state!=0)?"active":null}var Ap=class t{static create(e,i,n,r,o){let s=r+(r<<8)+e+(i<<4)|0;return new t(e,i,n,s,o,[],[])}constructor(e,i,n,r,o,s,a){this.type=e,this.value=i,this.from=n,this.hash=r,this.end=o,this.children=s,this.positions=a,this.hashProp=[[_e.contextHash,r]]}addChild(e,i){e.prop(_e.contextHash)!=this.hash&&(e=new Ze(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(i)}toTree(e,i=this.end){let n=this.children.length-1;return n>=0&&(i=Math.max(i,this.positions[n]+this.children[n].length+this.from)),new Ze(e.types[this.type],this.children,this.positions,i-this.from).balance({makeTree:(r,o,s)=>new Ze(Xt.none,r,o,s,this.hashProp)})}},ge;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(ge||(ge={}));var nv=class{constructor(e,i){this.start=e,this.content=i,this.marks=[],this.parsers=[]}},rv=class{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return pf(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,i=0,n=0){for(let r=i;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let i=0;for(let n=0;i<this.text.length&&n<e;i++)n+=this.text.charCodeAt(i)==9?4-n%4:1;return i}scrub(){if(!this.baseIndent)return this.text;let e="";for(let i=0;i<this.basePos;i++)e+=" ";return e+this.text.slice(this.basePos)}};function T_(t,e,i){if(i.pos==i.text.length||t!=e.block&&i.indent>=e.stack[i.depth+1].value+i.baseIndent)return!0;if(i.indent>=i.baseIndent+4)return!1;let n=(t.type==ge.OrderedList?gv:mv)(i,e,!1);return n>0&&(t.type!=ge.BulletList||pv(i,e,!1)<0)&&i.text.charCodeAt(i.pos+n-1)==t.value}var D_={[ge.Blockquote](t,e,i){return i.next!=62?!1:(i.markers.push(et(ge.QuoteMark,e.lineStart+i.pos,e.lineStart+i.pos+1)),i.moveBase(i.pos+(Qn(i.text.charCodeAt(i.pos+1))?2:1)),t.end=e.lineStart+i.text.length,!0)},[ge.ListItem](t,e,i){return i.indent<i.baseIndent+t.value&&i.next>-1?!1:(i.moveBaseColumn(i.baseIndent+t.value),!0)},[ge.OrderedList]:T_,[ge.BulletList]:T_,[ge.Document](){return!0}};function Qn(t){return t==32||t==9||t==10||t==13}function pf(t,e=0){for(;e<t.length&&Qn(t.charCodeAt(e));)e++;return e}function E_(t,e,i){for(;e>i&&Qn(t.charCodeAt(e-1));)e--;return e}function z_(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(t.next==96){for(let i=e;i<t.text.length;i++)if(t.text.charCodeAt(i)==96)return-1}return e}function U_(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function pv(t,e,i){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let n=1;for(let r=t.pos+1;r<t.text.length;r++){let o=t.text.charCodeAt(r);if(o==t.next)n++;else if(!Qn(o))return-1}return i&&t.next==45&&q_(t)>-1&&t.depth==e.stack.length||n<3?-1:1}function M_(t,e){for(let i=t.stack.length-1;i>=0;i--)if(t.stack[i].type==e)return!0;return!1}function mv(t,e,i){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||Qn(t.text.charCodeAt(t.pos+1)))&&(!i||M_(e,ge.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function gv(t,e,i){let n=t.pos,r=t.next;for(;r>=48&&r<=57;){n++;if(n==t.text.length)return-1;r=t.text.charCodeAt(n)}return n==t.pos||n>t.pos+9||r!=46&&r!=41||n<t.text.length-1&&!Qn(t.text.charCodeAt(n+1))||i&&!M_(e,ge.OrderedList)&&(t.skipSpace(n+1)==t.text.length||n>t.pos+1||t.next!=49)?-1:n+1-t.pos}function N_(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==35;)e++;if(e<t.text.length&&t.text.charCodeAt(e)!=32)return-1;let i=e-t.pos;return i>6?-1:i}function q_(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let i=e;for(;e<t.text.length&&Qn(t.text.charCodeAt(e));)e++;return e==t.text.length?i:-1}var ov=/^[ \t]*$/,j_=/-->/,W_=/\?>/,sv=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,j_],[/^\s*<\?/,W_],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,ov],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,ov]];function V_(t,e,i){if(t.next!=60)return-1;let n=t.text.slice(t.pos);for(let r=0,o=sv.length-(i?1:0);r<o;r++)if(sv[r][0].test(n))return r;return-1}function C_(t,e){let i=t.countIndent(e,t.pos,t.indent),n=t.countIndent(t.skipSpace(e),e,i);return n>=i+5?i+1:n}function sa(t,e,i){let n=t.length-1;n>=0&&t[n].to==e&&t[n].type==ge.CodeText?t[n].to=i:t.push(et(ge.CodeText,e,i))}var Qp={LinkReference:void 0,IndentedCode(t,e){let i=e.baseIndent+4;if(e.indent<i)return!1;let n=e.findColumn(i),r=t.lineStart+n,o=t.lineStart+e.text.length,s=[],a=[];for(sa(s,r,o);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){sa(a,t.lineStart-1,t.lineStart);for(let l of e.markers)a.push(l)}else{if(e.indent<i)break;{if(a.length){for(let c of a)c.type==ge.CodeText?sa(s,c.from,c.to):s.push(c);a=[]}sa(s,t.lineStart-1,t.lineStart);for(let c of e.markers)s.push(c);o=t.lineStart+e.text.length;let l=t.lineStart+e.findColumn(e.baseIndent+4);l<o&&sa(s,l,o)}}return a.length&&(a=a.filter(l=>l.type!=ge.CodeText),a.length&&(e.markers=a.concat(e.markers))),t.addNode(t.buffer.writeElements(s,-r).finish(ge.CodeBlock,o-r),r),!0},FencedCode(t,e){let i=z_(e);if(i<0)return!1;let n=t.lineStart+e.pos,r=e.next,o=i-e.pos,s=e.skipSpace(i),a=E_(e.text,e.text.length,s),l=[et(ge.CodeMark,n,n+o)];s<a&&l.push(et(ge.CodeInfo,t.lineStart+s,t.lineStart+a));for(let c=!0;t.nextLine()&&e.depth>=t.stack.length;c=!1){let u=e.pos;if(e.indent-e.baseIndent<4)for(;u<e.text.length&&e.text.charCodeAt(u)==r;)u++;if(u-e.pos>=o&&e.skipSpace(u)==e.text.length){for(let f of e.markers)l.push(f);l.push(et(ge.CodeMark,t.lineStart+e.pos,t.lineStart+u)),t.nextLine();break}else{c||sa(l,t.lineStart-1,t.lineStart);for(let O of e.markers)l.push(O);let f=t.lineStart+e.basePos,d=t.lineStart+e.text.length;f<d&&sa(l,f,d)}}return t.addNode(t.buffer.writeElements(l,-n).finish(ge.FencedCode,t.prevLineEnd()-n),n),!0},Blockquote(t,e){let i=U_(e);return i<0?!1:(t.startContext(ge.Blockquote,e.pos),t.addNode(ge.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+i),null)},HorizontalRule(t,e){if(pv(e,t,!1)<0)return!1;let i=t.lineStart+e.pos;return t.nextLine(),t.addNode(ge.HorizontalRule,i),!0},BulletList(t,e){let i=mv(e,t,!1);if(i<0)return!1;t.block.type!=ge.BulletList&&t.startContext(ge.BulletList,e.basePos,e.next);let n=C_(e,e.pos+1);return t.startContext(ge.ListItem,e.basePos,n-e.baseIndent),t.addNode(ge.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+i),e.moveBaseColumn(n),null},OrderedList(t,e){let i=gv(e,t,!1);if(i<0)return!1;t.block.type!=ge.OrderedList&&t.startContext(ge.OrderedList,e.basePos,e.text.charCodeAt(e.pos+i-1));let n=C_(e,e.pos+i);return t.startContext(ge.ListItem,e.basePos,n-e.baseIndent),t.addNode(ge.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+i),e.moveBaseColumn(n),null},ATXHeading(t,e){let i=N_(e);if(i<0)return!1;let n=e.pos,r=t.lineStart+n,o=E_(e.text,e.text.length,n),s=o;for(;s>n&&e.text.charCodeAt(s-1)==e.next;)s--;(s==o||s==n||!Qn(e.text.charCodeAt(s-1)))&&(s=e.text.length);let a=t.buffer.write(ge.HeaderMark,0,i).writeElements(t.parser.parseInline(e.text.slice(n+i+1,s),r+i+1),-r);s<e.text.length&&a.write(ge.HeaderMark,s-n,o-n);let l=a.finish(ge.ATXHeading1-1+i,e.text.length-n);return t.nextLine(),t.addNode(l,r),!0},HTMLBlock(t,e){let i=V_(e,t,!1);if(i<0)return!1;let n=t.lineStart+e.pos,r=sv[i][1],o=[],s=r!=ov;for(;!r.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){s=!1;break}for(let c of e.markers)o.push(c)}s&&t.nextLine();let a=r==j_?ge.CommentBlock:r==W_?ge.ProcessingInstructionBlock:ge.HTMLBlock,l=t.prevLineEnd();return t.addNode(t.buffer.writeElements(o,-n).finish(a,l-n),n),!0},SetextHeading:void 0},av=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,i,n){if(this.stage==-1)return!1;let r=n.content+`
|
||
`+i.scrub(),o=this.advance(r);return o>-1&&o<r.length?this.complete(e,n,o):!1}finish(e,i){return(this.stage==2||this.stage==3)&&pf(i.content,this.pos)==i.content.length?this.complete(e,i,i.content.length):!1}complete(e,i,n){return e.addLeafElement(i,et(ge.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(K_(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(et(ge.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(H_(e,pf(e,this.pos),this.start)))return-1}else if(this.stage==2){let i=pf(e,this.pos),n=0;if(i>this.pos){let r=G_(e,i,this.start);if(r){let o=tv(e,r.to-this.start);o>0&&(this.nextStage(r),n=o)}}return n||(n=tv(e,this.pos)),n>0&&n<e.length?n:-1}else return tv(e,this.pos)}}};function tv(t,e){for(;e<t.length;e++){let i=t.charCodeAt(e);if(i==10)break;if(!Qn(i))return-1}return e}var lv=class{nextLine(e,i,n){let r=i.depth<e.stack.length?-1:q_(i),o=i.next;if(r<0)return!1;let s=et(ge.HeaderMark,e.lineStart+i.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,et(o==61?ge.SetextHeading1:ge.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),s])),!0}finish(){return!1}},qY={LinkReference(t,e){return e.content.charCodeAt(0)==91?new av(e):null},SetextHeading(){return new lv}},jY=[(t,e)=>N_(e)>=0,(t,e)=>z_(e)>=0,(t,e)=>U_(e)>=0,(t,e)=>mv(e,t,!0)>=0,(t,e)=>gv(e,t,!0)>=0,(t,e)=>pv(e,t,!0)>=0,(t,e)=>V_(e,t,!0)>=0],WY={text:"",end:0},cv=class{constructor(e,i,n,r){this.parser=e,this.input=i,this.ranges=r,this.line=new rv,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=Ap.create(ge.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new dv(n,i):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let n=0;;){let r=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;n<e.markers.length&&(!r||e.markers[n].from<r.end);){let o=e.markers[n++];this.addNode(o.type,o.from,o.to)}if(!r)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let n of this.parser.blockParsers)if(n){let r=n(this,e);if(r!=!1){if(r==!0)return null;e.forward();continue e}}break}let i=new nv(this.lineStart+e.pos,e.text.slice(e.pos));for(let n of this.parser.leafBlockParsers)if(n){let r=n(this,i);r&&i.parsers.push(r)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,i))break e}for(let n of i.parsers)if(n.nextLine(this,e,i))return null;i.content+=`
|
||
`+e.scrub();for(let n of e.markers)i.marks.push(n)}return this.finishLeaf(i),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let i=this.fragments.takeNodes(this);return i?(this.absoluteLineStart+=i,this.lineStart=J_(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let i=WY;if(i.end=e,e>=this.to)i.text="";else if(i.text=this.lineChunkAt(e),i.end+=i.text.length,this.ranges.length>1){let n=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<i.end;){r++;let o=this.ranges[r].from,s=this.lineChunkAt(o);i.end=o+s.length,i.text=i.text.slice(0,this.ranges[r-1].to-n)+s,n=i.end-i.text.length}}return i}readLine(){let{line:e}=this,{text:i,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(i);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],o=this.parser.skipContextMarkup[r.type];if(!o)throw new Error("Unhandled block context "+ge[r.type]);if(!o(r,this,e))break;e.forward()}}lineChunkAt(e){let i=this.input.chunk(e),n;if(this.input.lineChunks)n=i==`
|
||
`?"":i;else{let r=i.indexOf(`
|
||
`);n=r<0?i:i.slice(0,r)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,i,n=0){this.block=Ap.create(e,n,this.lineStart+i,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,i,n=0){this.startContext(this.parser.getNodeType(e),i,n)}addNode(e,i,n){typeof e=="number"&&(e=new Ze(this.parser.nodeSet.types[e],Rl,Rl,(n!=null?n:this.prevLineEnd())-i)),this.block.addChild(e,i-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,i){this.addNode(this.buffer.writeElements(hv(i.children,e.marks),-i.from).finish(i.type,i.to-i.from),i.from)}finishContext(){let e=this.stack.pop(),i=this.stack[this.stack.length-1];i.addChild(e.toTree(this.parser.nodeSet),e.from-i.from),this.block=i}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?Z_(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let n of e.parsers)if(n.finish(this,e))return;let i=hv(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(i,-e.start).finish(ge.Paragraph,e.content.length),e.start)}elt(e,i,n,r){return typeof e=="string"?et(this.parser.getNodeType(e),i,n,r):new Xp(e,i)}get buffer(){return new $p(this.parser.nodeSet)}};function Z_(t,e,i,n,r){let o=t[e].to,s=[],a=[],l=i.from+n;function c(u,f){for(;f?u>=o:u>o;){let d=t[e+1].from-o;n+=d,u+=d,e++,o=t[e].to}}for(let u=i.firstChild;u;u=u.nextSibling){c(u.from+n,!0);let f=u.from+n,d,O=r.get(u.tree);O?d=O:u.to+n>o?(d=Z_(t,e,u,n,r),c(u.to+n,!1)):d=u.toTree(),s.push(d),a.push(f-l)}return c(i.to+n,!1),new Ze(i.type,s,a,i.to+n-l,i.tree?i.tree.propValues:void 0)}var gf=class t extends Yr{constructor(e,i,n,r,o,s,a,l,c){super(),this.nodeSet=e,this.blockParsers=i,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=o,this.skipContextMarkup=s,this.inlineParsers=a,this.inlineNames=l,this.wrappers=c,this.nodeTypes=Object.create(null);for(let u of e.types)this.nodeTypes[u.name]=u.id}createParse(e,i,n){let r=new cv(this,e,i,n);for(let o of this.wrappers)r=o(r,e,i,n);return r}configure(e){let i=uv(e);if(!i)return this;let{nodeSet:n,skipContextMarkup:r}=this,o=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),a=this.blockNames.slice(),l=this.inlineParsers.slice(),c=this.inlineNames.slice(),u=this.endLeafBlock.slice(),f=this.wrappers;if(df(i.defineNodes)){r=Object.assign({},r);let d=n.types.slice(),O;for(let m of i.defineNodes){let{name:x,block:v,composite:w,style:T}=typeof m=="string"?{name:m}:m;if(d.some(z=>z.name==x))continue;w&&(r[d.length]=(z,$,X)=>w($,X,z.value));let Q=d.length,I=w?["Block","BlockContext"]:v?Q>=ge.ATXHeading1&&Q<=ge.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;d.push(Xt.define({id:Q,name:x,props:I&&[[_e.group,I]]})),T&&(O||(O={}),Array.isArray(T)||T instanceof En?O[x]=T:Object.assign(O,T))}n=new Zr(d),O&&(n=n.extend(Et(O)))}if(df(i.props)&&(n=n.extend(...i.props)),df(i.remove))for(let d of i.remove){let O=this.blockNames.indexOf(d),m=this.inlineNames.indexOf(d);O>-1&&(o[O]=s[O]=void 0),m>-1&&(l[m]=void 0)}if(df(i.parseBlock))for(let d of i.parseBlock){let O=a.indexOf(d.name);if(O>-1)o[O]=d.parse,s[O]=d.leaf;else{let m=d.before?_p(a,d.before):d.after?_p(a,d.after)+1:a.length-1;o.splice(m,0,d.parse),s.splice(m,0,d.leaf),a.splice(m,0,d.name)}d.endLeaf&&u.push(d.endLeaf)}if(df(i.parseInline))for(let d of i.parseInline){let O=c.indexOf(d.name);if(O>-1)l[O]=d.parse;else{let m=d.before?_p(c,d.before):d.after?_p(c,d.after)+1:c.length-1;l.splice(m,0,d.parse),c.splice(m,0,d.name)}}return i.wrap&&(f=f.concat(i.wrap)),new t(n,o,s,a,u,r,l,c,f)}getNodeType(e){let i=this.nodeTypes[e];if(i==null)throw new RangeError(`Unknown node type '${e}'`);return i}parseInline(e,i){let n=new fv(this,e,i);e:for(let r=i;r<n.end;){let o=n.char(r);for(let s of this.inlineParsers)if(s){let a=s(n,o,r);if(a>=0){r=a;continue e}}r++}return n.resolveMarkers(0)}};function df(t){return t!=null&&t.length>0}function uv(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=uv(t[0]);if(t.length==1)return e;let i=uv(t.slice(1));if(!i||!e)return e||i;let n=(s,a)=>(s||Rl).concat(a||Rl),r=e.wrap,o=i.wrap;return{props:n(e.props,i.props),defineNodes:n(e.defineNodes,i.defineNodes),parseBlock:n(e.parseBlock,i.parseBlock),parseInline:n(e.parseInline,i.parseInline),remove:n(e.remove,i.remove),wrap:r?o?(s,a,l,c)=>r(o(s,a,l,c),a,l,c):r:o}}function _p(t,e){let i=t.indexOf(e);if(i<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return i}var B_=[Xt.none];for(let t=1,e;e=ge[t];t++)B_[t]=Xt.define({id:t,name:e,props:t>=ge.Escape?[]:[[_e.group,t in D_?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});var Rl=[],$p=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,i,n,r=0){return this.content.push(e,i,n,4+r*4),this}writeElements(e,i=0){for(let n of e)n.writeTo(this,i);return this}finish(e,i){return Ze.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:i})}},aa=class{constructor(e,i,n,r=Rl){this.type=e,this.from=i,this.to=n,this.children=r}writeTo(e,i){let n=e.content.length;e.writeElements(this.children,i),e.content.push(this.type,this.from+i,this.to+i,e.content.length+4-n)}toTree(e){return new $p(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},Xp=class{constructor(e,i){this.tree=e,this.from=i}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Rl}writeTo(e,i){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+i,this.to+i,-1)}toTree(){return this.tree}};function et(t,e,i,n){return new aa(t,e,i,n)}var Y_={resolve:"Emphasis",mark:"EmphasisMark"},F_={resolve:"Emphasis",mark:"EmphasisMark"},Of={},P_={},an=class{constructor(e,i,n,r){this.type=e,this.from=i,this.to=n,this.side=r}},Q_="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",bf=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{bf=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch(t){}var iv={Escape(t,e,i){if(e!=92||i==t.end-1)return-1;let n=t.char(i+1);for(let r=0;r<Q_.length;r++)if(Q_.charCodeAt(r)==n)return t.append(et(ge.Escape,i,i+2));return-1},Entity(t,e,i){if(e!=38)return-1;let n=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(i+1,i+31));return n?t.append(et(ge.Entity,i,i+1+n[0].length)):-1},InlineCode(t,e,i){if(e!=96||i&&t.char(i-1)==96)return-1;let n=i+1;for(;n<t.end&&t.char(n)==96;)n++;let r=n-i,o=0;for(;n<t.end;n++)if(t.char(n)==96){if(o++,o==r&&t.char(n+1)!=96)return t.append(et(ge.InlineCode,i,n+1,[et(ge.CodeMark,i,i+r),et(ge.CodeMark,n+1-r,n+1)]))}else o=0;return-1},HTMLTag(t,e,i){if(e!=60||i==t.end-1)return-1;let n=t.slice(i+1,t.end),r=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(n);if(r)return t.append(et(ge.Autolink,i,i+1+r[0].length,[et(ge.LinkMark,i,i+1),et(ge.URL,i+1,i+r[0].length),et(ge.LinkMark,i+r[0].length,i+1+r[0].length)]));let o=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(n);if(o)return t.append(et(ge.Comment,i,i+1+o[0].length));let s=/^\?[^]*?\?>/.exec(n);if(s)return t.append(et(ge.ProcessingInstruction,i,i+1+s[0].length));let a=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);return a?t.append(et(ge.HTMLTag,i,i+1+a[0].length)):-1},Emphasis(t,e,i){if(e!=95&&e!=42)return-1;let n=i+1;for(;t.char(n)==e;)n++;let r=t.slice(i-1,i),o=t.slice(n,n+1),s=bf.test(r),a=bf.test(o),l=/\s|^$/.test(r),c=/\s|^$/.test(o),u=!c&&(!a||l||s),f=!l&&(!s||c||a),d=u&&(e==42||!f||s),O=f&&(e==42||!u||a);return t.append(new an(e==95?Y_:F_,i,n,(d?1:0)|(O?2:0)))},HardBreak(t,e,i){if(e==92&&t.char(i+1)==10)return t.append(et(ge.HardBreak,i,i+2));if(e==32){let n=i+1;for(;t.char(n)==32;)n++;if(t.char(n)==10&&n>=i+2)return t.append(et(ge.HardBreak,i,n+1))}return-1},Link(t,e,i){return e==91?t.append(new an(Of,i,i+1,1)):-1},Image(t,e,i){return e==33&&t.char(i+1)==91?t.append(new an(P_,i,i+2,1)):-1},LinkEnd(t,e,i){if(e!=93)return-1;for(let n=t.parts.length-1;n>=0;n--){let r=t.parts[n];if(r instanceof an&&(r.type==Of||r.type==P_)){if(!r.side||t.skipSpace(r.to)==i&&!/[(\[]/.test(t.slice(i+1,i+2)))return t.parts[n]=null,-1;let o=t.takeContent(n),s=t.parts[n]=VY(t,o,r.type==Of?ge.Link:ge.Image,r.from,i+1);if(r.type==Of)for(let a=0;a<n;a++){let l=t.parts[a];l instanceof an&&l.type==Of&&(l.side=0)}return s.to}}return-1}};function VY(t,e,i,n,r){let{text:o}=t,s=t.char(r),a=r;if(e.unshift(et(ge.LinkMark,n,n+(i==ge.Image?2:1))),e.push(et(ge.LinkMark,r-1,r)),s==40){let l=t.skipSpace(r+1),c=H_(o,l-t.offset,t.offset),u;c&&(l=t.skipSpace(c.to),l!=c.to&&(u=G_(o,l-t.offset,t.offset),u&&(l=t.skipSpace(u.to)))),t.char(l)==41&&(e.push(et(ge.LinkMark,r,r+1)),a=l+1,c&&e.push(c),u&&e.push(u),e.push(et(ge.LinkMark,l,a)))}else if(s==91){let l=K_(o,r-t.offset,t.offset,!1);l&&(e.push(l),a=l.to)}return et(i,n,a,e)}function H_(t,e,i){if(t.charCodeAt(e)==60){for(let r=e+1;r<t.length;r++){let o=t.charCodeAt(r);if(o==62)return et(ge.URL,e+i,r+1+i);if(o==60||o==10)return!1}return null}else{let r=0,o=e;for(let s=!1;o<t.length;o++){let a=t.charCodeAt(o);if(Qn(a))break;if(s)s=!1;else if(a==40)r++;else if(a==41){if(!r)break;r--}else a==92&&(s=!0)}return o>e?et(ge.URL,e+i,o+i):o==t.length?null:!1}}function G_(t,e,i){let n=t.charCodeAt(e);if(n!=39&&n!=34&&n!=40)return!1;let r=n==40?41:n;for(let o=e+1,s=!1;o<t.length;o++){let a=t.charCodeAt(o);if(s)s=!1;else{if(a==r)return et(ge.LinkTitle,e+i,o+1+i);a==92&&(s=!0)}}return null}function K_(t,e,i,n){for(let r=!1,o=e+1,s=Math.min(t.length,o+999);o<s;o++){let a=t.charCodeAt(o);if(r)r=!1;else{if(a==93)return n?!1:et(ge.LinkLabel,e+i,o+1+i);if(n&&!Qn(a)&&(n=!1),a==91)return!1;a==92&&(r=!0)}}return null}var fv=class{constructor(e,i,n){this.parser=e,this.text=i,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,i){return this.text.slice(e-this.offset,i-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,i,n,r,o){return this.append(new an(e,i,n,(r?1:0)|(o?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n<this.parts.length;n++){let r=this.parts[n];if(!(r instanceof an&&r.type.resolve&&r.side&2))continue;let o=r.type==Y_||r.type==F_,s=r.to-r.from,a,l=n-1;for(;l>=e;l--){let x=this.parts[l];if(x instanceof an&&x.side&1&&x.type==r.type&&!(o&&(r.side&1||x.side&2)&&(x.to-x.from+s)%3==0&&((x.to-x.from)%3||s%3))){a=x;break}}if(!a)continue;let c=r.type.resolve,u=[],f=a.from,d=r.to;if(o){let x=Math.min(2,a.to-a.from,s);f=a.to-x,d=r.from+x,c=x==1?"Emphasis":"StrongEmphasis"}a.type.mark&&u.push(this.elt(a.type.mark,f,a.to));for(let x=l+1;x<n;x++)this.parts[x]instanceof aa&&u.push(this.parts[x]),this.parts[x]=null;r.type.mark&&u.push(this.elt(r.type.mark,r.from,d));let O=this.elt(c,f,d,u);this.parts[l]=o&&a.from!=f?new an(a.type,a.from,f,a.side):null,(this.parts[n]=o&&r.to!=d?new an(r.type,d,r.to,r.side):null)?this.parts.splice(n,0,O):this.parts[n]=O}let i=[];for(let n=e;n<this.parts.length;n++){let r=this.parts[n];r instanceof aa&&i.push(r)}return i}findOpeningDelimiter(e){for(let i=this.parts.length-1;i>=0;i--){let n=this.parts[i];if(n instanceof an&&n.type==e)return i}return null}takeContent(e){let i=this.resolveMarkers(e);return this.parts.length=e,i}skipSpace(e){return pf(this.text,e-this.offset)+this.offset}elt(e,i,n,r){return typeof e=="string"?et(this.parser.getNodeType(e),i,n,r):new Xp(e,i)}};function hv(t,e){if(!e.length)return t;if(!t.length)return e;let i=t.slice(),n=0;for(let r of e){for(;n<i.length&&i[n].to<r.to;)n++;if(n<i.length&&i[n].from<r.from){let o=i[n];o instanceof aa&&(i[n]=new aa(o.type,o.from,o.to,hv(o.children,[r])))}else i.splice(n++,0,r)}return i}var ZY=[ge.CodeBlock,ge.ListItem,ge.OrderedList,ge.BulletList],dv=class{constructor(e,i){this.fragments=e,this.input=i,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,i){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let o=this.fragment.to;for(;o>0&&this.input.read(o-1,o)!=`
|
||
`;)o--;this.fragmentEnd=o?o-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=i;if(!n.childAfter(r))return!1}}matches(e){let i=this.cursor.tree;return i&&i.prop(_e.contextHash)==e}takeNodes(e){let i=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),o=e.absoluteLineStart,s=o,a=e.block.children.length,l=s,c=a;for(;;){if(i.to-n>r){if(i.type.isAnonymous&&i.firstChild())continue;break}let u=J_(i.from-n,e.ranges);if(i.to-n<=e.ranges[e.rangeI].to)e.addNode(i.tree,u);else{let f=new Ze(e.parser.nodeSet.types[ge.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,i.tree),e.addNode(f,u)}if(i.type.is("Block")&&(ZY.indexOf(i.type.id)<0?(s=i.to-n,a=e.block.children.length):(s=l,a=c,l=i.to-n,c=e.block.children.length)),!i.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return s-o}};function J_(t,e){let i=t;for(let n=1;n<e.length;n++){let r=e[n-1].to,o=e[n].from;r<t&&(i-=o-r)}return i}var BY=Et({"Blockquote/...":E.quote,HorizontalRule:E.contentSeparator,"ATXHeading1/... SetextHeading1/...":E.heading1,"ATXHeading2/... SetextHeading2/...":E.heading2,"ATXHeading3/...":E.heading3,"ATXHeading4/...":E.heading4,"ATXHeading5/...":E.heading5,"ATXHeading6/...":E.heading6,"Comment CommentBlock":E.comment,Escape:E.escape,Entity:E.character,"Emphasis/...":E.emphasis,"StrongEmphasis/...":E.strong,"Link/... Image/...":E.link,"OrderedList/... BulletList/...":E.list,"BlockQuote/...":E.quote,"InlineCode CodeText":E.monospace,"URL Autolink":E.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":E.processingInstruction,"CodeInfo LinkLabel":E.labelName,LinkTitle:E.string,Paragraph:E.content}),eA=new gf(new Zr(B_).extend(BY),Object.keys(Qp).map(t=>Qp[t]),Object.keys(Qp).map(t=>qY[t]),Object.keys(Qp),jY,D_,Object.keys(iv).map(t=>iv[t]),Object.keys(iv),[]);function YY(t,e,i){let n=[];for(let r=t.firstChild,o=e;;r=r.nextSibling){let s=r?r.from:i;if(s>o&&n.push({from:o,to:s}),!r)break;o=r.to}return n}function tA(t){let{codeParser:e,htmlParser:i}=t;return{wrap:Tu((r,o)=>{let s=r.type.id;if(e&&(s==ge.CodeBlock||s==ge.FencedCode)){let a="";if(s==ge.FencedCode){let c=r.node.getChild(ge.CodeInfo);c&&(a=o.read(c.from,c.to))}let l=e(a);if(l)return{parser:l,overlay:c=>c.type.id==ge.CodeText}}else if(i&&(s==ge.HTMLBlock||s==ge.HTMLTag))return{parser:i,overlay:YY(r.node,r.from,r.to)};return null})}}var FY={resolve:"Strikethrough",mark:"StrikethroughMark"},HY={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":E.strikethrough}},{name:"StrikethroughMark",style:E.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,i){if(e!=126||t.char(i+1)!=126||t.char(i+2)==126)return-1;let n=t.slice(i-1,i),r=t.slice(i+2,i+3),o=/\s|^$/.test(n),s=/\s|^$/.test(r),a=bf.test(n),l=bf.test(r);return t.addDelimiter(FY,i,i+2,!s&&(!l||o||a),!o&&(!a||s||l))},after:"Emphasis"}]};function mf(t,e,i=0,n,r=0){let o=0,s=!0,a=-1,l=-1,c=!1,u=()=>{n.push(t.elt("TableCell",r+a,r+l,t.parser.parseInline(e.slice(a,l),r+a)))};for(let f=i;f<e.length;f++){let d=e.charCodeAt(f);d==124&&!c?((!s||a>-1)&&o++,s=!1,n&&(a>-1&&u(),n.push(t.elt("TableDelimiter",f+r,f+r+1))),a=l=-1):(c||d!=32&&d!=9)&&(a<0&&(a=f),l=f+1),c=!c&&d==92}return a>-1&&(o++,n&&u()),o}function __(t,e){for(let i=e;i<t.length;i++){let n=t.charCodeAt(i);if(n==124)return!0;n==92&&i++}return!1}var iA=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,Rp=class{constructor(){this.rows=null}nextLine(e,i,n){if(this.rows==null){this.rows=!1;let r;if((i.next==45||i.next==58||i.next==124)&&iA.test(r=i.text.slice(i.pos))){let o=[];mf(e,n.content,0,o,n.start)==mf(e,r,i.pos)&&(this.rows=[e.elt("TableHeader",n.start,n.start+n.content.length,o),e.elt("TableDelimiter",e.lineStart+i.pos,e.lineStart+i.text.length)])}}else if(this.rows){let r=[];mf(e,i.text,i.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+i.pos,e.lineStart+i.text.length,r))}return!1}finish(e,i){return this.rows?(e.addLeafElement(i,e.elt("Table",i.start,i.start+i.content.length,this.rows)),!0):!1}},GY={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":E.heading}},"TableRow",{name:"TableCell",style:E.content},{name:"TableDelimiter",style:E.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return __(e.content,0)?new Rp:null},endLeaf(t,e,i){if(i.parsers.some(r=>r instanceof Rp)||!__(e.text,e.basePos))return!1;let n=t.scanLine(t.absoluteLineEnd+1).text;return iA.test(n)&&mf(t,e.text,e.basePos)==mf(t,n,e.basePos)},before:"SetextHeading"}]},Ov=class{nextLine(){return!1}finish(e,i){return e.addLeafElement(i,e.elt("Task",i.start,i.start+i.content.length,[e.elt("TaskMarker",i.start,i.start+3),...e.parser.parseInline(i.content.slice(3),i.start+3)])),!0}},KY={defineNodes:[{name:"Task",block:!0,style:E.list},{name:"TaskMarker",style:E.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new Ov:null},after:"SetextHeading"}]},A_=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,$_=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,JY=/[\w-]+\.[\w-]+($|\/)/,X_=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,R_=/\/[a-zA-Z\d@.]+/gy;function L_(t,e,i,n){let r=0;for(let o=e;o<i;o++)t[o]==n&&r++;return r}function eF(t,e){$_.lastIndex=e;let i=$_.exec(t);if(!i||JY.exec(i[0])[0].indexOf("_")>-1)return-1;let n=e+i[0].length;for(;;){let r=t[n-1],o;if(/[?!.,:*_~]/.test(r)||r==")"&&L_(t,e,n,")")>L_(t,e,n,"("))n--;else if(r==";"&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,n))))n=e+o.index;else break}return n}function I_(t,e){X_.lastIndex=e;let i=X_.exec(t);if(!i)return-1;let n=i[0][i[0].length-1];return n=="_"||n=="-"?-1:e+i[0].length-(n=="."?1:0)}var tF={parseInline:[{name:"Autolink",parse(t,e,i){let n=i-t.offset;A_.lastIndex=n;let r=A_.exec(t.text),o=-1;return!r||(r[1]||r[2]?o=eF(t.text,n+r[0].length):r[3]?o=I_(t.text,n):(o=I_(t.text,n+r[0].length),o>-1&&r[0]=="xmpp:"&&(R_.lastIndex=o,r=R_.exec(t.text),r&&(o=r.index+r[0].length))),o<0)?-1:(t.addElement(t.elt("URL",i,o+t.offset)),o+t.offset)}}]},nA=[GY,KY,HY,tF];function rA(t,e,i){return(n,r,o)=>{if(r!=t||n.char(o+1)==t)return-1;let s=[n.elt(i,o,o+1)];for(let a=o+1;a<n.end;a++){let l=n.char(a);if(l==t)return n.addElement(n.elt(e,o,a+1,s.concat(n.elt(i,a,a+1))));if(l==92&&s.push(n.elt("Escape",a,a+++2)),Qn(l))break}return-1}}var oA={defineNodes:[{name:"Superscript",style:E.special(E.content)},{name:"SuperscriptMark",style:E.processingInstruction}],parseInline:[{name:"Superscript",parse:rA(94,"Superscript","SuperscriptMark")}]},sA={defineNodes:[{name:"Subscript",style:E.special(E.content)},{name:"SubscriptMark",style:E.processingInstruction}],parseInline:[{name:"Subscript",parse:rA(126,"Subscript","SubscriptMark")}]},aA={defineNodes:[{name:"Emoji",style:E.character}],parseInline:[{name:"Emoji",parse(t,e,i){let n;return e!=58||!(n=/^[a-zA-Z_0-9]+:/.exec(t.slice(i+1,t.end)))?-1:t.addElement(t.elt("Emoji",i,i+1+n[0].length))}}]};var xv=class t{constructor(e,i,n,r,o,s,a,l,c,u=0,f){this.p=e,this.stack=i,this.state=n,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((e,i)=>i%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,i,n=0){let r=e.parser.context;return new t(e,[],i,n,n,0,[],0,r?new Lp(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,i){this.stack.push(this.state,i,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var i;let n=e>>19,r=e&65535,{parser:o}=this.p;this.reducePos<this.pos-25&&this.setLookAhead(this.pos);let s=o.dynamicPrecedence(r);if(s&&(this.score+=s),n==0){this.pushState(o.getGoto(this.state,r,!0),this.reducePos),r<o.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),this.reduceContext(r,this.reducePos);return}let a=this.stack.length-(n-1)*3-(e&262144?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from,c=this.reducePos-l;c>=2e3&&!(!((i=this.p.parser.nodeSet.types[r])===null||i===void 0)&&i.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let u=a?this.stack[a-1]:0,f=this.bufferBase+this.buffer.length-u;if(r<o.minRepeatTerm||e&131072){let d=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,d,f+4,!0)}if(e&262144)this.state=this.stack[a];else{let d=this.stack[a-3];this.state=o.getGoto(d,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,i,n,r=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,a=this.buffer.length;if(a==0&&s.parent&&(a=s.bufferBase-s.parent.bufferBase,s=s.parent),a>0&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(i==n)return;if(s.buffer[a-2]>=i){s.buffer[a-2]=n;return}}}if(!o||this.pos==n)this.buffer.push(e,i,n,r);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,r>4&&(r-=4);this.buffer[s]=e,this.buffer[s+1]=i,this.buffer[s+2]=n,this.buffer[s+3]=r}}shift(e,i,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(i,n),i<=this.p.parser.maxNode&&this.buffer.push(i,n,r,4);else{let o=e,{parser:s}=this.p;(r>this.pos||i<=s.maxNode)&&(this.pos=r,s.stateFlag(o,1)||(this.reducePos=r)),this.pushState(o,n),this.shiftContext(i,n),i<=s.maxNode&&this.buffer.push(i,n,r,4)}}apply(e,i,n,r){e&65536?this.reduce(e):this.shift(e,i,n,r)}useNode(e,i){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(i,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,i=e.buffer.length;for(;i>0&&e.buffer[i-2]>e.reducePos;)i-=4;let n=e.buffer.slice(i),r=e.bufferBase+i;for(;e&&r==e.bufferBase;)e=e.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,i){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,i,4),this.storeNode(0,this.pos,i,n?8:4),this.pos=this.reducePos=i,this.score-=190}canShift(e){for(let i=new vv(this);;){let n=this.p.parser.stateSlot(i.state,4)||this.p.parser.hasAction(i.state,e);if(n==0)return!1;if(!(n&65536))return!0;i.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let i=this.p.parser.nextStates(this.state);if(i.length>8||this.stack.length>=120){let r=[];for(let o=0,s;o<i.length;o+=2)(s=i[o+1])!=this.state&&this.p.parser.hasAction(s,e)&&r.push(i[o],s);if(this.stack.length<120)for(let o=0;r.length<8&&o<i.length;o+=2){let s=i[o+1];r.some((a,l)=>l&1&&a==s)||r.push(i[o],s)}i=r}let n=[];for(let r=0;r<i.length&&n.length<4;r+=2){let o=i[r+1];if(o==this.state)continue;let s=this.split();s.pushState(o,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(i[r],this.pos),s.reducePos=this.pos,s.score-=200,n.push(s)}return n}forceReduce(){let{parser:e}=this.p,i=e.stateSlot(this.state,5);if(!(i&65536))return!1;if(!e.validAction(this.state,i)){let n=i>>19,r=i&65535,o=this.stack.length-n*3;if(o<0||e.getGoto(this.stack[o],r,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;i=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(i),!0}findForcedReduction(){let{parser:e}=this.p,i=[],n=(r,o)=>{if(!i.includes(r))return i.push(r),e.allActions(r,s=>{if(!(s&393216))if(s&65536){let a=(s>>19)-o;if(a>1){let l=s&65535,c=this.stack.length-a*3;if(c>=0&&e.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(s,o+1);if(a!=null)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let i=0;i<this.stack.length;i+=3)if(this.stack[i]!=e.stack[i])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,i){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(i)))}reduceContext(e,i){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(i)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let i=new Lp(this.curContext.tracker,e);i.hash!=this.curContext.hash&&this.emitContext(),this.curContext=i}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},Lp=class{constructor(e,i){this.tracker=e,this.context=i,this.hash=e.strict?e.hash(i):0}},vv=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let i=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],i,!0);this.state=r}},wv=class t{constructor(e,i,n){this.stack=e,this.pos=i,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,i=e.bufferBase+e.buffer.length){return new t(e,i,i-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new t(this.stack,this.pos,this.index)}};function yf(t,e=Uint16Array){if(typeof t!="string")return t;let i=null;for(let n=0,r=0;n<t.length;){let o=0;for(;;){let s=t.charCodeAt(n++),a=!1;if(s==126){o=65535;break}s>=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}i?i[r++]=o:i=new e(o)}return i}var Ll=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},lA=new Ll,kv=class{constructor(e,i){this.input=e,this.ranges=i,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=lA,this.rangeIndex=0,this.pos=this.chunkPos=i[0].from,this.range=i[0],this.end=i[i.length-1].to,this.readNext()}resolveOffset(e,i){let n=this.range,r=this.rangeIndex,o=this.pos+e;for(;o<n.from;){if(!r)return null;let s=this.ranges[--r];o-=n.from-s.to,n=s}for(;i<0?o>n.to:o>=n.to;){if(r==this.ranges.length-1)return null;let s=this.ranges[++r];o+=s.from-n.to,n=s}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let i of this.ranges)if(i.to>e)return Math.max(e,i.from);return this.end}peek(e){let i=this.chunkOff+e,n,r;if(i>=0&&i<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(i);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(n=o,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let s=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,i=0){let n=i?this.resolveOffset(i,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,i){this.token.value=e,this.token.end=i}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:i}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=i,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),i=this.pos+e.length;this.chunk=i>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,i){if(i?(this.token=i,i.start=e,i.lookAhead=e+1,i.value=i.extended=-1):this.token=lA,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,i){if(e>=this.chunkPos&&i<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,i-this.chunkPos);if(e>=this.chunk2Pos&&i<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,i-this.chunk2Pos);if(e>=this.range.from&&i<=this.range.to)return this.input.read(e,i);let n="";for(let r of this.ranges){if(r.from>=i)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,i)))}return n}},rs=class{constructor(e,i){this.data=e,this.id=i}token(e,i){let{parser:n}=i.p;dA(this.data,e,i,this.id,n.data,n.tokenPrecTable)}};rs.prototype.contextual=rs.prototype.fallback=rs.prototype.extend=!1;var os=class{constructor(e,i,n){this.precTable=i,this.elseToken=n,this.data=typeof e=="string"?yf(e):e}token(e,i){let n=e.pos,r=0;for(;;){let o=e.next<0,s=e.resolveOffset(1,1);if(dA(this.data,e,i,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(o||r++,s==null)break;e.reset(s,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}};os.prototype.contextual=rs.prototype.fallback=rs.prototype.extend=!1;var ze=class{constructor(e,i={}){this.token=e,this.contextual=!!i.contextual,this.fallback=!!i.fallback,this.extend=!!i.extend}};function dA(t,e,i,n,r,o){let s=0,a=1<<n,{dialect:l}=i.p.parser;e:for(;a&t[s];){let c=t[s+1];for(let O=s+3;O<c;O+=2)if((t[O+1]&a)>0){let m=t[O];if(l.allows(m)&&(e.token.value==-1||e.token.value==m||nF(m,e.token.value,r,o))){e.acceptToken(m);break}}let u=e.next,f=0,d=t[s+2];if(e.next<0&&d>f&&t[c+d*3-3]==65535){s=t[c+d*3-1];continue e}for(;f<d;){let O=f+d>>1,m=c+O+(O<<1),x=t[m],v=t[m+1]||65536;if(u<x)d=O;else if(u>=v)f=O+1;else{s=t[m+2],e.advance();continue e}}break}}function cA(t,e,i){for(let n=e,r;(r=t[n])!=65535;n++)if(r==i)return n-e;return-1}function nF(t,e,i,n){let r=cA(i,n,e);return r<0||cA(i,n,t)<r}var ln=typeof process!="undefined"&&process.env&&/\bparse\b/.test(process.env.LOG),bv=null;function uA(t,e,i){let n=t.cursor(ot.IncludeAnonymous);for(n.moveTo(e);;)if(!(i<0?n.childBefore(e):n.childAfter(e)))for(;;){if((i<0?n.to<e:n.from>e)&&!n.type.isError)return i<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(i<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return i<0?0:t.length}}var Sv=class{constructor(e,i){this.fragments=e,this.nodeSet=i,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?uA(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?uA(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let i=this.trees.length-1;if(i<0)return this.nextFragment(),null;let n=this.trees[i],r=this.index[i];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=n.children[r],s=this.start[i]+n.positions[r];if(s>e)return this.nextStart=s,null;if(o instanceof Ze){if(s==e){if(s<this.safeFrom)return null;let a=s+o.length;if(a<=this.safeTo){let l=o.prop(_e.lookAhead);if(!l||a+l<this.fragment.to)return o}}this.index[i]++,s+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[i]++,this.nextStart=s+o.length}}},Tv=class{constructor(e,i){this.stream=i,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new Ll)}getActions(e){let i=0,n=null,{parser:r}=e.p,{tokenizers:o}=r,s=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let c=0;c<o.length;c++){if(!(1<<c&s))continue;let u=o[c],f=this.tokens[c];if(!(n&&!u.fallback)&&((u.contextual||f.start!=e.pos||f.mask!=s||f.context!=a)&&(this.updateCachedToken(f,u,e),f.mask=s,f.context=a),f.lookAhead>f.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let d=i;if(f.extended>-1&&(i=this.addActions(e,f.extended,f.end,i)),i=this.addActions(e,f.value,f.end,i),!u.extend&&(n=f,i>d))break}}for(;this.actions.length>i;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new Ll,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,i=this.addActions(e,n.value,n.end,i)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let i=new Ll,{pos:n,p:r}=e;return i.start=n,i.end=Math.min(n+1,r.stream.end),i.value=n==r.stream.end?r.parser.eofTerm:0,i}updateCachedToken(e,i,n){let r=this.stream.clipPos(n.pos);if(i.token(this.stream.reset(r,e),n),e.value>-1){let{parser:o}=n.p;for(let s=0;s<o.specialized.length;s++)if(o.specialized[s]==e.value){let a=o.specializers[s](this.stream.read(e.start,e.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){a&1?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,i,n,r){for(let o=0;o<r;o+=3)if(this.actions[o]==e)return r;return this.actions[r++]=e,this.actions[r++]=i,this.actions[r++]=n,r}addActions(e,i,n,r){let{state:o}=e,{parser:s}=e.p,{data:a}=s;for(let l=0;l<2;l++)for(let c=s.stateSlot(o,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=no(a,c+2);else{r==0&&a[c+1]==2&&(r=this.putAction(no(a,c+2),i,n,r));break}a[c]==i&&(r=this.putAction(no(a,c+1),i,n,r))}return r}},Ev=class{constructor(e,i,n,r){this.parser=e,this.input=i,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new kv(i,r),this.tokens=new Tv(e,this.stream),this.topTerm=e.top[1];let{from:o}=r[0];this.stacks=[xv.start(this,e.top[0],o)],this.fragments=n.length&&this.stream.end-o>e.bufferLength*4?new Sv(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,i=this.minStackPos,n=this.stacks=[],r,o;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<e.length;s++){let a=e[s];for(;;){if(this.tokens.mainToken=null,a.pos>i)n.push(a);else{if(this.advanceStack(a,n,e))continue;{r||(r=[],o=[]),r.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!n.length){let s=r&&rF(r);if(s)return ln&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw ln&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+i);this.recovering||(this.recovering=5)}if(this.recovering&&r){let s=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,o,n);if(s)return ln&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(n.length>s)for(n.sort((a,l)=>l.score-a.score);n.length>s;)n.pop();n.some(a=>a.reducePos>i)&&this.recovering--}else if(n.length>1){e:for(let s=0;s<n.length-1;s++){let a=n[s];for(let l=s+1;l<n.length;l++){let c=n[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)n.splice(l--,1);else{n.splice(s--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let s=1;s<n.length;s++)n[s].pos<this.minStackPos&&(this.minStackPos=n[s].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,i,n){let r=e.pos,{parser:o}=this,s=ln?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,u=c?e.curContext.hash:0;for(let f=this.fragments.nodeAt(r);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!c||(f.prop(_e.contextHash)||0)==u))return e.useNode(f,d),ln&&console.log(s+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof Ze)||f.children.length==0||f.positions[0]>0)break;let O=f.children[0];if(O instanceof Ze&&f.positions[0]==0)f=O;else break}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),ln&&console.log(s+this.stackID(e)+` (via always-reduce ${o.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let c=0;c<l.length;){let u=l[c++],f=l[c++],d=l[c++],O=c==l.length||!n,m=O?e:e.split(),x=this.tokens.mainToken;if(m.apply(u,f,x?x.start:m.pos,d),ln&&console.log(s+this.stackID(m)+` (via ${u&65536?`reduce of ${o.getName(u&65535)}`:"shift"} for ${o.getName(f)} @ ${r}${m==e?"":", split"})`),O)return!0;m.pos>r?i.push(m):n.push(m)}return!1}advanceFully(e,i){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return fA(e,i),!0}}runRecovery(e,i,n){let r=null,o=!1;for(let s=0;s<e.length;s++){let a=e[s],l=i[s<<1],c=i[(s<<1)+1],u=ln?this.stackID(a)+" -> ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),ln&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let f=a.split(),d=u;for(let O=0;f.forceReduce()&&O<10&&(ln&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,n));O++)ln&&(d=this.stackID(f)+" -> ");for(let O of a.recoverByInsert(l))ln&&console.log(u+this.stackID(O)+" (via recover-insert)"),this.advanceFully(O,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),ln&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),fA(a,n)):(!r||r.score<a.score)&&(r=a)}return r}stackToTree(e){return e.close(),Ze.build({buffer:wv.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let i=(bv||(bv=new WeakMap)).get(e);return i||bv.set(e,i=String.fromCodePoint(this.nextStackID++)),i+e}};function fA(t,e){for(let i=0;i<e.length;i++){let n=e[i];if(n.pos==t.pos&&n.sameState(t)){e[i].score<t.score&&(e[i]=t);return}}e.push(t)}var Cv=class{constructor(e,i,n){this.source=e,this.flags=i,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},yv=t=>t,_n=class{constructor(e){this.start=e.start,this.shift=e.shift||yv,this.reduce=e.reduce||yv,this.reuse=e.reuse||yv,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},jt=class t extends Yr{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let i=e.nodeNames.split(" ");this.minRepeatTerm=i.length;for(let a=0;a<e.repeatNodeCount;a++)i.push("");let n=Object.keys(e.topRules).map(a=>e.topRules[a][1]),r=[];for(let a=0;a<i.length;a++)r.push([]);function o(a,l,c){r[a].push([l,l.deserialize(String(c))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=_e[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)o(u,l,a[c++]);else{let f=a[c+-u];for(let d=-u;d>0;d--)o(a[c++],l,f);c++}}}this.nodeSet=new Zr(i.map((a,l)=>Xt.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:r[l],top:n.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let s=yf(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(hA),this.states=yf(e.states,Uint32Array),this.data=yf(e.stateData),this.goto=yf(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new rs(s,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,i,n){let r=new Ev(this,e,i,n);for(let o of this.wrappers)r=o(r,e,i,n);return r}getGoto(e,i,n=!1){let r=this.goto;if(i>=r[0])return-1;for(let o=r[i+1];;){let s=r[o++],a=s&1,l=r[o++];if(a&&n)return l;for(let c=o+(s>>1);o<c;o++)if(r[o]==e)return l;if(a)return-1}}hasAction(e,i){let n=this.data;for(let r=0;r<2;r++)for(let o=this.stateSlot(e,r?2:1),s;;o+=3){if((s=n[o])==65535)if(n[o+1]==1)s=n[o=no(n,o+2)];else{if(n[o+1]==2)return no(n,o+2);break}if(s==i||s==0)return no(n,o+1)}return 0}stateSlot(e,i){return this.states[e*6+i]}stateFlag(e,i){return(this.stateSlot(e,0)&i)>0}validAction(e,i){return!!this.allActions(e,n=>n==i?!0:null)}allActions(e,i){let n=this.stateSlot(e,4),r=n?i(n):void 0;for(let o=this.stateSlot(e,1);r==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=no(this.data,o+2);else break;r=i(no(this.data,o+1))}return r}nextStates(e){let i=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=no(this.data,n+2);else break;if(!(this.data[n+2]&1)){let r=this.data[n+1];i.some((o,s)=>s&1&&o==r)||i.push(this.data[n],r)}}return i}configure(e){let i=Object.assign(Object.create(t.prototype),this);if(e.props&&(i.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);i.top=n}return e.tokenizers&&(i.tokenizers=this.tokenizers.map(n=>{let r=e.tokenizers.find(o=>o.from==n);return r?r.to:n})),e.specializers&&(i.specializers=this.specializers.slice(),i.specializerSpecs=this.specializerSpecs.map((n,r)=>{let o=e.specializers.find(a=>a.from==n.external);if(!o)return n;let s=Object.assign(Object.assign({},n),{external:o.to});return i.specializers[r]=hA(s),s})),e.contextTracker&&(i.context=e.contextTracker),e.dialect&&(i.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(i.strict=e.strict),e.wrap&&(i.wrappers=i.wrappers.concat(e.wrap)),e.bufferLength!=null&&(i.bufferLength=e.bufferLength),i}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let i=this.dynamicPrecedences;return i==null?0:i[e]||0}parseDialect(e){let i=Object.keys(this.dialects),n=i.map(()=>!1);if(e)for(let o of e.split(" ")){let s=i.indexOf(o);s>=0&&(n[s]=!0)}let r=null;for(let o=0;o<i.length;o++)if(!n[o])for(let s=this.dialects[i[o]],a;(a=this.data[s++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[a]=1;return new Cv(e,n,r)}static deserialize(e){return new t(e)}};function no(t,e){return t[e]|t[e+1]<<16}function rF(t){let e=null;for(let i of t){let n=i.p.stoppedAt;(i.pos==i.p.stream.end||n!=null&&i.pos>n)&&i.p.parser.stateFlag(i.state,2)&&(!e||e.score<i.score)&&(e=i)}return e}function hA(t){if(t.external){let e=t.extend?1:0;return(i,n)=>t.external(i,n)<<1|e}return t.get}var oF=54,sF=1,aF=55,lF=2,cF=56,uF=3,OA=4,fF=5,Ip=6,wA=7,kA=8,SA=9,TA=10,hF=11,dF=12,OF=13,Pv=57,pF=14,pA=58,EA=20,mF=22,CA=23,gF=24,_v=26,PA=27,bF=28,yF=31,xF=34,vF=36,wF=37,kF=0,SF=1,TF={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},EF={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},mA={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function CF(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function QA(t){return t==9||t==10||t==13||t==32}var gA=null,bA=null,yA=0;function Av(t,e){let i=t.pos+e;if(yA==i&&bA==t)return gA;let n=t.peek(e);for(;QA(n);)n=t.peek(++e);let r="";for(;CF(n);)r+=String.fromCharCode(n),n=t.peek(++e);return bA=t,yA=i,gA=r?r.toLowerCase():n==PF||n==QF?void 0:null}var _A=60,Dp=62,$v=47,PF=63,QF=33,_F=45;function xA(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let i=0;i<t.length;i++)this.hash+=(this.hash<<4)+t.charCodeAt(i)+(t.charCodeAt(i)<<8)}var AF=[Ip,TA,wA,kA,SA],$F=new _n({start:null,shift(t,e,i,n){return AF.indexOf(e)>-1?new xA(Av(n,1)||"",t):t},reduce(t,e){return e==EA&&t?t.parent:t},reuse(t,e,i,n){let r=e.type.id;return r==Ip||r==vF?new xA(Av(n,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),XF=new ze((t,e)=>{if(t.next!=_A){t.next<0&&e.context&&t.acceptToken(Pv);return}t.advance();let i=t.next==$v;i&&t.advance();let n=Av(t,0);if(n===void 0)return;if(!n)return t.acceptToken(i?pF:Ip);let r=e.context?e.context.name:null;if(i){if(n==r)return t.acceptToken(hF);if(r&&EF[r])return t.acceptToken(Pv,-2);if(e.dialectEnabled(kF))return t.acceptToken(dF);for(let o=e.context;o;o=o.parent)if(o.name==n)return;t.acceptToken(OF)}else{if(n=="script")return t.acceptToken(wA);if(n=="style")return t.acceptToken(kA);if(n=="textarea")return t.acceptToken(SA);if(TF.hasOwnProperty(n))return t.acceptToken(TA);r&&mA[r]&&mA[r][n]?t.acceptToken(Pv,-1):t.acceptToken(Ip)}},{contextual:!0}),RF=new ze(t=>{for(let e=0,i=0;;i++){if(t.next<0){i&&t.acceptToken(pA);break}if(t.next==_F)e++;else if(t.next==Dp&&e>=2){i>=3&&t.acceptToken(pA,-2);break}else e=0;t.advance()}});function LF(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}var IF=new ze((t,e)=>{if(t.next==$v&&t.peek(1)==Dp){let i=e.dialectEnabled(SF)||LF(e.context);t.acceptToken(i?fF:OA,2)}else t.next==Dp&&t.acceptToken(OA,1)});function Xv(t,e,i){let n=2+t.length;return new ze(r=>{for(let o=0,s=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(e);break}if(o==0&&r.next==_A||o==1&&r.next==$v||o>=2&&o<n&&r.next==t.charCodeAt(o-2))o++,s++;else if((o==2||o==n)&&QA(r.next))s++;else if(o==n&&r.next==Dp){a>s?r.acceptToken(e,-s):r.acceptToken(i,-(s-2));break}else if((r.next==10||r.next==13)&&a){r.acceptToken(e,1);break}else o=s=0;r.advance()}})}var DF=Xv("script",oF,sF),zF=Xv("style",aF,lF),UF=Xv("textarea",cF,uF),MF=Et({"Text RawText":E.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":E.angleBracket,TagName:E.tagName,"MismatchedCloseTag/TagName":[E.tagName,E.invalid],AttributeName:E.attributeName,"AttributeValue UnquotedAttributeValue":E.attributeValue,Is:E.definitionOperator,"EntityReference CharacterReference":E.character,Comment:E.blockComment,ProcessingInst:E.processingInstruction,DoctypeDecl:E.documentMeta}),AA=jt.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G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PPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26A0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:$F,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[MF],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;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rs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[DF,zF,UF,IF,XF,RF,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function $A(t,e){let i=Object.create(null);for(let n of t.getChildren(CA)){let r=n.getChild(gF),o=n.getChild(_v)||n.getChild(PA);r&&(i[e.read(r.from,r.to)]=o?o.type.id==_v?e.read(o.from+1,o.to-1):e.read(o.from,o.to):"")}return i}function vA(t,e){let i=t.getChild(mF);return i?e.read(i.from,i.to):" "}function Qv(t,e,i){let n;for(let r of i)if(!r.attrs||r.attrs(n||(n=$A(t.node.parent.firstChild,e))))return{parser:r.parser};return null}function Rv(t=[],e=[]){let i=[],n=[],r=[],o=[];for(let a of t)(a.tag=="script"?i:a.tag=="style"?n:a.tag=="textarea"?r:o).push(a);let s=e.length?Object.create(null):null;for(let a of e)(s[a.name]||(s[a.name]=[])).push(a);return Tu((a,l)=>{let c=a.type.id;if(c==bF)return Qv(a,l,i);if(c==yF)return Qv(a,l,n);if(c==xF)return Qv(a,l,r);if(c==EA&&o.length){let u=a.node,f=u.firstChild,d=f&&vA(f,l),O;if(d){for(let m of o)if(m.tag==d&&(!m.attrs||m.attrs(O||(O=$A(u,l))))){let x=u.lastChild,v=x.type.id==wF?x.from:u.to;if(v>f.to)return{parser:m.parser,overlay:[{from:f.to,to:v}]}}}}if(s&&c==CA){let u=a.node,f;if(f=u.firstChild){let d=s[l.read(f.from,f.to)];if(d)for(let O of d){if(O.tagName&&O.tagName!=vA(u.parent,l))continue;let m=u.lastChild;if(m.type.id==_v){let x=m.from+1,v=m.lastChild,w=m.to-(v&&v.isError?0:1);if(w>x)return{parser:O.parser,overlay:[{from:x,to:w}]}}else if(m.type.id==PA)return{parser:O.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}var NF=99,XA=1,qF=100,jF=101,RA=2,LA=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],WF=58,VF=40,IA=95,ZF=91,zp=45,BF=46,YF=35,FF=37,HF=38,GF=92,KF=10;function xf(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function JF(t){return t>=48&&t<=57}var eH=new ze((t,e)=>{for(let i=!1,n=0,r=0;;r++){let{next:o}=t;if(xf(o)||o==zp||o==IA||i&&JF(o))!i&&(o!=zp||r>0)&&(i=!0),n===r&&o==zp&&n++,t.advance();else if(o==GF&&t.peek(1)!=KF)t.advance(),t.next>-1&&t.advance(),i=!0;else{i&&t.acceptToken(o==VF?qF:n==2&&e.canShift(RA)?RA:jF);break}}}),tH=new ze(t=>{if(LA.includes(t.peek(-1))){let{next:e}=t;(xf(e)||e==IA||e==YF||e==BF||e==ZF||e==WF&&xf(t.peek(1))||e==zp||e==HF)&&t.acceptToken(NF)}}),iH=new ze(t=>{if(!LA.includes(t.peek(-1))){let{next:e}=t;if(e==FF&&(t.advance(),t.acceptToken(XA)),xf(e)){do t.advance();while(xf(t.next));t.acceptToken(XA)}}}),nH=Et({"AtKeyword import charset namespace keyframes media supports":E.definitionKeyword,"from to selector":E.keyword,NamespaceName:E.namespace,KeyframeName:E.labelName,KeyframeRangeName:E.operatorKeyword,TagName:E.tagName,ClassName:E.className,PseudoClassName:E.constant(E.className),IdName:E.labelName,"FeatureName PropertyName":E.propertyName,AttributeName:E.attributeName,NumberLiteral:E.number,KeywordQuery:E.keyword,UnaryQueryOp:E.operatorKeyword,"CallTag ValueName":E.atom,VariableName:E.variableName,Callee:E.operatorKeyword,Unit:E.unit,"UniversalSelector NestingSelector":E.definitionOperator,MatchOp:E.compareOperator,"ChildOp SiblingOp, LogicOp":E.logicOperator,BinOp:E.arithmeticOperator,Important:E.modifier,Comment:E.blockComment,ColorLiteral:E.color,"ParenthesizedContent StringLiteral":E.string,":":E.punctuation,"PseudoOp #":E.derefOperator,"; ,":E.separator,"( )":E.paren,"[ ]":E.squareBracket,"{ }":E.brace}),rH={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},oH={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},sH={__proto__:null,not:132,only:132},DA=jt.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV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P'd'y(WPP#nPP(_(_(i(_P(_P(_(_P#nP#nP#nP(l#nP(o(r(u(|#nP#nP)R)X)h)v)|*S*^*d*n*t*zPPPPPPPPPP+Q+ZP+v+yP,o,r,x-RRkQ_bOPdhw!n#skYOPdhotuvw!n#R#h#skSOPdhotuvw!n#R#h#sQmTR!tnQ{VR!xqQ!x}Q#Z!XR#x!zq![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SU$d#m$f$yR$x$cq!XZ]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SQ!f^R#l!gT#^!Z#_Q|VR!yqQ!x|R#x!yQ!PWR!{rQ!RXR!|sQxUQ!wpQ#i!cQ#o!jQ#p!kQ${$eR%X$zSgPwQ!phQ#r!nR$l#sZfPhw!n#sa!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"\u26A0 Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources:[nH],skippedNodes:[0,3,87],repeatNodeCount:11,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSo`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#Z~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#Z~o`OX%^X^'f^p%^pq'fqy%^z#y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:[0,4],Styles:[1,86]},specialized:[{term:100,get:t=>rH[t]||-1},{term:58,get:t=>oH[t]||-1},{term:101,get:t=>sH[t]||-1}],tokenPrec:1200});var Lv=null;function Iv(){if(!Lv&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],i=new Set;for(let n in t)n!="cssText"&&n!="cssFloat"&&typeof t[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),i.has(n)||(e.push(n),i.add(n)));Lv=e.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return Lv||[]}var zA=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),UA=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),aH=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),lH=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),ro=/^(\w[\w-]*|-\w[\w-]*|)$/,cH=/^-(-[\w-]*)?$/;function uH(t,e){var i;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let n=(i=t.parent)===null||i===void 0?void 0:i.firstChild;return(n==null?void 0:n.name)!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}var MA=new Bo,fH=["Declaration"];function hH(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function NA(t,e,i){if(e.to-e.from>4096){let n=MA.get(e);if(n)return n;let r=[],o=new Set,s=e.cursor(ot.IncludeAnonymous);if(s.firstChild())do for(let a of NA(t,s.node,i))o.has(a.label)||(o.add(a.label),r.push(a));while(s.nextSibling());return MA.set(e,r),r}else{let n=[],r=new Set;return e.cursor().iterate(o=>{var s;if(i(o)&&o.matchContext(fH)&&((s=o.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let a=t.sliceString(o.from,o.to);r.has(a)||(r.add(a),n.push({label:a,type:"variable"}))}}),n}}var dH=t=>e=>{let{state:i,pos:n}=e,r=qe(i).resolveInner(n,-1),o=r.type.isError&&r.from==r.to-1&&i.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(o||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:Iv(),validFor:ro};if(r.name=="ValueName")return{from:r.from,options:UA,validFor:ro};if(r.name=="PseudoClassName")return{from:r.from,options:zA,validFor:ro};if(t(r)||(e.explicit||o)&&uH(r,i.doc))return{from:t(r)||o?r.from:n,options:NA(i.doc,hH(r),t),validFor:cH};if(r.name=="TagName"){for(let{parent:l}=r;l;l=l.parent)if(l.name=="Block")return{from:r.from,options:Iv(),validFor:ro};return{from:r.from,options:aH,validFor:ro}}if(r.name=="AtKeyword")return{from:r.from,options:lH,validFor:ro};if(!e.explicit)return null;let s=r.resolve(n),a=s.childBefore(n);return a&&a.name==":"&&s.name=="PseudoClassSelector"?{from:n,options:zA,validFor:ro}:a&&a.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:n,options:UA,validFor:ro}:s.name=="Block"||s.name=="Styles"?{from:n,options:Iv(),validFor:ro}:null},OH=dH(t=>t.name=="VariableName"),vf=Bt.define({name:"css",parser:DA.configure({props:[Nt.add({Declaration:Ti()}),qt.add({"Block KeyframeList":Pn})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Up(){return new gt(vf,vf.data.of({autocomplete:OH}))}var pH=309,qA=1,mH=2,gH=3,bH=310,yH=312,xH=313,vH=4,wH=5,kH=0,zv=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],jA=125,SH=59,Uv=47,TH=42,EH=43,CH=45,PH=60,QH=44,_H=new _n({start:!1,shift(t,e){return e==vH||e==wH||e==yH?t:e==xH},strict:!1}),AH=new ze((t,e)=>{let{next:i}=t;(i==jA||i==-1||e.context)&&t.acceptToken(bH)},{contextual:!0,fallback:!0}),$H=new ze((t,e)=>{let{next:i}=t,n;zv.indexOf(i)>-1||i==Uv&&((n=t.peek(1))==Uv||n==TH)||i!=jA&&i!=SH&&i!=-1&&!e.context&&t.acceptToken(pH)},{contextual:!0}),XH=new ze((t,e)=>{let{next:i}=t;if((i==EH||i==CH)&&(t.advance(),i==t.next)){t.advance();let n=!e.context&&e.canShift(qA);t.acceptToken(n?qA:mH)}},{contextual:!0});function Dv(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}var RH=new ze((t,e)=>{if(t.next!=PH||!e.dialectEnabled(kH)||(t.advance(),t.next==Uv))return;let i=0;for(;zv.indexOf(t.next)>-1;)t.advance(),i++;if(Dv(t.next,!0)){for(t.advance(),i++;Dv(t.next,!1);)t.advance(),i++;for(;zv.indexOf(t.next)>-1;)t.advance(),i++;if(t.next==QH)return;for(let n=0;;n++){if(n==7){if(!Dv(t.next,!0))return;break}if(t.next!="extends".charCodeAt(n))break;t.advance(),i++}}t.acceptToken(gH,-i)}),LH=Et({"get set async static":E.modifier,"for while do if else switch try catch finally return throw break continue default case":E.controlKeyword,"in of await yield void typeof delete instanceof":E.operatorKeyword,"let var const using function class extends":E.definitionKeyword,"import export from":E.moduleKeyword,"with debugger as new":E.keyword,TemplateString:E.special(E.string),super:E.atom,BooleanLiteral:E.bool,this:E.self,null:E.null,Star:E.modifier,VariableName:E.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":E.function(E.variableName),VariableDefinition:E.definition(E.variableName),Label:E.labelName,PropertyName:E.propertyName,PrivatePropertyName:E.special(E.propertyName),"CallExpression/MemberExpression/PropertyName":E.function(E.propertyName),"FunctionDeclaration/VariableDefinition":E.function(E.definition(E.variableName)),"ClassDeclaration/VariableDefinition":E.definition(E.className),PropertyDefinition:E.definition(E.propertyName),PrivatePropertyDefinition:E.definition(E.special(E.propertyName)),UpdateOp:E.updateOperator,"LineComment Hashbang":E.lineComment,BlockComment:E.blockComment,Number:E.number,String:E.string,Escape:E.escape,ArithOp:E.arithmeticOperator,LogicOp:E.logicOperator,BitOp:E.bitwiseOperator,CompareOp:E.compareOperator,RegExp:E.regexp,Equals:E.definitionOperator,Arrow:E.function(E.punctuation),": Spread":E.punctuation,"( )":E.paren,"[ ]":E.squareBracket,"{ }":E.brace,"InterpolationStart InterpolationEnd":E.special(E.brace),".":E.derefOperator,", ;":E.separator,"@":E.meta,TypeName:E.typeName,TypeDefinition:E.definition(E.typeName),"type enum interface implements namespace module declare":E.definitionKeyword,"abstract global Privacy readonly override":E.modifier,"is keyof unique infer":E.operatorKeyword,JSXAttributeValue:E.attributeValue,JSXText:E.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":E.angleBracket,"JSXIdentifier JSXNameSpacedName":E.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":E.attributeName,"JSXBuiltin/JSXIdentifier":E.standard(E.tagName)}),IH={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},DH={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},zH={__proto__:null,"<":143},WA=jt.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O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w'S+RT#`W%eS#_W%eS(O#V(WS(T#Y+QS-P'S+RT-s'}-xT'X!e%fQ$kfR)s$pT)h$k)iR3r.zT*X$x*ZR*a${Q0g+]Q2z.ZQ5`1^Q6h3OQ7z5cQ8k6gQ9Y7yQ9l8jQ9}9[Q:V9nQ:[:OR:_:WnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&g!VR,]&dtmOXst!U!V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",nodeNames:"\u26A0 ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:_H,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[LH],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!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#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(CS$Duk$f&j(Op(R!b'u(;d$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[$H,XH,RH,2,3,4,5,6,7,8,9,10,11,12,13,AH,new os("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~",141,332),new os("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14602},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:t=>IH[t]||-1},{term:334,get:t=>DH[t]||-1},{term:70,get:t=>zH[t]||-1}],tokenPrec:14626});var YA=[xt("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),xt("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),xt("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),xt("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),xt("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),xt(`try {
|
||
\${}
|
||
} catch (\${error}) {
|
||
\${}
|
||
}`,{label:"try",detail:"/ catch block",type:"keyword"}),xt("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),xt(`if (\${}) {
|
||
\${}
|
||
} else {
|
||
\${}
|
||
}`,{label:"if",detail:"/ else block",type:"keyword"}),xt(`class \${name} {
|
||
constructor(\${params}) {
|
||
\${}
|
||
}
|
||
}`,{label:"class",detail:"definition",type:"keyword"}),xt('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),xt('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],UH=YA.concat([xt("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),xt("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),xt("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),VA=new Bo,FA=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function wf(t){return(e,i)=>{let n=e.node.getChild("VariableDefinition");return n&&i(n,t),!0}}var MH=["FunctionDeclaration"],NH={FunctionDeclaration:wf("function"),ClassDeclaration:wf("class"),ClassExpression:()=>!0,EnumDeclaration:wf("constant"),TypeAliasDeclaration:wf("type"),NamespaceDeclaration:wf("namespace"),VariableDefinition(t,e){t.matchContext(MH)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function HA(t,e){let i=VA.get(e);if(i)return i;let n=[],r=!0;function o(s,a){let l=t.sliceString(s.from,s.to);n.push({label:l,type:a})}return e.cursor(ot.IncludeAnonymous).iterate(s=>{if(r)r=!1;else if(s.name){let a=NH[s.name];if(a&&a(s,o)||FA.has(s.name))return!1}else if(s.to-s.from>8192){for(let a of HA(t,s.node))n.push(a);return!1}}),VA.set(e,n),n}var ZA=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,GA=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function qH(t){let e=qe(t.state).resolveInner(t.pos,-1);if(GA.indexOf(e.name)>-1)return null;let i=e.name=="VariableName"||e.to-e.from<20&&ZA.test(t.state.sliceDoc(e.from,e.to));if(!i&&!t.explicit)return null;let n=[];for(let r=e;r;r=r.parent)FA.has(r.name)&&(n=n.concat(HA(t.state.doc,r)));return{options:n,from:i?e.from:t.pos,validFor:ZA}}var Yn=Bt.define({name:"javascript",parser:WA.configure({props:[Nt.add({IfStatement:Ti({except:/^\s*({|else\b)/}),TryStatement:Ti({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:xp,SwitchBody:t=>{let e=t.textAfter,i=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(i?0:n?1:2)*t.unit},Block:mi({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":Ti({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),qt.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Pn,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),KA={test:t=>/^JSX/.test(t.name),facet:Pl({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Mv=Yn.configure({dialect:"ts"},"typescript"),Nv=Yn.configure({dialect:"jsx",props:[yp.add(t=>t.isTop?[KA]:void 0)]}),qv=Yn.configure({dialect:"jsx ts",props:[yp.add(t=>t.isTop?[KA]:void 0)]},"typescript"),JA=t=>({label:t,type:"keyword"}),e$="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(JA),jH=e$.concat(["declare","implements","private","protected","public"].map(JA));function Mp(t={}){let e=t.jsx?t.typescript?qv:Nv:t.typescript?Mv:Yn,i=t.typescript?UH.concat(jH):YA.concat(e$);return new gt(e,[Yn.data.of({autocomplete:Xl(GA,oa(i))}),Yn.data.of({autocomplete:qH}),t.jsx?ZH:[]])}function WH(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function BA(t,e,i=t.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return t.sliceString(n.from,Math.min(n.to,i));return""}var VH=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),ZH=fe.inputHandler.of((t,e,i,n,r)=>{if((VH?t.composing:t.compositionStarted)||t.state.readOnly||e!=i||n!=">"&&n!="/"||!Yn.isActiveAt(t.state,e,-1))return!1;let o=r(),{state:s}=o,a=s.changeByRange(l=>{var c;let{head:u}=l,f=qe(s).resolveInner(u-1,-1),d;if(f.name=="JSXStartTag"&&(f=f.parent),!(s.doc.sliceString(u-1,u)!=n||f.name=="JSXAttributeValue"&&f.to>u)){if(n==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:u,insert:"</>"}};if(n=="/"&&f.name=="JSXStartCloseTag"){let O=f.parent,m=O.parent;if(m&&O.from==u-2&&((d=BA(s.doc,m.firstChild,u))||((c=m.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let x=`${d}>`;return{range:J.cursor(u+x.length,-1),changes:{from:u,insert:x}}}}else if(n==">"){let O=WH(f);if(O&&O.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(s.doc.sliceString(u,u+2))&&(d=BA(s.doc,O,u)))return{range:l,changes:{from:u,insert:`</${d}>`}}}}return{range:l}});return a.changes.empty?!1:(t.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var kf=["_blank","_self","_top","_parent"],jv=["ascii","utf-8","utf-16","latin1","latin1"],Wv=["get","post","put","delete"],Vv=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],cn=["true","false"],Pe={},BH={a:{attrs:{href:null,ping:null,type:null,media:null,target:kf,hreflang:null}},abbr:Pe,address:Pe,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Pe,aside:Pe,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Pe,base:{attrs:{href:null,target:kf}},bdi:Pe,bdo:Pe,blockquote:{attrs:{cite:null}},body:Pe,br:Pe,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Vv,formmethod:Wv,formnovalidate:["novalidate"],formtarget:kf,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Pe,center:Pe,cite:Pe,code:Pe,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Pe,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Pe,div:Pe,dl:Pe,dt:Pe,em:Pe,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Pe,figure:Pe,footer:Pe,form:{attrs:{action:null,name:null,"accept-charset":jv,autocomplete:["on","off"],enctype:Vv,method:Wv,novalidate:["novalidate"],target:kf}},h1:Pe,h2:Pe,h3:Pe,h4:Pe,h5:Pe,h6:Pe,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Pe,hgroup:Pe,hr:Pe,html:{attrs:{manifest:null}},i:Pe,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Vv,formmethod:Wv,formnovalidate:["novalidate"],formtarget:kf,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Pe,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Pe,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Pe,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:jv,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Pe,noscript:Pe,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Pe,param:{attrs:{name:null,value:null}},pre:Pe,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Pe,rt:Pe,ruby:Pe,samp:Pe,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:jv}},section:Pe,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Pe,source:{attrs:{src:null,type:null,media:null}},span:Pe,strong:Pe,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Pe,summary:Pe,sup:Pe,table:Pe,tbody:Pe,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Pe,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Pe,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Pe,time:{attrs:{datetime:null}},title:Pe,tr:Pe,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Pe,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Pe},r$={accesskey:null,class:null,contenteditable:cn,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:cn,autocorrect:cn,autocapitalize:cn,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":cn,"aria-autocomplete":["inline","list","both","none"],"aria-busy":cn,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":cn,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":cn,"aria-hidden":cn,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":cn,"aria-multiselectable":cn,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":cn,"aria-relevant":null,"aria-required":cn,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},o$="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of o$)r$[t]=null;var la=class{constructor(e,i){this.tags=Object.assign(Object.assign({},BH),e),this.globalAttrs=Object.assign(Object.assign({},r$),i),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};la.default=new la;function Il(t,e,i=t.length){if(!e)return"";let n=e.firstChild,r=n&&n.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,i)):""}function Dl(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function s$(t,e,i){let n=i.tags[Il(t,Dl(e))];return(n==null?void 0:n.children)||i.allTags}function Zv(t,e){let i=[];for(let n=Dl(e);n&&!n.type.isTop;n=Dl(n.parent)){let r=Il(t,n);if(r&&n.lastChild.name=="CloseTag")break;r&&i.indexOf(r)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&i.push(r)}return i}var a$=/^[:\-\.\w\u00b7-\uffff]*$/;function t$(t,e,i,n,r){let o=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",s=Dl(i,!0);return{from:n,to:r,options:s$(t.doc,s,e).map(a=>({label:a,type:"type"})).concat(Zv(t.doc,i).map((a,l)=>({label:"/"+a,apply:"/"+a+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function i$(t,e,i,n){let r=/\s*>/.test(t.sliceDoc(n,n+5))?"":">";return{from:i,to:n,options:Zv(t.doc,e).map((o,s)=>({label:o,apply:o+r,type:"type",boost:99-s})),validFor:a$}}function YH(t,e,i,n){let r=[],o=0;for(let s of s$(t.doc,i,e))r.push({label:"<"+s,type:"type"});for(let s of Zv(t.doc,i))r.push({label:"</"+s+">",type:"type",boost:99-o++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function FH(t,e,i,n,r){let o=Dl(i),s=o?e.tags[Il(t.doc,o)]:null,a=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?a:a.length?a.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:r,options:l.map(c=>({label:c,type:"property"})),validFor:a$}}function HH(t,e,i,n,r){var o;let s=(o=i.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),a=[],l;if(s){let c=t.sliceDoc(s.from,s.to),u=e.globalAttrs[c];if(!u){let f=Dl(i),d=f?e.tags[Il(t.doc,f)]:null;u=(d==null?void 0:d.attrs)&&d.attrs[c]}if(u){let f=t.sliceDoc(n,r).toLowerCase(),d='"',O='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,d="",O=t.sliceDoc(r,r+1)==f[0]?"":f[0],f=f.slice(1),n++):l=/^[^\s<>='"]*$/;for(let m of u)a.push({label:m,apply:d+m+O,type:"constant"})}}return{from:n,to:r,options:a,validFor:l}}function l$(t,e){let{state:i,pos:n}=e,r=qe(i).resolveInner(n,-1),o=r.resolve(n);for(let s=n,a;o==r&&(a=r.childBefore(s));){let l=a.lastChild;if(!l||!l.type.isError||l.from<l.to)break;o=r=a,s=l.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?i$(i,r,r.from,n):t$(i,t,r,r.from,n):r.name=="StartTag"?t$(i,t,r,n,n):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?i$(i,r,n,n):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?FH(i,t,r,r.name=="AttributeName"?r.from:n,n):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?HH(i,t,r,r.name=="Is"?n:r.from,n):e.explicit&&(o.name=="Element"||o.name=="Text"||o.name=="Document")?YH(i,t,r,n):null}function c$(t){return l$(la.default,t)}function GH(t){let{extraTags:e,extraGlobalAttributes:i}=t,n=i||e?new la(e,i):la.default;return r=>l$(n,r)}var KH=Yn.parser.configure({top:"SingleExpression"}),u$=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:Mv.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:Nv.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:qv.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:KH},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Yn.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:vf.parser}],f$=[{name:"style",parser:vf.parser.configure({top:"Styles"})}].concat(o$.map(t=>({name:t,parser:Yn.parser}))),h$=Bt.define({name:"html",parser:AA.configure({props:[Nt.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,i;for(let n=t.node;;){let r=n.lastChild;if(!r||r.name!="Element"||r.to!=n.to)break;e=n=r}return e&&!((i=e.lastChild)&&(i.name=="CloseTag"||i.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),qt.add({Element(t){let e=t.firstChild,i=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:i.name=="CloseTag"?i.from:t.to}}}),af.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Np=h$.configure({wrap:Rv(u$,f$)});function qp(t={}){let e="",i;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(i=Rv((t.nestedLanguages||[]).concat(u$),(t.nestedAttributes||[]).concat(f$)));let n=i?h$.configure({wrap:i,dialect:e}):e?Np.configure({dialect:e}):Np;return new gt(n,[Np.data.of({autocomplete:GH(t)}),t.autoCloseTags!==!1?JH:[],Mp().support,Up().support])}var n$=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),JH=fe.inputHandler.of((t,e,i,n,r)=>{if(t.composing||t.state.readOnly||e!=i||n!=">"&&n!="/"||!Np.isActiveAt(t.state,e,-1))return!1;let o=r(),{state:s}=o,a=s.changeByRange(l=>{var c,u,f;let d=s.doc.sliceString(l.from-1,l.to)==n,{head:O}=l,m=qe(s).resolveInner(O,-1),x;if(d&&n==">"&&m.name=="EndTag"){let v=m.parent;if(((u=(c=v.parent)===null||c===void 0?void 0:c.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(x=Il(s.doc,v.parent,O))&&!n$.has(x)){let w=O+(s.doc.sliceString(O,O+1)===">"?1:0),T=`</${x}>`;return{range:l,changes:{from:O,to:w,insert:T}}}}else if(d&&n=="/"&&m.name=="IncompleteCloseTag"){let v=m.parent;if(m.from==O-2&&((f=v.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(x=Il(s.doc,v,O))&&!n$.has(x)){let w=O+(s.doc.sliceString(O,O+1)===">"?1:0),T=`${x}>`;return{range:J.cursor(O+T.length,-1),changes:{from:O,to:w,insert:T}}}}return{range:l}});return a.changes.empty?!1:(t.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var p$=Pl({commentTokens:{block:{open:"<!--",close:"-->"}}}),m$=new _e,g$=eA.configure({props:[qt.add(t=>!t.is("Block")||t.is("Document")||Fv(t)!=null||eG(t)?void 0:(e,i)=>({from:i.doc.lineAt(e.from).to,to:e.to})),m$.add(Fv),Nt.add({Document:()=>null}),Jr.add({Document:p$})]});function Fv(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function eG(t){return t.name=="OrderedList"||t.name=="BulletList"}function tG(t,e){let i=t;for(;;){let n=i.nextSibling,r;if(!n||(r=Fv(n.type))!=null&&r<=e)break;i=n}return i.to}var iG=Xx.of((t,e,i)=>{for(let n=qe(t).resolveInner(i,-1);n&&!(n.from<e);n=n.parent){let r=n.type.prop(m$);if(r==null)continue;let o=tG(n,r);if(o>i)return{from:i,to:o}}return null});function Hv(t){return new pi(p$,t,[iG],"markdown")}var nG=Hv(g$),rG=g$.configure([nA,sA,oA,aA,{props:[qt.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),jp=Hv(rG);function oG(t,e){return i=>{if(i&&t){let n=null;if(i=/\S*/.exec(i)[0],typeof t=="function"?n=t(i):n=At.matchLanguageName(t,i,!0),n instanceof At)return n.support?n.support.language.parser:Js.getSkippingParser(n.load());if(n)return n.parser}return e?e.parser:null}}var Sf=class{constructor(e,i,n,r,o,s,a){this.node=e,this.from=i,this.to=n,this.spaceBefore=r,this.spaceAfter=o,this.type=s,this.item=a}blank(e,i=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;n.length<e;)n+=" ";return n}else{for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(i?this.spaceAfter:"")}}marker(e,i){let n=this.node.name=="OrderedList"?String(+y$(this.item,e)[2]+i):"";return this.spaceBefore+n+this.type+this.spaceAfter}};function b$(t,e){let i=[],n=[];for(let r=t;r;r=r.parent){if(r.name=="FencedCode")return n;(r.name=="ListItem"||r.name=="Blockquote")&&i.push(r)}for(let r=i.length-1;r>=0;r--){let o=i[r],s,a=e.lineAt(o.from),l=o.from-a.from;if(o.name=="Blockquote"&&(s=/^ *>( ?)/.exec(a.text.slice(l))))n.push(new Sf(o,l,l+s[0].length,"",s[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(a.text.slice(l)))){let c=s[3],u=s[0].length;c.length>=4&&(c=c.slice(0,c.length-4),u-=4),n.push(new Sf(o.parent,l,l+u,s[1],c,s[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))){let c=s[4],u=s[0].length;c.length>4&&(c=c.slice(0,c.length-4),u-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),n.push(new Sf(o.parent,l,l+u,s[1],c,f,o))}}return n}function y$(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function Bv(t,e,i,n=0){for(let r=-1,o=t;;){if(o.name=="ListItem"){let a=y$(o,e),l=+a[2];if(r>=0){if(l!=r+1)return;i.push({from:o.from+a[1].length,to:o.from+a[0].length,insert:String(r+2+n)})}r=l}let s=o.nextSibling;if(!s)break;o=s}}function Gv(t,e){let i=/^[ \t]*/.exec(t)[0].length;if(!i||e.facet(Bn)!=" ")return t;let n=Ri(t,4,i),r="";for(let o=n;o>0;)o>=4?(r+=" ",o-=4):(r+=" ",o--);return r+t.slice(i)}var sG=({state:t,dispatch:e})=>{let i=qe(t),{doc:n}=t,r=null,o=t.changeByRange(s=>{if(!s.empty||!jp.isActiveAt(t,s.from,0))return r={range:s};let a=s.from,l=n.lineAt(a),c=b$(i.resolveInner(a,-1),n);for(;c.length&&c[c.length-1].from>a-l.from;)c.pop();if(!c.length)return r={range:s};let u=c[c.length-1];if(u.to-u.spaceAfter.length>a-l.from)return r={range:s};let f=a>=u.to-u.spaceAfter.length&&!/\S/.test(l.text.slice(u.to));if(u.item&&f){let v=u.node.firstChild,w=u.node.getChild("ListItem","ListItem");if(v.to>=a||w&&w.to<a||l.from>0&&!/[^\s>]/.test(n.lineAt(l.from-1).text)){let T=c.length>1?c[c.length-2]:null,Q,I="";T&&T.item?(Q=l.from+T.from,I=T.marker(n,1)):Q=l.from+(T?T.to:0);let z=[{from:Q,to:a,insert:I}];return u.node.name=="OrderedList"&&Bv(u.item,n,z,-2),T&&T.node.name=="OrderedList"&&Bv(T.item,n,z),{range:J.cursor(Q+I.length),changes:z}}else{let T=O$(c,t,l);return{range:J.cursor(a+T.length+1),changes:{from:l.from,insert:T+t.lineBreak}}}}if(u.node.name=="Blockquote"&&f&&l.from){let v=n.lineAt(l.from-1),w=/>\s*$/.exec(v.text);if(w&&w.index==u.from){let T=t.changes([{from:v.from+w.index,to:v.to},{from:l.from+u.from,to:l.to}]);return{range:s.map(T),changes:T}}}let d=[];u.node.name=="OrderedList"&&Bv(u.item,n,d);let O=u.item&&u.item.from<l.from,m="";if(!O||/^[\s\d.)\-+*>]*/.exec(l.text)[0].length>=u.to)for(let v=0,w=c.length-1;v<=w;v++)m+=v==w&&!O?c[v].marker(n,1):c[v].blank(v<w?Ri(l.text,4,c[v+1].from)-m.length:null);let x=a;for(;x>l.from&&/\s/.test(l.text.charAt(x-l.from-1));)x--;return m=Gv(m,t),aG(u.node,t.doc)&&(m=O$(c,t,l)+t.lineBreak+m),d.push({from:x,to:a,insert:t.lineBreak+m}),{range:J.cursor(x+m.length+1),changes:d}});return r?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function d$(t){return t.name=="QuoteMark"||t.name=="ListMark"}function aG(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let i=t.firstChild,n=t.getChild("ListItem","ListItem");if(!n)return!1;let r=e.lineAt(i.to),o=e.lineAt(n.from),s=/^[\s>]*$/.test(r.text);return r.number+(s?0:1)<o.number}function O$(t,e,i){let n="";for(let r=0,o=t.length-2;r<=o;r++)n+=t[r].blank(r<o?Ri(i.text,4,Math.min(i.text.length,t[r+1].from))-n.length:null,r<o);return Gv(n,e)}function lG(t,e){let i=t.resolveInner(e,-1),n=e;d$(i)&&(n=i.from,i=i.parent);for(let r;r=i.childBefore(n);)if(d$(r))n=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")i=r.lastChild,n=i.to;else break;return i}var cG=({state:t,dispatch:e})=>{let i=qe(t),n=null,r=t.changeByRange(o=>{let s=o.from,{doc:a}=t;if(o.empty&&jp.isActiveAt(t,o.from)){let l=a.lineAt(s),c=b$(lG(i,s),a);if(c.length){let u=c[c.length-1],f=u.to-u.spaceAfter.length+(u.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:J.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!u.item||l.from<=u.item.from||!/\S/.test(l.text.slice(0,u.to)))){let d=l.from+u.from;if(u.item&&u.node.from<u.item.from&&/\S/.test(l.text.slice(u.from,u.to))){let O=u.blank(Ri(l.text,4,u.to)-Ri(l.text,4,u.from));return d==l.from&&(O=Gv(O,t)),{range:J.cursor(d+O.length),changes:{from:d,to:l.from+u.to,insert:O}}}if(d<s)return{range:J.cursor(d),changes:{from:d,to:s}}}}}return n={range:o}});return n?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},uG=[{key:"Enter",run:sG},{key:"Backspace",run:cG}],x$=qp({matchClosingTags:!1});function v$(t={}){let{codeLanguages:e,defaultCodeLanguage:i,addKeymap:n=!0,base:{parser:r}=nG,completeHTMLTags:o=!0,htmlTagLanguage:s=x$}=t;if(!(r instanceof gf))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let a=t.extensions?[t.extensions]:[],l=[s.support],c;i instanceof gt?(l.push(i.support),c=i.language):i&&(c=i);let u=e||c?oG(e,c):void 0;a.push(tA({codeParser:u,htmlParser:s.language.parser})),n&&l.push(Mt.high(Jt.of(uG)));let f=Hv(r.configure(a));return o&&l.push(f.data.of({autocomplete:fG})),new gt(f,l)}function fG(t){let{state:e,pos:i}=t,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(i-25,i));if(!n)return null;let r=qe(e).resolveInner(i,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:i-n[0].length,to:i,options:hG(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var Yv=null;function hG(){if(Yv)return Yv;let t=c$(new _l(st.create({extensions:x$}),0,!0));return Yv=t?t.options:[]}var dG=36,w$=1,OG=2,zl=3,Kv=4,pG=5,mG=6,gG=7,bG=8,yG=9,xG=10,vG=11,wG=12,kG=13,SG=14,TG=15,EG=16,CG=17,k$=18,PG=19,A$=20,$$=21,S$=22,QG=23,_G=24;function ew(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function AG(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function ua(t,e,i){for(let n=!1;;){if(t.next<0)return;if(t.next==e&&!n){t.advance();return}n=i&&!n&&t.next==92,t.advance()}}function $G(t,e){e:for(;;){if(t.next<0)return;if(t.next==36){t.advance();for(let i=0;i<e.length;i++){if(t.next!=e.charCodeAt(i))continue e;t.advance()}if(t.next==36){t.advance();return}}else t.advance()}}function XG(t,e){let i="[{<(".indexOf(String.fromCharCode(e)),n=i<0?e:"]}>)".charCodeAt(i);for(;;){if(t.next<0)return;if(t.next==n&&t.peek(1)==39){t.advance(2);return}t.advance()}}function tw(t,e){for(;!(t.next!=95&&!ew(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function RG(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),ua(t,e,!1)}else tw(t)}function T$(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function E$(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function C$(t){for(;!(t.next<0||t.next==10);)t.advance()}function ca(t,e){for(let i=0;i<e.length;i++)if(e.charCodeAt(i)==t)return!0;return!1}var Jv=` \r
|
||
`;function X$(t,e,i){let n=Object.create(null);n.true=n.false=pG,n.null=n.unknown=mG;for(let r of t.split(" "))r&&(n[r]=A$);for(let r of e.split(" "))r&&(n[r]=$$);for(let r of(i||"").split(" "))r&&(n[r]=_G);return n}var fa="array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ",ha="absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ",iw={backslashEscapes:!1,hashComments:!1,spaceAfterDashes:!1,slashComments:!1,doubleQuotedStrings:!1,doubleDollarQuotedStrings:!1,unquotedBitLiterals:!1,treatBitsAsBytes:!1,charSetCasts:!1,plsqlQuotingMechanism:!1,operatorChars:"*+-%<>!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:X$(ha,fa)};function LG(t,e,i,n){let r={};for(let o in iw)r[o]=(t.hasOwnProperty(o)?t:iw)[o];return e&&(r.words=X$(e,i||"",n)),r}function R$(t){return new ze(e=>{var i;let{next:n}=e;if(e.advance(),ca(n,Jv)){for(;ca(e.next,Jv);)e.advance();e.acceptToken(dG)}else if(n==36&&t.doubleDollarQuotedStrings){let r=tw(e,"");e.next==36&&(e.advance(),$G(e,r),e.acceptToken(zl))}else if(n==39||n==34&&t.doubleQuotedStrings)ua(e,n,t.backslashEscapes),e.acceptToken(zl);else if(n==35&&t.hashComments||n==47&&e.next==47&&t.slashComments)C$(e),e.acceptToken(w$);else if(n==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))C$(e),e.acceptToken(w$);else if(n==47&&e.next==42){e.advance();for(let r=1;;){let o=e.next;if(e.next<0)break;if(e.advance(),o==42&&e.next==47){if(r--,e.advance(),!r)break}else o==47&&e.next==42&&(r++,e.advance())}e.acceptToken(OG)}else if((n==101||n==69)&&e.next==39)e.advance(),ua(e,39,!0),e.acceptToken(zl);else if((n==110||n==78)&&e.next==39&&t.charSetCasts)e.advance(),ua(e,39,t.backslashEscapes),e.acceptToken(zl);else if(n==95&&t.charSetCasts)for(let r=0;;r++){if(e.next==39&&r>1){e.advance(),ua(e,39,t.backslashEscapes),e.acceptToken(zl);break}if(!ew(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(n==113||n==81)&&e.next==39&&e.peek(1)>0&&!ca(e.peek(1),Jv)){let r=e.peek(1);e.advance(2),XG(e,r),e.acceptToken(zl)}else if(n==40)e.acceptToken(gG);else if(n==41)e.acceptToken(bG);else if(n==123)e.acceptToken(yG);else if(n==125)e.acceptToken(xG);else if(n==91)e.acceptToken(vG);else if(n==93)e.acceptToken(wG);else if(n==59)e.acceptToken(kG);else if(t.unquotedBitLiterals&&n==48&&e.next==98)e.advance(),T$(e),e.acceptToken(S$);else if((n==98||n==66)&&(e.next==39||e.next==34)){let r=e.next;e.advance(),t.treatBitsAsBytes?(ua(e,r,t.backslashEscapes),e.acceptToken(QG)):(T$(e,r),e.acceptToken(S$))}else if(n==48&&(e.next==120||e.next==88)||(n==120||n==88)&&e.next==39){let r=e.next==39;for(e.advance();AG(e.next);)e.advance();r&&e.next==39&&e.advance(),e.acceptToken(Kv)}else if(n==46&&e.next>=48&&e.next<=57)E$(e,!0),e.acceptToken(Kv);else if(n==46)e.acceptToken(SG);else if(n>=48&&n<=57)E$(e,!1),e.acceptToken(Kv);else if(ca(n,t.operatorChars)){for(;ca(e.next,t.operatorChars);)e.advance();e.acceptToken(TG)}else if(ca(n,t.specialVar))e.next==n&&e.advance(),RG(e),e.acceptToken(CG);else if(ca(n,t.identifierQuotes))ua(e,n,!1),e.acceptToken(PG);else if(n==58||n==44)e.acceptToken(EG);else if(ew(n)){let r=tw(e,String.fromCharCode(n));e.acceptToken(e.next==46||e.peek(-r.length-1)==46?k$:(i=t.words[r.toLowerCase()])!==null&&i!==void 0?i:k$)}})}var L$=R$(iw),IG=jt.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"\u26A0 LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,L$],topRules:{Script:[0,25]},tokenPrec:0});function nw(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function Tf(t,e){let i=t.sliceString(e.from,e.to),n=/^([`'"])(.*)\1$/.exec(i);return n?n[2]:i}function Wp(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function DG(t,e){if(e.name=="CompositeIdentifier"){let i=[];for(let n=e.firstChild;n;n=n.nextSibling)Wp(n)&&i.push(Tf(t,n));return i}return[Tf(t,e)]}function P$(t,e){for(let i=[];;){if(!e||e.name!=".")return i;let n=nw(e);if(!Wp(n))return i;i.unshift(Tf(t,n)),e=nw(n)}}function zG(t,e){let i=qe(t).resolveInner(e,-1),n=MG(t.doc,i);return i.name=="Identifier"||i.name=="QuotedIdentifier"||i.name=="Keyword"?{from:i.from,quoted:i.name=="QuotedIdentifier"?t.doc.sliceString(i.from,i.from+1):null,parents:P$(t.doc,nw(i)),aliases:n}:i.name=="."?{from:e,quoted:null,parents:P$(t.doc,i),aliases:n}:{from:e,quoted:null,parents:[],empty:!0,aliases:n}}var UG=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function MG(t,e){let i;for(let r=e;!i;r=r.parent){if(!r)return null;r.name=="Statement"&&(i=r)}let n=null;for(let r=i.firstChild,o=!1,s=null;r;r=r.nextSibling){let a=r.name=="Keyword"?t.sliceString(r.from,r.to).toLowerCase():null,l=null;if(!o)o=a=="from";else if(a=="as"&&s&&Wp(r.nextSibling))l=Tf(t,r.nextSibling);else{if(a&&UG.has(a))break;s&&Wp(r)&&(l=Tf(t,r))}l&&(n||(n=Object.create(null)),n[l]=DG(t,s)),s=/Identifier$/.test(r.name)?r:null}return n}function NG(t,e){return t?e.map(i=>Object.assign(Object.assign({},i),{label:i.label[0]==t?i.label:t+i.label+t,apply:void 0})):e}var qG=/^\w*$/,jG=/^[`'"]?\w*[`'"]?$/;function Q$(t){return t.self&&typeof t.self.label=="string"}var rw=class t{constructor(e,i){this.idQuote=e,this.idCaseInsensitive=i,this.list=[],this.children=void 0}child(e){let i=this.children||(this.children=Object.create(null)),n=i[e];return n||(e&&!this.list.some(r=>r.label==e)&&this.list.push(_$(e,"type",this.idQuote,this.idCaseInsensitive)),i[e]=new t(this.idQuote,this.idCaseInsensitive))}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let i=this.list.findIndex(n=>n.label==e.label);i>-1?this.list[i]=e:this.list.push(e)}addCompletions(e){for(let i of e)this.addCompletion(typeof i=="string"?_$(i,"property",this.idQuote,this.idCaseInsensitive):i)}addNamespace(e){Array.isArray(e)?this.addCompletions(e):Q$(e)?this.addNamespace(e.children):this.addNamespaceObject(e)}addNamespaceObject(e){for(let i of Object.keys(e)){let n=e[i],r=null,o=i.replace(/\\?\./g,a=>a=="."?"\0":a).split("\0"),s=this;Q$(n)&&(r=n.self,n=n.children);for(let a=0;a<o.length;a++)r&&a==o.length-1&&s.addCompletion(r),s=s.child(o[a].replace(/\\\./g,"."));s.addNamespace(n)}}};function _$(t,e,i,n){return new RegExp("^[a-z_][a-z_\\d]*$",n?"i":"").test(t)?{label:t,type:e}:{label:t,type:e,apply:i+t+i}}function WG(t,e,i,n,r,o){var s;let a=((s=o==null?void 0:o.spec.identifierQuotes)===null||s===void 0?void 0:s[0])||'"',l=new rw(a,!!(o!=null&&o.spec.caseInsensitiveIdentifiers)),c=r?l.child(r):null;return l.addNamespace(t),e&&(c||l).addCompletions(e),i&&l.addCompletions(i),c&&l.addCompletions(c.list),n&&l.addCompletions((c||l).child(n).list),u=>{let{parents:f,from:d,quoted:O,empty:m,aliases:x}=zG(u.state,u.pos);if(m&&!u.explicit)return null;x&&f.length==1&&(f=x[f[0]]||f);let v=l;for(let Q of f){for(;!v.children||!v.children[Q];)if(v==l&&c)v=c;else if(v==c&&n)v=v.child(n);else return null;let I=v.maybeChild(Q);if(!I)return null;v=I}let w=O&&u.state.sliceDoc(u.pos,u.pos+1)==O,T=v.list;return v==l&&x&&(T=T.concat(Object.keys(x).map(Q=>({label:Q,type:"constant"})))),{from:d,to:w?u.pos+1:void 0,options:NG(O,T),validFor:O?jG:qG}}}function VG(t){return t==$$?"type":t==A$?"keyword":"variable"}function ZG(t,e,i){let n=Object.keys(t).map(r=>i(e?r.toUpperCase():r,VG(t[r])));return Xl(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],oa(n))}var BG=IG.configure({props:[Nt.add({Statement:Ti()}),qt.add({Statement(t,e){return{from:Math.min(t.from+100,e.doc.lineAt(t.from).to),to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),Et({Keyword:E.keyword,Type:E.typeName,Builtin:E.standard(E.name),Bits:E.number,Bytes:E.string,Bool:E.bool,Null:E.null,Number:E.number,String:E.string,Identifier:E.name,QuotedIdentifier:E.special(E.string),SpecialVar:E.special(E.name),LineComment:E.lineComment,BlockComment:E.blockComment,Operator:E.operator,"Semi Punctuation":E.punctuation,"( )":E.paren,"{ }":E.brace,"[ ]":E.squareBracket})]}),wr=class t{constructor(e,i,n){this.dialect=e,this.language=i,this.spec=n}get extension(){return this.language.extension}static define(e){let i=LG(e,e.keywords,e.types,e.builtin),n=Bt.define({name:"sql",parser:BG.configure({tokenizers:[{from:L$,to:R$(i)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new t(i,n,e)}};function YG(t,e){return{label:t,type:e,boost:-1}}function FG(t,e=!1,i){return ZG(t.dialect.words,e,i||YG)}function HG(t){return t.schema?WG(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||ow):()=>null}function GG(t){return t.schema?(t.dialect||ow).language.data.of({autocomplete:HG(t)}):[]}function I$(t={}){let e=t.dialect||ow;return new gt(e.language,[GG(t),e.language.data.of({autocomplete:FG(e,t.upperCaseKeywords,t.keywordCompletion)})])}var ow=wr.define({}),k2e=wr.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:ha+"abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:fa+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),D$="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",z$=fa+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",U$="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",S2e=wr.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:ha+"group_concat "+D$,types:z$,builtin:U$}),T2e=wr.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:ha+"always generated groupby_concat hard persistent shutdown soft virtual "+D$,types:z$,builtin:U$}),E2e=wr.define({keywords:ha+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:fa+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"}),C2e=wr.define({keywords:ha+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:fa+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),P2e=wr.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:fa+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),Q2e=wr.define({keywords:ha+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:fa+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0});var KG=Et({String:E.string,Number:E.number,"True False":E.bool,PropertyName:E.propertyName,Null:E.null,",":E.separator,"[ ]":E.squareBracket,"{ }":E.brace}),M$=jt.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26A0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[KG],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var JG=Bt.define({name:"json",parser:M$.configure({props:[Nt.add({Object:Ti({except:/^\s*\}/}),Array:Ti({except:/^\s*\]/})}),qt.add({"Object Array":Pn})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function N$(){return new gt(JG)}var sw=1,eK=2,tK=3,iK=4,nK=5,rK=35,oK=36,sK=37,aK=11,lK=13;function cK(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function uK(t){return t==9||t==10||t==13||t==32}var q$=null,j$=null,W$=0;function aw(t,e){let i=t.pos+e;if(j$==t&&W$==i)return q$;for(;uK(t.peek(e));)e++;let n="";for(;;){let r=t.peek(e);if(!cK(r))break;n+=String.fromCharCode(r),e++}return j$=t,W$=i,q$=n||null}function V$(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let i=0;i<t.length;i++)this.hash+=(this.hash<<4)+t.charCodeAt(i)+(t.charCodeAt(i)<<8)}var fK=new _n({start:null,shift(t,e,i,n){return e==sw?new V$(aw(n,1)||"",t):t},reduce(t,e){return e==aK&&t?t.parent:t},reuse(t,e,i,n){let r=e.type.id;return r==sw||r==lK?new V$(aw(n,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),hK=new ze((t,e)=>{if(t.next==60){if(t.advance(),t.next==47){t.advance();let i=aw(t,0);if(!i)return t.acceptToken(nK);if(e.context&&i==e.context.name)return t.acceptToken(eK);for(let n=e.context;n;n=n.parent)if(n.name==i)return t.acceptToken(tK,-2);t.acceptToken(iK)}else if(t.next!=33&&t.next!=63)return t.acceptToken(sw)}},{contextual:!0});function lw(t,e){return new ze(i=>{let n=0,r=e.charCodeAt(0);e:for(;!(i.next<0);i.advance(),n++)if(i.next==r){for(let o=1;o<e.length;o++)if(i.peek(o)!=e.charCodeAt(o))continue e;break}n&&i.acceptToken(t)})}var dK=lw(rK,"-->"),OK=lw(oK,"?>"),pK=lw(sK,"]]>"),mK=Et({Text:E.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":E.angleBracket,TagName:E.tagName,"MismatchedCloseTag/Tagname":[E.tagName,E.invalid],AttributeName:E.attributeName,AttributeValue:E.attributeValue,Is:E.definitionOperator,"EntityReference CharacterReference":E.character,Comment:E.blockComment,ProcessingInst:E.processingInstruction,DoctypeDecl:E.documentMeta,Cdata:E.special(E.string)}),Z$=jt.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1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ntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:47,context:fK,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[mK],skippedNodes:[0],repeatNodeCount:8,tokenData:"Jy~R!XOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs'ssv$nvw(Zw}$n}!O,^!O!P$n!P!Q.m!Q![$n![!]0V!]!^$n!^!_3h!_!`El!`!aF_!a!bGQ!b!c$n!c!}0V!}#P$n#P#QHj#Q#R$n#R#S0V#S#T$n#T#o0V#o%W$n%W%o0V%o%p$n%p&a0V&a&b$n&b1p0V1p4U$n4U4d0V4d4e$n4e$IS0V$IS$I`$n$I`$Ib0V$Ib$Kh$n$Kh%#t0V%#t&/x$n&/x&Et0V&Et&FV$n&FV;'S0V;'S;:j3b;:j;=`&e<%l?&r$n?&r?Ah0V?Ah?BY$n?BY?Mn0V?MnO$nX$uWVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nP%dTVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_P%vP;=`<%l%_W&OT{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yW&bP;=`<%l%yX&hP;=`<%l$n_&t_VP{WyUOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZ'zTzYVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_~(^ast)c![!]*g!c!}*g#R#S*g#T#o*g%W%o*g%p&a*g&b1p*g4U4d*g4e$IS*g$I`$Ib*g$Kh%#t*g&/x&Et*g&FV;'S*g;'S;:j,W?&r?Ah*g?BY?Mn*g~)fQ!Q![)l#l#m)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yXAwV{WOr%ysv%yw#c%y#c#dB^#d;'S%y;'S;=`&_<%lO%yXBcV{WOr%ysv%yw#V%y#V#WBx#W;'S%y;'S;=`&_<%lO%yXB}V{WOr%ysv%yw#h%y#h#iCd#i;'S%y;'S;=`&_<%lO%yXCiV{WOr%ysv%yw#m%y#m#nDO#n;'S%y;'S;=`&_<%lO%yXDTV{WOr%ysv%yw#d%y#d#eDj#e;'S%y;'S;=`&_<%lO%yXDoV{WOr%ysv%yw#X%y#X#Y9i#Y;'S%y;'S;=`&_<%lO%yXE]T!PP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yZEuWaQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_FhW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGXYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aGw!a;'S$n;'S;=`&e<%lO$nZHQW!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZHqYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QIa#Q;'S$n;'S;=`&e<%lO$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",tokenizers:[hK,dK,OK,pK,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0});function Vp(t,e){let i=e&&e.getChild("TagName");return i?t.sliceString(i.from,i.to):""}function cw(t,e){let i=e&&e.firstChild;return!i||i.name!="OpenTag"?"":Vp(t,i)}function gK(t,e,i){let n=e&&e.getChildren("Attribute").find(o=>o.from<=i&&o.to>=i),r=n&&n.getChild("AttributeName");return r?t.sliceString(r.from,r.to):""}function uw(t){for(let e=t&&t.parent;e;e=e.parent)if(e.name=="Element")return e;return null}function bK(t,e){var i;let n=qe(t).resolveInner(e,-1),r=null;for(let o=n;!r&&o.parent;o=o.parent)(o.name=="OpenTag"||o.name=="CloseTag"||o.name=="SelfClosingTag"||o.name=="MismatchedCloseTag")&&(r=o);if(r&&(r.to>e||r.lastChild.type.isError)){let o=r.parent;if(n.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:n.from,context:o}:{type:"openTag",from:n.from,context:uw(o)};if(n.name=="AttributeName")return{type:"attrName",from:n.from,context:r};if(n.name=="AttributeValue")return{type:"attrValue",from:n.from,context:r};let s=n==r||n.name=="Attribute"?n.childBefore(e):n;return(s==null?void 0:s.name)=="StartTag"?{type:"openTag",from:e,context:uw(o)}:(s==null?void 0:s.name)=="StartCloseTag"&&s.to<=e?{type:"closeTag",from:e,context:o}:(s==null?void 0:s.name)=="Is"?{type:"attrValue",from:e,context:r}:s?{type:"attrName",from:e,context:r}:null}else if(n.name=="StartCloseTag")return{type:"closeTag",from:e,context:n.parent};for(;n.parent&&n.to==e&&!(!((i=n.lastChild)===null||i===void 0)&&i.type.isError);)n=n.parent;return n.name=="Element"||n.name=="Text"||n.name=="Document"?{type:"tag",from:e,context:n.name=="Element"?n:uw(n)}:null}var hw=class{constructor(e,i,n){this.attrs=i,this.attrValues=n,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map(r=>({label:r,type:"text"})):[]}},fw=/^[:\-\.\w\u00b7-\uffff]*$/;function B$(t){return Object.assign(Object.assign({type:"property"},t.completion||{}),{label:t.name})}function Y$(t){return typeof t=="string"?{label:`"${t}"`,type:"constant"}:/^"/.test(t.label)?t:Object.assign(Object.assign({},t),{label:`"${t.label}"`})}function yK(t,e){let i=[],n=[],r=Object.create(null);for(let l of e){let c=B$(l);i.push(c),l.global&&n.push(c),l.values&&(r[l.name]=l.values.map(Y$))}let o=[],s=[],a=Object.create(null);for(let l of t){let c=n,u=r;l.attributes&&(c=c.concat(l.attributes.map(d=>typeof d=="string"?i.find(O=>O.label==d)||{label:d,type:"property"}:(d.values&&(u==r&&(u=Object.create(u)),u[d.name]=d.values.map(Y$)),B$(d)))));let f=new hw(l,c,u);a[f.name]=f,o.push(f),l.top&&s.push(f)}s.length||(s=o);for(let l=0;l<o.length;l++){let c=t[l],u=o[l];if(c.children)for(let f of c.children)a[f]&&u.children.push(a[f]);else u.children=o}return l=>{var c;let{doc:u}=l.state,f=bK(l.state,l.pos);if(!f||f.type=="tag"&&!l.explicit)return null;let{type:d,from:O,context:m}=f;if(d=="openTag"){let x=s,v=cw(u,m);if(v){let w=a[v];x=(w==null?void 0:w.children)||o}return{from:O,options:x.map(w=>w.completion),validFor:fw}}else if(d=="closeTag"){let x=cw(u,m);return x?{from:O,to:l.pos+(u.sliceString(l.pos,l.pos+1)==">"?1:0),options:[((c=a[x])===null||c===void 0?void 0:c.closeNameCompletion)||{label:x+">",type:"type"}],validFor:fw}:null}else if(d=="attrName"){let x=a[Vp(u,m)];return{from:O,options:(x==null?void 0:x.attrs)||n,validFor:fw}}else if(d=="attrValue"){let x=gK(u,m,O);if(!x)return null;let v=a[Vp(u,m)],w=((v==null?void 0:v.attrValues)||r)[x];return!w||!w.length?null:{from:O,to:l.pos+(u.sliceString(l.pos,l.pos+1)=='"'?1:0),options:w,validFor:/^"[^"]*"?$/}}else if(d=="tag"){let x=cw(u,m),v=a[x],w=[],T=m&&m.lastChild;x&&(!T||T.name!="CloseTag"||Vp(u,T)!=x)&&w.push(v?v.closeCompletion:{label:"</"+x+">",type:"type",boost:2});let Q=w.concat(((v==null?void 0:v.children)||(m?o:s)).map(I=>I.openCompletion));if(m&&(v!=null&&v.text.length)){let I=m.firstChild;I.to>l.pos-20&&!/\S/.test(l.state.sliceDoc(I.to,l.pos))&&(Q=Q.concat(v.text))}return{from:O,options:Q,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}var dw=Bt.define({name:"xml",parser:Z$.configure({props:[Nt.add({Element(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),qt.add({Element(t){let e=t.firstChild,i=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:i.name=="CloseTag"?i.from:t.to}}}),af.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function H$(t={}){let e=[dw.data.of({autocomplete:yK(t.elements||[],t.attributes||[])})];return t.autoCloseTags!==!1&&e.push(xK),new gt(dw,e)}function F$(t,e,i=t.length){if(!e)return"";let n=e.firstChild,r=n&&n.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,i)):""}var xK=fe.inputHandler.of((t,e,i,n,r)=>{if(t.composing||t.state.readOnly||e!=i||n!=">"&&n!="/"||!dw.isActiveAt(t.state,e,-1))return!1;let o=r(),{state:s}=o,a=s.changeByRange(l=>{var c,u,f;let{head:d}=l,O=s.doc.sliceString(d-1,d)==n,m=qe(s).resolveInner(d,-1),x;if(O&&n==">"&&m.name=="EndTag"){let v=m.parent;if(((u=(c=v.parent)===null||c===void 0?void 0:c.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(x=F$(s.doc,v.parent,d))){let w=d+(s.doc.sliceString(d,d+1)===">"?1:0),T=`</${x}>`;return{range:l,changes:{from:d,to:w,insert:T}}}}else if(O&&n=="/"&&m.name=="StartCloseTag"){let v=m.parent;if(m.from==d-2&&((f=v.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(x=F$(s.doc,v,d))){let w=d+(s.doc.sliceString(d,d+1)===">"?1:0),T=`${x}>`;return{range:J.cursor(d+T.length,-1),changes:{from:d,to:w,insert:T}}}}return{range:l}});return a.changes.empty?!1:(t.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var vK=1,tX=194,iX=195,wK=196,G$=197,kK=198,SK=199,TK=200,EK=2,nX=3,K$=201,CK=24,PK=25,QK=49,_K=50,AK=55,$K=56,XK=57,RK=59,LK=60,IK=61,DK=62,zK=63,UK=65,MK=238,NK=71,qK=241,jK=242,WK=243,VK=244,ZK=245,BK=246,YK=247,FK=248,rX=72,HK=249,GK=250,KK=251,JK=252,eJ=253,tJ=254,iJ=255,nJ=256,rJ=73,oJ=77,sJ=263,aJ=112,lJ=130,cJ=151,uJ=152,fJ=155,da=10,Ef=13,gw=32,Yp=9,bw=35,hJ=40,dJ=46,mw=123,J$=125,oX=39,sX=34,OJ=92,pJ=111,mJ=120,gJ=78,bJ=117,yJ=85,xJ=new Set([PK,QK,_K,sJ,UK,lJ,$K,XK,MK,DK,zK,rX,rJ,oJ,LK,IK,cJ,uJ,fJ,aJ]);function Ow(t){return t==da||t==Ef}function pw(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}var vJ=new ze((t,e)=>{let i;if(t.next<0)t.acceptToken(SK);else if(e.context.flags&Zp)Ow(t.next)&&t.acceptToken(kK,1);else if(((i=t.peek(-1))<0||Ow(i))&&e.canShift(G$)){let n=0;for(;t.next==gw||t.next==Yp;)t.advance(),n++;(t.next==da||t.next==Ef||t.next==bw)&&t.acceptToken(G$,-n)}else Ow(t.next)&&t.acceptToken(wK,1)},{contextual:!0}),wJ=new ze((t,e)=>{let i=e.context;if(i.flags)return;let n=t.peek(-1);if(n==da||n==Ef){let r=0,o=0;for(;;){if(t.next==gw)r++;else if(t.next==Yp)r+=8-r%8;else break;t.advance(),o++}r!=i.indent&&t.next!=da&&t.next!=Ef&&t.next!=bw&&(r<i.indent?t.acceptToken(iX,-o):t.acceptToken(tX))}}),Zp=1,aX=2,oo=4,so=8,ao=16,lo=32;function Bp(t,e,i){this.parent=t,this.indent=e,this.flags=i,this.hash=(t?t.hash+t.hash<<8:0)+e+(e<<4)+i+(i<<6)}var kJ=new Bp(null,0,0);function SJ(t){let e=0;for(let i=0;i<t.length;i++)e+=t.charCodeAt(i)==Yp?8-e%8:1;return e}var eX=new Map([[qK,0],[jK,oo],[WK,so],[VK,so|oo],[ZK,ao],[BK,ao|oo],[YK,ao|so],[FK,ao|so|oo],[HK,lo],[GK,lo|oo],[KK,lo|so],[JK,lo|so|oo],[eJ,lo|ao],[tJ,lo|ao|oo],[iJ,lo|ao|so],[nJ,lo|ao|so|oo]].map(([t,e])=>[t,e|aX])),TJ=new _n({start:kJ,reduce(t,e,i,n){return t.flags&Zp&&xJ.has(e)||(e==NK||e==rX)&&t.flags&aX?t.parent:t},shift(t,e,i,n){return e==tX?new Bp(t,SJ(n.read(n.pos,i.pos)),0):e==iX?t.parent:e==CK||e==AK||e==RK||e==nX?new Bp(t,0,Zp):eX.has(e)?new Bp(t,0,eX.get(e)|t.flags&Zp):t},hash(t){return t.hash}}),EJ=new ze(t=>{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let i=t.peek(e);if(!(i==gw||i==Yp)){i!=hJ&&i!=dJ&&i!=da&&i!=Ef&&i!=bw&&t.acceptToken(vK);return}}}),CJ=new ze((t,e)=>{let{flags:i}=e.context,n=i&oo?sX:oX,r=(i&so)>0,o=!(i&ao),s=(i&lo)>0,a=t.pos;for(;!(t.next<0);)if(s&&t.next==mw)if(t.peek(1)==mw)t.advance(2);else{if(t.pos==a){t.acceptToken(nX,1);return}break}else if(o&&t.next==OJ){if(t.pos==a){t.advance();let l=t.next;l>=0&&(t.advance(),PJ(t,l)),t.acceptToken(EK);return}break}else if(t.next==n&&(!r||t.peek(1)==n&&t.peek(2)==n)){if(t.pos==a){t.acceptToken(K$,r?3:1);return}break}else if(t.next==da){if(r)t.advance();else if(t.pos==a){t.acceptToken(K$);return}break}else t.advance();t.pos>a&&t.acceptToken(TK)});function PJ(t,e){if(e==pJ)for(let i=0;i<2&&t.next>=48&&t.next<=55;i++)t.advance();else if(e==mJ)for(let i=0;i<2&&pw(t.next);i++)t.advance();else if(e==bJ)for(let i=0;i<4&&pw(t.next);i++)t.advance();else if(e==yJ)for(let i=0;i<8&&pw(t.next);i++)t.advance();else if(e==gJ&&t.next==mw){for(t.advance();t.next>=0&&t.next!=J$&&t.next!=oX&&t.next!=sX&&t.next!=da;)t.advance();t.next==J$&&t.advance()}}var QJ=Et({'async "*" "**" FormatConversion FormatSpec':E.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":E.controlKeyword,"in not and or is del":E.operatorKeyword,"from def class global nonlocal lambda":E.definitionKeyword,import:E.moduleKeyword,"with as print":E.keyword,Boolean:E.bool,None:E.null,VariableName:E.variableName,"CallExpression/VariableName":E.function(E.variableName),"FunctionDefinition/VariableName":E.function(E.definition(E.variableName)),"ClassDefinition/VariableName":E.definition(E.className),PropertyName:E.propertyName,"CallExpression/MemberExpression/PropertyName":E.function(E.propertyName),Comment:E.lineComment,Number:E.number,String:E.string,FormatString:E.special(E.string),Escape:E.escape,UpdateOp:E.updateOperator,"ArithOp!":E.arithmeticOperator,BitOp:E.bitwiseOperator,CompareOp:E.compareOperator,AssignOp:E.definitionOperator,Ellipsis:E.punctuation,At:E.meta,"( )":E.paren,"[ ]":E.squareBracket,"{ }":E.brace,".":E.derefOperator,", ;":E.separator}),_J={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},lX=jt.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQ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kQ#qpW%W!o!s0d0nQ%X!pQ%Y!qQ%[!tQ%f0cS'v%Z0hQ'x0eQ'y0fQ,p*rQ-u,qS.i-s/sR0p0rU#uq.k0qR(w&][cOn#g$j)t,PZ!xY#[#}$Q+YQ#W[Q#zrR$TxQ%b!yQ%i!}Q%o#RQ'j${Q(V%eQ(Z%jQ(c%pQ(f%qQ*|(`Q,f*bQ-t,pQ.m-uR/].lQ$StQ(R%cR*s(SQ.l-sR/}/sR#QZR#V[R%Q!iQ%O!iV*c'm*d,g!]!lQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v/q0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"\u26A0 print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:TJ,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[QJ],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%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T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[EJ,wJ,vJ,CJ,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:t=>_J[t]||-1}],tokenPrec:7652});var cX=new Bo,fX=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Fp(t){return(e,i,n)=>{if(n)return!1;let r=e.node.getChild("VariableName");return r&&i(r,t),!0}}var AJ={FunctionDefinition:Fp("function"),ClassDefinition:Fp("class"),ForStatement(t,e,i){if(i){for(let n=t.node.firstChild;n;n=n.nextSibling)if(n.name=="VariableName")e(n,"variable");else if(n.name=="in")break}},ImportStatement(t,e){var i,n;let{node:r}=t,o=((i=r.firstChild)===null||i===void 0?void 0:i.name)=="from";for(let s=r.getChild("import");s;s=s.nextSibling)s.name=="VariableName"&&((n=s.nextSibling)===null||n===void 0?void 0:n.name)!="as"&&e(s,o?"variable":"namespace")},AssignStatement(t,e){for(let i=t.node.firstChild;i;i=i.nextSibling)if(i.name=="VariableName")e(i,"variable");else if(i.name==":"||i.name=="AssignOp")break},ParamList(t,e){for(let i=null,n=t.node.firstChild;n;n=n.nextSibling)n.name=="VariableName"&&(!i||!/\*|AssignOp/.test(i.name))&&e(n,"variable"),i=n},CapturePattern:Fp("variable"),AsPattern:Fp("variable"),__proto__:null};function hX(t,e){let i=cX.get(e);if(i)return i;let n=[],r=!0;function o(s,a){let l=t.sliceString(s.from,s.to);n.push({label:l,type:a})}return e.cursor(ot.IncludeAnonymous).iterate(s=>{if(s.name){let a=AJ[s.name];if(a&&a(s,o,r)||!r&&fX.has(s.name))return!1;r=!1}else if(s.to-s.from>8192){for(let a of hX(t,s.node))n.push(a);return!1}}),cX.set(e,n),n}var uX=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,dX=["String","FormatString","Comment","PropertyName"];function $J(t){let e=qe(t.state).resolveInner(t.pos,-1);if(dX.indexOf(e.name)>-1)return null;let i=e.name=="VariableName"||e.to-e.from<20&&uX.test(t.state.sliceDoc(e.from,e.to));if(!i&&!t.explicit)return null;let n=[];for(let r=e;r;r=r.parent)fX.has(r.name)&&(n=n.concat(hX(t.state.doc,r)));return{options:n,from:i?e.from:t.pos,validFor:uX}}var XJ=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),RJ=[xt("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),xt("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),xt("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),xt("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),xt(`if \${}:
|
||
|
||
`,{label:"if",detail:"block",type:"keyword"}),xt("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),xt("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),xt("import ${module}",{label:"import",detail:"statement",type:"keyword"}),xt("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],LJ=Xl(dX,oa(XJ.concat(RJ)));function yw(t){let{node:e,pos:i}=t,n=t.lineIndent(i,-1),r=null;for(;;){let o=e.childBefore(i);if(o)if(o.name=="Comment")i=o.from;else if(o.name=="Body"||o.name=="MatchBody")t.baseIndentFor(o)+t.unit<=n&&(r=o),e=o;else if(o.name=="MatchClause")e=o;else if(o.type.is("Statement"))e=o;else break;else break}return r}function xw(t,e){let i=t.baseIndentFor(e),n=t.lineAt(t.pos,-1),r=n.from+n.text.length;return/^\s*($|#)/.test(n.text)&&t.node.to<r+100&&!/\S/.test(t.state.sliceDoc(r,t.node.to))&&t.lineIndent(t.pos,-1)<=i||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(t.textAfter)&&t.lineIndent(t.pos,-1)>i?null:i+t.unit}var vw=Bt.define({name:"python",parser:lX.configure({props:[Nt.add({Body:t=>{var e;let i=yw(t);return(e=xw(t,i||t.node))!==null&&e!==void 0?e:t.continue()},MatchBody:t=>{var e;let i=yw(t);return(e=xw(t,i||t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),"ForStatement WhileStatement":t=>/^\s*else:/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),MatchStatement:t=>/^\s*case /.test(t.textAfter)?t.baseIndent+t.unit:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":mi({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":mi({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":mi({closing:"]"}),"String FormatString":()=>null,Script:t=>{var e;let i=yw(t);return(e=i&&xw(t,i))!==null&&e!==void 0?e:t.continue()}}),qt.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Pn,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function OX(){return new gt(vw,[vw.data.of({autocomplete:$J}),vw.data.of({autocomplete:LJ})])}var Ul=63,pX=64,IJ=1,DJ=2,bX=3,zJ=4,yX=5,UJ=6,MJ=7,xX=65,NJ=66,qJ=8,jJ=9,WJ=10,VJ=11,ZJ=12,vX=13,BJ=19,YJ=20,FJ=29,HJ=33,GJ=34,KJ=47,JJ=0,Cw=1,kw=2,Pf=3,Sw=4,co=class{constructor(e,i,n){this.parent=e,this.depth=i,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+i+(i<<4)+n}};co.top=new co(null,-1,JJ);function Cf(t,e){for(let i=0,n=e-t.pos-1;;n--,i++){let r=t.peek(n);if(uo(r)||r==-1)return i}}function Tw(t){return t==32||t==9}function uo(t){return t==10||t==13}function wX(t){return Tw(t)||uo(t)}function Oa(t){return t<0||wX(t)}var eee=new _n({start:co.top,reduce(t,e){return t.type==Pf&&(e==YJ||e==GJ)?t.parent:t},shift(t,e,i,n){if(e==bX)return new co(t,Cf(n,n.pos),Cw);if(e==xX||e==yX)return new co(t,Cf(n,n.pos),kw);if(e==Ul)return t.parent;if(e==BJ||e==HJ)return new co(t,0,Pf);if(e==vX&&t.type==Sw)return t.parent;if(e==KJ){let r=/[1-9]/.exec(n.read(n.pos,i.pos));if(r)return new co(t,t.depth+ +r[0],Sw)}return t},hash(t){return t.hash}});function Ml(t,e,i=0){return t.peek(i)==e&&t.peek(i+1)==e&&t.peek(i+2)==e&&Oa(t.peek(i+3))}var tee=new ze((t,e)=>{if(t.next==-1&&e.canShift(pX))return t.acceptToken(pX);let i=t.peek(-1);if((uo(i)||i<0)&&e.context.type!=Pf){if(Ml(t,45))if(e.canShift(Ul))t.acceptToken(Ul);else return t.acceptToken(IJ,3);if(Ml(t,46))if(e.canShift(Ul))t.acceptToken(Ul);else return t.acceptToken(DJ,3);let n=0;for(;t.next==32;)n++,t.advance();(n<e.context.depth||n==e.context.depth&&e.context.type==Cw&&(t.next!=45||!Oa(t.peek(1))))&&t.next!=-1&&!uo(t.next)&&t.next!=35&&t.acceptToken(Ul,-n)}},{contextual:!0}),iee=new ze((t,e)=>{if(e.context.type==Pf){t.next==63&&(t.advance(),Oa(t.next)&&t.acceptToken(MJ));return}if(t.next==45)t.advance(),Oa(t.next)&&t.acceptToken(e.context.type==Cw&&e.context.depth==Cf(t,t.pos-1)?zJ:bX);else if(t.next==63)t.advance(),Oa(t.next)&&t.acceptToken(e.context.type==kw&&e.context.depth==Cf(t,t.pos-1)?UJ:yX);else{let i=t.pos;for(;;)if(Tw(t.next)){if(t.pos==i)return;t.advance()}else if(t.next==33)kX(t);else if(t.next==38)Ew(t);else if(t.next==42){Ew(t);break}else if(t.next==39||t.next==34){if(Pw(t,!0))break;return}else if(t.next==91||t.next==123){if(!ree(t))return;break}else{SX(t,!0,!1,0);break}for(;Tw(t.next);)t.advance();if(t.next==58){if(t.pos==i&&e.canShift(FJ))return;let n=t.peek(1);Oa(n)&&t.acceptTokenTo(e.context.type==kw&&e.context.depth==Cf(t,i)?NJ:xX,i)}}},{contextual:!0});function nee(t){return t>32&&t<127&&t!=34&&t!=37&&t!=44&&t!=60&&t!=62&&t!=92&&t!=94&&t!=96&&t!=123&&t!=124&&t!=125}function mX(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function gX(t,e){return t.next==37?(t.advance(),mX(t.next)&&t.advance(),mX(t.next)&&t.advance(),!0):nee(t.next)||e&&t.next==44?(t.advance(),!0):!1}function kX(t){if(t.advance(),t.next==60){for(t.advance();;)if(!gX(t,!0)){t.next==62&&t.advance();break}}else for(;gX(t,!1););}function Ew(t){for(t.advance();!Oa(t.next)&&Hp(t.tag)!="f";)t.advance()}function Pw(t,e){let i=t.next,n=!1,r=t.pos;for(t.advance();;){let o=t.next;if(o<0)break;if(t.advance(),o==i)if(o==39)if(t.next==39)t.advance();else break;else break;else if(o==92&&i==34)t.next>=0&&t.advance();else if(uo(o)){if(e)return!1;n=!0}else if(e&&t.pos>=r+1024)return!1}return!n}function ree(t){for(let e=[],i=t.pos+1024;;)if(t.next==91||t.next==123)e.push(t.next),t.advance();else if(t.next==39||t.next==34){if(!Pw(t,!0))return!1}else if(t.next==93||t.next==125){if(e[e.length-1]!=t.next-2)return!1;if(e.pop(),t.advance(),!e.length)return!0}else{if(t.next<0||t.pos>i||uo(t.next))return!1;t.advance()}}var oee="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function Hp(t){return t<33?"u":t>125?"s":oee[t-33]}function ww(t,e){let i=Hp(t);return i!="u"&&!(e&&i=="f")}function SX(t,e,i,n){if(Hp(t.next)=="s"||(t.next==63||t.next==58||t.next==45)&&ww(t.peek(1),i))t.advance();else return!1;let r=t.pos;for(;;){let o=t.next,s=0,a=n+1;for(;wX(o);){if(uo(o)){if(e)return!1;a=0}else a++;o=t.peek(++s)}if(!(o>=0&&(o==58?ww(t.peek(s+1),i):o==35?t.peek(s-1)!=32:ww(o,i)))||!i&&a<=n||a==0&&!i&&(Ml(t,45,s)||Ml(t,46,s)))break;if(e&&Hp(o)=="f")return!1;for(let c=s;c>=0;c--)t.advance();if(e&&t.pos>r+1024)return!1}return!0}var see=new ze((t,e)=>{if(t.next==33)kX(t),t.acceptToken(ZJ);else if(t.next==38||t.next==42){let i=t.next==38?WJ:VJ;Ew(t),t.acceptToken(i)}else t.next==39||t.next==34?(Pw(t,!1),t.acceptToken(jJ)):SX(t,!1,e.context.type==Pf,e.context.depth)&&t.acceptToken(qJ)}),aee=new ze((t,e)=>{let i=e.context.type==Sw?e.context.depth:-1,n=t.pos;e:for(;;){let r=0,o=t.next;for(;o==32;)o=t.peek(++r);if(!r&&(Ml(t,45,r)||Ml(t,46,r))||!uo(o)&&(i<0&&(i=Math.max(e.context.depth+1,r)),r<i))break;for(;;){if(t.next<0)break e;let s=uo(t.next);if(t.advance(),s)continue e;n=t.pos}}t.acceptTokenTo(vX,n)}),lee=Et({DirectiveName:E.keyword,DirectiveContent:E.attributeValue,"DirectiveEnd DocEnd":E.meta,QuotedLiteral:E.string,BlockLiteralHeader:E.special(E.string),BlockLiteralContent:E.content,Literal:E.content,"Key/Literal Key/QuotedLiteral":E.definition(E.propertyName),"Anchor Alias":E.labelName,Tag:E.typeName,Comment:E.lineComment,": , -":E.separator,"?":E.punctuation,"[ ]":E.squareBracket,"{ }":E.brace}),TX=jt.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQ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PPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"\u26A0 DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:eee,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[lee],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$Q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OPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"\u26A0 Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),uee=Bt.define({name:"yaml",parser:TX.configure({props:[Nt.add({Stream:t=>{for(let e=t.node.resolve(t.pos,-1);e&&e.to>=t.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return t.baseIndentFor(e);if(e.name=="BlockLiteral")return t.baseIndentFor(e)+t.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return t.column(e.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let i=t.column(e.from,1);if(i==t.lineIndent(e.from,1))return i;if(e.to>t.pos)return null}}return null},FlowMapping:mi({closing:"}"}),FlowSequence:mi({closing:"]"})}),qt.add({"FlowMapping FlowSequence":Pn,"Item Pair BlockLiteral":(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function EX(){return new gt(uee)}var aSe=Bt.define({name:"yaml-frontmatter",parser:cee.configure({props:[Et({DashLine:E.meta})]})});var fee=["-type","-spec","-export_type","-opaque"],hee=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],dee=/[\->,;]/,Oee=["->",";",","],pee=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],mee=/[\+\-\*\/<>=\|:!]/,gee=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],bee=/[<\(\[\{]/,_w=["<<","(","[","{"],yee=/[>\)\]\}]/,AX=["}","]",")",">>"],xee=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],vee=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],Gp=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,wee=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function kee(t,e){if(e.in_string)return e.in_string=!QX(t),it(e,t,"string");if(e.in_atom)return e.in_atom=!_X(t),it(e,t,"atom");if(t.eatSpace())return it(e,t,"whitespace");if(!Qf(e)&&t.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return Ei(t.current(),fee)?it(e,t,"type"):it(e,t,"attribute");var i=t.next();if(i=="%")return t.skipToEnd(),it(e,t,"comment");if(i==":")return it(e,t,"colon");if(i=="?")return t.eatSpace(),t.eatWhile(Gp),it(e,t,"macro");if(i=="#")return t.eatSpace(),t.eatWhile(Gp),it(e,t,"record");if(i=="$")return t.next()=="\\"&&!t.match(wee)?it(e,t,"error"):it(e,t,"number");if(i==".")return it(e,t,"dot");if(i=="'"){if(!(e.in_atom=!_X(t))){if(t.match(/\s*\/\s*[0-9]/,!1))return t.match(/\s*\/\s*[0-9]/,!0),it(e,t,"fun");if(t.match(/\s*\(/,!1)||t.match(/\s*:/,!1))return it(e,t,"function")}return it(e,t,"atom")}if(i=='"')return e.in_string=!QX(t),it(e,t,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(i))return t.eatWhile(Gp),it(e,t,"variable");if(/[a-z_ß-öø-ÿ]/.test(i)){if(t.eatWhile(Gp),t.match(/\s*\/\s*[0-9]/,!1))return t.match(/\s*\/\s*[0-9]/,!0),it(e,t,"fun");var n=t.current();return Ei(n,hee)?it(e,t,"keyword"):Ei(n,pee)?it(e,t,"operator"):t.match(/\s*\(/,!1)?Ei(n,vee)&&(Qf(e).token!=":"||Qf(e,2).token=="erlang")?it(e,t,"builtin"):Ei(n,xee)?it(e,t,"guard"):it(e,t,"function"):See(t)==":"?n=="erlang"?it(e,t,"builtin"):it(e,t,"function"):Ei(n,["true","false"])?it(e,t,"boolean"):it(e,t,"atom")}var r=/[0-9]/,o=/[0-9a-zA-Z]/;return r.test(i)?(t.eatWhile(r),t.eat("#")?t.eatWhile(o)||t.backUp(1):t.eat(".")&&(t.eatWhile(r)?t.eat(/[eE]/)&&(t.eat(/[-+]/)?t.eatWhile(r)||t.backUp(2):t.eatWhile(r)||t.backUp(1)):t.backUp(1)),it(e,t,"number")):CX(t,bee,_w)?it(e,t,"open_paren"):CX(t,yee,AX)?it(e,t,"close_paren"):PX(t,dee,Oee)?it(e,t,"separator"):PX(t,mee,gee)?it(e,t,"operator"):it(e,t,null)}function CX(t,e,i){if(t.current().length==1&&e.test(t.current())){for(t.backUp(1);e.test(t.peek());)if(t.next(),Ei(t.current(),i))return!0;t.backUp(t.current().length-1)}return!1}function PX(t,e,i){if(t.current().length==1&&e.test(t.current())){for(;e.test(t.peek());)t.next();for(;0<t.current().length;){if(Ei(t.current(),i))return!0;t.backUp(1)}t.next()}return!1}function QX(t){return $X(t,'"',"\\")}function _X(t){return $X(t,"'","\\")}function $X(t,e,i){for(;!t.eol();){var n=t.next();if(n==e)return!0;n==i&&t.next()}return!1}function See(t){var e=t.match(/^\s*([^\s%])/,!1);return e?e[1]:""}function Ei(t,e){return-1<e.indexOf(t)}function it(t,e,i){switch(Cee(t,Tee(i,e)),i){case"atom":return"atom";case"attribute":return"attribute";case"boolean":return"atom";case"builtin":return"builtin";case"close_paren":return null;case"colon":return null;case"comment":return"comment";case"dot":return null;case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"macroName";case"number":return"number";case"open_paren":return null;case"operator":return"operator";case"record":return"bracket";case"separator":return null;case"string":return"string";case"type":return"def";case"variable":return"variable";default:return null}}function XX(t,e,i,n){return{token:t,column:e,indent:i,type:n}}function Tee(t,e){return XX(e.current(),e.column(),e.indentation(),t)}function Eee(t){return XX(t,0,0,t)}function Qf(t,e){var i=t.tokenStack.length,n=e||1;return i<n?!1:t.tokenStack[i-n]}function Cee(t,e){e.type=="comment"||e.type=="whitespace"||(t.tokenStack=Pee(t.tokenStack,e),t.tokenStack=Qee(t.tokenStack))}function Pee(t,e){var i=t.length-1;return 0<i&&t[i].type==="record"&&e.type==="dot"?t.pop():(0<i&&t[i].type==="group"&&t.pop(),t.push(e)),t}function Qee(t){if(!t.length)return t;var e=t.length-1;if(t[e].type==="dot")return[];if(e>1&&t[e].type==="fun"&&t[e-1].token==="fun")return t.slice(0,e-1);switch(t[e].token){case"}":return Fn(t,{g:["{"]});case"]":return Fn(t,{i:["["]});case")":return Fn(t,{i:["("]});case">>":return Fn(t,{i:["<<"]});case"end":return Fn(t,{i:["begin","case","fun","if","receive","try"]});case",":return Fn(t,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return Fn(t,{r:["when"],m:["try","if","case","receive"]});case";":return Fn(t,{E:["case","fun","if","receive","try","when"]});case"catch":return Fn(t,{e:["try"]});case"of":return Fn(t,{e:["case"]});case"after":return Fn(t,{e:["receive","try"]});default:return t}}function Fn(t,e){for(var i in e)for(var n=t.length-1,r=e[i],o=n-1;-1<o;o--)if(Ei(t[o].token,r)){var s=t.slice(0,o);switch(i){case"m":return s.concat(t[o]).concat(t[n]);case"r":return s.concat(t[n]);case"i":return s;case"g":return s.concat(Eee("group"));case"E":return s.concat(t[o]);case"e":return s.concat(t[o])}}return i=="E"?[]:t}function _ee(t,e,i){var n,r=Aee(e),o=Qf(t,1),s=Qf(t,2);return t.in_string||t.in_atom?null:s?o.token=="when"?o.column+i.unit:r==="when"&&s.type==="function"?s.indent+i.unit:r==="("&&o.token==="fun"?o.column+3:r==="catch"&&(n=Qw(t,["try"]))?n.column:Ei(r,["end","after","of"])?(n=Qw(t,["begin","case","fun","if","receive","try"]),n?n.column:null):Ei(r,AX)?(n=Qw(t,_w),n?n.column:null):Ei(o.token,[",","|","||"])||Ei(r,[",","|","||"])?(n=$ee(t),n?n.column+n.token.length:i.unit):o.token=="->"?Ei(s.token,["receive","case","if","try"])?s.column+i.unit+i.unit:s.column+i.unit:Ei(o.token,_w)?o.column+o.token.length:(n=Xee(t),pa(n)?n.column+i.unit:0):0}function Aee(t){var e=t.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return pa(e)&&e.index===0?e[0]:""}function $ee(t){var e=t.tokenStack.slice(0,-1),i=Kp(e,"type",["open_paren"]);return pa(e[i])?e[i]:!1}function Xee(t){var e=t.tokenStack,i=Kp(e,"type",["open_paren","separator","keyword"]),n=Kp(e,"type",["operator"]);return pa(i)&&pa(n)&&i<n?e[i+1]:pa(i)?e[i]:!1}function Qw(t,e){var i=t.tokenStack,n=Kp(i,"token",e);return pa(i[n])?i[n]:!1}function Kp(t,e,i){for(var n=t.length-1;-1<n;n--)if(Ei(t[n][e],i))return n;return!1}function pa(t){return t!==!1&&t!=null}var RX={name:"erlang",startState(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:kee,indent:_ee,languageData:{commentTokens:{line:"%"}}};function LX(t){IX(t,"start");var e={},i=t.languageData||{},n=!1;for(var r in t)if(r!=i&&t.hasOwnProperty(r))for(var o=e[r]=[],s=t[r],a=0;a<s.length;a++){var l=s[a];o.push(new Iee(l,t)),(l.indent||l.dedent)&&(n=!0)}return{name:i.name,startState:function(){return{state:"start",pending:null,indent:n?[]:null}},copyState:function(c){var u={state:c.state,pending:c.pending,indent:c.indent&&c.indent.slice(0)};return c.stack&&(u.stack=c.stack.slice(0)),u},token:Dee(e),indent:zee(e,i),languageData:i}}function IX(t,e){if(!t.hasOwnProperty(e))throw new Error("Undefined state "+e+" in simple mode")}function Ree(t,e){if(!t)return/(?:)/;var i="";return t instanceof RegExp?(t.ignoreCase&&(i="i"),t=t.source):t=String(t),new RegExp((e===!1?"":"^")+"(?:"+t+")",i)}function Lee(t){if(!t)return null;if(t.apply)return t;if(typeof t=="string")return t.replace(/\./g," ");for(var e=[],i=0;i<t.length;i++)e.push(t[i]&&t[i].replace(/\./g," "));return e}function Iee(t,e){(t.next||t.push)&&IX(e,t.next||t.push),this.regex=Ree(t.regex),this.token=Lee(t.token),this.data=t}function Dee(t){return function(e,i){if(i.pending){var n=i.pending.shift();return i.pending.length==0&&(i.pending=null),e.pos+=n.text.length,n.token}for(var r=t[i.state],o=0;o<r.length;o++){var s=r[o],a=(!s.data.sol||e.sol())&&e.match(s.regex);if(a){s.data.next?i.state=s.data.next:s.data.push?((i.stack||(i.stack=[])).push(i.state),i.state=s.data.push):s.data.pop&&i.stack&&i.stack.length&&(i.state=i.stack.pop()),s.data.indent&&i.indent.push(e.indentation()+e.indentUnit),s.data.dedent&&i.indent.pop();var l=s.token;if(l&&l.apply&&(l=l(a)),a.length>2&&s.token&&typeof s.token!="string"){i.pending=[];for(var c=2;c<a.length;c++)a[c]&&i.pending.push({text:a[c],token:s.token[c-1]});return e.backUp(a[0].length-(a[1]?a[1].length:0)),l[0]}else return l&&l.join?l[0]:l}}return e.next(),null}}function zee(t,e){return function(i,n){if(i.indent==null||e.dontIndentStates&&e.dontIndentStates.indexOf(i.state)>-1)return null;var r=i.indent.length-1,o=t[i.state];e:for(;;){for(var s=0;s<o.length;s++){var a=o[s];if(a.data.dedent&&a.data.dedentIfLineStart!==!1){var l=a.regex.exec(n);if(l&&l[0]){r--,(a.next||a.push)&&(o=t[a.next||a.push]),n=n.slice(l[0].length);continue e}}}break}return r<0?0:i.indent[r]}}var DX="from",Uee=new RegExp("^(\\s*)\\b("+DX+")\\b","i"),zX=["run","cmd","entrypoint","shell"],Mee=new RegExp("^(\\s*)("+zX.join("|")+")(\\s+\\[)","i"),UX="expose",Nee=new RegExp("^(\\s*)("+UX+")(\\s+)","i"),qee=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],jee=[DX,UX].concat(zX).concat(qee),MX="("+jee.join("|")+")",Wee=new RegExp("^(\\s*)"+MX+"(\\s*)(#.*)?$","i"),Vee=new RegExp("^(\\s*)"+MX+"(\\s+)","i"),NX=LX({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:Uee,token:[null,"keyword"],sol:!0,next:"from"},{regex:Wee,token:[null,"keyword",null,"error"],sol:!0},{regex:Mee,token:[null,"keyword",null],sol:!0,next:"array"},{regex:Nee,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:Vee,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}});var Aw={};function $w(t,e){for(var i=0;i<e.length;i++)Aw[e[i]]=t}var qX=["true","false"],jX=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],WX=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];$w("atom",qX);$w("keyword",jX);$w("builtin",WX);function Zee(t,e){if(t.eatSpace())return null;var i=t.sol(),n=t.next();if(n==="\\")return t.next(),null;if(n==="'"||n==='"'||n==="`")return e.tokens.unshift(Jp(n,n==="`"?"quote":"string")),Nl(t,e);if(n==="#")return i&&t.eat("!")?(t.skipToEnd(),"meta"):(t.skipToEnd(),"comment");if(n==="$")return e.tokens.unshift(VX),Nl(t,e);if(n==="+"||n==="=")return"operator";if(n==="-")return t.eat("-"),t.eatWhile(/\w/),"attribute";if(n=="<"){if(t.match("<<"))return"operator";var r=t.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);if(r)return e.tokens.unshift(Yee(r[1]||r[2])),"string.special"}if(/\d/.test(n)&&(t.eatWhile(/\d/),t.eol()||!/\w/.test(t.peek())))return"number";t.eatWhile(/[\w-]/);var o=t.current();return t.peek()==="="&&/\w+/.test(o)?"def":Aw.hasOwnProperty(o)?Aw[o]:null}function Jp(t,e){var i=t=="("?")":t=="{"?"}":t;return function(n,r){for(var o,s=!1;(o=n.next())!=null;){if(o===i&&!s){r.tokens.shift();break}else if(o==="$"&&!s&&t!=="'"&&n.peek()!=i){s=!0,n.backUp(1),r.tokens.unshift(VX);break}else{if(!s&&t!==i&&o===t)return r.tokens.unshift(Jp(t,e)),Nl(n,r);if(!s&&/['"]/.test(o)&&!/['"]/.test(t)){r.tokens.unshift(Bee(o,"string")),n.backUp(1);break}}s=!s&&o==="\\"}return e}}function Bee(t,e){return function(i,n){return n.tokens[0]=Jp(t,e),i.next(),Nl(i,n)}}var VX=function(t,e){e.tokens.length>1&&t.eat("$");var i=t.next();return/['"({]/.test(i)?(e.tokens[0]=Jp(i,i=="("?"quote":i=="{"?"def":"string"),Nl(t,e)):(/\d/.test(i)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function Yee(t){return function(e,i){return e.sol()&&e.string==t&&i.tokens.shift(),e.skipToEnd(),"string.special"}}function Nl(t,e){return(e.tokens[0]||Zee)(t,e)}var ZX={name:"shell",startState:function(){return{tokens:[]}},token:function(t,e){return Nl(t,e)},languageData:{autocomplete:qX.concat(jX,WX),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}};var BX={name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(t,e){if(!e.inString&&(t.peek()=='"'||t.peek()=="'")&&(e.stringType=t.peek(),t.next(),e.inString=!0),t.sol()&&e.inArray===0&&(e.lhs=!0),e.inString){for(;e.inString&&!t.eol();)t.peek()===e.stringType?(t.next(),e.inString=!1):t.peek()==="\\"?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return e.lhs?"property":"string"}else{if(e.inArray&&t.peek()==="]")return t.next(),e.inArray--,"bracket";if(e.lhs&&t.peek()==="["&&t.skipTo("]"))return t.next(),t.peek()==="]"&&t.next(),"atom";if(t.peek()==="#")return t.skipToEnd(),"comment";if(t.eatSpace())return null;if(e.lhs&&t.eatWhile(function(i){return i!="="&&i!=" "}))return"property";if(e.lhs&&t.peek()==="=")return t.next(),e.lhs=!1,null;if(!e.lhs&&t.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!e.lhs&&(t.match("true")||t.match("false")))return"atom";if(!e.lhs&&t.peek()==="[")return e.inArray++,t.next(),"bracket";if(!e.lhs&&t.match(/^\-?\d+(?:\.\d+)?/))return"number";t.eatSpace()||t.next()}return null},languageData:{commentTokens:{line:"#"}}};var Fee=189,Hee=190,Gee=191,YX=192,FX=193,HX=194,GX=195,KX=1,JX=2,eR=196,Kee=197,Jee=198,ete=3,tte=4,ite=5,nte=6,rte=7,ote=8,ste=9,ate=10,lte=11,cte=12,ute=13,fte=14,hte=15,dte=16,Ote=17,pte=18,mte=19,gte=20,bte=21,yte=22,xte=23,vte=199,wte=200,tR=9,rm=10,Mw=13,iR=32,om=33,_f=34,Nw=35,kte=37,em=38,Af=39,nR=40,Rw=41,Lw=42,jl=43,Ste=44,ls=45,ba=46,kr=47,rR=48,oR=57,fo=58,sR=59,tm=60,ss=61,zi=62,qw=63,aR=64,Tte=65,Ete=90,lR=91,nm=92,Iw=93,im=94,cR=97,Xw=99,ql=100,Dw=101,Cte=104,zw=105,Pte=108,Qte=109,ma=110,cs=111,_te=112,Ate=114,jw=116,$te=117,Xte=119,Rte=121,Lte=122,uR=123,ga=124,Uw=125,$f=126,Ite=[{token:tte,supportsInterpol:!0,endDelimiter:Af,delimiterLength:1},{token:ete,supportsInterpol:!0,endDelimiter:_f,delimiterLength:1},{token:nte,supportsInterpol:!0,endDelimiter:Af,delimiterLength:3},{token:ite,supportsInterpol:!0,endDelimiter:_f,delimiterLength:3},{token:rte,supportsInterpol:!0,endDelimiter:Rw,delimiterLength:1},{token:ote,supportsInterpol:!0,endDelimiter:Uw,delimiterLength:1},{token:ste,supportsInterpol:!0,endDelimiter:Iw,delimiterLength:1},{token:ate,supportsInterpol:!0,endDelimiter:zi,delimiterLength:1},{token:lte,supportsInterpol:!0,endDelimiter:ga,delimiterLength:1},{token:cte,supportsInterpol:!0,endDelimiter:kr,delimiterLength:1},{token:fte,supportsInterpol:!1,endDelimiter:Af,delimiterLength:1},{token:ute,supportsInterpol:!1,endDelimiter:_f,delimiterLength:1},{token:dte,supportsInterpol:!1,endDelimiter:Af,delimiterLength:3},{token:hte,supportsInterpol:!1,endDelimiter:_f,delimiterLength:3},{token:Ote,supportsInterpol:!1,endDelimiter:Rw,delimiterLength:1},{token:pte,supportsInterpol:!1,endDelimiter:Uw,delimiterLength:1},{token:mte,supportsInterpol:!1,endDelimiter:Iw,delimiterLength:1},{token:gte,supportsInterpol:!1,endDelimiter:zi,delimiterLength:1},{token:bte,supportsInterpol:!1,endDelimiter:ga,delimiterLength:1},{token:yte,supportsInterpol:!1,endDelimiter:kr,delimiterLength:1}],Dte=new ze((t,e)=>{let i=Ite.find(n=>e.canShift(n.token));zte(t,i)&&t.acceptToken(i.token)});function zte(t,e){let i=e.delimiterLength===3;for(let n=!1;;n=!0){let r=!1;if(dR(t.next))for(t.advance(),n=!0,r=!0;un(t.next);)t.advance();if(t.next===e.endDelimiter){let o=1;for(;o<e.delimiterLength&&t.peek(o)===e.endDelimiter;)o++;if(o===e.delimiterLength&&(!i||r))return n;t.advance(o)}else{if(t.next===Nw){if(e.supportsInterpol&&t.peek(1)===uR)return n}else if(t.next===nm){if(!(i&&t.peek(1)===rm)){if(e.supportsInterpol||t.peek(1)===e.endDelimiter)return n}}else if(t.next===-1)return n;t.advance()}}return!1}var Ute=new ze((t,e)=>{let i=0;for(;cR<=t.next&&t.next<=Lte||Tte<=t.next&&t.next<=Ete||rR<=t.next&&t.next<=oR;)t.advance(),i++;i>0&&t.acceptToken(xte)}),Mte=new ze((t,e)=>{un(t.peek(-1))||(e.canShift(KX)&&t.next===nR?(t.advance(),t.acceptToken(KX)):e.canShift(JX)&&t.next===lR?(t.advance(),t.acceptToken(JX)):e.canShift(eR)&&t.next===fo&&(t.advance(),un(t.next)&&t.acceptToken(eR)))}),Nte=new ze((t,e)=>{if(Xf(t.next)){for(t.advance();Xf(t.next);)t.advance();if(t.next===jl){let i=t.peek(1);i!==jl&&i!==fo&&i!==kr&&!un(i)&&t.acceptToken(YX)}else if(t.next===ls){let i=t.peek(1);i!==ls&&i!==zi&&i!==fo&&i!==kr&&!un(i)&&t.acceptToken(YX)}}}),fR=/[\p{ID_Start}_]/u,hR=/[\p{ID_Continue}@]/u,qte=new ze((t,e)=>{if(t.next===fo){t.advance();let[i,n]=Wl(t);if(fR.test(i)){do t.advance(n),[i,n]=Wl(t);while(hR.test(i));(t.next===qw||t.next===om)&&t.advance(),t.acceptToken(Kee)}}}),jte=new ze((t,e)=>{let[i,n]=Wl(t);if(fR.test(i)){do t.advance(n),[i,n]=Wl(t);while(hR.test(i));(t.next===qw||t.next===om)&&t.advance(),t.next===fo&&(t.advance(),un(t.next)&&t.acceptToken(Jee))}}),Wte=/[_\p{Ll}\p{Lm}\p{Lo}\p{Nl}\u1885\u1886\u2118\u212E\u309B\u309C]/u,Vte=/[\p{ID_Continue}]/u,Zte=new ze((t,e)=>{let[i,n]=Wl(t),o=i==="_"?wte:vte;if(Wte.test(i)){do t.advance(n),[i,n]=Wl(t);while(Vte.test(i));(t.next===qw||t.next===om)&&t.advance(),t.acceptToken(o)}else t.next===ba&&(t.advance(),t.next===ba&&(t.advance(),t.next===ba&&(t.advance(),as(t.next)&&t.acceptToken(o))))}),Bte=new ze((t,e)=>{if(t.next===ma&&(t.advance(),t.next===cs&&(t.advance(),t.next===jw))){for(t.advance();Xf(t.next);)t.advance();t.next===zw&&(t.advance(),t.next===ma&&(t.advance(),as(t.next)&&t.acceptToken(Fee)))}}),Yte=new ze((t,e)=>{t.next===kr&&(t.advance(),t.next===kr&&(t.advance(),t.acceptToken(Hee)))}),Fte=new ze((t,e)=>{t.next===aR&&(t.advance(),(t.next===ql&&t.peek(1)===cs&&t.peek(2)===Xw&&un(t.peek(3))||t.next===Qte&&t.peek(1)===cs&&t.peek(2)===ql&&t.peek(3)===$te&&t.peek(4)===Pte&&t.peek(5)===Dw&&t.peek(6)===ql&&t.peek(7)===cs&&t.peek(8)===Xw&&un(t.peek(9))||t.next===jw&&t.peek(1)===Rte&&t.peek(2)===_te&&t.peek(3)===Dw&&t.peek(4)===ql&&t.peek(5)===cs&&t.peek(6)===Xw&&un(t.peek(7)))&&t.acceptToken(Gee))}),Hte=new ze((t,e)=>{if(t.next===Mw&&t.advance(),t.next===rm){t.advance();let i=0,n=!1;for(;un(t.peek(i));)n=n||dR(t.peek(i)),i++;if(e.canShift(GX)&&t.peek(i)===ql&&t.peek(i+1)===cs&&as(t.peek(i+2))){t.acceptToken(GX);return}if(e.canShift(HX)&&Gte(t,i)){t.acceptToken(HX);return}e.canShift(FX)&&t.peek(i)!==sR&&t.peek(i)!==Nw&&!n&&t.acceptToken(FX)}});function Gte(t,e=0){if(t.peek(e)===em){if(e++,t.peek(e)===em)return e++,t.peek(e)===em,Ue(t,e)}else{if(t.peek(e)===ss)return t.peek(e)===ss?(e++,t.peek(e)===ss&&e++,Ue(t,e)):t.peek(e)===$f?(e++,Ue(t,e)):(t.peek(1)===zi&&e++,Ue(t,e));if(t.peek(e)===fo){if(e++,t.peek(e)===fo)return e++,t.peek(e)===fo?!1:Ue(t,e)}else if(t.peek(e)===jl){if(e++,t.peek(e)===jl)return e++,t.peek(e)===jl&&e++,Ue(t,e)}else if(t.peek(e)===ls){if(e++,t.peek(e)===ls)return e++,t.peek(e)===ls&&e++,Ue(t,e);if(t.peek(e)===zi)return e++,Ue(t,e)}else if(t.peek(e)===tm){if(e++,t.peek(e)===ss||t.peek(e)===ls||t.peek(e)===zi)return e++,Ue(t,e);if(t.peek(e)===$f)return e++,t.peek(e)===zi&&e++,Ue(t,e);if(t.peek(e)===ga){if(e++,t.peek(e)===zi)return e++,Ue(t,e)}else if(t.peek(e)===tm){if(e++,t.peek(e)===tm||t.peek(e)===$f)return e++,Ue(t,e)}else return Ue(t,e)}else if(t.peek(e)===zi){if(e++,t.peek(e)===ss)return e++,Ue(t,e);if(t.peek(e)===zi){if(e++,t.peek(e)===zi)return e++,Ue(t,e)}else return Ue(t,e)}else if(t.peek(e)===im){if(e++,t.peek(e)===im&&(e++,t.peek(e)===im))return e++,Ue(t,e)}else if(t.peek(e)===om){if(e++,t.peek(e)===ss)return e++,t.peek(e)===ss&&e++,Ue(t,e)}else if(t.peek(e)===$f){if(e++,t.peek(e)===zi)return e++,t.peek(e)===zi&&e++,Ue(t,e)}else{if(t.peek(e)===ga)return e++,t.peek(e)===ga?(e++,t.peek(e)===ga&&e++,Ue(t,e)):(t.peek(e)===zi&&e++,Ue(t,e));if(t.peek(e)===Lw)return e++,t.peek(e)===Lw&&e++,Ue(t,e);if(t.peek(e)===kr)return e++,t.peek(e)===kr&&e++,Ue(t,e);if(t.peek(e)===ba)return e++,t.peek(e)===ba?(e++,t.peek(e)===ba?!1:Ue(t,e)):Ue(t,e);if(t.peek(e)===nm){if(e++,t.peek(e)===nm)return e++,Ue(t,e)}else if(t.peek(e)===Xte){if(e++,t.peek(e)===Cte&&(e++,t.peek(e)===Dw&&(e++,t.peek(e)===ma)))return e++,as(t.peek(e))&&Ue(t,e)}else if(t.peek(e)===cR){if(e++,t.peek(e)===ma&&(e++,t.peek(e)===ql))return e++,as(t.peek(e))&&Ue(t,e)}else if(t.peek(e)===cs){if(e++,t.peek(e)===Ate)return e++,as(t.peek(e))&&Ue(t,e)}else if(t.peek(e)===zw){if(e++,t.peek(e)===ma)return e++,as(t.peek(e))&&Ue(t,e)}else if(t.peek(e)===ma&&(e++,t.peek(e)===cs&&(e++,t.peek(e)===jw))){for(e++;Xf(t.peek(e));)e++;if(t.peek(e)===zw&&(e++,t.peek(e)===ma))return e++,as(t.peek(e))&&Ue(t,e)}}}}function Ue(t,e){if(t.peek(e)===fo)return!un(t.peek(e+1));for(;Xf(t.peek(e));)e++;if(t.peek(e)===kr){for(e++;un(t.peek(e));)e++;if(Kte(t.peek(e)))return!1}return!0}function Xf(t){return t===iR||t===tR}function un(t){return t===iR||t===tR||t===rm||t===Mw}function dR(t){return t===rm||t===Mw}function Kte(t){return rR<=t&&t<=oR}var Jte=new Set([aR,ba,jl,ls,im,ls,Lw,kr,tm,zi,ga,$f,ss,em,nm,kte,uR,Uw,lR,Iw,nR,Rw,_f,Af,Ste,sR,Nw]);function as(t){return Jte.has(t)?!0:un(t)||t===-1}function Wl(t){let e=t.next;if(55296<=e&&e<=56319){let i=t.peek(1);if(56320<=i&&i<=57343)return[String.fromCharCode(e,i),2]}return[String.fromCharCode(e),1]}var eie=Et({"Atom QuotedAtom QuotedAtom/QuotedContent Keyword QuotedKeyword QuotedKeyword/QuotedContent":E.atom,Alias:E.namespace,Boolean:E.bool,Nil:E.null,Integer:E.integer,Float:E.float,Char:E.character,Identifier:E.variableName,Comment:E.lineComment,SpecialIdentifier:E.special(E.variableName),UnderscoredIdentifier:E.comment,"String String/QuotedContent":E.string,"Charlist Charlist/QuotedContent":E.string,"StringSigil StringSigil/SigilName StringSigil/SigilModifiers StringSigil/QuotedContent StringSigil/{ StringSigil/} StringSigil/[ StringSigil/] StringSigil/( StringSigil/)":E.string,"Sigil Sigil/SigilName Sigil/SigilModifiers Sigil/QuotedContent Sigil/{ Sigil/} Sigil/[ Sigil/] Sigil/( Sigil/)":E.special(E.string),EscapeSequence:E.escape,"Interpolation/#{ Interpolation/}":E.special(E.brace),"( )":E.paren,"[ ]":E.squareBracket,"% { }":E.brace,", ;":E.separator,"<< >>":E.angleBracket,"fn do end catch rescue after else":E.keyword,Operator:E.operator,WordOperator:E.keyword,"CaptureOperand/Integer":E.operator,"AtOperator/Operator AtOperator/Identifier AtOperator/Boolean AtOperator/Nil AtOperator/Call/Identifier":E.attributeName,"DocAtOperator/Operator DocAtOperator/Identifier DocAtOperator/Call/Identifier DocAtOperator/Call/Arguments/Boolean DocAtOperator/Call/Arguments/String DocAtOperator/Call/Arguments/String/QuotedContent DocAtOperator/Call/Arguments/Charlist DocAtOperator/Call/Arguments/Charlist/QuotedContent DocAtOperator/Call/Arguments/StringSigil DocAtOperator/Call/Arguments/StringSigil/QuotedContent DocAtOperator/Call/Arguments/StringSigil/SigilName DocAtOperator/Call/Arguments/StringSigil/SigilModifiers DocAtOperator/Call/Arguments/StringSigil/{ DocAtOperator/Call/Arguments/StringSigil/} DocAtOperator/Call/Arguments/StringSigil/[ DocAtOperator/Call/Arguments/StringSigil/] DocAtOperator/Call/Arguments/StringSigil/( DocAtOperator/Call/Arguments/StringSigil/)":E.docString,"Call/Identifier Call/UnderscoredIdentifier":E.function(E.variableName),"Call/Dot/Right/Identifier Call/Dot/Right/SpecialIdentifier Call/Dot/Right/UnderscoredIdentifier":E.function(E.variableName),"Call/Dot/Atom":E.namespace,"PipeOperator/Right/Identifier":E.function(E.variableName),"FunctionDefinitionCall/Identifier":E.keyword,"FunctionDefinitionCall/Arguments/Identifier FunctionDefinitionCall/Arguments/UnderscoredIdentifier FunctionDefinitionCall/Arguments/SpecialIdentifier":E.definition(E.function(E.variableName)),"FunctionDefinitionCall/Arguments/Call/Identifier FunctionDefinitionCall/Arguments/Call/UnderscoredIdentifier FunctionDefinitionCall/Arguments/Call/SpecialIdentifier":E.definition(E.function(E.variableName)),"FunctionDefinitionCall/Arguments/WhenOperator/Identifier FunctionDefinitionCall/Arguments/WhenOperator/UnderscoredIdentifier FunctionDefinitionCall/Arguments/WhenOperator/SpecialIdentifier":E.definition(E.function(E.variableName)),"FunctionDefinitionCall/Arguments/WhenOperator/Call/Identifier FunctionDefinitionCall/Arguments/WhenOperator/Call/UnderscoredIdentifier FunctionDefinitionCall/Arguments/WhenOperator/Call/SpecialIdentifier":E.definition(E.function(E.variableName)),"FunctionDefinitionCall/Arguments/PipeOperator/Right/Identifier":E.variableName,"KernelCall/Identifier":E.keyword}),tie={__proto__:null,when:432,def:446,defdelegate:448,defguard:450,defguardp:452,defmacro:454,defmacrop:456,defn:458,defnp:460,defp:462,defexception:464,defimpl:466,defmodule:468,defoverridable:470,defprotocol:472,defstruct:474,alias:476,case:478,cond:480,for:482,if:484,import:486,quote:488,raise:490,receive:492,require:494,reraise:496,super:498,throw:500,try:502,unless:504,unquote:506,unquote_splicing:508,use:510,with:512,true:514,false:516,nil:518,not:588,do:600,after:604,rescue:608,catch:612,else:616,end:618,and:624,in:626,or:628,fn:630},iie={__proto__:null,__MODULE__:436,__DIR__:438,__ENV__:440,__CALLER__:442,__STACKTRACE__:444},OR=jt.deserialize({version:14,states:"$CWQ'_Q!7uOOP'iOMhOOOOQ<R'#Gq'#GqO'nQ##|O'#GxO'|Q##|O'#GzO([Q!:kO'#CvOOQ<u'#D['#D[OOQ<u'#D^'#D^OOQ<u'#G}'#G}OOQ8a'#Dg'#DgOOQ8a'#Hz'#HzO.gQ##|O'#H}O.uQ##|O'#IPO/TQ!LbO'#DkOOQ8a'#IR'#IRO/cQ!:kO'#DuO/pQ!:kO'#DwO/}Q!:kO'#DxO0[Q!7uO'#FaO6WQ!6UO'#D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f1g1h1i1j1k1l1m1n1o1p1q1r1s1t1u1v1w1x1y1z1{1|1}2O2P2Q2R2S2T2U2V2W2X2Y2Z2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2q2r2s2t2u2v2w2x2y2z2{2|2}3O3P3Q3R3S3T3U3V3W3X3Y3Z3[3]3^3_3`3a3b3c3d3e3f3g3h3i3j3k3l3m3n3o3p3q3r3s3t3u3v3w3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4X4Y4Z4[4]4^4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x4y4z4{4|4}5O5P5Q5R5S5T5U5V5W5X5Y5Z5[5]5^5_5`5a5b5c5d5e5f5g5h5k5l5m5n6W6Y6Z9y9z9{:O:P:S:T:U:V:W:Y:Z:[:]:^:`:a:b:c:d:e:f:g:h:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;r;s;x;y;z;{;|;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<[<]<^<_<`<a<b<d<e<f<g<h<i<j<k<l<m<n<o<p<q<r<s<t=l=n=o",nodeNames:"\u26A0 ( [ QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent QuotedContent SigilModifiers Comment Source Block ( StabClause Arguments Keywords Pair Keyword QuotedKeyword EscapeSequence Interpolation #{ } ) WhenOperator WordOperator Right Arguments WhenOperator Operator Body Identifier SpecialIdentifier UnderscoredIdentifier Identifier Identifier Alias Integer Float Char Boolean Nil Atom QuotedAtom String Charlist Sigil SigilName { } [ ] SigilName StringSigil SigilName SigilName List Keywords Tuple Bitstring << >> Map Struct UnaryOperator Operator Operator WordOperator AtOperator Operator DocAtOperator Operator CaptureOperator Operator CaptureOperand Dot Operator Right Call Arguments DoBlock do AfterBlock after RescueBlock rescue CatchBlock catch ElseBlock else end FunctionDefinitionCall KernelCall Call Dot Right Identifier OperatorIdentifier Operator Operator Operator Operator Operator Operator Operator Operator Operator Operator Operator Operator Operator Operator String Charlist Call Dot Arguments Call MapContent OperatorIdentifier Operator BinaryOperator Operator WordOperator WordOperator WordOperator WordOperator Operator OperatorIdentifier WhenOperator Right PipeOperator Operator Right Call Arguments FunctionDefinitionCall KernelCall Call KernelCall Call AccessCall AnonymousFunction fn",maxTerm:323,nodeProps:[["closedBy",36,"interpolationEnd",75,">>"],["openedBy",37,"interpolationStart",76,"<<"]],propSources:[eie],skippedNodes:[0,24],repeatNodeCount:29,tokenData:"Eu~RyXY#rYZ#}]^$Spq#rqr$Yrs%^st%quv'_vw'vwx(fxy(yyz)Oz{)T{|)h|}*W}!O*]!O!P+O!P!Q+o!Q!R+|!R![/n![!]1e!]!^8b!^!_8g!_!`:d!`!a:z!a!b;d!b!c<c!c!u<k!u!v>u!v!}<k!}#O?i#O#P?n#P#QCU#Q#RCZ#T#gCt#g#hCy#h#oCt#o#pDO#p#qDW#q#rET#r#sE[~#wQ%b~XY#rpq#r~$SO%c~~$VPYZ#}~$_Q!s~![!]$e!_!`$yT$hSXY$tYZ$t]^$tpq$tT$yO%kT~%OQ#k~![!]$e!_!`%U~%ZP#k~![!]$e~%cP%m~rs%f~%iPrs%l~%qO&r~~%vVh~OY&]Z]&]^#o&]#o#p&w#p;'S&];'S;=`&q<%lO&]~&bTh~OY&]Z]&]^;'S&];'S;=`&q<%lO&]~&tP;=`<%l&]~'OTt~h~OY&]Z]&]^;'S&];'S;=`&q<%lO&]~'dQ'`~![!]$e#o#p'jT'mP#q#r'pT'sP![!]$e~'{Q!z~vw(R![!]$e~(WQ#j~vw(^![!]$e~(cP#j~![!]$e~(kP%o~wx(n~(qPwx(t~(yO&t~~)OOk~~)TOv~~)YQ#p~z{)`![!]$e~)eP#r~![!]$e~)mQ!r~{|)s![!]$eT)xQ#oT{|*O![!]$eT*TP#o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~![!]$e#Q#RCf~CiP#Q#RCl~CqP#n~![!]$e~CyO!`~~DOO!g~~DTP!a~#q#r'pVD_R'PQ#gT![!]$e!`!aDh#p#qDpTDmP$XT![!]$eTDuQ#iT![!]$e#p#qD{TEQP#iT![!]$eVE[O!bRuS~EaQ&v~!`!a:X#r#sEg~EjP#r#sEm~ErP!s~![!]$e",tokenizers:[Bte,Yte,Fte,Nte,Hte,Mte,qte,jte,Dte,Ute,Zte,0,1,2],topRules:{Source:[0,25]},dynamicPrecedences:{43:1,79:-1,150:-1},specialized:[{term:199,get:t=>tie[t]||-1},{term:200,get:t=>iie[t]||-1}],tokenPrec:42923});var pR=Bt.define({name:"elixir",parser:OR.configure({props:[Nt.add({"DoBlock AfterBlock ElseBlock CatchBlock RescueBlock":Ww(Ti({except:/^\s*(after|else|catch|rescue|end)\b/})),AnonymousFunction:Ww(mi({closing:"end",align:!1})),Block:Ww(mi({closing:")",align:!1})),StabClause:Ti(),List:mi({closing:"]",align:!1}),Tuple:mi({closing:"}",align:!1}),Bitstring:mi({closing:">>",align:!1}),Arguments:mi({closing:")",align:!1}),Map:mi({closing:"}",align:!1}),"String Charlist Sigil":xp,BinaryOperator:Ti(),Pair:Ti()}),qt.add({"DoBlock Block List Tuple Bitstring AnonymousFunction":Pn,Map:nie})]}),languageData:{commentTokens:{line:"#"},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["~s","~S","~r","~R","~c","~C","~D","~N"]},indentOnInput:/^\s*([\}\]\)]|>>|after|else|catch|rescue|end)|.*->$/}});function Ww(t){return e=>{var i,n,r,o;let s=e.node.childBefore(e.pos);return((n=(i=e.node.lastChild)===null||i===void 0?void 0:i.type)===null||n===void 0?void 0:n.name)==="end"&&e.textAfter.endsWith("end")?e.baseIndentFor(e.node):((r=s==null?void 0:s.type)===null||r===void 0?void 0:r.name)==="StabClause"&&e.textAfter.endsWith("->")?e.baseIndentFor(s):((o=s==null?void 0:s.type)===null||o===void 0?void 0:o.name)==="StabClause"?e.baseIndentFor(s)+e.unit:t(e)}}function nie(t){let e=t.getChild("{"),i=t.getChild("}");return e&&i?{from:e.to,to:i.from}:null}var rie=t=>{let{state:e,dispatch:i}=t,n=qe(e),r=vr(e),o=!0,s=e.changeByRange(a=>{if(!a.empty||!pR.isActiveAt(e,a.from))return o=!1,{range:a};let l=n.resolve(a.from,-1),c=oie(l);if(c&&!sie(c)){let u=Ql(e,c.from+1)||r,f=eo(e,u),d=eo(e,u-r),O=`
|
||
${f}`,m=`
|
||
${d}end`,x=a.from+O.length;return{range:J.cursor(x),changes:[{from:a.from,to:a.to,insert:O+m}]}}return o=!1,{range:a}});return o?(i(e.update(s,{scrollIntoView:!0,userEvent:"input"})),!0):!1};function oie(t){let e=t;return e&&e.type.name==="do"&&(e=e.parent),e&&e.type.name==="Operator"&&(e=e.parent),e&&(e.type.name==="StabClause"||e.type.name==="fn")&&(e=e.parent),e&&mR(e)?e:null}function mR(t){return t.type.name==="DoBlock"||t.type.name==="AnonymousFunction"}function sie(t){var e,i;let n=t;for(;n;){if(mR(n)&&((i=(e=n.lastChild)===null||e===void 0?void 0:e.type)===null||i===void 0?void 0:i.name)!=="end")return!1;n=n.parent}return!0}var aie=[{key:"Enter",run:rie}];function gR(){let t=[Mt.high(Jt.of(aie))];return new gt(pR,t)}var bR=At.of({name:"Elixir",support:gR()}),yR=At.of({name:"Erlang",support:new gt(ia.define(RX))}),xR=At.of({name:"SQL",support:I$()}),vR=At.of({name:"Python",support:OX()}),wR=At.of({name:"YAML",support:EX()}),kR=At.of({name:"JSON",support:N$()}),SR=At.of({name:"XML",support:H$()}),TR=At.of({name:"CSS",support:Up()}),ER=At.of({name:"HTML",support:qp()}),CR=At.of({name:"JavaScript",support:Mp()}),PR=At.of({name:"Dockerfile",support:new gt(ia.define(NX))}),QR=At.of({name:"Shell",support:new gt(ia.define(ZX))}),_R=At.of({name:"TOML",alias:["pyproject.toml"],support:new gt(ia.define(BX))}),lie=At.of({name:"Markdown",support:v$({base:jp,codeLanguages:[bR,yR,xR,vR,wR,kR,SR,TR,ER,CR,PR,QR,_R]})}),sm=[bR,yR,xR,vR,wR,kR,SR,TR,ER,CR,PR,QR,_R,lie];function AR(t,{dark:e}){let i={sans:"Inter",mono:"JetBrains Mono, monospace"};return fe.theme({"&":{color:t.text,backgroundColor:t.background,borderRadius:"8px",fontSize:"14px",fontFamily:i.mono,display:"inline-flex !important",width:"100%"},"&.cm-focused":{outline:"none"},".cm-scroller":{fontFamily:"inherit",padding:"0.75rem 0"},".cm-content":{caretColor:t.cursor,padding:"0"},"*":{"&":{scrollbarWidth:"thin",scrollbarColor:`${t.backgroundLightest} transparent`},"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-thumb":{background:t.backgroundLightest},"&::-webkit-scrollbar-track":{background:"transparent"}},".cm-activeLine":{backgroundColor:"transparent"},"&.cm-focused:not(.cm-selecting) .cm-activeLine":{backgroundColor:t.activeLine},".cm-cursor, .cm-dropCursor":{borderLeft:"1px solid",borderRight:"1px solid",marginLeft:"-1px",marginRight:"-1px",borderColor:t.cursor},".cm-selectionBackground":{backgroundColor:t.inactiveSelectionBackground},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{backgroundColor:t.selectionBackground},".cm-selectionMatch":{backgroundColor:t.selectionMatchBackground},"&:not(.cm-focused) .cm-fat-cursor":{outline:"none !important"},".cm-gutters":{backgroundColor:t.background,color:t.gutterText,border:"none"},".cm-gutters .cm-activeLineGutter":{backgroundColor:"transparent"},"&.cm-focused:not(.cm-selecting) .cm-gutters .cm-activeLineGutter":{backgroundColor:t.activeLine},".cm-tooltip":{backgroundColor:t.backgroundLighter,boxShadow:"0 2px 6px 0 rgba(0, 0, 0, 0.2)",color:t.text,borderRadius:"8px",border:`1px solid ${t.border}`,"& .cm-tooltip-arrow::before":{borderTopColor:t.backgroundLighter,borderBottomColor:t.backgroundLighter}},".cm-panels":{backgroundColor:"transparent",color:t.text,"&.cm-panels-top":{borderBottom:`2px solid ${t.separator}`},"&.cm-panels-bottom":{borderTop:`2px solid ${t.separator}`}},".cm-gutter.cm-lineNumbers":{"& .cm-gutterElement":{color:t.lineNumber,whiteSpace:"pre","&.cm-activeLineGutter":{color:t.lineNumberActive}}},".cm-gutter.cm-foldGutter":{"& .cm-gutterElement":{cursor:"pointer"},"&:not(:hover) .cm-gutterElement > .cm-gutterFoldMarker-open":{visibility:"hidden"}},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"unset",borderRadius:"2px","&:hover":{backgroundColor:t.selectionBackground}},".cm-searchMatch":{backgroundColor:t.searchMatchBackground,"&.cm-searchMatch-selected":{backgroundColor:t.searchMatchActiveBackground}},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:t.selectionBackground},".cm-tooltip.cm-tooltip-autocomplete":{padding:"4px",backgroundColor:t.backgroundLighter,color:t.text,"& > ul":{fontFamily:"inherit","& > li":{padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center","&[aria-selected]":{background:"none",backgroundColor:t.backgroundLightest,color:"unset"},"& .cm-completionIcon":{lineHeight:"1","&:after":{fontVariantLigatures:"normal"},"&.cm-completionIcon-function:after":{content:"'\u0192'"},"&.cm-completionIcon-module:after":{content:"'m'"},"&.cm-completionIcon-struct:after":{content:"'\u2B58'"},"&.cm-completionIcon-interface:after":{content:"'*'"},"&.cm-completionIcon-type:after":{content:"'t'"},"&.cm-completionIcon-variable:after":{content:"'\u{1D465}'"},"&.cm-completionIcon-field:after":{content:"'\u2022'"},"&.cm-completionIcon-keyword:after":{content:"'\u26A1'"}}}},"& .cm-completionMatchedText":{textDecoration:"none",color:t.matchingText}},".cm-tooltip.cm-completionInfo":{borderRadius:"8px",backgroundColor:t.backgroundLighter,color:t.text,top:"0 !important",padding:"0","&.cm-completionInfo-right":{marginLeft:"4px"},"&.cm-completionInfo-left":{marginRight:"4px"},"& .cm-completionInfoDocs":{padding:"6px"}},".cm-tooltip .cm-hoverDocs":{maxWidth:"800px",maxHeight:"300px",overflowY:"auto",display:"flex",flexDirection:"column","& .cm-hoverDocsDefinitionLink":{padding:"4px 8px",cursor:"pointer",fontSize:"0.875em",fontFamily:i.sans,opacity:.8,borderBottom:`1px solid ${t.separator}`,"& i":{marginRight:"2px"}},"& .cm-hoverDocsContents":{padding:"8px",display:"flex",flexDirection:"column",gap:"64px"}},".cm-hoverDocsSelection":{backgroundColor:t.selectionMatchBackground},".cm-tooltip.cm-signatureHint":{"& .cm-signatureHintStepper":{borderColor:t.separator},"& .cm-signatureHintActiveArgument":{color:t.matchingText}},".cm-tooltip-lint":{display:"flex",flexDirection:"column",gap:"8px",maxWidth:"600px","& .cm-diagnostic":{display:"flex",border:"none",margin:"0","&::before":{content:"'\u279C'",fontVariantLigatures:"common-ligatures",fontSize:"1.5em",lineHeight:"1",whiteSpace:"nowrap",marginRight:"6px"},"&.cm-diagnostic-error::before":{color:"#be5046"},"&.cm-diagnostic-warning::before":{color:"#d19a66"}}},".cm-panel.cm-search":{display:"flex",alignItems:"center",flexWrap:"wrap",padding:"8px",background:t.background,"& br":{content:'" "',display:"block",width:"100%"},"& .cm-textfield":{borderRadius:"4px",border:`1px solid ${t.border}`,"&:focus":{outline:"none"}},"& .cm-button":{borderRadius:"4px",background:t.backgroundLightest,border:"none","&:focus-visible":{outline:`1px solid ${t.text}`}},"& label:first-of-type":{marginLeft:"8px"},"& label":{display:"inline-flex",alignItems:"center",gap:"4px"},"& label input":{appearance:"none",border:`1px solid ${t.backgroundLightest}`,borderRadius:"4px",width:"18px",height:"18px","&:checked":{backgroundImage:`url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")`,backgroundColor:t.backgroundLightest,borderColor:"transparent"},"&:focus-visible":{outline:`1px solid ${t.text}`}},'& button[name="close"]':{display:"none"}},".cm-markdown":{"&":{fontFamily:i.sans},"& p":{marginTop:"0.5rem",marginBottom:"0.5rem"},"& hr":{borderTop:`1px solid ${t.separator}`,marginTop:"0.5rem",marginBottom:"0.5rem",marginRight:"-6px",marginLeft:"-6px"},"& a":{borderBottom:`1px solid ${t.text}`},"& h2":{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"1.125em",fontWeight:"600"},"& ul":{marginTop:"1rem",marginBottom:"1rem",marginLeft:"2rem",listStylePosition:"outside",listStyleType:"disc","& ul":{listStyleType:"circle","& ul":{listStyleType:"square"}}},"& li":{marginTop:"0.25rem",marginBottom:"0.25rem","& > ul, & > ol":{marginTop:"0",marginBottom:"0"}},"& ol":{marginTop:"1rem",marginBottom:"1rem",marginLeft:"2rem",listStylePosition:"outside",listStyleType:"decimal"},"& code":{background:t.selectionBackground,borderRadius:"3px"},"& pre":{marginTop:"0.5rem",marginBottom:"0.5rem","& code":{background:"transparent",whiteSpace:"pre-wrap"}},"& > :first-child":{marginTop:"0"},"& > :last-child":{marginBottom:"0"}}},{dark:e})}function $R({base:t,lightRed:e,blue:i,gray:n,green:r,purple:o,red:s,teal:a,peach:l,yellow:c}){return El.define([{tag:E.keyword,color:o},{tag:E.null,color:i},{tag:E.bool,color:i},{tag:E.number,color:i},{tag:E.string,color:r},{tag:E.special(E.string),color:c},{tag:E.character,color:i},{tag:E.escape,color:i},{tag:E.atom,color:i},{tag:E.variableName,color:t},{tag:E.special(E.variableName),color:e},{tag:[E.function(E.variableName),E.function(E.propertyName)],color:i},{tag:E.namespace,color:a},{tag:E.operator,color:l},{tag:E.comment,color:n},{tag:[E.docString,E.docComment],color:n},{tag:[E.paren,E.squareBracket,E.brace,E.angleBracket,E.separator],color:t},{tag:E.special(E.brace),color:s},{tag:E.strong,fontWeight:"bold"},{tag:E.emphasis,fontStyle:"italic"},{tag:E.strikethrough,textDecoration:"line-through"},{tag:E.link,color:i},{tag:E.heading,color:e},{tag:E.monospace,color:r},{tag:E.propertyName,color:e},{tag:E.tagName,color:o},{tag:E.className,color:l}])}var cie=AR({text:"#c8ccd4",background:"#282c34",backgroundLighter:"#2f343e",backgroundLightest:"#454a56",border:"#363c46",cursor:"#73ade8",activeLine:"#2d323b",selectionBackground:"#394c5f",inactiveSelectionBackground:"#29333d",selectionMatchBackground:"#343f4d",gutterText:"#c8ccd4",lineNumber:"#60646c",lineNumberActive:"#c8ccd4",matchingText:"#73ade8",searchMatchBackground:"#4c6582",searchMatchActiveBackground:"#54789e",separator:"#464b57"},{dark:!0}),Vw=$R({base:"#c8ccd4",lightRed:"#e06c75",blue:"#61afef",gray:"#8c92a3",green:"#98c379",purple:"#c678dd",red:"#be5046",teal:"#56b6c2",peach:"#d19a66",yellow:"#e5c07b"}),XR=[cie,Lx(Vw)],uie=AR({text:"#383a41",background:"#fafafa",backgroundLighter:"#ebebec",backgroundLightest:"#cacaca",border:"#dfdfe0",cursor:"#5c79e2",activeLine:"#efeff0",selectionBackground:"#d4dbf4",inactiveSelectionBackground:"#ebeef9",selectionMatchBackground:"#d3d5e1",gutterText:"#383a41",lineNumber:"#b6b7b9",lineNumberActive:"#383a41",matchingText:"#73ade8",searchMatchBackground:"#bbc6f1",searchMatchActiveBackground:"#9daeec",separator:"#c9c9ca"},{dark:!1}),Zw=$R({base:"#304254",lightRed:"#e45649",blue:"#4078F2",gray:"#707177",green:"#50a14f",purple:"#a726a4",red:"#ca1243",teal:"#0084bc",peach:"#986801",yellow:"#c18401"}),RR=[uie,Lx(Zw)];var jR=Ia(zR()),WR=Ia(MR()),Bw=Ia(qR());function Vl(){return/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)}function us(t){return t.matches&&t.matches("input, textarea, [contenteditable]")}function Yw(t,e=0){let i=t.getBoundingClientRect();return i.bottom>=-e&&i.top<=window.innerHeight+e}function Sr(t){return t.offsetParent===null}function VR(t){let e=null;return new Promise((i,n)=>{Sr(t)?(e=new ResizeObserver(r=>{Sr(t)||(e.disconnect(),i())}),e.observe(t)):i()})}function hm(t,{root:e=null,proximity:i=0}={}){let n=null;return{promise:new Promise((s,a)=>{fie(t,i)?s():(n=new IntersectionObserver(l=>{l[0].isIntersecting&&(n.disconnect(),n=null,s())},{root:e,rootMargin:`${i}px`}),n.observe(t))}),cancel:()=>{n&&n.disconnect()}}}function fie(t,e=0){return!Sr(t)&&Yw(t,e)}function ZR(t,e,i){return Math.min(Math.max(t,e),i)}function BR(t){let e=window.getComputedStyle(t),i=parseInt(e.lineHeight,10);if(Number.isNaN(i)){let n=t.cloneNode();n.innerHTML="<br>",t.appendChild(n);let r=n.clientHeight;n.innerHTML="<br><br>";let o=n.clientHeight;return t.removeChild(n),o-r}else return i}function YR(t){let e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e.removeAllRanges(),e.addRange(i)}function ya(t){let{height:e}=t.getBoundingClientRect();e<window.innerHeight?t.scrollIntoView({behavior:"smooth",block:"center"}):t.scrollIntoView({behavior:"smooth",block:"start"})}function FR(t){return Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)<1}function Rf(t){t.scrollTop=t.scrollHeight}function HR(t){return btoa(unescape(encodeURIComponent(t)))}function GR(t){return decodeURIComponent(escape(atob(t)))}function KR(){return e6(24)}function JR(){return e6(40)}function e6(t){let e=new Uint8Array(t);crypto.getRandomValues(e);let i=String.fromCharCode(...e);return btoa(i)}function dm(t){return(0,jR.default)(t).toString(Bw.default)}function t6(t){return(0,WR.default)(t).toString(Bw.default)}function Om(t){let e=document.querySelector('[rel="icon"]');e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=`/favicons/${t}.svg`}function ho(t,e){let i=t.querySelector(e);if(!i)throw new Error(`expected a child matching ${e}, but none was found`);return i}function An(t){t.preventDefault(),t.stopPropagation()}var hie={"&":"&","<":"<",">":">",'"':""","'":"'"};function Lf(t){return(t||"").replace(/[&<>"']/g,e=>hie[e])}function i6(t){let e=atob(t),i=new Uint8Array(e.length),n=i.byteLength;for(let r=0;r<n;r++)i[r]=e.charCodeAt(r);return i.buffer}function pm(){return document.body.hasAttribute("data-within-iframe")?";SameSite=None;Secure":";SameSite=Lax"}function mm(t,e,i=void 0){if(t.hasOwnProperty(e)){let n=t,{[e]:r}=n,o=Ui(n,[TS(e)]);return[r,o]}return[i,t]}function n6(t){return new Promise((e,i)=>{setTimeout(()=>e(),t)})}function r6(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function o6(t,e,i){let n={};for(let r in e)n[r]=t.style[r],t.style[r]=e[r];i(),Object.assign(t.style,n)}var ei=class{constructor(){this.callbacks=[]}get event(){return this.addListener.bind(this)}addListener(e){return this.callbacks.push(e),{destroy:()=>{this.removeListener(e)}}}removeListener(e){let i=this.callbacks.indexOf(e);i!==-1&&this.callbacks.splice(i,1)}dispatch(...e){this.callbacks.forEach(i=>{i(...e)})}};var s6="settings",If={normal:14,large:16},die={default:"default",emacs:"emacs",vim:"vim"},Zl={default:"default",light:"light"},Oie={editor_auto_completion:!0,editor_auto_signature:!0,editor_auto_close_brackets:!0,editor_font_size:If.normal,editor_theme:Zl.default,editor_ligatures:!1,editor_markdown_word_wrap:!0,editor_mode:die.default,custom_view_show_section:!0,custom_view_show_markdown:!0,custom_view_show_code:!0,custom_view_show_output:!0,custom_view_spotlight:!1},Fw=class{constructor(){ct(this,"_onChange",new ei);this.settings=Oie,this.loadSettings()}get(){return this.settings}update(e){let i=this.settings;this.settings=F(F({},this.settings),e),this._onChange.dispatch(this.settings,i),this.storeSettings()}getAndSubscribe(e){return e(this.settings),this._onChange.addListener(e)}loadSettings(){let e=Es(s6);e&&(Object.values(Zl).includes(e.editor_theme)||delete e.editor_theme,this.settings=F(F({},this.settings),e))}storeSettings(){Va(s6,this.settings)}},bt=new Fw;function gm(t,e){let i=At.matchLanguageName(sm,e);if(!i)return Lf(t);let n=pie();Bi.mount(window.document,n.module);let r=i.support.language.parser.parse(t),o="";return QQ(t,r,n,(s,a)=>{o+=`<span class="${a}">${Lf(s)}</span>`},()=>{o+="<br />"}),o}function pie(){return bt.get().editor_theme==="light"?Zw:Vw}var Df=class{constructor(e){this.size=e,this.cache=new Map}get(e){if(this.cache.has(e)){let i=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,i),i}else return}set(e,i){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size===this.size){let n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(e,i)}};var mie=0,gie=()=>`mermaid-graph-${mie++}`,bie="5.15.4",a6=new Df(25);function l6(t,e){let i=dm(t),n=a6.get(i);return n?Promise.resolve(n):yie().then(r=>(xie(t),r.initialize(F({startOnLoad:!1},e)),r.render(gie(),t).then(({svg:o})=>(a6.set(i,o),o)).catch(o=>`<div class="error-box whitespace-pre-wrap"><span class="font-semibold">Mermaid</span>
|
||
${o.message}</div>`)))}function yie(){return import("./mermaid.core-PK4ATILI.js").then(({default:t})=>t)}function xie(t){let e=`https://cdnjs.cloudflare.com/ajax/libs/font-awesome/${bie}/css/all.min.css`;if(t.includes("fa:")&&!document.querySelector(`link[href="${e}"]`)){let i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.href=e,document.head.appendChild(i)}}var Hw=class{constructor(e,i,{baseUrl:n=null,defaultCodeLanguage:r=null,emptyText:o="",allowedUriSchemes:s=[],useDarkTheme:a=!1}={}){this.container=e,this.content=i,this.baseUrl=n,this.defaultCodeLanguage=r,this.emptyText=o,this.allowedUriSchemes=s,this.useDarkTheme=a,this.render()}setContent(e){this.content=e,this.render()}render(){this.getHtml().then(e=>{let i=`<div>${e}</div>`;CT(this.container,i,{childrenOnly:!0})})}getHtml(){return Jh().use(ud).use(xd).use(vd).use(Tie).use(wie,{highlight:gm,defaultLanguage:this.defaultCodeLanguage}).use(_d,{allowDangerousHtml:!0}).use(iO).use(kie,{baseUrl:this.baseUrl}).use(sO,vie(this.allowedUriSchemes)).use(rO).use(Eie,{useDarkTheme:this.useDarkTheme}).use(Cie,{baseUrl:this.baseUrl}).use(hO,{closeEmptyElements:!0}).process(this.content).then(e=>String(e)).catch(e=>{console.error(`Failed to render markdown, reason: ${e.message}`)}).then(e=>e||`
|
||
<div class="text-gray-300">
|
||
${this.emptyText}
|
||
</div>
|
||
`)}},xa=Hw;function vie(t){return Ee(F({},Wn),{attributes:Ee(F({},Wn.attributes),{"*":[...Wn.attributes["*"]||[],"className","style"]}),protocols:Ee(F({},Wn.protocols),{href:[...Wn.protocols.href,...t]})})}function wie(t){return e=>{let i=[];return xi(e,"code",n=>{let r=n.lang||t.defaultLanguage;if(r){let o=function(a){n.type="html",n.value=`<pre><code>${a}</code></pre>`},s=t.highlight(n.value,r);if(s&&typeof s.then=="function"){let a=Promise.resolve(s).then(o);i.push(a)}else o(s)}}),Promise.all(i).then(()=>null)}}function kie(t){return e=>{t.baseUrl&&xi(e,"element",i=>{if(i.tagName==="a"&&i.properties){let n=i.properties.href;n&&!Gw(n)&&!Kw(n)&&!Pie(n)&&(i.properties.href=c6(t.baseUrl,n))}if(i.tagName==="img"&&i.properties){let n=i.properties.src;n&&!Gw(n)&&!Kw(n)&&(i.properties.src=c6(t.baseUrl,n))}}),xi(e,"element",i=>{i.tagName==="a"&&i.properties&&i.properties.href&&(i.properties.href=i.properties.href.split("/").map(n=>n===".."?"__parent__":n).join("/"))})}}var Sie=Jh().use(oO,{fragment:!0});function Tie(t){return e=>{xi(e,"code",(i,n,r)=>{i.lang==="mermaid"&&(i.type="html",i.value=`
|
||
<div class="mermaid">${Lf(i.value)}</div>
|
||
`)})}}function Eie(t){return e=>{let i=[];return xi(e,"element",n=>{if((n.properties&&Array.isArray(n.properties.className)?n.properties.className:[]).includes("mermaid")){let o=function(c){let u=Sie.parse(c);Q1(u,!0),n.children=u.children},s=vu(n,{whitespace:"pre"}),a=t.useDarkTheme?"dark":"default",l=l6(s,{theme:a}).then(o);i.push(l)}}),Promise.all(i).then(()=>null)}}function Cie(t){return e=>{xi(e,"element",i=>{if(i.properties&&i.properties.href){let n=i.properties.href;Kw(n)?(i.properties["data-phx-link"]=t.baseUrl&&n.startsWith(t.baseUrl)?"patch":"redirect",i.properties["data-phx-link-state"]="push"):Gw(n)&&(i.properties.target="_blank",i.properties.rel="noreferrer noopener")}})}}function Gw(t){return/^([a-z]+:|\/\/)/i.test(t)}function Pie(t){return t.startsWith("#")}function Kw(t){return t.startsWith("/")||t.startsWith(window.location.origin)}function c6(t,e){return t.replace(/\/$/,"")+"/"+e}var Bl=class{constructor(){this.subscribersByTopic={}}subscribe(e,i){return Array.isArray(this.subscribersByTopic[e])||(this.subscribersByTopic[e]=[]),this.subscribersByTopic[e].push(i),{destroy:()=>{this.unsubscribe(e,i)}}}unsubscribe(e,i){let n=this.subscribersByTopic[e].indexOf(i);n!==-1&&(this.subscribersByTopic[e].splice(n,1),this.subscribersByTopic[e].length===0&&delete this.subscribersByTopic[e])}broadcast(e,i){Array.isArray(this.subscribersByTopic[e])&&this.subscribersByTopic[e].forEach(n=>{n(i)})}},lt=new Bl;var u6=t=>typeof t=="object"&&t!=null&&t.nodeType===1,f6=(t,e)=>(!e||t!=="hidden")&&t!=="visible"&&t!=="clip",Jw=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){let i=getComputedStyle(t,null);return f6(i.overflowY,e)||f6(i.overflowX,e)||(n=>{let r=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch(s){return null}})(n);return!!r&&(r.clientHeight<n.scrollHeight||r.clientWidth<n.scrollWidth)})(t)}return!1},bm=(t,e,i,n,r,o,s,a)=>o<t&&s>e||o>t&&s<e?0:o<=t&&a<=i||s>=e&&a>=i?o-t-n:s>e&&a<i||o<t&&a>i?s-e+r:0,Qie=t=>{let e=t.parentElement;return e==null?t.getRootNode().host||null:e},ek=(t,e)=>{var i,n,r,o;if(typeof document=="undefined")return[];let{scrollMode:s,block:a,inline:l,boundary:c,skipOverflowHiddenElements:u}=e,f=typeof c=="function"?c:oe=>oe!==c;if(!u6(t))throw new TypeError("Invalid target");let d=document.scrollingElement||document.documentElement,O=[],m=t;for(;u6(m)&&f(m);){if(m=Qie(m),m===d){O.push(m);break}m!=null&&m===document.body&&Jw(m)&&!Jw(document.documentElement)||m!=null&&Jw(m,u)&&O.push(m)}let x=(n=(i=window.visualViewport)==null?void 0:i.width)!=null?n:innerWidth,v=(o=(r=window.visualViewport)==null?void 0:r.height)!=null?o:innerHeight,{scrollX:w,scrollY:T}=window,{height:Q,width:I,top:z,right:$,bottom:X,left:Y}=t.getBoundingClientRect(),K=a==="start"||a==="nearest"?z:a==="end"?X:z+Q/2,N=l==="center"?Y+I/2:l==="end"?$:Y,te=[];for(let oe=0;oe<O.length;oe++){let re=O[oe],{height:de,width:pe,top:ve,right:j,bottom:ue,left:Z}=re.getBoundingClientRect();if(s==="if-needed"&&z>=0&&Y>=0&&X<=v&&$<=x&&z>=ve&&X<=ue&&Y>=Z&&$<=j)return te;let C=getComputedStyle(re),W=parseInt(C.borderLeftWidth,10),se=parseInt(C.borderTopWidth,10),D=parseInt(C.borderRightWidth,10),Ne=parseInt(C.borderBottomWidth,10),We=0,Ve=0,Ct="offsetWidth"in re?re.offsetWidth-re.clientWidth-W-D:0,Xe="offsetHeight"in re?re.offsetHeight-re.clientHeight-se-Ne:0,Lt="offsetWidth"in re?re.offsetWidth===0?0:pe/re.offsetWidth:0,It="offsetHeight"in re?re.offsetHeight===0?0:de/re.offsetHeight:0;if(d===re)We=a==="start"?K:a==="end"?K-v:a==="nearest"?bm(T,T+v,v,se,Ne,T+K,T+K+Q,Q):K-v/2,Ve=l==="start"?N:l==="center"?N-x/2:l==="end"?N-x:bm(w,w+x,x,W,D,w+N,w+N+I,I),We=Math.max(0,We+T),Ve=Math.max(0,Ve+w);else{We=a==="start"?K-ve-se:a==="end"?K-ue+Ne+Xe:a==="nearest"?bm(ve,ue,de,se,Ne+Xe,K,K+Q,Q):K-(ve+de/2)+Xe/2,Ve=l==="start"?N-Z-W:l==="center"?N-(Z+pe/2)+Ct/2:l==="end"?N-j+D+Ct:bm(Z,j,pe,W,D+Ct,N,N+I,I);let{scrollLeft:On,scrollTop:pn}=re;We=Math.max(0,Math.min(pn+We/It,re.scrollHeight-de/It+Xe)),Ve=Math.max(0,Math.min(On+Ve/Lt,re.scrollWidth-pe/Lt+Ct)),K+=pn-We,N+=On-Ve}te.push({el:re,top:We,left:Ve})}return te};var _ie=t=>t===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(t)?t:{block:"start",inline:"nearest"};function ym(t,e){if(!t.isConnected||!(r=>{let o=r;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(t))return;let i=(r=>{let o=window.getComputedStyle(r);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(t);if((r=>typeof r=="object"&&typeof r.behavior=="function")(e))return e.behavior(ek(t,e));let n=typeof e=="boolean"||e==null?void 0:e.behavior;for(let{el:r,top:o,left:s}of ek(t,_ie(e))){let a=o-i.top+i.bottom,l=s-i.left+i.right;r.scroll({top:a,left:l,behavior:n})}}function va(t){return["code","smart"].includes(t)}function h6(t){return["markdown","code"].includes(t)}var Aie={mounted(){this.props=this.getProps(),this.isFocused=!1,this.insertMode=!1,this.liveEditors={},this.updateInsertModeAvailability();let t=this.el.querySelector("[data-el-amplify-outputs-button]");t&&t.addEventListener("click",e=>{this.el.toggleAttribute("data-js-amplified")}),this.props.type==="smart"&&this.el.querySelector("[data-el-toggle-source-button]").addEventListener("click",i=>{this.el.toggleAttribute("data-js-source-visible"),this.updateInsertModeAvailability(),this.maybeFocusCurrentEditor()}),this.el.addEventListener("lb:cell:editor_created",e=>{let{tag:i,liveEditor:n}=e.detail;this.handleCellEditorCreated(i,n)}),this.el.addEventListener("lb:cell:editor_removed",e=>{let{tag:i}=e.detail;this.handleCellEditorRemoved(i)}),this.el.addEventListener("mouseenter",e=>{this.el.setAttribute("data-js-hover","")}),this.el.addEventListener("mouseleave",e=>{this.el.removeAttribute("data-js-hover")}),this.subscriptions=[lt.subscribe("navigation:focus_changed",({focusableId:e,scroll:i})=>this.handleElementFocused(e,i)),lt.subscribe("navigation:insert_mode_changed",({enabled:e})=>this.handleInsertModeChanged(e)),lt.subscribe("cells:cell_moved",({cellId:e})=>this.handleCellMoved(e)),lt.subscribe(`cells:${this.props.cellId}:dispatch_queue_evaluation`,({dispatch:e})=>this.handleDispatchQueueEvaluation(e)),lt.subscribe(`cells:${this.props.cellId}:jump_to_line`,({line:e,offset:i=0})=>this.handleJumpToLine(e,i))],this._handleViewportResize=this.handleViewportResize.bind(this),window.visualViewport.addEventListener("resize",this._handleViewportResize)},disconnected(){this.el.removeAttribute("id")},destroyed(){this.subscriptions.forEach(t=>t.destroy()),window.visualViewport.removeEventListener("resize",this._handleViewportResize)},updated(){let t=this.props;this.props=this.getProps(),this.props.evaluationDigest!==t.evaluationDigest&&this.updateChangeIndicator()},getProps(){return pt(this.el,["cell-id","type","session-path","evaluation-digest","smart-cell-js-view-ref","allowed-uri-schemes"])},handleElementFocused(t,e){this.props.cellId===t?(this.isFocused=!0,this.el.setAttribute("data-js-focused",""),e&&ya(this.el)):this.isFocused&&(this.isFocused=!1,this.el.removeAttribute("data-js-focused"))},handleCellEditorCreated(t,e){if(this.liveEditors[t]=e,this.updateInsertModeAvailability(),e===this.currentEditor()&&this.maybeFocusCurrentEditor(),e.onBlur(()=>{setTimeout(()=>{this.isFocused&&this.insertMode&&this.currentEditor().focus()},0)}),e.onFocus(()=>{setTimeout(()=>{!this.isFocused||!this.insertMode?this.currentEditor().blur():this.sendCursorHistory()},0)}),e.onSelectionChange(()=>{this.isFocused&&this.sendCursorHistory()}),t==="primary"){let i=e.getSource();if(this.el.toggleAttribute("data-js-empty",i===""),e.onChange(n=>{this.el.toggleAttribute("data-js-empty",n==="")}),this.props.type==="markdown"){let n=this.el.querySelector("[data-el-markdown-container]"),r=new xa(n,i,{baseUrl:this.props.sessionPath,emptyText:"Empty markdown cell",allowedUriSchemes:this.props.allowedUriSchemes});e.onChange(o=>{r.setContent(o)})}va(this.props.type)&&(this.updateChangeIndicator(),e.onChange(n=>{this.updateChangeIndicator()}),this.handleEvent(`evaluation_finished:${this.props.cellId}`,({code_markers:n})=>{e.setCodeMarkers(n)}),this.handleEvent(`start_evaluation:${this.props.cellId}`,()=>{e.clearDoctests()}),this.handleEvent(`doctest_report:${this.props.cellId}`,n=>{e.updateDoctests([n])}),this.handleEvent("erase_outputs",()=>{e.setCodeMarkers([]),e.clearDoctests()}))}},handleCellEditorRemoved(t){delete this.liveEditors[t]},handleViewportResize(){this.isFocused&&this.scrollEditorCursorIntoViewIfNeeded()},currentEditor(){return this.liveEditors[this.currentEditorTag()]},currentEditorTag(){return this.props.type==="smart"?this.el.hasAttribute("data-js-source-visible")?"primary":"secondary":"primary"},updateInsertModeAvailability(){this.el.toggleAttribute("data-js-insert-mode-disabled",!this.currentEditor())},maybeFocusCurrentEditor(){this.isFocused&&this.insertMode&&this.currentEditor().focus()},updateChangeIndicator(){let t=this.el.querySelector("[data-el-cell-status]");if(t&&t.querySelector("[data-el-change-indicator]")&&this.props.evaluationDigest){let i=this.liveEditors.primary.getSource(),n=dm(i),r=this.props.evaluationDigest!==n;this.el.toggleAttribute("data-js-changed",r)}},handleInsertModeChanged(t){this.isFocused&&!this.insertMode&&t?(this.insertMode=t,this.el.setAttribute("data-js-insert-mode",""),this.currentEditor()&&(this.currentEditor().focus(),this.scrollEditorCursorIntoViewIfNeeded())):this.insertMode&&!t&&(this.insertMode=t,this.el.removeAttribute("data-js-insert-mode"),this.currentEditor()&&this.currentEditor().blur())},handleCellMoved(t){this.isFocused&&t===this.props.cellId&&ya(this.el)},handleDispatchQueueEvaluation(t){this.props.type==="smart"&&this.props.smartCellJsViewRef?lt.broadcast(`js_views:${this.props.smartCellJsViewRef}:sync`,{callback:t}):t()},handleJumpToLine(t,e){this.isFocused&&this.currentEditor().moveCursorToLine(t,e)},scrollEditorCursorIntoViewIfNeeded(){let t=this.currentEditor().getElementAtCursor();o6(t,{scrollMarginTop:"128px"},()=>{ym(t,{scrollMode:"if-needed",behavior:"instant",block:"start"})})},sendCursorHistory(){let t=this.currentEditor().getCurrentCursorPosition();t!==null&<.broadcast("navigation:cursor_moved",{line:t.line,offset:t.offset,cellId:this.props.cellId})}},d6=Aie;var Uf=t=>{let{state:e}=t,i=e.doc.lineAt(e.selection.main.from),n=nk(t.state,i.from);return n.line?$ie(t):n.block?Xie(t):!1};function Mf(t,e){return({state:i,dispatch:n})=>{if(i.readOnly)return!1;let r=t(e,i);return r?(n(i.update(r)),!0):!1}}var $ie=Mf(rk,0),O6=Mf(rk,1),p6=Mf(rk,2),m6=Mf(g6,0);var Xie=Mf((t,e)=>g6(t,e,Lie(e)),0);function nk(t,e){let i=t.languageDataAt("commentTokens",e);return i.length?i[0]:{}}var zf=50;function Rie(t,{open:e,close:i},n,r){let o=t.sliceDoc(n-zf,n),s=t.sliceDoc(r,r+zf),a=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(s)[0].length,c=o.length-a;if(o.slice(c-e.length,c)==e&&s.slice(l,l+i.length)==i)return{open:{pos:n-a,margin:a&&1},close:{pos:r+l,margin:l&&1}};let u,f;r-n<=2*zf?u=f=t.sliceDoc(n,r):(u=t.sliceDoc(n,n+zf),f=t.sliceDoc(r-zf,r));let d=/^\s*/.exec(u)[0].length,O=/\s*$/.exec(f)[0].length,m=f.length-O-i.length;return u.slice(d,d+e.length)==e&&f.slice(m,m+i.length)==i?{open:{pos:n+d+e.length,margin:/\s/.test(u.charAt(d+e.length))?1:0},close:{pos:r-O-i.length,margin:/\s/.test(f.charAt(m-1))?1:0}}:null}function Lie(t){let e=[];for(let i of t.selection.ranges){let n=t.doc.lineAt(i.from),r=i.to<=n.to?n:t.doc.lineAt(i.to);r.from>n.from&&r.from==i.to&&(r=i.to==n.to+1?n:t.doc.lineAt(i.to-1));let o=e.length-1;o>=0&&e[o].to>n.from?e[o].to=r.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return e}function g6(t,e,i=e.selection.ranges){let n=i.map(o=>nk(e,o.from).block);if(!n.every(o=>o))return null;let r=i.map((o,s)=>Rie(e,n[s],o.from,o.to));if(t!=2&&!r.every(o=>o))return{changes:e.changes(i.map((o,s)=>r[s]?[]:[{from:o.from,insert:n[s].open+" "},{from:o.to,insert:" "+n[s].close}]))};if(t!=1&&r.some(o=>o)){let o=[];for(let s=0,a;s<r.length;s++)if(a=r[s]){let l=n[s],{open:c,close:u}=a;o.push({from:c.pos-l.open.length,to:c.pos+c.margin},{from:u.pos-u.margin,to:u.pos+l.close.length})}return{changes:o}}return null}function rk(t,e,i=e.selection.ranges){let n=[],r=-1;for(let{from:o,to:s}of i){let a=n.length,l=1e9,c=nk(e,o).line;if(c){for(let u=o;u<=s;){let f=e.doc.lineAt(u);if(f.from>r&&(o==s||s>f.from)){r=f.from;let d=/^\s*/.exec(f.text)[0].length,O=d==f.length,m=f.text.slice(d,d+c.length)==c?d:-1;d<f.text.length&&d<l&&(l=d),n.push({line:f,comment:m,token:c,indent:d,empty:O,single:!1})}u=f.to+1}if(l<1e9)for(let u=a;u<n.length;u++)n[u].indent<n[u].line.text.length&&(n[u].indent=l);n.length==a+1&&(n[a].single=!0)}}if(t!=2&&n.some(o=>o.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:a,token:l,indent:c,empty:u,single:f}of n)(f||!u)&&o.push({from:a.from+c,insert:l+" "});let s=e.changes(o);return{changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&n.some(o=>o.comment>=0)){let o=[];for(let{line:s,comment:a,token:l}of n)if(a>=0){let c=s.from+a,u=c+l.length;s.text[u-s.from]==" "&&u++,o.push({from:c,to:u})}return{changes:o}}return null}var ik=Si.define(),Iie=Si.define(),Die=be.define(),b6=be.define({combine(t){return _t(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,i)=>i},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,i)=>(n,r)=>e(n,r)||i(n,r)})}}),y6=Ge.define({create(){return wa.empty},update(t,e){let i=e.state.facet(b6),n=e.annotation(ik);if(n){let l=Hn.fromTransaction(e,n.selection),c=n.side,u=c==0?t.undone:t.done;return l?u=vm(u,u.length,i.minDepth,l):u=k6(u,e.startState.selection),new wa(c==0?n.rest:u,c==0?u:n.rest)}let r=e.annotation(Iie);if((r=="full"||r=="before")&&(t=t.isolate()),e.annotation(Rt.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let o=Hn.fromTransaction(e),s=e.annotation(Rt.time),a=e.annotation(Rt.userEvent);return o?t=t.addChanges(o,s,a,i,e):e.selection&&(t=t.addSelection(e.startState.selection,s,a,i.newGroupDelay)),(r=="full"||r=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new wa(t.done.map(Hn.fromJSON),t.undone.map(Hn.fromJSON))}});function x6(t={}){return[y6,b6.of(t),fe.domEventHandlers({beforeinput(e,i){let n=e.inputType=="historyUndo"?ka:e.inputType=="historyRedo"?fs:null;return n?(e.preventDefault(),n(i)):!1}})]}function ok(t,e){return function({state:i,dispatch:n}){if(!e&&i.readOnly)return!1;let r=i.field(y6,!1);if(!r)return!1;let o=r.pop(t,i,e);return o?(n(o),!0):!1}}var ka=ok(0,!1),fs=ok(1,!1),v6=ok(0,!0);var Hn=class t{constructor(e,i,n,r,o){this.changes=e,this.effects=i,this.mapped=n,this.startSelection=r,this.selectionsAfter=o}setSelAfter(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,i,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(i=this.mapped)===null||i===void 0?void 0:i.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new t(e.changes&&$i.fromJSON(e.changes),[],e.mapped&&Fr.fromJSON(e.mapped),e.startSelection&&J.fromJSON(e.startSelection),e.selectionsAfter.map(J.fromJSON))}static fromTransaction(e,i){let n=$n;for(let r of e.startState.facet(Die)){let o=r(e);o.length&&(n=n.concat(o))}return!n.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),n,void 0,i||e.startState.selection,$n)}static selection(e){return new t(void 0,$n,void 0,void 0,e)}};function vm(t,e,i,n){let r=e+1>i+20?e-i-1:0,o=t.slice(r,e);return o.push(n),o}function zie(t,e){let i=[],n=!1;return t.iterChangedRanges((r,o)=>i.push(r,o)),e.iterChangedRanges((r,o,s,a)=>{for(let l=0;l<i.length;){let c=i[l++],u=i[l++];a>=c&&s<=u&&(n=!0)}}),n}function Uie(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((i,n)=>i.empty!=e.ranges[n].empty).length===0}function w6(t,e){return t.length?e.length?t.concat(e):t:e}var $n=[],Mie=200;function k6(t,e){if(t.length){let i=t[t.length-1],n=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-Mie));return n.length&&n[n.length-1].eq(e)?t:(n.push(e),vm(t,t.length-1,1e9,i.setSelAfter(n)))}else return[Hn.selection([e])]}function Nie(t){let e=t[t.length-1],i=t.slice();return i[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),i}function tk(t,e){if(!t.length)return t;let i=t.length,n=$n;for(;i;){let r=qie(t[i-1],e,n);if(r.changes&&!r.changes.empty||r.effects.length){let o=t.slice(0,i);return o[i-1]=r,o}else e=r.mapped,i--,n=r.selectionsAfter}return n.length?[Hn.selection(n)]:$n}function qie(t,e,i){let n=w6(t.selectionsAfter.length?t.selectionsAfter.map(a=>a.map(e)):$n,i);if(!t.changes)return Hn.selection(n);let r=t.changes.map(e),o=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new Hn(r,Se.mapEffects(t.effects,e),s,t.startSelection.map(o),n)}var jie=/^(input\.type|delete)($|\.)/,wa=class t{constructor(e,i,n=0,r=void 0){this.done=e,this.undone=i,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new t(this.done,this.undone):this}addChanges(e,i,n,r,o){let s=this.done,a=s[s.length-1];return a&&a.changes&&!a.changes.empty&&e.changes&&(!n||jie.test(n))&&(!a.selectionsAfter.length&&i-this.prevTime<r.newGroupDelay&&r.joinToEvent(o,zie(a.changes,e.changes))||n=="input.type.compose")?s=vm(s,s.length-1,r.minDepth,new Hn(e.changes.compose(a.changes),w6(Se.mapEffects(e.effects,a.changes),a.effects),a.mapped,a.startSelection,$n)):s=vm(s,s.length,r.minDepth,e),new t(s,$n,i,n)}addSelection(e,i,n,r){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:$n;return o.length>0&&i-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&Uie(o[o.length-1],e)?this:new t(k6(this.done,e),this.undone,i,n)}addMapping(e){return new t(tk(this.done,e),tk(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,i,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let o=r[r.length-1],s=o.selectionsAfter[0]||i.selection;if(n&&o.selectionsAfter.length)return i.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:ik.of({side:e,rest:Nie(r),selection:s}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let a=r.length==1?$n:r.slice(0,r.length-1);return o.mapped&&(a=tk(a,o.mapped)),i.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:ik.of({side:e,rest:a,selection:s}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}};wa.empty=new wa($n,$n);function Nf(t,e){return J.create(t.ranges.map(e),t.mainIndex)}function hs(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Sa({state:t,dispatch:e},i){let n=Nf(t.selection,i);return n.eq(t.selection,!0)?!1:(e(hs(t,n)),!0)}function wm(t,e){return J.cursor(e?t.to:t.from)}function km(t,e){return Sa(t,i=>i.empty?t.moveByChar(i,e):wm(i,e))}function ds(t){return t.textDirectionAt(t.state.selection.main.head)==at.LTR}var qf=t=>km(t,!ds(t)),sk=t=>km(t,ds(t)),S6=t=>km(t,!0),Sm=t=>km(t,!1);function T6(t,e){return Sa(t,i=>i.empty?t.moveByGroup(i,e):wm(i,e))}var Tm=t=>T6(t,!ds(t)),Em=t=>T6(t,ds(t));var YTe=typeof Intl!="undefined"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function E6(t,e){return Sa(t,i=>{if(!i.empty)return wm(i,e);let n=t.moveVertically(i,e);return n.head!=i.head?n:t.moveToLineBoundary(i,e)})}var jf=t=>E6(t,!1),Wf=t=>E6(t,!0);function C6(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,i=0,n=0,r;if(e){for(let o of t.state.facet(fe.scrollMargins)){let s=o(t);s!=null&&s.top&&(i=Math.max(s==null?void 0:s.top,i)),s!=null&&s.bottom&&(n=Math.max(s==null?void 0:s.bottom,n))}r=t.scrollDOM.clientHeight-i-n}else r=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:i,marginBottom:n,selfScroll:e,height:Math.max(t.defaultLineHeight,r-5)}}function P6(t,e){let i=C6(t),{state:n}=t,r=Nf(n.selection,s=>s.empty?t.moveVertically(s,e,i.height):wm(s,e));if(r.eq(n.selection))return!1;let o;if(i.selfScroll){let s=t.coordsAtPos(n.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+i.marginTop,c=a.bottom-i.marginBottom;s&&s.top>l&&s.bottom<c&&(o=fe.scrollIntoView(r.main.head,{y:"start",yMargin:s.top-l}))}return t.dispatch(hs(n,r),{effects:o}),!0}var Yl=t=>P6(t,!1),Fl=t=>P6(t,!0);function Cm(t,e,i){let n=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,i);if(r.head==e.head&&r.head!=(i?n.to:n.from)&&(r=t.moveToLineBoundary(e,i,!1)),!i&&r.head==n.from&&n.length){let o=/^\s*/.exec(t.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;o&&e.head!=n.from+o&&(r=J.cursor(n.from+o))}return r}var Vf=t=>Sa(t,e=>Cm(t,e,!0)),Zf=t=>Sa(t,e=>Cm(t,e,!1));var Pm=t=>Sa(t,e=>J.cursor(t.lineBlockAt(e.head).from,1)),Qm=t=>Sa(t,e=>J.cursor(t.lineBlockAt(e.head).to,-1));function Wie(t,e,i){let n=!1,r=Nf(t.selection,o=>{let s=Cn(t,o.head,-1)||Cn(t,o.head,1)||o.head>0&&Cn(t,o.head-1,1)||o.head<t.doc.length&&Cn(t,o.head+1,-1);if(!s||!s.end)return o;n=!0;let a=s.start.from==o.head?s.end.to:s.end.from;return i?J.range(o.anchor,a):J.cursor(a)});return n?(e(hs(t,r)),!0):!1}var Q6=({state:t,dispatch:e})=>Wie(t,e,!1);function Os(t,e){let i=Nf(t.state.selection,n=>{let r=e(n);return J.range(n.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return i.eq(t.state.selection)?!1:(t.dispatch(hs(t.state,i)),!0)}function _m(t,e){return Os(t,i=>t.moveByChar(i,e))}var ak=t=>_m(t,!ds(t)),lk=t=>_m(t,ds(t)),ck=t=>_m(t,!0),uk=t=>_m(t,!1);function Am(t,e){return Os(t,i=>t.moveByGroup(i,e))}var $m=t=>Am(t,!ds(t)),Xm=t=>Am(t,ds(t)),_6=t=>Am(t,!0),A6=t=>Am(t,!1);function $6(t,e){return Os(t,i=>t.moveVertically(i,e))}var Hl=t=>$6(t,!1),Gl=t=>$6(t,!0);function X6(t,e){return Os(t,i=>t.moveVertically(i,e,C6(t).height))}var Bf=t=>X6(t,!1),Ta=t=>X6(t,!0),fk=t=>Os(t,e=>Cm(t,e,!0)),hk=t=>Os(t,e=>Cm(t,e,!1));var Yf=t=>Os(t,e=>J.cursor(t.lineBlockAt(e.head).from)),Ff=t=>Os(t,e=>J.cursor(t.lineBlockAt(e.head).to)),Hf=({state:t,dispatch:e})=>(e(hs(t,{anchor:0})),!0),Gf=({state:t,dispatch:e})=>(e(hs(t,{anchor:t.doc.length})),!0),Kl=({state:t,dispatch:e})=>(e(hs(t,{anchor:t.selection.main.anchor,head:0})),!0),Jl=({state:t,dispatch:e})=>(e(hs(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),Rm=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),R6=({state:t,dispatch:e})=>{let i=Dm(t).map(({from:n,to:r})=>J.range(n,Math.min(r+1,t.doc.length)));return e(t.update({selection:J.create(i),userEvent:"select"})),!0};function Lm(t,e){if(t.state.readOnly)return!1;let i="delete.selection",{state:n}=t,r=n.changeByRange(o=>{let{from:s,to:a}=o;if(s==a){let l=e(o);l<s?(i="delete.backward",l=xm(t,l,!1)):l>s&&(i="delete.forward",l=xm(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=xm(t,s,!1),a=xm(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:J.cursor(s,s<o.head?-1:1)}});return r.changes.empty?!1:(t.dispatch(n.update(r,{scrollIntoView:!0,userEvent:i,effects:i=="delete.selection"?fe.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function xm(t,e,i){if(t instanceof fe)for(let n of t.state.facet(fe.atomicRanges).map(r=>r(t)))n.between(e,e,(r,o)=>{r<e&&o>e&&(e=i?o:r)});return e}var L6=(t,e,i)=>Lm(t,n=>{let r=n.from,{state:o}=t,s=o.doc.lineAt(r),a,l;if(i&&!e&&r>s.from&&r<s.from+200&&!/[^ \t]/.test(a=s.text.slice(0,r-s.from))){if(a[a.length-1]==" ")return r-1;let c=Ri(a,o.tabSize),u=c%vr(o)||vr(o);for(let f=0;f<u&&a[a.length-1-f]==" ";f++)r--;l=r}else l=Ft(s.text,r-s.from,e,e)+s.from,l==r&&s.number!=(e?o.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(s.text.slice(l-s.from,r-s.from))&&(l=Ft(s.text,l-s.from,!1,!1)+s.from);return l}),ec=t=>L6(t,!1,!0);var Kf=t=>L6(t,!0,!1),I6=(t,e)=>Lm(t,i=>{let n=i.head,{state:r}=t,o=r.doc.lineAt(n),s=r.charCategorizer(n);for(let a=null;;){if(n==(e?o.to:o.from)){n==i.head&&o.number!=(e?r.doc.lines:1)&&(n+=e?1:-1);break}let l=Ft(o.text,n-o.from,e)+o.from,c=o.text.slice(Math.min(n,l)-o.from,Math.max(n,l)-o.from),u=s(c);if(a!=null&&u!=a)break;(c!=" "||n!=i.head)&&(a=u),n=l}return n}),dk=t=>I6(t,!1),D6=t=>I6(t,!0),Ok=t=>Lm(t,e=>{let i=t.lineBlockAt(e.head).to;return e.head<i?i:Math.min(t.state.doc.length,e.head+1)}),z6=t=>Lm(t,e=>{let i=t.lineBlockAt(e.head).from;return e.head>i?i:Math.max(0,e.head-1)});var Jf=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:Fe.of(["",""])},range:J.cursor(n.from)}));return e(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0},Im=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>{if(!n.empty||n.from==0||n.from==t.doc.length)return{range:n};let r=n.from,o=t.doc.lineAt(r),s=r==o.from?r-1:Ft(o.text,r-o.from,!1)+o.from,a=r==o.to?r+1:Ft(o.text,r-o.from,!0)+o.from;return{changes:{from:s,to:a,insert:t.doc.slice(r,a).append(t.doc.slice(s,r))},range:J.cursor(a)}});return i.changes.empty?!1:(e(t.update(i,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Dm(t){let e=[],i=-1;for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),o=t.doc.lineAt(n.to);if(!n.empty&&n.to==o.from&&(o=t.doc.lineAt(n.to-1)),i>=r.number){let s=e[e.length-1];s.to=o.to,s.ranges.push(n)}else e.push({from:r.from,to:o.to,ranges:[n]});i=o.number+1}return e}function U6(t,e,i){if(t.readOnly)return!1;let n=[],r=[];for(let o of Dm(t)){if(i?o.to==t.doc.length:o.from==0)continue;let s=t.doc.lineAt(i?o.to+1:o.from-1),a=s.length+1;if(i){n.push({from:o.to,to:s.to},{from:o.from,insert:s.text+t.lineBreak});for(let l of o.ranges)r.push(J.range(Math.min(t.doc.length,l.anchor+a),Math.min(t.doc.length,l.head+a)))}else{n.push({from:s.from,to:o.from},{from:o.to,insert:t.lineBreak+s.text});for(let l of o.ranges)r.push(J.range(l.anchor-a,l.head-a))}}return n.length?(e(t.update({changes:n,scrollIntoView:!0,selection:J.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}var M6=({state:t,dispatch:e})=>U6(t,e,!1),N6=({state:t,dispatch:e})=>U6(t,e,!0);function q6(t,e,i){if(t.readOnly)return!1;let n=[];for(let r of Dm(t))i?n.push({from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}):n.push({from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});return e(t.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var j6=({state:t,dispatch:e})=>q6(t,e,!1),W6=({state:t,dispatch:e})=>q6(t,e,!0),V6=t=>{if(t.state.readOnly)return!1;let{state:e}=t,i=e.changes(Dm(e).map(({from:r,to:o})=>(r>0?r--:o<e.doc.length&&o++,{from:r,to:o}))),n=Nf(e.selection,r=>{let o;if(t.lineWrapping){let s=t.lineBlockAt(r.head),a=t.coordsAtPos(r.head,r.assoc||1);a&&(o=s.bottom+t.documentTop-a.bottom+t.defaultLineHeight/2)}return t.moveVertically(r,!0,o)}).map(i);return t.dispatch({changes:i,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Vie(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let i=qe(t).resolveInner(e),n=i.childBefore(e),r=i.childAfter(e),o;return n&&r&&n.to<=e&&r.from>=e&&(o=n.type.prop(_e.closedBy))&&o.indexOf(r.name)>-1&&t.doc.lineAt(n.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}var eh=B6(!1),Z6=B6(!0);function B6(t){return({state:e,dispatch:i})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{let{from:o,to:s}=r,a=e.doc.lineAt(o),l=!t&&o==s&&Vie(e,o);t&&(o=s=(s<=a.to?a:e.doc.lineAt(s)).to);let c=new ea(e,{simulateBreak:o,simulateDoubleBreak:!!l}),u=Ql(c,o);for(u==null&&(u=Ri(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));s<a.to&&/\s/.test(a.text[s-a.from]);)s++;l?{from:o,to:s}=l:o>a.from&&o<a.from+100&&!/\S/.test(a.text.slice(0,o))&&(o=a.from);let f=["",eo(e,u)];return l&&f.push(eo(e,c.lineIndent(a.from,-1))),{changes:{from:o,to:s,insert:Fe.of(f)},range:J.cursor(o+1+f[1].length)}});return i(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function pk(t,e){let i=-1;return t.changeByRange(n=>{let r=[];for(let s=n.from;s<=n.to;){let a=t.doc.lineAt(s);a.number>i&&(n.empty||n.to>a.from)&&(e(a,r,n),i=a.number),s=a.to+1}let o=t.changes(r);return{changes:r,range:J.range(o.mapPos(n.anchor,1),o.mapPos(n.head,1))}})}var Y6=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=Object.create(null),n=new ea(t,{overrideIndentation:o=>{let s=i[o];return s==null?-1:s}}),r=pk(t,(o,s,a)=>{let l=Ql(n,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let c=/^\s*/.exec(o.text)[0],u=eo(t,l);(c!=u||a.from<o.from+c.length)&&(i[o.from]=l,s.push({from:o.from,to:o.from+c.length,insert:u}))});return r.changes.empty||e(t.update(r,{userEvent:"indent"})),!0},th=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(pk(t,(i,n)=>{n.push({from:i.from,insert:t.facet(Bn)})}),{userEvent:"input.indent"})),!0),ih=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(pk(t,(i,n)=>{let r=/^\s*/.exec(i.text)[0];if(!r)return;let o=Ri(r,t.tabSize),s=0,a=eo(t,Math.max(0,o-vr(t)));for(;s<r.length&&s<a.length&&r.charCodeAt(s)==a.charCodeAt(s);)s++;n.push({from:i.from+s,to:i.from+r.length,insert:a.slice(s)})}),{userEvent:"delete.dedent"})),!0);function ut(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,i=arguments[1];if(i&&typeof i=="object"&&i.nodeType==null&&!Array.isArray(i)){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var r=i[n];typeof r=="string"?t.setAttribute(n,r):r!=null&&(t[n]=r)}e++}for(;e<arguments.length;e++)F6(t,arguments[e]);return t}function F6(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var i=0;i<e.length;i++)F6(t,e[i]);else throw new RangeError("Unsupported child node: "+e)}var H6=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t,ms=class{constructor(e,i,n=0,r=e.length,o,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=o?a=>o(H6(a)):H6,this.query=this.normalize(i)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return hi(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let i=Au(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=rn(e);let r=this.normalize(i);if(r.length)for(let o=0,s=n;;o++){let a=r.charCodeAt(o),l=this.match(a,s,this.bufferPos+this.bufferStart);if(o==r.length-1){if(l)return this.value=l,this;break}s==n&&o<i.length&&i.charCodeAt(o)==a&&s++}}}match(e,i,n){let r=null;for(let o=0;o<this.matches.length;o+=2){let s=this.matches[o],a=!1;this.query.charCodeAt(s)==e&&(s==this.query.length-1?r={from:this.matches[o+1],to:n}:(this.matches[o]++,a=!0)),a||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:i,to:n}:this.matches.push(1,i)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}};typeof Symbol!="undefined"&&(ms.prototype[Symbol.iterator]=function(){return this});var iL={from:-1,to:-1,match:/.*/.exec("")},wk="gm"+(/x/.unicode==null?"":"u"),nc=class{constructor(e,i,n,r=0,o=e.length){if(this.text=e,this.to=o,this.curLine="",this.done=!1,this.value=iL,/\\[sWDnr]|\n|\r|\[\^/.test(i))return new Nm(e,i,n,r,o);this.re=new RegExp(i,wk+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let s=e.lineAt(r);this.curLineStart=s.from,this.matchPos=qm(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let i=this.matchPos<=this.to&&this.re.exec(this.curLine);if(i){let n=this.curLineStart+i.index,r=n+i[0].length;if(this.matchPos=qm(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,i)))return this.value={from:n,to:r,match:i},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},mk=new WeakMap,Mm=class t{constructor(e,i){this.from=e,this.text=i}get to(){return this.from+this.text.length}static get(e,i,n){let r=mk.get(e);if(!r||r.from>=n||r.to<=i){let a=new t(i,e.sliceString(i,n));return mk.set(e,a),a}if(r.from==i&&r.to==n)return r;let{text:o,from:s}=r;return s>i&&(o=e.sliceString(i,s)+o,s=i),r.to<n&&(o+=e.sliceString(r.to,n)),mk.set(e,new t(s,o)),new t(i,o.slice(i-s,n-s))}},Nm=class{constructor(e,i,n,r,o){this.text=e,this.to=o,this.done=!1,this.value=iL,this.matchPos=qm(e,r),this.re=new RegExp(i,wk+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=Mm.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,i=this.re.exec(this.flat.text);if(i&&!i[0]&&i.index==e&&(this.re.lastIndex=e+1,i=this.re.exec(this.flat.text)),i){let n=this.flat.from+i.index,r=n+i[0].length;if((this.flat.to>=this.to||i.index+i[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,i)))return this.value={from:n,to:r,match:i},this.matchPos=qm(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Mm.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol!="undefined"&&(nc.prototype[Symbol.iterator]=Nm.prototype[Symbol.iterator]=function(){return this});function Bie(t){try{return new RegExp(t,wk),!0}catch(e){return!1}}function qm(t,e){if(e>=t.length)return e;let i=t.lineAt(e),n;for(;e<i.to&&(n=i.text.charCodeAt(e-i.from))>=56320&&n<57344;)e++;return e}function gk(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),i=ut("input",{class:"cm-textfield",name:"line",value:e}),n=ut("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),t.dispatch({effects:nh.of(!1)}),t.focus()):o.keyCode==13&&(o.preventDefault(),r())},onsubmit:o=>{o.preventDefault(),r()}},ut("label",t.state.phrase("Go to line"),": ",i)," ",ut("button",{class:"cm-button",type:"submit"},t.state.phrase("go")),ut("button",{name:"close",onclick:()=>{t.dispatch({effects:nh.of(!1)}),t.focus()},"aria-label":t.state.phrase("close"),type:"button"},["\xD7"]));function r(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(i.value);if(!o)return;let{state:s}=t,a=s.doc.lineAt(s.selection.main.head),[,l,c,u,f]=o,d=u?+u.slice(1):0,O=c?+c:a.number;if(c&&f){let v=O/100;l&&(v=v*(l=="-"?-1:1)+a.number/s.doc.lines),O=Math.round(s.doc.lines*v)}else c&&l&&(O=O*(l=="-"?-1:1)+a.number);let m=s.doc.line(Math.max(1,Math.min(s.doc.lines,O))),x=J.cursor(m.from+Math.max(0,Math.min(d,m.length)));t.dispatch({effects:[nh.of(!1),fe.scrollIntoView(x.from,{y:"center"})],selection:x}),t.focus()}return{dom:n}}var nh=Se.define(),G6=Ge.define({create(){return!0},update(t,e){for(let i of e.effects)i.is(nh)&&(t=i.value);return t},provide:t=>Tn.from(t,e=>e?gk:null)}),nL=t=>{let e=Gs(t,gk);if(!e){let i=[nh.of(!0)];t.state.field(G6,!1)==null&&i.push(Se.appendConfig.of([G6,Yie])),t.dispatch({effects:i}),e=Gs(t,gk)}return e&&e.dom.querySelector("input").select(),!0},Yie=fe.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),Fie={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},rL=be.define({combine(t){return _t(t,Fie,{highlightWordAroundCursor:(e,i)=>e||i,minSelectionLength:Math.min,maxMatches:Math.min})}});function oL(t){let e=[ene,Jie];return t&&e.push(rL.of(t)),e}var Hie=we.mark({class:"cm-selectionMatch"}),Gie=we.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function K6(t,e,i,n){return(i==0||t(e.sliceDoc(i-1,i))!=mt.Word)&&(n==e.doc.length||t(e.sliceDoc(n,n+1))!=mt.Word)}function Kie(t,e,i,n){return t(e.sliceDoc(i,i+1))==mt.Word&&t(e.sliceDoc(n-1,n))==mt.Word}var Jie=He.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(rL),{state:i}=t,n=i.selection;if(n.ranges.length>1)return we.none;let r=n.main,o,s=null;if(r.empty){if(!e.highlightWordAroundCursor)return we.none;let l=i.wordAt(r.head);if(!l)return we.none;s=i.charCategorizer(r.head),o=i.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l<e.minSelectionLength||l>200)return we.none;if(e.wholeWords){if(o=i.sliceDoc(r.from,r.to),s=i.charCategorizer(r.head),!(K6(s,i,r.from,r.to)&&Kie(s,i,r.from,r.to)))return we.none}else if(o=i.sliceDoc(r.from,r.to),!o)return we.none}let a=[];for(let l of t.visibleRanges){let c=new ms(i.doc,o,l.from,l.to);for(;!c.next().done;){let{from:u,to:f}=c.value;if((!s||K6(s,i,u,f))&&(r.empty&&u<=r.from&&f>=r.to?a.push(Gie.range(u,f)):(u>=r.to||f<=r.from)&&a.push(Hie.range(u,f)),a.length>e.maxMatches))return we.none}}return we.set(a)}},{decorations:t=>t.decorations}),ene=fe.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),tne=({state:t,dispatch:e})=>{let{selection:i}=t,n=J.create(i.ranges.map(r=>t.wordAt(r.head)||J.cursor(r.head)),i.mainIndex);return n.eq(i)?!1:(e(t.update({selection:n})),!0)};function ine(t,e){let{main:i,ranges:n}=t.selection,r=t.wordAt(i.head),o=r&&r.from==i.from&&r.to==i.to;for(let s=!1,a=new ms(t.doc,e,n[n.length-1].to);;)if(a.next(),a.done){if(s)return null;a=new ms(t.doc,e,0,Math.max(0,n[n.length-1].from-1)),s=!0}else{if(s&&n.some(l=>l.from==a.value.from))continue;if(o){let l=t.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}var sL=({state:t,dispatch:e})=>{let{ranges:i}=t.selection;if(i.some(o=>o.from===o.to))return tne({state:t,dispatch:e});let n=t.sliceDoc(i[0].from,i[0].to);if(t.selection.ranges.some(o=>t.sliceDoc(o.from,o.to)!=n))return!1;let r=ine(t,n);return r?(e(t.update({selection:t.selection.addRange(J.range(r.from,r.to),!1),effects:fe.scrollIntoView(r.to)})),!0):!1},oc=be.define({combine(t){return _t(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new vk(e),scrollToMatch:e=>fe.scrollIntoView(e)})}});var rc=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Bie(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(i,n)=>n=="n"?`
|
||
`:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new yk(this):new bk(this)}getCursor(e,i=0,n){let r=e.doc?e:st.create({doc:e});return n==null&&(n=r.doc.length),this.regexp?ic(this,r,i,n):tc(this,r,i,n)}},jm=class{constructor(e){this.spec=e}};function tc(t,e,i,n){return new ms(e.doc,t.unquoted,i,n,t.caseSensitive?void 0:r=>r.toLowerCase(),t.wholeWord?nne(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function nne(t,e){return(i,n,r,o)=>((o>i||o+r.length<n)&&(o=Math.max(0,i-2),r=t.sliceString(o,Math.min(t.length,n+2))),(e(Wm(r,i-o))!=mt.Word||e(Vm(r,i-o))!=mt.Word)&&(e(Vm(r,n-o))!=mt.Word||e(Wm(r,n-o))!=mt.Word))}var bk=class extends jm{constructor(e){super(e)}nextMatch(e,i,n){let r=tc(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let o=Math.min(e.doc.length,i+this.spec.unquoted.length);r=tc(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==i&&r.value.to==n?null:r.value}prevMatchInRange(e,i,n){for(let r=n;;){let o=Math.max(i,r-1e4-this.spec.unquoted.length),s=tc(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==i)return null;r-=1e4}}prevMatch(e,i,n){let r=this.prevMatchInRange(e,0,i);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=i||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,i){let n=tc(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=i)return null;r.push(n.value)}return r}highlight(e,i,n,r){let o=tc(this.spec,e,Math.max(0,i-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}};function ic(t,e,i,n){return new nc(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?rne(e.charCategorizer(e.selection.main.head)):void 0},i,n)}function Wm(t,e){return t.slice(Ft(t,e,!1),e)}function Vm(t,e){return t.slice(e,Ft(t,e))}function rne(t){return(e,i,n)=>!n[0].length||(t(Wm(n.input,n.index))!=mt.Word||t(Vm(n.input,n.index))!=mt.Word)&&(t(Vm(n.input,n.index+n[0].length))!=mt.Word||t(Wm(n.input,n.index+n[0].length))!=mt.Word)}var yk=class extends jm{nextMatch(e,i,n){let r=ic(this.spec,e,n,e.doc.length).next();return r.done&&(r=ic(this.spec,e,0,i).next()),r.done?null:r.value}prevMatchInRange(e,i,n){for(let r=1;;r++){let o=Math.max(i,n-r*1e4),s=ic(this.spec,e,o,n),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==i||a.from>o+10))return a;if(o==i)return null}}prevMatch(e,i,n){return this.prevMatchInRange(e,0,i)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(i,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let r=n.length;r>0;r--){let o=+n.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+n.slice(r)}return i})}matchAll(e,i){let n=ic(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=i)return null;r.push(n.value)}return r}highlight(e,i,n,r){let o=ic(this.spec,e,Math.max(0,i-250),Math.min(n+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}},Oo=Se.define(),kk=Se.define(),ps=Ge.define({create(t){return new rh(xk(t).create(),null)},update(t,e){for(let i of e.effects)i.is(Oo)?t=new rh(i.value.create(),t.panel):i.is(kk)&&(t=new rh(t.query,i.value?Ek:null));return t},provide:t=>Tn.from(t,e=>e.panel)});var rh=class{constructor(e,i){this.query=e,this.panel=i}},one=we.mark({class:"cm-searchMatch"}),sne=we.mark({class:"cm-searchMatch cm-searchMatch-selected"}),ane=He.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(ps))}update(t){let e=t.state.field(ps);(e!=t.startState.field(ps)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return we.none;let{view:i}=this,n=new Xi;for(let r=0,o=i.visibleRanges,s=o.length;r<s;r++){let{from:a,to:l}=o[r];for(;r<s-1&&l>o[r+1].from-2*250;)l=o[++r].to;t.highlight(i.state,a,l,(c,u)=>{let f=i.state.selection.ranges.some(d=>d.from==c&&d.to==u);n.add(c,u,f?sne:one)})}return n.finish()}},{decorations:t=>t.decorations});function oh(t){return e=>{let i=e.state.field(ps,!1);return i&&i.query.spec.valid?t(e,i):sc(e)}}var J6=oh((t,{query:e})=>{let{to:i}=t.state.selection.main,n=e.nextMatch(t.state,i,i);if(!n)return!1;let r=J.single(n.from,n.to),o=t.state.facet(oc);return t.dispatch({selection:r,effects:[Pk(t,n),o.scrollToMatch(r.main,t)],userEvent:"select.search"}),cL(t),!0}),eL=oh((t,{query:e})=>{let{state:i}=t,{from:n}=i.selection.main,r=e.prevMatch(i,n,n);if(!r)return!1;let o=J.single(r.from,r.to),s=t.state.facet(oc);return t.dispatch({selection:o,effects:[Pk(t,r),s.scrollToMatch(o.main,t)],userEvent:"select.search"}),cL(t),!0}),Sk=oh((t,{query:e})=>{let i=e.matchAll(t.state,1e3);return!i||!i.length?!1:(t.dispatch({selection:J.create(i.map(n=>J.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),aL=({state:t,dispatch:e})=>{let i=t.selection;if(i.ranges.length>1||i.main.empty)return!1;let{from:n,to:r}=i.main,o=[],s=0;for(let a=new ms(t.doc,t.sliceDoc(n,r));!a.next().done;){if(o.length>1e3)return!1;a.value.from==n&&(s=o.length),o.push(J.range(a.value.from,a.value.to))}return e(t.update({selection:J.create(o,s),userEvent:"select.search.matches"})),!0},tL=oh((t,{query:e})=>{let{state:i}=t,{from:n,to:r}=i.selection.main;if(i.readOnly)return!1;let o=e.nextMatch(i,n,n);if(!o)return!1;let s=o,a=[],l,c,u=[];if(s.from==n&&s.to==r&&(c=i.toText(e.getReplacement(s)),a.push({from:s.from,to:s.to,insert:c}),s=e.nextMatch(i,s.from,s.to),u.push(fe.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(n).number)+"."))),s){let f=a.length==0||a[0].from>=o.to?0:o.to-o.from-c.length;l=J.single(s.from-f,s.to-f),u.push(Pk(t,s)),u.push(i.facet(oc).scrollToMatch(l.main,t))}return t.dispatch({changes:a,selection:l,effects:u,userEvent:"input.replace"}),!0}),Tk=oh((t,{query:e})=>{if(t.state.readOnly)return!1;let i=e.matchAll(t.state,1e9).map(r=>{let{from:o,to:s}=r;return{from:o,to:s,insert:e.getReplacement(r)}});if(!i.length)return!1;let n=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:fe.announce.of(n),userEvent:"input.replace.all"}),!0});function Ek(t){return t.state.facet(oc).createPanel(t)}function xk(t,e){var i,n,r,o,s;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let c=t.facet(oc);return new rc({search:((i=e==null?void 0:e.literal)!==null&&i!==void 0?i:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(n=e==null?void 0:e.caseSensitive)!==null&&n!==void 0?n:c.caseSensitive,literal:(r=e==null?void 0:e.literal)!==null&&r!==void 0?r:c.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:c.regexp,wholeWord:(s=e==null?void 0:e.wholeWord)!==null&&s!==void 0?s:c.wholeWord})}function lL(t){let e=Gs(t,Ek);return e&&e.dom.querySelector("[main-field]")}function cL(t){let e=lL(t);e&&e==t.root.activeElement&&e.select()}var sc=t=>{let e=t.state.field(ps,!1);if(e&&e.panel){let i=lL(t);if(i&&i!=t.root.activeElement){let n=xk(t.state,e.query.spec);n.valid&&t.dispatch({effects:Oo.of(n)}),i.focus(),i.select()}}else t.dispatch({effects:[kk.of(!0),e?Oo.of(xk(t.state,e.query.spec)):Se.appendConfig.of(cne)]});return!0},Ck=t=>{let e=t.state.field(ps,!1);if(!e||!e.panel)return!1;let i=Gs(t,Ek);return i&&i.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:kk.of(!1)}),!0};var vk=class{constructor(e){this.view=e;let i=this.query=e.state.field(ps).query.spec;this.commit=this.commit.bind(this),this.searchField=ut("input",{value:i.search,placeholder:fn(e,"Find"),"aria-label":fn(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=ut("input",{value:i.replace,placeholder:fn(e,"Replace"),"aria-label":fn(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=ut("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=ut("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=ut("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit});function n(r,o,s){return ut("button",{class:"cm-button",name:r,onclick:o,type:"button"},s)}this.dom=ut("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,n("next",()=>J6(e),[fn(e,"next")]),n("prev",()=>eL(e),[fn(e,"previous")]),n("select",()=>Sk(e),[fn(e,"all")]),ut("label",null,[this.caseField,fn(e,"match case")]),ut("label",null,[this.reField,fn(e,"regexp")]),ut("label",null,[this.wordField,fn(e,"by word")]),...e.state.readOnly?[]:[ut("br"),this.replaceField,n("replace",()=>tL(e),[fn(e,"replace")]),n("replaceAll",()=>Tk(e),[fn(e,"replace all")])],ut("button",{name:"close",onclick:()=>Ck(e),"aria-label":fn(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new rc({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Oo.of(e)}))}keydown(e){fx(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?eL:J6)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),tL(this.view))}update(e){for(let i of e.transactions)for(let n of i.effects)n.is(Oo)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(oc).top}};function fn(t,e){return t.state.phrase(e)}var zm=30,Um=/[\s\.,:;?!]/;function Pk(t,{from:e,to:i}){let n=t.state.doc.lineAt(e),r=t.state.doc.lineAt(i).to,o=Math.max(n.from,e-zm),s=Math.min(r,i+zm),a=t.state.sliceDoc(o,s);if(o!=n.from){for(let l=0;l<zm;l++)if(!Um.test(a[l+1])&&Um.test(a[l])){a=a.slice(l);break}}if(s!=r){for(let l=a.length-1;l>a.length-zm;l--)if(!Um.test(a[l-1])&&Um.test(a[l])){a=a.slice(0,l);break}}return fe.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${n.number}.`)}var lne=fe.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),cne=[ps,Mt.low(ane),lne];var Bm=class{constructor(e,i,n){this.from=e,this.to=i,this.diagnostic=n}},Ea=class t{constructor(e,i,n){this.diagnostics=e,this.panel=i,this.selected=n}static init(e,i,n){let r=e,o=n.facet(sh).markerFilter;o&&(r=o(r,n));let s=e.slice().sort((f,d)=>f.from-d.from||f.to-d.to),a=new Xi,l=[],c=0;for(let f=0;;){let d=f==s.length?null:s[f];if(!d&&!l.length)break;let O,m;for(l.length?(O=c,m=l.reduce((v,w)=>Math.min(v,w.to),d&&d.from>O?d.from:1e8)):(O=d.from,m=d.to,l.push(d),f++);f<s.length;){let v=s[f];if(v.from==O&&(v.to>v.from||v.to==O))l.push(v),f++,m=Math.min(v.to,m);else{m=Math.min(v.from,m);break}}let x=gne(l);if(l.some(v=>v.from==v.to||v.from==v.to-1&&n.doc.lineAt(v.from).to==v.from))a.add(O,O,we.widget({widget:new Qk(x),diagnostics:l.slice()}));else{let v=l.reduce((w,T)=>T.markClass?w+" "+T.markClass:w,"");a.add(O,m,we.mark({class:"cm-lintRange cm-lintRange-"+x+v,diagnostics:l.slice(),inclusiveEnd:l.some(w=>w.to>m)}))}c=m;for(let v=0;v<l.length;v++)l[v].to<=c&&l.splice(v--,1)}let u=a.finish();return new t(u,i,ac(u))}};function ac(t,e=null,i=0){let n=null;return t.between(i,1e9,(r,o,{spec:s})=>{if(!(e&&s.diagnostics.indexOf(e)<0))if(!n)n=new Bm(r,o,e||s.diagnostics[0]);else{if(s.diagnostics.indexOf(n.diagnostic)<0)return!1;n=new Bm(n.from,o,n.diagnostic)}}),n}function une(t,e){let i=e.pos,n=e.end||i,r=t.state.facet(sh).hideOn(t,i,n);if(r!=null)return r;let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(s=>s.is(_k))||t.changes.touchesRange(o.from,Math.max(o.to,n)))}function fL(t,e){return t.field(hn,!1)?e:e.concat(Se.appendConfig.of(bne))}function hL(t,e){return{effects:fL(t,[_k.of(e)])}}var _k=Se.define(),Ak=Se.define(),dL=Se.define(),hn=Ge.define({create(){return new Ea(we.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let i=t.diagnostics.map(e.changes),n=null,r=t.panel;if(t.selected){let o=e.changes.mapPos(t.selected.from,1);n=ac(i,t.selected.diagnostic,o)||ac(i,null,o)}!i.size&&r&&e.state.facet(sh).autoPanel&&(r=null),t=new Ea(i,r,n)}for(let i of e.effects)if(i.is(_k)){let n=e.state.facet(sh).autoPanel?i.value.length?ah.open:null:t.panel;t=Ea.init(i.value,n,e.state)}else i.is(Ak)?t=new Ea(t.diagnostics,i.value?ah.open:null,t.selected):i.is(dL)&&(t=new Ea(t.diagnostics,t.panel,i.value));return t},provide:t=>[Tn.from(t,e=>e.panel),fe.decorations.from(t,e=>e.diagnostics)]});var fne=we.mark({class:"cm-lintRange cm-lintRange-active"});function hne(t,e,i){let{diagnostics:n}=t.state.field(hn),r,o=-1,s=-1;n.between(e-(i<0?1:0),e+(i>0?1:0),(l,c,{spec:u})=>{if(e>=l&&e<=c&&(l==c||(e>l||i>0)&&(e<c||i<0)))return r=u.diagnostics,o=l,s=c,!1});let a=t.state.facet(sh).tooltipFilter;return r&&a&&(r=a(r,t.state)),r?{pos:o,end:s,above:t.state.doc.lineAt(o).to<s,create(){return{dom:dne(t,r)}}}:null}function dne(t,e){return ut("ul",{class:"cm-tooltip-lint"},e.map(i=>gL(t,i,!1)))}var OL=t=>{let e=t.state.field(hn,!1);(!e||!e.panel)&&t.dispatch({effects:fL(t.state,[Ak.of(!0)])});let i=Gs(t,ah.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},uL=t=>{let e=t.state.field(hn,!1);return!e||!e.panel?!1:(t.dispatch({effects:Ak.of(!1)}),!0)},pL=t=>{let e=t.state.field(hn,!1);if(!e)return!1;let i=t.state.selection.main,n=e.diagnostics.iter(i.to+1);return!n.value&&(n=e.diagnostics.iter(0),!n.value||n.from==i.from&&n.to==i.to)?!1:(t.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),!0)};var sh=be.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},_t(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,i)=>e?i?n=>e(n)||i(n):e:i}))}});function mL(t){let e=[];if(t)e:for(let{name:i}of t){for(let n=0;n<i.length;n++){let r=i[n];if(/[a-zA-Z]/.test(r)&&!e.some(o=>o.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function gL(t,e,i){var n;let r=i?mL(e.actions):[];return ut("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},ut("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(n=e.actions)===null||n===void 0?void 0:n.map((o,s)=>{let a=!1,l=d=>{if(d.preventDefault(),a)return;a=!0;let O=ac(t.state.field(hn).diagnostics,e);O&&o.apply(t,O.from,O.to)},{name:c}=o,u=r[s]?c.indexOf(r[s]):-1,f=u<0?c:[c.slice(0,u),ut("u",c.slice(u,u+1)),c.slice(u+1)];return ut("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${c}${u<0?"":` (access key "${r[s]})"`}.`},f)}),e.source&&ut("div",{class:"cm-diagnosticSource"},e.source))}var Qk=class extends oi{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return ut("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}},Ym=class{constructor(e,i){this.diagnostic=i,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=gL(e,i,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},ah=class t{constructor(e){this.view=e,this.items=[];let i=r=>{if(r.keyCode==27)uL(this.view),this.view.focus();else if(r.keyCode==38||r.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(r.keyCode==40||r.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(r.keyCode==36)this.moveSelection(0);else if(r.keyCode==35)this.moveSelection(this.items.length-1);else if(r.keyCode==13)this.view.focus();else if(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],s=mL(o.actions);for(let a=0;a<s.length;a++)if(s[a].toUpperCase().charCodeAt(0)==r.keyCode){let l=ac(this.view.state.field(hn).diagnostics,o);l&&o.actions[a].apply(e,l.from,l.to)}}else return;r.preventDefault()},n=r=>{for(let o=0;o<this.items.length;o++)this.items[o].dom.contains(r.target)&&this.moveSelection(o)};this.list=ut("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:i,onclick:n}),this.dom=ut("div",{class:"cm-panel-lint"},this.list,ut("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>uL(this.view)},"\xD7")),this.update()}get selectedIndex(){let e=this.view.state.field(hn).selected;if(!e)return-1;for(let i=0;i<this.items.length;i++)if(this.items[i].diagnostic==e.diagnostic)return i;return-1}update(){let{diagnostics:e,selected:i}=this.view.state.field(hn),n=0,r=!1,o=null,s=new Set;for(e.between(0,this.view.state.doc.length,(a,l,{spec:c})=>{for(let u of c.diagnostics){if(s.has(u))continue;s.add(u);let f=-1,d;for(let O=n;O<this.items.length;O++)if(this.items[O].diagnostic==u){f=O;break}f<0?(d=new Ym(this.view,u),this.items.splice(n,0,d),r=!0):(d=this.items[f],f>n&&(this.items.splice(n,f-n),r=!0)),i&&d.diagnostic==i.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),o=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new Ym(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let c=l.height/this.list.offsetHeight;a.top<l.top?this.list.scrollTop-=(l.top-a.top)/c:a.bottom>l.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function i(){let n=e;e=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)i();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)i()}moveSelection(e){if(this.selectedIndex<0)return;let i=this.view.state.field(hn),n=ac(i.diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:dL.of(n)})}static open(e){return new t(e)}};function One(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function Zm(t){return One(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}var pne=fe.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Zm("#d11")},".cm-lintRange-warning":{backgroundImage:Zm("orange")},".cm-lintRange-info":{backgroundImage:Zm("#999")},".cm-lintRange-hint":{backgroundImage:Zm("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function mne(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function gne(t){let e="hint",i=1;for(let n of t){let r=mne(n.severity);r>i&&(i=r,e=n.severity)}return e}var bne=[hn,fe.decorations.compute([hn],t=>{let{selected:e,panel:i}=t.field(hn);return!e||!i||e.from==e.to?we.none:we.set([fne.range(e.from,e.to)])}),fp(hne,{hideOn:une}),pne];var bL=t=>e=>{let i=t==="down",n=e.state.selection;for(let r of n.ranges)n=n.addRange(e.moveVertically(r,i));return e.dispatch({selection:n}),!0},yne=bL("up"),xne=bL("down"),vne=t=>{let e=null;for(let i of t.state.selection.ranges)if(!i.empty)for(let n=i.from;n<=i.to;){let r=t.state.doc.lineAt(n),o=Math.min(r.to,i.to);e?e=e.addRange(J.range(o,o)):e=J.single(o),n=r.to+1}return e?(t.dispatch({selection:e}),!0):!1},yL=[{key:"Ctrl-Space",run:Al},{key:"Escape",run:ff},{key:"ArrowDown",run:io(!0)},{key:"ArrowUp",run:io(!1)},{key:"PageDown",run:io(!0,"page")},{key:"PageUp",run:io(!1,"page")},{key:"Enter",run:Cp},{key:"Tab",run:Cp},{key:"Mod-f",run:sc,scope:"editor search-panel"},{key:"Escape",run:Ck,scope:"editor search-panel"},{key:"Alt-Enter",run:Sk,scope:"editor search-panel"},{key:"Mod-Alt-Enter",run:Tk,scope:"editor search-panel"},{key:"Ctrl-g",run:nL},{key:"Mod-d",run:sL,preventDefault:!0},{key:"Shift-Mod-l",run:aL},{key:"Enter",run:eh,shift:eh},{key:"ArrowLeft",run:qf,shift:ak,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Tm,shift:$m},{key:"ArrowRight",run:sk,shift:lk,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Em,shift:Xm},{key:"ArrowUp",run:jf,shift:Hl,preventDefault:!0},{key:"ArrowDown",run:Wf,shift:Gl,preventDefault:!0},{key:"Home",run:Zf,shift:hk},{mac:"Cmd-ArrowLeft",run:Zf,shift:hk},{key:"Mod-Home",run:Hf,shift:Kl},{mac:"Cmd-ArrowUp",run:Hf,shift:Kl},{key:"PageUp",run:Yl,shift:Bf},{mac:"Ctrl-ArrowUp",run:Yl,shift:Bf},{key:"PageDown",run:Fl,shift:Ta},{mac:"Ctrl-ArrowDown",run:Fl,shift:Ta},{key:"End",run:Vf,shift:fk},{mac:"Cmd-ArrowRight",run:Vf,shift:fk},{key:"Mod-Alt-ArrowUp",linux:"Shift-Alt-ArrowUp",run:yne,preventDefault:!0},{key:"Mod-Alt-ArrowDown",linux:"Shift-Alt-ArrowDown",run:xne,preventDefault:!0},{key:"Shift-Alt-i",run:vne},{key:"Mod-End",run:Gf,shift:Jl},{mac:"Cmd-ArrowDown",run:Gf,shift:Jl},{key:"Mod-a",run:Rm},{key:"Backspace",run:w_},{key:"Backspace",run:ec,shift:ec},{key:"Delete",run:Kf},{key:"Mod-Backspace",mac:"Alt-Backspace",run:dk},{key:"Mod-Delete",mac:"Alt-Delete",run:D6},{mac:"Mod-Backspace",run:z6},{mac:"Mod-Delete",run:Ok},{mac:"Ctrl-b",run:qf,shift:ak,preventDefault:!0},{mac:"Ctrl-f",run:sk,shift:lk},{mac:"Ctrl-p",run:jf,shift:Hl},{mac:"Ctrl-n",run:Wf,shift:Gl},{mac:"Ctrl-a",run:Pm,shift:Yf},{mac:"Ctrl-e",run:Qm,shift:Ff},{mac:"Ctrl-d",run:Kf},{mac:"Ctrl-h",run:ec},{mac:"Ctrl-k",run:Ok},{mac:"Ctrl-Alt-h",run:dk},{mac:"Ctrl-o",run:Jf},{mac:"Ctrl-t",run:Im},{mac:"Ctrl-v",run:Fl},{mac:"Alt-v",run:Yl},{key:"Shift-Mod-k",run:V6},{key:"Alt-ArrowDown",run:N6},{key:"Alt-ArrowUp",run:M6},{win:"Shift-Alt-ArrowDown",mac:"Shift-Alt-ArrowDown",run:W6},{win:"Shift-Alt-ArrowUp",mac:"Shift-Alt-ArrowUp",run:j6},{key:"Mod-l",run:R6,preventDefault:!0},{key:"Shift-Mod-\\",run:Q6},{key:"Tab",run:th,shift:ih,preventDefault:!0},{key:"Mod-[",run:ih},{key:"Mod-]",run:th},{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:wp},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:WQ},{key:"Mod-k Mod-0",run:ZQ},{key:"Mod-k Mod-j",run:BQ},{key:"Mod-k Mod-c",run:O6},{key:"Mod-k Mod-u",run:p6},{key:"Mod-/",run:Uf},{key:"Shift-Alt-a",run:m6},{key:"Mod-z",run:ka,preventDefault:!0},{key:"Mod-y",run:fs,preventDefault:!0},{key:"Mod-Shift-z",run:fs,preventDefault:!0},{key:"Mod-u",run:v6,preventDefault:!0},{key:"Mod-Shift-m",run:OL},{key:"F8",run:pL}];function wne(t){var e=t.Pos;function i(h,p,b){if(p.line===b.line&&p.ch>=b.ch-1){var y=h.getLine(p.line),k=y.charCodeAt(p.ch);55296<=k&&k<=55551&&(b.ch+=1)}return{start:p,end:b}}var n=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],r=n.length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],s=On("");function a(h){h.setOption("disableInput",!0),h.setOption("showCursorWhenSelecting",!1),t.signal(h,"vim-mode-change",{mode:"normal"}),h.on("cursorActivity",yS),ve(h),t.on(h.getInputField(),"paste",c(h))}function l(h){h.setOption("disableInput",!1),h.off("cursorActivity",yS),t.off(h.getInputField(),"paste",c(h)),h.state.vim=null,gc&&clearTimeout(gc)}function c(h){var p=h.state.vim;return p.onPasteFn||(p.onPasteFn=function(){p.insertMode||(h.setCursor($e(h.getCursor(),0,1)),ce.enterInsertMode(h,{},p))}),p.onPasteFn}var u=/[\d]/,f=[t.isWordChar,function(h){return h&&!t.isWordChar(h)&&!/\s/.test(h)}],d=[function(h){return/\S/.test(h)}],O=["<",">"],m=["-",'"',".",":","_","/","+"],x=/^\w$/,v;try{v=new RegExp("^[\\p{Lu}]$","u")}catch(h){v=/^[A-Z]$/}function w(h,p){return p>=h.firstLine()&&p<=h.lastLine()}function T(h){return/^[a-z]$/.test(h)}function Q(h){return"()[]{}".indexOf(h)!=-1}function I(h){return u.test(h)}function z(h){return v.test(h)}function $(h){return/^\s*$/.test(h)}function X(h){return".?!".indexOf(h)!=-1}function Y(h,p){for(var b=0;b<p.length;b++)if(p[b]==h)return!0;return!1}var K={};function N(h,p,b,y,k){if(p===void 0&&!k)throw Error("defaultValue is required unless callback is provided");if(b||(b="string"),K[h]={type:b,defaultValue:p,callback:k},y)for(var S=0;S<y.length;S++)K[y[S]]=K[h];p&&te(h,p)}function te(h,p,b,y){var k=K[h];y=y||{};var S=y.scope;if(!k)return new Error("Unknown option: "+h);if(k.type=="boolean"){if(p&&p!==!0)return new Error("Invalid argument: "+h+"="+p);p!==!1&&(p=!0)}k.callback?(S!=="local"&&k.callback(p,void 0),S!=="global"&&b&&k.callback(p,b)):(S!=="local"&&(k.value=k.type=="boolean"?!!p:p),S!=="global"&&b&&(b.state.vim.options[h]={value:p}))}function oe(h,p,b){var y=K[h];b=b||{};var k=b.scope;if(!y)return new Error("Unknown option: "+h);if(y.callback){let S=p&&y.callback(void 0,p);return k!=="global"&&S!==void 0?S:k!=="local"?y.callback():void 0}else return(k!=="global"&&p&&p.state.vim.options[h]||k!=="local"&&y||{}).value}N("filetype",void 0,"string",["ft"],function(h,p){if(p!==void 0)if(h===void 0){let b=p.getOption("mode");return b=="null"?"":b}else{let b=h==""?"null":h;p.setOption("mode",b)}}),N("textwidth",80,"number",["tw"],function(h,p){if(p!==void 0)if(h===void 0){var b=p.getOption("textwidth");return b}else{var y=Math.round(h);y>1&&p.setOption("textwidth",y)}});var re=function(){var h=100,p=-1,b=0,y=0,k=new Array(h);function S(R,M,q){var ee=p%h,ne=k[ee];function G(ae){var he=++p%h,Ae=k[he];Ae&&Ae.clear(),k[he]=R.setBookmark(ae)}if(ne){var V=ne.find();V&&!vt(V,M)&&G(M)}else G(M);G(q),b=p,y=p-h+1,y<0&&(y=0)}function P(R,M){p+=M,p>b?p=b:p<y&&(p=y);var q=k[(h+p)%h];if(q&&!q.find()){var ee=M>0?1:-1,ne,G=R.getCursor();do if(p+=ee,q=k[(h+p)%h],q&&(ne=q.find())&&!vt(G,ne))break;while(p<b&&p>y)}return q}function A(R,M){var q=p,ee=P(R,M);return p=q,ee&&ee.find()}return{cachedCursor:void 0,add:S,find:A,move:P}},de=function(h){return h?{changes:h.changes,expectCursorActivityForChange:h.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};class pe{constructor(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=de()}exitMacroRecordMode(){var p=j.macroModeState;p.onRecordingDone&&p.onRecordingDone(),p.onRecordingDone=void 0,p.isRecording=!1}enterMacroRecordMode(p,b){var y=j.registerController.getRegister(b);if(y){if(y.clear(),this.latestRegister=b,p.openDialog){var k=ko("span",{class:"cm-vim-message"},"recording @"+b);this.onRecordingDone=p.openDialog(k,null,{bottom:!0})}this.isRecording=!0}}}function ve(h){return h.state.vim||(h.state.vim={inputState:new pn,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),h.state.vim}var j;function ue(){j={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:re(),macroModeState:new pe,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Cg({}),searchHistoryController:new dc,exCommandHistoryController:new dc};for(var h in K){var p=K[h];p.value=p.defaultValue}}var Z,C={enterVimMode:a,leaveVimMode:l,buildKeyMap:function(){},getRegisterController:function(){return j.registerController},resetVimGlobalState_:ue,getVimGlobalState_:function(){return j},maybeInitVimState_:ve,suppressErrorLogging:!1,InsertModeKey:Ig,map:function(h,p,b){zn.map(h,p,b)},unmap:function(h,p){return zn.unmap(h,p)},noremap:function(h,p,b){zn.map(h,p,b,!0)},mapclear:function(h){var p=n.length,b=r,y=n.slice(0,p-b);if(n=n.slice(p-b),h)for(var k=y.length-1;k>=0;k--){var S=y[k];if(h!==S.context)if(S.context)this._mapCommand(S);else{var P=["normal","insert","visual"];for(var A in P)if(P[A]!==h){var R=Object.assign({},S);R.context=P[A],this._mapCommand(R)}}}},langmap:It,vimKeyFromEvent:Lt,setOption:te,getOption:oe,defineOption:N,defineEx:function(h,p,b){if(!p)p=h;else if(h.indexOf(p)!==0)throw new Error('(Vim.defineEx) "'+p+'" is not a prefix of "'+h+'", command not registered');mS[h]=b,zn.commandMap_[p]={name:h,shortName:p,type:"api"}},handleKey:function(h,p,b){var y=this.findKey(h,p,b);if(typeof y=="function")return y()},multiSelectHandleKey:kD,findKey:function(h,p,b){var y=ve(h),k=h;function S(){var q=j.macroModeState;if(q.isRecording){if(p=="q")return q.exitMacroRecordMode(),Wt(k),!0;b!="mapping"&&xD(q,p)}}function P(){if(p=="<Esc>"){if(y.visualMode)tr(k);else if(y.insertMode)So(k);else return;return Wt(k),!0}}function A(){if(P())return!0;y.inputState.keyBuffer.push(p);var q=y.inputState.keyBuffer.join(""),ee=p.length==1,ne=er.matchCommand(q,n,y.inputState,"insert"),G=y.inputState.changeQueue;if(ne.type=="none")return Wt(k),!1;if(ne.type=="partial"){if(ne.expectLiteralNext&&(y.expectLiteralNext=!0),Z&&window.clearTimeout(Z),Z=ee&&window.setTimeout(function(){y.insertMode&&y.inputState.keyBuffer.length&&Wt(k)},oe("insertModeEscKeysTimeout")),ee){var V=k.listSelections();(!G||G.removed.length!=V.length)&&(G=y.inputState.changeQueue=new Ch),G.inserted+=p;for(var ae=0;ae<V.length;ae++){var he=$t(V[ae].anchor,V[ae].head),Ae=wo(V[ae].anchor,V[ae].head),Qe=k.getRange(he,k.state.overwrite?$e(Ae,0,1):Ae);G.removed[ae]=(G.removed[ae]||"")+Qe}}return!ee}if(y.expectLiteralNext=!1,Z&&window.clearTimeout(Z),ne.command&&G){for(var V=k.listSelections(),ae=0;ae<V.length;ae++){var Re=V[ae].head;k.replaceRange(G.removed[ae]||"",$e(Re,0,-G.inserted.length),Re,"+input")}j.macroModeState.lastInsertModeChanges.changes.pop()}return ne.command||Wt(k),ne.command}function R(){if(S()||P())return!0;y.inputState.keyBuffer.push(p);var q=y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(q))return!0;var ee=/^(\d*)(.*)$/.exec(q);if(!ee)return Wt(k),!1;var ne=y.visualMode?"visual":"normal",G=ee[2]||ee[1];y.inputState.operatorShortcut&&y.inputState.operatorShortcut.slice(-1)==G&&(G=y.inputState.operatorShortcut);var V=er.matchCommand(G,n,y.inputState,ne);return V.type=="none"?(Wt(k),!1):V.type=="partial"?(V.expectLiteralNext&&(y.expectLiteralNext=!0),!0):V.type=="clear"?(Wt(k),!0):(y.expectLiteralNext=!1,y.inputState.keyBuffer.length=0,ee=/^(\d*)(.*)$/.exec(q),ee&&ee[1]&&ee[1]!="0"&&y.inputState.pushRepeatDigit(ee[1]),V.command)}var M;return y.insertMode?M=A():M=R(),M===!1?!y.insertMode&&p.length===1?function(){return!0}:void 0:M===!0?function(){return!0}:function(){return k.operation(function(){k.curOp.isVimOp=!0;try{M.type=="keyToKey"?We(k,M.toKeys,M):er.processCommand(k,y,M)}catch(q){throw k.state.vim=void 0,ve(k),C.suppressErrorLogging||console.log(q),q}return!0})}},handleEx:function(h,p){zn.processCommand(h,p)},defineMotion:Pg,defineAction:ye,defineOperator:Qg,mapCommand:bD,_mapCommand:gS,defineRegister:Ph,exitVisualMode:tr,exitInsertMode:So},W=[],se=!1,D;function Ne(h){if(h[0]=="<"){var p=h.toLowerCase().slice(1,-1),b=p.split("-");if(p=b.pop()||"",p=="lt")h="<";else if(p=="space")h=" ";else if(p=="cr")h=`
|
||
`;else if(Xe[p]){var y=D.value,k={key:Xe[p],target:{value:y,selectionEnd:y.length,selectionStart:y.length}};D.onKeyDown&&D.onKeyDown(k,D.value,P),D&&D.onKeyUp&&D.onKeyUp(k,D.value,P);return}}if(h==`
|
||
`){var S=D;D=null,S.onClose&&S.onClose(S.value)}else D.value=(D.value||"")+h;function P(A){typeof A=="string"?D.value=A:D=null}}function We(h,p,b){var y=se;if(b){if(W.indexOf(b)!=-1)return;W.push(b),se=b.noremap!=!1}try{for(var k=ve(h),S=/<(?:[CSMA]-)*\w+>|./gi,P;P=S.exec(p);){var A=P[0],R=k.insertMode;if(D){Ne(A);continue}var M=C.handleKey(h,A,"mapping");if(!M&&R&&k.insertMode){if(A[0]=="<"){var q=A.toLowerCase().slice(1,-1),ee=q.split("-");if(q=ee.pop()||"",q=="lt")A="<";else if(q=="space")A=" ";else if(q=="cr")A=`
|
||
`;else if(Xe.hasOwnProperty(q)){A=Xe[q],kS(h,A);continue}else A=A[0],S.lastIndex=P.index+1}h.replaceSelection(A)}}}finally{if(W.pop(),se=W.length?y:!1,!W.length&&D){var ne=D;D=null,pc(h,ne)}}}var Ve={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Ct={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Xe={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(Ve)).forEach(function(h){Xe[(Ve[h]||"").toLowerCase()]=Xe[h.toLowerCase()]=h});function Lt(h,p){var S;var b=h.key;if(!Ct[b]){b.length>1&&b[0]=="n"&&(b=b.replace("Numpad","")),b=Ve[b]||b;var y="";if(h.ctrlKey&&(y+="C-"),h.altKey&&(y+="A-"),h.metaKey&&(y+="M-"),t.isMac&&h.altKey&&!h.metaKey&&!h.ctrlKey&&(y=y.slice(2)),(y||b.length>1)&&h.shiftKey&&(y+="S-"),p&&!p.expectLiteralNext&&b.length==1){if(s.keymap&&b in s.keymap)(s.remapCtrl!=!1||!y)&&(b=s.keymap[b]);else if(b.charCodeAt(0)>255){var k=((S=h.code)==null?void 0:S.slice(-1))||"";h.shiftKey||(k=k.toLowerCase()),k&&(b=k)}}return y+=b,y.length>1&&(y="<"+y+">"),y}}function It(h,p){s.string!==h&&(s=On(h)),s.remapCtrl=p}function On(h){let p={};if(!h)return{keymap:p,string:""};function b(y){return y.split(/\\?(.)/).filter(Boolean)}return h.split(/((?:[^\\,]|\\.)+),/).map(y=>{if(!y)return;let k=y.split(/((?:[^\\;]|\\.)+);/);if(k.length==3){let S=b(k[1]),P=b(k[2]);if(S.length!==P.length)return;for(let A=0;A<S.length;++A)p[S[A]]=P[A]}else if(k.length==1){let S=b(y);if(S.length%2!==0)return;for(let P=0;P<S.length;P+=2)p[S[P]]=S[P+1]}}),{keymap:p,string:h}}N("langmap",void 0,"string",["lmap"],function(h,p){if(h===void 0)return s.string;It(h)});class pn{constructor(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}pushRepeatDigit(p){this.operator?this.motionRepeat=this.motionRepeat.concat(p):this.prefixRepeat=this.prefixRepeat.concat(p)}getRepeat(){var p=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(p=1,this.prefixRepeat.length>0&&(p*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(p*=parseInt(this.motionRepeat.join(""),10))),p}}function Wt(h,p){h.state.vim.inputState=new pn,h.state.vim.expectLiteralNext=!1,t.signal(h,"vim-command-done",p)}function Ch(){this.removed=[],this.inserted=""}class Gi{constructor(p,b,y){this.clear(),this.keyBuffer=[p||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!b,this.blockwise=!!y}setText(p,b,y){this.keyBuffer=[p||""],this.linewise=!!b,this.blockwise=!!y}pushText(p,b){b&&(this.linewise||this.keyBuffer.push(`
|
||
`),this.linewise=!0),this.keyBuffer.push(p)}pushInsertModeChanges(p){this.insertModeChanges.push(de(p))}pushSearchQuery(p){this.searchQueries.push(p)}clear(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1}toString(){return this.keyBuffer.join("")}}function Ph(h,p){var b=j.registerController.registers;if(!h||h.length!=1)throw Error("Register name must be 1 character");if(b[h])throw Error("Register already defined "+h);b[h]=p,m.push(h)}class Cg{constructor(p){this.registers=p,this.unnamedRegister=p['"']=new Gi,p["."]=new Gi,p[":"]=new Gi,p["/"]=new Gi,p["+"]=new Gi}pushText(p,b,y,k,S){if(p!=="_"){k&&y.charAt(y.length-1)!==`
|
||
`&&(y+=`
|
||
`);var P=this.isValidRegister(p)?this.getRegister(p):null;if(!P){switch(b){case"yank":this.registers[0]=new Gi(y,k,S);break;case"delete":case"change":y.indexOf(`
|
||
`)==-1?this.registers["-"]=new Gi(y,k):(this.shiftNumericRegisters_(),this.registers[1]=new Gi(y,k));break}this.unnamedRegister.setText(y,k,S);return}var A=z(p);A?P.pushText(y,k):P.setText(y,k,S),p==="+"&&navigator.clipboard.writeText(y),this.unnamedRegister.setText(P.toString(),k)}}getRegister(p){return this.isValidRegister(p)?(p=p.toLowerCase(),this.registers[p]||(this.registers[p]=new Gi),this.registers[p]):this.unnamedRegister}isValidRegister(p){return p&&(Y(p,m)||x.test(p))}shiftNumericRegisters_(){for(var p=9;p>=2;p--)this.registers[p]=this.getRegister(""+(p-1))}}class dc{constructor(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}nextMatch(p,b){var y=this.historyBuffer,k=b?-1:1;this.initialPrefix===null&&(this.initialPrefix=p);for(var S=this.iterator+k;b?S>=0:S<y.length;S+=k)for(var P=y[S],A=0;A<=P.length;A++)if(this.initialPrefix==P.substring(0,A))return this.iterator=S,P;if(S>=y.length)return this.iterator=y.length,this.initialPrefix;if(S<0)return p}pushInput(p){var b=this.historyBuffer.indexOf(p);b>-1&&this.historyBuffer.splice(b,1),p.length&&this.historyBuffer.push(p)}reset(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}}var er={matchCommand:function(h,p,b,y){var k=Ki(h,p,y,b);if(!k.full&&!k.partial)return{type:"none"};if(!k.full&&k.partial)return{type:"partial",expectLiteralNext:k.partial.length==1&&k.partial[0].keys.slice(-11)=="<character>"};for(var S,P=0;P<k.full.length;P++){var A=k.full[P];S||(S=A)}if(S.keys.slice(-11)=="<character>"||S.keys.slice(-10)=="<register>"){var R=In(h);if(!R||R.length>1)return{type:"clear"};b.selectedCharacter=R}return{type:"full",command:S}},processCommand:function(h,p,b){switch(p.inputState.repeatOverride=b.repeatOverride,b.type){case"motion":this.processMotion(h,p,b);break;case"operator":this.processOperator(h,p,b);break;case"operatorMotion":this.processOperatorMotion(h,p,b);break;case"action":this.processAction(h,p,b);break;case"search":this.processSearch(h,p,b);break;case"ex":case"keyToEx":this.processEx(h,p,b);break}},processMotion:function(h,p,b){p.inputState.motion=b.motion,p.inputState.motionArgs=je(b.motionArgs),this.evalInput(h,p)},processOperator:function(h,p,b){var y=p.inputState;if(y.operator)if(y.operator==b.operator){y.motion="expandToLine",y.motionArgs={linewise:!0,repeat:1},this.evalInput(h,p);return}else Wt(h);y.operator=b.operator,y.operatorArgs=je(b.operatorArgs),b.keys.length>1&&(y.operatorShortcut=b.keys),b.exitVisualBlock&&(p.visualBlock=!1,La(h)),p.visualMode&&this.evalInput(h,p)},processOperatorMotion:function(h,p,b){var y=p.visualMode,k=je(b.operatorMotionArgs);k&&y&&k.visualLine&&(p.visualLine=!0),this.processOperator(h,p,b),y||this.processMotion(h,p,b)},processAction:function(h,p,b){var y=p.inputState,k=y.getRepeat(),S=!!k,P=je(b.actionArgs)||{repeat:1};y.selectedCharacter&&(P.selectedCharacter=y.selectedCharacter),b.operator&&this.processOperator(h,p,b),b.motion&&this.processMotion(h,p,b),(b.motion||b.operator)&&this.evalInput(h,p),P.repeat=k||1,P.repeatIsExplicit=S,P.registerName=y.registerName,Wt(h),p.lastMotion=null,b.isEdit&&this.recordLastEdit(p,y,b),ce[b.action](h,P,p)},processSearch:function(h,p,b){if(!h.getSearchCursor)return;var y=b.searchArgs.forward,k=b.searchArgs.wholeWordOnly;Dn(h).setReversed(!y);var S=y?"/":"?",P=Dn(h).getQuery(),A=h.getScrollInfo();function R(ae,he,Ae){j.searchHistoryController.pushInput(ae),j.searchHistoryController.reset();try{mc(h,ae,he,Ae)}catch(Qe){dt(h,"Invalid regex: "+ae),Wt(h);return}er.processMotion(h,p,{keys:"",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:b.searchArgs.toJumplist}})}function M(ae){h.scrollTo(A.left,A.top),R(ae,!0,!0);var he=j.macroModeState;he.isRecording&&wD(he,ae)}function q(ae,he,Ae){var Qe=Lt(ae),Re,Ot;Qe=="<Up>"||Qe=="<Down>"?(Re=Qe=="<Up>",Ot=ae.target?ae.target.selectionEnd:0,he=j.searchHistoryController.nextMatch(he,Re)||"",Ae(he),Ot&&ae.target&&(ae.target.selectionEnd=ae.target.selectionStart=Math.min(Ot,ae.target.value.length))):Qe&&Qe!="<Left>"&&Qe!="<Right>"&&j.searchHistoryController.reset();var bi;try{bi=mc(h,he,!0,!0)}catch(Kt){}bi?h.scrollIntoView(OS(h,!y,bi),30):(Rg(h),h.scrollTo(A.left,A.top))}function ee(ae,he,Ae){var Qe=Lt(ae);Qe=="<Esc>"||Qe=="<C-c>"||Qe=="<C-[>"||Qe=="<BS>"&&he==""?(j.searchHistoryController.pushInput(he),j.searchHistoryController.reset(),mc(h,P),Rg(h),h.scrollTo(A.left,A.top),t.e_stop(ae),Wt(h),Ae(),h.focus()):Qe=="<Up>"||Qe=="<Down>"?t.e_stop(ae):Qe=="<C-u>"&&(t.e_stop(ae),Ae(""))}switch(b.searchArgs.querySrc){case"prompt":var ne=j.macroModeState;if(ne.isPlaying){let he=ne.replaySearchQueries.shift();R(he,!0,!1)}else pc(h,{onClose:M,prefix:S,desc:"(JavaScript regexp)",onKeyUp:q,onKeyDown:ee});break;case"wordUnderCursor":var G=$g(h,{noSymbol:!0}),V=!0;if(G||(G=$g(h,{noSymbol:!1}),V=!1),!G){dt(h,"No word under cursor"),Wt(h);return}let ae=h.getLine(G.start.line).substring(G.start.ch,G.end.ch);V&&k?ae="\\b"+ae+"\\b":ae=q7(ae),j.jumpList.cachedCursor=h.getCursor(),h.setCursor(G.start),R(ae,!0,!1);break}},processEx:function(h,p,b){function y(S){j.exCommandHistoryController.pushInput(S),j.exCommandHistoryController.reset(),zn.processCommand(h,S),h.state.vim&&Wt(h)}function k(S,P,A){var R=Lt(S),M,q;(R=="<Esc>"||R=="<C-c>"||R=="<C-[>"||R=="<BS>"&&P=="")&&(j.exCommandHistoryController.pushInput(P),j.exCommandHistoryController.reset(),t.e_stop(S),Wt(h),A(),h.focus()),R=="<Up>"||R=="<Down>"?(t.e_stop(S),M=R=="<Up>",q=S.target?S.target.selectionEnd:0,P=j.exCommandHistoryController.nextMatch(P,M)||"",A(P),q&&S.target&&(S.target.selectionEnd=S.target.selectionStart=Math.min(q,S.target.value.length))):R=="<C-u>"?(t.e_stop(S),A("")):R&&R!="<Left>"&&R!="<Right>"&&j.exCommandHistoryController.reset()}b.type=="keyToEx"?zn.processCommand(h,b.exArgs.input):p.visualMode?pc(h,{onClose:y,prefix:":",value:"'<,'>",onKeyDown:k,selectValueOnOpen:!1}):pc(h,{onClose:y,prefix:":",onKeyDown:k})},evalInput:function(h,p){var b=p.inputState,y=b.motion,k=b.motionArgs||{repeat:1},S=b.operator,P=b.operatorArgs||{},A=b.registerName,R=p.sel,M=nt(p.visualMode?Ce(h,R.head):h.getCursor("head")),q=nt(p.visualMode?Ce(h,R.anchor):h.getCursor("anchor")),ee=nt(M),ne=nt(q),G,V,ae;if(S&&this.recordLastEdit(p,b),b.repeatOverride!==void 0?ae=b.repeatOverride:ae=b.getRepeat(),ae>0&&k.explicitRepeat?k.repeatIsExplicit=!0:(k.noRepeat||!k.explicitRepeat&&ae===0)&&(ae=1,k.repeatIsExplicit=!1),b.selectedCharacter&&(k.selectedCharacter=P.selectedCharacter=b.selectedCharacter),k.repeat=ae,Wt(h),y){var he=Ln[y](h,M,k,p,b);if(p.lastMotion=Ln[y],!he)return;if(k.toJumplist){var Ae=j.jumpList,Qe=Ae.cachedCursor;Qe?(tS(h,Qe,he),delete Ae.cachedCursor):tS(h,M,he)}he instanceof Array?(V=he[0],G=he[1]):G=he,G||(G=nt(M)),p.visualMode?(p.visualBlock&&G.ch===1/0||(G=Ce(h,G,ee)),V&&(V=Ce(h,V)),V=V||ne,R.anchor=V,R.head=G,La(h),Pr(h,p,"<",ft(V,G)?V:G),Pr(h,p,">",ft(V,G)?G:V)):S||(G=Ce(h,G,ee),h.setCursor(G.line,G.ch))}if(S){if(P.lastSel){V=ne;var Re=P.lastSel,Ot=Math.abs(Re.head.line-Re.anchor.line),bi=Math.abs(Re.head.ch-Re.anchor.ch);Re.visualLine?G=new e(ne.line+Ot,ne.ch):Re.visualBlock?G=new e(ne.line+Ot,ne.ch+bi):Re.head.line==Re.anchor.line?G=new e(ne.line,ne.ch+bi):G=new e(ne.line+Ot,ne.ch),p.visualMode=!0,p.visualLine=Re.visualLine,p.visualBlock=Re.visualBlock,R=p.sel={anchor:V,head:G},La(h)}else p.visualMode&&(P.lastSel={anchor:nt(R.anchor),head:nt(R.head),visualBlock:p.visualBlock,visualLine:p.visualLine});var Kt,li,Ke,tt,Ci;if(p.visualMode){Kt=$t(R.head,R.anchor),li=wo(R.head,R.anchor),Ke=p.visualLine||P.linewise,tt=p.visualBlock?"block":Ke?"line":"char";var ci=i(h,Kt,li);if(Ci=Ag(h,{anchor:ci.start,head:ci.end},tt),Ke){var ti=Ci.ranges;if(tt=="block")for(var nr=0;nr<ti.length;nr++)ti[nr].head.ch=ai(h,ti[nr].head.line);else tt=="line"&&(ti[0].head=new e(ti[0].head.line+1,0))}}else{if(Kt=nt(V||ne),li=nt(G||ee),ft(li,Kt)){var zg=Kt;Kt=li,li=zg}Ke=k.linewise||P.linewise,Ke?F7(h,Kt,li):k.forward&&Y7(h,Kt,li),tt="char";var SD=!k.inclusive||Ke,ci=i(h,Kt,li);Ci=Ag(h,{anchor:ci.start,head:ci.end},tt,SD)}h.setSelections(Ci.ranges,Ci.primary),p.lastMotion=null,P.repeat=ae,P.registerName=A,P.linewise=Ke;var Ug=Oc[S](h,P,Ci.ranges,ne,G);p.visualMode&&tr(h,Ug!=null),Ug&&h.setCursor(Ug)}},recordLastEdit:function(h,p,b){var y=j.macroModeState;y.isPlaying||(h.lastEditInputState=p,h.lastEditActionCommand=b,y.lastInsertModeChanges.changes=[],y.lastInsertModeChanges.expectCursorActivityForChange=!1,y.lastInsertModeChanges.visualBlock=h.visualBlock?h.sel.head.line-h.sel.anchor.line:0)}},Ln={moveToTopLine:function(h,p,b){var y=Lg(h).top+b.repeat-1;return new e(y,ir(h.getLine(y)))},moveToMiddleLine:function(h){var p=Lg(h),b=Math.floor((p.top+p.bottom)*.5);return new e(b,ir(h.getLine(b)))},moveToBottomLine:function(h,p,b){var y=Lg(h).bottom-b.repeat+1;return new e(y,ir(h.getLine(y)))},expandToLine:function(h,p,b){var y=p;return new e(y.line+b.repeat-1,1/0)},findNext:function(h,p,b){var y=Dn(h),k=y.getQuery();if(k){var S=!b.forward;return S=y.isReversed()?!S:S,dS(h,k),OS(h,S,k,b.repeat)}},findAndSelectNextInclusive:function(h,p,b,y,k){var S=Dn(h),P=S.getQuery();if(P){var A=!b.forward;A=S.isReversed()?!A:A;var R=OD(h,A,P,b.repeat,y);if(R){if(k.operator)return R;var M=R[0],q=new e(R[1].line,R[1].ch-1);if(y.visualMode){(y.visualLine||y.visualBlock)&&(y.visualLine=!1,y.visualBlock=!1,t.signal(h,"vim-mode-change",{mode:"visual",subMode:""}));var ee=y.sel.anchor;if(ee)return S.isReversed()?b.forward?[ee,M]:[ee,q]:b.forward?[ee,q]:[ee,M]}else y.visualMode=!0,y.visualLine=!1,y.visualBlock=!1,t.signal(h,"vim-mode-change",{mode:"visual",subMode:""});return A?[q,M]:[M,q]}}},goToMark:function(h,p,b,y){var k=_h(h,y,b.selectedCharacter||"");return k?b.linewise?{line:k.line,ch:ir(h.getLine(k.line))}:k:null},moveToOtherHighlightedEnd:function(h,p,b,y){if(y.visualBlock&&b.sameLine){var k=y.sel;return[Ce(h,new e(k.anchor.line,k.head.ch)),Ce(h,new e(k.head.line,k.anchor.ch))]}else return[y.sel.head,y.sel.anchor]},jumpToMark:function(h,p,b,y){for(var k=p,S=0;S<b.repeat;S++){var P=k;for(var A in y.marks)if(T(A)){var R=y.marks[A].find(),M=b.forward?ft(R,P):ft(P,R);if(!M&&!(b.linewise&&R.line==P.line)){var q=vt(P,k),ee=b.forward?G2(P,R,k):G2(k,R,P);(q||ee)&&(k=R)}}}return b.linewise&&(k=new e(k.line,ir(h.getLine(k.line)))),k},moveByCharacters:function(h,p,b){var y=p,k=b.repeat,S=b.forward?y.ch+k:y.ch-k;return new e(y.line,S)},moveByLines:function(h,p,b,y){var k=p,S=k.ch;switch(y.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:S=y.lastHPos;break;default:y.lastHPos=S}var P=b.repeat+(b.repeatOffset||0),A=b.forward?k.line+P:k.line-P,R=h.firstLine(),M=h.lastLine(),q=h.findPosV(k,b.forward?P:-P,"line",y.lastHSPos),ee=b.forward?q.line>A:q.line<A;return ee&&(A=q.line,S=q.ch),A<R&&k.line==R?this.moveToStartOfLine(h,p,b,y):A>M&&k.line==M?oS(h,p,b,y,!0):(b.toFirstChar&&(S=ir(h.getLine(A)),y.lastHPos=S),y.lastHSPos=h.charCoords(new e(A,S),"div").left,new e(A,S))},moveByDisplayLines:function(h,p,b,y){var k=p;switch(y.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:y.lastHSPos=h.charCoords(k,"div").left}var S=b.repeat,P=h.findPosV(k,b.forward?S:-S,"line",y.lastHSPos);if(P.hitSide)if(b.forward){var A=h.charCoords(P,"div"),R={top:A.top+8,left:y.lastHSPos};P=h.coordsChar(R,"div")}else{var M=h.charCoords(new e(h.firstLine(),0),"div");M.left=y.lastHSPos,P=h.coordsChar(M,"div")}return y.lastHPos=P.ch,P},moveByPage:function(h,p,b){var y=p,k=b.repeat;return h.findPosV(y,b.forward?k:-k,"page")},moveByParagraph:function(h,p,b){var y=b.forward?1:-1;return sS(h,p,b.repeat,y).start},moveBySentence:function(h,p,b){var y=b.forward?1:-1;return iD(h,p,b.repeat,y)},moveByScroll:function(h,p,b,y){var k=h.getScrollInfo(),S=null,P=b.repeat;P||(P=k.clientHeight/(2*h.defaultTextHeight()));var A=h.charCoords(p,"local");if(b.repeat=P,S=Ln.moveByDisplayLines(h,p,b,y),!S)return null;var R=h.charCoords(S,"local");return h.scrollTo(null,k.top+R.top-A.top),S},moveByWords:function(h,p,b){return J7(h,p,b.repeat,!!b.forward,!!b.wordEnd,!!b.bigWord)},moveTillCharacter:function(h,p,b){var y=b.repeat,k=Xg(h,y,b.forward,b.selectedCharacter,p),S=b.forward?-1:1;return iS(S,b),k?(k.ch+=S,k):null},moveToCharacter:function(h,p,b){var y=b.repeat;return iS(0,b),Xg(h,y,b.forward,b.selectedCharacter,p)||p},moveToSymbol:function(h,p,b){var y=b.repeat;return b.selectedCharacter&&K7(h,y,b.forward,b.selectedCharacter)||p},moveToColumn:function(h,p,b,y){var k=b.repeat;return y.lastHPos=k-1,y.lastHSPos=h.charCoords(p,"div").left,eD(h,k)},moveToEol:function(h,p,b,y){return oS(h,p,b,y,!1)},moveToFirstNonWhiteSpaceCharacter:function(h,p){var b=p;return new e(b.line,ir(h.getLine(b.line)))},moveToMatchedSymbol:function(h,p){for(var b=p,y=b.line,k=b.ch,S=h.getLine(y),P;k<S.length;k++)if(P=S.charAt(k),P&&Q(P)){var A=h.getTokenTypeAt(new e(y,k+1));if(A!=="string"&&A!=="comment")break}if(k<S.length){var R=P==="<"||P===">"?/[(){}[\]<>]/:/[(){}[\]]/,M=h.findMatchingBracket(new e(y,k),{bracketRegex:R});return M.to}else return b},moveToStartOfLine:function(h,p){return new e(p.line,0)},moveToLineOrEdgeOfDocument:function(h,p,b){var y=b.forward?h.lastLine():h.firstLine();return b.repeatIsExplicit&&(y=b.repeat-h.getOption("firstLineNumber")),new e(y,ir(h.getLine(y)))},moveToStartOfDisplayLine:function(h){return h.execCommand("goLineLeft"),h.getCursor()},moveToEndOfDisplayLine:function(h){h.execCommand("goLineRight");var p=h.getCursor();return p.sticky=="before"&&p.ch--,p},textObjectManipulation:function(h,p,b,y){var k={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},S={"'":!0,'"':!0,"`":!0},P=b.selectedCharacter||"";P=="b"?P="(":P=="B"&&(P="{");var A=!b.textObjectInner,R,M;if(k[P]){if(M=!0,R=lS(h,p,P,A),!R){var q=h.getSearchCursor(new RegExp("\\"+P,"g"),p);q.find()&&(R=lS(h,q.from(),P,A))}}else if(S[P])M=!0,R=nD(h,p,P,A);else if(P==="W"||P==="w")for(var ee=b.repeat||1;ee-- >0;){var ne=$g(h,{inclusive:A,innerWord:!A,bigWord:P==="W",noSymbol:P==="W",multiline:!0},R&&R.end);ne&&(R||(R=ne),R.end=ne.end)}else if(P==="p")if(R=sS(h,p,b.repeat,0,A),b.linewise=!0,y.visualMode)y.visualLine||(y.visualLine=!0);else{var G=y.inputState.operatorArgs;G&&(G.linewise=!0),R.end.line--}else if(P==="t")R=H7(h,p,A);else if(P==="s"){var V=h.getLine(p.line);p.ch>0&&X(V[p.ch])&&(p.ch-=1);var ae=aS(h,p,b.repeat,1,A),he=aS(h,p,b.repeat,-1,A);$(h.getLine(he.line)[he.ch])&&$(h.getLine(ae.line)[ae.ch-1])&&(he={line:he.line,ch:he.ch+1}),R={start:he,end:ae}}return R?h.state.vim.visualMode?Z7(h,R.start,R.end,M):[R.start,R.end]:null},repeatLastCharacterSearch:function(h,p,b){var y=j.lastCharacterSearch,k=b.repeat,S=b.forward===y.forward,P=(y.increment?1:0)*(S?-1:1);h.moveH(-P,"char"),b.inclusive=!!S;var A=Xg(h,k,S,y.selectedCharacter);return A?(A.ch+=P,A):(h.moveH(P,"char"),p)}};function Pg(h,p){Ln[h]=p}function Qh(h,p){for(var b=[],y=0;y<p;y++)b.push(h);return b}var Oc={change:function(h,p,b){var y,k,S=h.state.vim,P=b[0].anchor,A=b[0].head;if(S.visualMode)if(p.fullLine)A.ch=Number.MAX_VALUE,A.line--,h.setSelection(P,A),k=h.getSelection(),h.replaceSelection(""),y=P;else{k=h.getSelection();var q=Qh("",b.length);h.replaceSelections(q),y=$t(b[0].head,b[0].anchor)}else{k=h.getRange(P,A);var R=S.lastEditInputState;if((R==null?void 0:R.motion)=="moveByWords"&&!$(k)){var M=/\s+$/.exec(k);M&&R.motionArgs&&R.motionArgs.forward&&(A=$e(A,0,-M[0].length),k=k.slice(0,-M[0].length))}p.linewise&&(P=new e(P.line,ir(h.getLine(P.line))),A.line>P.line&&(A=new e(A.line-1,Number.MAX_VALUE))),h.replaceRange("",P,A),y=P}j.registerController.pushText(p.registerName,"change",k,p.linewise,b.length>1),ce.enterInsertMode(h,{head:y},h.state.vim)},delete:function(h,p,b){var y,k,S=h.state.vim;if(S.visualBlock){k=h.getSelection();var R=Qh("",b.length);h.replaceSelections(R),y=$t(b[0].head,b[0].anchor)}else{var P=b[0].anchor,A=b[0].head;p.linewise&&A.line!=h.firstLine()&&P.line==h.lastLine()&&P.line==A.line-1&&(P.line==h.firstLine()?P.ch=0:P=new e(P.line-1,ai(h,P.line-1))),k=h.getRange(P,A),h.replaceRange("",P,A),y=P,p.linewise&&(y=Ln.moveToFirstNonWhiteSpaceCharacter(h,P))}return j.registerController.pushText(p.registerName,"delete",k,p.linewise,S.visualBlock),Ce(h,y)},indent:function(h,p,b){var y=h.state.vim,k=y.visualMode?p.repeat||0:1;if(h.indentMore)for(var S=0;S<k;S++)p.indentRight?h.indentMore():h.indentLess();else{var P=b[0].anchor.line,A=y.visualBlock?b[b.length-1].anchor.line:b[0].head.line;p.linewise&&A--;for(var R=P;R<=A;R++)for(var S=0;S<k;S++)h.indentLine(R,p.indentRight)}return Ln.moveToFirstNonWhiteSpaceCharacter(h,b[0].anchor)},indentAuto:function(h,p,b){return h.execCommand("indentAuto"),Ln.moveToFirstNonWhiteSpaceCharacter(h,b[0].anchor)},hardWrap:function(h,p,b,y){if(h.hardWrap){var k=b[0].anchor.line,S=b[0].head.line;p.linewise&&S--;var P=h.hardWrap({from:k,to:S});return P>k&&p.linewise&&P--,p.keepCursor?y:new e(P,0)}},changeCase:function(h,p,b,y,k){for(var S=h.getSelections(),P=[],A=p.toLower,R=0;R<S.length;R++){var M=S[R],q="";if(A===!0)q=M.toLowerCase();else if(A===!1)q=M.toUpperCase();else for(var ee=0;ee<M.length;ee++){var ne=M.charAt(ee);q+=z(ne)?ne.toLowerCase():ne.toUpperCase()}P.push(q)}return h.replaceSelections(P),p.shouldMoveCursor?k:!h.state.vim.visualMode&&p.linewise&&b[0].anchor.line+1==b[0].head.line?Ln.moveToFirstNonWhiteSpaceCharacter(h,y):p.linewise?y:$t(b[0].anchor,b[0].head)},yank:function(h,p,b,y){var k=h.state.vim,S=h.getSelection(),P=k.visualMode?$t(k.sel.anchor,k.sel.head,b[0].head,b[0].anchor):y;return j.registerController.pushText(p.registerName,"yank",S,p.linewise,k.visualBlock),P}};function Qg(h,p){Oc[h]=p}var ce={jumpListWalk:function(h,p,b){if(!b.visualMode){var y=p.repeat||1,k=p.forward,S=j.jumpList,P=S.move(h,k?y:-y),A=P?P.find():void 0;A=A||h.getCursor(),h.setCursor(A)}},scroll:function(h,p,b){if(!b.visualMode){var y=p.repeat||1,k=h.defaultTextHeight(),S=h.getScrollInfo().top,P=k*y,A=p.forward?S+P:S-P,R=nt(h.getCursor()),M=h.charCoords(R,"local");if(p.forward)A>M.top?(R.line+=(A-M.top)/k,R.line=Math.ceil(R.line),h.setCursor(R),M=h.charCoords(R,"local"),h.scrollTo(null,M.top)):h.scrollTo(null,A);else{var q=A+h.getScrollInfo().clientHeight;q<M.bottom?(R.line-=(M.bottom-q)/k,R.line=Math.floor(R.line),h.setCursor(R),M=h.charCoords(R,"local"),h.scrollTo(null,M.bottom-h.getScrollInfo().clientHeight)):h.scrollTo(null,A)}}},scrollToCursor:function(h,p){var b=h.getCursor().line,y=h.charCoords(new e(b,0),"local"),k=h.getScrollInfo().clientHeight,S=y.top;switch(p.position){case"center":S=y.bottom-k/2;break;case"bottom":var P=new e(b,h.getLine(b).length-1),A=h.charCoords(P,"local"),R=A.bottom-S;S=S-k+R;break}h.scrollTo(null,S)},replayMacro:function(h,p,b){var y=p.selectedCharacter||"",k=p.repeat||1,S=j.macroModeState;for(y=="@"?y=S.latestRegister:S.latestRegister=y;k--;)yD(h,b,S,y)},enterMacroRecordMode:function(h,p){var b=j.macroModeState,y=p.selectedCharacter;j.registerController.isValidRegister(y)&&b.enterMacroRecordMode(h,y)},toggleOverwrite:function(h){h.state.overwrite?(h.toggleOverwrite(!1),h.setOption("keyMap","vim-insert"),t.signal(h,"vim-mode-change",{mode:"insert"})):(h.toggleOverwrite(!0),h.setOption("keyMap","vim-replace"),t.signal(h,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(h,p,b){if(!h.getOption("readOnly")){b.insertMode=!0,b.insertModeRepeat=p&&p.repeat||1;var y=p?p.insertAt:null,k=b.sel,S=p.head||h.getCursor("head"),P=h.listSelections().length;if(y=="eol")S=new e(S.line,ai(h,S.line));else if(y=="bol")S=new e(S.line,0);else if(y=="charAfter"){var A=i(h,S,$e(S,0,1));S=A.end}else if(y=="firstNonBlank"){var A=i(h,S,Ln.moveToFirstNonWhiteSpaceCharacter(h,S));S=A.end}else if(y=="startOfSelectedArea"){if(!b.visualMode)return;b.visualBlock?(S=new e(Math.min(k.head.line,k.anchor.line),Math.min(k.head.ch,k.anchor.ch)),P=Math.abs(k.head.line-k.anchor.line)+1):k.head.line<k.anchor.line?S=k.head:S=new e(k.anchor.line,0)}else if(y=="endOfSelectedArea"){if(!b.visualMode)return;b.visualBlock?(S=new e(Math.min(k.head.line,k.anchor.line),Math.max(k.head.ch,k.anchor.ch)+1),P=Math.abs(k.head.line-k.anchor.line)+1):k.head.line>=k.anchor.line?S=$e(k.head,0,1):S=new e(k.anchor.line,0)}else if(y=="inplace"){if(b.visualMode)return}else y=="lastEdit"&&(S=pS(h)||S);h.setOption("disableInput",!1),p&&p.replace?(h.toggleOverwrite(!0),h.setOption("keyMap","vim-replace"),t.signal(h,"vim-mode-change",{mode:"replace"})):(h.toggleOverwrite(!1),h.setOption("keyMap","vim-insert"),t.signal(h,"vim-mode-change",{mode:"insert"})),j.macroModeState.isPlaying||(h.on("change",bS),b.insertEnd&&b.insertEnd.clear(),b.insertEnd=h.setBookmark(S,{insertLeft:!0}),t.on(h.getInputField(),"keydown",vS)),b.visualMode&&tr(h),J2(h,S,P)}},toggleVisualMode:function(h,p,b){var y=p.repeat,k=h.getCursor(),S;if(b.visualMode)b.visualLine!=!!p.linewise||b.visualBlock!=!!p.blockwise?(b.visualLine=!!p.linewise,b.visualBlock=!!p.blockwise,t.signal(h,"vim-mode-change",{mode:"visual",subMode:b.visualLine?"linewise":b.visualBlock?"blockwise":""}),La(h)):tr(h);else{b.visualMode=!0,b.visualLine=!!p.linewise,b.visualBlock=!!p.blockwise,S=Ce(h,new e(k.line,k.ch+y-1));var P=i(h,k,S);b.sel={anchor:P.start,head:P.end},t.signal(h,"vim-mode-change",{mode:"visual",subMode:b.visualLine?"linewise":b.visualBlock?"blockwise":""}),La(h),Pr(h,b,"<",$t(k,S)),Pr(h,b,">",wo(k,S))}},reselectLastSelection:function(h,p,b){var y=b.lastSelection;if(b.visualMode&&eS(h,b),y){var k=y.anchorMark.find(),S=y.headMark.find();if(!k||!S)return;b.sel={anchor:k,head:S},b.visualMode=!0,b.visualLine=y.visualLine,b.visualBlock=y.visualBlock,La(h),Pr(h,b,"<",$t(k,S)),Pr(h,b,">",wo(k,S)),t.signal(h,"vim-mode-change",{mode:"visual",subMode:b.visualLine?"linewise":b.visualBlock?"blockwise":""})}},joinLines:function(h,p,b){var y,k;if(b.visualMode){if(y=h.getCursor("anchor"),k=h.getCursor("head"),ft(k,y)){var S=k;k=y,y=S}k.ch=ai(h,k.line)-1}else{var P=Math.max(p.repeat,2);y=h.getCursor(),k=Ce(h,new e(y.line+P-1,1/0))}for(var A=0,R=y.line;R<k.line;R++){A=ai(h,y.line);var M="",q=0;if(!p.keepSpaces){var ee=h.getLine(y.line+1);q=ee.search(/\S/),q==-1?q=ee.length:M=" "}h.replaceRange(M,new e(y.line,A),new e(y.line+1,q))}var ne=Ce(h,new e(y.line,A));b.visualMode&&tr(h,!1),h.setCursor(ne)},newLineAndEnterInsertMode:function(h,p,b){b.insertMode=!0;var y=nt(h.getCursor());if(y.line===h.firstLine()&&!p.after)h.replaceRange(`
|
||
`,new e(h.firstLine(),0)),h.setCursor(h.firstLine(),0);else{y.line=p.after?y.line:y.line-1,y.ch=ai(h,y.line),h.setCursor(y);var k=t.commands.newlineAndIndentContinueComment||t.commands.newlineAndIndent;k(h)}this.enterInsertMode(h,{repeat:p.repeat},b)},paste:function(h,p,b){var y=j.registerController.getRegister(p.registerName);if(p.registerName==="+")navigator.clipboard.readText().then(S=>{this.continuePaste(h,p,b,S,y)});else{var k=y.toString();this.continuePaste(h,p,b,k,y)}},continuePaste:function(h,p,b,y,k){var S=nt(h.getCursor());if(y){if(p.matchIndent){var P=h.getOption("tabSize"),A=function(ci){var ti=ci.split(" ").length-1,nr=ci.split(" ").length-1;return ti*P+nr*1},R=h.getLine(h.getCursor().line),M=A(R.match(/^\s*/)[0]),q=y.replace(/\n$/,""),ee=y!==q,ne=A(y.match(/^\s*/)[0]),y=q.replace(/^\s*/gm,function(ci){var ti=M+(A(ci)-ne);if(ti<0)return"";if(h.getOption("indentWithTabs")){var nr=Math.floor(ti/P);return Array(nr+1).join(" ")}else return Array(ti+1).join(" ")});y+=ee?`
|
||
`:""}if(p.repeat>1)var y=Array(p.repeat+1).join(y);var G=k.linewise,V=k.blockwise;if(V){y=y.split(`
|
||
`),G&&y.pop();for(var ae=0;ae<y.length;ae++)y[ae]=y[ae]==""?" ":y[ae];S.ch+=p.after?1:0,S.ch=Math.min(ai(h,S.line),S.ch)}else G?b.visualMode?y=b.visualLine?y.slice(0,-1):`
|
||
`+y.slice(0,y.length-1)+`
|
||
`:p.after?(y=`
|
||
`+y.slice(0,y.length-1),S.ch=ai(h,S.line)):S.ch=0:S.ch+=p.after?1:0;var he;if(b.visualMode){b.lastPastedText=y;var Ae,Qe=V7(h,b),Re=Qe[0],Ot=Qe[1],bi=h.getSelection(),Kt=h.listSelections(),li=new Array(Kt.length).join("1").split("1");b.lastSelection&&(Ae=b.lastSelection.headMark.find()),j.registerController.unnamedRegister.setText(bi),V?(h.replaceSelections(li),Ot=new e(Re.line+y.length-1,Re.ch),h.setCursor(Re),K2(h,Ot),h.replaceSelections(y),he=Re):b.visualBlock?(h.replaceSelections(li),h.setCursor(Re),h.replaceRange(y,Re,Re),he=Re):(h.replaceRange(y,Re,Ot),he=h.posFromIndex(h.indexFromPos(Re)+y.length-1)),Ae&&(b.lastSelection.headMark=h.setBookmark(Ae)),G&&(he.ch=0)}else if(V){h.setCursor(S);for(var ae=0;ae<y.length;ae++){var Ke=S.line+ae;Ke>h.lastLine()&&h.replaceRange(`
|
||
`,new e(Ke,0));var tt=ai(h,Ke);tt<S.ch&&j7(h,Ke,S.ch)}h.setCursor(S),K2(h,new e(S.line+y.length-1,S.ch)),h.replaceSelections(y),he=S}else if(h.replaceRange(y,S),G){var Ke=p.after?S.line+1:S.line;he=new e(Ke,ir(h.getLine(Ke)))}else he=nt(S),/\n/.test(y)||(he.ch+=y.length-(p.after?1:0));b.visualMode&&tr(h,!1),h.setCursor(he)}},undo:function(h,p){h.operation(function(){vo(h,t.commands.undo,p.repeat)(),h.setCursor(Ce(h,h.getCursor("start")))})},redo:function(h,p){vo(h,t.commands.redo,p.repeat)()},setRegister:function(h,p,b){b.inputState.registerName=p.selectedCharacter},insertRegister:function(h,p,b){var y=p.selectedCharacter,k=j.registerController.getRegister(y),S=k&&k.toString();S&&h.replaceSelection(S)},oneNormalCommand:function(h,p,b){So(h,!0),b.insertModeReturn=!0,t.on(h,"vim-command-done",function y(){b.visualMode||(b.insertModeReturn&&(b.insertModeReturn=!1,b.insertMode||ce.enterInsertMode(h,{},b)),t.off(h,"vim-command-done",y))})},setMark:function(h,p,b){var y=p.selectedCharacter;y&&Pr(h,b,y,h.getCursor())},replace:function(h,p,b){var y=p.selectedCharacter||"",k=h.getCursor(),S,P,A=h.listSelections();if(b.visualMode)k=h.getCursor("start"),P=h.getCursor("end");else{var R=h.getLine(k.line);S=k.ch+p.repeat,S>R.length&&(S=R.length),P=new e(k.line,S)}var M=i(h,k,P);if(k=M.start,P=M.end,y==`
|
||
`)b.visualMode||h.replaceRange("",k,P),(t.commands.newlineAndIndentContinueComment||t.commands.newlineAndIndent)(h);else{var q=h.getRange(k,P);if(q=q.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y),q=q.replace(/[^\n]/g,y),b.visualBlock){var ee=new Array(h.getOption("tabSize")+1).join(" ");q=h.getSelection(),q=q.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y);var ne=q.replace(/\t/g,ee).replace(/[^\n]/g,y).split(`
|
||
`);h.replaceSelections(ne)}else h.replaceRange(q,k,P);b.visualMode?(k=ft(A[0].anchor,A[0].head)?A[0].anchor:A[0].head,h.setCursor(k),tr(h,!1)):h.setCursor($e(P,0,-1))}},incrementNumberToken:function(h,p){for(var b=h.getCursor(),y=h.getLine(b.line),k=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,S,P,A,R;(S=k.exec(y))!==null&&(P=S.index,A=P+S[0].length,!(b.ch<A)););if(!(!p.backtrack&&A<=b.ch)){if(S){var M=S[2]||S[4],q=S[3]||S[5],ee=p.increase?1:-1,ne={"0b":2,0:8,"":10,"0x":16}[M.toLowerCase()],G=parseInt(S[1]+q,ne)+ee*p.repeat;R=G.toString(ne);var V=M?new Array(q.length-R.length+1+S[1].length).join("0"):"";R.charAt(0)==="-"?R="-"+M+V+R.substr(1):R=M+V+R;var ae=new e(b.line,P),he=new e(b.line,A);h.replaceRange(R,ae,he)}else return;h.setCursor(new e(b.line,P+R.length-1))}},repeatLastEdit:function(h,p,b){var y=b.lastEditInputState;if(y){var k=p.repeat;k&&p.repeatIsExplicit?y.repeatOverride=k:k=y.repeatOverride||k,wS(h,b,k,!1)}},indent:function(h,p){h.indentLine(h.getCursor().line,p.indentRight)},exitInsertMode:function(h,p){So(h)}};function ye(h,p){ce[h]=p}function Ce(h,p,b){var y=h.state.vim,k=y.insertMode||y.visualMode,S=Math.min(Math.max(h.firstLine(),p.line),h.lastLine()),P=h.getLine(S),A=P.length-1+ +!!k,R=Math.min(Math.max(0,p.ch),A),M=P.charCodeAt(R);if(56320<=M&&M<=57343){var q=1;b&&b.line==S&&b.ch>R&&(q=-1),R+=q,R>A&&(R-=2)}return new e(S,R)}function je(h){var p={};for(var b in h)h.hasOwnProperty(b)&&(p[b]=h[b]);return p}function $e(h,p,b){return typeof p=="object"&&(b=p.ch,p=p.line),new e(h.line+p,h.ch+b)}function Ki(h,p,b,y){y.operator&&(b="operatorPending");for(var k,S=[],P=[],A=se?p.length-r:0,R=A;R<p.length;R++){var M=p[R];b=="insert"&&M.context!="insert"||M.context&&M.context!=b||y.operator&&M.type=="action"||!(k=Cr(h,M.keys))||(k=="partial"&&S.push(M),k=="full"&&P.push(M))}return{partial:S.length&&S,full:P.length&&P}}function Cr(h,p){let b=p.slice(-11)=="<character>",y=p.slice(-10)=="<register>";if(b||y){var k=p.length-(b?11:10),S=h.slice(0,k),P=p.slice(0,k);return S==P&&h.length>k?"full":P.indexOf(S)==0?"partial":!1}else return h==p?"full":p.indexOf(h)==0?"partial":!1}function In(h){var p=/^.*(<[^>]+>)$/.exec(h),b=p?p[1]:h.slice(-1);if(b.length>1)switch(b){case"<CR>":case"<S-CR>":b=`
|
||
`;break;case"<Space>":case"<S-Space>":b=" ";break;default:b="";break}return b}function vo(h,p,b){return function(){for(var y=0;y<b;y++)p(h)}}function nt(h){return new e(h.line,h.ch)}function vt(h,p){return h.ch==p.ch&&h.line==p.line}function ft(h,p){return h.line<p.line||h.line==p.line&&h.ch<p.ch}function $t(h,p){return arguments.length>2&&(p=$t.apply(void 0,Array.prototype.slice.call(arguments,1))),ft(h,p)?h:p}function wo(h,p){return arguments.length>2&&(p=wo.apply(void 0,Array.prototype.slice.call(arguments,1))),ft(h,p)?p:h}function G2(h,p,b){var y=ft(h,p),k=ft(p,b);return y&&k}function ai(h,p){return h.getLine(p).length}function _g(h){return h.trim?h.trim():h.replace(/^\s+|\s+$/g,"")}function q7(h){return h.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function j7(h,p,b){var y=ai(h,p),k=new Array(b-y+1).join(" ");h.setCursor(new e(p,y)),h.replaceRange(k,h.getCursor())}function K2(h,p){var b=[],y=h.listSelections(),k=nt(h.clipPos(p)),S=!vt(p,k),P=h.getCursor("head"),A=W7(y,P),R=vt(y[A].head,y[A].anchor),M=y.length-1,q=M-A>A?M:0,ee=y[q].anchor,ne=Math.min(ee.line,k.line),G=Math.max(ee.line,k.line),V=ee.ch,ae=k.ch,he=y[q].head.ch-V,Ae=ae-V;he>0&&Ae<=0?(V++,S||ae--):he<0&&Ae>=0?(V--,R||ae++):he<0&&Ae==-1&&(V--,ae++);for(var Qe=ne;Qe<=G;Qe++){var Re={anchor:new e(Qe,V),head:new e(Qe,ae)};b.push(Re)}return h.setSelections(b),p.ch=ae,ee.ch=V,ee}function J2(h,p,b){for(var y=[],k=0;k<b;k++){var S=$e(p,k,0);y.push({anchor:S,head:S})}h.setSelections(y,0)}function W7(h,p,b){for(var y=0;y<h.length;y++){var k=b!="head"&&vt(h[y].anchor,p),S=b!="anchor"&&vt(h[y].head,p);if(k||S)return y}return-1}function V7(h,p){var b=p.lastSelection,y=function(){var S=h.listSelections(),P=S[0],A=S[S.length-1],R=ft(P.anchor,P.head)?P.anchor:P.head,M=ft(A.anchor,A.head)?A.head:A.anchor;return[R,M]},k=function(){var S=h.getCursor(),P=h.getCursor(),A=b.visualBlock;if(A){var R=A.width,M=A.height;P=new e(S.line+M,S.ch+R);for(var q=[],ee=S.line;ee<P.line;ee++){var ne=new e(ee,S.ch),G=new e(ee,P.ch),V={anchor:ne,head:G};q.push(V)}h.setSelections(q)}else{var ae=b.anchorMark.find(),he=b.headMark.find(),Ae=he.line-ae.line,Qe=he.ch-ae.ch;P={line:P.line+Ae,ch:Ae?P.ch:Qe+P.ch},b.visualLine&&(S=new e(S.line,0),P=new e(P.line,ai(h,P.line))),h.setSelection(S,P)}return[S,P]};return p.visualMode?y():k()}function eS(h,p){var b=p.sel.anchor,y=p.sel.head;p.lastPastedText&&(y=h.posFromIndex(h.indexFromPos(b)+p.lastPastedText.length),p.lastPastedText=null),p.lastSelection={anchorMark:h.setBookmark(b),headMark:h.setBookmark(y),anchor:nt(b),head:nt(y),visualMode:p.visualMode,visualLine:p.visualLine,visualBlock:p.visualBlock}}function Z7(h,p,b,y){var k=h.state.vim.sel,S=y?p:k.head,P=y?p:k.anchor,A;return ft(b,p)&&(A=b,b=p,p=A),ft(S,P)?(S=$t(p,S),P=wo(P,b)):(P=$t(p,P),S=wo(S,b),S=$e(S,0,-1),S.ch==-1&&S.line!=h.firstLine()&&(S=new e(S.line-1,ai(h,S.line-1)))),[P,S]}function La(h,p,b){var y=h.state.vim;p=p||y.sel,b||(b=y.visualLine?"line":y.visualBlock?"block":"char");var k=Ag(h,p,b);h.setSelections(k.ranges,k.primary)}function Ag(h,p,b,y){var k=nt(p.head),S=nt(p.anchor);if(b=="char"){var P=!y&&!ft(p.head,p.anchor)?1:0,A=ft(p.head,p.anchor)?1:0;return k=$e(p.head,0,P),S=$e(p.anchor,0,A),{ranges:[{anchor:S,head:k}],primary:0}}else if(b=="line"){if(ft(p.head,p.anchor))k.ch=0,S.ch=ai(h,S.line);else{S.ch=0;var R=h.lastLine();k.line>R&&(k.line=R),k.ch=ai(h,k.line)}return{ranges:[{anchor:S,head:k}],primary:0}}else if(b=="block"){var M=Math.min(S.line,k.line),q=S.ch,ee=Math.max(S.line,k.line),ne=k.ch;q<ne?ne+=1:q+=1;for(var G=ee-M+1,V=k.line==M?0:G-1,ae=[],he=0;he<G;he++)ae.push({anchor:new e(M+he,q),head:new e(M+he,ne)});return{ranges:ae,primary:V}}throw"never happens"}function B7(h){var p=h.getCursor("head");return h.getSelection().length==1&&(p=$t(p,h.getCursor("anchor"))),p}function tr(h,p){var b=h.state.vim;p!==!1&&h.setCursor(Ce(h,b.sel.head)),eS(h,b),b.visualMode=!1,b.visualLine=!1,b.visualBlock=!1,b.insertMode||t.signal(h,"vim-mode-change",{mode:"normal"})}function Y7(h,p,b){var y=h.getRange(p,b);if(/\n\s*$/.test(y)){var k=y.split(`
|
||
`);k.pop();for(var S=k.pop();k.length>0&&S&&$(S);S=k.pop())b.line--,b.ch=0;S?(b.line--,b.ch=ai(h,b.line)):b.ch=0}}function F7(h,p,b){p.ch=0,b.ch=0,b.line++}function ir(h){if(!h)return 0;var p=h.search(/\S/);return p==-1?h.length:p}function $g(h,{inclusive:p,innerWord:b,bigWord:y,noSymbol:k,multiline:S},P){var A=P||B7(h),R=h.getLine(A.line),M=R,q=A.line,ee=q,ne=A.ch,G,V=k?f[0]:d[0];if(b&&/\s/.test(R.charAt(ne)))V=function(Ot){return/\s/.test(Ot)};else{for(;!V(R.charAt(ne));)if(ne++,ne>=R.length){if(!S)return null;ne--,G=rS(h,A,!0,y,!0);break}y?V=d[0]:(V=f[0],V(R.charAt(ne))||(V=f[1]))}for(var ae=ne,he=ne;V(R.charAt(he))&&he>=0;)he--;if(he++,G)ae=G.to,ee=G.line,M=h.getLine(ee),!M&&ae==0&&ae++;else for(;V(R.charAt(ae))&&ae<R.length;)ae++;if(p){var Ae=ae,Qe=A.ch<=he&&/\s/.test(R.charAt(A.ch));if(!Qe)for(;/\s/.test(M.charAt(ae))&&ae<M.length;)ae++;if(Ae==ae||Qe){for(var Re=he;/\s/.test(R.charAt(he-1))&&he>0;)he--;!he&&!Qe&&(he=Re)}}return{start:new e(q,he),end:new e(ee,ae)}}function H7(h,p,b){var y=p;if(!t.findMatchingTag||!t.findEnclosingTag)return{start:y,end:y};var k=t.findMatchingTag(h,p)||t.findEnclosingTag(h,p);return!k||!k.open||!k.close?{start:y,end:y}:b?{start:k.open.from,end:k.close.to}:{start:k.open.to,end:k.close.from}}function tS(h,p,b){vt(p,b)||j.jumpList.add(h,p,b)}function iS(h,p){j.lastCharacterSearch.increment=h,j.lastCharacterSearch.forward=p.forward,j.lastCharacterSearch.selectedCharacter=p.selectedCharacter}var G7={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},nS={bracket:{isComplete:function(h){if(h.nextCh===h.symb){if(h.depth++,h.depth>=1)return!0}else h.nextCh===h.reverseSymb&&h.depth--;return!1}},section:{init:function(h){h.curMoveThrough=!0,h.symb=(h.forward?"]":"[")===h.symb?"{":"}"},isComplete:function(h){return h.index===0&&h.nextCh===h.symb}},comment:{isComplete:function(h){var p=h.lastCh==="*"&&h.nextCh==="/";return h.lastCh=h.nextCh,p}},method:{init:function(h){h.symb=h.symb==="m"?"{":"}",h.reverseSymb=h.symb==="{"?"}":"{"},isComplete:function(h){return h.nextCh===h.symb}},preprocess:{init:function(h){h.index=0},isComplete:function(h){if(h.nextCh==="#"){var p=h.lineText.match(/^#(\w+)/)[1];if(p==="endif"){if(h.forward&&h.depth===0)return!0;h.depth++}else if(p==="if"){if(!h.forward&&h.depth===0)return!0;h.depth--}if(p==="else"&&h.depth===0)return!0}return!1}}};function K7(h,p,b,y){var k=nt(h.getCursor()),S=b?1:-1,P=b?h.lineCount():-1,A=k.ch,R=k.line,M=h.getLine(R),q={lineText:M,nextCh:M.charAt(A),lastCh:null,index:A,symb:y,reverseSymb:(b?{")":"(","}":"{"}:{"(":")","{":"}"})[y],forward:b,depth:0,curMoveThrough:!1},ee=G7[y];if(!ee)return k;var ne=nS[ee].init,G=nS[ee].isComplete;for(ne&&ne(q);R!==P&&p;){if(q.index+=S,q.nextCh=q.lineText.charAt(q.index),!q.nextCh){if(R+=S,q.lineText=h.getLine(R)||"",S>0)q.index=0;else{var V=q.lineText.length;q.index=V>0?V-1:0}q.nextCh=q.lineText.charAt(q.index)}G(q)&&(k.line=R,k.ch=q.index,p--)}return q.nextCh||q.curMoveThrough?new e(R,q.index):k}function rS(h,p,b,y,k){var S=p.line,P=p.ch,A=h.getLine(S),R=b?1:-1,M=y?d:f;if(k&&A==""){if(S+=R,A=h.getLine(S),!w(h,S))return null;P=b?0:A.length}for(;;){if(k&&A=="")return{from:0,to:0,line:S};for(var q=R>0?A.length:-1,ee=q,ne=q;P!=q;){for(var G=!1,V=0;V<M.length&&!G;++V)if(M[V](A.charAt(P))){for(ee=P;P!=q&&M[V](A.charAt(P));)P+=R;if(ne=P,G=ee!=ne,ee==p.ch&&S==p.line&&ne==ee+R)continue;return{from:Math.min(ee,ne+1),to:Math.max(ee,ne),line:S}}G||(P+=R)}if(S+=R,!w(h,S))return null;A=h.getLine(S),P=R>0?0:A.length}}function J7(h,p,b,y,k,S){var P=nt(p),A=[];(y&&!k||!y&&k)&&b++;for(var R=!(y&&k),M=0;M<b;M++){var q=rS(h,p,y,S,R);if(!q){var ee=ai(h,h.lastLine());A.push(y?{line:h.lastLine(),from:ee,to:ee}:{line:0,from:0,to:0});break}A.push(q),p=new e(q.line,y?q.to-1:q.from)}var ne=A.length!=b,G=A[0],V=A.pop();return y&&!k?(!ne&&(G.from!=P.ch||G.line!=P.line)&&(V=A.pop()),V&&new e(V.line,V.from)):y&&k?V&&new e(V.line,V.to-1):!y&&k?(!ne&&(G.to!=P.ch||G.line!=P.line)&&(V=A.pop()),V&&new e(V.line,V.to)):V&&new e(V.line,V.from)}function oS(h,p,b,y,k){var S=p,P=new e(S.line+b.repeat-1,1/0),A=h.clipPos(P);return A.ch--,k||(y.lastHPos=1/0,y.lastHSPos=h.charCoords(A,"div").left),P}function Xg(h,p,b,y,k){if(y){for(var S=k||h.getCursor(),P=S.ch,A,R=0;R<p;R++){var M=h.getLine(S.line);if(A=tD(P,M,y,b,!0),A==-1)return;P=A}if(A!=null)return new e(h.getCursor().line,A)}}function eD(h,p){var b=h.getCursor().line;return Ce(h,new e(b,p-1))}function Pr(h,p,b,y){!Y(b,O)&&!x.test(b)||(p.marks[b]&&p.marks[b].clear(),p.marks[b]=h.setBookmark(y))}function tD(h,p,b,y,k){var S;return y?(S=p.indexOf(b,h+1),S!=-1&&!k&&(S-=1)):(S=p.lastIndexOf(b,h-1),S!=-1&&!k&&(S+=1)),S}function sS(h,p,b,y,k){var S=p.line,P=h.firstLine(),A=h.lastLine(),R,M,q=S;function ee(he){return!h.getLine(he)}function ne(he,Ae,Qe){return Qe?ee(he)!=ee(he+Ae):!ee(he)&&ee(he+Ae)}if(y){for(;P<=q&&q<=A&&b>0;)ne(q,y)&&b--,q+=y;return{start:new e(q,0),end:p}}var G=h.state.vim;if(G.visualLine&&ne(S,1,!0)){var V=G.sel.anchor;ne(V.line,-1,!0)&&(!k||V.line!=S)&&(S+=1)}var ae=ee(S);for(q=S;q<=A&&b;q++)ne(q,1,!0)&&(!k||ee(q)!=ae)&&b--;for(M=new e(q,0),q>A&&!ae?ae=!0:k=!1,q=S;q>P&&!((!k||ee(q)==ae||q==S)&&ne(q,-1,!0));q--);return R=new e(q,0),{start:R,end:M}}function aS(h,p,b,y,k){function S(M){M.pos+M.dir<0||M.pos+M.dir>=M.line.length?M.line=null:M.pos+=M.dir}function P(M,q,ee,ne){var G=M.getLine(q),V={line:G,ln:q,pos:ee,dir:ne};if(V.line==="")return{ln:V.ln,pos:V.pos};var ae=V.pos;for(S(V);V.line!==null;){if(ae=V.pos,X(V.line[V.pos]))if(k){for(S(V);V.line!==null&&$(V.line[V.pos]);)ae=V.pos,S(V);return{ln:V.ln,pos:ae+1}}else return{ln:V.ln,pos:V.pos+1};S(V)}return{ln:V.ln,pos:ae+1}}function A(M,q,ee,ne){var G=M.getLine(q),V={line:G,ln:q,pos:ee,dir:ne};if(V.line==="")return{ln:V.ln,pos:V.pos};var ae=V.pos;for(S(V);V.line!==null;){if(!$(V.line[V.pos])&&!X(V.line[V.pos]))ae=V.pos;else if(X(V.line[V.pos]))return k?$(V.line[V.pos+1])?{ln:V.ln,pos:V.pos+1}:{ln:V.ln,pos:ae}:{ln:V.ln,pos:ae};S(V)}return V.line=G,k&&$(V.line[V.pos])?{ln:V.ln,pos:V.pos}:{ln:V.ln,pos:ae}}for(var R={ln:p.line,pos:p.ch};b>0;)y<0?R=A(h,R.ln,R.pos,y):R=P(h,R.ln,R.pos,y),b--;return new e(R.ln,R.pos)}function iD(h,p,b,y){function k(R,M){if(M.pos+M.dir<0||M.pos+M.dir>=M.line.length){if(M.ln+=M.dir,!w(R,M.ln)){M.line=null,M.ln=null,M.pos=null;return}M.line=R.getLine(M.ln),M.pos=M.dir>0?0:M.line.length-1}else M.pos+=M.dir}function S(R,M,q,ee){var he=R.getLine(M),ne=he==="",G={line:he,ln:M,pos:q,dir:ee},V={ln:G.ln,pos:G.pos},ae=G.line==="";for(k(R,G);G.line!==null;){if(V.ln=G.ln,V.pos=G.pos,G.line===""&&!ae)return{ln:G.ln,pos:G.pos};if(ne&&G.line!==""&&!$(G.line[G.pos]))return{ln:G.ln,pos:G.pos};X(G.line[G.pos])&&!ne&&(G.pos===G.line.length-1||$(G.line[G.pos+1]))&&(ne=!0),k(R,G)}var he=R.getLine(V.ln);V.pos=0;for(var Ae=he.length-1;Ae>=0;--Ae)if(!$(he[Ae])){V.pos=Ae;break}return V}function P(R,M,q,ee){var ae=R.getLine(M),ne={line:ae,ln:M,pos:q,dir:ee},G={ln:ne.ln,pos:null},V=ne.line==="";for(k(R,ne);ne.line!==null;){if(ne.line===""&&!V)return G.pos!==null?G:{ln:ne.ln,pos:ne.pos};if(X(ne.line[ne.pos])&&G.pos!==null&&!(ne.ln===G.ln&&ne.pos+1===G.pos))return G;ne.line!==""&&!$(ne.line[ne.pos])&&(V=!1,G={ln:ne.ln,pos:ne.pos}),k(R,ne)}var ae=R.getLine(G.ln);G.pos=0;for(var he=0;he<ae.length;++he)if(!$(ae[he])){G.pos=he;break}return G}for(var A={ln:p.line,pos:p.ch};b>0;)y<0?A=P(h,A.ln,A.pos,y):A=S(h,A.ln,A.pos,y),b--;return new e(A.ln,A.pos)}function lS(h,p,b,y){var k=p,S={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[b],P={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[b],A=h.getLine(k.line).charAt(k.ch),R=A===P?1:0,M=h.scanForBracket(new e(k.line,k.ch+R),-1,void 0,{bracketRegex:S}),q=h.scanForBracket(new e(k.line,k.ch+R),1,void 0,{bracketRegex:S});if(!M||!q)return null;var ee=M.pos,ne=q.pos;if(ee.line==ne.line&&ee.ch>ne.ch||ee.line>ne.line){var G=ee;ee=ne,ne=G}return y?ne.ch+=1:ee.ch+=1,{start:ee,end:ne}}function nD(h,p,b,y){var k=nt(p),S=h.getLine(k.line),P=S.split(""),A,R,M,q,ee=P.indexOf(b);if(k.ch<ee)k.ch=ee;else if(ee<k.ch&&P[k.ch]==b){var ne=/string/.test(h.getTokenTypeAt($e(p,0,1))),G=/string/.test(h.getTokenTypeAt(p)),V=ne&&!G;V||(R=k.ch,--k.ch)}if(P[k.ch]==b&&!R)A=k.ch+1;else for(M=k.ch;M>-1&&!A;M--)P[M]==b&&(A=M+1);if(A&&!R)for(M=A,q=P.length;M<q&&!R;M++)P[M]==b&&(R=M);return!A||!R?{start:k,end:k}:(y&&(--A,++R),{start:new e(k.line,A),end:new e(k.line,R)})}N("pcre",!0,"boolean");class rD{getQuery(){return j.query}setQuery(p){j.query=p}getOverlay(){return this.searchOverlay}setOverlay(p){this.searchOverlay=p}isReversed(){return j.isReversed}setReversed(p){j.isReversed=p}getScrollbarAnnotate(){return this.annotate}setScrollbarAnnotate(p){this.annotate=p}}function Dn(h){var p=h.state.vim;return p.searchState_||(p.searchState_=new rD)}function oD(h){return cS(h,"/")}function sD(h){return uS(h,"/")}function cS(h,p){var b=uS(h,p)||[];if(!b.length)return[];var y=[];if(b[0]===0){for(var k=0;k<b.length;k++)typeof b[k]=="number"&&y.push(h.substring(b[k]+1,b[k+1]));return y}}function uS(h,p){p||(p="/");for(var b=!1,y=[],k=0;k<h.length;k++){var S=h.charAt(k);!b&&S==p&&y.push(k),b=!b&&S=="\\"}return y}function aD(h){for(var p="|(){",b="}",y=!1,k=[],S=-1;S<h.length;S++){var P=h.charAt(S)||"",A=h.charAt(S+1)||"",R=A&&p.indexOf(A)!=-1;y?((P!=="\\"||!R)&&k.push(P),y=!1):P==="\\"?(y=!0,A&&b.indexOf(A)!=-1&&(R=!0),(!R||A==="\\")&&k.push(P)):(k.push(P),R&&A!=="\\"&&k.push("\\"))}return k.join("")}var fS={"\\n":`
|
||
`,"\\r":"\r","\\t":" "};function lD(h){for(var p=!1,b=[],y=-1;y<h.length;y++){var k=h.charAt(y)||"",S=h.charAt(y+1)||"";fS[k+S]?(b.push(fS[k+S]),y++):p?(b.push(k),p=!1):k==="\\"?(p=!0,I(S)||S==="$"?b.push("$"):S!=="/"&&S!=="\\"&&b.push("\\")):(k==="$"&&b.push("$"),b.push(k),S==="/"&&b.push("\\"))}return b.join("")}var hS={"\\/":"/","\\\\":"\\","\\n":`
|
||
`,"\\r":"\r","\\t":" ","\\&":"&"};function cD(h){for(var p=new t.StringStream(h),b=[];!p.eol();){for(;p.peek()&&p.peek()!="\\";)b.push(p.next());var y=!1;for(var k in hS)if(p.match(k,!0)){y=!0,b.push(hS[k]);break}y||b.push(p.next())}return b.join("")}function uD(h,p,b){var y=j.registerController.getRegister("/");if(y.setText(h),h instanceof RegExp)return h;var k=sD(h),S,P;if(!k.length)S=h;else{S=h.substring(0,k[0]);var A=h.substring(k[0]);P=A.indexOf("i")!=-1}if(!S)return null;oe("pcre")||(S=aD(S)),b&&(p=/^[^A-Z]*$/.test(S));var R=new RegExp(S,p||P?"im":"m");return R}function ko(h){typeof h=="string"&&(h=document.createElement(h));for(var p,b=1;b<arguments.length;b++)if(p=arguments[b])if(typeof p!="object"&&(p=document.createTextNode(p)),p.nodeType)h.appendChild(p);else for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(y[0]==="$"?h.style[y.slice(1)]=p[y]:h.setAttribute(y,p[y]));return h}function dt(h,p){var b=ko("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},p);h.openNotification?h.openNotification(b,{bottom:!0,duration:5e3}):alert(b.innerText)}function fD(h,p){return ko("div",{$display:"flex"},ko("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},h,ko("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),p&&ko("span",{$color:"#888"},p))}function pc(h,p){if(W.length){p.value||(p.value=""),D=p;return}var b=fD(p.prefix,p.desc);if(h.openDialog)h.openDialog(b,p.onClose,{onKeyDown:p.onKeyDown,onKeyUp:p.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:p.value});else{var y="";typeof p.prefix!="string"&&p.prefix&&(y+=p.prefix.textContent),p.desc&&(y+=" "+p.desc),p.onClose(prompt(y,""))}}function hD(h,p){if(h instanceof RegExp&&p instanceof RegExp){for(var b=["global","multiline","ignoreCase","source"],y=0;y<b.length;y++){var k=b[y];if(h[k]!==p[k])return!1}return!0}return!1}function mc(h,p,b,y){if(p){var k=Dn(h),S=uD(p,!!b,!!y);if(S)return dS(h,S),hD(S,k.getQuery())||k.setQuery(S),S}}function dD(h){if(h.source.charAt(0)=="^")var p=!0;return{token:function(b){if(p&&!b.sol()){b.skipToEnd();return}var y=b.match(h,!1);if(y)return y[0].length==0?(b.next(),"searching"):!b.sol()&&(b.backUp(1),!h.exec(b.next()+y[0]))?(b.next(),null):(b.match(h),"searching");for(;!b.eol()&&(b.next(),!b.match(h,!1)););},query:h}}var gc=0;function dS(h,p){clearTimeout(gc);var b=Dn(h);b.highlightTimeout=gc,gc=setTimeout(function(){if(h.state.vim){var y=Dn(h);y.highlightTimeout=null;var k=y.getOverlay();(!k||p!=k.query)&&(k&&h.removeOverlay(k),k=dD(p),h.addOverlay(k),h.showMatchesOnScrollbar&&(y.getScrollbarAnnotate()&&y.getScrollbarAnnotate().clear(),y.setScrollbarAnnotate(h.showMatchesOnScrollbar(p))),y.setOverlay(k))}},50)}function OS(h,p,b,y){return h.operation(function(){y===void 0&&(y=1);for(var k=h.getCursor(),S=h.getSearchCursor(b,k),P=0;P<y;P++){var A=S.find(p);if(P==0&&A&&vt(S.from(),k)){var R=p?S.from():S.to();A=S.find(p),A&&!A[0]&&vt(S.from(),R)&&h.getLine(R.line).length==R.ch&&(A=S.find(p))}if(!A&&(S=h.getSearchCursor(b,p?new e(h.lastLine()):new e(h.firstLine(),0)),!S.find(p)))return}return S.from()})}function OD(h,p,b,y,k){return h.operation(function(){y===void 0&&(y=1);var S=h.getCursor(),P=h.getSearchCursor(b,S),A=P.find(!p);!k.visualMode&&A&&vt(P.from(),S)&&P.find(!p);for(var R=0;R<y;R++)if(A=P.find(p),!A&&(P=h.getSearchCursor(b,p?new e(h.lastLine()):new e(h.firstLine(),0)),!P.find(p)))return;return[P.from(),P.to()]})}function Rg(h){var p=Dn(h);p.highlightTimeout&&(clearTimeout(p.highlightTimeout),p.highlightTimeout=null),h.removeOverlay(Dn(h).getOverlay()),p.setOverlay(null),p.getScrollbarAnnotate()&&(p.getScrollbarAnnotate().clear(),p.setScrollbarAnnotate(null))}function pD(h,p,b){return typeof h!="number"&&(h=h.line),p instanceof Array?Y(h,p):typeof b=="number"?h>=p&&h<=b:h==p}function Lg(h){var p=h.getScrollInfo(),b=6,y=10,k=h.coordsChar({left:0,top:b+p.top},"local"),S=p.clientHeight-y+p.top,P=h.coordsChar({left:0,top:S},"local");return{top:k.line,bottom:P.line}}function _h(h,p,b){if(b=="'"||b=="`")return j.jumpList.find(h,-1)||new e(0,0);if(b==".")return pS(h);var y=p.marks[b];return y&&y.find()}function pS(h){if(h.getLastEditEnd)return h.getLastEditEnd();for(var p=h.doc.history.done,b=p.length;b--;)if(p[b].changes)return nt(p[b].changes[0].to)}class mD{constructor(){this.commandMap_,this.buildCommandMap_()}processCommand(p,b,y){var k=this;p.operation(function(){p.curOp.isVimOp=!0,k._processCommand(p,b,y)})}_processCommand(p,b,y){var k=p.state.vim,S=j.registerController.getRegister(":"),P=S.toString(),A=new t.StringStream(b);S.setText(b);var R=y||{};R.input=b;try{this.parseInput_(p,A,R)}catch(ee){throw dt(p,ee+""),ee}k.visualMode&&tr(p);var M,q;if(!R.commandName)R.line!==void 0&&(q="move");else if(M=this.matchCommand_(R.commandName),M){if(q=M.name,M.excludeFromCommandHistory&&S.setText(P),this.parseCommandArgs_(A,R,M),M.type=="exToKey"){We(p,M.toKeys,M);return}else if(M.type=="exToEx"){this.processCommand(p,M.toInput);return}}if(!q){dt(p,'Not an editor command ":'+b+'"');return}try{mS[q](p,R),(!M||!M.possiblyAsync)&&R.callback&&R.callback()}catch(ee){throw dt(p,ee+""),ee}}parseInput_(p,b,y){var S,P;b.eatWhile(":"),b.eat("%")?(y.line=p.firstLine(),y.lineEnd=p.lastLine()):(y.line=this.parseLineSpec_(p,b),y.line!==void 0&&b.eat(",")&&(y.lineEnd=this.parseLineSpec_(p,b))),y.line==null?p.state.vim.visualMode?(y.selectionLine=(S=_h(p,p.state.vim,"<"))==null?void 0:S.line,y.selectionLineEnd=(P=_h(p,p.state.vim,">"))==null?void 0:P.line):y.selectionLine=p.getCursor().line:(y.selectionLine=y.line,y.selectionLineEnd=y.lineEnd);var k=b.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return k?y.commandName=k[1]:y.commandName=b.match(/.*/)[0],y}parseLineSpec_(p,b){var y=b.match(/^(\d+)/);if(y)return parseInt(y[1],10)-1;switch(b.next()){case".":return this.parseLineSpecOffset_(b,p.getCursor().line);case"$":return this.parseLineSpecOffset_(b,p.lastLine());case"'":var k=b.next(),S=_h(p,p.state.vim,k);if(!S)throw new Error("Mark not set");return this.parseLineSpecOffset_(b,S.line);case"-":case"+":return b.backUp(1),this.parseLineSpecOffset_(b,p.getCursor().line);default:b.backUp(1);return}}parseLineSpecOffset_(p,b){var y=p.match(/^([+-])?(\d+)/);if(y){var k=parseInt(y[2],10);y[1]=="-"?b-=k:b+=k}return b}parseCommandArgs_(p,b,y){if(!p.eol()){b.argString=p.match(/.*/)[0];var k=y.argDelimiter||/\s+/,S=_g(b.argString).split(k);S.length&&S[0]&&(b.args=S)}}matchCommand_(p){for(var b=p.length;b>0;b--){var y=p.substring(0,b);if(this.commandMap_[y]){var k=this.commandMap_[y];if(k.name.indexOf(p)===0)return k}}return null}buildCommandMap_(){this.commandMap_={};for(var p=0;p<o.length;p++){var b=o[p],y=b.shortName||b.name;this.commandMap_[y]=b}}map(p,b,y,k){if(p!=":"&&p.charAt(0)==":"){if(y)throw Error("Mode not supported for ex mappings");var S=p.substring(1);b!=":"&&b.charAt(0)==":"?this.commandMap_[S]={name:S,type:"exToEx",toInput:b.substring(1),user:!0}:this.commandMap_[S]={name:S,type:"exToKey",toKeys:b,user:!0}}else{var P={keys:p,type:"keyToKey",toKeys:b,noremap:!!k};y&&(P.context=y),n.unshift(P)}}unmap(p,b){if(p!=":"&&p.charAt(0)==":"){if(b)throw Error("Mode not supported for ex mappings");var y=p.substring(1);if(this.commandMap_[y]&&this.commandMap_[y].user)return delete this.commandMap_[y],!0}else for(var k=p,S=0;S<n.length;S++)if(k==n[S].keys&&n[S].context===b)return n.splice(S,1),!0}}var mS={colorscheme:function(h,p){if(!p.args||p.args.length<1){dt(h,h.getOption("theme"));return}h.setOption("theme",p.args[0])},map:function(h,p,b,y){var k=p.args;if(!k||k.length<2){h&&dt(h,"Invalid mapping: "+p.input);return}zn.map(k[0],k[1],b,y)},imap:function(h,p){this.map(h,p,"insert")},nmap:function(h,p){this.map(h,p,"normal")},vmap:function(h,p){this.map(h,p,"visual")},omap:function(h,p){this.map(h,p,"operatorPending")},noremap:function(h,p){this.map(h,p,void 0,!0)},inoremap:function(h,p){this.map(h,p,"insert",!0)},nnoremap:function(h,p){this.map(h,p,"normal",!0)},vnoremap:function(h,p){this.map(h,p,"visual",!0)},onoremap:function(h,p){this.map(h,p,"operatorPending",!0)},unmap:function(h,p,b){var y=p.args;(!y||y.length<1||!zn.unmap(y[0],b))&&h&&dt(h,"No such mapping: "+p.input)},mapclear:function(h,p){C.mapclear()},imapclear:function(h,p){C.mapclear("insert")},nmapclear:function(h,p){C.mapclear("normal")},vmapclear:function(h,p){C.mapclear("visual")},omapclear:function(h,p){C.mapclear("operatorPending")},move:function(h,p){er.processCommand(h,h.state.vim,{keys:"",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:p.line+1})},set:function(h,p){var b=p.args,y=p.setCfg||{};if(!b||b.length<1){h&&dt(h,"Invalid mapping: "+p.input);return}var k=b[0].split("="),S=k.shift()||"",P=k.length>0?k.join("="):void 0,A=!1,R=!1;if(S.charAt(S.length-1)=="?"){if(P)throw Error("Trailing characters: "+p.argString);S=S.substring(0,S.length-1),A=!0}else S.charAt(S.length-1)=="!"&&(S=S.substring(0,S.length-1),R=!0);P===void 0&&S.substring(0,2)=="no"&&(S=S.substring(2),P=!1);var M=K[S]&&K[S].type=="boolean";if(M&&(R?P=!oe(S,h,y):P==null&&(P=!0)),!M&&P===void 0||A){var q=oe(S,h,y);q instanceof Error?dt(h,q.message):q===!0||q===!1?dt(h," "+(q?"":"no")+S):dt(h," "+S+"="+q)}else{var ee=te(S,P,h,y);ee instanceof Error&&dt(h,ee.message)}},setlocal:function(h,p){p.setCfg={scope:"local"},this.set(h,p)},setglobal:function(h,p){p.setCfg={scope:"global"},this.set(h,p)},registers:function(h,p){var b=p.args,y=j.registerController.registers,k=`----------Registers----------
|
||
|
||
`;if(b)for(var A=b.join(""),R=0;R<A.length;R++){var S=A.charAt(R);if(j.registerController.isValidRegister(S)){var M=y[S]||new Gi;k+='"'+S+" "+M.toString()+`
|
||
`}}else for(var S in y){var P=y[S].toString();P.length&&(k+='"'+S+" "+P+`
|
||
`)}dt(h,k)},sort:function(h,p){var b,y,k,S,P;function A(){if(p.argString){var Ke=new t.StringStream(p.argString);if(Ke.eat("!")&&(b=!0),Ke.eol())return;if(!Ke.eatSpace())return"Invalid arguments";var tt=Ke.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!tt||!Ke.eol())return"Invalid arguments";if(tt[1]){y=tt[1].indexOf("i")!=-1,k=tt[1].indexOf("u")!=-1;var Ci=tt[1].indexOf("d")!=-1||tt[1].indexOf("n")!=-1,ci=tt[1].indexOf("x")!=-1,ti=tt[1].indexOf("o")!=-1;if(Number(Ci)+Number(ci)+Number(ti)>1)return"Invalid arguments";S=Ci&&"decimal"||ci&&"hex"||ti&&"octal"}tt[2]&&(P=new RegExp(tt[2].substr(1,tt[2].length-2),y?"i":""))}}var R=A();if(R){dt(h,R+": "+p.argString);return}var M=p.line||h.firstLine(),q=p.lineEnd||p.line||h.lastLine();if(M==q)return;var ee=new e(M,0),ne=new e(q,ai(h,q)),G=h.getRange(ee,ne).split(`
|
||
`),V=S=="decimal"?/(-?)([\d]+)/:S=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:S=="octal"?/([0-7]+)/:null,ae=S=="decimal"?10:S=="hex"?16:S=="octal"?8:void 0,he=[],Ae=[];if(S||P)for(var Qe=0;Qe<G.length;Qe++){var Re=P?G[Qe].match(P):null;Re&&Re[0]!=""?he.push(Re):V&&V.exec(G[Qe])?he.push(G[Qe]):Ae.push(G[Qe])}else Ae=G;function Ot(Ke,tt){if(b){var Ci;Ci=Ke,Ke=tt,tt=Ci}y&&(Ke=Ke.toLowerCase(),tt=tt.toLowerCase());var ci=V&&V.exec(Ke),ti=V&&V.exec(tt);if(!ci||!ti)return Ke<tt?-1:1;var nr=parseInt((ci[1]+ci[2]).toLowerCase(),ae),zg=parseInt((ti[1]+ti[2]).toLowerCase(),ae);return nr-zg}function bi(Ke,tt){if(b){var Ci;Ci=Ke,Ke=tt,tt=Ci}return y&&(Ke[0]=Ke[0].toLowerCase(),tt[0]=tt[0].toLowerCase()),Ke[0]<tt[0]?-1:1}if(he.sort(P?bi:Ot),P)for(var Qe=0;Qe<he.length;Qe++)he[Qe]=he[Qe].input;else S||Ae.sort(Ot);if(G=b?he.concat(Ae):Ae.concat(he),k){var Kt=G,li;G=[];for(var Qe=0;Qe<Kt.length;Qe++)Kt[Qe]!=li&&G.push(Kt[Qe]),li=Kt[Qe]}h.replaceRange(G.join(`
|
||
`),ee,ne)},vglobal:function(h,p){this.global(h,p)},normal:function(h,p){var b=p.argString;if(b&&b[0]=="!"&&(b=b.slice(1),se=!0),b=b.trimStart(),!b){dt(h,"Argument is required.");return}var y=p.line;if(typeof y=="number")for(var k=isNaN(p.lineEnd)?y:p.lineEnd,S=y;S<=k;S++)h.setCursor(S,0),We(h,p.argString.trimStart()),h.state.vim.insertMode&&So(h,!0);else We(h,p.argString.trimStart()),h.state.vim.insertMode&&So(h,!0)},global:function(h,p){var b=p.argString;if(!b){dt(h,"Regular Expression missing from global");return}var y=p.commandName[0]==="v";b[0]==="!"&&p.commandName[0]==="g"&&(y=!0,b=b.slice(1));var k=p.line!==void 0?p.line:h.firstLine(),S=p.lineEnd||p.line||h.lastLine(),P=oD(b),A=b,R="";if(P&&P.length&&(A=P[0],R=P.slice(1,P.length).join("/")),A)try{mc(h,A,!0,!0)}catch(he){dt(h,"Invalid regex: "+A);return}for(var M=Dn(h).getQuery(),q=[],ee=k;ee<=S;ee++){var ne=h.getLine(ee),G=M.test(ne);G!==y&&q.push(R?h.getLineHandle(ee):ne)}if(!R){dt(h,q.join(`
|
||
`));return}var V=0,ae=function(){if(V<q.length){var he=q[V++],Ae=h.getLineNumber(he);if(Ae==null){ae();return}var Qe=Ae+1+R;zn.processCommand(h,Qe,{callback:ae})}else h.releaseLineHandles&&h.releaseLineHandles()};ae()},substitute:function(h,p){if(!h.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var b=p.argString,y=b?cS(b,b[0]):[],k="",S="",P,A,R,M=!1,q=!1;if(y&&y.length)k=y[0],oe("pcre")&&k!==""&&(k=new RegExp(k).source),S=y[1],S!==void 0&&(oe("pcre")?S=cD(S.replace(/([^\\])&/g,"$1$$&")):S=lD(S),j.lastSubstituteReplacePart=S),P=y[2]?y[2].split(" "):[];else if(b&&b.length){dt(h,"Substitutions should be of the form :s/pattern/replace/");return}if(P&&(A=P[0],R=parseInt(P[1]),A&&(A.indexOf("c")!=-1&&(M=!0),A.indexOf("g")!=-1&&(q=!0),oe("pcre")?k=k+"/"+A:k=k.replace(/\//g,"\\/")+"/"+A)),k)try{mc(h,k,!0,!0)}catch(Ae){dt(h,"Invalid regex: "+k);return}if(S=S||j.lastSubstituteReplacePart,S===void 0){dt(h,"No previous substitute regular expression");return}var ee=Dn(h),ne=ee.getQuery(),G=p.line!==void 0?p.line:h.getCursor().line,V=p.lineEnd||G;G==h.firstLine()&&V==h.lastLine()&&(V=1/0),R&&(G=V,V=G+R-1);var ae=Ce(h,new e(G,0)),he=h.getSearchCursor(ne,ae);gD(h,M,q,G,V,he,ne,S,p.callback)},startinsert:function(h,p){We(h,p.argString=="!"?"A":"i",{})},redo:t.commands.redo,undo:t.commands.undo,write:function(h){t.commands.save?t.commands.save(h):h.save&&h.save()},nohlsearch:function(h){Rg(h)},yank:function(h){var p=nt(h.getCursor()),b=p.line,y=h.getLine(b);j.registerController.pushText("0","yank",y,!0,!0)},delete:function(h,p){var b=p.selectionLine,y=isNaN(p.selectionLineEnd)?b:p.selectionLineEnd;Oc.delete(h,{linewise:!0},[{anchor:new e(b,0),head:new e(y+1,0)}])},join:function(h,p){var b=p.selectionLine,y=isNaN(p.selectionLineEnd)?b:p.selectionLineEnd;h.setCursor(new e(b,0)),ce.joinLines(h,{repeat:y-b},h.state.vim)},delmarks:function(h,p){if(!p.argString||!_g(p.argString)){dt(h,"Argument required");return}for(var b=h.state.vim,y=new t.StringStream(_g(p.argString));!y.eol();){y.eatSpace();var k=y.pos;if(!y.match(/[a-zA-Z]/,!1)){dt(h,"Invalid argument: "+p.argString.substring(k));return}var S=y.next();if(y.match("-",!0)){if(!y.match(/[a-zA-Z]/,!1)){dt(h,"Invalid argument: "+p.argString.substring(k));return}var P=S,A=y.next();if(P&&A&&T(P)==T(A)){var R=P.charCodeAt(0),M=A.charCodeAt(0);if(R>=M){dt(h,"Invalid argument: "+p.argString.substring(k));return}for(var q=0;q<=M-R;q++){var ee=String.fromCharCode(R+q);delete b.marks[ee]}}else{dt(h,"Invalid argument: "+P+"-");return}}else S&&delete b.marks[S]}}},zn=new mD;function gD(h,p,b,y,k,S,P,A,R){h.state.vim.exMode=!0;var M=!1,q,ee,ne;function G(){h.operation(function(){for(;!M;)V(),he();Ae()})}function V(){var Re=h.getRange(S.from(),S.to()),Ot=Re.replace(P,A),bi=S.to().line;S.replace(Ot),ee=S.to().line,k+=ee-bi,ne=ee<bi}function ae(){var Re=q&&nt(S.to()),Ot=S.findNext();return Ot&&!Ot[0]&&Re&&vt(S.from(),Re)&&(Ot=S.findNext()),Ot}function he(){for(;ae()&&pD(S.from(),y,k);)if(!(!b&&S.from().line==ee&&!ne)){h.scrollIntoView(S.from(),30),h.setSelection(S.from(),S.to()),q=S.from(),M=!1;return}M=!0}function Ae(Re){if(Re&&Re(),h.focus(),q){h.setCursor(q);var Ot=h.state.vim;Ot.exMode=!1,Ot.lastHPos=Ot.lastHSPos=q.ch}R&&R()}function Qe(Re,Ot,bi){t.e_stop(Re);var Kt=Lt(Re);switch(Kt){case"y":V(),he();break;case"n":he();break;case"a":var li=R;R=void 0,h.operation(G),R=li;break;case"l":V();case"q":case"<Esc>":case"<C-c>":case"<C-[>":Ae(bi);break}return M&&Ae(bi),!0}if(he(),M){dt(h,"No matches for "+P.source);return}if(!p){G(),R&&R();return}pc(h,{prefix:ko("span","replace with ",ko("strong",A)," (y/n/a/q/l)"),onKeyDown:Qe})}function So(h,p){var b=h.state.vim,y=j.macroModeState,k=j.registerController.getRegister("."),S=y.isPlaying,P=y.lastInsertModeChanges;S||(h.off("change",bS),b.insertEnd&&b.insertEnd.clear(),b.insertEnd=void 0,t.off(h.getInputField(),"keydown",vS)),!S&&b.insertModeRepeat>1&&(wS(h,b,b.insertModeRepeat-1,!0),b.lastEditInputState.repeatOverride=b.insertModeRepeat),delete b.insertModeRepeat,b.insertMode=!1,p||h.setCursor(h.getCursor().line,h.getCursor().ch-1),h.setOption("keyMap","vim"),h.setOption("disableInput",!0),h.toggleOverwrite(!1),k.setText(P.changes.join("")),t.signal(h,"vim-mode-change",{mode:"normal"}),y.isRecording&&vD(y)}function gS(h){n.unshift(h)}function bD(h,p,b,y,k){var S={keys:h,type:p};S[p]=b,S[p+"Args"]=y;for(var P in k)S[P]=k[P];gS(S)}N("insertModeEscKeysTimeout",200,"number");function yD(h,p,b,y){var k=j.registerController.getRegister(y);if(y==":"){k.keyBuffer[0]&&zn.processCommand(h,k.keyBuffer[0]),b.isPlaying=!1;return}var S=k.keyBuffer,P=0;b.isPlaying=!0,b.replaySearchQueries=k.searchQueries.slice(0);for(var A=0;A<S.length;A++)for(var R=S[A],M,q,ee=/<(?:[CSMA]-)*\w+>|./gi;M=ee.exec(R);)if(q=M[0],C.handleKey(h,q,"macro"),p.insertMode){var ne=k.insertModeChanges[P++].changes;j.macroModeState.lastInsertModeChanges.changes=ne,SS(h,ne,1),So(h)}b.isPlaying=!1}function xD(h,p){if(!h.isPlaying){var b=h.latestRegister,y=j.registerController.getRegister(b);y&&y.pushText(p)}}function vD(h){if(!h.isPlaying){var p=h.latestRegister,b=j.registerController.getRegister(p);b&&b.pushInsertModeChanges&&b.pushInsertModeChanges(h.lastInsertModeChanges)}}function wD(h,p){if(!h.isPlaying){var b=h.latestRegister,y=j.registerController.getRegister(b);y&&y.pushSearchQuery&&y.pushSearchQuery(p)}}function bS(h,p){var b=j.macroModeState,y=b.lastInsertModeChanges;if(!b.isPlaying)for(var k=h.state.vim;p;){if(y.expectCursorActivityForChange=!0,y.ignoreCount>1)y.ignoreCount--;else if(p.origin=="+input"||p.origin=="paste"||p.origin===void 0){var S=h.listSelections().length;S>1&&(y.ignoreCount=S);var P=p.text.join(`
|
||
`);if(y.maybeReset&&(y.changes=[],y.maybeReset=!1),P)if(h.state.overwrite&&!/\n/.test(P))y.changes.push([P]);else{if(P.length>1){var A=k&&k.insertEnd&&k.insertEnd.find(),R=h.getCursor();if(A&&A.line==R.line){var M=A.ch-R.ch;M>0&&M<P.length&&(y.changes.push([P,M]),P="")}}P&&y.changes.push(P)}}p=p.next}}function yS(h){var k;var p=h.state.vim;if(p.insertMode){var b=j.macroModeState;if(b.isPlaying)return;var y=b.lastInsertModeChanges;y.expectCursorActivityForChange?y.expectCursorActivityForChange=!1:(y.maybeReset=!0,p.insertEnd&&p.insertEnd.clear(),p.insertEnd=h.setBookmark(h.getCursor(),{insertLeft:!0}))}else(k=h.curOp)!=null&&k.isVimOp||xS(h,p)}function xS(h,p){var b=h.getCursor("anchor"),y=h.getCursor("head");if(p.visualMode&&!h.somethingSelected()?tr(h,!1):!p.visualMode&&!p.insertMode&&h.somethingSelected()&&(p.visualMode=!0,p.visualLine=!1,t.signal(h,"vim-mode-change",{mode:"visual"})),p.visualMode){var k=ft(y,b)?0:-1,S=ft(y,b)?-1:0;y=$e(y,0,k),b=$e(b,0,S),p.sel={anchor:b,head:y},Pr(h,p,"<",$t(y,b)),Pr(h,p,">",wo(y,b))}else p.insertMode||(p.lastHPos=h.getCursor().ch)}function Ig(h,p){this.keyName=h,this.key=p.key,this.ctrlKey=p.ctrlKey,this.altKey=p.altKey,this.metaKey=p.metaKey,this.shiftKey=p.shiftKey}function vS(h){var p=j.macroModeState,b=p.lastInsertModeChanges,y=t.keyName?t.keyName(h):h.key;y&&(y.indexOf("Delete")!=-1||y.indexOf("Backspace")!=-1)&&(b.maybeReset&&(b.changes=[],b.maybeReset=!1),b.changes.push(new Ig(y,h)))}function wS(h,p,b,y){var k=j.macroModeState;k.isPlaying=!0;var S=p.lastEditActionCommand,P=p.inputState;function A(){S?er.processAction(h,p,S):er.evalInput(h,p)}function R(q){if(k.lastInsertModeChanges.changes.length>0){q=p.lastEditActionCommand?q:1;var ee=k.lastInsertModeChanges;SS(h,ee.changes,q)}}if(p.inputState=p.lastEditInputState,S&&S.interlaceInsertRepeat)for(var M=0;M<b;M++)A(),R(1);else y||A(),R(b);p.inputState=P,p.insertMode&&!y&&So(h),k.isPlaying=!1}function kS(h,p){t.lookupKey(p,"vim-insert",function(y){return typeof y=="string"?t.commands[y](h):y(h),!0})}function SS(h,p,b){var y=h.getCursor("head"),k=j.macroModeState.lastInsertModeChanges.visualBlock;k&&(J2(h,y,k+1),b=h.listSelections().length,h.setCursor(y));for(var S=0;S<b;S++){k&&h.setCursor($e(y,S,0));for(var P=0;P<p.length;P++){var A=p[P];if(A instanceof Ig)kS(h,A.keyName);else if(typeof A=="string")h.replaceSelection(A);else{var R=h.getCursor(),M=$e(R,0,A[0].length-(A[1]||0));h.replaceRange(A[0],R,A[1]?R:M),h.setCursor(M)}}}k&&h.setCursor($e(y,0,1))}function Dg(h){var p=new h.constructor;return Object.keys(h).forEach(function(b){if(b!="insertEnd"){var y=h[b];Array.isArray(y)?y=y.slice():y&&typeof y=="object"&&y.constructor!=Object&&(y=Dg(y)),p[b]=y}}),h.sel&&(p.sel={head:h.sel.head&&nt(h.sel.head),anchor:h.sel.anchor&&nt(h.sel.anchor)}),p}function kD(h,p,b){var S=ve(h),y=h,k=!1,S=C.maybeInitVimState_(y),P=S.visualBlock||S.wasInVisualBlock,A=y.isInMultiSelectMode();if(S.wasInVisualBlock&&!A?S.wasInVisualBlock=!1:A&&S.visualBlock&&(S.wasInVisualBlock=!0),p=="<Esc>"&&!S.insertMode&&!S.visualMode&&A&&S.status=="<Esc>")Wt(y);else if(P||!A||y.inVirtualSelectionMode)k=C.handleKey(y,p,b);else{var R=Dg(S),M=S.inputState.changeQueueList||[];y.operation(function(){var ee;y.curOp&&(y.curOp.isVimOp=!0);var q=0;y.forEachSelection(function(){y.state.vim.inputState.changeQueue=M[q];var ne=y.getCursor("head"),G=y.getCursor("anchor"),V=ft(ne,G)?0:-1,ae=ft(ne,G)?-1:0;ne=$e(ne,0,V),G=$e(G,0,ae),y.state.vim.sel.head=ne,y.state.vim.sel.anchor=G,k=C.handleKey(y,p,b),y.virtualSelection&&(M[q]=y.state.vim.inputState.changeQueue,y.state.vim=Dg(R)),q++}),(ee=y.curOp)!=null&&ee.cursorActivity&&!k&&(y.curOp.cursorActivity=!1),y.state.vim=S,S.inputState.changeQueueList=M,S.inputState.changeQueue=null},!0)}return k&&!S.visualMode&&!S.insert&&S.visualMode!=y.somethingSelected()&&xS(y,S),k}return ue(),C}function dn(t,e){var i=e.ch,n=e.line+1;n<1&&(n=1,i=0),n>t.lines&&(n=t.lines,i=Number.MAX_VALUE);var r=t.line(n);return Math.min(r.from+Math.max(0,i),r.to)}function Xn(t,e){let i=t.lineAt(e);return{line:i.number-1,ch:e-i.from}}var Rn=class{constructor(e,i){this.line=e,this.ch=i}};function kL(t,e,i){if(t.addEventListener)t.addEventListener(e,i,!1);else{var n=t._handlers||(t._handlers={});n[e]=(n[e]||[]).concat(i)}}function SL(t,e,i){if(t.removeEventListener)t.removeEventListener(e,i,!1);else{var n=t._handlers,r=n&&n[e];if(r){var o=r.indexOf(i);o>-1&&(n[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function TL(t,e,...i){var n,r=(n=t._handlers)===null||n===void 0?void 0:n[e];if(r)for(var o=0;o<r.length;++o)r[o](...i)}function xL(t,...e){if(t)for(var i=0;i<t.length;++i)t[i](...e)}var $k;try{$k=new RegExp("[\\w\\p{Alphabetic}\\p{Number}_]","u")}catch(t){$k=/[\w]/}function lh(t,e){var i=t.cm6;if(!i.state.readOnly){var n="input.type.compose";if(t.curOp&&(t.curOp.lastChange||(n="input.type.compose.start")),e.annotations)try{e.annotations.some(function(r){r.value=="input"&&(r.value=n)})}catch(r){console.error(r)}else e.userEvent=n;return i.dispatch(e)}}function vL(t,e){var i;t.curOp&&(t.curOp.$changeStart=void 0),(e?ka:fs)(t.cm6);let n=(i=t.curOp)===null||i===void 0?void 0:i.$changeStart;n!=null&&t.cm6.dispatch({selection:{anchor:n}})}var kne={},Be=class t{constructor(e){this.state={},this.marks=Object.create(null),this.$mid=0,this.options={},this._handlers={},this.$lastChangeEndOffset=0,this.virtualSelection=null,this.cm6=e,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this)}openDialog(e,i,n){return Tne(this,e,i,n)}openNotification(e,i){return Sne(this,e,i)}on(e,i){kL(this,e,i)}off(e,i){SL(this,e,i)}signal(e,i,n){TL(this,e,i,n)}indexFromPos(e){return dn(this.cm6.state.doc,e)}posFromIndex(e){return Xn(this.cm6.state.doc,e)}foldCode(e){let i=this.cm6,n=i.state.selection.ranges,r=this.cm6.state.doc,o=dn(r,e),s=J.create([J.range(o,o)],0).ranges;i.state.selection.ranges=s,wp(i),i.state.selection.ranges=n}firstLine(){return 0}lastLine(){return this.cm6.state.doc.lines-1}lineCount(){return this.cm6.state.doc.lines}setCursor(e,i){typeof e=="object"&&(i=e.ch,e=e.line);var n=dn(this.cm6.state.doc,{line:e,ch:i||0});this.cm6.dispatch({selection:{anchor:n}},{scrollIntoView:!this.curOp}),this.curOp&&!this.curOp.isVimOp&&this.onBeforeEndOperation()}getCursor(e){var i=this.cm6.state.selection.main,n=e=="head"||!e?i.head:e=="anchor"?i.anchor:e=="start"?i.from:e=="end"?i.to:null;if(n==null)throw new Error("Invalid cursor type");return this.posFromIndex(n)}listSelections(){var e=this.cm6.state.doc;return this.cm6.state.selection.ranges.map(i=>({anchor:Xn(e,i.anchor),head:Xn(e,i.head)}))}setSelections(e,i){var n=this.cm6.state.doc,r=e.map(o=>{var s=dn(n,o.head),a=dn(n,o.anchor);return s==a?J.cursor(s,1):J.range(a,s)});this.cm6.dispatch({selection:J.create(r,i)})}setSelection(e,i,n){this.setSelections([{anchor:e,head:i}],0),n&&n.origin=="*mouse"&&this.onBeforeEndOperation()}getLine(e){var i=this.cm6.state.doc;return e<0||e>=i.lines?"":this.cm6.state.doc.line(e+1).text}getLineHandle(e){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{row:e,index:this.indexFromPos(new Rn(e,0))}}getLineNumber(e){var i=this.$lineHandleChanges;if(!i)return null;for(var n=e.index,r=0;r<i.length;r++)if(n=i[r].changes.mapPos(n,1,Qt.TrackAfter),n==null)return null;var o=this.posFromIndex(n);return o.ch==0?o.line:null}releaseLineHandles(){this.$lineHandleChanges=void 0}getRange(e,i){var n=this.cm6.state.doc;return this.cm6.state.sliceDoc(dn(n,e),dn(n,i))}replaceRange(e,i,n,r){n||(n=i);var o=this.cm6.state.doc,s=dn(o,i),a=dn(o,n);lh(this,{changes:{from:s,to:a,insert:e}})}replaceSelection(e){lh(this,this.cm6.state.replaceSelection(e))}replaceSelections(e){var i=this.cm6.state.selection.ranges,n=i.map((r,o)=>({from:r.from,to:r.to,insert:e[o]||""}));lh(this,{changes:n})}getSelection(){return this.getSelections().join(`
|
||
`)}getSelections(){var e=this.cm6;return e.state.selection.ranges.map(i=>e.state.sliceDoc(i.from,i.to))}somethingSelected(){return this.cm6.state.selection.ranges.some(e=>!e.empty)}getInputField(){return this.cm6.contentDOM}clipPos(e){var i=this.cm6.state.doc,n=e.ch,r=e.line+1;r<1&&(r=1,n=0),r>i.lines&&(r=i.lines,n=Number.MAX_VALUE);var o=i.line(r);return n=Math.min(Math.max(0,n),o.to-o.from),new Rn(r-1,n)}getValue(){return this.cm6.state.doc.toString()}setValue(e){var i=this.cm6;return i.dispatch({changes:{from:0,to:i.state.doc.length,insert:e},selection:J.range(0,0)})}focus(){return this.cm6.focus()}blur(){return this.cm6.contentDOM.blur()}defaultTextHeight(){return this.cm6.defaultLineHeight}findMatchingBracket(e,i){var n=this.cm6.state,r=dn(n.doc,e),o=Cn(n,r+1,-1);return o&&o.end?{to:Xn(n.doc,o.end.from)}:(o=Cn(n,r,1),o&&o.end?{to:Xn(n.doc,o.end.from)}:{to:void 0})}scanForBracket(e,i,n,r){return Pne(this,e,i,n,r)}indentLine(e,i){i?this.indentMore():this.indentLess()}indentMore(){th(this.cm6)}indentLess(){ih(this.cm6)}execCommand(e){if(e=="indentAuto")t.commands.indentAuto(this);else if(e=="goLineLeft")Zf(this.cm6);else if(e=="goLineRight"){Vf(this.cm6);let i=this.cm6.state,n=i.selection.main.head;n<i.doc.length&&i.sliceDoc(n,n+1)!==`
|
||
`&&Sm(this.cm6)}else console.log(e+" is not implemented")}setBookmark(e,i){var n=i!=null&&i.insertLeft?1:-1,r=this.indexFromPos(e),o=new Xk(this,r,n);return o}addOverlay({query:e}){let i=new rc({regexp:!0,search:e.source,caseSensitive:!/i/.test(e.flags)});if(i.valid){i.forVim=!0,this.cm6Query=i;let n=Oo.of(i);return this.cm6.dispatch({effects:n}),i}}removeOverlay(e){if(!this.cm6Query)return;this.cm6Query.forVim=!1;let i=Oo.of(this.cm6Query);this.cm6.dispatch({effects:i})}getSearchCursor(e,i){var n=this,r=null,o=null;i.ch==null&&(i.ch=Number.MAX_VALUE);var s=dn(n.cm6.state.doc,i),a=e.source.replace(/(\\.|{(?:\d+(?:,\d*)?|,\d+)})|[{}]/g,function(d,O){return O||"\\"+d});function l(d,O=0,m=d.length){return new nc(d,a,{ignoreCase:e.ignoreCase},O,m)}function c(d){var O=n.cm6.state.doc;if(d>O.length)return null;let m=l(O,d).next();return m.done?null:m.value}var u=1e4;function f(d,O){var m=n.cm6.state.doc;for(let x=1;;x++){let v=Math.max(d,O-x*u),w=l(m,v,O),T=null;for(;!w.next().done;)T=w.value;if(T&&(v==d||T.from>v+10))return T;if(v==d)return null}}return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(d){var O=n.cm6.state.doc;if(d){let m=r?r.from==r.to?r.to-1:r.from:s;r=f(0,m)}else{let m=r?r.from==r.to?r.to+1:r.to:s;r=c(m)}return o=r&&{from:Xn(O,r.from),to:Xn(O,r.to),match:r.match},r&&r.match},from:function(){return o==null?void 0:o.from},to:function(){return o==null?void 0:o.to},replace:function(d){r&&(lh(n,{changes:{from:r.from,to:r.to,insert:d}}),r.to=r.from+d.length,o&&(o.to=Xn(n.cm6.state.doc,r.to)))}}}findPosV(e,i,n,r){let{cm6:o}=this,s=o.state.doc,a=n=="page"?o.dom.clientHeight:0,l=dn(s,e),c=J.cursor(l,1,void 0,r),u=Math.round(Math.abs(i));for(let d=0;d<u;d++)n=="page"?c=o.moveVertically(c,i>0,a):n=="line"&&(c=o.moveVertically(c,i>0));let f=Xn(s,c.head);return(i<0&&c.head==0&&r!=0&&e.line==0&&e.ch!=0||i>0&&c.head==s.length&&f.ch!=r&&e.line==f.line)&&(f.hitSide=!0),f}charCoords(e,i){var n=this.cm6.contentDOM.getBoundingClientRect(),r=dn(this.cm6.state.doc,e),o=this.cm6.coordsAtPos(r),s=-n.top;return{left:((o==null?void 0:o.left)||0)-n.left,top:((o==null?void 0:o.top)||0)+s,bottom:((o==null?void 0:o.bottom)||0)+s}}coordsChar(e,i){var n=this.cm6.contentDOM.getBoundingClientRect(),r=this.cm6.posAtCoords({x:e.left+n.left,y:e.top+n.top})||0;return Xn(this.cm6.state.doc,r)}getScrollInfo(){var e=this.cm6.scrollDOM;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight,width:e.scrollWidth,clientHeight:e.clientHeight,clientWidth:e.clientWidth}}scrollTo(e,i){e!=null&&(this.cm6.scrollDOM.scrollLeft=e),i!=null&&(this.cm6.scrollDOM.scrollTop=i)}scrollIntoView(e,i){if(e){var n=this.indexFromPos(e);this.cm6.dispatch({effects:fe.scrollIntoView(n)})}else this.cm6.dispatch({scrollIntoView:!0,userEvent:"scroll"})}getWrapperElement(){return this.cm6.dom}getMode(){return{name:this.getOption("mode")}}setSize(e,i){this.cm6.dom.style.width=e+4+"px",this.cm6.dom.style.height=i+"px",this.refresh()}refresh(){this.cm6.measure()}destroy(){this.removeOverlay()}getLastEditEnd(){return this.posFromIndex(this.$lastChangeEndOffset)}onChange(e){this.$lineHandleChanges&&this.$lineHandleChanges.push(e);for(let n in this.marks)this.marks[n].update(e.changes);this.virtualSelection&&(this.virtualSelection.ranges=this.virtualSelection.ranges.map(n=>n.map(e.changes)));var i=this.curOp=this.curOp||{};e.changes.iterChanges((n,r,o,s,a)=>{(i.$changeStart==null||i.$changeStart>o)&&(i.$changeStart=o),this.$lastChangeEndOffset=s;var l={text:a.toJSON()};i.lastChange?i.lastChange.next=i.lastChange=l:i.lastChange=i.change=l},!0),i.changeHandlers||(i.changeHandlers=this._handlers.change&&this._handlers.change.slice())}onSelectionChange(){var e=this.curOp=this.curOp||{};e.cursorActivityHandlers||(e.cursorActivityHandlers=this._handlers.cursorActivity&&this._handlers.cursorActivity.slice()),this.curOp.cursorActivity=!0}operation(e,i){this.curOp||(this.curOp={$d:0}),this.curOp.$d++;try{var n=e()}finally{this.curOp&&(this.curOp.$d--,this.curOp.$d||this.onBeforeEndOperation())}return n}onBeforeEndOperation(){var e=this.curOp,i=!1;e&&(e.change&&xL(e.changeHandlers,this,e.change),e&&e.cursorActivity&&(xL(e.cursorActivityHandlers,this,null),e.isVimOp&&(i=!0)),this.curOp=null),i&&this.scrollIntoView()}moveH(e,i){if(i=="char"){var n=this.getCursor();this.setCursor(n.line,n.ch+e)}}setOption(e,i){switch(e){case"keyMap":this.state.keyMap=i;break;case"textwidth":this.state.textwidth=i;break}}getOption(e){switch(e){case"firstLineNumber":return 1;case"tabSize":return this.cm6.state.tabSize||4;case"readOnly":return this.cm6.state.readOnly;case"indentWithTabs":return this.cm6.state.facet(Bn)==" ";case"indentUnit":return this.cm6.state.facet(Bn).length||2;case"textwidth":return this.state.textwidth;case"keyMap":return this.state.keyMap||"vim"}}toggleOverwrite(e){this.state.overwrite=e}getTokenTypeAt(e){var i,n=this.indexFromPos(e),r=$x(this.cm6.state,n),o=r==null?void 0:r.resolve(n),s=((i=o==null?void 0:o.type)===null||i===void 0?void 0:i.name)||"";return/comment/i.test(s)?"comment":/string/i.test(s)?"string":""}overWriteSelection(e){var i=this.cm6.state.doc,n=this.cm6.state.selection,r=n.ranges.map(o=>{if(o.empty){var s=o.to<i.length?i.sliceString(o.from,o.to+1):"";if(s&&!/\n/.test(s))return J.range(o.from,o.to+1)}return o});this.cm6.dispatch({selection:J.create(r,n.mainIndex)}),this.replaceSelection(e)}isInMultiSelectMode(){return this.cm6.state.selection.ranges.length>1}virtualSelectionMode(){return!!this.virtualSelection}forEachSelection(e){var i=this.cm6.state.selection;this.virtualSelection=J.create(i.ranges,i.mainIndex);for(var n=0;n<this.virtualSelection.ranges.length;n++){var r=this.virtualSelection.ranges[n];r&&(this.cm6.dispatch({selection:J.create([r])}),e(),this.virtualSelection.ranges[n]=this.cm6.state.selection.ranges[0])}this.cm6.dispatch({selection:this.virtualSelection}),this.virtualSelection=null}hardWrap(e){return Ane(this,e)}};Be.isMac=typeof navigator!="undefined"&&/Mac/.test(navigator.platform);Be.Pos=Rn;Be.StringStream=Cl;Be.commands={cursorCharLeft:function(t){qf(t.cm6)},redo:function(t){vL(t,!1)},undo:function(t){vL(t,!0)},newlineAndIndent:function(t){eh({state:t.cm6.state,dispatch:e=>lh(t,e)})},indentAuto:function(t){Y6(t.cm6)},newlineAndIndentContinueComment:void 0,save:void 0};Be.isWordChar=function(t){return $k.test(t)};Be.keys=kne;Be.addClass=function(t,e){};Be.rmClass=function(t,e){};Be.e_preventDefault=function(t){t.preventDefault()};Be.e_stop=function(t){var e,i;(e=t==null?void 0:t.stopPropagation)===null||e===void 0||e.call(t),(i=t==null?void 0:t.preventDefault)===null||i===void 0||i.call(t)};Be.lookupKey=function(e,i,n){var r=Be.keys[e];r&&n(r)};Be.on=kL;Be.off=SL;Be.signal=TL;Be.findMatchingTag=Qne;Be.findEnclosingTag=_ne;Be.keyName=void 0;function EL(t,e,i){var n=document.createElement("div");return n.appendChild(e),n}function CL(t,e){t.state.currentNotificationClose&&t.state.currentNotificationClose(),t.state.currentNotificationClose=e}function Sne(t,e,i){CL(t,a);var n=EL(t,e,i&&i.bottom),r=!1,o,s=i&&typeof i.duration!="undefined"?i.duration:5e3;function a(){r||(r=!0,clearTimeout(o),n.remove(),QL(t,n))}return n.onclick=function(l){l.preventDefault(),a()},PL(t,n),s&&(o=setTimeout(a,s)),a}function PL(t,e){var i=t.state.dialog;t.state.dialog=e,e&&i!==e&&(i&&i.contains(document.activeElement)&&t.focus(),i&&i.parentElement?i.parentElement.replaceChild(e,i):i&&i.remove(),Be.signal(t,"dialog"))}function QL(t,e){t.state.dialog==e&&(t.state.dialog=null,Be.signal(t,"dialog"))}function Tne(t,e,i,n){n||(n={}),CL(t,void 0);var r=EL(t,e,n.bottom),o=!1;PL(t,r);function s(l){if(typeof l=="string")a.value=l;else{if(o)return;o=!0,QL(t,r),t.state.dialog||t.focus(),n.onClose&&n.onClose(r)}}var a=r.getElementsByTagName("input")[0];return a&&(n.value&&(a.value=n.value,n.selectValueOnOpen!==!1&&a.select()),n.onInput&&Be.on(a,"input",function(l){n.onInput(l,a.value,s)}),n.onKeyUp&&Be.on(a,"keyup",function(l){n.onKeyUp(l,a.value,s)}),Be.on(a,"keydown",function(l){n&&n.onKeyDown&&n.onKeyDown(l,a.value,s)||(l.keyCode==13&&i(a.value),(l.keyCode==27||n.closeOnEnter!==!1&&l.keyCode==13)&&(a.blur(),Be.e_stop(l),s()))}),n.closeOnBlur!==!1&&Be.on(a,"blur",function(){setTimeout(function(){document.activeElement!==a&&s()})}),a.focus()),s}var Ene={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function Cne(t){return t&&t.bracketRegex||/[(){}[\]]/}function Pne(t,e,i,n,r){for(var o=r&&r.maxScanLineLength||1e4,s=r&&r.maxScanLines||1e3,a=[],l=Cne(r),c=i>0?Math.min(e.line+s,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-s),u=e.line;u!=c;u+=i){var f=t.getLine(u);if(f){var d=i>0?0:f.length-1,O=i>0?f.length:-1;if(!(f.length>o))for(u==e.line&&(d=e.ch-(i<0?1:0));d!=O;d+=i){var m=f.charAt(d);if(l.test(m)){var x=Ene[m];if(x&&x.charAt(1)==">"==i>0)a.push(m);else if(a.length)a.pop();else return{pos:new Rn(u,d),ch:m}}}}}return u-i==(i>0?t.lastLine():t.firstLine())?!1:null}function Qne(t,e){}function _ne(t,e){var i,n,r=t.cm6.state,o=t.indexFromPos(e);if(o<r.doc.length){var s=r.sliceDoc(o,o+1);s=="<"&&o++}for(var a=$x(r,o),l=(a==null?void 0:a.resolve(o))||null;l;){if(((i=l.firstChild)===null||i===void 0?void 0:i.type.name)=="OpenTag"&&((n=l.lastChild)===null||n===void 0?void 0:n.type.name)=="CloseTag")return{open:wL(r.doc,l.firstChild),close:wL(r.doc,l.lastChild)};l=l.parent}}function wL(t,e){return{from:Xn(t,e.from),to:Xn(t,e.to)}}var Xk=class{constructor(e,i,n){this.cm=e,this.id=e.$mid++,this.offset=i,this.assoc=n,e.marks[this.id]=this}clear(){delete this.cm.marks[this.id]}find(){return this.offset==null?null:this.cm.posFromIndex(this.offset)}update(e){this.offset!=null&&(this.offset=e.mapPos(this.offset,this.assoc,Qt.TrackDel))}};function Ane(t,e){for(var i,n=e.column||t.getOption("textwidth")||80,r=e.allowMerge!=!1,o=Math.min(e.from,e.to),s=Math.max(e.from,e.to);o<=s;){var a=t.getLine(o);if(a.length>n){var l=m(a,n,5);if(l){var c=(i=/^\s*/.exec(a))===null||i===void 0?void 0:i[0];t.replaceRange(`
|
||
`+c,new Rn(o,l.start),new Rn(o,l.end))}s++}else if(r&&/\S/.test(a)&&o!=s){var u=t.getLine(o+1);if(u&&/\S/.test(u)){var f=a.replace(/\s+$/,""),d=u.replace(/^\s+/,""),O=f+" "+d,l=m(O,n,5);l&&l.start>f.length||O.length<n?(t.replaceRange(" ",new Rn(o,f.length),new Rn(o+1,u.length-d.length)),o--,s--):f.length<a.length&&t.replaceRange("",new Rn(o,f.length),new Rn(o,a.length))}}o++}return o;function m(x,v,w){if(!(x.length<v)){var T=x.slice(0,v),Q=x.slice(v),I=/^(?:(\s+)|(\S+)(\s+))/.exec(Q),z=/(?:(\s+)|(\s+)(\S+))$/.exec(T),$=0,X=0;if(z&&!z[2]&&($=v-z[1].length,X=v),I&&!I[2]&&($||($=v),X=v+I[1].length),$)return{start:$,end:X};if(z&&z[2]&&z.index>w)return{start:z.index,end:z.index+z[2].length};if(I&&I[2])return $=v+I[2].length,{start:$,end:$+I[3].length}}}}var Rk=up||function(){let t={cursorBlinkRate:1200};return function(){return t}}(),Lk=class{constructor(e,i,n,r,o,s,a,l,c,u){this.left=e,this.top=i,this.height=n,this.fontFamily=r,this.fontSize=o,this.fontWeight=s,this.color=a,this.className=l,this.letter=c,this.partial=u}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",e.style.height=this.height+"px",e.style.lineHeight=this.height+"px",e.style.fontFamily=this.fontFamily,e.style.fontSize=this.fontSize,e.style.fontWeight=this.fontWeight,e.style.color=this.partial?"transparent":this.color,e.className=this.className,e.textContent=this.letter}eq(e){return this.left==e.left&&this.top==e.top&&this.height==e.height&&this.fontFamily==e.fontFamily&&this.fontSize==e.fontSize&&this.fontWeight==e.fontWeight&&this.color==e.color&&this.className==e.className&&this.letter==e.letter}},Ik=class{constructor(e,i){this.view=e,this.rangePieces=[],this.cursors=[],this.cm=i,this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer cm-vimCursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){let i=Rk(this.cm.cm6.state).cursorBlinkRate;this.cursorLayer.style.animationDuration=i+"ms"}update(e){(e.selectionSet||e.geometryChanged||e.viewportChanged)&&(this.view.requestMeasure(this.measureReq),this.cursorLayer.style.animationName=this.cursorLayer.style.animationName=="cm-blink"?"cm-blink2":"cm-blink"),$ne(e)&&this.setBlinkRate()}scheduleRedraw(){this.view.requestMeasure(this.measureReq)}readPos(){let{state:e}=this.view,i=[];for(let n of e.selection.ranges){let r=n==e.selection.main,o=Ine(this.cm,this.view,n,r);o&&i.push(o)}return{cursors:i}}drawSel({cursors:e}){if(e.length!=this.cursors.length||e.some((i,n)=>!i.eq(this.cursors[n]))){let i=this.cursorLayer.children;if(i.length!==e.length){this.cursorLayer.textContent="";for(let n of e)this.cursorLayer.appendChild(n.draw())}else e.forEach((n,r)=>n.adjust(i[r]));this.cursors=e}}destroy(){this.cursorLayer.remove()}};function $ne(t){return Rk(t.startState)!=Rk(t.state)}var Xne={".cm-vimMode .cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-fat-cursor":{position:"absolute",background:"#ff9696",border:"none",whiteSpace:"pre"},"&:not(.cm-focused) .cm-fat-cursor":{background:"none",outline:"solid 1px #ff9696",color:"transparent !important"}},Rne=Mt.highest(fe.theme(Xne));function Lne(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==at.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function Ine(t,e,i,n){var r,o;let s=i.head,a=!1,l=1,c=t.state.vim;if(c&&(!c.insertMode||t.state.overwrite)){if(a=!0,c.visualBlock&&!n)return null;i.anchor<i.head&&s--,t.state.overwrite?l=.2:c.status&&(l=.5)}if(a){let f=s<e.state.doc.length&&e.state.sliceDoc(s,s+1);f&&/[\uDC00-\uDFFF]/.test(f)&&s>1&&(s--,f=e.state.sliceDoc(s,s+1));let d=e.coordsAtPos(s,1);if(!d)return null;let O=Lne(e),m=e.domAtPos(s),x=m?m.node:e.contentDOM;for(;m&&m.node instanceof HTMLElement;)x=m.node,m={node:m.node.childNodes[m.offset],offset:0};if(!(x instanceof HTMLElement)){if(!x.parentNode)return null;x=x.parentNode}let v=getComputedStyle(x),w=d.left,T=(o=(r=e).coordsForChar)===null||o===void 0?void 0:o.call(r,s);if(T&&(w=T.left),!f||f==`
|
||
`||f=="\r")f="\xA0";else if(f==" "){f="\xA0";var u=e.coordsAtPos(s+1,-1);u&&(w=u.left-(u.left-d.left)/parseInt(v.tabSize))}else/[\uD800-\uDBFF]/.test(f)&&s<e.state.doc.length-1&&(f+=e.state.sliceDoc(s+1,s+2));let Q=d.bottom-d.top;return new Lk(w-O.left,d.top-O.top+Q*(1-l),Q*l,v.fontFamily,v.fontSize,v.fontWeight,v.color,n?"cm-fat-cursor cm-cursor-primary":"cm-fat-cursor cm-cursor-secondary",f,l!=1)}else return null}var Dne=typeof navigator!="undefined"&&/linux/i.test(navigator.platform)&&/ Gecko\/\d+/.exec(navigator.userAgent),Ca=wne(Be),zne=250,Une=fe.baseTheme({".cm-vimMode .cm-cursorLayer:not(.cm-vimCursorLayer)":{display:"none"},".cm-vim-panel":{padding:"0px 10px",fontFamily:"monospace",minHeight:"1.3em"},".cm-vim-panel input":{border:"none",outline:"none",backgroundColor:"inherit"},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"}}),Mne=He.fromClass(class{constructor(t){this.status="",this.query=null,this.decorations=we.none,this.waitForCopy=!1,this.lastKeydown="",this.useNextTextInput=!1,this.compositionText="",this.view=t;let e=this.cm=new Be(t);Ca.enterVimMode(this.cm),this.view.cm=this.cm,this.cm.state.vimPlugin=this,this.blockCursor=new Ik(t,e),this.updateClass(),this.cm.on("vim-command-done",()=>{e.state.vim&&(e.state.vim.status=""),this.blockCursor.scheduleRedraw(),this.updateStatus()}),this.cm.on("vim-mode-change",i=>{e.state.vim&&(e.state.vim.mode=i.mode,i.subMode&&(e.state.vim.mode+=" block"),e.state.vim.status="",this.blockCursor.scheduleRedraw(),this.updateClass(),this.updateStatus())}),this.cm.on("dialog",()=>{this.cm.state.statusbar?this.updateStatus():t.dispatch({effects:_L.of(!!this.cm.state.dialog)})}),this.dom=document.createElement("span"),this.dom.style.cssText="position: absolute; right: 10px; top: 1px",this.statusButton=document.createElement("span"),this.statusButton.onclick=i=>{Ca.handleKey(this.cm,"<Esc>","user"),this.cm.focus()},this.statusButton.style.cssText="cursor: pointer"}update(t){var e;if((t.viewportChanged||t.docChanged)&&this.query&&this.highlight(this.query),t.docChanged&&this.cm.onChange(t),t.selectionSet&&this.cm.onSelectionChange(),t.viewportChanged,this.cm.curOp&&!this.cm.curOp.isVimOp&&this.cm.onBeforeEndOperation(),t.transactions){for(let i of t.transactions)for(let n of i.effects)if(n.is(Oo))if(!((e=n.value)===null||e===void 0?void 0:e.forVim))this.highlight(null);else{let o=n.value.create();this.highlight(o)}}this.blockCursor.update(t)}updateClass(){let t=this.cm.state;!t.vim||t.vim.insertMode&&!t.overwrite?this.view.scrollDOM.classList.remove("cm-vimMode"):this.view.scrollDOM.classList.add("cm-vimMode")}updateStatus(){let t=this.cm.state.statusbar,e=this.cm.state.vim;if(!t||!e)return;let i=this.cm.state.dialog;if(i)i.parentElement!=t&&(t.textContent="",t.appendChild(i));else{t.textContent="";var n=(e.mode||"normal").toUpperCase();e.insertModeReturn&&(n+="(C-O)"),this.statusButton.textContent=`--${n}--`,t.appendChild(this.statusButton)}this.dom.textContent=e.status,t.appendChild(this.dom)}destroy(){Ca.leaveVimMode(this.cm),this.updateClass(),this.blockCursor.destroy(),delete this.view.cm}highlight(t){if(this.query=t,!t)return this.decorations=we.none;let{view:e}=this,i=new Xi;for(let n=0,r=e.visibleRanges,o=r.length;n<o;n++){let{from:s,to:a}=r[n];for(;n<o-1&&a>r[n+1].from-2*zne;)a=r[++n].to;t.highlight(e.state,s,a,(l,c)=>{i.add(l,c,qne)})}return this.decorations=i.finish()}handleKey(t,e){let i=this.cm,n=i.state.vim;if(!n)return;let r=Ca.vimKeyFromEvent(t,n);if(Be.signal(this.cm,"inputEvent",{type:"handleKey",key:r}),!r)return;if(r=="<Esc>"&&!n.insertMode&&!n.visualMode&&this.query){let a=n.searchState_;a&&(i.removeOverlay(a.getOverlay()),a.setOverlay(null))}if(r==="<C-c>"&&!Be.isMac&&i.somethingSelected())return this.waitForCopy=!0,!0;n.status=(n.status||"")+r;let s=Ca.multiSelectHandleKey(i,r,"user");return n=Ca.maybeInitVimState_(i),!s&&n.insertMode&&i.state.overwrite&&(t.key&&t.key.length==1&&!/\n/.test(t.key)?(s=!0,i.overWriteSelection(t.key)):t.key=="Backspace"&&(s=!0,Be.commands.cursorCharLeft(i))),s&&(Be.signal(this.cm,"vim-keypress",r),t.preventDefault(),t.stopPropagation(),this.blockCursor.scheduleRedraw()),this.updateStatus(),!!s}},{eventHandlers:{copy:function(t,e){this.waitForCopy&&(this.waitForCopy=!1,Promise.resolve().then(()=>{var i=this.cm,n=i.state.vim;n&&(n.insertMode?i.setSelection(i.getCursor(),i.getCursor()):i.operation(()=>{i.curOp&&(i.curOp.isVimOp=!0),Ca.handleKey(i,"<Esc>","user")}))}))},compositionstart:function(t,e){this.useNextTextInput=!0,Be.signal(this.cm,"inputEvent",t)},compositionupdate:function(t,e){Be.signal(this.cm,"inputEvent",t)},compositionend:function(t,e){Be.signal(this.cm,"inputEvent",t)},keypress:function(t,e){Be.signal(this.cm,"inputEvent",t),this.lastKeydown=="Dead"&&this.handleKey(t,e)},keydown:function(t,e){Be.signal(this.cm,"inputEvent",t),this.lastKeydown=t.key,this.lastKeydown=="Unidentified"||this.lastKeydown=="Process"||this.lastKeydown=="Dead"?this.useNextTextInput=!0:(this.useNextTextInput=!1,this.handleKey(t,e))}},provide:()=>[fe.inputHandler.of((t,e,i,n)=>{var r,o,s=Zne(t);if(!s)return!1;var a=(r=s.state)===null||r===void 0?void 0:r.vim,l=s.state.vimPlugin;if(a&&!a.insertMode&&!(!((o=s.curOp)===null||o===void 0)&&o.isVimOp)){if(n==="\0\0")return!0;if(Be.signal(s,"inputEvent",{type:"text",text:n,from:e,to:i}),n.length==1&&l.useNextTextInput){if(a.expectLiteralNext&&t.composing)return l.compositionText=n,!1;if(l.compositionText){var c=l.compositionText;l.compositionText="";var u=t.state.selection.main.head,f=t.state.sliceDoc(u-c.length,u);if(c===f){var d=s.getCursor();s.replaceRange("",s.posFromIndex(u-c.length),d)}}return l.handleKey({key:n,preventDefault:()=>{},stopPropagation:()=>{}}),Nne(t),!0}}return!1})],decorations:t=>t.decorations});function Nne(t){var e=t.scrollDOM.parentElement;if(e){if(Dne){t.contentDOM.textContent="\0\0",t.contentDOM.dispatchEvent(new CustomEvent("compositionend"));return}var i=t.scrollDOM.nextSibling,n=window.getSelection(),r=n&&{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset};t.scrollDOM.remove(),e.insertBefore(t.scrollDOM,i);try{r&&n&&(n.setPosition(r.anchorNode,r.anchorOffset),r.focusNode&&n.extend(r.focusNode,r.focusOffset))}catch(o){console.error(o)}t.focus(),t.contentDOM.dispatchEvent(new CustomEvent("compositionend"))}}var qne=we.mark({class:"cm-searchMatch"}),_L=Se.define(),jne=Ge.define({create:()=>!1,update(t,e){for(let i of e.effects)i.is(_L)&&(t=i.value);return t},provide:t=>Tn.from(t,e=>e?Wne:null)});function Wne(t){let e=document.createElement("div");e.className="cm-vim-panel";let i=t.cm;return i.state.dialog&&e.appendChild(i.state.dialog),{top:!1,dom:e}}function Vne(t){let e=document.createElement("div");e.className="cm-vim-panel";let i=t.cm;return i.state.statusbar=e,i.state.vimPlugin.updateStatus(),{dom:e}}function AL(t={}){return[Une,Mne,Rne,t.status?Tn.of(Vne):jne]}function Zne(t){return t.cm||null}var zk=up||function(){let t={cursorBlinkRate:1200};return function(){return t}}(),Uk=class{constructor(e,i,n,r,o,s,a,l,c,u){this.left=e,this.top=i,this.height=n,this.fontFamily=r,this.fontSize=o,this.fontWeight=s,this.color=a,this.className=l,this.letter=c,this.partial=u}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",e.style.height=this.height+"px",e.style.lineHeight=this.height+"px",e.style.fontFamily=this.fontFamily,e.style.fontSize=this.fontSize,e.style.fontWeight=this.fontWeight,e.style.color=this.partial?"transparent":this.color,e.className=this.className,e.textContent=this.letter}eq(e){return this.left==e.left&&this.top==e.top&&this.height==e.height&&this.fontFamily==e.fontFamily&&this.fontSize==e.fontSize&&this.fontWeight==e.fontWeight&&this.color==e.color&&this.className==e.className&&this.letter==e.letter}},Mk=class{constructor(e,i){this.view=e,this.rangePieces=[],this.cursors=[],this.em=i,this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer cm-vimCursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){let i=zk(this.view.state).cursorBlinkRate;this.cursorLayer.style.animationDuration=i+"ms"}update(e){(e.selectionSet||e.geometryChanged||e.viewportChanged)&&(this.view.requestMeasure(this.measureReq),this.cursorLayer.style.animationName=this.cursorLayer.style.animationName=="cm-blink"?"cm-blink2":"cm-blink"),Bne(e)&&this.setBlinkRate()}scheduleRedraw(){this.view.requestMeasure(this.measureReq)}readPos(){let{state:e}=this.view,i=[];for(let n of e.selection.ranges){let r=n==e.selection.main,o=Gne(this.em,this.view,n,r);o&&i.push(o)}return{cursors:i}}drawSel({cursors:e}){if(e.length!=this.cursors.length||e.some((i,n)=>!i.eq(this.cursors[n]))){let i=this.cursorLayer.children;if(i.length!==e.length){this.cursorLayer.textContent="";for(let n of e)this.cursorLayer.appendChild(n.draw())}else e.forEach((n,r)=>n.adjust(i[r]));this.cursors=e}}destroy(){this.cursorLayer.remove()}};function Bne(t){return zk(t.startState)!=zk(t.state)}var Yne={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-fat-cursor":{position:"absolute",background:"#ff9696",border:"none",whiteSpace:"pre"},"&:not(.cm-focused) .cm-fat-cursor":{background:"none",outline:"solid 1px #ff9696",color:"transparent !important"}},Fne=Mt.highest(fe.theme(Yne));function Hne(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==at.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function Gne(t,e,i,n){var r,o;let s=i.head,a=1;(t.$data.count||t.$data.keyChain)&&(a=.5);{let c=s<e.state.doc.length&&e.state.sliceDoc(s,s+1);c&&/[\uDC00-\uDFFF]/.test(c)&&s>1&&(s--,c=e.state.sliceDoc(s,s+1));let u=e.coordsAtPos(s,1);if(!u)return null;let f=Hne(e),d=e.domAtPos(s),O=d?d.node:e.contentDOM;for(;d&&d.node instanceof HTMLElement;)O=d.node,d={node:d.node.childNodes[d.offset],offset:0};if(!(O instanceof HTMLElement)){if(!O.parentNode)return null;O=O.parentNode}let m=getComputedStyle(O),x=u.left,v=(o=(r=e).coordsForChar)===null||o===void 0?void 0:o.call(r,s);if(v&&(x=v.left),!c||c==`
|
||
`||c=="\r")c="\xA0";else if(c==" "){c="\xA0";var l=e.coordsAtPos(s+1,-1);l&&(x=l.left-(l.left-u.left)/parseInt(m.tabSize))}else/[\uD800-\uDBFF]/.test(c)&&s<e.state.doc.length-1&&(c+=e.state.sliceDoc(s+1,s+2));let w=u.bottom-u.top;return new Uk(x-f.left,u.top-f.top+w*(1-a),w*a,m.fontFamily,m.fontSize,m.fontWeight,m.color,n?"cm-fat-cursor cm-cursor-primary":"cm-fat-cursor cm-cursor-secondary",c,a!=1)}}var Kne=fe.theme({".cm-emacsMode .cm-cursorLayer:not(.cm-vimCursorLayer)":{display:"none"},".cm-vim-panel":{padding:"5px 10px",backgroundColor:"#fffa8f",fontFamily:"monospace"},".cm-vim-panel input":{border:"none",outline:"none",backgroundColor:"#fffa8f"}}),Jne=He.fromClass(class{constructor(t){this.status="",this.view=t,this.em=new ch(t),this.blockCursor=new Mk(t,this.em),this.view.scrollDOM.classList.add("cm-emacsMode")}update(t){t.docChanged&&(this.em.$emacsMark=null,this.em.updateMarksOnChange(t.changes)),this.blockCursor.update(t)}destroy(){this.view.scrollDOM.classList.remove("cm-emacsMode"),this.blockCursor.destroy()}},{eventHandlers:{keydown:function(t,e){var i=this.em.handleKeyboard(t);return i&&this.blockCursor.scheduleRedraw(),!!i},mousedown:function(){this.em.$emacsMark=null}}}),ere=Se.define(),tre=Ge.define({create:()=>!1,update(t,e){for(let i of e.effects)i.is(ere)&&(t=i.value);return t},provide:t=>Tn.from(t,e=>e?ire:null)});function ire(t){let e=document.createElement("div");return e.className="cm-vim-panel",{top:!1,dom:e}}function RL(t={}){return[Kne,Jne,Fne,tre]}var nre={Return:"Return",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"Return",Divide:"/",Slash:"/",Multiply:"*",Subtract:"-",Minus:"-",Equal:"="},rre={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1},Dk={},ch=class t{constructor(e){this.view=e,this.$data={count:0,keyChain:"",lastCommand:""},this.$emacsMarkRing=[],this.$emacsMark=null}static bindKey(e,i){e.split("|").forEach(function(n){let r="",o=n.split(/\s+/);o.forEach(function(s,a){let l=s.split(/-(?=.)/),c=l.pop();l.length&&(r+=l.sort().join("-")+"-"),r+=c,a===o.length-1?Dk[r]=i:(Dk[r]="null",r+=" ")})})}static getKey(e){var i=e.code,n=e.key;if(rre[n])return["","",""];i.length>1&&(i[0]=="N"&&(i=i.replace(/^Numpad/,"")),i[0]=="K"&&(i=i.replace(/^Key/,""))),i=nre[i]||i,i.length==1&&(i=i.toLowerCase());var r="";return e.ctrlKey&&(r+="C-"),e.metaKey&&(r+="CMD-"),e.altKey&&(r+="M-"),e.shiftKey&&(r+="S-"),[i,r,n]}static addCommands(e){Object.keys(e).forEach(function(i){var n=e[i];typeof n=="function"&&(n={exec:n}),t.commands[i]=n})}static execCommand(e,i,n,r=1){var o=void 0;if(r<0&&(r=-r),typeof e=="function")for(var s=0;s<r;s++)e(i.view);else if(e!=="null")if(e.exec){r>1&&e.handlesCount&&(n||(n={}),typeof n=="object"&&(n.count=r),r=1);for(var s=0;s<r;s++)o=e.exec(i,n||{})}else throw new Error("missformed command");return o}handleKeyboard(e){var i=t.getKey(e),n=this.findCommand(i);if(!(/Up|Down/.test(i==null?void 0:i[0])&&S_(this.view.state))){if(n&&n.command){var r=t.execCommand(n.command,this,n.args,n.count);if(r===!1)return}return n}}findCommand([e,i,n]){if(e){var r=this,o=this.$data;if(!i&&e.length==1&&(r.pushEmacsMark(),o.count)){var s=new Array(o.count+1).join(n);return o.count=null,{command:"insertstring",args:s}}if(i=="C-"||o.count){var c=parseInt(e[e.length-1]);if(typeof c=="number"&&!isNaN(c))return o.count=Math.max(o.count||0,0),o.count=10*o.count+c,{command:"null"}}i&&(e=i+e),o.keyChain&&(e=o.keyChain+=" "+e);var a=Dk[e];if(o.keyChain=a=="null"?e:"",!!a){if(a==="null")return{command:"null"};if(a==="universalArgument")return o.count=-4,{command:"null"};var l;if(typeof a!="string"&&(l=a.args,a.command&&(a=a.command)),(a==="insertstring"||a===Jf||a===Uf)&&r.pushEmacsMark(),!(typeof a=="string"&&(a=t.commands[a],!a))){!a.readOnly&&!a.keepLastCommand&&(o.lastCommand=null);var c=o.count||1;return o.count&&(o.count=0),{command:a,args:l,count:c}}}}}showCommandLine(e){console.error("TODO")}updateMarksOnChange(e){this.$emacsMark&&(this.$emacsMark=this.updateMark(this.$emacsMark,e)),this.$emacsMarkRing=this.$emacsMarkRing.map(i=>this.updateMark(i,e)).filter(Boolean)}updateMark(e,i){if(e){var n=e.map(function(r){return i.mapPos(r,1,Qt.TrackDel)}).filter(r=>r!=null);return n.length==0?null:n}}emacsMark(){return this.$emacsMark}setEmacsMark(e){this.$emacsMark=e}pushEmacsMark(e,i){var n=this.$emacsMark;n&&$L(this.$emacsMarkRing,n),!e||i?this.setEmacsMark(e):$L(this.$emacsMarkRing,e)}popEmacsMark(){var e=this.emacsMark();return e?(this.setEmacsMark(null),e):this.$emacsMarkRing.pop()}getLastEmacsMark(){return this.$emacsMark||this.$emacsMarkRing.slice(-1)[0]}getCopyText(){var e=this.view.state;return e.selection.ranges.map(i=>e.sliceDoc(i.from,i.to)).join(`
|
||
`)}clearSelection(){var e=this.view,i=e.state.selection,n=!i.ranges.some(o=>o.from!=o.to);if(n)return!1;var r=i.ranges.map(o=>J.range(o.head,o.head));return e.dispatch({selection:J.create(r,i.mainIndex)}),!0}onPaste(e){var i=this.view,n=i.state.selection,r;if(n.ranges.length>1){var o=e.split(`
|
||
`);o.length==n.ranges.length&&(r=o)}var s=0,a=i.state.changeByRange(l=>{var c=r?r[s]:e;return s++,{changes:{from:l.from,to:l.to,insert:c},range:J.cursor(l.from+c.length)}});i.dispatch(a)}selectionToEmacsMark(){var e=this.view.state.selection;return e.ranges.map(i=>i.head)}};ch.commands={};function $L(t,e){t.length&&t[t.length-1]+""==e+""||t.push(e)}var XL={"Up|C-p":{command:"goOrSelect",args:[jf,Hl]},"Down|C-n":{command:"goOrSelect",args:[Wf,Gl]},"Left|C-b":{command:"goOrSelect",args:[Sm,uk]},"Right|C-f":{command:"goOrSelect",args:[S6,ck]},"C-Left|M-b":{command:"goOrSelect",args:[Tm,$m]},"C-Right|M-f":{command:"goOrSelect",args:[Em,Xm]},"Home|C-a":{command:"goOrSelect",args:[Pm,Yf]},"End|C-e":{command:"goOrSelect",args:[Qm,Ff]},"C-Home|S-M-,":{command:"goOrSelect",args:[Hf,Kl]},"C-End|S-M-.":{command:"goOrSelect",args:[Gf,Jl]},"S-Up|S-C-p":Hl,"S-Down|S-C-n":Gl,"S-Left|S-C-b":uk,"S-Right|S-C-f":ck,"S-C-Left|S-M-b":A6,"S-C-Right|S-M-f":_6,"S-Home|S-C-a":Yf,"S-End|S-C-e":Ff,"S-C-Home":Kl,"S-C-End":Jl,"C-l":"recenterTopBottom","M-s":"centerSelection","M-g":"gotoline","C-x C-p|C-x h":Rm,"PageDown|C-v|C-Down":{command:"goOrSelect",args:[Fl,Ta]},"PageUp|M-v|C-Up":{command:"goOrSelect",args:[Yl,Ta]},"S-C-Down":Ta,"S-C-Up":Bf,"C-s":sc,"C-r":sc,"M-C-s":"findnext","M-C-r":"findprevious","S-M-5":"replace",Backspace:ec,"Delete|C-d":Kf,"Return|C-m":{command:"insertstring",args:`
|
||
`},"C-o":Jf,"M-d|C-Delete":{command:"killWord",args:"right"},"C-Backspace|M-Backspace|M-Delete":{command:"killWord",args:"left"},"C-k":"killLine","M-h":"selectParagraph","M-@|M-S-2":"markWord","C-y|S-Delete":"yank","M-y":"yankRotate","C-g":"keyboardQuit","C-w|C-S-w":"killRegion","M-w":"killRingSave","C-Space":"setMark","C-x C-x":"exchangePointAndMark","C-t":Im,"M-u":{command:"changeCase",args:{dir:1}},"M-l":{command:"changeCase",args:{dir:-1}},"C-x C-u":{command:"changeCase",args:{dir:1,region:!0}},"C-x C-l":{command:"changeCase",args:{dir:1,region:!0}},"M-/":Al,"C-u":"universalArgument","M-;":Uf,"C-/|C-x u|S-C--|C-z":ka,"S-C-/|S-C-x u|C--|S-C-z":fs,"C-x r":"selectRectangularRegion","M-x":{command:"focusCommandLine",args:"M-x "},Esc:"unsetTransientMark"};for(let t in XL)XL[t];var po=class t{constructor(e=[]){this.ops=e}retain(e){return e<=0?this:this.append({retain:e})}insert(e){return e===""?this:this.append({insert:e})}delete(e){return e<=0?this:this.append({delete:e})}append(e){if(this.ops.length===0)return this.ops.push(e),this;let i=this.ops.pop();return Fi(e)&&Hi(i)?this.append(e).append(i):Fi(e)&&Fi(i)?(this.ops.push({insert:i.insert+e.insert}),this):Hi(e)&&Hi(i)?(this.ops.push({delete:i.delete+e.delete}),this):Gn(e)&&Gn(i)?(this.ops.push({retain:i.retain+e.retain}),this):(this.ops.push(i,e),this)}compose(e){let i=new Pa(this.ops),n=new Pa(e.ops),r=new t;for(;i.hasNext()||n.hasNext();)if(Fi(n.peek()))r.append(n.next());else if(Hi(i.peek()))r.append(i.next());else{let o=Math.min(i.peekLength(),n.peekLength()),s=i.next(o),a=n.next(o);Gn(a)?r.append(s):Hi(a)&&Gn(s)&&r.append(a)}return r._trim()}transform(e,i){if(i!=="left"&&i!=="right")throw new Error(`Invalid priority "${i}", should be either "left" or "right"`);let n=new Pa(this.ops),r=new Pa(e.ops),o=new t;for(;n.hasNext()||r.hasNext();)if(Fi(n.peek())&&(!Fi(r.peek())||i==="left")){let s=Fm(n.next());o.retain(s)}else if(Fi(r.peek()))o.append(r.next());else{let s=Math.min(n.peekLength(),r.peekLength()),a=n.next(s),l=r.next(s);if(Hi(a))continue;Hi(l)?o.append(l):o.retain(s)}return o._trim()}_trim(){return this.ops.length>0&&Gn(this.ops[this.ops.length-1])&&this.ops.pop(),this}transformPosition(e){let i=new Pa(this.ops),n=0;for(;i.hasNext()&&n<e;){let r=i.next(),o=Fm(r);Hi(r)?e-=Math.min(o,e-n):(Fi(r)&&(e+=o),n+=o)}return e}toCompressed(){return this.ops.map(e=>{if(Fi(e))return e.insert;if(Gn(e))return e.retain;if(Hi(e))return-e.delete;throw new Error(`Invalid operation ${e}`)})}static fromCompressed(e){return e.reduce((i,n)=>{if(typeof n=="string")return i.insert(n);if(typeof n=="number"&&n>=0)return i.retain(n);if(typeof n=="number"&&n<0)return i.delete(-n);throw new Error(`Invalid compressed operation ${n}`)},new this)}applyToString(e){let i="",n=0;return this.ops.forEach(r=>{Gn(r)&&(i+=e.slice(n,n+r.retain),n+=r.retain),Fi(r)&&(i+=r.insert),Hi(r)&&(n+=r.delete)}),i+=e.slice(n),i}},Pa=class{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e=1/0){let i=this.ops[this.index];if(i){let n=this.offset,r=Fm(i);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,Hi(i))return{delete:e};if(Gn(i))return{retain:e};if(Fi(i))return{insert:i.insert.substr(n,e)}}else return{retain:e}}peek(){return this.ops[this.index]||{retain:1/0}}peekLength(){return this.ops[this.index]?Fm(this.ops[this.index])-this.offset:1/0}};function Fm(t){if(Fi(t))return t.insert.length;if(Gn(t))return t.retain;if(Hi(t))return t.delete}function Fi(t){return typeof t.insert=="string"}function Gn(t){return typeof t.retain=="number"}function Hi(t){return typeof t.delete=="number"}var DL=be.define({combine(t){return _t(t,{})}}),LL=Si.define(),ore=He.fromClass(class{constructor(t){let{collabClient:e}=t.state.facet(DL);this.collabClient=e,this.deltaSubscription=e.onDelta((i,{remote:n})=>{if(n)return t.dispatch({changes:Nk(i),selection:gs(t.state.selection,i),annotations:[Rt.addToHistory.of(!1),Rt.remote.of(!0),LL.of(!0)],filter:!1})})}update(t){if(!t.transactions.some(i=>i.annotation(LL))){if(t.docChanged){let i=sre(t.changes),n=IL(t);this.collabClient.handleClientDelta(i,n)}else if(t.focusChanged||!t.state.selection.eq(t.startState.selection)){let i=IL(t);this.collabClient.handleClientSelection(i)}}}destroy(){this.deltaSubscription.destroy()}});function Nk(t){let e=[],i=0;for(let n of t.ops)Gn(n)&&(i+=n.retain),Fi(n)&&e.push({from:i,to:i,insert:n.insert}),Hi(n)&&(e.push({from:i,to:i+n.delete}),i+=n.delete);return e}function sre(t){let e=[];return t.iterChanges((i,n,r,o,s)=>{let a=new po;i&&a.retain(i),i!==n&&a.delete(n-i);let l=s.toString();l&&a.insert(l),e.push(a)}),e.reverse().reduce((i,n)=>i.compose(n))}function IL(t){return t.view.hasFocus?t.state.selection:null}function gs(t,e){let i=t.ranges.map(n=>J.range(e.transformPosition(n.anchor),e.transformPosition(n.head)));return J.create(i,t.mainIndex)}function zL(t){return[ore,DL.of({collabClient:t})]}var are=fe.baseTheme({".cm-peerCursor":{position:"relative",display:"inline",zIndex:"1"},".cm-peerCursorCaret":{position:"absolute",left:"0",top:"0",bottom:"0",height:"100%",width:"2px"},".cm-peerCursorLabel":{position:"absolute",left:"0",top:"0",transform:"translateY(-100%)",whiteSpace:"nowrap",padding:"1px 8px",fontSize:"12px",color:"#f8fafc",visibility:"hidden",transitionProperty:"visibility",transitionDuration:"0s",transitionDelay:"1.5s"},".cm-peerCursor .cm-peerCursorLabel:hover":{visibility:"visible"},".cm-peerCursor .cm-peerCursorCaret:hover + .cm-peerCursorLabel":{visibility:"visible",transitionDelay:"0s"},".cm-peerCursor.cm-peerCursor-inline .cm-peerCursorLabel":{marginLeft:"4px",transform:"none"}}),ML=be.define({combine(t){return _t(t,{})}}),lre=He.fromClass(class{constructor(t){let{collabClient:e}=t.state.facet(ML);this.peers=e.getPeers(),this.decorations=Je.of(Object.values(this.peers).flatMap(UL),!0),this.peersSubscription=e.onPeersChange(i=>{let n=this.peers;if(n===i)return;let r=new Set,o=[];for(let s in i){let a=i[s],l=n[s];l&&a.eq(l)?r.add(s):o.push(a)}this.decorations=this.decorations.update({filter:(s,a,l)=>r.has(l.spec.id),add:o.flatMap(UL),sort:!0}),this.peers=i,setTimeout(()=>{t.update([])},0)})}destroy(){this.peersSubscription.destroy()}},{decorations:t=>t.decorations}),qk=class extends oi{constructor(e,i,n){super(),this.cursorPos=e,this.color=i,this.label=n}toDOM(e){let i=document.createElement("div");i.classList.add("cm-peerCursor"),e.state.doc.lineAt(this.cursorPos).number===1&&i.classList.add("cm-peerCursor-inline");let r=document.createElement("div");r.classList.add("cm-peerCursorCaret"),r.style.backgroundColor=this.color;let o=document.createElement("div");return o.classList.add("cm-peerCursorLabel"),o.textContent=this.label,o.style.backgroundColor=this.color,i.appendChild(r),i.appendChild(o),i}eq(e){return e.cursorPos===this.cursorPos&&e.color===this.color&&e.label===this.label}};function UL(t){let{id:e,selection:i,meta:{hex_color:n,name:r}}=t;if(!i)return[];let o=we.mark({class:"cm-peerSelection",attributes:{style:`background-color: ${n}30`},id:e}),s=i.ranges.filter(l=>!l.empty).map(({from:l,to:c})=>o.range(l,c)),a=i.ranges.map(l=>{let c=l.head;return we.widget({widget:new qk(c,n,r),id:e}).range(c)});return s.concat(a)}function NL(t){return[lre,ML.of({collabClient:t}),are]}var cre=fe.baseTheme({".cm-doctestDetails":{paddingTop:"4px",paddingBottom:"4px",paddingLeft:"6px"},".cm-doctestDetailsContent":{whiteSpace:"pre-wrap",border:"1px solid #424857",paddingTop:"6px",paddingBottom:"6px",marginLeft:"-8px",paddingLeft:"8px",borderRadius:"4px",marginRight:"16px"},"&light .cm-doctestDetailsContent":{borderColor:"#b6b7b9"},".cm-doctestStatus":{position:"relative"},".cm-doctestStatus::before":{borderRadius:"2px",width:"10px",height:"10px",display:"block",content:"''",position:"absolute",top:"50%",left:"0",transform:"translate(calc(-100% - 6px), -50%)"},".cm-doctestStatus-running::before":{backgroundColor:"#91a4b7"},".cm-doctestStatus-success::before":{backgroundColor:"#4ade80"},".cm-doctestStatus-failed::before":{backgroundColor:"#e97579"}}),qL=Se.define(),jL=Se.define(),WL=Ge.define({create(t){return we.none},update(t,e){t=t.map(e.changes);for(let i of e.effects){if(i.is(qL)){let n=i.value;t=t.update({filter:(r,o,s)=>!n.some(a=>s.spec.report.line===a.line),add:n.flatMap(r=>ure(r,e.state.doc)),sort:!0})}i.is(jL)&&(t=we.none)}return t},provide(t){return fe.decorations.from(t)}});function ure(t,e){let i=e.line(t.line).from+t.column,n=[we.mark({class:`cm-doctestStatus cm-doctestStatus-${t.status}`,report:t}).range(i,i+1)];if(t.status==="failed"){let r=e.line(t.end_line+1);n.push(we.widget({widget:new jk(t),block:!0,report:t}).range(r.from))}return n}var jk=class extends oi{constructor(e){super(),this.report=e}toDOM(e){let i=document.createElement("div");i.classList.add("cm-doctestDetails");let n=document.createElement("div");return n.classList.add("cm-doctestDetailsContent"),n.classList.add("editor-theme-aware-ansi"),i.style.marginLeft=`${this.report.column}ch`,n.innerHTML=this.report.details,i.appendChild(n),i}eq(e){return this.report===e.report}};function VL(t,e){let i=[qL.of(e)];t.dispatch({effects:BL(t.state,i)})}function ZL(t){let e=[jL.of(null)];t.dispatch({effects:BL(t.state,e)})}var fre=[WL,cre];function BL(t,e){return t.field(WL,!1)?e:e.concat(Se.appendConfig.of(fre))}var hre=fe.baseTheme({".cm-signatureHint":{display:"flex"},".cm-signatureHintStepper":{padding:"4px 8px",borderRight:"1px solid black"},".cm-signatureHintContent":{padding:"4px"},".cm-signatureHintActiveArgument":{color:"gray"}}),uh=be.define({combine(t){return _t(t,{})}}),HL=be.define({}).from(uh,({triggerCharacters:t,retriggerCharacters:e})=>({triggerCharacters:new Set(t),retriggerCharacters:new Set(t.concat(e))})),GL=Se.define(),KL=Se.define(),Zk=Se.define(),JL=Se.define(),Kn=Ge.define({create(){return{context:null,hint:null}},update({context:t,hint:e},i){e=e&&e.setPosition(i.state.selection.main.head),dre(i,!!e)&&(t=YL(i.state));for(let r of i.effects)r.is(GL)&&(r.value.signatureResult?e=Wk.build(i.state,r.value.signatureResult):(t=null,e=null)),r.is(KL)&&(t=YL(i.state)),r.is(Zk)&&(t=null,e=null),r.is(JL)&&(e=e&&e.setSelected(r.value));return{context:t,hint:e}},provide(t){return Kr.from(t,e=>e.hint&&e.hint.tooltip)}});function dre(t,e){let{activateOnTyping:i}=t.state.facet(uh),{triggerCharacters:n,retriggerCharacters:r}=t.state.facet(HL),o=t.startState.selection.main.head,s=t.state.selection.main.head,a=t.isUserEvent("input");if(t.docChanged){let l=!1;return t.changes.iterChangedRanges((c,u,f,d)=>{if(!l){if(c<u&&c<=o&&o<=u){let O=t.startState.doc.sliceString(c,u);e&&(l=l||Hm(O,r))}if(f<d&&f<=s&&s<=d){let O=t.state.doc.sliceString(f,s);e?l=l||Hm(O,r):i&&a&&(l=l||Hm(O,n))}}}),l}if(!t.docChanged&&o!==s){let l=t.state.doc.sliceString(Math.min(o,s),Math.max(o,s));if(e)return Hm(l,r)}return!1}function Hm(t,e){for(let i of t)if(e.has(i))return!0;return!1}function YL(t){let e=t.selection.main.head;return{state:t,pos:e}}var Wk=class t{constructor(e,i,n){this.signatureResult=e,this.selectedIdx=i,this.tooltip=n}static build(e,i){return new t(i,0,{pos:e.selection.main.head,above:!0,create:n=>new Vk(n)})}setSelected(e){return new t(this.signatureResult,e,this.tooltip)}setPosition(e){return e===this.tooltip.pos?this:new t(this.signatureResult,this.selectedIdx,Ee(F({},this.tooltip),{pos:e}))}},Vk=class{constructor(e){this.view=e;let{signatureResult:i}=e.state.field(Kn).hint;this.dom=document.createElement("div"),this.dom.classList.add("cm-signatureHint"),i.items.length>1&&(this.stepper=document.createElement("div"),this.stepper.classList.add("cm-signatureHintStepper"),this.dom.appendChild(this.stepper));let n=document.createElement("div");n.classList.add("cm-signatureHintContent"),this.contentLeft=document.createElement("span"),this.contentActive=document.createElement("span"),this.contentActive.classList.add("cm-signatureHintActiveArgument"),this.contentRight=document.createElement("span"),n.appendChild(this.contentLeft),n.appendChild(this.contentActive),n.appendChild(this.contentRight),this.dom.appendChild(n)}mount(){this.updateSelected()}update(e){let i=e.startState.field(Kn),n=e.state.field(Kn);i!==n&&this.updateSelected()}updateSelected(){let{signatureResult:e,selectedIdx:i}=this.view.state.field(Kn).hint,{activeArgumentIdx:n,items:r}=e,o=r[i],s=o.arguments[n];this.stepper&&(this.stepper.textContent=`${i+1}/${r.length}`);let a=o.signature.indexOf(s);this.contentLeft.textContent=o.signature.slice(0,a),this.contentActive.textContent=s,this.contentRight.textContent=o.signature.slice(a+s.length)}},Ore=He.fromClass(class{constructor(t){this.view=t,this.query=null}update(t){let e=t.state.field(Kn);e.context!==t.startState.field(Kn).context&&(this.maybeAbortQuery(),e.context&&this.requestSignature(t.state))}destroy(){this.maybeAbortQuery()}requestSignature(t){let{context:e}=t.field(Kn),{source:i}=t.facet(uh),n={aborted:!1};i(e).then(r=>{n.aborted||this.view.dispatch({effects:GL.of({signatureResult:r})})}),this.query=n}maybeAbortQuery(){this.query&&(this.query.aborted=!0,this.query=null)}},{eventHandlers:{blur(t){let e=this.view.state.field(Kn,!1);e&&e.hint&&this.view.state.facet(uh).closeOnBlur&&setTimeout(()=>{this.view.dispatch({effects:[Zk.of(null)]})},0)}}});function pre(t){return t.dispatch({effects:[KL.of(null)]}),!0}function Bk(t){let e=t.state.field(Kn,!1);return!e||!e.hint?!1:(t.dispatch({effects:[Zk.of(null)]}),!0)}var FL=t=>e=>{let i=e.state.field(Kn,!1);if(!i||!i.hint)return!1;let{signatureResult:n,selectedIdx:r}=i.hint;if(n.items.length===1)return!1;let o=n.items.length,s=r+(t?1:-1);return s<0&&(s+=o),s>=o&&(s-=o),e.dispatch({effects:[JL.of(s)]}),!0},mre=[{key:"Mod-Shift-Space",run:pre},{key:"Escape",run:Bk},{key:"ArrowDown",run:FL(!0)},{key:"ArrowUp",run:FL(!1)}];function eI(t,{activateOnTyping:e=!0,closeOnBlur:i=!0,triggerCharacters:n=["(",","],retriggerCharacters:r=[")"]}={}){return[Kn,Ore,uh.of({source:t,activateOnTyping:e,closeOnBlur:i,triggerCharacters:n,retriggerCharacters:r}),HL,Mt.high(Jt.of(mre)),hre]}var tI=be.define({combine(t){return _t(t,{})}}),iI=Se.define(),Gm=Ge.define({create(){return{doc:null}},update({doc:t},e){e.docChanged&&(t=null);for(let i of e.effects)i.is(iI)&&(t=e.state.doc);return{doc:t}}}),gre=He.fromClass(class{constructor(t){this.view=t,this.query=null}update(t){let e=t.state.field(Gm);e.doc!==t.startState.field(Gm).doc&&(this.maybeAbortQuery(),e.doc&&this.requestFormatterChanges(t.state))}destroy(){this.maybeAbortQuery()}requestFormatterChanges(t){let{doc:e}=t.field(Gm),{source:i}=t.facet(tI),n={aborted:!1};i(e).then(r=>{!n.aborted&&r&&this.view.dispatch({changes:r})}),this.query=n}maybeAbortQuery(){this.query&&(this.query.aborted=!0,this.query=null)}});function bre(t){return t.state.readOnly?!1:(t.dispatch({effects:[iI.of(null)]}),!0)}var yre=[{key:"Ctrl-Shift-i",mac:"Alt-Shift-f",win:"Alt-Shift-f",run:bre}];function nI(t){return[Gm,gre,tI.of({source:t}),Jt.of(yre)]}function rI(t,e){let i=e;for(;!t.endsWith(i);)i=i.slice(0,-1);return i.length}var xre=fe.baseTheme({".cm-readOnlyHint":{padding:"4px"}}),oI=Se.define(),Yk=Se.define(),Km=Ge.define({create(){return{tooltip:null}},update({tooltip:t},e){e.state.selection.eq(e.startState.selection)||(t=null);for(let i of e.effects)i.is(oI)&&(t={pos:e.state.selection.main.head,above:!0,create:vre}),i.is(Yk)&&(t=null);return{tooltip:t}},provide(t){return Kr.from(t,e=>e.tooltip)}});function vre(t){let e=document.createElement("div");return e.classList.add("cm-readOnlyHint"),e.textContent="This editor is read-only",{dom:e}}var wre=He.fromClass(class{constructor(t){this.view=t}},{eventHandlers:{input(t){this.view.state.readOnly&&(this.view.state.field(Km).tooltip||this.view.dispatch({effects:oI.of(null)}))},blur(t){this.view.state.readOnly&&this.view.state.field(Km).tooltip&&setTimeout(()=>{this.view.dispatch({effects:[Yk.of(null)]})},0)}}});function kre(t){let e=t.state.field(Km,!1);return!e||!e.tooltip?!1:(t.dispatch({effects:[Yk.of(null)]}),!0)}var Sre=[{key:"Escape",run:kre}];function sI(){return[Km,wre,Jt.of(Sre),xre]}var Tre=5e3,fh=class{constructor(e,i){ct(this,"_onDelta",new ei);ct(this,"onDelta",this._onDelta.event);ct(this,"_onPeersChange",new ei);ct(this,"onPeersChange",this._onPeersChange.event);this.connection=e,this.revision=i,this.clientId=e.getClientId(),this.peers={},this.updatePeers(e.getClients()),this.inflightDelta=null,this.bufferDelta=null,this.selection=null,this.selectionChanged=!1,this.revisionReportTimeoutId=null,this.subscriptions=[e.onDelta(this.handleServerDelta.bind(this)),e.onAcknowledgement(this.handleServerAcknowledgement.bind(this)),e.onSelection(this.handleServerSelection.bind(this)),e.onClientsUpdate(this.handleServerClientsUpdate.bind(this))]}destroy(){this.subscriptions.forEach(e=>e.destroy())}getPeers(){return this.peers}handleClientDelta(e,i){this.peers=aI(this.peers,e),this.selection=i,this.inflightDelta?this.bufferDelta?this.bufferDelta=this.bufferDelta.compose(e):this.bufferDelta=e:(this.inflightDelta=e,this.sendDelta()),this._onDelta.dispatch(e,{remote:!1}),this._onPeersChange.dispatch(this.peers)}handleClientSelection(e){this.selection=e,this.inflightDelta?this.selectionChanged=!0:this.sendSelection()}handleServerDelta(e,i,n){this.revision++;let{inflightDelta:r,bufferDelta:o}=this;r&&([e,r]=[r.transform(e,"right"),e.transform(r,"left")],i=i&&gs(i,r)),o&&([e,o]=[o.transform(e,"right"),e.transform(o,"left")],i=i&&gs(i,o)),this.inflightDelta=r,this.bufferDelta=o,this.selection=this.selection&&gs(this.selection,e);let[s,a]=mm(this.peers,n);a=aI(a,e),s&&(a[n]=new lc(s.id,s.meta,i)),this.peers=a,this._onDelta.dispatch(e,{remote:!0}),this._onPeersChange.dispatch(this.peers),this.maybeScheduleRevisionReport()}handleServerAcknowledgement(){this.revision++,this.inflightDelta=null,this.bufferDelta&&(this.inflightDelta=this.bufferDelta,this.bufferDelta=null,this.sendDelta())}handleServerSelection(e,i){if(!this.peers.hasOwnProperty(i))return;let{inflightDelta:n,bufferDelta:r}=this;n&&(e=e&&gs(e,n)),r&&(e=e&&gs(e,r));let o=this.peers[i];this.peers=Ee(F({},this.peers),{[i]:new lc(o.id,o.meta,e)}),this._onPeersChange.dispatch(this.peers)}handleServerClientsUpdate(e){this.updatePeers(e),this._onPeersChange.dispatch(this.peers)}sendDelta(){this.connection.sendDelta(this.inflightDelta,this.selection,this.revision),this.selectionChanged=!1,this.maybeCancelRevisionReport()}sendSelection(){Object.keys(this.peers).length>0&&this.connection.sendSelection(this.selection,this.revision),this.selectionChanged=!1}sendRevision(){this.connection.sendRevision(this.revision)}updatePeers(e){let i={};for(let n in e)if(n!==this.clientId){let r=this.peers[n],o=e[n],s=r?r.selection:null;i[n]=new lc(n,o,s)}this.peers=i}maybeScheduleRevisionReport(){!this.inflightDelta&&!this.revisionReportTimeoutId&&(this.revisionReportTimeoutId=setTimeout(()=>{this.sendRevision(),this.revisionReportTimeoutId=null},Tre))}maybeCancelRevisionReport(){this.revisionReportTimeoutId!==null&&(clearTimeout(this.revisionReportTimeoutId),this.revisionReportTimeoutId=null)}},lc=class{constructor(e,i,n){this.id=e,this.meta=i,this.selection=n}eq(e){return this.id===e.id&&this.meta===e.meta&&(this.selection===e.selection||this.selection&&e.selection&&this.selection.eq(e.selection))}};function aI(t,e){let i={};for(let n in t){let r=t[n],o=r.selection&&gs(r.selection,e);i[n]=new lc(r.id,r.meta,o)}return i}function lI(t){let e=t.state.selection;return e.ranges.length>1?(t.dispatch({selection:e.asSingle()}),!0):!1}function cI(t){return Z6(t)?(ff(t),Bk(t),!0):!1}function Fk(t,e){for(;t;){if(e.includes(t.type.name))return t;t=t.parent}return null}function uI(t,e){let i=0;for(;i<e.length&&t.parent;){if(t.parent.type.name!==e[i])return null;t=t.parent,i++}return i===e.length&&t?t:null}var Ere=fe.editorAttributes.compute(["selection"],t=>t.selection.ranges.every(i=>i.empty)?{}:{class:"cm-selecting"});function fI(){return[Ere]}function hI(t){let e=fp(t),i=fe.decorations.from(e.active,n=>{let r=we.mark({class:"cm-hoverDocsSelection"}),o=n.map(s=>r.range(s.pos,s.end));return Je.of(o,!0)});return[e,i]}function dI(t,e){let i=new Fo;function n(r){let o=i.get(r.state)===e;return r.dispatch({effects:i.reconfigure(o?[]:e)}),!0}return[i.of([]),Jt.of({key:t,run:n})]}var hh=class{constructor(e,i,n,r,o,s,a){ct(this,"_onMount",new ei);ct(this,"onMount",this._onMount.event);ct(this,"_onChange",new ei);ct(this,"onChange",this._onChange.event);ct(this,"_onBlur",new ei);ct(this,"onBlur",this._onBlur.event);ct(this,"_onFocus",new ei);ct(this,"onFocus",this._onFocus.event);ct(this,"_onSelectionChange",new ei);ct(this,"onSelectionChange",this._onSelectionChange.event);this.container=e,this.source=n,this.language=o,this.intellisense=s,this.readOnly=a,this.initialWidgets={},this.connection=i,this.collabClient=new fh(i,r),this.deltaSubscription=this.collabClient.onDelta((l,c)=>{this.source=l.applyToString(this.source),this._onChange.dispatch(this.source)})}isMounted(){return!!this.view}mount(){if(this.isMounted())throw new Error("The editor is already mounted");this.mountEditor(),this.setInitialWidgets(),this._onMount.dispatch()}getSource(){return this.source}getElementAtCursor(){if(!this.isMounted())return this.container;let{node:e}=this.view.domAtPos(this.view.state.selection.main.head);return e instanceof Element?e:e.parentElement}getCurrentCursorPosition(){if(!this.isMounted())return null;let e=this.view.state.selection.main.head,i=this.view.state.doc.lineAt(e),n=e-i.from;return{line:i.number,offset:n}}focus(){this.isMounted()||this.mount(),this.view.focus()}moveCursorToLine(e,i){let r=this.view.state.doc.line(e).from+i;this.view.dispatch({selection:J.single(r)})}blur(){this.isMounted()&&this.view.hasFocus&&this.view.contentDOM.blur()}destroy(){this.isMounted()&&this.view.destroy(),this.collabClient.destroy(),this.deltaSubscription.destroy()}setLanguage(e,i){this.language=e,this.intellisense=i,this.view.dispatch({effects:this.languageCompartment.reconfigure(this.languageExtensions())})}updateDoctests(e){if(this.isMounted())VL(this.view,e);else{this.initialWidgets.doctestReportsByLine=this.initialWidgets.doctestReportsByLine||{};for(let i of e)this.initialWidgets.doctestReportsByLine[i.line]=i}}clearDoctests(){this.isMounted()?ZL(this.view):delete this.initialWidgets.doctestReportsByLine}setCodeMarkers(e){if(this.isMounted()){let i=this.view.state.doc,n=e.map(r=>{let o=i.line(r.line),[,s,a]=o.text.match(/^(\s*).*?(\s*)$/),l=o.from+s.length,c=o.to-a.length;return{from:l,to:c,severity:r.severity,message:r.description}});this.view.dispatch(hL(this.view.state,n))}else this.initialWidgets.codeMarkers=e}mountEditor(){let e=bt.get(),i=c=>c.toString().padStart(3," "),n=c=>{let u=document.createElement("i");return u.classList.add(c?"ri-arrow-down-s-line":"ri-arrow-right-s-line",c?"cm-gutterFoldMarker-open":null),u},r=fe.theme({"&":{fontSize:`${e.editor_font_size}px`}}),o=e.editor_auto_close_brackets,s=fe.theme({"&":{fontVariantLigatures:`${e.editor_ligatures?"normal":"none"}`}}),a=[{key:"Escape",run:lI},{key:"Alt-Enter",run:cI}],l=fe.updateListener.of(c=>this.handleViewUpdate(c));this.languageCompartment=new Fo,this.view=new fe({parent:this.container,doc:this.source,extensions:[kQ({formatNumber:i}),bQ(),SQ(),gQ(),oL(),FQ({markerDOM:n}),kp({placeholderText:"\u22EF"}),dQ(),mQ(),yQ(),fI(),xQ(),st.allowMultipleSelections.of(!0),e_(),o?y_():[],MQ(),x6(),st.readOnly.of(this.readOnly),sI(),Jt.of(a),Jt.of(yL),st.tabSize.of(2),st.lineSeparator.of(`
|
||
`),fe.contentAttributes.of({tabIndex:-1}),r,e.editor_theme==="light"?RR:XR,s,zL(this.collabClient),NL(this.collabClient),ev({activateOnTyping:e.editor_auto_completion,defaultKeymap:!1}),e.editor_mode==="vim"?[AL()]:[],e.editor_mode==="emacs"?[RL()]:[],this.languageCompartment.of(this.languageExtensions()),dI("Alt-z",fe.lineWrapping),fe.domEventHandlers({click:this.handleEditorClick.bind(this),keydown:this.handleEditorKeydown.bind(this),blur:this.handleEditorBlur.bind(this),focus:this.handleEditorFocus.bind(this)}),fe.clickAddsSelectionRange.of(c=>c.altKey),l]})}languageExtensions(){let e=bt.get(),i=this.language==="markdown"&&e.editor_markdown_word_wrap,n=this.language&&At.matchLanguageName(sm,this.language,!1);return[i?fe.lineWrapping:[],n?n.support:[],this.intellisense?[ev({override:[this.completionSource.bind(this)]}),hI(this.docsHoverTooltipSource.bind(this)),eI(this.signatureSource.bind(this),{activateOnTyping:e.editor_auto_signature}),nI(this.formatterSource.bind(this))]:[]]}handleEditorClick(e){return(Vl()?e.metaKey:e.ctrlKey)&&this.jumpToDefinition(this.view),!1}handleEditorKeydown(e){return e.key==="Escape"&&this.container.dispatchEvent(new CustomEvent("lb:editor_escape",{bubbles:!0})),!1}handleEditorBlur(e){return this.container.contains(e.relatedTarget)||this._onBlur.dispatch(),!1}handleEditorFocus(e){return this._onFocus.dispatch(),!1}handleViewUpdate(e){e.state.selection.eq(e.startState.selection)||this._onSelectionChange.dispatch()}completionSource(e){let i=bt.get();if(!e.matchBefore(/[\w?!.]$/)&&!e.explicit)return null;let r=this.getCompletionHint(e);return this.connection.intellisenseRequest("completion",{hint:r,editor_auto_completion:i.editor_auto_completion}).then(o=>{if(o.items.length===0)return null;let s=o.items.map((l,c)=>{let u=this.completionItemToCompletions(l);return Ee(F({},u),{boost:1-c/o.items.length})}),a=rI(r,o.items[0].insert_text);return{from:e.pos-a,options:s,validFor:/^\w*[!?]?$/}}).catch(()=>null)}getCompletionHint(e){let n=qe(e.state).resolve(e.pos);if(n&&this.language==="elixir"){let r=Fk(n,["Map","Bitstring"]);if(r)return e.state.doc.sliceString(r.from,e.pos)}return e.matchBefore(/^.*/).text}completionItemToCompletions(e){let i={label:e.label,type:e.kind,info:r=>e.documentation===null?null:n6(350).then(()=>{let o=document.createElement("div");return o.classList.add("cm-completionInfoDocs"),o.classList.add("cm-markdown"),new xa(o,e.documentation,{defaultCodeLanguage:this.language,useDarkTheme:this.usesDarkTheme()}),o})},n=e.insert_text.includes("${}")?e.insert_text:e.insert_text+"${}";return xt(n,i)}docsHoverTooltipSource(e,i,n){let r=e.state.doc.lineAt(i),o=r.to-r.from,s=r.text,a=i-r.from+(n===1?1:0);return a<1||a>o?null:this.connection.intellisenseRequest("details",{line:s,column:a}).then(l=>({pos:r.from+l.range.from-1,end:r.from+l.range.to-1,above:!0,create:c=>{let u=document.createElement("div");if(u.classList.add("cm-hoverDocs"),l.definition){let d=document.createElement("a");d.classList.add("cm-hoverDocsDefinitionLink"),d.innerHTML='<i class="ri-code-line"></i> Go to definition',u.appendChild(d),d.addEventListener("click",O=>{lt.broadcast("jump_to_editor",{line:l.definition.line,file:l.definition.file}),O.preventDefault()})}let f=document.createElement("div");f.classList.add("cm-hoverDocsContents"),u.appendChild(f);for(let d of l.contents){let O=document.createElement("div");O.classList.add("cm-hoverDocsContent"),O.classList.add("cm-markdown"),f.appendChild(O),new xa(O,d,{defaultCodeLanguage:this.language,useDarkTheme:this.usesDarkTheme()})}return{dom:u}}})).catch(()=>null)}jumpToDefinition(e){let i=e.state.selection.main.head,n=e.state.doc.lineAt(i),r=n.to-n.from,o=n.text,s=i-n.from;return s<1||s>r?null:this.connection.intellisenseRequest("details",{line:o,column:s}).then(a=>{a.definition&<.broadcast("jump_to_editor",{line:a.definition.line,file:a.definition.file})}).catch(()=>null)}signatureSource({state:e,pos:i}){let n=this.getSignatureHint(e,i);return this.connection.intellisenseRequest("signature",{hint:n}).then(r=>({activeArgumentIdx:r.active_argument,items:r.items})).catch(()=>null)}getSignatureHint(e,i){let r=qe(e).resolve(i);if(r&&this.language==="elixir"){let o=Fk(r,["Call","FunctionDefinitionCall","KernelCall"]);if(o){let a=uI(o,["Right","PipeOperator"])||o;return e.doc.sliceString(a.from,i)}}return e.doc.sliceString(0,i)}formatterSource(e){return this.connection.intellisenseRequest("format",{code:e.toString()}).then(i=>{if(this.setCodeMarkers(i.code_markers),i.delta){let n=po.fromCompressed(i.delta);return Nk(n)}else return null}).catch(()=>null)}setInitialWidgets(){if(this.initialWidgets.doctestReportsByLine){let e=Object.values(this.initialWidgets.doctestReportsByLine);this.updateDoctests(e)}this.initialWidgets.codeMarkers&&this.setCodeMarkers(this.initialWidgets.codeMarkers),this.initialWidgets={}}usesDarkTheme(){return bt.get().editor_theme!=="light"}};var dh={},cc=class t{constructor(e){this.id=e,this.pubsub=new Bl,this.map={}}static create(e){let i=new t(e);return dh[e]=i,i}static getStore(e){if(!dh.hasOwnProperty(e))throw new Error(`No store found for id "${e}"`);return dh[e]}destroy(){dh[this.id]===this&&delete dh[this.id]}set(e,i){this.map[e]=i,this.pubsub.broadcast(e,i)}get(e){if(!this.map.hasOwnProperty(e))throw new Error(`Key "${e}" not found in the store`);return this.map[e]}watch(e,i){return this.pubsub.subscribe(e,i)}};var Oh=class{constructor(e,i,n){ct(this,"_onDelta",new ei);ct(this,"onDelta",this._onDelta.event);ct(this,"_onAcknowledgement",new ei);ct(this,"onAcknowledgement",this._onAcknowledgement.event);ct(this,"_onSelection",new ei);ct(this,"onSelection",this._onSelection.event);ct(this,"_onClientsUpdate",new ei);ct(this,"onClientsUpdate",this._onClientsUpdate.event);this.hook=e,this.cellId=i,this.tag=n,this.sessionStore=cc.getStore("session"),this.handlerByRef={},this.setupCollaborationHandlers(),this.clientsSubscription=this.sessionStore.watch("clients",r=>{this._onClientsUpdate.dispatch(r)}),this.setupIntellisenseHandlers()}destroy(){this.clientsSubscription.destroy()}getClients(){return this.sessionStore.get("clients")}getClientId(){return this.sessionStore.get("clientId")}sendDelta(e,i,n){this.hook.pushEvent("apply_cell_delta",{cell_id:this.cellId,tag:this.tag,delta:e.toCompressed(),selection:i&&OI(i),revision:n})}sendSelection(e,i){this.hook.pushEvent("report_cell_selection",{cell_id:this.cellId,tag:this.tag,selection:e&&OI(e),revision:i})}sendRevision(e){this.hook.pushEvent("report_cell_revision",{cell_id:this.cellId,tag:this.tag,revision:e})}setupCollaborationHandlers(){this.hook.handleEvent(`cell_delta:${this.cellId}:${this.tag}`,({delta:e,selection:i,client_id:n})=>{e=po.fromCompressed(e),i=i&&pI(i),this._onDelta.dispatch(e,i,n)}),this.hook.handleEvent(`cell_acknowledgement:${this.cellId}:${this.tag}`,()=>{this._onAcknowledgement.dispatch()}),this.hook.handleEvent(`cell_selection:${this.cellId}:${this.tag}`,({selection:e,client_id:i})=>{e=e&&pI(e),this._onSelection.dispatch(e,i)})}setupIntellisenseHandlers(){this.hook.handleEvent("intellisense_response",({ref:e,response:i})=>{let n=this.handlerByRef[e];n&&(n(i),delete this.handlerByRef[e])})}intellisenseRequest(e,i){return new Promise((n,r)=>{this.hook.pushEvent("intellisense_request",F({cell_id:this.cellId,type:e},i),({ref:o})=>{o?this.handlerByRef[o]=s=>{s?n(s):r(new Jm("No relevant intellisense response for the given parameters"))}:r(new Jm("Intellisense request could not be completed"))})})}};function OI(t){return t.ranges.map(({anchor:e,head:i})=>[e,i])}function pI(t){let e=t.map(([i,n])=>J.range(i,n));return J.create(e)}var Jm=class extends Error{constructor(e){super(e),this.name="IntellisenseError"}};var Cre={mounted(){this.props=this.getProps(),this.handleEvent(`cell_editor_init:${this.props.cellId}:${this.props.tag}`,({source:t,revision:e,doctest_reports:i,code_markers:n})=>{let r=this.el.querySelector("[data-el-editor-container]"),o=document.createElement("div");r.appendChild(o),this.connection=new Oh(this,this.props.cellId,this.props.tag),this.liveEditor=new hh(o,this.connection,t,e,this.props.language,this.props.intellisense,this.props.readOnly),this.liveEditor.setCodeMarkers(n),this.liveEditor.updateDoctests(i);let s=r.querySelector("[data-el-skeleton]"),a=document.createElement("div");a.classList.add("whitespace-pre","overflow-x-auto","text-editor","font-editor","px-12"),a.textContent=t,s.replaceChildren(a),this.liveEditor.onMount(()=>{s.remove()}),this.el.dispatchEvent(new CustomEvent("lb:cell:editor_created",{detail:{tag:this.props.tag,liveEditor:this.liveEditor},bubbles:!0})),this.visibility=hm(this.el,{root:document.querySelector("[data-el-notebook]"),proximity:2e3}),this.visibility.promise.then(()=>{this.liveEditor.isMounted()||this.liveEditor.mount()})})},disconnected(){this.el.removeAttribute("id"),this.el.querySelector("[data-el-editor-container]").removeAttribute("id")},updated(){let t=this.props;this.props=this.getProps(),(this.props.language!==t.language||this.props.intellisense!==t.intellisense)&&this.liveEditor.setLanguage(this.props.language,this.props.intellisense)},destroyed(){this.connection&&this.connection.destroy(),this.liveEditor&&(this.el.dispatchEvent(new CustomEvent("lb:cell:editor_removed",{detail:{tag:this.props.tag},bubbles:!0})),this.liveEditor.destroy()),this.visibility&&this.visibility.cancel()},getProps(){return pt(this.el,["cell-id","tag","language","intellisense","read-only"])}},mI=Cre;var Hk="data-js-dragging",Pre={mounted(){this.el.addEventListener("dragenter",t=>{this.el.setAttribute(Hk,"")}),this.el.addEventListener("dragleave",t=>{this.el.contains(t.relatedTarget)||this.el.removeAttribute(Hk)}),this.el.addEventListener("drop",t=>{this.el.removeAttribute(Hk)})}},gI=Pre;var Qre={mounted(){let t=bt.get(),e=this.el.querySelector('[name="editor_auto_completion"][value="true"]'),i=this.el.querySelector('[name="editor_auto_signature"][value="true"]'),n=this.el.querySelector('[name="editor_auto_close_brackets"][value="true"]'),r=this.el.querySelector('[name="editor_font_size"][value="true"]'),o=this.el.querySelector('[name="editor_ligatures"][value="true"]'),s=this.el.querySelector('[name="editor_light_theme"][value="true"]'),a=this.el.querySelector('[name="editor_markdown_word_wrap"][value="true"]'),l=this.el.querySelector('select[name="editor_mode"]');e.checked=t.editor_auto_completion,i.checked=t.editor_auto_signature,n.checked=t.editor_auto_close_brackets,r.checked=t.editor_font_size===If.large,o.checked=t.editor_ligatures,s.checked=t.editor_theme===Zl.light,a.checked=t.editor_markdown_word_wrap,l.value=t.editor_mode,e.addEventListener("change",c=>{bt.update({editor_auto_completion:c.target.checked})}),i.addEventListener("change",c=>{bt.update({editor_auto_signature:c.target.checked})}),n.addEventListener("change",c=>{bt.update({editor_auto_close_brackets:c.target.checked})}),r.addEventListener("change",c=>{bt.update({editor_font_size:c.target.checked?If.large:If.normal})}),o.addEventListener("change",c=>{bt.update({editor_ligatures:c.target.checked})}),s.addEventListener("change",c=>{bt.update({editor_theme:c.target.checked?Zl.light:Zl.default})}),a.addEventListener("change",c=>{bt.update({editor_markdown_word_wrap:c.target.checked})}),l.addEventListener("change",c=>{bt.update({editor_mode:c.target.value})})}},bI=Qre;var I2=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},go=(t,e,i)=>(I2(t,e,"read from private field"),i?i.call(t):e.get(t)),mo=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},n2=(t,e,i,n)=>(I2(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i),Jn=(t,e,i)=>(I2(t,e,"access private method"),i),_re="14.0";function Are(t,e,i){let n=`https://cdn.jsdelivr.net/npm/emojibase-data@${e}/${t}`;return typeof i=="function"?n=i(t,e):typeof i=="string"&&(n=`${i}/${t}`),n}async function D2(t,e={}){let d=e,{local:i=!1,version:n="latest",cdnUrl:r}=d,o=Ui(d,["local","version","cdnUrl"]),s=Are(t,n,r),a=i?localStorage:sessionStorage,l=`emojibase/${n}/${t}`,c=a.getItem(l);if(c)return Promise.resolve(JSON.parse(c));let u=await fetch(s,F({credentials:"omit",mode:"cors",redirect:"error"},o));if(!u.ok)throw new Error("Failed to load Emojibase dataset.");let f=await u.json();try{a.setItem(l,JSON.stringify(f))}catch(O){}return f}var $re={discord:"joypixels",slack:"iamcal"};async function yI(t,e,i){var n;return D2(`${t}/shortcodes/${(n=$re[e])!==null&&n!==void 0?n:e}.json`,i)}function bh(t,e){if(e.length===0)return t;let i=new Set(t.shortcodes);return e.forEach(n=>{let r=n[t.hexcode];Array.isArray(r)?r.forEach(o=>i.add(o)):r&&i.add(r)}),t.shortcodes=[...i],t.skins&&t.skins.forEach(n=>{bh(n,e)}),t}function Xre(t,e=[]){let i=[];return t.forEach(n=>{if(n.skins){let r=n,{skins:o}=r,s=Ui(r,["skins"]);i.push(bh(s,e)),o.forEach(a=>{let l=F({},a);s.tags&&(l.tags=[...s.tags]),i.push(bh(l,e))})}else i.push(bh(n,e))}),i}function Rre(t,e){return e.length===0||t.forEach(i=>{bh(i,e)}),t}async function PI(t,e={}){let l=e,{compact:i=!1,flat:n=!1,shortcodes:r=[]}=l,o=Ui(l,["compact","flat","shortcodes"]),s=await D2(`${t}/${i?"compact":"data"}.json`,o),a=[];return r.length>0&&(a=await Promise.all(r.map(c=>{let u;if(c.includes("/")){let[f,d]=c.split("/");u=yI(f,d,o)}else u=yI(t,c,o);return u.catch(()=>({}))}))),n?Xre(s,a):Rre(s,a)}async function QI(t,e){return D2(`${t}/messages.json`,e)}function Gk(t,e){let i=t.target.closest("[data-emoji]");if(i){let n=e.find(r=>r.emoji===i.dataset.emoji);if(n)return n}return null}function _I(t){var e;let i=(e=window.matchMedia)==null?void 0:e.call(window,"(prefers-reduced-motion: reduce)");return t.animate&&!(i!=null&&i.matches)}function xI(t,e){return t.toLowerCase().includes(e.toLowerCase())}function Lre(t,e){let i=null;return()=>{i||(i=window.setTimeout(()=>{t(),i=null},e))}}function Ire(t,e){let i=null;return(...n)=>{i&&window.clearTimeout(i),i=window.setTimeout(()=>{t(...n),i=null},e)}}function Qa(t,e,i,n){if(_I(n)&&t.animate)return t.animate(e,i).finished;let r=i.direction==="normal"?1:0,o=Object.entries(e).reduce((s,[a,l])=>Ee(F({},s),{[a]:l[r]}),{});return Object.assign(t.style,o),Promise.resolve()}function r2(t){var e;let i=document.createElement("template");return i.innerHTML=t,(e=i.content)==null?void 0:e.firstElementChild}async function Dre(t){let e=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(i)).map(n=>n.toString(16).padStart(2,"0")).join("")}function gi(...t){return t.reduce((e,i)=>Ee(F({},e),{[i]:z2(i)}),{})}function z2(t){return`picmo__${t}`}function ng(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function uc(t,...e){ng(t).append(...e)}function AI(t){try{return window[t].length,!0}catch(e){return!1}}function zre(){return AI("sessionStorage")}function Ure(){return AI("localStorage")}function xh(t){var e;return{emoji:t.emoji,label:t.label,tags:t.tags,skins:(e=t.skins)==null?void 0:e.map(i=>xh(i)),order:t.order,custom:!1,hexcode:t.hexcode,version:t.version}}function ug(t,e,i){var n;return i&&!i.some(r=>r.order===t.group)?!1:xI(t.label,e)||((n=t.tags)==null?void 0:n.some(r=>xI(r,e)))}var fg=class{constructor(e="en"){this.locale=e}},Mre=[(t,e)=>(t.hexcode==="1F91D"&&e<14&&(t.skins=[]),t),(t,e)=>(t.skins&&(t.skins=t.skins.filter(i=>!i.version||i.version<=e)),t)];function Nre(t,e){return Mre.some(i=>i(t,e)===null)?null:t}function hg(t,e){return t.filter(i=>Nre(i,e)!==null)}var Kk={};function $I(t){return Kk[t]||(Kk[t]=new o2(t)),Kk[t]}$I.deleteDatabase=t=>{};var o2=class extends fg{open(){return Promise.resolve()}delete(){return Promise.resolve()}close(){}isPopulated(){return Promise.resolve(!1)}getEmojiCount(){return Promise.resolve(this.emojis.length)}getEtags(){return Promise.resolve({foo:"bar"})}getHash(){return Promise.resolve("")}populate(e){return this.categories=e.groups,this.emojis=e.emojis,Promise.resolve()}getCategories(e){var i;let n=this.categories.filter(r=>r.key!=="component");if(e.showRecents&&n.unshift({key:"recents",order:-1}),(i=e.custom)!=null&&i.length&&n.push({key:"custom",order:10}),e.categories){let r=e.categories;n=n.filter(o=>r.includes(o.key)),n.sort((o,s)=>r.indexOf(o.key)-r.indexOf(s.key))}else n.sort((r,o)=>r.order-o.order);return Promise.resolve(n)}getEmojis(e,i){let n=this.emojis.filter(r=>r.group===e.order).filter(r=>r.version<=i).sort((r,o)=>r.order!=null&&o.order!=null?r.order-o.order:0).map(xh);return Promise.resolve(hg(n,i))}searchEmojis(e,i,n,r){let o=this.emojis.filter(l=>ug(l,e,r)&&l.version<=n).map(xh),s=i.filter(l=>ug(l,e,r)),a=[...hg(o,n),...s];return Promise.resolve(a)}setMeta(e){this.meta=e}};function qre(t,e){let i=`https://cdn.jsdelivr.net/npm/emojibase-data@${t}/${e}`;return{emojisUrl:`${i}/data.json`,messagesUrl:`${i}/messages.json`}}async function vI(t){try{return(await fetch(t,{method:"HEAD"})).headers.get("etag")}catch(e){return null}}function jre(t){let{emojisUrl:e,messagesUrl:i}=qre("latest",t);try{return Promise.all([vI(e),vI(i)])}catch(n){return Promise.all([null,null])}}async function Wre(t,e,i){let n;try{n=await t.getEtags()}catch(s){n={}}let{storedEmojisEtag:r,storedMessagesEtag:o}=n;if(i!==o||e!==r){let[s,a]=await Promise.all([QI(t.locale),PI(t.locale)]);await t.populate({groups:s.groups,emojis:a,emojisEtag:e,messagesEtag:i})}}async function Vre(t,e){let i=await t.getHash();return e!==i}async function XI(t,e,i){let n=i||e(t);try{await n.open()}catch(r){console.warn("[picmo] IndexedDB not available, falling back to InMemoryStoreFactory"),n=$I(t)}return n}async function Zre(t,e,i){if(!zre()&&typeof window<"u")throw new Error("Session storage is required to use CDN emoji data.");let n=await XI(t,e,i),[r,o]=await jre(t);if(await n.isPopulated())r&&o&&await Wre(n,r,o);else{let[s,a]=await Promise.all([QI(t),PI(t)]);await n.populate({groups:s.groups,emojis:a,emojisEtag:r,messagesEtag:o})}return n}async function Bre(t,e,i,n,r){let o=await XI(t,e,r),s=await Dre(n);return(!await o.isPopulated()||await Vre(o,s))&&await o.populate({groups:i.groups,emojis:n,hash:s}),o}async function RI(t,e,i,n,r){return i&&n?Bre(t,e,i,n,r):Zre(t,e,r)}var vh=class{constructor(){this.handleKeyDown=this.handleKeyDown.bind(this)}activate(e){this.rootElement=e,this.rootElement.addEventListener("keydown",this.handleKeyDown)}deactivate(){var e;(e=this.rootElement)==null||e.removeEventListener("keydown",this.handleKeyDown)}get focusableElements(){return this.rootElement.querySelectorAll('input, [tabindex="0"]')}get lastFocusableElement(){return this.focusableElements[this.focusableElements.length-1]}get firstFocusableElement(){return this.focusableElements[0]}checkFocus(e,i,n){e.target===i&&(n.focus(),e.preventDefault())}handleKeyDown(e){e.key==="Tab"&&this.checkFocus(e,e.shiftKey?this.firstFocusableElement:this.lastFocusableElement,e.shiftKey?this.lastFocusableElement:this.firstFocusableElement)}},{light:Yre,dark:O4e,auto:p4e}=gi("light","dark","auto"),Me=class{constructor({template:e,classes:i,parent:n}){this.isDestroyed=!1,this.appEvents={},this.uiEvents=[],this.uiElements={},this.ui={},this.template=e,this.classes=i,this.parent=n,this.keyBindingHandler=this.keyBindingHandler.bind(this)}initialize(){this.bindAppEvents()}setCustomEmojis(e){this.customEmojis=e}setEvents(e){this.events=e}setPickerId(e){this.pickerId=e}emit(e,...i){this.events.emit(e,...i)}setI18n(e){this.i18n=e}setRenderer(e){this.renderer=e}setEmojiData(e){this.emojiDataPromise=e,e.then(i=>{this.emojiData=i})}updateEmojiData(e){this.emojiData=e,this.emojiDataPromise=Promise.resolve(e)}setOptions(e){this.options=e}renderSync(e={}){return this.el=this.template.renderSync(F({classes:this.classes,i18n:this.i18n,pickerId:this.pickerId},e)),this.postRender(),this.el}async render(e={}){return await this.emojiDataPromise,this.el=await this.template.renderAsync(F({classes:this.classes,i18n:this.i18n,pickerId:this.pickerId},e)),this.postRender(),this.el}postRender(){this.bindUIElements(),this.bindKeyBindings(),this.bindUIEvents(),this.scheduleShowAnimation()}bindAppEvents(){Object.keys(this.appEvents).forEach(e=>{this.events.on(e,this.appEvents[e],this)}),this.events.on("data:ready",this.updateEmojiData,this)}unbindAppEvents(){Object.keys(this.appEvents).forEach(e=>{this.events.off(e,this.appEvents[e])}),this.events.off("data:ready",this.updateEmojiData)}keyBindingHandler(e){let i=this.keyBindings[e.key];i&&i.call(this,e)}bindKeyBindings(){this.keyBindings&&this.el.addEventListener("keydown",this.keyBindingHandler)}unbindKeyBindings(){this.keyBindings&&this.el.removeEventListener("keydown",this.keyBindingHandler)}bindUIElements(){this.ui=Object.keys(this.uiElements).reduce((e,i)=>Ee(F({},e),{[i]:this.el.querySelector(this.uiElements[i])}),{})}bindUIEvents(){this.uiEvents.forEach(e=>{e.handler=e.handler.bind(this),(e.target?this.ui[e.target]:this.el).addEventListener(e.event,e.handler,e.options)})}unbindUIEvents(){this.uiEvents.forEach(e=>{(e.target?this.ui[e.target]:this.el).removeEventListener(e.event,e.handler)})}destroy(){this.unbindAppEvents(),this.unbindUIEvents(),this.unbindKeyBindings(),this.el.remove(),this.isDestroyed=!0}scheduleShowAnimation(){if(this.parent){let e=new MutationObserver(i=>{let[n]=i;n.type==="childList"&&n.addedNodes[0]===this.el&&(_I(this.options)&&this.animateShow&&this.animateShow(),e.disconnect)});e.observe(this.parent,{childList:!0})}}static childEvent(e,i,n,r={}){return{target:e,event:i,handler:n,options:r}}static uiEvent(e,i,n={}){return{event:e,handler:i,options:n}}static byClass(e){return`.${e}`}},Fre='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"/></svg>',Hre='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"/></svg>',Gre='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM176.4 240C194 240 208.4 225.7 208.4 208C208.4 190.3 194 176 176.4 176C158.7 176 144.4 190.3 144.4 208C144.4 225.7 158.7 240 176.4 240zM336.4 176C318.7 176 304.4 190.3 304.4 208C304.4 225.7 318.7 240 336.4 240C354 240 368.4 225.7 368.4 208C368.4 190.3 354 176 336.4 176zM259.9 369.4C288.8 369.4 316.2 375.2 340.6 385.5C352.9 390.7 366.7 381.3 361.4 369.1C344.8 330.9 305.6 303.1 259.9 303.1C214.3 303.1 175.1 330.8 158.4 369.1C153.1 381.3 166.1 390.6 179.3 385.4C203.7 375.1 231 369.4 259.9 369.4L259.9 369.4z"/></svg>',Kre='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M448 64H192C85.96 64 0 149.1 0 256s85.96 192 192 192h256c106 0 192-85.96 192-192S554 64 448 64zM247.1 280h-32v32c0 13.2-10.78 24-23.98 24c-13.2 0-24.02-10.8-24.02-24v-32L136 279.1C122.8 279.1 111.1 269.2 111.1 256c0-13.2 10.85-24.01 24.05-24.01L167.1 232v-32c0-13.2 10.82-24 24.02-24c13.2 0 23.98 10.8 23.98 24v32h32c13.2 0 24.02 10.8 24.02 24C271.1 269.2 261.2 280 247.1 280zM431.1 344c-22.12 0-39.1-17.87-39.1-39.1s17.87-40 39.1-40s39.1 17.88 39.1 40S454.1 344 431.1 344zM495.1 248c-22.12 0-39.1-17.87-39.1-39.1s17.87-40 39.1-40c22.12 0 39.1 17.88 39.1 40S518.1 248 495.1 248z"/></svg>',Jre='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"/></svg>',eoe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M512 32H120c-13.25 0-24 10.75-24 24L96.01 288c0 53 43 96 96 96h192C437 384 480 341 480 288h32c70.63 0 128-57.38 128-128S582.6 32 512 32zM512 224h-32V96h32c35.25 0 64 28.75 64 64S547.3 224 512 224zM560 416h-544C7.164 416 0 423.2 0 432C0 458.5 21.49 480 48 480h480c26.51 0 48-21.49 48-48C576 423.2 568.8 416 560 416z"/></svg>',toe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M482.3 192C516.5 192 576 221 576 256C576 292 516.5 320 482.3 320H365.7L265.2 495.9C259.5 505.8 248.9 512 237.4 512H181.2C170.6 512 162.9 501.8 165.8 491.6L214.9 320H112L68.8 377.6C65.78 381.6 61.04 384 56 384H14.03C6.284 384 0 377.7 0 369.1C0 368.7 .1818 367.4 .5398 366.1L32 256L.5398 145.9C.1818 144.6 0 143.3 0 142C0 134.3 6.284 128 14.03 128H56C61.04 128 65.78 130.4 68.8 134.4L112 192H214.9L165.8 20.4C162.9 10.17 170.6 0 181.2 0H237.4C248.9 0 259.5 6.153 265.2 16.12L365.7 192H482.3z"/></svg>',ioe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M9.375 233.4C3.375 239.4 0 247.5 0 256v128c0 8.5 3.375 16.62 9.375 22.62S23.5 416 32 416h32V224H32C23.5 224 15.38 227.4 9.375 233.4zM464 96H352V32c0-17.62-14.38-32-32-32S288 14.38 288 32v64H176C131.8 96 96 131.8 96 176V448c0 35.38 28.62 64 64 64h320c35.38 0 64-28.62 64-64V176C544 131.8 508.3 96 464 96zM256 416H192v-32h64V416zM224 296C201.9 296 184 278.1 184 256S201.9 216 224 216S264 233.9 264 256S246.1 296 224 296zM352 416H288v-32h64V416zM448 416h-64v-32h64V416zM416 296c-22.12 0-40-17.88-40-40S393.9 216 416 216S456 233.9 456 256S438.1 296 416 296zM630.6 233.4C624.6 227.4 616.5 224 608 224h-32v192h32c8.5 0 16.62-3.375 22.62-9.375S640 392.5 640 384V256C640 247.5 636.6 239.4 630.6 233.4z"/></svg>',noe=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||
<defs>
|
||
<radialGradient gradientUnits="userSpaceOnUse" cy="10%" id="gradient-0">
|
||
<stop offset="0" stop-color="hsl(50, 100%, 50%)" />
|
||
<stop offset="1" stop-color="hsl(50, 100%, 60%)" />
|
||
</radialGradient>
|
||
</defs>
|
||
<!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
||
<ellipse stroke="#000" fill="rgba(0, 0, 0, 0.6)" cx="172.586" cy="207.006" rx="39.974" ry="39.974"/>
|
||
<ellipse stroke="#000" fill="rgba(0, 0, 0, 0.6)" cx="334.523" cy="207.481" rx="39.974" ry="39.974"/>
|
||
<ellipse stroke="#000" fill="rgba(0, 0, 0, 0.6)" cx="313.325" cy="356.208" rx="91.497" ry="59.893"/>
|
||
<path fill="#55a7ff" d="M 159.427 274.06 L 102.158 363.286 L 124.366 417.011 L 160.476 423.338 L 196.937 414.736 L 218.502 375.214"></path>
|
||
<path fill="url(#gradient-0)" d="M256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0zM256 352C290.9 352 323.2 367.8 348.3 394.9C354.3 401.4 364.4 401.7 370.9 395.7C377.4 389.7 377.7 379.6 371.7 373.1C341.6 340.5 301 320 256 320C247.2 320 240 327.2 240 336C240 344.8 247.2 352 256 352H256zM208 369C208 349 179.6 308.6 166.4 291.3C163.2 286.9 156.8 286.9 153.6 291.3C140.6 308.6 112 349 112 369C112 395 133.5 416 160 416C186.5 416 208 395 208 369H208zM303.6 208C303.6 225.7 317.1 240 335.6 240C353.3 240 367.6 225.7 367.6 208C367.6 190.3 353.3 176 335.6 176C317.1 176 303.6 190.3 303.6 208zM207.6 208C207.6 190.3 193.3 176 175.6 176C157.1 176 143.6 190.3 143.6 208C143.6 225.7 157.1 240 175.6 240C193.3 240 207.6 225.7 207.6 208z" />
|
||
</svg>`,roe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"/></svg>',ooe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256.3 331.8C208.9 331.8 164.1 324.9 124.5 312.8C112.2 309 100.2 319.7 105.2 331.5C130.1 390.6 188.4 432 256.3 432C324.2 432 382.4 390.6 407.4 331.5C412.4 319.7 400.4 309 388.1 312.8C348.4 324.9 303.7 331.8 256.3 331.8H256.3zM176.4 176C158.7 176 144.4 190.3 144.4 208C144.4 225.7 158.7 240 176.4 240C194 240 208.4 225.7 208.4 208C208.4 190.3 194 176 176.4 176zM336.4 240C354 240 368.4 225.7 368.4 208C368.4 190.3 354 176 336.4 176C318.7 176 304.4 190.3 304.4 208C304.4 225.7 318.7 240 336.4 240z"/></svg>',soe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"/></svg>',aoe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M413.8 447.1L256 448l0 31.99C256 497.7 241.8 512 224.1 512c-17.67 0-32.1-14.32-32.1-31.99l0-31.99l-158.9-.0099c-28.5 0-43.69-34.49-24.69-56.4l68.98-79.59H62.22c-25.41 0-39.15-29.8-22.67-49.13l60.41-70.85H89.21c-21.28 0-32.87-22.5-19.28-37.31l134.8-146.5c10.4-11.3 28.22-11.3 38.62-.0033l134.9 146.5c13.62 14.81 2.001 37.31-19.28 37.31h-10.77l60.35 70.86c16.46 19.34 2.716 49.12-22.68 49.12h-15.2l68.98 79.59C458.7 413.7 443.1 447.1 413.8 447.1z"/></svg>',loe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3c-95.73 0-173.3 77.6-173.3 173.3C0 496.5 15.52 512 34.66 512H413.3C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM479.1 320h-73.85C451.2 357.7 480 414.1 480 477.3C480 490.1 476.2 501.9 470 512h138C625.7 512 640 497.6 640 479.1C640 391.6 568.4 320 479.1 320zM432 256C493.9 256 544 205.9 544 144S493.9 32 432 32c-25.11 0-48.04 8.555-66.72 22.51C376.8 76.63 384 101.4 384 128c0 35.52-11.93 68.14-31.59 94.71C372.7 243.2 400.8 256 432 256z"/></svg>',coe=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||
<defs>
|
||
<radialGradient id="radial" cy="85%">
|
||
<stop offset="20%" stop-color="var(--color-secondary)" />
|
||
<stop offset="100%" stop-color="var(--color-primary)" />
|
||
</radialGradient>
|
||
</defs>
|
||
<!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
||
<path fill="url('#radial')" d="M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z" />
|
||
</svg>`,uoe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/></svg>';function foe(t,e){let i=r2(e);return i.dataset.icon=t,i.classList.add(z2("icon")),i}var wI={clock:Fre,flag:Hre,frown:Gre,gamepad:Kre,lightbulb:Jre,mug:eoe,plane:toe,robot:ioe,sad:noe,search:roe,smiley:ooe,symbols:soe,tree:aoe,users:loe,warning:coe,xmark:uoe},mg={recents:"clock","smileys-emotion":"smiley","people-body":"users","animals-nature":"tree","food-drink":"mug",activities:"gamepad","travel-places":"plane",objects:"lightbulb",symbols:"symbols",flags:"flag",custom:"robot"};function LI(t,e){if(!(t in wI))return console.warn(`Unknown icon: "${t}"`),document.createElement("div");let i=foe(t,wI[t]);return e&&i.classList.add(z2(`icon-${e}`)),i}var hoe={mode:"sync"},gh,rg,og,s2,sg,a2,ag,l2,Gt=class{constructor(e,i={}){mo(this,og),mo(this,sg),mo(this,ag),mo(this,gh,void 0),mo(this,rg,void 0),n2(this,gh,e),n2(this,rg,i.mode||hoe.mode)}renderSync(e={}){let i=r2(go(this,gh).call(this,e));return Jn(this,ag,l2).call(this,i,e),Jn(this,sg,a2).call(this,i),Jn(this,og,s2).call(this,i,e),i}async renderAsync(e={}){let i=r2(go(this,gh).call(this,e));return Jn(this,ag,l2).call(this,i,e),Jn(this,sg,a2).call(this,i),await Jn(this,og,s2).call(this,i,e),i}render(e){return go(this,rg)==="sync"?this.renderSync(e):this.renderAsync(e)}};gh=new WeakMap,rg=new WeakMap,og=new WeakSet,s2=async function(t,e){let i=t.querySelectorAll("[data-view]"),n=[];for(let r of i){let o=e[r.dataset.view];o?r.dataset.render!=="sync"?n.push(o.render().then(s=>(r.replaceWith(s),s))):r.replaceWith(o.renderSync()):r.remove()}return Promise.all(n)},sg=new WeakSet,a2=function(t){t.querySelectorAll("i[data-icon]").forEach(e=>{let{icon:i,size:n}=e.dataset;e.replaceWith(LI(i,n))})},ag=new WeakSet,l2=function(t,e){return t.querySelectorAll("[data-placeholder]").forEach(i=>{let n=i.dataset.placeholder;if(n&&e[n]){let r=e[n];i.replaceWith(...[r].flat())}else console.warn(`Missing placeholder element for key "${n}"`)}),t};var doe=gi("imagePlaceholder","placeholder"),Ooe=new Gt(({classes:t})=>`
|
||
<div class="${t.placeholder} ${t.imagePlaceholder}"></div>
|
||
`),c2=class extends Me{constructor({classNames:e}={}){super({template:Ooe,classes:doe}),this.classNames=e}load(e){let i=document.createElement("img");this.classNames&&(i.className=this.classNames),i.addEventListener("load",()=>{this.el.replaceWith(i)},{once:!0}),Promise.resolve(e).then(n=>i.src=n)}renderSync(){return super.renderSync(),this.classNames&&this.classNames.split(" ").forEach(e=>this.el.classList.add(e)),this.el}},poe=gi("customEmoji"),u2=class{renderElement(e){return{content:e}}renderImage(e="",i){let n=new c2({classNames:e});return n.renderSync(),{content:n,resolver:()=>(n.load(i()),n.el)}}doRender(e,i,n){if(e.custom)return this.renderCustom(e,i,n);let{content:r,resolver:o}=this.render(e,n),s=r instanceof Element?r:r.el;return o&&o(),s}doEmit(e){return e.custom?this.emitCustom(e):this.emit(e)}emitCustom({url:e,label:i,emoji:n,data:r}){return{url:e,label:i,emoji:n,data:r}}renderCustom(e,i,n=""){let r=[poe.customEmoji,n].join(" ").trim(),{content:o,resolver:s}=this.renderImage(r,()=>e.url),a=o instanceof Element?o:o.el;return s&&s(),a}},moe=new Gt(({emoji:t})=>`<span>${t}</span>`),f2=class extends u2{render(e){return this.renderElement(moe.renderSync({emoji:e.emoji}))}emit({emoji:e,hexcode:i,label:n}){return{emoji:e,hexcode:i,label:n}}},goe={"categories.activities":"Activities","categories.animals-nature":"Animals & Nature","categories.custom":"Custom","categories.flags":"Flags","categories.food-drink":"Food & Drink","categories.objects":"Objects","categories.people-body":"People & Body","categories.recents":"Recently Used","categories.smileys-emotion":"Smileys & Emotion","categories.symbols":"Symbols","categories.travel-places":"Travel & Places","error.load":"Failed to load emojis","recents.clear":"Clear recent emojis","recents.none":"You haven't selected any emojis yet.",retry:"Try again","search.clear":"Clear search","search.error":"Failed to search emojis","search.notFound":"No results found",search:"Search emojis..."},h2="PicMo";function II(t){return new d2(t)}II.deleteDatabase=t=>new Promise((e,i)=>{let n=indexedDB.deleteDatabase(`${h2}-${t}`);n.addEventListener("success",e),n.addEventListener("error",i)});var d2=class extends fg{async open(){let e=indexedDB.open(`${h2}-${this.locale}`);return new Promise((i,n)=>{e.addEventListener("success",r=>{var o;this.db=(o=r.target)==null?void 0:o.result,i()}),e.addEventListener("error",n),e.addEventListener("upgradeneeded",async r=>{var o;this.db=(o=r.target)==null?void 0:o.result,this.db.createObjectStore("category",{keyPath:"order"});let s=this.db.createObjectStore("emoji",{keyPath:"emoji"});s.createIndex("category","group"),s.createIndex("version","version"),this.db.createObjectStore("meta")})})}async delete(){this.close();let e=indexedDB.deleteDatabase(`${h2}-${this.locale}`);await this.waitForRequest(e)}close(){this.db.close()}async getEmojiCount(){let e=this.db.transaction("emoji","readonly").objectStore("emoji");return(await this.waitForRequest(e.count())).target.result}async getEtags(){let e=this.db.transaction("meta","readonly").objectStore("meta"),[i,n]=await Promise.all([this.waitForRequest(e.get("emojisEtag")),this.waitForRequest(e.get("messagesEtag"))]);return{storedEmojisEtag:i.target.result,storedMessagesEtag:n.target.result}}async setMeta(e){let i=this.db.transaction("meta","readwrite"),n=i.objectStore("meta");return new Promise(r=>{i.oncomplete=r,Object.keys(e).filter(Boolean).forEach(o=>{n.put(e[o],o)})})}async getHash(){let e=this.db.transaction("meta","readonly").objectStore("meta");return(await this.waitForRequest(e.get("hash"))).target.result}async isPopulated(){let e=this.db.transaction("category","readonly").objectStore("category");return(await this.waitForRequest(e.count())).target.result>0}async populate({groups:e,emojis:i,emojisEtag:n,messagesEtag:r,hash:o}){await this.removeAllObjects("category","emoji");let s=[this.addObjects("category",e),this.addObjects("emoji",i),this.setMeta({emojisEtag:n,messagesEtag:r,hash:o})];await Promise.all(s)}async getCategories(e){var i;let n=this.db.transaction("category","readonly").objectStore("category"),r=(await this.waitForRequest(n.getAll())).target.result.filter(o=>o.key!=="component");if(e.showRecents&&r.unshift({key:"recents",order:-1}),(i=e.custom)!=null&&i.length&&r.push({key:"custom",order:10}),e.categories){let o=e.categories;r=r.filter(s=>o.includes(s.key)),r.sort((s,a)=>o.indexOf(s.key)-o.indexOf(a.key))}else r.sort((o,s)=>o.order-s.order);return r}async getEmojis(e,i){let n=this.db.transaction("emoji","readonly").objectStore("emoji").index("category"),r=(await this.waitForRequest(n.getAll(e.order))).target.result.filter(o=>o.version<=i).sort((o,s)=>o.order!=null&&s.order!=null?o.order-s.order:0).map(xh);return hg(r,i)}async searchEmojis(e,i,n,r){let o=[];return new Promise((s,a)=>{let l=this.db.transaction("emoji","readonly").objectStore("emoji").openCursor();l.addEventListener("success",c=>{var u;let f=(u=c.target)==null?void 0:u.result;if(!f)return s([...hg(o,n),...i.filter(O=>ug(O,e))]);let d=f.value;ug(d,e,r)&&d.version<=n&&o.push(xh(d)),f.continue()}),l.addEventListener("error",c=>{a(c)})})}async waitForRequest(e){return new Promise((i,n)=>{e.onsuccess=i,e.onerror=n})}withTransaction(e,i="readwrite",n){return new Promise((r,o)=>{let s=this.db.transaction(e,i);s.oncomplete=r,s.onerror=o,n(s)})}async removeAllObjects(...e){let i=this.db.transaction(e,"readwrite"),n=e.map(r=>i.objectStore(r));await Promise.all(n.map(r=>this.waitForRequest(r.clear())))}async addObjects(e,i){return this.withTransaction(e,"readwrite",n=>{let r=n.objectStore(e);i.forEach(o=>{r.add(o)})})}};function boe(){let t={};return{getItem:e=>t[e],setItem:(e,i)=>t[e]=i,length:Object.keys(t).length,clear:()=>t={},key:e=>Object.keys(t)[e],removeItem:e=>delete t[e]}}var O2=class{},Jk="PicMo:recents",p2=class extends O2{constructor(e){super(),this.storage=e}clear(){this.storage.removeItem(Jk)}getRecents(e){var i;try{return JSON.parse((i=this.storage.getItem(Jk))!=null?i:"[]").slice(0,e)}catch(n){return[]}}addOrUpdateRecent(e,i){let n=[e,...this.getRecents(i).filter(r=>r.hexcode!==e.hexcode)].slice(0,i);try{this.storage.setItem(Jk,JSON.stringify(n))}catch(r){console.warn("storage is not available, recent emojis will not be saved")}}},m2=class extends p2{constructor(){super(Ure()?localStorage:boe())}},yoe={dataStore:II,theme:Yre,animate:!0,showCategoryTabs:!0,showPreview:!0,showRecents:!0,showSearch:!0,showVariants:!0,emojisPerRow:8,visibleRows:6,emojiVersion:"auto",i18n:goe,locale:"en",maxRecents:50,custom:[]};function U2(t={}){return Ee(F(F({},yoe),t),{renderer:t.renderer||new f2,recentsProvider:t.recentsProvider||new m2})}var _a,yh,dg,lg,g2,Aa=class{constructor(){mo(this,yh),mo(this,lg),mo(this,_a,new Map)}on(e,i,n){Jn(this,lg,g2).call(this,e,i,n)}once(e,i,n){Jn(this,lg,g2).call(this,e,i,n,!0)}off(e,i){let n=Jn(this,yh,dg).call(this,e);go(this,_a).set(e,n.filter(r=>r.handler!==i))}emit(e,...i){Jn(this,yh,dg).call(this,e).forEach(n=>{n.handler.apply(n.context,i),n.once&&this.off(e,n.handler)})}removeAll(){go(this,_a).clear()}};_a=new WeakMap,yh=new WeakSet,dg=function(t){return go(this,_a).has(t)||go(this,_a).set(t,[]),go(this,_a).get(t)},lg=new WeakSet,g2=function(t,e,i,n=!1){Jn(this,yh,dg).call(this,t).push({context:i,handler:e,once:n})};var xoe={injectStyles:!0},b2=class extends Aa{},y2=class extends Aa{},x2=gi("emojiCategory","categoryName","noRecents","recentEmojis"),wh=class extends Me{constructor({template:e,category:i,showVariants:n,lazyLoader:r}){super({template:e,classes:x2}),this.baseUIElements={categoryName:Me.byClass(x2.categoryName)},this.category=i,this.showVariants=n,this.lazyLoader=r}setActive(e,i,n){this.emojiContainer.setActive(e,i,n)}},voe=new Gt(({classes:t,emoji:e})=>`
|
||
<button
|
||
type="button"
|
||
class="${t.emojiButton}"
|
||
title="${e.label}"
|
||
data-emoji="${e.emoji}"
|
||
tabindex="-1">
|
||
<div data-placeholder="emojiContent"></div>
|
||
</button>
|
||
`),woe=gi("emojiButton"),Og=class extends Me{constructor({emoji:e,lazyLoader:i,category:n}){super({template:voe,classes:woe}),this.emoji=e,this.lazyLoader=i,this.category=n}initialize(){this.uiEvents=[Me.uiEvent("focus",this.handleFocus)],super.initialize()}handleFocus(){this.category&&this.events.emit("focus:change",this.category)}activateFocus(e){this.el.tabIndex=0,e&&this.el.focus()}deactivateFocus(){this.el.tabIndex=-1}renderSync(){return super.renderSync({emoji:this.emoji,emojiContent:this.renderer.doRender(this.emoji,this.lazyLoader)})}},v2=class{constructor(e,i,n=0,r=0,o=!1){this.events=new Aa,this.keyHandlers={ArrowLeft:this.focusPrevious.bind(this),ArrowRight:this.focusNext.bind(this),ArrowUp:this.focusUp.bind(this),ArrowDown:this.focusDown.bind(this)},this.rowCount=Math.ceil(i/e),this.columnCount=e,this.focusedRow=n,this.focusedColumn=r,this.emojiCount=i,this.wrap=o,this.handleKeyDown=this.handleKeyDown.bind(this)}destroy(){this.events.removeAll()}on(e,i){this.events.on(e,i)}handleKeyDown(e){e.key in this.keyHandlers&&(e.preventDefault(),this.keyHandlers[e.key]())}setCell(e,i,n=!0){let r=this.getIndex();this.focusedRow=e,i!==void 0&&(this.focusedColumn=Math.min(this.columnCount,i)),(this.focusedRow>=this.rowCount||this.getIndex()>=this.emojiCount)&&(this.focusedRow=this.rowCount-1,this.focusedColumn=this.emojiCount%this.columnCount-1),this.events.emit("focus:change",{from:r,to:this.getIndex(),performFocus:n})}setFocusedIndex(e,i=!0){let n=Math.floor(e/this.columnCount),r=e%this.columnCount;this.setCell(n,r,i)}focusNext(){this.focusedColumn<this.columnCount-1&&this.getIndex()<this.emojiCount-1?this.setCell(this.focusedRow,this.focusedColumn+1):this.focusedRow<this.rowCount-1?this.setCell(this.focusedRow+1,0):this.wrap?this.setCell(0,0):this.events.emit("focus:overflow",0)}focusPrevious(){this.focusedColumn>0?this.setCell(this.focusedRow,this.focusedColumn-1):this.focusedRow>0?this.setCell(this.focusedRow-1,this.columnCount-1):this.wrap?this.setCell(this.rowCount-1,this.columnCount-1):this.events.emit("focus:underflow",this.columnCount-1)}focusUp(){this.focusedRow>0?this.setCell(this.focusedRow-1,this.focusedColumn):this.events.emit("focus:underflow",this.focusedColumn)}focusDown(){this.focusedRow<this.rowCount-1?this.setCell(this.focusedRow+1,this.focusedColumn):this.events.emit("focus:overflow",this.focusedColumn)}focusToIndex(e){this.setCell(Math.floor(e/this.columnCount),e%this.columnCount)}getIndex(){return this.focusedRow*this.columnCount+this.focusedColumn}getCell(){return{row:this.focusedRow,column:this.focusedColumn}}getRowCount(){return this.rowCount}},koe=new Gt(({classes:t})=>`
|
||
<div class="${t.emojiContainer}">
|
||
<div data-placeholder="emojis"></div>
|
||
</div>
|
||
`),Soe=gi("emojiContainer"),$a=class extends Me{constructor({emojis:e,showVariants:i,preview:n=!0,lazyLoader:r,category:o,fullHeight:s=!1}){super({template:koe,classes:Soe}),this.fullHeight=!1,this.showVariants=i,this.lazyLoader=r,this.preview=n,this.emojis=e,this.category=o,this.fullHeight=s,this.setFocus=this.setFocus.bind(this),this.triggerNextCategory=this.triggerNextCategory.bind(this),this.triggerPreviousCategory=this.triggerPreviousCategory.bind(this)}initialize(){this.grid=new v2(this.options.emojisPerRow,this.emojiCount,0,0,!this.category),this.grid.on("focus:change",this.setFocus),this.grid.on("focus:overflow",this.triggerNextCategory),this.grid.on("focus:underflow",this.triggerPreviousCategory),this.uiEvents=[Me.uiEvent("click",this.selectEmoji),Me.uiEvent("keydown",this.grid.handleKeyDown)],this.preview&&this.uiEvents.push(Me.uiEvent("mouseover",this.showPreview),Me.uiEvent("mouseout",this.hidePreview),Me.uiEvent("focus",this.showPreview,{capture:!0}),Me.uiEvent("blur",this.hidePreview,{capture:!0})),super.initialize()}setFocusedView(e,i){if(e)if(typeof e=="string"){let n=this.emojis.findIndex(r=>r.emoji===e);this.grid.setFocusedIndex(n,!1),setTimeout(()=>{var r,o,s,a;let l=this.emojiViews[n].el;l.scrollIntoView();let c=(r=l.parentElement)==null?void 0:r.previousElementSibling,u=(s=(o=l.parentElement)==null?void 0:o.parentElement)==null?void 0:s.parentElement;u.scrollTop-=(a=c==null?void 0:c.offsetHeight)!=null?a:0})}else e.row==="first"||e.row===0?this.grid.setCell(0,e.offset,i):e.row==="last"&&this.grid.setCell(this.grid.getRowCount()-1,e.offset,i)}setActive(e,i,n){var r;e?this.setFocusedView(i,n):(r=this.emojiViews[this.grid.getIndex()])==null||r.deactivateFocus()}renderSync(){return this.emojiViews=this.emojis.map(e=>this.viewFactory.create(Og,{emoji:e,category:this.category,lazyLoader:this.lazyLoader,renderer:this.renderer})),this.emojiElements=this.emojiViews.map(e=>e.renderSync()),super.renderSync({emojis:this.emojiElements,i18n:this.i18n})}destroy(){super.destroy(),this.emojiViews.forEach(e=>e.destroy()),this.grid.destroy()}triggerPreviousCategory(e){this.events.emit("category:previous",e)}triggerNextCategory(e){this.category&&this.events.emit("category:next",e)}setFocus({from:e,to:i,performFocus:n}){var r,o;(r=this.emojiViews[e])==null||r.deactivateFocus(),(o=this.emojiViews[i])==null||o.activateFocus(n)}selectEmoji(e){e.stopPropagation();let i=Gk(e,this.emojis);i&&this.events.emit("emoji:select",{emoji:i,showVariants:this.showVariants})}showPreview(e){let i=e.target.closest("button"),n=i==null?void 0:i.firstElementChild,r=Gk(e,this.emojis);r&&this.events.emit("preview:show",r,n==null?void 0:n.cloneNode(!0))}hidePreview(e){Gk(e,this.emojis)&&this.events.emit("preview:hide")}get emojiCount(){return this.emojis.length}},Toe=new Gt(({classes:t,category:e,pickerId:i,icon:n,i18n:r})=>`
|
||
<section class="${t.emojiCategory}" role="tabpanel" aria-labelledby="${i}-category-${e.key}">
|
||
<h3 data-category="${e.key}" class="${t.categoryName}">
|
||
<i data-icon="${n}"></i>
|
||
${r.get(`categories.${e.key}`,e.message||e.key)}
|
||
</h3>
|
||
<div data-view="emojis" data-render="sync"></div>
|
||
</section>
|
||
`),w2=class extends wh{constructor({category:e,showVariants:i,lazyLoader:n,emojiVersion:r}){super({category:e,showVariants:i,lazyLoader:n,template:Toe}),this.showVariants=i,this.lazyLoader=n,this.emojiVersion=r}initialize(){this.uiElements=F({},this.baseUIElements),super.initialize()}async render(){await this.emojiDataPromise;let e=await this.emojiData.getEmojis(this.category,this.emojiVersion);return this.emojiContainer=this.viewFactory.create($a,{emojis:e,showVariants:this.showVariants,lazyLoader:this.lazyLoader,category:this.category.key}),super.render({category:this.category,emojis:this.emojiContainer,emojiCount:e.length,icon:mg[this.category.key]})}},k2=class extends $a{constructor({category:e,emojis:i,preview:n=!0,lazyLoader:r}){super({category:e,emojis:i,showVariants:!1,preview:n,lazyLoader:r})}async addOrUpdate(e){let i=this.el.querySelector(`[data-emoji="${e.emoji}"]`);i&&(this.el.removeChild(i),this.emojis=this.emojis.filter(r=>r!==e));let n=this.viewFactory.create(Og,{emoji:e});if(this.el.insertBefore(n.renderSync(),this.el.firstChild),this.emojis=[e,...this.emojis.filter(r=>r!==e)],this.emojis.length>this.options.maxRecents){this.emojis=this.emojis.slice(0,this.options.maxRecents);let r=this.el.childElementCount-this.options.maxRecents;for(let o=0;o<r;o++)this.el.lastElementChild&&this.el.removeChild(this.el.lastElementChild)}}},Eoe=new Gt(({emojiCount:t,classes:e,category:i,pickerId:n,icon:r,i18n:o})=>`
|
||
<section class="${e.emojiCategory}" role="tabpanel" aria-labelledby="${n}-category-${i.key}">
|
||
<h3 data-category="${i.key}" class="${e.categoryName}">
|
||
<i data-icon="${r}"></i>
|
||
${o.get(`categories.${i.key}`,i.message||i.key)}
|
||
</h3>
|
||
<div data-empty="${t===0}" class="${e.recentEmojis}">
|
||
<div data-view="emojis" data-render="sync"></div>
|
||
</div>
|
||
<div class="${e.noRecents}">
|
||
${o.get("recents.none")}
|
||
</div>
|
||
</section>
|
||
`,{mode:"async"}),S2=class extends wh{constructor({category:e,lazyLoader:i,provider:n}){super({category:e,showVariants:!1,lazyLoader:i,template:Eoe}),this.provider=n}initialize(){this.uiElements=Ee(F({},this.baseUIElements),{recents:Me.byClass(x2.recentEmojis)}),this.appEvents={"recent:add":this.addRecent},super.initialize()}async addRecent(e){await this.emojiContainer.addOrUpdate(e),this.ui.recents.dataset.empty="false"}async render(){var e;let i=(e=this.provider)==null?void 0:e.getRecents(this.options.maxRecents);return this.emojiContainer=this.viewFactory.create(k2,{emojis:i,showVariants:!1,lazyLoader:this.lazyLoader,category:this.category.key}),await super.render({category:this.category,emojis:this.emojiContainer,emojiCount:i.length,icon:mg[this.category.key]}),this.el}},Coe=new Gt(({classes:t,category:e,pickerId:i,icon:n,i18n:r})=>`
|
||
<section class="${t.emojiCategory}" role="tabpanel" aria-labelledby="${i}-category-${e.key}">
|
||
<h3 data-category="${e.key}" class="${t.categoryName}">
|
||
<i data-icon="${n}"></i>
|
||
${r.get(`categories.${e.key}`,e.message||e.key)}
|
||
</h3>
|
||
<div data-view="emojis" data-render="sync"></div>
|
||
</section>
|
||
`),T2=class extends wh{constructor({category:e,lazyLoader:i}){super({template:Coe,showVariants:!1,lazyLoader:i,category:e})}initialize(){this.uiElements=F({},this.baseUIElements),super.initialize()}async render(){return this.emojiContainer=this.viewFactory.create($a,{emojis:this.customEmojis,showVariants:this.showVariants,lazyLoader:this.lazyLoader,category:this.category.key}),super.render({category:this.category,emojis:this.emojiContainer,emojiCount:this.customEmojis.length,icon:mg[this.category.key]})}},pg=class{constructor(){this.elements=new Map}lazyLoad(e,i){return this.elements.set(e,i),e}observe(e){if(window.IntersectionObserver){let i=new IntersectionObserver(n=>{n.filter(r=>r.intersectionRatio>0).map(r=>r.target).forEach(r=>{let o=this.elements.get(r);o==null||o(),i.unobserve(r)})},{root:e});this.elements.forEach((n,r)=>{i.observe(r)})}else this.elements.forEach(i=>{i()})}},kI=gi("emojiArea"),Poe=new Gt(({classes:t})=>`
|
||
<div class="${t.emojiArea}">
|
||
<div data-placeholder="emojis"></div>
|
||
</div>
|
||
`,{mode:"async"}),Qoe={recents:S2,custom:T2};function _oe(t){return Qoe[t.key]||w2}function Aoe(t){return!t||t==="button"?{row:"first",offset:0}:t}var E2=class extends Me{constructor({categoryTabs:e,categories:i,emojiVersion:n}){super({template:Poe,classes:kI}),this.selectedCategory=0,this.scrollListenerState="active",this.lazyLoader=new pg,this.categoryTabs=e,this.categories=i,this.emojiVersion=n,this.handleScroll=Lre(this.handleScroll.bind(this),100)}initialize(){this.appEvents={"category:select":this.handleCategorySelect,"category:previous":this.focusPreviousCategory,"category:next":this.focusNextCategory,"focus:change":this.updateFocusedCategory},this.uiElements={emojis:Me.byClass(kI.emojiArea)},this.uiEvents=[Me.uiEvent("scroll",this.handleScroll)],super.initialize()}get focusableEmoji(){return this.el.querySelector('[tabindex="0"]')}async render(){this.emojiCategories=this.categories.map(this.createCategory,this);let e={};return this.categories.forEach((i,n)=>{e[`emojis-${i.key}`]=this.emojiCategories[n]}),await super.render({emojis:await Promise.all(this.emojiCategories.map(i=>i.render()))}),this.lazyLoader.observe(this.el),this.el}destroy(){super.destroy(),this.emojiCategories.forEach(e=>{var i;(i=this.observer)==null||i.unobserve(e.el),e.destroy()})}handleCategorySelect(e,i){this.el.style.overflow="hidden",this.selectCategory(e,i),this.el.style.overflow="auto"}createCategory(e){let i=_oe(e);return this.viewFactory.create(i,{category:e,showVariants:!0,lazyLoader:this.lazyLoader,emojiVersion:this.emojiVersion,provider:this.options.recentsProvider})}determineInitialCategory(){var e;return this.options.initialCategory&&this.categories.find(i=>i.key===this.options.initialCategory)?this.options.initialCategory:(e=this.categories.find(i=>i.key!=="recents"))==null?void 0:e.key}determineFocusTarget(e){let i=this.emojiCategories.find(n=>n.category.key===e);return this.options.initialEmoji&&(i!=null&&i.el.querySelector(`[data-emoji="${this.options.initialEmoji}"]`))?this.options.initialEmoji:"button"}reset(e=!0){this.events.emit("preview:hide");let i=this.determineInitialCategory();i&&(this.selectCategory(i,{focus:this.determineFocusTarget(i),performFocus:e,scroll:"jump"}),this.selectedCategory=this.getCategoryIndex(i))}getCategoryIndex(e){return this.categories.findIndex(i=>i.key===e)}focusPreviousCategory(e){this.selectedCategory>0&&this.focusCategory(this.selectedCategory-1,{row:"last",offset:e!=null?e:this.options.emojisPerRow})}focusNextCategory(e){this.selectedCategory<this.categories.length-1&&this.focusCategory(this.selectedCategory+1,{row:"first",offset:e!=null?e:0})}focusCategory(e,i){this.selectCategory(e,{focus:i,performFocus:!0})}async selectCategory(e,i={}){var n;this.scrollListenerState="suspend";let{focus:r,performFocus:o,scroll:s}=F({performFocus:!1},i);this.emojiCategories[this.selectedCategory].setActive(!1);let a=this.selectedCategory=typeof e=="number"?e:this.getCategoryIndex(e);(n=this.categoryTabs)==null||n.setActiveTab(this.selectedCategory,{performFocus:o,scroll:r==="button"});let l=this.emojiCategories[a].el.offsetTop;this.emojiCategories[a].setActive(!0,Aoe(r),r!=="button"&&o),s&&(this.el.scrollTop=l),this.scrollListenerState="resume"}updateFocusedCategory(e){var i;this.categories[this.selectedCategory].key!==e&&(this.scrollListenerState="suspend",this.selectedCategory=this.getCategoryIndex(e),(i=this.categoryTabs)==null||i.setActiveTab(this.selectedCategory,{changeFocusable:!1,performFocus:!1}),this.scrollListenerState="resume")}handleScroll(){if(this.scrollListenerState==="suspend"||!this.categoryTabs)return;if(this.scrollListenerState==="resume"){this.scrollListenerState="active";return}let e=this.el.scrollTop,i=this.el.scrollHeight-this.el.offsetHeight,n=this.emojiCategories.findIndex((o,s)=>{var a;return e<((a=this.emojiCategories[s+1])==null?void 0:a.el.offsetTop)}),r={changeFocusable:!1,performFocus:!1,scroll:!1};e===0?this.categoryTabs.setActiveTab(0,r):Math.floor(e)===Math.floor(i)||n<0?this.categoryTabs.setActiveTab(this.categories.length-1,r):this.categoryTabs.setActiveTab(n,r)}},$oe=new Gt(({classList:t,classes:e,icon:i,message:n})=>`
|
||
<div class="${t}" role="alert">
|
||
<div class="${e.iconContainer}"><i data-size="10x" data-icon="${i}"></i></div>
|
||
<h3 class="${e.title}">${n}</h3>
|
||
</div>
|
||
`),SI=gi("error","iconContainer","title"),kh=class extends Me{constructor({message:e,icon:i="warning",template:n=$oe,className:r}){super({template:n,classes:SI}),this.message=e,this.icon=i,this.className=r}renderSync(){let e=[SI.error,this.className].join(" ").trim();return super.renderSync({message:this.message,icon:this.icon,classList:e})}},Xoe=new Gt(({classList:t,classes:e,icon:i,i18n:n,message:r})=>`
|
||
<div class="${t}" role="alert">
|
||
<div class="${e.icon}"><i data-size="10x" data-icon="${i}"></i></div>
|
||
<h3 class="${e.title}">${r}</h3>
|
||
<button type="button">${n.get("retry")}</button>
|
||
</div>
|
||
`),Roe=gi("dataError"),C2=class extends kh{constructor({message:e}){super({message:e,template:Xoe,className:Roe.dataError})}initialize(){this.uiElements={retryButton:"button"},this.uiEvents=[Me.childEvent("retryButton","click",this.onRetry)],super.initialize()}async onRetry(){this.emojiData?await this.emojiData.delete():await this.options.dataStore.deleteDatabase(this.options.locale),this.events.emit("reinitialize");let e=await RI(this.options.locale,this.options.dataStore,this.options.messages,this.options.emojiData,this.emojiData);this.viewFactory.setEmojiData(e),this.events.emit("data:ready",e)}},ph=gi("preview","previewEmoji","previewName","tagList","tag"),Loe=new Gt(({classes:t,tag:e})=>`
|
||
<li class="${t.tag}">${e}</li>
|
||
`),Ioe=new Gt(({classes:t})=>`
|
||
<div class="${t.preview}">
|
||
<div class="${t.previewEmoji}"></div>
|
||
<div class="${t.previewName}"></div>
|
||
<ul class="${t.tagList}"></ul>
|
||
</div>
|
||
`),P2=class extends Me{constructor(){super({template:Ioe,classes:ph})}initialize(){this.uiElements={emoji:Me.byClass(ph.previewEmoji),name:Me.byClass(ph.previewName),tagList:Me.byClass(ph.tagList)},this.appEvents={"preview:show":this.showPreview,"preview:hide":this.hidePreview},super.initialize()}showPreview(e,i){if(uc(this.ui.emoji,i),this.ui.name.textContent=e.label,e.tags){this.ui.tagList.style.display="flex";let n=e.tags.map(r=>Loe.renderSync({tag:r,classes:ph}));uc(this.ui.tagList,...n)}}hidePreview(){ng(this.ui.emoji),ng(this.ui.name),ng(this.ui.tagList)}},Doe=new Gt(({classes:t,i18n:e})=>`
|
||
<button title="${e.get("search.clear")}" class="${t.clearSearchButton}">
|
||
<i data-icon="xmark"></i>
|
||
</button>
|
||
`),zoe=new Gt(({classes:t,i18n:e})=>`
|
||
<div class="${t.searchContainer}">
|
||
<input class="${t.searchField}" placeholder="${e.get("search")}">
|
||
<span class="${t.searchAccessory}"></span>
|
||
</div>
|
||
`,{mode:"async"}),mh=gi("searchContainer","searchField","clearButton","searchAccessory","clearSearchButton","notFound"),Q2=class extends Me{constructor({categories:e,emojiVersion:i}){super({template:zoe,classes:mh}),this.categories=e.filter(n=>n.key!=="recents"),this.emojiVersion=i,this.search=Ire(this.search.bind(this),100)}initialize(){this.uiElements={searchField:Me.byClass(mh.searchField),searchAccessory:Me.byClass(mh.searchAccessory)},this.uiEvents=[Me.childEvent("searchField","keydown",this.onKeyDown),Me.childEvent("searchField","input",this.onSearchInput)],super.initialize()}async render(){return await super.render(),this.searchIcon=LI("search"),this.notFoundMessage=this.viewFactory.create(kh,{message:this.i18n.get("search.notFound"),className:mh.notFound,icon:"sad"}),this.notFoundMessage.renderSync(),this.errorMessage=this.viewFactory.create(kh,{message:this.i18n.get("search.error")}),this.errorMessage.renderSync(),this.clearSearchButton=Doe.render({classes:mh,i18n:this.i18n}),this.clearSearchButton.addEventListener("click",e=>this.onClearSearch(e)),this.searchField=this.ui.searchField,this.showSearchIcon(),this.el}showSearchIcon(){this.showSearchAccessory(this.searchIcon)}showClearSearchButton(){this.showSearchAccessory(this.clearSearchButton)}showSearchAccessory(e){uc(this.ui.searchAccessory,e)}clear(){this.searchField.value="",this.showSearchIcon()}focus(){this.searchField.focus()}onClearSearch(e){var i;e.stopPropagation(),this.searchField.value="",(i=this.resultsContainer)==null||i.destroy(),this.resultsContainer=null,this.showSearchIcon(),this.events.emit("content:show"),this.searchField.focus()}handleResultsKeydown(e){this.resultsContainer&&e.key==="Escape"&&this.onClearSearch(e)}onKeyDown(e){var i;e.key==="Escape"&&this.searchField.value?this.onClearSearch(e):(e.key==="Enter"||e.key==="ArrowDown")&&this.resultsContainer&&(e.preventDefault(),(i=this.resultsContainer.el.querySelector('[tabindex="0"]'))==null||i.focus())}onSearchInput(e){this.searchField.value?(this.showClearSearchButton(),this.search()):this.onClearSearch(e)}async search(){var e;if(this.searchField.value)try{let i=await this.emojiData.searchEmojis(this.searchField.value,this.customEmojis,this.emojiVersion,this.categories);if(this.events.emit("preview:hide"),i.length){let n=new pg;this.resultsContainer=this.viewFactory.create($a,{emojis:i,fullHeight:!0,showVariants:!0,lazyLoader:n}),this.resultsContainer.renderSync(),(e=this.resultsContainer)!=null&&e.el&&(n.observe(this.resultsContainer.el),this.resultsContainer.setActive(!0,{row:0,offset:0},!1),this.resultsContainer.el.addEventListener("keydown",r=>this.handleResultsKeydown(r)),this.events.emit("content:show",this.resultsContainer))}else this.events.emit("content:show",this.notFoundMessage)}catch(i){this.events.emit("content:show",this.errorMessage)}}},Uoe=new Gt(({classes:t})=>`
|
||
<div class="${t.variantOverlay}">
|
||
<div class="${t.variantPopup}">
|
||
<div data-view="emojis" data-render="sync"></div>
|
||
</div>
|
||
</div>
|
||
`),TI=gi("variantOverlay","variantPopup"),e2={easing:"ease-in-out",duration:250,fill:"both"},EI={opacity:[0,1]},CI={opacity:[0,1],transform:["scale3d(0.8, 0.8, 0.8)","scale3d(1, 1, 1)"]},_2=class extends Me{constructor({emoji:e,parent:i}){super({template:Uoe,classes:TI,parent:i}),this.focusedEmojiIndex=0,this.focusTrap=new vh,this.animateShow=()=>Promise.all([Qa(this.el,EI,e2,this.options),Qa(this.ui.popup,CI,e2,this.options)]),this.emoji=e}initialize(){this.uiElements={popup:Me.byClass(TI.variantPopup)},this.uiEvents=[Me.uiEvent("click",this.handleClick),Me.uiEvent("keydown",this.handleKeydown)],super.initialize()}animateHide(){let e=Ee(F({},e2),{direction:"reverse"});return Promise.all([Qa(this.el,EI,e,this.options),Qa(this.ui.popup,CI,e,this.options)])}async hide(){await this.animateHide(),this.events.emit("variantPopup:hide")}handleKeydown(e){e.key==="Escape"&&(this.hide(),e.stopPropagation())}handleClick(e){this.ui.popup.contains(e.target)||this.hide()}getEmoji(e){return this.renderedEmojis[e]}setFocusedEmoji(e){let i=this.getEmoji(this.focusedEmojiIndex);i.tabIndex=-1,this.focusedEmojiIndex=e;let n=this.getEmoji(this.focusedEmojiIndex);n.tabIndex=0,n.focus()}destroy(){this.emojiContainer.destroy(),this.focusTrap.deactivate(),super.destroy()}renderSync(){let e=Ee(F({},this.emoji),{skins:null}),i=(this.emoji.skins||[]).map(r=>Ee(F({},r),{label:this.emoji.label,tags:this.emoji.tags})),n=[e,...i];return this.emojiContainer=this.viewFactory.create($a,{emojis:n,preview:!1}),super.renderSync({emojis:this.emojiContainer}),n.length<this.options.emojisPerRow&&this.el.style.setProperty("--emojis-per-row",n.length.toString()),this.el}activate(){this.emojiContainer.setActive(!0,{row:0,offset:0},!0),this.focusTrap.activate(this.el)}},Moe=new Gt(({classes:t,i18n:e,category:i,pickerId:n,icon:r})=>`
|
||
<li class="${t.categoryTab}">
|
||
<button
|
||
aria-selected="false"
|
||
role="tab"
|
||
class="${t.categoryButton}"
|
||
tabindex="-1"
|
||
title="${e.get(`categories.${i.key}`,i.message||i.key)}"
|
||
type="button"
|
||
data-category="${i.key}"
|
||
id="${n}-category-${i.key}"
|
||
>
|
||
<i data-icon="${r}"></i>
|
||
</li>
|
||
`),t2=gi("categoryTab","categoryTabActive","categoryButton"),A2=class extends Me{constructor({category:e,icon:i}){super({template:Moe,classes:t2}),this.isActive=!1,this.category=e,this.icon=i}initialize(){this.uiElements={button:Me.byClass(t2.categoryButton)},this.uiEvents=[Me.childEvent("button","click",this.selectCategory),Me.childEvent("button","focus",this.selectCategory)],super.initialize()}renderSync(){return super.renderSync({category:this.category,icon:this.icon}),this.ui.button.ariaSelected="false",this.el}setActive(e,i={}){let{changeFocusable:n,performFocus:r,scroll:o}=F({changeFocusable:!0,performFocus:!0,scroll:!0},i);this.el.classList.toggle(t2.categoryTabActive,e),n&&(this.ui.button.tabIndex=e?0:-1,this.ui.button.ariaSelected=e.toString()),e&&r&&(this.ui.button.focus(),o&&this.events.emit("category:select",this.category.key,{scroll:"animate",focus:"button",performFocus:!1})),this.isActive=e}selectCategory(){this.isActive||this.events.emit("category:select",this.category.key,{scroll:"animate",focus:"button",performFocus:!0})}},Noe=new Gt(({classes:t})=>`
|
||
<div class="${t.categoryButtonsContainer}">
|
||
<ul role="tablist" class="${t.categoryButtons}">
|
||
<div data-placeholder="tabs"></div>
|
||
</ul>
|
||
</div>
|
||
`),qoe=gi("categoryButtons","categoryButtonsContainer"),$2=class extends Me{constructor({categories:e}){super({template:Noe,classes:qoe}),this.activeCategoryIndex=0,this.categories=e}initialize(){this.keyBindings={ArrowLeft:this.stepSelectedTab(-1),ArrowRight:this.stepSelectedTab(1)},this.uiEvents=[Me.uiEvent("scroll",this.checkOverflow)],super.initialize()}checkOverflow(){let e=Math.abs(this.el.scrollLeft-(this.el.scrollWidth-this.el.offsetWidth))>1,i=this.el.scrollLeft>0;this.el.className="categoryButtonsContainer",i&&e?this.el.classList.add("has-overflow-both"):i?this.el.classList.add("has-overflow-left"):e&&this.el.classList.add("has-overflow-right")}renderSync(){return this.tabViews=this.categories.map(e=>this.viewFactory.create(A2,{category:e,icon:mg[e.key]})),super.renderSync({tabs:this.tabViews.map(e=>e.renderSync())}),this.el}get currentCategory(){return this.categories[this.activeCategoryIndex]}get currentTabView(){return this.tabViews[this.activeCategoryIndex]}setActiveTab(e,i={}){this.checkOverflow();let n=this.currentTabView,r=this.tabViews[e];n.setActive(!1,i),r.setActive(!0,i),this.activeCategoryIndex=e}getTargetCategory(e){return e<0?this.categories.length-1:e>=this.categories.length?0:e}stepSelectedTab(e){return()=>{let i=this.activeCategoryIndex+e;this.setActiveTab(this.getTargetCategory(i),{changeFocusable:!0,performFocus:!0})}}},joe=[{version:15,emoji:String.fromCodePoint(129768)},{version:14,emoji:String.fromCodePoint(128733)},{version:13,emoji:String.fromCodePoint(129729)},{version:12,emoji:String.fromCodePoint(129449)},{version:11,emoji:String.fromCodePoint(129463)},{version:5,emoji:String.fromCodePoint(129322)},{version:4,emoji:String.fromCodePoint(9877)},{version:3,emoji:String.fromCodePoint(129314)},{version:2,emoji:String.fromCodePoint(128488)},{version:1,emoji:String.fromCodePoint(128512)}];function Woe(){var t;let e=joe.find(i=>Voe(i.emoji));return(t=e==null?void 0:e.version)!=null?t:1}function Voe(t){let e=document.createElement("canvas").getContext("2d");if(e)return e.textBaseline="top",e.font="32px Arial",e.fillText(t,0,0),e.getImageData(16,16,1,1).data[0]!==0}function i2(t,e){return Array.from({length:t},()=>e).join("")}function Zoe({showHeader:t,classes:e}){return t?`
|
||
<header class="${e.header}">
|
||
<div data-view="search"></div>
|
||
<div data-view="categoryTabs" data-render="sync"></div>
|
||
</header>
|
||
`:""}function Boe(t){let{classes:e,theme:i,className:n=""}=t;return`
|
||
<div class="picmo__picker ${e.picker} ${i} ${n}">
|
||
${Zoe(t)}
|
||
<div class="${e.content}">
|
||
<div data-view="emojiArea"></div>
|
||
</div>
|
||
<div data-view="preview"></div>
|
||
</div>
|
||
`}function Yoe(t){let{emojiCount:e,classes:i,theme:n,className:r,categoryCount:o}=t,s=({showSearch:u,classes:f})=>u?`
|
||
<div class="${f.searchSkeleton}">
|
||
<div class="${f.searchInput} ${f.placeholder}"></div>
|
||
</div>
|
||
`:"",a=({showCategoryTabs:u,classes:f})=>u?`
|
||
<div class="${f.categoryTabsSkeleton}">
|
||
${i2(o,`<div class="${f.placeholder} ${f.categoryTab}"></div>`)}
|
||
</div>
|
||
`:"",l=({showHeader:u,classes:f})=>u?`
|
||
<header class="${f.headerSkeleton}">
|
||
${s(t)}
|
||
${a(t)}
|
||
</header>
|
||
`:"",c=({showPreview:u,classes:f})=>u?`
|
||
<div class="${f.previewSkeleton}">
|
||
<div class="${f.placeholder} ${f.previewEmoji}"></div>
|
||
<div class="${f.placeholder} ${f.previewName}"></div>
|
||
<ul class="${f.tagList}">
|
||
${i2(3,`<li class="${f.placeholder} ${f.tag}"></li>`)}
|
||
</ul>
|
||
</div>
|
||
`:"";return`
|
||
<div class="picmo__picker ${i.skeleton} ${i.picker} ${n} ${r}">
|
||
${l(t)}
|
||
<div class="${i.contentSkeleton}">
|
||
<div class="${i.placeholder} ${i.categoryName}"></div>
|
||
<div class="${i.emojiGrid}">
|
||
${i2(e,`<div class="${i.placeholder} ${i.emoji}"></div>`)}
|
||
</div>
|
||
</div>
|
||
${c(t)}
|
||
</div>
|
||
`}var Foe=new Gt(t=>t.isLoaded?Boe(t):Yoe(t)),eg=gi("picker","skeleton","placeholder","searchSkeleton","searchInput","categoryTabsSkeleton","headerSkeleton","categoryTab","contentSkeleton","categoryName","emojiGrid","emoji","previewSkeleton","previewEmoji","previewName","tagList","tag","overlay","content","fullHeight","pluginContainer","header"),tg={emojisPerRow:"--emojis-per-row",visibleRows:"--row-count",emojiSize:"--emoji-size"},X2=class extends Me{constructor(){super({template:Foe,classes:eg}),this.pickerReady=!1,this.externalEvents=new y2,this.updaters={styleProperty:e=>i=>this.el.style.setProperty(tg[e],i.toString()),theme:e=>{let i=this.options.theme,n=this.el.closest(`.${i}`);this.el.classList.remove(i),n==null||n.classList.remove(i),this.el.classList.add(e),n==null||n.classList.add(e)},className:e=>{this.options.className&&this.el.classList.remove(this.options.className),this.el.classList.add(e)},emojisPerRow:this.updateStyleProperty.bind(this,"emojisPerRow"),emojiSize:this.updateStyleProperty.bind(this,"emojiSize"),visibleRows:this.updateStyleProperty.bind(this,"visibleRows")}}initialize(){this.uiElements={pickerContent:Me.byClass(eg.content),header:Me.byClass(eg.header)},this.uiEvents=[Me.uiEvent("keydown",this.handleKeyDown)],this.appEvents={error:this.onError,reinitialize:this.reinitialize,"data:ready":this.onDataReady,"content:show":this.showContent,"variantPopup:hide":this.hideVariantPopup,"emoji:select":this.selectEmoji},super.initialize(),this.options.recentsProvider}destroy(){var e,i;super.destroy(),(e=this.search)==null||e.destroy(),this.emojiArea.destroy(),(i=this.categoryTabs)==null||i.destroy(),this.events.removeAll(),this.externalEvents.removeAll()}clearRecents(){this.options.recentsProvider.clear()}addEventListener(e,i){this.externalEvents.on(e,i)}removeEventListener(e,i){this.externalEvents.off(e,i)}initializePickerView(){this.pickerReady&&(this.showContent(),this.emojiArea.reset(!1))}handleKeyDown(e){let i=e.ctrlKey||e.metaKey;e.key==="s"&&i&&this.search&&(e.preventDefault(),this.search.focus())}buildChildViews(){return this.options.showPreview&&(this.preview=this.viewFactory.create(P2)),this.options.showSearch&&(this.search=this.viewFactory.create(Q2,{categories:this.categories,emojiVersion:this.emojiVersion})),this.options.showCategoryTabs&&(this.categoryTabs=this.viewFactory.create($2,{categories:this.categories})),this.currentView=this.emojiArea=this.viewFactory.create(E2,{categoryTabs:this.categoryTabs,categories:this.categories,emojiVersion:this.emojiVersion}),[this.preview,this.search,this.emojiArea,this.categoryTabs]}setStyleProperties(){this.options.showSearch||this.el.style.setProperty("--search-height-full","0px"),this.options.showCategoryTabs||(this.el.style.setProperty("--category-tabs-height","0px"),this.el.style.setProperty("--category-tabs-offset","0px")),this.options.showPreview||this.el.style.setProperty("--emoji-preview-height-full","0px"),Object.keys(tg).forEach(e=>{this.options[e]&&this.el.style.setProperty(tg[e],this.options[e].toString())})}updateStyleProperty(e,i){this.el.style.setProperty(tg[e],i.toString())}reinitialize(){this.renderSync()}onError(e){let i=this.viewFactory.createWithOptions({data:!1},C2,{message:this.i18n.get("error.load")}),n=this.el.offsetHeight||375;throw this.el.style.height=`${n}px`,uc(this.el,i.renderSync()),e}async onDataReady(e){let i=this.el;try{e?this.emojiData=e:await this.emojiDataPromise,this.options.emojiVersion==="auto"?this.emojiVersion=Woe()||parseFloat(_re):this.emojiVersion=this.options.emojiVersion,this.categories=await this.emojiData.getCategories(this.options);let[n,r,o,s]=this.buildChildViews();await super.render({isLoaded:!0,search:r,categoryTabs:s,emojiArea:o,preview:n,showHeader:!!(this.search||this.categoryTabs),theme:this.options.theme,className:this.options.className}),this.el.style.setProperty("--category-count",this.categories.length.toString()),this.pickerReady=!0,i.replaceWith(this.el),this.setStyleProperties(),this.initializePickerView(),this.setInitialFocus(),this.externalEvents.emit("data:ready")}catch(n){this.events.emit("error",n)}}renderSync(){var e;let i=((e=this.options.categories)==null?void 0:e.length)||10;if(this.options.showRecents&&(i+=1),super.renderSync({isLoaded:!1,theme:this.options.theme,className:this.options.className,showSearch:this.options.showSearch,showPreview:this.options.showPreview,showCategoryTabs:this.options.showCategoryTabs,showHeader:this.options.showSearch||this.options.showCategoryTabs,emojiCount:this.options.emojisPerRow*this.options.visibleRows,categoryCount:i}),this.el.style.setProperty("--category-count",i.toString()),!this.options.rootElement)throw new Error("Picker must be given a root element via the rootElement option");return uc(this.options.rootElement,this.el),this.setStyleProperties(),this.pickerReady&&this.initializePickerView(),this.el}getInitialFocusTarget(){if(typeof this.options.autoFocus<"u")switch(this.options.autoFocus){case"emojis":return this.emojiArea.focusableEmoji;case"search":return this.search;case"auto":return this.search||this.emojiArea.focusableEmoji;default:return null}if(this.options.autoFocusSearch===!0)return console.warn("options.autoFocusSearch is deprecated, please use options.focusTarget instead"),this.search}setInitialFocus(){var e;!this.pickerReady||(e=this.getInitialFocusTarget())==null||e.focus()}reset(e=!0){var i;this.pickerReady&&(this.emojiArea.reset(e),this.showContent(this.emojiArea)),(i=this.search)==null||i.clear(),this.hideVariantPopup()}showContent(e=this.emojiArea){var i,n;e!==this.currentView&&(this.currentView!==this.emojiArea&&((i=this.currentView)==null||i.destroy()),this.ui.pickerContent.classList.toggle(eg.fullHeight,e!==this.emojiArea),uc(this.ui.pickerContent,e.el),this.currentView=e,e===this.emojiArea?(this.emojiArea.reset(),this.categoryTabs&&this.ui.header.appendChild(this.categoryTabs.el)):(n=this.categoryTabs)==null||n.el.remove())}hideVariantPopup(){var e;(e=this.variantPopup)==null||e.destroy()}isPickerClick(e){var i,n;let r=e.target,o=this.el.contains(r),s=(n=(i=this.variantPopup)==null?void 0:i.el)==null?void 0:n.contains(r);return o||s}async selectEmoji({emoji:e}){var i,n;(i=e.skins)!=null&&i.length&&this.options.showVariants&&!this.isVariantPopupOpen?this.showVariantPopup(e):(await((n=this.variantPopup)==null?void 0:n.animateHide()),this.events.emit("variantPopup:hide"),await this.emitEmoji(e))}get isVariantPopupOpen(){return this.variantPopup&&!this.variantPopup.isDestroyed}async showVariantPopup(e){let i=document.activeElement;this.events.once("variantPopup:hide",()=>{i==null||i.focus()}),this.variantPopup=this.viewFactory.create(_2,{emoji:e,parent:this.el}),this.el.appendChild(this.variantPopup.renderSync()),this.variantPopup.activate()}async emitEmoji(e){this.externalEvents.emit("emoji:select",await this.renderer.doEmit(e)),this.options.recentsProvider.addOrUpdateRecent(e,this.options.maxRecents),this.events.emit("recent:add",e)}updateOptions(e){Object.keys(e).forEach(i=>{this.updaters[i](e[i])}),Object.assign(this.options,e)}},R2=class{constructor({events:e,i18n:i,renderer:n,emojiData:r,options:o,customEmojis:s=[],pickerId:a}){this.events=e,this.i18n=i,this.renderer=n,this.emojiData=r,this.options=o,this.customEmojis=s,this.pickerId=a}setEmojiData(e){this.emojiData=Promise.resolve(e)}createWithOptions(e={},i,...n){let r=new i(...n);return r.setPickerId(this.pickerId),r.setEvents(this.events),r.setI18n(this.i18n),r.setRenderer(this.renderer),e.data!==!1&&r.setEmojiData(this.emojiData),r.setOptions(this.options),r.setCustomEmojis(this.customEmojis),r.viewFactory=this,r.initialize(),r}create(e,...i){return this.createWithOptions({},e,...i)}},cg,L2=class{constructor(e={}){mo(this,cg,void 0),n2(this,cg,new Map(Object.entries(e)))}get(e,i=e){return go(this,cg).get(e)||i}};cg=new WeakMap;function Hoe(t,e){e===void 0&&(e={});var i=e.insertAt;if(!(!t||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",i==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}function M2(){let t=!1;return function(e){xoe.injectStyles&&!t&&(Hoe(e),t=!0)}}var Goe=`.picmo__picker .picmo__icon{width:1.25em;height:1em;fill:currentColor}.picmo__icon-small{font-size:.8em}.picmo__icon-medium{font-size:1em}.picmo__icon-large{font-size:1.25em}.picmo__icon-2x{font-size:2em}.picmo__icon-3x{font-size:3em}.picmo__icon-4x{font-size:4em}.picmo__icon-5x{font-size:5em}.picmo__icon-8x{font-size:8em}.picmo__icon-10x{font-size:10em}.picmo__light,.picmo__auto{color-scheme:light;--accent-color: #4f46e5;--background-color: #f9fafb;--border-color: #cccccc;--category-name-background-color: #f9fafb;--category-name-button-color: #999999;--category-name-text-color: hsl(214, 30%, 50%);--category-tab-active-background-color: rgba(255, 255, 255, .6);--category-tab-active-color: var(--accent-color);--category-tab-color: #666;--category-tab-highlight-background-color: rgba(0, 0, 0, .15);--error-color-dark: hsl(0, 100%, 45%);--error-color: hsl(0, 100%, 40%);--focus-indicator-background-color: hsl(198, 65%, 85%);--focus-indicator-color: #333333;--hover-background-color: #c7d2fe;--placeholder-background-color: #cccccc;--search-background-color: #f9fafb;--search-focus-background-color: #ffffff;--search-icon-color: #999999;--search-placeholder-color: #71717a;--secondary-background-color: #e2e8f0;--secondary-text-color: #666666;--tag-background-color: rgba(162, 190, 245, .3);--text-color: #000000;--variant-popup-background-color: #ffffff}.picmo__dark{color-scheme:dark;--accent-color: #A580F9;--background-color: #333333;--border-color: #666666;--category-name-background-color: #333333;--category-name-button-color: #eeeeee;--category-name-text-color: #ffffff;--category-tab-active-background-color: #000000;--category-tab-active-color: var(--accent-color);--category-tab-color: #cccccc;--category-tab-highlight-background-color: #4A4A4A;--error-color-dark: hsl(0, 7%, 3%);--error-color: hsl(0, 30%, 60%);--focus-indicator-background-color: hsl(0, 0%, 50%);--focus-indicator-color: #999999;--hover-background-color: hsla(0, 0%, 40%, .85);--image-placeholder-color: #ffffff;--placeholder-background-color: #666666;--search-background-color: #71717a;--search-focus-background-color: #52525b;--search-icon-color: #cccccc;--search-placeholder-color: #d4d4d8;--secondary-background-color: #000000;--secondary-text-color: #999999;--tag-background-color: rgba(162, 190, 245, .3);--text-color: #ffffff;--variant-popup-background-color: #333333}@media (prefers-color-scheme: dark){.picmo__auto{color-scheme:dark;--accent-color: #A580F9;--background-color: #333333;--border-color: #666666;--category-name-background-color: #333333;--category-name-button-color: #eeeeee;--category-name-text-color: #ffffff;--category-tab-active-background-color: #000000;--category-tab-active-color: var(--accent-color);--category-tab-color: #cccccc;--category-tab-highlight-background-color: #4A4A4A;--error-color-dark: hsl(0, 7%, 3%);--error-color: hsl(0, 30%, 60%);--focus-indicator-background-color: hsl(0, 0%, 50%);--focus-indicator-color: #999999;--hover-background-color: hsla(0, 0%, 40%, .85);--image-placeholder-color: #ffffff;--placeholder-background-color: #666666;--search-background-color: #71717a;--search-focus-background-color: #52525b;--search-icon-color: #cccccc;--search-placeholder-color: #d4d4d8;--secondary-background-color: #000000;--secondary-text-color: #999999;--tag-background-color: rgba(162, 190, 245, .3);--text-color: #ffffff;--variant-popup-background-color: #333333}}.picmo__picker .picmo__categoryButtonsContainer{overflow:auto;padding:2px 0}.picmo__picker .picmo__categoryButtonsContainer.picmo__has-overflow-right{mask-image:linear-gradient(270deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%);-webkit-mask-image:linear-gradient(270deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%)}.picmo__picker .picmo__categoryButtonsContainer.picmo__has-overflow-left{mask-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%);-webkit-mask-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%)}.picmo__picker .picmo__categoryButtonsContainer.picmo__has-overflow-both{mask-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%,rgba(255,255,255,1) 90%,rgba(255,255,255,0) 100%);-webkit-mask-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 10%,rgba(255,255,255,1) 90%,rgba(255,255,255,0) 100%)}.picmo__picker .picmo__categoryButtons{display:flex;flex-direction:row;gap:var(--tab-gap);margin:0;padding:0 .5em;align-items:center;height:var(--category-tabs-height);box-sizing:border-box;width:100%;justify-content:space-between;position:relative;list-style-type:none;justify-self:center;max-width:min(23.55rem,calc(var(--category-count, 1) * 2.5rem))}.picmo__picker .picmo__categoryButtons .picmo__categoryTab{display:flex;align-items:center;transition:all .1s;width:2em}.picmo__picker .picmo__categoryButtons .picmo__categoryTab.picmo__categoryTabActive .picmo__categoryButton{color:var(--category-tab-active-color);background:linear-gradient(rgba(255,255,255,.75) 0%,rgba(255,255,255,.75) 100%),linear-gradient(var(--category-tab-active-color) 0%,var(--category-tab-active-color) 100%);border:2px solid var(--category-tab-active-color)}.picmo__picker .picmo__categoryButtons .picmo__categoryTab.picmo__categoryTabActive .picmo__categoryButton:hover{background-color:var(--category-tab-active-background-color)}.picmo__picker .picmo__categoryButtons .picmo__categoryTab button.picmo__categoryButton{border-radius:5px;background:transparent;border:2px solid transparent;color:var(--category-tab-color);cursor:pointer;padding:2px;vertical-align:middle;display:flex;align-items:center;justify-content:center;font-size:1.2rem;width:1.6em;height:1.6em;transition:all .1s}.picmo__picker .picmo__categoryButtons .picmo__categoryTab button.picmo__categoryButton:is(img){width:var(--category-tab-size);height:var(--category-tab-size)}.picmo__picker .picmo__categoryButtons .picmo__categoryTab button.picmo__categoryButton:hover{background:var(--category-tab-highlight-background-color)}.picmo__dataError [data-icon]{opacity:.8}@keyframes appear{0%{opacity:0}to{opacity:.8}}@keyframes appear-grow{0%{opacity:0;transform:scale(.8)}to{opacity:.8;transform:scale(1)}}.picmo__picker .picmo__error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--secondary-text-color)}.picmo__picker .picmo__error .picmo__iconContainer{opacity:.8;animation:appear-grow .25s cubic-bezier(.175,.885,.32,1.275);--color-primary: var(--error-color);--color-secondary: var(--error-color-dark)}.picmo__picker .picmo__error .picmo__title{animation:appear .25s;animation-delay:50ms;animation-fill-mode:both}.picmo__picker .picmo__error button{padding:8px 16px;cursor:pointer;background:var(--background-color);border:1px solid var(--text-color);border-radius:5px;color:var(--text-color)}.picmo__picker .picmo__error button:hover{background:var(--text-color);color:var(--background-color)}.picmo__emojiButton{background:transparent;border:none;border-radius:15px;cursor:pointer;display:flex;font-family:var(--emoji-font);font-size:var(--emoji-size);height:100%;justify-content:center;align-items:center;margin:0;overflow:hidden;padding:0;width:100%}.picmo__emojiButton:hover{background:var(--hover-background-color)}.picmo__emojiButton:focus{border-radius:0;background:var(--focus-indicator-background-color);outline:1px solid var(--focus-indicator-color)}.picmo__picker .picmo__emojiArea{height:var(--emoji-area-height);overflow-y:auto;position:relative}.picmo__picker .picmo__emojiCategory{position:relative}.picmo__picker .picmo__emojiCategory .picmo__categoryName{font-size:.9em;padding:.5rem;margin:0;background:var(--category-name-background-color);color:var(--category-name-text-color);top:0;z-index:1;display:grid;gap:4px;grid-template-columns:auto 1fr auto;align-items:center;line-height:1;box-sizing:border-box;height:var(--category-name-height);justify-content:flex-start;text-transform:uppercase}.picmo__picker .picmo__emojiCategory .picmo__categoryName button{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;color:var(--category-name-button-color)}.picmo__picker .picmo__emojiCategory .picmo__categoryName button:hover{opacity:1}.picmo__picker .picmo__emojiCategory .picmo__noRecents{color:var(--secondary-text-color);grid-column:1 / span var(--emojis-per-row);font-size:.9em;text-align:center;display:flex;align-items:center;justify-content:center;min-height:calc(var(--emoji-size) * var(--emoji-size-multiplier))}.picmo__picker .picmo__emojiCategory .picmo__recentEmojis[data-empty=true]{display:none}:is(.picmo__picker .picmo__emojiCategory) .picmo__recentEmojis[data-empty=false]+div{display:none}.picmo__picker .picmo__emojiContainer{display:grid;justify-content:space-between;gap:1px;padding:0 .5em;grid-template-columns:repeat(var(--emojis-per-row),calc(var(--emoji-size) * var(--emoji-size-multiplier)));grid-auto-rows:calc(var(--emoji-size) * var(--emoji-size-multiplier));align-items:center;justify-items:center}.picmo__picker.picmo__picker{--border-radius: 5px;--emoji-area-height: calc( (var(--row-count) * var(--emoji-size) * var(--emoji-size-multiplier)) + var(--category-name-height) );--content-height: var(--emoji-area-height);--emojis-per-row: 8;--row-count: 6;--emoji-preview-margin: 4px;--emoji-preview-height: calc(var(--emoji-preview-size) + 1em + 1px);--emoji-preview-height-full: calc(var(--emoji-preview-height) + var(--emoji-preview-margin));--emoji-preview-size: 2.75em;--emoji-size: 2rem;--emoji-size-multiplier: 1.3;--content-margin: 8px;--category-tabs-height:calc(1.5em + 9px);--category-tabs-offset: 8px;--category-tab-size: 1.2rem;--category-name-height: 2rem;--category-name-padding-y: 6px;--search-height: 2em;--search-margin: .5em;--search-margin-bottom: 4px;--search-height-full: calc(var(--search-height) + var(--search-margin) + var(--search-margin-bottom));--overlay-background-color: rgba(0, 0, 0, .8);--emoji-font: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "EmojiOne Color", "Android Emoji";--ui-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;--ui-font-size: 16px;--picker-width: calc(var(--emojis-per-row) * var(--emoji-size) * var(--emoji-size-multiplier) + 2.75rem);--preview-background-color: var(--secondary-background-color);background:var(--background-color);border-radius:var(--border-radius);border:1px solid var(--border-color);font-family:var(--ui-font);font-size:var(--ui-font-size);overflow:hidden;position:relative;width:var(--picker-width);display:grid;gap:8px}.picmo__picker.picmo__picker>*{font-family:var(--ui-font)}.picmo__picker.picmo__skeleton{background:var(--background-color);border-radius:var(--border-radius);border:1px solid var(--border-color);font-family:var(--ui-font);width:var(--picker-width);color:var(--secondary-text-color)}.picmo__picker.picmo__skeleton *{box-sizing:border-box}.picmo__picker.picmo__skeleton .picmo__placeholder{background:var(--placeholder-background-color);position:relative;overflow:hidden}.picmo__picker.picmo__skeleton .picmo__placeholder:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.2) 20%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 100%);animation:shine 2s infinite;content:""}.picmo__picker.picmo__skeleton .picmo__headerSkeleton{background-color:var(--secondary-background-color);padding-top:8px;padding-bottom:8px;display:flex;flex-direction:column;overflow:hidden;gap:8px;border-bottom:1px solid var(--border-color);width:var(--picker-width)}.picmo__picker.picmo__skeleton .picmo__searchSkeleton{padding:0 8px;height:var(--search-height)}.picmo__picker.picmo__skeleton .picmo__searchSkeleton .picmo__searchInput{width:100%;height:28px;border-radius:3px}.picmo__picker.picmo__skeleton .picmo__categoryTabsSkeleton{height:var(--category-tabs-height);display:flex;flex-direction:row;align-items:center;justify-self:center;width:calc(2rem * var(--category-count, 1))}.picmo__picker.picmo__skeleton .picmo__categoryTabsSkeleton .picmo__categoryTab{width:25px;height:25px;padding:2px;border-radius:5px;margin:.25em}.picmo__picker.picmo__skeleton .picmo__contentSkeleton{height:var(--content-height);padding-right:8px;opacity:.7}.picmo__picker.picmo__skeleton .picmo__contentSkeleton .picmo__categoryName{width:50%;height:1rem;margin:.5rem;box-sizing:border-box}.picmo__picker.picmo__skeleton .picmo__contentSkeleton .picmo__emojiGrid{display:grid;justify-content:space-between;gap:1px;padding:0 .5em;grid-template-columns:repeat(var(--emojis-per-row),calc(var(--emoji-size) * var(--emoji-size-multiplier)));grid-auto-rows:calc(var(--emoji-size) * var(--emoji-size-multiplier));align-items:center;justify-items:center;width:var(--picker-width)}.picmo__picker.picmo__skeleton .picmo__contentSkeleton .picmo__emojiGrid .picmo__emoji{width:var(--emoji-size);height:var(--emoji-size);border-radius:50%}.picmo__picker.picmo__skeleton .picmo__previewSkeleton{height:var(--emoji-preview-height);border-top:1px solid var(--border-color);display:grid;align-items:center;padding:.5em;gap:6px;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;grid-template-areas:"emoji name" "emoji tags"}.picmo__picker.picmo__skeleton .picmo__previewSkeleton .picmo__previewEmoji{grid-area:emoji;border-radius:50%;width:var(--emoji-preview-size);height:var(--emoji-preview-size)}.picmo__picker.picmo__skeleton .picmo__previewSkeleton .picmo__previewName{grid-area:name;height:.8em;width:80%}.picmo__picker.picmo__skeleton .picmo__previewSkeleton .picmo__tagList{grid-area:tags;list-style-type:none;display:flex;flex-direction:row;padding:0;margin:0}.picmo__picker.picmo__skeleton .picmo__previewSkeleton .picmo__tagList .picmo__tag{border-radius:3px;padding:2px 8px;margin-right:.25em;height:1em;width:20%}.picmo__overlay{background:rgba(0,0,0,.75);height:100%;left:0;position:fixed;top:0;width:100%;z-index:1000}.picmo__content{position:relative;overflow:hidden;height:var(--content-height)}.picmo__content.picmo__fullHeight{height:calc(var(--content-height) + var(--category-tabs-height) + var(--category-tabs-offset));overflow-y:auto}.picmo__pluginContainer{margin:.5em;display:flex;flex-direction:row}.picmo__header{background-color:var(--secondary-background-color);padding-top:8px;padding-bottom:8px;display:grid;gap:8px;border-bottom:1px solid var(--border-color)}@media (prefers-reduced-motion: reduce){.picmo__placeholder{background:var(--placeholder-background-color);position:relative;overflow:hidden}.picmo__placeholder:after{display:none}}.picmo__picker .picmo__preview{border-top:1px solid var(--border-color);display:grid;align-items:center;gap:6px;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;grid-template-areas:"emoji name" "emoji tags";height:var(--emoji-preview-height);box-sizing:border-box;padding:.5em;position:relative;background:var(--preview-background-color)}.picmo__picker .picmo__preview .picmo__previewEmoji{grid-area:emoji;font-size:var(--emoji-preview-size);font-family:var(--emoji-font);width:1.25em;display:flex;align-items:center;justify-content:center}.picmo__picker .picmo__preview .picmo__previewName{grid-area:name;color:var(--text-color);font-size:.8em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.picmo__picker .picmo__preview .picmo__tagList{grid-area:tags;list-style-type:none;display:flex;flex-direction:row;padding:0;margin:0;font-size:.75em;overflow:hidden}.picmo__picker .picmo__preview .picmo__tag{border-radius:3px;background:var(--tag-background-color);color:var(--text-color);padding:2px 8px;margin-right:.25em;white-space:nowrap}.picmo__picker .picmo__preview .picmo__tag:last-child{margin-right:0}.picmo__picker .picmo__searchContainer{display:flex;height:var(--search-height);box-sizing:border-box;padding:0 8px;position:relative}.picmo__picker .picmo__searchContainer .picmo__searchField{background:var(--search-background-color);border-radius:3px;border:none;box-sizing:border-box;color:var(--text-color);font-size:.9em;outline:none;padding:.5em 2.25em .5em .5em;width:100%}.picmo__picker .picmo__searchContainer .picmo__searchField:focus{background:var(--search-focus-background-color)}.picmo__picker .picmo__searchContainer .picmo__searchField::placeholder{color:var(--search-placeholder-color)}.picmo__picker .picmo__searchContainer .picmo__searchAccessory{color:var(--search-icon-color);height:100%;position:absolute;right:1em;top:0;width:1.25rem;display:flex;align-items:center}.picmo__picker .picmo__searchContainer .picmo__searchAccessory svg{fill:var(--search-icon-color)}.picmo__picker .picmo__searchContainer .picmo__clearButton{border:0;color:var(--search-icon-color);background:transparent;cursor:pointer}.picmo__picker .picmo__searchContainer .picmo__clearSearchButton{cursor:pointer;border:none;background:transparent;color:var(--search-icon-color);font-size:1em;width:100%;height:100%;display:flex;align-items:center;padding:0}.picmo__picker .picmo__searchContainer .picmo__notFound [data-icon]{fill:#f3e265}.picmo__picker .picmo__variantOverlay{background:var(--overlay-background-color);border-radius:5px;display:flex;flex-direction:column;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.picmo__picker .picmo__variantOverlay .picmo__variantPopup{background:var(--variant-popup-background-color);border-radius:5px;margin:.5em;padding:.5em;text-align:center;user-select:none;display:flex;align-items:center;justify-content:center}.picmo__customEmoji{width:1em;height:1em}@keyframes shine{to{transform:translate(100%)}}.picmo__picker .picmo__imagePlaceholder{width:2rem;height:2rem;border-radius:50%}.picmo__placeholder{background:#DDDBDD;position:relative}.picmo__placeholder:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.2) 20%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 100%);animation:shine 2s infinite;content:""}
|
||
`;function Koe(t){return RI(t.locale,t.dataStore,t.messages,t.emojiData)}var Joe=0,ig;function ese(){return`picmo-${Date.now()}-${Joe++}`}var tse=M2();function DI(t){tse(Goe);let e=U2(t),i=((e==null?void 0:e.custom)||[]).map(s=>Ee(F({},s),{custom:!0,tags:["custom",...s.tags||[]]})),n=new b2;ig||(ig=Koe(e));let r=new L2(e.i18n);ig.then(s=>{n.emit("data:ready",s)}).catch(s=>{n.emit("error",s)});let o=new R2({events:n,i18n:r,customEmojis:i,renderer:e.renderer,options:e,emojiData:ig,pickerId:ese()}).create(X2);return o.renderSync(),o}function Xa(t){return t.split("-")[0]}function fc(t){return t.split("-")[1]}function vg(t){return["top","bottom"].includes(Xa(t))?"x":"y"}function BI(t){return t==="y"?"height":"width"}function zI(t,e,i){let{reference:n,floating:r}=t,o=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2,a=vg(e),l=BI(a),c=n[l]/2-r[l]/2,u=Xa(e),f=a==="x",d;switch(u){case"top":d={x:o,y:n.y-r.height};break;case"bottom":d={x:o,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:s};break;case"left":d={x:n.x-r.width,y:s};break;default:d={x:n.x,y:n.y}}switch(fc(e)){case"start":d[a]-=c*(i&&f?-1:1);break;case"end":d[a]+=c*(i&&f?-1:1);break}return d}var ise=async(t,e,i)=>{let{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:s}=i,a=await(s.isRTL==null?void 0:s.isRTL(e)),l=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:u}=zI(l,n,a),f=n,d={},O=0;for(let m=0;m<o.length;m++){let{name:x,fn:v}=o[m],{x:w,y:T,data:Q,reset:I}=await v({x:c,y:u,initialPlacement:n,placement:f,strategy:r,middlewareData:d,rects:l,platform:s,elements:{reference:t,floating:e}});if(c=w!=null?w:c,u=T!=null?T:u,d=Ee(F({},d),{[x]:F(F({},d[x]),Q)}),I&&O<=50){O++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(l=I.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):I.rects),{x:c,y:u}=zI(l,f,a)),m=-1;continue}}return{x:c,y:u,placement:f,strategy:r,middlewareData:d}};function nse(t){return F({top:0,right:0,bottom:0,left:0},t)}function rse(t){return typeof t!="number"?nse(t):{top:t,right:t,bottom:t,left:t}}function gg(t){return Ee(F({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}async function W2(t,e){var i;e===void 0&&(e={});let{x:n,y:r,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:O=0}=e,m=rse(O),x=a[d?f==="floating"?"reference":"floating":f],v=gg(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(x)))==null||i?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),w=gg(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?Ee(F({},s.floating),{x:n,y:r}):s.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),strategy:l}):s[f]);return{top:v.top-w.top+m.top,bottom:w.bottom-v.bottom+m.bottom,left:v.left-w.left+m.left,right:w.right-v.right+m.right}}var ose=Math.min,sse=Math.max;function UI(t,e,i){return sse(t,ose(e,i))}var ase={left:"right",right:"left",bottom:"top",top:"bottom"};function bg(t){return t.replace(/left|right|bottom|top/g,e=>ase[e])}function YI(t,e,i){i===void 0&&(i=!1);let n=fc(t),r=vg(t),o=BI(r),s=r==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=bg(s)),{main:s,cross:bg(s)}}var lse={start:"end",end:"start"};function N2(t){return t.replace(/start|end/g,e=>lse[e])}var cse=["top","right","bottom","left"],use=cse.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);function fse(t,e,i){return(t?[...i.filter(n=>fc(n)===t),...i.filter(n=>fc(n)!==t)]:i.filter(n=>Xa(n)===n)).filter(n=>t?fc(n)===t||(e?N2(n)!==n:!1):!0)}var hse=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,n,r,o,s;let{x:a,y:l,rects:c,middlewareData:u,placement:f,platform:d,elements:O}=e,de=t,{alignment:m=null,allowedPlacements:x=use,autoAlignment:v=!0}=de,w=Ui(de,["alignment","allowedPlacements","autoAlignment"]),T=fse(m,v,x),Q=await W2(e,w),I=(i=(n=u.autoPlacement)==null?void 0:n.index)!=null?i:0,z=T[I];if(z==null)return{};let{main:$,cross:X}=YI(z,c,await(d.isRTL==null?void 0:d.isRTL(O.floating)));if(f!==z)return{x:a,y:l,reset:{placement:T[0]}};let Y=[Q[Xa(z)],Q[$],Q[X]],K=[...(r=(o=u.autoPlacement)==null?void 0:o.overflows)!=null?r:[],{placement:z,overflows:Y}],N=T[I+1];if(N)return{data:{index:I+1,overflows:K},reset:{placement:N}};let te=K.slice().sort((pe,ve)=>pe.overflows[0]-ve.overflows[0]),oe=(s=te.find(pe=>{let{overflows:ve}=pe;return ve.every(j=>j<=0)}))==null?void 0:s.placement,re=oe!=null?oe:te[0].placement;return re!==f?{data:{index:I+1,overflows:K},reset:{placement:re}}:{}}}};function dse(t){let e=bg(t);return[N2(t),e,N2(e)]}var Ose=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var i;let{placement:n,middlewareData:r,rects:o,initialPlacement:s,platform:a,elements:l}=e,Y=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:O=!0}=Y,m=Ui(Y,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),x=Xa(n),v=f||(x===s||!O?[bg(s)]:dse(s)),w=[s,...v],T=await W2(e,m),Q=[],I=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&Q.push(T[x]),u){let{main:K,cross:N}=YI(n,o,await(a.isRTL==null?void 0:a.isRTL(l.floating)));Q.push(T[K],T[N])}if(I=[...I,{placement:n,overflows:Q}],!Q.every(K=>K<=0)){var z,$;let K=((z=($=r.flip)==null?void 0:$.index)!=null?z:0)+1,N=w[K];if(N)return{data:{index:K,overflows:I},reset:{placement:N}};let te="bottom";switch(d){case"bestFit":{var X;let oe=(X=I.map(re=>[re,re.overflows.filter(de=>de>0).reduce((de,pe)=>de+pe,0)]).sort((re,de)=>re[1]-de[1])[0])==null?void 0:X[0].placement;oe&&(te=oe);break}case"initialPlacement":te=s;break}if(n!==te)return{reset:{placement:te}}}return{}}}};async function pse(t,e){let{placement:i,platform:n,elements:r}=t,o=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Xa(i),a=fc(i),l=vg(i)==="x",c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,f=typeof e=="function"?e(t):e,{mainAxis:d,crossAxis:O,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:F({mainAxis:0,crossAxis:0,alignmentAxis:null},f);return a&&typeof m=="number"&&(O=a==="end"?m*-1:m),l?{x:O*u,y:d*c}:{x:d*c,y:O*u}}var MI=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){let{x:i,y:n}=e,r=await pse(e,t);return{x:i+r.x,y:n+r.y,data:r}}}};function mse(t){return t==="x"?"y":"x"}var NI=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:n,placement:r}=e,v=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:T,y:Q}=w;return{x:T,y:Q}}}}=v,l=Ui(v,["mainAxis","crossAxis","limiter"]),c={x:i,y:n},u=await W2(e,l),f=vg(Xa(r)),d=mse(f),O=c[f],m=c[d];if(o){let w=f==="y"?"top":"left",T=f==="y"?"bottom":"right",Q=O+u[w],I=O-u[T];O=UI(Q,O,I)}if(s){let w=d==="y"?"top":"left",T=d==="y"?"bottom":"right",Q=m+u[w],I=m-u[T];m=UI(Q,m,I)}let x=a.fn(Ee(F({},e),{[f]:O,[d]:m}));return Ee(F({},x),{data:{x:x.x-i,y:x.y-n}})}}};function FI(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function xo(t){if(t==null)return window;if(!FI(t)){let e=t.ownerDocument;return e&&e.defaultView||window}return t}function Tr(t){return xo(t).getComputedStyle(t)}function bo(t){return FI(t)?"":t?(t.nodeName||"").toLowerCase():""}function HI(){let t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function Er(t){return t instanceof xo(t).HTMLElement}function bs(t){return t instanceof xo(t).Element}function gse(t){return t instanceof xo(t).Node}function hc(t){if(typeof ShadowRoot>"u")return!1;let e=xo(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function wg(t){let{overflow:e,overflowX:i,overflowY:n}=Tr(t);return/auto|scroll|overlay|hidden/.test(e+n+i)}function bse(t){return["table","td","th"].includes(bo(t))}function GI(t){let e=/firefox/i.test(HI()),i=Tr(t);return i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].includes(i.willChange)||e&&i.willChange==="filter"||e&&(i.filter?i.filter!=="none":!1)}function KI(){return!/^((?!chrome|android).)*safari/i.test(HI())}var qI=Math.min,Sh=Math.max,yg=Math.round;function yo(t,e,i){var n,r,o,s;e===void 0&&(e=!1),i===void 0&&(i=!1);let a=t.getBoundingClientRect(),l=1,c=1;e&&Er(t)&&(l=t.offsetWidth>0&&yg(a.width)/t.offsetWidth||1,c=t.offsetHeight>0&&yg(a.height)/t.offsetHeight||1);let u=bs(t)?xo(t):window,f=!KI()&&i,d=(a.left+(f&&(n=(r=u.visualViewport)==null?void 0:r.offsetLeft)!=null?n:0))/l,O=(a.top+(f&&(o=(s=u.visualViewport)==null?void 0:s.offsetTop)!=null?o:0))/c,m=a.width/l,x=a.height/c;return{width:m,height:x,top:O,right:d+m,bottom:O+x,left:d,x:d,y:O}}function ys(t){return((gse(t)?t.ownerDocument:t.document)||window.document).documentElement}function kg(t){return bs(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function JI(t){return yo(ys(t)).left+kg(t).scrollLeft}function yse(t){let e=yo(t);return yg(e.width)!==t.offsetWidth||yg(e.height)!==t.offsetHeight}function xse(t,e,i){let n=Er(e),r=ys(e),o=yo(t,n&&yse(e),i==="fixed"),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(n||!n&&i!=="fixed")if((bo(e)!=="body"||wg(r))&&(s=kg(e)),Er(e)){let l=yo(e,!0);a.x=l.x+e.clientLeft,a.y=l.y+e.clientTop}else r&&(a.x=JI(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function e7(t){return bo(t)==="html"?t:t.assignedSlot||t.parentNode||(hc(t)?t.host:null)||ys(t)}function jI(t){return!Er(t)||Tr(t).position==="fixed"?null:vse(t)}function vse(t){let{offsetParent:e}=t,i=t,n=!1;for(;i&&i!==e;){let{assignedSlot:r}=i;if(r){let o=r.offsetParent;if(Tr(r).display==="contents"){let s=r.hasAttribute("style"),a=r.style.display;r.style.display=Tr(i).display,o=r.offsetParent,r.style.display=a,s||r.removeAttribute("style")}i=r,e!==o&&(e=o,n=!0)}else if(hc(i)&&i.host&&n)break;i=hc(i)&&i.host||i.parentNode}return e}function wse(t){let e=e7(t);for(hc(e)&&(e=e.host);Er(e)&&!["html","body"].includes(bo(e));){if(GI(e))return e;{let i=e.parentNode;e=hc(i)?i.host:i}}return null}function q2(t){let e=xo(t),i=jI(t);for(;i&&bse(i)&&Tr(i).position==="static";)i=jI(i);return i&&(bo(i)==="html"||bo(i)==="body"&&Tr(i).position==="static"&&!GI(i))?e:i||wse(t)||e}function WI(t){if(Er(t))return{width:t.offsetWidth,height:t.offsetHeight};let e=yo(t);return{width:e.width,height:e.height}}function kse(t){let{rect:e,offsetParent:i,strategy:n}=t,r=Er(i),o=ys(i);if(i===o)return e;let s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if((r||!r&&n!=="fixed")&&((bo(i)!=="body"||wg(o))&&(s=kg(i)),Er(i))){let l=yo(i,!0);a.x=l.x+i.clientLeft,a.y=l.y+i.clientTop}return Ee(F({},e),{x:e.x-s.scrollLeft+a.x,y:e.y-s.scrollTop+a.y})}function Sse(t,e){let i=xo(t),n=ys(t),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;let c=KI();(c||!c&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a,y:l}}function Tse(t){var e;let i=ys(t),n=kg(t),r=(e=t.ownerDocument)==null?void 0:e.body,o=Sh(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Sh(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+JI(t),l=-n.scrollTop;return Tr(r||i).direction==="rtl"&&(a+=Sh(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function t7(t){let e=e7(t);return["html","body","#document"].includes(bo(e))?t.ownerDocument.body:Er(e)&&wg(e)?e:t7(e)}function xg(t,e){var i;e===void 0&&(e=[]);let n=t7(t),r=n===((i=t.ownerDocument)==null?void 0:i.body),o=xo(n),s=r?[o].concat(o.visualViewport||[],wg(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(xg(s))}function Ese(t,e){let i=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(i&&hc(i)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function Cse(t,e){let i=yo(t,!1,e==="fixed"),n=i.top+t.clientTop,r=i.left+t.clientLeft;return{top:n,left:r,x:r,y:n,right:r+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function VI(t,e,i){return e==="viewport"?gg(Sse(t,i)):bs(e)?Cse(e,i):gg(Tse(ys(t)))}function Pse(t){let e=xg(t),i=["absolute","fixed"].includes(Tr(t).position)&&Er(t)?q2(t):t;return bs(i)?e.filter(n=>bs(n)&&Ese(n,i)&&bo(n)!=="body"):[]}function Qse(t){let{element:e,boundary:i,rootBoundary:n,strategy:r}=t,o=[...i==="clippingAncestors"?Pse(e):[].concat(i),n],s=o[0],a=o.reduce((l,c)=>{let u=VI(e,c,r);return l.top=Sh(u.top,l.top),l.right=qI(u.right,l.right),l.bottom=qI(u.bottom,l.bottom),l.left=Sh(u.left,l.left),l},VI(e,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}var _se={getClippingRect:Qse,convertOffsetParentRelativeRectToViewportRelativeRect:kse,isElement:bs,getDimensions:WI,getOffsetParent:q2,getDocumentElement:ys,getElementRects:t=>{let{reference:e,floating:i,strategy:n}=t;return{reference:xse(e,q2(i),n),floating:Ee(F({},WI(i)),{x:0,y:0})}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Tr(t).direction==="rtl"};function Ase(t,e,i,n){n===void 0&&(n={});let{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=!0,animationFrame:a=!1}=n,l=r&&!a,c=o&&!a,u=l||c?[...bs(t)?xg(t):[],...xg(e)]:[];u.forEach(x=>{l&&x.addEventListener("scroll",i,{passive:!0}),c&&x.addEventListener("resize",i)});let f=null;if(s){let x=!0;f=new ResizeObserver(()=>{x||i(),x=!1}),bs(t)&&!a&&f.observe(t),f.observe(e)}let d,O=a?yo(t):null;a&&m();function m(){let x=yo(t);O&&(x.x!==O.x||x.y!==O.y||x.width!==O.width||x.height!==O.height)&&i(),O=x,d=requestAnimationFrame(m)}return i(),()=>{var x;u.forEach(v=>{l&&v.removeEventListener("scroll",i),c&&v.removeEventListener("resize",i)}),(x=f)==null||x.disconnect(),f=null,a&&cancelAnimationFrame(d)}}var $se=(t,e,i)=>ise(t,e,F({platform:_se},i));async function Xse(t,e,i,n){if(!n)throw new Error("Must provide a positioning option");return await(typeof n=="string"?Rse(t,e,i,n):Lse(e,n))}async function Rse(t,e,i,n){if(!i)throw new Error("Reference element is required for relative positioning");let r;return n==="auto"?r={middleware:[hse(),NI(),MI({mainAxis:5,crossAxis:12})]}:r={placement:n,middleware:[Ose(),NI(),MI(5)]},Ase(i,e,async()=>{if((!i.isConnected||!i.offsetParent)&&Ise(t))return;let{x:o,y:s}=await $se(i,e,r);Object.assign(e.style,{position:"absolute",left:`${o}px`,top:`${s}px`})})}function Lse(t,e){return t.style.position="fixed",Object.entries(e).forEach(([i,n])=>{t.style[i]=n}),()=>{}}function Ise(t){switch(t.options.onPositionLost){case"close":return t.close(),!0;case"destroy":return t.destroy(),!0;case"hold":return!0}}var Dse={hideOnClickOutside:!0,hideOnEmojiSelect:!0,hideOnEscape:!0,position:"auto",showCloseButton:!0,onPositionLost:"none"};function zse(t={}){return F(Ee(F({},Dse),{rootElement:document.body}),t)}var Use='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/></svg>',ZI=gi("popupContainer","closeButton"),j2=class{constructor(e,i){this.isOpen=!1,this.externalEvents=new Aa,this.options=F(F({},zse(i)),U2(e)),this.popupEl=document.createElement("div"),this.popupEl.classList.add(ZI.popupContainer),this.popupEl.classList.add(this.options.theme),i.className&&this.popupEl.classList.add(i.className),this.options.showCloseButton&&(this.closeButton=document.createElement("button"),this.closeButton.type="button",this.closeButton.classList.add(ZI.closeButton),this.closeButton.innerHTML=Use,this.closeButton.addEventListener("click",()=>{this.close()}),this.popupEl.appendChild(this.closeButton));let n=document.createElement("div");this.popupEl.appendChild(n),this.picker=DI(Ee(F({},this.options),{rootElement:n})),this.focusTrap=new vh,this.picker.addEventListener("data:ready",()=>{this.focusTrap.activate(this.picker.el),this.picker.setInitialFocus()}),this.options.hideOnEmojiSelect&&this.picker.addEventListener("emoji:select",()=>{var r;this.close(),(r=this.triggerElement)==null||r.focus()}),this.options.hideOnClickOutside&&(this.onDocumentClick=this.onDocumentClick.bind(this),document.addEventListener("click",this.onDocumentClick)),this.options.hideOnEscape&&(this.handleKeydown=this.handleKeydown.bind(this),this.popupEl.addEventListener("keydown",this.handleKeydown)),this.referenceElement=this.options.referenceElement,this.triggerElement=this.options.triggerElement}addEventListener(e,i){this.externalEvents.on(e,i),this.picker.addEventListener(e,i)}removeEventListener(e,i){this.externalEvents.off(e,i),this.picker.removeEventListener(e,i)}handleKeydown(e){var i;e.key==="Escape"&&(this.close(),(i=this.triggerElement)==null||i.focus())}async destroy(){this.isOpen&&await this.close(),document.removeEventListener("click",this.onDocumentClick),this.picker.destroy(),this.externalEvents.removeAll()}toggle(e){return this.isOpen?this.close():this.open(e)}async open({triggerElement:e,referenceElement:i}={}){this.isOpen||(e&&(this.triggerElement=e),i&&(this.referenceElement=i),await this.initiateOpenStateChange(!0),this.popupEl.style.opacity="0",this.options.rootElement.appendChild(this.popupEl),await this.setPosition(),this.picker.reset(!1),await this.animatePopup(!0),await this.animateCloseButton(!0),this.picker.setInitialFocus(),this.externalEvents.emit("picker:open"))}async close(){var e;!this.isOpen||(await this.initiateOpenStateChange(!1),await this.animateCloseButton(!1),await this.animatePopup(!1),this.popupEl.remove(),this.picker.reset(),(e=this.positionCleanup)==null||e.call(this),this.focusTrap.deactivate(),this.externalEvents.emit("picker:close"))}getRunningAnimations(){return this.picker.el.getAnimations().filter(e=>e.playState==="running")}async setPosition(){var e;(e=this.positionCleanup)==null||e.call(this),this.positionCleanup=await Xse(this,this.popupEl,this.referenceElement,this.options.position)}awaitPendingAnimations(){return Promise.all(this.getRunningAnimations().map(e=>e.finished))}onDocumentClick(e){var i;let n=e.target,r=(i=this.triggerElement)==null?void 0:i.contains(n);this.isOpen&&!this.picker.isPickerClick(e)&&!r&&this.close()}animatePopup(e){return Qa(this.popupEl,{opacity:[0,1],transform:["scale(0.9)","scale(1)"]},{duration:150,id:e?"show-picker":"hide-picker",easing:"ease-in-out",direction:e?"normal":"reverse",fill:"both"},this.options)}animateCloseButton(e){if(this.closeButton)return Qa(this.closeButton,{opacity:[0,1]},{duration:25,id:e?"show-close":"hide-close",easing:"ease-in-out",direction:e?"normal":"reverse",fill:"both"},this.options)}async initiateOpenStateChange(e){this.isOpen=e,await this.awaitPendingAnimations()}},Mse=`.picmo__popupContainer{display:flex;flex-direction:column;position:absolute}.picmo__popupContainer .picmo__closeButton{position:absolute;opacity:0;background:transparent;border:none;z-index:1;right:0;top:0;cursor:pointer;padding:4px;align-self:flex-end;transform:translate(50%,-50%);background:#999999;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;border-radius:50%}.picmo__popupContainer .picmo__closeButton:hover{background:var(--accent-color)}.picmo__popupContainer .picmo__closeButton svg{fill:#fff;width:1.25rem;height:1.25rem}
|
||
`,Nse=M2();function i7(t,e){return Nse(Mse),new j2(F({autoFocus:"auto"},t),e)}var qse={mounted(){let t=this.el.querySelector("[data-emoji-button]"),e=this.el.querySelector("[data-emoji-preview]"),i=this.el.querySelector("[data-emoji-input]"),n=i7({showPreview:!1},{triggerElement:t,referenceElement:t,position:"bottom"});n.addEventListener("emoji:select",({emoji:r})=>{e.innerHTML=r,i.value=r}),t.addEventListener("click",r=>{n.toggle()})}},n7=qse;var jse={mounted(){this.focus()},updated(){this.el!==document.activeElement&&this.focus()},focus(){us(document.activeElement)||(this.el.focus(),this.el.selectionStart=this.el.selectionEnd=this.el.value.length,this.el.scrollLeft=this.el.scrollWidth)}},r7=jse;var Wse={mounted(){this.props=this.getProps(),this.isFocused=!1,this.insertMode=!1,this.initializeHeadingEl(),this.subscriptions=[lt.subscribe("navigation:focus_changed",({focusableId:t,scroll:e})=>this.handleElementFocused(t,e)),lt.subscribe("navigation:insert_mode_changed",({enabled:t})=>this.handleInsertModeChanged(t))]},updated(){this.props=this.getProps(),this.initializeHeadingEl()},destroyed(){this.subscriptions.forEach(t=>t.destroy())},getProps(){return pt(this.el,["id","on-value-change","metadata"])},initializeHeadingEl(){let t=this.el.querySelector("[data-el-heading]");t!==this.headingEl&&(this.headingEl=t,this.headingEl.addEventListener("paste",e=>{e.preventDefault();let i=e.clipboardData.getData("text/plain").replace(`
|
||
`," ");document.execCommand("insertText",!1,i)}),this.headingEl.addEventListener("keydown",e=>{e.key==="Enter"&&e.preventDefault()}),this.headingEl.addEventListener("blur",e=>{setTimeout(()=>{this.isFocused&&this.insertMode&&(this.headingEl.focus(),o7(this.headingEl))},0)}))},handleElementFocused(t,e){this.props.id===t?(this.isFocused=!0,this.el.setAttribute("data-js-focused",""),e&&ya(this.el)):this.isFocused&&(this.isFocused=!1,this.el.removeAttribute("data-js-focused"))},handleInsertModeChanged(t){this.isFocused&&!this.insertMode&&t?(this.insertMode=t,this.el.setAttribute("phx-update","ignore"),this.headingEl.setAttribute("contenteditable",""),this.headingEl.focus(),o7(this.headingEl)):this.insertMode&&!t&&(this.insertMode=t,this.headingEl.removeAttribute("contenteditable"),this.el.removeAttribute("phx-update"),this.pushEvent(this.props.onValueChange,{value:this.headingEl.textContent.trim(),metadata:this.props.metadata}))}};function o7(t){let e=document.createRange();e.selectNodeContents(t),e.collapse(!1);let i=window.getSelection();i.removeAllRanges(),i.addRange(e)}var s7=Wse;var Vse={mounted(){this.props=this.getProps(),this.sourceEl=ho(this.el,"[data-source]"),this.targetEl=ho(this.el,"[data-target]"),this.updateDOM()},updated(){this.props=this.getProps(),this.updateDOM()},getProps(){return pt(this.el,["language"])},updateDOM(){let t=this.sourceEl.innerText,e=gm(t,this.props.language);this.targetEl.innerHTML=e,this.sourceEl.style.display="none"}},a7=Vse;var V2=["bg-yellow-100","border-yellow-300"],Zse={mounted(){this.props=this.getProps(),this.inputEl=this.el.querySelector("[data-input]"),this.previewEl=this.el.querySelector("[data-preview]"),this.initialPreviewContentEl=this.previewEl.firstElementChild,this.cameraPreviewEl=this.el.querySelector("[data-camera-preview]"),this.cameraListEl=this.el.querySelector("[data-camera-list]"),this.cameraItemTemplateEl=this.cameraListEl.firstElementChild,this.cameraItemTemplateEl.remove(),this.uploadButton=this.el.querySelector("[data-btn-upload]"),this.openCameraButton=this.el.querySelector("[data-btn-open-camera]"),this.captureCameraButton=this.el.querySelector("[data-btn-capture-camera]"),this.cancelButton=this.el.querySelector("[data-btn-cancel]"),this.cameraListPopulated=!1,this.cameraVideoEl=null,this.cameraStream=null,this.updateImagePreview(),this.uploadButton.addEventListener("click",t=>{this.inputEl.click()}),this.inputEl.addEventListener("change",t=>{let[e]=t.target.files;e&&this.loadFile(e)}),this.el.addEventListener("dragover",t=>{t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}),this.el.addEventListener("drop",t=>{t.stopPropagation(),t.preventDefault();let[e]=t.dataTransfer.files;e&&this.loadFile(e),this.closeCameraView()}),this.el.addEventListener("dragenter",t=>{this.el.classList.add(...V2)}),this.el.addEventListener("dragleave",t=>{this.el.contains(t.relatedTarget)||this.el.classList.remove(...V2)}),this.el.addEventListener("drop",t=>{this.el.classList.remove(...V2)}),this.openCameraButton.addEventListener("click",t=>{this.cameraListPopulated||(this.renderCameraList(),this.cameraListPopulated=!0)}),this.cameraListEl.addEventListener("click",t=>{let e=t.target.closest("[data-camera-id]");if(e){let i=e.dataset.cameraId;this.openCameraView(i)}}),this.captureCameraButton.addEventListener("click",t=>{let e=this.toCanvas(this.cameraVideoEl,this.cameraVideoEl.videoWidth,this.cameraVideoEl.videoHeight);this.pushImage(e),this.closeCameraView()}),this.cancelButton.addEventListener("click",t=>{this.closeCameraView()})},updated(){this.props=this.getProps(),this.updateImagePreview()},getProps(){return pt(this.el,["id","phx-target","height","width","format","fit","image-url","value-height","value-width"])},updateImagePreview(){this.props.imageUrl?Fse(this.props.imageUrl,this.props.valueHeight,this.props.valueWidth,this.props.format).then(t=>{this.setPreview(t)}):this.setPreview(this.initialPreviewContentEl)},loadFile(t){let e=new FileReader;e.onload=i=>{let n=document.createElement("img");n.addEventListener("load",r=>{let o=this.toCanvas(n,n.width,n.height);this.pushImage(o)}),n.src=i.target.result},e.readAsDataURL(t)},openCameraView(t){this.cameraPreviewEl.classList.remove("hidden"),this.cancelButton.classList.remove("hidden"),this.captureCameraButton.classList.remove("hidden"),this.previewEl.classList.add("hidden"),this.openCameraButton.classList.add("hidden"),this.uploadButton.classList.add("hidden"),navigator.mediaDevices.getUserMedia(this.cameraConstraints(t)).then(e=>{this.cameraStream=e,this.cameraVideoEl=document.createElement("video"),this.cameraVideoEl.autoplay=!0,this.cameraVideoEl.playsinline=!0,this.cameraVideoEl.muted=!0,this.cameraVideoEl.srcObject=e,this.setCameraPreview(this.cameraVideoEl)}).catch(()=>{})},cameraConstraints(t){return t==="system_default"?{audio:!1,video:!0}:{audio:!1,video:{deviceId:t}}},renderCameraList(){navigator.mediaDevices.getUserMedia({audio:!1,video:!0}).then(t=>navigator.mediaDevices.enumerateDevices().then(e=>(this.stopMediaStream(t),e))).then(t=>{let e=t.filter(i=>i.kind==="videoinput").map(i=>({deviceId:i.deviceId,label:i.label}));[{deviceId:"system_default",label:"System Default"},...e].forEach(({deviceId:i,label:n})=>{let r=this.cameraItemTemplateEl.cloneNode(!0);r.querySelector("[data-camera-id]").setAttribute("data-camera-id",i),r.querySelector("[data-label]").innerHTML=n,this.cameraListEl.appendChild(r)})}).catch(t=>{console.error(t),this.openCameraButton.disabled=!0})},closeCameraView(){return this.cameraStream!==null&&(this.stopMediaStream(this.cameraStream),this.cameraStream=null),this.cameraVideoEl!==null&&(this.cameraVideoEl.remove(),this.cameraVideoEl=null),this.cameraPreviewEl.classList.add("hidden"),this.cancelButton.classList.add("hidden"),this.captureCameraButton.classList.add("hidden"),this.previewEl.classList.remove("hidden"),this.openCameraButton.classList.remove("hidden"),this.uploadButton.classList.remove("hidden"),!0},stopMediaStream(t){t.getTracks().forEach(e=>{e.stop()})},pushImage(t){Bse(t,this.props.format).then(e=>{let i={height:t.height,width:t.width},n=new Blob([e]);n.meta=()=>i,this.uploadTo(this.props.phxTarget,"file",[n])})},toCanvas(t,e,i){let{width:n,height:r}=this.props,o=document.createElement("canvas"),s=o.getContext("2d");if(n===null&&r===null||n===e&&r===i)o.width=e,o.height=i,o.getContext("2d").drawImage(t,0,0,e,i,0,0,e,i);else if(this.props.fit==="contain"){let a=n/e,l=r/i,c=Math.min(a,l),u=Math.round(e*c),f=Math.round(i*c);o.width=u,o.height=f,s.drawImage(t,0,0,e,i,0,0,u,f)}else if(this.props.fit==="crop"){let a=n/e,l=r/i,c=Math.max(a,l),u=Math.round(e*c),f=Math.round(i*c);o.width=n,o.height=r,s.drawImage(t,Math.round((u-n)/c/2),Math.round((f-r)/c/2),e-Math.round((u-n)/c),i-Math.round((f-r)/c),0,0,n,r)}else if(this.props.fit==="pad"){let a=n/e,l=r/i,c=Math.min(a,l),u=Math.round(e*c),f=Math.round(i*c);o.width=n,o.height=r,s.fillStyle="black",s.fillRect(0,0,o.width,o.height),s.drawImage(t,0,0,e,i,Math.round((n-u)/2),Math.round((r-f)/2),u,f)}else o.width=n,o.height=r,s.drawImage(t,0,0,e,i,0,0,n,r);return o},setPreview(t){t.style.maxHeight="300px",t.style.maxWidth="100%",this.previewEl.replaceChildren(t)},setCameraPreview(t){t.style.maxHeight="300px",t.style.maxWidth="100%",this.cameraPreviewEl.replaceChildren(t)}};function Bse(t,e){if(e==="png"||e==="jpeg")return new Promise((i,n)=>{t.toBlob(r=>{r.arrayBuffer().then(o=>{i(o)})},`image/${e}`)});if(e==="rgb"){let i=t.getContext("2d").getImageData(0,0,t.width,t.height),n=Yse(i);return Promise.resolve(n)}throw new Error(`Unexpected format: ${e}`)}function Yse(t){let e=t.width*t.height,i=new Uint8ClampedArray(e*3);for(let n=0;n<e;n++)i[n*3]=t.data[n*4],i[n*3+1]=t.data[n*4+1],i[n*3+2]=t.data[n*4+2];return i.buffer}function Fse(t,e,i,n){if(n==="png"||n==="jpeg"){let r=document.createElement("img");return r.src=t,Promise.resolve(r)}if(n==="rgb")return fetch(t).then(r=>r.arrayBuffer()).then(r=>{let o=document.createElement("canvas");o.height=e,o.width=i;let s=Hse(r,i,e);return o.getContext("2d").putImageData(s,0,0),o});throw new Error(`Unexpected format: ${n}`)}function Hse(t,e,i){let n=e*i,r=new Uint8Array(t),o=new Uint8ClampedArray(n*4);for(let s=0;s<n;s++)o[s*4]=r[s*3],o[s*4+1]=r[s*3+1],o[s*4+2]=r[s*3+2],o[s*4+3]=255;return new ImageData(o,e,i)}var l7=Zse;var Gse={mounted(){this.updateSrc()},updated(){this.updateSrc()},updateSrc(){let t=this.el.src,e="data:image/x-pixel;base64,",i=t.slice(e.length);if(t.startsWith(e)){let n=i6(i),r=new DataView(n),o=r.getUint32(0,!1),s=r.getUint32(4,!1),a=r.getUint8(8),l=n.slice(9),c=Kse(l,s,o,a),u=document.createElement("canvas");u.height=o,u.width=s,u.getContext("2d").putImageData(c,0,0);let f=u.toDataURL("image/png");this.el.src=f}}};function Kse(t,e,i,n){let r=e*i,o=new Uint8Array(t),s=new Uint8ClampedArray(r*4);for(let a=0;a<r;a++)n===1?(s[a*4]=o[a],s[a*4+1]=o[a],s[a*4+2]=o[a],s[a*4+3]=255):n===2?(s[a*4]=o[a*2],s[a*4+1]=o[a*2],s[a*4+2]=o[a*2],s[a*4+3]=o[a*2+1]):n===3?(s[a*4]=o[a*3],s[a*4+1]=o[a*3+1],s[a*4+2]=o[a*3+2],s[a*4+3]=255):n===4&&(s[a*4]=o[a*4],s[a*4+1]=o[a*4+1],s[a*4+2]=o[a*4+2],s[a*4+3]=o[a*4+3]);return new ImageData(s,e,i)}var c7=Gse;var Jse=document.querySelector("meta[name='csrf-token']").getAttribute("content"),Z2=new Rh(window.LIVEBOOK_BASE_URL_PATH+"/socket",{params:{_csrf_token:Jse}}),Ra=null;function u7(t){return Ra||(Z2.connect(),Ra=Z2.channel("js_view",{session_token:t}),Ra.join()),Ra}function f7(){Ra&&(Ra.leave(),Ra=null,Z2.disconnect())}function h7(t,e){if(Array.isArray(e)&&e[1]&&e[1].constructor===ArrayBuffer){let[i,n]=e;return yT([t,i],n)}else return{root:[t,e]}}function B2(t){if(t.constructor===ArrayBuffer){let[[e,i],n]=xT(t);return[e,[i,n]]}else{let{root:[e,i]}=t;return[e,i]}}var d7="wcqj5QWCo66osdAWDnEgPRFyL7nfe8oNqNggnw4vvW8=";function O7(t,e,i){let n=eae(e,i);return tae(n).then(()=>{t.sandbox="allow-scripts allow-same-origin allow-downloads allow-forms allow-modals allow-popups allow-top-navigation",t.allow="accelerometer; ambient-light-sensor; camera; display-capture; encrypted-media; fullscreen; geolocation; gyroscope; microphone; midi; usb; xr-spatial-tracking; clipboard-read; clipboard-write; bluetooth; serial",t.src=n})}function eae(t,e){let i=window.location.protocol;return e?e.replace(/^https?:/,i):i==="https:"?"https://livebookusercontent.com/iframe/v5.html":`http://${window.location.hostname}:${t}/iframe/v5.html`}var Y2=null;function tae(t){return Y2||(Y2=fetch(t).then(e=>e.text()).then(e=>{if(t6(e)!==d7)throw new Error(`The iframe loaded from ${t} doesn't have the expected checksum ${d7}`)})),Y2}var iae={mounted(){this.props=this.getProps(),this.id=KR(),this.childToken=JR(),this.childReadyPromise=null,this.childReady=!1,this.initReceived=!1,this.syncCallbackQueue=[],this.pongCallbackQueue=[],this.channel=u7(this.props.sessionToken),this.iframeActions=this.createIframe(),this.childReadyPromise=new Promise((r,o)=>{this._handleWindowMessage=s=>{s.source===this.iframe.contentWindow&&this.handleChildMessage(s.data,r)},window.addEventListener("message",this._handleWindowMessage)}),this.hiddenInput=document.createElement("input"),this.hiddenInput.style.display="none",this.el.appendChild(this.hiddenInput),this.iframeActions.visibilityPromise.then(()=>{this.loadIframe()});let t=this.channel.on(`init:${this.props.ref}:${this.id}`,r=>{let[[o],s]=B2(r);this.removeSkeleton(),o?this.handleServerInit(s):this.handleInitUnreachable()}),e=this.channel.on(`event:${this.props.ref}`,r=>{let[[o],s]=B2(r);this.handleServerEvent(o,s)}),i=this.channel.on(`error:${this.props.ref}`,({message:r,init:o})=>{o&&this.removeSkeleton(),this.handleServerError(r)}),n=this.channel.on(`pong:${this.props.ref}`,()=>{this.handleServerPong()});this.unsubscribeFromChannelEvents=()=>{this.channel.off(`init:${this.props.ref}:${this.id}`,t),this.channel.off(`event:${this.props.ref}`,e),this.channel.off(`error:${this.props.ref}`,i),this.channel.off(`pong:${this.props.ref}`,n)},this.subscriptions=[lt.subscribe(`js_views:${this.props.ref}:sync`,({callback:r})=>this.handleSync(r)),lt.subscribe(`js_views:${this.props.ref}:secret_selected`,({secretName:r})=>this.handleSecretSelected(r)),lt.subscribe("navigation:focus_changed",({focusableId:r})=>this.handleElementFocused(r))],this.channel.push("connect",{connect_token:this.props.connectToken,ref:this.props.ref,id:this.id},3e4)},updated(){this.props=this.getProps(this)},disconnected(){this.el.removeAttribute("id")},destroyed(){window.removeEventListener("message",this._handleWindowMessage),this.iframeActions.remove(),this.unsubscribeFromChannelEvents(),this.channel.push("disconnect",{ref:this.props.ref}),this.subscriptions.forEach(t=>t.destroy())},getProps(){return pt(this.el,["ref","assets-base-path","assets-cdn-url","js-path","session-token","connect-token","iframe-port","iframe-url","unreachable-message"])},createIframe(){this.iframePlaceholder=document.createElement("div"),this.el.appendChild(this.iframePlaceholder),this.iframe=document.createElement("iframe"),this.iframe.className="w-full h-0 absolute z-[1]";let t=document.querySelector("[data-el-notebook]"),e=t.querySelector("[data-el-notebook-content]"),i=new ResizeObserver(l=>{this.repositionIframe()});i.observe(e),i.observe(t);let n=Sr(this.iframePlaceholder),r=new ResizeObserver(l=>{let c=Sr(this.iframePlaceholder);n!==c&&(n=c,this.repositionIframe())});r.observe(this.iframePlaceholder);let o=lt.subscribe("js_views:reposition",l=>this.repositionIframe());this.iframe.addEventListener("mouseenter",l=>{this.iframePlaceholder.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0}))}),this.iframe.addEventListener("mouseleave",l=>{this.iframePlaceholder.dispatchEvent(new MouseEvent("mouseleave",{bubbles:!0}))});let s=hm(this.iframePlaceholder,{root:t,proximity:2e3});this.iframe.toggleAttribute("data-js-focused",!!this.el.closest("[data-js-focused]"));let a=()=>{i.disconnect(),r.disconnect(),o.destroy(),s.cancel(),this.iframe.remove(),this.iframePlaceholder.remove()};return{visibilityPromise:s.promise,remove:a}},repositionIframe(){let{iframe:t,iframePlaceholder:e}=this,i=document.querySelector("[data-el-notebook]");if(Sr(e))t.classList.add("hidden");else{t.classList.remove("hidden");let n=i.getBoundingClientRect(),r=e.getBoundingClientRect(),o=r.top-n.top+i.scrollTop;t.style.top=`${o}px`;let s=r.left-n.left+i.scrollLeft;t.style.left=`${s}px`,t.style.height=`${r.height}px`,t.style.width=`${r.width}px`}},loadIframe(){let t=document.querySelector("[data-el-js-view-iframes]");O7(this.iframe,this.props.iframePort,this.props.iframeUrl).then(()=>{t.appendChild(this.iframe)})},handleChildMessage(t,e){if(t.type==="ready"&&!this.childReady)this.getAssetsBaseUrl().then(i=>{this.postMessage({type:"readyReply",token:this.childToken,baseUrl:i,jsPath:this.props.jsPath}),this.childReady=!0,e()});else{if(t.token!==this.childToken)throw new Error("Token mismatch");if(t.type==="resize")this.iframePlaceholder.style.height=`${t.height}px`,this.iframe.style.height=`${t.height}px`;else if(t.type==="domEvent"){let i=this.replicateDomEvent(t.event);t.isTargetEditable?this.hiddenInput.dispatchEvent(i):this.el.dispatchEvent(i)}else if(t.type==="event"){let{event:i,payload:n}=t,r=h7([i,this.props.ref],n);this.channel.push("event",r)}else t.type==="syncReply"?(this.pongCallbackQueue.push(this.syncCallbackQueue.shift()),this.channel.push("ping",{ref:this.props.ref})):t.type==="selectSecret"&&this.pushEvent("select_secret",{js_view_ref:this.props.ref,preselect_name:t.preselectName,options:t.options})}},getAssetsBaseUrl(){return Sg().then(t=>!t&&this.props.assetsCdnUrl?this.props.assetsCdnUrl:window.location.origin+this.props.assetsBasePath)},postMessage(t){this.iframe.contentWindow.postMessage(t,"*")},replicateDomEvent(t){if(t.type==="focus")return new FocusEvent("focus");if(t.type==="mousedown")return new MouseEvent("mousedown",{bubbles:!0});if(t.type==="keydown")return new KeyboardEvent(t.type,t.props)},handleInitUnreachable(){let t=document.createElement("div");t.classList.add("info-box"),this.el.prepend(t),t.textContent=this.props.unreachableMessage},handleServerInit(t){this.initReceived=!0,this.childReadyPromise.then(()=>{this.postMessage({type:"init",data:t})})},handleServerEvent(t,e){this.initReceived&&this.childReadyPromise.then(()=>{this.postMessage({type:"event",event:t,payload:e})})},handleServerError(t){this.errorContainer||(this.errorContainer=document.createElement("div"),this.errorContainer.classList.add("error-box","mb-4"),this.el.prepend(this.errorContainer)),this.errorContainer.textContent=t},handleServerPong(){this.pongCallbackQueue.shift()()},handleSync(t){this.syncCallbackQueue.push(t),this.postMessage({type:"sync"})},handleSecretSelected(t){this.postMessage({type:"secretSelected",secretName:t})},handleElementFocused(t){let e=this.el.closest("[data-focusable-id]"),i=e?e.dataset.focusableId:null;this.iframe.toggleAttribute("data-js-focused",i===t)},removeSkeleton(){this.el.querySelector("[data-el-skeleton]").remove()}};function Sg(){let t=window.LIVEBOOK_PUBLIC_BASE_URL_PATH+"/public/health";return Sg.promise=Sg.promise||fetch(t).then(e=>e.status===200).catch(e=>!1),Sg.promise}var p7=iae;var nae={mounted(){this.props=this.getProps(),this._handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this._handleDocumentKeyUp=this.handleDocumentKeyUp.bind(this),this._handleDocumentFocus=this.handleDocumentFocus.bind(this),window.addEventListener("keydown",this._handleDocumentKeyDown,!0),window.addEventListener("keyup",this._handleDocumentKeyUp,!0),window.addEventListener("focus",this._handleDocumentFocus,!0)},updated(){this.props=this.getProps()},destroyed(){window.removeEventListener("keydown",this._handleDocumentKeyDown,!0),window.removeEventListener("keyup",this._handleDocumentKeyUp,!0),window.removeEventListener("focus",this._handleDocumentFocus,!0)},getProps(){return pt(this.el,["cell-id","default-handlers","keydown-enabled","keyup-enabled","target"])},handleDocumentKeyDown(t){if(this.isKeyboardToggle(t)&&!us(document.activeElement)){An(t),this.keyboardEnabled()?this.disableKeyboard():this.enableKeyboard();return}if(this.keyboardEnabled()){if(this.props.defaultHandlers!=="on"&&An(t),t.repeat)return;if(this.props.keydownEnabled){let{key:e}=t;this.pushEventTo(this.props.target,"keydown",{key:e})}}},handleDocumentKeyUp(t){if(this.keyboardEnabled()&&(this.props.defaultHandlers!=="on"&&An(t),this.props.keyupEnabled)){let{key:e}=t;this.pushEventTo(this.props.target,"keyup",{key:e})}},handleDocumentFocus(t){this.props.keydownEnabled&&us(t.target)&&this.disableKeyboard()},enableKeyboard(){this.keyboardEnabled()||this.pushEventTo(this.props.target,"enable_keyboard",{})},disableKeyboard(){this.keyboardEnabled()&&this.pushEventTo(this.props.target,"disable_keyboard",{})},keyboardEnabled(){return this.props.keydownEnabled||this.props.keyupEnabled},isKeyboardToggle(t){if(t.repeat)return!1;let{metaKey:e,ctrlKey:i,key:n}=t;return(Vl()?e:i)&&n==="k"&&this.isCellFocused()?!this.keyboardEnabled()||["on","disable_only"].includes(this.props.defaultHandlers):!1},isCellFocused(){let t=this.el.closest("[data-el-session]");return t&&t.getAttribute("data-js-focused-id")===this.props.cellId}},m7=nae;var rae={mounted(){this.props=this.getProps(),this.templateEl=ho(this.el,"[data-template]"),this.contentEl=ho(this.el,"[data-content]"),this.markdown=new xa(this.contentEl,this.templateEl.textContent,{baseUrl:this.props.basePath,allowedUriSchemes:this.props.allowedUriSchemes})},updated(){this.props=this.getProps(),this.markdown.setContent(this.templateEl.textContent)},getProps(){return pt(this.el,["base-path","allowed-uri-schemes"])}},g7=rae;var oae={mounted(){this.scroll()},updated(){this.scroll()},scroll(){Rf(this.el)}},b7=oae;var Th=class{constructor(e=2e3){this.resetTimeout=e,this.buffer=[],this.resetTimeoutId=null}push(e){this.buffer.push(e),this.resetTimeoutId&&clearTimeout(this.resetTimeoutId),this.resetTimeoutId=setTimeout(()=>{this.reset()},this.resetTimeout)}reset(){this.resetTimeoutId&&clearTimeout(this.resetTimeoutId),this.resetTimeoutId=null,this.buffer=[]}tryMatch(e){if(e.length>this.buffer.length)return!1;let i=this.buffer.slice(-e.length),n=e.every((r,o)=>r===i[o]);return n&&this.reset(),n}};var Eh=class{constructor(){ct(this,"entries",[]);ct(this,"index",-1)}push(e,i,n){let r={cellId:e,line:i,offset:n};this.isSameCell(e)?this.entries[this.index]=r:(this.entries[this.index+1]!==void 0&&(this.entries=this.entries.slice(0,this.index+1)),this.entries.push(r),this.index++),this.entries.length>20&&(this.entries.shift(),this.index--)}removeAllFromCell(e){let i=0;for(let n=0;n<=this.index;n++)this.get(n).cellId===e&&i++;this.entries=this.entries.filter(n=>n.cellId!==e),this.index=this.index-i,this.index===-1&&this.entries.length>0&&(this.index=0)}canGoBack(){return this.canGetFromHistory(-1)}goBack(){return this.getFromHistory(-1)}canGoForward(){return this.canGetFromHistory(1)}goForward(){return this.getFromHistory(1)}getCurrent(){return this.get(this.index)}getEntries(){return this.entries}get(e){return this.entries.length<=0?null:this.entries[e]}getFromHistory(e){return this.canGetFromHistory(e)?(this.index=Math.max(0,this.index+e),this.entries[this.index]):null}canGetFromHistory(e){if(this.entries.length===0)return!1;let i=this.index+e;return 0<=i&&i<this.entries.length}isSameCell(e){let i=this.get(this.index);return i!==null&&e===i.cellId}};var sae={mounted(){this.props=this.getProps(),this.focusedId=null,this.insertMode=!1,this.view=null,this.viewOptions=null,this.keyBuffer=new Th,this.lastLocationReportByClientId={},this.cursorHistory=new Eh,this.followedClientId=null,this.store=cc.create("session"),Om(this.faviconForEvaluationStatus(this.props.globalStatus)),this.updateSectionListHighlight(),this._handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this._handleEditorEscape=this.handleEditorEscape.bind(this),this._handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this._handleDocumentFocus=this.handleDocumentFocus.bind(this),this._handleDocumentClick=this.handleDocumentClick.bind(this),document.addEventListener("keydown",this._handleDocumentKeyDown,!0),document.addEventListener("lb:editor_escape",this._handleEditorEscape),document.addEventListener("mousedown",this._handleDocumentMouseDown),document.addEventListener("focus",this._handleDocumentFocus,!0),document.addEventListener("click",this._handleDocumentClick),this.getElement("outline").addEventListener("click",t=>{this.handleOutlineClick(t),this.handleCellIndicatorsClick(t)}),this.getElement("clients-list").addEventListener("click",t=>this.handleClientsListClick(t)),this.getElement("outline-toggle").addEventListener("click",t=>this.toggleOutline()),this.getElement("clients-list-toggle").addEventListener("click",t=>this.toggleClientsList()),this.getElement("secrets-list-toggle").addEventListener("click",t=>this.toggleSecretsList()),this.getElement("runtime-info-toggle").addEventListener("click",t=>this.toggleRuntimeInfo()),this.getElement("app-info-toggle").addEventListener("click",t=>this.toggleAppInfo()),this.getElement("files-list-toggle").addEventListener("click",t=>this.toggleFilesList()),this.getElement("notebook").addEventListener("scroll",t=>this.updateSectionListHighlight()),this.getElement("notebook-indicators").addEventListener("click",t=>this.handleCellIndicatorsClick(t)),this.getElement("views").addEventListener("click",t=>{this.handleViewsClick(t)}),this.getElement("section-toggle-collapse-all-button").addEventListener("click",t=>this.toggleCollapseAllSections()),this.subscriptions=[lt.subscribe("jump_to_editor",({line:t,file:e})=>this.jumpToLine(e,t)),lt.subscribe("navigation:cursor_moved",({cellId:t,line:e,offset:i})=>this.cursorHistory.push(t,e,i))],this.initializeDragAndDrop(),window.addEventListener("phx:page-loading-stop",()=>{this.initializeFocus()},{once:!0}),this.handleEvent("session_init",({clients:t,client_id:e})=>{let i={};for(let n of t)i[n.id]=n;this.store.set("clients",i),this.store.set("clientId",e)}),this.handleEvent("cell_inserted",({cell_id:t})=>{this.handleCellInserted(t)}),this.handleEvent("cell_deleted",({cell_id:t,sibling_cell_id:e})=>{this.handleCellDeleted(t,e)}),this.handleEvent("cell_restored",({cell_id:t})=>{this.handleCellRestored(t)}),this.handleEvent("cell_moved",({cell_id:t})=>{this.handleCellMoved(t)}),this.handleEvent("section_inserted",({section_id:t})=>{this.handleSectionInserted(t)}),this.handleEvent("section_deleted",({section_id:t})=>{this.handleSectionDeleted(t)}),this.handleEvent("section_moved",({section_id:t})=>{this.handleSectionMoved(t)}),this.handleEvent("client_joined",({client:t})=>{this.handleClientJoined(t)}),this.handleEvent("client_left",({client_id:t})=>{this.handleClientLeft(t)}),this.handleEvent("clients_updated",({clients:t})=>{this.handleClientsUpdated(t)}),this.handleEvent("secret_selected",({select_secret_ref:t,secret_name:e})=>{this.handleSecretSelected(t,e)}),this.handleEvent("location_report",({client_id:t,focusable_id:e})=>{let i={focusableId:e};this.handleLocationReport(t,i)})},updated(){let t=this.props;this.props=this.getProps(),this.props.globalStatus!==t.globalStatus&&Om(this.faviconForEvaluationStatus(this.props.globalStatus))},disconnected(){this.el.removeAttribute("id"),this.keepChannel=!0},destroyed(){document.removeEventListener("keydown",this._handleDocumentKeyDown,!0),document.removeEventListener("lb:editor_scape",this._handleEditorEscape),document.removeEventListener("mousedown",this._handleDocumentMouseDown),document.removeEventListener("focus",this._handleDocumentFocus,!0),document.removeEventListener("click",this._handleDocumentClick),Om("favicon"),this.keepChannel||f7(),this.subscriptions.forEach(t=>t.destroy()),this.store.destroy()},getProps(){return pt(this.el,["autofocus-cell-id","global-status"])},faviconForEvaluationStatus(t){return t==="evaluating"?"favicon-evaluating":t==="stale"?"favicon-stale":t==="errored"?"favicon-errored":"favicon"},handleDocumentKeyDown(t){if(t.repeat)return;let e=Vl()?t.metaKey:t.ctrlKey,i=t.ctrlKey,n=t.altKey,r=t.shiftKey,o=t.key,s=this.keyBuffer;if(!(us(t.target)&&t.target.closest("[data-el-outputs-container]"))){if(t.code==="Minus"&&i&&n){An(t),this.cursorHistoryGoBack();return}else if(o==="="&&i&&n){An(t),this.cursorHistoryGoForward();return}else if(e&&r&&!n&&o==="Enter"){An(t),this.queueFullCellsEvaluation(!0);return}else if(!e&&r&&!n&&o==="Enter"){An(t),va(this.focusedCellType())&&this.queueFocusedCellEvaluation(),this.moveFocus(1);return}else if(e&&!n&&o==="Enter"){An(t),va(this.focusedCellType())&&this.queueFocusedCellEvaluation();return}else if(e&&o==="s"){An(t),this.saveNotebook();return}else if(e||n)return}this.insertMode?(s.reset(),!t.target.closest("[data-el-editor-container]")&&o==="Escape"&&this.escapeInsertMode()):us(t.target)?(s.reset(),o==="Escape"&&t.target.blur()):(s.push(t.key),s.tryMatch(["d","d"])?this.deleteFocusedCell():s.tryMatch(["e","a"])?this.queueFullCellsEvaluation(!1):s.tryMatch(["e","e"])?va(this.focusedCellType())&&this.queueFocusedCellEvaluation():s.tryMatch(["e","s"])?this.queueFocusedSectionEvaluation():s.tryMatch(["s","o"])?this.toggleOutline():s.tryMatch(["s","s"])?this.toggleSecretsList():s.tryMatch(["s","a"])?this.toggleAppInfo():s.tryMatch(["s","u"])?this.toggleClientsList():s.tryMatch(["s","f"])?this.toggleFilesList():s.tryMatch(["s","r"])?this.toggleRuntimeInfo():s.tryMatch(["s","b"])?this.showBin():s.tryMatch(["s","p"])?this.showPackageSearch():s.tryMatch(["e","x"])?this.cancelFocusedCellEvaluation():s.tryMatch(["0","0"])?this.reconnectRuntime():s.tryMatch(["Escape","Escape"])?this.setFocusedEl(null):s.tryMatch(["?"])?this.showShortcuts():s.tryMatch(["i"])||t.target.matches("body, [data-el-cell-body], [data-el-heading], [data-focusable-id]")&&this.focusedId&&o==="Enter"?(An(t),this.isInsertModeAvailable()&&this.enterInsertMode()):s.tryMatch(["j"])?this.moveFocus(1):s.tryMatch(["k"])?this.moveFocus(-1):s.tryMatch(["J"])?this.moveFocusedCell(1):s.tryMatch(["K"])?this.moveFocusedCell(-1):s.tryMatch(["n"])?this.insertCellBelowFocused("code"):s.tryMatch(["N"])?this.insertCellAboveFocused("code"):s.tryMatch(["m"])?(!this.view||this.viewOptions.showMarkdown)&&this.insertCellBelowFocused("markdown"):s.tryMatch(["M"])?(!this.view||this.viewOptions.showMarkdown)&&this.insertCellAboveFocused("markdown"):s.tryMatch(["v","z"])?this.toggleView("code-zen"):s.tryMatch(["v","p"])?this.toggleView("presentation"):s.tryMatch(["v","c"])?this.toggleView("custom"):s.tryMatch(["c"])?(!this.view||this.viewOptions.showSection)&&this.toggleCollapseSection():s.tryMatch(["C"])&&(!this.view||this.viewOptions.showSection)&&this.toggleCollapseAllSections())},handleEditorEscape(){this.insertMode&&(this.keyBuffer.reset(),this.escapeInsertMode())},handleDocumentMouseDown(t){if(!t.target.closest("[data-el-notebook]")){this.insertMode&&this.setInsertMode(!1);return}if(t.target.closest(".cm-tooltip")){this.insertMode&&this.setInsertMode(!1);return}if(t.target.closest("[data-el-insert-buttons] button"))return;let e=t.target.closest("[data-focusable-id]"),i=e?e.dataset.focusableId:null,n=this.editableElementClicked(t,e);i!==this.focusedId&&this.setFocusedEl(i,{scroll:!1,focusElement:!1}),!t.target.closest("[data-el-actions]")&&this.insertMode!==n&&this.setInsertMode(n)},editableElementClicked(t,e){if(e){let i=t.target.closest("[data-el-editor-container], [data-el-heading]");return i&&e.contains(i)}return!1},handleDocumentFocus(t){let e=t.target.closest&&t.target.closest("[data-focusable-id]");if(e){let i=e.dataset.focusableId;i!==this.focusedId&&this.setFocusedEl(i,{scroll:!1,focusElement:!1})}},handleDocumentClick(t){t.target.closest("[data-el-enable-insert-mode-button]")&&this.setInsertMode(!0),t.target.closest("[data-btn-package-search]")&&this.insertMode&&this.setInsertMode(!1);let e=t.target.closest("[data-el-queue-cell-evaluation-button]");if(e){let n=e.getAttribute("data-cell-id"),r=e.hasAttribute("data-disable-dependencies-cache");this.queueCellEvaluation(n,r)}let i=window.location.hash;if(i){let n=i.replace(/^#/,"");!document.getElementById(n).contains(t.target)&&!t.target.closest("a")&&history.pushState(null,document.title,window.location.pathname+window.location.search)}},handleOutlineClick(t){let e=t.target.closest("[data-el-outline-item]");if(e){let n=e.getAttribute("data-section-id");this.getSectionById(n).scrollIntoView({behavior:"instant",block:"start"})}let i=t.target.closest("[data-el-outline-definition-item]");if(i){let n=i.getAttribute("data-file"),r=i.getAttribute("data-line");this.jumpToLine(n,r)}},handleClientsListClick(t){let e=t.target.closest("[data-el-clients-list-item]");if(e){let i=e.getAttribute("data-client-id");t.target.closest("[data-el-client-link]")&&this.handleClientLinkClick(i),t.target.closest("[data-el-client-follow-toggle]")&&this.handleClientFollowToggleClick(i,e)}},handleClientLinkClick(t){this.mirrorClientFocus(t)},handleClientFollowToggleClick(t,e){let i=this.el.querySelector("[data-el-clients-list-item][data-js-followed]");i&&i.removeAttribute("data-js-followed"),t===this.followedClientId?this.followedClientId=null:(e.setAttribute("data-js-followed",""),this.followedClientId=t,this.mirrorClientFocus(t))},mirrorClientFocus(t){let e=this.lastLocationReportByClientId[t];e&&e.focusableId&&this.setFocusedEl(e.focusableId)},handleCellIndicatorsClick(t){let e=t.target.closest("[data-el-focus-cell-button]");if(e){let i=e.getAttribute("data-target");this.setFocusedEl(i)}},initializeFocus(){let t=window.location.hash;if(t){let e=t.replace(/^#/,""),i=document.getElementById(e);if(i){let n=i.closest("[data-focusable-id]");n?this.setFocusedEl(n.dataset.focusableId):i.scrollIntoView()}}else this.props.autofocusCellId&&(this.setFocusedEl(this.props.autofocusCellId,{scroll:!1}),this.setInsertMode(!0))},updateSectionListHighlight(){let t=this.el.querySelector("[data-el-outline-item][data-js-is-viewed]");t&&t.removeAttribute("data-js-is-viewed");let e=this.getSections().reverse().find(i=>{let{top:n}=i.getBoundingClientRect(),r=document.documentElement.scrollTop;return n<=r+window.innerHeight*.35});if(e){let i=e.getAttribute("data-section-id");this.el.querySelector(`[data-el-outline-item][data-section-id="${i}"]`).setAttribute("data-js-is-viewed","")}},initializeDragAndDrop(){let t=!1,e=null,i=null,n=(o=null)=>{if(!t){t=!0,e=o;let s=o?"internal":"external";this.el.setAttribute("data-js-dragging",s),s==="external"&&this.toggleFilesList(!0)}},r=()=>{t&&(t=!1,this.el.removeAttribute("data-js-dragging"))};this.el.addEventListener("dragstart",o=>{n(o.target)}),this.el.addEventListener("dragenter",o=>{n()}),this.el.addEventListener("dragleave",o=>{r6()||this.el.contains(o.relatedTarget)||r()}),this.el.addEventListener("dragover",o=>{o.preventDefault()}),this.el.addEventListener("drop",o=>{o.preventDefault();let s=o.target.closest("[data-el-insert-drop-area]"),a=o.target.closest("[data-el-files-drop-area]");if(s){let l=s.getAttribute("data-section-id")||null,c=s.getAttribute("data-cell-id")||null;if(o.dataTransfer.files.length>0)i=o.dataTransfer.files,this.pushEvent("handle_file_drop",{section_id:l,cell_id:c});else if(e&&e.matches("[data-el-file-entry]")){let u=e.getAttribute("data-name");this.pushEvent("insert_file",{file_entry_name:u,section_id:l,cell_id:c})}}else a&&o.dataTransfer.files.length>0&&(i=o.dataTransfer.files,this.pushEvent("handle_file_drop",{}));r()}),this.handleEvent("finish_file_drop",o=>{let s=document.querySelector('#add-file-entry-modal input[type="file"]');s&&(s.files=i,s.dispatchEvent(new Event("change",{bubbles:!0})))})},toggleOutline(t=null){this.toggleSidePanelContent("outline",t)},toggleClientsList(t=null){this.toggleSidePanelContent("clients-list",t)},toggleSecretsList(t=null){this.toggleSidePanelContent("secrets-list",t)},toggleAppInfo(t=null){this.toggleSidePanelContent("app-info",t)},toggleFilesList(t=null){this.toggleSidePanelContent("files-list",t)},toggleRuntimeInfo(t=null){this.toggleSidePanelContent("runtime-info",t)},toggleSidePanelContent(t,e=null){(e===null?this.el.getAttribute("data-js-side-panel-content")!==t:e)?this.el.setAttribute("data-js-side-panel-content",t):this.el.removeAttribute("data-js-side-panel-content")},showBin(){let t=this.el.querySelector("[data-btn-show-bin]");t&&t.click()},showPackageSearch(){this.setFocusedEl("setup");let t=this.el.querySelector("[data-btn-package-search]");t&&t.click()},saveNotebook(){this.pushEvent("save",{})},deleteFocusedCell(){this.focusedId&&this.isCell(this.focusedId)&&this.pushEvent("delete_cell",{cell_id:this.focusedId})},queueCellEvaluation(t,e){this.dispatchQueueEvaluation(()=>{this.pushEvent("queue_cell_evaluation",{cell_id:t,disable_dependencies_cache:e})})},queueFocusedCellEvaluation(){this.focusedId&&this.isCell(this.focusedId)&&this.dispatchQueueEvaluation(()=>{this.pushEvent("queue_cell_evaluation",{cell_id:this.focusedId})})},queueFullCellsEvaluation(t){let e=t&&this.focusedId&&this.isCell(this.focusedId)?[this.focusedId]:[];this.dispatchQueueEvaluation(()=>{this.pushEvent("queue_full_evaluation",{forced_cell_ids:e})})},queueFocusedSectionEvaluation(){if(this.focusedId){let t=this.getSectionIdByFocusableId(this.focusedId);t&&this.dispatchQueueEvaluation(()=>{this.pushEvent("queue_section_evaluation",{section_id:t})})}},dispatchQueueEvaluation(t){va(this.focusedCellType())?lt.broadcast(`cells:${this.focusedId}:dispatch_queue_evaluation`,{dispatch:t}):t()},cancelFocusedCellEvaluation(){this.focusedId&&this.isCell(this.focusedId)&&this.pushEvent("cancel_cell_evaluation",{cell_id:this.focusedId})},reconnectRuntime(){this.pushEvent("reconnect_runtime",{})},showShortcuts(){let t=this.el.querySelector("[data-btn-show-shortcuts]");t&&t.click()},isInsertModeAvailable(){if(!this.focusedId)return!1;let t=this.getFocusableEl(this.focusedId);return!this.isCell(this.focusedId)||!t.hasAttribute("data-js-insert-mode-disabled")},enterInsertMode(){this.focusedId&&this.setInsertMode(!0)},escapeInsertMode(){this.setInsertMode(!1)},moveFocus(t){let e=this.nearbyFocusableId(this.focusedId,t);this.setFocusedEl(e)},moveFocusedCell(t){this.focusedId&&this.isCell(this.focusedId)&&this.pushEvent("move_cell",{cell_id:this.focusedId,offset:t})},insertCellBelowFocused(t){if(this.focusedId)this.insertCellBelowFocusableId(this.focusedId,t);else{let e=this.getFocusableIds();e.length>0&&this.insertCellBelowFocusableId(e[e.length-1],t)}},insertCellAboveFocused(t){if(this.focusedId){let e=this.nearbyFocusableId(this.focusedId,-1);this.insertCellBelowFocusableId(e,t)}else{let e=this.getFocusableIds();e.length>0&&this.insertCellBelowFocusableId(e[0],t)}},insertCellBelowFocusableId(t,e){if(this.isCell(t))this.pushEvent("insert_cell_below",{type:e,cell_id:t});else if(this.isSection(t))this.pushEvent("insert_cell_below",{type:e,section_id:t});else if(this.isNotebook(t)){let i=this.getSectionIds();i.length>0&&this.pushEvent("insert_cell_below",{type:e,section_id:i[0]})}},setFocusedEl(t,{scroll:e=!0,focusElement:i=!0}={}){if(this.focusedId=t,t?this.el.setAttribute("data-js-focused-id",t):this.el.removeAttribute("data-js-focused-id"),t){if(!this.isSection(t)){let r=this.getSectionIdByFocusableId(t);r&&this.getSectionById(r).removeAttribute("data-js-collapsed")}let n=this.getFocusableEl(t);i&&(n.querySelector("[data-el-cell-body]")||n.querySelector("[data-el-heading]")||n).focus({preventScroll:!0})}lt.broadcast("navigation:focus_changed",{focusableId:t,scroll:e}),this.setInsertMode(!1),this.sendLocationReport({focusableId:t})},setInsertMode(t){this.insertMode=t,t?this.el.setAttribute("data-js-insert-mode",""):this.el.removeAttribute("data-js-insert-mode"),lt.broadcast("navigation:insert_mode_changed",{enabled:t})},handleViewsClick(t){let e=t.target.closest("[data-el-view-toggle]");if(e){let i=e.getAttribute("data-el-view-toggle");this.toggleView(i)}},toggleView(t){t===this.view?(this.unsetView(),t==="custom"&&this.customViewSettingsSubscription.destroy()):t==="code-zen"?this.setView(t,{showSection:!1,showMarkdown:!1,showCode:!0,showOutput:!0,spotlight:!1}):t==="presentation"?this.setView(t,{showSection:!0,showMarkdown:!0,showCode:!0,showOutput:!0,spotlight:!0}):t==="custom"&&(this.customViewSettingsSubscription=bt.getAndSubscribe(i=>{this.setView(t,{showSection:i.custom_view_show_section,showMarkdown:i.custom_view_show_markdown,showCode:i.custom_view_show_code,showOutput:i.custom_view_show_output,spotlight:i.custom_view_spotlight})}),this.pushEvent("open_custom_view_settings"));let e=this.focusedId||this.nearbyFocusableId(null,0);if(e){let i=this.ensureVisibleFocusableEl(e);i!==this.focused&&this.setFocusedEl(i,{scroll:!1}),i&&this.getFocusableEl(i).scrollIntoView({block:"center"})}},setView(t,e){this.view=t,this.viewOptions=e,this.el.setAttribute("data-js-view",t),this.el.toggleAttribute("data-js-hide-section",!e.showSection),this.el.toggleAttribute("data-js-hide-markdown",!e.showMarkdown),this.el.toggleAttribute("data-js-hide-code",!e.showCode),this.el.toggleAttribute("data-js-hide-output",!e.showOutput),this.el.toggleAttribute("data-js-spotlight",e.spotlight)},unsetView(){this.view=null,this.viewOptions=null,this.el.removeAttribute("data-js-view"),this.el.removeAttribute("data-js-hide-section"),this.el.removeAttribute("data-js-hide-markdown"),this.el.removeAttribute("data-js-hide-code"),this.el.removeAttribute("data-js-hide-output"),this.el.removeAttribute("data-js-spotlight")},toggleCollapseSection(){if(this.focusedId){let t=this.getSectionIdByFocusableId(this.focusedId);if(t){let e=this.getSectionById(t);e.hasAttribute("data-js-collapsed")?e.removeAttribute("data-js-collapsed"):(e.setAttribute("data-js-collapsed",""),this.setFocusedEl(t,{scroll:!0}))}}},toggleCollapseAllSections(){let t=this.getSections().every(e=>e.hasAttribute("data-js-collapsed"));if(this.getSections().forEach(e=>{e.toggleAttribute("data-js-collapsed",!t)}),this.focusedId){let e=this.getSectionIdByFocusableId(this.focusedId);e&&this.setFocusedEl(e,{scroll:!0})}},handleCellInserted(t){this.setFocusedEl(t),h6(this.focusedCellType())&&this.setInsertMode(!0)},handleCellDeleted(t,e){if(this.cursorHistory.removeAllFromCell(t),this.focusedId===t)if(this.view){let i=this.ensureVisibleFocusableEl(e);this.setFocusedEl(i)}else this.setFocusedEl(e)},handleCellRestored(t){this.setFocusedEl(t)},handleCellMoved(t){this.repositionJSViews(),this.focusedId===t&<.broadcast("cells:cell_moved",{cellId:t})},handleSectionInserted(t){let i=this.getSectionById(t).querySelector("[data-el-section-headline]"),{focusableId:n}=i.dataset;this.setFocusedEl(n),this.setInsertMode(!0),YR(document.activeElement)},handleSectionDeleted(t){this.focusedId&&!this.getFocusableEl(this.focusedId)&&this.setFocusedEl(null)},handleSectionMoved(t){this.repositionJSViews();let e=this.getSectionById(t);ya(e)},handleClientJoined(t){let e=this.store.get("clients");this.store.set("clients",Ee(F({},e),{[t.id]:t}))},handleClientLeft(t){let e=this.store.get("clients"),i=e[t];if(i){let[,n]=mm(e,t);this.store.set("clients",n),i.id===this.followedClientId&&(this.followedClientId=null)}},handleClientsUpdated(t){let e=this.store.get("clients"),i=F({},e);for(let n of t)i[n.id]=n;this.store.set("clients",i)},handleSecretSelected(t,e){lt.broadcast(`js_views:${t}:secret_selected`,{secretName:e})},handleLocationReport(t,e){let i=this.store.get("clients")[t];this.lastLocationReportByClientId[t]=e,i&&i.id===this.followedClientId&&e.focusableId!==this.focusedId&&this.setFocusedEl(e.focusableId)},repositionJSViews(){lt.broadcast("js_views:reposition",{})},sendLocationReport(t){Object.keys(this.store.get("clients")).length>1&&this.pushEvent("location_report",{focusable_id:t.focusableId})},focusedCellType(){return this.focusedId&&this.isCell(this.focusedId)?this.getFocusableEl(this.focusedId).getAttribute("data-type"):null},nearbyFocusableId(t,e){let i=this.getFocusableIds();if(i.length===0)return null;let n=i.indexOf(t);if(n===-1){let r=this.getFocusableEls().find(Yw);return r?r.getAttribute("data-focusable-id"):i[0]}else{let r=ZR(n+e,0,i.length-1);return i[r]}},ensureVisibleFocusableEl(t){let e=this.getFocusableEl(t),i=Array.from(this.el.querySelectorAll("[data-focusable-id]")),n=i.indexOf(e),r=[...i.slice(n,-1),...i.slice(0,n).reverse()].find(o=>!Sr(o));return r&&r.getAttribute("data-focusable-id")},isCell(t){return this.getFocusableEl(t).hasAttribute("data-el-cell")},isSection(t){return this.getFocusableEl(t).hasAttribute("data-el-section-headline")},isNotebook(t){return this.getFocusableEl(t).hasAttribute("data-el-notebook-headline")},getFocusableEl(t){return this.el.querySelector(`[data-focusable-id="${t}"]`)},getFocusableEls(){return Array.from(this.el.querySelectorAll("[data-focusable-id]")).filter(t=>!Sr(t))},getFocusableIds(){return this.getFocusableEls().map(t=>t.getAttribute("data-focusable-id"))},getSectionIdByFocusableId(t){let i=this.getFocusableEl(t).closest("[data-el-section]");return i&&i.getAttribute("data-section-id")},getSectionIds(){return this.getSections().map(e=>e.getAttribute("data-section-id"))},getSections(){return Array.from(this.el.querySelectorAll("[data-el-section]"))},getSectionById(t){return this.el.querySelector(`[data-el-section][data-section-id="${t}"]`)},getElement(t){return this.el.querySelector(`[data-el-${t}]`)},jumpToLine(t,e){let[i,n]=t.split("#cell:");this.setFocusedEl(n,{scroll:!1}),this.setInsertMode(!0),lt.broadcast(`cells:${n}:jump_to_line`,{line:e})},cursorHistoryGoBack(){if(this.cursorHistory.canGoBack()){let{cellId:t,line:e,offset:i}=this.cursorHistory.goBack();this.setFocusedEl(t,{scroll:!1}),this.setInsertMode(!0),lt.broadcast(`cells:${t}:jump_to_line`,{line:e,offset:i})}},cursorHistoryGoForward(){if(this.cursorHistory.canGoForward()){let{cellId:t,line:e,offset:i}=this.cursorHistory.goForward();this.setFocusedEl(t,{scroll:!1}),this.setInsertMode(!0),lt.broadcast(`cells:${t}:jump_to_line`,{line:e,offset:i})}}},y7=sae;var aae={mounted(){this.autosize(),this.el.addEventListener("input",t=>{this.autosize()})},updated(){this.autosize()},autosize(){this.el.style.height="0px",this.el.style.height=`${this.el.scrollHeight+2}px`}},x7=aae;var lae=100,cae={mounted(){this.props=this.getProps(),this.interval=setInterval(()=>this.updateDOM(),lae)},updated(){this.props=this.getProps(),this.updateDOM()},destroyed(){clearInterval(this.interval)},getProps(){return pt(this.el,["start"])},updateDOM(){let e=(Date.now()-new Date(this.props.start))/1e3;this.el.innerHTML=`${e.toFixed(1)}s`}},v7=cae;var w7="lb_user_data";function k7(t){let e=JSON.stringify(t),i=HR(e);fae(w7,i,15768e4)}function S7(){let t=uae(w7);if(t){let e=GR(t);return JSON.parse(e)}else return null}function uae(t){let e=document.cookie.split("; ").find(i=>i.startsWith(`${t}=`));return e?e.replace(`${t}=`,""):null}function fae(t,e,i){let n=`${t}=${e};max-age=${i};path=/${pm()}`;document.cookie=n}var hae={mounted(){this.el.addEventListener("submit",t=>{let e=this.el.user_form_name.value,i=this.el.user_form_hex_color.value;k7({name:e,hex_color:i})})}},T7=hae;var dae={mounted(){this.props=this.getProps(),this.updateAttrs(),this.el.addEventListener("blur",t=>{let e=this.datetimeLocalToUtc(this.el.value);this.pushEventTo(this.props.phxTarget,"change",{html_value:e})})},updated(){this.props=this.getProps(),this.updateAttrs()},getProps(){return pt(this.el,["utc-value","utc-min","utc-max","phx-target"])},updateAttrs(){this.el.value=this.datetimeUtcToLocal(this.props.utcValue),this.el.min=this.datetimeUtcToLocal(this.props.utcMin),this.el.max=this.datetimeUtcToLocal(this.props.utcMax)},datetimeUtcToLocal(t){if(!t)return null;let e=new Date(t+"Z"),i=e.getFullYear().toString(),n=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0");return`${i}-${n}-${r}T${o}:${s}:${a}`},datetimeLocalToUtc(t){if(!t)return null;let e=new Date(t),i=e.getUTCFullYear().toString(),n=(e.getUTCMonth()+1).toString().padStart(2,"0"),r=e.getUTCDate().toString().padStart(2,"0"),o=e.getUTCHours().toString().padStart(2,"0"),s=e.getUTCMinutes().toString().padStart(2,"0"),a=e.getUTCSeconds().toString().padStart(2,"0");return`${i}-${n}-${r}T${o}:${s}:${a}`}},E7=dae;var Oae={mounted(){this.props=this.getProps(),this.updateAttrs(),this.el.addEventListener("blur",t=>{let e=this.timeLocalToUtc(this.el.value);this.pushEventTo(this.props.phxTarget,"change",{html_value:e})})},updated(){this.props=this.getProps(),this.updateAttrs()},getProps(){return pt(this.el,["utc-value","utc-min","utc-max","phx-target"])},updateAttrs(){this.el.value=this.timeUtcToLocal(this.props.utcValue),this.el.min=this.timeUtcToLocal(this.props.utcMin),this.el.max=this.timeUtcToLocal(this.props.utcMax)},timeUtcToLocal(t){if(!t)return null;let e=new Date;e.setUTCHours(...t.split(":"));let i=e.getHours().toString().padStart(2,"0"),n=e.getMinutes().toString().padStart(2,"0"),r=e.getSeconds().toString().padStart(2,"0");return`${i}:${n}:${r}`},timeLocalToUtc(t){if(!t)return null;let e=new Date;e.setHours(...t.split(":"));let i=e.getUTCHours().toString().padStart(2,"0"),n=e.getUTCMinutes().toString().padStart(2,"0"),r=e.getUTCSeconds().toString().padStart(2,"0");return`${i}:${n}:${r}`}},C7=Oae;var _7=Ia(Q7());var pae={mounted(){this.props=this.getProps(),this.lineHeight=BR(this.el),this.templateEl=ho(this.el,"[data-template]"),this.contentEl=ho(this.el,"[data-content]"),this.capLines();let t=this.hyperListConfig();this.virtualizedList=new _7.default(this.contentEl,t),this.props.follow&&Rf(this.contentEl)},updated(){this.props=this.getProps(),this.capLines();let t=this.props.follow&&FR(this.contentEl),e=this.hyperListConfig();this.virtualizedList.refresh(this.contentEl,e),t&&Rf(this.contentEl)},getProps(){return pt(this.el,["max-height","follow","max-lines","ignore-trailing-empty-line"])},hyperListConfig(){let t=this.getLineElements(),e=t.length,i=Math.min(this.props.maxHeight,this.lineHeight*e);return{height:i,total:e,itemHeight:this.lineHeight,generate:n=>{let r=t[n].cloneNode(!0);return r.removeAttribute("id"),r},afterRender:()=>{this.contentEl.scrollWidth>this.contentEl.clientWidth?this.contentEl.style.height=`${i+12}px`:this.contentEl.style.height=`${i}px`}}},getLineElements(){let t=Array.from(this.templateEl.querySelectorAll("[data-line]"));if(t.length===0)return[];let e=t[t.length-1];return this.props.ignoreTrailingEmptyLine&&e.innerText===""?t.slice(0,-1):t},capLines(){if(this.props.maxLines){let e=Array.from(this.templateEl.querySelectorAll("[data-line]")).slice(0,-this.props.maxLines),[i,...n]=e;n.forEach(r=>r.remove()),i&&(i.innerHTML="...")}}},A7=pae;var mae={mounted(){let t=bt.get(),e=this.el.querySelector('[name="show_section"][value="true"]'),i=this.el.querySelector('[name="show_markdown"][value="true"]'),n=this.el.querySelector('[name="show_code"][value="true"]'),r=this.el.querySelector('[name="show_output"][value="true"]'),o=this.el.querySelector('[name="spotlight"][value="true"]');e.checked=t.custom_view_show_section,i.checked=t.custom_view_show_markdown,n.checked=t.custom_view_show_code,r.checked=t.custom_view_show_output,o.checked=t.custom_view_spotlight,e.addEventListener("change",s=>{bt.update({custom_view_show_section:s.target.checked})}),i.addEventListener("change",s=>{bt.update({custom_view_show_markdown:s.target.checked})}),n.addEventListener("change",s=>{bt.update({custom_view_show_code:s.target.checked})}),r.addEventListener("change",s=>{bt.update({custom_view_show_output:s.target.checked})}),o.addEventListener("change",s=>{bt.update({custom_view_spotlight:s.target.checked})})}},$7=mae;var X7={AppAuth:gT,AudioInput:vT,Cell:d6,CellEditor:mI,Dropzone:gI,EditorSettings:bI,EmojiPicker:n7,FocusOnUpdate:r7,Headline:s7,Highlight:a7,ImageInput:l7,ImageOutput:c7,JSView:p7,KeyboardControl:m7,MarkdownRenderer:g7,ScrollOnUpdate:b7,Session:y7,TextareaAutosize:x7,Timer:v7,UserForm:T7,UtcDateTimeInput:E7,UtcTimeInput:C7,VirtualizedLines:A7,CustomViewSettings:$7};var R7={onBeforeElUpdated(t,e){for(let i of t.attributes)i.name.startsWith("data-js-")&&e.setAttribute(i.name,i.value),i.name==="data-keep-attribute"&&(t.hasAttribute(i.value)?e.setAttribute(i.value,t.getAttribute(i.value)):e.removeAttribute(i.value))},onNodeAdded(t){if(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("autofocus")&&(t.focus(),t.setSelectionRange&&t.value)){let e=t.value.length;t.setSelectionRange(e,e)}}};var Eg=Ia(I7());function D7(){Eg.default.config({barColors:{0:"#b2c1ff"},shadowColor:"rgba(0, 0, 0, .3)"}),window.addEventListener("phx:page-loading-start",()=>{Eg.default.show(500)}),window.addEventListener("phx:page-loading-stop",()=>{Eg.default.hide()})}function z7(){window.addEventListener("lb:focus",t=>{requestAnimationFrame(()=>{t.target.focus()})}),window.addEventListener("lb:set_value",t=>{t.target.value=t.detail.value}),window.addEventListener("lb:check",t=>{t.target.checked=!0}),window.addEventListener("lb:uncheck",t=>{t.target.checked=!1}),window.addEventListener("lb:set_text",t=>{t.target.textContent=t.detail.value}),window.addEventListener("lb:clipcopy",t=>{"clipboard"in navigator?t.detail.content?navigator.clipboard.writeText(t.detail.content):t.target.tagName==="INPUT"?navigator.clipboard.writeText(t.target.value):navigator.clipboard.writeText(t.target.textContent):alert(`Sorry, your browser does not support clipboard copy.
|
||
This generally requires a secure origin \u2014 either HTTPS or localhost.`)}),window.addEventListener("lb:scroll_into_view",t=>{let e=t.detail||{};VR(t.target).then(()=>{ym(t.target,F({scrollMode:"if-needed",behavior:"smooth",block:"nearest",inline:"nearest"},e))})}),window.addEventListener("phx:lb:exec_js",t=>{let e=t.detail.to||"body";document.querySelectorAll(e).forEach(i=>{window.liveSocket.execJS(i,t.detail.js)})}),window.addEventListener("lb:session_list:on_selection_change",()=>{let t=!!document.querySelector("[name='session_ids[]']:checked"),e=document.querySelector("#edit-sessions [name='disconnect']"),i=document.querySelector("#edit-sessions [name='close_all']");e.parentElement.classList.toggle("pointer-events-none",!t),e.parentElement.classList.toggle("opacity-50",!t),i.parentElement.classList.toggle("pointer-events-none",!t),i.parentElement.classList.toggle("opacity-50",!t)}),window.addEventListener("contextmenu",t=>{let e=t.target.closest("[data-contextmenu-trigger-click]");e&&(t.preventDefault(),e.dispatchEvent(new Event("mousedown",{bubbles:!0})),e.dispatchEvent(new Event("click",{bubbles:!0})))}),window.addEventListener("submit",t=>{t.target.hasAttribute("phx-nosubmit")&&(t.preventDefault(),t.stopPropagation())},{capture:!0})}function U7(){let t=/AppleWebKit/.test(navigator.userAgent),e="ontouchstart"in window||navigator.maxTouchPoints>0;if(t&&e){let i=document.querySelector("meta[name='viewport']");i&&(i.content+=", maximum-scale=1.0")}}var H2="confirm-opted-out-ids";function M7(){return Es(H2)||[]}function N7(){window.addEventListener("phx:add_confirm_opt_out_id",t=>{let e=Es(H2)||[],i=t.detail.opt_out_id;e.push(i),Va(H2,e)})}function gae(){let t=document.querySelector("meta[name='csrf-token']").getAttribute("content"),e=new hT(window.LIVEBOOK_BASE_URL_PATH+"/live",Rh,{params:i=>({_csrf_token:t,user_data:S7(),app_auth_token:mT(),confirm_opt_out_ids:M7()}),hooks:X7,dom:R7});D7(),z7(),N7(),U7(),bt.getAndSubscribe(i=>{document.body.setAttribute("data-editor-theme",i.editor_theme)}),e.connect(),window.liveSocket=e}if(bae())gae();else{let t=document.createElement("div");t.innerHTML=`
|
||
<div class="fixed top-0 bottom-0 left-0 right-0 z-[1000] px-4 py-8 bg-gray-900/95 flex justify-center items-center">
|
||
<div class="max-w-[600px] w-full flex flex-col">
|
||
<div class="text-xl text-gray-100 font-medium">
|
||
Action required
|
||
</div>
|
||
<div class="mt-3 text-sm text-gray-300">
|
||
It looks like Livebook does not have access to cookies. This usually happens when
|
||
it runs in an iframe. To make sure the app is fully functional open it in a new
|
||
tab directly. Alternatively you can relax security settings for this page to allow
|
||
third-party cookies.
|
||
</div>
|
||
<div class="mt-6">
|
||
<a
|
||
id="open-app"
|
||
class="px-5 py-2 font-medium text-sm inline-flex rounded-lg border whitespace-nowrap items-center justify-center gap-1 border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:bg-blue-700"
|
||
target="_blank"
|
||
>
|
||
Open app
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
`,t.querySelector("#open-app").href=window.location,document.body.appendChild(t)}function bae(){return document.cookie=`lb_probe_cookie=;path=/${pm()}`,document.cookie.split("; ").some(t=>t.startsWith("lb_probe_cookie="))}
|
||
/*! Bundled license information:
|
||
|
||
topbar/topbar.min.js:
|
||
(**
|
||
* @license MIT
|
||
* topbar 3.0.0
|
||
* http://buunguyen.github.io/topbar
|
||
* Copyright (c) 2024 Buu Nguyen
|
||
*)
|
||
*/
|