Time slots app prototype
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

276 lines
693 KiB

var imbac=(()=>{var ja=Object.defineProperty;var nl=Object.getOwnPropertyDescriptor;var ol=Object.getOwnPropertyNames;var al=Object.prototype.hasOwnProperty;var cl=(e,o)=>{for(var r in o)ja(e,r,{get:o[r],enumerable:!0})},ll=(e,o,r,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let h of ol(o))!al.call(e,h)&&h!==r&&ja(e,h,{get:()=>o[h],enumerable:!(i=nl(o,h))||i.enumerable});return e};var hl=e=>ll(ja({},"__esModule",{value:!0}),e);var tu={};cl(tu,{aliases:()=>In,compile:()=>Hh,deserialize:()=>qh,fonts:()=>Mo,helpers:()=>Yh,modifiers:()=>Vo,parse:()=>Kh,parseAsset:()=>Mh,parser:()=>Wh,program:()=>Uh,resolve:()=>Xh,resolveConfig:()=>Jh,rewrite:()=>Zh,selparser:()=>zh,tokenize:()=>Qh,variants:()=>Z1});var ul=Object.create,xa=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,fl=Object.getOwnPropertyNames,dl=Object.getPrototypeOf,_l=Object.prototype.hasOwnProperty,yl=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,r)=>(typeof require<"u"?require:o)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),Rs=(e,o)=>()=>(e&&(o=e(e=0)),o),we=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),on=(e,o)=>{for(var r in o)xa(e,r,{get:o[r],enumerable:!0})},W2=(e,o,r,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let h of fl(o))!_l.call(e,h)&&h!==r&&xa(e,h,{get:()=>o[h],enumerable:!(i=pl(o,h))||i.enumerable});return e},wa=(e,o,r)=>(r=e!=null?ul(dl(e)):{},W2(o||!e||!e.__esModule?xa(r,"default",{value:e,enumerable:!0}):r,e)),Gi=e=>W2(xa({},"__esModule",{value:!0}),e),Sa=we(e=>{var o={},r=e.TOK={},i=r.TERMINATOR=1,h=r.IDENTIFIER=r.IVAR=2,l=r.CONST=3,a=r.VAR=4,c=r.IF=5,d=r.ELSE=6,p=r.DEF=7;function u(w,A,$,C){return this._type=w,this._value=A,this._loc=$??-1,this._len=C??this._value.length,this._meta=null,this.generated=!1,this.newLine=!1,this.spaced=!1,this.call=!1,this}e.Token=u,u.prototype.type=function(){return this._type},u.prototype.value=function(){return this._value},u.prototype.traverse=function(){},u.prototype.c=function(){return""+this._value},u.prototype.prepend=function(w){return this._value=w+this._value,this},u.prototype.toString=function(){return this._value},u.prototype.charAt=function(w){return this._value.charAt(w)},u.prototype.slice=function(w){return this._value.slice(w)},u.prototype.cloneSlice=function(w,A){return new u(A||this._type,this.slice(w),this._loc+w,this._len-w)},u.prototype.region=function(){return[this._loc,this._loc+this._len]},u.prototype.startLoc=function(){return this._loc},u.prototype.endLoc=function(){return this._loc+this._len},u.prototype.loc=function(){return[this._loc,this.endLoc()]},e.lex=o.lex=function(){var w=this.tokens[this.pos++],A;return w?(A=w._type,this.yytext=w):A="",A},e.token=o.token=function(w,A){return new u(w,A,-1,0)},e.typ=o.typ=function(w){return w._type},e.val=o.val=function(w){return w._value},e.line=o.line=function(w){return w._line},e.loc=o.loc=function(w){return w._loc},e.setTyp=o.setTyp=function(w,A){return w._type=A},e.setVal=o.setVal=function(w,A){return w._value=A},e.setLine=o.setLine=function(w,A){return w._line=A},e.setLoc=o.setLoc=function(w,A){return w._loc=A};var y=e.LBRACKET=new u("{","{",0,0,0),m=e.RBRACKET=new u("}","}",0,0,0),x=e.LPAREN=new u("(","(",0,0,0),b=e.RPAREN=new u(")",")",0,0,0);y.generated=!0,m.generated=!0,x.generated=!0,b.generated=!0;var E=e.INDENT=new u("INDENT","2",0,0,0),v=e.OUTDENT=new u("OUTDENT","2",0,0,0)}),ml=we(e=>{var o={32:16777619n,64:1099511628211n,128:309485009821345068724781371n,256:374144419156711147060143317175368453031918731002211n,512:35835915874844867368919076489095108449946327955754392558399825615420669938882575126094039892345713852759n,1024:5016456510113118655434598811035278955030765345404790744303017523831112055108147451509157692220295382716162651878526895249385292291816524375083746691371804094271873160484737966720260389217684476157468082573n},r={32:2166136261n,64:14695981039346656037n,128:144066263297769815596495629667062367629n,256:10002925795805258090707096862062570483709279601424119394522
}`:`{
`+u+`
}`},e.normalizeIndentation=r.normalizeIndentation=function(u){for(var y,m=/\n+([^\n\S]*)/g,x=null,b;y=m.exec(u);){var E=y[1];(x===null||0<(b=E.length)&&b<x.length)&&(x=E)}return x&&(u=u.replace(RegExp("\\n"+x,"g"),`
`)),u},e.flatten=r.flatten=function(u){var y=[];return u.forEach(function(m){return m instanceof Array?y.push.apply(y,r.flatten(m)):y.push(m)}),y},e.clearLocationMarkers=r.clearLocationMarkers=function(u){return u.replace(/\/\*\%([\w\|]*)\$\*\//g,"")},e.pascalCase=r.pascalCase=function(u){return u.replace(/(^|[\-\_\s])(\w)/g,function(y,m,x){return x.toUpperCase()})},e.camelCase=r.camelCase=function(u){return u=String(u),u.replace(/([\-\_\s])(\w)/g,function(y,m,x){return x.toUpperCase()})},e.dashToCamelCase=r.dashToCamelCase=function(u){return u=String(u),u.indexOf("-")>=0&&(u=u.replace(/([\-\s])(\w)/g,function(y,m,x){return x.toUpperCase()})),u},e.snakeCase=r.snakeCase=function(y){var y=y.replace(/([\-\s])(\w)/g,"_");return y.replace(/()([A-Z])/g,"_$1",function(m,x,b){return b.toUpperCase()})},e.dasherize=r.dasherize=function(u){return u.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()},e.setterSym=r.setterSym=function(u){return r.dashToCamelCase("set-"+u)},e.quote=r.quote=function(u){return'"'+u+'"'},e.singlequote=r.singlequote=function(u){return"'"+u+"'"},e.isValidIdentifier=r.isValidIdentifier=function(u){return!/[?-\s]/.test(u)&&u[0]!="#"},e.toValidIdentifier=r.toValidIdentifier=function(u){return d(u)},e.fromValidIdentifier=r.fromValidIdentifier=function(u){return c(u)},e.isSystemIdentifier=r.isSystemIdentifier=function(u){return p.indexOf(u[0])>=0},e.symbolize=r.symbolize=function(u,y){return u=String(u),r.toValidIdentifier(u);var m},e.indent=r.indent=function(u){return String(u).replace(/^/g," ").replace(/\n/g,`
`).replace(/\n\t$/g,`
`)},e.bracketize=r.bracketize=function(u,y){return y===void 0&&(y=!0),y&&(u=`
`+r.indent(u)+`
`),"{"+u+"}"},e.parenthesize=r.parenthesize=function(u){return"("+String(u)+")"},e.unionOfLocations=r.unionOfLocations=function(){for(var u=arguments,y=u.length,m=new Array(y>0?y:0);y>0;)m[y-1]=u[--y];var x=1/0,b=-1/0;for(let E=0,v=o(m),w=v.length,A;E<w;E++)A=v[E],A&&A._loc!=null&&(A=A._loc),A&&A.loc instanceof Function&&(A=A.loc()),A instanceof Array?(x>A[0]&&(x=A[0]),b<A[0]&&(b=A[1])):(typeof A=="number"||A instanceof Number)&&(x>A&&(x=A),b<A&&(b=A));return[x,b]},e.locationToLineColMap=r.locationToLineColMap=function(u){for(var y=u.split(/\n/g),m=[],x,b=0,E=0,v=0;x=u[b];)m[b]=[v,E],x==`
`?(v++,E=0):E++,b++;return m[b]=[v,E],m[b+1]=[v,E],m},e.markLineColForTokens=r.markLineColForTokens=function(u,y){return r},e.parseArgs=r.parseArgs=function(u,y){var m;y===void 0&&(y={});var x=y.alias||(y.alias={}),b=y.group||(y.group=[]),E=y.schema||{};E.main={};var v={},w={};u=u||process.argv.slice(2);for(var A=null,$=0,C;$<u.length;){var F=u[$];if($++,C=F.match(/^\-([a-zA-Z]+)(\=\S+)?$/)){A=null;let V=C[1].split("");for(let H=0,X=o(V),tt=X.length,st;H<tt;H++){st=X[H];var I=x[st]||st;V[H]=I,v[I]=!0}V.length==1&&(A=V);continue}else if(C=F.match(/^\-\-([a-z0-9\-\_A-Z]+)(\=\S+)?$/)){var R=!0;I=C[1],I.indexOf("no-")==0&&(I=I.substr(3),R=!1),I=r.dashToCamelCase(I),C[2]&&(R=C[2].slice(1)),v[I]=R,A=I;continue}else{var M=E[A];A&&E[A]||(A="main"),F.match(/^\d+$/)&&(F=parseInt(F)),R=v[A],R==!0||R==!1?v[A]=F:typeof R=="string"||R instanceof String||typeof R=="number"||R instanceof Number?v[A]=[R].concat(F):R instanceof Array?R.push(F):v[A]=F,M&&M.multi||(A="main")}}for(let V=0,H=o(b),X=H.length;V<X;V++){let tt=r.dashToCamelCase(H[V]);for(let st,Z=0,kt=Object.keys(v),W=kt.length,zt;Z<W;Z++)if(zt=kt[Z],st=v[zt],zt.indexOf(tt)==0){let K=zt.substr(tt.length).replace(/^\w/,function(wt){return wt.toLowerCase()});K?(v[tt]||(v[tt]={}),v[tt][K]=st):v[tt]||(v[tt]={})}}return(typeof(m=v.env)=="string"||m instanceof String)&&(v["ENV_"+v.env]=!0),v},e.printExcerpt=r.printExcerpt=function(u,y,m){(!m||m.constructor!==Object)&&(m={});var x=m.hl!==void 0?m.hl:!1,b=m.gutter!==void 0?m.gutter:!0,E=m.type!==void 0?m.type:"warn",v=m.pad!==void 0?m.pad:2,w=u.split(/\n/g),A=r.locationToLineColMap(u),$=A[y[0]]||[0,0],C=$[0],F=$[1],I=w[C],R=Math.max(0,C-v),M=Math.min(R+v+1+v,w.length);let V=C-R;for(var H=R,X=[];H<M;)X.push(w[H++]);var tt=X;return b&&(tt=tt.map(function(st,Z){let kt=""+(R+Z+1),W;for(;kt.length<String(M).length;)kt=" "+kt;return Z==V?(W=" -> "+kt+" | "+st,x&&(W=l.f(x,W))):(W=" "+kt+" | "+st,x&&(W=l.f("gray",W))),W})),tt.join(`
`)},e.printWarning=r.printWarning=function(u,y){let m=y.message,x=r.printExcerpt(u,y.loc,{hl:"whiteBright",type:"warn",pad:1});return m+`
`+x},e.identifierForPath=r.identifierForPath=function(u){let y=i(u).toString(36);return y[0].match(/\d/)&&(y="z"+y),y},e.isPlainObject=r.isPlainObject=function(u){return typeof u=="object"&&Object.getPrototypeOf(u)==Object.prototype},e.deepAssign=r.deepAssign=function(u,y){for(let m,x=0,b=Object.keys(y),E=b.length,v;x<E;x++){v=b[x],m=y[v];let w=u[v];r.isPlainObject(w)&&r.isPlainObject(m)?r.deepAssign(w,m):u[v]=m}return u}}),Ta=we(e=>{function o(A){return A?A.toArray?A.toArray():A:[]}var r=e.BALANCED_PAIRS=[["(",")"],["[","]"],["{","}"],["{{","}}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["TAG_START","TAG_END"],["STYLE_START","STYLE_END"],["BLOCK_PARAM_START","BLOCK_PARAM_END"]],i=e.BITWISE_OPERATORS={"|":!0,"&":!0,"!&":!0,"~":!0,"|=":!0,"&=":!0,"~=":!0,"^=":!0,"^":!0,"<<":!0,"<<=":!0,">>":!0,">>=":!0},h=e.ASSIGNMENT_OPERATORS={"=":!0,"=?":!0,"??=":!0,"||=":!0,"&&=":!0,"|=":!0,"|=?":!0,"&=":!0,"&=?":!0,"^=":!0,"^=?":!0,"~=":!0,"~=?":!0},l=e.INVERSES={};for(let A=0,$=r.length,C;A<$;A++)C=r[A],a=C[0],c=C[1],l[c]=a,l[a]=c,r[a]=c;var a,c,d=e.ALL_KEYWORDS=["true","false","null","this","delete","typeof","in","instanceof","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","return","undefined","then","unless","until","loop","of","by","when","def","tag","do","elif","begin","var","let","self","await","import","and","or","is","isnt","not","yes","no","isa","case","nil","require"],p=e.TOK={TERMINATOR:"TERMINATOR",INDENT:"INDENT",OUTDENT:"OUTDENT",DEF_BODY:"DEF_BODY",THEN:"THEN",CATCH:"CATCH"},u=e.OPERATOR_ALIASES={and:"&&",or:"||",is:"==",isnt:"!=",isa:"instanceof"},y=e.HEREGEX_OMIT=/\s+(?:#.*)?/g,m=e.HEREGEX=/^\/{3}([\s\S]+?)\/{3}([a-z]{0,8})(?!\w)/,x=e.TAG_GLOBAL_ATTRIBUTES={itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,enterkeyhint:1,autofocus:1,autocapitalize:1,autocomplete:1,accesskey:1,inputmode:1,spellcheck:1,translate:1,is:1},b=e.SYSVAR_PREFIX={TAG:"\u03C4",FLIP:"\u03C9",VALUE:"\u03C5",CACHE:"\u03C1",KEY:"\u03BA",ANY:"\u03C6",B:"\u0398",T:"\u03C4",C:"\u03C1",V:"\u03C5",K:"\u03BA",D:"\u0394"},E=e.TAG_TYPES={"":[-1,{id:1,className:"class",slot:1,part:1,elementTiming:"elementtiming"}],HTML:[-1,{title:1,lang:1,translate:1,dir:1,accessKey:"accesskey",draggable:1,spellcheck:1,autocapitalize:1,inputMode:"inputmode",style:1,tabIndex:"tabindex",enterKeyHint:"enterkeyhint"}],HTMLAnchor:[1,{target:1,download:1,ping:1,rel:1,relList:"rel",hreflang:1,type:1,referrerPolicy:"referrerpolicy",coords:1,charset:1,name:1,rev:1,shape:1,href:1}],HTMLArea:[1,{alt:1,coords:1,download:1,shape:1,target:1,ping:1,rel:1,relList:"rel",referrerPolicy:"referrerpolicy",href:1}],HTMLMedia:[1,{src:1,crossOrigin:"crossorigin",preload:1,controlsList:"controlslist"}],HTMLAudio:[4,{}],HTMLBase:[1,{href:1,target:1}],HTMLQuote:[1,{cite:1}],HTMLBody:[1,{text:1,link:1,vLink:"vlink",aLink:"alink",bgColor:"bgcolor",background:1}],HTMLBR:[1,{clear:1}],HTMLButton:[1,{formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",name:1,type:1,value:1}],HTMLCanvas:[1,{width:1,height:1}],HTMLTableCaption:[1,{align:1}],HTMLTableCol:[1,{span:1,align:1,ch:"char",chOff:"charoff",vAlign:"valign",width:1}],HTMLData:[1,{value:1}],HTMLDataList:[1,{}],HTMLMod:[1,{cite:1,dateTime:"datetime"}],HTMLDetails:[1,{}],HTMLDialog:[1,{}],HTMLDiv:[1,{align:1}],HTMLDList:[1,{}],HTMLEmbed:[1,{src:1,type:1,width:1,height:1,align:1,name:1}],HTMLFieldSet:[1,{name:1}],HTMLForm:[1,{acceptCharset:"accept-charset",action:1,autocomplete:1,enctype:1,encoding:"enctype",method:1,name:1,target:1}],HTMLHeading:[1,{align:1}],HTMLHead:[1,{}],HTMLHR:[1,{align:1,color:1,size:1,width:1}],HTMLHtml:[1,{version:1}],HTMLIFrame:[1,{src:1,srcdoc:1,name:1,sandbox:1,width:1,height:1,referrerPolicy:"referrerpolicy",csp:1,allow:1,align:1,scrolling:1,frameBorder:"frameborder",longDesc:"longdesc",marginHeight:"marginheight",marginWidth:"marginwidth",loading:1}],HTMLImage:[1,{alt:1,src:1,srcset:1,sizes:1,crossOrigin:"crossorigin",useMap:"usemap",wi
`).replace(/\t/g," ")+`
`}toError(){let e=this.range.start,o=this.range.end,r=""+this[zn].sourcePath+":"+(e.line+1)+":"+(e.character+1)+": "+this.message,i=new SyntaxError(r),h=this[zn].doc.getLineText(e.line),l=[r,h];return l.push(h.replace(/[^\t]/g," ").slice(0,e.character)+"^".repeat(o.character-e.character)),i.stack=`
`+l.join(`
`).replace(/\t/g," ")+`
`,i}raise(){throw this.toError()}}});function bl(e){let o;return e?(o=e.toIterable)?o.call(e):e:[]}function ic(e,o,r=1e5){let i=e;for(;i&&r>0;){if(i.match(o))return i;r--,i=i.prev}return null}function i2(e,o,r){r===void 0&&(r=0);for(var i=o?[r]:[],h=0;h<e.length;){var l=e.charCodeAt(h);(l===13||l===10)&&(l===13&&h+1<e.length&&e.charCodeAt(h+1)===10&&h++,i.push(r+h+1)),h++}return i}function kl(e){var o=e.start,r=e.end;return o.line>r.line||o.line===r.line&&o.character>r.character?new fo(r,o):e instanceof fo?e:new fo(o,r)}function xl(e){return e!=null&&typeof e.text=="string"&&e.range===void 0}function wl(e){let o=e.split(/\n/),r=[],i={indent:-1,children:[]},h=i,l,a=Date.now();for(let c=0,d=bl(o),p=d.length;c<p;c++){let u=d[c];if(u.match(/^\s*$/))continue;let y=u.match(/^\t*/)[0].length;for(;i.indent>=y;)i=i.parent||h;if(l=u.match(/^(\t*((?:export )?(?:static )?(?:extend )?)(class|tag|def|get|set|prop|attr) )(\@?[\w\-\$\:]+(?:\.[\w\-\$]+)?)/),l){let m=l[3],x=l[4],b=i.name?i.name+".":"",E=l[2].trim().split(/\s+/),v="",w={start:{line:c,character:l[1].length},end:{line:c,character:l[0].length}},A={kind:m,ownName:x,name:b+x,span:w,indent:y,modifiers:E,children:[],parent:i==h?null:i,type:m,data:{},static:E.indexOf("static")>=0,extends:E.indexOf("extend")>=0};A.static&&(A.containerName="static"),A.containerName=l[2]+l[3],m=="tag"&&(l=u.match(/\<\s+([\w\-\$\:]+(?:\.[\w\-\$]+)?)/))&&(A.superclass=l[1]),i.type=="tag"&&(v="```html\n<"+i.name+" "+x+">\n```\n",A.description={kind:"markdown",value:v}),i.children.push(A),i=A,r.push(A)}}return h.all=r,console.log("fast outline",e.length,Date.now()-a),h}var _a=Rs(()=>{Ea()});function p1(e){let o;return e?(o=e.toIterable)?o.call(e):e:[]}function Sl(e,o="#"){typeof e=="string"&&(e=e.split(" "));let r=e.slice().sort(function(i,h){return h.length-i.length});return r=r.map(function(i){let h=i.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");return o.replace("#",h)}),new RegExp("(?:"+r.join("|")+")")}function Ue(e,o,r,i={}){var h;e==null?e=_1:e==1?e={next:"@>"}:e==2?e={next:"@>_indent&-_indent"}:typeof e=="string"&&(e={next:e}),o==-1&&(o=d1),r==-1?r=d1:r==0&&(i.comment==null?i.comment=!0:i.comment,r={}),e=Object.assign({token:"white.tabs"},e||{}),r=Object.assign({token:"white.tabs"},r||{}),o=Object.assign({token:"@rematch",next:"@pop"},o||{});let l={"$1==$S2 ":e,"$1==$S2":{cases:{"$1==$S6":r,"@default":{token:"@rematch",switchTo:"@*$1"}}},"@default":o};h=0;for(let c of["next","switchTo"]){let d=h++;e[c]&&e[c].indexOf("*")==-1&&(e[c]+="*$1")}let a=[/^(\t*)(?=[^ \t\n])/,{cases:l}];if(i.comment){let c={};for(let d=0,p=Object.keys(l),u=p.length,y,m;d<u;d++){y=p[d],m=l[y];let x=Object.assign({},m);!x.next&&!x.switchTo&&(x.next="@>_comment"),c[y]=x}return[[/^(\t*)(?=#\s|#$)/,{cases:c}],a]}return a}function Wo(e){let o=["$S1","$S2","$S3","$S4","$S5","$S6"];if(e.match(/\@(pop|push|popall)/)||(e[0]=="@"&&(e=e.slice(1)),e.indexOf(".")>=0))return e;e=la(e),e[0]==">"&&(o[1]="$S6 ",e=e.slice(1));for(let r=0,i=p1(e.split(/(?=[\/\&\=\*])/)),h=i.length;r<h;r++){let l=i[r];l[0]=="&"?l[1]=="-"||l[1]=="_"?o[2]="$S3"+l.slice(1):o[2]="$S3-"+l.slice(1):l[0]=="+"?o[3]="$S4-"+l.slice(1):l[0]=="="?o[3]=l.slice(1):l[0]=="/"?o[4]=l.slice(1):l[0]=="*"?o[5]=l.slice(1):o[0]=l}return o.join(".")}function la(e){let o=e;return e=e.replace("$/","$S5"),e=e.replace("$F","$S4"),e=e.replace("$&","$S3"),e=e.replace("$I","$S2"),e=e.replace("$T","$S2"),e}function f1(e,o){if(typeof e=="string"&&(e={token:e}),e&&e.token!=null)e.token=la(e.token),typeof o=="string"?e.next=o:o&&Object.assign(e,o),e.next&&(e.next=Wo(e.next)),e.switchTo&&(e.switchTo=Wo(e.switchTo));else if(e&&e.cases){let r={};for(let i=e.cases,h=0,l=Object.keys(i),a=l.length,c,d;h<a;h++){c=l[h],d=i[c];let p=la(c);r[p]=f1(d)}e.cases=r}else if(e instanceof Array){let r=[],i=null;for(let h=0,l=p1(e),a=l.length;h<a;h++){let c=l[h];c[0]=="@"&&h==e.length-1&&i&&(c={next:c}),typeof c=="object"?c.token!=null||c.cases?r.push(i=Object.assign({},c)):Object.assign(i,c):typeof c=="string"&&r.push(i={token:la(c)})}e=r}if(e instanceof Array)for(let r=0,i=p1(e),h=i.length;r<h;r++){let l=i[r];l.to
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof c.open=="string"&&typeof c.token=="string"&&typeof c.close=="string")l.push({token:c.token+r.tokenPostfix,open:Do(r,c.open),close:Do(r,c.close)});else throw rs(r,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return r.brackets=l,r.noThrow=!0,r}var lc,hc=Rs(()=>{ac(),lc=class{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e,this.stats={time:0,count:0,hits:0}}setRegex(e,o){let r;if(typeof o=="string")r=o;else if(o instanceof RegExp)r=o.source;else throw rs(e,"rules must start with a match string or regular expression: "+this.name);r.length==2&&r[0]=="\\"&&/[\{\}\(\)\[\]]/.test(r[1])&&(this.string=r[1]),this.matchOnlyAtLineStart=r.length>0&&r[0]==="^",this.name=this.name+": "+r,this.regex=y1(e,"^(?:"+(this.matchOnlyAtLineStart?r.substr(1):r)+")")}setAction(e,o){this.action=m1(e,this.name,o)}}}),Jn,uc,pc=Rs(()=>{Jn=class{constructor(e,o,r){this.offset=e|0,this.type=o,this.language=r,this.kind=0,this.mods=0,this.value=null,this.stack=null}toString(){return this.value||""}get span(){return{offset:this.offset,length:this.value?this.value.length:0}}get indent(){return 0}get startOffset(){return this.offset}get endOffset(){return this.offset+(this.value?this.value.length:0)}clone(){let e=new Jn(this.offset,this.type,this.language);return e.value=this.value,e.stack=this.stack,e}match(e){if(typeof e=="string")if(e.indexOf(" ")>0)e=e.split(" ");else{let o=this.type.indexOf(e);return e[0]=="."?o>=0:o==0}if(e instanceof Array)for(let o of e){let r=this.type.indexOf(o);if(o[0]=="."?r>=0:r==0)return!0}return e instanceof RegExp?e.test(this.type):!1}},uc=class{constructor(e,o){this.tokens=e,this.endState=o}}});function So(e,o){return e.split(".")[o]}function Dl(e,o){if(!o)return null;o=Do(e,o);let r=e.brackets;for(let i of r){if(i.open===o)return{token:i.token,bracketType:1};if(i.close===o)return{token:i.token,bracketType:-1}}return null}var Ga,Va,To,lo,za,Eo,Zo,l2,$1,fc=Rs(()=>{pc(),ac(),Ga=10,Va=class{static create(e,o){return this._INSTANCE.create(e,o)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,o){if(e!==null&&e.depth>=this._maxCacheDepth)return new lo(e,o);let r=lo.getStackElementId(e);r.length>0&&(r+="|"),r+=o;let i=this._entries[r];return i||(i=new lo(e,o),this._entries[r]=i,i)}},To=Va,To._INSTANCE=new Va(Ga),lo=class{constructor(e,o){this.parent=e,this.state=o,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let o="";for(;e!==null;)o.length>0&&(o+="|"),o+=e.state,e=e.parent;return o}static _equals(e,o){for(;e!==null&&o!==null;){if(e===o)return!0;if(e.state!==o.state)return!1;e=e.parent,o=o.parent}return e===null&&o===null}get indent(){return this.state.lastIndexOf(" ")-this.state.indexOf(" ")}get scope(){return this.part(2)}get detail(){return this.part(2)}part(e){return this.state.split(".")[e]}equals(e){return lo._equals(this,e)}push(e){return To.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return To.create(this.parent,e)}},za=class{static create(e){return this._INSTANCE.create(e)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e){if(e!==null&&e.depth>=this._maxCacheDepth)return new Zo(e);let o=lo.getStackElementId(e),r=this._entries[o];return r||(r=new Zo(e),this._entries[o]=r,r)}},Eo=za,Eo._INSTANCE=new za(Ga),Zo=class{constructor(e){this.stack=e}clone(){return Eo.create(this.stack)}equals(e){return!(!(e instanceof Zo)||!this.stack.equals(e.stack))}},l2=class{constructor(){this._tokens=[],this._language=null,this._lastToken=new Jn(0,"start","imba"),this._lastTokenType=null}enterMode(e,o){this._language=o}emit(e,o,r){this._lastTokenType;let i=new Jn(e,o,this._language);return this._lastTokenType=o,this._lastToken=i,this._tokens.push(i),i}finalize(e){return new uc(this._tokens,e)}},$1=class{constructor(e,o){this._modeId=e,this._lexer=o,this._profile=!1}dispose(){}getLoadStatus(){
:/*%+-`.indexOf(a)>=0?(i="array",l=A2):(i="index",l=L2),new l(e,o,r,i,h)}},ta=class extends bs{},C2=class extends ta{},A2=class extends Io{get delimiters(){return this.childNodes.filter(function(e){return e.match("delimiter")})}indexOfNode(e){var o;let r=this.delimiters,i=0;o=0;for(let h of Fl(r)){let l=o++;e.offset>h.offset&&i++}return i}},L2=class extends Io{},Za=class extends bs{static[rn](){return this.prototype[Un]=Wa,this}constructor(){super(...arguments),this.prev.datatype=this,this[Un]===Wa&&this[Hn]&&this[Hn]()}toString(){return this.value}},Za[rn](),$2=class extends bs{},R2=class extends ta{},P2=class extends bs{get isTypeOnly(){return this.start.prev.match("keyword.type")}get sourcePath(){let e=this.childNodes.find(function(o){return o.match("path")});return e?.innerText}get specifiers(){return this.childNodes.find(function(e){return e.match("specifiers")})}get default(){return this.childNodes.find(function(e){return e.match(".default")})}get namespace(){return this.childNodes.find(function(e){return e.match(".ns")})}},nn={style:d2,array:Io,stylerule:_2,sel:v2,path:S2,value:p2,tag:T2,forscope:y2,field:g2,type:Za,parens:Ja,brackets:Io,object:R2,braces:ta,specifiers:C2,string:f2,tagattr:E2,imports:P2,interpolation:$2,tagattrvalue:O2,tagcontent:I2,listener:N2,styleinterpolation:w2,styleprop:x2,stylepropkey:b2,stylevalue:k2,args:Ja}});function Bl(e,o){let r=Object.getOwnPropertyDescriptors(o);return delete r.constructor,Object.defineProperties(e,r),e}function pr(e){let o;return e?(o=e.toIterable)?o.call(e):e:[]}var ea,sa,Qa,t1,e1,ra,Sn,D2,ma,mc=Rs(()=>{_a(),dc(),_a(),yc(),R1(),Bo(),Ea(),ea=Symbol.for("#ins"),sa=Symbol.for("#del"),Qa=Symbol.for("#version"),t1=Symbol.for("#multiline"),e1=Symbol.for("#significant"),ra=Symbol.for("#body"),Sn=Symbol.for("#lexed"),D2=class{get node(){return this.scope&&this.scope.start==this?this.scope:this.pops?this.pops:this}get nextNode(){var e;return(e=this.next)==null?void 0:e.node}get prevNode(){var e;return(e=this.prev)==null?void 0:e.node}},Bl(Jn.prototype,D2.prototype),ma=class{static tmp(e){return new this("file://temporary.imba","imba",0,e)}static from(e,o,r,i){return new this(e,o,r,i)}constructor(e,o,r,i){this.uri=e,this.languageId=o,this.version=r,this.content=i,this.connection=null,this.lineTokens=[],this.isLegacy=o=="imba1"||e&&e.match(/\.imba1$/),this.head=this.seed=new Jn(0,"eol","imba"),this.initialState=po.getInitialState(),this.seed.stack=po.getInitialState(),this.history=[],this.lexer=po,this.versionToHistoryMap={},this.versionToHistoryMap[r]=-1,i&&i.match(/^\#[^\n]+imba1/m)&&(this.isLegacy=!0)}log(...e){return console.log(...e)}get lineCount(){return this.lineOffsets.length}get lineOffsets(){return this._lineOffsets||(this._lineOffsets=i2(this.content,!0))}getText(e=null){if(e){let o=this.offsetAt(e.start),r=this.offsetAt(e.end);return this.content.substring(o,r)}return this.content}getLineText(e){let o=this.lineOffsets[e],r=this.lineOffsets[e+1];return this.content.substring(o,r).replace(/[\r\n]/g,"")}positionAt(e){if(e instanceof $o)return e;typeof e=="object"&&(e=e.offset),e=Math.max(Math.min(e,this.content.length),0);let o=this.lineOffsets,r=0,i=o.length;if(i===0)return new $o(0,e,e,this.version);for(;r<i;){let l=Math.floor((r+i)/2);o[l]>e?i=l:r=l+1}let h=r-1;return new $o(h,e-o[h],e,this.version)}offsetAt(e){if(e.offset)return e.offset;let o=this.lineOffsets;if(e.line>=o.length)return this.content.length;if(e.line<0)return 0;let r=o[e.line],i=e.line+1<o.length?o[e.line+1]:this.content.length;return e.offset=Math.max(Math.min(r+e.character,i),r)}rangeAt(e,o=e){return new fo(this.positionAt(e),this.positionAt(o))}overwrite(e,o){return this.version=o||this.version+1,this.content=e,this._lineOffsets=null,this.invalidateFromLine(0),this}update(e,o){o==null&&(o=this.version+1);let r=[],i=!1;r[ea]="",r[sa]="";for(let l=0,a=pr(e),c=a.length;l<c;l++){let d=a[l];if(xl(d)){this.overwrite(d.text,o),r.push([0,this.content.length,d.text]),i=!0;continue}let p=kl(d.range),u=this.offsetAt(p.start),y=this.offsetAt(p.end);d.range=p,d.offset=u,d.length=y-u,p.start.offset=u,p.en
`)>=0&&(r[t1]=!0,h&&!h[t1]&&(r[e1]=!0,r[ra]=this.content)),this.versionToHistoryMap[o]=this.history.length-1,this.updated(e,o)}get lastSignificantVersion(){let e=this.history.length;for(;e>0;){let o=this.history[--e];if(o&&o[e1])return o[Qa]}return null}editsSinceVersion(e){let o=this.versionToHistoryMap[e],r=[];for(let i=0,h=pr(this.history.slice(o+1)),l=h.length;i<l;i++){let a=h[i];r.push(...a)}return r}contentAtVersion(e){let o=this.versionToHistoryMap[e],r=this.history[o];return r[ra]!=null?r[ra]:null}offsetAtVersion(e,o,r=this.version,i=!1){let h=this.versionToHistoryMap[o],l=this.versionToHistoryMap[r],a=e,c=!1;if(h<l)for(;h<l;){let d=this.history[++h];for(let p=0,u=pr(d),y=u.length;p<y;p++){let[m,x,b]=u[p];m>a||(i&&(m-=1),a>m&&a>m+x&&(a+=b.length-x))}}else if(l<h)for(;l<h;){let d=this.history[h--];for(let p=0,u=pr(d),y=u.length;p<y;p++){let[m,x,b]=u[p];m>a||a>m&&a>m+x&&(a-=b.length-x)}}return a}historicalOffset(e,o){return this.offsetAtVersion(e,this.version,o,!0)}applyEdit(e,o,r){this.content=this.content.substring(0,e.range.start.offset)+e.text+this.content.substring(e.range.end.offset,this.content.length);let i=e.range.start.line;this.invalidateFromLine(i)}updated(e,o){return this.version=o,this}invalidateFromLine(e){return this.head=this.seed,this}after(e,o){let r=this.tokens.indexOf(e);if(o){for(;r<this.tokens.length;){let i=this.tokens[++r];if(i&&this.matchToken(i,o))return i}return null}return this.tokens[r+1]}matchToken(e,o){return o instanceof RegExp?e.type.match(o):typeof o=="string"?e.type==o:!1}before(e,o,r=0){let i=this.tokens.indexOf(e)+r;if(o){for(;i>0;){let h=this.tokens[--i];if(this.matchToken(h,o))return h}return null}return this.tokens[i-1]}getTokenRange(e){return{start:this.positionAt(e.offset),end:this.positionAt(e.offset+e.value.length)}}getTokensInScope(e){let o=this.tokens.indexOf(e.start),r=e.end?this.tokens.indexOf(e.end):this.tokens.length,i=o,h=[];for(;i<r;){let l=this.tokens[i++];l.scope&&l.scope!=e?(h.push(l.scope),i=l.scope.endIndex+1):h.push(l)}return h}getSymbols(){var e;return this.astify(),(e=this[Sn]).symbols||(e.symbols=this.tokens.map(function(o){return o.symbol}).filter(function(o){return o}).filter(function(o,r,i){return i.indexOf(o)==r}))}getImportedSymbols(){return this.getSymbols().filter(function(e){return e.imported\u03A6})}getImportNodes(){return this.tokens.filter(function(e){return e.match("push._imports")}).map(function(e){return e.scope})}getNodesInScope(e,o=!1){let r=e.start,i=e.end;o?i=i.next:r=r.next;let h=[];for(;r&&r!=i;){if(r.scope&&r.scope!=e){h.push(r.scope),r=r.scope.end.next;continue}else r.type!="white"&&h.push(r);r=r.next}return h}getTokenAtOffset(e,o=!1){return this.tokenAtOffset(e)}getSemanticTokens(e=ie.Scoped){let o=this.parse(),r=[];for(let i=0,h=pr(o),l=h.length;i<l;i++){let a=h[i],c=a.symbol;if(!(c&&(!e||c.flags&e)))continue;let d=Po[c.semanticKind],p=a.mods|c.semanticFlags;r.push([a.offset,a.value.length,d,p])}return r}getEncodedSemanticTokens(){let e=this.getSemanticTokens(),o=[],r=0,i=0;for(let h=0,l=pr(e),a=l.length;h<a;h++){let c=l[h],d=this.positionAt(c[0]),p=d.line-r,u=p?d.character:d.character-i;o.push(p,u,c[1],c[2],c[3]),r=d.line,i=d.character}return o}getDestructuredPath(e,o=[],r=null){if(e.context.type=="array")return this.getDestructuredPath(e.context.start,o,r),o.push(e.context.indexOfNode(e)),o;let i=e.value;return e.prev.match("operator.assign.key-value")&&(i=e.prev.prev.value),e.context.type=="object"&&(this.getDestructuredPath(e.context.start,o,r),o.push(i)),o}tokenAtOffset(e){let o=this.tokens[0];for(;o;){let r=o.next;if(o.offset>=e)return o.prev;if(o.end&&o.end.offset<e)o=o.end;else if(r)o=r;else return o}return o}patternAtOffset(e,o=/[\w\-\.\%]/){let r=e,i=e,h=this.content;for(;r>0&&o.test(this.content[r-1]);)r--;for(;o.test(this.content[i+1]||"");)i++;return[h.slice(r,i+1),r,i]}adjustmentAtOffset(e,o=1){let[r,i,h]=this.patternAtOffset(e),[l,a=""]=r.split(/[\d\.]+/),c=parseFloat(r.slice(l.length).slice(0,a.length?-a.length:1e3));return Number.isNaN(c)?null:(c+=o,[i+l.length,r.length-l.length-a.length,String(c)])}contextAtOffs
`);return o.slice(r+1)}varsAtOffset(e,o=!1){let r=this.tokenAtOffset(e),i=[],h=r.context.scope,l={};for(;h;){for(let a=0,c=pr(Object.values(h.varmap)),d=c.length;a<d;a++){let p=c[a];p.global\u03A6&&!o||l[p.name]||(!p.node||p.node.offset<e)&&(i.push(p),l[p.name]=p)}h=h.parent}return i}getOutline(e=null){var o,r,i,h;if(this.isLegacy){let v=wl(this.content);for(let w=0,A=pr(v.all),$=A.length;w<$;w++){let C=A[w];o=C.parent,delete C.parent,C.path=C.name,C.name=C.ownName,e&&e(C,v.all)}return v}this.ensureParsed();let l=Date.now(),a=[],c={children:[]},d=c,p=null,u={},y=new Set,m=null;function x(v,w){return v instanceof _o&&(y.add(v),v={name:v.name,kind:v.kind}),u=v,v.token=w,v.children||(v.children=[]),v.span||(v.span=w.span),v.name||(v.name=w.value),a.push(v),d.children.push(v)}function b(v){return u.children||(u.children=[]),u.parent||(u.parent=d),d=u,d.end=v}function E(v){return d=d.parent}for(let v=0,w=pr(this.tokens),A=w.length;v<A;v++){let $=w[v],C=$.symbol,F=$.scope;if($.type=="key")x({kind:gr.Key},$);else if(C){if(C.parameter\u03A6)continue;y.has(C)||x(C,$),C.body&&(m=C.body.start)}else if(F&&F.type=="do"){let I=this.textBefore($.offset-3).replace(/^\s*(return\s*)?/,"");I+=" callback",x({kind:gr.Function,name:I},$.prev),m=$}else F&&F.type=="tag"&&x({kind:gr.Field,name:F.outline},$);$==m&&b($.end),$==d.end&&E()}for(let v=0,w=pr(a),A=w.length;v<A;v++){let $=w[v];if($.span){let C=$.span.length;$.span.start=this.positionAt($.span.offset),$.span.end=C?this.positionAt($.span.offset+C):$.span.start}e&&e($,a),r=$.parent,delete $.parent,i=$.end,delete $.end,h=$.token,delete $.token}return c}getContextAtOffset(e,o=!1){return this.contextAtOffset(e)}ensureParsed(){return this.parse(),this}reparse(){return this.invalidateFromLine(0),this.parse()}profileReparse(){let e=Date.now(),o=this.reparse();return console.log("took",Date.now()-e),o}tokenize(e=!1){var o;let r=this[Sn]||{lines:[],version:-1};if(r.version==this.version&&!e)return r;let i=this.content;this.isLegacy&&(i=i.replace(/\@\w/g,function(u){return"\xB6"+u.slice(1)}),i=i.replace(/\w\:(?=\w)/g,function(u){return u[0]+"."}),i=i.replace(/(do)(\s?)\|([^\|]*)\|/g,function(u,y,m,x){return y+"("+(m||"")+x+")"}));let h=this.lineOffsets,l=[],a=this.seed,c=Date.now(),d=this.initialState;this[Sn]={version:this.version,lines:[],tokens:l};let p={};this[Sn].cache=p;for(let u=0,y=pr(r.lines),m=y.length;u<m;u++){let x=y[u];(p[o=x.text]||(p[o]=[])).push(x)}for(let u=0,y=pr(h),m=y.length;u<m;u++){let x=y[u],b=h[u+1]||i.length,E=i.slice(x,b),v=d,w=p[E],A=w&&w.filter(function(F){return F.startState==v}),$=A&&(A.find(function(F){return F.offset==x})||A[0]),C=null;if($&&($.offset==x,C=$.clone(x)),!C){let F=po.tokenize(E,v,x);C=new g1({offset:x,text:E,startState:v,endState:F.endState,tokens:F.tokens})}for(let F=0,I=pr(C.tokens),R=I.length;F<R;F++){let M=I[F];l.push(M)}this[Sn].lines.push(C),d=C.endState}return this[Sn]}get tokens(){return this.astify(),this[Sn].tokens}getTokens(e=null){return this.tokens}astify(){let e=this.tokenize();if(e.root)return this;let o={"]":"[",")":"(","}":"{",">":"<"},r={"[":"]","(":")","{":"}","<":">"},i=/[\w\$\)\]\?]/,h=Date.now(),l=null,a=e.root=new Co(this,this.seed,null,"root"),c=this.content,d=console.log.bind(console),p=null,u=null,y=null,m=null,x=0;for(let b=0,E=pr(e.tokens),v=E.length;b<v;b++){let w=E[b],A=w.type.split("."),$=w.value,C=e.tokens[b+1],[F,I,R]=A,M=A[A.length-1],V=A[A.length-2],H=null,X=0;if(F=="ivar"&&($=w.value="@"+$.slice(1)),m&&(m.next=w),w.prev=m,w.context=a,F=="("&&m){let tt=c[w.offset-1]||"";i.test(tt)&&(a=w.scope=nn.args.build(this,w,a,"args",A))}if(F=="operator"&&(w.op=w.value.trim()),F=="keyword"&&(Fs[I]&&(x|=Fs[I]),($=="let"||$=="const")&&(u=w,y=null)),F=="entity"&&(w.mods|=x,x=0),F=="push"){let tt=I,st=I.lastIndexOf("_"),Z=st>=0?bs:On;st>=0?(tt=tt.slice(st+1),Z=nn[tt]||bs):nn[tt]&&(Z=nn[tt]),a=w.scope=new Z(this,w,a,tt,A),p&&(p.body=a,a.symbol=p,p=null),a==a.scope&&(u=null,y=null)}else F=="pop"?(I=="value"&&(y=null),a=a.pop(w)):(I=="open"||r[I])&&nn[F]?a=w.scope=nn[F].build(this,w,a,F,A):M=="open"&&(H=nn[V])?a=w.scope=H.build(this,w,a
`),a.push({newText:h,range:this.rangeAt(l,l)}),c}}}),P1={};on(P1,{basename:()=>xc,default:()=>F1,delimiter:()=>b1,dirname:()=>kc,extname:()=>wc,isAbsolute:()=>M1,join:()=>vc,normalize:()=>D1,relative:()=>bc,resolve:()=>ga,sep:()=>v1});function gc(e,o){for(var r=0,i=e.length-1;i>=0;i--){var h=e[i];h==="."?e.splice(i,1):h===".."?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(o)for(;r--;r)e.unshift("..");return e}function ga(){for(var e="",o=!1,r=arguments.length-1;r>=-1&&!o;r--){var i=r>=0?arguments[r]:"/";if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");!i||(e=i+"/"+e,o=i.charAt(0)==="/")}return e=gc(j1(e.split("/"),function(h){return!!h}),!o).join("/"),(o?"/":"")+e||"."}function D1(e){var o=M1(e),r=Sc(e,-1)==="/";return e=gc(j1(e.split("/"),function(i){return!!i}),!o).join("/"),!e&&!o&&(e="."),e&&r&&(e+="/"),(o?"/":"")+e}function M1(e){return e.charAt(0)==="/"}function vc(){var e=Array.prototype.slice.call(arguments,0);return D1(j1(e,function(o,r){if(typeof o!="string")throw new TypeError("Arguments to path.join must be strings");return o}).join("/"))}function bc(e,o){e=ga(e).substr(1),o=ga(o).substr(1);function r(p){for(var u=0;u<p.length&&p[u]==="";u++);for(var y=p.length-1;y>=0&&p[y]==="";y--);return u>y?[]:p.slice(u,y-u+1)}for(var i=r(e.split("/")),h=r(o.split("/")),l=Math.min(i.length,h.length),a=l,c=0;c<l;c++)if(i[c]!==h[c]){a=c;break}for(var d=[],c=a;c<i.length;c++)d.push("..");return d=d.concat(h.slice(a)),d.join("/")}function kc(e){var o=Oa(e),r=o[0],i=o[1];return!r&&!i?".":(i&&(i=i.substr(0,i.length-1)),r+i)}function xc(e,o){var r=Oa(e)[2];return o&&r.substr(-1*o.length)===o&&(r=r.substr(0,r.length-o.length)),r}function wc(e){return Oa(e)[3]}function j1(e,o){if(e.filter)return e.filter(o);for(var r=[],i=0;i<e.length;i++)o(e[i],i,e)&&r.push(e[i]);return r}var M2,Oa,v1,b1,F1,Sc,B1=Rs(()=>{M2=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Oa=function(e){return M2.exec(e).slice(1)},v1="/",b1=":",F1={extname:wc,basename:xc,dirname:kc,sep:v1,delimiter:b1,relative:bc,join:vc,isAbsolute:M1,normalize:D1,resolve:ga},Sc="ab".substr(-1)==="b"?function(e,o,r){return e.substr(o,r)}:function(e,o,r){return o<0&&(o=e.length+o),e.substr(o,r)}}),Tc={};on(Tc,{SourceMapper:()=>va});var va,Ec=Rs(()=>{va=class{static strip(e){return e.replace(/\/\*\%([\w\|]*)\$\*\//g,"")}static run(e,o={}){return{code:e.replace(/\/\*\%([\w\|]*)\$\*\//g,""),map:null,toString:function(){return this.code}}}}}),Ia={};on(Ia,{Compilation:()=>Yn,CompilationResult:()=>Oc});var s1,r1,ia,Oc,Yn,G1=Rs(()=>{mc(),Ea(),B1(),Ec(),s1=Symbol.for("#__init__"),r1=Symbol.for("#doc"),ia={TOKENIZE:1,REWRITE:2,PARSE:4,TRAVERSE:8,COMPILE:16},Oc=class{},Yn=class{static[s1](){return this.current=void 0,this}static error(e){var o,r;return(r=(o=this.current)==null?void 0:o.addDiagnostic)==null?void 0:r.call(o,"error",e)}static warn(e){var o,r;return(r=(o=this.current)==null?void 0:o.addDiagnostic)==null?void 0:r.call(o,"warning",e)}static info(e){var o,r;return(r=(o=this.current)==null?void 0:o.addDiagnostic)==null?void 0:r.call(o,"info",e)}static deserialize(e,o={}){return new Yn("",o).deserialize(e)}constructor(e,o){this.sourceCode=e,this.sourcePath=o.sourcePath,this.options=o,this.flags=0,this.js="",this.css="",this.result={},this.diagnostics=[],this.tokens=null,this.ast=null}deserialize(e){let o;try{o=JSON.parse(e)}catch(r){throw console.log("failed",e,this.options),r}return this.rawResult=o,this.deserialized=o,this}serialize(){if(this.rawResult)return JSON.stringify(this.rawResult,null,2)}tokenize(){var e;if((this.flags&(e=ia.TOKENIZE))==0&&(this.flags|=e,!0))try{Yn.current=this,this.lexer.reset(),this.tokens=this.lexer.tokenize(this.sourceCode,this.options,this),this.tokens=this.rewriter.rewrite(this.tokens,this.options,this)}catch{}return this.tokens}parse(){var e;if(this.tokenize(),(this.flags&(e=ia.PARSE))==0&&(this.flags|=e,!0)&&!this.errored\u03A6){Yn.current=this;try{this.ast=this.parser.parse(this.tokens,this)}catch{}}return this}compile(){var e;return this.parse(),(this.flags&(e=ia.COMPILE))==0&&(this.flags|=e,
import './`+F1.basename(this.sourcePath)+".css'"),r}return{js:this.js}}addDiagnostic(e,o){o.severity||(o.severity=e);let r=new rc(o,this);return this.diagnostics.push(r),r}get errored\u03A6(){return this.errors.length>0}get errors(){return this.diagnostics.filter(function(e){return e.severity==Ro.Error})}get warnings(){return this.diagnostics.filter(function(e){return e.severity==Ro.Warning})}get info(){return this.diagnostics.filter(function(e){return e.severity==Ro.Information})}get doc(){return this[r1]||(this[r1]=new ma(null,"imba",0,this.sourceCode))}positionAt(e){return this.doc.positionAt(e)}offsetAt(e){return this.doc.offsetAt(e)}rangeAt(e,o){return this.doc.rangeAt(e,o)}toString(){return this.js}raiseErrors(){if(this.errors.length)throw this.errors[0].toError();return this}},Yn[s1]()}),V1=we(e=>{function o(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=Object.create(c.prototype),a.__super__=a.prototype.__super__=c.prototype,a.prototype.initialize=a.prototype.constructor=a}var r=Fo(),i=new WeakMap;function h(a,c){var d;this.error=a,this._options=c||{},this.severity=this._options.severity||"error";let p=a.message;(d=p.match(/Unexpected '([\w\-]+)'/))&&d[1]=="TERMINATOR"&&(p="Unexpected newline"),this.message=p,this.sourcePath=a.sourcePath,this.line=a.line}o(h,Error),e.ImbaParseError=h,h.wrap=function(a){return new this(a)},Object.defineProperty(h.prototype,"_options",{get:function(){return i.get(this)},configurable:!0}),Object.defineProperty(h.prototype,"_options",{set:function(a){return i.set(this,a)},configurable:!0}),h.prototype.set=function(a){this._options||(this._options={});for(let c,d=0,p=Object.keys(a),u=p.length,y;d<u;d++)y=p[d],c=a[y],this._options[y]=c;return this},h.prototype.start=function(){for(var a=this._options,c=a.pos-1,d=a.tokens&&a.tokens[c];d&&(d._loc==-1||d._loc==0||d._len==0);)d=a.tokens[--c];return d},Object.defineProperty(h.prototype,"token",{get:function(){if(this._token)return this._token;for(var a=this._options,c=a.pos-1,d=a.tokens&&a.tokens[c];d&&(d._loc==-1||d._loc==0||d._len==0);)d=a.tokens[--c];return this._token=d},configurable:!0}),h.prototype.desc=function(){var a=this._options;let c=this.message;return a.token&&a.token._loc==-1?"Syntax Error":c},h.prototype.loc=function(){var a;return this._loc||(a=this.start())&&a.region&&a.region()},h.prototype.toJSON=function(){var a=this._options,c=this.start();return{warn:!0,message:this.desc(),loc:this.loc()}},h.prototype.toNativeError=function(){let a=new SyntaxError("hello");return a.fileName=this._sourcePath,a.message=this.message,a.stack=this.excerpt({colors:!1,details:!0}),a.lineNumber=this.lineNumber,a.columnNumber=this.columnNumber,a},h.prototype.excerpt=function(a){(!a||a.constructor!==Object)&&(a={});var c=a.gutter!==void 0?a.gutter:!0,d=a.colors!==void 0?a.colors:!1,p=a.details!==void 0?a.details:!0;try{var u=this._code,y=this.loc(),m=u.split(/\n/g),x=r.locationToLineColMap(u),b=x[y[0]]||[0,0],E=b[0],v=b[1],w=m[E];this.lineNumber=E+1,this.columnNumber=v;var A=Math.max(0,E-2),$=Math.min(A+5,m.length);let M=E-A;var C=A,F=function(V){return V};if(d){let V=this.severity=="warn"?"yellow":"red";(typeof d=="string"||d instanceof String)&&(V=d),F=function(H){return r.ansi[V](r.ansi.bold(H))}}for(var I=[];C<$;)I.push(w=m[C++]);var R=I;return c&&(R=R.map(function(V,H){let X=""+(A+H+1);for(;X.length<String($).length;)X=" "+X;return H==M?" -> "+X+" | "+V:" "+X+" | "+V})),R[M]=F(R[M]),p&&R.unshift(F(this.message)),R.join(`
`)+`
`}catch{return""}},h.prototype.prettyMessage=function(){var a;return a=this.excerpt()};function l(){return h.apply(this,arguments)}o(l,h),e.ImbaTraverseError=l,l.prototype.loc=function(){return this._loc},l.prototype.excerpt=function(){var a=l.prototype.__super__.excerpt.apply(this,arguments);return a+`
---
`+this.error.stack}}),Gl=we(e=>{function o(O){return O&&(O.len instanceof Function?O.len():O.length)||0}function r(O,S){return S&&S.indexOf?S.indexOf(O):[].indexOf.call(O,S)}function i(O){return O?O.toArray?O.toArray():O:[]}function h(O,S){for(var D in S)S.hasOwnProperty(D)&&(O[D]=S[D]);O.prototype=Object.create(S.prototype),O.__super__=O.prototype.__super__=S.prototype,O.prototype.initialize=O.prototype.constructor=O}var l=Sa(),a=l.Token,c=Ta().INVERSES,d=(G1(),Gi(Ia)).Compilation,p=V1(),u=Fo(),y=["true","false","null","this","delete","typeof","in","instanceof","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","return"],m={",":1,"\n":1,")":1,"]":1,"}":1,">":1," ":1},x=["extend","local","global","prop"],b=e.ALL_KEYWORDS=["true","false","null","this","self","delete","typeof","in","instanceof","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","return","undefined","then","unless","until","loop","of","by","when","def","tag","do","elif","begin","var","let","const","await","import","and","or","is","isnt","not","yes","no","isa","case","nil","module","export","static","extend"],E=["case","default","function","void","with","const","enum","native"],v=y.concat(E),w=/^((\$|##|#|@@|@|\%)[\$\wA-Za-z_\-\x7f-\uffff][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*[\?]?|[$A-Za-z_][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*[\?]?)([^\n\S]*:)?/,A=/^import\s+(\{?[^\"\'\}]+\}?)(?=\s+from\s+)/,$=/^(\<)(?=[A-Za-z\#\.\%\$\[\{\@\>\(])/,C=/^(\w[\w\d]*:)?(\w[\w\d]*)(-[\w\d]+)*/,F=/^#((\w[\w\d]*)(-[\w\d]+)*)/,I=/^([%\$]{1,2})([\(])/,R=/^\:((([\*\@$\w\x7f-\uffff]+)+([\-\\\:][\w\x7f-\uffff]+)*)|==|\<=\>)/,M=/^\#[\w\-]+/,V=/^(\-?\d*\.?\d+)([A-Za-z]+|\%)?(?![\d\w])/,H=/^[\w\-\$]*\w[\w\-\$]*/,X=/^url\(([^\)]*)\)/,tt=/^(\^?[\w\-\$\@\.\!\#\^]+)(?=\:([^\:]|$)|\s*\=)/,st=/^0x[\da-f_]+|^0b[01_]+|^0o[\d_]+|^\-?(?:\d[_\d]*)\.?\d[_\d]*(?:e[+-]?\d+)?|^\-?\d*\.?\d+(?:e[+-]?\d+)?/i,Z=/^("""|''')([\s\S]*?)(?:\n[^\n\S]*)?\1/,kt=/^(?:[-=]=>|!&|[&|~^]?=\?|[&|~^]=|\?\?=|===|---|->|=>|\/>|!==|\*\*=?|[-+*\/%<>&|^!?=]=|=<|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\?\?|\.{2,3}|\*(?=[a-zA-Z\_]))/,W=/^[^\n\S]+/,zt=/^###([^#][\s\S]*?)(?:###[^\n\S]*|(?:###)?$)/,K=/^\/\*([\s\S]*?)\*\//,wt=/^(\s*)((#[ \t\!]|\/\/(?!\/))(.*)|#[ \t]?(?=\n|$))+/,it=/^[-=]=>/,ot=/^(?:\n[^\n\S]*)+/,nt=/^'[^\\']*(?:\\.[^\\']*)*'/,ht=/^(\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)([a-z]{0,8})(?!\w)/,et=/^\/{3}([\s\S]+?)\/{3}([a-z]{0,8})(?!\w)/,z=/\n/g,St=/\n+([^\n\S]*)/g,Se=/\*\//,mt=/^\s*(?:,|\??\.(?![.\d])|(?:&&|\|\||and|or)[\n\s])/,At=/^\$\w+\$/,vt=/^\$\d$/,Lt=["-=","+=","/=","*=","%=","||=","&&=","?=","??=","<<=",">>=",">>>=","&=","^=","|=","~=","=<","**=","=?","~=?","|=?","&=?","^=?"],bt=["!","~","NEW","TYPEOF","DELETE"],Tt=["&&","||","??","and","or"],lt=["<<",">>",">>>"],yt=["===","!==","==","!=","<",">","<=",">=","===","!==","&","|","^","!&"],Ot=["*","/","%","\u222A","\u2229","\u221A"],pt=["IN","OF","INSTANCEOF","ISA"],Mt=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]"],It=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]",")","}","THIS","SELF","IDENTIFIER","STRING"],gt=["\\",".","UNARY","MATH","EXP","+","-","SHIFT","RELATION","COMPARE","THROW","EXTENDS"],Pt=["IDENTIFIER","SYMBOLID","STRING","REGEX",")","]","INDEX_END","THIS","SUPER","TAG_END","IVAR","SELF","NEW","ARGVAR","SYMBOL","RETURN","INDEX_END","CALL_END","DECORATOR","@"],Ct=["IDENTIFIER","SYMBOLID","STRING","REGEX",")","]","THIS","SUPER","TAG_END","IVAR","SELF","NEW","ARGVAR","SYMBOL","RETURN","BANG","NUMBER","BOOL","TAG_SELECTOR","ARGUMENTS","}","TAG_TYPE","TAG_REF","INDEX_END","CALL_END"],rt=["INDENT","OUTDENT","TERMINATOR"];function N(O,S,D){return this.message=O,this.file=S,this.line=D,this}h(N,SyntaxError),e.LexerError=N;var L=function(O,S){return S===void 0&&(S=0),O[O.length-S-1]},Y=function(O,S){return O.split(S).length-1},Nt=function(O,S){for(var D="";S>0;)S%2==1&&(D+=O),O+=O,S>>=1;return D},at=l.typ,ft=l.val,$t=l.setTyp,Rt=l.setVal;function ct(
`+O,O.match(/^\s*$/g)))return[];O=O.replace(/\r/g,"").replace(/[\t ]+$/g,"")}if(this._last=null,this._lastTyp=null,this._lastVal=null,this._script=D,this._code=O,this._opts=S,this._locOffset=S.loc||0,this._platform=S.platform||S.target,this._indentStyle=" ",(P=O.match(/^([\ \t]*)[^\n\s\t]/))&&(this._state.gutter=P[1]),S.gutter!==void 0&&(this._state.gutter=S.gutter),this._script&&!S.inline&&(this._script.tokens=this._tokens),this.parse(O),S.inline||this.closeIndentation(),this._ends.length&&this.error("missing "+this._ends.pop()),this._platform=="tsc")for(let q=0,dt=i(this._tokens),Q=dt.length,se;q<Q;q++)se=dt[q],se._type=="SYMBOLID"&&(se._type="IDENTIFIER");return this._tokens},ct.prototype.parse=function(O){var S=0,D=0;for(this._loc=this._locOffset+S;this._chunk=O.slice(S);){let P=this._context;P&&P.pop&&P.pop.test(this._chunk)&&this.popEnd(),D=P&&P.lexer&&P.lexer.call(this)||this._end=="TAG"&&this.tagDefContextToken()||this._inTag&&this.tagContextToken()||this._inStyle2&&this.lexStyleBody()||this.basicContext(),S+=D,this._loc=this._locOffset+S}},ct.prototype.basicContext=function(){return this.selectorToken()||this.symbolToken()||this.identifierToken()||this.whitespaceToken()||this.lineToken()||this.commentToken()||this.heredocToken()||this.tagToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.literalToken()||0},ct.prototype.moveCaret=function(O){return this._loc+=O},ct.prototype.context=function(){return this._ends[this._ends.length-1]},ct.prototype.inContext=function(O){var S=this._contexts[this._contexts.length-1];return S&&S[O]},ct.prototype.pushEnd=function(O,S){let D=this._context;return this._ends.push(O),this._contexts.push(this._context=S||{}),this._end=O,this.refreshScope(),S&&(S.closeType=="STYLE_END"||S.style)&&(S.lexer=this.lexStyleBody,S.style=!0,this._inStyle++),D&&D.style&&O!="}"&&(S.lexer=this.lexStyleBody,S.style=!0),S&&S.id&&(S.start=new a(S.id+"_START",O,this._last.region()[1],0),this._tokens.push(S.start)),this},ct.prototype.popEnd=function(O){var S=this._ends.pop();this._end=this._ends[this._ends.length-1];var D=this._context;return D&&D.start&&(D.end=new a(D.closeType||D.id+"_END",S,this._last.region()[1],0),D.end._start=D.start,D.start._end=D.end,this._tokens.push(D.end)),D&&(D.closeType=="STYLE_END"||D.style)&&this._inStyle--,this._contexts.pop(),this._context=this._contexts[this._contexts.length-1],this.refreshScope(),[S,D]},ct.prototype.refreshScope=function(){var O=this._ends[this._ends.length-1],S=this._ends[this._ends.length-2];return this._inTag=O=="TAG_END"||S=="TAG_END"&&O=="OUTDENT"},ct.prototype.queueScope=function(O){return this._scopes[this._indents.length]=O,this},ct.prototype.popScope=function(O){return this._scopes.pop(),this},ct.prototype.getScope=function(){return this._scopes[this._indents.length-1]},ct.prototype.scope=function(O,S){var D=this._ends.push(this._end=O);return this._contexts.push(S||null),O},ct.prototype.closeSelector=function(){if(this._end=="%")return this.token("SELECTOR_END","%",0),this.pair("%")},ct.prototype.openDef=function(){return this.pushEnd("DEF")},ct.prototype.closeDef=function(){if(this.context()=="DEF"){var O=L(this._tokens);if(at(O)=="TERMINATOR"){let S=this._tokens.pop();this.token("DEF_BODY","DEF_BODY",0),this._tokens.push(S)}else this.token("DEF_BODY","DEF_BODY",0);this.pair("DEF")}},ct.prototype.tagContextToken=function(){let O=this._chunk[0],S=this._chunk[1],D=/^([A-Za-z\_\-\$\%\#][\w\-\$]*(\:[A-Za-z\_\-\$]+)*)/.exec(this._chunk);if(D){let P=D[1],q="TAG_LITERAL",dt=D[0].length;return P=="self"&&this._lastVal=="<"&&(q="SELF"),O=="$"&&(this._lastTyp=="TAG_TYPE"||this._lastTyp=="TAG_START")&&(q="TAG_REF"),O=="%"&&(q="MIXIN"),O=="#"&&(q="TAG_SYMBOL_ID",P.length==1)?0:(this.token(q,P,dt),dt)}if(O=="/"&&S==">")return this.token("TAG_END","/>",2),this.pair("TAG_END"),2;if(O=="%"||O==":"||O=="."||O=="@")return this.token("T"+O,O,1),O=="."&&(!S||m[S])&&this._platform=="tsc"&&this.token("TAG_LITERAL","$CARET$",0,1),1;if(O==" "||O==`
`||O==" "){let P=/^[\n\s\t]+/.exec(this._chunk);return this.token("TAG_WS",P[0],P[0].length),P[0].length}else if(O=="="&&this._chunk[1]!=">")return this.token("=","=",1),this.pushEnd("TAG_ATTR",{id:"VALUE",pop:/^([\s\n\>]|\/\>)/}),1;return 0},ct.prototype.tagDefContextToken=function(){var O;if(O=C.exec(this._chunk))return this.token("TAG_TYPE",O[0],O[0].length),O[0].length;if(O=F.exec(this._chunk)){var S=O[0];return this.token("TAG_ID",S,S.length),S.length}return this._chunk[0]==`
`&&this.pair("TAG"),0},ct.prototype.findTypeAnnotation=function(O){for(var S=[],D=0,P=[],q=/[\=\n\ \t\.\,\:\+]/;D<O.length;){var dt=O.charAt(D);let Q=S[0],se=Q=='"'||Q=="'";if(dt&&dt==Q)S.shift();else{if(!Q&&(dt==")"||dt=="]"||dt=="}"||dt==">"))break;if(dt=="(")S.unshift(")");else if(dt=="[")S.unshift("]");else if(dt=="{")S.unshift("}");else if(dt=="<")S.unshift(">");else if(dt=='"')S.unshift('"');else if(dt=="'")S.unshift("'");else if(!Q&&q.test(dt))break}D++}return D==0?null:O.slice(0,D)},ct.prototype.findBalancedSelector=function(O){for(var S=[],D=0,P=[];D<O.length-1;){var q=O.charAt(D);let Q=S[0],se=Q=='"'||Q=="'";if(q&&q==Q)S.shift();else if(!se&&(q==")"||q=="]"||q=="}")){console.log("out of balance!!");break}else q=="/"?P.unshift([D,1,":"]):q=="("&&!se?S.unshift(")"):q=="["&&!se?S.unshift("]"):q=='"'?S.unshift('"'):q=="'"&&S.unshift("'");if(!Q&&(q=="="||q==`
`||q=="{"))break;if(!Q&&q==" "){let jt=O.slice(D+1);if(tt.exec(jt)||wt.exec(jt))break}D++}if(D==0)return null;let dt=O.slice(0,D);if(P.length){dt=dt.split("");for(let Q=0,se=P.length;Q<se;Q++)dt.splice.apply(dt,P[Q]);dt=dt.join("")}return dt},ct.prototype.lexStyleRule=function(O,S){O===void 0&&(O=0),S===void 0&&(S=!1);let D=O?this._chunk.slice(O):this._chunk,P=this.findBalancedSelector(D);if(P||S){let q=P?P.length:0;this.token("CSS_SEL",P||"",q,O);let dt=this._last;return D[q]=="="&&q++,this._indents.push(1),this._outdebt=this._indebt=0,this.token("INDENT","1",0,1),this.pushEnd("OUTDENT",{lexer:this.lexStyleBody,opener:dt,style:!0}),this._indent++,q}return 0},ct.prototype.lexStyleBody=function(){if(this._end=="%")return 0;let O=this._chunk[0];var S;let D=tt.exec(this._chunk),P=this._lastTyp;if(!D&&this._chunk.match(/^([\%\*\w\&\$\>\/\.\[\@\!]|\#[\w\-]|\:\:)/)&&(P=="TERMINATOR"||P=="INDENT")&&this.findBalancedSelector(this._chunk))return this.lexStyleRule(0);if(D)return this.token("CSSPROP",D[0],D[0].length),D[0].length;if(O[0]=="#"&&(S=M.exec(this._chunk)))return this.token("COLOR",S[0],S[0].length),S[0].length;if(O=="/"&&!this._last.spaced)return this.token("/",O,1),1;if(S=V.exec(this._chunk)){let q=S[0].length,dt="NUMBER";return S[2]=="%"?dt="PERCENTAGE":S[2]&&(dt="DIMENSION"),this._lastTyp=="COMPARE"&&this._last.spaced,this.token(dt,S[0],q),q}else if(S=X.exec(this._chunk)){let q=S[0].length;return this.token("CSSURL",S[0],q),S[0].length}else if(S=H.exec(this._chunk)){let q="CSSIDENTIFIER",dt=S[0],Q=dt.length;return S[0].match(/^\-\-/)?q="CSSVAR":this._last&&!this._last.spaced&&(P=="}"||P==")")&&(q="CSSUNIT"),this._chunk[Q]=="("&&(q="CSSFUNCTION"),this.token(q,dt,Q),Q}else if(this._last&&!this._last.spaced&&(P=="}"||P==")")&&O=="%")return this.token("CSSUNIT",O,1),1;return 0},ct.prototype.importsToken=function(){var O;return(O=A.exec(this._chunk))?(this.token("IMPORTS",O[1],O[1].length,7),O[0].length):0},ct.prototype.tagToken=function(){var O,S;if(!(O=$.exec(this._chunk)))return 0;var S=i(O),D=S[0],P=S[1],q=S[2];if(P=="<"){if(this.token("TAG_START","<",1),this.pushEnd(c.TAG_START),O=C.exec(this._chunk.substr(1,40))){let dt=this._chunk[O[0].length+1];if(O[0]!="self"&&dt!="{"&&dt!="-")return this.token("TAG_TYPE",O[0],O[0].length,1),D.length+O[0].length}else this._chunk[1]==">"&&this.token("TAG_TYPE","fragment",0,0);if(q){if(q.substr(0,1)=="{")return P.length;this.token("TAG_NAME",D.substr(1),0)}}return D.length},ct.prototype.selectorToken=function(){var Q,O;if(this._end=="%"){for(var S=this._chunk[0],D=this._context,P=0,q="",dt=!1;S=this._chunk[P++];)if(S==")"&&D.parens==0){dt=!0;break}else if(S=="(")D.parens++,q+="(";else if(S==")")D.parens--,q+=")";else{if(S=="{")break;q+=S}return q&&this.token("SELECTOR_PART",q,P-1),dt?(this.token("SELECTOR_END",")",1,P-1),this.pair("%"),P):P-1}if(!(O=I.exec(this._chunk)))return 0;var Q=i(O),se=Q[0],jt=Q[1],Et=Q[2];return Et=="("?(this.token("SELECTOR_START",jt,jt.length+1),this.pushEnd("%",{parens:0}),jt.length+1):jt=="%"?this.context()=="%"?1:(this.token("SELECTOR_START",jt,jt.length),this.pushEnd("%",{open:!0}),jt.length):0},ct.prototype.inTag=function(){var O=this._ends.length;if(O>0){var S=this._ends[O-1],D=O>1?this._ends[O-2]:S;return S=="TAG_END"||D=="TAG_END"&&S=="OUTDENT"}return!1},ct.prototype.isKeyword=function(O){var S;if(this._lastTyp=="ATTR"||this._lastTyp=="PROP"||this._lastTyp=="DEF"||O=="when"&&this._lastTyp=="CONST")return!1;if((O=="get"||O=="set")&&(S=this._chunk.match(/^[gs]et ([\$\w\-]+|\[)/))){let q=this._contexts[this._contexts.length-1]||{},dt=q.opener&&this._tokens[this._tokens.indexOf(q.opener)-1];if(r(this._lastTyp,["TERMINATOR","INDENT"])>=0&&dt&&(dt._type=="="||dt._type=="{"))return!0}if((O=="guard"||O=="alter"||O=="watch")&&this.getScope()=="PROP"||O=="css")return!0;if(O=="attr"||O=="prop"||O=="get"||O=="set"||O=="css"||O=="constructor"||O=="declare"){var D=this.getScope(),P=D=="CLASS"||D=="TAG"||D=="EXTEND";if(O=="declare")return P&&r(this._lastTyp,["INDENT","TERMINATOR","DECORATOR"])>=0;if(O=="constructor")return P&&r(this._lastTyp,["INDENT","TERMINAT
`),O[0].length;if(O=wt.exec(this._chunk)){S=O[0].length,P=O[1],D=O[2];let Et=O[4]||"";D[0]=="#"&&(Et=" "+Et),q=L(this._tokens);var Q=q&&at(q),se="//"+Et;return this.parseMagicalOptions(se),this._last&&this._last.spaced&&(se=" "+se),se.match(/^\/\/ \@(type|param)/)?se="/**"+Et+"*/":se.match(/^\/\/ \<(reference)/)&&(se="///"+Et),Q&&Q!="INDENT"&&Q!="TERMINATOR"||!Q?this.token("TERMINATOR",se,S):Q=="TERMINATOR"?Rt(q,ft(q)+se):Q=="INDENT"?this.addLinebreaks(1,se):this.token(dt,D.substr(2),S),S}if(!(O=zt.exec(this._chunk)))return 0;D=O[0];var jt=O[1];return jt?(this.token("HERECOMMENT",this.sanitizeHeredoc(jt,{herecomment:!0,indent:Array(this._indent+1).join(" ")}),D.length),this.token("TERMINATOR",`
`)):(this.token("HERECOMMENT",D,D.length),this.token("TERMINATOR",`
`)),this.moveHead(D),D.length},ct.prototype.regexToken=function(){var P,O,S,D;if(this._chunk.charAt(0)!="/")return 0;if(O=et.exec(this._chunk))return S=this.heregexToken(O),this.moveHead(O[0]),S;if(D=L(this._tokens),D&&r(at(D),D.spaced?Mt:It)>=0||!(O=ht.exec(this._chunk)))return 0;var P=i(O),q=P[0],dt=P[1],Q=P[2];return this.token("REGEX",""+dt+Q,q.length),q.length},ct.prototype.heregexToken=function(O){var S,S=i(O),D=S[0],P=S[1],q=S[2];return this.token("REGEX",D,D.length),D.length},ct.prototype.lineToken=function(){var O,S;if(!(S=ot.exec(this._chunk)))return 0;var D=S[0],P=this.moveHead(D);this._seenFor=!1;var q=L(this._tokens,1);let dt=D.substr(D.lastIndexOf(`
`)+1);var Q=this.unfinished();if(/^\n#\s/.test(this._chunk))return this.addLinebreaks(1),0;this._state.gutter==null&&(this._state.gutter=dt),(O=this._state.gutter||this._opts.gutter)&&(dt.indexOf(O)==0?dt=dt.slice(O.length):this._chunk[D.length]===void 0||this.error("incorrect indentation"));var se=dt.length;if(this._opts.dropIndentation)return se;if(se>0){this._indentStyle||(this._opts.indent=this._indentStyle=dt,this._indentRegex=new RegExp(dt,"g"));let qt=0,Xt=0,ne=this._loc;for(;;)if(dt.indexOf(this._indentStyle,Xt)==Xt)qt++,Xt+=this._indentStyle.length;else{if(Xt==dt.length)break;{this._loc+=D.length-dt.length;let Wt=this._loc;this.token("INDENT",dt,dt.length),this.error("Use tabs for indentation",{offset:Wt+Xt,length:dt.length-Xt})}}se=qt}if(se-this._indebt==this._indent)return this._scopes.length=this._indents.length,Q?this.suppressNewlines():this.newlineToken(P,D),D.length;if(se>this._indent){if(Q)return this._indebt=se-this._indent,this.suppressNewlines(),D.length;if(this.inTag())return D.length;var jt=se-this._indent+this._outdebt;this.closeDef();var Et=this._scopes[this._indents.length],J=L(this._tokens);J&&at(J)=="TERMINATOR"?($t(J,"INDENT"),J._meta||(J._meta={pre:ft(J),post:""}),J.scope=Et):(this.token("INDENT",""+jt,0),this._last.scope=Et),this._indents.push(jt),this.pushEnd("OUTDENT",{opener:this._last}),this._outdebt=this._indebt=0,this.addLinebreaks(P)}else{this._indebt=0;let qt=this._indent-se,Xt=this._indent,ne=this._indentStyle==" ",Wt=D.replace().split(`
`),Yt=[],Ft=Wt.length,Ut=0;for(;Ft>0;){let ls=Wt[--Ft],ks=ne?ls.length:ls.replace(this._indentRegex," ").length;ks>Ut&&(Ut=ks),Yt[Ft]=Ut}Yt[0]=Xt;let ee=0,Be=[],fs="";for(let ls=0,ks=i(Wt),Vt=ks.length;ls<Vt;ls++){let pi=Yt[ls];for(;Xt>pi;)fs?(this.terminatorToken(fs),fs=""):this.terminatorToken(""),qt--,this.outdentToken(1,!0),Xt--;fs+=`
`+ks[ls]}for(fs&&this.terminatorToken(fs);qt>0;)this.outdentToken(1,!0),qt--}return this._indent=se,D.length},ct.prototype.outdentToken=function(O,S,D){for(var P=0;O>0;){var q=this._indents.length-1;if(this._indents[q]==null)O=0;else if(this._indents[q]==this._outdebt)O-=this._outdebt,this._outdebt=0;else if(this._indents[q]<this._outdebt)this._outdebt-=this._indents[q],O-=this._indents[q];else{P=this._indents.pop()-this._outdebt,O-=P,this._outdebt=0,S||this.addLinebreaks(1);let Q=this.pair("OUTDENT");if(this.token("OUTDENT",""+P,0),Q[1]&&Q[1].opener){let se=Q[1].opener;this._last._opener=se,se._closer=this._last,se._type=="CSS_SEL"&&this.token("CSS_END","",0)}}}for(P&&(this._outdebt-=O);this.lastTokenValue()==";";)this._tokens.pop();this.lastTokenType()=="TERMINATOR"||S||this.token("TERMINATOR",`
`,0),this._scopes.length=this._indents.length,this.closeDef();var dt=this.context();return(dt=="%"||dt=="TAG"||dt=="IMPORT"||dt=="EXPORT")&&this.pair(dt),this},ct.prototype.whitespaceToken=function(O){var S,D,P;if(!((S=W.exec(this._chunk))||(D=this._chunk.charAt(0)===`
`)))return 0;if(P=L(this._tokens),P)return S?(P.spaced=!0,S[0].length):(P.newLine=!0,0)},ct.prototype.moveHead=function(O){var S=Y(O,`
`);return S},ct.prototype.terminatorToken=function(O,S){return this._lastTyp=="TERMINATOR"?this._last._value+=O:this.token("TERMINATOR",O,S)},ct.prototype.addLinebreaks=function(O,S){var D;if(!S&&O==0)return this;var P=this._last;if(S||(O==1?D=`
`:O==2?D=`
`:O==3?D=`
`:D=Nt(`
`,O)),P){var q=P._type,dt=ft(P);if(q=="INDENT"){var Q=P._meta||(P._meta={pre:"",post:""});return Q.post+=S||D,this}else if(q=="TERMINATOR")return Rt(P,dt+(S||D)),this}this.token("TERMINATOR",S||D,0)},ct.prototype.newlineToken=function(O,S){this.addLinebreaks(O,S),this.closeDef();var D=this.context();return(D=="TAG"||D=="IMPORT"||D=="EXPORT")&&this.pair(D),this},ct.prototype.suppressNewlines=function(){return this.value()==="\\"&&this._tokens.pop(),this},ct.prototype.literalToken=function(){var O,S;(O=kt.exec(this._chunk))?(S=O[0],it.test(S)&&this.tagParameters()):S=this._chunk.charAt(0);var D=this._ends[this._ends.length-1],P=this._ends[this._ends.length-2],q=D=="TAG_END"||D=="OUTDENT"&&P=="TAG_END",dt=S,Q=L(this._tokens),se=Q&&at(Q),jt=Q&&ft(Q),Et=S.length;if(S=="="&&Q&&(jt=="||"||jt=="&&"))return $t(Q,"COMPOUND_ASSIGN"),Rt(Q,jt+"="),Q._len=this._loc-Q._loc+S.length,S.length;if(S=="\u0192"&&(dt="DO"),S=="|"){if(jt=="(")return this.token("DO","DO",0),this.pushEnd("|"),this.token("BLOCK_PARAM_START",S,1),Et;if(se=="DO")return this.pushEnd("|"),this.token("BLOCK_PARAM_START",S,1),Et;if(D=="|")return this.token("BLOCK_PARAM_END",S,1),this.pair("|"),Et}S===";"&&(this._seenFor=!1,dt="TERMINATOR"),S=="("&&se=="T."||S=="["&&q?dt="STYLE_START":S==="("&&q&&se!="="&&Q.spaced?this.token(",",","):S==="->"&&q?(dt="TAG_END",this.pair("TAG_END")):S==="=>"&&q?(dt="TAG_END",this.pair("TAG_END")):S==="/>"&&q?(dt="TAG_END",this.pair("TAG_END")):S===">"&&q?(dt="TAG_END",this.pair("TAG_END")):S==="TERMINATOR"&&D==="DEF"?this.closeDef():S==="&"&&this.context()=="DEF"?dt="BLOCK_ARG":S=="---"||S=="-"&&se=="TERMINATOR"&&this._chunk.match(/^\-\s*\n/)?dt="SEPARATOR":S=="*"&&this._chunk.charAt(1).match(/[A-Za-z\_\@\[]/)&&(Q.spaced||[",","(","[","{","|",`
`," "].indexOf(jt)>=0)?dt="SPLAT":S=="*"&&(this.context()=="IMPORT"||this.context()=="EXPORT")?dt=""+this.context()+"_ALL":S==","&&this.context()=="IMPORT"?dt="IMPORT_COMMA":S=="!"&&Q&&!Q.spaced&&(["]",")"].indexOf(jt)>=0||se=="IDENTIFIER"||se=="SYMBOLID"||se=="SUPER")?dt="BANG":S=="&"&&this._chunk.match(/^\&\s*[,\)\}\]]/)?dt="DO_PLACEHOLDER":S=="**"?dt="EXP":S=="%"&&(se=="NUMBER"||se==")")&&!Q.spaced?dt="UNIT":r(S,Ot)>=0?dt="MATH":r(S,yt)>=0?dt="COMPARE":r(S,Lt)>=0?dt="COMPOUND_ASSIGN":r(S,bt)>=0?dt="UNARY":r(S,lt)>=0?dt="SHIFT":r(S,Tt)>=0?dt="LOGIC":Q&&!Q.spaced&&(S=="{"&&se=="IDENTIFIER"&&(dt="{{"),S==="("&&r(se,Pt)>=0?dt="CALL_START":S==="("&&se=="DO"?dt="BLOCK_PARAM_START":S==="["&&r(se,Ct)>=0&&(dt="INDEX_START",se=="?"&&$t(Q,"INDEX_SOAK")));let J=null;switch(S){case"(":case"{":case"[":{this.pushEnd(c[S],{closeType:c[dt],i:this._tokens.length});break}case")":case"}":case"]":{let qt=this.pair(S);if(qt&&qt[1].closeType){dt=qt[1].closeType;let Xt=this._tokens[qt[1].i];J=this._tokens[qt[1].i]}break}}if(S=="\\"){dt="TYPE";let qt=this.findTypeAnnotation(this._chunk.slice(1));qt&&(S=S+qt)}if(S==".."&&!Q.spaced&&(dt="?.",S="?."),S==":"&&D=="TAG_RULE"&&(dt="T:"),(dt=="-"||dt=="+")&&/\w|\(|\$/.test(this._chunk[1])&&(!Q||Q.spaced)&&(dt=dt+dt+dt),this.token(dt,S,S.length),J&&(J._closer=this._last),this._platform=="tsc"){let qt=this._chunk[1]||"";S=="."&&(!qt||m[qt])?this.token("IDENTIFIER","$CARET$",0,1):S=="@"&&(!qt||/[^\$\@\-\.\w]/.test(qt))}return S.length},ct.prototype.sanitizeHeredoc=function(O,S){var D,P=S.indent,q=S.herecomment;if(q){if(Se.test(O)&&this.error("block comment cannot contain '*/' starting"),O.indexOf(`
`)<=0)return O}else for(var dt;D=St.exec(O);){var Q=D[1];(P===null||0<(dt=Q.length)&&dt<P.length)&&(P=Q)}return P&&(O=O.replace(RegExp("\\n"+P,"g"),`
`)),q||(O[0]==`
`&&(S.offset=P.length+1),O=O.replace(/^\n/,"")),S.realIndent=P,O},ct.prototype.tagParameters=function(){var O;if(this.lastTokenType()!=")")return this;var S=[],D=this._tokens,P=D.length;for($t(D[--P],"PARAM_END");O=D[--P];){var q=at(O);switch(q){case")":{S.push(O);break}case"(":case"CALL_START":{if(S.length)S.pop();else return q==="("?($t(O,"PARAM_START"),this):this;break}}}return this},ct.prototype.closeIndentation=function(){for(;;){var O=this.context();if(O=="TAG"||O=="IMPORT"||O=="EXPORT")this.pair(O);else break}return this.closeDef(),this.closeSelector(),this.outdentToken(this._indent,!1,0)},ct.prototype.balancedString=function(O,S){for(var D,P,q,dt=[S],Q=0;Q<O.length-1;){switch(Q++,P=O.charAt(Q),P){case"\\":{Q++;continue}case S:{if(dt.pop(),!dt.length){var se=O.slice(0,Q+1);return se}S=dt[dt.length-1];continue}}S==="}"&&(P=='"'||P=="'"||P=="`")?dt.push(S=P):S==="}"&&P==="/"&&(D=et.exec(O.slice(Q))||ht.exec(O.slice(Q)))?Q+=D[0].length-1:(S==="}"&&P==="{"||S==='"'&&P==="{"||S==="`"&&P==="{")&&dt.push(S="}"),q=P}return this.error("missing "+dt.pop()+", starting")},ct.prototype.interpolateString=function(O,S){S===void 0&&(S={});for(var D=S.heredoc,P=S.quote,q=S.regex,dt=S.prefix,Q=S.indent,se=this._loc,jt=[],Et=0,J=-1,qt=S.offset||1,Xt=O.length,ne,Wt,Yt=!1;ne=O[J+=1];){if(ne==="\\"){J+=1;continue}if(ne===`
`&&Q&&(qt+=Q.length),!!(O[J]=="{"&&(Wt=this.balancedString(O.slice(J),"}")))){if(Yt=!0,Et<J){var Ft=new a("NEOSTRING",this.escapeStr(O.slice(Et,J),D,P),this._loc+Et+qt,J-Et);jt.push(Ft)}jt.push(new a("{{","{",this._loc+J+qt,1));var Ut=Wt.slice(1,-1);if(Ut=Ut.replace(/^[^\n\S]+/,""),Ut.length){var ee=0,Be=this._loc+J+(Wt.length-Ut.length)-1,fs=new ct().tokenize(Ut,{inline:!0,rewrite:!1,loc:Be+qt},this._script);fs[0]&&at(fs[0])=="TERMINATOR"&&fs.shift(),fs.length&&jt.push.apply(jt,fs)}J+=Wt.length-1,jt.push(new a("}}","}",this._loc+J+qt,1)),Et=J+1}}if(J>=Et&&Et<O.length&&jt.push(new a("NEOSTRING",this.escapeStr(O.slice(Et),D,P),this._loc+Et+qt,O.length-Et)),q)return jt;if(!jt.length)return this.token("NEOSTRING",'""');for(let ls=0,ks=jt.length;ls<ks;ls++)this._tokens.push(jt[ls]);return jt},ct.prototype.balancedSelector=function(O,S){var D,P,q=[S];for(let dt=O.length,Q=1,se=dt-Q;se>0?Q<dt:Q>dt;se>0?Q++:Q--){switch(P=O.charAt(Q)){case"\\":{Q++;continue}case S:{if(q.pop(),!q.length)return O.slice(0,Q+1);S=q[q.length-1];continue}}S==="}"&&P===")"?q.push(S=P):(S==="}"&&P==="{"||S===")"&&P==="{")&&q.push(S="}"),D=P}return this.error("missing "+q.pop()+", starting")},ct.prototype.pair=function(O){var S=L(this._ends);if(O!=S){S!=="OUTDENT"&&this.error("unmatched "+O,{length:O.length});var D=L(this._indents);return this._indent-=D,this.outdentToken(D,!0,0),this.pair(O)}return this.popEnd()},ct.prototype.token=function(O,S,D,P){this._lastTyp=O,this._lastVal=S;var q=this._last=new a(O,S,this._loc+(P||0),D||0);this._tokens.push(q)},ct.prototype.lastTokenType=function(){var O=this._tokens[this._tokens.length-1];return O?at(O):"NONE"},ct.prototype.lastTokenValue=function(){var O=this._tokens[this._tokens.length-1];return O?O._value:""},ct.prototype.tokid=function(O,S){var D;return(D=L(this._tokens,O))?(S&&$t(D,S),at(D)):null},ct.prototype.value=function(O,S){var D;return(D=L(this._tokens,O))?(S&&Rt(D,S),ft(D)):null},ct.prototype.unfinished=function(){return mt.test(this._chunk)&&(!this._context||!this._context.style)?!0:gt.indexOf(this._lastTyp)>=0&&this._platform!="tsc"},ct.prototype.escapeLines=function(O,S){return O.replace(z,S?"\\n":"")},ct.prototype.makeString=function(O,S,D){return O?(O=O.replace(/\\([\s\S])/g,function(P,q){return q==`
`||q==S?q:P}),O=O.replace(RegExp(""+S,"g"),"\\$&"),S+this.escapeLines(O,D)+S):S+S},ct.prototype.error=function(O,S){S===void 0&&(S={});let D=S.offset||this._loc;throw this._script.addDiagnostic("error",{message:O,source:S.source||"imba-lexer",range:S.range||this._script.rangeAt(D,D+(S.length||o(this)))}).toError()}}),Vl=we(e=>{function o(K,wt){return wt&&wt.indexOf?wt.indexOf(K):[].indexOf.call(K,wt)}function r(K){return K?K.toArray?K.toArray():K:[]}var i=Sa(),h=i.Token,l=Ta(),a=l.INVERSES,c=l.BALANCED_PAIRS,d=l.TOK,p="TERMINATOR",u="INDENT",y="OUTDENT",m="THEN",x="CATCH",b={_type:"EOF",_value:""},E=function(K){var wt={};for(let it=0,ot=r(K),nt=ot.length;it<nt;it++)wt[ot[it]]=1;return wt},v=[")","]","}","STYLE_END","OUTDENT","CALL_END","PARAM_END","INDEX_END","BLOCK_PARAM_END","STRING_END","}}","TAG_END","CATCH","WHEN","ELSE","FINALLY"],w=E(v),A={"(":1,"[":1,"{":1,"{{":1,INDENT:1,CALL_START:1,PARAM_START:1,INDEX_START:1,BLOCK_PARAM_START:1,STRING_START:1,TAG_START:1},$={")":1,"]":1,"}":1,"}}":1,OUTDENT:1,CALL_END:1,PARAM_END:1,INDEX_END:1,BLOCK_PARAM_END:1,STRING_END:1,TAG_END:1},C=["STYLE_START"],F=["STYLE_START"],I={ELSE:1,TRY:1,FINALLY:1,THEN:1,BLOCK_PARAM_END:1,DO:1,BEGIN:1,CATCH_VAR:1},R={TERMINATOR:!0,CATCH:!0,FINALLY:!0,ELSE:!0,OUTDENT:!0,LEADING_WHEN:!0},M={IDENTIFIER:1,TYPE:1,SYMBOLID:1,SUPER:1,THIS:1,SELF:1,TAG_END:1,IVAR:1,CVAR:1,ARGVAR:1,BREAK:1,CONTINUE:1,RETURN:1,INDEX_END:1,"]":1,BANG:1},V={SELECTOR:1,IDENTIFIER:1,SYMBOLID:1,NUMBER:1,STRING:1,SYMBOL:1,JS:1,REGEX:1,NEW:1,CLASS:1,IF:1,AWAIT:1,UNLESS:1,TRY:1,SWITCH:1,THIS:1,BOOL:1,TRUE:1,FALSE:1,NULL:1,UNDEFINED:1,UNARY:1,SUPER:1,IVAR:1,ARGVAR:1,SELF:1,"[":1,"(":1,"{":1,"--":1,"++":1,"---":1,"+++":1,"#":1,TAG_START:1,PARAM_START:1,SELECTOR_START:1,STRING_START:1,IDREF:1,SPLAT:1,DO:1,BLOCK_ARG:1,FOR:1,CONTINUE:1,BREAK:1,LET:1,VAR:1,CONST:1,CSS:1,ENV_FLAG:1},H=["+","-"],X=["{","[",",","BLOCK_PARAM_END","DO"],tt=E(X),st=["CLASS","IF","UNLESS","TAG","WHILE","FOR","UNTIL","CATCH","FINALLY","MODULE","LEADING_WHEN","STRUCT"],Z=E(st),kt={POST_IF:!0,POST_UNLESS:!0,POST_FOR:!0,WHILE:!0,UNTIL:!0,WHEN:!0,BY:!0,LOOP:!0,TERMINATOR:!0,DEF_BODY:!0},W=0;function zt(){this._tokens=[],this._options={},this._len=0,this._starter=null}e.Rewriter=zt,zt.prototype.reset=function(){return this._starter=null,this._len=0,this},zt.prototype.tokens=function(){return this._tokens},zt.prototype.rewrite=function(K,wt){wt===void 0&&(wt={}),this.reset(),this._tokens=K,this._options=wt,this._platform=wt.platform||wt.target;for(var it=0,ot=K.length;it<ot-1;){var nt=K[it];if(nt._type=="DEF_BODY"){var ht=K[it+1];ht&&ht._type==p&&(nt._type="DEF_EMPTY")}it++}return this.step("all"),W&&console.log(W),this._tokens},zt.prototype.all=function(){return this.step("ensureFirstLine"),this.step("removeLeadingNewlines"),this._platform=="tsc"&&this.step("addPlaceholderIdentifiers"),this.step("removeMidExpressionNewlines"),this.step("tagDefArguments"),this.step("closeOpenTags"),this.step("addImplicitIndentation"),this.step("tagPostfixConditionals"),this.step("addImplicitBraces"),this.step("addImplicitParentheses")},zt.prototype.step=function(K){this[K]()},zt.prototype.scanTokens=function(K){for(var wt=this._tokens,it=0;it<wt.length;)it+=K.call(this,wt[it],it,wt);return!0},zt.prototype.detectEnd=function(K,wt,it,ot){ot===void 0&&(ot={});for(var nt=this._tokens,ht=0,et,z,St;K<nt.length;){if(et=nt[K],ht==0&&wt.call(this,et,K,nt,ot))return it.call(this,et,K,nt,ot);if(!et||ht<0)return it.call(this,et,K-1,nt,ot);z=et._type,A[z]?ht+=1:$[z]&&(ht-=1),K+=1}return K-1},zt.prototype.ensureFirstLine=function(){var K=this._tokens[0];(!K||K._type===p)&&this._tokens.unshift(i.token("BODYSTART","BODYSTART"))},zt.prototype.addPlaceholderIdentifiers=function(){let K=/^([\,\]\)\}]|\}\})$/;return this.scanTokens(function(wt,it,ot){var nt=ot[it-1]||b,ht=ot[it+1]||b;if(nt._type=="="||nt._type==":"){if(wt._type===p&&ht._type!="INDENT"||wt._type==","||wt._type=="DEF_BODY")return ot.splice(it,0,new h("IDENTIFIER","$CARET$",wt._loc,0)),2}else if(nt._type=="."&&(wt._type===p&&ht._type!="INDENT"||K.test(wt._value)))return ot.splice(it,0,n
`+Tr.showPosition()+`
Expecting `+tn.join(", ")+", got '"+Fn+"'":ss="Unexpected "+(Zt==Ji?"end of input":"'"+Fn+"'"),Qs&&Qs.addDiagnostic("error",{message:ss,source:"imba-parser",range:Qs.rangeAt(Xr,Bn)}).raise(),U.parseError(ss,{lexer:Tr,text:Tr.match,token:Fn,offset:Xr,length:Bn-Xr,start:{offset:Xr},end:{offset:Bn},line:Tr.yylineno,expected:tn,recoverable:Er!==!1})}if(vn==3){if(Zt===Ji||Zi===Ji)throw new Error(ss||"Parsing halted while starting to recover from another error.");ai=Tr.yytext}if(Er===!1)throw new Error(ss||"Parsing halted. No suitable error recovery rule available.");Uo(Er),Zi=Zt==bn?null:Zt,Zt=bn,Mr=Ze[Ze.length-1],dr=hr[Mr]&&hr[Mr][bn],vn=3}for(var jr=this.symbols_,en=this.productions_;;){Mr=Ze[Ze.length-1],(Zt===null||typeof Zt>"u")&&(Zt=jr[Tr.lex()]||Ji),dr=hr[Mr]&&hr[Mr][Zt];t:(typeof dr>"u"||!dr.length||!dr[0])&&so();switch(dr[0]){case 1:Ze.push(Zt),Ze.push(dr[1]),_.push(Tr.yytext),Zt=null,Zi?(Zt=Zi,Zi=null):(ai=Tr.yytext,vn>0&&vn--);break;case 2:if(Qi=en[dr[1]][1],kn.$=_[_.length-Qi],Oe=this.performAction(kn,ai,Us,dr[1],_),typeof Oe<"u")return Oe;for(;Qi>0;)Ze.pop(),Ze.pop(),_.pop(),Qi--;Ze.push(en[dr[1]][0]),vo=hr[Ze[Ze.length-2]][Ze[Ze.length-1]],Ze.push(vo),_.push(kn.$);break;case 3:return!0}}return!0}};function gn(){this.yy={}}return gn.prototype=ms,ms.Parser=gn,new gn}();typeof yl<"u"&&typeof e<"u"&&(e.parser=o,e.Parser=o.Parser,e.parse=function(){return o.parse.apply(o,arguments)})}),Ul=we(e=>{function o(p){return p?p.toArray?p.toArray():p:[]}var r=(B1(),Gi(P1)),i=Fo(),h=5,l=1<<h,a=l-1,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function d(p,u){this._script=p,this._options=u||{},this._sourcePath=this._options.sourcePath,this._sourceRoot=this._options.sourceRoot,this._targetPath=this._options.targetPath,this._maps=[],this._map="",this._js=""}e.SourceMap=d,d.prototype.result=function(p){return this._result},d.prototype.setResult=function(p){return this._result=p,this},d.prototype.source=function(){return this._source},d.prototype.options=function(){return this._options},d.prototype.sourceCode=function(){return this._script.sourceCode},d.prototype.sourceName=function(){return r.basename(this._sourcePath)},d.prototype.targetName=function(){return r.basename(this._targetPath)},d.prototype.sourceFiles=function(){return[this.sourceName()]},d.prototype.parse=function(){var p=this,u=/\/\*\%([\w\|]*)?\$\*\//,y=/^(.*?)\/\*\%([\w\|]*)\$\*\//,m=p._script.js,x=p._script.js.split(/\n/g),b=p._options.debug,E=p.sourceCode(),v=i.locationToLineColMap(E),w="";p._locs=[],p._maps=[],p._names=[];var A=[],$={},C={},F,I=0;for(let V=0,H=o(x),X=H.length,tt;V<X;V++){tt=H[V];var R=0,M=-1;for(p._maps[V]=[];tt.match(u);)tt=tt.replace(y,function(st,Z,kt){var W;if(kt=="")return Z;let zt=kt.split("|"),K=parseInt(zt[0]),wt=zt[1]&&parseInt(zt[1]);var it=v[K];if(!it)return Z;let ot=it[0]+1,nt=it[1]+1;if(M!=Z.length){M=Z.length;var ht=[[ot,nt],[V+1,M+1]];p._maps[V].push(ht)}let et=[I+M,K];if(p._locs.push(et),wt)if(W=$[wt]){W[1]=et[0],W[3]=et[1];let z=W.join("|");if(C[z])$[wt]=[];else{C[z]=!0;let St=E.slice(W[2],W[3]);W.START&&(W.START[2]=St,p._names.indexOf(St)<0&&p._names.push(St))}}else $[wt]=[et[0],null,et[1],null];return Z});I+=tt.length+1,x[V]=tt}if(p._script.js=x.join(`
`),p._script.locs={map:v,generated:p._locs,spans:Object.values($)},b){for(let X=0,tt=o(p._script.locs.spans),st=tt.length,Z;X<st;X++)if(Z=tt[X],Z[1]!=null){let kt=p._script.js.slice(Z[0],Z[1]).split(`
`),W=E.slice(Z[2],Z[3]).split(`
`);Z.push(kt[0]),Z.push(W[0])}let V={0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089","|":"\u208C"},H=function(X,tt){return"["+tt+"]"};p._script.js=p._script.js+`
/*
`+m.replace(/\/\*\%([\w\|]*)?\$\*\//g,H).replace(/\/\*/g,"**").replace(/\*\//g,"**")+`
*/`}return p},d.prototype.generate=function(){this.parse();var p=1,u=1,y=1,m="";for(let w=0,A=o(this._maps),$=A.length,C;w<$;w++){C=A[w],p=1;for(let F=0,I=o(C),R=I.length,M;F<R;F++){M=I[F],F!=0&&(m+=",");var x=M[0],b=M[1];m+=this.encodeVlq(b[1]-p),p=b[1],m+=this.encodeVlq(0),m+=this.encodeVlq(x[0]-u),u=x[0],m+=this.encodeVlq(x[1]-y),y=x[1]}m+=";"}var E=this._targetPath&&r.relative(r.dirname(this._targetPath),this._sourcePath),v={version:3,file:this.sourceName().replace(/\.imba/,".js")||"",sourceRoot:this._sourceRoot||"",sources:[E||this._sourcePath],sourcesContent:[this.sourceCode()],names:[],mappings:m};return this._options.sourcemap=="inline"&&(v.file=this.sourceName(),v.sources=[this.sourceName()]),this._result=v,this},d.prototype.inlined=function(){try{var p=JSON.stringify(this._result);if(globalThis.Buffer)p=Buffer.from(p,"utf-8").toString("base64");else if(typeof btoa=="function")p=btoa(p);else return;return`
//# sourceMappingURL=data:application/json;charset=utf-8;base64,`+p}catch{}return console.warn("base64 encoding not supported - skipping inline sourceMapping"),""},d.prototype.encodeVlq=function(p){for(var u="",y=p<0?1:0,m,x=(Math.abs(p)<<1)+y;x||!u;)m=x&a,x=x>>h,x&&(m|=l),u+=this.encodeBase64(m);return u},d.prototype.toJSON=function(){return this._result},d.prototype.encodeBase64=function(p){return c[p]}}),Hl=we((e,o)=>{var r=String,i=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r}};o.exports=i(),o.exports.createColors=i}),Ic=we(()=>{}),z1=we((e,o)=>{"use strict";var r=Hl(),i=Ic(),h=class extends Error{constructor(l,a,c,d,p,u){super(l),this.name="CssSyntaxError",this.reason=l,p&&(this.file=p),d&&(this.source=d),u&&(this.plugin=u),typeof a<"u"&&typeof c<"u"&&(typeof a=="number"?(this.line=a,this.column=c):(this.line=a.line,this.column=a.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,h)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(l){if(!this.source)return"";let a=this.source;l==null&&(l=r.isColorSupported),i&&l&&(a=i(a));let c=a.split(/\r?\n/),d=Math.max(this.line-3,0),p=Math.min(this.line+2,c.length),u=String(p).length,y,m;if(l){let{bold:x,red:b,gray:E}=r.createColors(!0);y=v=>x(b(v)),m=v=>E(v)}else y=m=x=>x;return c.slice(d,p).map((x,b)=>{let E=d+1+b,v=" "+(" "+E).slice(-u)+" | ";if(E===this.line){let w=m(v.replace(/\d/g," "))+x.slice(0,this.column-1).replace(/[^\t]/g," ");return y(">")+m(v)+x+`
`+w+y("^")}return" "+m(v)+x}).join(`
`)}toString(){let l=this.showSourceCode();return l&&(l=`
`+l+`
`),this.name+": "+this.message+l}};o.exports=h,h.default=h}),U1=we((e,o)=>{"use strict";o.exports.isClean=Symbol("isClean"),o.exports.my=Symbol("my")}),Nc=we((e,o)=>{"use strict";var r={colon:": ",indent:" ",beforeDecl:`
`,beforeRule:`
`,beforeOpen:" ",beforeClose:`
`,beforeComment:`
`,after:`
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function i(l){return l[0].toUpperCase()+l.slice(1)}var h=class{constructor(l){this.builder=l}stringify(l,a){if(!this[l.type])throw new Error("Unknown AST node type "+l.type+". Maybe you need to change PostCSS stringifier.");this[l.type](l,a)}document(l){this.body(l)}root(l){this.body(l),l.raws.after&&this.builder(l.raws.after)}comment(l){let a=this.raw(l,"left","commentLeft"),c=this.raw(l,"right","commentRight");this.builder("/*"+a+l.text+c+"*/",l)}decl(l,a){let c=this.raw(l,"between","colon"),d=l.prop+c+this.rawValue(l,"value");l.important&&(d+=l.raws.important||" !important"),a&&(d+=";"),this.builder(d,l)}rule(l){this.block(l,this.rawValue(l,"selector")),l.raws.ownSemicolon&&this.builder(l.raws.ownSemicolon,l,"end")}atrule(l,a){let c="@"+l.name,d=l.params?this.rawValue(l,"params"):"";if(typeof l.raws.afterName<"u"?c+=l.raws.afterName:d&&(c+=" "),l.nodes)this.block(l,c+d);else{let p=(l.raws.between||"")+(a?";":"");this.builder(c+d+p,l)}}body(l){let a=l.nodes.length-1;for(;a>0&&l.nodes[a].type==="comment";)a-=1;let c=this.raw(l,"semicolon");for(let d=0;d<l.nodes.length;d++){let p=l.nodes[d],u=this.raw(p,"before");u&&this.builder(u),this.stringify(p,a!==d||c)}}block(l,a){let c=this.raw(l,"between","beforeOpen");this.builder(a+c+"{",l,"start");let d;l.nodes&&l.nodes.length?(this.body(l),d=this.raw(l,"after")):d=this.raw(l,"after","emptyBody"),d&&this.builder(d),this.builder("}",l,"end")}raw(l,a,c){let d;if(c||(c=a),a&&(d=l.raws[a],typeof d<"u"))return d;let p=l.parent;if(c==="before"&&(!p||p.type==="root"&&p.first===l||p&&p.type==="document"))return"";if(!p)return r[c];let u=l.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[c]<"u")return u.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(l,c);{let y="raw"+i(c);this[y]?d=this[y](u,l):u.walk(m=>{if(d=m.raws[a],typeof d<"u")return!1})}return typeof d>"u"&&(d=r[c]),u.rawCache[c]=d,d}rawSemicolon(l){let a;return l.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(a=c.raws.semicolon,typeof a<"u"))return!1}),a}rawEmptyBody(l){let a;return l.walk(c=>{if(c.nodes&&c.nodes.length===0&&(a=c.raws.after,typeof a<"u"))return!1}),a}rawIndent(l){if(l.raws.indent)return l.raws.indent;let a;return l.walk(c=>{let d=c.parent;if(d&&d!==l&&d.parent&&d.parent===l&&typeof c.raws.before<"u"){let p=c.raws.before.split(`
`);return a=p[p.length-1],a=a.replace(/\S/g,""),!1}}),a}rawBeforeComment(l,a){let c;return l.walkComments(d=>{if(typeof d.raws.before<"u")return c=d.raws.before,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(a,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(l,a){let c;return l.walkDecls(d=>{if(typeof d.raws.before<"u")return c=d.raws.before,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(a,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeRule(l){let a;return l.walk(c=>{if(c.nodes&&(c.parent!==l||l.first!==c)&&typeof c.raws.before<"u")return a=c.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeClose(l){let a;return l.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after<"u")return a=c.raws.after,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(l){let a;return l.walk(c=>{if(c.type!=="decl"&&(a=c.raws.between,typeof a<"u"))return!1}),a}rawColon(l){let a;return l.walkDecls(c=>{if(typeof c.raws.between<"u")return a=c.raws.between.replace(/[^\s:]/g,""),!1}),a}beforeAfter(l,a){let c;l.type==="decl"?c=this.raw(l,null,"beforeDecl"):l.type==="comment"?c=this.raw(l,null,"beforeComment"):a==="before"?c=this.raw(l,null,"beforeRule"):c=this.raw(l,null,"beforeClose");let d=l.parent,p=0;for(;d&&d.type!=="root";)p+=1,d=d.parent;if(c.includes(`
`)){let u=this.raw(l,null,"indent");if(u.length)for(let y=0;y<p;y++)c+=u}return c}rawValue(l,a){let c=l[a],d=l.raws[a];return d&&d.value===c?d.raw:c}};o.exports=h,h.default=h}),Na=we((e,o)=>{"use strict";var r=Nc();function i(h,l){new r(l).stringify(h)}o.exports=i,i.default=i}),Ca=we((e,o)=>{"use strict";var{isClean:r,my:i}=U1(),h=z1(),l=Nc(),a=Na();function c(p,u){let y=new p.constructor;for(let m in p){if(!Object.prototype.hasOwnProperty.call(p,m)||m==="proxyCache")continue;let x=p[m],b=typeof x;m==="parent"&&b==="object"?u&&(y[m]=u):m==="source"?y[m]=x:Array.isArray(x)?y[m]=x.map(E=>c(E,y)):(b==="object"&&x!==null&&(x=c(x)),y[m]=x)}return y}var d=class{constructor(p={}){this.raws={},this[r]=!1,this[i]=!0;for(let u in p)if(u==="nodes"){this.nodes=[];for(let y of p[u])typeof y.clone=="function"?this.append(y.clone()):this.append(y)}else this[u]=p[u]}error(p,u={}){if(this.source){let{start:y,end:m}=this.rangeBy(u);return this.source.input.error(p,{line:y.line,column:y.column},{line:m.line,column:m.column},u)}return new h(p)}warn(p,u,y){let m={node:this};for(let x in y)m[x]=y[x];return p.warn(u,m)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(p=a){p.stringify&&(p=p.stringify);let u="";return p(this,y=>{u+=y}),u}assign(p={}){for(let u in p)this[u]=p[u];return this}clone(p={}){let u=c(this);for(let y in p)u[y]=p[y];return u}cloneBefore(p={}){let u=this.clone(p);return this.parent.insertBefore(this,u),u}cloneAfter(p={}){let u=this.clone(p);return this.parent.insertAfter(this,u),u}replaceWith(...p){if(this.parent){let u=this,y=!1;for(let m of p)m===this?y=!0:y?(this.parent.insertAfter(u,m),u=m):this.parent.insertBefore(u,m);y||this.remove()}return this}next(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p+1]}prev(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p-1]}before(p){return this.parent.insertBefore(this,p),this}after(p){return this.parent.insertAfter(this,p),this}root(){let p=this;for(;p.parent&&p.parent.type!=="document";)p=p.parent;return p}raw(p,u){return new l().raw(this,p,u)}cleanRaws(p){delete this.raws.before,delete this.raws.after,p||delete this.raws.between}toJSON(p,u){let y={},m=u==null;u=u||new Map;let x=0;for(let b in this){if(!Object.prototype.hasOwnProperty.call(this,b)||b==="parent"||b==="proxyCache")continue;let E=this[b];if(Array.isArray(E))y[b]=E.map(v=>typeof v=="object"&&v.toJSON?v.toJSON(null,u):v);else if(typeof E=="object"&&E.toJSON)y[b]=E.toJSON(null,u);else if(b==="source"){let v=u.get(E.input);v==null&&(v=x,u.set(E.input,x),x++),y[b]={inputId:v,start:E.start,end:E.end}}else y[b]=E}return m&&(y.inputs=[...u.keys()].map(b=>b.toJSON())),y}positionInside(p){let u=this.toString(),y=this.source.start.column,m=this.source.start.line;for(let x=0;x<p;x++)u[x]===`
`?(y=1,m+=1):y+=1;return{line:m,column:y}}positionBy(p){let u=this.source.start;if(p.index)u=this.positionInside(p.index);else if(p.word){let y=this.toString().indexOf(p.word);y!==-1&&(u=this.positionInside(y))}return u}rangeBy(p){let u={line:this.source.start.line,column:this.source.start.column},y=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:u.line,column:u.column+1};if(p.word){let m=this.toString().indexOf(p.word);m!==-1&&(u=this.positionInside(m),y=this.positionInside(m+p.word.length))}else p.start?u={line:p.start.line,column:p.start.column}:p.index&&(u=this.positionInside(p.index)),p.end?y={line:p.end.line,column:p.end.column}:p.endIndex?y=this.positionInside(p.endIndex):p.index&&(y=this.positionInside(p.index+1));return(y.line<u.line||y.line===u.line&&y.column<=u.column)&&(y={line:u.line,column:u.column+1}),{start:u,end:y}}getProxyProcessor(){return{set(p,u,y){return p[u]===y||(p[u]=y,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&p.markDirty()),!0},get(p,u){return u==="proxyOf"?p:u==="root"?()=>p.root().toProxy():p[u]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(p){if(p.postcssNode=this,p.stack&&this.source&&/\n\s{4}at /.test(p.stack)){let u=this.source;p.stack=p.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return p}markDirty(){if(this[r]){this[r]=!1;let p=this;for(;p=p.parent;)p[r]=!1}}get proxyOf(){return this}};o.exports=d,d.default=d}),Aa=we((e,o)=>{"use strict";var r=Ca(),i=class extends r{constructor(h){h&&typeof h.value<"u"&&typeof h.value!="string"&&(h={...h,value:String(h.value)}),super(h),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};o.exports=i,i.default=i}),H1=we(()=>{}),q1=we(()=>{}),Cc=we(()=>{}),ql=we((e,o)=>{var r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",i=(l,a=21)=>(c=a)=>{let d="",p=c;for(;p--;)d+=l[Math.random()*l.length|0];return d},h=(l=21)=>{let a="",c=l;for(;c--;)a+=r[Math.random()*64|0];return a};o.exports={nanoid:h,customAlphabet:i}}),Yl=we(()=>{}),Ac=we((e,o)=>{"use strict";var{SourceMapConsumer:r,SourceMapGenerator:i}=H1(),{existsSync:h,readFileSync:l}=Yl(),{dirname:a,join:c}=q1();function d(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}var p=class{constructor(u,y){if(y.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let m=y.map?y.map.prev:void 0,x=this.loadMap(y.from,m);!this.mapFile&&y.from&&(this.mapFile=y.from),this.mapFile&&(this.root=a(this.mapFile)),x&&(this.text=x)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(u,y){return u?u.substr(0,y.length)===y:!1}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(u){let y=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!y)return;let m=u.lastIndexOf(y.pop()),x=u.indexOf("*/",m);m>-1&&x>-1&&(this.annotation=this.getAnnotationURL(u.substring(m,x)))}decodeInline(u){let y=/^data:application\/json;charset=utf-?8;base64,/,m=/^data:application\/json;base64,/,x=/^data:application\/json;charset=utf-?8,/,b=/^data:application\/json,/;if(x.test(u)||b.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(y.test(u)||m.test(u))return d(u.substr(RegExp.lastMatch.length));let E=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+E)}loadFile(u){if(this.root=a(u),h(u))return this.mapFile=u,l(u,"utf-8").toString().trim()}loadMap(u,y){if(y===!1)return!1;if(y){if(typeof y=="string")return y;if(typeof y=="function"){let m=y(u);if(m){let x=this.loadFile(m);if(!x)throw new Error("Unable to load previous source map: "+m.toString());return x}}else{if(y instanceof r)return i.fromSourceMap(y).toString();if(y instanceof i)return y.toString();if(this.isMap(y))return JSON.stringify(y);throw new Error("Unsuppo
`);A=new Array(C.length);let F=0;for(let I=0,R=C.length;I<R;I++)A[I]=F,F+=C[I].length+1;this[m]=A}w=A[A.length-1];let $=0;if(v>=w)$=A.length-1;else{let C=A.length-2,F;for(;$<C;)if(F=$+(C-$>>1),v<A[F])C=F-1;else if(v>=A[F+1])$=F+1;else{$=F;break}}return{line:$+1,col:v-A[$]+1}}error(v,w,A,$={}){let C,F,I;if(w&&typeof w=="object"){let M=w,V=A;if(typeof w.offset=="number"){let H=this.fromOffset(M.offset);w=H.line,A=H.col}else w=M.line,A=M.column;if(typeof V.offset=="number"){let H=this.fromOffset(V.offset);F=H.line,I=H.col}else F=V.line,I=V.column}else if(!A){let M=this.fromOffset(w);w=M.line,A=M.col}let R=this.origin(w,A,F,I);return R?C=new u(v,R.endLine===void 0?R.line:{line:R.line,column:R.column},R.endLine===void 0?R.column:{line:R.endLine,column:R.endColumn},R.source,R.file,$.plugin):C=new u(v,F===void 0?w:{line:w,column:A},F===void 0?A:{line:F,column:I},this.css,this.file,$.plugin),C.input={line:w,column:A,endLine:F,endColumn:I,source:this.css},this.file&&(l&&(C.input.url=l(this.file).toString()),C.input.file=this.file),C}origin(v,w,A,$){if(!this.map)return!1;let C=this.map.consumer(),F=C.originalPositionFor({line:v,column:w});if(!F.source)return!1;let I;typeof A=="number"&&(I=C.originalPositionFor({line:A,column:$}));let R;c(F.source)?R=l(F.source):R=new URL(F.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let M={url:R.toString(),line:F.line,column:F.column,endLine:I&&I.line,endColumn:I&&I.column};if(R.protocol==="file:")if(h)M.file=h(R);else throw new Error("file: protocol is not available in this PostCSS build");let V=C.sourceContentFor(F.source);return V&&(M.source=V),M}mapResolve(v){return/^\w+:\/\//.test(v)?v:a(this.map.consumer().sourceRoot||this.map.root||".",v)}get from(){return this.file||this.id}toJSON(){let v={};for(let w of["hasBOM","css","file","id"])this[w]!=null&&(v[w]=this[w]);return this.map&&(v.map={...this.map},v.map.consumerCache&&(v.map.consumerCache=void 0)),v}};o.exports=E,E.default=E,p&&p.registerInput&&p.registerInput(E)}),Lc=we((e,o)=>{"use strict";var{SourceMapConsumer:r,SourceMapGenerator:i}=H1(),{dirname:h,resolve:l,relative:a,sep:c}=q1(),{pathToFileURL:d}=Cc(),p=La(),u=Boolean(r&&i),y=Boolean(h&&l&&a&&c),m=class{constructor(x,b,E,v){this.stringify=x,this.mapOpts=E.map||{},this.root=b,this.opts=E,this.css=v,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(x=>{if(x.source&&x.source.input.map){let b=x.source.input.map;this.previousMaps.includes(b)||this.previousMaps.push(b)}});else{let x=new p(this.css,this.opts);x.map&&this.previousMaps.push(x.map)}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let x=this.mapOpts.annotation;return typeof x<"u"&&x!==!0?!1:this.previous().length?this.previous().some(b=>b.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(x=>x.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let x;for(let b=this.root.nodes.length-1;b>=0;b--)x=this.root.nodes[b],x.type==="comment"&&x.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(b)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let x={};if(this.root)this.root.walk(b=>{if(b.source){let E=b.source.input.from;if(E&&!x[E]){x[E]=!0;let v=this.usesFileUrls?this.toFileUrl(E):this.toUrl(this.path(E));this.map.setSourceContent(v,b.source.input.css)}}});else if(this.css){let b=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(b,this.css)}}applyPrevMaps(){for(let x of this.previous()){let b=this.toUrl(this.path(x.file)),E=x.root||h(x.file),v;this.mapOpts.sourcesContent===!1?(v=new r(x.text),v.sourcesContent&&(v.sourcesContent=v.sourcesContent.map(()=>null))):v=x.consumer(),this.map.applySourceMap(v,b,this.toUrl(this.path(E)))}}isAnnotation(){return this.isInline()?!0:type
`;this.css.includes(`\r
`)&&(b=`\r
`),this.css+=b+"/*# sourceMappingURL="+x+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let x=this.previous()[0].consumer();x.file=this.outputFile(),this.map=i.fromSourceMap(x)}else this.map=new i({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(x){if(x.indexOf("<")===0||/^\w+:\/\//.test(x)||this.mapOpts.absolute)return x;let b=this.opts.to?h(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(b=h(l(b,this.mapOpts.annotation))),x=a(b,x),x}toUrl(x){return c==="\\"&&(x=x.replace(/\\/g,"/")),encodeURI(x).replace(/[#?]/g,encodeURIComponent)}toFileUrl(x){if(d)return d(x).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(x){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(x.source.input.from):this.toUrl(this.path(x.source.input.from))}generateString(){this.css="",this.map=new i({file:this.outputFile()});let x=1,b=1,E="<no source>",v={source:"",generated:{line:0,column:0},original:{line:0,column:0}},w,A;this.stringify(this.root,($,C,F)=>{if(this.css+=$,C&&F!=="end"&&(v.generated.line=x,v.generated.column=b-1,C.source&&C.source.start?(v.source=this.sourcePath(C),v.original.line=C.source.start.line,v.original.column=C.source.start.column-1,this.map.addMapping(v)):(v.source=E,v.original.line=1,v.original.column=0,this.map.addMapping(v))),w=$.match(/\n/g),w?(x+=w.length,A=$.lastIndexOf(`
`),b=$.length-A):b+=$.length,C&&F!=="start"){let I=C.parent||{raws:{}};(C.type!=="decl"||C!==I.last||I.raws.semicolon)&&(C.source&&C.source.end?(v.source=this.sourcePath(C),v.original.line=C.source.end.line,v.original.column=C.source.end.column-1,v.generated.line=x,v.generated.column=b-2,this.map.addMapping(v)):(v.source=E,v.original.line=1,v.original.column=0,v.generated.line=x,v.generated.column=b-1,this.map.addMapping(v)))}})}generate(){if(this.clearAnnotation(),y&&u&&this.isMap())return this.generateMap();{let x="";return this.stringify(this.root,b=>{x+=b}),[x]}}};o.exports=m}),$a=we((e,o)=>{"use strict";var r=Ca(),i=class extends r{constructor(h){super(h),this.type="comment"}};o.exports=i,i.default=i}),Zn=we((e,o)=>{"use strict";var{isClean:r,my:i}=U1(),h=Aa(),l=$a(),a=Ca(),c,d,p,u;function y(b){return b.map(E=>(E.nodes&&(E.nodes=y(E.nodes)),delete E.source,E))}function m(b){if(b[r]=!1,b.proxyOf.nodes)for(let E of b.proxyOf.nodes)m(E)}var x=class extends a{push(b){return b.parent=this,this.proxyOf.nodes.push(b),this}each(b){if(!this.proxyOf.nodes)return;let E=this.getIterator(),v,w;for(;this.indexes[E]<this.proxyOf.nodes.length&&(v=this.indexes[E],w=b(this.proxyOf.nodes[v],v),w!==!1);)this.indexes[E]+=1;return delete this.indexes[E],w}walk(b){return this.each((E,v)=>{let w;try{w=b(E,v)}catch(A){throw E.addToError(A)}return w!==!1&&E.walk&&(w=E.walk(b)),w})}walkDecls(b,E){return E?b instanceof RegExp?this.walk((v,w)=>{if(v.type==="decl"&&b.test(v.prop))return E(v,w)}):this.walk((v,w)=>{if(v.type==="decl"&&v.prop===b)return E(v,w)}):(E=b,this.walk((v,w)=>{if(v.type==="decl")return E(v,w)}))}walkRules(b,E){return E?b instanceof RegExp?this.walk((v,w)=>{if(v.type==="rule"&&b.test(v.selector))return E(v,w)}):this.walk((v,w)=>{if(v.type==="rule"&&v.selector===b)return E(v,w)}):(E=b,this.walk((v,w)=>{if(v.type==="rule")return E(v,w)}))}walkAtRules(b,E){return E?b instanceof RegExp?this.walk((v,w)=>{if(v.type==="atrule"&&b.test(v.name))return E(v,w)}):this.walk((v,w)=>{if(v.type==="atrule"&&v.name===b)return E(v,w)}):(E=b,this.walk((v,w)=>{if(v.type==="atrule")return E(v,w)}))}walkComments(b){return this.walk((E,v)=>{if(E.type==="comment")return b(E,v)})}append(...b){for(let E of b){let v=this.normalize(E,this.last);for(let w of v)this.proxyOf.nodes.push(w)}return this.markDirty(),this}prepend(...b){b=b.reverse();for(let E of b){let v=this.normalize(E,this.first,"prepend").reverse();for(let w of v)this.proxyOf.nodes.unshift(w);for(let w in this.indexes)this.indexes[w]=this.indexes[w]+v.length}return this.markDirty(),this}cleanRaws(b){if(super.cleanRaws(b),this.nodes)for(let E of this.nodes)E.cleanRaws(b)}insertBefore(b,E){let v=this.index(b),w=b===0?"prepend":!1,A=this.normalize(E,this.proxyOf.nodes[v],w).reverse();v=this.index(b);for(let C of A)this.proxyOf.nodes.splice(v,0,C);let $;for(let C in this.indexes)$=this.indexes[C],v<=$&&(this.indexes[C]=$+A.length);return this.markDirty(),this}insertAfter(b,E){let v=this.index(b),w=this.normalize(E,this.proxyOf.nodes[v]).reverse();v=this.index(b);for(let $ of w)this.proxyOf.nodes.splice(v+1,0,$);let A;for(let $ in this.indexes)A=this.indexes[$],v<A&&(this.indexes[$]=A+w.length);return this.markDirty(),this}removeChild(b){b=this.index(b),this.proxyOf.nodes[b].parent=void 0,this.proxyOf.nodes.splice(b,1);let E;for(let v in this.indexes)E=this.indexes[v],E>=b&&(this.indexes[v]=E-1);return this.markDirty(),this}removeAll(){for(let b of this.proxyOf.nodes)b.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(b,E,v){return v||(v=E,E={}),this.walkDecls(w=>{E.props&&!E.props.includes(w.prop)||E.fast&&!w.value.includes(E.fast)||(w.value=w.value.replace(b,v))}),this.markDirty(),this}every(b){return this.nodes.every(b)}some(b){return this.nodes.some(b)}index(b){return typeof b=="number"?b:(b.proxyOf&&(b=b.proxyOf),this.proxyOf.nodes.indexOf(b))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(b,E){if(typeof b=="string")b=y(c(b).nodes);else if(Array.is
`.charCodeAt(0),c=" ".charCodeAt(0),d="\f".charCodeAt(0),p=" ".charCodeAt(0),u="\r".charCodeAt(0),y="[".charCodeAt(0),m="]".charCodeAt(0),x="(".charCodeAt(0),b=")".charCodeAt(0),E="{".charCodeAt(0),v="}".charCodeAt(0),w=";".charCodeAt(0),A="*".charCodeAt(0),$=":".charCodeAt(0),C="@".charCodeAt(0),F=/[\t\n\f\r "#'()/;[\\\]{}]/g,I=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,R=/.[\n"'(/\\]/,M=/[\da-f]/i;o.exports=function(V,H={}){let X=V.css.valueOf(),tt=H.ignoreErrors,st,Z,kt,W,zt,K,wt,it,ot,nt,ht=X.length,et=0,z=[],St=[];function Se(){return et}function mt(bt){throw V.error("Unclosed "+bt,et)}function At(){return St.length===0&&et>=ht}function vt(bt){if(St.length)return St.pop();if(et>=ht)return;let Tt=bt?bt.ignoreUnclosed:!1;switch(st=X.charCodeAt(et),st){case a:case c:case p:case u:case d:{Z=et;do Z+=1,st=X.charCodeAt(Z);while(st===c||st===a||st===p||st===u||st===d);nt=["space",X.slice(et,Z)],et=Z-1;break}case y:case m:case E:case v:case $:case w:case b:{let lt=String.fromCharCode(st);nt=[lt,lt,et];break}case x:{if(it=z.length?z.pop()[1]:"",ot=X.charCodeAt(et+1),it==="url"&&ot!==r&&ot!==i&&ot!==c&&ot!==a&&ot!==p&&ot!==d&&ot!==u){Z=et;do{if(K=!1,Z=X.indexOf(")",Z+1),Z===-1)if(tt||Tt){Z=et;break}else mt("bracket");for(wt=Z;X.charCodeAt(wt-1)===h;)wt-=1,K=!K}while(K);nt=["brackets",X.slice(et,Z+1),et,Z],et=Z}else Z=X.indexOf(")",et+1),W=X.slice(et,Z+1),Z===-1||R.test(W)?nt=["(","(",et]:(nt=["brackets",W,et,Z],et=Z);break}case r:case i:{kt=st===r?"'":'"',Z=et;do{if(K=!1,Z=X.indexOf(kt,Z+1),Z===-1)if(tt||Tt){Z=et+1;break}else mt("string");for(wt=Z;X.charCodeAt(wt-1)===h;)wt-=1,K=!K}while(K);nt=["string",X.slice(et,Z+1),et,Z],et=Z;break}case C:{F.lastIndex=et+1,F.test(X),F.lastIndex===0?Z=X.length-1:Z=F.lastIndex-2,nt=["at-word",X.slice(et,Z+1),et,Z],et=Z;break}case h:{for(Z=et,zt=!0;X.charCodeAt(Z+1)===h;)Z+=1,zt=!zt;if(st=X.charCodeAt(Z+1),zt&&st!==l&&st!==c&&st!==a&&st!==p&&st!==u&&st!==d&&(Z+=1,M.test(X.charAt(Z)))){for(;M.test(X.charAt(Z+1));)Z+=1;X.charCodeAt(Z+1)===c&&(Z+=1)}nt=["word",X.slice(et,Z+1),et,Z],et=Z;break}default:{st===l&&X.charCodeAt(et+1)===A?(Z=X.indexOf("*/",et+2)+1,Z===0&&(tt||Tt?Z=X.length:mt("comment")),nt=["comment",X.slice(et,Z+1),et,Z],et=Z):(I.lastIndex=et+1,I.test(X),I.lastIndex===0?Z=X.length-1:Z=I.lastIndex-2,nt=["word",X.slice(et,Z+1),et,Z],z.push(nt),et=Z);break}}return et++,nt}function Lt(bt){St.push(bt)}return{back:Lt,nextToken:vt,endOfFile:At,position:Se}}}),W1=we((e,o)=>{"use strict";var r=Zn(),i=class extends r{constructor(h){super(h),this.type="atrule"}append(...h){return this.proxyOf.nodes||(this.nodes=[]),super.append(...h)}prepend(...h){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...h)}};o.exports=i,i.default=i,r.registerAtRule(i)}),Go=we((e,o)=>{"use strict";var r=Zn(),i,h,l=class extends r{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}removeChild(a,c){let d=this.index(a);return!c&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(a)}normalize(a,c,d){let p=super.normalize(a);if(c){if(d==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let u of p)u.raws.before=c.raws.before}return p}toResult(a={}){return new i(new h,this,a).stringify()}};l.registerLazyResult=a=>{i=a},l.registerProcessor=a=>{h=a},o.exports=l,l.default=l,r.registerRoot(l)}),Pc=we((e,o)=>{"use strict";var r={split(i,h,l){let a=[],c="",d=!1,p=0,u=!1,y="",m=!1;for(let x of i)m?m=!1:x==="\\"?m=!0:u?x===y&&(u=!1):x==='"'||x==="'"?(u=!0,y=x):x==="("?p+=1:x===")"?p>0&&(p-=1):p===0&&h.includes(x)&&(d=!0),d?(c!==""&&a.push(c.trim()),c="",d=!1):c+=x;return(l||c!=="")&&a.push(c.trim()),a},space(i){let h=[" ",`
`," "];return r.split(i,h)},comma(i){return r.split(i,[","],!0)}};o.exports=r,r.default=r}),X1=we((e,o)=>{"use strict";var r=Zn(),i=Pc(),h=class extends r{constructor(l){super(l),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(l){let a=this.selector?this.selector.match(/,\s*/):null,c=a?a[0]:","+this.raw("between","beforeOpen");this.selector=l.join(c)}};o.exports=h,h.default=h,r.registerRule(h)}),Wl=we((e,o)=>{"use strict";var r=Aa(),i=Kl(),h=$a(),l=W1(),a=Go(),c=X1(),d={empty:!0,space:!0};function p(y){for(let m=y.length-1;m>=0;m--){let x=y[m],b=x[3]||x[2];if(b)return b}}var u=class{constructor(y){this.input=y,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:y,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=i(this.input)}parse(){let y;for(;!this.tokenizer.endOfFile();)switch(y=this.tokenizer.nextToken(),y[0]){case"space":this.spaces+=y[1];break;case";":this.freeSemicolon(y);break;case"}":this.end(y);break;case"comment":this.comment(y);break;case"at-word":this.atrule(y);break;case"{":this.emptyRule(y);break;default:this.other(y);break}this.endFile()}comment(y){let m=new h;this.init(m,y[2]),m.source.end=this.getPosition(y[3]||y[2]);let x=y[1].slice(2,-2);if(/^\s*$/.test(x))m.text="",m.raws.left=x,m.raws.right="";else{let b=x.match(/^(\s*)([^]*\S)(\s*)$/);m.text=b[2],m.raws.left=b[1],m.raws.right=b[3]}}emptyRule(y){let m=new c;this.init(m,y[2]),m.selector="",m.raws.between="",this.current=m}other(y){let m=!1,x=null,b=!1,E=null,v=[],w=y[1].startsWith("--"),A=[],$=y;for(;$;){if(x=$[0],A.push($),x==="("||x==="[")E||(E=$),v.push(x==="("?")":"]");else if(w&&b&&x==="{")E||(E=$),v.push("}");else if(v.length===0)if(x===";")if(b){this.decl(A,w);return}else break;else if(x==="{"){this.rule(A);return}else if(x==="}"){this.tokenizer.back(A.pop()),m=!0;break}else x===":"&&(b=!0);else x===v[v.length-1]&&(v.pop(),v.length===0&&(E=null));$=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(m=!0),v.length>0&&this.unclosedBracket(E),m&&b){if(!w)for(;A.length&&($=A[A.length-1][0],!($!=="space"&&$!=="comment"));)this.tokenizer.back(A.pop());this.decl(A,w)}else this.unknownWord(A)}rule(y){y.pop();let m=new c;this.init(m,y[0][2]),m.raws.between=this.spacesAndCommentsFromEnd(y),this.raw(m,"selector",y),this.current=m}decl(y,m){let x=new r;this.init(x,y[0][2]);let b=y[y.length-1];for(b[0]===";"&&(this.semicolon=!0,y.pop()),x.source.end=this.getPosition(b[3]||b[2]||p(y));y[0][0]!=="word";)y.length===1&&this.unknownWord(y),x.raws.before+=y.shift()[1];for(x.source.start=this.getPosition(y[0][2]),x.prop="";y.length;){let A=y[0][0];if(A===":"||A==="space"||A==="comment")break;x.prop+=y.shift()[1]}x.raws.between="";let E;for(;y.length;)if(E=y.shift(),E[0]===":"){x.raws.between+=E[1];break}else E[0]==="word"&&/\w/.test(E[1])&&this.unknownWord([E]),x.raws.between+=E[1];(x.prop[0]==="_"||x.prop[0]==="*")&&(x.raws.before+=x.prop[0],x.prop=x.prop.slice(1));let v=[],w;for(;y.length&&(w=y[0][0],!(w!=="space"&&w!=="comment"));)v.push(y.shift());this.precheckMissedSemicolon(y);for(let A=y.length-1;A>=0;A--){if(E=y[A],E[1].toLowerCase()==="!important"){x.important=!0;let $=this.stringFrom(y,A);$=this.spacesFromEnd(y)+$,$!==" !important"&&(x.raws.important=$);break}else if(E[1].toLowerCase()==="important"){let $=y.slice(0),C="";for(let F=A;F>0;F--){let I=$[F][0];if(C.trim().indexOf("!")===0&&I!=="space")break;C=$.pop()[1]+C}C.trim().indexOf("!")===0&&(x.important=!0,x.raws.important=C,y=$)}if(E[0]!=="space"&&E[0]!=="comment")break}y.some(A=>A[0]!=="space"&&A[0]!=="comment")&&(x.raws.between+=v.map(A=>A[1]).join(""),v=[]),this.raw(x,"value",v.concat(y),m),x.value.includes(":")&&!m&&this.checkMissedSemicolon(y)}atrule(y){let m=new l;m.name=y[1].slice(1),m.name===""&&this.unnamedAtrule(m,y),this.init(m,y[2]);let x,b,E,v=!1,w=!1,A=[],$=[];for(;!this.tokenizer.endOfFile();){if(y=this.tokenizer.nextToken(),x=y[0],x==="("||x==="["?$.push(x==="("?")":"]"):x==="{"&&$.length>0?$.push("}"):x===$[$.le
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(F+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
https://www.w3ctech.com/topic/2226`));let X=I(...H);return X.postcssPlugin=F,X.postcssVersion=new a().version,X}let V;return Object.defineProperty(M,"postcss",{get(){return V||(V=M()),V}}),M.process=function(H,X,tt){return C([M(tt)]).process(H,X)},M},C.stringify=c,C.parse=E,C.fromJSON=d,C.list=v,C.comment=F=>new y(F),C.atRule=F=>new m(F),C.decl=F=>new i(F),C.rule=F=>new w(F),C.root=F=>new A(F),C.document=F=>new p(F),C.CssSyntaxError=r,C.Declaration=i,C.Container=l,C.Processor=a,C.Document=p,C.Comment=y,C.Warning=u,C.AtRule=m,C.Result=x,C.Input=b,C.Rule=w,C.Root=A,C.Node=$,h.registerPostcss(C),o.exports=C,C.default=C}),vs,th,eh,sh,rh,ih,nh,oh,ah,ch,lh,hh,uh,ph,fh,dh,_h,yh,mh,gh,vh,bh,kh,xh,wh,Sh=Rs(()=>{vs=wa(Ql(),1),th=vs.default.stringify,eh=vs.default.fromJSON,sh=vs.default.plugin,rh=vs.default.parse,ih=vs.default.list,nh=vs.default.document,oh=vs.default.comment,ah=vs.default.atRule,ch=vs.default.rule,lh=vs.default.decl,hh=vs.default.root,uh=vs.default.CssSyntaxError,ph=vs.default.Declaration,fh=vs.default.Container,dh=vs.default.Processor,_h=vs.default.Document,yh=vs.default.Comment,mh=vs.default.Warning,gh=vs.default.AtRule,vh=vs.default.Result,bh=vs.default.Input,kh=vs.default.Rule,xh=vs.default.Root,wh=vs.default.Node}),Mc={};on(Mc,{colors:()=>Q1,fonts:()=>Mo,modifiers:()=>Vo,named_colors:()=>ba,variants:()=>Z1});var Mo,Vo,Z1,Q1,ba,jo=Rs(()=>{Mo={sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Vo={odd:{name:"nth-child",valueType:"string",value:"odd"},even:{name:"nth-child",valueType:"string",value:"even"},first:{name:"first-child"},last:{name:"last-child"},only:{name:"only-child"},"not-first":{name:"not",valueType:"raw",value:":first-child"},"not-last":{name:"not",valueType:"raw",value:":last-child"},"first-child":{},"last-child":{},autofill:{},active:{},checked:{},default:{},defined:{},disabled:{},empty:{},enabled:{},"first-of-type":{},"first-page":{name:"first"},fullscreen:{},focus:{},focin:{name:"focus-within"},"focus-within":{},"focus-visible":{},hover:{},indeterminate:{},"in-range":{},invalid:{},is:{type:"selector"},lang:{},"last-of-type":{},left:{},link:{},not:{type:"selector"},"nth-child":{},modal:{},"picture-in-picture":{},"nth-last-child":{},"nth-last-of-type":{},"nth-of-type":{},"only-child":{},"only-of-type":{},playing:{},paused:{},optional:{},"out-of-range":{},"placeholder-shown":{},"read-only":{},"read-write":{},required:{},right:{},scope:{},root:{},target:{},"target-within":{},valid:{},visited:{},where:{},after:{type:"el"},"-webkit-scrollbar":{type:"el"},"-webkit-scrollbar-button":{type:"el"},"-webkit-scrollbar-track":{type:"el"},"-webkit-scrollbar-track-piece":{type:"el"},"-webkit-scrollbar-thumb":{type:"el"},"-webkit-scrollbar-corner":{type:"el"},"-webkit-resizer":{type:"el"},backdrop:{type:"el"},before:{type:"el"},cue:{type:"el"},"cue-region":{type:"el"},"first-letter":{type:"el"},"first-line":{type:"el"},marker:{type:"el"},placeholder:{type:"el"},selection:{type:"el"},inline:{pri:3},important:{pri:4},force:{pri:6},media:{type:"media"},print:{media:"print"},screen:{media:"screen"},speech:{media:"speech"},all:{media:"all"},xs:{media:"(min-width: 480px)",medianeg:"(max-width: 479px)"},sm:{media:"(min-width: 640px)",medianeg:"(max-width: 639px)"},md:{media:"(min-width: 768px)",medianeg:"(max-width: 767px)"},lg:{media:"(min-width: 1024px)",medianeg:"(max-width: 1023px)"},xl:{media:"(min-width: 1280px)",medianeg:"(max-width: 1279px)"},"2xl":{media:"(min-width: 1536px)"},"lt-xs":{media:"(max-width: 479px)"},"lt-sm":{media:"(max-width: 639px)"},"lt-md":{media:"(max-width: 767px)"},"lt-lg":{media:"(max-width: 1023px)"},"lt-xl":{media:"(max-width: 1279px)"},"lt-2xl":{media:"(max-width: 1535px)"},landscape:{media:"(orientation: landscape)",medianeg:"(orientation: portrait)"},portrait:{media:"(orientation: portrait)",medianeg
`||a==="\r"||a==="\f";)y=!0,o++,a=e.charAt(o);return y},this.parse=function(){var y=this.parseSelector();if(o<p)throw Error('Rule expected but "'+e.charAt(o)+'" found.');return y},this.parseSelector=function(){var y,m=y=this.parseSingleSelector();for(a=e.charAt(o);a===",";){if(o++,u(),y.type!=="selectors"&&(y={type:"selectors",selectors:[m]}),m=this.parseSingleSelector(),!m)throw Error('Rule expected after ",".');y.selectors.push(m)}return y},this.parseSingleSelector=function(){u();let y=e.slice(o,o+4).match(/^(\>{1,3}|\+|~)/);var m={type:"ruleSet"},x=y?Object.assign([],{type:"rule",isScope:!0}):this.parseRule();if(!x)return null;for(var b=m;x&&(x.type="rule",b==x||(b.rule=x,b=x),u(),a=e.charAt(o),!(o>=p||a===","||a===")"));)if(h[a]){var E=a;if(E==">"&&e.charAt(o+1)==">"&&e.charAt(o+2)==">"?(E=">>>",o=o+3):E==">"&&e.charAt(o+1)==">"?(E=">>",o=o+2):o++,u(),x=this.parseRule(null),!x)if(E==">"||E==">>>"||E==">>")x=k1({tagName:"*"});else throw Error('Rule expected after "'+E+'".');x.nestingOperator=E}else x=this.parseRule(b),x&&(x.nestingOperator=null);return m},this.parseSubRule=function(y="is",m=!1,x=!1){let b={name:y,valueType:"selector",up:!0};if(m){let E=this.parseRule();E.type="rule",b.value={type:"ruleSet",rule:E},x&&(b.after=E.rule=k1({tagName:"*",nestingOperator:null,type:"rule"}))}else{let E=this.parseSelector();b.value=E}return b},this.parseRule=function(y){for(var m=null,x=!1,b=!1,E=!1,v=!1,w={},A=0;o<p;){if(a=e.charAt(o),w={},a=="!"&&(E=!0,a=e.charAt(++o),m=m||y,w.not=!0),a=="@"&&e.charAt(o+1)==".")m=m||y,w.implicitScope=!0,o++,a=".";else if(a=="@"&&e.charAt(o+1)=="@")w.closest=!0,m=m||y,o++;else if(a=="."&&e.charAt(o+1)=="."){v=w,m=m||y,o++;let V=e.charAt(o+1);(V=="%"||V=="$"||V=="@")&&(a=V,o++)}for(;a=="^";)a=e.charAt(++o),m=m||y,A++;if(w.up=A,w.closest=v,a==="&")o++,(m=m||[]).isScope=!0;else if(a==="^"){o++;let V=this.parseSubRule("is",!0,!0);(m=m||y||[]).push(V)}else if(a==="*")o++,(m=m||[]).tagName="*";else if(Th(a)||a==="\\")(m=m||[]).tagName=c();else if(a==="$")o++,w.flag="$"+c(),w.ref=!0,(m=m||[]).push(w);else if(a==="%")o++,w.flag=a+c(),(m=m||[]).push(w);else if(a==="."){o++;let V=e.charAt(o++);V+=c({}),w.flag=V,(m=m||[]).push(w)}else if(a==="#")o++,(m=m||[]).id=c();else if(a==="["){o++,u();var $=w.attr={name:c()};if(u(),a==="]")o++;else{var C="";if(i[a]&&(C=a,o++,a=e.charAt(o)),o>=p)throw Error('Expected "=" but end of file reached.');if(a!=="=")throw Error('Expected "=" but "'+a+'" found.');$.operator=C+"=",o++,u();var F="";if($.valueType="string",a==='"')F=d('"',S1);else if(a==="'")F=d("'",w1);else if(l&&a==="$")o++,F=c(),$.valueType="substitute";else{for(;o<p&&a!=="]";)F+=a,o++,a=e.charAt(o);F=F.trim()}if(u(),o>=p)throw Error('Expected "]" but end of file reached.');if(a!=="]")throw Error('Expected "]" but "'+a+'" found.');o++,$.value=F}(m=m||[]).push(w)}else if(a===":"||a==="@"){if(a==":"&&e.charAt(o+1)==":"){(m=m||y||[]).pseudoElement=c({":":!0});continue}o++,w.name=a;var I=w,R=c({"~":!0,"+":!0,".":!1,">":!0,"<":!0});if(R=="unimportant"){x=!0,w.type="unimportant",(m=m||y||[]).push(w);continue}if(w.name+=R,w.pseudo=R,a==="("){o++;var M="";if(u(),r[R]==="selector")I.valueType="selector",M=this.parseSelector();else{if(I.valueType=r[R]||"string",a==='"')M=d('"',S1);else if(a==="'")M=d("'",w1);else if(l&&a==="$")o++,M=c(),I.valueType="substitute";else{for(;o<p&&a!==")";)M+=a,o++,a=e.charAt(o);M=M.trim()}u()}if(o>=p)throw Error('Expected ")" but end of file reached.');if(a!==")")throw Error('Expected ")" but "'+a+'" found.');o++,I.value=M}(m=m||y||[]).push(w)}else break}return m},this}var j2,x1,F2,w1,S1,B2,qn,t2,jc,Ih=Rs(()=>{jo(),j2=wa(Ta()),mr.prototype.registerSelectorPseudos=function(e){for(var o=0,r=arguments.length;o<r;o++)e=arguments[o],this.pseudos[e]="selector";return this},mr.prototype.unregisterSelectorPseudos=function(e){for(var o=0,r=arguments.length;o<r;o++)e=arguments[o],delete this.pseudos[e];return this},mr.prototype.registerNumericPseudos=function(e){for(var o=0,r=arguments.length;o<r;o++)e=arguments[o],this.pseudos[e]="numeric";return this},mr.prototype.unregisterNumericPseudos=funct
`,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},S1={n:`
`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'},mr.prototype.parse=function(e){var o=new Oh(e,0,this.pseudos,this.attrEqualityMods,this.ruleNestingOperators,this.substitutesEnabled);return o.parse()},mr.prototype.escapeIdentifier=function(e){for(var o="",r=0,i=e.length;r<i;){var h=e.charAt(r);if(x1[h])o+="\\"+h;else if(h==="_"||h==="-"||h>="A"&&h<="Z"||h>="a"&&h<="z"||r!==0&&h>="0"&&h<="9")o+=h;else{var l=h.charCodeAt(0);if((l&63488)===55296){var a=e.charCodeAt(r++);if((l&64512)!==55296||(a&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");l=((l&1023)<<10)+(a&1023)+65536}o+="\\"+l.toString(16)+" "}r++}return o},mr.prototype.escapeStr=function(e){for(var o="",r=0,i=e.length,h,l;r<i;)h=e.charAt(r),h==='"'?h='\\"':h==="\\"?h="\\\\":(l=F2[h])&&(h=l),o+=h,r++;return'"'+o+'"'},mr.prototype.render=function(e){return this._renderEntity(e).trim()},B2=null,mr.prototype._renderEntity=function(e,o){var r,i,h,l;switch(l="",e.type){case"ruleSet":for(i=e.rule,B2=e,h=[];i;)i.nestingOperator&&h.push(i.nestingOperator),h.push(this._renderEntity(i)),i=i.rule;let a=e.media&&e.media.length?` @media ${e.media.join(" and ")}`:"";l=h.join(" ")+a;break;case"selectors":l=e.selectors.map(this._renderEntity,this).join(", ");break;case"rule":let c=e.s1,d=e.s2,p=e.tagName;if(p)if(p==="*")l="*";else{let m=j2.TAG_NAMES[p]||p=="svg"||p.indexOf("-")>0,x=this.escapeIdentifier(p);m?l=x:l=`:is(${x},${x}-tag)`}e.id&&(l+="#"+this.escapeIdentifier(e.id));let u=0,y=e.length;for(;u<y;){let m=null,x=e[u++],b=x.attr,E=x.flag,v="",w=x.not,A=x.pseudo?x:null,$=Vo[x.pseudo];if(!(x.media||x.skip)){if($&&$.flag&&(E=$.flag,A=null),$&&$.type=="el"&&(A=null,e.pseudoElement||(e.pseudoElement="::"+x.pseudo)),E&&(v="."+this.escapeIdentifier(E)),b&&(b.operator?b.valueType==="substitute"?v="["+this.escapeIdentifier(b.name)+b.operator+"$"+b.value+"]":v="["+this.escapeIdentifier(b.name)+b.operator+this.escapeStr(b.value)+"]":v="["+this.escapeIdentifier(b.name)+"]"),A){let C=(r=$&&$.name)!=null?r:A.pseudo,F=this.escapeIdentifier(C),I="",R=A.value||A.name,M=A.not,V=":"+F;A.valueType?A.valueType==="selector"?v=V+"("+this._renderEntity(A.value,o)+")"+I:A.valueType==="substitute"?v=V+"($"+A.value+")"+I:A.valueType==="numeric"||A.valueType==="raw"||A.valueType==="string"?v=V+"("+A.value+")"+I:v=V+"("+this.escapeIdentifier(A.value)+")"+I:A.type=="el"?v=":"+V:!$||$.flag?v=`.\\@${F}`:v=V+I,v.match(/^\:(hover|focus|checked|disabled)$/)}if(x.closest){let C=e.filter(I=>I.closest==x);C.map(I=>I.closest=null),x.not=!1;let F=this._renderEntity(k1({type:"rule"},C));C.map(I=>I.skip=!0),v=`:${w?"not":"is"}(${F} *)`,w=!1}else if(x.up){let C=x.up>5?" *":" > *".repeat(x.up);v=`:${w?"not":"is"}(${v}${C})`,w=!1}w&&(v=`:not(${v})`),l+=v}}if(c>0)for(;--c>=0;)l+=":not(#_)";if(d>0)for(;--d>=0;)l+=":not(._0)";e.pseudoElement&&(l+=e.pseudoElement);break;default:throw Error('Unknown entity type: "'+e.type(+'".'))}return l},qn=new mr,qn.registerSelectorPseudos("has","not","is","matches","any","where"),qn.registerNumericPseudos("nth-child"),qn.registerNestingOperators(">>>",">>",">","+","~"),qn.registerAttrEqualityMods("^","$","*","~"),t2=function(e){return qn.parse(e)},jc=function(e){return qn.render(e)}}),Fc={};on(Fc,{parse:()=>Gc,render:()=>e2,rewrite:()=>Ra,test:()=>Nh,unwrap:()=>T1});function ui(e){let o;return e?(o=e.toIterable)?o.call(e):e:[]}function Bc(e,o){return e.push({flag:o}),e}function G2(e,o){return Bc(e,o),e.metas||(e.metas=[]),e.metas.push(o),e}function Ra(e,o,r={}){var i,h,l,a,c;if(e.type=="selectors")for(let H=0,X=ui(e.selectors),tt=X.length;H<tt;H++){let st=X[H];Ra(st,e,r)}if(e.type!="ruleSet")return e;let d=e,p=0,u=0,y=0,m=0;e.meta={},e.media=[];let x=[],b=e.rule;for(;b;)x.push(b),b=b.rule;let E=x.slice(0).reverse();for(let H=0,X=ui(E),tt=X.length;H<tt;H++){let st=X[H],Z=E[H+1];for(let kt=0,W=ui(st),zt=W.length;kt<zt;kt++){let K=W[kt];K.up>0&&Z&&(K.up-=1,Z.push(K),st[kt]={})}}let v=x[0],w=null,A=null,$=!1,C=!!r.global,F=!1,I=0;((i=x[0])==null?void 0:i.tagName)=="*"&&(x[0].nestingOperator=">>>",x.unshift(e.rule=Object.assign([],{type:"rule",rule:x[0],isScope:!0,nestingOperator:">>>"})
`+y+`
}`),a.push(y)}return a.join(`
`).replace(/\$CONTENT\$/g,o)}function T1(e,o){let r=e.split(","),i=o.split(","),h=[];for(let l=0,a=ui(i),c=a.length;l<c;l++){let d=a[l];for(let p=0,u=ui(r),y=u.length;p<y;p++){let m=u[p],x=d;x.indexOf("&")>=0?x=x.replace("&",m):x=m+" "+x,h.push(x)}}return h.join(",")}function Gc(e,o){let r=t2(e);return r&&Ra(r,null,o)}function Nh(e,o=!1){let r=t2(e),i=Ra(r,null,{ns:"dvs342"}),h=e2(i);return console.log(h),o&&console.dir(r,{depth:null}),h}var E1,Vc,zc,Uc=Rs(()=>{Sh(),Ih(),jo(),E1=Symbol.for("#rules"),Vc=Symbol.for("#string"),zc=Symbol.for("#media")}),Ch=we((e,o)=>{var r={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};o.exports={conv:r};for(let i of Object.keys(r)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);let{channels:h,labels:l}=r[i];delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:h}),Object.defineProperty(r[i],"labels",{value:l})}r.rgb.hsl=function(i){let h=i[0]/255,l=i[1]/255,a=i[2]/255,c=Math.min(h,l,a),d=Math.max(h,l,a),p=d-c,u,y;d===c?u=0:h===d?u=(l-a)/p:l===d?u=2+(a-h)/p:a===d&&(u=4+(h-l)/p),u=Math.min(u*60,360),u<0&&(u+=360);let m=(c+d)/2;return d===c?y=0:m<=.5?y=p/(d+c):y=p/(2-d-c),[u,y*100,m*100]},r.rgb.hsv=function(i){let h,l,a,c,d,p=i[0]/255,u=i[1]/255,y=i[2]/255,m=Math.max(p,u,y),x=m-Math.min(p,u,y),b=function(E){return(m-E)/6/x+1/2};return x===0?(c=0,d=0):(d=x/m,h=b(p),l=b(u),a=b(y),p===m?c=a-l:u===m?c=1/3+h-a:y===m&&(c=2/3+l-h),c<0?c+=1:c>1&&(c-=1)),[c*360,d*100,m*100]},r.rgb.hwb=function(i){let h=i[0],l=i[1],a=i[2],c=r.rgb.hsl(i)[0],d=1/255*Math.min(h,Math.min(l,a));return a=1-1/255*Math.max(h,Math.max(l,a)),[c,d*100,a*100]},r.rgb.cmyk=function(i){let h=i[0]/255,l=i[1]/255,a=i[2]/255,c=Math.min(1-h,1-l,1-a),d=(1-h-c)/(1-c)||0,p=(1-l-c)/(1-c)||0,u=(1-a-c)/(1-c)||0;return[d*100,p*100,u*100,c*100]},r.rgb.xyz=function(i){let h=i[0]/255,l=i[1]/255,a=i[2]/255;h=h>.04045?((h+.055)/1.055)**2.4:h/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let c=h*.4124564+l*.3575761+a*.1804375,d=h*.2126729+l*.7151522+a*.072175,p=h*.0193339+l*.119192+a*.9503041;return[c*100,d*100,p*100]},r.rgb.lab=function(i){let h=r.rgb.xyz(i),l=h[0],a=h[1],c=h[2];l/=95.047,a/=100,c/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let d=116*a-16,p=500*(l-a),u=200*(a-c);return[d,p,u]},r.hsl.rgb=function(i){let h=i[0]/360,l=i[1]/100,a=i[2]/100,c,d,p;if(l===0)return p=a*255,[p,p,p];a<.5?c=a*(1+l):c=a+l-a*l;let u=2*a-c,y=[0,0,0];for(let m=0;m<3;m++)d=h+1/3*-(m-1),d<0&&d++,d>1&&d--,6*d<1?p=u+(c-u)*6*d:2*d<1?p=c:3*d<2?p=u+(c-u)*(2/3-d)*6:p=u,y[m]=p*255;return y},r.hsl.hsv=function(i){let h=i[0],l=i[1]/100,a=i[2]/100,c=l,d=Math.max(a,.01);a*=2,l*=a<=1?a:2-a,c*=d<=1?d:2-d;let p=(a+l)/2,u=a===0?2*c/(d+c):2*l/(a+l);return[h,u*100,p*100]},r.hsv.rgb=function(i){let h=i[0]/60,l=i[1]/100,a=i[2]/100,c=Math.floor(h)%6,d=h-Math.floor(h),p=255*a*(1-l),u=255*a*(1-l*d),y=255*a*(1-l*(1-d));switch(a*=255,c){case 0:return[a,y,p];case 1:return[u,a,p];case 2:return[p,a,y];case 3:return[p,u,a];case 4:return[y,p,a];case 5:return[a,p,u]}},r.hsv.hsl=function(i){let h=i[0],l=i[1]/100,a=i[2]/100,c=Math.max(a,.01),d,p;p=(2-l)*a;let u=(2-l)*c;return d=l*c,d/=u<=1?u:2-u,d=d||0,p/=2,[h,d*100,p*100]},r.hwb.rgb=function(i){let h=i[0]/360,l=i[1]/100,a=i[2]/100,c=l+a,d;c>1&&(l/=c,a/=c);let p=Math.floor(6*h),u=1-a;d=6*h-p,(p&1)!==0&&(d=1-d);let y=l+d*(u-l),m,x,b;switch(p){default:case 6:case 0:m=u,x=y,b=l;break;case 1:m=y,x=
--t_scale:1;--t_scale-x:1;--t_scale-y:1;
--t_skew-x:0;--t_skew-y:0;
transform: translate3d(var(--t_x),var(--t_y),var(--t_z))
rotate(var(--t_rotate))
skewX(var(--t_skew-x)) skewY(var(--t_skew-y))
scaleX(var(--t_scale-x)) scaleY(var(--t_scale-y)) scale(var(--t_scale));`,outline:`--ol_s:solid;--ol_w:1px;--ol_o:0px; --ol_c:transparent;
outline:var(--ol_w) var(--ol_s) var(--ol_c); outline-offset:var(--ol_o);
outline:1px solid transparent; outline-offset:var(--ol_o);`,ease:`--e_ad:0ms;--e_af:cubic-bezier(0.23, 1, 0.32, 1);--e_aw:0ms;
--e_od:var(--e_ad);--e_of:var(--e_af);--e_ow:var(--e_aw);
--e_cd:var(--e_ad);--e_cf:var(--e_af);--e_cw:var(--e_aw);
--e_bd:var(--e_ad);--e_bf:var(--e_af);--e_bw:var(--e_aw);
--e_td:var(--e_bd);--e_tf:var(--e_bf);--e_tw:var(--e_bw);
--e_b:var(--e_bd) var(--e_bf) var(--e_bw);
--e_c:var(--e_cd) var(--e_cf) var(--e_cw);
--e_rest:any;
transition:
all var(--e_ad) var(--e_af) var(--e_aw),
opacity var(--e_od) var(--e_of) var(--e_ow),
transform var(--e_td) var(--e_tf) var(--e_tw),
color var(--e_c),background-color var(--e_c),border-color var(--e_c),fill var(--e_c),stroke var(--e_c), outline-color var(--e_c), box-shadow var(--e_c),
inset var(--e_b), width var(--e_b),height var(--e_b),max-width var(--e_b),max-height var(--e_b),min-width var(--e_b),min-height var(--e_b),border-width var(--e_b),outline-width var(--e_b),stroke-width var(--e_b),margin var(--e_b),padding var(--e_b),
var(--e_rest);`},da={"user-select":["-webkit-user-select"],appearance:["-webkit-appearance"],"backdrop-filter":["-webkit-backdrop-filter"],"mask-image":["-webkit-mask-image"]},Kc=class{constructor(e){this[oa]=e,this[aa]=[],this[ca]={},this[No]={},this.transforms=null}get transitions(){return this[No].transition}add(e,o={}){var r;if(this[aa].push(e),o.apply)for(let i=o.apply,h=0,l=Object.keys(i),a=l.length,c,d;h<a;h++){c=l[h],d=i[c];let p=(r=this[ca])[c]||(r[c]=[]);for(let u=0,y=Es(d),m=y.length;u<m;u++){let x=y[u];p.indexOf(x)<0&&p.push(x)}}}js(e,o){let r=[];for(let i=this[No],h=0,l=Object.keys(i),a=l.length,c,d;h<a;h++)c=l[h],d=i[c],r.push(e.runtime().transitions+(".addSelectors("+JSON.stringify(d)+",'"+c+"')"));return r.join(`
`)}parse(){if(this[Tn])return this[Tn];let e=[],o=this[aa].slice(0),r=function(i){return o.indexOf(i)<0,o.unshift(i)};for(let i=this[ca],h=0,l=Object.keys(i),a=l.length,c,d;h<a;h++){c=l[h],d=i[c];let p=I1[c],u={},y={},m={"":u},x=c=="transition"||c.match(/^_(off|out|in)_sized/);for(let E=0,v=Es(d),w=v.length;E<w;E++){let A=v[E];for(let $=0,C=Es(A[q2]||[]),F=C.length;$<F;$++){let I=C[$],R=I[H2]||"",M=I[Tn].replace(/:not\((#_|\._0?)+\)/g,"");(x||c=="ease")&&(M=M.replace(/\.\\@(off|out|in|on)\b/g,"")),M=M.replace(/((\:+)[\w\-]+)(?!\()/g,function(H,X){return X.length>1?H:""}),M=M.replace(/^\:root /g,"");let V=m[R]||(m[R]={});V[M]=I,y[M]=!0}}if(p)for(let E=0,v=Object.keys(m),w=v.length,A,$;E<w;E++){A=v[E],$=m[A];let C=Object.keys($);if(A!=""&&(C=C.filter(function(M){return!u[M]})),C.length==0)continue;let F=C.sort(function(M,V){return M.length-V.length}),I=[];for(let M=0,V=Es(F),H=V.length;M<H;M++){let X=V[M];(!F.slice(0,M).find(function(tt){return X.indexOf(tt)>=0})||X.match(/[\s\>\,]|:(not|before|after|marker)|::/))&&I.push(X)}C=I;let R=C.join(", ")+` {
`+p+`
}`;A&&(R=A+` {
`+R+`
}`),o.unshift(R)}let b=Object.keys(y);c=="transition"&&b.length&&(r(".\\@enter:not(#_),.\\@leave:not(#_) {--e_ad:300ms;}"),r("._instant_:not(#_):not(#_):not(#_):not(#_) { transition-duration:0ms !important; }")),x&&(this[No][c]=b)}return this[Tn]=o.join(`
`),this[oa].resolveColors()&&(this[Tn]=this[oa].theme().transformColors(this[Tn],{prefix:!1})),this[Tn]}toString(){return this.parse()}},En=class{constructor(e,o,r,i={}){this.parent=e,this.selector=o,this.content=r,this.options=i,this.isKeyFrames=!!o.match(/\@keyframes \w/),this.isKeyFrame=e&&e.isKeyFrames,this.meta={}}root(){return this.parent?this.parent.root:this}apply(e,o){var r;return((r=this.options.apply)[e]||(r[e]=[])).push(o)}register(e,o){var r;return((r=this.options.register)[e]||(r[e]=[])).push(o)}toString(e={}){let o=[],r=[],i;if(this.isKeyFrames){let[c,d]=this.selector.split(/\s*\@keyframes\s*/);c=c.trim(),d=d.trim();let p=[d,c,this.options.ns].filter(function(y){return y}).join("-");this.meta.name=d,this.meta.uniqueName=p.replace(/[\s\.\,]+/g,"").replace(/[^\w\-]/g,"_"),this.options.global&&!c&&(this.meta.uniqueName=this.meta.name);let u={};u["--animation-"+d]=""+this.meta.uniqueName,c?r.push(new En(null,c,u,this.options)):this.options.ns&&!this.options.global&&r.push(new En(null,"."+this.options.ns,u,{}))}let h=typeof this.selector=="string"&&this.selector.indexOf("@important")>=0?1:0;for(let c=this.content,d=0,p=Object.keys(c),u=p.length,y,m;d<u;d++){if(y=p[d],m=c[y],m==null)continue;let x=null,b=h?" !important":"",E=y;if(y.indexOf("&")>=0){if(this.isKeyFrames){let w=y.replace(/&/g,""),A=new En(this,w,m,this.options);o.push(A.toString({indent:!0}));continue}let v=T1(this.selector,y);r.push(new En(this,v,m,this.options));continue}else if(y.indexOf("\xA7")>=0){let v=E.split("\xA7"),w=v.slice(1).join(""),A=T1(this.selector,w),$={};$[v[0]]=m,(i=r[A])?i.content[v[0]]=m:(i=new En(this,A,$,this.options),r.push(r[A]=i));continue}else if(y.match(/^__(\w+)__$/))this.meta[y.slice(2,-2)]=!0;else if(y[0]=="["){let v=JSON.parse(y);r.push(new En(this,this.selector,m,this.options));continue}else if(y.match(/^outline-?/))this.meta.outline=!0,o.push(""+y+": "+m+" !important;");else if(y.match(/^(x|y|z|scale|scale-x|scale-y|skew-x|skew-y|rotate)$/))this.meta.transform||(this.meta.transform=!0),o.push("--t_"+y+": "+m+" !important;");else if(y.match(/^(ease-.*)$/)){this.meta.ease=!0;let v=y.replace("delay","wait").split("-").map(function(w){return w[0]}).join("");o.push("--e_"+v.slice(1)+": "+m+" !important;"),Ao[y]||console.warn(""+y+" is not a valid style property")}else if(y.match(/^(--e_\w+)$/))this.meta.ease=!0,this.selector.match(/@in\b/),o.push(""+y+": "+m+" !important;");else if(!y.match(/^__ease__$/)&&(y.match(/^(width|height)$/)&&(this.meta.size=!0),o.push(""+y+": "+m+b+";"),da[y]))for(let v=0,w=Es(da[y]),A=w.length;v<A;v++){let $=w[v];o.push(""+$+": "+m+b+";")}}let l="",a=o.join(`
`);if((e.indent||this.isKeyFrames)&&(a=`
`+a+`
`),this.isKeyFrame)l=""+this.selector+" {"+a+"}";else if(this.isKeyFrames)l="@keyframes "+this.meta.uniqueName+" {"+a+"}";else{let c=this.isKeyFrame?this.selector:Gc(this.selector,this.options);if(this.meta.transform&&this.apply("transform",c),this.meta.ease&&this.apply("ease",c),this.meta.outline&&this.apply("outline",c),c&&c.hasTransitionStyles&&(this.apply("transition",c),this.meta.ease||this.apply("ease",c)),this.meta.size)for(let d=0,p=["_off_","_out_","_in_"],u=p.length;d<u;d++){let y=p[d];c[y]&&this.apply(""+y+"sized",c)}l=a.match(/[^\n\s]/)?e2(c,a,this.options):""}for(let c=0,d=Es(r),p=d.length;c<p;c++){let u=d[c];l+=`
`+u.toString()}return l}}}),Ah=we(e=>{function o(t){return t&&(t.len instanceof Function?t.len():t.length)||0}function r(t,s){return s&&s.indexOf?s.indexOf(t):[].indexOf.call(t,s)}function i(t,s){for(var n in s)s.hasOwnProperty(n)&&(t[n]=s[n]);t.prototype=Object.create(s.prototype),t.__super__=t.prototype.__super__=s.prototype,t.prototype.initialize=t.prototype.constructor=t}function h(t){return t?t.toArray?t.toArray():t:[]}var l={},a=Fo(),c=Ta(),d=(B1(),Gi(P1)),p=V1(),u=p.ImbaParseError,y=p.ImbaTraverseError,m=Sa().Token,x=Ul().SourceMap,$=(Wc(),Gi(Hc)),b=$.StyleRule,E=$.StyleTheme,v=$.Color,w=$.StyleSheet,A=$.parseColorString,$=(sc(),Gi(C1)),C=$.ReservedIdentifierRegex,F=$.InternalPrefixes,I=$.toJSIdentifier,R=$.toCustomTagIdentifier,M=(G1(),Gi(Ia)).Compilation,V=(Ec(),Gi(Tc)).SourceMapper,H=c.TAG_NAMES,X=c.TAG_GLOBAL_ATTRIBUTES,tt={},st={},Z={svg:"image",png:"image",apng:"image",jpg:"image",jpeg:"image",gif:"image",tiff:"image",bmp:"image"};tt.HTML="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strong strike style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr".split(" "),tt.SVG="circle defs ellipse g line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),st.HTML="accept accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked className cols colSpan content contentEditable contextMenu controls coords crossOrigin data dateTime defer dir disabled download draggable encType form formNoValidate frameBorder height hidden href hrefLang htmlFor httpEquiv icon id label lang list loop max maxLength mediaGroup method min multiple muted name noValidate pattern placeholder poster preload radioGroup readOnly rel required role rows rowSpan sandbox scope scrollLeft scrolling scrollTop seamless selected shape size span spellCheck src srcDoc srcSet start step style tabIndex target title type useMap value width wmode",st.SVG="cx cy d dx dy fill fillOpacity fontFamily fontSize fx fy gradientTransform gradientUnits markerEnd markerMid markerStart offset opacity patternContentUnits patternUnits points preserveAspectRatio r rx ry spreadMethod stopColor stopOpacity stroke strokeDasharray strokeLinecap strokeOpacity strokeWidth textAnchor transform version viewBox x1 x2 x y1 y2 y";var kt={intersect:"events_intersect",selection:"events_selection",resize:"events_resize",hotkey:"events_hotkey",touch:"events_touch",pointer:"events_pointer",pointerdown:"events_pointer",pointermove:"events_pointer",pointerover:"events_pointer",pointerout:"events_pointer",pointerup:"events_pointer",pointercancel:"events_pointer",lostpointercapture:"events_pointer",click:"events_mouse",mousedown:"events_mouse",mouseup:"events_mouse",mouseenter:"events_mouse",mouseleave:"events_mouse",mousemove:"events_mouse",mouseout:"events_mouse",mouseover:"events_mouse",mousewheel:"events_mouse",keydown:"events_keyboard",keyup:"events_keyboard",keypress:"events_keyboard"},W=e.AST={},zt=e.F={TAG_INITED:2**0,TAG_BUILT:2**1,TAG_CUSTOM:2**2,TAG_AWAKENED:2**3,TAG_MOUNTED:2**4,TAG_SCHEDULE:2**5,TAG_SCHEDULED:2**6,TAG_FIRST_CHILD:2**7,TAG_LAST_CHILD:2**8,TAG_HAS_DYNAMIC_FLAGS:2**9,TAG_HAS_BRANCHES:2**10,TAG_HAS_LOOPS:2**11,TAG_HAS_DYNAMIC_CHILDREN:2**12,TAG_IN_BRANCH:2**13,TAG_BIND_MODEL:2**14,TAG_INDEXED:2**15,TAG_KEYED:2**16,EL_INITED:2**0,EL_HYDRATED:2**1,EL_HYDRATING:2**2,EL_AWAKENED:2**3,EL_MOUNTING:2**4,EL_MOUNTED:2**5,EL_SCHEDULE:2**6,EL_SCHEDULED:2**7,EL_RENDERING:2**8,EL_RENDERED:2**9,EL_SSR:2**10,EL_TRACKED:2**11,EL_SUSPENDED:2**12,EL_UNRENDERED:2**13,DIFF_BUILT:2**0,DIFF_FLAGS:2**1,DI
`).replace(/\n\t$/g,`
`),t=n+`
`+t,T instanceof O&&(t+=T.c()),t[t.length-1]!=`
`&&(t=t+`
`),t};var Pt=new gt({},{});function Ct(){this._entities=[]}Ct.prototype.add=function(t){return this._entities.unshift(t),this},Ct.prototype.pluck=function(t){var s=null;for(let n=0,f=h(this._entities),k=f.length,T;n<k;n++)if(T=f[n],T==t||T instanceof t)return s=T,this._entities.splice(n,1),s;return null};function rt(){this.reset()}e.Stack=rt,rt.prototype.loglevel=function(t){return this._loglevel},rt.prototype.setLoglevel=function(t){return this._loglevel=t,this},rt.prototype.nodes=function(t){return this._nodes},rt.prototype.setNodes=function(t){return this._nodes=t,this},rt.prototype.scopes=function(t){return this._scopes},rt.prototype.setScopes=function(t){return this._scopes=t,this},rt.prototype.root=function(t){return this._root},rt.prototype.setRoot=function(t){return this._root=t,this},rt.prototype.state=function(t){return this._state},rt.prototype.setState=function(t){return this._state=t,this},rt.prototype.meta=function(t){return this._meta},rt.prototype.setMeta=function(t){return this._meta=t,this},rt.prototype.theme=function(t){return this._theme},rt.prototype.setTheme=function(t){return this._theme=t,this},rt.prototype.css=function(t){return this._css},rt.prototype.setCss=function(t){return this._css=t,this},rt.prototype.reset=function(){return this._nodes=[],this._scoping=[],this._scopes=[],this._stash=new Ct(this),this._loglevel=3,this._counter=0,this._counters={},this._options={},this._state={},this._tag=null,this._sourceId=null,this._symbols={},this._css=new w(this),this._theme=null,this._meta={},this._runtime,this},rt.prototype.runtime=function(){return this._root.runtime()},rt.prototype.cssns=function(){return this._root.cssns()},rt.prototype.use=function(t){return this._root.use(t)},rt.prototype.incr=function(t){return this._counters[t]||(this._counters[t]=0),this._counters[t]+=1},rt.prototype.decr=function(t){return this._counters[t]||(this._counters[t]=0),this._counters[t]-=1},rt.prototype.strip=function(t){return V.strip(t)},rt.prototype.generateId=function(t){return t===void 0&&(t="oid"),W.counterToShortRef(N.incr(t))},rt.prototype.getSymbol=function(t,s,n){s===void 0&&(s=null),n===void 0&&(n="");let f=t||this.incr("symbols");return this._symbols[f]||(this._symbols[f]=this._root.declare(s||t,mt("Symbol("+(n?a.singlequote(n):"")+")"),{system:!0,alias:s||t}).resolve().c())},rt.prototype.symbolFor=function(t){return this._root.symbolRef(t)},rt.prototype.toInternalClassName=function(t){t.toClassName?t=t.toClassName():t.c instanceof Function&&(t=t.c());let s="\u03A9"+this.strip(t).split(".").join("__"),n=this.incr(s);return n>1&&(s+="\u03A9"+n),s},rt.prototype.domCall=function(t){return t={start:"beforeVisit",end:"afterVisit",open:"beforeReconcile",close:"afterReconcile",insert:"placeChild"}[t]||t,"["+this.symbolFor("#"+t)+"]"},rt.prototype.sourceId=function(){if(this._sourceId||(this._sourceId=this._options.sourceId))return this._sourceId;let t=this.sourcePath(),s=this.cwd();if(this._options.path&&s&&(t=this._options.path.relative(s,t)),!t)throw new Error("Include sourceId or sourcePath in options compile(code,options)");return this._sourceId=a.identifierForPath(t),this._sourceId},rt.prototype.theme=function(){return this._theme||(this._theme=E.wrap(this._options.config))},rt.prototype.stash=function(){return this._stash},rt.prototype.set=function(t){this._options||(this._options={});for(let s,n=0,f=Object.keys(t),k=f.length,T;n<k;n++)T=f[n],s=t[T],this._options[T]=s;return this},rt.prototype.option=function(t,s){return s!=null?(this._options||(this._options={}),this._options[t]=s,this):this._options&&this._options[t]},rt.prototype.platform=function(){return this._options.platform||"browser"},rt.prototype.format=function(){return this._options.format},rt.prototype.sourcePath=function(){return this._options.sourcePath},rt.prototype.imbaPath=function(){return this._options.imbaPath},rt.prototype.resolveColors=function(){return this._options.styles!=="extern"||this._options.resolveColors},rt.prototype.config=function(){return this._options.config||{}},rt.prototype.cwd=function(){return this.config()&&thi
`),this},L.prototype.invert=function(){return K("!",this)},L.prototype.cache=function(t){return t===void 0&&(t={}),this._cache=t,t.var=(t.scope||this.scope__()).temporary(this,t),t.lookups=0,this},L.prototype.cachevar=function(){return this._cache&&this._cache.var},L.prototype.decache=function(){return this._cache&&(this.cachevar().free(),this._cache=null),this},L.prototype.alias=function(){return null},L.prototype.warn=function(t,s){s===void 0&&(s={});let n=s.loc||this.loc()||[0,0];return n instanceof L&&(n=[n.startLoc(),n.endLoc()]),n instanceof m&&(n=n.loc()),this.script().addDiagnostic(s.severity||"warning",{message:t,range:this.script().rangeAt(n[0],n[1])})},L.prototype.error=function(t,s){return s===void 0&&(s={}),s.severity="error",this.warn(t,s)},L.prototype.c=function(t){var s,n=N,f=this._cache;if(f&&f.cached)return this.c_cached(f);n.push(this),t&&t.expression&&this.forceExpression(),t&&t.indent&&(this._indentation||(this._indentation=Pt));var k=this.js(n,t),T=this.shouldParenthesize();if(n.pop(this),k==null)return k;if((s=this._indentation)&&(k=s.wrap(k,t)),T&&(k="("+k+")"),(t&&t.braces||this._options&&this._options.braces)&&(s?k="{"+k+"}":k="{ "+k+" }"),f=this._cache){f.manual||(k=""+f.var.c()+" = "+k);var B=n.current();B instanceof Y&&(B=B.node()),(B instanceof _e||B instanceof he)&&(k="("+k+")"),f.cached=!0}return it.sourcemap&&(!t||t.mark!==!1)&&(k=z(k,this)),k},L.prototype.c_cached=function(t){return t.lookups++,t.uses==t.lookups&&t.var.free(),t.var.c()};function Y(t){this.setup(),this._value=this.load(t)}i(Y,L),e.ValueNode=Y,Y.prototype.value=function(t){return this._value},Y.prototype.setValue=function(t){return this._value=t,this},Y.prototype.startLoc=function(){return this._value&&this._value.startLoc&&this._value.startLoc()},Y.prototype.endLoc=function(){return this._value&&this._value.endLoc&&this._value.endLoc()},Y.prototype.load=function(t){return t},Y.prototype.js=function(t){return typeof this._value=="string"?this._value:this._value.c()},Y.prototype.visit=function(){return this._value instanceof L&&this._value.traverse(),this},Y.prototype.region=function(){return[this._value._loc,this._value._loc+this._value._len]};function Nt(t,s){this.setup(),this._value=t,this._orig=s||t}i(Nt,L),e.ValueReferenceNode=Nt,Nt.prototype.value=function(t){return this._value},Nt.prototype.setValue=function(t){return this._value=t,this},Nt.prototype.orig=function(t){return this._orig},Nt.prototype.setOrig=function(t){return this._orig=t,this},Nt.prototype.startLoc=function(){return this._orig&&this._orig.startLoc&&this._orig.startLoc()},Nt.prototype.endLoc=function(){return this._orig&&this._orig.endLoc&&this._orig.endLoc()},Nt.prototype.load=function(t){return t},Nt.prototype.js=function(t){return z(this._value.c({mark:!1}),this)},Nt.prototype.visit=function(){return this._value instanceof L&&this._value.traverse(),this},Nt.prototype.region=function(){return[this._orig._loc,this._orig._loc+this._orig._len]};function at(){return Y.apply(this,arguments)}i(at,Y),e.ExpressionNode=at;function ft(){return Y.apply(this,arguments)}i(ft,Y),e.AssertionNode=ft,ft.prototype.js=function(t){let s=this._value,n=[];if(s instanceof he&&!(s instanceof _e)){let f=s.left(),k=s.right();n.push(f.cache().c(t)),n.push(a.singlequote(s._op)),n.push(k.cache().c(t)),n=["imba.$a=["+n.join(",")+"]"],n.push(s.c(t))}else n.push("imba.$a=null"),n.push(s.c(t));return"("+n.join(",")+")"};function $t(){return Y.apply(this,arguments)}i($t,Y),e.Statement=$t,$t.prototype.isExpressable=function(){return!1};function Rt(){return Y.apply(this,arguments)}i(Rt,Y),e.Meta=Rt,Rt.prototype.isPrimitive=function(t){return!0};function ct(){return Rt.apply(this,arguments)}i(ct,Rt),e.Comment=ct,ct.prototype.visit=function(){var t,s;if(t=this.up()){var n=t.indexOf(this)+1;t.index(n)instanceof O&&(n+=1),(s=t.index(n))&&(s._desc=this)}return this},ct.prototype.toDoc=function(){return a.normalizeIndentation(""+this._value._value)},ct.prototype.toJSON=function(){return a.normalizeIndentation(""+this._value._value)},ct.prototype.toString=function(){return this._value._valu
`}i(S,O),e.Newline=S,S.prototype.c=function(){return this._value};function D(){return Y.apply(this,arguments)}i(D,Y),e.Index=D,D.prototype.cache=function(t){return t===void 0&&(t={}),this._value.cache(t)},D.prototype.js=function(t){return this._value.c()};function P(t){this.setup(),this._nodes=this.load(t||[]),this._indentation=null}i(P,L),e.ListNode=P,P.prototype.nodes=function(t){return this._nodes},P.prototype.setNodes=function(t){return this._nodes=t,this},P.prototype.list=function(){return this._nodes},P.prototype.compact=function(){return this._nodes=W.compact(this._nodes),this},P.prototype.load=function(t){return t},P.prototype.concat=function(t){return this._nodes=this.nodes().concat(t instanceof Array?t:t.nodes()),this},P.prototype.swap=function(t,s){var n=this.indexOf(t);return n>=0&&(this.nodes()[n]=s),this},P.prototype.push=function(t){return this._nodes.push(t),this},P.prototype.pop=function(){var t=this._nodes.pop();return t},P.prototype.add=function(t,s){let n=null;if(s&&s.before)n=this._nodes.indexOf(s.before),n==-1&&(n=null);else if(s&&s.after){if(n=this._nodes.indexOf(s.after)+1,n==0&&(n=null),n>=1)for(;this._nodes[n]instanceof Rt;)n++}else(typeof s=="number"||s instanceof Number)&&(n=s);return n!==null?t instanceof Array?this._nodes.splice.apply(this._nodes,[].concat([n,0],Array.from(t))):this._nodes.splice(n,0,t):t instanceof Array?this._nodes.push.apply(this._nodes,t):this._nodes.push(t),this},P.prototype.unshift=function(t,s){return s&&this._nodes.unshift(cs),this._nodes.unshift(t),this},P.prototype.slice=function(t,s){return new this.constructor(this._nodes.slice(t,s))},P.prototype.break=function(t,s){return s===void 0&&(s=!1),typeof t=="string"&&(t=new O(t)),s?this.unshift(t):this.push(t),this},P.prototype.some=function(t){for(let s=0,n=h(this._nodes),f=n.length,k;s<f;s++)if(k=n[s],t(k))return!0;return!1},P.prototype.every=function(t){for(let s=0,n=h(this._nodes),f=n.length,k;s<f;s++)if(k=n[s],!t(k))return!1;return!0},P.prototype.values=function(){return this._nodes.filter(function(t){return!(t instanceof Rt)})},P.prototype.filter=function(t){return this._nodes.filter(t)},P.prototype.pluck=function(t){var s=this.filter(t)[0];return s&&this.remove(s),s},P.prototype.indexOf=function(t){return this._nodes.indexOf(t)},P.prototype.index=function(t){return this._nodes[t]},P.prototype.remove=function(t){var s=this._nodes.indexOf(t);return s>=0&&this._nodes.splice(s,1),this},P.prototype.removeAt=function(t){var s=this._nodes[t];return t>=0&&this._nodes.splice(t,1),s},P.prototype.replace=function(t,s){var n=this._nodes.indexOf(t);return n>=0&&(s instanceof Array?this._nodes.splice.apply(this._nodes,[].concat([n,1],Array.from(s))):this._nodes[n]=s),this},P.prototype.first=function(){return this._nodes[0]},P.prototype.last=function(){for(var t=this._nodes.length;t;){t=t-1;var s=this._nodes[t];if(!(s instanceof Rt))return s}return null},P.prototype.map=function(t){return this._nodes.map(t)},P.prototype.forEach=function(t){return this._nodes.forEach(t)},P.prototype.remap=function(t){return this._nodes=this.map(t),this},P.prototype.count=function(){return this._nodes.length},P.prototype.len=function(){return this._nodes.length},P.prototype.realCount=function(){var t=0;for(let s=0,n=h(this._nodes),f=n.length,k;s<f;s++)k=n[s],k&&!(k instanceof Rt)&&t++;return t},P.prototype.isEmpty=function(){return this.realCount()==0},P.prototype.visit=function(){let t=this._nodes,s=0;for(;s<t.length;){let n=t[s];if(n.traverse){let f=n.traverse();if(f!=n&&f instanceof Array){t.splice.apply(t,[].concat([s,1],Array.from(f)));continue}}s++}return this},P.prototype.isExpressable=function(){for(let t=0,s=h(this.nodes()),n=s.length,f;t<n;t++)if(f=s[t],f&&!f.isExpressable())return!1;return!0},P.prototype.toArray=function(){return this._nodes},P.prototype.delimiter=function(){return this._delimiter||","},P.prototype.js=function(t,s){(!s||s.constructor!==Object)&&(s={});var n=s.nodes!==void 0?s.nodes:this._nodes,f=",",k=f!=";",T=this.last(),B=0,G=n.length,ut="";for(let xt=0,te=h(n),ae=te.length,xe;xt<ae;xt++){xe=te[xt];var _t=typeof xe
`&&/^\n+$/.test(ae)){if(B)continue;B=!0}else ae&&(B=!1);T+=ae}if(this._head&&this._head.length>0){var G="";for(let _t=0,xt=h(this._head),te=xt.length;_t<te;_t++){var ut=this.cpart(xt[_t]);ut&&(G+=ut+`
`)}T=G+T}return this.option("strict")&&(T=this.cpart(`"use strict";
`)+T),T},Q.prototype.defers=function(t,s){var n=this._nodes.indexOf(t);n>=0&&(this._nodes[n]=s);var f=this._nodes.splice(n+1);return f},Q.prototype.expressions=function(){var t=[];for(let s=0,n=h(this.nodes()),f=n.length,k;s<f;s++)k=n[s],k instanceof O||t.push(k);return t},Q.prototype.consume=function(t){var s;if(t instanceof Gt){let f=this.expressions();return this._nodes=this._nodes.map(function(k){return r(k,f)>=0&&!(k instanceof ts)?k.consume(t):k}),this}if(s=this.last()){var n=s.consume(t);n!=s&&(n instanceof Q&&(n=n.nodes()),this.replace(s,n))}return this},Q.prototype.isExpressable=function(){return!!this._nodes.every(function(t){return t.isExpressable()})},Q.prototype.isExpression=function(){return this.option("express")||this._expression},Q.prototype.shouldParenthesizeInTernary=function(){return this.count()==1?this.first().shouldParenthesizeInTernary():!0},Q.prototype.indented=function(t,s){var n;if(Q.prototype.__super__.indented.apply(this,arguments),t instanceof m&&t._type=="INDENT"&&(n=t._meta&&t._meta.post)){let f=new m("TERMINATOR",n);this._nodes.unshift(new O(f)),t._meta.post=""}return this};function se(){return Q.apply(this,arguments)}i(se,Q),se.prototype.c=function(t){let s=se.prototype.__super__.c.apply(this,arguments);return`static {
`+a.indent(s)+"}"};function jt(){return Q.apply(this,arguments)}i(jt,Q);function Et(){return jt.apply(this,arguments)}i(Et,jt);function J(t){J.prototype.__super__.constructor.apply(this,arguments),this._name=t}i(J,L),e.ClassField=J,J.prototype.name=function(t){return this._name},J.prototype.setName=function(t){return this._name=t,this},J.prototype.visit=function(){var t;return this._decorators=(t=this.up())&&t.collectDecorators&&t.collectDecorators(),this._classdecl=N.up(pe),this._name&&this._name.traverse&&this._name.traverse(),this.value()&&(this.value()._scope=this._vscope=new en(this.value()),this.value()._scope._parent=this.scope__(),this.value().traverse()),this.watchBody()&&(this._descriptor=N.root().declare(""+this.oid()+"$Prop",this.util().watcher(this.storageSymbol(),this.watcherSymbol()),{type:"const",system:!0})),this.wrapper()&&(this._vslot=this.osym("slot",String(this._name)),this._fslot=this.osym("meta"),this._fname=this._name.metaIdentifier(),this.wrapper()._scope=this._vscope=new en(this.wrapper()),this.wrapper()._scope._parent=this.scope__(),this.wrapper().traverse()),this},J.prototype.value=function(){return this.option("value")},J.prototype.target=function(){return this.option("static")?mt("this"):mt("this.prototype")},J.prototype.storageSymbol=function(){return this.symbolRef("#"+this.name().c({as:"symbolpart"}))},J.prototype.watcherSymbol=function(){return this.symbolRef("#"+this.name().c({as:"symbolpart"})+"DidSet")},J.prototype.storageKey=function(){return this._storageKey||(this._storageKey=vt(this.name().c()+"$$"))},J.prototype.storageMap=function(){return this._storageMap||(this._storageMap=this.scope__().root().declare(null,mt("new WeakMap()")))},J.prototype.isPlain=function(){return!this._decorators&&(!this._value||this._value.isPrimitive())},J.prototype.isMember=function(){return!this.option("static")},J.prototype.isLazy=function(){return!1},J.prototype.hasStaticInits=function(){return this.isStatic()||this._decorators},J.prototype.hasConstructorInits=function(){return!this.isStatic()},J.prototype.isStatic=function(){return this.option("static")},J.prototype.watchBody=function(){return this.option("watch")},J.prototype.wrapper=function(){return this.option("wrapper")},J.prototype.loc=function(){return[this._name._loc,this._name.region()[1]]},J.prototype.c=function(){var t,s;if(this.option("struct"))return;let n=N.current(),f;if(n instanceof ne){let k=this.isStatic()?""+z("static",this.option("static"))+" ":"",T=this.name()instanceof Xe?this.name().asObjectKey():this.name().c({as:"field"}),B=N.up(pe);if(this.wrapper()){let G=this._metaname=this._name.metaIdentifier(),ut=this._vslot,_t=this._fslot,xt,te=null;this.isStatic()?te=B.classReference().c():te=""+B.classReference().c()+".prototype";let ae=K(".",mt("this"),G),xe="this,"+ut+","+this._name.c({as:"value"});this._getter=mt("(){ return "+ae.c()+".$get("+xe+") }"),this._setter=mt("(val){ "+ae.c()+".$set(val,"+xe+") }"),N.tsc()?xt="return "+this.runtime().accessor+"("+this.wrapper().c({expression:!0})+","+xe+","+_t+","+te+")":xt="return this["+_t+"] || "+this.runtime().accessor+"("+this.wrapper().c({expression:!0})+","+xe+","+_t+","+te+")",this._handler=mt(""+z(G.c({as:"field"}),this._name)+"(){ "+xt+" }")}if(N.tsc()){if(this.wrapper()){let G=""+k+"set "+z(T,this._name)+this.setter().c({keyword:""}),ut=""+k+"get "+z(T,this._name)+this.getter().c({keyword:""});return this.datatype()&&(ut=""+this.datatype().c()+" "+ut),f=""+G+`
`+ut+`
`+k+"get "+this._handler.c(),this.isStatic()||(f+=`
static get `+z(this._metaname.c({as:"field"}),this._name)+"(){ return "+K(".",mt("this.prototype"),this._metaname).c()+" }"),f}if(this instanceof Xt||this._decorators&&this._decorators.length){let G=this.value()?this.value().c():"",ut="",_t="null",xt="",te=this.osym();f=""+k+" get "+z(T,this._name)+"() { return /** @type any */("+_t+") }",this.datatype()&&(f=""+this.datatype().c()+" "+f),f+=`
`+k+" set "+z(T,this._name)+"(val) { "+xt+" }"}else{f=""+k+z(T,this._name),this.value()&&(f+=" = "+this.value().c()+";");let G=this.datatype();G&&(f=""+G.c()+" "+f)}}else if(this instanceof Xt||this._decorators&&this._decorators.length>0&&!1||this.wrapper()){let G=""+k+"set "+T+this.setter().c({keyword:""}),ut=""+k+"get "+T+this.getter().c({keyword:""});f=""+G+`
`+ut,this.wrapper()&&(f+=`
`+k+"get "+this._handler.c())}return f}if(!N.tsc()){if(this.isStatic()&&n instanceof se)this._vscope&&(t=N.up(le))&&this._vscope.mergeScopeInto(t._scope),f=K("=",K(".",Hs,this.name()),this.value()||oo).c()+`;
`;else{if(!this.isStatic()&&n instanceof se)return"";if(!this.isStatic()&&n instanceof jt){this._vscope&&(s=N.up(le))&&this._vscope.mergeScopeInto(s._scope);let k=this.name();this.name()instanceof Ht&&(k=this.name().toStr());let T=n.option("ctor"),B=n.option("opts"),G=this.value()||oo,ut=this.option("paramIndex"),_t=this.option("restIndex"),xt;if(n instanceof Et){let te=T._params.at(_t,!0,"$$",mt("{}"));xt=K(".",te,this.name()),xt.cache({reuse:!0,name:"v"});let ae=K("=",K(".",Hs,this.name()),xt);f=K("&&",K("!==",xt,oo),ae)}else if(ut!=null){let te=this.option("paramName");xt=T._params.at(ut,!0,te),this.value()?G=ke.ternary(K("!==",xt,oo),xt,G):G=xt}else if(_t!=null){let te=T._params.at(_t,!0,"$$",mt("null"));xt=K(".",te,this.name()),this.value()?(xt.cache({reuse:!0,name:"v"}),G=ke.ternary(K("&&",te,K("!==",xt,oo)),xt,G)):G=ke.ternary(te,xt,oo)}if(this instanceof Xt&&!this.value())return;this.wrapper()&&(f=lt(K(".",K(".",Hs,this._fname),vt("$init")),[G,Hs,this._vslot,mt(this._name.c({as:"value"}))])),f||(f=K("=",K(".",Hs,this.name()),G)),f=f.c()+`;
`,this.watchBody()&&(this._descriptor||(this._descriptor=N.root().declare(""+this.oid()+"$Prop",this.util().watcher(this.storageSymbol(),this.watcherSymbol()),{type:"const",system:!0})),f="Object.defineProperty(this,"+k.c()+","+this._descriptor.c()+`);
`+f)}}return f}},J.prototype.getter=function(){return this._getter||(this._getter=this.wrapper()?mt("(){ return this.__"+this.name().c()+".$get(this,"+this.name().toStr().c()+","+this.osym()+") }"):this.parseTemplate("(){ return $get$; }"))},J.prototype.setterForValue=function(t){return K("=",K(".",Hs,this.storageKey()),t)},J.prototype.parseTemplate=function(t){var s=this;return t=t.replace(/\$(\w+)\$/g,function(n,f){return f=="get"?yt(Hs,s.storageSymbol()).c():f=="name"?s.name().c():f=="set"?K("=",yt(Hs,s.storageSymbol()),mt("value")).c():f=="watcher"?yt(Hs,s.watcherSymbol()).c():""}),mt(t)},J.prototype.setter=function(){return this._setter||(this._setter=this.parseTemplate("(value){ $set$; }"))},J.prototype.decorater=function(){return this._decorater||(this._decorater=this.util().decorate(new ns(this._decorators),this.target(),this.name(),mt("null")))};function qt(){return J.apply(this,arguments)}i(qt,J),e.ClassProperty=qt;function Xt(){return J.apply(this,arguments)}i(Xt,J),e.ClassAttribute=Xt,Xt.prototype.hasConstructorInits=function(){return!this.isStatic()&&this.value()},Xt.prototype.getter=function(){var t;return this._getter||(this._getter=(t=lt(yt(Hs,"getAttribute"),[this.name().toAttrString()]),Tt([],[t])))},Xt.prototype.setter=function(){var t;return this._setter||(this._setter=(t=lt(yt(Hs,"setAttribute"),[this.name().toAttrString(),mt("value")]),Tt([mt("value")],[t]).set({noreturn:!0})))};function ne(){return Q.apply(this,arguments)}i(ne,Q),e.ClassBody=ne,ne.prototype.setup=function(){return ne.prototype.__super__.setup.apply(this,arguments),this._fields=[],this._staticFields=[]},ne.prototype.visit=function(t){this._scope&&this._scope.visit(),t&&t._tag&&(this._tag=t._tag);for(let s=0,n=h(this._nodes),f=n.length,k;s<f;s++){if(k=n[s],k instanceof ce){k.tagName()!="self"&&(k._options.type||k).error("only <self> tag allowed here");let T=new He([],[k],new Ht("render"),null,{});this._nodes[s]=k=T}k&&k.traverse()}return this};function Wt(){return Q.apply(this,arguments)}i(Wt,Q),e.ExpressionList=Wt;function Yt(){return Q.apply(this,arguments)}i(Yt,Q),e.VarDeclList=Yt,Yt.prototype.type=function(){return this.option("type")||"var"},Yt.prototype.add=function(t){this._nodes.length&&this.push(cs);let s=new hs(t[0],t[1],this.type()).set({decl:this,datatype:t[0].option("datatype")});return this._firstDeclaration||(this._firstDeclaration=s,s.set({keyword:this.keyword()})),this.push(s),this},Yt.prototype.consume=function(t){return this._nodes.length==1?this._nodes[0].consume(t):this};function Ft(t,s,n){this.setup(),this._open=s,this._close=n,this._value=this.load(t)}i(Ft,Y),e.Parens=Ft,Ft.prototype.unwrappedNode=function(){return this._value.unwrappedNode()},Ft.prototype.loc=function(){try{let t=this._open.loc(),s=this._close.loc();return[t[0],s[1]]}catch{return[0,0]}},Ft.prototype.load=function(t){return this._noparen=!1,t instanceof Q&&t.count()==1?t.first():t},Ft.prototype.isString=function(){return this._open&&String(this._open)=='("'||this.value().isString()},Ft.prototype.js=function(t){var s=this.up(),n=this._value,f=null;return n instanceof le&&(this._noparen=!0),s instanceof Q?(t.isExpression()||(this._noparen=!0),f=n instanceof Array?W.cary(n):n.c({expression:t.isExpression()})):f=n instanceof Array?W.cary(n):n.c({expression:!0}),this.datatype()&&N.tsc()&&(f=this.datatype().c()+"("+f+")"),f},Ft.prototype.set=function(t){return Ft.prototype.__super__.set.call(this,t)},Ft.prototype.shouldParenthesize=function(){return!this._noparen},Ft.prototype.prebreak=function(t){return Ft.prototype.__super__.prebreak.call(this,t),console.log("PREBREAK"),this._value&&this._value.prebreak(t),this},Ft.prototype.isExpressable=function(){return this._value.isExpressable()},Ft.prototype.consume=function(t){return this._value.consume(t)};function Ut(){return Ft.apply(this,arguments)}i(Ut,Ft),e.PureExpression=Ut;function ee(){return P.apply(this,arguments)}i(ee,P),e.ExpressionBlock=ee,ee.prototype.c=function(t){return this.map(function(s){return s.c(t)}).join(",")},ee.prototype.consume=function(t){return this.value().consume(t)};function
`);return s?`/**
`+s+`
*/
`:""},tr.prototype.visit=function(){var t=this.filter(function(s){return s instanceof Oi});return t.length>1?t[1].warn("a method can only have one &block parameter"):t[0]&&t[0]!=this.last()&&t[0].warn("&block must be the last parameter of a method"),tr.prototype.__super__.visit.apply(this,arguments)},tr.prototype.js=function(t){if(this.count()==0)return Ma;if(t.parent()instanceof Q)return this.head(t);if(t.parent()instanceof Dt){let f=!(t.parent()instanceof He);var s=this.nodes(),n={as:"declaration",typed:f};return W.compact(this.nodes().map(function(k){let T=k.c(n),B=f&&k.datatype();return B&&(T=B.c()+T),T})).join(",")}else throw"not implemented paramlist js"},tr.prototype.head=function(t){var s=[],n=[],f=null,k=null,T=null,B=[],G=[],ut=0;if(this.nodes().forEach(function(Pe,ci){if(!(Pe instanceof Cr))return Pe.setIndex(ut),Pe instanceof Ir?(G.push("opt"),n.push(Pe)):Pe instanceof Oi?(G.push("blk"),f=Pe):(G.push("reg"),s.push(Pe)),ut++}),T)var _t=T.variable();var xt=[],te=function(Pe){return"typeof "+Pe+" == 'function'"},ae=function(Pe){return""+Pe+".constructor === Object"},xe=function(Pe){return""+Pe+".constructor !== Object"};if(!T&&!k&&!f&&n.length>0&&G.join(" ").match(/opt$/))for(let Pe=0,ci=n.length,gs;Pe<ci;Pe++)gs=n[Pe],xt.push("if("+gs.name().c()+" === undefined) "+gs.name().c()+" = "+gs.defaults().c());else if(T&&!k&&!f&&n.length==0)xt.push("if(!"+_t.c()+"||"+xe(_t.c())+") "+_t.c()+" = {}");else if(f&&n.length==1&&!k&&!T){var Ge=n[0],Ve=Ge.name().c(),ye=f.name().c();xt.push("if("+ye+"==undefined && "+te(Ve)+") "+ye+" = "+Ve+","+Ve+" = "+Ge.defaults().c()),xt.push("if("+Ve+"==undefined) "+Ve+" = "+Ge.defaults().c())}else if(f&&T&&n.length==0&&!k)ye=f.name().c(),xt.push("if("+ye+"==undefined && "+te(_t.c())+") "+ye+" = "+_t.c()+","+_t.c()+" = {}"),xt.push("else if(!"+_t.c()+"||"+xe(_t.c())+") "+_t.c()+" = {}");else if(n.length>0||k){var Ce=this.scope__().temporary(this,{pool:"arguments"}).predeclared().c(),Ne=this.scope__().temporary(this,{pool:"counter"}).predeclared().c(),de=""+Ce+"["+Ne+"-1]",Fe=""+Ce+"[--"+Ne+"]";xt.push("var "+Ce+" = arguments, "+Ne+" = "+Ce+".length"),f&&(ye=f.name().c(),k?xt.push("var "+ye+" = "+te(de)+" ? "+Fe+" : null"):s.length>0?xt.push("var "+ye+" = "+Ne+" > "+s.length+" && "+te(de)+" ? "+Fe+" : null"):xt.push("var "+ye+" = "+te(de)+" ? "+Fe+" : null")),T&&xt.push("var "+_t.c()+" = "+de+"&&"+ae(de)+" ? "+Fe+" : {}");for(let Pe=0,ci=n.length,gs;Pe<ci;Pe++)gs=n[Pe],xt.push("if("+Ne+" < "+(gs.index()+1)+") "+gs.name().c()+" = "+gs.defaults().c());if(k){var $s=k.name().c(),Ke=k.index();Ke==0?(xt.push("var "+$s+" = new Array("+Ne+">"+Ke+" ? "+Ne+" : 0)"),xt.push("while("+Ne+">"+Ke+") "+$s+"["+Ne+"-1] = "+Fe)):(xt.push("var "+$s+" = new Array("+Ne+">"+Ke+" ? "+Ne+"-"+Ke+" : 0)"),xt.push("while("+Ne+">"+Ke+") "+$s+"[--"+Ne+" - "+Ke+"] = "+Ce+"["+Ne+"]"))}}else if(n.length>0)for(let Pe=0,ci=n.length,gs;Pe<ci;Pe++)gs=n[Pe],xt.push("if("+gs.name().c()+" === undefined) "+gs.name().c()+" = "+gs.defaults().c());if(T)for(let Pe=0,ci=h(T.nodes()),gs=ci.length,Or;Pe<gs;Pe++)Or=ci[Pe],Ge=K(".",_t,Or.c()).c(),xt.push("var "+Or.c()+" = "+Ge+" !== undefined ? "+Ge+" : "+Or.defaults().c());if(B.length)for(let Pe=0,ci=B.length;Pe<ci;Pe++)B[Pe].head(t,xt,this);return xt.length>0?xt.join(`;
`)+";":Ma};function Nr(){return P.apply(this,arguments)}i(Nr,P),e.ScopeVariables=Nr,Nr.prototype.kind=function(t){return this._kind},Nr.prototype.setKind=function(t){return this._kind=t,this},Nr.prototype.split=function(t){return this._split},Nr.prototype.setSplit=function(t){return this._split=t,this},Nr.prototype.add=function(t,s,n){n===void 0&&(n=-1);var f=new Le(t,s);return t instanceof Qt&&f.setVariable(t),n==0?this.unshift(f):this.push(f),f},Nr.prototype.load=function(t){return t.map(function(s){return new Le(s.name(),s.defaults(),s.splat())})},Nr.prototype.isExpressable=function(){return this.nodes().every(function(t){return t.isExpressable()})},Nr.prototype.js=function(t){if(this.count()==0)return Ma;if(this.count()==1&&!this.isExpressable())return this.first().variable().autodeclare(),this.first().assignment().c();var s="var",n={};if(this.nodes().forEach(function(k){let T=k._variable||k,B=T instanceof Qt&&T.type();if(B)return n[B]||(n[B]=[]),n[B].push(k)}),n.let&&(n.var||n.const)?n.let.forEach(function(k){return(k._variable||k)._virtual=!0}):n.let&&(s="let"),this.split()){let k=[];for(let T,B=0,G=Object.keys(n),ut=G.length,_t;B<ut;B++)_t=G[B],T=n[_t],k.push(""+_t+" "+W.cary(T,{as:"declaration"}).join(", ")+";");return k.join(`
`)}var f=W.compact(W.cary(this.nodes(),{as:"declaration"})).join(", ");return f?""+s+" "+f:""};function Le(){return Te.apply(this,arguments)}i(Le,Te),e.VariableDeclarator=Le,Le.prototype.type=function(t){return this._type},Le.prototype.setType=function(t){return this._type=t,this},Le.prototype.visit=function(){var t,s;return(t=this.variable())||this.setVariable(s=this.scope__().register(this.name(),null,{type:this._type||"var"})),this.defaults()&&this.defaults().traverse(),this.variable().setDeclarator(this),this.variable().addReference(this.name()),this},Le.prototype.js=function(t){if(this.variable()._proxy)return null;var s=this.defaults();let n=this.variable().datatype();return s!=null&&s!=null?(s instanceof L&&(s=s.c({expression:!0})),n&&(s=""+n.c()+"("+s+")"),""+this.variable().c()+" = "+s):n?""+this.variable().c()+" = "+n.c()+"(undefined)":""+this.variable().c()},Le.prototype.accessor=function(){return this};function hs(t,s,n,f){f===void 0&&(f="="),this._op=f,this._left=t,this._right=s,this._kind=n}i(hs,L),e.VarDeclaration=hs,hs.prototype.kind=function(t){return this._kind},hs.prototype.setKind=function(t){return this._kind=t,this},hs.prototype.left=function(t){return this._left},hs.prototype.setLeft=function(t){return this._left=t,this},hs.prototype.right=function(t){return this._right},hs.prototype.setRight=function(t){return this._right=t,this},hs.prototype.op=function(){return this._op},hs.prototype.type=function(){return this._kind},hs.prototype.visit=function(t){var s=this;return s._left instanceof Ht&&s._right instanceof le||s._right&&s._right.traverse(),s._variables=s.scope__().captureVariableDeclarations(function(){if(s._left&&s._left.traverse({declaring:s.type()}),s._left instanceof Ht)return s._left._variable||(s._left._variable=s.scope__().register(s._left.symbol(),s._left,{type:s.type()}))}),s._right&&s._right.traverse(),s},hs.prototype.isExpressable=function(){return!1},hs.prototype.consume=function(t){if(t instanceof Gt)return this;if(t instanceof ys||t instanceof Be){let s=this;if(this.right()&&!this.right().isExpressable()){let n=this.scope__().temporary(this),f=this.right().consume(K("=",n,xo));return this.setRight(n),new Q([f,cs,this.consume(t)])}return new Q([s,cs,this._left.consume(t)])}return t instanceof Be?new Q([this,cs,this._left.consume(t)]):hs.prototype.__super__.consume.call(this,t)},hs.prototype.c=function(t){if(this.right()&&!this.right().isExpressable()){let s=this.scope__().temporary(this),n=this.right().consume(K("=",s,xo));return this.setRight(s),new Q([n,cs,this]).c(t)}return hs.prototype.__super__.c.call(this,t)},hs.prototype.js=function(){let t="",s=this.kind(),n=this.datatype()||this._left&&this._left.datatype();if(N.tsc()&&this._variables.length>1&&this._variables.some(function(f){return f.vartype()})){s="let";for(let f=0,k=h(this._variables),T=k.length,B;f<T;f++)B=k[f],B.vartype()&&(t+=B.vartype().c()+" "),t+=""+z(s,this.keyword())+" "+B.c()+`;
`;t+="("+this.left().c(),this.right()&&(t+=" = "+this.right().c({expression:!0})),t+=")"}else t+=""+z(s,this.keyword())+" "+this.left().c(),this.right()&&(t+=" = "+this.right().c({expression:!0}));return this.option("export")&&(t=z("export",this.option("export"))+(" "+t)),n&&(t=n.c()+`
`+t),t};function Bt(t,s){Bt.prototype.__super__.constructor.apply(this,arguments),this._splat=s}i(Bt,Y),e.VarName=Bt,Bt.prototype.variable=function(t){return this._variable},Bt.prototype.setVariable=function(t){return this._variable=t,this},Bt.prototype.splat=function(t){return this._splat},Bt.prototype.setSplat=function(t){return this._splat=t,this},Bt.prototype.visit=function(){var t,s;return(t=this.variable())||this.setVariable(s=this.scope__().register(this.value().c(),null)),this.variable().setDeclarator(this),this.variable().addReference(this.value()),this},Bt.prototype.js=function(t){return this.variable().c()},Bt.prototype.c=function(){return this.variable().c()};function Dt(){return L.apply(this,arguments)}i(Dt,L),e.Code=Dt,Dt.prototype.head=function(t){return this._head},Dt.prototype.setHead=function(t){return this._head=t,this},Dt.prototype.body=function(t){return this._body},Dt.prototype.setBody=function(t){return this._body=t,this},Dt.prototype.scope=function(t){return this._scope},Dt.prototype.setScope=function(t){return this._scope=t,this},Dt.prototype.params=function(t){return this._params},Dt.prototype.setParams=function(t){return this._params=t,this},Dt.prototype.isStatementLike=function(){return!0},Dt.prototype.scopetype=function(){return Jt},Dt.prototype.visit=function(){return this._scope&&this._scope.visit(),this};function Ee(t,s){this._traversed=!1,this._body=W.blk(t),this._scope=new ss(this),this._body.setHead(this._scope.head()),this._options={}}i(Ee,Dt),e.CodeBlock=Ee,Ee.prototype.visit=function(){return this._scope.visit(),this._body.traverse(),this},Ee.prototype.c=function(){return this._body.c()};function Zr(t,s){this._traversed=!1,this._body=W.blk(t),this._scope=new Oe(this,null),this._options={}}i(Zr,Dt),e.Root=Zr,Zr.prototype.loc=function(){return this._body.loc()},Zr.prototype.visit=function(){ot=N.ROOT=this._scope;try{if(this.scope().visit(),this.body().traverse(),this.body().first()instanceof O)return this.body().first()._first=!0}catch(t){let s=y.wrap(t);throw s._sourcePath=it.sourcePath,s._loc=N.currentRegion(),s}},Zr.prototype.compile=function(t,s){if(s===void 0&&(s={}),N.reset(),this._scope.setOptions(it=N._options=this._options=t||{}),N.setRoot(this._scope),this._scope._imba.configure(t),this.traverse(),N.setRoot(this._scope),t.bundle)if(t.cwd&&N.isNode()){let T=d.resolve(t.cwd,t.sourcePath),B=d.relative(t.cwd,T).split(d.sep).join("/"),G=this._scope.importProxy("path").proxy();this._scope.lookup("__filename").c=function(){return mt(""+G.resolve+"("+vt(B).c()+")").c()},this._scope.lookup("__dirname").c=function(){return mt(""+G.dirname+"("+G.resolve+"("+vt(B).c()+"))").c()}}else this._scope.lookup("__filename")._c=vt(t.sourcePath).c(),this._scope.lookup("__dirname")._c=vt(d.dirname(t.sourcePath)).c();t.onTraversed instanceof Function&&t.onTraversed(this,N);let n=N.css(),f=n.toString();n.transitions&&this.runtime().transitions,f&&(!t.styles||t.styles=="inline")&&this.runtime().styles;var k=this.c(t);if(N.tsc()&&(k=`export {};String();
`+k+`
`,s.sourceCode&&s.sourceCode.match(/(^|[\r\n])\# @nocheck[\n\r]/)&&(k=`// @ts-nocheck
`+k)),s.rawResult={js:k,css:f},s.js=k,s.css=f||"",s.sourceId=this.sourceId(),s.assets=this.scope().assets(),s.universal=N.meta().universal!==!1,!N.tsc()&&s.css&&(!t.styles||t.styles=="inline")){let T=JSON.stringify(s.css);s.js=""+s.js+`
`+this.runtime().styles+".register('"+s.sourceId+"',"+T+");",t.debug,s.js+=`
/*
`+s.css+`
*/
`}if(t.sourcemap||N.tsc()){let T=new x(s,t).generate();s.sourcemap=T.result(),t.sourcemap=="inline"&&(s.js+=T.inlined())}return t.raw||(s.css&&(s.css=V.strip(s.css)),s.js=V.strip(s.js),N.tsc()&&(s.js=s.js.replace(/\*\/\s[\r\n]+(\t*)\/\*\*/gm,function(T){return T.replace(/[^\n\t]/g," ")}))),s},Zr.prototype.js=function(t){var s=this.scope().c(),n=[];return s=s.replace(/^[ \t]*\/\/(\!.+)$/mg,function(f,k){return k=k.replace(/\bimba\b/g,"node"),n.push("#"+k+`
`),""}),s=n.join("")+s,s},Zr.prototype.analyze=function(t){return t===void 0&&(t={}),N.setLoglevel(t.loglevel||0),N._analyzing=!0,ot=N.ROOT=this._scope,it=N._options={platform:t.platform,loglevel:t.loglevel||0,analysis:{entities:t.entities||!1,scopes:t.scopes==null?t.scopes=!0:t.scopes}},this.traverse(),N._analyzing=!1,this.scope().dump()},Zr.prototype.inspect=function(){return!0};function pe(t,s,n){this._traversed=!1,t instanceof ve&&(t=t._value),this._name=t,this._superclass=s,this._scope=this.isTag()?new Qi(this):new Wr(this),this._body=W.blk(n)||new ne([]),this._entities={}}i(pe,Dt),e.ClassDeclaration=pe,pe.prototype.name=function(t){return this._name},pe.prototype.setName=function(t){return this._name=t,this},pe.prototype.superclass=function(t){return this._superclass},pe.prototype.setSuperclass=function(t){return this._superclass=t,this},pe.prototype.initor=function(t){return this._initor},pe.prototype.setInitor=function(t){return this._initor=t,this},pe.prototype.consume=function(t){return t instanceof Be?(this.option("return",t),this):pe.prototype.__super__.consume.apply(this,arguments)},pe.prototype.namepath=function(){return this._namepath||(this._namepath=""+(this.name()?this.name().c():"--"))},pe.prototype.metadata=function(){var t;return{type:"class",namepath:this.namepath(),inherits:(t=this.superclass())&&t.namepath&&t.namepath(),path:this.name()&&this.name().c().toString(),desc:this._desc,loc:this.loc(),symbols:this._scope.entities()}},pe.prototype.loc=function(){var t;return(t=this.option("keyword"))?[t._loc,this.body().loc()[1]]:pe.prototype.__super__.loc.apply(this,arguments)},pe.prototype.startLoc=function(){return this._startLoc==null?this._startLoc=St(this.option("export"),this.option("keyword")):this._startLoc},pe.prototype.endLoc=function(){return this._endLoc==null?this._endLoc=Se(this.body()):this._endLoc},pe.prototype.toJSON=function(){return this.metadata()},pe.prototype.isStruct=function(){return this.keyword()&&String(this.keyword())=="struct"},pe.prototype.isExtension=function(){return this.option("extension")},pe.prototype.isGlobal=function(){return this.option("global")},pe.prototype.isNamespaced=function(){return this._name instanceof _e},pe.prototype.exportForDts=function(){return N.tsc()?this.isNamespaced()&&(!this._name.left()._variable||this._name.left()._variable.isImported())?!0:this.isNamespaced()&&this._name.left()._variable&&!this._name.left()._variable.isImported()?!1:!!(this.isGlobal()&&!this.option("export")||this.isExtension()&&(!this._name._variable||this._name._variable.isImported())):!1},pe.prototype.isTag=function(){return!1},pe.prototype.staticInit=function(){return this._staticInit||(this._staticInit=this.addMethod(this.initKey(),[],"this").set({static:!0}))},pe.prototype.initKey=function(){return this._initKey||(this._initKey=N.tsc()?N.root().symbolRef("#__init__"):new Gs("#__init__"))},pe.prototype.patchKey=function(){return this._patchKey||(this._patchKey=N.tsc()?N.root().symbolRef("#__patch__"):new Gs("#__patch__"))},pe.prototype.initPath=function(){return this._initPath||(this._initPath=K(".",mt("super"),this.initKey()))},pe.prototype.virtualSuper=function(){return this._virtualSuper||(this._virtualSuper=this._scope.parent().declare("tmp",null,{system:!0,type:"let"}))},pe.prototype.classReference=function(){return this._name},pe.prototype.instanceInit=function(){if(this._instanceInit)return this._instanceInit;let t=Ls.callOp(this.initKey());this._superclass&&(t=K("&&",mt("deep"),K("&&",K(".",mt("super"),this.initKey()),t)));let s=this.addMethod(this.initKey(),[],this.isTag()||this._superclass?[t,cs]:"",{},function(n){return!0});return s.set({noreturn:!0}),s.params().at(0,!0,"$$",mt("null")),s.params().at(1,!0,"deep",mt("true")),this._instanceInit=s},pe.prototype.instancePatch=function(){if(this._instancePatch)return this._instancePatch;let t=[],s=this.addMethod(this.patchKey(),[],t,{},function(f){return!0}),n=s._params.at(0,!0,"$$",mt("{}"));if(this._superclass){let f=Ls.callOp(this.patchKey(),[n]);f=K("&&",K(".",mt("super"),this.patchKey()),f),s.inject(f)}return
`)}let _t=this.body().c(),xt=z("class",this.keyword());if(this.name())xt+=" "+z(f,this.name());else if(s instanceof Ye)try{xt+=" "+s._value._symbol}catch{}B&&(ut=z(B),xt+=" extends "+ut),this.name()instanceof _e&&!this.exportForDts()&&!this.isExtension()&&(xt=""+this.name().c()+" = "+xt),(this.option("export")||N.tsc()&&this.exportForDts())&&(this.option("default")?xt=""+z("export",this.option("export"))+" "+z("default",this.option("default"))+" "+xt:xt=""+z("export",this.option("export"))+" "+xt);let te=""+xt+" {"+_t+"}";if(this.isExtension()&&!N.tsc()){let ae=this instanceof An?mt(this._className.c()):mt(""+this._className.c()+".prototype");if(this._virtualSuper){let xe=K("=",this._virtualSuper,this.util().virtualSuper(ae));ae=mt("("+xe.c()+","+ae.c()+")")}te+=`;
`+this.util().extend(ae,mt(""+G+".prototype")).c()+`;
`}if(this.option("global")&&!N.tsc()){let ae=this.name()instanceof _e,xe=this.name()instanceof _e?this.name().c():this._cname;N.tsc()?te=""+te+";"+(ae?"":" export {"+this._cname+"};")+" "+this.scope__().root().globalRef()+"."+this._cname+" = "+xe:te=""+te+"; "+this.scope__().root().globalRef()+"."+this._cname+" = "+xe}return N.tsc()&&this._exportName&&(te=""+te+"; export {"+this._ownName+" as "+this._exportName+"}"),te};function An(){return pe.apply(this,arguments)}i(An,pe),e.ExtendDeclaration=An;function De(){return pe.apply(this,arguments)}i(De,pe),e.TagDeclaration=De,De.prototype.isTag=function(){return!0},De.prototype.isInitingFields=function(){return!0},De.prototype.namepath=function(){return"<"+this.name()+">"},De.prototype.metadata=function(){return Object.assign(De.prototype.__super__.metadata.apply(this,arguments),{type:"tag"})},De.prototype.cssns=function(){return this._cssns||(this._cssns=this._scope.cssns())},De.prototype.cssid=function(){return this._cssid||(this._cssid=this._scope.cssid())},De.prototype.classReference=function(){return mt(this._name.toClassName())},De.prototype.cssref=function(t){if(this.isNeverExtended()&&!this.superclass())return this._cssns;if(t){let s=t.closure();return s.memovar("_ns_",K("||",K(".",s.context(),"_ns_"),vt("")))}else return K("||",K(".",Hs,"_ns_"),vt(""))},De.prototype.isNeverExtended=function(){return this.name()&&this.name().isClass()?!this.option("export")&&!this.option("extended"):!1},De.prototype.visit=function(){N.hmr()&&(this.cssid(),this.cssns()),De.prototype.__super__.visit.apply(this,arguments);let t=this.superclass();if(this._config={},t&&!N.tsc()){if(t.isNative()||t.isNativeSVG()){let s=t.nativeCreateNode();s=this.util().extendTag(s,Hs),this.addMethod("create$",[],[s]).set({static:!0}),this.set({extends:os.wrap({extends:t.name()})}),this._config.extends=t.name()}else if(t.isClass()){t.resolveVariable(this.scope__().parent());let s=t._variable&&t._variable.value();s&&s.set({extended:this})}}if(this._elementReferences){for(let s=this._elementReferences,n,f=0,k=Object.keys(s),T=k.length,B;f<T;f++)if(B=k[f],n=s[B],N.tsc()){let G=n.option("reference"),ut=n.type(),_t=""+z(W.sym(G),G);ut&&ut.toClassName&&(_t+=" = new "+ut.toClassName()),this.body().unshift(mt(_t+";"),!0)}}if(!N.tsc()&&this.name()&&this.name().toNodeName&&!this.option("extension")){let s=this.name().toNodeName();s.indexOf("-")==-1&&(s=s+"-tag"),N.css().add(s+" { display:block; }")}this.option("export")&&this.name()&&this.name().isLowerCase&&this.name().isLowerCase()&&this.warn("Lowercased tags are globally available - not exportable",{loc:this.option("export")})},De.prototype.addElementReference=function(t,s){let n=this._elementReferences||(this._elementReferences={});return n[t]&&n[t]!=s?s.warn("Duplicate elements with same reference",{loc:t}):(n[t]=s,s.set({tagdeclbody:this._body})),s},De.prototype.js=function(t){this.scope().virtualize(),this.scope().context().setValue(this.name()),this.scope().context().setReference(this.name());let s=this.name().toClassName(),n=this.superclass(),f=!this.option("extension")&&!this.name().isClass()&&N.tsc();if(n&&n._variable?n=n._variable:n?n=lt(this.runtime().getSuperTagType,[n,vt(n.toClassName()),this.runtime().Component]):n=this.runtime().Component,N.tsc())if(n=this.superclass()?this.superclass().toClassName():mt("imba.Component"),this.option("extension")){let ut="class "+this._mixinName.c(),_t=this.body().c();return N.tsc(),ut=""+ut+" {"+_t+"}",this._name._variable||(ut="export "+ut),ut}else this.body().unshift(mt(`static $$TAG$$
`));else if(this.option("extension")){let ut=this._name._variable||lt(this.runtime().getTagType,[this.name(),vt(this.name().toClassName())]);(s=="ImbaElement"||s=="imba.Component")&&(ut=this.runtime().Component);let _t=new be(this.name()),xt="(class {"+this.body().c()+"}).prototype";return this.util().extend(""+ut.c()+".prototype",mt(xt)).c()}else this.name().isNative()&&this.name().error("tag "+this.name().symbol()+" already exists");let k=this.scope__().parent(),T=this.body().c(),B=""+z("class",this.keyword())+" "+z(s,this.name())+" extends "+z(n,this.superclass());this.option("export")&&(this.option("default")?B=""+z("export",this.option("export"))+" "+z("default",this.option("default"))+" "+B:B=""+z("export",this.option("export"))+" "+B),f&&N.tsc()&&(B="export "+B);let G=""+B+" {"+T+"}";if(this._cssns&&(this._config.cssns=this.cssns()),this._cssid&&(this._config.cssid=this.cssid()),!N.tsc()){this._staticInit&&(G+="; "+K(".",mt(s),this.initKey()).c()+"()");let ut=os.wrap(this._config).c();this.name().isClass()&&(this._config.name=this.name().symbol()),G+="; "+this.runtime().defineTag+"("+this.name().c()+","+s+","+ut+")"}return N.tsc()&&(this.option("global")||this.name().isClass()),G};function le(t,s,n,f,k){this._options=k;var T=this.scopetype();this._traversed=!1,this._body=W.blk(s),this._scope||(this._scope=k&&k.scope||new T(this)),this._scope.setParams(this._params=new tr(t)),this._name=n||"",this._target=f,this._type="function",this._variable=null}i(le,Dt),e.Func=le,le.prototype.name=function(t){return this._name},le.prototype.setName=function(t){return this._name=t,this},le.prototype.params=function(t){return this._params},le.prototype.setParams=function(t){return this._params=t,this},le.prototype.target=function(t){return this._target},le.prototype.setTarget=function(t){return this._target=t,this},le.prototype.options=function(t){return this._options},le.prototype.setOptions=function(t){return this._options=t,this},le.prototype.type=function(t){return this._type},le.prototype.setType=function(t){return this._type=t,this},le.prototype.context=function(t){return this._context},le.prototype.setContext=function(t){return this._context=t,this},le.prototype.scopetype=function(){return tn},le.prototype.inject=function(t,s){return this._body.add([t,cs],s)},le.prototype.nonlocals=function(){return this._scope._nonlocals},le.prototype.returnType=function(){return this.datatype()},le.prototype.visit=function(t,s){return t._descriptor&&!t.tsc()&&(this._scope=new jr(this),this._scope.setParams(this._params)),this.scope().visit(),this._context=this.scope().parent(),this._params.traverse({declaring:"arg"}),this._body.traverse()},le.prototype.funcKeyword=function(){let t="function";return this.option("async")&&(t="async "+t),t},le.prototype.jsdoc=function(){let t=[];this._desc&&(this._desc._skip=!0,t.push(this._desc.toString()));for(let n=0,f=h(this._params.nodes()),k=f.length,T;n<k;n++)T=f[n],T instanceof Te&&T.datatype()&&t.push(T.jsdoc());if(this.option("inExtension")&&this._target){let n=this._context.node(),f=this._context.node()._className;if(f&&N.tsc()){let k=f.c();n.option("instanceOnly")?k="typeof "+k:k="InstanceType<typeof "+k+">"}}this.option("jsdocthis")&&t.push("@this "+this.option("jsdocthis")),this.returnType()&&t.push("@returns { "+this.returnType().asRawType()+" }");let s=t.join(`
`);return s?`/**
`+s+`
*/
`:""},le.prototype.js=function(t,s){this.option("noreturn")||this.body().consume(new fs);var n=this.body()._indentation;n&&n.isGenerated()&&(this.body()._indentation=null);var f=this.scope().c({indent:!n||!n.isGenerated(),braces:!0}),k=typeof this._name=="string"?this._name:this._name.c();k=k?" "+k.replace(/\./g,"_"):"";var T=s&&s.keyword!=null?s.keyword:this.funcKeyword(),B=""+z(T,this.option("def")||this.option("keyword"))+a.toValidIdentifier(k)+"("+this.params().c()+") "+f;return this.option("eval")&&(B="("+B+")()"),B},le.prototype.shouldParenthesize=function(t){return t===void 0&&(t=this.up()),t instanceof fe&&t.callee()==this};function qs(){return le.apply(this,arguments)}i(qs,le),e.IsolatedFunc=qs,qs.prototype.leaks=function(t){return this._leaks},qs.prototype.setLeaks=function(t){return this._leaks=t,this},qs.prototype.scopetype=function(){return so},qs.prototype.isStatic=function(){return!0},qs.prototype.isPrimitive=function(){return!0},qs.prototype.visit=function(t){var s=this,n;if(qs.prototype.__super__.visit.apply(s,arguments),!t.tsc())return(n=s._scope._leaks)&&(s._leaks=[],n.forEach(function(f,k){return f._proxy=s._params.at(s._params.count(),!0),s._leaks.push(k)})),s};function fi(){return le.apply(this,arguments)}i(fi,le),e.Lambda=fi,fi.prototype.scopetype=function(){var t=this.option("keyword");return t&&t._value=="\u0192"?jr:Er};function Ln(){return le.apply(this,arguments)}i(Ln,le),e.ClosedFunc=Ln,Ln.prototype.scopetype=function(){return jr};function ln(){return le.apply(this,arguments)}i(ln,le),e.TagFragmentFunc=ln,ln.prototype.scopetype=function(){return this.option("closed")?jr:Er};function He(){return le.apply(this,arguments)}i(He,le),e.MethodDeclaration=He,He.prototype.variable=function(t){return this._variable},He.prototype.setVariable=function(t){return this._variable=t,this},He.prototype.decorators=function(t){return this._decorators},He.prototype.setDecorators=function(t){return this._decorators=t,this},He.prototype.scopetype=function(){return jr},He.prototype.consume=function(t){return t instanceof Be?(this.option("return",!0),this):He.prototype.__super__.consume.apply(this,arguments)},He.prototype.identifier=function(){return this._name},He.prototype.rawName=function(){return this._name instanceof Ht?this._name.toRaw():""},He.prototype.metadata=function(){return{type:"method",name:""+this.name(),namepath:this.namepath(),params:this._params.metadata(),desc:this._desc,scopenr:this.scope()._nr,loc:this.loc()}},He.prototype.loc=function(){var t;if(t=this.option("def")){let s=this.body().option("end")||this.body().loc()[1];return[t._loc,s]}else return[0,0]},He.prototype.isGetter=function(){return this._type=="get"},He.prototype.isSetter=function(){return this._type=="set"},He.prototype.isConstructor=function(){return String(this.name())=="constructor"},He.prototype.isMember=function(){return!this.option("static")},He.prototype.toJSON=function(){return this.metadata()},He.prototype.namepath=function(){if(this._namepath)return this._namepath;var t=String(this.name().c()),s=this.option("static")?".":"#";if(this.target()){let n=this.target();return n.namepath()=="ValueNode"&&(n=this._context.node()),this._namepath=n.namepath()+s+t}else return this._namepath="&"+t},He.prototype.visit=function(){var t,s,n;this._type=this.option("type")||(t=this.option("def"))&&t._value||"def",this._decorators=(s=this.up())&&s.collectDecorators&&s.collectDecorators();var f=this._options;if(this.scope().visit(),this.option("inObject"))return this._params.traverse(),this._body.traverse(),this;var k=this._context=this.scope().parent().closure();if(k instanceof Oe&&!this.target()&&!(this._name instanceof Bs)?this.scope()._context=k.context():k instanceof jr&&!this.target()&&!(this._name instanceof Bs)&&(this.scope()._selfless=!0),this._params.traverse(),this._name.isPredicate&&this._name.isPredicate()&&!this.isSetter()&&!this.isGetter()&&this._name.warn("Only getters/setters should end with ?"),this.target()instanceof Ht&&(n=this.scope().lookup(this.target().toString()))&&this.setTarget(n),String(this.name())=="initialize"&&
`)},Ys.prototype.toArray=function(){return this._nodes.map(function(t,s){return t instanceof m&&t._type=="NEOSTRING"?new Re('"'+t._value+'"'):t})},Ys.prototype.js=function(t,s){var n=this,f=String(n.option("open")||'"');if(f.length==3&&(f=f[0]),s&&s.as=="template"){var k=[];return n._nodes.map(function(G,ut){if(G instanceof m&&G._type=="NEOSTRING")return k.push(n.escapeString(G._value));if(G)return k.push("${",G.c({expression:!0}),"}")}),"`"+k.join("")+"`"}else{var T=n._noparen;k=[];var B=T?"":"(";n._nodes.map(function(G,ut){if(G instanceof m&&G._type=="NEOSTRING")return k.push(f+n.escapeString(G._value)+f);if(G)return ut==0&&k.push('""'),G._parens=!0,k.push(G.c({expression:!0}))}),B+=k.join(" + "),T||(B+=")")}return B};function Ar(){return qe.apply(this,arguments)}i(Ar,qe),e.Symbol=Ar,Ar.prototype.isValidIdentifier=function(){return!!this.raw().match(/^[a-zA-Z\$\_]+[\d\w\$\_]*$/)},Ar.prototype.isPrimitive=function(t){return!0},Ar.prototype.raw=function(){return this._raw||(this._raw=W.sym(this.value().toString().replace(/^\:/,"")))},Ar.prototype.js=function(t){return"'"+W.sym(this.raw())+"'"};function un(){return qe.apply(this,arguments)}i(un,qe),e.RegExp=un,un.prototype.isPrimitive=function(){return!0},un.prototype.js=function(){var t,s=un.prototype.__super__.js.apply(this,arguments);if(t=c.HEREGEX.exec(s)){var n=t[1].replace(c.HEREGEX_OMIT,"").replace(/\//g,"\\/");return"/"+(n||"(?:)")+"/"+t[2]}return s=="//"?"/(?:)/":s};function ns(){return qe.apply(this,arguments)}i(ns,qe),e.Arr=ns,ns.prototype.load=function(t){return t instanceof Array?new q(t):t},ns.prototype.push=function(t){return this.value().push(t),this},ns.prototype.count=function(){return this.value().length},ns.prototype.nodes=function(){var t=this.value();return t instanceof Array?t:t.nodes()},ns.prototype.splat=function(){return this.value().some(function(t){return t instanceof ii})},ns.prototype.visit=function(){return this._value&&this._value.traverse&&this._value.traverse(),this},ns.prototype.isPrimitive=function(t){return!this.value().some(function(s){return!s.isPrimitive(!0)})},ns.prototype.js=function(t){var s=this._value;if(!s)return"[]";var n=s instanceof Array?s:s.nodes(),f=s instanceof Array?W.cary(s):s.c();return f="["+f+"]",this.datatype()&&N.tsc()&&(f=this.datatype().c()+"("+f+")"),f},ns.prototype.hasSideEffects=function(){return this.value().some(function(t){return t.hasSideEffects()})},ns.prototype.toString=function(){return"Arr"},ns.prototype.indented=function(t,s){return this._value.indented(t,s),this},ns.wrap=function(t){return new ns(t)};function os(){return qe.apply(this,arguments)}i(os,qe),e.Obj=os,os.prototype.load=function(t){return t instanceof Array?new dt(t):t},os.prototype.visit=function(){return this._value&&this._value.traverse(),this},os.prototype.isPrimitive=function(t){return!this.value().some(function(s){return!s.isPrimitive(!0)})},os.prototype.js=function(t){return"{"+this.value().c()+"}"},os.prototype.add=function(t,s){(typeof t=="string"||t instanceof String||t instanceof m)&&(t=new Ht(t));var n=new Ds(t,s);return this.value().push(n),n},os.prototype.remove=function(t){for(let s=0,n=h(this.value()),f=n.length,k;s<f;s++)k=n[s],k.key().symbol()==t&&this.value().remove(k);return this},os.prototype.keys=function(){return Object.keys(this.hash())},os.prototype.hash=function(){var t={};for(let s=0,n=h(this.value()),f=n.length,k;s<f;s++)k=n[s],k instanceof Ds&&(t[k.key().symbol()]=k.value());return t},os.prototype.key=function(t){for(let s=0,n=h(this.value()),f=n.length,k;s<f;s++)if(k=n[s],k instanceof Ds&&k.key().symbol()==t)return k;return null},os.prototype.indented=function(t,s){return this._value.indented(t,s),this},os.prototype.hasSideEffects=function(){return this.value().some(function(t){return t.hasSideEffects()})},os.wrap=function(t){var s=[];for(let n,f=0,k=Object.keys(t),T=k.length,B;f<T;f++)B=k[f],n=t[B],n instanceof Array?n=ns.wrap(n):n.constructor==Object&&(n=os.wrap(n)),n=bt(n),(typeof B=="string"||B instanceof String)&&(B=new Ht(B)),s.push(new Ds(B,n));return new os(s)},os.prototype.toString=function(){retur
`;return this._value instanceof os&&(n="("+n+")"),T+=""+n,T}n=""+this._type+" "+n,this.option("export")&&(n=""+z("export",this.option("export"))+" "+n),!this._right&&f&&(n=f.c()+" "+n)}return n};function ts(t,s,n){return this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._invert=!1,this._opToken=t,this._op=t&&t._value||t,this._left=s,this._right=n,this}i(ts,he),e.Assign=ts,ts.prototype.isExpressable=function(){return!this.right()||this.right().isExpressable()},ts.prototype.isUsed=function(){return!(this.up()instanceof Q)},ts.prototype.visit=function(){var t=this._left,s=this._right;t instanceof ve&&s instanceof ve&&t._identifier.symbol()==s._identifier.symbol()&&(this._left=t=new _e(".",this.scope__().context(),t._value)),t instanceof Ye&&s instanceof fi&&t.traverse(),s&&s.traverse({assignment:!0}),t&&t.traverse();let n=N.up();return t instanceof Ye&&!(n instanceof Q)&&!(n instanceof Ss)&&!(n instanceof ni)&&t.forceExpression(),this},ts.prototype.c=function(t){return this.right().isExpressable()?ts.prototype.__super__.c.call(this,t):(this.left()instanceof Ye&&(!(this.right()instanceof es)||this._expression)&&this.left().forceExpression(),this.right().consume(this).c(t))},ts.prototype.js=function(t){var s,n;if(!this.right().isExpressable())return this.p("Assign#js right is not expressable "),this.left()instanceof Ye&&this.left().forceExpression(),this.right().consume(this).c();this._expression&&this.left().forceExpression();var f=this.left().node(),k=this.right(),T=null;if(f instanceof _e&&f.left()instanceof Ls,f instanceof Ks){var B=this.scope__().context();f=B.reference()}if(f instanceof Ye)return f._right=k,f.c();f instanceof _e&&f._left._value=="OPS"&&N.tsc()&&(T="globalThis."+z(a.toNamespacedIdentifier("OPS",String(f._right)),f._right)),T||(T=f.c());var G=""+T+" "+this.op()+" "+this.right().c({expression:!0});return(n=this.datatype()||f&&!(f instanceof Ye)&&f.datatype())&&(G=n.c()+" "+G),f instanceof os&&(G="("+G+")"),G},ts.prototype.shouldParenthesize=function(t){return t===void 0&&(t=this.up()),this._parens||t instanceof he&&t.op()!="="},ts.prototype.consume=function(t){if(t instanceof Gt)return this.right()instanceof Gt?(this.right().set({assign:this.left()}),this.right().consume(t)):this;if(t instanceof Be&&this.left()instanceof Ye){if(N.tsc()){let n=this._right,f=this._left._variables,k=f[0]?new Ai(f[0]).consume(t):t;return new Q([this,cs,k])}this.left().forceExpression()}if(this.isExpressable())return this.forceExpression(),ts.prototype.__super__.consume.call(this,t);var s=this.right().consume(this);return s.consume(t)};function ys(){return ts.apply(this,arguments)}i(ys,ts),e.PushAssign=ys,ys.prototype.consumed=function(t){return this._consumed},ys.prototype.setConsumed=function(t){return this._consumed=t,this},ys.prototype.register=function(t){return this._consumed||(this._consumed=[]),this._consumed.push(t),this},ys.prototype.js=function(t){return""+this.left().c()+".push("+this.right().c()+")"},ys.prototype.consume=function(t){return this};function as(){return ys.apply(this,arguments)}i(as,ys),e.TagPushAssign=as,as.prototype.js=function(t){return""+this.left().c()+".push("+this.right().c()+")"},as.prototype.consume=function(t){return this};function $n(){return ts.apply(this,arguments)}i($n,ts),e.ConditionalAssign=$n;function Lr(){return ts.apply(this,arguments)}i(Lr,ts),e.CompoundAssign=Lr,Lr.prototype.consume=function(t){if(this.isExpressable())return Lr.prototype.__super__.consume.apply(this,arguments);var s=this.normalize();return s!=this||(s=this.right().consume(this)),s.consume(t)},Lr.prototype.normalize=function(){var t=this.left().node();if(!(t instanceof ti))return this;t.left()&&t.left().cache();var s=K("=",this.left(),K(this.op()[0],this.left(),this.right()));return s.isExpressable()&&s.toExpression(),s},Lr.prototype.c=function(){var t=this.normalize();if(t==this)return Lr.prototype.__super__.c.apply(this,arguments);var s=N.current();return s instanceof Q&&s.replace(this,t),t.c()};function Hr(t){this._value=t}i(Hr,L),e.TypeAnnotation=Hr,Hr.prototype.add=function(t){return
`+this.fallback().c({indent:!0})),"switch ("+this.source().c()+") "+a.bracketize(W.cary(s).join(`
`),!0)};function Yr(t,s){this._traversed=!1,this._test=t,this._body=W.blk(s),this._scope=new Xr(this)}i(Yr,bi),e.SwitchCase=Yr,Yr.prototype.test=function(t){return this._test},Yr.prototype.setTest=function(t){return this._test=t,this},Yr.prototype.body=function(t){return this._body},Yr.prototype.setBody=function(t){return this._body=t,this},Yr.prototype.visit=function(){return this.scope__().visit(),this.body().traverse()},Yr.prototype.consume=function(t){return this.body().consume(t),this},Yr.prototype.autobreak=function(){return this.body().last()instanceof pi||this.body().push(new pi),this},Yr.prototype.js=function(t){this._test instanceof Array||(this._test=[this._test]);var s=this._test.map(function(n){return"case "+n.c()+": "});return s.join(`
`)+this.body().c({indent:!0,braces:!0})};function Li(t,s,n){this._traversed=!1,this._body=W.blk(t),this._catch=s,this._finally=n}i(Li,bi),e.Try=Li,Li.prototype.body=function(t){return this._body},Li.prototype.setBody=function(t){return this._body=t,this},Li.prototype.consume=function(t){return this._body=this._body.consume(t),this._catch&&(this._catch=this._catch.consume(t)),this._finally&&(this._finally=this._finally.consume(t)),this},Li.prototype.visit=function(){if(this._body.traverse(),this._catch&&this._catch.traverse(),this._finally)return this._finally.traverse()},Li.prototype.js=function(t){var s="try "+this.body().c({braces:!0,indent:!0});return this._catch&&(s+=" "+this._catch.c()),this._finally&&(s+=" "+this._finally.c()),this._catch||this._finally||(s+=" catch (e) { }"),s+=";",s};function Vs(t,s){this._traversed=!1,this._body=W.blk(t||[]),this._scope=new ro(this),this._varname=s}i(Vs,bi),e.Catch=Vs,Vs.prototype.body=function(t){return this._body},Vs.prototype.setBody=function(t){return this._body=t,this},Vs.prototype.consume=function(t){return this._body=this._body.consume(t),this},Vs.prototype.visit=function(){if(this._scope.visit(),this._variable=this._scope.register(this._varname,this,{type:"let",pool:"catchvar"}),o(this._body)==0){let t=this._variable.accessor(),s=t;N.tsc()&&(t=Lt(mt(""+t.c()+" instanceof Error"),t)),this._body.push(t)}return this._body.traverse()},Vs.prototype.js=function(t){return"catch ("+this._variable.c()+") "+this._body.c({braces:!0,indent:!0})};function ki(t){this._traversed=!1,this._body=W.blk(t||[])}i(ki,bi),e.Finally=ki,ki.prototype.visit=function(){return this._body.traverse()},ki.prototype.consume=function(t){return this},ki.prototype.js=function(t){return"finally "+this._body.c({braces:!0,indent:!0})};function xi(){return he.apply(this,arguments)}i(xi,he),e.Range=xi,xi.prototype.inclusive=function(){return this.op()==".."},xi.prototype.c=function(){return"range"};function ii(){return Y.apply(this,arguments)}i(ii,Y),e.Splat=ii,ii.prototype.js=function(t){return"..."+this.value().c();var s},ii.prototype.node=function(){return this.value()};function Xe(t){Xe.prototype.__super__.constructor.apply(this,arguments),this._static=!0,this._nodes=[this._single=t]}i(Xe,L),e.IdentifierExpression=Xe,Xe.prototype.single=function(t){return this._single},Xe.prototype.setSingle=function(t){return this._single=t,this},Xe.wrap=function(t){return t},Xe.prototype.add=function(t){return this._nodes.push(t),this._single=null,this},Xe.prototype.isPrimitive=function(){return this._single&&this._single instanceof m},Xe.prototype.isStatic=function(){return this.isPrimitive()},Xe.prototype.visit=function(){for(let t=0,s=h(this._nodes),n=s.length,f;t<n;t++)f=s[t],f instanceof L&&f.traverse();return this},Xe.prototype.asObjectKey=function(){return this.isPrimitive()?""+this._single.c():this._single?"["+this._single.c()+"]":"["+this.asString()+"]"},Xe.prototype.startLoc=function(){var t;return(t=this._nodes[0])&&t.startLoc&&t.startLoc()},Xe.prototype.endLoc=function(){var t;return(t=this._nodes[this._nodes.length-1])&&t.endLoc&&t.endLoc()},Xe.prototype.asIdentifier=function(){return this._single?"["+this._single.c()+"]":"["+this.asString()+"]"},Xe.prototype.asString=function(){let t="`";this.option("prefix")&&(t+=this.option("prefix"));for(let s=0,n=h(this._nodes),f=n.length,k;s<f;s++)k=n[s],k instanceof m?t+=k.value():(t+="${",t+=k.c(),t+="}");return t+="`",t},Xe.prototype.toRaw=function(){return this._single?this._single.c():""},Xe.prototype.toString=function(){return this.toRaw()},Xe.prototype.js=function(t,s){return s===void 0&&(s={}),s.as=="string"||t.parent()instanceof Zt?this.asString():s.as=="key"?this.asObjectKey():s.as=="access"?!0:this._single&&this._single instanceof L?this._single.c(s):this.asString()};function Ie(t,s){this._name=this.load(t),this._tag=s,this._chain=[],this._special=!1,this._params=null}i(Ie,L),e.TagPart=Ie,Ie.prototype.name=function(t){return this._name},Ie.prototype.setName=function(t){return this._name=t,this},Ie.prototype.value=function(t){return this._value},Ie.prototype.
`;for(let n=0,f=h(this.modifiers()),k=f.length;n<k;n++)s+=f[n].c()+`;
`;return s+="})",s}if(this._standalone){let s=this._tag,n=""+s.cvar()+"["+this.osym()+"]",f=this.modifiers(),k=f.extractDynamics(),T=!1,B=[],G=function(_t){return B.push(_t)},ut=s.hvar();G(""+s.hvar()+" = "+n+" || ("+n+"="+f.c(t)+")");for(let _t=0,xt=h(k),te=xt.length,ae;_t<te;_t++){ae=xt[_t];let xe=ae.option("key"),Ge=ae.option("index"),Ve=""+K(".",ut,xe).c()+"["+Ge+"]";xe=="options"?(T=!0,G("("+this.vvar()+"="+ae.c(t)+","+this.vvar()+"==="+Ve+" || ("+Ve+"="+this.vvar()+","+this.dvar()+"|="+zt.DIFF_MODIFIERS+"|"+zt.DIFF_INLINE+"))")):G(""+Ve+"="+ae.c(t))}return G(""+s.bvar()+" || "+s.ref()+".on$("+this.quoted()+","+ut.c()+","+this.scope__().context().c()+")"),T&&G(""+s.dvar()+"&"+zt.DIFF_INLINE+" && ("+s.dvar()+"^="+zt.DIFF_INLINE+","+ut+"["+this.gsym("#visit")+"]?.())"),"("+B.join(`,
`)+")"}return""+this.tagRef()+".on$("+this.quoted()+","+this.modifiers().c()+","+this.scope__().context().c()+")"},Is.prototype.consume=function(t){return t instanceof Gt&&(this._tag=t,this._standalone=!0),this};function Ri(){return Y.apply(this,arguments)}i(Ri,Y),e.TagHandlerCallback=Ri,Ri.prototype.visit=function(){let t=this.value();if(t instanceof Ft&&(t=t.value()),t instanceof le&&(t=t.body()),t instanceof _e||t instanceof ve){let s=t;t=lt(t,[mt("e")]),t._args._startLoc=s.endLoc(),t._args._endLoc=s.endLoc()}if(this.setValue(new(N.tsc()?le:qs)([],[t],null,{})),this.value()instanceof le){let s=this.value().params().at(0,!0,"e"),n=this.value().params().at(1,!0,"$$")}this.value().traverse()};function ni(){return P.apply(this,arguments)}i(ni,P),e.TagBody=ni,ni.prototype.add=function(t,s){return t instanceof Ys&&(t=t.toArray(),t.length==1&&(t=new Yi(t[0]))),ni.prototype.__super__.add.call(this,t,s)},ni.prototype.consume=function(t){return t instanceof Gt?(this._nodes=this._nodes.map(function(s){return s instanceof Rt?s:s.consume(t)}),this):ni.prototype.__super__.consume.apply(this,arguments)};function Gt(t){t===void 0&&(t={}),this._options=t,this._flags=0,this._tagvars={},this.setup(t)}i(Gt,L),Gt.prototype.isIndexableInLoop=function(){return!1},Gt.prototype.sourceId=function(){return this._sourceId||(this._sourceId=N.sourceId()+"-"+this.oid())},Gt.prototype.body=function(){return this._body||this._options.body},Gt.prototype.value=function(){return this._options.value},Gt.prototype.isReactive=function(){return!0},Gt.prototype.isDetached=function(){return this.option("detached")},Gt.prototype.isSVG=function(){return this._isSVG==null?this._isSVG=this._parent?this._parent.isSVG():!1:this._isSVG},Gt.prototype.parentTag=function(){let t=this._parent;for(;t&&!(t instanceof ce);)t=t._parent;return t},Gt.prototype.tagLikeParents=function(){let t=[],s=this._parent;for(;s instanceof Gt;)t.push(s),s=s.parent();return t},Gt.prototype.setup=function(){return this._traversed=!1,this._consumed=[],this},Gt.prototype.osym=function(t){return t===void 0&&(t=""),N.getSymbol(this.oid()+t,F.SYM+(this.tagvarprefix()||"")+t)},Gt.prototype.root=function(){return this._parent?this._parent.root():this},Gt.prototype.register=function(t){return t instanceof ke||t instanceof Xs?(this.flag(zt.TAG_HAS_BRANCHES),t=new $e({body:t})):t instanceof es?(this.flag(zt.TAG_HAS_LOOPS),t=new Je({body:t.body(),value:t})):t instanceof ce?t.isSlot()&&this.flag(zt.TAG_HAS_DYNAMIC_CHILDREN):t instanceof he?(t=t.opToIfTree(),t instanceof ke?(this.flag(zt.TAG_HAS_BRANCHES),t=new $e({body:t})):(this.flag(zt.TAG_HAS_DYNAMIC_CHILDREN),t=new wr({value:t}))):t instanceof zs||(t instanceof Re||this.flag(zt.TAG_HAS_DYNAMIC_CHILDREN),t=new wr({value:t})),this._consumed.push(t),t._consumedBy=this,t._parent=this,t},Gt.prototype.flag=function(t){return this._flags|=t},Gt.prototype.type=function(){return"frag"},Gt.prototype.unflag=function(t){return this._flags=this._flags&~t},Gt.prototype.hasFlag=function(t){return this._flags&t},Gt.prototype.isAbstract=function(){return!0},Gt.prototype.isOnlyChild=function(){return this.isFirstChild()&&this.isLastChild()},Gt.prototype.isFirstChild=function(){return this.hasFlag(zt.TAG_FIRST_CHILD)},Gt.prototype.isLastChild=function(){return this.hasFlag(zt.TAG_LAST_CHILD)},Gt.prototype.isIndexed=function(){return this.option("indexed")},Gt.prototype.isComponent=function(){return this._kind=="component"},Gt.prototype.isSelf=function(){return this.type()instanceof Ks||this.type()instanceof kr},Gt.prototype.isShadowRoot=function(){return this._tagName&&this._tagName=="shadow-root"},Gt.prototype.isSlot=function(){return this._kind=="slot"},Gt.prototype.isFragment=function(){return this._kind=="fragment"},Gt.prototype.isMemoized=function(){return!this.option("unmemoized")},Gt.prototype.hasLoops=function(){return this.hasFlag(zt.TAG_HAS_LOOPS)},Gt.prototype.hasBranches=function(){return this.hasFlag(zt.TAG_HAS_BRANCHES)},Gt.prototype.hasDynamicChildren=function(){return this.hasFlag(zt.TAG_HAS_DYNAMIC_CHILDREN)},Gt.prototype.hasDynamicFlags=function(){
`)};function Je(){return Gt.apply(this,arguments)}i(Je,Gt),e.TagLoopFragment=Je,Je.prototype.isKeyed=function(){return this.option("keyed")||this.hasFlag(zt.TAG_HAS_BRANCHES)},Je.prototype.isIndexableInLoop=function(){return!0},Je.prototype.consumeChildren=function(){return Je.prototype.__super__.consumeChildren.apply(this,arguments),this.hasFlag(zt.TAG_HAS_BRANCHES)?this.set({keyed:!0}):this._consumed.every(function(t){return t instanceof Gt&&t.isIndexableInLoop()})?this.set({indexed:!0}):this.set({keyed:!0})},Je.prototype.cvar=function(){return this._cvar||this.tagvar("C")},Je.prototype.js=function(t){if(this.stack().isExpression())return lt(Tt([],[this],this.stack().scope()),[]).c();if(N.tsc())return""+this.tvar()+` = new DocumentFragment;
`+this.value().c(t);this.parent()instanceof Je&&this.parent().isKeyed()&&this.set({detached:!0}),this.parent()instanceof $e&&this.set({detached:!0}),this.parent()&&!this._consumedBy&&this.set({detached:!0});let s=this.option("indexed")?this.runtime().createIndexedList:this.runtime().createKeyedList,n=this.parent().cvar(),f=this.isDetached()?mt("null"):this.fragment().tvar(),k="",T;return this.parent()instanceof Je?this.parent().isKeyed()?(this.option("key",K("+",mt("'"+this.oid()+"$'"),this.parent().kvar())),k+=""+this.hvar()+"="+this.option("key").c()+`;
`,T=this._ref=""+this.parent().cvar()+"["+this.hvar()+"]"):T=this._ref=""+this.parent().cvar()+"["+this.parent().kvar()+"]":T=""+n+"["+this.osym()+"]",k+="("+this.tvar()+" = "+T+") || ("+T+"="+this.tvar()+"="+s+"("+this._flags+","+f+`));
`,this._ref=""+this.tvar(),this.isDetached()&&(k+=""+this.tvar()+"["+this.gsym("##up")+"] = "+this.fragment().tvar()+`;
`),k+=""+this.kvar()+` = 0;
`,k+=""+this.cvar()+"="+this.tvar()+`.$;
`,k+=this.value().c(t),k+=";"+this.tvar()+this.domCall("end")+"("+this.kvar()+");",this.parent()instanceof Je&&(this.parent().isKeyed()?k+=""+this.parent().ref()+".push("+this.tvar()+","+this.parent().kvar()+"++,"+this.hvar()+");":this.parent().isIndexed()&&(k+=""+this.parent().kvar()+"++;")),k};function ir(){return Gt.apply(this,arguments)}i(ir,Gt),e.TagIndexedFragment=ir;function nr(){return Gt.apply(this,arguments)}i(nr,Gt),e.TagKeyedFragment=nr;function Ns(){return Gt.apply(this,arguments)}i(Ns,Gt),e.TagSlotProxy=Ns,Ns.prototype.ref=function(){return this.tvar()},Ns.prototype.tagvarprefix=function(){return this.oid()+"S"};function ce(){return Gt.apply(this,arguments)}i(ce,Gt),e.Tag=ce,ce.prototype.attrmap=function(t){return this._attrmap},ce.prototype.setAttrmap=function(t){return this._attrmap=t,this},ce.prototype.setup=function(){return ce.prototype.__super__.setup.apply(this,arguments),this._attributes=this._options.attributes||[],this._attrmap={},this._classNames=[],this._className=null},ce.prototype.isAbstract=function(){return this.isSlot()||this.isFragment()},ce.prototype.attrs=function(){return this._attributes},ce.prototype.cssns=function(){return this._cssns||(this._cssns=(""+this.sourceId()).replace("-","_"))},ce.prototype.cssid=function(){return this._cssid||(this._cssid=(""+this.sourceId()).replace("_","-"))},ce.prototype.cssflag=function(){return this._cssflag||(this._cssflag=""+this.sourceId())},ce.prototype.tagvarprefix=function(){return this.isSelf()?"SELF":"T"},ce.prototype.isStatementLike=function(){return this.option("iife")},ce.prototype.isIndexableInLoop=function(){return!this.option("key")&&!this.isDynamicType()},ce.prototype.traverse=function(){if(this._traversed)return this;this._tid=N.generateId("tag"),this._tagDeclaration=N.up(De);let t=this._options.close,s=this._options.body||[],n=this;return t&&t._value=="/>"&&o(s)&&(n=[this].concat(s._nodes),this._options.body=new q([])),ce.prototype.__super__.traverse.apply(this,arguments),n},ce.prototype.visitBeforeBody=function(t){var s=this;s.oid();let n=s._options.type;n&&n.traverse(),N.hmr()&&s.cssid(),s.isSelf()||s.tagName().indexOf("-")>=0||s.isDynamicType()||n&&n.isComponent()?(s._options.custom=!0,s._kind="component"):s._kind="element",s.attrs().length==0&&!s._options.type&&(s._options.type="fragment");let f=s.tagName();if(f=="slot"?s._kind="slot":f=="fragment"&&(s._kind="fragment"),f=="shadow-root"&&(s._kind="shadow-root"),s.isSelf()){let T=t.up(De);T&&T.set({self:s,sourceId:s.sourceId()})}s._tagName=f,s._dynamics=[];let k=0;for(;k<s._attributes.length;){let T=s._attributes[k++];if(T instanceof Qe&&T.name()instanceof zs&&T.name().placeholders().length)for(let B=0,G=h(T.name().placeholders()),ut=G.length,_t;B<ut;B++){_t=G[B];let xt=new qi(_t.name());xt._tag=s,xt.setValue(_t.runtimeValue()),xt.set({propname:_t._propname,unit:_t.option("unit"),styleterm:_t}),s._attributes.splice(k++,0,xt),xt.traverse()}}if(s._attributes=s._attributes.filter(function(T){if(T instanceof Qe&&T.isStatic())return s._classNames.push(T),!1;if(!N.tsc()){if(T==s._attrmap.$key)return T.warn("$key= is deprecated, use key=",{loc:T._name}),s.set({key:T.value()}),!1;if(T==s._attrmap.key)return s.set({key:T.value()}),!1}return T.isStatic()||s._dynamics.push(T),!0}),s._parent&&(s._attrmap.route||s.isDynamicType())&&s._parent.set({shouldEnd:!0,ownCache:!0}),s.isSlot()){let T=s._attrmap.name?s._attrmap.name.value():"__";T instanceof Re&&(T=T.raw()),s.set({name:T}),s._attributes=[]}return s._scope=new Bn(s),s._scope.visit(),ce.prototype.__super__.visitBeforeBody.apply(s,arguments)},ce.prototype.register=function(t){if(t=ce.prototype.__super__.register.call(this,t),t instanceof Gt&&this.isComponent()&&!this.isSelf()){let s=t instanceof ce?t._attrmap.slot:null,n="__";s&&s.value()instanceof Re&&(n=s.value().raw());let f=this.getSlot(n);t._fragment=f}return t},ce.prototype.visitAfterBody=function(t){return this},ce.prototype.visitAfterConsumed=function(){if(this.isSVG()&&(this._kind="svg"),this._options.reference){let t=this.stack().up(He),s=this.stack().up(De),n;if(this._options.key
`)+")";{this.option("return")&&G("return "+this.tvar());let ue=T.join(`;
`);return this.hasBlockScopedVariables()&&(ue="{"+ue+"}"),ue}}var Pe=de||this.hasDynamicFlags()||this.attrs().length||this.option("markWhenBuilt")||this.isDetached()||this.isDynamicType()||!!this.option("key"),ci=ut&&ut.option("condition");this.isDynamicType()&&($s=!0,this.isMemoized()?ae=""+this.owncvar()+".value":ae=this.type().c()),this._cssid&&this._classNames.unshift(this.cssid());for(let Kt=0,ue=h(N.closures()),ge=ue.length,re;Kt<ge;Kt++)re=ue[Kt],re._cssns&&(!this.isSelf()||re!=te)&&this._classNames.push(re._cssns);for(let Kt=0,ue=h(this.tagLikeParents()),ge=ue.length,re;Kt<ge;Kt++)re=ue[Kt],re._cssns&&this._classNames.push(re._cssns);if(xt&&!this.isSelf()&&(s=xt.cssref(this.option("reference")?null:this.scope__()))){let Kt=xt._cssns;this._classNames.indexOf(Kt)>=0&&this._classNames.splice(this._classNames.indexOf(Kt),1),this._classNames.push(s)}if(this.option("reference")&&te){let Kt=String(this.option("reference")).slice(1);this._classNames.push("$"+Kt)}if(this.option("key")&&this.set({detached:!0}),this._classNames.length){let Kt=[],ue=!1;for(let re=0,je=h(this._classNames),ze=je.length,me;re<ze;re++)me=je[re],me instanceof Qe?me.name()instanceof sr?Kt.push(me.name().toRaw()):Kt.push(me.rawClassName()):me instanceof L?(ue=!0,Kt.push("${"+me.c()+"}")):Kt.push(me);Kt=Kt.filter(function(re,je){return Kt.indexOf(re)==je});let ge=ue?"`":"'";this._className=ge+Kt.join(" ")+ge}var gs=[ae,_t&&!this.option("detached")?_t.tvar():"null",this._className||"null","null"],Or=this.body()?this.body().values():[];Or.length==1&&Or[0]instanceof wr&&Or[0].isStatic()&&!this.isSelf()&&!this.isSlot()&&(gs[3]=Or[0].value().c(),Or=[]),this._dynamics.length==0&&!this.hasDynamicFlags()&&!Fe&&!this.isDynamicType()&&Or.every(function(Kt){return Kt instanceof Re||Kt instanceof ce&&!Kt.isDynamicType()&&!Kt.option("key")})&&!de&&!this.hasNonTagChildren()&&!this.isSlot()&&!this.option("dynamic")&&!this.option("reference")&&(Ce=!1,ut instanceof ce&&!(this.up()instanceof he)&&(ye=!0)),(this.isFragment()||this.isSlot())&&(gs=[this._flags].concat(gs.slice(1,2))),this.isSlot()&&(gs[1]="null");var us=z(""+this.create_()+"("+gs.join(",")+")",this.type());if(this.option("reference")){let Kt=gs[1];gs[1]="null",us=z(""+this.create_()+"("+gs.join(",")+")",this.type()),this.set({ctor:us}),us=K(".",this.scope__().context(),this.option("reference")).c(),us="("+this.tvar()+"="+us+","+this.tvar()+"["+this.gsym("##up")+"]="+Kt+","+this.tvar()+")";let ue=this.option("tagdeclbody");if(ue&&!N.tsc()){let ge=ue._head||(ue._head=[]),re=a.toValidIdentifier(this.option("reference").c()),je=this.option("ctor"),ze="let el="+je+`;
return (Object.defineProperty(this,'`+re+"',{value:el}),el);",me="get "+re+`(){
`+ze+`
}`;ge.push(me)}}else us=""+this.tvar()+"="+us;this.option("assign")&&(us=K("=",this.option("assign"),mt(us)).c());let il=this.hasDynamicDescendants();if(this._consumedBy){if(t.inline&&!ye&&(this.option("iife",!0),t.inline=!1),this.isShadowRoot()){let Kt=""+this.cvar()+"["+this.osym()+"]";G(""+this.tvar()+"="+Kt+" || ("+Kt+"="+_t.tvar()+".attachShadow({mode:'open'}))")}else if(this.isSlot()&&!this.hasChildren()){if(G(""+this.tvar()+"="+Ke),!(ut instanceof $e)){let Kt=""+this.cvar()+"["+this.osym()+"]";G("("+Kt+" = "+_t.tvar()+this.domCall("insert")+"("+this.tvar()+","+this._flags+","+Kt+"))")}}else if(this.isSlot()&&this._consumed.length==1)this._consumed[0].set({dynamic:!0,detached:!0}),this._consumed[0]._tvar=this.tvar(),this._consumed[0]._parent=ut;else if(ut instanceof Je){this._bvar=this.tagvar("B");let Kt=this.option("key");if(this.option("key"))if(this.isDynamicType()){G(""+this.owncvar()+"="+this.renderContextFn()+"("+this.option("key").c()+")");let ue=""+this.owncvar()+".run("+this.type().c()+")";G("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+ue+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.owncvar()+".cache("+us+"))")}else{let ue=""+this.parentCache()+".get("+this.kvar()+"="+this.option("key").c()+")";G("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+ue+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.parentCache()+".set("+this.kvar()+","+us+"))")}else if(ut.isIndexed()){let ue=""+this.parentCache()+"["+ut.kvar()+"]";G("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+ue+") || ("+this.bvar()+"="+this.dvar()+"=0,"+ue+"="+us+")")}else if(ut.isKeyed())if(this.isDynamicType()){let ue="("+this.owncvar()+"="+this.dynamicContextFn()+"("+this.type().osym()+","+ut.kvar()+")).run("+this.type().c()+")";G("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+ue+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.owncvar()+".cache("+us+"))")}else{let ue="("+this.kvar()+"="+this.renderContextFn()+"("+this.osym()+")).get("+ut.kvar()+")";G("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+ue+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.kvar()+".set("+ut.kvar()+","+us+"))")}this._ref=""+this.tvar(),G(""+this.bvar()+"||("+this.tvar()+"["+this.gsym("##up")+"]="+_t.tvar()+")"),(this._dynamics.length||this._consumed.length&&Or.length)&&($s=!0)}else if(!Ve)G("("+us+")");else if(ye)this._ref=this.tvar(),this._bvar=ut.bvar(),G(""+ut.bvar()+" || ("+us+")");else{let Kt=this.option("key"),ue=this._cref||(this._cref=""+this.cvar()+"["+this.osym()+"]");if(Pe&&(this._bvar=this.tagvar("B")),this.isDynamicType()){G(Kt?""+this.owncvar()+"="+this.dynamicContextFn()+"("+Kt.osym()+","+Kt.c()+")":""+this.owncvar()+"="+this.renderContextFn()+"("+this.type().osym()+")");let ge=""+this.owncvar()+".run("+this.type().c()+")";G("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+ge+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.owncvar()+".cache("+us+"))")}else if(Kt){G(""+this.owncvar()+"="+this.renderContextFn()+"("+Kt.osym()+")");let ge=""+this.owncvar()+".run("+Kt.c()+")";G("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+ge+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.owncvar()+".cache("+us+"))")}else{let ge=""+this.parentCache()+"["+this.osym()+"]";G(Pe?"("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+ge+") || ("+this.bvar()+"="+this.dvar()+"=0,"+ge+"="+us+")":"("+this.tvar()+"="+ge+") || ("+ge+"="+us+")")}this.isDetached()&&G(""+this.bvar()+"||("+this.tvar()+"["+this.gsym("##up")+"]="+_t.tvar()+")"),this._ref=this.tvar(),Fe&&($s=!0),ut instanceof $e&&($s=!0)}$s&&(this._cvar=this.tvar())}else if(this._ref=""+this.tvar(),this.isSelf())G(""+this.tvar()+"=this"),G(""+this.tvar()+this.domCall("open")+"()"),G("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"["+this.osym()+"] === 1) || ("+this.bvar()+"="+this.dvar()+"=0,"+this.tvar()+"["+this.osym()+"]=1)"),this._cvar=this.tvar();else if(Ve){let Kt=""+this.parentCache()+"["+this.osym()+"]";this.isDynamicType()&&this.isMemoized()?(this.option("key")?G(""+this.owncvar()+"="+this.dynamicContextFn()+"("+this.osym()+","+this.option("key").c()+")"):G(""+this.owncvar()+
`:(Kt+=ze.endif?"))":ze,ge==ue||T[ge+1].endif||(Kt+=`,
`));if(Kt+=")",this.isSlot()&&this.hasChildren()){let ge="";if(!(ut instanceof $e)){let re=""+this.cvar()+"["+this.osym()+"]",je=""+this.cvar()+"["+this.osym("_")+"]",ze=""+this.cvar()+"["+this.osym("__")+"]",me=""+this.tvar()+"==="+ze+" || ("+je+" = "+_t.tvar()+this.domCall("insert")+"("+ze+"="+this.tvar()+","+this._flags+","+je+"))"}Kt="("+this.tvar()+"="+Ke+"),(!"+this.tvar()+" || !"+this.tvar()+".hasChildNodes() && "+Kt+"),("+ge+")"}return Kt}t.inline=xe;let li="";for(let Kt=0,ue=h(T),ge=ue.length,re;Kt<ge;Kt++)re=ue[Kt],re.if?li+="if("+re.if+`){
`:re.endif?li+=`};
`:li+=re+`;
`;if(this.isSlot()&&this.hasChildren()){let Kt="";if(!(ut instanceof $e)){let ue=""+this.cvar()+"["+this.osym()+"]",ge=""+this.cvar()+"["+this.osym("_")+"]",re=""+this.cvar()+"["+this.osym("__")+"]";Kt=""+this.tvar()+"==="+re+" || ("+ge+" = "+_t.tvar()+this.domCall("insert")+"("+re+"="+this.tvar()+","+this._flags+","+ge+"))"}li=""+this.tvar()+"="+Ke+`;
if(!`+this.tvar()+" || !"+this.tvar()+`.hasChildNodes()){
`+li+`
}
`+Kt}return this.option("iife")?(li="(()=>{"+li+";})()",this.option("return")&&(li="return "+li)):this.hasBlockScopedVariables()&&(li="{"+li+"}"),li};function Ms(){return Y.apply(this,arguments)}i(Ms,Y),e.TagWrapper=Ms,Ms.prototype.visit=function(){return this.value()instanceof Array?this.value().map(function(t){return t.traverse()}):this.value().traverse(),this},Ms.prototype.c=function(){return""+this.scope__().imba().c()+".getTagForDom("+this.value().c({expression:!0})+")"};function ws(t,s){this._nodes=t||[],this._options=s}i(ws,P),e.Selector=ws,ws.prototype.add=function(t,s){return this.push(t),this},ws.prototype.isExpressable=function(){return!0},ws.prototype.visit=function(){let t=[];for(let s=0,n=h(this._nodes),f=n.length,k;s<f;s++)k=n[s],t.push(!(k instanceof m)&&k.traverse());return t},ws.prototype.query=function(){var t="",s=[];for(let f=0,k=h(this.nodes()),T=k.length,B;f<T;f++){B=k[f];var n=B.c();B instanceof m?s.push("'"+n.replace(/\'/g,'"')+"'"):s.push(n)}return s.join(" + ")},ws.prototype.toString=function(){return W.cary(this.nodes()).join("")},ws.prototype.js=function(t){var s=this.option("type"),n=W.c(this.query()),f=this.scope__().imba().c();return s=="%"?""+f+".q$("+n+","+t.scope().context().c({explicit:!0})+")":s=="%%"?""+f+".q$$("+n+","+t.scope().context().c({explicit:!0})+")":""+f+".q"+s+"("+n+")"};function or(){return Y.apply(this,arguments)}i(or,Y),e.SelectorPart=or;function Cs(){return Y.apply(this,arguments)}i(Cs,Y),e.Await=Cs,Cs.prototype.func=function(t){return this._func},Cs.prototype.setFunc=function(t){return this._func=t,this},Cs.prototype.js=function(t){return"await "+this.value().c()},Cs.prototype.visit=function(t){this.value().traverse();var s=t.up(le);return s&&s.set({async:!0}),this;var n,f,k;if(this.setFunc(new yn([],[])),this.func().body().setNodes(n.defers(f,this)),this.func().scope().visit(),k instanceof ts){k.left().traverse();var T;T instanceof Ye?this.func().params().at(0,!0,T.variable().name()):(k.setRight(this.func().params().at(0,!0)),this.func().body().unshift(k),this.func().scope().context())}};function yn(t,s,n,f,k){yn.prototype.__super__.constructor.call(this,t,s,n,f,k)}i(yn,le),e.AsyncFunc=yn,yn.prototype.scopetype=function(){return Er};function As(t,s){this._name=t,this._alias=s}i(As,L),e.ESMSpecifier=As,As.prototype.alias=function(t){return this._alias},As.prototype.setAlias=function(t){return this._alias=t,this},As.prototype.name=function(t){return this._name},As.prototype.setName=function(t){return this._name=t,this},As.prototype.loc=function(){return this._alias?this._alias.loc():this._name.loc()},As.prototype.visit=function(t){return this._declaration=t.up(ar),this._declaration instanceof Dr?this._importer=this._declaration:this._exporter=this._declaration,this._cname=a.clearLocationMarkers(this._name.c()),this._key=this._alias?a.clearLocationMarkers(this._alias.c()):this._cname,this._exporter?this._exporter.source()||(this._variable=this.scope__().root().lookup(this._cname)):this._variable=this.scope__().root().register(this._key,this,{type:"imported"}),this},As.prototype.js=function(){let t=a.toValidIdentifier(this._name.c()),s=this._alias&&a.toValidIdentifier(this._alias.c());return s?""+t+" as "+s:""+t};function Dn(){return As.apply(this,arguments)}i(Dn,As),e.ImportSpecifier=Dn;function Si(){return As.apply(this,arguments)}i(Si,As),e.ImportNamespaceSpecifier=Si;function Ti(){return As.apply(this,arguments)}i(Ti,As),e.ExportSpecifier=Ti;function mn(){return As.apply(this,arguments)}i(mn,As),e.ExportAllSpecifier=mn;function Pi(){return As.apply(this,arguments)}i(Pi,As),e.ImportDefaultSpecifier=Pi;function Mn(){return P.apply(this,arguments)}i(Mn,P),e.ESMSpecifierList=Mn,Mn.prototype.js=function(){return"{"+Mn.prototype.__super__.js.apply(this,arguments)+"}"};function ar(t,s,n){this.setup(),this._keyword=t,this._specifiers=s,this._source=n,this._defaults=s&&s.find(function(f){return f instanceof Pi})}i(ar,$t),e.ESMDeclaration=ar,ar.prototype.variable=function(t){return this._variable},ar.prototype.setVariable=function(t){return this._variable=t,this},ar.prototype
import `+W.cary(this._specifiers).join(",")+" from 'data:text/asset;';"}return this._specifiers&&this._source?""+z(this.keyword().c(),this.keyword())+" "+W.cary(this._specifiers).join(",")+" from "+s:""+z(this.keyword().c(),this.keyword())+" "+s},Dr.prototype.js=function(){return this.ownjs()},Dr.prototype.push=function(t){let s=this._next||this;return this._up.replace(s,[s,cs,this._next=t])},Dr.prototype.visit=function(){var t;for(let s=0,n=h(this._specifiers),f=n.length;s<f;s++)(t=n[s])&&t.traverse&&t.traverse();this.scope__()._lastImport=this,this._up=this.up()};function Di(){return ar.apply(this,arguments)}i(Di,ar),e.ImportTypeDeclaration=Di,Di.prototype.js=function(){if(!N.tsc())return"";let t=this._source.c();if(this._defaults){let s="/** @typedef {import(SOURCE).default} NAME */true";return s=s.replace("SOURCE",t).replace("NAME",this._defaults.c()),s}else{let s=[];for(let n=0,f=h(this._specifiers[0].nodes()),k=f.length,T;n<k;n++){T=f[n];let B=T._name.c(),G=T._alias?T._alias.c():T._name.c(),ut="/** @typedef {import("+t+")."+B+"} "+G+" */true";s.push(ut)}return s.join(`;
`)}};function Sr(){return ar.apply(this,arguments)}i(Sr,ar),e.ExportDeclaration=Sr,Sr.prototype.visit=function(){var t;for(let s=0,n=h(this._specifiers),f=n.length;s<f;s++)(t=n[s])&&t.traverse&&t.traverse();return this},Sr.prototype.js=function(){let t=z(this.keyword().c(),this.keyword());if(this._specifiers&&this._source)return""+t+" "+W.cary(this._specifiers).join(",")+" from "+this._source.c();if(this._specifiers)return""+t+" "+W.cary(this._specifiers).join(",");if(this._source)return""+t+" "+this._source.c()};function mo(){return Sr.apply(this,arguments)}i(mo,Sr),e.ExportAllDeclaration=mo;function jn(){return Sr.apply(this,arguments)}i(jn,Sr),e.ExportNamedDeclaration=jn;function _s(t,s){this._name=t,this._scope=s,this._options={}}e.MixinReference=_s,_s.prototype.name=function(t){return this._name},_s.prototype.setName=function(t){return this._name=t,this},_s.prototype.scope=function(t){return this._scope},_s.prototype.setScope=function(t){return this._scope=t,this},_s.prototype.options=function(t){return this._options},_s.prototype.setOptions=function(t){return this._options=t,this},_s.prototype.rule=function(t){return this._rule},_s.prototype.setRule=function(t){return this._rule=t,this};function Mi(){return L.apply(this,arguments)}i(Mi,L),e.MixinExports=Mi,Mi.prototype.add=function(t,s){return this._mixins||(this._mixins={}),this._mixins[t]=s,this},Mi.prototype.c=function(){return"export const mixins$ = "+W.compileRaw(this._mixins||{})};function Ss(){return Y.apply(this,arguments)}i(Ss,Y),e.Export=Ss,Ss.prototype.loc=function(){let t=this.option("keyword");return t&&t.region?t.region():Ss.prototype.__super__.loc.apply(this,arguments)},Ss.prototype.consume=function(t){return t instanceof Be?(this.option("return",!0),this):Ss.prototype.__super__.consume.apply(this,arguments)},Ss.prototype.visit=function(){return this.value().set({export:this.option("keyword")||this,return:this.option("return"),default:this.option("default")}),Ss.prototype.__super__.visit.apply(this,arguments)},Ss.prototype.js=function(t){var s=this;let n=s.option("default");if(s.value()instanceof P&&s.value().map(function(f){return f.set({export:s})}),s.value()instanceof He||s.value()instanceof pe)return s.value().c();if(s.value()instanceof ts&&s.value().left()instanceof Ye){let f=z("export",s.option("keyword")),k=n&&z("default",s.option("default"));return n?""+f+" "+k+" "+s.value().c():""+f+" "+s.value().c()}if(n){let f=s.value().c();return"export default "+f}return s.value().c()};function Wi(){return Y.apply(this,arguments)}i(Wi,Y),e.Require=Wi,Wi.prototype.js=function(t){var s=this.value()instanceof Ft?this.value().value():this.value(),n=s.c();return n=="require"?"require":"require("+n+")"};function oi(){oi.prototype.__super__.constructor.apply(this,arguments),this._key=String(this._value).slice(1,-1)}i(oi,Y),e.EnvFlag=oi,oi.prototype.raw=function(){return this._raw==null?this._raw=N.env(""+this._key):this._raw},oi.prototype.isTruthy=function(){var t=this.raw();if(t!==void 0&&!(t instanceof L))return!!t},oi.prototype.loc=function(){return[0,0]},oi.prototype.c=function(){var t=this.raw(),s=t;return t!==void 0?typeof t=="string"||t instanceof String?t.match(/^\d+(\.\d+)?$/)?s=String(parseFloat(t)):s="'"+t+"'":t instanceof L?s=s.c():s=""+t:s="ENV_"+this._key,z(s,this._value)};function Kr(){return L.apply(this,arguments)}i(Kr,L),e.StyleNode=Kr;function go(){return Kr.apply(this,arguments)}i(go,Kr),e.StyleSelector=go;function zs(t,s){this._placeholders=[],this._selectors=t,this._body=s}i(zs,Kr),e.StyleRuleSet=zs,zs.prototype.isStatic=function(){return!0},zs.prototype.isGlobal=function(){return!!this.option("global")},zs.prototype.addPlaceholder=function(t){return this._placeholders.push(t),this},zs.prototype.placeholders=function(){return this._placeholders},zs.prototype.cssid=function(){return this._cssid||(this._cssid=""+N.root().sourceId()+"-"+this.oid())},zs.prototype.visit=function(t,s){let n=this._tagDeclaration=t.up(De);this._css={},this._flag=t.up(Qe),this._tag=this._flag&&this._flag._tag;let f=String(this.option("name")||"");f[0]=="%"&&(this.
`)}if(N.tsc()&&this._placeholders.length){let t=[];for(let s=0,n=h(this.placeholders()),f=n.length;s<f;s++)t.push(n[s].runtimeValue().c());return N.isExpression()?"("+t.join(",")+")":t.join(`;
`)}return this.option("inClassBody")||this.option("inTagTree")||this.option("toplevel")?"":"'"+this._name+"'"};function ji(){return P.apply(this,arguments)}i(ji,P),e.StyleBody=ji,ji.prototype.visit=function(){let t=this._nodes,s=0,n;for(let f=0,k=h(t),T=k.length,B;f<T;f++)B=k[f],B instanceof Ei&&(B._property._name||B._property.setName(n),n=B._property._name);for(;s<t.length;){let f=t[s],k=f.traverse();if(k!=f&&k instanceof Array){t.splice.apply(t,[].concat([s,1],Array.from(k)));continue}f==t[s]&&s++}return this},ji.prototype.toJSON=function(){return this.values()};function Ei(t,s){this._property=t,this._expr=s instanceof Qs?s:new Qs(s)}i(Ei,Kr),e.StyleDeclaration=Ei,Ei.prototype.clone=function(t,s){return s||(s=this._expr.clone()),(typeof s=="string"||typeof s=="number")&&(s=[s]),!(s instanceof Array)&&(!(s instanceof P)||s instanceof g)&&(s=[s]),new Ei(this._property.clone(t),s)},Ei.prototype.visit=function(t,s){var n=this,f;let k=t.theme(),T=t.parent(),B=String(n._property.name()),G=k.expandProperty(B);if(n._expr&&n._expr.traverse({rule:s.rule,rootRule:s.rootRule,decl:n,property:n._property}),G instanceof Array){T.replace(n,G.map(function(_t){return n.clone(_t)}));return}else G&&G!=B&&(n._property=n._property.clone(G));let ut=String(G||B).replace(/-/g,"_");if(n._expr&&n._expr.traverse({decl:n,property:n._property}),k[ut]&&!n.option("plain")){let _t=k[ut].apply(k,n._expr.toArray()),xt=[];if(_t instanceof Array)n._expr=new Qs(_t);else if(_t instanceof Object){for(let te,ae=0,xe=Object.keys(_t),Ge=xe.length,Ve;ae<Ge;ae++)if(Ve=xe[ae],te=_t[Ve],Ve.indexOf("&")>=0){let ye=new ji([]),Ce=new zs(mt(Ve),ye);xt.push(Ce);for(let Ne,de=0,Fe=Object.keys(te),$s=Fe.length,Ke;de<$s;de++)Ke=Fe[de],Ne=te[Ke],ye.add(n.clone(Ke,Ne))}else xt.push(n.clone(Ve,te).set({plain:Ve==B||Ve==G}));T.replace(n,xt);return}}if(n._expr&&(n._expr.traverse({decl:n,property:n._property}),n._expr.set({parens:!1})),s.styles){let _t=n._property.toKey(),xt=n._expr;s.selector&&(_t=JSON.stringify([s.selector,_t])),n._property.isUnit()&&n._property.number()!=1&&(xt=mt("calc("+xt.c()+" / "+n._property.number()+")")),s.styles[_t]&&(f=s.styles[_t],delete s.styles[_t]),s.styles[_t]=xt.c({property:n._property})}return n},Ei.prototype.toCSS=function(){return""+this._property.c()+": "+W.cary(this._expr).join(" ")},Ei.prototype.toJSON=function(){return this.toCSS()};function ms(t){var s;this._token=t;let n=String(this._token);n[0]=="#"&&(this._kind="color"),this._parts=n.replace(/(^|\b)\$/g,"--").split(/\b(?=[\^\.\@\!])/g);for(let f=0,k=h(this._parts),T=k.length;f<T;f++)this._parts[f]=k[f].replace(/^\.(?=[^\.])/,"@.");this._name=String(this._parts[0]),(s=this._name.match(/^(\d+)([a-zA-Z]+)$/))&&(this._number=parseInt(s[1]),this._unit=s[2]),this._name.match(/^[\#\w\-]/)||this._parts.unshift(this._name=null)}i(ms,Kr),e.StyleProperty=ms,ms.prototype.name=function(t){return this._name},ms.prototype.setName=function(t){return this._name=t,this},ms.prototype.number=function(t){return this._number},ms.prototype.setNumber=function(t){return this._number=t,this},ms.prototype.unit=function(t){return this._unit},ms.prototype.setUnit=function(t){return this._unit=t,this},ms.prototype.kind=function(t){return this._kind},ms.prototype.setKind=function(t){return this._kind=t,this},ms.prototype.setName=function(t){var s;return(s=t.match(/^(\d+)([a-zA-Z]+)$/))?(this._number=parseInt(s[1]),this._unit=s[2]):this._number=this._unit=null,this._name=t,this},ms.prototype.name=function(){return this._name||(this._name=String(this._parts[0]))},ms.prototype.clone=function(t){return new ms([t||this.name()].concat(this.modifiers()).join(""))},ms.prototype.addModifier=function(t){return this._parts.push(t),this},ms.prototype.isUnit=function(){return this._unit},ms.prototype.isColor=function(){return this._kind=="color"},ms.prototype.modifiers=function(){return this._parts.slice(1)},ms.prototype.toJSON=function(){return this.name()+this.modifiers().join("\xA7")},ms.prototype.toString=function(){return this.name()+this.modifiers().join("\xA7")},ms.prototype.toKey=function(){return[this.isUnit()?"--u_"
Object.defineProperty(target,key,{value:value});
};`,unit:`(value,unit){
return value + unit;
};`,optNegIndex:"(value,index){ return value ? value[value.length + index] : null };",negIndex:"(value,index){ return value[value.length + index] };",extendTag:`(el,cls){
Object.defineProperties(el,Object.getOwnPropertyDescriptors(cls.prototype));
return el;
};`,inheritClass:`(cls){
Object.getPrototypeOf(cls.prototype).constructor?.inherited?.(cls);
};`,defineName:`(cls,name){
Object.defineProperty(cls,"name",{value:name,configurable:true});
};`,initField:`(target,key,o){
Object.defineProperty(target,key,o);
};`,watcher:`(k,w){
return { enumerable:true,
set(v){var o=this[k]; (v===o)||(this[k]=v,this[w]({value:v,oldValue:o}));},
get(){ return this[k] }
};
};`,decorate:`(decorators,target,key,desc){
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};`,contains:`(a,b){
var res = (b && b.indexOf) ? b.indexOf(a) : [].indexOf.call(a,b);
return res >= 0;
};`,requireDefault:`(obj){
return obj && obj.__esModule ? obj : { default: obj };
};`,virtualSuper:`(target){
var up = Object.getPrototypeOf(target);
var supers = Object.getOwnPropertyDescriptors(target);
const map = new WeakMap();
const obj = Object.defineProperties(Object.create(up), supers);
const proxy = {
apply: (self, key, ...params) => { return obj[key].apply(self, params) },
get: (self, key) => { return Reflect.get(obj, key, self); },
set: (self, key, value, receiver) => { return Reflect.set(obj, key, value, self);}
}
return function (s) {
return map.get(s) || map.set(s, new Proxy(s, proxy)) && map.get(s);
}
};`};Zt.Helper=function(){return Zt.apply(this,arguments)},i(Zt.Helper,Zt),Zt.Helper.prototype.name=function(){return this.option("name")},Zt.Helper.prototype.helper=function(){return this.option("helper")};for(let t,s=0,n=Object.keys(Zi),f=n.length,k;s<f;s++)k=n[s],t=Zi[k],Zt[k]=function(){for(var T=arguments,B=T.length,G=new Array(B>0?B:0);B>0;)G[B-1]=T[--B];let ut="function "+k+"$__"+t;return new Zt.Helper(G).set({name:k+"$__",helper:ut})};Zt.Extend=function(){return Zt.apply(this,arguments)},i(Zt.Extend,Zt),Zt.Extend.prototype.helper=function(){return`function extend$__(target,ext){
// @ts-ignore
const descriptors = Object.getOwnPropertyDescriptors(ext);
delete descriptors.constructor;
// @ts-ignore
Object.defineProperties(target,descriptors);
return target;
};`},Zt.Extend.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"extend$__("+W.compact(W.cary(this.args())).join(",")+")"},Zt.IndexOf=function(){return Zt.apply(this,arguments)},i(Zt.IndexOf,Zt),Zt.IndexOf.prototype.helper=function(){return`function idx$__(a,b){
return (b && b.indexOf) ? b.indexOf(a) : [].indexOf.call(a,b);
};`},Zt.IndexOf.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"idx$__("+this.args().map(function(s){return s.c()}).join(",")+")"},Zt.Promisify=function(){return Zt.apply(this,arguments)},i(Zt.Promisify,Zt),Zt.Promisify.prototype.helper=function(){return`function promise$__(a){
if(a instanceof Array){
console.warn("await (Array) is deprecated - use await Promise.all(Array)");
return Promise.all(a);
} else {
return (a && a.then ? a : Promise.resolve(a));
}
}`},Zt.Promisify.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"promise$__("+this.args().map(function(s){return s.c()}).join(",")+")"},Zt.Iterable=function(){return Zt.apply(this,arguments)},i(Zt.Iterable,Zt),Zt.Iterable.prototype.helper=function(){return"function iter$__(a){ let v; return a ? ((v=a.toIterable) ? v.call(a) : a) : a; };"},Zt.Iterable.prototype.js=function(t){return this.args()[0]instanceof ns?this.args()[0].c():(this.scope__().root().helper(this,this.helper()),"iter$__("+this.args()[0].c()+")")},Zt.IsFunction=function(){return Zt.apply(this,arguments)},i(Zt.IsFunction,Zt),Zt.IsFunction.prototype.js=function(t){return""+this.args()[0].c()},Zt.Array=function(){return Zt.apply(this,arguments)},i(Zt.Array,Zt),Zt.Array.prototype.js=function(t){return"new Array("+this.args().map(function(s){return s.c()})+")"};function Mr(t){return this._root=t,this._map=[],this}Mr.prototype.add=function(t,s){return this._map[t]=s,this._map.indexOf(s)<0&&this._map.push(s),this},Mr.prototype.lookup=function(t){return this._map[t]},Mr.prototype.plain=function(){return JSON.parse(JSON.stringify(this._map))},Mr.prototype.toJSON=function(){return this._map};function dr(t){return this._root=t,this._map={},this}dr.prototype.add=function(t,s){return this._map[t]=s,this},dr.prototype.register=function(t){var s=t.namepath();return this._map[s]||(this._map[s]=t),this},dr.prototype.plain=function(){return JSON.parse(JSON.stringify(this._map))},dr.prototype.toJSON=function(){return this._map};function Jt(t,s){this._nr=N.incr("scopes"),this._head=[],this._node=t,this._parent=s,this._vars=new Nr([]),this._entities=new Mr(this),this._meta={},this._annotations=[],this._closure=this,this._virtual=!1,this._counter=0,this._varmap={},this._counters={},this._varpool=[],this._mixins={},this._refcounter=0,this._declListeners=[],this._level=(s?s._level:-1)+1,this.setup()}e.Scope=Jt,Jt.prototype.level=function(t){return this._level},Jt.prototype.setLevel=function(t){return this._level=t,this},Jt.prototype.context=function(t){return this._context},Jt.prototype.setContext=function(t){return this._context=t,this},Jt.prototype.node=function(t){return this._node},Jt.prototype.setNode=function(t){return this._node=t,this},Jt.prototype.parent=function(t){return this._parent},Jt.prototype.setParent=function(t){return this._parent=t,this},Jt.prototype.varmap=function(t){return this._varmap},Jt.prototype.setVarmap=function(t){return this._varmap=t,this},Jt.prototype.varpool=function(t){return this._varpool},Jt.prototype.setVarpool=function(t){return this._varpool=t,this},Jt.prototype.params=function(t){return this._params},Jt.prototype.setParams=function(t){return this._params=t,this},Jt.prototype.head=function(t){return this._head},Jt.prototype.setHead=function(t){return this._head=t,this},Jt.prototype.vars=function(t){return this._vars},Jt.prototype.setVars=function(t){return this._vars=t,this},Jt.prototype.counter=function(t){return this._counter},Jt.prototype.setCounter=function(t){return this._counter=t,this},Jt.prototype.entities=function(t){return this._entities},Jt.prototype.setEntities=function(t){return this._entities=t,this},Jt.prototype.p=function(){return N.loglevel()>0&&console.log.apply(console,arguments),this},Jt.prototype.oid=function(){return this._oid||(this._oid=N.generateId(""))},Jt.prototype.stack=function(){return N},Jt.prototype.kind=function(){return this._kind||(this._kind=this.constructor.name.replace("Scope","").toLowerCase())},Jt.prototype.runtime=function(){return this.root().runtime()},Jt.prototype.setup=function(){return this._selfless=!0},Jt.prototype.incr=function(t){t===void 0&&(t="i");var s=this._counters[t]||(this._counters[t]=0);return this._counters[t]++,s},Jt.prototype.nextShortRef=function(){return W.counterToShortRef(this._refcounter++)},Jt.prototype.memovar=function(t,s){this._memovars||(this._memovars={});let n=this._memovars[t];return n||(n=this._memovars[t]=this.declare(n,s)),n},Jt.prototype.mixin=function(t){return this._mixins[t]||(this._mixins[t]=new _s(t,this))},Jt.prototype.cap
/*body*/
`+s;return o(this._helpers)&&(k=W.cary(this._helpers).join(`;
`)+`
`+k),k};function kn(){return Jt.apply(this,arguments)}i(kn,Jt),e.ModuleScope=kn,kn.prototype.setup=function(){return this._selfless=!1},kn.prototype.namepath=function(){return this._node.namepath()};function Wr(){return Jt.apply(this,arguments)}i(Wr,Jt),e.ClassScope=Wr,Wr.prototype.setup=function(){return this._selfless=!1},Wr.prototype.namepath=function(){return this._node.namepath()},Wr.prototype.virtualize=function(){var t=this.parent();for(let s=this._varmap,n,f=0,k=Object.keys(s),T=k.length,B;f<T;f++)B=k[f],n=s[B],n.resolve(t,!0);return this},Wr.prototype.prototype=function(){return this._prototype||(this._prototype=new Y(K(".",this.context(),"prototype")))};function Qi(){return Wr.apply(this,arguments)}i(Qi,Wr),e.TagScope=Qi;function vo(){return Jt.apply(this,arguments)}i(vo,Jt),e.ClosureScope=vo;function tn(){return Jt.apply(this,arguments)}i(tn,Jt),e.FunctionScope=tn;function so(){return tn.apply(this,arguments)}i(so,tn),e.IsolatedFunctionScope=so,so.prototype.lookup=function(t){this._lookups||(this._lookups={});var s=null;if(t=W.sym(t),this._varmap.hasOwnProperty(t))s=this._varmap[t];else if(s=this.parent()&&this.parent().lookup(t),s&&s.closure()==this.parent().closure()){this._leaks||(this._leaks=new Map),this._nonlocals||(this._nonlocals={}),this._nonlocals[t]=s;let n=this._leaks.get(s);n||this._leaks.set(s,n=new _r(this,t,s)),s=n}return s};function jr(){return Jt.apply(this,arguments)}i(jr,Jt),e.MethodScope=jr,jr.prototype.setup=function(){return this._selfless=!1},jr.prototype.isInExtend=function(){return this.parent().isInExtend()},jr.prototype.visit=function(){if(jr.prototype.__super__.visit.apply(this,arguments),N.tsc()&&this.isInExtend()){let t=this.parent().closure().node();if(t._className){let s=this.context().reference(mt("/** @type "+t._className.c()+" */(/** @type unknown */(this))"));this.context()._useReference=!0,s.c()}}return this};function en(){return Jt.apply(this,arguments)}i(en,Jt),e.FieldScope=en,en.prototype.setup=function(){return this._selfless=!1},en.prototype.mergeScopeInto=function(t){for(let s=this._varmap,n,f=0,k=Object.keys(s),T=k.length,B;f<T;f++)B=k[f],n=s[B],B!="self"&&(n.resolve(t,!0),t.declare(n));return this._context&&this._context._reference&&(this._context._reference=t.context().reference()),!0};function Er(){return Jt.apply(this,arguments)}i(Er,Jt),e.LambdaScope=Er,Er.prototype.context=function(){return this._context||(this._context=this.parent().context().fromScope(this)),this._context};function ss(){return Jt.apply(this,arguments)}i(ss,Jt),e.FlowScope=ss,ss.prototype.params=function(){if(this._parent)return this._parent.params()},ss.prototype.register=function(t,s,n){var f;return s===void 0&&(s=null),n===void 0&&(n={}),n.type!="let"&&n.type!="const"&&this.closure()!=this?((f=this.lookup(t))&&f.type()=="let"&&s&&s.warn("Variable already exists in block"),this.closure().register(t,s,n)):ss.prototype.__super__.register.call(this,t,s,n)},ss.prototype.autodeclare=function(t){return this.parent().autodeclare(t)},ss.prototype.closure=function(){return this._parent.closure()},ss.prototype.context=function(){return this._context||(this._context=this.parent().context())},ss.prototype.closeScope=function(){return this._context&&this._context.reference(),this},ss.prototype.temporary=function(t,s,n){return s===void 0&&(s={}),n===void 0&&(n=null),(this._systemscope||this.parent()).temporary(t,s,n)};function ro(){return ss.apply(this,arguments)}i(ro,ss),e.CatchScope=ro;function xn(){return ss.apply(this,arguments)}i(xn,ss),e.WhileScope=xn,xn.prototype.autodeclare=function(t){return this.vars().add(t)};function bo(){return ss.apply(this,arguments)}i(bo,ss),e.ForScope=bo,bo.prototype.autodeclare=function(t){return this.vars().add(t)};function Fn(){return ss.apply(this,arguments)}i(Fn,ss),e.IfScope=Fn;function Xr(){return ss.apply(this,arguments)}i(Xr,ss),e.BlockScope=Xr,Xr.prototype.region=function(){return this.node().region()};function Bn(){return ss.apply(this,arguments)}i(Bn,ss),e.TagBodyScope=Bn;function Qt(t,s,n,f){this._ref=N._counter++,this._c=null,this._scope=t,this._name=s,thi
`):""},ur.prototype.access=function(t,s){if(s===void 0&&(s=null),this._globalName)return mt(""+z(this._globalName,s)+"."+ht(t));let n=ht(t,{mark:!1});return this._exports[n]||(this._exports[n]=mt(""+this._name+"_"+n))},ur.prototype.c=function(){return this._importAll||(this._importAll=!0),ur.prototype.__super__.c.apply(this,arguments)};function wn(){return ur.apply(this,arguments)}i(wn,ur),e.ImbaRuntime=wn,wn.prototype.configure=function(t){return t.runtime=="global"||N.tsc()?this._globalName="imba":t.runtime&&this.setPath(t.runtime),this},wn.prototype.head=function(){return N.tsc()?"":wn.prototype.__super__.head.apply(this,arguments)},wn.prototype.c=function(){return this._importAll||(this._importAll=!0,N.current().warn("Referencing imba directly disables efficient tree-shaking")),this._c="imba"};function js(t,s){this._scope=t,this._value=s,this._reference=null}i(js,L),e.ScopeContext=js,js.prototype.scope=function(t){return this._scope},js.prototype.setScope=function(t){return this._scope=t,this},js.prototype.value=function(t){return this._value},js.prototype.setValue=function(t){return this._value=t,this},js.prototype.reference=function(t){return this._reference},js.prototype.setReference=function(t){return this._reference=t,this},js.prototype.namepath=function(){return this._scope.namepath()},js.prototype.reference=function(t){return this._reference||(this._reference=this.scope().lookup("self")||this.scope().declare("self",t??new kr))},js.prototype.fromScope=function(t){return new io(t,this)},js.prototype.isConstant=function(){return!0},js.prototype.c=function(){if(this._useReference&&this._reference)return this.reference().c();var t=this._value;return t?t.c():"this"},js.prototype.cache=function(){return this},js.prototype.proto=function(){return""+this.c()+".prototype"},js.prototype.isGlobalContext=function(){return!1};function io(t,s){this._scope=t,this._parent=s,this._reference=s.reference()}i(io,js),e.IndirectScopeContext=io,io.prototype.reference=function(){return this._reference},io.prototype.c=function(){return this.reference().c()},io.prototype.isGlobalContext=function(){return this._parent.isGlobalContext()};function no(){return js.apply(this,arguments)}i(no,js),e.RootScopeContext=no,no.prototype.reference=function(){return this._reference||(this._reference=this.scope().lookup("global"))},no.prototype.c=function(t){return"globalThis";var s},no.prototype.isGlobalContext=function(){return!0};function Ls(t,s){this._keyword=t,this._member=s,Ls.prototype.__super__.constructor.apply(this,arguments)}i(Ls,L),e.Super=Ls,Ls.prototype.member=function(t){return this._member},Ls.prototype.setMember=function(t){return this._member=t,this},Ls.prototype.args=function(t){return this._args},Ls.prototype.setArgs=function(t){return this._args=t,this},Ls.prototype.visit=function(){var t;return this._method=N.method(),this._up=N.parent(),(t=N.method())&&(t.set({supr:{node:N.blockpart(),block:N.block(),real:this}}),t.set({injectInitAfter:N.blockpart()})),this._method&&(this._class=N.up(pe)),this.args()&&this.args().traverse(),this},Ls.prototype.startLoc=function(){return this._keyword&&this._keyword.startLoc()},Ls.prototype.endLoc=function(){return this._keyword&&this._keyword.endLoc()},Ls.callOp=function(t,s){let n=K(".",mt("super"),t);return lt(n,s||[mt("...arguments")])},Ls.prototype.c=function(){let t=this._method,s=this._up,n=mt("super"),f,k=this.option("top"),T=t&&t.option("inExtension"),B=this.args();if(T&&this._class&&(n=lt(this._class.virtualSuper(),[this.slf()])),!(s instanceof _e||s instanceof fe)){if(t&&t.isConstructor()&&!this.member()){if(N.tsc()&&this._class&&!this._class.superclass())return B?"["+B.c()+"]":"";let G=this.option("target")||mt("super"),ut=this.option("args")||[mt("...arguments")];return z(lt(G,B||ut).c(),this._keyword)}else this.member()?f=K(".",n,this.member()):t&&(f=K(".",n,t.name()),t.isSetter()?f=K("=",f,t.params().at(0)):t.isGetter()||B||(B=[mt("...arguments")]));return B&&(f=lt(f,B)),f?z(f.c({mark:!1}),this._keyword):"/**/"}return this.member()?K(".",n,this.member()).c():s instanceof fe&&t&&!t.i
`),cs=e.BR=new S(`
`),eu=e.BR2=new S(`
`),el=e.SELF=new Ks,Hs=e.THIS=mt("this"),sl=e.PROTO=mt("this.prototype"),Yo=e.TRUE=new Ps("true"),Da=e.FALSE=new Gr("false"),oo=e.UNDEFINED=new Ii,su=e.NIL=new is,ru=e.ARGUMENTS=new pn("arguments"),Ma=e.EMPTY="",xo=e.NULL="null",iu=e.RESERVED=["default","native","enum","with"],rl=e.RESERVED_REGEX=/^(default|native|enum|with|new|char)$/}),Xc={};on(Xc,{resolveConfigFile:()=>Jc});function Lh(e){let o;return e?(o=e.toIterable)?o.call(e):e:[]}function N1(e,o){var r;if(e instanceof Array)for(let i=0,h=Lh(e),l=h.length;i<l;i++){let a=h[i];e[i]=N1(a,o)}else{if(typeof e=="string")return e.replace(/^\.\//,o+"/");if(typeof e=="object")for(let i=0,h=Object.keys(e),l=h.length,a,c;i<l;i++){a=h[i],c=e[a];let d=a.replace(/^\.\//,o+"/");e[d]=N1(c,o),d!=a&&(r=e[a],delete e[a])}}return e}function Jc(e,{path:o,fs:r}){if(!o||!r||!e||e==o.dirname(e))return null;let i=o.resolve(e,"package.json");if(uo[i])return uo[i];if(uo[i]!==null&&r.existsSync(i)){let h=function(c,d){return typeof d=="string"&&d.match(/^\.\//)?o.resolve(e,d):d},l=JSON.parse(r.readFileSync(i,"utf8")),a=l.imba||(l.imba={});return N1(a,e),a.package=l,a.cwd||(a.cwd=e),uo[i]=a}else uo[i]=null;return Jc(o.dirname(e),{path:o,fs:r})}var uo,$h=Rs(()=>{uo={}}),Rh=we(e=>{var o={},r=Sa(),i=Fo(),h=Gl(),l=Vl(),a=e.parser=zl().parser,c=Ah(),d=($h(),Gi(Xc)).resolveConfigFile,p=V1().ImbaParseError,u=(G1(),Gi(Ia)),y=u.Diagnostic,m=u.Compilation,x=e.lex=new h.Lexer,b=e.Rewriter=l.Rewriter,E=e.helpers=i;l=new b,a.lexer=x.jisonBridge(),a.yy=c,m.prototype.lexer=x,m.prototype.rewriter=l,m.prototype.parser=a,e.resolveConfig=o.resolveConfig=function(v){v===void 0&&(v={});let w=v.sourcePath;return v.config||(v.config=d(w,v)||{}),v},e.deserialize=o.deserialize=function(v,w){return w===void 0&&(w={}),m.deserialize(v,w)},e.tokenize=o.tokenize=function(v,w){return w===void 0&&(w={}),new m(v,w).tokenize()},e.rewrite=o.rewrite=function(v,w){return w===void 0&&(w={}),l.rewrite(v,w)},e.parse=o.parse=function(v,w){w===void 0&&(w={}),w=o.resolveConfig(w);var A=v instanceof Array?v:o.tokenize(v,w);try{return a.parse(A)}catch($){throw $._code=v,w.sourcePath&&($._sourcePath=w.sourcePath),$}},e.compile=o.compile=function(v,w){return w===void 0&&(w={}),new m(v,o.resolveConfig(w)).compile()},e.resolve=o.resolve=function(v,w){return w===void 0&&(w={}),new m(v,o.resolveConfig(w)).compile()},e.analyze=o.analyze=function(v,w){w===void 0&&(w={});var A;try{var $=o.parse(v,w);A=$.analyze(w)}catch(C){if(!(C instanceof p))if(C.lexer)C=new p(C,{tokens:C.lexer.tokens,pos:C.lexer.pos});else throw C;A={warnings:[C]}}return A}}),an=wa(Rh());Wc();jo();hc();fc();var Ph={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}},a1={},Zc=class{static getTokenizer(e){return e=="xml"&&!a1[e]?this.createTokenizer("xml",Ph):a1[e]}static createTokenizer(e,o){let r=cc(e,o);return a1[e]=new $1(e,
`&&(u="<i raw='"+JSON.stringify(u)+"'>"+K2(u||"")+"</i>"),r.push(u),(x=="end"||x=="close"||p.start)&&r.push("</b>")}}return r.join("")}Bo();R1();yc();Ea();var zh=Fc,Uh=Qc,Hh=an.compile,qh=an.deserialize,Yh=an.helpers,Kh=an.parse,Wh=an.parser,Xh=an.resolve,Jh=an.resolveConfig,Zh=an.rewrite,Qh=an.tokenize;return hl(tu);})();