@unocss/inspector 0.45.14 → 0.45.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/_id_.1a10f545.js +1 -0
- package/dist/client/assets/{index.c521dd0f.js → index.061f9efb.js} +4 -4
- package/dist/client/assets/repl.3ddc2a67.js +3 -0
- package/dist/client/index.html +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
- package/dist/client/assets/_id_.2b9c31d6.js +0 -1
- package/dist/client/assets/repl.8e3c422b.js +0 -3
|
@@ -21,7 +21,7 @@ b`.split(/\n/).length!=3?function(e){for(var r=0,o=[],a=e.length;r<=a;){var s=e.
|
|
|
21
21
|
`)>-1?o.value=e.prevInput="":e.prevInput=s,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},It.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},It.prototype.onKeyPress=function(){de&&Le>=9&&(this.hasSelection=null),this.fastPoll()},It.prototype.onContextMenu=function(e){var r=this,o=r.cm,a=o.display,s=r.textarea;r.contextMenuPending&&r.contextMenuPending();var h=ma(o,e),d=a.scroller.scrollTop;if(!h||Gt)return;var F=o.options.resetSelectionOnContextMenu;F&&o.doc.sel.contains(h)==-1&&Ys(o,ze)(o.doc,Fo(h),Jn);var M=s.style.cssText,H=r.wrapper.style.cssText,Ne=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",s.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
22
22
|
top: `+(e.clientY-Ne.top-5)+"px; left: "+(e.clientX-Ne.left-5)+`px;
|
|
23
23
|
z-index: 1000; background: `+(de?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
24
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Fe;Me&&(Fe=window.scrollY),a.input.focus(),Me&&window.scrollTo(null,Fe),a.input.reset(),o.somethingSelected()||(s.value=r.prevInput=" "),r.contextMenuPending=Ye,a.selForContextMenu=o.doc.sel,clearTimeout(a.detectingSelectAll);function Pt(){if(s.selectionStart!=null){var $t=o.somethingSelected(),xr="\u200B"+($t?s.value:"");s.value="\u21DA",s.value=xr,r.prevInput=$t?"":"\u200B",s.selectionStart=1,s.selectionEnd=xr.length,a.selForContextMenu=o.doc.sel}}function Ye(){if(r.contextMenuPending==Ye&&(r.contextMenuPending=!1,r.wrapper.style.cssText=H,s.style.cssText=M,de&&Le<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=d),s.selectionStart!=null)){(!de||de&&Le<9)&&Pt();var $t=0,xr=function(){a.selForContextMenu==o.doc.sel&&s.selectionStart==0&&s.selectionEnd>0&&r.prevInput=="\u200B"?Ys(o,bi)(o):$t++<10?a.detectingSelectAll=setTimeout(xr,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(xr,200)}}if(de&&Le>=9&&Pt(),$n){tr(e);var ur=function(){cr(window,"mouseup",ur),setTimeout(Ye,20)};Xt(window,"mouseup",ur)}else setTimeout(Ye,50)},It.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},It.prototype.setUneditable=function(){},It.prototype.needsContentAttribute=!1;function Qr(e,r){if(r=r?ts(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var o=Kn();r.autofocus=o==e||e.getAttribute("autofocus")!=null&&o==document.body}function a(){e.value=F.getValue()}var s;if(e.form&&(Xt(e.form,"submit",a),!r.leaveSubmitMethodAlone)){var h=e.form;s=h.submit;try{var d=h.submit=function(){a(),h.submit=s,h.submit(),h.submit=d}}catch{}}r.finishInit=function(M){M.save=a,M.getTextArea=function(){return e},M.toTextArea=function(){M.toTextArea=isNaN,a(),e.parentNode.removeChild(M.getWrapperElement()),e.style.display="",e.form&&(cr(e.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=s))}},e.style.display="none";var F=qe(function(M){return e.parentNode.insertBefore(M,e.nextSibling)},r);return F}function ht(e){e.off=cr,e.on=Xt,e.wheelEventPixels=Wl,e.Doc=Os,e.splitLines=Ee,e.countColumn=_r,e.findColumn=ct,e.isWordChar=lt,e.Pass=oi,e.signal=gn,e.Line=nn,e.changeEnd=Wa,e.scrollbarModel=Hu,e.Pos=S,e.cmpPos=Je,e.modes=Vt,e.mimeModes=nr,e.resolveMode=Yr,e.getMode=tn,e.modeExtensions=Pr,e.extendMode=kn,e.copyState=pi,e.startState=Ji,e.innerMode=yn,e.commands=b,e.keyMap=Wo,e.keyName=D,e.isModifierKey=u,e.lookupKey=t,e.normalizeKeyMap=n,e.StringStream=vi,e.SharedTextMarker=In,e.TextMarker=vr,e.LineWidget=Ri,e.e_preventDefault=Ue,e.e_stopPropagation=Bt,e.e_stop=tr,e.addClass=Yi,e.contains=Sn,e.rmClass=yi,e.keyNames=Nu}We(qe),ot(qe);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Rr in Os.prototype)Os.prototype.hasOwnProperty(Rr)&&yr(Wr,Rr)<0&&(qe.prototype[Rr]=function(e){return function(){return e.apply(this.doc,arguments)}}(Os.prototype[Rr]));return Nt(Os),qe.inputStyles={textarea:It,contenteditable:Yt},qe.defineMode=function(e){!qe.defaults.mode&&e!="null"&&(qe.defaults.mode=e),Tr.apply(this,arguments)},qe.defineMIME=zr,qe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),qe.defineMIME("text/plain","null"),qe.defineExtension=function(e,r){qe.prototype[e]=r},qe.defineDocExtension=function(e,r){Os.prototype[e]=r},qe.fromTextArea=Qr,ht(qe),qe.version="5.65.6",qe})})(Ul);const TD=Ul.exports;var gm={exports:{}};(function(i,c){(function(l){l(Ul.exports)})(function(l){l.defineMode("javascript",function(f,v){var B=f.indentUnit,Y=v.statementIndent,pe=v.jsonld,de=v.json||pe,Le=v.trackScope!==!1,Me=v.typescript,rt=v.wordCharacters||/[\w$\xa1-\uffff]/,yt=function(){function S(ni){return{type:ni,style:"keyword"}}var Je=S("keyword a"),jr=S("keyword b"),sn=S("keyword c"),ci=S("keyword d"),ss=S("operator"),Zi={type:"atom",style:"atom"};return{if:S("if"),while:Je,with:Je,else:jr,do:jr,try:jr,finally:jr,return:ci,break:ci,continue:ci,new:S("new"),delete:sn,void:sn,throw:sn,debugger:S("debugger"),var:S("var"),const:S("var"),let:S("var"),function:S("function"),catch:S("catch"),for:S("for"),switch:S("switch"),case:S("case"),default:S("default"),in:ss,typeof:ss,instanceof:ss,true:Zi,false:Zi,null:Zi,undefined:Zi,NaN:Zi,Infinity:Zi,this:S("this"),class:S("class"),super:S("atom"),yield:sn,export:S("export"),import:S("import"),extends:sn,await:sn}}(),Tt=/[+\-*&%=<>!?|~^@]/,Gt=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function sr(S){for(var Je=!1,jr,sn=!1;(jr=S.next())!=null;){if(!Je){if(jr=="/"&&!sn)return;jr=="["?sn=!0:sn&&jr=="]"&&(sn=!1)}Je=!Je&&jr=="\\"}}var Mr,At;function Mt(S,Je,jr){return Mr=S,At=jr,Je}function Wt(S,Je){var jr=S.next();if(jr=='"'||jr=="'")return Je.tokenize=Ar(jr),Je.tokenize(S,Je);if(jr=="."&&S.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Mt("number","number");if(jr=="."&&S.match(".."))return Mt("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(jr))return Mt(jr);if(jr=="="&&S.eat(">"))return Mt("=>","operator");if(jr=="0"&&S.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Mt("number","number");if(/\d/.test(jr))return S.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Mt("number","number");if(jr=="/")return S.eat("*")?(Je.tokenize=an,an(S,Je)):S.eat("/")?(S.skipToEnd(),Mt("comment","comment")):js(S,Je,1)?(sr(S),S.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Mt("regexp","string-2")):(S.eat("="),Mt("operator","operator",S.current()));if(jr=="`")return Je.tokenize=Vn,Vn(S,Je);if(jr=="#"&&S.peek()=="!")return S.skipToEnd(),Mt("meta","meta");if(jr=="#"&&S.eatWhile(rt))return Mt("variable","property");if(jr=="<"&&S.match("!--")||jr=="-"&&S.match("->")&&!/\S/.test(S.string.slice(0,S.start)))return S.skipToEnd(),Mt("comment","comment");if(Tt.test(jr))return(jr!=">"||!Je.lexical||Je.lexical.type!=">")&&(S.eat("=")?(jr=="!"||jr=="=")&&S.eat("="):/[<>*+\-|&?]/.test(jr)&&(S.eat(jr),jr==">"&&S.eat(jr))),jr=="?"&&S.eat(".")?Mt("."):Mt("operator","operator",S.current());if(rt.test(jr)){S.eatWhile(rt);var sn=S.current();if(Je.lastType!="."){if(yt.propertyIsEnumerable(sn)){var ci=yt[sn];return Mt(ci.type,ci.style,sn)}if(sn=="async"&&S.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Mt("async","keyword",sn)}return Mt("variable","variable",sn)}}function Ar(S){return function(Je,jr){var sn=!1,ci;if(pe&&Je.peek()=="@"&&Je.match(Gt))return jr.tokenize=Wt,Mt("jsonld-keyword","meta");for(;(ci=Je.next())!=null&&!(ci==S&&!sn);)sn=!sn&&ci=="\\";return sn||(jr.tokenize=Wt),Mt("string","string")}}function an(S,Je){for(var jr=!1,sn;sn=S.next();){if(sn=="/"&&jr){Je.tokenize=Wt;break}jr=sn=="*"}return Mt("comment","comment")}function Vn(S,Je){for(var jr=!1,sn;(sn=S.next())!=null;){if(!jr&&(sn=="`"||sn=="$"&&S.eat("{"))){Je.tokenize=Wt;break}jr=!jr&&sn=="\\"}return Mt("quasi","string-2",S.current())}var An="([{}])";function gi(S,Je){Je.fatArrowAt&&(Je.fatArrowAt=null);var jr=S.string.indexOf("=>",S.start);if(!(jr<0)){if(Me){var sn=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(S.string.slice(S.start,jr));sn&&(jr=sn.index)}for(var ci=0,ss=!1,Zi=jr-1;Zi>=0;--Zi){var ni=S.string.charAt(Zi),qs=An.indexOf(ni);if(qs>=0&&qs<3){if(!ci){++Zi;break}if(--ci==0){ni=="("&&(ss=!0);break}}else if(qs>=3&&qs<6)++ci;else if(rt.test(ni))ss=!0;else if(/["'\/`]/.test(ni))for(;;--Zi){if(Zi==0)return;var Jo=S.string.charAt(Zi-1);if(Jo==ni&&S.string.charAt(Zi-2)!="\\"){Zi--;break}}else if(ss&&!ci){++Zi;break}}ss&&!ci&&(Je.fatArrowAt=Zi)}}var ai={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function $n(S,Je,jr,sn,ci,ss){this.indented=S,this.column=Je,this.type=jr,this.prev=ci,this.info=ss,sn!=null&&(this.align=sn)}function Mn(S,Je){if(!Le)return!1;for(var jr=S.localVars;jr;jr=jr.next)if(jr.name==Je)return!0;for(var sn=S.context;sn;sn=sn.prev)for(var jr=sn.vars;jr;jr=jr.next)if(jr.name==Je)return!0}function yi(S,Je,jr,sn,ci){var ss=S.cc;for(Cr.state=S,Cr.stream=ci,Cr.marked=null,Cr.cc=ss,Cr.style=Je,S.lexical.hasOwnProperty("align")||(S.lexical.align=!0);;){var Zi=ss.length?ss.pop():de?Un:oi;if(Zi(jr,sn)){for(;ss.length&&ss[ss.length-1].lex;)ss.pop()();return Cr.marked?Cr.marked:jr=="variable"&&Mn(S,sn)?"variable-2":Je}}}var Cr={state:null,column:null,marked:null,cc:null};function Tn(){for(var S=arguments.length-1;S>=0;S--)Cr.cc.push(arguments[S])}function we(){return Tn.apply(null,arguments),!0}function rn(S,Je){for(var jr=Je;jr;jr=jr.next)if(jr.name==S)return!0;return!1}function lr(S){var Je=Cr.state;if(Cr.marked="def",!!Le){if(Je.context){if(Je.lexical.info=="var"&&Je.context&&Je.context.block){var jr=Sn(S,Je.context);if(jr!=null){Je.context=jr;return}}else if(!rn(S,Je.localVars)){Je.localVars=new ys(S,Je.localVars);return}}v.globalVars&&!rn(S,Je.globalVars)&&(Je.globalVars=new ys(S,Je.globalVars))}}function Sn(S,Je){if(Je)if(Je.block){var jr=Sn(S,Je.prev);return jr?jr==Je.prev?Je:new Yi(jr,Je.vars,!0):null}else return rn(S,Je.vars)?Je:new Yi(Je.prev,new ys(S,Je.vars),!1);else return null}function Kn(S){return S=="public"||S=="private"||S=="protected"||S=="abstract"||S=="readonly"}function Yi(S,Je,jr){this.prev=S,this.vars=Je,this.block=jr}function ys(S,Je){this.name=S,this.next=Je}var Ns=new ys("this",new ys("arguments",null));function cs(){Cr.state.context=new Yi(Cr.state.context,Cr.state.localVars,!1),Cr.state.localVars=Ns}function ts(){Cr.state.context=new Yi(Cr.state.context,Cr.state.localVars,!0),Cr.state.localVars=null}cs.lex=ts.lex=!0;function _r(){Cr.state.localVars=Cr.state.context.vars,Cr.state.context=Cr.state.context.prev}_r.lex=!0;function Kr(S,Je){var jr=function(){var sn=Cr.state,ci=sn.indented;if(sn.lexical.type=="stat")ci=sn.lexical.indented;else for(var ss=sn.lexical;ss&&ss.type==")"&&ss.align;ss=ss.prev)ci=ss.indented;sn.lexical=new $n(ci,Cr.stream.column(),S,null,sn.lexical,Je)};return jr.lex=!0,jr}function yr(){var S=Cr.state;S.lexical.prev&&(S.lexical.type==")"&&(S.indented=S.lexical.indented),S.lexical=S.lexical.prev)}yr.lex=!0;function dn(S){function Je(jr){return jr==S?we():S==";"||jr=="}"||jr==")"||jr=="]"?Tn():we(Je)}return Je}function oi(S,Je){return S=="var"?we(Kr("vardef",Je),on,dn(";"),yr):S=="keyword a"?we(Kr("form"),ct,oi,yr):S=="keyword b"?we(Kr("form"),oi,yr):S=="keyword d"?Cr.stream.match(/^\s*$/,!1)?we():we(Kr("stat"),Er,dn(";"),yr):S=="debugger"?we(dn(";")):S=="{"?we(Kr("}"),ts,qn,yr,_r):S==";"?we():S=="if"?(Cr.state.lexical.info=="else"&&Cr.state.cc[Cr.state.cc.length-1]==yr&&Cr.state.cc.pop()(),we(Kr("form"),ct,oi,yr,Ee)):S=="function"?we(Dt):S=="for"?we(Kr("form"),ts,He,oi,_r,yr):S=="class"||Me&&Je=="interface"?(Cr.marked="keyword",we(Kr("form",S=="class"?S:Je),Yr,yr)):S=="variable"?Me&&Je=="declare"?(Cr.marked="keyword",we(oi)):Me&&(Je=="module"||Je=="enum"||Je=="type")&&Cr.stream.match(/^\s*\w/,!1)?(Cr.marked="keyword",Je=="enum"?we(ti):Je=="type"?we(nr,dn("operator"),cr,dn(";")):we(Kr("form"),Rt,dn("{"),Kr("}"),qn,yr,yr)):Me&&Je=="namespace"?(Cr.marked="keyword",we(Kr("form"),Un,oi,yr)):Me&&Je=="abstract"?(Cr.marked="keyword",we(oi)):we(Kr("stat"),jn):S=="switch"?we(Kr("form"),ct,dn("{"),Kr("}","switch"),ts,qn,yr,yr,_r):S=="case"?we(Un,dn(":")):S=="default"?we(dn(":")):S=="catch"?we(Kr("form"),cs,Jn,oi,yr,_r):S=="export"?we(Kr("stat"),pi,yr):S=="import"?we(Kr("stat"),Ji,yr):S=="async"?we(oi):Je=="@"?we(Un,oi):Tn(Kr("stat"),Un,dn(";"),yr)}function Jn(S){if(S=="(")return we(Tr,dn(")"))}function Un(S,Je){return Ot(S,Je,!1)}function li(S,Je){return Ot(S,Je,!0)}function ct(S){return S!="("?Tn():we(Kr(")"),Er,dn(")"),yr)}function Ot(S,Je,jr){if(Cr.state.fatArrowAt==Cr.stream.start){var sn=jr?hn:Fn;if(S=="(")return we(cs,Kr(")"),zi(Tr,")"),yr,dn("=>"),sn,_r);if(S=="variable")return Tn(cs,Rt,dn("=>"),sn,_r)}var ci=jr?Jr:ar;return ai.hasOwnProperty(S)?we(ci):S=="function"?we(Dt,ci):S=="class"||Me&&Je=="interface"?(Cr.marked="keyword",we(Kr("form"),zr,yr)):S=="keyword c"||S=="async"?we(jr?li:Un):S=="("?we(Kr(")"),Er,dn(")"),yr,ci):S=="operator"||S=="spread"?we(jr?li:Un):S=="["?we(Kr("]"),xi,yr,ci):S=="{"?Ls(ns,"}",null,ci):S=="quasi"?Tn(fn,ci):S=="new"?we(lt(jr)):we()}function Er(S){return S.match(/[;\}\)\],]/)?Tn():Tn(Un)}function ar(S,Je){return S==","?we(Er):Jr(S,Je,!1)}function Jr(S,Je,jr){var sn=jr==!1?ar:Jr,ci=jr==!1?Un:li;if(S=="=>")return we(cs,jr?hn:Fn,_r);if(S=="operator")return/\+\+|--/.test(Je)||Me&&Je=="!"?we(sn):Me&&Je=="<"&&Cr.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?we(Kr(">"),zi(cr,">"),yr,sn):Je=="?"?we(Un,dn(":"),ci):we(ci);if(S=="quasi")return Tn(fn,sn);if(S!=";"){if(S=="(")return Ls(li,")","call",sn);if(S==".")return we(Di,sn);if(S=="[")return we(Kr("]"),Er,dn("]"),yr,sn);if(Me&&Je=="as")return Cr.marked="keyword",we(cr,sn);if(S=="regexp")return Cr.state.lastType=Cr.marked="operator",Cr.stream.backUp(Cr.stream.pos-Cr.stream.start-1),we(ci)}}function fn(S,Je){return S!="quasi"?Tn():Je.slice(Je.length-2)!="${"?we(fn):we(Er,mn)}function mn(S){if(S=="}")return Cr.marked="string-2",Cr.state.tokenize=Vn,we(fn)}function Fn(S){return gi(Cr.stream,Cr.state),Tn(S=="{"?oi:Un)}function hn(S){return gi(Cr.stream,Cr.state),Tn(S=="{"?oi:li)}function lt(S){return function(Je){return Je=="."?we(S?jt:br):Je=="variable"&&Me?we(Jt,S?Jr:ar):Tn(S?li:Un)}}function br(S,Je){if(Je=="target")return Cr.marked="keyword",we(ar)}function jt(S,Je){if(Je=="target")return Cr.marked="keyword",we(Jr)}function jn(S){return S==":"?we(yr,oi):Tn(ar,dn(";"),yr)}function Di(S){if(S=="variable")return Cr.marked="property",we()}function ns(S,Je){if(S=="async")return Cr.marked="property",we(ns);if(S=="variable"||Cr.style=="keyword"){if(Cr.marked="property",Je=="get"||Je=="set")return we(is);var jr;return Me&&Cr.state.fatArrowAt==Cr.stream.start&&(jr=Cr.stream.match(/^\s*:\s*/,!1))&&(Cr.state.fatArrowAt=Cr.stream.pos+jr[0].length),we(ls)}else{if(S=="number"||S=="string")return Cr.marked=pe?"property":Cr.style+" property",we(ls);if(S=="jsonld-keyword")return we(ls);if(Me&&Kn(Je))return Cr.marked="keyword",we(ns);if(S=="[")return we(Un,Fr,dn("]"),ls);if(S=="spread")return we(li,ls);if(Je=="*")return Cr.marked="keyword",we(ns);if(S==":")return Tn(ls)}}function is(S){return S!="variable"?Tn(ls):(Cr.marked="property",we(Dt))}function ls(S){if(S==":")return we(li);if(S=="(")return Tn(Dt)}function zi(S,Je,jr){function sn(ci,ss){if(jr?jr.indexOf(ci)>-1:ci==","){var Zi=Cr.state.lexical;return Zi.info=="call"&&(Zi.pos=(Zi.pos||0)+1),we(function(ni,qs){return ni==Je||qs==Je?Tn():Tn(S)},sn)}return ci==Je||ss==Je?we():jr&&jr.indexOf(";")>-1?Tn(S):we(dn(Je))}return function(ci,ss){return ci==Je||ss==Je?we():Tn(S,sn)}}function Ls(S,Je,jr){for(var sn=3;sn<arguments.length;sn++)Cr.cc.push(arguments[sn]);return we(Kr(Je,jr),zi(S,Je),yr)}function qn(S){return S=="}"?we():Tn(oi,qn)}function Fr(S,Je){if(Me){if(S==":")return we(cr);if(Je=="?")return we(Fr)}}function Br(S,Je){if(Me&&(S==":"||Je=="in"))return we(cr)}function Xt(S){if(Me&&S==":")return Cr.stream.match(/^\s*\w+\s+is\b/,!1)?we(Un,Vr,cr):we(cr)}function Vr(S,Je){if(Je=="is")return Cr.marked="keyword",we()}function cr(S,Je){if(Je=="keyof"||Je=="typeof"||Je=="infer"||Je=="readonly")return Cr.marked="keyword",we(Je=="typeof"?li:cr);if(S=="variable"||Je=="void")return Cr.marked="type",we(Bt);if(Je=="|"||Je=="&")return we(cr);if(S=="string"||S=="number"||S=="atom")return we(Bt);if(S=="[")return we(Kr("]"),zi(cr,"]",","),yr,Bt);if(S=="{")return we(Kr("}"),zt,yr,Bt);if(S=="(")return we(zi(Ue,")"),gn,Bt);if(S=="<")return we(zi(cr,">"),cr);if(S=="quasi")return Tn(wr,Bt)}function gn(S){if(S=="=>")return we(cr)}function zt(S){return S.match(/[\}\)\]]/)?we():S==","||S==";"?we(zt):Tn(Qn,zt)}function Qn(S,Je){if(S=="variable"||Cr.style=="keyword")return Cr.marked="property",we(Qn);if(Je=="?"||S=="number"||S=="string")return we(Qn);if(S==":")return we(cr);if(S=="[")return we(dn("variable"),Br,dn("]"),Qn);if(S=="(")return Tn(Vt,Qn);if(!S.match(/[;\}\)\],]/))return we()}function wr(S,Je){return S!="quasi"?Tn():Je.slice(Je.length-2)!="${"?we(wr):we(cr,Nt)}function Nt(S){if(S=="}")return Cr.marked="string-2",Cr.state.tokenize=Vn,we(wr)}function Ue(S,Je){return S=="variable"&&Cr.stream.match(/^\s*[?:]/,!1)||Je=="?"?we(Ue):S==":"?we(cr):S=="spread"?we(Ue):Tn(cr)}function Bt(S,Je){if(Je=="<")return we(Kr(">"),zi(cr,">"),yr,Bt);if(Je=="|"||S=="."||Je=="&")return we(cr);if(S=="[")return we(cr,dn("]"),Bt);if(Je=="extends"||Je=="implements")return Cr.marked="keyword",we(cr);if(Je=="?")return we(cr,dn(":"),cr)}function Jt(S,Je){if(Je=="<")return we(Kr(">"),zi(cr,">"),yr,Bt)}function tr(){return Tn(cr,Ur)}function Ur(S,Je){if(Je=="=")return we(cr)}function on(S,Je){return Je=="enum"?(Cr.marked="keyword",we(ti)):Tn(Rt,Fr,me,be)}function Rt(S,Je){if(Me&&Kn(Je))return Cr.marked="keyword",we(Rt);if(S=="variable")return lr(Je),we();if(S=="spread")return we(Rt);if(S=="[")return Ls(ce,"]");if(S=="{")return Ls(Ie,"}")}function Ie(S,Je){return S=="variable"&&!Cr.stream.match(/^\s*:/,!1)?(lr(Je),we(me)):(S=="variable"&&(Cr.marked="property"),S=="spread"?we(Rt):S=="}"?Tn():S=="["?we(Un,dn("]"),dn(":"),Ie):we(dn(":"),Rt,me))}function ce(){return Tn(Rt,me)}function me(S,Je){if(Je=="=")return we(li)}function be(S){if(S==",")return we(on)}function Ee(S,Je){if(S=="keyword b"&&Je=="else")return we(Kr("form","else"),oi,yr)}function He(S,Je){if(Je=="await")return we(He);if(S=="(")return we(Kr(")"),et,yr)}function et(S){return S=="var"?we(on,st):S=="variable"?we(st):Tn(st)}function st(S,Je){return S==")"?we():S==";"?we(st):Je=="in"||Je=="of"?(Cr.marked="keyword",we(Un,st)):Tn(Un,st)}function Dt(S,Je){if(Je=="*")return Cr.marked="keyword",we(Dt);if(S=="variable")return lr(Je),we(Dt);if(S=="(")return we(cs,Kr(")"),zi(Tr,")"),yr,Xt,oi,_r);if(Me&&Je=="<")return we(Kr(">"),zi(tr,">"),yr,Dt)}function Vt(S,Je){if(Je=="*")return Cr.marked="keyword",we(Vt);if(S=="variable")return lr(Je),we(Vt);if(S=="(")return we(cs,Kr(")"),zi(Tr,")"),yr,Xt,_r);if(Me&&Je=="<")return we(Kr(">"),zi(tr,">"),yr,Vt)}function nr(S,Je){if(S=="keyword"||S=="variable")return Cr.marked="type",we(nr);if(Je=="<")return we(Kr(">"),zi(tr,">"),yr)}function Tr(S,Je){return Je=="@"&&we(Un,Tr),S=="spread"?we(Tr):Me&&Kn(Je)?(Cr.marked="keyword",we(Tr)):Me&&S=="this"?we(Fr,me):Tn(Rt,Fr,me)}function zr(S,Je){return S=="variable"?Yr(S,Je):tn(S,Je)}function Yr(S,Je){if(S=="variable")return lr(Je),we(tn)}function tn(S,Je){if(Je=="<")return we(Kr(">"),zi(tr,">"),yr,tn);if(Je=="extends"||Je=="implements"||Me&&S==",")return Je=="implements"&&(Cr.marked="keyword"),we(Me?cr:Un,tn);if(S=="{")return we(Kr("}"),Pr,yr)}function Pr(S,Je){if(S=="async"||S=="variable"&&(Je=="static"||Je=="get"||Je=="set"||Me&&Kn(Je))&&Cr.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return Cr.marked="keyword",we(Pr);if(S=="variable"||Cr.style=="keyword")return Cr.marked="property",we(kn,Pr);if(S=="number"||S=="string")return we(kn,Pr);if(S=="[")return we(Un,Fr,dn("]"),kn,Pr);if(Je=="*")return Cr.marked="keyword",we(Pr);if(Me&&S=="(")return Tn(Vt,Pr);if(S==";"||S==",")return we(Pr);if(S=="}")return we();if(Je=="@")return we(Un,Pr)}function kn(S,Je){if(Je=="!"||Je=="?")return we(kn);if(S==":")return we(cr,me);if(Je=="=")return we(li);var jr=Cr.state.lexical.prev,sn=jr&&jr.info=="interface";return Tn(sn?Vt:Dt)}function pi(S,Je){return Je=="*"?(Cr.marked="keyword",we(Li,dn(";"))):Je=="default"?(Cr.marked="keyword",we(Un,dn(";"))):S=="{"?we(zi(yn,"}"),Li,dn(";")):Tn(oi)}function yn(S,Je){if(Je=="as")return Cr.marked="keyword",we(dn("variable"));if(S=="variable")return Tn(li,yn)}function Ji(S){return S=="string"?we():S=="("?Tn(Un):S=="."?Tn(ar):Tn(vi,Xe,Li)}function vi(S,Je){return S=="{"?Ls(vi,"}"):(S=="variable"&&lr(Je),Je=="*"&&(Cr.marked="keyword"),we(Ds))}function Xe(S){if(S==",")return we(vi,Xe)}function Ds(S,Je){if(Je=="as")return Cr.marked="keyword",we(vi)}function Li(S,Je){if(Je=="from")return Cr.marked="keyword",we(Un)}function xi(S){return S=="]"?we():Tn(zi(li,"]"))}function ti(){return Tn(Kr("form"),Rt,dn("{"),Kr("}"),zi(Gn,"}"),yr,yr)}function Gn(){return Tn(Rt,me)}function $s(S,Je){return S.lastType=="operator"||S.lastType==","||Tt.test(Je.charAt(0))||/[,.]/.test(Je.charAt(0))}function js(S,Je,jr){return Je.tokenize==Wt&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Je.lastType)||Je.lastType=="quasi"&&/\{\s*$/.test(S.string.slice(0,S.pos-(jr||0)))}return{startState:function(S){var Je={tokenize:Wt,lastType:"sof",cc:[],lexical:new $n((S||0)-B,0,"block",!1),localVars:v.localVars,context:v.localVars&&new Yi(null,null,!1),indented:S||0};return v.globalVars&&typeof v.globalVars=="object"&&(Je.globalVars=v.globalVars),Je},token:function(S,Je){if(S.sol()&&(Je.lexical.hasOwnProperty("align")||(Je.lexical.align=!1),Je.indented=S.indentation(),gi(S,Je)),Je.tokenize!=an&&S.eatSpace())return null;var jr=Je.tokenize(S,Je);return Mr=="comment"?jr:(Je.lastType=Mr=="operator"&&(At=="++"||At=="--")?"incdec":Mr,yi(Je,jr,Mr,At,S))},indent:function(S,Je){if(S.tokenize==an||S.tokenize==Vn)return l.Pass;if(S.tokenize!=Wt)return 0;var jr=Je&&Je.charAt(0),sn=S.lexical,ci;if(!/^\s*else\b/.test(Je))for(var ss=S.cc.length-1;ss>=0;--ss){var Zi=S.cc[ss];if(Zi==yr)sn=sn.prev;else if(Zi!=Ee&&Zi!=_r)break}for(;(sn.type=="stat"||sn.type=="form")&&(jr=="}"||(ci=S.cc[S.cc.length-1])&&(ci==ar||ci==Jr)&&!/^[,\.=+\-*:?[\(]/.test(Je));)sn=sn.prev;Y&&sn.type==")"&&sn.prev.type=="stat"&&(sn=sn.prev);var ni=sn.type,qs=jr==ni;return ni=="vardef"?sn.indented+(S.lastType=="operator"||S.lastType==","?sn.info.length+1:0):ni=="form"&&jr=="{"?sn.indented:ni=="form"?sn.indented+B:ni=="stat"?sn.indented+($s(S,Je)?Y||B:0):sn.info=="switch"&&!qs&&v.doubleIndentSwitch!=!1?sn.indented+(/^(?:case|default)\b/.test(Je)?B:2*B):sn.align?sn.column+(qs?0:1):sn.indented+(qs?0:B)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:de?null:"/*",blockCommentEnd:de?null:"*/",blockCommentContinue:de?null:" * ",lineComment:de?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:de?"json":"javascript",jsonldMode:pe,jsonMode:de,expressionAllowed:js,skipExpression:function(S){yi(S,"atom","atom","true",new l.StringStream("",2,null))}}}),l.registerHelper("wordChars","javascript",/[\w$]/),l.defineMIME("text/javascript","javascript"),l.defineMIME("text/ecmascript","javascript"),l.defineMIME("application/javascript","javascript"),l.defineMIME("application/x-javascript","javascript"),l.defineMIME("application/ecmascript","javascript"),l.defineMIME("application/json",{name:"javascript",json:!0}),l.defineMIME("application/x-json",{name:"javascript",json:!0}),l.defineMIME("application/manifest+json",{name:"javascript",json:!0}),l.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),l.defineMIME("text/typescript",{name:"javascript",typescript:!0}),l.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var SD={exports:{}};(function(i,c){(function(l){l(Ul.exports)})(function(l){l.defineMode("css",function($n,Mn){var yi=Mn.inline;Mn.propertyKeywords||(Mn=l.resolveMode("text/css"));var Cr=$n.indentUnit,Tn=Mn.tokenHooks,we=Mn.documentTypes||{},rn=Mn.mediaTypes||{},lr=Mn.mediaFeatures||{},Sn=Mn.mediaValueKeywords||{},Kn=Mn.propertyKeywords||{},Yi=Mn.nonStandardPropertyKeywords||{},ys=Mn.fontProperties||{},Ns=Mn.counterDescriptors||{},cs=Mn.colorKeywords||{},ts=Mn.valueKeywords||{},_r=Mn.allowNested,Kr=Mn.lineComment,yr=Mn.supportsAtComponent===!0,dn=$n.highlightNonStandardPropertyKeywords!==!1,oi,Jn;function Un(lt,br){return oi=br,lt}function li(lt,br){var jt=lt.next();if(Tn[jt]){var jn=Tn[jt](lt,br);if(jn!==!1)return jn}if(jt=="@")return lt.eatWhile(/[\w\\\-]/),Un("def",lt.current());if(jt=="="||(jt=="~"||jt=="|")&<.eat("="))return Un(null,"compare");if(jt=='"'||jt=="'")return br.tokenize=ct(jt),br.tokenize(lt,br);if(jt=="#")return lt.eatWhile(/[\w\\\-]/),Un("atom","hash");if(jt=="!")return lt.match(/^\s*\w*/),Un("keyword","important");if(/\d/.test(jt)||jt=="."&<.eat(/\d/))return lt.eatWhile(/[\w.%]/),Un("number","unit");if(jt==="-"){if(/[\d.]/.test(lt.peek()))return lt.eatWhile(/[\w.%]/),Un("number","unit");if(lt.match(/^-[\w\\\-]*/))return lt.eatWhile(/[\w\\\-]/),lt.match(/^\s*:/,!1)?Un("variable-2","variable-definition"):Un("variable-2","variable");if(lt.match(/^\w+-/))return Un("meta","meta")}else return/[,+>*\/]/.test(jt)?Un(null,"select-op"):jt=="."&<.match(/^-?[_a-z][_a-z0-9-]*/i)?Un("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(jt)?Un(null,jt):lt.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(lt.current())&&(br.tokenize=Ot),Un("variable callee","variable")):/[\w\\\-]/.test(jt)?(lt.eatWhile(/[\w\\\-]/),Un("property","word")):Un(null,null)}function ct(lt){return function(br,jt){for(var jn=!1,Di;(Di=br.next())!=null;){if(Di==lt&&!jn){lt==")"&&br.backUp(1);break}jn=!jn&&Di=="\\"}return(Di==lt||!jn&<!=")")&&(jt.tokenize=null),Un("string","string")}}function Ot(lt,br){return lt.next(),lt.match(/^\s*[\"\')]/,!1)?br.tokenize=null:br.tokenize=ct(")"),Un(null,"(")}function Er(lt,br,jt){this.type=lt,this.indent=br,this.prev=jt}function ar(lt,br,jt,jn){return lt.context=new Er(jt,br.indentation()+(jn===!1?0:Cr),lt.context),jt}function Jr(lt){return lt.context.prev&&(lt.context=lt.context.prev),lt.context.type}function fn(lt,br,jt){return hn[jt.context.type](lt,br,jt)}function mn(lt,br,jt,jn){for(var Di=jn||1;Di>0;Di--)jt.context=jt.context.prev;return fn(lt,br,jt)}function Fn(lt){var br=lt.current().toLowerCase();ts.hasOwnProperty(br)?Jn="atom":cs.hasOwnProperty(br)?Jn="keyword":Jn="variable"}var hn={};return hn.top=function(lt,br,jt){if(lt=="{")return ar(jt,br,"block");if(lt=="}"&&jt.context.prev)return Jr(jt);if(yr&&/@component/i.test(lt))return ar(jt,br,"atComponentBlock");if(/^@(-moz-)?document$/i.test(lt))return ar(jt,br,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(lt))return ar(jt,br,"atBlock");if(/^@(font-face|counter-style)/i.test(lt))return jt.stateArg=lt,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(lt))return"keyframes";if(lt&<.charAt(0)=="@")return ar(jt,br,"at");if(lt=="hash")Jn="builtin";else if(lt=="word")Jn="tag";else{if(lt=="variable-definition")return"maybeprop";if(lt=="interpolation")return ar(jt,br,"interpolation");if(lt==":")return"pseudo";if(_r&<=="(")return ar(jt,br,"parens")}return jt.context.type},hn.block=function(lt,br,jt){if(lt=="word"){var jn=br.current().toLowerCase();return Kn.hasOwnProperty(jn)?(Jn="property","maybeprop"):Yi.hasOwnProperty(jn)?(Jn=dn?"string-2":"property","maybeprop"):_r?(Jn=br.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Jn+=" error","maybeprop")}else return lt=="meta"?"block":!_r&&(lt=="hash"||lt=="qualifier")?(Jn="error","block"):hn.top(lt,br,jt)},hn.maybeprop=function(lt,br,jt){return lt==":"?ar(jt,br,"prop"):fn(lt,br,jt)},hn.prop=function(lt,br,jt){if(lt==";")return Jr(jt);if(lt=="{"&&_r)return ar(jt,br,"propBlock");if(lt=="}"||lt=="{")return mn(lt,br,jt);if(lt=="(")return ar(jt,br,"parens");if(lt=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(br.current()))Jn+=" error";else if(lt=="word")Fn(br);else if(lt=="interpolation")return ar(jt,br,"interpolation");return"prop"},hn.propBlock=function(lt,br,jt){return lt=="}"?Jr(jt):lt=="word"?(Jn="property","maybeprop"):jt.context.type},hn.parens=function(lt,br,jt){return lt=="{"||lt=="}"?mn(lt,br,jt):lt==")"?Jr(jt):lt=="("?ar(jt,br,"parens"):lt=="interpolation"?ar(jt,br,"interpolation"):(lt=="word"&&Fn(br),"parens")},hn.pseudo=function(lt,br,jt){return lt=="meta"?"pseudo":lt=="word"?(Jn="variable-3",jt.context.type):fn(lt,br,jt)},hn.documentTypes=function(lt,br,jt){return lt=="word"&&we.hasOwnProperty(br.current())?(Jn="tag",jt.context.type):hn.atBlock(lt,br,jt)},hn.atBlock=function(lt,br,jt){if(lt=="(")return ar(jt,br,"atBlock_parens");if(lt=="}"||lt==";")return mn(lt,br,jt);if(lt=="{")return Jr(jt)&&ar(jt,br,_r?"block":"top");if(lt=="interpolation")return ar(jt,br,"interpolation");if(lt=="word"){var jn=br.current().toLowerCase();jn=="only"||jn=="not"||jn=="and"||jn=="or"?Jn="keyword":rn.hasOwnProperty(jn)?Jn="attribute":lr.hasOwnProperty(jn)?Jn="property":Sn.hasOwnProperty(jn)?Jn="keyword":Kn.hasOwnProperty(jn)?Jn="property":Yi.hasOwnProperty(jn)?Jn=dn?"string-2":"property":ts.hasOwnProperty(jn)?Jn="atom":cs.hasOwnProperty(jn)?Jn="keyword":Jn="error"}return jt.context.type},hn.atComponentBlock=function(lt,br,jt){return lt=="}"?mn(lt,br,jt):lt=="{"?Jr(jt)&&ar(jt,br,_r?"block":"top",!1):(lt=="word"&&(Jn="error"),jt.context.type)},hn.atBlock_parens=function(lt,br,jt){return lt==")"?Jr(jt):lt=="{"||lt=="}"?mn(lt,br,jt,2):hn.atBlock(lt,br,jt)},hn.restricted_atBlock_before=function(lt,br,jt){return lt=="{"?ar(jt,br,"restricted_atBlock"):lt=="word"&&jt.stateArg=="@counter-style"?(Jn="variable","restricted_atBlock_before"):fn(lt,br,jt)},hn.restricted_atBlock=function(lt,br,jt){return lt=="}"?(jt.stateArg=null,Jr(jt)):lt=="word"?(jt.stateArg=="@font-face"&&!ys.hasOwnProperty(br.current().toLowerCase())||jt.stateArg=="@counter-style"&&!Ns.hasOwnProperty(br.current().toLowerCase())?Jn="error":Jn="property","maybeprop"):"restricted_atBlock"},hn.keyframes=function(lt,br,jt){return lt=="word"?(Jn="variable","keyframes"):lt=="{"?ar(jt,br,"top"):fn(lt,br,jt)},hn.at=function(lt,br,jt){return lt==";"?Jr(jt):lt=="{"||lt=="}"?mn(lt,br,jt):(lt=="word"?Jn="tag":lt=="hash"&&(Jn="builtin"),"at")},hn.interpolation=function(lt,br,jt){return lt=="}"?Jr(jt):lt=="{"||lt==";"?mn(lt,br,jt):(lt=="word"?Jn="variable":lt!="variable"&<!="("&<!=")"&&(Jn="error"),"interpolation")},{startState:function(lt){return{tokenize:null,state:yi?"block":"top",stateArg:null,context:new Er(yi?"block":"top",lt||0,null)}},token:function(lt,br){if(!br.tokenize&<.eatSpace())return null;var jt=(br.tokenize||li)(lt,br);return jt&&typeof jt=="object"&&(oi=jt[1],jt=jt[0]),Jn=jt,oi!="comment"&&(br.state=hn[br.state](oi,lt,br)),Jn},indent:function(lt,br){var jt=lt.context,jn=br&&br.charAt(0),Di=jt.indent;return jt.type=="prop"&&(jn=="}"||jn==")")&&(jt=jt.prev),jt.prev&&(jn=="}"&&(jt.type=="block"||jt.type=="top"||jt.type=="interpolation"||jt.type=="restricted_atBlock")?(jt=jt.prev,Di=jt.indent):(jn==")"&&(jt.type=="parens"||jt.type=="atBlock_parens")||jn=="{"&&(jt.type=="at"||jt.type=="atBlock"))&&(Di=Math.max(0,jt.indent-Cr))),Di},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Kr,fold:"brace"}});function f($n){for(var Mn={},yi=0;yi<$n.length;++yi)Mn[$n[yi].toLowerCase()]=!0;return Mn}var v=["domain","regexp","url","url-prefix"],B=f(v),Y=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],pe=f(Y),de=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],Le=f(de),Me=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],rt=f(Me),yt=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],Tt=f(yt),Gt=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],sr=f(Gt),Mr=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],At=f(Mr),Mt=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],Wt=f(Mt),Ar=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],an=f(Ar),Vn=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],An=f(Vn),gi=v.concat(Y).concat(de).concat(Me).concat(yt).concat(Gt).concat(Ar).concat(Vn);l.registerHelper("hintWords","css",gi);function ai($n,Mn){for(var yi=!1,Cr;(Cr=$n.next())!=null;){if(yi&&Cr=="/"){Mn.tokenize=null;break}yi=Cr=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:B,mediaTypes:pe,mediaFeatures:Le,mediaValueKeywords:rt,propertyKeywords:Tt,nonStandardPropertyKeywords:sr,fontProperties:At,counterDescriptors:Wt,colorKeywords:an,valueKeywords:An,tokenHooks:{"/":function($n,Mn){return $n.eat("*")?(Mn.tokenize=ai,ai($n,Mn)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:pe,mediaFeatures:Le,mediaValueKeywords:rt,propertyKeywords:Tt,nonStandardPropertyKeywords:sr,colorKeywords:an,valueKeywords:An,fontProperties:At,allowNested:!0,lineComment:"//",tokenHooks:{"/":function($n,Mn){return $n.eat("/")?($n.skipToEnd(),["comment","comment"]):$n.eat("*")?(Mn.tokenize=ai,ai($n,Mn)):["operator","operator"]},":":function($n){return $n.match(/^\s*\{/,!1)?[null,null]:!1},$:function($n){return $n.match(/^[\w-]+/),$n.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function($n){return $n.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),l.defineMIME("text/x-less",{mediaTypes:pe,mediaFeatures:Le,mediaValueKeywords:rt,propertyKeywords:Tt,nonStandardPropertyKeywords:sr,colorKeywords:an,valueKeywords:An,fontProperties:At,allowNested:!0,lineComment:"//",tokenHooks:{"/":function($n,Mn){return $n.eat("/")?($n.skipToEnd(),["comment","comment"]):$n.eat("*")?(Mn.tokenize=ai,ai($n,Mn)):["operator","operator"]},"@":function($n){return $n.eat("{")?[null,"interpolation"]:$n.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:($n.eatWhile(/[\w\\\-]/),$n.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),l.defineMIME("text/x-gss",{documentTypes:B,mediaTypes:pe,mediaFeatures:Le,propertyKeywords:Tt,nonStandardPropertyKeywords:sr,fontProperties:At,counterDescriptors:Wt,colorKeywords:an,valueKeywords:An,supportsAtComponent:!0,tokenHooks:{"/":function($n,Mn){return $n.eat("*")?(Mn.tokenize=ai,ai($n,Mn)):!1}},name:"css",helperType:"gss"})})})();var ym={exports:{}};(function(i,c){(function(l){l(Ul.exports)})(function(l){var f={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},v={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};l.defineMode("xml",function(B,Y){var pe=B.indentUnit,de={},Le=Y.htmlMode?f:v;for(var Me in Le)de[Me]=Le[Me];for(var Me in Y)de[Me]=Y[Me];var rt,yt;function Tt(we,rn){function lr(Yi){return rn.tokenize=Yi,Yi(we,rn)}var Sn=we.next();if(Sn=="<")return we.eat("!")?we.eat("[")?we.match("CDATA[")?lr(Mr("atom","]]>")):null:we.match("--")?lr(Mr("comment","-->")):we.match("DOCTYPE",!0,!0)?(we.eatWhile(/[\w\._\-]/),lr(At(1))):null:we.eat("?")?(we.eatWhile(/[\w\._\-]/),rn.tokenize=Mr("meta","?>"),"meta"):(rt=we.eat("/")?"closeTag":"openTag",rn.tokenize=Gt,"tag bracket");if(Sn=="&"){var Kn;return we.eat("#")?we.eat("x")?Kn=we.eatWhile(/[a-fA-F\d]/)&&we.eat(";"):Kn=we.eatWhile(/[\d]/)&&we.eat(";"):Kn=we.eatWhile(/[\w\.\-:]/)&&we.eat(";"),Kn?"atom":"error"}else return we.eatWhile(/[^&<]/),null}Tt.isInText=!0;function Gt(we,rn){var lr=we.next();if(lr==">"||lr=="/"&&we.eat(">"))return rn.tokenize=Tt,rt=lr==">"?"endTag":"selfcloseTag","tag bracket";if(lr=="=")return rt="equals",null;if(lr=="<"){rn.tokenize=Tt,rn.state=Vn,rn.tagName=rn.tagStart=null;var Sn=rn.tokenize(we,rn);return Sn?Sn+" tag error":"tag error"}else return/[\'\"]/.test(lr)?(rn.tokenize=sr(lr),rn.stringStartCol=we.column(),rn.tokenize(we,rn)):(we.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function sr(we){var rn=function(lr,Sn){for(;!lr.eol();)if(lr.next()==we){Sn.tokenize=Gt;break}return"string"};return rn.isInAttribute=!0,rn}function Mr(we,rn){return function(lr,Sn){for(;!lr.eol();){if(lr.match(rn)){Sn.tokenize=Tt;break}lr.next()}return we}}function At(we){return function(rn,lr){for(var Sn;(Sn=rn.next())!=null;){if(Sn=="<")return lr.tokenize=At(we+1),lr.tokenize(rn,lr);if(Sn==">")if(we==1){lr.tokenize=Tt;break}else return lr.tokenize=At(we-1),lr.tokenize(rn,lr)}return"meta"}}function Mt(we){return we&&we.toLowerCase()}function Wt(we,rn,lr){this.prev=we.context,this.tagName=rn||"",this.indent=we.indented,this.startOfLine=lr,(de.doNotIndent.hasOwnProperty(rn)||we.context&&we.context.noIndent)&&(this.noIndent=!0)}function Ar(we){we.context&&(we.context=we.context.prev)}function an(we,rn){for(var lr;;){if(!we.context||(lr=we.context.tagName,!de.contextGrabbers.hasOwnProperty(Mt(lr))||!de.contextGrabbers[Mt(lr)].hasOwnProperty(Mt(rn))))return;Ar(we)}}function Vn(we,rn,lr){return we=="openTag"?(lr.tagStart=rn.column(),An):we=="closeTag"?gi:Vn}function An(we,rn,lr){return we=="word"?(lr.tagName=rn.current(),yt="tag",Mn):de.allowMissingTagName&&we=="endTag"?(yt="tag bracket",Mn(we,rn,lr)):(yt="error",An)}function gi(we,rn,lr){if(we=="word"){var Sn=rn.current();return lr.context&&lr.context.tagName!=Sn&&de.implicitlyClosed.hasOwnProperty(Mt(lr.context.tagName))&&Ar(lr),lr.context&&lr.context.tagName==Sn||de.matchClosing===!1?(yt="tag",ai):(yt="tag error",$n)}else return de.allowMissingTagName&&we=="endTag"?(yt="tag bracket",ai(we,rn,lr)):(yt="error",$n)}function ai(we,rn,lr){return we!="endTag"?(yt="error",ai):(Ar(lr),Vn)}function $n(we,rn,lr){return yt="error",ai(we,rn,lr)}function Mn(we,rn,lr){if(we=="word")return yt="attribute",yi;if(we=="endTag"||we=="selfcloseTag"){var Sn=lr.tagName,Kn=lr.tagStart;return lr.tagName=lr.tagStart=null,we=="selfcloseTag"||de.autoSelfClosers.hasOwnProperty(Mt(Sn))?an(lr,Sn):(an(lr,Sn),lr.context=new Wt(lr,Sn,Kn==lr.indented)),Vn}return yt="error",Mn}function yi(we,rn,lr){return we=="equals"?Cr:(de.allowMissing||(yt="error"),Mn(we,rn,lr))}function Cr(we,rn,lr){return we=="string"?Tn:we=="word"&&de.allowUnquoted?(yt="string",Mn):(yt="error",Mn(we,rn,lr))}function Tn(we,rn,lr){return we=="string"?Tn:Mn(we,rn,lr)}return{startState:function(we){var rn={tokenize:Tt,state:Vn,indented:we||0,tagName:null,tagStart:null,context:null};return we!=null&&(rn.baseIndent=we),rn},token:function(we,rn){if(!rn.tagName&&we.sol()&&(rn.indented=we.indentation()),we.eatSpace())return null;rt=null;var lr=rn.tokenize(we,rn);return(lr||rt)&&lr!="comment"&&(yt=null,rn.state=rn.state(rt||lr,we,rn),yt&&(lr=yt=="error"?lr+" error":yt)),lr},indent:function(we,rn,lr){var Sn=we.context;if(we.tokenize.isInAttribute)return we.tagStart==we.indented?we.stringStartCol+1:we.indented+pe;if(Sn&&Sn.noIndent)return l.Pass;if(we.tokenize!=Gt&&we.tokenize!=Tt)return lr?lr.match(/^(\s*)/)[0].length:0;if(we.tagName)return de.multilineTagIndentPastTag!==!1?we.tagStart+we.tagName.length+2:we.tagStart+pe*(de.multilineTagIndentFactor||1);if(de.alignCDATA&&/<!\[CDATA\[/.test(rn))return 0;var Kn=rn&&/^<(\/)?([\w_:\.-]*)/.exec(rn);if(Kn&&Kn[1])for(;Sn;)if(Sn.tagName==Kn[2]){Sn=Sn.prev;break}else if(de.implicitlyClosed.hasOwnProperty(Mt(Sn.tagName)))Sn=Sn.prev;else break;else if(Kn)for(;Sn;){var Yi=de.contextGrabbers[Mt(Sn.tagName)];if(Yi&&Yi.hasOwnProperty(Mt(Kn[2])))Sn=Sn.prev;else break}for(;Sn&&Sn.prev&&!Sn.startOfLine;)Sn=Sn.prev;return Sn?Sn.indent+pe:we.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:de.htmlMode?"html":"xml",helperType:de.htmlMode?"html":"xml",skipAttribute:function(we){we.state==Cr&&(we.state=Mn)},xmlCurrentTag:function(we){return we.tagName?{name:we.tagName,close:we.type=="closeTag"}:null},xmlCurrentContext:function(we){for(var rn=[],lr=we.context;lr;lr=lr.prev)rn.push(lr.tagName);return rn.reverse()}}}),l.defineMIME("text/xml","xml"),l.defineMIME("application/xml","xml"),l.mimeModes.hasOwnProperty("text/html")||l.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(i,c){(function(l){l(Ul.exports,ym.exports,gm.exports,SD.exports)})(function(l){var f={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function v(rt,yt,Tt){var Gt=rt.current(),sr=Gt.search(yt);return sr>-1?rt.backUp(Gt.length-sr):Gt.match(/<\/?$/)&&(rt.backUp(Gt.length),rt.match(yt,!1)||rt.match(Gt)),Tt}var B={};function Y(rt){var yt=B[rt];return yt||(B[rt]=new RegExp("\\s+"+rt+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function pe(rt,yt){var Tt=rt.match(Y(yt));return Tt?/^\s*(.*?)\s*$/.exec(Tt[2])[1]:""}function de(rt,yt){return new RegExp((yt?"^":"")+"</\\s*"+rt+"\\s*>","i")}function Le(rt,yt){for(var Tt in rt)for(var Gt=yt[Tt]||(yt[Tt]=[]),sr=rt[Tt],Mr=sr.length-1;Mr>=0;Mr--)Gt.unshift(sr[Mr])}function Me(rt,yt){for(var Tt=0;Tt<rt.length;Tt++){var Gt=rt[Tt];if(!Gt[0]||Gt[1].test(pe(yt,Gt[0])))return Gt[2]}}l.defineMode("htmlmixed",function(rt,yt){var Tt=l.getMode(rt,{name:"xml",htmlMode:!0,multilineTagIndentFactor:yt.multilineTagIndentFactor,multilineTagIndentPastTag:yt.multilineTagIndentPastTag,allowMissingTagName:yt.allowMissingTagName}),Gt={},sr=yt&&yt.tags,Mr=yt&&yt.scriptTypes;if(Le(f,Gt),sr&&Le(sr,Gt),Mr)for(var At=Mr.length-1;At>=0;At--)Gt.script.unshift(["type",Mr[At].matches,Mr[At].mode]);function Mt(Wt,Ar){var an=Tt.token(Wt,Ar.htmlState),Vn=/\btag\b/.test(an),An;if(Vn&&!/[<>\s\/]/.test(Wt.current())&&(An=Ar.htmlState.tagName&&Ar.htmlState.tagName.toLowerCase())&&Gt.hasOwnProperty(An))Ar.inTag=An+" ";else if(Ar.inTag&&Vn&&/>$/.test(Wt.current())){var gi=/^([\S]+) (.*)/.exec(Ar.inTag);Ar.inTag=null;var ai=Wt.current()==">"&&Me(Gt[gi[1]],gi[2]),$n=l.getMode(rt,ai),Mn=de(gi[1],!0),yi=de(gi[1],!1);Ar.token=function(Cr,Tn){return Cr.match(Mn,!1)?(Tn.token=Mt,Tn.localState=Tn.localMode=null,null):v(Cr,yi,Tn.localMode.token(Cr,Tn.localState))},Ar.localMode=$n,Ar.localState=l.startState($n,Tt.indent(Ar.htmlState,"",""))}else Ar.inTag&&(Ar.inTag+=Wt.current(),Wt.eol()&&(Ar.inTag+=" "));return an}return{startState:function(){var Wt=l.startState(Tt);return{token:Mt,inTag:null,localMode:null,localState:null,htmlState:Wt}},copyState:function(Wt){var Ar;return Wt.localState&&(Ar=l.copyState(Wt.localMode,Wt.localState)),{token:Wt.token,inTag:Wt.inTag,localMode:Wt.localMode,localState:Ar,htmlState:l.copyState(Tt,Wt.htmlState)}},token:function(Wt,Ar){return Ar.token(Wt,Ar)},indent:function(Wt,Ar,an){return!Wt.localMode||/^\s*<\//.test(Ar)?Tt.indent(Wt.htmlState,Ar,an):Wt.localMode.indent?Wt.localMode.indent(Wt.localState,Ar,an):l.Pass},innerMode:function(Wt){return{state:Wt.localState||Wt.htmlState,mode:Wt.localMode||Tt}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(i,c){(function(l){l(Ul.exports,ym.exports,gm.exports)})(function(l){function f(B,Y,pe,de){this.state=B,this.mode=Y,this.depth=pe,this.prev=de}function v(B){return new f(l.copyState(B.mode,B.state),B.mode,B.depth,B.prev&&v(B.prev))}l.defineMode("jsx",function(B,Y){var pe=l.getMode(B,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),de=l.getMode(B,Y&&Y.base||"javascript");function Le(Tt){var Gt=Tt.tagName;Tt.tagName=null;var sr=pe.indent(Tt,"","");return Tt.tagName=Gt,sr}function Me(Tt,Gt){return Gt.context.mode==pe?rt(Tt,Gt,Gt.context):yt(Tt,Gt,Gt.context)}function rt(Tt,Gt,sr){if(sr.depth==2)return Tt.match(/^.*?\*\//)?sr.depth=1:Tt.skipToEnd(),"comment";if(Tt.peek()=="{"){pe.skipAttribute(sr.state);var Mr=Le(sr.state),At=sr.state.context;if(At&&Tt.match(/^[^>]*>\s*$/,!1)){for(;At.prev&&!At.startOfLine;)At=At.prev;At.startOfLine?Mr-=B.indentUnit:sr.prev.state.lexical&&(Mr=sr.prev.state.lexical.indented)}else sr.depth==1&&(Mr+=B.indentUnit);return Gt.context=new f(l.startState(de,Mr),de,0,Gt.context),null}if(sr.depth==1){if(Tt.peek()=="<")return pe.skipAttribute(sr.state),Gt.context=new f(l.startState(pe,Le(sr.state)),pe,0,Gt.context),null;if(Tt.match("//"))return Tt.skipToEnd(),"comment";if(Tt.match("/*"))return sr.depth=2,Me(Tt,Gt)}var Mt=pe.token(Tt,sr.state),Wt=Tt.current(),Ar;return/\btag\b/.test(Mt)?/>$/.test(Wt)?sr.state.context?sr.depth=0:Gt.context=Gt.context.prev:/^</.test(Wt)&&(sr.depth=1):!Mt&&(Ar=Wt.indexOf("{"))>-1&&Tt.backUp(Wt.length-Ar),Mt}function yt(Tt,Gt,sr){if(Tt.peek()=="<"&&de.expressionAllowed(Tt,sr.state))return Gt.context=new f(l.startState(pe,de.indent(sr.state,"","")),pe,0,Gt.context),de.skipExpression(sr.state),null;var Mr=de.token(Tt,sr.state);if(!Mr&&sr.depth!=null){var At=Tt.current();At=="{"?sr.depth++:At=="}"&&--sr.depth==0&&(Gt.context=Gt.context.prev)}return Mr}return{startState:function(){return{context:new f(l.startState(de),de)}},copyState:function(Tt){return{context:v(Tt.context)}},token:Me,indent:function(Tt,Gt,sr){return Tt.context.mode.indent(Tt.context.state,Gt,sr)},innerMode:function(Tt){return Tt.context}}},"xml","javascript"),l.defineMIME("text/jsx","jsx"),l.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(i,c){(function(l){l(Ul.exports)})(function(l){l.defineOption("placeholder","",function(Le,Me,rt){var yt=rt&&rt!=l.Init;if(Me&&!yt)Le.on("blur",Y),Le.on("change",pe),Le.on("swapDoc",pe),l.on(Le.getInputField(),"compositionupdate",Le.state.placeholderCompose=function(){B(Le)}),pe(Le);else if(!Me&&yt){Le.off("blur",Y),Le.off("change",pe),Le.off("swapDoc",pe),l.off(Le.getInputField(),"compositionupdate",Le.state.placeholderCompose),f(Le);var Tt=Le.getWrapperElement();Tt.className=Tt.className.replace(" CodeMirror-empty","")}Me&&!Le.hasFocus()&&Y(Le)});function f(Le){Le.state.placeholder&&(Le.state.placeholder.parentNode.removeChild(Le.state.placeholder),Le.state.placeholder=null)}function v(Le){f(Le);var Me=Le.state.placeholder=document.createElement("pre");Me.style.cssText="height: 0; overflow: visible",Me.style.direction=Le.getOption("direction"),Me.className="CodeMirror-placeholder CodeMirror-line-like";var rt=Le.getOption("placeholder");typeof rt=="string"&&(rt=document.createTextNode(rt)),Me.appendChild(rt),Le.display.lineSpace.insertBefore(Me,Le.display.lineSpace.firstChild)}function B(Le){setTimeout(function(){var Me=!1;if(Le.lineCount()==1){var rt=Le.getInputField();Me=rt.nodeName=="TEXTAREA"?!Le.getLine(0).length:!/[^\u200b]/.test(rt.querySelector(".CodeMirror-line").textContent)}Me?v(Le):f(Le)},20)}function Y(Le){de(Le)&&v(Le)}function pe(Le){var Me=Le.getWrapperElement(),rt=de(Le);Me.className=Me.className.replace(" CodeMirror-empty","")+(rt?" CodeMirror-empty":""),rt?v(Le):f(Le)}function de(Le){return Le.lineCount()===1&&Le.getLine(0)===""}})})();(function(i,c){(function(l){l(Ul.exports)})(function(l){var f="CodeMirror-hint",v="CodeMirror-hint-active";l.showHint=function(At,Mt,Wt){if(!Mt)return At.showHint(Wt);Wt&&Wt.async&&(Mt.async=!0);var Ar={hint:Mt};if(Wt)for(var an in Wt)Ar[an]=Wt[an];return At.showHint(Ar)},l.defineExtension("showHint",function(At){At=de(this,this.getCursor("start"),At);var Mt=this.listSelections();if(!(Mt.length>1)){if(this.somethingSelected()){if(!At.hint.supportsSelection)return;for(var Wt=0;Wt<Mt.length;Wt++)if(Mt[Wt].head.line!=Mt[Wt].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var Ar=this.state.completionActive=new B(this,At);!Ar.options.hint||(l.signal(this,"startCompletion",this),Ar.update(!0))}}),l.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function B(At,Mt){if(this.cm=At,this.options=Mt,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var Wt=this;At.on("cursorActivity",this.activityFunc=function(){Wt.cursorActivity()})}}var Y=window.requestAnimationFrame||function(At){return setTimeout(At,1e3/60)},pe=window.cancelAnimationFrame||clearTimeout;B.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&l.signal(this.data,"close"),this.widget&&this.widget.close(),l.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(At,Mt){var Wt=At.list[Mt],Ar=this;this.cm.operation(function(){Wt.hint?Wt.hint(Ar.cm,At,Wt):Ar.cm.replaceRange(Le(Wt),Wt.from||At.from,Wt.to||At.to,"complete"),l.signal(At,"pick",Wt),Ar.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(pe(this.debounce),this.debounce=0);var At=this.startPos;this.data&&(At=this.data.from);var Mt=this.cm.getCursor(),Wt=this.cm.getLine(Mt.line);if(Mt.line!=this.startPos.line||Wt.length-Mt.ch!=this.startLen-this.startPos.ch||Mt.ch<At.ch||this.cm.somethingSelected()||!Mt.ch||this.options.closeCharacters.test(Wt.charAt(Mt.ch-1)))this.close();else{var Ar=this;this.debounce=Y(function(){Ar.update()}),this.widget&&this.widget.disable()}},update:function(At){if(this.tick!=null){var Mt=this,Wt=++this.tick;Gt(this.options.hint,this.cm,this.options,function(Ar){Mt.tick==Wt&&Mt.finishUpdate(Ar,At)})}},finishUpdate:function(At,Mt){this.data&&l.signal(this.data,"update");var Wt=this.widget&&this.widget.picked||Mt&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=At,At&&At.list.length&&(Wt&&At.list.length==1?this.pick(At,0):(this.widget=new yt(this,At),l.signal(At,"shown")))}};function de(At,Mt,Wt){var Ar=At.options.hintOptions,an={};for(var Vn in Mr)an[Vn]=Mr[Vn];if(Ar)for(var Vn in Ar)Ar[Vn]!==void 0&&(an[Vn]=Ar[Vn]);if(Wt)for(var Vn in Wt)Wt[Vn]!==void 0&&(an[Vn]=Wt[Vn]);return an.hint.resolve&&(an.hint=an.hint.resolve(At,Mt)),an}function Le(At){return typeof At=="string"?At:At.text}function Me(At,Mt){var Wt={Up:function(){Mt.moveFocus(-1)},Down:function(){Mt.moveFocus(1)},PageUp:function(){Mt.moveFocus(-Mt.menuSize()+1,!0)},PageDown:function(){Mt.moveFocus(Mt.menuSize()-1,!0)},Home:function(){Mt.setFocus(0)},End:function(){Mt.setFocus(Mt.length-1)},Enter:Mt.pick,Tab:Mt.pick,Esc:Mt.close},Ar=/Mac/.test(navigator.platform);Ar&&(Wt["Ctrl-P"]=function(){Mt.moveFocus(-1)},Wt["Ctrl-N"]=function(){Mt.moveFocus(1)});var an=At.options.customKeys,Vn=an?{}:Wt;function An($n,Mn){var yi;typeof Mn!="string"?yi=function(Cr){return Mn(Cr,Mt)}:Wt.hasOwnProperty(Mn)?yi=Wt[Mn]:yi=Mn,Vn[$n]=yi}if(an)for(var gi in an)an.hasOwnProperty(gi)&&An(gi,an[gi]);var ai=At.options.extraKeys;if(ai)for(var gi in ai)ai.hasOwnProperty(gi)&&An(gi,ai[gi]);return Vn}function rt(At,Mt){for(;Mt&&Mt!=At;){if(Mt.nodeName.toUpperCase()==="LI"&&Mt.parentNode==At)return Mt;Mt=Mt.parentNode}}function yt(At,Mt){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=At,this.data=Mt,this.picked=!1;var Wt=this,Ar=At.cm,an=Ar.getInputField().ownerDocument,Vn=an.defaultView||an.parentWindow,An=this.hints=an.createElement("ul");An.setAttribute("role","listbox"),An.setAttribute("aria-expanded","true"),An.id=this.id;var gi=At.cm.options.theme;An.className="CodeMirror-hints "+gi,this.selectedHint=Mt.selectedHint||0;for(var ai=Mt.list,$n=0;$n<ai.length;++$n){var Mn=An.appendChild(an.createElement("li")),yi=ai[$n],Cr=f+($n!=this.selectedHint?"":" "+v);yi.className!=null&&(Cr=yi.className+" "+Cr),Mn.className=Cr,$n==this.selectedHint&&Mn.setAttribute("aria-selected","true"),Mn.id=this.id+"-"+$n,Mn.setAttribute("role","option"),yi.render?yi.render(Mn,Mt,yi):Mn.appendChild(an.createTextNode(yi.displayText||Le(yi))),Mn.hintId=$n}var Tn=At.options.container||an.body,we=Ar.cursorCoords(At.options.alignWithWord?Mt.from:null),rn=we.left,lr=we.bottom,Sn=!0,Kn=0,Yi=0;if(Tn!==an.body){var ys=["absolute","relative","fixed"].indexOf(Vn.getComputedStyle(Tn).position)!==-1,Ns=ys?Tn:Tn.offsetParent,cs=Ns.getBoundingClientRect(),ts=an.body.getBoundingClientRect();Kn=cs.left-ts.left-Ns.scrollLeft,Yi=cs.top-ts.top-Ns.scrollTop}An.style.left=rn-Kn+"px",An.style.top=lr-Yi+"px";var _r=Vn.innerWidth||Math.max(an.body.offsetWidth,an.documentElement.offsetWidth),Kr=Vn.innerHeight||Math.max(an.body.offsetHeight,an.documentElement.offsetHeight);Tn.appendChild(An),Ar.getInputField().setAttribute("aria-autocomplete","list"),Ar.getInputField().setAttribute("aria-owns",this.id),Ar.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var yr=At.options.moveOnOverlap?An.getBoundingClientRect():new DOMRect,dn=At.options.paddingForScrollbar?An.scrollHeight>An.clientHeight+1:!1,oi;setTimeout(function(){oi=Ar.getScrollInfo()});var Jn=yr.bottom-Kr;if(Jn>0){var Un=yr.bottom-yr.top,li=we.top-(we.bottom-yr.top);if(li-Un>0)An.style.top=(lr=we.top-Un-Yi)+"px",Sn=!1;else if(Un>Kr){An.style.height=Kr-5+"px",An.style.top=(lr=we.bottom-yr.top-Yi)+"px";var ct=Ar.getCursor();Mt.from.ch!=ct.ch&&(we=Ar.cursorCoords(ct),An.style.left=(rn=we.left-Kn)+"px",yr=An.getBoundingClientRect())}}var Ot=yr.right-_r;if(dn&&(Ot+=Ar.display.nativeBarWidth),Ot>0&&(yr.right-yr.left>_r&&(An.style.width=_r-5+"px",Ot-=yr.right-yr.left-_r),An.style.left=(rn=Math.max(we.left-Ot-Kn,0))+"px"),dn)for(var Er=An.firstChild;Er;Er=Er.nextSibling)Er.style.paddingRight=Ar.display.nativeBarWidth+"px";if(Ar.addKeyMap(this.keyMap=Me(At,{moveFocus:function(fn,mn){Wt.changeActive(Wt.selectedHint+fn,mn)},setFocus:function(fn){Wt.changeActive(fn)},menuSize:function(){return Wt.screenAmount()},length:ai.length,close:function(){At.close()},pick:function(){Wt.pick()},data:Mt})),At.options.closeOnUnfocus){var ar;Ar.on("blur",this.onBlur=function(){ar=setTimeout(function(){At.close()},100)}),Ar.on("focus",this.onFocus=function(){clearTimeout(ar)})}Ar.on("scroll",this.onScroll=function(){var fn=Ar.getScrollInfo(),mn=Ar.getWrapperElement().getBoundingClientRect();oi||(oi=Ar.getScrollInfo());var Fn=lr+oi.top-fn.top,hn=Fn-(Vn.pageYOffset||(an.documentElement||an.body).scrollTop);if(Sn||(hn+=An.offsetHeight),hn<=mn.top||hn>=mn.bottom)return At.close();An.style.top=Fn+"px",An.style.left=rn+oi.left-fn.left+"px"}),l.on(An,"dblclick",function(fn){var mn=rt(An,fn.target||fn.srcElement);mn&&mn.hintId!=null&&(Wt.changeActive(mn.hintId),Wt.pick())}),l.on(An,"click",function(fn){var mn=rt(An,fn.target||fn.srcElement);mn&&mn.hintId!=null&&(Wt.changeActive(mn.hintId),At.options.completeOnSingleClick&&Wt.pick())}),l.on(An,"mousedown",function(){setTimeout(function(){Ar.focus()},20)});var Jr=this.getSelectedHintRange();return(Jr.from!==0||Jr.to!==0)&&this.scrollToActive(),l.signal(Mt,"select",ai[this.selectedHint],An.childNodes[this.selectedHint]),!0}yt.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var At=this.completion.cm.getInputField();At.removeAttribute("aria-activedescendant"),At.removeAttribute("aria-owns");var Mt=this.completion.cm;this.completion.options.closeOnUnfocus&&(Mt.off("blur",this.onBlur),Mt.off("focus",this.onFocus)),Mt.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var At=this;this.keyMap={Enter:function(){At.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(At,Mt){if(At>=this.data.list.length?At=Mt?this.data.list.length-1:0:At<0&&(At=Mt?0:this.data.list.length-1),this.selectedHint!=At){var Wt=this.hints.childNodes[this.selectedHint];Wt&&(Wt.className=Wt.className.replace(" "+v,""),Wt.removeAttribute("aria-selected")),Wt=this.hints.childNodes[this.selectedHint=At],Wt.className+=" "+v,Wt.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",Wt.id),this.scrollToActive(),l.signal(this.data,"select",this.data.list[this.selectedHint],Wt)}},scrollToActive:function(){var At=this.getSelectedHintRange(),Mt=this.hints.childNodes[At.from],Wt=this.hints.childNodes[At.to],Ar=this.hints.firstChild;Mt.offsetTop<this.hints.scrollTop?this.hints.scrollTop=Mt.offsetTop-Ar.offsetTop:Wt.offsetTop+Wt.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=Wt.offsetTop+Wt.offsetHeight-this.hints.clientHeight+Ar.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var At=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-At),to:Math.min(this.data.list.length-1,this.selectedHint+At)}}};function Tt(At,Mt){if(!At.somethingSelected())return Mt;for(var Wt=[],Ar=0;Ar<Mt.length;Ar++)Mt[Ar].supportsSelection&&Wt.push(Mt[Ar]);return Wt}function Gt(At,Mt,Wt,Ar){if(At.async)At(Mt,Ar,Wt);else{var an=At(Mt,Wt);an&&an.then?an.then(Ar):Ar(an)}}function sr(At,Mt){var Wt=At.getHelpers(Mt,"hint"),Ar;if(Wt.length){var an=function(Vn,An,gi){var ai=Tt(Vn,Wt);function $n(Mn){if(Mn==ai.length)return An(null);Gt(ai[Mn],Vn,gi,function(yi){yi&&yi.list.length>0?An(yi):$n(Mn+1)})}$n(0)};return an.async=!0,an.supportsSelection=!0,an}else return(Ar=At.getHelper(At.getCursor(),"hintWords"))?function(Vn){return l.hint.fromList(Vn,{words:Ar})}:l.hint.anyword?function(Vn,An){return l.hint.anyword(Vn,An)}:function(){}}l.registerHelper("hint","auto",{resolve:sr}),l.registerHelper("hint","fromList",function(At,Mt){var Wt=At.getCursor(),Ar=At.getTokenAt(Wt),an,Vn=l.Pos(Wt.line,Ar.start),An=Wt;Ar.start<Wt.ch&&/\w/.test(Ar.string.charAt(Wt.ch-Ar.start-1))?an=Ar.string.substr(0,Wt.ch-Ar.start):(an="",Vn=Wt);for(var gi=[],ai=0;ai<Mt.words.length;ai++){var $n=Mt.words[ai];$n.slice(0,an.length)==an&&gi.push($n)}if(gi.length)return{list:gi,from:Vn,to:An}}),l.commands.autocomplete=l.showHint;var Mr={hint:l.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};l.defineOption("hintOptions",null)})})();function FD(i,c,l={}){const f=TD.fromTextArea(i.value,{theme:"vars",...Cs(l)});Ga(l,B=>Object.entries(B).forEach(([Y,pe])=>f.setOption(Y,pe)));let v=!1;return f.on("change",()=>{if(v){v=!1;return}c.value=f.getValue()}),Ga(c,B=>{if(B!==f.getValue()){v=!0;const Y=f.listSelections();f.replaceRange(B,f.posFromIndex(0),f.posFromIndex(1/0)),f.setSelections(Y)}},{immediate:!0}),f}const kD={relative:"","font-mono":"","text-sm":""},PD=nl({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean},matched:null,getHint:null},emits:["update:modelValue"],setup(i,{emit:c}){const l=i,f={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},v=Pa(),B=vD(l,"modelValue",c,{passive:!0}),Y=Ks(()=>f[l.mode||""]||l.mode),pe=Ks(()=>l.getHint?{"Ctrl-Space":"autocomplete","Ctrl-.":"autocomplete","Cmd-Space":"autocomplete","Cmd-.":"autocomplete",Tab:"autocomplete"}:{}),de=Ks(()=>l.getHint?{hint:l.getHint}:{});return Ih(async()=>{const Le=FD(v,B,Pc({...Ig(l),mode:Y,hintOptions:de,extraKeys:pe}));Le.setSize("100%","100%"),l.getHint&&Le.on("keyup",(Gt,sr)=>{sr.key.match(/^[\w:-]$/)&&Gt.execCommand("autocomplete")}),setTimeout(()=>Le.refresh(),100);const Me=[];function rt(Gt,sr){Me.push(Le.markText(Le.posFromIndex(Gt),Le.posFromIndex(sr),{className:"highlighted"}))}function yt(){Me.forEach(Gt=>Gt.clear()),wD(l.modelValue,Array.from(l.matched||[]),!0).forEach(Gt=>rt(Gt[0],Gt[1]))}let Tt=0;Ga(()=>[l.modelValue,l.matched],async()=>{clearTimeout(Tt),l.matched&&(Tt=setTimeout(yt,200))},{immediate:!0})}),(Le,Me)=>(xa(),ho("div",kD,[Vi("textarea",{ref_key:"el",ref:v},null,512)]))}});const Dm=(i,c)=>{const l=i.__vccOpts||i;for(const[f,v]of c)l[f]=v;return l},ND={},BD={"bg-gray4:10":"","p-5":"",b:"b main",text:"sm gray5 dark:gray3"};function _D(i,c){return xa(),ho("div",BD,[vp(i.$slots,"default")])}const ID=Dm(ND,[["render",_D]]),OD={style:{"background-color":"var(--cm-background)"},border:"l y gray/20",text:"gray/80",p1:"","min-h-30px":"","max-h-30px":"","select-none":"",flex:"","all:my-auto":""},LD={"mr-2":"","op-60":""},MD={flex:"","gap-2":"","flex-auto":""},jD=nl({__name:"TitleBar",props:{title:null},emits:["titleClick"],setup(i,{emit:c}){return(l,f)=>(xa(),ho("div",OD,[Vi("div",{flex:"",onClick:f[0]||(f[0]=v=>c("titleClick",v))},[vp(l.$slots,"before"),Vi("div",LD,Bo(i.title),1)]),Vi("div",MD,[vp(l.$slots,"default")])]))}}),RD="/@vite/client",vm=$c(),xm=$c(),UD=vm.on,Cm=xm.on;xh(()=>import(RD),[]).then(i=>{const c=i.createHotContext("/");c.on("vite:beforeUpdate",l=>{l.updates.forEach(f=>{vm.trigger(f)})}),c.on("unocss:config-changed",()=>{xm.trigger()})}).catch(i=>{console.error("failed to connect to client vite server, you might need to do manual refresh to see the updates"),console.error(i)});const qp="/__unocss_api",Em=zp(qp).json(),zh=zp(`${qp}/overview`,{immediate:!1}).json(),eo=Em.data,up=zh.data;Cm(()=>{Em.execute(),zh.execute()});function mx(i){const c=zp(Ks(()=>`${qp}/module?id=${encodeURIComponent(Cs(i))}`),{refetch:!0}).json();return Cm(()=>c.execute()),UD(l=>{var f;(l.path===Cs(i)||l.path===Cs(i).slice(((f=eo.value)==null?void 0:f.root.length)||0))&&setTimeout(()=>{c.execute()},50)}),c}function gx(i){const c=Cy(i,500);return zp(Ks(()=>`${qp}/repl?token=${encodeURIComponent(c.value)}`),{refetch:!0}).json()}const lp=Ks(()=>{if(!eo.value)return{workspace:{children:{},items:[]},root:{children:{},items:[]}};const i=eo.value.modules.map(f=>({full:f,path:f})),c=i.filter(f=>f.full.startsWith(eo.value.root)),l=i.filter(f=>!f.full.startsWith(eo.value.root));return c.forEach(f=>f.path=f.path.slice(eo.value.root.length+1)),{workspace:qf(c,"Project Root"),root:qf(l,"Disk Root")}});function qf(i,c){const l={name:c,children:{},items:[]};function f(v,B,Y=l){if(B.length<=1){Y.items.push(v);return}const pe=B.shift();Y.children[pe]||(Y.children[pe]={name:pe,children:{},items:[]}),f(v,B,Y.children[pe])}return i.forEach(v=>{const B=v.path.split(/\//g).filter(Boolean);f(v,B)}),l}const zD={key:0,"ws-wrap":""},HD=Vi("span",{op80:""},".",-1),qD={key:1},$D=nl({__name:"ModuleId",props:{id:null},setup(i){return(c,l)=>i.id&&Cs(eo)?(xa(),ho("span",zD,[i.id.startsWith(Cs(eo).root)?(xa(),ho(Xo,{key:0},[HD,Vi("span",null,Bo(i.id.slice(Cs(eo).root.length)),1)],64)):(xa(),ho("span",qD,Bo(i.id),1))])):bp("",!0)}}),WD=(i,c)=>{const l=Pa(null);return oD(i,()=>{var v;const f=(v=Uh(i))==null?void 0:v.clientHeight;l.value=f?`--${c}: calc(100vh - ${f}px - 2px);`:null}),l};var bm={exports:{}};(function(i,c){(function(l){i.exports=l()})(function(){var l=(Ie,ce)=>()=>(ce||Ie((ce={exports:{}}).exports,ce),ce.exports),f=l((Ie,ce)=>{var me=function(be){return be&&be.Math==Math&&be};ce.exports=me(typeof globalThis=="object"&&globalThis)||me(typeof window=="object"&&window)||me(typeof self=="object"&&self)||me(typeof jl=="object"&&jl)||function(){return this}()||Function("return this")()}),v=l((Ie,ce)=>{ce.exports=function(me){try{return!!me()}catch{return!0}}}),B=l((Ie,ce)=>{var me=v();ce.exports=!me(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),Y=l((Ie,ce)=>{var me=v();ce.exports=!me(function(){var be=function(){}.bind();return typeof be!="function"||be.hasOwnProperty("prototype")})}),pe=l((Ie,ce)=>{var me=Y(),be=Function.prototype.call;ce.exports=me?be.bind(be):function(){return be.apply(be,arguments)}}),de=l(Ie=>{var ce={}.propertyIsEnumerable,me=Object.getOwnPropertyDescriptor,be=me&&!ce.call({1:2},1);Ie.f=be?function(Ee){var He=me(this,Ee);return!!He&&He.enumerable}:ce}),Le=l((Ie,ce)=>{ce.exports=function(me,be){return{enumerable:!(me&1),configurable:!(me&2),writable:!(me&4),value:be}}}),Me=l((Ie,ce)=>{var me=Y(),be=Function.prototype,Ee=be.bind,He=be.call,et=me&&Ee.bind(He,He);ce.exports=me?function(st){return st&&et(st)}:function(st){return st&&function(){return He.apply(st,arguments)}}}),rt=l((Ie,ce)=>{var me=Me(),be=me({}.toString),Ee=me("".slice);ce.exports=function(He){return Ee(be(He),8,-1)}}),yt=l((Ie,ce)=>{var me=f(),be=Me(),Ee=v(),He=rt(),et=me.Object,st=be("".split);ce.exports=Ee(function(){return!et("z").propertyIsEnumerable(0)})?function(Dt){return He(Dt)=="String"?st(Dt,""):et(Dt)}:et}),Tt=l((Ie,ce)=>{var me=f(),be=me.TypeError;ce.exports=function(Ee){if(Ee==null)throw be("Can't call method on "+Ee);return Ee}}),Gt=l((Ie,ce)=>{var me=yt(),be=Tt();ce.exports=function(Ee){return me(be(Ee))}}),sr=l((Ie,ce)=>{ce.exports=function(me){return typeof me=="function"}}),Mr=l((Ie,ce)=>{var me=sr();ce.exports=function(be){return typeof be=="object"?be!==null:me(be)}}),At=l((Ie,ce)=>{var me=f(),be=sr(),Ee=function(He){return be(He)?He:void 0};ce.exports=function(He,et){return arguments.length<2?Ee(me[He]):me[He]&&me[He][et]}}),Mt=l((Ie,ce)=>{var me=Me();ce.exports=me({}.isPrototypeOf)}),Wt=l((Ie,ce)=>{var me=At();ce.exports=me("navigator","userAgent")||""}),Ar=l((Ie,ce)=>{var me=f(),be=Wt(),Ee=me.process,He=me.Deno,et=Ee&&Ee.versions||He&&He.version,st=et&&et.v8,Dt,Vt;st&&(Dt=st.split("."),Vt=Dt[0]>0&&Dt[0]<4?1:+(Dt[0]+Dt[1])),!Vt&&be&&(Dt=be.match(/Edge\/(\d+)/),(!Dt||Dt[1]>=74)&&(Dt=be.match(/Chrome\/(\d+)/),Dt&&(Vt=+Dt[1]))),ce.exports=Vt}),an=l((Ie,ce)=>{var me=Ar(),be=v();ce.exports=!!Object.getOwnPropertySymbols&&!be(function(){var Ee=Symbol();return!String(Ee)||!(Object(Ee)instanceof Symbol)||!Symbol.sham&&me&&me<41})}),Vn=l((Ie,ce)=>{var me=an();ce.exports=me&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),An=l((Ie,ce)=>{var me=f(),be=At(),Ee=sr(),He=Mt(),et=Vn(),st=me.Object;ce.exports=et?function(Dt){return typeof Dt=="symbol"}:function(Dt){var Vt=be("Symbol");return Ee(Vt)&&He(Vt.prototype,st(Dt))}}),gi=l((Ie,ce)=>{var me=f(),be=me.String;ce.exports=function(Ee){try{return be(Ee)}catch{return"Object"}}}),ai=l((Ie,ce)=>{var me=f(),be=sr(),Ee=gi(),He=me.TypeError;ce.exports=function(et){if(be(et))return et;throw He(Ee(et)+" is not a function")}}),$n=l((Ie,ce)=>{var me=ai();ce.exports=function(be,Ee){var He=be[Ee];return He==null?void 0:me(He)}}),Mn=l((Ie,ce)=>{var me=f(),be=pe(),Ee=sr(),He=Mr(),et=me.TypeError;ce.exports=function(st,Dt){var Vt,nr;if(Dt==="string"&&Ee(Vt=st.toString)&&!He(nr=be(Vt,st))||Ee(Vt=st.valueOf)&&!He(nr=be(Vt,st))||Dt!=="string"&&Ee(Vt=st.toString)&&!He(nr=be(Vt,st)))return nr;throw et("Can't convert object to primitive value")}}),yi=l((Ie,ce)=>{ce.exports=!1}),Cr=l((Ie,ce)=>{var me=f(),be=Object.defineProperty;ce.exports=function(Ee,He){try{be(me,Ee,{value:He,configurable:!0,writable:!0})}catch{me[Ee]=He}return He}}),Tn=l((Ie,ce)=>{var me=f(),be=Cr(),Ee="__core-js_shared__",He=me[Ee]||be(Ee,{});ce.exports=He}),we=l((Ie,ce)=>{var me=yi(),be=Tn();(ce.exports=function(Ee,He){return be[Ee]||(be[Ee]=He!==void 0?He:{})})("versions",[]).push({version:"3.22.2",mode:me?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"})}),rn=l((Ie,ce)=>{var me=f(),be=Tt(),Ee=me.Object;ce.exports=function(He){return Ee(be(He))}}),lr=l((Ie,ce)=>{var me=Me(),be=rn(),Ee=me({}.hasOwnProperty);ce.exports=Object.hasOwn||function(He,et){return Ee(be(He),et)}}),Sn=l((Ie,ce)=>{var me=Me(),be=0,Ee=Math.random(),He=me(1 .toString);ce.exports=function(et){return"Symbol("+(et===void 0?"":et)+")_"+He(++be+Ee,36)}}),Kn=l((Ie,ce)=>{var me=f(),be=we(),Ee=lr(),He=Sn(),et=an(),st=Vn(),Dt=be("wks"),Vt=me.Symbol,nr=Vt&&Vt.for,Tr=st?Vt:Vt&&Vt.withoutSetter||He;ce.exports=function(zr){if(!Ee(Dt,zr)||!(et||typeof Dt[zr]=="string")){var Yr="Symbol."+zr;et&&Ee(Vt,zr)?Dt[zr]=Vt[zr]:st&&nr?Dt[zr]=nr(Yr):Dt[zr]=Tr(Yr)}return Dt[zr]}}),Yi=l((Ie,ce)=>{var me=f(),be=pe(),Ee=Mr(),He=An(),et=$n(),st=Mn(),Dt=Kn(),Vt=me.TypeError,nr=Dt("toPrimitive");ce.exports=function(Tr,zr){if(!Ee(Tr)||He(Tr))return Tr;var Yr=et(Tr,nr),tn;if(Yr){if(zr===void 0&&(zr="default"),tn=be(Yr,Tr,zr),!Ee(tn)||He(tn))return tn;throw Vt("Can't convert object to primitive value")}return zr===void 0&&(zr="number"),st(Tr,zr)}}),ys=l((Ie,ce)=>{var me=Yi(),be=An();ce.exports=function(Ee){var He=me(Ee,"string");return be(He)?He:He+""}}),Ns=l((Ie,ce)=>{var me=f(),be=Mr(),Ee=me.document,He=be(Ee)&&be(Ee.createElement);ce.exports=function(et){return He?Ee.createElement(et):{}}}),cs=l((Ie,ce)=>{var me=B(),be=v(),Ee=Ns();ce.exports=!me&&!be(function(){return Object.defineProperty(Ee("div"),"a",{get:function(){return 7}}).a!=7})}),ts=l(Ie=>{var ce=B(),me=pe(),be=de(),Ee=Le(),He=Gt(),et=ys(),st=lr(),Dt=cs(),Vt=Object.getOwnPropertyDescriptor;Ie.f=ce?Vt:function(nr,Tr){if(nr=He(nr),Tr=et(Tr),Dt)try{return Vt(nr,Tr)}catch{}if(st(nr,Tr))return Ee(!me(be.f,nr,Tr),nr[Tr])}}),_r=l((Ie,ce)=>{var me=B(),be=v();ce.exports=me&&be(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Kr=l((Ie,ce)=>{var me=f(),be=Mr(),Ee=me.String,He=me.TypeError;ce.exports=function(et){if(be(et))return et;throw He(Ee(et)+" is not an object")}}),yr=l(Ie=>{var ce=f(),me=B(),be=cs(),Ee=_r(),He=Kr(),et=ys(),st=ce.TypeError,Dt=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,nr="enumerable",Tr="configurable",zr="writable";Ie.f=me?Ee?function(Yr,tn,Pr){if(He(Yr),tn=et(tn),He(Pr),typeof Yr=="function"&&tn==="prototype"&&"value"in Pr&&zr in Pr&&!Pr[zr]){var kn=Vt(Yr,tn);kn&&kn[zr]&&(Yr[tn]=Pr.value,Pr={configurable:Tr in Pr?Pr[Tr]:kn[Tr],enumerable:nr in Pr?Pr[nr]:kn[nr],writable:!1})}return Dt(Yr,tn,Pr)}:Dt:function(Yr,tn,Pr){if(He(Yr),tn=et(tn),He(Pr),be)try{return Dt(Yr,tn,Pr)}catch{}if("get"in Pr||"set"in Pr)throw st("Accessors not supported");return"value"in Pr&&(Yr[tn]=Pr.value),Yr}}),dn=l((Ie,ce)=>{var me=B(),be=yr(),Ee=Le();ce.exports=me?function(He,et,st){return be.f(He,et,Ee(1,st))}:function(He,et,st){return He[et]=st,He}}),oi=l((Ie,ce)=>{var me=Me(),be=sr(),Ee=Tn(),He=me(Function.toString);be(Ee.inspectSource)||(Ee.inspectSource=function(et){return He(et)}),ce.exports=Ee.inspectSource}),Jn=l((Ie,ce)=>{var me=f(),be=sr(),Ee=oi(),He=me.WeakMap;ce.exports=be(He)&&/native code/.test(Ee(He))}),Un=l((Ie,ce)=>{var me=we(),be=Sn(),Ee=me("keys");ce.exports=function(He){return Ee[He]||(Ee[He]=be(He))}}),li=l((Ie,ce)=>{ce.exports={}}),ct=l((Ie,ce)=>{var me=Jn(),be=f(),Ee=Me(),He=Mr(),et=dn(),st=lr(),Dt=Tn(),Vt=Un(),nr=li(),Tr="Object already initialized",zr=be.TypeError,Yr=be.WeakMap,tn,Pr,kn,pi=function(xi){return kn(xi)?Pr(xi):tn(xi,{})},yn=function(xi){return function(ti){var Gn;if(!He(ti)||(Gn=Pr(ti)).type!==xi)throw zr("Incompatible receiver, "+xi+" required");return Gn}};me||Dt.state?(Ji=Dt.state||(Dt.state=new Yr),vi=Ee(Ji.get),Xe=Ee(Ji.has),Ds=Ee(Ji.set),tn=function(xi,ti){if(Xe(Ji,xi))throw new zr(Tr);return ti.facade=xi,Ds(Ji,xi,ti),ti},Pr=function(xi){return vi(Ji,xi)||{}},kn=function(xi){return Xe(Ji,xi)}):(Li=Vt("state"),nr[Li]=!0,tn=function(xi,ti){if(st(xi,Li))throw new zr(Tr);return ti.facade=xi,et(xi,Li,ti),ti},Pr=function(xi){return st(xi,Li)?xi[Li]:{}},kn=function(xi){return st(xi,Li)});var Ji,vi,Xe,Ds,Li;ce.exports={set:tn,get:Pr,has:kn,enforce:pi,getterFor:yn}}),Ot=l((Ie,ce)=>{var me=B(),be=lr(),Ee=Function.prototype,He=me&&Object.getOwnPropertyDescriptor,et=be(Ee,"name"),st=et&&function(){}.name==="something",Dt=et&&(!me||me&&He(Ee,"name").configurable);ce.exports={EXISTS:et,PROPER:st,CONFIGURABLE:Dt}}),Er=l((Ie,ce)=>{var me=f(),be=sr(),Ee=lr(),He=dn(),et=Cr(),st=oi(),Dt=ct(),Vt=Ot().CONFIGURABLE,nr=Dt.get,Tr=Dt.enforce,zr=String(String).split("String");(ce.exports=function(Yr,tn,Pr,kn){var pi=kn?!!kn.unsafe:!1,yn=kn?!!kn.enumerable:!1,Ji=kn?!!kn.noTargetGet:!1,vi=kn&&kn.name!==void 0?kn.name:tn,Xe;if(be(Pr)&&(String(vi).slice(0,7)==="Symbol("&&(vi="["+String(vi).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ee(Pr,"name")||Vt&&Pr.name!==vi)&&He(Pr,"name",vi),Xe=Tr(Pr),Xe.source||(Xe.source=zr.join(typeof vi=="string"?vi:""))),Yr===me){yn?Yr[tn]=Pr:et(tn,Pr);return}else pi?!Ji&&Yr[tn]&&(yn=!0):delete Yr[tn];yn?Yr[tn]=Pr:He(Yr,tn,Pr)})(Function.prototype,"toString",function(){return be(this)&&nr(this).source||st(this)})}),ar=l((Ie,ce)=>{var me=Math.ceil,be=Math.floor;ce.exports=function(Ee){var He=+Ee;return He!==He||He===0?0:(He>0?be:me)(He)}}),Jr=l((Ie,ce)=>{var me=ar(),be=Math.max,Ee=Math.min;ce.exports=function(He,et){var st=me(He);return st<0?be(st+et,0):Ee(st,et)}}),fn=l((Ie,ce)=>{var me=ar(),be=Math.min;ce.exports=function(Ee){return Ee>0?be(me(Ee),9007199254740991):0}}),mn=l((Ie,ce)=>{var me=fn();ce.exports=function(be){return me(be.length)}}),Fn=l((Ie,ce)=>{var me=Gt(),be=Jr(),Ee=mn(),He=function(et){return function(st,Dt,Vt){var nr=me(st),Tr=Ee(nr),zr=be(Vt,Tr),Yr;if(et&&Dt!=Dt){for(;Tr>zr;)if(Yr=nr[zr++],Yr!=Yr)return!0}else for(;Tr>zr;zr++)if((et||zr in nr)&&nr[zr]===Dt)return et||zr||0;return!et&&-1}};ce.exports={includes:He(!0),indexOf:He(!1)}}),hn=l((Ie,ce)=>{var me=Me(),be=lr(),Ee=Gt(),He=Fn().indexOf,et=li(),st=me([].push);ce.exports=function(Dt,Vt){var nr=Ee(Dt),Tr=0,zr=[],Yr;for(Yr in nr)!be(et,Yr)&&be(nr,Yr)&&st(zr,Yr);for(;Vt.length>Tr;)be(nr,Yr=Vt[Tr++])&&(~He(zr,Yr)||st(zr,Yr));return zr}}),lt=l((Ie,ce)=>{ce.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),br=l(Ie=>{var ce=hn(),me=lt(),be=me.concat("length","prototype");Ie.f=Object.getOwnPropertyNames||function(Ee){return ce(Ee,be)}}),jt=l(Ie=>{Ie.f=Object.getOwnPropertySymbols}),jn=l((Ie,ce)=>{var me=At(),be=Me(),Ee=br(),He=jt(),et=Kr(),st=be([].concat);ce.exports=me("Reflect","ownKeys")||function(Dt){var Vt=Ee.f(et(Dt)),nr=He.f;return nr?st(Vt,nr(Dt)):Vt}}),Di=l((Ie,ce)=>{var me=lr(),be=jn(),Ee=ts(),He=yr();ce.exports=function(et,st,Dt){for(var Vt=be(st),nr=He.f,Tr=Ee.f,zr=0;zr<Vt.length;zr++){var Yr=Vt[zr];!me(et,Yr)&&!(Dt&&me(Dt,Yr))&&nr(et,Yr,Tr(st,Yr))}}}),ns=l((Ie,ce)=>{var me=v(),be=sr(),Ee=/#|\.prototype\./,He=function(nr,Tr){var zr=st[et(nr)];return zr==Vt?!0:zr==Dt?!1:be(Tr)?me(Tr):!!Tr},et=He.normalize=function(nr){return String(nr).replace(Ee,".").toLowerCase()},st=He.data={},Dt=He.NATIVE="N",Vt=He.POLYFILL="P";ce.exports=He}),is=l((Ie,ce)=>{var me=f(),be=ts().f,Ee=dn(),He=Er(),et=Cr(),st=Di(),Dt=ns();ce.exports=function(Vt,nr){var Tr=Vt.target,zr=Vt.global,Yr=Vt.stat,tn,Pr,kn,pi,yn,Ji;if(zr?Pr=me:Yr?Pr=me[Tr]||et(Tr,{}):Pr=(me[Tr]||{}).prototype,Pr)for(kn in nr){if(yn=nr[kn],Vt.noTargetGet?(Ji=be(Pr,kn),pi=Ji&&Ji.value):pi=Pr[kn],tn=Dt(zr?kn:Tr+(Yr?".":"#")+kn,Vt.forced),!tn&&pi!==void 0){if(typeof yn==typeof pi)continue;st(yn,pi)}(Vt.sham||pi&&pi.sham)&&Ee(yn,"sham",!0),He(Pr,kn,yn,Vt)}}}),ls=l((Ie,ce)=>{var me=rt();ce.exports=Array.isArray||function(be){return me(be)=="Array"}}),zi=l((Ie,ce)=>{var me=Me(),be=ai(),Ee=Y(),He=me(me.bind);ce.exports=function(et,st){return be(et),st===void 0?et:Ee?He(et,st):function(){return et.apply(st,arguments)}}}),Ls=l((Ie,ce)=>{var me=f(),be=ls(),Ee=mn(),He=zi(),et=me.TypeError,st=function(Dt,Vt,nr,Tr,zr,Yr,tn,Pr){for(var kn=zr,pi=0,yn=tn?He(tn,Pr):!1,Ji,vi;pi<Tr;){if(pi in nr){if(Ji=yn?yn(nr[pi],pi,Vt):nr[pi],Yr>0&&be(Ji))vi=Ee(Ji),kn=st(Dt,Vt,Ji,vi,kn,Yr-1)-1;else{if(kn>=9007199254740991)throw et("Exceed the acceptable array length");Dt[kn]=Ji}kn++}pi++}return kn};ce.exports=st}),qn=l((Ie,ce)=>{var me=Kn(),be=me("toStringTag"),Ee={};Ee[be]="z",ce.exports=String(Ee)==="[object z]"}),Fr=l((Ie,ce)=>{var me=f(),be=qn(),Ee=sr(),He=rt(),et=Kn(),st=et("toStringTag"),Dt=me.Object,Vt=He(function(){return arguments}())=="Arguments",nr=function(Tr,zr){try{return Tr[zr]}catch{}};ce.exports=be?He:function(Tr){var zr,Yr,tn;return Tr===void 0?"Undefined":Tr===null?"Null":typeof(Yr=nr(zr=Dt(Tr),st))=="string"?Yr:Vt?He(zr):(tn=He(zr))=="Object"&&Ee(zr.callee)?"Arguments":tn}}),Br=l((Ie,ce)=>{var me=Me(),be=v(),Ee=sr(),He=Fr(),et=At(),st=oi(),Dt=function(){},Vt=[],nr=et("Reflect","construct"),Tr=/^\s*(?:class|function)\b/,zr=me(Tr.exec),Yr=!Tr.exec(Dt),tn=function(kn){if(!Ee(kn))return!1;try{return nr(Dt,Vt,kn),!0}catch{return!1}},Pr=function(kn){if(!Ee(kn))return!1;switch(He(kn)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yr||!!zr(Tr,st(kn))}catch{return!0}};Pr.sham=!0,ce.exports=!nr||be(function(){var kn;return tn(tn.call)||!tn(Object)||!tn(function(){kn=!0})||kn})?Pr:tn}),Xt=l((Ie,ce)=>{var me=f(),be=ls(),Ee=Br(),He=Mr(),et=Kn(),st=et("species"),Dt=me.Array;ce.exports=function(Vt){var nr;return be(Vt)&&(nr=Vt.constructor,Ee(nr)&&(nr===Dt||be(nr.prototype))?nr=void 0:He(nr)&&(nr=nr[st],nr===null&&(nr=void 0))),nr===void 0?Dt:nr}}),Vr=l((Ie,ce)=>{var me=Xt();ce.exports=function(be,Ee){return new(me(be))(Ee===0?0:Ee)}}),cr=l(()=>{var Ie=is(),ce=Ls(),me=ai(),be=rn(),Ee=mn(),He=Vr();Ie({target:"Array",proto:!0},{flatMap:function(et){var st=be(this),Dt=Ee(st),Vt;return me(et),Vt=He(st,0),Vt.length=ce(Vt,st,st,Dt,0,1,et,arguments.length>1?arguments[1]:void 0),Vt}})}),gn=l((Ie,ce)=>{ce.exports={}}),zt=l((Ie,ce)=>{var me=Kn(),be=gn(),Ee=me("iterator"),He=Array.prototype;ce.exports=function(et){return et!==void 0&&(be.Array===et||He[Ee]===et)}}),Qn=l((Ie,ce)=>{var me=Fr(),be=$n(),Ee=gn(),He=Kn(),et=He("iterator");ce.exports=function(st){if(st!=null)return be(st,et)||be(st,"@@iterator")||Ee[me(st)]}}),wr=l((Ie,ce)=>{var me=f(),be=pe(),Ee=ai(),He=Kr(),et=gi(),st=Qn(),Dt=me.TypeError;ce.exports=function(Vt,nr){var Tr=arguments.length<2?st(Vt):nr;if(Ee(Tr))return He(be(Tr,Vt));throw Dt(et(Vt)+" is not iterable")}}),Nt=l((Ie,ce)=>{var me=pe(),be=Kr(),Ee=$n();ce.exports=function(He,et,st){var Dt,Vt;be(He);try{if(Dt=Ee(He,"return"),!Dt){if(et==="throw")throw st;return st}Dt=me(Dt,He)}catch(nr){Vt=!0,Dt=nr}if(et==="throw")throw st;if(Vt)throw Dt;return be(Dt),st}}),Ue=l((Ie,ce)=>{var me=f(),be=zi(),Ee=pe(),He=Kr(),et=gi(),st=zt(),Dt=mn(),Vt=Mt(),nr=wr(),Tr=Qn(),zr=Nt(),Yr=me.TypeError,tn=function(kn,pi){this.stopped=kn,this.result=pi},Pr=tn.prototype;ce.exports=function(kn,pi,yn){var Ji=yn&&yn.that,vi=!!(yn&&yn.AS_ENTRIES),Xe=!!(yn&&yn.IS_ITERATOR),Ds=!!(yn&&yn.INTERRUPTED),Li=be(pi,Ji),xi,ti,Gn,$s,js,S,Je,jr=function(ci){return xi&&zr(xi,"normal",ci),new tn(!0,ci)},sn=function(ci){return vi?(He(ci),Ds?Li(ci[0],ci[1],jr):Li(ci[0],ci[1])):Ds?Li(ci,jr):Li(ci)};if(Xe)xi=kn;else{if(ti=Tr(kn),!ti)throw Yr(et(kn)+" is not iterable");if(st(ti)){for(Gn=0,$s=Dt(kn);$s>Gn;Gn++)if(js=sn(kn[Gn]),js&&Vt(Pr,js))return js;return new tn(!1)}xi=nr(kn,ti)}for(S=xi.next;!(Je=Ee(S,xi)).done;){try{js=sn(Je.value)}catch(ci){zr(xi,"throw",ci)}if(typeof js=="object"&&js&&Vt(Pr,js))return js}return new tn(!1)}}),Bt=l((Ie,ce)=>{var me=ys(),be=yr(),Ee=Le();ce.exports=function(He,et,st){var Dt=me(et);Dt in He?be.f(He,Dt,Ee(0,st)):He[Dt]=st}}),Jt=l(()=>{var Ie=is(),ce=Ue(),me=Bt();Ie({target:"Object",stat:!0},{fromEntries:function(be){var Ee={};return ce(be,function(He,et){me(Ee,He,et)},{AS_ENTRIES:!0}),Ee}})}),tr=l(()=>{var Ie=is(),ce=f();Ie({global:!0},{globalThis:ce})}),Ur=l(()=>{tr()}),on=l(()=>{var Ie=is(),ce=Ls(),me=rn(),be=mn(),Ee=ar(),He=Vr();Ie({target:"Array",proto:!0},{flat:function(){var et=arguments.length?arguments[0]:void 0,st=me(this),Dt=be(st),Vt=He(st,0);return Vt.length=ce(Vt,st,st,Dt,0,et===void 0?1:Ee(et)),Vt}})}),Rt=l((Ie,ce)=>{var me=["cliName","cliCategory","cliDescription"],be=["_"],Ee=["languageId"],He,et,st,Dt,Vt,nr;function Tr(m,b){if(m==null)return{};var g=zr(m,b),A,E;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);for(E=0;E<y.length;E++)A=y[E],!(b.indexOf(A)>=0)&&(!Object.prototype.propertyIsEnumerable.call(m,A)||(g[A]=m[A]))}return g}function zr(m,b){if(m==null)return{};var g={},A=Object.keys(m),E,y;for(y=0;y<A.length;y++)E=A[y],!(b.indexOf(E)>=0)&&(g[E]=m[E]);return g}cr(),Jt(),Ur(),on();function Yr(m,b){return b||(b=m.slice(0)),Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(b)}}))}var tn=Object.create,Pr=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,pi=Object.getOwnPropertyNames,yn=Object.getPrototypeOf,Ji=Object.prototype.hasOwnProperty,vi=(m,b)=>function(){return m&&(b=(0,m[pi(m)[0]])(m=0)),b},Xe=(m,b)=>function(){return b||(0,m[pi(m)[0]])((b={exports:{}}).exports,b),b.exports},Ds=(m,b)=>{for(var g in b)Pr(m,g,{get:b[g],enumerable:!0})},Li=(m,b,g,A)=>{if(b&&typeof b=="object"||typeof b=="function")for(let E of pi(b))!Ji.call(m,E)&&E!==g&&Pr(m,E,{get:()=>b[E],enumerable:!(A=kn(b,E))||A.enumerable});return m},xi=(m,b,g)=>(g=m!=null?tn(yn(m)):{},Li(b||!m||!m.__esModule?Pr(g,"default",{value:m,enumerable:!0}):g,m)),ti=m=>Li(Pr({},"__esModule",{value:!0}),m),Gn,$s,js,S=vi({"<define:process>"(){Gn={},$s=[],js={env:Gn,argv:$s}}}),Je=Xe({"package.json"(m,b){b.exports={version:"2.7.1"}}}),jr=Xe({"node_modules/diff/lib/diff/base.js"(m){S(),Object.defineProperty(m,"__esModule",{value:!0}),m.default=b;function b(){}b.prototype={diff:function(E,y){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=x.callback;typeof x=="function"&&(w=x,x={}),this.options=x;var k=this;function _(J){return w?(setTimeout(function(){w(void 0,J)},0),!0):J}E=this.castInput(E),y=this.castInput(y),E=this.removeEmpty(this.tokenize(E)),y=this.removeEmpty(this.tokenize(y));var $=y.length,j=E.length,W=1,I=$+j,O=[{newPos:-1,components:[]}],z=this.extractCommon(O[0],y,E,0);if(O[0].newPos+1>=$&&z+1>=j)return _([{value:this.join(y),count:y.length}]);function le(){for(var J=-1*W;J<=W;J+=2){var ee=void 0,ue=O[J-1],ye=O[J+1],ge=(ye?ye.newPos:0)-J;ue&&(O[J-1]=void 0);var De=ue&&ue.newPos+1<$,V=ye&&0<=ge&&ge<j;if(!De&&!V){O[J]=void 0;continue}if(!De||V&&ue.newPos<ye.newPos?(ee=A(ye),k.pushComponent(ee.components,void 0,!0)):(ee=ue,ee.newPos++,k.pushComponent(ee.components,!0,void 0)),ge=k.extractCommon(ee,y,E,J),ee.newPos+1>=$&&ge+1>=j)return _(g(k,ee.components,y,E,k.useLongestToken));O[J]=ee}W++}if(w)(function J(){setTimeout(function(){if(W>I)return w();le()||J()},0)})();else for(;W<=I;){var fe=le();if(fe)return fe}},pushComponent:function(E,y,x){var w=E[E.length-1];w&&w.added===y&&w.removed===x?E[E.length-1]={count:w.count+1,added:y,removed:x}:E.push({count:1,added:y,removed:x})},extractCommon:function(E,y,x,w){for(var k=y.length,_=x.length,$=E.newPos,j=$-w,W=0;$+1<k&&j+1<_&&this.equals(y[$+1],x[j+1]);)$++,j++,W++;return W&&E.components.push({count:W}),E.newPos=$,j},equals:function(E,y){return this.options.comparator?this.options.comparator(E,y):E===y||this.options.ignoreCase&&E.toLowerCase()===y.toLowerCase()},removeEmpty:function(E){for(var y=[],x=0;x<E.length;x++)E[x]&&y.push(E[x]);return y},castInput:function(E){return E},tokenize:function(E){return E.split("")},join:function(E){return E.join("")}};function g(E,y,x,w,k){for(var _=0,$=y.length,j=0,W=0;_<$;_++){var I=y[_];if(I.removed){if(I.value=E.join(w.slice(W,W+I.count)),W+=I.count,_&&y[_-1].added){var O=y[_-1];y[_-1]=y[_],y[_]=O}}else{if(!I.added&&k){var z=x.slice(j,j+I.count);z=z.map(function(fe,J){var ee=w[W+J];return ee.length>fe.length?ee:fe}),I.value=E.join(z)}else I.value=E.join(x.slice(j,j+I.count));j+=I.count,I.added||(W+=I.count)}}var le=y[$-1];return $>1&&typeof le.value=="string"&&(le.added||le.removed)&&E.equals("",le.value)&&(y[$-2].value+=le.value,y.pop()),y}function A(E){return{newPos:E.newPos,components:E.components.slice(0)}}}}),sn=Xe({"node_modules/diff/lib/diff/array.js"(m){S(),Object.defineProperty(m,"__esModule",{value:!0}),m.diffArrays=E,m.arrayDiff=void 0;var b=g(jr());function g(y){return y&&y.__esModule?y:{default:y}}var A=new b.default;m.arrayDiff=A,A.tokenize=function(y){return y.slice()},A.join=A.removeEmpty=function(y){return y};function E(y,x,w){return A.diff(y,x,w)}}}),ci=Xe({"src/document/doc-builders.js"(m,b){S();function g(X){return{type:"concat",parts:X}}function A(X){return{type:"indent",contents:X}}function E(X,N){return{type:"align",contents:N,n:X}}function y(X){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:N.id,contents:X,break:Boolean(N.shouldBreak),expandedStates:N.expandedStates}}function x(X){return E(Number.NEGATIVE_INFINITY,X)}function w(X){return E({type:"root"},X)}function k(X){return E(-1,X)}function _(X,N){return y(X[0],Object.assign(Object.assign({},N),{},{expandedStates:X}))}function $(X){return{type:"fill",parts:X}}function j(X,N){let G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:X,flatContents:N,groupId:G.groupId}}function W(X,N){return{type:"indent-if-break",contents:X,groupId:N.groupId,negate:N.negate}}function I(X){return{type:"line-suffix",contents:X}}var O={type:"line-suffix-boundary"},z={type:"break-parent"},le={type:"trim"},fe={type:"line",hard:!0},J={type:"line",hard:!0,literal:!0},ee={type:"line"},ue={type:"line",soft:!0},ye=g([fe,z]),ge=g([J,z]),De={type:"cursor",placeholder:Symbol("cursor")};function V(X,N){let G=[];for(let q=0;q<N.length;q++)q!==0&&G.push(X),G.push(N[q]);return g(G)}function L(X,N,G){let q=X;if(N>0){for(let se=0;se<Math.floor(N/G);++se)q=A(q);q=E(N%G,q),q=E(Number.NEGATIVE_INFINITY,q)}return q}function R(X,N){return{type:"label",label:X,contents:N}}b.exports={concat:g,join:V,line:ee,softline:ue,hardline:ye,literalline:ge,group:y,conditionalGroup:_,fill:$,lineSuffix:I,lineSuffixBoundary:O,cursor:De,breakParent:z,ifBreak:j,trim:le,indent:A,indentIfBreak:W,align:E,addAlignmentToDoc:L,markAsRoot:w,dedentToRoot:x,dedent:k,hardlineWithoutBreakParent:fe,literallineWithoutBreakParent:J,label:R}}}),ss=Xe({"src/common/end-of-line.js"(m,b){S();function g(x){let w=x.indexOf("\r");return w>=0?x.charAt(w+1)===`
|
|
24
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Fe;Me&&(Fe=window.scrollY),a.input.focus(),Me&&window.scrollTo(null,Fe),a.input.reset(),o.somethingSelected()||(s.value=r.prevInput=" "),r.contextMenuPending=Ye,a.selForContextMenu=o.doc.sel,clearTimeout(a.detectingSelectAll);function Pt(){if(s.selectionStart!=null){var $t=o.somethingSelected(),xr="\u200B"+($t?s.value:"");s.value="\u21DA",s.value=xr,r.prevInput=$t?"":"\u200B",s.selectionStart=1,s.selectionEnd=xr.length,a.selForContextMenu=o.doc.sel}}function Ye(){if(r.contextMenuPending==Ye&&(r.contextMenuPending=!1,r.wrapper.style.cssText=H,s.style.cssText=M,de&&Le<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=d),s.selectionStart!=null)){(!de||de&&Le<9)&&Pt();var $t=0,xr=function(){a.selForContextMenu==o.doc.sel&&s.selectionStart==0&&s.selectionEnd>0&&r.prevInput=="\u200B"?Ys(o,bi)(o):$t++<10?a.detectingSelectAll=setTimeout(xr,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(xr,200)}}if(de&&Le>=9&&Pt(),$n){tr(e);var ur=function(){cr(window,"mouseup",ur),setTimeout(Ye,20)};Xt(window,"mouseup",ur)}else setTimeout(Ye,50)},It.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},It.prototype.setUneditable=function(){},It.prototype.needsContentAttribute=!1;function Qr(e,r){if(r=r?ts(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var o=Kn();r.autofocus=o==e||e.getAttribute("autofocus")!=null&&o==document.body}function a(){e.value=F.getValue()}var s;if(e.form&&(Xt(e.form,"submit",a),!r.leaveSubmitMethodAlone)){var h=e.form;s=h.submit;try{var d=h.submit=function(){a(),h.submit=s,h.submit(),h.submit=d}}catch{}}r.finishInit=function(M){M.save=a,M.getTextArea=function(){return e},M.toTextArea=function(){M.toTextArea=isNaN,a(),e.parentNode.removeChild(M.getWrapperElement()),e.style.display="",e.form&&(cr(e.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=s))}},e.style.display="none";var F=qe(function(M){return e.parentNode.insertBefore(M,e.nextSibling)},r);return F}function ht(e){e.off=cr,e.on=Xt,e.wheelEventPixels=Wl,e.Doc=Os,e.splitLines=Ee,e.countColumn=_r,e.findColumn=ct,e.isWordChar=lt,e.Pass=oi,e.signal=gn,e.Line=nn,e.changeEnd=Wa,e.scrollbarModel=Hu,e.Pos=S,e.cmpPos=Je,e.modes=Vt,e.mimeModes=nr,e.resolveMode=Yr,e.getMode=tn,e.modeExtensions=Pr,e.extendMode=kn,e.copyState=pi,e.startState=Ji,e.innerMode=yn,e.commands=b,e.keyMap=Wo,e.keyName=D,e.isModifierKey=u,e.lookupKey=t,e.normalizeKeyMap=n,e.StringStream=vi,e.SharedTextMarker=In,e.TextMarker=vr,e.LineWidget=Ri,e.e_preventDefault=Ue,e.e_stopPropagation=Bt,e.e_stop=tr,e.addClass=Yi,e.contains=Sn,e.rmClass=yi,e.keyNames=Nu}We(qe),ot(qe);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Rr in Os.prototype)Os.prototype.hasOwnProperty(Rr)&&yr(Wr,Rr)<0&&(qe.prototype[Rr]=function(e){return function(){return e.apply(this.doc,arguments)}}(Os.prototype[Rr]));return Nt(Os),qe.inputStyles={textarea:It,contenteditable:Yt},qe.defineMode=function(e){!qe.defaults.mode&&e!="null"&&(qe.defaults.mode=e),Tr.apply(this,arguments)},qe.defineMIME=zr,qe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),qe.defineMIME("text/plain","null"),qe.defineExtension=function(e,r){qe.prototype[e]=r},qe.defineDocExtension=function(e,r){Os.prototype[e]=r},qe.fromTextArea=Qr,ht(qe),qe.version="5.65.6",qe})})(Ul);const TD=Ul.exports;var gm={exports:{}};(function(i,c){(function(l){l(Ul.exports)})(function(l){l.defineMode("javascript",function(f,v){var B=f.indentUnit,Y=v.statementIndent,pe=v.jsonld,de=v.json||pe,Le=v.trackScope!==!1,Me=v.typescript,rt=v.wordCharacters||/[\w$\xa1-\uffff]/,yt=function(){function S(ni){return{type:ni,style:"keyword"}}var Je=S("keyword a"),jr=S("keyword b"),sn=S("keyword c"),ci=S("keyword d"),ss=S("operator"),Zi={type:"atom",style:"atom"};return{if:S("if"),while:Je,with:Je,else:jr,do:jr,try:jr,finally:jr,return:ci,break:ci,continue:ci,new:S("new"),delete:sn,void:sn,throw:sn,debugger:S("debugger"),var:S("var"),const:S("var"),let:S("var"),function:S("function"),catch:S("catch"),for:S("for"),switch:S("switch"),case:S("case"),default:S("default"),in:ss,typeof:ss,instanceof:ss,true:Zi,false:Zi,null:Zi,undefined:Zi,NaN:Zi,Infinity:Zi,this:S("this"),class:S("class"),super:S("atom"),yield:sn,export:S("export"),import:S("import"),extends:sn,await:sn}}(),Tt=/[+\-*&%=<>!?|~^@]/,Gt=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function sr(S){for(var Je=!1,jr,sn=!1;(jr=S.next())!=null;){if(!Je){if(jr=="/"&&!sn)return;jr=="["?sn=!0:sn&&jr=="]"&&(sn=!1)}Je=!Je&&jr=="\\"}}var Mr,At;function Mt(S,Je,jr){return Mr=S,At=jr,Je}function Wt(S,Je){var jr=S.next();if(jr=='"'||jr=="'")return Je.tokenize=Ar(jr),Je.tokenize(S,Je);if(jr=="."&&S.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Mt("number","number");if(jr=="."&&S.match(".."))return Mt("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(jr))return Mt(jr);if(jr=="="&&S.eat(">"))return Mt("=>","operator");if(jr=="0"&&S.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Mt("number","number");if(/\d/.test(jr))return S.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Mt("number","number");if(jr=="/")return S.eat("*")?(Je.tokenize=an,an(S,Je)):S.eat("/")?(S.skipToEnd(),Mt("comment","comment")):js(S,Je,1)?(sr(S),S.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Mt("regexp","string-2")):(S.eat("="),Mt("operator","operator",S.current()));if(jr=="`")return Je.tokenize=Vn,Vn(S,Je);if(jr=="#"&&S.peek()=="!")return S.skipToEnd(),Mt("meta","meta");if(jr=="#"&&S.eatWhile(rt))return Mt("variable","property");if(jr=="<"&&S.match("!--")||jr=="-"&&S.match("->")&&!/\S/.test(S.string.slice(0,S.start)))return S.skipToEnd(),Mt("comment","comment");if(Tt.test(jr))return(jr!=">"||!Je.lexical||Je.lexical.type!=">")&&(S.eat("=")?(jr=="!"||jr=="=")&&S.eat("="):/[<>*+\-|&?]/.test(jr)&&(S.eat(jr),jr==">"&&S.eat(jr))),jr=="?"&&S.eat(".")?Mt("."):Mt("operator","operator",S.current());if(rt.test(jr)){S.eatWhile(rt);var sn=S.current();if(Je.lastType!="."){if(yt.propertyIsEnumerable(sn)){var ci=yt[sn];return Mt(ci.type,ci.style,sn)}if(sn=="async"&&S.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Mt("async","keyword",sn)}return Mt("variable","variable",sn)}}function Ar(S){return function(Je,jr){var sn=!1,ci;if(pe&&Je.peek()=="@"&&Je.match(Gt))return jr.tokenize=Wt,Mt("jsonld-keyword","meta");for(;(ci=Je.next())!=null&&!(ci==S&&!sn);)sn=!sn&&ci=="\\";return sn||(jr.tokenize=Wt),Mt("string","string")}}function an(S,Je){for(var jr=!1,sn;sn=S.next();){if(sn=="/"&&jr){Je.tokenize=Wt;break}jr=sn=="*"}return Mt("comment","comment")}function Vn(S,Je){for(var jr=!1,sn;(sn=S.next())!=null;){if(!jr&&(sn=="`"||sn=="$"&&S.eat("{"))){Je.tokenize=Wt;break}jr=!jr&&sn=="\\"}return Mt("quasi","string-2",S.current())}var An="([{}])";function gi(S,Je){Je.fatArrowAt&&(Je.fatArrowAt=null);var jr=S.string.indexOf("=>",S.start);if(!(jr<0)){if(Me){var sn=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(S.string.slice(S.start,jr));sn&&(jr=sn.index)}for(var ci=0,ss=!1,Zi=jr-1;Zi>=0;--Zi){var ni=S.string.charAt(Zi),qs=An.indexOf(ni);if(qs>=0&&qs<3){if(!ci){++Zi;break}if(--ci==0){ni=="("&&(ss=!0);break}}else if(qs>=3&&qs<6)++ci;else if(rt.test(ni))ss=!0;else if(/["'\/`]/.test(ni))for(;;--Zi){if(Zi==0)return;var Jo=S.string.charAt(Zi-1);if(Jo==ni&&S.string.charAt(Zi-2)!="\\"){Zi--;break}}else if(ss&&!ci){++Zi;break}}ss&&!ci&&(Je.fatArrowAt=Zi)}}var ai={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function $n(S,Je,jr,sn,ci,ss){this.indented=S,this.column=Je,this.type=jr,this.prev=ci,this.info=ss,sn!=null&&(this.align=sn)}function Mn(S,Je){if(!Le)return!1;for(var jr=S.localVars;jr;jr=jr.next)if(jr.name==Je)return!0;for(var sn=S.context;sn;sn=sn.prev)for(var jr=sn.vars;jr;jr=jr.next)if(jr.name==Je)return!0}function yi(S,Je,jr,sn,ci){var ss=S.cc;for(Cr.state=S,Cr.stream=ci,Cr.marked=null,Cr.cc=ss,Cr.style=Je,S.lexical.hasOwnProperty("align")||(S.lexical.align=!0);;){var Zi=ss.length?ss.pop():de?Un:oi;if(Zi(jr,sn)){for(;ss.length&&ss[ss.length-1].lex;)ss.pop()();return Cr.marked?Cr.marked:jr=="variable"&&Mn(S,sn)?"variable-2":Je}}}var Cr={state:null,column:null,marked:null,cc:null};function Tn(){for(var S=arguments.length-1;S>=0;S--)Cr.cc.push(arguments[S])}function we(){return Tn.apply(null,arguments),!0}function rn(S,Je){for(var jr=Je;jr;jr=jr.next)if(jr.name==S)return!0;return!1}function lr(S){var Je=Cr.state;if(Cr.marked="def",!!Le){if(Je.context){if(Je.lexical.info=="var"&&Je.context&&Je.context.block){var jr=Sn(S,Je.context);if(jr!=null){Je.context=jr;return}}else if(!rn(S,Je.localVars)){Je.localVars=new ys(S,Je.localVars);return}}v.globalVars&&!rn(S,Je.globalVars)&&(Je.globalVars=new ys(S,Je.globalVars))}}function Sn(S,Je){if(Je)if(Je.block){var jr=Sn(S,Je.prev);return jr?jr==Je.prev?Je:new Yi(jr,Je.vars,!0):null}else return rn(S,Je.vars)?Je:new Yi(Je.prev,new ys(S,Je.vars),!1);else return null}function Kn(S){return S=="public"||S=="private"||S=="protected"||S=="abstract"||S=="readonly"}function Yi(S,Je,jr){this.prev=S,this.vars=Je,this.block=jr}function ys(S,Je){this.name=S,this.next=Je}var Ns=new ys("this",new ys("arguments",null));function cs(){Cr.state.context=new Yi(Cr.state.context,Cr.state.localVars,!1),Cr.state.localVars=Ns}function ts(){Cr.state.context=new Yi(Cr.state.context,Cr.state.localVars,!0),Cr.state.localVars=null}cs.lex=ts.lex=!0;function _r(){Cr.state.localVars=Cr.state.context.vars,Cr.state.context=Cr.state.context.prev}_r.lex=!0;function Kr(S,Je){var jr=function(){var sn=Cr.state,ci=sn.indented;if(sn.lexical.type=="stat")ci=sn.lexical.indented;else for(var ss=sn.lexical;ss&&ss.type==")"&&ss.align;ss=ss.prev)ci=ss.indented;sn.lexical=new $n(ci,Cr.stream.column(),S,null,sn.lexical,Je)};return jr.lex=!0,jr}function yr(){var S=Cr.state;S.lexical.prev&&(S.lexical.type==")"&&(S.indented=S.lexical.indented),S.lexical=S.lexical.prev)}yr.lex=!0;function dn(S){function Je(jr){return jr==S?we():S==";"||jr=="}"||jr==")"||jr=="]"?Tn():we(Je)}return Je}function oi(S,Je){return S=="var"?we(Kr("vardef",Je),on,dn(";"),yr):S=="keyword a"?we(Kr("form"),ct,oi,yr):S=="keyword b"?we(Kr("form"),oi,yr):S=="keyword d"?Cr.stream.match(/^\s*$/,!1)?we():we(Kr("stat"),Er,dn(";"),yr):S=="debugger"?we(dn(";")):S=="{"?we(Kr("}"),ts,qn,yr,_r):S==";"?we():S=="if"?(Cr.state.lexical.info=="else"&&Cr.state.cc[Cr.state.cc.length-1]==yr&&Cr.state.cc.pop()(),we(Kr("form"),ct,oi,yr,Ee)):S=="function"?we(Dt):S=="for"?we(Kr("form"),ts,He,oi,_r,yr):S=="class"||Me&&Je=="interface"?(Cr.marked="keyword",we(Kr("form",S=="class"?S:Je),Yr,yr)):S=="variable"?Me&&Je=="declare"?(Cr.marked="keyword",we(oi)):Me&&(Je=="module"||Je=="enum"||Je=="type")&&Cr.stream.match(/^\s*\w/,!1)?(Cr.marked="keyword",Je=="enum"?we(ti):Je=="type"?we(nr,dn("operator"),cr,dn(";")):we(Kr("form"),Rt,dn("{"),Kr("}"),qn,yr,yr)):Me&&Je=="namespace"?(Cr.marked="keyword",we(Kr("form"),Un,oi,yr)):Me&&Je=="abstract"?(Cr.marked="keyword",we(oi)):we(Kr("stat"),jn):S=="switch"?we(Kr("form"),ct,dn("{"),Kr("}","switch"),ts,qn,yr,yr,_r):S=="case"?we(Un,dn(":")):S=="default"?we(dn(":")):S=="catch"?we(Kr("form"),cs,Jn,oi,yr,_r):S=="export"?we(Kr("stat"),pi,yr):S=="import"?we(Kr("stat"),Ji,yr):S=="async"?we(oi):Je=="@"?we(Un,oi):Tn(Kr("stat"),Un,dn(";"),yr)}function Jn(S){if(S=="(")return we(Tr,dn(")"))}function Un(S,Je){return Ot(S,Je,!1)}function li(S,Je){return Ot(S,Je,!0)}function ct(S){return S!="("?Tn():we(Kr(")"),Er,dn(")"),yr)}function Ot(S,Je,jr){if(Cr.state.fatArrowAt==Cr.stream.start){var sn=jr?hn:Fn;if(S=="(")return we(cs,Kr(")"),zi(Tr,")"),yr,dn("=>"),sn,_r);if(S=="variable")return Tn(cs,Rt,dn("=>"),sn,_r)}var ci=jr?Jr:ar;return ai.hasOwnProperty(S)?we(ci):S=="function"?we(Dt,ci):S=="class"||Me&&Je=="interface"?(Cr.marked="keyword",we(Kr("form"),zr,yr)):S=="keyword c"||S=="async"?we(jr?li:Un):S=="("?we(Kr(")"),Er,dn(")"),yr,ci):S=="operator"||S=="spread"?we(jr?li:Un):S=="["?we(Kr("]"),xi,yr,ci):S=="{"?Ls(ns,"}",null,ci):S=="quasi"?Tn(fn,ci):S=="new"?we(lt(jr)):we()}function Er(S){return S.match(/[;\}\)\],]/)?Tn():Tn(Un)}function ar(S,Je){return S==","?we(Er):Jr(S,Je,!1)}function Jr(S,Je,jr){var sn=jr==!1?ar:Jr,ci=jr==!1?Un:li;if(S=="=>")return we(cs,jr?hn:Fn,_r);if(S=="operator")return/\+\+|--/.test(Je)||Me&&Je=="!"?we(sn):Me&&Je=="<"&&Cr.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?we(Kr(">"),zi(cr,">"),yr,sn):Je=="?"?we(Un,dn(":"),ci):we(ci);if(S=="quasi")return Tn(fn,sn);if(S!=";"){if(S=="(")return Ls(li,")","call",sn);if(S==".")return we(Di,sn);if(S=="[")return we(Kr("]"),Er,dn("]"),yr,sn);if(Me&&Je=="as")return Cr.marked="keyword",we(cr,sn);if(S=="regexp")return Cr.state.lastType=Cr.marked="operator",Cr.stream.backUp(Cr.stream.pos-Cr.stream.start-1),we(ci)}}function fn(S,Je){return S!="quasi"?Tn():Je.slice(Je.length-2)!="${"?we(fn):we(Er,mn)}function mn(S){if(S=="}")return Cr.marked="string-2",Cr.state.tokenize=Vn,we(fn)}function Fn(S){return gi(Cr.stream,Cr.state),Tn(S=="{"?oi:Un)}function hn(S){return gi(Cr.stream,Cr.state),Tn(S=="{"?oi:li)}function lt(S){return function(Je){return Je=="."?we(S?jt:br):Je=="variable"&&Me?we(Jt,S?Jr:ar):Tn(S?li:Un)}}function br(S,Je){if(Je=="target")return Cr.marked="keyword",we(ar)}function jt(S,Je){if(Je=="target")return Cr.marked="keyword",we(Jr)}function jn(S){return S==":"?we(yr,oi):Tn(ar,dn(";"),yr)}function Di(S){if(S=="variable")return Cr.marked="property",we()}function ns(S,Je){if(S=="async")return Cr.marked="property",we(ns);if(S=="variable"||Cr.style=="keyword"){if(Cr.marked="property",Je=="get"||Je=="set")return we(is);var jr;return Me&&Cr.state.fatArrowAt==Cr.stream.start&&(jr=Cr.stream.match(/^\s*:\s*/,!1))&&(Cr.state.fatArrowAt=Cr.stream.pos+jr[0].length),we(ls)}else{if(S=="number"||S=="string")return Cr.marked=pe?"property":Cr.style+" property",we(ls);if(S=="jsonld-keyword")return we(ls);if(Me&&Kn(Je))return Cr.marked="keyword",we(ns);if(S=="[")return we(Un,Fr,dn("]"),ls);if(S=="spread")return we(li,ls);if(Je=="*")return Cr.marked="keyword",we(ns);if(S==":")return Tn(ls)}}function is(S){return S!="variable"?Tn(ls):(Cr.marked="property",we(Dt))}function ls(S){if(S==":")return we(li);if(S=="(")return Tn(Dt)}function zi(S,Je,jr){function sn(ci,ss){if(jr?jr.indexOf(ci)>-1:ci==","){var Zi=Cr.state.lexical;return Zi.info=="call"&&(Zi.pos=(Zi.pos||0)+1),we(function(ni,qs){return ni==Je||qs==Je?Tn():Tn(S)},sn)}return ci==Je||ss==Je?we():jr&&jr.indexOf(";")>-1?Tn(S):we(dn(Je))}return function(ci,ss){return ci==Je||ss==Je?we():Tn(S,sn)}}function Ls(S,Je,jr){for(var sn=3;sn<arguments.length;sn++)Cr.cc.push(arguments[sn]);return we(Kr(Je,jr),zi(S,Je),yr)}function qn(S){return S=="}"?we():Tn(oi,qn)}function Fr(S,Je){if(Me){if(S==":")return we(cr);if(Je=="?")return we(Fr)}}function Br(S,Je){if(Me&&(S==":"||Je=="in"))return we(cr)}function Xt(S){if(Me&&S==":")return Cr.stream.match(/^\s*\w+\s+is\b/,!1)?we(Un,Vr,cr):we(cr)}function Vr(S,Je){if(Je=="is")return Cr.marked="keyword",we()}function cr(S,Je){if(Je=="keyof"||Je=="typeof"||Je=="infer"||Je=="readonly")return Cr.marked="keyword",we(Je=="typeof"?li:cr);if(S=="variable"||Je=="void")return Cr.marked="type",we(Bt);if(Je=="|"||Je=="&")return we(cr);if(S=="string"||S=="number"||S=="atom")return we(Bt);if(S=="[")return we(Kr("]"),zi(cr,"]",","),yr,Bt);if(S=="{")return we(Kr("}"),zt,yr,Bt);if(S=="(")return we(zi(Ue,")"),gn,Bt);if(S=="<")return we(zi(cr,">"),cr);if(S=="quasi")return Tn(wr,Bt)}function gn(S){if(S=="=>")return we(cr)}function zt(S){return S.match(/[\}\)\]]/)?we():S==","||S==";"?we(zt):Tn(Qn,zt)}function Qn(S,Je){if(S=="variable"||Cr.style=="keyword")return Cr.marked="property",we(Qn);if(Je=="?"||S=="number"||S=="string")return we(Qn);if(S==":")return we(cr);if(S=="[")return we(dn("variable"),Br,dn("]"),Qn);if(S=="(")return Tn(Vt,Qn);if(!S.match(/[;\}\)\],]/))return we()}function wr(S,Je){return S!="quasi"?Tn():Je.slice(Je.length-2)!="${"?we(wr):we(cr,Nt)}function Nt(S){if(S=="}")return Cr.marked="string-2",Cr.state.tokenize=Vn,we(wr)}function Ue(S,Je){return S=="variable"&&Cr.stream.match(/^\s*[?:]/,!1)||Je=="?"?we(Ue):S==":"?we(cr):S=="spread"?we(Ue):Tn(cr)}function Bt(S,Je){if(Je=="<")return we(Kr(">"),zi(cr,">"),yr,Bt);if(Je=="|"||S=="."||Je=="&")return we(cr);if(S=="[")return we(cr,dn("]"),Bt);if(Je=="extends"||Je=="implements")return Cr.marked="keyword",we(cr);if(Je=="?")return we(cr,dn(":"),cr)}function Jt(S,Je){if(Je=="<")return we(Kr(">"),zi(cr,">"),yr,Bt)}function tr(){return Tn(cr,Ur)}function Ur(S,Je){if(Je=="=")return we(cr)}function on(S,Je){return Je=="enum"?(Cr.marked="keyword",we(ti)):Tn(Rt,Fr,me,be)}function Rt(S,Je){if(Me&&Kn(Je))return Cr.marked="keyword",we(Rt);if(S=="variable")return lr(Je),we();if(S=="spread")return we(Rt);if(S=="[")return Ls(ce,"]");if(S=="{")return Ls(Ie,"}")}function Ie(S,Je){return S=="variable"&&!Cr.stream.match(/^\s*:/,!1)?(lr(Je),we(me)):(S=="variable"&&(Cr.marked="property"),S=="spread"?we(Rt):S=="}"?Tn():S=="["?we(Un,dn("]"),dn(":"),Ie):we(dn(":"),Rt,me))}function ce(){return Tn(Rt,me)}function me(S,Je){if(Je=="=")return we(li)}function be(S){if(S==",")return we(on)}function Ee(S,Je){if(S=="keyword b"&&Je=="else")return we(Kr("form","else"),oi,yr)}function He(S,Je){if(Je=="await")return we(He);if(S=="(")return we(Kr(")"),et,yr)}function et(S){return S=="var"?we(on,st):S=="variable"?we(st):Tn(st)}function st(S,Je){return S==")"?we():S==";"?we(st):Je=="in"||Je=="of"?(Cr.marked="keyword",we(Un,st)):Tn(Un,st)}function Dt(S,Je){if(Je=="*")return Cr.marked="keyword",we(Dt);if(S=="variable")return lr(Je),we(Dt);if(S=="(")return we(cs,Kr(")"),zi(Tr,")"),yr,Xt,oi,_r);if(Me&&Je=="<")return we(Kr(">"),zi(tr,">"),yr,Dt)}function Vt(S,Je){if(Je=="*")return Cr.marked="keyword",we(Vt);if(S=="variable")return lr(Je),we(Vt);if(S=="(")return we(cs,Kr(")"),zi(Tr,")"),yr,Xt,_r);if(Me&&Je=="<")return we(Kr(">"),zi(tr,">"),yr,Vt)}function nr(S,Je){if(S=="keyword"||S=="variable")return Cr.marked="type",we(nr);if(Je=="<")return we(Kr(">"),zi(tr,">"),yr)}function Tr(S,Je){return Je=="@"&&we(Un,Tr),S=="spread"?we(Tr):Me&&Kn(Je)?(Cr.marked="keyword",we(Tr)):Me&&S=="this"?we(Fr,me):Tn(Rt,Fr,me)}function zr(S,Je){return S=="variable"?Yr(S,Je):tn(S,Je)}function Yr(S,Je){if(S=="variable")return lr(Je),we(tn)}function tn(S,Je){if(Je=="<")return we(Kr(">"),zi(tr,">"),yr,tn);if(Je=="extends"||Je=="implements"||Me&&S==",")return Je=="implements"&&(Cr.marked="keyword"),we(Me?cr:Un,tn);if(S=="{")return we(Kr("}"),Pr,yr)}function Pr(S,Je){if(S=="async"||S=="variable"&&(Je=="static"||Je=="get"||Je=="set"||Me&&Kn(Je))&&Cr.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return Cr.marked="keyword",we(Pr);if(S=="variable"||Cr.style=="keyword")return Cr.marked="property",we(kn,Pr);if(S=="number"||S=="string")return we(kn,Pr);if(S=="[")return we(Un,Fr,dn("]"),kn,Pr);if(Je=="*")return Cr.marked="keyword",we(Pr);if(Me&&S=="(")return Tn(Vt,Pr);if(S==";"||S==",")return we(Pr);if(S=="}")return we();if(Je=="@")return we(Un,Pr)}function kn(S,Je){if(Je=="!"||Je=="?")return we(kn);if(S==":")return we(cr,me);if(Je=="=")return we(li);var jr=Cr.state.lexical.prev,sn=jr&&jr.info=="interface";return Tn(sn?Vt:Dt)}function pi(S,Je){return Je=="*"?(Cr.marked="keyword",we(Li,dn(";"))):Je=="default"?(Cr.marked="keyword",we(Un,dn(";"))):S=="{"?we(zi(yn,"}"),Li,dn(";")):Tn(oi)}function yn(S,Je){if(Je=="as")return Cr.marked="keyword",we(dn("variable"));if(S=="variable")return Tn(li,yn)}function Ji(S){return S=="string"?we():S=="("?Tn(Un):S=="."?Tn(ar):Tn(vi,Xe,Li)}function vi(S,Je){return S=="{"?Ls(vi,"}"):(S=="variable"&&lr(Je),Je=="*"&&(Cr.marked="keyword"),we(Ds))}function Xe(S){if(S==",")return we(vi,Xe)}function Ds(S,Je){if(Je=="as")return Cr.marked="keyword",we(vi)}function Li(S,Je){if(Je=="from")return Cr.marked="keyword",we(Un)}function xi(S){return S=="]"?we():Tn(zi(li,"]"))}function ti(){return Tn(Kr("form"),Rt,dn("{"),Kr("}"),zi(Gn,"}"),yr,yr)}function Gn(){return Tn(Rt,me)}function $s(S,Je){return S.lastType=="operator"||S.lastType==","||Tt.test(Je.charAt(0))||/[,.]/.test(Je.charAt(0))}function js(S,Je,jr){return Je.tokenize==Wt&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Je.lastType)||Je.lastType=="quasi"&&/\{\s*$/.test(S.string.slice(0,S.pos-(jr||0)))}return{startState:function(S){var Je={tokenize:Wt,lastType:"sof",cc:[],lexical:new $n((S||0)-B,0,"block",!1),localVars:v.localVars,context:v.localVars&&new Yi(null,null,!1),indented:S||0};return v.globalVars&&typeof v.globalVars=="object"&&(Je.globalVars=v.globalVars),Je},token:function(S,Je){if(S.sol()&&(Je.lexical.hasOwnProperty("align")||(Je.lexical.align=!1),Je.indented=S.indentation(),gi(S,Je)),Je.tokenize!=an&&S.eatSpace())return null;var jr=Je.tokenize(S,Je);return Mr=="comment"?jr:(Je.lastType=Mr=="operator"&&(At=="++"||At=="--")?"incdec":Mr,yi(Je,jr,Mr,At,S))},indent:function(S,Je){if(S.tokenize==an||S.tokenize==Vn)return l.Pass;if(S.tokenize!=Wt)return 0;var jr=Je&&Je.charAt(0),sn=S.lexical,ci;if(!/^\s*else\b/.test(Je))for(var ss=S.cc.length-1;ss>=0;--ss){var Zi=S.cc[ss];if(Zi==yr)sn=sn.prev;else if(Zi!=Ee&&Zi!=_r)break}for(;(sn.type=="stat"||sn.type=="form")&&(jr=="}"||(ci=S.cc[S.cc.length-1])&&(ci==ar||ci==Jr)&&!/^[,\.=+\-*:?[\(]/.test(Je));)sn=sn.prev;Y&&sn.type==")"&&sn.prev.type=="stat"&&(sn=sn.prev);var ni=sn.type,qs=jr==ni;return ni=="vardef"?sn.indented+(S.lastType=="operator"||S.lastType==","?sn.info.length+1:0):ni=="form"&&jr=="{"?sn.indented:ni=="form"?sn.indented+B:ni=="stat"?sn.indented+($s(S,Je)?Y||B:0):sn.info=="switch"&&!qs&&v.doubleIndentSwitch!=!1?sn.indented+(/^(?:case|default)\b/.test(Je)?B:2*B):sn.align?sn.column+(qs?0:1):sn.indented+(qs?0:B)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:de?null:"/*",blockCommentEnd:de?null:"*/",blockCommentContinue:de?null:" * ",lineComment:de?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:de?"json":"javascript",jsonldMode:pe,jsonMode:de,expressionAllowed:js,skipExpression:function(S){yi(S,"atom","atom","true",new l.StringStream("",2,null))}}}),l.registerHelper("wordChars","javascript",/[\w$]/),l.defineMIME("text/javascript","javascript"),l.defineMIME("text/ecmascript","javascript"),l.defineMIME("application/javascript","javascript"),l.defineMIME("application/x-javascript","javascript"),l.defineMIME("application/ecmascript","javascript"),l.defineMIME("application/json",{name:"javascript",json:!0}),l.defineMIME("application/x-json",{name:"javascript",json:!0}),l.defineMIME("application/manifest+json",{name:"javascript",json:!0}),l.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),l.defineMIME("text/typescript",{name:"javascript",typescript:!0}),l.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var SD={exports:{}};(function(i,c){(function(l){l(Ul.exports)})(function(l){l.defineMode("css",function($n,Mn){var yi=Mn.inline;Mn.propertyKeywords||(Mn=l.resolveMode("text/css"));var Cr=$n.indentUnit,Tn=Mn.tokenHooks,we=Mn.documentTypes||{},rn=Mn.mediaTypes||{},lr=Mn.mediaFeatures||{},Sn=Mn.mediaValueKeywords||{},Kn=Mn.propertyKeywords||{},Yi=Mn.nonStandardPropertyKeywords||{},ys=Mn.fontProperties||{},Ns=Mn.counterDescriptors||{},cs=Mn.colorKeywords||{},ts=Mn.valueKeywords||{},_r=Mn.allowNested,Kr=Mn.lineComment,yr=Mn.supportsAtComponent===!0,dn=$n.highlightNonStandardPropertyKeywords!==!1,oi,Jn;function Un(lt,br){return oi=br,lt}function li(lt,br){var jt=lt.next();if(Tn[jt]){var jn=Tn[jt](lt,br);if(jn!==!1)return jn}if(jt=="@")return lt.eatWhile(/[\w\\\-]/),Un("def",lt.current());if(jt=="="||(jt=="~"||jt=="|")&<.eat("="))return Un(null,"compare");if(jt=='"'||jt=="'")return br.tokenize=ct(jt),br.tokenize(lt,br);if(jt=="#")return lt.eatWhile(/[\w\\\-]/),Un("atom","hash");if(jt=="!")return lt.match(/^\s*\w*/),Un("keyword","important");if(/\d/.test(jt)||jt=="."&<.eat(/\d/))return lt.eatWhile(/[\w.%]/),Un("number","unit");if(jt==="-"){if(/[\d.]/.test(lt.peek()))return lt.eatWhile(/[\w.%]/),Un("number","unit");if(lt.match(/^-[\w\\\-]*/))return lt.eatWhile(/[\w\\\-]/),lt.match(/^\s*:/,!1)?Un("variable-2","variable-definition"):Un("variable-2","variable");if(lt.match(/^\w+-/))return Un("meta","meta")}else return/[,+>*\/]/.test(jt)?Un(null,"select-op"):jt=="."&<.match(/^-?[_a-z][_a-z0-9-]*/i)?Un("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(jt)?Un(null,jt):lt.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(lt.current())&&(br.tokenize=Ot),Un("variable callee","variable")):/[\w\\\-]/.test(jt)?(lt.eatWhile(/[\w\\\-]/),Un("property","word")):Un(null,null)}function ct(lt){return function(br,jt){for(var jn=!1,Di;(Di=br.next())!=null;){if(Di==lt&&!jn){lt==")"&&br.backUp(1);break}jn=!jn&&Di=="\\"}return(Di==lt||!jn&<!=")")&&(jt.tokenize=null),Un("string","string")}}function Ot(lt,br){return lt.next(),lt.match(/^\s*[\"\')]/,!1)?br.tokenize=null:br.tokenize=ct(")"),Un(null,"(")}function Er(lt,br,jt){this.type=lt,this.indent=br,this.prev=jt}function ar(lt,br,jt,jn){return lt.context=new Er(jt,br.indentation()+(jn===!1?0:Cr),lt.context),jt}function Jr(lt){return lt.context.prev&&(lt.context=lt.context.prev),lt.context.type}function fn(lt,br,jt){return hn[jt.context.type](lt,br,jt)}function mn(lt,br,jt,jn){for(var Di=jn||1;Di>0;Di--)jt.context=jt.context.prev;return fn(lt,br,jt)}function Fn(lt){var br=lt.current().toLowerCase();ts.hasOwnProperty(br)?Jn="atom":cs.hasOwnProperty(br)?Jn="keyword":Jn="variable"}var hn={};return hn.top=function(lt,br,jt){if(lt=="{")return ar(jt,br,"block");if(lt=="}"&&jt.context.prev)return Jr(jt);if(yr&&/@component/i.test(lt))return ar(jt,br,"atComponentBlock");if(/^@(-moz-)?document$/i.test(lt))return ar(jt,br,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(lt))return ar(jt,br,"atBlock");if(/^@(font-face|counter-style)/i.test(lt))return jt.stateArg=lt,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(lt))return"keyframes";if(lt&<.charAt(0)=="@")return ar(jt,br,"at");if(lt=="hash")Jn="builtin";else if(lt=="word")Jn="tag";else{if(lt=="variable-definition")return"maybeprop";if(lt=="interpolation")return ar(jt,br,"interpolation");if(lt==":")return"pseudo";if(_r&<=="(")return ar(jt,br,"parens")}return jt.context.type},hn.block=function(lt,br,jt){if(lt=="word"){var jn=br.current().toLowerCase();return Kn.hasOwnProperty(jn)?(Jn="property","maybeprop"):Yi.hasOwnProperty(jn)?(Jn=dn?"string-2":"property","maybeprop"):_r?(Jn=br.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Jn+=" error","maybeprop")}else return lt=="meta"?"block":!_r&&(lt=="hash"||lt=="qualifier")?(Jn="error","block"):hn.top(lt,br,jt)},hn.maybeprop=function(lt,br,jt){return lt==":"?ar(jt,br,"prop"):fn(lt,br,jt)},hn.prop=function(lt,br,jt){if(lt==";")return Jr(jt);if(lt=="{"&&_r)return ar(jt,br,"propBlock");if(lt=="}"||lt=="{")return mn(lt,br,jt);if(lt=="(")return ar(jt,br,"parens");if(lt=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(br.current()))Jn+=" error";else if(lt=="word")Fn(br);else if(lt=="interpolation")return ar(jt,br,"interpolation");return"prop"},hn.propBlock=function(lt,br,jt){return lt=="}"?Jr(jt):lt=="word"?(Jn="property","maybeprop"):jt.context.type},hn.parens=function(lt,br,jt){return lt=="{"||lt=="}"?mn(lt,br,jt):lt==")"?Jr(jt):lt=="("?ar(jt,br,"parens"):lt=="interpolation"?ar(jt,br,"interpolation"):(lt=="word"&&Fn(br),"parens")},hn.pseudo=function(lt,br,jt){return lt=="meta"?"pseudo":lt=="word"?(Jn="variable-3",jt.context.type):fn(lt,br,jt)},hn.documentTypes=function(lt,br,jt){return lt=="word"&&we.hasOwnProperty(br.current())?(Jn="tag",jt.context.type):hn.atBlock(lt,br,jt)},hn.atBlock=function(lt,br,jt){if(lt=="(")return ar(jt,br,"atBlock_parens");if(lt=="}"||lt==";")return mn(lt,br,jt);if(lt=="{")return Jr(jt)&&ar(jt,br,_r?"block":"top");if(lt=="interpolation")return ar(jt,br,"interpolation");if(lt=="word"){var jn=br.current().toLowerCase();jn=="only"||jn=="not"||jn=="and"||jn=="or"?Jn="keyword":rn.hasOwnProperty(jn)?Jn="attribute":lr.hasOwnProperty(jn)?Jn="property":Sn.hasOwnProperty(jn)?Jn="keyword":Kn.hasOwnProperty(jn)?Jn="property":Yi.hasOwnProperty(jn)?Jn=dn?"string-2":"property":ts.hasOwnProperty(jn)?Jn="atom":cs.hasOwnProperty(jn)?Jn="keyword":Jn="error"}return jt.context.type},hn.atComponentBlock=function(lt,br,jt){return lt=="}"?mn(lt,br,jt):lt=="{"?Jr(jt)&&ar(jt,br,_r?"block":"top",!1):(lt=="word"&&(Jn="error"),jt.context.type)},hn.atBlock_parens=function(lt,br,jt){return lt==")"?Jr(jt):lt=="{"||lt=="}"?mn(lt,br,jt,2):hn.atBlock(lt,br,jt)},hn.restricted_atBlock_before=function(lt,br,jt){return lt=="{"?ar(jt,br,"restricted_atBlock"):lt=="word"&&jt.stateArg=="@counter-style"?(Jn="variable","restricted_atBlock_before"):fn(lt,br,jt)},hn.restricted_atBlock=function(lt,br,jt){return lt=="}"?(jt.stateArg=null,Jr(jt)):lt=="word"?(jt.stateArg=="@font-face"&&!ys.hasOwnProperty(br.current().toLowerCase())||jt.stateArg=="@counter-style"&&!Ns.hasOwnProperty(br.current().toLowerCase())?Jn="error":Jn="property","maybeprop"):"restricted_atBlock"},hn.keyframes=function(lt,br,jt){return lt=="word"?(Jn="variable","keyframes"):lt=="{"?ar(jt,br,"top"):fn(lt,br,jt)},hn.at=function(lt,br,jt){return lt==";"?Jr(jt):lt=="{"||lt=="}"?mn(lt,br,jt):(lt=="word"?Jn="tag":lt=="hash"&&(Jn="builtin"),"at")},hn.interpolation=function(lt,br,jt){return lt=="}"?Jr(jt):lt=="{"||lt==";"?mn(lt,br,jt):(lt=="word"?Jn="variable":lt!="variable"&<!="("&<!=")"&&(Jn="error"),"interpolation")},{startState:function(lt){return{tokenize:null,state:yi?"block":"top",stateArg:null,context:new Er(yi?"block":"top",lt||0,null)}},token:function(lt,br){if(!br.tokenize&<.eatSpace())return null;var jt=(br.tokenize||li)(lt,br);return jt&&typeof jt=="object"&&(oi=jt[1],jt=jt[0]),Jn=jt,oi!="comment"&&(br.state=hn[br.state](oi,lt,br)),Jn},indent:function(lt,br){var jt=lt.context,jn=br&&br.charAt(0),Di=jt.indent;return jt.type=="prop"&&(jn=="}"||jn==")")&&(jt=jt.prev),jt.prev&&(jn=="}"&&(jt.type=="block"||jt.type=="top"||jt.type=="interpolation"||jt.type=="restricted_atBlock")?(jt=jt.prev,Di=jt.indent):(jn==")"&&(jt.type=="parens"||jt.type=="atBlock_parens")||jn=="{"&&(jt.type=="at"||jt.type=="atBlock"))&&(Di=Math.max(0,jt.indent-Cr))),Di},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Kr,fold:"brace"}});function f($n){for(var Mn={},yi=0;yi<$n.length;++yi)Mn[$n[yi].toLowerCase()]=!0;return Mn}var v=["domain","regexp","url","url-prefix"],B=f(v),Y=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],pe=f(Y),de=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],Le=f(de),Me=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],rt=f(Me),yt=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],Tt=f(yt),Gt=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],sr=f(Gt),Mr=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],At=f(Mr),Mt=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],Wt=f(Mt),Ar=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],an=f(Ar),Vn=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],An=f(Vn),gi=v.concat(Y).concat(de).concat(Me).concat(yt).concat(Gt).concat(Ar).concat(Vn);l.registerHelper("hintWords","css",gi);function ai($n,Mn){for(var yi=!1,Cr;(Cr=$n.next())!=null;){if(yi&&Cr=="/"){Mn.tokenize=null;break}yi=Cr=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:B,mediaTypes:pe,mediaFeatures:Le,mediaValueKeywords:rt,propertyKeywords:Tt,nonStandardPropertyKeywords:sr,fontProperties:At,counterDescriptors:Wt,colorKeywords:an,valueKeywords:An,tokenHooks:{"/":function($n,Mn){return $n.eat("*")?(Mn.tokenize=ai,ai($n,Mn)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:pe,mediaFeatures:Le,mediaValueKeywords:rt,propertyKeywords:Tt,nonStandardPropertyKeywords:sr,colorKeywords:an,valueKeywords:An,fontProperties:At,allowNested:!0,lineComment:"//",tokenHooks:{"/":function($n,Mn){return $n.eat("/")?($n.skipToEnd(),["comment","comment"]):$n.eat("*")?(Mn.tokenize=ai,ai($n,Mn)):["operator","operator"]},":":function($n){return $n.match(/^\s*\{/,!1)?[null,null]:!1},$:function($n){return $n.match(/^[\w-]+/),$n.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function($n){return $n.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),l.defineMIME("text/x-less",{mediaTypes:pe,mediaFeatures:Le,mediaValueKeywords:rt,propertyKeywords:Tt,nonStandardPropertyKeywords:sr,colorKeywords:an,valueKeywords:An,fontProperties:At,allowNested:!0,lineComment:"//",tokenHooks:{"/":function($n,Mn){return $n.eat("/")?($n.skipToEnd(),["comment","comment"]):$n.eat("*")?(Mn.tokenize=ai,ai($n,Mn)):["operator","operator"]},"@":function($n){return $n.eat("{")?[null,"interpolation"]:$n.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:($n.eatWhile(/[\w\\\-]/),$n.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),l.defineMIME("text/x-gss",{documentTypes:B,mediaTypes:pe,mediaFeatures:Le,propertyKeywords:Tt,nonStandardPropertyKeywords:sr,fontProperties:At,counterDescriptors:Wt,colorKeywords:an,valueKeywords:An,supportsAtComponent:!0,tokenHooks:{"/":function($n,Mn){return $n.eat("*")?(Mn.tokenize=ai,ai($n,Mn)):!1}},name:"css",helperType:"gss"})})})();var ym={exports:{}};(function(i,c){(function(l){l(Ul.exports)})(function(l){var f={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},v={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};l.defineMode("xml",function(B,Y){var pe=B.indentUnit,de={},Le=Y.htmlMode?f:v;for(var Me in Le)de[Me]=Le[Me];for(var Me in Y)de[Me]=Y[Me];var rt,yt;function Tt(we,rn){function lr(Yi){return rn.tokenize=Yi,Yi(we,rn)}var Sn=we.next();if(Sn=="<")return we.eat("!")?we.eat("[")?we.match("CDATA[")?lr(Mr("atom","]]>")):null:we.match("--")?lr(Mr("comment","-->")):we.match("DOCTYPE",!0,!0)?(we.eatWhile(/[\w\._\-]/),lr(At(1))):null:we.eat("?")?(we.eatWhile(/[\w\._\-]/),rn.tokenize=Mr("meta","?>"),"meta"):(rt=we.eat("/")?"closeTag":"openTag",rn.tokenize=Gt,"tag bracket");if(Sn=="&"){var Kn;return we.eat("#")?we.eat("x")?Kn=we.eatWhile(/[a-fA-F\d]/)&&we.eat(";"):Kn=we.eatWhile(/[\d]/)&&we.eat(";"):Kn=we.eatWhile(/[\w\.\-:]/)&&we.eat(";"),Kn?"atom":"error"}else return we.eatWhile(/[^&<]/),null}Tt.isInText=!0;function Gt(we,rn){var lr=we.next();if(lr==">"||lr=="/"&&we.eat(">"))return rn.tokenize=Tt,rt=lr==">"?"endTag":"selfcloseTag","tag bracket";if(lr=="=")return rt="equals",null;if(lr=="<"){rn.tokenize=Tt,rn.state=Vn,rn.tagName=rn.tagStart=null;var Sn=rn.tokenize(we,rn);return Sn?Sn+" tag error":"tag error"}else return/[\'\"]/.test(lr)?(rn.tokenize=sr(lr),rn.stringStartCol=we.column(),rn.tokenize(we,rn)):(we.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function sr(we){var rn=function(lr,Sn){for(;!lr.eol();)if(lr.next()==we){Sn.tokenize=Gt;break}return"string"};return rn.isInAttribute=!0,rn}function Mr(we,rn){return function(lr,Sn){for(;!lr.eol();){if(lr.match(rn)){Sn.tokenize=Tt;break}lr.next()}return we}}function At(we){return function(rn,lr){for(var Sn;(Sn=rn.next())!=null;){if(Sn=="<")return lr.tokenize=At(we+1),lr.tokenize(rn,lr);if(Sn==">")if(we==1){lr.tokenize=Tt;break}else return lr.tokenize=At(we-1),lr.tokenize(rn,lr)}return"meta"}}function Mt(we){return we&&we.toLowerCase()}function Wt(we,rn,lr){this.prev=we.context,this.tagName=rn||"",this.indent=we.indented,this.startOfLine=lr,(de.doNotIndent.hasOwnProperty(rn)||we.context&&we.context.noIndent)&&(this.noIndent=!0)}function Ar(we){we.context&&(we.context=we.context.prev)}function an(we,rn){for(var lr;;){if(!we.context||(lr=we.context.tagName,!de.contextGrabbers.hasOwnProperty(Mt(lr))||!de.contextGrabbers[Mt(lr)].hasOwnProperty(Mt(rn))))return;Ar(we)}}function Vn(we,rn,lr){return we=="openTag"?(lr.tagStart=rn.column(),An):we=="closeTag"?gi:Vn}function An(we,rn,lr){return we=="word"?(lr.tagName=rn.current(),yt="tag",Mn):de.allowMissingTagName&&we=="endTag"?(yt="tag bracket",Mn(we,rn,lr)):(yt="error",An)}function gi(we,rn,lr){if(we=="word"){var Sn=rn.current();return lr.context&&lr.context.tagName!=Sn&&de.implicitlyClosed.hasOwnProperty(Mt(lr.context.tagName))&&Ar(lr),lr.context&&lr.context.tagName==Sn||de.matchClosing===!1?(yt="tag",ai):(yt="tag error",$n)}else return de.allowMissingTagName&&we=="endTag"?(yt="tag bracket",ai(we,rn,lr)):(yt="error",$n)}function ai(we,rn,lr){return we!="endTag"?(yt="error",ai):(Ar(lr),Vn)}function $n(we,rn,lr){return yt="error",ai(we,rn,lr)}function Mn(we,rn,lr){if(we=="word")return yt="attribute",yi;if(we=="endTag"||we=="selfcloseTag"){var Sn=lr.tagName,Kn=lr.tagStart;return lr.tagName=lr.tagStart=null,we=="selfcloseTag"||de.autoSelfClosers.hasOwnProperty(Mt(Sn))?an(lr,Sn):(an(lr,Sn),lr.context=new Wt(lr,Sn,Kn==lr.indented)),Vn}return yt="error",Mn}function yi(we,rn,lr){return we=="equals"?Cr:(de.allowMissing||(yt="error"),Mn(we,rn,lr))}function Cr(we,rn,lr){return we=="string"?Tn:we=="word"&&de.allowUnquoted?(yt="string",Mn):(yt="error",Mn(we,rn,lr))}function Tn(we,rn,lr){return we=="string"?Tn:Mn(we,rn,lr)}return{startState:function(we){var rn={tokenize:Tt,state:Vn,indented:we||0,tagName:null,tagStart:null,context:null};return we!=null&&(rn.baseIndent=we),rn},token:function(we,rn){if(!rn.tagName&&we.sol()&&(rn.indented=we.indentation()),we.eatSpace())return null;rt=null;var lr=rn.tokenize(we,rn);return(lr||rt)&&lr!="comment"&&(yt=null,rn.state=rn.state(rt||lr,we,rn),yt&&(lr=yt=="error"?lr+" error":yt)),lr},indent:function(we,rn,lr){var Sn=we.context;if(we.tokenize.isInAttribute)return we.tagStart==we.indented?we.stringStartCol+1:we.indented+pe;if(Sn&&Sn.noIndent)return l.Pass;if(we.tokenize!=Gt&&we.tokenize!=Tt)return lr?lr.match(/^(\s*)/)[0].length:0;if(we.tagName)return de.multilineTagIndentPastTag!==!1?we.tagStart+we.tagName.length+2:we.tagStart+pe*(de.multilineTagIndentFactor||1);if(de.alignCDATA&&/<!\[CDATA\[/.test(rn))return 0;var Kn=rn&&/^<(\/)?([\w_:\.-]*)/.exec(rn);if(Kn&&Kn[1])for(;Sn;)if(Sn.tagName==Kn[2]){Sn=Sn.prev;break}else if(de.implicitlyClosed.hasOwnProperty(Mt(Sn.tagName)))Sn=Sn.prev;else break;else if(Kn)for(;Sn;){var Yi=de.contextGrabbers[Mt(Sn.tagName)];if(Yi&&Yi.hasOwnProperty(Mt(Kn[2])))Sn=Sn.prev;else break}for(;Sn&&Sn.prev&&!Sn.startOfLine;)Sn=Sn.prev;return Sn?Sn.indent+pe:we.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:de.htmlMode?"html":"xml",helperType:de.htmlMode?"html":"xml",skipAttribute:function(we){we.state==Cr&&(we.state=Mn)},xmlCurrentTag:function(we){return we.tagName?{name:we.tagName,close:we.type=="closeTag"}:null},xmlCurrentContext:function(we){for(var rn=[],lr=we.context;lr;lr=lr.prev)rn.push(lr.tagName);return rn.reverse()}}}),l.defineMIME("text/xml","xml"),l.defineMIME("application/xml","xml"),l.mimeModes.hasOwnProperty("text/html")||l.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(i,c){(function(l){l(Ul.exports,ym.exports,gm.exports,SD.exports)})(function(l){var f={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function v(rt,yt,Tt){var Gt=rt.current(),sr=Gt.search(yt);return sr>-1?rt.backUp(Gt.length-sr):Gt.match(/<\/?$/)&&(rt.backUp(Gt.length),rt.match(yt,!1)||rt.match(Gt)),Tt}var B={};function Y(rt){var yt=B[rt];return yt||(B[rt]=new RegExp("\\s+"+rt+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function pe(rt,yt){var Tt=rt.match(Y(yt));return Tt?/^\s*(.*?)\s*$/.exec(Tt[2])[1]:""}function de(rt,yt){return new RegExp((yt?"^":"")+"</\\s*"+rt+"\\s*>","i")}function Le(rt,yt){for(var Tt in rt)for(var Gt=yt[Tt]||(yt[Tt]=[]),sr=rt[Tt],Mr=sr.length-1;Mr>=0;Mr--)Gt.unshift(sr[Mr])}function Me(rt,yt){for(var Tt=0;Tt<rt.length;Tt++){var Gt=rt[Tt];if(!Gt[0]||Gt[1].test(pe(yt,Gt[0])))return Gt[2]}}l.defineMode("htmlmixed",function(rt,yt){var Tt=l.getMode(rt,{name:"xml",htmlMode:!0,multilineTagIndentFactor:yt.multilineTagIndentFactor,multilineTagIndentPastTag:yt.multilineTagIndentPastTag,allowMissingTagName:yt.allowMissingTagName}),Gt={},sr=yt&&yt.tags,Mr=yt&&yt.scriptTypes;if(Le(f,Gt),sr&&Le(sr,Gt),Mr)for(var At=Mr.length-1;At>=0;At--)Gt.script.unshift(["type",Mr[At].matches,Mr[At].mode]);function Mt(Wt,Ar){var an=Tt.token(Wt,Ar.htmlState),Vn=/\btag\b/.test(an),An;if(Vn&&!/[<>\s\/]/.test(Wt.current())&&(An=Ar.htmlState.tagName&&Ar.htmlState.tagName.toLowerCase())&&Gt.hasOwnProperty(An))Ar.inTag=An+" ";else if(Ar.inTag&&Vn&&/>$/.test(Wt.current())){var gi=/^([\S]+) (.*)/.exec(Ar.inTag);Ar.inTag=null;var ai=Wt.current()==">"&&Me(Gt[gi[1]],gi[2]),$n=l.getMode(rt,ai),Mn=de(gi[1],!0),yi=de(gi[1],!1);Ar.token=function(Cr,Tn){return Cr.match(Mn,!1)?(Tn.token=Mt,Tn.localState=Tn.localMode=null,null):v(Cr,yi,Tn.localMode.token(Cr,Tn.localState))},Ar.localMode=$n,Ar.localState=l.startState($n,Tt.indent(Ar.htmlState,"",""))}else Ar.inTag&&(Ar.inTag+=Wt.current(),Wt.eol()&&(Ar.inTag+=" "));return an}return{startState:function(){var Wt=l.startState(Tt);return{token:Mt,inTag:null,localMode:null,localState:null,htmlState:Wt}},copyState:function(Wt){var Ar;return Wt.localState&&(Ar=l.copyState(Wt.localMode,Wt.localState)),{token:Wt.token,inTag:Wt.inTag,localMode:Wt.localMode,localState:Ar,htmlState:l.copyState(Tt,Wt.htmlState)}},token:function(Wt,Ar){return Ar.token(Wt,Ar)},indent:function(Wt,Ar,an){return!Wt.localMode||/^\s*<\//.test(Ar)?Tt.indent(Wt.htmlState,Ar,an):Wt.localMode.indent?Wt.localMode.indent(Wt.localState,Ar,an):l.Pass},innerMode:function(Wt){return{state:Wt.localState||Wt.htmlState,mode:Wt.localMode||Tt}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(i,c){(function(l){l(Ul.exports,ym.exports,gm.exports)})(function(l){function f(B,Y,pe,de){this.state=B,this.mode=Y,this.depth=pe,this.prev=de}function v(B){return new f(l.copyState(B.mode,B.state),B.mode,B.depth,B.prev&&v(B.prev))}l.defineMode("jsx",function(B,Y){var pe=l.getMode(B,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),de=l.getMode(B,Y&&Y.base||"javascript");function Le(Tt){var Gt=Tt.tagName;Tt.tagName=null;var sr=pe.indent(Tt,"","");return Tt.tagName=Gt,sr}function Me(Tt,Gt){return Gt.context.mode==pe?rt(Tt,Gt,Gt.context):yt(Tt,Gt,Gt.context)}function rt(Tt,Gt,sr){if(sr.depth==2)return Tt.match(/^.*?\*\//)?sr.depth=1:Tt.skipToEnd(),"comment";if(Tt.peek()=="{"){pe.skipAttribute(sr.state);var Mr=Le(sr.state),At=sr.state.context;if(At&&Tt.match(/^[^>]*>\s*$/,!1)){for(;At.prev&&!At.startOfLine;)At=At.prev;At.startOfLine?Mr-=B.indentUnit:sr.prev.state.lexical&&(Mr=sr.prev.state.lexical.indented)}else sr.depth==1&&(Mr+=B.indentUnit);return Gt.context=new f(l.startState(de,Mr),de,0,Gt.context),null}if(sr.depth==1){if(Tt.peek()=="<")return pe.skipAttribute(sr.state),Gt.context=new f(l.startState(pe,Le(sr.state)),pe,0,Gt.context),null;if(Tt.match("//"))return Tt.skipToEnd(),"comment";if(Tt.match("/*"))return sr.depth=2,Me(Tt,Gt)}var Mt=pe.token(Tt,sr.state),Wt=Tt.current(),Ar;return/\btag\b/.test(Mt)?/>$/.test(Wt)?sr.state.context?sr.depth=0:Gt.context=Gt.context.prev:/^</.test(Wt)&&(sr.depth=1):!Mt&&(Ar=Wt.indexOf("{"))>-1&&Tt.backUp(Wt.length-Ar),Mt}function yt(Tt,Gt,sr){if(Tt.peek()=="<"&&de.expressionAllowed(Tt,sr.state))return Gt.context=new f(l.startState(pe,de.indent(sr.state,"","")),pe,0,Gt.context),de.skipExpression(sr.state),null;var Mr=de.token(Tt,sr.state);if(!Mr&&sr.depth!=null){var At=Tt.current();At=="{"?sr.depth++:At=="}"&&--sr.depth==0&&(Gt.context=Gt.context.prev)}return Mr}return{startState:function(){return{context:new f(l.startState(de),de)}},copyState:function(Tt){return{context:v(Tt.context)}},token:Me,indent:function(Tt,Gt,sr){return Tt.context.mode.indent(Tt.context.state,Gt,sr)},innerMode:function(Tt){return Tt.context}}},"xml","javascript"),l.defineMIME("text/jsx","jsx"),l.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(i,c){(function(l){l(Ul.exports)})(function(l){l.defineOption("placeholder","",function(Le,Me,rt){var yt=rt&&rt!=l.Init;if(Me&&!yt)Le.on("blur",Y),Le.on("change",pe),Le.on("swapDoc",pe),l.on(Le.getInputField(),"compositionupdate",Le.state.placeholderCompose=function(){B(Le)}),pe(Le);else if(!Me&&yt){Le.off("blur",Y),Le.off("change",pe),Le.off("swapDoc",pe),l.off(Le.getInputField(),"compositionupdate",Le.state.placeholderCompose),f(Le);var Tt=Le.getWrapperElement();Tt.className=Tt.className.replace(" CodeMirror-empty","")}Me&&!Le.hasFocus()&&Y(Le)});function f(Le){Le.state.placeholder&&(Le.state.placeholder.parentNode.removeChild(Le.state.placeholder),Le.state.placeholder=null)}function v(Le){f(Le);var Me=Le.state.placeholder=document.createElement("pre");Me.style.cssText="height: 0; overflow: visible",Me.style.direction=Le.getOption("direction"),Me.className="CodeMirror-placeholder CodeMirror-line-like";var rt=Le.getOption("placeholder");typeof rt=="string"&&(rt=document.createTextNode(rt)),Me.appendChild(rt),Le.display.lineSpace.insertBefore(Me,Le.display.lineSpace.firstChild)}function B(Le){setTimeout(function(){var Me=!1;if(Le.lineCount()==1){var rt=Le.getInputField();Me=rt.nodeName=="TEXTAREA"?!Le.getLine(0).length:!/[^\u200b]/.test(rt.querySelector(".CodeMirror-line").textContent)}Me?v(Le):f(Le)},20)}function Y(Le){de(Le)&&v(Le)}function pe(Le){var Me=Le.getWrapperElement(),rt=de(Le);Me.className=Me.className.replace(" CodeMirror-empty","")+(rt?" CodeMirror-empty":""),rt?v(Le):f(Le)}function de(Le){return Le.lineCount()===1&&Le.getLine(0)===""}})})();(function(i,c){(function(l){l(Ul.exports)})(function(l){var f="CodeMirror-hint",v="CodeMirror-hint-active";l.showHint=function(At,Mt,Wt){if(!Mt)return At.showHint(Wt);Wt&&Wt.async&&(Mt.async=!0);var Ar={hint:Mt};if(Wt)for(var an in Wt)Ar[an]=Wt[an];return At.showHint(Ar)},l.defineExtension("showHint",function(At){At=de(this,this.getCursor("start"),At);var Mt=this.listSelections();if(!(Mt.length>1)){if(this.somethingSelected()){if(!At.hint.supportsSelection)return;for(var Wt=0;Wt<Mt.length;Wt++)if(Mt[Wt].head.line!=Mt[Wt].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var Ar=this.state.completionActive=new B(this,At);!Ar.options.hint||(l.signal(this,"startCompletion",this),Ar.update(!0))}}),l.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function B(At,Mt){if(this.cm=At,this.options=Mt,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var Wt=this;At.on("cursorActivity",this.activityFunc=function(){Wt.cursorActivity()})}}var Y=window.requestAnimationFrame||function(At){return setTimeout(At,1e3/60)},pe=window.cancelAnimationFrame||clearTimeout;B.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&l.signal(this.data,"close"),this.widget&&this.widget.close(),l.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(At,Mt){var Wt=At.list[Mt],Ar=this;this.cm.operation(function(){Wt.hint?Wt.hint(Ar.cm,At,Wt):Ar.cm.replaceRange(Le(Wt),Wt.from||At.from,Wt.to||At.to,"complete"),l.signal(At,"pick",Wt),Ar.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(pe(this.debounce),this.debounce=0);var At=this.startPos;this.data&&(At=this.data.from);var Mt=this.cm.getCursor(),Wt=this.cm.getLine(Mt.line);if(Mt.line!=this.startPos.line||Wt.length-Mt.ch!=this.startLen-this.startPos.ch||Mt.ch<At.ch||this.cm.somethingSelected()||!Mt.ch||this.options.closeCharacters.test(Wt.charAt(Mt.ch-1)))this.close();else{var Ar=this;this.debounce=Y(function(){Ar.update()}),this.widget&&this.widget.disable()}},update:function(At){if(this.tick!=null){var Mt=this,Wt=++this.tick;Gt(this.options.hint,this.cm,this.options,function(Ar){Mt.tick==Wt&&Mt.finishUpdate(Ar,At)})}},finishUpdate:function(At,Mt){this.data&&l.signal(this.data,"update");var Wt=this.widget&&this.widget.picked||Mt&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=At,At&&At.list.length&&(Wt&&At.list.length==1?this.pick(At,0):(this.widget=new yt(this,At),l.signal(At,"shown")))}};function de(At,Mt,Wt){var Ar=At.options.hintOptions,an={};for(var Vn in Mr)an[Vn]=Mr[Vn];if(Ar)for(var Vn in Ar)Ar[Vn]!==void 0&&(an[Vn]=Ar[Vn]);if(Wt)for(var Vn in Wt)Wt[Vn]!==void 0&&(an[Vn]=Wt[Vn]);return an.hint.resolve&&(an.hint=an.hint.resolve(At,Mt)),an}function Le(At){return typeof At=="string"?At:At.text}function Me(At,Mt){var Wt={Up:function(){Mt.moveFocus(-1)},Down:function(){Mt.moveFocus(1)},PageUp:function(){Mt.moveFocus(-Mt.menuSize()+1,!0)},PageDown:function(){Mt.moveFocus(Mt.menuSize()-1,!0)},Home:function(){Mt.setFocus(0)},End:function(){Mt.setFocus(Mt.length-1)},Enter:Mt.pick,Tab:Mt.pick,Esc:Mt.close},Ar=/Mac/.test(navigator.platform);Ar&&(Wt["Ctrl-P"]=function(){Mt.moveFocus(-1)},Wt["Ctrl-N"]=function(){Mt.moveFocus(1)});var an=At.options.customKeys,Vn=an?{}:Wt;function An($n,Mn){var yi;typeof Mn!="string"?yi=function(Cr){return Mn(Cr,Mt)}:Wt.hasOwnProperty(Mn)?yi=Wt[Mn]:yi=Mn,Vn[$n]=yi}if(an)for(var gi in an)an.hasOwnProperty(gi)&&An(gi,an[gi]);var ai=At.options.extraKeys;if(ai)for(var gi in ai)ai.hasOwnProperty(gi)&&An(gi,ai[gi]);return Vn}function rt(At,Mt){for(;Mt&&Mt!=At;){if(Mt.nodeName.toUpperCase()==="LI"&&Mt.parentNode==At)return Mt;Mt=Mt.parentNode}}function yt(At,Mt){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=At,this.data=Mt,this.picked=!1;var Wt=this,Ar=At.cm,an=Ar.getInputField().ownerDocument,Vn=an.defaultView||an.parentWindow,An=this.hints=an.createElement("ul");An.setAttribute("role","listbox"),An.setAttribute("aria-expanded","true"),An.id=this.id;var gi=At.cm.options.theme;An.className="CodeMirror-hints "+gi,this.selectedHint=Mt.selectedHint||0;for(var ai=Mt.list,$n=0;$n<ai.length;++$n){var Mn=An.appendChild(an.createElement("li")),yi=ai[$n],Cr=f+($n!=this.selectedHint?"":" "+v);yi.className!=null&&(Cr=yi.className+" "+Cr),Mn.className=Cr,$n==this.selectedHint&&Mn.setAttribute("aria-selected","true"),Mn.id=this.id+"-"+$n,Mn.setAttribute("role","option"),yi.render?yi.render(Mn,Mt,yi):Mn.appendChild(an.createTextNode(yi.displayText||Le(yi))),Mn.hintId=$n}var Tn=At.options.container||an.body,we=Ar.cursorCoords(At.options.alignWithWord?Mt.from:null),rn=we.left,lr=we.bottom,Sn=!0,Kn=0,Yi=0;if(Tn!==an.body){var ys=["absolute","relative","fixed"].indexOf(Vn.getComputedStyle(Tn).position)!==-1,Ns=ys?Tn:Tn.offsetParent,cs=Ns.getBoundingClientRect(),ts=an.body.getBoundingClientRect();Kn=cs.left-ts.left-Ns.scrollLeft,Yi=cs.top-ts.top-Ns.scrollTop}An.style.left=rn-Kn+"px",An.style.top=lr-Yi+"px";var _r=Vn.innerWidth||Math.max(an.body.offsetWidth,an.documentElement.offsetWidth),Kr=Vn.innerHeight||Math.max(an.body.offsetHeight,an.documentElement.offsetHeight);Tn.appendChild(An),Ar.getInputField().setAttribute("aria-autocomplete","list"),Ar.getInputField().setAttribute("aria-owns",this.id),Ar.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var yr=At.options.moveOnOverlap?An.getBoundingClientRect():new DOMRect,dn=At.options.paddingForScrollbar?An.scrollHeight>An.clientHeight+1:!1,oi;setTimeout(function(){oi=Ar.getScrollInfo()});var Jn=yr.bottom-Kr;if(Jn>0){var Un=yr.bottom-yr.top,li=we.top-(we.bottom-yr.top);if(li-Un>0)An.style.top=(lr=we.top-Un-Yi)+"px",Sn=!1;else if(Un>Kr){An.style.height=Kr-5+"px",An.style.top=(lr=we.bottom-yr.top-Yi)+"px";var ct=Ar.getCursor();Mt.from.ch!=ct.ch&&(we=Ar.cursorCoords(ct),An.style.left=(rn=we.left-Kn)+"px",yr=An.getBoundingClientRect())}}var Ot=yr.right-_r;if(dn&&(Ot+=Ar.display.nativeBarWidth),Ot>0&&(yr.right-yr.left>_r&&(An.style.width=_r-5+"px",Ot-=yr.right-yr.left-_r),An.style.left=(rn=Math.max(we.left-Ot-Kn,0))+"px"),dn)for(var Er=An.firstChild;Er;Er=Er.nextSibling)Er.style.paddingRight=Ar.display.nativeBarWidth+"px";if(Ar.addKeyMap(this.keyMap=Me(At,{moveFocus:function(fn,mn){Wt.changeActive(Wt.selectedHint+fn,mn)},setFocus:function(fn){Wt.changeActive(fn)},menuSize:function(){return Wt.screenAmount()},length:ai.length,close:function(){At.close()},pick:function(){Wt.pick()},data:Mt})),At.options.closeOnUnfocus){var ar;Ar.on("blur",this.onBlur=function(){ar=setTimeout(function(){At.close()},100)}),Ar.on("focus",this.onFocus=function(){clearTimeout(ar)})}Ar.on("scroll",this.onScroll=function(){var fn=Ar.getScrollInfo(),mn=Ar.getWrapperElement().getBoundingClientRect();oi||(oi=Ar.getScrollInfo());var Fn=lr+oi.top-fn.top,hn=Fn-(Vn.pageYOffset||(an.documentElement||an.body).scrollTop);if(Sn||(hn+=An.offsetHeight),hn<=mn.top||hn>=mn.bottom)return At.close();An.style.top=Fn+"px",An.style.left=rn+oi.left-fn.left+"px"}),l.on(An,"dblclick",function(fn){var mn=rt(An,fn.target||fn.srcElement);mn&&mn.hintId!=null&&(Wt.changeActive(mn.hintId),Wt.pick())}),l.on(An,"click",function(fn){var mn=rt(An,fn.target||fn.srcElement);mn&&mn.hintId!=null&&(Wt.changeActive(mn.hintId),At.options.completeOnSingleClick&&Wt.pick())}),l.on(An,"mousedown",function(){setTimeout(function(){Ar.focus()},20)});var Jr=this.getSelectedHintRange();return(Jr.from!==0||Jr.to!==0)&&this.scrollToActive(),l.signal(Mt,"select",ai[this.selectedHint],An.childNodes[this.selectedHint]),!0}yt.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var At=this.completion.cm.getInputField();At.removeAttribute("aria-activedescendant"),At.removeAttribute("aria-owns");var Mt=this.completion.cm;this.completion.options.closeOnUnfocus&&(Mt.off("blur",this.onBlur),Mt.off("focus",this.onFocus)),Mt.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var At=this;this.keyMap={Enter:function(){At.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(At,Mt){if(At>=this.data.list.length?At=Mt?this.data.list.length-1:0:At<0&&(At=Mt?0:this.data.list.length-1),this.selectedHint!=At){var Wt=this.hints.childNodes[this.selectedHint];Wt&&(Wt.className=Wt.className.replace(" "+v,""),Wt.removeAttribute("aria-selected")),Wt=this.hints.childNodes[this.selectedHint=At],Wt.className+=" "+v,Wt.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",Wt.id),this.scrollToActive(),l.signal(this.data,"select",this.data.list[this.selectedHint],Wt)}},scrollToActive:function(){var At=this.getSelectedHintRange(),Mt=this.hints.childNodes[At.from],Wt=this.hints.childNodes[At.to],Ar=this.hints.firstChild;Mt.offsetTop<this.hints.scrollTop?this.hints.scrollTop=Mt.offsetTop-Ar.offsetTop:Wt.offsetTop+Wt.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=Wt.offsetTop+Wt.offsetHeight-this.hints.clientHeight+Ar.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var At=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-At),to:Math.min(this.data.list.length-1,this.selectedHint+At)}}};function Tt(At,Mt){if(!At.somethingSelected())return Mt;for(var Wt=[],Ar=0;Ar<Mt.length;Ar++)Mt[Ar].supportsSelection&&Wt.push(Mt[Ar]);return Wt}function Gt(At,Mt,Wt,Ar){if(At.async)At(Mt,Ar,Wt);else{var an=At(Mt,Wt);an&&an.then?an.then(Ar):Ar(an)}}function sr(At,Mt){var Wt=At.getHelpers(Mt,"hint"),Ar;if(Wt.length){var an=function(Vn,An,gi){var ai=Tt(Vn,Wt);function $n(Mn){if(Mn==ai.length)return An(null);Gt(ai[Mn],Vn,gi,function(yi){yi&&yi.list.length>0?An(yi):$n(Mn+1)})}$n(0)};return an.async=!0,an.supportsSelection=!0,an}else return(Ar=At.getHelper(At.getCursor(),"hintWords"))?function(Vn){return l.hint.fromList(Vn,{words:Ar})}:l.hint.anyword?function(Vn,An){return l.hint.anyword(Vn,An)}:function(){}}l.registerHelper("hint","auto",{resolve:sr}),l.registerHelper("hint","fromList",function(At,Mt){var Wt=At.getCursor(),Ar=At.getTokenAt(Wt),an,Vn=l.Pos(Wt.line,Ar.start),An=Wt;Ar.start<Wt.ch&&/\w/.test(Ar.string.charAt(Wt.ch-Ar.start-1))?an=Ar.string.substr(0,Wt.ch-Ar.start):(an="",Vn=Wt);for(var gi=[],ai=0;ai<Mt.words.length;ai++){var $n=Mt.words[ai];$n.slice(0,an.length)==an&&gi.push($n)}if(gi.length)return{list:gi,from:Vn,to:An}}),l.commands.autocomplete=l.showHint;var Mr={hint:l.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};l.defineOption("hintOptions",null)})})();function FD(i,c,l={}){const f=TD.fromTextArea(i.value,{theme:"vars",...Cs(l)});Ga(l,B=>Object.entries(B).forEach(([Y,pe])=>f.setOption(Y,pe)));let v=!1;return f.on("change",()=>{if(v){v=!1;return}c.value=f.getValue()}),Ga(c,B=>{if(B!==f.getValue()){v=!0;const Y=f.listSelections();f.replaceRange(B,f.posFromIndex(0),f.posFromIndex(1/0)),f.setSelections(Y)}},{immediate:!0}),f}const kD={relative:"","font-mono":"","text-sm":""},PD=nl({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean},matched:null,getHint:null},emits:["update:modelValue"],setup(i,{emit:c}){const l=i,f={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},v=Pa(),B=vD(l,"modelValue",c,{passive:!0}),Y=Ks(()=>f[l.mode||""]||l.mode),pe=Ks(()=>l.getHint?{"Ctrl-Space":"autocomplete","Ctrl-.":"autocomplete","Cmd-Space":"autocomplete","Cmd-.":"autocomplete",Tab:"autocomplete"}:{}),de=Ks(()=>l.getHint?{hint:l.getHint}:{});return Ih(async()=>{const Le=FD(v,B,Pc({...Ig(l),mode:Y,hintOptions:de,extraKeys:pe}));Le.setSize("100%","100%"),l.getHint&&Le.on("keyup",(Gt,sr)=>{sr.key.match(/^[\w:-]$/)&&Gt.execCommand("autocomplete")}),setTimeout(()=>Le.refresh(),100);const Me=[];function rt(Gt,sr){Me.push(Le.markText(Le.posFromIndex(Gt),Le.posFromIndex(sr),{className:"highlighted"}))}function yt(){Me.forEach(Gt=>Gt.clear()),wD(l.modelValue,Array.from(l.matched||[]),!0).forEach(Gt=>rt(Gt[0],Gt[1]))}let Tt=0;Ga(()=>[l.modelValue,l.matched],async()=>{clearTimeout(Tt),l.matched&&(Tt=setTimeout(yt,200))},{immediate:!0})}),(Le,Me)=>(xa(),ho("div",kD,[Vi("textarea",{ref_key:"el",ref:v},null,512)]))}});const Dm=(i,c)=>{const l=i.__vccOpts||i;for(const[f,v]of c)l[f]=v;return l},ND={},BD={"bg-gray4:10":"","p-5":"",b:"b main",text:"sm gray5 dark:gray3"};function _D(i,c){return xa(),ho("div",BD,[vp(i.$slots,"default")])}const ID=Dm(ND,[["render",_D]]),OD={style:{"background-color":"var(--cm-background)"},border:"l y gray/20",text:"gray/80",p1:"","min-h-30px":"","max-h-30px":"","select-none":"",flex:"","all:my-auto":""},LD={"mr-2":"","op-60":""},MD={flex:"","gap-2":"","flex-auto":""},jD=nl({__name:"TitleBar",props:{title:null},emits:["titleClick"],setup(i,{emit:c}){return(l,f)=>(xa(),ho("div",OD,[Vi("div",{flex:"",onClick:f[0]||(f[0]=v=>c("titleClick",v))},[vp(l.$slots,"before"),Vi("div",LD,Bo(i.title),1)]),Vi("div",MD,[vp(l.$slots,"default")])]))}}),RD="/@vite/client",vm=$c(),xm=$c(),UD=vm.on,Cm=xm.on;xh(()=>import(RD),[]).then(i=>{const c=i.createHotContext("/");c.on("vite:beforeUpdate",l=>{l.updates.forEach(f=>{vm.trigger(f)})}),c.on("unocss:config-changed",()=>{xm.trigger()})}).catch(i=>{console.error("failed to connect to client vite server, you might need to do manual refresh to see the updates"),console.error(i)});const qp="/__unocss_api",Em=zp(qp).json(),zh=zp(`${qp}/overview`,{immediate:!1}).json(),eo=Em.data,up=zh.data;Cm(()=>{Em.execute(),zh.execute()});function mx(i){const c=zp(Ks(()=>`${qp}/module?id=${encodeURIComponent(Cs(i))}`),{refetch:!0}).json();return Cm(()=>c.execute()),UD(l=>{var f;(l.path===Cs(i)||l.path===Cs(i).slice(((f=eo.value)==null?void 0:f.root.length)||0))&&setTimeout(()=>{c.execute()},50)}),c}function gx(i,c){const l=Cy(i,500);return zp(Ks(()=>`${qp}/repl?token=${encodeURIComponent(l.value)}&safelist=${c.value}`),{refetch:!0}).json()}const lp=Ks(()=>{if(!eo.value)return{workspace:{children:{},items:[]},root:{children:{},items:[]}};const i=eo.value.modules.map(f=>({full:f,path:f})),c=i.filter(f=>f.full.startsWith(eo.value.root)),l=i.filter(f=>!f.full.startsWith(eo.value.root));return c.forEach(f=>f.path=f.path.slice(eo.value.root.length+1)),{workspace:qf(c,"Project Root"),root:qf(l,"Disk Root")}});function qf(i,c){const l={name:c,children:{},items:[]};function f(v,B,Y=l){if(B.length<=1){Y.items.push(v);return}const pe=B.shift();Y.children[pe]||(Y.children[pe]={name:pe,children:{},items:[]}),f(v,B,Y.children[pe])}return i.forEach(v=>{const B=v.path.split(/\//g).filter(Boolean);f(v,B)}),l}const zD={key:0,"ws-wrap":""},HD=Vi("span",{op80:""},".",-1),qD={key:1},$D=nl({__name:"ModuleId",props:{id:null},setup(i){return(c,l)=>i.id&&Cs(eo)?(xa(),ho("span",zD,[i.id.startsWith(Cs(eo).root)?(xa(),ho(Xo,{key:0},[HD,Vi("span",null,Bo(i.id.slice(Cs(eo).root.length)),1)],64)):(xa(),ho("span",qD,Bo(i.id),1))])):bp("",!0)}}),WD=(i,c)=>{const l=Pa(null);return oD(i,()=>{var v;const f=(v=Uh(i))==null?void 0:v.clientHeight;l.value=f?`--${c}: calc(100vh - ${f}px - 2px);`:null}),l};var bm={exports:{}};(function(i,c){(function(l){i.exports=l()})(function(){var l=(Ie,ce)=>()=>(ce||Ie((ce={exports:{}}).exports,ce),ce.exports),f=l((Ie,ce)=>{var me=function(be){return be&&be.Math==Math&&be};ce.exports=me(typeof globalThis=="object"&&globalThis)||me(typeof window=="object"&&window)||me(typeof self=="object"&&self)||me(typeof jl=="object"&&jl)||function(){return this}()||Function("return this")()}),v=l((Ie,ce)=>{ce.exports=function(me){try{return!!me()}catch{return!0}}}),B=l((Ie,ce)=>{var me=v();ce.exports=!me(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),Y=l((Ie,ce)=>{var me=v();ce.exports=!me(function(){var be=function(){}.bind();return typeof be!="function"||be.hasOwnProperty("prototype")})}),pe=l((Ie,ce)=>{var me=Y(),be=Function.prototype.call;ce.exports=me?be.bind(be):function(){return be.apply(be,arguments)}}),de=l(Ie=>{var ce={}.propertyIsEnumerable,me=Object.getOwnPropertyDescriptor,be=me&&!ce.call({1:2},1);Ie.f=be?function(Ee){var He=me(this,Ee);return!!He&&He.enumerable}:ce}),Le=l((Ie,ce)=>{ce.exports=function(me,be){return{enumerable:!(me&1),configurable:!(me&2),writable:!(me&4),value:be}}}),Me=l((Ie,ce)=>{var me=Y(),be=Function.prototype,Ee=be.bind,He=be.call,et=me&&Ee.bind(He,He);ce.exports=me?function(st){return st&&et(st)}:function(st){return st&&function(){return He.apply(st,arguments)}}}),rt=l((Ie,ce)=>{var me=Me(),be=me({}.toString),Ee=me("".slice);ce.exports=function(He){return Ee(be(He),8,-1)}}),yt=l((Ie,ce)=>{var me=f(),be=Me(),Ee=v(),He=rt(),et=me.Object,st=be("".split);ce.exports=Ee(function(){return!et("z").propertyIsEnumerable(0)})?function(Dt){return He(Dt)=="String"?st(Dt,""):et(Dt)}:et}),Tt=l((Ie,ce)=>{var me=f(),be=me.TypeError;ce.exports=function(Ee){if(Ee==null)throw be("Can't call method on "+Ee);return Ee}}),Gt=l((Ie,ce)=>{var me=yt(),be=Tt();ce.exports=function(Ee){return me(be(Ee))}}),sr=l((Ie,ce)=>{ce.exports=function(me){return typeof me=="function"}}),Mr=l((Ie,ce)=>{var me=sr();ce.exports=function(be){return typeof be=="object"?be!==null:me(be)}}),At=l((Ie,ce)=>{var me=f(),be=sr(),Ee=function(He){return be(He)?He:void 0};ce.exports=function(He,et){return arguments.length<2?Ee(me[He]):me[He]&&me[He][et]}}),Mt=l((Ie,ce)=>{var me=Me();ce.exports=me({}.isPrototypeOf)}),Wt=l((Ie,ce)=>{var me=At();ce.exports=me("navigator","userAgent")||""}),Ar=l((Ie,ce)=>{var me=f(),be=Wt(),Ee=me.process,He=me.Deno,et=Ee&&Ee.versions||He&&He.version,st=et&&et.v8,Dt,Vt;st&&(Dt=st.split("."),Vt=Dt[0]>0&&Dt[0]<4?1:+(Dt[0]+Dt[1])),!Vt&&be&&(Dt=be.match(/Edge\/(\d+)/),(!Dt||Dt[1]>=74)&&(Dt=be.match(/Chrome\/(\d+)/),Dt&&(Vt=+Dt[1]))),ce.exports=Vt}),an=l((Ie,ce)=>{var me=Ar(),be=v();ce.exports=!!Object.getOwnPropertySymbols&&!be(function(){var Ee=Symbol();return!String(Ee)||!(Object(Ee)instanceof Symbol)||!Symbol.sham&&me&&me<41})}),Vn=l((Ie,ce)=>{var me=an();ce.exports=me&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),An=l((Ie,ce)=>{var me=f(),be=At(),Ee=sr(),He=Mt(),et=Vn(),st=me.Object;ce.exports=et?function(Dt){return typeof Dt=="symbol"}:function(Dt){var Vt=be("Symbol");return Ee(Vt)&&He(Vt.prototype,st(Dt))}}),gi=l((Ie,ce)=>{var me=f(),be=me.String;ce.exports=function(Ee){try{return be(Ee)}catch{return"Object"}}}),ai=l((Ie,ce)=>{var me=f(),be=sr(),Ee=gi(),He=me.TypeError;ce.exports=function(et){if(be(et))return et;throw He(Ee(et)+" is not a function")}}),$n=l((Ie,ce)=>{var me=ai();ce.exports=function(be,Ee){var He=be[Ee];return He==null?void 0:me(He)}}),Mn=l((Ie,ce)=>{var me=f(),be=pe(),Ee=sr(),He=Mr(),et=me.TypeError;ce.exports=function(st,Dt){var Vt,nr;if(Dt==="string"&&Ee(Vt=st.toString)&&!He(nr=be(Vt,st))||Ee(Vt=st.valueOf)&&!He(nr=be(Vt,st))||Dt!=="string"&&Ee(Vt=st.toString)&&!He(nr=be(Vt,st)))return nr;throw et("Can't convert object to primitive value")}}),yi=l((Ie,ce)=>{ce.exports=!1}),Cr=l((Ie,ce)=>{var me=f(),be=Object.defineProperty;ce.exports=function(Ee,He){try{be(me,Ee,{value:He,configurable:!0,writable:!0})}catch{me[Ee]=He}return He}}),Tn=l((Ie,ce)=>{var me=f(),be=Cr(),Ee="__core-js_shared__",He=me[Ee]||be(Ee,{});ce.exports=He}),we=l((Ie,ce)=>{var me=yi(),be=Tn();(ce.exports=function(Ee,He){return be[Ee]||(be[Ee]=He!==void 0?He:{})})("versions",[]).push({version:"3.22.2",mode:me?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"})}),rn=l((Ie,ce)=>{var me=f(),be=Tt(),Ee=me.Object;ce.exports=function(He){return Ee(be(He))}}),lr=l((Ie,ce)=>{var me=Me(),be=rn(),Ee=me({}.hasOwnProperty);ce.exports=Object.hasOwn||function(He,et){return Ee(be(He),et)}}),Sn=l((Ie,ce)=>{var me=Me(),be=0,Ee=Math.random(),He=me(1 .toString);ce.exports=function(et){return"Symbol("+(et===void 0?"":et)+")_"+He(++be+Ee,36)}}),Kn=l((Ie,ce)=>{var me=f(),be=we(),Ee=lr(),He=Sn(),et=an(),st=Vn(),Dt=be("wks"),Vt=me.Symbol,nr=Vt&&Vt.for,Tr=st?Vt:Vt&&Vt.withoutSetter||He;ce.exports=function(zr){if(!Ee(Dt,zr)||!(et||typeof Dt[zr]=="string")){var Yr="Symbol."+zr;et&&Ee(Vt,zr)?Dt[zr]=Vt[zr]:st&&nr?Dt[zr]=nr(Yr):Dt[zr]=Tr(Yr)}return Dt[zr]}}),Yi=l((Ie,ce)=>{var me=f(),be=pe(),Ee=Mr(),He=An(),et=$n(),st=Mn(),Dt=Kn(),Vt=me.TypeError,nr=Dt("toPrimitive");ce.exports=function(Tr,zr){if(!Ee(Tr)||He(Tr))return Tr;var Yr=et(Tr,nr),tn;if(Yr){if(zr===void 0&&(zr="default"),tn=be(Yr,Tr,zr),!Ee(tn)||He(tn))return tn;throw Vt("Can't convert object to primitive value")}return zr===void 0&&(zr="number"),st(Tr,zr)}}),ys=l((Ie,ce)=>{var me=Yi(),be=An();ce.exports=function(Ee){var He=me(Ee,"string");return be(He)?He:He+""}}),Ns=l((Ie,ce)=>{var me=f(),be=Mr(),Ee=me.document,He=be(Ee)&&be(Ee.createElement);ce.exports=function(et){return He?Ee.createElement(et):{}}}),cs=l((Ie,ce)=>{var me=B(),be=v(),Ee=Ns();ce.exports=!me&&!be(function(){return Object.defineProperty(Ee("div"),"a",{get:function(){return 7}}).a!=7})}),ts=l(Ie=>{var ce=B(),me=pe(),be=de(),Ee=Le(),He=Gt(),et=ys(),st=lr(),Dt=cs(),Vt=Object.getOwnPropertyDescriptor;Ie.f=ce?Vt:function(nr,Tr){if(nr=He(nr),Tr=et(Tr),Dt)try{return Vt(nr,Tr)}catch{}if(st(nr,Tr))return Ee(!me(be.f,nr,Tr),nr[Tr])}}),_r=l((Ie,ce)=>{var me=B(),be=v();ce.exports=me&&be(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Kr=l((Ie,ce)=>{var me=f(),be=Mr(),Ee=me.String,He=me.TypeError;ce.exports=function(et){if(be(et))return et;throw He(Ee(et)+" is not an object")}}),yr=l(Ie=>{var ce=f(),me=B(),be=cs(),Ee=_r(),He=Kr(),et=ys(),st=ce.TypeError,Dt=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,nr="enumerable",Tr="configurable",zr="writable";Ie.f=me?Ee?function(Yr,tn,Pr){if(He(Yr),tn=et(tn),He(Pr),typeof Yr=="function"&&tn==="prototype"&&"value"in Pr&&zr in Pr&&!Pr[zr]){var kn=Vt(Yr,tn);kn&&kn[zr]&&(Yr[tn]=Pr.value,Pr={configurable:Tr in Pr?Pr[Tr]:kn[Tr],enumerable:nr in Pr?Pr[nr]:kn[nr],writable:!1})}return Dt(Yr,tn,Pr)}:Dt:function(Yr,tn,Pr){if(He(Yr),tn=et(tn),He(Pr),be)try{return Dt(Yr,tn,Pr)}catch{}if("get"in Pr||"set"in Pr)throw st("Accessors not supported");return"value"in Pr&&(Yr[tn]=Pr.value),Yr}}),dn=l((Ie,ce)=>{var me=B(),be=yr(),Ee=Le();ce.exports=me?function(He,et,st){return be.f(He,et,Ee(1,st))}:function(He,et,st){return He[et]=st,He}}),oi=l((Ie,ce)=>{var me=Me(),be=sr(),Ee=Tn(),He=me(Function.toString);be(Ee.inspectSource)||(Ee.inspectSource=function(et){return He(et)}),ce.exports=Ee.inspectSource}),Jn=l((Ie,ce)=>{var me=f(),be=sr(),Ee=oi(),He=me.WeakMap;ce.exports=be(He)&&/native code/.test(Ee(He))}),Un=l((Ie,ce)=>{var me=we(),be=Sn(),Ee=me("keys");ce.exports=function(He){return Ee[He]||(Ee[He]=be(He))}}),li=l((Ie,ce)=>{ce.exports={}}),ct=l((Ie,ce)=>{var me=Jn(),be=f(),Ee=Me(),He=Mr(),et=dn(),st=lr(),Dt=Tn(),Vt=Un(),nr=li(),Tr="Object already initialized",zr=be.TypeError,Yr=be.WeakMap,tn,Pr,kn,pi=function(xi){return kn(xi)?Pr(xi):tn(xi,{})},yn=function(xi){return function(ti){var Gn;if(!He(ti)||(Gn=Pr(ti)).type!==xi)throw zr("Incompatible receiver, "+xi+" required");return Gn}};me||Dt.state?(Ji=Dt.state||(Dt.state=new Yr),vi=Ee(Ji.get),Xe=Ee(Ji.has),Ds=Ee(Ji.set),tn=function(xi,ti){if(Xe(Ji,xi))throw new zr(Tr);return ti.facade=xi,Ds(Ji,xi,ti),ti},Pr=function(xi){return vi(Ji,xi)||{}},kn=function(xi){return Xe(Ji,xi)}):(Li=Vt("state"),nr[Li]=!0,tn=function(xi,ti){if(st(xi,Li))throw new zr(Tr);return ti.facade=xi,et(xi,Li,ti),ti},Pr=function(xi){return st(xi,Li)?xi[Li]:{}},kn=function(xi){return st(xi,Li)});var Ji,vi,Xe,Ds,Li;ce.exports={set:tn,get:Pr,has:kn,enforce:pi,getterFor:yn}}),Ot=l((Ie,ce)=>{var me=B(),be=lr(),Ee=Function.prototype,He=me&&Object.getOwnPropertyDescriptor,et=be(Ee,"name"),st=et&&function(){}.name==="something",Dt=et&&(!me||me&&He(Ee,"name").configurable);ce.exports={EXISTS:et,PROPER:st,CONFIGURABLE:Dt}}),Er=l((Ie,ce)=>{var me=f(),be=sr(),Ee=lr(),He=dn(),et=Cr(),st=oi(),Dt=ct(),Vt=Ot().CONFIGURABLE,nr=Dt.get,Tr=Dt.enforce,zr=String(String).split("String");(ce.exports=function(Yr,tn,Pr,kn){var pi=kn?!!kn.unsafe:!1,yn=kn?!!kn.enumerable:!1,Ji=kn?!!kn.noTargetGet:!1,vi=kn&&kn.name!==void 0?kn.name:tn,Xe;if(be(Pr)&&(String(vi).slice(0,7)==="Symbol("&&(vi="["+String(vi).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ee(Pr,"name")||Vt&&Pr.name!==vi)&&He(Pr,"name",vi),Xe=Tr(Pr),Xe.source||(Xe.source=zr.join(typeof vi=="string"?vi:""))),Yr===me){yn?Yr[tn]=Pr:et(tn,Pr);return}else pi?!Ji&&Yr[tn]&&(yn=!0):delete Yr[tn];yn?Yr[tn]=Pr:He(Yr,tn,Pr)})(Function.prototype,"toString",function(){return be(this)&&nr(this).source||st(this)})}),ar=l((Ie,ce)=>{var me=Math.ceil,be=Math.floor;ce.exports=function(Ee){var He=+Ee;return He!==He||He===0?0:(He>0?be:me)(He)}}),Jr=l((Ie,ce)=>{var me=ar(),be=Math.max,Ee=Math.min;ce.exports=function(He,et){var st=me(He);return st<0?be(st+et,0):Ee(st,et)}}),fn=l((Ie,ce)=>{var me=ar(),be=Math.min;ce.exports=function(Ee){return Ee>0?be(me(Ee),9007199254740991):0}}),mn=l((Ie,ce)=>{var me=fn();ce.exports=function(be){return me(be.length)}}),Fn=l((Ie,ce)=>{var me=Gt(),be=Jr(),Ee=mn(),He=function(et){return function(st,Dt,Vt){var nr=me(st),Tr=Ee(nr),zr=be(Vt,Tr),Yr;if(et&&Dt!=Dt){for(;Tr>zr;)if(Yr=nr[zr++],Yr!=Yr)return!0}else for(;Tr>zr;zr++)if((et||zr in nr)&&nr[zr]===Dt)return et||zr||0;return!et&&-1}};ce.exports={includes:He(!0),indexOf:He(!1)}}),hn=l((Ie,ce)=>{var me=Me(),be=lr(),Ee=Gt(),He=Fn().indexOf,et=li(),st=me([].push);ce.exports=function(Dt,Vt){var nr=Ee(Dt),Tr=0,zr=[],Yr;for(Yr in nr)!be(et,Yr)&&be(nr,Yr)&&st(zr,Yr);for(;Vt.length>Tr;)be(nr,Yr=Vt[Tr++])&&(~He(zr,Yr)||st(zr,Yr));return zr}}),lt=l((Ie,ce)=>{ce.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),br=l(Ie=>{var ce=hn(),me=lt(),be=me.concat("length","prototype");Ie.f=Object.getOwnPropertyNames||function(Ee){return ce(Ee,be)}}),jt=l(Ie=>{Ie.f=Object.getOwnPropertySymbols}),jn=l((Ie,ce)=>{var me=At(),be=Me(),Ee=br(),He=jt(),et=Kr(),st=be([].concat);ce.exports=me("Reflect","ownKeys")||function(Dt){var Vt=Ee.f(et(Dt)),nr=He.f;return nr?st(Vt,nr(Dt)):Vt}}),Di=l((Ie,ce)=>{var me=lr(),be=jn(),Ee=ts(),He=yr();ce.exports=function(et,st,Dt){for(var Vt=be(st),nr=He.f,Tr=Ee.f,zr=0;zr<Vt.length;zr++){var Yr=Vt[zr];!me(et,Yr)&&!(Dt&&me(Dt,Yr))&&nr(et,Yr,Tr(st,Yr))}}}),ns=l((Ie,ce)=>{var me=v(),be=sr(),Ee=/#|\.prototype\./,He=function(nr,Tr){var zr=st[et(nr)];return zr==Vt?!0:zr==Dt?!1:be(Tr)?me(Tr):!!Tr},et=He.normalize=function(nr){return String(nr).replace(Ee,".").toLowerCase()},st=He.data={},Dt=He.NATIVE="N",Vt=He.POLYFILL="P";ce.exports=He}),is=l((Ie,ce)=>{var me=f(),be=ts().f,Ee=dn(),He=Er(),et=Cr(),st=Di(),Dt=ns();ce.exports=function(Vt,nr){var Tr=Vt.target,zr=Vt.global,Yr=Vt.stat,tn,Pr,kn,pi,yn,Ji;if(zr?Pr=me:Yr?Pr=me[Tr]||et(Tr,{}):Pr=(me[Tr]||{}).prototype,Pr)for(kn in nr){if(yn=nr[kn],Vt.noTargetGet?(Ji=be(Pr,kn),pi=Ji&&Ji.value):pi=Pr[kn],tn=Dt(zr?kn:Tr+(Yr?".":"#")+kn,Vt.forced),!tn&&pi!==void 0){if(typeof yn==typeof pi)continue;st(yn,pi)}(Vt.sham||pi&&pi.sham)&&Ee(yn,"sham",!0),He(Pr,kn,yn,Vt)}}}),ls=l((Ie,ce)=>{var me=rt();ce.exports=Array.isArray||function(be){return me(be)=="Array"}}),zi=l((Ie,ce)=>{var me=Me(),be=ai(),Ee=Y(),He=me(me.bind);ce.exports=function(et,st){return be(et),st===void 0?et:Ee?He(et,st):function(){return et.apply(st,arguments)}}}),Ls=l((Ie,ce)=>{var me=f(),be=ls(),Ee=mn(),He=zi(),et=me.TypeError,st=function(Dt,Vt,nr,Tr,zr,Yr,tn,Pr){for(var kn=zr,pi=0,yn=tn?He(tn,Pr):!1,Ji,vi;pi<Tr;){if(pi in nr){if(Ji=yn?yn(nr[pi],pi,Vt):nr[pi],Yr>0&&be(Ji))vi=Ee(Ji),kn=st(Dt,Vt,Ji,vi,kn,Yr-1)-1;else{if(kn>=9007199254740991)throw et("Exceed the acceptable array length");Dt[kn]=Ji}kn++}pi++}return kn};ce.exports=st}),qn=l((Ie,ce)=>{var me=Kn(),be=me("toStringTag"),Ee={};Ee[be]="z",ce.exports=String(Ee)==="[object z]"}),Fr=l((Ie,ce)=>{var me=f(),be=qn(),Ee=sr(),He=rt(),et=Kn(),st=et("toStringTag"),Dt=me.Object,Vt=He(function(){return arguments}())=="Arguments",nr=function(Tr,zr){try{return Tr[zr]}catch{}};ce.exports=be?He:function(Tr){var zr,Yr,tn;return Tr===void 0?"Undefined":Tr===null?"Null":typeof(Yr=nr(zr=Dt(Tr),st))=="string"?Yr:Vt?He(zr):(tn=He(zr))=="Object"&&Ee(zr.callee)?"Arguments":tn}}),Br=l((Ie,ce)=>{var me=Me(),be=v(),Ee=sr(),He=Fr(),et=At(),st=oi(),Dt=function(){},Vt=[],nr=et("Reflect","construct"),Tr=/^\s*(?:class|function)\b/,zr=me(Tr.exec),Yr=!Tr.exec(Dt),tn=function(kn){if(!Ee(kn))return!1;try{return nr(Dt,Vt,kn),!0}catch{return!1}},Pr=function(kn){if(!Ee(kn))return!1;switch(He(kn)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yr||!!zr(Tr,st(kn))}catch{return!0}};Pr.sham=!0,ce.exports=!nr||be(function(){var kn;return tn(tn.call)||!tn(Object)||!tn(function(){kn=!0})||kn})?Pr:tn}),Xt=l((Ie,ce)=>{var me=f(),be=ls(),Ee=Br(),He=Mr(),et=Kn(),st=et("species"),Dt=me.Array;ce.exports=function(Vt){var nr;return be(Vt)&&(nr=Vt.constructor,Ee(nr)&&(nr===Dt||be(nr.prototype))?nr=void 0:He(nr)&&(nr=nr[st],nr===null&&(nr=void 0))),nr===void 0?Dt:nr}}),Vr=l((Ie,ce)=>{var me=Xt();ce.exports=function(be,Ee){return new(me(be))(Ee===0?0:Ee)}}),cr=l(()=>{var Ie=is(),ce=Ls(),me=ai(),be=rn(),Ee=mn(),He=Vr();Ie({target:"Array",proto:!0},{flatMap:function(et){var st=be(this),Dt=Ee(st),Vt;return me(et),Vt=He(st,0),Vt.length=ce(Vt,st,st,Dt,0,1,et,arguments.length>1?arguments[1]:void 0),Vt}})}),gn=l((Ie,ce)=>{ce.exports={}}),zt=l((Ie,ce)=>{var me=Kn(),be=gn(),Ee=me("iterator"),He=Array.prototype;ce.exports=function(et){return et!==void 0&&(be.Array===et||He[Ee]===et)}}),Qn=l((Ie,ce)=>{var me=Fr(),be=$n(),Ee=gn(),He=Kn(),et=He("iterator");ce.exports=function(st){if(st!=null)return be(st,et)||be(st,"@@iterator")||Ee[me(st)]}}),wr=l((Ie,ce)=>{var me=f(),be=pe(),Ee=ai(),He=Kr(),et=gi(),st=Qn(),Dt=me.TypeError;ce.exports=function(Vt,nr){var Tr=arguments.length<2?st(Vt):nr;if(Ee(Tr))return He(be(Tr,Vt));throw Dt(et(Vt)+" is not iterable")}}),Nt=l((Ie,ce)=>{var me=pe(),be=Kr(),Ee=$n();ce.exports=function(He,et,st){var Dt,Vt;be(He);try{if(Dt=Ee(He,"return"),!Dt){if(et==="throw")throw st;return st}Dt=me(Dt,He)}catch(nr){Vt=!0,Dt=nr}if(et==="throw")throw st;if(Vt)throw Dt;return be(Dt),st}}),Ue=l((Ie,ce)=>{var me=f(),be=zi(),Ee=pe(),He=Kr(),et=gi(),st=zt(),Dt=mn(),Vt=Mt(),nr=wr(),Tr=Qn(),zr=Nt(),Yr=me.TypeError,tn=function(kn,pi){this.stopped=kn,this.result=pi},Pr=tn.prototype;ce.exports=function(kn,pi,yn){var Ji=yn&&yn.that,vi=!!(yn&&yn.AS_ENTRIES),Xe=!!(yn&&yn.IS_ITERATOR),Ds=!!(yn&&yn.INTERRUPTED),Li=be(pi,Ji),xi,ti,Gn,$s,js,S,Je,jr=function(ci){return xi&&zr(xi,"normal",ci),new tn(!0,ci)},sn=function(ci){return vi?(He(ci),Ds?Li(ci[0],ci[1],jr):Li(ci[0],ci[1])):Ds?Li(ci,jr):Li(ci)};if(Xe)xi=kn;else{if(ti=Tr(kn),!ti)throw Yr(et(kn)+" is not iterable");if(st(ti)){for(Gn=0,$s=Dt(kn);$s>Gn;Gn++)if(js=sn(kn[Gn]),js&&Vt(Pr,js))return js;return new tn(!1)}xi=nr(kn,ti)}for(S=xi.next;!(Je=Ee(S,xi)).done;){try{js=sn(Je.value)}catch(ci){zr(xi,"throw",ci)}if(typeof js=="object"&&js&&Vt(Pr,js))return js}return new tn(!1)}}),Bt=l((Ie,ce)=>{var me=ys(),be=yr(),Ee=Le();ce.exports=function(He,et,st){var Dt=me(et);Dt in He?be.f(He,Dt,Ee(0,st)):He[Dt]=st}}),Jt=l(()=>{var Ie=is(),ce=Ue(),me=Bt();Ie({target:"Object",stat:!0},{fromEntries:function(be){var Ee={};return ce(be,function(He,et){me(Ee,He,et)},{AS_ENTRIES:!0}),Ee}})}),tr=l(()=>{var Ie=is(),ce=f();Ie({global:!0},{globalThis:ce})}),Ur=l(()=>{tr()}),on=l(()=>{var Ie=is(),ce=Ls(),me=rn(),be=mn(),Ee=ar(),He=Vr();Ie({target:"Array",proto:!0},{flat:function(){var et=arguments.length?arguments[0]:void 0,st=me(this),Dt=be(st),Vt=He(st,0);return Vt.length=ce(Vt,st,st,Dt,0,et===void 0?1:Ee(et)),Vt}})}),Rt=l((Ie,ce)=>{var me=["cliName","cliCategory","cliDescription"],be=["_"],Ee=["languageId"],He,et,st,Dt,Vt,nr;function Tr(m,b){if(m==null)return{};var g=zr(m,b),A,E;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);for(E=0;E<y.length;E++)A=y[E],!(b.indexOf(A)>=0)&&(!Object.prototype.propertyIsEnumerable.call(m,A)||(g[A]=m[A]))}return g}function zr(m,b){if(m==null)return{};var g={},A=Object.keys(m),E,y;for(y=0;y<A.length;y++)E=A[y],!(b.indexOf(E)>=0)&&(g[E]=m[E]);return g}cr(),Jt(),Ur(),on();function Yr(m,b){return b||(b=m.slice(0)),Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(b)}}))}var tn=Object.create,Pr=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,pi=Object.getOwnPropertyNames,yn=Object.getPrototypeOf,Ji=Object.prototype.hasOwnProperty,vi=(m,b)=>function(){return m&&(b=(0,m[pi(m)[0]])(m=0)),b},Xe=(m,b)=>function(){return b||(0,m[pi(m)[0]])((b={exports:{}}).exports,b),b.exports},Ds=(m,b)=>{for(var g in b)Pr(m,g,{get:b[g],enumerable:!0})},Li=(m,b,g,A)=>{if(b&&typeof b=="object"||typeof b=="function")for(let E of pi(b))!Ji.call(m,E)&&E!==g&&Pr(m,E,{get:()=>b[E],enumerable:!(A=kn(b,E))||A.enumerable});return m},xi=(m,b,g)=>(g=m!=null?tn(yn(m)):{},Li(b||!m||!m.__esModule?Pr(g,"default",{value:m,enumerable:!0}):g,m)),ti=m=>Li(Pr({},"__esModule",{value:!0}),m),Gn,$s,js,S=vi({"<define:process>"(){Gn={},$s=[],js={env:Gn,argv:$s}}}),Je=Xe({"package.json"(m,b){b.exports={version:"2.7.1"}}}),jr=Xe({"node_modules/diff/lib/diff/base.js"(m){S(),Object.defineProperty(m,"__esModule",{value:!0}),m.default=b;function b(){}b.prototype={diff:function(E,y){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=x.callback;typeof x=="function"&&(w=x,x={}),this.options=x;var k=this;function _(J){return w?(setTimeout(function(){w(void 0,J)},0),!0):J}E=this.castInput(E),y=this.castInput(y),E=this.removeEmpty(this.tokenize(E)),y=this.removeEmpty(this.tokenize(y));var $=y.length,j=E.length,W=1,I=$+j,O=[{newPos:-1,components:[]}],z=this.extractCommon(O[0],y,E,0);if(O[0].newPos+1>=$&&z+1>=j)return _([{value:this.join(y),count:y.length}]);function le(){for(var J=-1*W;J<=W;J+=2){var ee=void 0,ue=O[J-1],ye=O[J+1],ge=(ye?ye.newPos:0)-J;ue&&(O[J-1]=void 0);var De=ue&&ue.newPos+1<$,V=ye&&0<=ge&&ge<j;if(!De&&!V){O[J]=void 0;continue}if(!De||V&&ue.newPos<ye.newPos?(ee=A(ye),k.pushComponent(ee.components,void 0,!0)):(ee=ue,ee.newPos++,k.pushComponent(ee.components,!0,void 0)),ge=k.extractCommon(ee,y,E,J),ee.newPos+1>=$&&ge+1>=j)return _(g(k,ee.components,y,E,k.useLongestToken));O[J]=ee}W++}if(w)(function J(){setTimeout(function(){if(W>I)return w();le()||J()},0)})();else for(;W<=I;){var fe=le();if(fe)return fe}},pushComponent:function(E,y,x){var w=E[E.length-1];w&&w.added===y&&w.removed===x?E[E.length-1]={count:w.count+1,added:y,removed:x}:E.push({count:1,added:y,removed:x})},extractCommon:function(E,y,x,w){for(var k=y.length,_=x.length,$=E.newPos,j=$-w,W=0;$+1<k&&j+1<_&&this.equals(y[$+1],x[j+1]);)$++,j++,W++;return W&&E.components.push({count:W}),E.newPos=$,j},equals:function(E,y){return this.options.comparator?this.options.comparator(E,y):E===y||this.options.ignoreCase&&E.toLowerCase()===y.toLowerCase()},removeEmpty:function(E){for(var y=[],x=0;x<E.length;x++)E[x]&&y.push(E[x]);return y},castInput:function(E){return E},tokenize:function(E){return E.split("")},join:function(E){return E.join("")}};function g(E,y,x,w,k){for(var _=0,$=y.length,j=0,W=0;_<$;_++){var I=y[_];if(I.removed){if(I.value=E.join(w.slice(W,W+I.count)),W+=I.count,_&&y[_-1].added){var O=y[_-1];y[_-1]=y[_],y[_]=O}}else{if(!I.added&&k){var z=x.slice(j,j+I.count);z=z.map(function(fe,J){var ee=w[W+J];return ee.length>fe.length?ee:fe}),I.value=E.join(z)}else I.value=E.join(x.slice(j,j+I.count));j+=I.count,I.added||(W+=I.count)}}var le=y[$-1];return $>1&&typeof le.value=="string"&&(le.added||le.removed)&&E.equals("",le.value)&&(y[$-2].value+=le.value,y.pop()),y}function A(E){return{newPos:E.newPos,components:E.components.slice(0)}}}}),sn=Xe({"node_modules/diff/lib/diff/array.js"(m){S(),Object.defineProperty(m,"__esModule",{value:!0}),m.diffArrays=E,m.arrayDiff=void 0;var b=g(jr());function g(y){return y&&y.__esModule?y:{default:y}}var A=new b.default;m.arrayDiff=A,A.tokenize=function(y){return y.slice()},A.join=A.removeEmpty=function(y){return y};function E(y,x,w){return A.diff(y,x,w)}}}),ci=Xe({"src/document/doc-builders.js"(m,b){S();function g(X){return{type:"concat",parts:X}}function A(X){return{type:"indent",contents:X}}function E(X,N){return{type:"align",contents:N,n:X}}function y(X){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:N.id,contents:X,break:Boolean(N.shouldBreak),expandedStates:N.expandedStates}}function x(X){return E(Number.NEGATIVE_INFINITY,X)}function w(X){return E({type:"root"},X)}function k(X){return E(-1,X)}function _(X,N){return y(X[0],Object.assign(Object.assign({},N),{},{expandedStates:X}))}function $(X){return{type:"fill",parts:X}}function j(X,N){let G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:X,flatContents:N,groupId:G.groupId}}function W(X,N){return{type:"indent-if-break",contents:X,groupId:N.groupId,negate:N.negate}}function I(X){return{type:"line-suffix",contents:X}}var O={type:"line-suffix-boundary"},z={type:"break-parent"},le={type:"trim"},fe={type:"line",hard:!0},J={type:"line",hard:!0,literal:!0},ee={type:"line"},ue={type:"line",soft:!0},ye=g([fe,z]),ge=g([J,z]),De={type:"cursor",placeholder:Symbol("cursor")};function V(X,N){let G=[];for(let q=0;q<N.length;q++)q!==0&&G.push(X),G.push(N[q]);return g(G)}function L(X,N,G){let q=X;if(N>0){for(let se=0;se<Math.floor(N/G);++se)q=A(q);q=E(N%G,q),q=E(Number.NEGATIVE_INFINITY,q)}return q}function R(X,N){return{type:"label",label:X,contents:N}}b.exports={concat:g,join:V,line:ee,softline:ue,hardline:ye,literalline:ge,group:y,conditionalGroup:_,fill:$,lineSuffix:I,lineSuffixBoundary:O,cursor:De,breakParent:z,ifBreak:j,trim:le,indent:A,indentIfBreak:W,align:E,addAlignmentToDoc:L,markAsRoot:w,dedentToRoot:x,dedent:k,hardlineWithoutBreakParent:fe,literallineWithoutBreakParent:J,label:R}}}),ss=Xe({"src/common/end-of-line.js"(m,b){S();function g(x){let w=x.indexOf("\r");return w>=0?x.charAt(w+1)===`
|
|
25
25
|
`?"crlf":"cr":"lf"}function A(x){switch(x){case"cr":return"\r";case"crlf":return`\r
|
|
26
26
|
`;default:return`
|
|
27
27
|
`}}function E(x,w){let k;switch(w){case`
|
|
@@ -274,9 +274,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
274
274
|
`):p=String.fromCharCode(u),++this.state.curLine,this.state.lineStart=this.state.pos,p}jsxReadString(t){let u="",p=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(dt.UnterminatedString,{at:this.state.startLoc});let D=this.input.charCodeAt(this.state.pos);if(D===t)break;D===38?(u+=this.input.slice(p,this.state.pos),u+=this.jsxReadEntity(),p=this.state.pos):Ho(D)?(u+=this.input.slice(p,this.state.pos),u+=this.jsxReadNewLine(!1),p=this.state.pos):++this.state.pos}return u+=this.input.slice(p,this.state.pos++),this.finishToken(129,u)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let u=10;this.codePointAtPos(this.state.pos)===120&&(u=16,++this.state.pos);let p=this.readInt(u,void 0,!1,"bail");if(p!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(p)}else{let u=0,p=!1;for(;u++<10&&this.state.pos<this.length&&!(p=this.codePointAtPos(this.state.pos)==59);)++this.state.pos;if(p){let D=this.input.slice(t,this.state.pos),U=ke[D];if(++this.state.pos,U)return U}}return this.state.pos=t,"&"}jsxReadWord(){let t,u=this.state.pos;do t=this.input.charCodeAt(++this.state.pos);while(Qs(t)||t===45);return this.finishToken(136,this.input.slice(u,this.state.pos))}jsxParseIdentifier(){let t=this.startNode();return this.match(136)?t.name=this.state.value:mt(this.state.type)?t.name=Us(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){let t=this.state.start,u=this.state.startLoc,p=this.jsxParseIdentifier();if(!this.eat(14))return p;let D=this.startNodeAt(t,u);return D.namespace=p,D.name=this.jsxParseIdentifier(),this.finishNode(D,"JSXNamespacedName")}jsxParseElementName(){let t=this.state.start,u=this.state.startLoc,p=this.jsxParseNamespacedName();if(p.type==="JSXNamespacedName")return p;for(;this.eat(16);){let D=this.startNodeAt(t,u);D.object=p,D.property=this.jsxParseIdentifier(),p=this.finishNode(D,"JSXMemberExpression")}return p}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(ms.brace),this.next(),t=this.jsxParseExpressionContainer(t,ms.j_oTag),t.expression.type==="JSXEmptyExpression"&&this.raise(Qe.AttributeIsEmpty,{at:t}),t;case 138:case 129:return this.parseExprAtom();default:throw this.raise(Qe.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let t=this.startNodeAt(this.state.lastTokEndLoc.index,this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(ms.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,u){if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{let p=this.parseExpression();t.expression=p}return this.setContext(u),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){let t=this.startNode();return this.match(5)?(this.setContext(ms.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(ms.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t,u){let p=this.startNodeAt(t,u);return this.eat(139)?this.finishNode(p,"JSXOpeningFragment"):(p.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(p))}jsxParseOpeningElementAfterName(t){let u=[];for(;!this.match(56)&&!this.match(139);)u.push(this.jsxParseAttribute());return t.attributes=u,t.selfClosing=this.eat(56),this.expect(139),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t,u){let p=this.startNodeAt(t,u);return this.eat(139)?this.finishNode(p,"JSXClosingFragment"):(p.name=this.jsxParseElementName(),this.expect(139),this.finishNode(p,"JSXClosingElement"))}jsxParseElementAt(t,u){let p=this.startNodeAt(t,u),D=[],U=this.jsxParseOpeningElementAt(t,u),he=null;if(!U.selfClosing){e:for(;;)switch(this.state.type){case 138:if(t=this.state.start,u=this.state.startLoc,this.next(),this.eat(56)){he=this.jsxParseClosingElementAt(t,u);break e}D.push(this.jsxParseElementAt(t,u));break;case 137:D.push(this.parseExprAtom());break;case 5:{let Ze=this.startNode();this.setContext(ms.brace),this.next(),this.match(21)?D.push(this.jsxParseSpreadChild(Ze)):D.push(this.jsxParseExpressionContainer(Ze,ms.j_expr));break}default:throw this.unexpected()}ze(U)&&!ze(he)&&he!==null?this.raise(Qe.MissingClosingTagFragment,{at:he}):!ze(U)&&ze(he)?this.raise(Qe.MissingClosingTagElement,{at:he,openingTagName:_e(U.name)}):!ze(U)&&!ze(he)&&_e(he.name)!==_e(U.name)&&this.raise(Qe.MissingClosingTagElement,{at:he,openingTagName:_e(U.name)})}if(ze(U)?(p.openingFragment=U,p.closingFragment=he):(p.openingElement=U,p.closingElement=he),p.children=D,this.match(47))throw this.raise(Qe.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return ze(U)?this.finishNode(p,"JSXFragment"):this.finishNode(p,"JSXElement")}jsxParseElement(){let t=this.state.start,u=this.state.startLoc;return this.next(),this.jsxParseElementAt(t,u)}setContext(t){let{context:u}=this.state;u[u.length-1]=t}parseExprAtom(t){return this.match(137)?this.parseLiteral(this.state.value,"JSXText"):this.match(138)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(138),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){let u=this.curContext();if(u===ms.j_expr)return this.jsxReadToken();if(u===ms.j_oTag||u===ms.j_cTag){if(Fs(t))return this.jsxReadWord();if(t===62)return++this.state.pos,this.finishToken(139);if((t===34||t===39)&&u===ms.j_oTag)return this.jsxReadString(t)}return t===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(t)}updateContext(t){let{context:u,type:p}=this.state;if(p===56&&t===138)u.splice(-2,2,ms.j_cTag),this.state.canStartJSXElement=!1;else if(p===138)u.push(ms.j_oTag);else if(p===139){let D=u[u.length-1];D===ms.j_oTag&&t===56||D===ms.j_cTag?(u.pop(),this.state.canStartJSXElement=u[u.length-1]===ms.j_expr):(this.setContext(ms.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=Ei(p)}},kt=class extends Tl{constructor(){super(...arguments),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}},qt=class extends Pu{createScope(n){return new kt(n)}declareName(n,t,u){let p=this.currentScope();if(t&au){this.maybeExportDefined(p,n),p.exportOnlyBindings.add(n);return}super.declareName(...arguments),t&Ha&&(t&La||(this.checkRedeclarationInScope(p,n,t,u),this.maybeExportDefined(p,n)),p.types.add(n)),t&Cl&&p.enums.add(n),t&zu&&p.constEnums.add(n),t&wu&&p.classes.add(n)}isRedeclaredInScope(n,t,u){if(n.enums.has(t)){if(u&Cl){let p=!!(u&zu),D=n.constEnums.has(t);return p!==D}return!0}return u&wu&&n.classes.has(t)?n.lexical.has(t)?!!(u&La):!1:u&Ha&&n.types.has(t)?!0:super.isRedeclaredInScope(...arguments)}checkLocalExport(n){let t=this.scopeStack[0],{name:u}=n;!t.types.has(u)&&!t.exportOnlyBindings.has(u)&&super.checkLocalExport(n)}},un=(n,t)=>Object.hasOwnProperty.call(n,t)&&n[t];function Ln(n){if(n==null)throw new Error("Unexpected ".concat(n," value."));return n}function zn(n){if(!n)throw new Error("Assert fail")}function bi(n){return Fi(n)||ha(n)}var en=Oi(tr||(tr=on(["typescript"])))(n=>({AbstractMethodHasImplementation:n(t=>{let{methodName:u}=t;return"Method '".concat(u,"' cannot have an implementation because it is marked abstract.")}),AbstractPropertyHasInitializer:n(t=>{let{propertyName:u}=t;return"Property '".concat(u,"' cannot have an initializer because it is marked abstract.")}),AccesorCannotDeclareThisParameter:n("'get' and 'set' accessors cannot declare 'this' parameters."),AccesorCannotHaveTypeParameters:n("An accessor cannot have type parameters."),CannotFindName:n(t=>{let{name:u}=t;return"Cannot find name '".concat(u,"'.")}),ClassMethodHasDeclare:n("Class methods cannot have the 'declare' modifier."),ClassMethodHasReadonly:n("Class methods cannot have the 'readonly' modifier."),ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:n("A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),ConstructorHasTypeParameters:n("Type parameters cannot appear on a constructor declaration."),DeclareAccessor:n(t=>{let{kind:u}=t;return"'declare' is not allowed in ".concat(u,"ters.")}),DeclareClassFieldHasInitializer:n("Initializers are not allowed in ambient contexts."),DeclareFunctionHasImplementation:n("An implementation cannot be declared in ambient contexts."),DuplicateAccessibilityModifier:n(t=>"Accessibility modifier already seen."),DuplicateModifier:n(t=>{let{modifier:u}=t;return"Duplicate modifier: '".concat(u,"'.")}),EmptyHeritageClauseType:n(t=>{let{token:u}=t;return"'".concat(u,"' list cannot be empty.")}),EmptyTypeArguments:n("Type argument list cannot be empty."),EmptyTypeParameters:n("Type parameter list cannot be empty."),ExpectedAmbientAfterExportDeclare:n("'export declare' must be followed by an ambient declaration."),ImportAliasHasImportType:n("An import alias can not use 'import type'."),IncompatibleModifiers:n(t=>{let{modifiers:u}=t;return"'".concat(u[0],"' modifier cannot be used with '").concat(u[1],"' modifier.")}),IndexSignatureHasAbstract:n("Index signatures cannot have the 'abstract' modifier."),IndexSignatureHasAccessibility:n(t=>{let{modifier:u}=t;return"Index signatures cannot have an accessibility modifier ('".concat(u,"').")}),IndexSignatureHasDeclare:n("Index signatures cannot have the 'declare' modifier."),IndexSignatureHasOverride:n("'override' modifier cannot appear on an index signature."),IndexSignatureHasStatic:n("Index signatures cannot have the 'static' modifier."),InitializerNotAllowedInAmbientContext:n("Initializers are not allowed in ambient contexts."),InvalidModifierOnTypeMember:n(t=>{let{modifier:u}=t;return"'".concat(u,"' modifier cannot appear on a type member.")}),InvalidModifierOnTypeParameter:n(t=>{let{modifier:u}=t;return"'".concat(u,"' modifier cannot appear on a type parameter.")}),InvalidModifierOnTypeParameterPositions:n(t=>{let{modifier:u}=t;return"'".concat(u,"' modifier can only appear on a type parameter of a class, interface or type alias.")}),InvalidModifiersOrder:n(t=>{let{orderedModifiers:u}=t;return"'".concat(u[0],"' modifier must precede '").concat(u[1],"' modifier.")}),InvalidTupleMemberLabel:n("Tuple members must be labeled with a simple identifier."),MissingInterfaceName:n("'interface' declarations must be followed by an identifier."),MixedLabeledAndUnlabeledElements:n("Tuple members must all have names or all not have names."),NonAbstractClassHasAbstractMethod:n("Abstract methods can only appear within an abstract class."),NonClassMethodPropertyHasAbstractModifer:n("'abstract' modifier can only appear on a class, method, or property declaration."),OptionalTypeBeforeRequired:n("A required element cannot follow an optional element."),OverrideNotInSubClass:n("This member cannot have an 'override' modifier because its containing class does not extend another class."),PatternIsOptional:n("A binding pattern parameter cannot be optional in an implementation signature."),PrivateElementHasAbstract:n("Private elements cannot have the 'abstract' modifier."),PrivateElementHasAccessibility:n(t=>{let{modifier:u}=t;return"Private elements cannot have an accessibility modifier ('".concat(u,"').")}),ReadonlyForMethodSignature:n("'readonly' modifier can only appear on a property declaration or index signature."),ReservedArrowTypeParam:n("This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`."),ReservedTypeAssertion:n("This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),SetAccesorCannotHaveOptionalParameter:n("A 'set' accessor cannot have an optional parameter."),SetAccesorCannotHaveRestParameter:n("A 'set' accessor cannot have rest parameter."),SetAccesorCannotHaveReturnType:n("A 'set' accessor cannot have a return type annotation."),SingleTypeParameterWithoutTrailingComma:n(t=>{let{typeParameterName:u}=t;return"Single type parameter ".concat(u," should have a trailing comma. Example usage: <").concat(u,",>.")}),StaticBlockCannotHaveModifier:n("Static class blocks cannot have any modifier."),TypeAnnotationAfterAssign:n("Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`."),TypeImportCannotSpecifyDefaultAndNamed:n("A type-only import can specify a default import or named bindings, but not both."),TypeModifierIsUsedInTypeExports:n("The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),TypeModifierIsUsedInTypeImports:n("The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),UnexpectedParameterModifier:n("A parameter property is only allowed in a constructor implementation."),UnexpectedReadonly:n("'readonly' type modifier is only permitted on array and tuple literal types."),UnexpectedTypeAnnotation:n("Did not expect a type annotation here."),UnexpectedTypeCastInParameter:n("Unexpected type cast in parameter position."),UnsupportedImportTypeArgument:n("Argument in a type import must be a string literal."),UnsupportedParameterPropertyKind:n("A parameter property may not be declared using a binding pattern."),UnsupportedSignatureParameterKind:n(t=>{let{type:u}=t;return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ".concat(u,".")})}));function _i(n){switch(n){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function mi(n){return n==="private"||n==="public"||n==="protected"}function Ai(n){return n==="in"||n==="out"}var Dn=n=>class extends n{getScopeHandler(){return qt}tsIsIdentifier(){return On(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(134)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(t,u){if(!On(this.state.type)&&this.state.type!==58)return;let p=this.state.value;if(t.indexOf(p)!==-1){if(u&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return p}}tsParseModifiers(t){let{modified:u,allowedModifiers:p,disallowedModifiers:D,stopOnStartOfClassStaticBlock:U,errorTemplate:he=en.InvalidModifierOnTypeMember}=t,Ze=(or,m,b,g)=>{m===b&&u[g]&&this.raise(en.InvalidModifiersOrder,{at:or,orderedModifiers:[b,g]})},wt=(or,m,b,g)=>{(u[b]&&m===g||u[g]&&m===b)&&this.raise(en.IncompatibleModifiers,{at:or,modifiers:[b,g]})};for(;;){let{startLoc:or}=this.state,m=this.tsParseModifier(p.concat(D!=null?D:[]),U);if(!m)break;mi(m)?u.accessibility?this.raise(en.DuplicateAccessibilityModifier,{at:or,modifier:m}):(Ze(or,m,m,"override"),Ze(or,m,m,"static"),Ze(or,m,m,"readonly"),u.accessibility=m):Ai(m)?(u[m]&&this.raise(en.DuplicateModifier,{at:or,modifier:m}),u[m]=!0,Ze(or,m,"in","out")):(Object.hasOwnProperty.call(u,m)?this.raise(en.DuplicateModifier,{at:or,modifier:m}):(Ze(or,m,"static","readonly"),Ze(or,m,"static","override"),Ze(or,m,"override","readonly"),Ze(or,m,"abstract","override"),wt(or,m,"declare","override"),wt(or,m,"static","abstract")),u[m]=!0),D!=null&&D.includes(m)&&this.raise(he,{at:or,modifier:m})}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}throw new Error("Unreachable")}tsParseList(t,u){let p=[];for(;!this.tsIsListTerminator(t);)p.push(u());return p}tsParseDelimitedList(t,u,p){return Ln(this.tsParseDelimitedListWorker(t,u,!0,p))}tsParseDelimitedListWorker(t,u,p,D){let U=[],he=-1;for(;!this.tsIsListTerminator(t);){he=-1;let Ze=u();if(Ze==null)return;if(U.push(Ze),this.eat(12)){he=this.state.lastTokStart;continue}if(this.tsIsListTerminator(t))break;p&&this.expect(12);return}return D&&(D.value=he),U}tsParseBracketedList(t,u,p,D,U){D||(p?this.expect(0):this.expect(47));let he=this.tsParseDelimitedList(t,u,U);return p?this.expect(3):this.expect(48),he}tsParseImportType(){let t=this.startNode();return this.expect(83),this.expect(10),this.match(129)||this.raise(en.UnsupportedImportTypeArgument,{at:this.state.startLoc}),t.argument=this.parseExprAtom(),this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName()),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseEntityName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=this.parseIdentifier(t);for(;this.eat(16);){let p=this.startNodeAtNode(u);p.left=u,p.right=this.parseIdentifier(t),u=this.finishNode(p,"TSQualifiedName")}return u}tsParseTypeReference(){let t=this.startNode();return t.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();let u=this.startNodeAtNode(t);return u.parameterName=t,u.typeAnnotation=this.tsParseTypeAnnotation(!1),u.asserts=!1,this.finishNode(u,"TSTypePredicate")}tsParseThisTypeNode(){let t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){let t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseInOutModifiers(t){this.tsParseModifiers({modified:t,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:en.InvalidModifierOnTypeParameter})}tsParseNoneModifiers(t){this.tsParseModifiers({modified:t,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:en.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tsParseNoneModifiers.bind(this),u=this.startNode();return t(u),u.name=this.tsParseTypeParameterName(),u.constraint=this.tsEatThenParseType(81),u.default=this.tsEatThenParseType(29),this.finishNode(u,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){let u=this.startNode();this.match(47)||this.match(138)?this.next():this.unexpected();let p={value:-1};return u.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,p),u.params.length===0&&this.raise(en.EmptyTypeParameters,{at:u}),p.value!==-1&&this.addExtra(u,"trailingComma",p.value),this.finishNode(u,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){if(this.lookahead().type!==75)return null;this.next();let t=this.tsParseTypeReference();return t.typeParameters&&this.raise(en.CannotFindName,{at:t.typeName,name:"const"}),t}tsFillSignature(t,u){let p=t===19,D="parameters",U="typeAnnotation";u.typeParameters=this.tsTryParseTypeParameters(),this.expect(10),u[D]=this.tsParseBindingListForSignature(),p?u[U]=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(u[U]=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){return this.parseBindingList(11,41).map(t=>(t.type!=="Identifier"&&t.type!=="RestElement"&&t.type!=="ObjectPattern"&&t.type!=="ArrayPattern"&&this.raise(en.UnsupportedSignatureParameterKind,{at:t,type:t.type}),t))}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(t,u){return this.tsFillSignature(14,u),this.tsParseTypeMemberSemicolon(),this.finishNode(u,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),On(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(t){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let u=this.parseIdentifier();u.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(u),this.expect(3),t.parameters=[u];let p=this.tsTryParseTypeAnnotation();return p&&(t.typeAnnotation=p),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,u){this.eat(17)&&(t.optional=!0);let p=t;if(this.match(10)||this.match(47)){u&&this.raise(en.ReadonlyForMethodSignature,{at:t});let D=p;D.kind&&this.match(47)&&this.raise(en.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,D),this.tsParseTypeMemberSemicolon();let U="parameters",he="typeAnnotation";if(D.kind==="get")D[U].length>0&&(this.raise(dt.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(D[U][0])&&this.raise(en.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(D.kind==="set"){if(D[U].length!==1)this.raise(dt.BadSetterArity,{at:this.state.curPosition()});else{let Ze=D[U][0];this.isThisParam(Ze)&&this.raise(en.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),Ze.type==="Identifier"&&Ze.optional&&this.raise(en.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),Ze.type==="RestElement"&&this.raise(en.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}D[he]&&this.raise(en.SetAccesorCannotHaveReturnType,{at:D[he]})}else D.kind="method";return this.finishNode(D,"TSMethodSignature")}else{let D=p;u&&(D.readonly=!0);let U=this.tsTryParseTypeAnnotation();return U&&(D.typeAnnotation=U),this.tsParseTypeMemberSemicolon(),this.finishNode(D,"TSPropertySignature")}}tsParseTypeMember(){let t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){let p=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(p,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}return this.tsParseModifiers({modified:t,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(t)||(this.parsePropertyName(t),!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.tsTokenCanFollowModifier()&&(t.kind=t.key.name,this.parsePropertyName(t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){let t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(118):(this.isContextual(118)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),this.finishNode(t,"TSTypeParameter")}tsParseMappedType(){let t=this.startNode();return this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(118)):this.eatContextual(118)&&(t.readonly=!0),this.expect(0),t.typeParameter=this.tsParseMappedTypeParameter(),t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){let t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let u=!1,p=null;return t.elementTypes.forEach(D=>{var U;let{type:he}=D;u&&he!=="TSRestType"&&he!=="TSOptionalType"&&!(he==="TSNamedTupleMember"&&D.optional)&&this.raise(en.OptionalTypeBeforeRequired,{at:D}),u=u||he==="TSNamedTupleMember"&&D.optional||he==="TSOptionalType",he==="TSRestType"&&(D=D.typeAnnotation,he=D.type);let Ze=he==="TSNamedTupleMember";p=(U=p)!=null?U:Ze,p!==Ze&&this.raise(en.MixedLabeledAndUnlabeledElements,{at:D})}),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){let{start:t,startLoc:u}=this.state,p=this.eat(21),D=this.tsParseType(),U=this.eat(17);if(this.eat(14)){let he=this.startNodeAtNode(D);he.optional=U,D.type==="TSTypeReference"&&!D.typeParameters&&D.typeName.type==="Identifier"?he.label=D.typeName:(this.raise(en.InvalidTupleMemberLabel,{at:D}),he.label=D),he.elementType=this.tsParseType(),D=this.finishNode(he,"TSNamedTupleMember")}else if(U){let he=this.startNodeAtNode(D);he.typeAnnotation=D,D=this.finishNode(he,"TSOptionalType")}if(p){let he=this.startNodeAt(t,u);he.typeAnnotation=D,D=this.finishNode(he,"TSRestType")}return D}tsParseParenthesizedType(){let t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,u){let p=this.startNode();return t==="TSConstructorType"&&(p.abstract=!!u,u&&this.next(),this.next()),this.tsFillSignature(19,p),this.finishNode(p,t)}tsParseLiteralTypeNode(){let t=this.startNode();return t.literal=(()=>{switch(this.state.type){case 130:case 131:case 129:case 85:case 86:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){let t=this.startNode();return t.literal=this.parseTemplate(!1),this.finishNode(t,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let t=this.tsParseThisTypeNode();return this.isContextual(113)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 129:case 130:case 131:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let t=this.startNode(),u=this.lookahead();if(u.type!==130&&u.type!==131)throw this.unexpected();return t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:t}=this.state;if(On(t)||t===88||t===84){let u=t===88?"TSVoidKeyword":t===84?"TSNullKeyword":_i(this.state.value);if(u!==void 0&&this.lookaheadCharCode()!==46){let p=this.startNode();return this.next(),this.finishNode(p,u)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let u=this.startNodeAtNode(t);u.elementType=t,this.expect(3),t=this.finishNode(u,"TSArrayType")}else{let u=this.startNodeAtNode(t);u.objectType=t,u.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(u,"TSIndexedAccessType")}return t}tsParseTypeOperator(){let t=this.startNode(),u=this.state.value;return this.next(),t.operator=u,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),u==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(en.UnexpectedReadonly,{at:t})}}tsParseInferType(){let t=this.startNode();this.expectContextual(112);let u=this.startNode();return u.name=this.tsParseTypeParameterName(),u.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),t.typeParameter=this.finishNode(u,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let t=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){return $i(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(112)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(t,u,p){let D=this.startNode(),U=this.eat(p),he=[];do he.push(u());while(this.eat(p));return he.length===1&&!U?he[0]:(D.types=he,this.finishNode(D,t))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(On(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:t}=this.state,u=t.length;try{return this.parseObjectLike(8,!0),t.length===u}catch{return!1}}if(this.match(0)){this.next();let{errors:t}=this.state,u=t.length;try{return this.parseBindingList(3,93,!0),t.length===u}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType(()=>{let u=this.startNode();this.expect(t);let p=this.startNode(),D=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(D&&this.match(78)){let Ze=this.tsParseThisTypeOrThisTypePredicate();return Ze.type==="TSThisType"?(p.parameterName=Ze,p.asserts=!0,p.typeAnnotation=null,Ze=this.finishNode(p,"TSTypePredicate")):(this.resetStartLocationFromNode(Ze,p),Ze.asserts=!0),u.typeAnnotation=Ze,this.finishNode(u,"TSTypeAnnotation")}let U=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!U)return D?(p.parameterName=this.parseIdentifier(),p.asserts=D,p.typeAnnotation=null,u.typeAnnotation=this.finishNode(p,"TSTypePredicate"),this.finishNode(u,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,u);let he=this.tsParseTypeAnnotation(!1);return p.parameterName=U,p.typeAnnotation=he,p.asserts=D,u.typeAnnotation=this.finishNode(p,"TSTypePredicate"),this.finishNode(u,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let t=this.parseIdentifier();if(this.isContextual(113)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(this.state.type!==106)return!1;let t=this.state.containsEsc;return this.next(),!On(this.state.type)&&!this.match(78)?!1:(t&&this.raise(dt.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.startNode();return this.tsInType(()=>{t&&this.expect(14),u.typeAnnotation=this.tsParseType()}),this.finishNode(u,"TSTypeAnnotation")}tsParseType(){zn(this.state.inType);let t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;let u=this.startNodeAtNode(t);return u.checkType=t,u.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),u.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),u.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(u,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(120)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(en.ReservedTypeAssertion,{at:this.state.startLoc});let t=this.startNode(),u=this.tsTryNextParseConstantContext();return t.typeAnnotation=u||this.tsNextThenParseType(),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){let u=this.state.startLoc,p=this.tsParseDelimitedList("HeritageClauseElement",()=>{let D=this.startNode();return D.expression=this.tsParseEntityName(),this.match(47)&&(D.typeParameters=this.tsParseTypeArguments()),this.finishNode(D,"TSExpressionWithTypeArguments")});return p.length||this.raise(en.EmptyHeritageClauseType,{at:u,token:t}),p}tsParseInterfaceDeclaration(t){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(125),u.declare&&(t.declare=!0),On(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,Su)):(t.id=null,this.raise(en.MissingInterfaceName,{at:this.state.startLoc})),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));let p=this.startNode();return p.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(p,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,ll),t.typeAnnotation=this.tsInType(()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(29),this.isContextual(111)&&this.lookahead().type!==16){let u=this.startNode();return this.next(),this.finishNode(u,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInNoContext(t){let u=this.state.context;this.state.context=[u[0]];try{return t()}finally{this.state.context=u}}tsInType(t){let u=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=u}}tsInDisallowConditionalTypesContext(t){let u=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=u}}tsInAllowConditionalTypesContext(t){let u=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=u}}tsEatThenParseType(t){return this.match(t)?this.tsNextThenParseType():void 0}tsExpectThenParseType(t){return this.tsDoThenParseType(()=>this.expect(t))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(t){return this.tsInType(()=>(t(),this.tsParseType()))}tsParseEnumMember(){let t=this.startNode();return t.id=this.match(129)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(29)&&(t.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return u.const&&(t.const=!0),u.declare&&(t.declare=!0),this.expectContextual(122),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?uo:oo),this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumDeclaration")}tsParseModuleBlock(){let t=this.startNode();return this.scope.enter(Eo),this.expect(5),this.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.id=this.parseIdentifier(),u||this.checkIdentifier(t.id,cl),this.eat(16)){let p=this.startNode();this.tsParseModuleOrNamespaceDeclaration(p,!0),t.body=p}else this.scope.enter(su),this.prodParam.enter(lu),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(109)?(t.global=!0,t.id=this.parseIdentifier()):this.match(129)?t.id=this.parseExprAtom():this.unexpected(),this.match(5)?(this.scope.enter(su),this.prodParam.enter(lu),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,u){t.isExport=u||!1,t.id=this.parseIdentifier(),this.checkIdentifier(t.id,so),this.expect(29);let p=this.tsParseModuleReference();return t.importKind==="type"&&p.type!=="TSExternalModuleReference"&&this.raise(en.ImportAliasHasImportType,{at:p}),t.moduleReference=p,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(116)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let t=this.startNode();if(this.expectContextual(116),this.expect(10),!this.match(129))throw this.unexpected();return t.expression=this.parseExprAtom(),this.expect(11),this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){let u=this.state.clone(),p=t();return this.state=u,p}tsTryParseAndCatch(t){let u=this.tryParse(p=>t()||p());if(!(u.aborted||!u.node))return u.error&&(this.state=u.failState),u.node}tsTryParse(t){let u=this.state.clone(),p=t();if(p!==void 0&&p!==!1)return p;this.state=u}tsTryParseDeclare(t){if(this.isLineTerminator())return;let u=this.state.type,p;return this.isContextual(99)&&(u=74,p="let"),this.tsInAmbientContext(()=>{if(u===68)return t.declare=!0,this.parseFunctionStatement(t,!1,!0);if(u===80)return t.declare=!0,this.parseClass(t,!0,!1);if(u===122)return this.tsParseEnumDeclaration(t,{declare:!0});if(u===109)return this.tsParseAmbientExternalModuleDeclaration(t);if(u===75||u===74)return!this.match(75)||!this.isLookaheadContextual("enum")?(t.declare=!0,this.parseVarStatement(t,p||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0}));if(u===125){let D=this.tsParseInterfaceDeclaration(t,{declare:!0});if(D)return D}if(On(u))return this.tsParseDeclaration(t,this.state.value,!0)})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(t,u){switch(u.name){case"declare":{let p=this.tsTryParseDeclare(t);if(p)return p.declare=!0,p;break}case"global":if(this.match(5)){this.scope.enter(su),this.prodParam.enter(lu);let p=t;return p.global=!0,p.id=u,p.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(p,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,u.name,!1)}}tsParseDeclaration(t,u,p){switch(u){case"abstract":if(this.tsCheckLineTerminator(p)&&(this.match(80)||On(this.state.type)))return this.tsParseAbstractDeclaration(t);break;case"module":if(this.tsCheckLineTerminator(p)){if(this.match(129))return this.tsParseAmbientExternalModuleDeclaration(t);if(On(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t)}break;case"namespace":if(this.tsCheckLineTerminator(p)&&On(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminator(p)&&On(this.state.type))return this.tsParseTypeAliasDeclaration(t);break}}tsCheckLineTerminator(t){return t?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t,u){if(!this.match(47))return;let p=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let D=this.tsTryParseAndCatch(()=>{let U=this.startNodeAt(t,u);return U.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(U),U.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),U});if(this.state.maybeInArrowParameters=p,!!D)return this.parseArrowExpression(D,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let t=this.startNode();return t.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),t.params.length===0&&this.raise(en.EmptyTypeArguments,{at:t}),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return xs(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(t,u){let p=this.state.start,D=this.state.startLoc,U,he=!1,Ze=!1;if(t!==void 0){let m={};this.tsParseModifiers({modified:m,allowedModifiers:["public","private","protected","override","readonly"]}),U=m.accessibility,Ze=m.override,he=m.readonly,t===!1&&(U||he||Ze)&&this.raise(en.UnexpectedParameterModifier,{at:D})}let wt=this.parseMaybeDefault();this.parseAssignableListItemTypes(wt);let or=this.parseMaybeDefault(wt.start,wt.loc.start,wt);if(U||he||Ze){let m=this.startNodeAt(p,D);return u.length&&(m.decorators=u),U&&(m.accessibility=U),he&&(m.readonly=he),Ze&&(m.override=Ze),or.type!=="Identifier"&&or.type!=="AssignmentPattern"&&this.raise(en.UnsupportedParameterPropertyKind,{at:m}),m.parameter=or,this.finishNode(m,"TSParameterProperty")}return u.length&&(wt.decorators=u),or}isSimpleParameter(t){return t.type==="TSParameterProperty"&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}parseFunctionBodyAndFinish(t,u){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let D=u==="FunctionDeclaration"?"TSDeclareFunction":u==="ClassMethod"||u==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(D&&!this.match(5)&&this.isLineTerminator()){this.finishNode(t,D);return}if(D==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(en.DeclareFunctionHasImplementation,{at:t}),t.declare)){super.parseFunctionBodyAndFinish(t,D,p);return}super.parseFunctionBodyAndFinish(t,u,p)}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,ou):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(t){t.forEach(u=>{(u==null?void 0:u.type)==="TSTypeCastExpression"&&this.raise(en.UnexpectedTypeAnnotation,{at:u.typeAnnotation})})}toReferencedList(t,u){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(){let t=super.parseArrayLike(...arguments);return t.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(t.elements),t}parseSubscript(t,u,p,D,U){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let Ze=this.startNodeAt(u,p);return Ze.expression=t,this.finishNode(Ze,"TSNonNullExpression")}let he=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(D)return U.stop=!0,t;U.optionalChainMember=he=!0,this.next()}if(this.match(47)||this.match(51)){let Ze,wt=this.tsTryParseAndCatch(()=>{if(!D&&this.atPossibleAsyncArrow(t)){let b=this.tsTryParseGenericAsyncArrowFunction(u,p);if(b)return b}let or=this.tsParseTypeArgumentsInExpression();if(!or)throw this.unexpected();if(he&&!this.match(10))throw Ze=this.state.curPosition(),this.unexpected();if(Ts(this.state.type)){let b=this.parseTaggedTemplateExpression(t,u,p,U);return b.typeParameters=or,b}if(!D&&this.eat(10)){let b=this.startNodeAt(u,p);return b.callee=t,b.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(b.arguments),b.typeParameters=or,U.optionalChainMember&&(b.optional=he),this.finishCallExpression(b,U.optionalChainMember)}if(bi(this.state.type)&&this.state.type!==10)throw this.unexpected();let m=this.startNodeAt(u,p);return m.expression=t,m.typeParameters=or,this.finishNode(m,"TSInstantiationExpression")});if(Ze&&this.unexpected(Ze,10),wt)return wt}return super.parseSubscript(t,u,p,D,U)}parseNewCallee(t){var u;super.parseNewCallee(t);let{callee:p}=t;p.type==="TSInstantiationExpression"&&!((u=p.extra)!=null&&u.parenthesized)&&(t.typeParameters=p.typeParameters,t.callee=p.expression)}parseExprOp(t,u,p,D){if(zs(58)>D&&!this.hasPrecedingLineBreak()&&this.isContextual(93)){let U=this.startNodeAt(u,p);U.expression=t;let he=this.tsTryNextParseConstantContext();return he?U.typeAnnotation=he:U.typeAnnotation=this.tsNextThenParseType(),this.finishNode(U,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(U,u,p,D)}return super.parseExprOp(t,u,p,D)}checkReservedWord(t,u,p,D){this.state.isAmbientContext||super.checkReservedWord(t,u,p,D)}checkDuplicateExports(){}parseImport(t){if(t.importKind="value",On(this.state.type)||this.match(55)||this.match(5)){let p=this.lookahead();if(this.isContextual(126)&&p.type!==12&&p.type!==97&&p.type!==29&&(t.importKind="type",this.next(),p=this.lookahead()),On(this.state.type)&&p.type===29)return this.tsParseImportEqualsDeclaration(t)}let u=super.parseImport(t);return u.importKind==="type"&&u.specifiers.length>1&&u.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(en.TypeImportCannotSpecifyDefaultAndNamed,{at:u}),u}parseExport(t){if(this.match(83))return this.next(),this.isContextual(126)&&this.lookaheadCharCode()!==61?(t.importKind="type",this.next()):t.importKind="value",this.tsParseImportEqualsDeclaration(t,!0);if(this.eat(29)){let u=t;return u.expression=this.parseExpression(),this.semicolon(),this.finishNode(u,"TSExportAssignment")}else if(this.eatContextual(93)){let u=t;return this.expectContextual(124),u.id=this.parseIdentifier(),this.semicolon(),this.finishNode(u,"TSNamespaceExportDeclaration")}else return this.isContextual(126)&&this.lookahead().type===5?(this.next(),t.exportKind="type"):t.exportKind="value",super.parseExport(t)}isAbstractClass(){return this.isContextual(120)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0),t}if(this.match(125)){let t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,u){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{isAmbientContext:D}=this.state,U=super.parseVarStatement(t,u,p||D);if(!D)return U;for(let{id:he,init:Ze}of U.declarations)!Ze||(u!=="const"||!!he.typeAnnotation?this.raise(en.InitializerNotAllowedInAmbientContext,{at:Ze}):Ze.type!=="StringLiteral"&&Ze.type!=="BooleanLiteral"&&Ze.type!=="NumericLiteral"&&Ze.type!=="BigIntLiteral"&&(Ze.type!=="TemplateLiteral"||Ze.expressions.length>0)&&!Gr(Ze)&&this.raise(en.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:Ze}));return U}parseStatementContent(t,u){if(this.match(75)&&this.isLookaheadContextual("enum")){let p=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(p,{const:!0})}if(this.isContextual(122))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(125)){let p=this.tsParseInterfaceDeclaration(this.startNode());if(p)return p}return super.parseStatementContent(t,u)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,u){return u.some(p=>mi(p)?t.accessibility===p:!!t[p])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(t,u,p){let D=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({modified:u,allowedModifiers:D,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:en.InvalidModifierOnTypeParameterPositions});let U=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(u,D)&&this.raise(en.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),this.parseClassStaticBlock(t,u)):this.parseClassMemberWithIsStatic(t,u,p,!!u.static)};u.declare?this.tsInAmbientContext(U):U()}parseClassMemberWithIsStatic(t,u,p,D){let U=this.tsTryParseIndexSignature(u);if(U){t.body.push(U),u.abstract&&this.raise(en.IndexSignatureHasAbstract,{at:u}),u.accessibility&&this.raise(en.IndexSignatureHasAccessibility,{at:u,modifier:u.accessibility}),u.declare&&this.raise(en.IndexSignatureHasDeclare,{at:u}),u.override&&this.raise(en.IndexSignatureHasOverride,{at:u});return}!this.state.inAbstractClass&&u.abstract&&this.raise(en.NonAbstractClassHasAbstractMethod,{at:u}),u.override&&(p.hadSuperClass||this.raise(en.OverrideNotInSubClass,{at:u})),super.parseClassMemberWithIsStatic(t,u,p,D)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(en.ClassMethodHasReadonly,{at:t}),t.declare&&this.match(10)&&this.raise(en.ClassMethodHasDeclare,{at:t})}parseExpressionStatement(t,u){return(u.type==="Identifier"?this.tsParseExpressionStatement(t,u):void 0)||super.parseExpressionStatement(t,u)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(t,u,p,D){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(t,u,p,D);let U=this.tryParse(()=>super.parseConditional(t,u,p));return U.node?(U.error&&(this.state=U.failState),U.node):(U.error&&super.setOptionalParametersError(D,U.error),t)}parseParenItem(t,u,p){if(t=super.parseParenItem(t,u,p),this.eat(17)&&(t.optional=!0,this.resetEndLocation(t)),this.match(14)){let D=this.startNodeAt(u,p);return D.expression=t,D.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(D,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(121))return this.tsInAmbientContext(()=>this.parseExportDeclaration(t));let u=this.state.start,p=this.state.startLoc,D=this.eatContextual(121);if(D&&(this.isContextual(121)||!this.shouldParseExportDeclaration()))throw this.raise(en.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let U=On(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return U?((U.type==="TSInterfaceDeclaration"||U.type==="TSTypeAliasDeclaration"||D)&&(t.exportKind="type"),D&&(this.resetStartLocation(U,u,p),U.declare=!0),U):null}parseClassId(t,u,p){if((!u||p)&&this.isContextual(110))return;super.parseClassId(t,u,p,t.declare?ou:wo);let D=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));D&&(t.typeParameters=D)}parseClassPropertyAnnotation(t){!t.optional&&this.eat(35)&&(t.definite=!0);let u=this.tsTryParseTypeAnnotation();u&&(t.typeAnnotation=u)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&this.match(29)&&this.raise(en.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),t.abstract&&this.match(29)){let{key:u}=t;this.raise(en.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:u.type==="Identifier"&&!t.computed?u.name:"[".concat(this.input.slice(u.start,u.end),"]")})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(en.PrivateElementHasAbstract,{at:t}),t.accessibility&&this.raise(en.PrivateElementHasAccessibility,{at:t,modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}pushClassMethod(t,u,p,D,U,he){let Ze=this.tsTryParseTypeParameters();Ze&&U&&this.raise(en.ConstructorHasTypeParameters,{at:Ze});let{declare:wt=!1,kind:or}=u;wt&&(or==="get"||or==="set")&&this.raise(en.DeclareAccessor,{at:u,kind:or}),Ze&&(u.typeParameters=Ze),super.pushClassMethod(t,u,p,D,U,he)}pushClassPrivateMethod(t,u,p,D){let U=this.tsTryParseTypeParameters();U&&(u.typeParameters=U),super.pushClassPrivateMethod(t,u,p,D)}declareClassPrivateMethodInScope(t,u){t.type!=="TSDeclareMethod"&&(t.type==="MethodDefinition"&&!t.value.body||super.declareClassPrivateMethodInScope(t,u))}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(110)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t){let u=this.tsTryParseTypeParameters();u&&(t.typeParameters=u);for(var p=arguments.length,D=new Array(p>1?p-1:0),U=1;U<p;U++)D[U-1]=arguments[U];super.parseObjPropValue(t,...D)}parseFunctionParams(t,u){let p=this.tsTryParseTypeParameters();p&&(t.typeParameters=p),super.parseFunctionParams(t,u)}parseVarId(t,u){super.parseVarId(t,u),t.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);let p=this.tsTryParseTypeAnnotation();p&&(t.id.typeAnnotation=p,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,u){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,u)}parseMaybeAssign(){for(var t=arguments.length,u=new Array(t),p=0;p<t;p++)u[p]=arguments[p];var D,U,he,Ze,wt,or,m;let b,g,A;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(47))){if(b=this.state.clone(),g=this.tryParse(()=>super.parseMaybeAssign(...u),b),!g.error)return g.node;let{context:x}=this.state,w=x[x.length-1];(w===ms.j_oTag||w===ms.j_expr)&&x.pop()}if(!((D=g)!=null&&D.error)&&!this.match(47))return super.parseMaybeAssign(...u);let E;b=b||this.state.clone();let y=this.tryParse(x=>{var w,k,_;E=this.tsParseTypeParameters();let $=super.parseMaybeAssign(...u);return($.type!=="ArrowFunctionExpression"||(w=$.extra)!=null&&w.parenthesized)&&x(),((k=E)==null?void 0:k.params.length)!==0&&this.resetStartLocationFromNode($,E),$.typeParameters=E,this.hasPlugin("jsx")&&$.typeParameters.params.length===1&&!((_=$.typeParameters.extra)!=null&&_.trailingComma)&&$.typeParameters.params[0].constraint,$},b);if(!y.error&&!y.aborted)return E&&this.reportReservedArrowTypeParam(E),y.node;if(!g&&(zn(!this.hasPlugin("jsx")),A=this.tryParse(()=>super.parseMaybeAssign(...u),b),!A.error))return A.node;if((U=g)!=null&&U.node)return this.state=g.failState,g.node;if(y.node)return this.state=y.failState,E&&this.reportReservedArrowTypeParam(E),y.node;if((he=A)!=null&&he.node)return this.state=A.failState,A.node;throw(Ze=g)!=null&&Ze.thrown?g.error:y.thrown?y.error:(wt=A)!=null&&wt.thrown?A.error:((or=g)==null?void 0:or.error)||y.error||((m=A)==null?void 0:m.error)}reportReservedArrowTypeParam(t){var u;t.params.length===1&&!((u=t.extra)!=null&&u.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(en.ReservedArrowTypeParam,{at:t})}parseMaybeUnary(t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t)}parseArrow(t){if(this.match(14)){let u=this.tryParse(p=>{let D=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&p(),D});if(u.aborted)return;u.thrown||(u.error&&(this.state=u.failState),t.returnType=u.node)}return super.parseArrow(t)}parseAssignableListItemTypes(t){this.eat(17)&&(t.type!=="Identifier"&&!this.state.isAmbientContext&&!this.state.inType&&this.raise(en.PatternIsOptional,{at:t}),t.optional=!0);let u=this.tsTryParseTypeAnnotation();return u&&(t.typeAnnotation=u),this.resetEndLocation(t),t}isAssignable(t,u){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,u);case"TSParameterProperty":return!0;default:return super.isAssignable(t,u)}}toAssignable(t){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,u);break;case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":u?this.expressionScope.recordArrowParemeterBindingError(en.UnexpectedTypeCastInParameter,{at:t}):this.raise(en.UnexpectedTypeCastInParameter,{at:t}),this.toAssignable(t.expression,u);break;case"AssignmentExpression":!u&&t.left.type==="TSTypeCastExpression"&&(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,u)}}toAssignableParenthesizedExpression(t,u){switch(t.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,u);break;default:super.toAssignable(t,u)}}checkToRestConversion(t,u){switch(t.type){case"TSAsExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,u)}}isValidLVal(t,u,p){return un({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(p!==ba||!u)&&["expression",!0],TSTypeAssertion:(p!==ba||!u)&&["expression",!0]},t)||super.isValidLVal(t,u,p)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(t){if(this.match(47)||this.match(51)){let u=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let p=super.parseMaybeDecoratorArguments(t);return p.typeParameters=u,p}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(){let t=super.parseMaybeDefault(...arguments);return t.type==="AssignmentPattern"&&t.typeAnnotation&&t.right.start<t.typeAnnotation.start&&this.raise(en.TypeAnnotationAfterAssign,{at:t.typeAnnotation}),t}getTokenFromCode(t){if(this.state.inType){if(t===62)return this.finishOp(48,1);if(t===60)return this.finishOp(47,1)}return super.getTokenFromCode(t)}reScan_lt_gt(){let{type:t}=this.state;t===47?(this.state.pos-=1,this.readToken_lt()):t===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return t===51?(this.state.pos-=2,this.finishOp(47,1),47):t}toAssignableList(t){for(let u=0;u<t.length;u++){let p=t[u];(p==null?void 0:p.type)==="TSTypeCastExpression"&&(t[u]=this.typeCastToParameter(p))}super.toAssignableList(...arguments)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(t){return this.match(14)?t.every(u=>this.isAssignable(u,!0)):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){let u=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());u&&(t.typeParameters=u)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){let u=super.getGetterSetterExpectedParamCount(t),p=this.getObjectOrClassMethodParams(t)[0];return p&&this.isThisParam(p)?u+1:u}parseCatchClauseParam(){let t=super.parseCatchClauseParam(),u=this.tsTryParseTypeAnnotation();return u&&(t.typeAnnotation=u,this.resetEndLocation(t)),t}tsInAmbientContext(t){let u=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return t()}finally{this.state.isAmbientContext=u}}parseClass(t){let u=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{for(var p=arguments.length,D=new Array(p>1?p-1:0),U=1;U<p;U++)D[U-1]=arguments[U];return super.parseClass(t,...D)}finally{this.state.inAbstractClass=u}}tsParseAbstractDeclaration(t){if(this.match(80))return t.abstract=!0,this.parseClass(t,!0,!1);if(this.isContextual(125)){if(!this.hasFollowingLineBreak())return t.abstract=!0,this.raise(en.NonClassMethodPropertyHasAbstractModifer,{at:t}),this.tsParseInterfaceDeclaration(t)}else this.unexpected(null,80)}parseMethod(){let t=super.parseMethod(...arguments);if(t.abstract&&(this.hasPlugin("estree")?!!t.value.body:!!t.body)){let{key:u}=t;this.raise(en.AbstractMethodHasImplementation,{at:t,methodName:u.type==="Identifier"&&!t.computed?u.name:"[".concat(this.input.slice(u.start,u.end),"]")})}return t}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(t,u,p,D){return!u&&D?(this.parseTypeOnlyImportExportSpecifier(t,!1,p),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,u,p,D))}parseImportSpecifier(t,u,p,D){return!u&&D?(this.parseTypeOnlyImportExportSpecifier(t,!0,p),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,u,p,D))}parseTypeOnlyImportExportSpecifier(t,u,p){let D=u?"imported":"local",U=u?"local":"exported",he=t[D],Ze,wt=!1,or=!0,m=he.loc.start;if(this.isContextual(93)){let g=this.parseIdentifier();if(this.isContextual(93)){let A=this.parseIdentifier();ps(this.state.type)?(wt=!0,he=g,Ze=u?this.parseIdentifier():this.parseModuleExportName(),or=!1):(Ze=A,or=!1)}else ps(this.state.type)?(or=!1,Ze=u?this.parseIdentifier():this.parseModuleExportName()):(wt=!0,he=g)}else ps(this.state.type)&&(wt=!0,u?(he=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(he.name,he.loc.start,!0,!0)):he=this.parseModuleExportName());wt&&p&&this.raise(u?en.TypeModifierIsUsedInTypeImports:en.TypeModifierIsUsedInTypeExports,{at:m}),t[D]=he,t[U]=Ze;let b=u?"importKind":"exportKind";t[b]=wt?"type":"value",or&&this.eatContextual(93)&&(t[U]=u?this.parseIdentifier():this.parseModuleExportName()),t[U]||(t[U]=K(t[D])),u&&this.checkIdentifier(t[U],so)}};function Gr(n){if(n.type!=="MemberExpression")return!1;let{computed:t,property:u}=n;return t&&u.type!=="StringLiteral"&&(u.type!=="TemplateLiteral"||u.expressions.length>0)?!1:xn(n.object)}function xn(n){return n.type==="Identifier"?!0:n.type!=="MemberExpression"||n.computed?!1:xn(n.object)}var Lr=Oi(Ur||(Ur=on(["placeholders"])))(n=>({ClassNameIsRequired:n("A class name is required."),UnexpectedSpace:n("Unexpected space in placeholder.")})),Vs=n=>class extends n{parsePlaceholder(t){if(this.match(140)){let u=this.startNode();return this.next(),this.assertNoSpace(),u.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(140),this.finishPlaceholder(u,t)}}finishPlaceholder(t,u){let p=!!(t.expectedNode&&t.type==="Placeholder");return t.expectedNode=u,p?t:this.finishNode(t,"Placeholder")}getTokenFromCode(t){return t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(140,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(t){t!==void 0&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}isValidLVal(t){for(var u=arguments.length,p=new Array(u>1?u-1:0),D=1;D<u;D++)p[D-1]=arguments[D];return t==="Placeholder"||super.isValidLVal(t,...p)}toAssignable(t){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(...arguments)}isLet(t){return super.isLet(t)?!0:!this.isContextual(99)||t?!1:this.lookahead().type===140}verifyBreakContinue(t){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(...arguments)}parseExpressionStatement(t,u){if(u.type!=="Placeholder"||u.extra&&u.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(14)){let p=t;return p.label=this.finishPlaceholder(u,"Identifier"),this.next(),p.body=this.parseStatement("label"),this.finishNode(p,"LabeledStatement")}return this.semicolon(),t.name=u.name,this.finishPlaceholder(t,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(t,u,p){let D=u?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(t);let U=this.state.strict,he=this.parsePlaceholder("Identifier");if(he)if(this.match(81)||this.match(140)||this.match(5))t.id=he;else{if(p||!u)return t.id=null,t.body=this.finishPlaceholder(he,"ClassBody"),this.finishNode(t,D);throw this.raise(Lr.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(t,u,p);return this.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!t.superClass,U),this.finishNode(t,D)}parseExport(t){let u=this.parsePlaceholder("Identifier");if(!u)return super.parseExport(...arguments);if(!this.isContextual(97)&&!this.match(12))return t.specifiers=[],t.source=null,t.declaration=this.finishPlaceholder(u,"Declaration"),this.finishNode(t,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let p=this.startNode();return p.exported=u,t.specifiers=[this.finishNode(p,"ExportDefaultSpecifier")],super.parseExport(t)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(Us(140),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t){return t.specifiers&&t.specifiers.length>0?!0:super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(t){let{specifiers:u}=t;u!=null&&u.length&&(t.specifiers=u.filter(p=>p.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=u}parseImport(t){let u=this.parsePlaceholder("Identifier");if(!u)return super.parseImport(...arguments);if(t.specifiers=[],!this.isContextual(97)&&!this.match(12))return t.source=this.finishPlaceholder(u,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let p=this.startNodeAtNode(u);return p.local=u,this.finishNode(p,"ImportDefaultSpecifier"),t.specifiers.push(p),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(97),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Lr.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},Es=n=>class extends n{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,u=this.startNode();if(this.next(),On(this.state.type)){let p=this.parseIdentifierName(this.state.start),D=this.createIdentifier(u,p);if(D.type="V8IntrinsicIdentifier",this.match(10))return D}this.unexpected(t)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}};function es(n,t){let[u,p]=typeof t=="string"?[t,{}]:t,D=Object.keys(p),U=D.length===0;return n.some(he=>{if(typeof he=="string")return U&&he===u;{let[Ze,wt]=he;if(Ze!==u)return!1;for(let or of D)if(wt[or]!==p[or])return!1;return!0}})}function rs(n,t,u){let p=n.find(D=>Array.isArray(D)?D[0]===t:D===t);return p&&Array.isArray(p)?p[1][u]:null}var Wi=["minimal","fsharp","hack","smart"],Zn=["^^","@@","^","%","#"],Ri=["hash","bar"];function ki(n){if(es(n,"decorators")){if(es(n,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=rs(n,"decorators","decoratorsBeforeExport");if(t==null)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if(typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(es(n,"flow")&&es(n,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(es(n,"placeholders")&&es(n,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(es(n,"pipelineOperator")){let t=rs(n,"pipelineOperator","proposal");if(!Wi.includes(t)){let p=Wi.map(D=>'"'.concat(D,'"')).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '.concat(p,"."))}let u=es(n,["recordAndTuple",{syntaxType:"hash"}]);if(t==="hack"){if(es(n,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(es(n,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let p=rs(n,"pipelineOperator","topicToken");if(!Zn.includes(p)){let D=Zn.map(U=>'"'.concat(U,'"')).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '.concat(D,"."))}if(p==="#"&&u)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(t==="smart"&&u)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(es(n,"moduleAttributes")){if(es(n,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if(rs(n,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(es(n,"recordAndTuple")&&!Ri.includes(rs(n,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+Ri.map(t=>"'".concat(t,"'")).join(", "));if(es(n,"asyncDoExpressions")&&!es(n,"doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}}var Pi={estree:Rs,jsx:bt,flow:Oe,typescript:Dn,v8intrinsic:Es,placeholders:Vs},Ht=Object.keys(Pi),vr={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0};function Ir(n){let t={};for(let u of Object.keys(vr))t[u]=n&&n[u]!=null?n[u]:vr[u];return t}var In=(n,t)=>Object.hasOwnProperty.call(n,t)&&n[t],Ut=n=>n.type==="ParenthesizedExpression"?Ut(n.expression):n,ui=class extends Ae{toAssignable(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var u,p;let D;switch((n.type==="ParenthesizedExpression"||(u=n.extra)!=null&&u.parenthesized)&&(D=Ut(n),t?D.type==="Identifier"?this.expressionScope.recordArrowParemeterBindingError(dt.InvalidParenthesizedAssignment,{at:n}):D.type!=="MemberExpression"&&this.raise(dt.InvalidParenthesizedAssignment,{at:n}):this.raise(dt.InvalidParenthesizedAssignment,{at:n})),n.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":n.type="ObjectPattern";for(let he=0,Ze=n.properties.length,wt=Ze-1;he<Ze;he++){var U;let or=n.properties[he],m=he===wt;this.toAssignableObjectExpressionProp(or,m,t),m&&or.type==="RestElement"&&(U=n.extra)!=null&&U.trailingCommaLoc&&this.raise(dt.RestTrailingComma,{at:n.extra.trailingCommaLoc})}break;case"ObjectProperty":{let{key:he,value:Ze}=n;this.isPrivateName(he)&&this.classScope.usePrivateName(this.getPrivateNameSV(he),he.loc.start),this.toAssignable(Ze,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":n.type="ArrayPattern",this.toAssignableList(n.elements,(p=n.extra)==null?void 0:p.trailingCommaLoc,t);break;case"AssignmentExpression":n.operator!=="="&&this.raise(dt.MissingEqInAssignment,{at:n.left.loc.end}),n.type="AssignmentPattern",delete n.operator,this.toAssignable(n.left,t);break;case"ParenthesizedExpression":this.toAssignable(D,t);break}}toAssignableObjectExpressionProp(n,t,u){if(n.type==="ObjectMethod")this.raise(n.kind==="get"||n.kind==="set"?dt.PatternHasAccessor:dt.PatternHasMethod,{at:n.key});else if(n.type==="SpreadElement"){n.type="RestElement";let p=n.argument;this.checkToRestConversion(p,!1),this.toAssignable(p,u),t||this.raise(dt.RestTrailingComma,{at:n})}else this.toAssignable(n,u)}toAssignableList(n,t,u){let p=n.length-1;for(let D=0;D<=p;D++){let U=n[D];if(U){if(U.type==="SpreadElement"){U.type="RestElement";let he=U.argument;this.checkToRestConversion(he,!0),this.toAssignable(he,u)}else this.toAssignable(U,u);U.type==="RestElement"&&(D<p?this.raise(dt.RestTrailingComma,{at:U}):t&&this.raise(dt.RestTrailingComma,{at:t}))}}}isAssignable(n,t){switch(n.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let u=n.properties.length-1;return n.properties.every((p,D)=>p.type!=="ObjectMethod"&&(D===u||p.type!=="SpreadElement")&&this.isAssignable(p))}case"ObjectProperty":return this.isAssignable(n.value);case"SpreadElement":return this.isAssignable(n.argument);case"ArrayExpression":return n.elements.every(u=>u===null||this.isAssignable(u));case"AssignmentExpression":return n.operator==="=";case"ParenthesizedExpression":return this.isAssignable(n.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(n,t){return n}toReferencedListDeep(n,t){this.toReferencedList(n,t);for(let u of n)(u==null?void 0:u.type)==="ArrayExpression"&&this.toReferencedListDeep(u.elements)}parseSpread(n,t){let u=this.startNode();return this.next(),u.argument=this.parseMaybeAssignAllowIn(n,void 0,t),this.finishNode(u,"SpreadElement")}parseRestBinding(){let n=this.startNode();return this.next(),n.argument=this.parseBindingAtom(),this.finishNode(n,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let n=this.startNode();return this.next(),n.elements=this.parseBindingList(3,93,!0),this.finishNode(n,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(n,t,u,p){let D=[],U=!0;for(;!this.eat(n);)if(U?U=!1:this.expect(12),u&&this.match(12))D.push(null);else{if(this.eat(n))break;if(this.match(21)){if(D.push(this.parseAssignableListItemTypes(this.parseRestBinding())),!this.checkCommaAfterRest(t)){this.expect(n);break}}else{let he=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(dt.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)he.push(this.parseDecorator());D.push(this.parseAssignableListItem(p,he))}}return D}parseBindingRestProperty(n){return this.next(),n.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(n,"RestElement")}parseBindingProperty(){let n=this.startNode(),{type:t,start:u,startLoc:p}=this.state;return t===21?this.parseBindingRestProperty(n):(t===134?(this.expectPlugin("destructuringPrivate",p),this.classScope.usePrivateName(this.state.value,p),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,u,p,!1,!1,!0,!1),n)}parseAssignableListItem(n,t){let u=this.parseMaybeDefault();this.parseAssignableListItemTypes(u);let p=this.parseMaybeDefault(u.start,u.loc.start,u);return t.length&&(u.decorators=t),p}parseAssignableListItemTypes(n){return n}parseMaybeDefault(n,t,u){var p,D,U;if(t=(p=t)!=null?p:this.state.startLoc,n=(D=n)!=null?D:this.state.start,u=(U=u)!=null?U:this.parseBindingAtom(),!this.eat(29))return u;let he=this.startNodeAt(n,t);return he.left=u,he.right=this.parseMaybeAssignAllowIn(),this.finishNode(he,"AssignmentPattern")}isValidLVal(n,t,u){return In({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},n)}checkLVal(n,t){let{in:u,binding:p=ba,checkClashes:D=!1,strictModeChanged:U=!1,allowingSloppyLetBinding:he=!(p&Ya),hasParenthesizedAncestor:Ze=!1}=t;var wt;let or=n.type;if(this.isObjectMethod(n))return;if(or==="MemberExpression"){p!==ba&&this.raise(dt.InvalidPropertyBindingPattern,{at:n});return}if(n.type==="Identifier"){this.checkIdentifier(n,p,U,he);let{name:E}=n;D&&(D.has(E)?this.raise(dt.ParamDupe,{at:n}):D.add(E));return}let m=this.isValidLVal(n.type,!(Ze||(wt=n.extra)!=null&&wt.parenthesized)&&u.type==="AssignmentExpression",p);if(m===!0)return;if(m===!1){let E=p===ba?dt.InvalidLhs:dt.InvalidLhsBinding;this.raise(E,{at:n,ancestor:u.type==="UpdateExpression"?{type:"UpdateExpression",prefix:u.prefix}:{type:u.type}});return}let[b,g]=Array.isArray(m)?m:[m,or==="ParenthesizedExpression"],A=n.type==="ArrayPattern"||n.type==="ObjectPattern"||n.type==="ParenthesizedExpression"?n:u;for(let E of[].concat(n[b]))E&&this.checkLVal(E,{in:A,binding:p,checkClashes:D,allowingSloppyLetBinding:he,strictModeChanged:U,hasParenthesizedAncestor:g})}checkIdentifier(n,t){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!(t&Ya);this.state.strict&&(u?ma(n.name,this.inModule):Ca(n.name))&&(t===ba?this.raise(dt.StrictEvalArguments,{at:n,referenceName:n.name}):this.raise(dt.StrictEvalArgumentsBinding,{at:n,bindingName:n.name})),!p&&n.name==="let"&&this.raise(dt.LetInLexicalBinding,{at:n}),t&ba||this.declareNameFromIdentifier(n,t)}declareNameFromIdentifier(n,t){this.scope.declareName(n.name,t,n.loc.start)}checkToRestConversion(n,t){switch(n.type){case"ParenthesizedExpression":this.checkToRestConversion(n.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(dt.InvalidRestAssignmentPattern,{at:n})}}checkCommaAfterRest(n){return this.match(12)?(this.raise(this.lookaheadCharCode()===n?dt.RestTrailingComma:dt.ElementAfterRest,{at:this.state.startLoc}),!0):!1}},Xn=class extends ui{checkProto(n,t,u,p){if(n.type==="SpreadElement"||this.isObjectMethod(n)||n.computed||n.shorthand)return;let D=n.key;if((D.type==="Identifier"?D.name:D.value)==="__proto__"){if(t){this.raise(dt.RecordNoProto,{at:D});return}u.used&&(p?p.doubleProtoLoc===null&&(p.doubleProtoLoc=D.loc.start):this.raise(dt.DuplicateProto,{at:D})),u.used=!0}}shouldExitDescending(n,t){return n.type==="ArrowFunctionExpression"&&n.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();let n=this.parseExpression();return this.match(135)||this.unexpected(),this.finalizeRemainingComments(),n.comments=this.state.comments,n.errors=this.state.errors,this.options.tokens&&(n.tokens=this.tokens),n}parseExpression(n,t){return n?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(n){let t=this.state.start,u=this.state.startLoc,p=this.parseMaybeAssign(n);if(this.match(12)){let D=this.startNodeAt(t,u);for(D.expressions=[p];this.eat(12);)D.expressions.push(this.parseMaybeAssign(n));return this.toReferencedList(D.expressions),this.finishNode(D,"SequenceExpression")}return p}parseMaybeAssignDisallowIn(n,t){return this.disallowInAnd(()=>this.parseMaybeAssign(n,t))}parseMaybeAssignAllowIn(n,t){return this.allowInAnd(()=>this.parseMaybeAssign(n,t))}setOptionalParametersError(n,t){var u;n.optionalParametersLoc=(u=t==null?void 0:t.loc)!=null?u:this.state.startLoc}parseMaybeAssign(n,t){let u=this.state.start,p=this.state.startLoc;if(this.isContextual(105)&&this.prodParam.hasYield){let Ze=this.parseYield();return t&&(Ze=t.call(this,Ze,u,p)),Ze}let D;n?D=!1:(n=new cu,D=!0);let{type:U}=this.state;(U===10||On(U))&&(this.state.potentialArrowAt=this.state.start);let he=this.parseMaybeConditional(n);if(t&&(he=t.call(this,he,u,p)),os(this.state.type)){let Ze=this.startNodeAt(u,p),wt=this.state.value;return Ze.operator=wt,this.match(29)?(this.toAssignable(he,!0),Ze.left=he,n.doubleProtoLoc!=null&&n.doubleProtoLoc.index>=u&&(n.doubleProtoLoc=null),n.shorthandAssignLoc!=null&&n.shorthandAssignLoc.index>=u&&(n.shorthandAssignLoc=null),n.privateKeyLoc!=null&&n.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(n),n.privateKeyLoc=null)):Ze.left=he,this.next(),Ze.right=this.parseMaybeAssign(),this.checkLVal(he,{in:this.finishNode(Ze,"AssignmentExpression")}),Ze}else D&&this.checkExpressionErrors(n,!0);return he}parseMaybeConditional(n){let t=this.state.start,u=this.state.startLoc,p=this.state.potentialArrowAt,D=this.parseExprOps(n);return this.shouldExitDescending(D,p)?D:this.parseConditional(D,t,u,n)}parseConditional(n,t,u,p){if(this.eat(17)){let D=this.startNodeAt(t,u);return D.test=n,D.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),D.alternate=this.parseMaybeAssign(),this.finishNode(D,"ConditionalExpression")}return n}parseMaybeUnaryOrPrivate(n){return this.match(134)?this.parsePrivateName():this.parseMaybeUnary(n)}parseExprOps(n){let t=this.state.start,u=this.state.startLoc,p=this.state.potentialArrowAt,D=this.parseMaybeUnaryOrPrivate(n);return this.shouldExitDescending(D,p)?D:this.parseExprOp(D,t,u,-1)}parseExprOp(n,t,u,p){if(this.isPrivateName(n)){let U=this.getPrivateNameSV(n);(p>=zs(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(dt.PrivateInExpectedIn,{at:n,identifierName:U}),this.classScope.usePrivateName(U,n.loc.start)}let D=this.state.type;if(Hr(D)&&(this.prodParam.hasIn||!this.match(58))){let U=zs(D);if(U>p){if(D===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return n;this.checkPipelineAtInfixOperator(n,u)}let he=this.startNodeAt(t,u);he.left=n,he.operator=this.state.value;let Ze=D===41||D===42,wt=D===40;if(wt&&(U=zs(42)),this.next(),D===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(dt.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});he.right=this.parseExprOpRightExpr(D,U),this.finishNode(he,Ze||wt?"LogicalExpression":"BinaryExpression");let or=this.state.type;if(wt&&(or===41||or===42)||Ze&&or===40)throw this.raise(dt.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(he,t,u,p)}}return n}parseExprOpRightExpr(n,t){let u=this.state.start,p=this.state.startLoc;switch(n){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(105))throw this.raise(dt.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(n,t),u,p)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(n,t)}}parseExprOpBaseRightExpr(n,t){let u=this.state.start,p=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),u,p,gs(n)?t-1:t)}parseHackPipeBody(){var n;let{startLoc:t}=this.state,u=this.parseMaybeAssign();return as.has(u.type)&&!((n=u.extra)!=null&&n.parenthesized)&&this.raise(dt.PipeUnparenthesizedBody,{at:t,type:u.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(dt.PipeTopicUnused,{at:t}),u}checkExponentialAfterUnary(n){this.match(57)&&this.raise(dt.UnexpectedTokenUnaryExponentiation,{at:n.argument})}parseMaybeUnary(n,t){let u=this.state.start,p=this.state.startLoc,D=this.isContextual(96);if(D&&this.isAwaitAllowed()){this.next();let wt=this.parseAwait(u,p);return t||this.checkExponentialAfterUnary(wt),wt}let U=this.match(34),he=this.startNode();if(En(this.state.type)){he.operator=this.state.value,he.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let wt=this.match(89);if(this.next(),he.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(n,!0),this.state.strict&&wt){let or=he.argument;or.type==="Identifier"?this.raise(dt.StrictDelete,{at:he}):this.hasPropertyAsPrivateName(or)&&this.raise(dt.DeletePrivateField,{at:he})}if(!U)return t||this.checkExponentialAfterUnary(he),this.finishNode(he,"UnaryExpression")}let Ze=this.parseUpdate(he,U,n);if(D){let{type:wt}=this.state;if((this.hasPlugin("v8intrinsic")?Fi(wt):Fi(wt)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(dt.AwaitNotInAsyncContext,{at:p}),this.parseAwait(u,p)}return Ze}parseUpdate(n,t,u){if(t)return this.checkLVal(n.argument,{in:this.finishNode(n,"UpdateExpression")}),n;let p=this.state.start,D=this.state.startLoc,U=this.parseExprSubscripts(u);if(this.checkExpressionErrors(u,!1))return U;for(;fr(this.state.type)&&!this.canInsertSemicolon();){let he=this.startNodeAt(p,D);he.operator=this.state.value,he.prefix=!1,he.argument=U,this.next(),this.checkLVal(U,{in:U=this.finishNode(he,"UpdateExpression")})}return U}parseExprSubscripts(n){let t=this.state.start,u=this.state.startLoc,p=this.state.potentialArrowAt,D=this.parseExprAtom(n);return this.shouldExitDescending(D,p)?D:this.parseSubscripts(D,t,u)}parseSubscripts(n,t,u,p){let D={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(n),stop:!1};do n=this.parseSubscript(n,t,u,p,D),D.maybeAsyncArrow=!1;while(!D.stop);return n}parseSubscript(n,t,u,p,D){let{type:U}=this.state;if(!p&&U===15)return this.parseBind(n,t,u,p,D);if(Ts(U))return this.parseTaggedTemplateExpression(n,t,u,D);let he=!1;if(U===18){if(p&&this.lookaheadCharCode()===40)return D.stop=!0,n;D.optionalChainMember=he=!0,this.next()}if(!p&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(n,t,u,D,he);{let Ze=this.eat(0);return Ze||he||this.eat(16)?this.parseMember(n,t,u,D,Ze,he):(D.stop=!0,n)}}parseMember(n,t,u,p,D,U){let he=this.startNodeAt(t,u);return he.object=n,he.computed=D,D?(he.property=this.parseExpression(),this.expect(3)):this.match(134)?(n.type==="Super"&&this.raise(dt.SuperPrivateField,{at:u}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),he.property=this.parsePrivateName()):he.property=this.parseIdentifier(!0),p.optionalChainMember?(he.optional=U,this.finishNode(he,"OptionalMemberExpression")):this.finishNode(he,"MemberExpression")}parseBind(n,t,u,p,D){let U=this.startNodeAt(t,u);return U.object=n,this.next(),U.callee=this.parseNoCallExpr(),D.stop=!0,this.parseSubscripts(this.finishNode(U,"BindExpression"),t,u,p)}parseCoverCallAndAsyncArrowHead(n,t,u,p,D){let U=this.state.maybeInArrowParameters,he=null;this.state.maybeInArrowParameters=!0,this.next();let Ze=this.startNodeAt(t,u);Ze.callee=n;let{maybeAsyncArrow:wt,optionalChainMember:or}=p;return wt&&(this.expressionScope.enter(ko()),he=new cu),or&&(Ze.optional=D),D?Ze.arguments=this.parseCallExpressionArguments(11):Ze.arguments=this.parseCallExpressionArguments(11,n.type==="Import",n.type!=="Super",Ze,he),this.finishCallExpression(Ze,or),wt&&this.shouldParseAsyncArrow()&&!D?(p.stop=!0,this.checkDestructuringPrivate(he),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),Ze=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,u),Ze)):(wt&&(this.checkExpressionErrors(he,!0),this.expressionScope.exit()),this.toReferencedArguments(Ze)),this.state.maybeInArrowParameters=U,Ze}toReferencedArguments(n,t){this.toReferencedListDeep(n.arguments,t)}parseTaggedTemplateExpression(n,t,u,p){let D=this.startNodeAt(t,u);return D.tag=n,D.quasi=this.parseTemplate(!0),p.optionalChainMember&&this.raise(dt.OptionalChainingNoTemplate,{at:u}),this.finishNode(D,"TaggedTemplateExpression")}atPossibleAsyncArrow(n){return n.type==="Identifier"&&n.name==="async"&&this.state.lastTokEndLoc.index===n.end&&!this.canInsertSemicolon()&&n.end-n.start===5&&n.start===this.state.potentialArrowAt}finishCallExpression(n,t){if(n.callee.type==="Import")if(n.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),n.arguments.length===0||n.arguments.length>2)this.raise(dt.ImportCallArity,{at:n,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let u of n.arguments)u.type==="SpreadElement"&&this.raise(dt.ImportCallSpreadArgument,{at:u});return this.finishNode(n,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(n,t,u,p,D){let U=[],he=!0,Ze=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(n);){if(he)he=!1;else if(this.expect(12),this.match(n)){t&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(dt.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),p&&this.addTrailingCommaExtraToNode(p),this.next();break}U.push(this.parseExprListItem(!1,D,u))}return this.state.inFSharpPipelineDirectBody=Ze,U}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(n,t){var u;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(n,t.arguments,!0,(u=t.extra)==null?void 0:u.trailingCommaLoc),t.innerComments&&Js(n,t.innerComments),t.callee.trailingComments&&Js(n,t.callee.trailingComments),n}parseNoCallExpr(){let n=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),n,t,!0)}parseExprAtom(n){let t,{type:u}=this.state;switch(u){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):(this.match(10)||this.raise(dt.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 130:return this.parseNumericLiteral(this.state.value);case 131:return this.parseBigIntLiteral(this.state.value);case 132:return this.parseDecimalLiteral(this.state.value);case 129:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let p=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(p)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,n);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,n);case 68:return this.parseFunctionOrFunctionSent();case 26:this.parseDecorators();case 80:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let p=t.callee=this.parseNoCallExpr();if(p.type==="MemberExpression")return this.finishNode(t,"BindExpression");throw this.raise(dt.UnsupportedBind,{at:p})}case 134:return this.raise(dt.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let p=this.getPluginOption("pipelineOperator","proposal");if(p)return this.parseTopicReference(p);throw this.unexpected()}case 47:{let p=this.input.codePointAt(this.nextTokenStart());if(Fs(p)||p===62){this.expectOnePlugin(["jsx","flow","typescript"]);break}else throw this.unexpected()}default:if(On(u)){if(this.isContextual(123)&&this.lookaheadCharCode()===123&&!this.hasFollowingLineBreak())return this.parseModuleExpression();let p=this.state.potentialArrowAt===this.state.start,D=this.state.containsEsc,U=this.parseIdentifier();if(!D&&U.name==="async"&&!this.canInsertSemicolon()){let{type:he}=this.state;if(he===68)return this.resetPreviousNodeTrailingComments(U),this.next(),this.parseFunction(this.startNodeAtNode(U),void 0,!0);if(On(he))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(U)):U;if(he===90)return this.resetPreviousNodeTrailingComments(U),this.parseDo(this.startNodeAtNode(U),!0)}return p&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(U),[U],!1)):U}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(n,t){let u=this.getPluginOption("pipelineOperator","proposal");if(u)return this.state.type=n,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=pn(this.state.endLoc,-1),this.parseTopicReference(u);throw this.unexpected()}parseTopicReference(n){let t=this.startNode(),u=this.state.startLoc,p=this.state.type;return this.next(),this.finishTopicReference(t,u,n,p)}finishTopicReference(n,t,u,p){if(this.testTopicReferenceConfiguration(u,t,p)){let D=u==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(u==="smart"?dt.PrimaryTopicNotAllowed:dt.PipeTopicUnbound,{at:t}),this.registerTopicReference(),this.finishNode(n,D)}else throw this.raise(dt.PipeTopicUnconfiguredToken,{at:t,token:Us(p)})}testTopicReferenceConfiguration(n,t,u){switch(n){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Us(u)}]);case"smart":return u===27;default:throw this.raise(dt.PipeTopicRequiresHackPipes,{at:t})}}parseAsyncArrowUnaryFunction(n){this.prodParam.enter(Po(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(dt.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(n,t,!0),n}parseDo(n,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),n.async=t,this.next();let u=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(po),n.body=this.parseBlock(),this.prodParam.exit()):n.body=this.parseBlock(),this.state.labels=u,this.finishNode(n,"DoExpression")}parseSuper(){let n=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(dt.SuperNotAllowed,{at:n}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(dt.UnexpectedSuper,{at:n}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(dt.UnsupportedSuper,{at:n}),this.finishNode(n,"Super")}parsePrivateName(){let n=this.startNode(),t=this.startNodeAt(this.state.start+1,new vn(this.state.curLine,this.state.start+1-this.state.lineStart,this.state.start+1)),u=this.state.value;return this.next(),n.id=this.createIdentifier(t,u),this.finishNode(n,"PrivateName")}parseFunctionOrFunctionSent(){let n=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(n),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(n,t,"sent")}return this.parseFunction(n)}parseMetaProperty(n,t,u){n.meta=t;let p=this.state.containsEsc;return n.property=this.parseIdentifier(!0),(n.property.name!==u||p)&&this.raise(dt.UnsupportedMetaProperty,{at:n.property,target:t.name,onlyValidPropertyName:u}),this.finishNode(n,"MetaProperty")}parseImportMetaProperty(n){let t=this.createIdentifier(this.startNodeAtNode(n),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(dt.ImportMetaOutsideModule,{at:t}),this.sawUnambiguousESM=!0),this.parseMetaProperty(n,t,"meta")}parseLiteralAtNode(n,t,u){return this.addExtra(u,"rawValue",n),this.addExtra(u,"raw",this.input.slice(u.start,this.state.end)),u.value=n,this.next(),this.finishNode(u,t)}parseLiteral(n,t){let u=this.startNode();return this.parseLiteralAtNode(n,t,u)}parseStringLiteral(n){return this.parseLiteral(n,"StringLiteral")}parseNumericLiteral(n){return this.parseLiteral(n,"NumericLiteral")}parseBigIntLiteral(n){return this.parseLiteral(n,"BigIntLiteral")}parseDecimalLiteral(n){return this.parseLiteral(n,"DecimalLiteral")}parseRegExpLiteral(n){let t=this.parseLiteral(n.value,"RegExpLiteral");return t.pattern=n.pattern,t.flags=n.flags,t}parseBooleanLiteral(n){let t=this.startNode();return t.value=n,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let n=this.startNode();return this.next(),this.finishNode(n,"NullLiteral")}parseParenAndDistinguishExpression(n){let t=this.state.start,u=this.state.startLoc,p;this.next(),this.expressionScope.enter(Vl());let D=this.state.maybeInArrowParameters,U=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let he=this.state.start,Ze=this.state.startLoc,wt=[],or=new cu,m=!0,b,g;for(;!this.match(11);){if(m)m=!1;else if(this.expect(12,or.optionalParametersLoc===null?null:or.optionalParametersLoc),this.match(11)){g=this.state.startLoc;break}if(this.match(21)){let y=this.state.start,x=this.state.startLoc;if(b=this.state.startLoc,wt.push(this.parseParenItem(this.parseRestBinding(),y,x)),!this.checkCommaAfterRest(41))break}else wt.push(this.parseMaybeAssignAllowIn(or,this.parseParenItem))}let A=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=D,this.state.inFSharpPipelineDirectBody=U;let E=this.startNodeAt(t,u);return n&&this.shouldParseArrow(wt)&&(E=this.parseArrow(E))?(this.checkDestructuringPrivate(or),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(E,wt,!1),E):(this.expressionScope.exit(),wt.length||this.unexpected(this.state.lastTokStartLoc),g&&this.unexpected(g),b&&this.unexpected(b),this.checkExpressionErrors(or,!0),this.toReferencedListDeep(wt,!0),wt.length>1?(p=this.startNodeAt(he,Ze),p.expressions=wt,this.finishNode(p,"SequenceExpression"),this.resetEndLocation(p,A)):p=wt[0],this.wrapParenthesis(t,u,p))}wrapParenthesis(n,t,u){if(!this.options.createParenthesizedExpressions)return this.addExtra(u,"parenthesized",!0),this.addExtra(u,"parenStart",n),this.takeSurroundingComments(u,n,this.state.lastTokEndLoc.index),u;let p=this.startNodeAt(n,t);return p.expression=u,this.finishNode(p,"ParenthesizedExpression"),p}shouldParseArrow(n){return!this.canInsertSemicolon()}parseArrow(n){if(this.eat(19))return n}parseParenItem(n,t,u){return n}parseNewOrNewTarget(){let n=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(n),"new");this.next();let u=this.parseMetaProperty(n,t,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&this.raise(dt.UnexpectedNewTarget,{at:u}),u}return this.parseNew(n)}parseNew(n){if(this.parseNewCallee(n),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),n.arguments=t}else n.arguments=[];return this.finishNode(n,"NewExpression")}parseNewCallee(n){n.callee=this.parseNoCallExpr(),n.callee.type==="Import"?this.raise(dt.ImportCallNotNewExpression,{at:n.callee}):this.isOptionalChain(n.callee)?this.raise(dt.OptionalChainingNoNew,{at:this.state.lastTokEndLoc}):this.eat(18)&&this.raise(dt.OptionalChainingNoNew,{at:this.state.startLoc})}parseTemplateElement(n){let{start:t,startLoc:u,end:p,value:D}=this.state,U=t+1,he=this.startNodeAt(U,pn(u,1));D===null&&(n||this.raise(dt.InvalidEscapeSequenceTemplate,{at:pn(u,2)}));let Ze=this.match(24),wt=Ze?-1:-2,or=p+wt;return he.value={raw:this.input.slice(U,or).replace(/\r\n?/g,`
|
|
275
275
|
`),cooked:D===null?null:D.slice(1,wt)},he.tail=Ze,this.next(),this.finishNode(he,"TemplateElement"),this.resetEndLocation(he,pn(this.state.lastTokEndLoc,wt)),he}parseTemplate(n){let t=this.startNode();t.expressions=[];let u=this.parseTemplateElement(n);for(t.quasis=[u];!u.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(u=this.parseTemplateElement(n));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(n,t,u,p){u&&this.expectPlugin("recordAndTuple");let D=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let U=Object.create(null),he=!0,Ze=this.startNode();for(Ze.properties=[],this.next();!this.match(n);){if(he)he=!1;else if(this.expect(12),this.match(n)){this.addTrailingCommaExtraToNode(Ze);break}let or;t?or=this.parseBindingProperty():(or=this.parsePropertyDefinition(p),this.checkProto(or,u,U,p)),u&&!this.isObjectProperty(or)&&or.type!=="SpreadElement"&&this.raise(dt.InvalidRecordProperty,{at:or}),or.shorthand&&this.addExtra(or,"shorthand",!0),Ze.properties.push(or)}this.next(),this.state.inFSharpPipelineDirectBody=D;let wt="ObjectExpression";return t?wt="ObjectPattern":u&&(wt="RecordExpression"),this.finishNode(Ze,wt)}addTrailingCommaExtraToNode(n){this.addExtra(n,"trailingComma",this.state.lastTokStart),this.addExtra(n,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(n){return!n.computed&&n.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(n){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(dt.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)t.push(this.parseDecorator());let u=this.startNode(),p=!1,D=!1,U,he;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(u.decorators=t,t=[]),u.method=!1,n&&(U=this.state.start,he=this.state.startLoc);let Ze=this.eat(55);this.parsePropertyNamePrefixOperator(u);let wt=this.state.containsEsc,or=this.parsePropertyName(u,n);if(!Ze&&!wt&&this.maybeAsyncOrAccessorProp(u)){let m=or.name;m==="async"&&!this.hasPrecedingLineBreak()&&(p=!0,this.resetPreviousNodeTrailingComments(or),Ze=this.eat(55),this.parsePropertyName(u)),(m==="get"||m==="set")&&(D=!0,this.resetPreviousNodeTrailingComments(or),u.kind=m,this.match(55)&&(Ze=!0,this.raise(dt.AccessorIsGenerator,{at:this.state.curPosition(),kind:m}),this.next()),this.parsePropertyName(u))}return this.parseObjPropValue(u,U,he,Ze,p,!1,D,n),u}getGetterSetterExpectedParamCount(n){return n.kind==="get"?0:1}getObjectOrClassMethodParams(n){return n.params}checkGetterSetterParams(n){var t;let u=this.getGetterSetterExpectedParamCount(n),p=this.getObjectOrClassMethodParams(n);p.length!==u&&this.raise(n.kind==="get"?dt.BadGetterArity:dt.BadSetterArity,{at:n}),n.kind==="set"&&((t=p[p.length-1])==null?void 0:t.type)==="RestElement"&&this.raise(dt.BadSetterRestParameter,{at:n})}parseObjectMethod(n,t,u,p,D){if(D)return this.parseMethod(n,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(n),n;if(u||t||this.match(10))return p&&this.unexpected(),n.kind="method",n.method=!0,this.parseMethod(n,t,u,!1,!1,"ObjectMethod")}parseObjectProperty(n,t,u,p,D){if(n.shorthand=!1,this.eat(14))return n.value=p?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(D),this.finishNode(n,"ObjectProperty");if(!n.computed&&n.key.type==="Identifier"){if(this.checkReservedWord(n.key.name,n.key.loc.start,!0,!1),p)n.value=this.parseMaybeDefault(t,u,K(n.key));else if(this.match(29)){let U=this.state.startLoc;D!=null?D.shorthandAssignLoc===null&&(D.shorthandAssignLoc=U):this.raise(dt.InvalidCoverInitializedName,{at:U}),n.value=this.parseMaybeDefault(t,u,K(n.key))}else n.value=K(n.key);return n.shorthand=!0,this.finishNode(n,"ObjectProperty")}}parseObjPropValue(n,t,u,p,D,U,he,Ze){let wt=this.parseObjectMethod(n,p,D,U,he)||this.parseObjectProperty(n,t,u,U,Ze);return wt||this.unexpected(),wt}parsePropertyName(n,t){if(this.eat(0))n.computed=!0,n.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:u,value:p}=this.state,D;if(ps(u))D=this.parseIdentifier(!0);else switch(u){case 130:D=this.parseNumericLiteral(p);break;case 129:D=this.parseStringLiteral(p);break;case 131:D=this.parseBigIntLiteral(p);break;case 132:D=this.parseDecimalLiteral(p);break;case 134:{let U=this.state.startLoc;t!=null?t.privateKeyLoc===null&&(t.privateKeyLoc=U):this.raise(dt.UnexpectedPrivateField,{at:U}),D=this.parsePrivateName();break}default:throw this.unexpected()}n.key=D,u!==134&&(n.computed=!1)}return n.key}initFunction(n,t){n.id=null,n.generator=!1,n.async=!!t}parseMethod(n,t,u,p,D,U){let he=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;this.initFunction(n,u),n.generator=!!t;let Ze=p;return this.scope.enter(no|jo|(he?bo:0)|(D?nu:0)),this.prodParam.enter(Po(u,n.generator)),this.parseFunctionParams(n,Ze),this.parseFunctionBodyAndFinish(n,U,!0),this.prodParam.exit(),this.scope.exit(),n}parseArrayLike(n,t,u,p){u&&this.expectPlugin("recordAndTuple");let D=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let U=this.startNode();return this.next(),U.elements=this.parseExprList(n,!u,p,U),this.state.inFSharpPipelineDirectBody=D,this.finishNode(U,u?"TupleExpression":"ArrayExpression")}parseArrowExpression(n,t,u,p){this.scope.enter(no|yo);let D=Po(u,!1);!this.match(5)&&this.prodParam.hasIn&&(D|=$o),this.prodParam.enter(D),this.initFunction(n,u);let U=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(n,t,p)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(n,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=U,this.finishNode(n,"ArrowFunctionExpression")}setArrowFunctionParameters(n,t,u){this.toAssignableList(t,u,!1),n.params=t}parseFunctionBodyAndFinish(n,t){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parseFunctionBody(n,!1,u),this.finishNode(n,t)}parseFunctionBody(n,t){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=t&&!this.match(5);if(this.expressionScope.enter(Za()),p)n.body=this.parseMaybeAssign(),this.checkParams(n,!1,t,!1);else{let D=this.state.strict,U=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|gl),n.body=this.parseBlock(!0,!1,he=>{let Ze=!this.isSimpleParamList(n.params);he&&Ze&&this.raise(dt.IllegalLanguageModeDirective,{at:(n.kind==="method"||n.kind==="constructor")&&!!n.key?n.key.loc.end:n});let wt=!D&&this.state.strict;this.checkParams(n,!this.state.strict&&!t&&!u&&!Ze,t,wt),this.state.strict&&n.id&&this.checkIdentifier(n.id,uu,wt)}),this.prodParam.exit(),this.state.labels=U}this.expressionScope.exit()}isSimpleParameter(n){return n.type==="Identifier"}isSimpleParamList(n){for(let t=0,u=n.length;t<u;t++)if(!this.isSimpleParameter(n[t]))return!1;return!0}checkParams(n,t,u){let p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,D=!t&&new Set,U={type:"FormalParameters"};for(let he of n.params)this.checkLVal(he,{in:U,binding:ao,checkClashes:D,strictModeChanged:p})}parseExprList(n,t,u,p){let D=[],U=!0;for(;!this.eat(n);){if(U)U=!1;else if(this.expect(12),this.match(n)){p&&this.addTrailingCommaExtraToNode(p),this.next();break}D.push(this.parseExprListItem(t,u))}return D}parseExprListItem(n,t,u){let p;if(this.match(12))n||this.raise(dt.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),p=null;else if(this.match(21)){let D=this.state.start,U=this.state.startLoc;p=this.parseParenItem(this.parseSpread(t),D,U)}else if(this.match(17)){this.expectPlugin("partialApplication"),u||this.raise(dt.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let D=this.startNode();this.next(),p=this.finishNode(D,"ArgumentPlaceholder")}else p=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return p}parseIdentifier(n){let t=this.startNode(),u=this.parseIdentifierName(t.start,n);return this.createIdentifier(t,u)}createIdentifier(n,t){return n.name=t,n.loc.identifierName=t,this.finishNode(n,"Identifier")}parseIdentifierName(n,t){let u,{startLoc:p,type:D}=this.state;if(ps(D))u=this.state.value;else throw this.unexpected();let U=Ui(D);return t?U&&this.replaceToken(128):this.checkReservedWord(u,p,U,!1),this.next(),u}checkReservedWord(n,t,u,p){if(!(n.length>10||!za(n))){if(n==="yield"){if(this.prodParam.hasYield){this.raise(dt.YieldBindingIdentifier,{at:t});return}}else if(n==="await"){if(this.prodParam.hasAwait){this.raise(dt.AwaitBindingIdentifier,{at:t});return}if(this.scope.inStaticBlock){this.raise(dt.AwaitBindingIdentifierInStaticBlock,{at:t});return}this.expressionScope.recordAsyncArrowParametersError({at:t})}else if(n==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(dt.ArgumentsInClass,{at:t});return}if(u&&ga(n)){this.raise(dt.UnexpectedKeyword,{at:t,keyword:n});return}(this.state.strict?p?ma:ru:tu)(n,this.inModule)&&this.raise(dt.UnexpectedReservedWord,{at:t,reservedWord:n})}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(n,t){let u=this.startNodeAt(n,t);return this.expressionScope.recordParameterInitializerError(dt.AwaitExpressionFormalParameter,{at:u}),this.eat(55)&&this.raise(dt.ObsoleteAwaitStar,{at:u}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(u.argument=this.parseMaybeUnary(null,!0)),this.finishNode(u,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:n}=this.state;return n===53||n===10||n===0||Ts(n)||n===133||n===56||this.hasPlugin("v8intrinsic")&&n===54}parseYield(){let n=this.startNode();this.expressionScope.recordParameterInitializerError(dt.YieldInParameter,{at:n}),this.next();let t=!1,u=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 135:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:u=this.parseMaybeAssign()}return n.delegate=t,n.argument=u,this.finishNode(n,"YieldExpression")}checkPipelineAtInfixOperator(n,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&n.type==="SequenceExpression"&&this.raise(dt.PipelineHeadSequenceExpression,{at:t})}parseSmartPipelineBodyInStyle(n,t,u){let p=this.startNodeAt(t,u);return this.isSimpleReference(n)?(p.callee=n,this.finishNode(p,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(u),p.expression=n,this.finishNode(p,"PipelineTopicExpression"))}isSimpleReference(n){switch(n.type){case"MemberExpression":return!n.computed&&this.isSimpleReference(n.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(n){if(this.match(19))throw this.raise(dt.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(dt.PipelineTopicUnused,{at:n})}withTopicBindingContext(n){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return n()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(n){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return n()}finally{this.state.topicContext=t}}else return n()}withSoloAwaitPermittingContext(n){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return n()}finally{this.state.soloAwait=t}}allowInAnd(n){let t=this.prodParam.currentFlags();if($o&~t){this.prodParam.enter(t|$o);try{return n()}finally{this.prodParam.exit()}}return n()}disallowInAnd(n){let t=this.prodParam.currentFlags();if($o&t){this.prodParam.enter(t&~$o);try{return n()}finally{this.prodParam.exit()}}return n()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(n){let t=this.state.start,u=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let p=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let D=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,u,n);return this.state.inFSharpPipelineDirectBody=p,D}parseModuleExpression(){this.expectPlugin("moduleBlocks");let n=this.startNode();this.next(),this.eat(5);let t=this.initializeScopes(!0);this.enterInitialScopes();let u=this.startNode();try{n.body=this.parseProgram(u,8,"module")}finally{t()}return this.eat(8),this.finishNode(n,"ModuleExpression")}parsePropertyNamePrefixOperator(n){}},na={kind:"loop"},ia={kind:"switch"},Os=0,Aa=1,va=2,Zs=4,Ma=/[\uD800-\uDFFF]/u,sa=/in(?:stanceof)?/y;function ea(n,t){for(let u=0;u<n.length;u++){let p=n[u],{type:D}=p;if(typeof D=="number"){{if(D===134){let{loc:U,start:he,value:Ze,end:wt}=p,or=he+1,m=pn(U.start,1);n.splice(u,1,new So({type:Ss(27),value:"#",start:he,end:or,startLoc:U.start,endLoc:m}),new So({type:Ss(128),value:Ze,start:or,end:wt,startLoc:m,endLoc:U.end})),u++;continue}if(Ts(D)){let{loc:U,start:he,value:Ze,end:wt}=p,or=he+1,m=pn(U.start,1),b;t.charCodeAt(he)===96?b=new So({type:Ss(22),value:"`",start:he,end:or,startLoc:U.start,endLoc:m}):b=new So({type:Ss(8),value:"}",start:he,end:or,startLoc:U.start,endLoc:m});let g,A,E,y;D===24?(A=wt-1,E=pn(U.end,-1),g=Ze===null?null:Ze.slice(1,-1),y=new So({type:Ss(22),value:"`",start:A,end:wt,startLoc:E,endLoc:U.end})):(A=wt-2,E=pn(U.end,-2),g=Ze===null?null:Ze.slice(1,-2),y=new So({type:Ss(23),value:"${",start:A,end:wt,startLoc:E,endLoc:U.end})),n.splice(u,1,b,new So({type:Ss(20),value:g,start:or,end:A,startLoc:m,endLoc:E}),y),u+=2;continue}}p.type=Ss(D)}}return n}var aa=class extends Xn{parseTopLevel(n,t){return n.program=this.parseProgram(t),n.comments=this.state.comments,this.options.tokens&&(n.tokens=ea(this.tokens,this.input)),this.finishNode(n,"File")}parseProgram(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:135,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.options.sourceType;if(n.sourceType=u,n.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(n,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[p,D]of Array.from(this.scope.undefinedExports))this.raise(dt.ModuleExportUndefined,{at:D,localName:p});return this.finishNode(n,"Program")}stmtToDirective(n){let t=n;t.type="Directive",t.value=t.expression,delete t.expression;let u=t.value,p=u.value,D=this.input.slice(u.start,u.end),U=u.value=D.slice(1,-1);return this.addExtra(u,"raw",D),this.addExtra(u,"rawValue",U),this.addExtra(u,"expressionValue",p),u.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;let n=this.startNode();return n.value=this.state.value,this.next(),this.finishNode(n,"InterpreterDirective")}isLet(n){return this.isContextual(99)?this.isLetKeyword(n):!1}isLetKeyword(n){let t=this.nextTokenStart(),u=this.codePointAtPos(t);if(u===92||u===91)return!0;if(n)return!1;if(u===123)return!0;if(Fs(u)){if(sa.lastIndex=t,sa.test(this.input)){let p=this.codePointAtPos(sa.lastIndex);if(!Qs(p)&&p!==92)return!1}return!0}return!1}parseStatement(n,t){return this.match(26)&&this.parseDecorators(!0),this.parseStatementContent(n,t)}parseStatementContent(n,t){let u=this.state.type,p=this.startNode(),D;switch(this.isLet(n)&&(u=74,D="let"),u){case 60:return this.parseBreakContinueStatement(p,!0);case 63:return this.parseBreakContinueStatement(p,!1);case 64:return this.parseDebuggerStatement(p);case 90:return this.parseDoStatement(p);case 91:return this.parseForStatement(p);case 68:if(this.lookaheadCharCode()===46)break;return n&&(this.state.strict?this.raise(dt.StrictFunction,{at:this.state.startLoc}):n!=="if"&&n!=="label"&&this.raise(dt.SloppyFunction,{at:this.state.startLoc})),this.parseFunctionStatement(p,!1,!n);case 80:return n&&this.unexpected(),this.parseClass(p,!0);case 69:return this.parseIfStatement(p);case 70:return this.parseReturnStatement(p);case 71:return this.parseSwitchStatement(p);case 72:return this.parseThrowStatement(p);case 73:return this.parseTryStatement(p);case 75:case 74:return D=D||this.state.value,n&&D!=="var"&&this.raise(dt.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(p,D);case 92:return this.parseWhileStatement(p);case 76:return this.parseWithStatement(p);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(p);case 83:{let Ze=this.lookaheadCharCode();if(Ze===40||Ze===46)break}case 82:{!this.options.allowImportExportEverywhere&&!t&&this.raise(dt.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let Ze;return u===83?(Ze=this.parseImport(p),Ze.type==="ImportDeclaration"&&(!Ze.importKind||Ze.importKind==="value")&&(this.sawUnambiguousESM=!0)):(Ze=this.parseExport(p),(Ze.type==="ExportNamedDeclaration"&&(!Ze.exportKind||Ze.exportKind==="value")||Ze.type==="ExportAllDeclaration"&&(!Ze.exportKind||Ze.exportKind==="value")||Ze.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(p),Ze}default:if(this.isAsyncFunction())return n&&this.raise(dt.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(p,!0,!n)}let U=this.state.value,he=this.parseExpression();return On(u)&&he.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(p,U,he,n):this.parseExpressionStatement(p,he)}assertModuleNodeAllowed(n){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(dt.ImportOutsideModule,{at:n})}takeDecorators(n){let t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(n){let t=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(26);){let u=this.parseDecorator();t.push(u)}if(this.match(82))n||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(dt.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(dt.UnexpectedLeadingDecorator,{at:this.state.startLoc})}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);let n=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);let t=this.state.start,u=this.state.startLoc,p;if(this.match(10)){let D=this.state.start,U=this.state.startLoc;this.next(),p=this.parseExpression(),this.expect(11),p=this.wrapParenthesis(D,U,p)}else for(p=this.parseIdentifier(!1);this.eat(16);){let D=this.startNodeAt(t,u);D.object=p,D.property=this.parseIdentifier(!0),D.computed=!1,p=this.finishNode(D,"MemberExpression")}n.expression=this.parseMaybeDecoratorArguments(p),this.state.decoratorStack.pop()}else n.expression=this.parseExprSubscripts();return this.finishNode(n,"Decorator")}parseMaybeDecoratorArguments(n){if(this.eat(10)){let t=this.startNodeAtNode(n);return t.callee=n,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return n}parseBreakContinueStatement(n,t){return this.next(),this.isLineTerminator()?n.label=null:(n.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(n,t),this.finishNode(n,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(n,t){let u;for(u=0;u<this.state.labels.length;++u){let p=this.state.labels[u];if((n.label==null||p.name===n.label.name)&&(p.kind!=null&&(t||p.kind==="loop")||n.label&&t))break}if(u===this.state.labels.length){let p=t?"BreakStatement":"ContinueStatement";this.raise(dt.IllegalBreakContinue,{at:n,type:p})}}parseDebuggerStatement(n){return this.next(),this.semicolon(),this.finishNode(n,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let n=this.parseExpression();return this.expect(11),n}parseDoStatement(n){return this.next(),this.state.labels.push(na),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("do")),this.state.labels.pop(),this.expect(92),n.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(n,"DoWhileStatement")}parseForStatement(n){this.next(),this.state.labels.push(na);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(Eo),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(n,null);let u=this.isContextual(99),p=u&&this.isLetKeyword();if(this.match(74)||this.match(75)||p){let wt=this.startNode(),or=p?"let":this.state.value;return this.next(),this.parseVar(wt,!0,or),this.finishNode(wt,"VariableDeclaration"),(this.match(58)||this.isContextual(101))&&wt.declarations.length===1?this.parseForIn(n,wt,t):(t!==null&&this.unexpected(t),this.parseFor(n,wt))}let D=this.isContextual(95),U=new cu,he=this.parseExpression(!0,U),Ze=this.isContextual(101);if(Ze&&(u&&this.raise(dt.ForOfLet,{at:he}),t===null&&D&&he.type==="Identifier"&&this.raise(dt.ForOfAsync,{at:he})),Ze||this.match(58)){this.checkDestructuringPrivate(U),this.toAssignable(he,!0);let wt=Ze?"ForOfStatement":"ForInStatement";return this.checkLVal(he,{in:{type:wt}}),this.parseForIn(n,he,t)}else this.checkExpressionErrors(U,!0);return t!==null&&this.unexpected(t),this.parseFor(n,he)}parseFunctionStatement(n,t,u){return this.next(),this.parseFunction(n,Aa|(u?0:va),t)}parseIfStatement(n){return this.next(),n.test=this.parseHeaderExpression(),n.consequent=this.parseStatement("if"),n.alternate=this.eat(66)?this.parseStatement("if"):null,this.finishNode(n,"IfStatement")}parseReturnStatement(n){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(dt.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?n.argument=null:(n.argument=this.parseExpression(),this.semicolon()),this.finishNode(n,"ReturnStatement")}parseSwitchStatement(n){this.next(),n.discriminant=this.parseHeaderExpression();let t=n.cases=[];this.expect(5),this.state.labels.push(ia),this.scope.enter(Eo);let u;for(let p;!this.match(8);)if(this.match(61)||this.match(65)){let D=this.match(61);u&&this.finishNode(u,"SwitchCase"),t.push(u=this.startNode()),u.consequent=[],this.next(),D?u.test=this.parseExpression():(p&&this.raise(dt.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),p=!0,u.test=null),this.expect(14)}else u?u.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),u&&this.finishNode(u,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(n,"SwitchStatement")}parseThrowStatement(n){return this.next(),this.hasPrecedingLineBreak()&&this.raise(dt.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),n.argument=this.parseExpression(),this.semicolon(),this.finishNode(n,"ThrowStatement")}parseCatchClauseParam(){let n=this.parseBindingAtom(),t=n.type==="Identifier";return this.scope.enter(t?Uu:0),this.checkLVal(n,{in:{type:"CatchClause"},binding:so,allowingSloppyLetBinding:!0}),n}parseTryStatement(n){if(this.next(),n.block=this.parseBlock(),n.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(Eo)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),n.handler=this.finishNode(t,"CatchClause")}return n.finalizer=this.eat(67)?this.parseBlock():null,!n.handler&&!n.finalizer&&this.raise(dt.NoCatchOrFinally,{at:n}),this.finishNode(n,"TryStatement")}parseVarStatement(n,t){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.next(),this.parseVar(n,!1,t,u),this.semicolon(),this.finishNode(n,"VariableDeclaration")}parseWhileStatement(n){return this.next(),n.test=this.parseHeaderExpression(),this.state.labels.push(na),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("while")),this.state.labels.pop(),this.finishNode(n,"WhileStatement")}parseWithStatement(n){return this.state.strict&&this.raise(dt.StrictWith,{at:this.state.startLoc}),this.next(),n.object=this.parseHeaderExpression(),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("with")),this.finishNode(n,"WithStatement")}parseEmptyStatement(n){return this.next(),this.finishNode(n,"EmptyStatement")}parseLabeledStatement(n,t,u,p){for(let U of this.state.labels)U.name===t&&this.raise(dt.LabelRedeclaration,{at:u,labelName:t});let D=Ke(this.state.type)?"loop":this.match(71)?"switch":null;for(let U=this.state.labels.length-1;U>=0;U--){let he=this.state.labels[U];if(he.statementStart===n.start)he.statementStart=this.state.start,he.kind=D;else break}return this.state.labels.push({name:t,kind:D,statementStart:this.state.start}),n.body=this.parseStatement(p?p.indexOf("label")===-1?p+"label":p:"label"),this.state.labels.pop(),n.label=u,this.finishNode(n,"LabeledStatement")}parseExpressionStatement(n,t){return n.expression=t,this.semicolon(),this.finishNode(n,"ExpressionStatement")}parseBlock(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2?arguments[2]:void 0,p=this.startNode();return n&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(Eo),this.parseBlockBody(p,n,!1,8,u),t&&this.scope.exit(),this.finishNode(p,"BlockStatement")}isValidDirective(n){return n.type==="ExpressionStatement"&&n.expression.type==="StringLiteral"&&!n.expression.extra.parenthesized}parseBlockBody(n,t,u,p,D){let U=n.body=[],he=n.directives=[];this.parseBlockOrModuleBlockBody(U,t?he:void 0,u,p,D)}parseBlockOrModuleBlockBody(n,t,u,p,D){let U=this.state.strict,he=!1,Ze=!1;for(;!this.match(p);){let wt=this.parseStatement(null,u);if(t&&!Ze){if(this.isValidDirective(wt)){let or=this.stmtToDirective(wt);t.push(or),!he&&or.value.value==="use strict"&&(he=!0,this.setStrict(!0));continue}Ze=!0,this.state.strictErrors.clear()}n.push(wt)}D&&D.call(this,he),U||this.setStrict(!1),this.next()}parseFor(n,t){return n.init=t,this.semicolon(!1),n.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),n.update=this.match(11)?null:this.parseExpression(),this.expect(11),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(n,"ForStatement")}parseForIn(n,t,u){let p=this.match(58);return this.next(),p?u!==null&&this.unexpected(u):n.await=u!==null,t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!p||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(dt.ForInOfLoopInitializer,{at:t,type:p?"ForInStatement":"ForOfStatement"}),t.type==="AssignmentPattern"&&this.raise(dt.InvalidLhs,{at:t,ancestor:{type:"ForStatement"}}),n.left=t,n.right=p?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(n,p?"ForInStatement":"ForOfStatement")}parseVar(n,t,u){let p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,D=n.declarations=[];for(n.kind=u;;){let U=this.startNode();if(this.parseVarId(U,u),U.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,U.init===null&&!p&&(U.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(101)))?this.raise(dt.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):u==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(dt.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),D.push(this.finishNode(U,"VariableDeclarator")),!this.eat(12))break}return n}parseVarId(n,t){n.id=this.parseBindingAtom(),this.checkLVal(n.id,{in:{type:"VariableDeclarator"},binding:t==="var"?ao:so})}parseFunction(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Os,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=t&Aa,D=t&va,U=!!p&&!(t&Zs);this.initFunction(n,u),this.match(55)&&D&&this.raise(dt.GeneratorInSingleStatementContext,{at:this.state.startLoc}),n.generator=this.eat(55),p&&(n.id=this.parseFunctionId(U));let he=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(no),this.prodParam.enter(Po(u,n.generator)),p||(n.id=this.parseFunctionId()),this.parseFunctionParams(n,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(n,p?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),p&&!D&&this.registerFunctionStatementId(n),this.state.maybeInArrowParameters=he,n}parseFunctionId(n){return n||On(this.state.type)?this.parseIdentifier():null}parseFunctionParams(n,t){this.expect(10),this.expressionScope.enter(Fl()),n.params=this.parseBindingList(11,41,!1,t),this.expressionScope.exit()}registerFunctionStatementId(n){!n.id||this.scope.declareName(n.id.name,this.state.strict||n.generator||n.async?this.scope.treatFunctionsAsVar?ao:so:Tu,n.id.loc.start)}parseClass(n,t,u){this.next(),this.takeDecorators(n);let p=this.state.strict;return this.state.strict=!0,this.parseClassId(n,t,u),this.parseClassSuper(n),n.body=this.parseClassBody(!!n.superClass,p),this.finishNode(n,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(n){return!n.computed&&!n.static&&(n.key.name==="constructor"||n.key.value==="constructor")}parseClassBody(n,t){this.classScope.enter();let u={hadConstructor:!1,hadSuperClass:n},p=[],D=this.startNode();if(D.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(p.length>0)throw this.raise(dt.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){p.push(this.parseDecorator());continue}let U=this.startNode();p.length&&(U.decorators=p,this.resetStartLocationFromNode(U,p[0]),p=[]),this.parseClassMember(D,U,u),U.kind==="constructor"&&U.decorators&&U.decorators.length>0&&this.raise(dt.DecoratorConstructor,{at:U})}}),this.state.strict=t,this.next(),p.length)throw this.raise(dt.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(D,"ClassBody")}parseClassMemberFromModifier(n,t){let u=this.parseIdentifier(!0);if(this.isClassMethod()){let p=t;return p.kind="method",p.computed=!1,p.key=u,p.static=!1,this.pushClassMethod(n,p,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let p=t;return p.computed=!1,p.key=u,p.static=!1,n.body.push(this.parseClassProperty(p)),!0}return this.resetPreviousNodeTrailingComments(u),!1}parseClassMember(n,t,u){let p=this.isContextual(104);if(p){if(this.parseClassMemberFromModifier(n,t))return;if(this.eat(5)){this.parseClassStaticBlock(n,t);return}}this.parseClassMemberWithIsStatic(n,t,u,p)}parseClassMemberWithIsStatic(n,t,u,p){let D=t,U=t,he=t,Ze=t,wt=t,or=D,m=D;if(t.static=p,this.parsePropertyNamePrefixOperator(t),this.eat(55)){or.kind="method";let y=this.match(134);if(this.parseClassElementName(or),y){this.pushClassPrivateMethod(n,U,!0,!1);return}this.isNonstaticConstructor(D)&&this.raise(dt.ConstructorIsGenerator,{at:D.key}),this.pushClassMethod(n,D,!0,!1,!1,!1);return}let b=On(this.state.type)&&!this.state.containsEsc,g=this.match(134),A=this.parseClassElementName(t),E=this.state.startLoc;if(this.parsePostMemberNameModifiers(m),this.isClassMethod()){if(or.kind="method",g){this.pushClassPrivateMethod(n,U,!1,!1);return}let y=this.isNonstaticConstructor(D),x=!1;y&&(D.kind="constructor",u.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(dt.DuplicateConstructor,{at:A}),y&&this.hasPlugin("typescript")&&t.override&&this.raise(dt.OverrideOnConstructor,{at:A}),u.hadConstructor=!0,x=u.hadSuperClass),this.pushClassMethod(n,D,!1,!1,y,x)}else if(this.isClassProperty())g?this.pushClassPrivateProperty(n,Ze):this.pushClassProperty(n,he);else if(b&&A.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(A);let y=this.eat(55);m.optional&&this.unexpected(E),or.kind="method";let x=this.match(134);this.parseClassElementName(or),this.parsePostMemberNameModifiers(m),x?this.pushClassPrivateMethod(n,U,y,!0):(this.isNonstaticConstructor(D)&&this.raise(dt.ConstructorIsAsync,{at:D.key}),this.pushClassMethod(n,D,y,!0,!1,!1))}else if(b&&(A.name==="get"||A.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(A),or.kind=A.name;let y=this.match(134);this.parseClassElementName(D),y?this.pushClassPrivateMethod(n,U,!1,!1):(this.isNonstaticConstructor(D)&&this.raise(dt.ConstructorIsAccessor,{at:D.key}),this.pushClassMethod(n,D,!1,!1,!1,!1)),this.checkGetterSetterParams(D)}else if(b&&A.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(A);let y=this.match(134);this.parseClassElementName(he),this.pushClassAccessorProperty(n,wt,y)}else this.isLineTerminator()?g?this.pushClassPrivateProperty(n,Ze):this.pushClassProperty(n,he):this.unexpected()}parseClassElementName(n){let{type:t,value:u}=this.state;if((t===128||t===129)&&n.static&&u==="prototype"&&this.raise(dt.StaticPrototype,{at:this.state.startLoc}),t===134){u==="constructor"&&this.raise(dt.ConstructorClassPrivateField,{at:this.state.startLoc});let p=this.parsePrivateName();return n.key=p,p}return this.parsePropertyName(n)}parseClassStaticBlock(n,t){var u;this.scope.enter(bo|iu|jo);let p=this.state.labels;this.state.labels=[],this.prodParam.enter(lu);let D=t.body=[];this.parseBlockOrModuleBlockBody(D,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=p,n.body.push(this.finishNode(t,"StaticBlock")),(u=t.decorators)!=null&&u.length&&this.raise(dt.DecoratorStaticBlock,{at:t})}pushClassProperty(n,t){!t.computed&&(t.key.name==="constructor"||t.key.value==="constructor")&&this.raise(dt.ConstructorClassField,{at:t.key}),n.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(n,t){let u=this.parseClassPrivateProperty(t);n.body.push(u),this.classScope.declarePrivateName(this.getPrivateNameSV(u.key),Fu,u.key.loc.start)}pushClassAccessorProperty(n,t,u){if(!u&&!t.computed){let D=t.key;(D.name==="constructor"||D.value==="constructor")&&this.raise(dt.ConstructorClassField,{at:D})}let p=this.parseClassAccessorProperty(t);n.body.push(p),u&&this.classScope.declarePrivateName(this.getPrivateNameSV(p.key),Fu,p.key.loc.start)}pushClassMethod(n,t,u,p,D,U){n.body.push(this.parseMethod(t,u,p,D,U,"ClassMethod",!0))}pushClassPrivateMethod(n,t,u,p){let D=this.parseMethod(t,u,p,!1,!1,"ClassPrivateMethod",!0);n.body.push(D);let U=D.kind==="get"?D.static?qu:zl:D.kind==="set"?D.static?bl:nc:Fu;this.declareClassPrivateMethodInScope(D,U)}declareClassPrivateMethodInScope(n,t){this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),t,n.key.loc.start)}parsePostMemberNameModifiers(n){}parseClassPrivateProperty(n){return this.parseInitializer(n),this.semicolon(),this.finishNode(n,"ClassPrivateProperty")}parseClassProperty(n){return this.parseInitializer(n),this.semicolon(),this.finishNode(n,"ClassProperty")}parseClassAccessorProperty(n){return this.parseInitializer(n),this.semicolon(),this.finishNode(n,"ClassAccessorProperty")}parseInitializer(n){this.scope.enter(bo|jo),this.expressionScope.enter(Za()),this.prodParam.enter(lu),n.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(n,t,u){let p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:wo;if(On(this.state.type))n.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(n.id,p);else if(u||!t)n.id=null;else throw this.raise(dt.MissingClassName,{at:this.state.startLoc})}parseClassSuper(n){n.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(n){let t=this.maybeParseExportDefaultSpecifier(n),u=!t||this.eat(12),p=u&&this.eatExportStar(n),D=p&&this.maybeParseExportNamespaceSpecifier(n),U=u&&(!D||this.eat(12)),he=t||p;if(p&&!D)return t&&this.unexpected(),this.parseExportFrom(n,!0),this.finishNode(n,"ExportAllDeclaration");let Ze=this.maybeParseExportNamedSpecifiers(n);if(t&&u&&!p&&!Ze||D&&U&&!Ze)throw this.unexpected(null,5);let wt;if(he||Ze?(wt=!1,this.parseExportFrom(n,he)):wt=this.maybeParseExportDeclaration(n),he||Ze||wt)return this.checkExport(n,!0,!1,!!n.source),this.finishNode(n,"ExportNamedDeclaration");if(this.eat(65))return n.declaration=this.parseExportDefaultExpression(),this.checkExport(n,!0,!0),this.finishNode(n,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(n){return this.eat(55)}maybeParseExportDefaultSpecifier(n){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let t=this.startNode();return t.exported=this.parseIdentifier(!0),n.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(n){if(this.isContextual(93)){n.specifiers||(n.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),n.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(n){if(this.match(5)){n.specifiers||(n.specifiers=[]);let t=n.exportKind==="type";return n.specifiers.push(...this.parseExportSpecifiers(t)),n.source=null,n.declaration=null,this.hasPlugin("importAssertions")&&(n.assertions=[]),!0}return!1}maybeParseExportDeclaration(n){return this.shouldParseExportDeclaration()?(n.specifiers=[],n.source=null,this.hasPlugin("importAssertions")&&(n.assertions=[]),n.declaration=this.parseExportDeclaration(n),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let n=this.nextTokenStart();return!Wu.test(this.input.slice(this.state.pos,n))&&this.isUnparsedContextual(n,"function")}parseExportDefaultExpression(){let n=this.startNode(),t=this.isAsyncFunction();if(this.match(68)||t)return this.next(),t&&this.next(),this.parseFunction(n,Aa|Zs,t);if(this.match(80))return this.parseClass(n,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(dt.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseDecorators(!1),this.parseClass(n,!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(dt.UnsupportedDefaultExport,{at:this.state.startLoc});let u=this.parseMaybeAssignAllowIn();return this.semicolon(),u}parseExportDeclaration(n){return this.parseStatement(null)}isExportDefaultSpecifier(){let{type:n}=this.state;if(On(n)){if(n===95&&!this.state.containsEsc||n===99)return!1;if((n===126||n===125)&&!this.state.containsEsc){let{type:p}=this.lookahead();if(On(p)&&p!==97||p===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),u=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||On(this.state.type)&&u)return!0;if(this.match(65)&&u){let p=this.input.charCodeAt(this.nextTokenStartSince(t+4));return p===34||p===39}return!1}parseExportFrom(n,t){if(this.eatContextual(97)){n.source=this.parseImportSource(),this.checkExport(n);let u=this.maybeParseImportAssertions();u&&(n.assertions=u)}else t&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:n}=this.state;if(n===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(this.getPluginOption("decorators","decoratorsBeforeExport"))throw this.raise(dt.DecoratorBeforeExport,{at:this.state.startLoc});return!0}return n===74||n===75||n===68||n===80||this.isLet()||this.isAsyncFunction()}checkExport(n,t,u,p){if(t){if(u){if(this.checkDuplicateExports(n,"default"),this.hasPlugin("exportDefaultFrom")){var D;let U=n.declaration;U.type==="Identifier"&&U.name==="from"&&U.end-U.start===4&&!((D=U.extra)!=null&&D.parenthesized)&&this.raise(dt.ExportDefaultFromAsIdentifier,{at:U})}}else if(n.specifiers&&n.specifiers.length)for(let U of n.specifiers){let{exported:he}=U,Ze=he.type==="Identifier"?he.name:he.value;if(this.checkDuplicateExports(U,Ze),!p&&U.local){let{local:wt}=U;wt.type!=="Identifier"?this.raise(dt.ExportBindingIsString,{at:U,localName:wt.value,exportName:Ze}):(this.checkReservedWord(wt.name,wt.loc.start,!0,!1),this.scope.checkLocalExport(wt))}}else if(n.declaration){if(n.declaration.type==="FunctionDeclaration"||n.declaration.type==="ClassDeclaration"){let U=n.declaration.id;if(!U)throw new Error("Assertion failure");this.checkDuplicateExports(n,U.name)}else if(n.declaration.type==="VariableDeclaration")for(let U of n.declaration.declarations)this.checkDeclaration(U.id)}}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(dt.UnsupportedDecoratorExport,{at:n})}checkDeclaration(n){if(n.type==="Identifier")this.checkDuplicateExports(n,n.name);else if(n.type==="ObjectPattern")for(let t of n.properties)this.checkDeclaration(t);else if(n.type==="ArrayPattern")for(let t of n.elements)t&&this.checkDeclaration(t);else n.type==="ObjectProperty"?this.checkDeclaration(n.value):n.type==="RestElement"?this.checkDeclaration(n.argument):n.type==="AssignmentPattern"&&this.checkDeclaration(n.left)}checkDuplicateExports(n,t){this.exportedIdentifiers.has(t)&&(t==="default"?this.raise(dt.DuplicateDefaultExport,{at:n}):this.raise(dt.DuplicateExport,{at:n,exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(n){let t=[],u=!0;for(this.expect(5);!this.eat(8);){if(u)u=!1;else if(this.expect(12),this.eat(8))break;let p=this.isContextual(126),D=this.match(129),U=this.startNode();U.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(U,D,n,p))}return t}parseExportSpecifier(n,t,u,p){return this.eatContextual(93)?n.exported=this.parseModuleExportName():t?n.exported=oe(n.local):n.exported||(n.exported=K(n.local)),this.finishNode(n,"ExportSpecifier")}parseModuleExportName(){if(this.match(129)){let n=this.parseStringLiteral(this.state.value),t=n.value.match(Ma);return t&&this.raise(dt.ModuleExportNameHasLoneSurrogate,{at:n,surrogateCharCode:t[0].charCodeAt(0)}),n}return this.parseIdentifier(!0)}parseImport(n){if(n.specifiers=[],!this.match(129)){let u=!this.maybeParseDefaultImportSpecifier(n)||this.eat(12),p=u&&this.maybeParseStarImportSpecifier(n);u&&!p&&this.parseNamedImportSpecifiers(n),this.expectContextual(97)}n.source=this.parseImportSource();let t=this.maybeParseImportAssertions();if(t)n.assertions=t;else{let u=this.maybeParseModuleAttributes();u&&(n.attributes=u)}return this.semicolon(),this.finishNode(n,"ImportDeclaration")}parseImportSource(){return this.match(129)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(n){return On(this.state.type)}parseImportSpecifierLocal(n,t,u){t.local=this.parseIdentifier(),n.specifiers.push(this.finishImportSpecifier(t,u))}finishImportSpecifier(n,t){return this.checkLVal(n.local,{in:n,binding:so}),this.finishNode(n,t)}parseAssertEntries(){let n=[],t=new Set;do{if(this.match(8))break;let u=this.startNode(),p=this.state.value;if(t.has(p)&&this.raise(dt.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:p}),t.add(p),this.match(129)?u.key=this.parseStringLiteral(p):u.key=this.parseIdentifier(!0),this.expect(14),!this.match(129))throw this.raise(dt.ModuleAttributeInvalidValue,{at:this.state.startLoc});u.value=this.parseStringLiteral(this.state.value),this.finishNode(u,"ImportAttribute"),n.push(u)}while(this.eat(12));return n}maybeParseModuleAttributes(){if(this.match(76)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;let n=[],t=new Set;do{let u=this.startNode();if(u.key=this.parseIdentifier(!0),u.key.name!=="type"&&this.raise(dt.ModuleAttributeDifferentFromType,{at:u.key}),t.has(u.key.name)&&this.raise(dt.ModuleAttributesWithDuplicateKeys,{at:u.key,key:u.key.name}),t.add(u.key.name),this.expect(14),!this.match(129))throw this.raise(dt.ModuleAttributeInvalidValue,{at:this.state.startLoc});u.value=this.parseStringLiteral(this.state.value),this.finishNode(u,"ImportAttribute"),n.push(u)}while(this.eat(12));return n}maybeParseImportAssertions(){if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(5);let n=this.parseAssertEntries();return this.eat(8),n}maybeParseDefaultImportSpecifier(n){return this.shouldParseDefaultImport(n)?(this.parseImportSpecifierLocal(n,this.startNode(),"ImportDefaultSpecifier"),!0):!1}maybeParseStarImportSpecifier(n){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(n,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(n){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(dt.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let u=this.startNode(),p=this.match(129),D=this.isContextual(126);u.imported=this.parseModuleExportName();let U=this.parseImportSpecifier(u,p,n.importKind==="type"||n.importKind==="typeof",D);n.specifiers.push(U)}}parseImportSpecifier(n,t,u,p){if(this.eatContextual(93))n.local=this.parseIdentifier();else{let{imported:D}=n;if(t)throw this.raise(dt.ImportBindingIsString,{at:n,importName:D.value});this.checkReservedWord(D.name,n.loc.start,!0,!0),n.local||(n.local=K(D))}return this.finishImportSpecifier(n,"ImportSpecifier")}isThisParam(n){return n.type==="Identifier"&&n.name==="this"}},kl=class extends aa{constructor(n,t){n=Ir(n),super(n,t),this.options=n,this.initializeScopes(),this.plugins=Ku(this.options.plugins),this.filename=n.sourceFilename}getScopeHandler(){return Pu}parse(){this.enterInitialScopes();let n=this.startNode(),t=this.startNode();return this.nextToken(),n.errors=null,this.parseTopLevel(n,t),n.errors=this.state.errors,n}};function Ku(n){let t=new Map;for(let u of n){let[p,D]=Array.isArray(u)?u:[u,{}];t.has(p)||t.set(p,D||{})}return t}function Bc(n,t){var u;if(((u=t)==null?void 0:u.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let p=pu(t,n),D=p.parse();if(p.sawUnambiguousESM)return D;if(p.ambiguousScriptDifferentAst)try{return t.sourceType="script",pu(t,n).parse()}catch{}else D.program.sourceType="script";return D}catch(p){try{return t.sourceType="script",pu(t,n).parse()}catch{}throw p}}else return pu(t,n).parse()}function Nu(n,t){let u=pu(t,n);return u.options.strictMode&&(u.state.strict=!0),u.getExpression()}function Pl(n){let t={};for(let u of Object.keys(n))t[u]=Ss(n[u]);return t}var Gl=Pl(_n);function pu(n,t){let u=kl;return n!=null&&n.plugins&&(ki(n.plugins),u=_c(n.plugins)),new u(n,t)}var Wo={};function _c(n){let t=Ht.filter(D=>es(n,D)),u=t.join("/"),p=Wo[u];if(!p){p=kl;for(let D of t)p=Pi[D](p);Wo[u]=p}return p}Wn.parse=Bc,Wn.parseExpression=Nu,Wn.tokTypes=Gl}}),il=Ee({"src/language-js/parse/json.js"(Wn,Cn){Dt();var vn=mu(),nn=mo(),pn=fo(),ri=Ko();function ii(){let Yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{allowComments:Mi=!0}=Yn;return function(as){let{parseExpression:ji}=Xa(),ws;try{ws=ji(as,{tokens:!0,ranges:!0})}catch(da){throw ri(da)}if(!Mi&&vn(ws.comments))throw ei(ws.comments[0],"Comment");return Ci(ws),ws}}function ei(Yn,Mi){let[as,ji]=[Yn.loc.start,Yn.loc.end].map(ws=>{let{line:da,column:Gi}=ws;return{line:da,column:Gi+1}});return nn("".concat(Mi," is not allowed in JSON."),{start:as,end:ji})}function Ci(Yn){switch(Yn.type){case"ArrayExpression":for(let Mi of Yn.elements)Mi!==null&&Ci(Mi);return;case"ObjectExpression":for(let Mi of Yn.properties)Ci(Mi);return;case"ObjectProperty":if(Yn.computed)throw ei(Yn.key,"Computed key");if(Yn.shorthand)throw ei(Yn.key,"Shorthand property");Yn.key.type!=="Identifier"&&Ci(Yn.key),Ci(Yn.value);return;case"UnaryExpression":{let{operator:Mi,argument:as}=Yn;if(Mi!=="+"&&Mi!=="-")throw ei(Yn,"Operator '".concat(Yn.operator,"'"));if(as.type==="NumericLiteral"||as.type==="Identifier"&&(as.name==="Infinity"||as.name==="NaN"))return;throw ei(as,"Operator '".concat(Mi,"' before '").concat(as.type,"'"))}case"Identifier":if(Yn.name!=="Infinity"&&Yn.name!=="NaN"&&Yn.name!=="undefined")throw ei(Yn,"Identifier '".concat(Yn.name,"'"));return;case"TemplateLiteral":if(vn(Yn.expressions))throw ei(Yn.expressions[0],"'TemplateLiteral' with expression");for(let Mi of Yn.quasis)Ci(Mi);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw ei(Yn,"'".concat(Yn.type,"'"))}}var qi=ii(),Qi={json:pn({parse:qi,hasPragma(){return!0}}),json5:pn(qi),"json-stringify":pn({parse:ii({allowComments:!1}),astFormat:"estree-json"})};Cn.exports=Qi}});Dt();var Mu=Vt(),xu=nr(),Lo=Pr(),Ba=fo(),sl=Ko(),ju=Lu(),al=il(),Ru={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},ol=["recordAndTuple",{syntaxType:"hash"}],Cu="v8intrinsic",_a=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],Ws=function(Wn){let Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ru;return Object.assign(Object.assign({},Cn),{},{plugins:[...Cn.plugins,...Wn]})},fa=/@(?:no)?flow\b/;function Ta(Wn,Cn){if(Cn.filepath&&Cn.filepath.endsWith(".js.flow"))return!0;let vn=xu(Wn);vn&&(Wn=Wn.slice(vn.length));let nn=Lo(Wn,0);return nn!==!1&&(Wn=Wn.slice(0,nn)),fa.test(Wn)}function Ja(Wn,Cn,vn){let nn=Xa()[Wn](Cn,vn),pn=nn.errors.find(ri=>!bu.has(ri.reasonCode));if(pn)throw pn;return nn}function Ia(Wn){for(var Cn=arguments.length,vn=new Array(Cn>1?Cn-1:0),nn=1;nn<Cn;nn++)vn[nn-1]=arguments[nn];return function(pn,ri){let ii=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if((ii.parser==="babel"||ii.parser==="__babel_estree")&&Ta(pn,ii))return ii.parser="babel-flow",Mo(pn,ri,ii);let ei=vn;ii.__babelSourceType==="script"&&(ei=ei.map(Yn=>Object.assign(Object.assign({},Yn),{},{sourceType:"script"}))),/#[[{]/.test(pn)&&(ei=ei.map(Yn=>Ws([ol],Yn)));let Ci=/%[A-Z]/.test(pn);pn.includes("|>")?ei=(Ci?[..._a,Cu]:_a).flatMap(Yn=>ei.map(Mi=>Ws([Yn],Mi))):Ci&&(ei=ei.map(Yn=>Ws([Cu],Yn)));let{result:qi,error:Qi}=Mu(...ei.map(Yn=>()=>Ja(Wn,pn,Yn)));if(!qi)throw sl(Qi);return ii.originalText=pn,ju(qi,ii)}}var Yo=Ia("parse",Ws(["jsx","flow"])),Mo=Ia("parse",Ws(["jsx",["flow",{all:!0,enums:!0}]])),Ki=Ia("parse",Ws(["jsx","typescript"]),Ws(["typescript"])),Eu=Ia("parse",Ws(["jsx","flow","estree"])),Sa=Ia("parseExpression",Ws(["jsx"])),Zo=Ia("parseExpression",Ws(["typescript"])),bu=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Co=Ba(Yo),eu=Ba(Ki),Ra=Ba(Sa),go=Ba(Zo);Nt.exports={parsers:Object.assign(Object.assign({babel:Co,"babel-flow":Ba(Mo),"babel-ts":eu},al),{},{__js_expression:Ra,__vue_expression:Ra,__vue_ts_expression:go,__vue_event_binding:Co,__vue_ts_event_binding:eu,__babel_estree:Ba(Eu)})}});return Qn()})})(Tm);const JD=Hp(Tm.exports);function KD(i,c,l){const f={css:GD,html:XD,babel:JD};return Ks(()=>{if(!Cs(c))return Cs(i)||"/* empty */";try{return VD.format(Cs(i)||"",{parser:l,plugins:[f[l]],singleQuote:!0,semi:!1})}catch(v){return console.error(v),`/* Error on prettifying: ${v.message} */
|
|
276
276
|
${Cs(i)||""}`}})}function QD(i,c=!0){return KD(i,c,"css")}const YD={"h-full":""},ZD={p:"x4 y2",grid:"~ cols-4 gap-4"},ev=Vi("div",{op80:""}," Presets ",-1),tv={op50:"","ws-pre":""},rv={overflow:"auto"},nv=Vi("div",{op80:""}," Rules ",-1),iv=Vi("span",{op50:""},"dynamic",-1),sv=Vi("br",null,null,-1),av=Vi("span",{op50:""},"static",-1),ov=Vi("div",{op80:""}," Variants ",-1),uv=Vi("div",{op80:""}," Shortcuts ",-1),lv={key:0},cv=Vi("div",{op80:""}," Config File ",-1),pv=Vi("div",{op80:""}," Version ",-1),hv={op50:"","ws-pre":""},fv={b:"t main",p:"x4 y2",grid:"~ cols-4 gap-4"},dv=Vi("div",{op80:""}," Included Files ",-1),mv=Vi("div",{op80:""}," CSS Size ",-1),gv=Vi("span",{op50:""},"gzipped",-1),yv=Vi("div",{op80:""}," Matched Rules ",-1),Dv=Vi("div",{op80:""}," Layers ",-1),vv={op50:"","ws-pre":""},xv=Qu(" Prettify "),Cv=nl({__name:"Overview",setup(i){const c=Pa(null),l=WD(c,"overview-scrolls");zh.execute();const f=Pa(!1),v=QD(Ks(()=>{var B;return(B=up.value)==null?void 0:B.css}),f);return(B,Y)=>{const pe=$D,de=jD,Le=ID,Me=PD;return xa(),ho("div",YD,[ta(Le,{ref_key:"status",ref:c,p0:""},{default:Il(()=>{var rt,yt,Tt,Gt,sr,Mr,At,Mt,Wt,Ar,an,Vn,An,gi,ai,$n,Mn,yi;return[Vi("div",ZD,[Vi("div",null,[ev,Vi("div",tv,Bo((Tt=(yt=(rt=Cs(eo))==null?void 0:rt.config)==null?void 0:yt.presets)==null?void 0:Tt.map(Cr=>Cr.name).join(`
|
|
277
|
-
`)),1)]),Vi("div",rv,[nv,Qu(" "+Bo((Mr=(sr=(Gt=Cs(eo))==null?void 0:Gt.config)==null?void 0:sr.rulesDynamic)==null?void 0:Mr.
|
|
278
|
-
`)),1)])]),ta(de,{border:"t gray-400/20",title:"Output CSS"},{default:Il(()=>[Vi("label",null,[l0(Vi("input",{"onUpdate:modelValue":Y[0]||(Y[0]=Cr=>f.value=Cr),type:"checkbox"},null,512),[[oy,f.value]]),xv])]),_:1})]}),_:1},512),ta(Me,{"model-value":Cs(v),"read-only":!0,mode:"css",class:"scrolls overview-scrolls",style:tp(Cs(l))},null,8,["model-value","style"])])}}}),Ev={};function bv(i,c){const l=Cv;return xa(),Ec(l)}const Av=Dm(Ev,[["render",bv]]),wv=()=>xh(()=>import("./repl.
|
|
277
|
+
`)),1)]),Vi("div",rv,[nv,Qu(" "+Bo((Mr=(sr=(Gt=Cs(eo))==null?void 0:Gt.config)==null?void 0:sr.rulesDynamic)==null?void 0:Mr.length)+" ",1),iv,sv,Qu(" "+Bo(Object.keys(((Mt=(At=Cs(eo))==null?void 0:At.config)==null?void 0:Mt.rulesStaticMap)||{}).length)+" ",1),av]),Vi("div",null,[ov,Qu(" "+Bo((an=(Ar=(Wt=Cs(eo))==null?void 0:Wt.config)==null?void 0:Ar.variants)==null?void 0:an.length),1)]),Vi("div",null,[uv,Qu(" "+Bo((Vn=Cs(eo))==null?void 0:Vn.config.shortcuts.length),1)]),(An=Cs(eo))!=null&&An.configPath?(xa(),ho("div",lv,[cv,ta(pe,{id:Cs(eo).configPath},null,8,["id"])])):bp("",!0),Vi("div",null,[pv,Vi("div",hv,Bo((gi=Cs(eo))==null?void 0:gi.version),1)])]),Vi("div",fv,[Vi("div",null,[dv,Qu(" "+Bo((ai=Cs(eo))==null?void 0:ai.modules.length),1)]),Vi("div",null,[mv,Qu(" "+Bo((((($n=Cs(up))==null?void 0:$n.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),gv]),Vi("div",null,[yv,Qu(" "+Bo((Mn=Cs(up))==null?void 0:Mn.matched.length),1)]),Vi("div",null,[Dv,Vi("div",vv,Bo((yi=Cs(up))==null?void 0:yi.layers.join(`
|
|
278
|
+
`)),1)])]),ta(de,{border:"t gray-400/20",title:"Output CSS"},{default:Il(()=>[Vi("label",null,[l0(Vi("input",{"onUpdate:modelValue":Y[0]||(Y[0]=Cr=>f.value=Cr),type:"checkbox"},null,512),[[oy,f.value]]),xv])]),_:1})]}),_:1},512),ta(Me,{"model-value":Cs(v),"read-only":!0,mode:"css",class:"scrolls overview-scrolls",style:tp(Cs(l))},null,8,["model-value","style"])])}}}),Ev={};function bv(i,c){const l=Cv;return xa(),Ec(l)}const Av=Dm(Ev,[["render",bv]]),wv=()=>xh(()=>import("./repl.3ddc2a67.js"),[]),Tv=()=>xh(()=>import("./_id_.1a10f545.js"),[]),Sv=[{name:"index",path:"/",component:Av,props:!0},{name:"repl",path:"/repl",component:wv,props:!0},{name:"module-id",path:"/module/:id",component:Tv,props:!0}];/*!
|
|
279
279
|
* vue-router v4.1.3
|
|
280
280
|
* (c) 2022 Eduardo San Martin Morote
|
|
281
281
|
* @license MIT
|
|
282
|
-
*/const yc=typeof window<"u";function Fv(i){return i.__esModule||i[Symbol.toStringTag]==="Module"}const oa=Object.assign;function Yp(i,c){const l={};for(const f in c){const v=c[f];l[f]=rl(v)?v.map(i):i(v)}return l}const Wc=()=>{},rl=Array.isArray,kv=/\/$/,Pv=i=>i.replace(kv,"");function Zp(i,c,l="/"){let f,v={},B="",Y="";const pe=c.indexOf("#");let de=c.indexOf("?");return pe<de&&pe>=0&&(de=-1),de>-1&&(f=c.slice(0,de),B=c.slice(de+1,pe>-1?pe:c.length),v=i(B)),pe>-1&&(f=f||c.slice(0,pe),Y=c.slice(pe,c.length)),f=Iv(f!=null?f:c,l),{fullPath:f+(B&&"?")+B+Y,path:f,query:v,hash:Y}}function Nv(i,c){const l=c.query?i(c.query):"";return c.path+(l&&"?")+l+(c.hash||"")}function $f(i,c){return!c||!i.toLowerCase().startsWith(c.toLowerCase())?i:i.slice(c.length)||"/"}function Bv(i,c,l){const f=c.matched.length-1,v=l.matched.length-1;return f>-1&&f===v&&wc(c.matched[f],l.matched[v])&&Sm(c.params,l.params)&&i(c.query)===i(l.query)&&c.hash===l.hash}function wc(i,c){return(i.aliasOf||i)===(c.aliasOf||c)}function Sm(i,c){if(Object.keys(i).length!==Object.keys(c).length)return!1;for(const l in i)if(!_v(i[l],c[l]))return!1;return!0}function _v(i,c){return rl(i)?Wf(i,c):rl(c)?Wf(c,i):i===c}function Wf(i,c){return rl(c)?i.length===c.length&&i.every((l,f)=>l===c[f]):i.length===1&&i[0]===c}function Iv(i,c){if(i.startsWith("/"))return i;if(!i)return c;const l=c.split("/"),f=i.split("/");let v=l.length-1,B,Y;for(B=0;B<f.length;B++)if(Y=f[B],Y!==".")if(Y==="..")v>1&&v--;else break;return l.slice(0,v).join("/")+"/"+f.slice(B-(B===f.length?1:0)).join("/")}var ep;(function(i){i.pop="pop",i.push="push"})(ep||(ep={}));var Vc;(function(i){i.back="back",i.forward="forward",i.unknown=""})(Vc||(Vc={}));function Ov(i){if(!i)if(yc){const c=document.querySelector("base");i=c&&c.getAttribute("href")||"/",i=i.replace(/^\w+:\/\/[^\/]+/,"")}else i="/";return i[0]!=="/"&&i[0]!=="#"&&(i="/"+i),Pv(i)}const Lv=/^[^#]+#/;function Mv(i,c){return i.replace(Lv,"#")+c}function jv(i,c){const l=document.documentElement.getBoundingClientRect(),f=i.getBoundingClientRect();return{behavior:c.behavior,left:f.left-l.left-(c.left||0),top:f.top-l.top-(c.top||0)}}const $p=()=>({left:window.pageXOffset,top:window.pageYOffset});function Rv(i){let c;if("el"in i){const l=i.el,f=typeof l=="string"&&l.startsWith("#"),v=typeof l=="string"?f?document.getElementById(l.slice(1)):document.querySelector(l):l;if(!v)return;c=jv(v,i)}else c=i;"scrollBehavior"in document.documentElement.style?window.scrollTo(c):window.scrollTo(c.left!=null?c.left:window.pageXOffset,c.top!=null?c.top:window.pageYOffset)}function Vf(i,c){return(history.state?history.state.position-c:-1)+i}const yh=new Map;function Uv(i,c){yh.set(i,c)}function zv(i){const c=yh.get(i);return yh.delete(i),c}let Hv=()=>location.protocol+"//"+location.host;function Fm(i,c){const{pathname:l,search:f,hash:v}=c,B=i.indexOf("#");if(B>-1){let pe=v.includes(i.slice(B))?i.slice(B).length:1,de=v.slice(pe);return de[0]!=="/"&&(de="/"+de),$f(de,"")}return $f(l,i)+f+v}function qv(i,c,l,f){let v=[],B=[],Y=null;const pe=({state:yt})=>{const Tt=Fm(i,location),Gt=l.value,sr=c.value;let Mr=0;if(yt){if(l.value=Tt,c.value=yt,Y&&Y===Gt){Y=null;return}Mr=sr?yt.position-sr.position:0}else f(Tt);v.forEach(At=>{At(l.value,Gt,{delta:Mr,type:ep.pop,direction:Mr?Mr>0?Vc.forward:Vc.back:Vc.unknown})})};function de(){Y=l.value}function Le(yt){v.push(yt);const Tt=()=>{const Gt=v.indexOf(yt);Gt>-1&&v.splice(Gt,1)};return B.push(Tt),Tt}function Me(){const{history:yt}=window;!yt.state||yt.replaceState(oa({},yt.state,{scroll:$p()}),"")}function rt(){for(const yt of B)yt();B=[],window.removeEventListener("popstate",pe),window.removeEventListener("beforeunload",Me)}return window.addEventListener("popstate",pe),window.addEventListener("beforeunload",Me),{pauseListeners:de,listen:Le,destroy:rt}}function Gf(i,c,l,f=!1,v=!1){return{back:i,current:c,forward:l,replaced:f,position:window.history.length,scroll:v?$p():null}}function $v(i){const{history:c,location:l}=window,f={value:Fm(i,l)},v={value:c.state};v.value||B(f.value,{back:null,current:f.value,forward:null,position:c.length-1,replaced:!0,scroll:null},!0);function B(de,Le,Me){const rt=i.indexOf("#"),yt=rt>-1?(l.host&&document.querySelector("base")?i:i.slice(rt))+de:Hv()+i+de;try{c[Me?"replaceState":"pushState"](Le,"",yt),v.value=Le}catch(Tt){console.error(Tt),l[Me?"replace":"assign"](yt)}}function Y(de,Le){const Me=oa({},c.state,Gf(v.value.back,de,v.value.forward,!0),Le,{position:v.value.position});B(de,Me,!0),f.value=de}function pe(de,Le){const Me=oa({},v.value,c.state,{forward:de,scroll:$p()});B(Me.current,Me,!0);const rt=oa({},Gf(f.value,de,null),{position:Me.position+1},Le);B(de,rt,!1),f.value=de}return{location:f,state:v,push:pe,replace:Y}}function Wv(i){i=Ov(i);const c=$v(i),l=qv(i,c.state,c.location,c.replace);function f(B,Y=!0){Y||l.pauseListeners(),history.go(B)}const v=oa({location:"",base:i,go:f,createHref:Mv.bind(null,i)},c,l);return Object.defineProperty(v,"location",{enumerable:!0,get:()=>c.location.value}),Object.defineProperty(v,"state",{enumerable:!0,get:()=>c.state.value}),v}function Vv(i){return i=location.host?i||location.pathname+location.search:"",i.includes("#")||(i+="#"),Wv(i)}function Gv(i){return typeof i=="string"||i&&typeof i=="object"}function km(i){return typeof i=="string"||typeof i=="symbol"}const Jl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Pm=Symbol("");var Xf;(function(i){i[i.aborted=4]="aborted",i[i.cancelled=8]="cancelled",i[i.duplicated=16]="duplicated"})(Xf||(Xf={}));function Tc(i,c){return oa(new Error,{type:i,[Pm]:!0},c)}function Bl(i,c){return i instanceof Error&&Pm in i&&(c==null||!!(i.type&c))}const Jf="[^/]+?",Xv={sensitive:!1,strict:!1,start:!0,end:!0},Jv=/[.+*?^${}()[\]/\\]/g;function Kv(i,c){const l=oa({},Xv,c),f=[];let v=l.start?"^":"";const B=[];for(const Le of i){const Me=Le.length?[]:[90];l.strict&&!Le.length&&(v+="/");for(let rt=0;rt<Le.length;rt++){const yt=Le[rt];let Tt=40+(l.sensitive?.25:0);if(yt.type===0)rt||(v+="/"),v+=yt.value.replace(Jv,"\\$&"),Tt+=40;else if(yt.type===1){const{value:Gt,repeatable:sr,optional:Mr,regexp:At}=yt;B.push({name:Gt,repeatable:sr,optional:Mr});const Mt=At||Jf;if(Mt!==Jf){Tt+=10;try{new RegExp(`(${Mt})`)}catch(Ar){throw new Error(`Invalid custom RegExp for param "${Gt}" (${Mt}): `+Ar.message)}}let Wt=sr?`((?:${Mt})(?:/(?:${Mt}))*)`:`(${Mt})`;rt||(Wt=Mr&&Le.length<2?`(?:/${Wt})`:"/"+Wt),Mr&&(Wt+="?"),v+=Wt,Tt+=20,Mr&&(Tt+=-8),sr&&(Tt+=-20),Mt===".*"&&(Tt+=-50)}Me.push(Tt)}f.push(Me)}if(l.strict&&l.end){const Le=f.length-1;f[Le][f[Le].length-1]+=.7000000000000001}l.strict||(v+="/?"),l.end?v+="$":l.strict&&(v+="(?:/|$)");const Y=new RegExp(v,l.sensitive?"":"i");function pe(Le){const Me=Le.match(Y),rt={};if(!Me)return null;for(let yt=1;yt<Me.length;yt++){const Tt=Me[yt]||"",Gt=B[yt-1];rt[Gt.name]=Tt&&Gt.repeatable?Tt.split("/"):Tt}return rt}function de(Le){let Me="",rt=!1;for(const yt of i){(!rt||!Me.endsWith("/"))&&(Me+="/"),rt=!1;for(const Tt of yt)if(Tt.type===0)Me+=Tt.value;else if(Tt.type===1){const{value:Gt,repeatable:sr,optional:Mr}=Tt,At=Gt in Le?Le[Gt]:"";if(rl(At)&&!sr)throw new Error(`Provided param "${Gt}" is an array but it is not repeatable (* or + modifiers)`);const Mt=rl(At)?At.join("/"):At;if(!Mt)if(Mr)yt.length<2&&(Me.endsWith("/")?Me=Me.slice(0,-1):rt=!0);else throw new Error(`Missing required param "${Gt}"`);Me+=Mt}}return Me||"/"}return{re:Y,score:f,keys:B,parse:pe,stringify:de}}function Qv(i,c){let l=0;for(;l<i.length&&l<c.length;){const f=c[l]-i[l];if(f)return f;l++}return i.length<c.length?i.length===1&&i[0]===40+40?-1:1:i.length>c.length?c.length===1&&c[0]===40+40?1:-1:0}function Yv(i,c){let l=0;const f=i.score,v=c.score;for(;l<f.length&&l<v.length;){const B=Qv(f[l],v[l]);if(B)return B;l++}if(Math.abs(v.length-f.length)===1){if(Kf(f))return 1;if(Kf(v))return-1}return v.length-f.length}function Kf(i){const c=i[i.length-1];return i.length>0&&c[c.length-1]<0}const Zv={type:0,value:""},e1=/[a-zA-Z0-9_]/;function t1(i){if(!i)return[[]];if(i==="/")return[[Zv]];if(!i.startsWith("/"))throw new Error(`Invalid path "${i}"`);function c(Tt){throw new Error(`ERR (${l})/"${Le}": ${Tt}`)}let l=0,f=l;const v=[];let B;function Y(){B&&v.push(B),B=[]}let pe=0,de,Le="",Me="";function rt(){!Le||(l===0?B.push({type:0,value:Le}):l===1||l===2||l===3?(B.length>1&&(de==="*"||de==="+")&&c(`A repeatable param (${Le}) must be alone in its segment. eg: '/:ids+.`),B.push({type:1,value:Le,regexp:Me,repeatable:de==="*"||de==="+",optional:de==="*"||de==="?"})):c("Invalid state to consume buffer"),Le="")}function yt(){Le+=de}for(;pe<i.length;){if(de=i[pe++],de==="\\"&&l!==2){f=l,l=4;continue}switch(l){case 0:de==="/"?(Le&&rt(),Y()):de===":"?(rt(),l=1):yt();break;case 4:yt(),l=f;break;case 1:de==="("?l=2:e1.test(de)?yt():(rt(),l=0,de!=="*"&&de!=="?"&&de!=="+"&&pe--);break;case 2:de===")"?Me[Me.length-1]=="\\"?Me=Me.slice(0,-1)+de:l=3:Me+=de;break;case 3:rt(),l=0,de!=="*"&&de!=="?"&&de!=="+"&&pe--,Me="";break;default:c("Unknown state");break}}return l===2&&c(`Unfinished custom RegExp for param "${Le}"`),rt(),Y(),v}function r1(i,c,l){const f=Kv(t1(i.path),l),v=oa(f,{record:i,parent:c,children:[],alias:[]});return c&&!v.record.aliasOf==!c.record.aliasOf&&c.children.push(v),v}function n1(i,c){const l=[],f=new Map;c=Yf({strict:!1,end:!0,sensitive:!1},c);function v(Me){return f.get(Me)}function B(Me,rt,yt){const Tt=!yt,Gt=s1(Me);Gt.aliasOf=yt&&yt.record;const sr=Yf(c,Me),Mr=[Gt];if("alias"in Me){const Wt=typeof Me.alias=="string"?[Me.alias]:Me.alias;for(const Ar of Wt)Mr.push(oa({},Gt,{components:yt?yt.record.components:Gt.components,path:Ar,aliasOf:yt?yt.record:Gt}))}let At,Mt;for(const Wt of Mr){const{path:Ar}=Wt;if(rt&&Ar[0]!=="/"){const an=rt.record.path,Vn=an[an.length-1]==="/"?"":"/";Wt.path=rt.record.path+(Ar&&Vn+Ar)}if(At=r1(Wt,rt,sr),yt?yt.alias.push(At):(Mt=Mt||At,Mt!==At&&Mt.alias.push(At),Tt&&Me.name&&!Qf(At)&&Y(Me.name)),Gt.children){const an=Gt.children;for(let Vn=0;Vn<an.length;Vn++)B(an[Vn],At,yt&&yt.children[Vn])}yt=yt||At,de(At)}return Mt?()=>{Y(Mt)}:Wc}function Y(Me){if(km(Me)){const rt=f.get(Me);rt&&(f.delete(Me),l.splice(l.indexOf(rt),1),rt.children.forEach(Y),rt.alias.forEach(Y))}else{const rt=l.indexOf(Me);rt>-1&&(l.splice(rt,1),Me.record.name&&f.delete(Me.record.name),Me.children.forEach(Y),Me.alias.forEach(Y))}}function pe(){return l}function de(Me){let rt=0;for(;rt<l.length&&Yv(Me,l[rt])>=0&&(Me.record.path!==l[rt].record.path||!Nm(Me,l[rt]));)rt++;l.splice(rt,0,Me),Me.record.name&&!Qf(Me)&&f.set(Me.record.name,Me)}function Le(Me,rt){let yt,Tt={},Gt,sr;if("name"in Me&&Me.name){if(yt=f.get(Me.name),!yt)throw Tc(1,{location:Me});sr=yt.record.name,Tt=oa(i1(rt.params,yt.keys.filter(Mt=>!Mt.optional).map(Mt=>Mt.name)),Me.params),Gt=yt.stringify(Tt)}else if("path"in Me)Gt=Me.path,yt=l.find(Mt=>Mt.re.test(Gt)),yt&&(Tt=yt.parse(Gt),sr=yt.record.name);else{if(yt=rt.name?f.get(rt.name):l.find(Mt=>Mt.re.test(rt.path)),!yt)throw Tc(1,{location:Me,currentLocation:rt});sr=yt.record.name,Tt=oa({},rt.params,Me.params),Gt=yt.stringify(Tt)}const Mr=[];let At=yt;for(;At;)Mr.unshift(At.record),At=At.parent;return{name:sr,path:Gt,params:Tt,matched:Mr,meta:o1(Mr)}}return i.forEach(Me=>B(Me)),{addRoute:B,resolve:Le,removeRoute:Y,getRoutes:pe,getRecordMatcher:v}}function i1(i,c){const l={};for(const f of c)f in i&&(l[f]=i[f]);return l}function s1(i){return{path:i.path,redirect:i.redirect,name:i.name,meta:i.meta||{},aliasOf:void 0,beforeEnter:i.beforeEnter,props:a1(i),children:i.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in i?i.components||null:i.component&&{default:i.component}}}function a1(i){const c={},l=i.props||!1;if("component"in i)c.default=l;else for(const f in i.components)c[f]=typeof l=="boolean"?l:l[f];return c}function Qf(i){for(;i;){if(i.record.aliasOf)return!0;i=i.parent}return!1}function o1(i){return i.reduce((c,l)=>oa(c,l.meta),{})}function Yf(i,c){const l={};for(const f in i)l[f]=f in c?c[f]:i[f];return l}function Nm(i,c){return c.children.some(l=>l===i||Nm(i,l))}const Bm=/#/g,u1=/&/g,l1=/\//g,c1=/=/g,p1=/\?/g,_m=/\+/g,h1=/%5B/g,f1=/%5D/g,Im=/%5E/g,d1=/%60/g,Om=/%7B/g,m1=/%7C/g,Lm=/%7D/g,g1=/%20/g;function Hh(i){return encodeURI(""+i).replace(m1,"|").replace(h1,"[").replace(f1,"]")}function y1(i){return Hh(i).replace(Om,"{").replace(Lm,"}").replace(Im,"^")}function Dh(i){return Hh(i).replace(_m,"%2B").replace(g1,"+").replace(Bm,"%23").replace(u1,"%26").replace(d1,"`").replace(Om,"{").replace(Lm,"}").replace(Im,"^")}function D1(i){return Dh(i).replace(c1,"%3D")}function v1(i){return Hh(i).replace(Bm,"%23").replace(p1,"%3F")}function x1(i){return i==null?"":v1(i).replace(l1,"%2F")}function wp(i){try{return decodeURIComponent(""+i)}catch{}return""+i}function C1(i){const c={};if(i===""||i==="?")return c;const f=(i[0]==="?"?i.slice(1):i).split("&");for(let v=0;v<f.length;++v){const B=f[v].replace(_m," "),Y=B.indexOf("="),pe=wp(Y<0?B:B.slice(0,Y)),de=Y<0?null:wp(B.slice(Y+1));if(pe in c){let Le=c[pe];rl(Le)||(Le=c[pe]=[Le]),Le.push(de)}else c[pe]=de}return c}function Zf(i){let c="";for(let l in i){const f=i[l];if(l=D1(l),f==null){f!==void 0&&(c+=(c.length?"&":"")+l);continue}(rl(f)?f.map(B=>B&&Dh(B)):[f&&Dh(f)]).forEach(B=>{B!==void 0&&(c+=(c.length?"&":"")+l,B!=null&&(c+="="+B))})}return c}function E1(i){const c={};for(const l in i){const f=i[l];f!==void 0&&(c[l]=rl(f)?f.map(v=>v==null?null:""+v):f==null?f:""+f)}return c}const b1=Symbol(""),ed=Symbol(""),qh=Symbol(""),$h=Symbol(""),vh=Symbol("");function Lc(){let i=[];function c(f){return i.push(f),()=>{const v=i.indexOf(f);v>-1&&i.splice(v,1)}}function l(){i=[]}return{add:c,list:()=>i,reset:l}}function Yl(i,c,l,f,v){const B=f&&(f.enterCallbacks[v]=f.enterCallbacks[v]||[]);return()=>new Promise((Y,pe)=>{const de=rt=>{rt===!1?pe(Tc(4,{from:l,to:c})):rt instanceof Error?pe(rt):Gv(rt)?pe(Tc(2,{from:c,to:rt})):(B&&f.enterCallbacks[v]===B&&typeof rt=="function"&&B.push(rt),Y())},Le=i.call(f&&f.instances[v],c,l,de);let Me=Promise.resolve(Le);i.length<3&&(Me=Me.then(de)),Me.catch(rt=>pe(rt))})}function eh(i,c,l,f){const v=[];for(const B of i)for(const Y in B.components){let pe=B.components[Y];if(!(c!=="beforeRouteEnter"&&!B.instances[Y]))if(A1(pe)){const Le=(pe.__vccOpts||pe)[c];Le&&v.push(Yl(Le,l,f,B,Y))}else{let de=pe();v.push(()=>de.then(Le=>{if(!Le)return Promise.reject(new Error(`Couldn't resolve component "${Y}" at "${B.path}"`));const Me=Fv(Le)?Le.default:Le;B.components[Y]=Me;const yt=(Me.__vccOpts||Me)[c];return yt&&Yl(yt,l,f,B,Y)()}))}}return v}function A1(i){return typeof i=="object"||"displayName"in i||"props"in i||"__vccOpts"in i}function td(i){const c=Ol(qh),l=Ol($h),f=Ks(()=>c.resolve(Cs(i.to))),v=Ks(()=>{const{matched:de}=f.value,{length:Le}=de,Me=de[Le-1],rt=l.matched;if(!Me||!rt.length)return-1;const yt=rt.findIndex(wc.bind(null,Me));if(yt>-1)return yt;const Tt=rd(de[Le-2]);return Le>1&&rd(Me)===Tt&&rt[rt.length-1].path!==Tt?rt.findIndex(wc.bind(null,de[Le-2])):yt}),B=Ks(()=>v.value>-1&&F1(l.params,f.value.params)),Y=Ks(()=>v.value>-1&&v.value===l.matched.length-1&&Sm(l.params,f.value.params));function pe(de={}){return S1(de)?c[Cs(i.replace)?"replace":"push"](Cs(i.to)).catch(Wc):Promise.resolve()}return{route:f,href:Ks(()=>f.value.href),isActive:B,isExactActive:Y,navigate:pe}}const w1=nl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:td,setup(i,{slots:c}){const l=Pc(td(i)),{options:f}=Ol(qh),v=Ks(()=>({[nd(i.activeClass,f.linkActiveClass,"router-link-active")]:l.isActive,[nd(i.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:l.isExactActive}));return()=>{const B=c.default&&c.default(l);return i.custom?B:Rh("a",{"aria-current":l.isExactActive?i.ariaCurrentValue:null,href:l.href,onClick:l.navigate,class:v.value},B)}}}),T1=w1;function S1(i){if(!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)&&!i.defaultPrevented&&!(i.button!==void 0&&i.button!==0)){if(i.currentTarget&&i.currentTarget.getAttribute){const c=i.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(c))return}return i.preventDefault&&i.preventDefault(),!0}}function F1(i,c){for(const l in c){const f=c[l],v=i[l];if(typeof f=="string"){if(f!==v)return!1}else if(!rl(v)||v.length!==f.length||f.some((B,Y)=>B!==v[Y]))return!1}return!0}function rd(i){return i?i.aliasOf?i.aliasOf.path:i.path:""}const nd=(i,c,l)=>i!=null?i:c!=null?c:l,k1=nl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(i,{attrs:c,slots:l}){const f=Ol(vh),v=Ks(()=>i.route||f.value),B=Ol(ed,0),Y=Ks(()=>{let Le=Cs(B);const{matched:Me}=v.value;let rt;for(;(rt=Me[Le])&&!rt.components;)Le++;return Le}),pe=Ks(()=>v.value.matched[Y.value]);hp(ed,Ks(()=>Y.value+1)),hp(b1,pe),hp(vh,v);const de=Pa();return Ga(()=>[de.value,pe.value,i.name],([Le,Me,rt],[yt,Tt,Gt])=>{Me&&(Me.instances[rt]=Le,Tt&&Tt!==Me&&Le&&Le===yt&&(Me.leaveGuards.size||(Me.leaveGuards=Tt.leaveGuards),Me.updateGuards.size||(Me.updateGuards=Tt.updateGuards))),Le&&Me&&(!Tt||!wc(Me,Tt)||!yt)&&(Me.enterCallbacks[rt]||[]).forEach(sr=>sr(Le))},{flush:"post"}),()=>{const Le=v.value,Me=i.name,rt=pe.value,yt=rt&&rt.components[Me];if(!yt)return id(l.default,{Component:yt,route:Le});const Tt=rt.props[Me],Gt=Tt?Tt===!0?Le.params:typeof Tt=="function"?Tt(Le):Tt:null,Mr=Rh(yt,oa({},Gt,c,{onVnodeUnmounted:At=>{At.component.isUnmounted&&(rt.instances[Me]=null)},ref:de}));return id(l.default,{Component:Mr,route:Le})||Mr}}});function id(i,c){if(!i)return null;const l=i(c);return l.length===1?l[0]:l}const P1=k1;function N1(i){const c=n1(i.routes,i),l=i.parseQuery||C1,f=i.stringifyQuery||Zf,v=i.history,B=Lc(),Y=Lc(),pe=Lc(),de=Rc(Jl);let Le=Jl;yc&&i.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const Me=Yp.bind(null,_r=>""+_r),rt=Yp.bind(null,x1),yt=Yp.bind(null,wp);function Tt(_r,Kr){let yr,dn;return km(_r)?(yr=c.getRecordMatcher(_r),dn=Kr):dn=_r,c.addRoute(dn,yr)}function Gt(_r){const Kr=c.getRecordMatcher(_r);Kr&&c.removeRoute(Kr)}function sr(){return c.getRoutes().map(_r=>_r.record)}function Mr(_r){return!!c.getRecordMatcher(_r)}function At(_r,Kr){if(Kr=oa({},Kr||de.value),typeof _r=="string"){const li=Zp(l,_r,Kr.path),ct=c.resolve({path:li.path},Kr),Ot=v.createHref(li.fullPath);return oa(li,ct,{params:yt(ct.params),hash:wp(li.hash),redirectedFrom:void 0,href:Ot})}let yr;if("path"in _r)yr=oa({},_r,{path:Zp(l,_r.path,Kr.path).path});else{const li=oa({},_r.params);for(const ct in li)li[ct]==null&&delete li[ct];yr=oa({},_r,{params:rt(_r.params)}),Kr.params=rt(Kr.params)}const dn=c.resolve(yr,Kr),oi=_r.hash||"";dn.params=Me(yt(dn.params));const Jn=Nv(f,oa({},_r,{hash:y1(oi),path:dn.path})),Un=v.createHref(Jn);return oa({fullPath:Jn,hash:oi,query:f===Zf?E1(_r.query):_r.query||{}},dn,{redirectedFrom:void 0,href:Un})}function Mt(_r){return typeof _r=="string"?Zp(l,_r,de.value.path):oa({},_r)}function Wt(_r,Kr){if(Le!==_r)return Tc(8,{from:Kr,to:_r})}function Ar(_r){return An(_r)}function an(_r){return Ar(oa(Mt(_r),{replace:!0}))}function Vn(_r){const Kr=_r.matched[_r.matched.length-1];if(Kr&&Kr.redirect){const{redirect:yr}=Kr;let dn=typeof yr=="function"?yr(_r):yr;return typeof dn=="string"&&(dn=dn.includes("?")||dn.includes("#")?dn=Mt(dn):{path:dn},dn.params={}),oa({query:_r.query,hash:_r.hash,params:"path"in dn?{}:_r.params},dn)}}function An(_r,Kr){const yr=Le=At(_r),dn=de.value,oi=_r.state,Jn=_r.force,Un=_r.replace===!0,li=Vn(yr);if(li)return An(oa(Mt(li),{state:oi,force:Jn,replace:Un}),Kr||yr);const ct=yr;ct.redirectedFrom=Kr;let Ot;return!Jn&&Bv(f,dn,yr)&&(Ot=Tc(16,{to:ct,from:dn}),Yi(dn,dn,!0,!1)),(Ot?Promise.resolve(Ot):ai(ct,dn)).catch(Er=>Bl(Er)?Bl(Er,2)?Er:Kn(Er):lr(Er,ct,dn)).then(Er=>{if(Er){if(Bl(Er,2))return An(oa({replace:Un},Mt(Er.to),{state:oi,force:Jn}),Kr||ct)}else Er=Mn(ct,dn,!0,Un,oi);return $n(ct,dn,Er),Er})}function gi(_r,Kr){const yr=Wt(_r,Kr);return yr?Promise.reject(yr):Promise.resolve()}function ai(_r,Kr){let yr;const[dn,oi,Jn]=B1(_r,Kr);yr=eh(dn.reverse(),"beforeRouteLeave",_r,Kr);for(const li of dn)li.leaveGuards.forEach(ct=>{yr.push(Yl(ct,_r,Kr))});const Un=gi.bind(null,_r,Kr);return yr.push(Un),dc(yr).then(()=>{yr=[];for(const li of B.list())yr.push(Yl(li,_r,Kr));return yr.push(Un),dc(yr)}).then(()=>{yr=eh(oi,"beforeRouteUpdate",_r,Kr);for(const li of oi)li.updateGuards.forEach(ct=>{yr.push(Yl(ct,_r,Kr))});return yr.push(Un),dc(yr)}).then(()=>{yr=[];for(const li of _r.matched)if(li.beforeEnter&&!Kr.matched.includes(li))if(rl(li.beforeEnter))for(const ct of li.beforeEnter)yr.push(Yl(ct,_r,Kr));else yr.push(Yl(li.beforeEnter,_r,Kr));return yr.push(Un),dc(yr)}).then(()=>(_r.matched.forEach(li=>li.enterCallbacks={}),yr=eh(Jn,"beforeRouteEnter",_r,Kr),yr.push(Un),dc(yr))).then(()=>{yr=[];for(const li of Y.list())yr.push(Yl(li,_r,Kr));return yr.push(Un),dc(yr)}).catch(li=>Bl(li,8)?li:Promise.reject(li))}function $n(_r,Kr,yr){for(const dn of pe.list())dn(_r,Kr,yr)}function Mn(_r,Kr,yr,dn,oi){const Jn=Wt(_r,Kr);if(Jn)return Jn;const Un=Kr===Jl,li=yc?history.state:{};yr&&(dn||Un?v.replace(_r.fullPath,oa({scroll:Un&&li&&li.scroll},oi)):v.push(_r.fullPath,oi)),de.value=_r,Yi(_r,Kr,yr,Un),Kn()}let yi;function Cr(){yi||(yi=v.listen((_r,Kr,yr)=>{if(!ts.listening)return;const dn=At(_r),oi=Vn(dn);if(oi){An(oa(oi,{replace:!0}),dn).catch(Wc);return}Le=dn;const Jn=de.value;yc&&Uv(Vf(Jn.fullPath,yr.delta),$p()),ai(dn,Jn).catch(Un=>Bl(Un,12)?Un:Bl(Un,2)?(An(Un.to,dn).then(li=>{Bl(li,20)&&!yr.delta&&yr.type===ep.pop&&v.go(-1,!1)}).catch(Wc),Promise.reject()):(yr.delta&&v.go(-yr.delta,!1),lr(Un,dn,Jn))).then(Un=>{Un=Un||Mn(dn,Jn,!1),Un&&(yr.delta&&!Bl(Un,8)?v.go(-yr.delta,!1):yr.type===ep.pop&&Bl(Un,20)&&v.go(-1,!1)),$n(dn,Jn,Un)}).catch(Wc)}))}let Tn=Lc(),we=Lc(),rn;function lr(_r,Kr,yr){Kn(_r);const dn=we.list();return dn.length?dn.forEach(oi=>oi(_r,Kr,yr)):console.error(_r),Promise.reject(_r)}function Sn(){return rn&&de.value!==Jl?Promise.resolve():new Promise((_r,Kr)=>{Tn.add([_r,Kr])})}function Kn(_r){return rn||(rn=!_r,Cr(),Tn.list().forEach(([Kr,yr])=>_r?yr(_r):Kr()),Tn.reset()),_r}function Yi(_r,Kr,yr,dn){const{scrollBehavior:oi}=i;if(!yc||!oi)return Promise.resolve();const Jn=!yr&&zv(Vf(_r.fullPath,0))||(dn||!yr)&&history.state&&history.state.scroll||null;return Ip().then(()=>oi(_r,Kr,Jn)).then(Un=>Un&&Rv(Un)).catch(Un=>lr(Un,_r,Kr))}const ys=_r=>v.go(_r);let Ns;const cs=new Set,ts={currentRoute:de,listening:!0,addRoute:Tt,removeRoute:Gt,hasRoute:Mr,getRoutes:sr,resolve:At,options:i,push:Ar,replace:an,go:ys,back:()=>ys(-1),forward:()=>ys(1),beforeEach:B.add,beforeResolve:Y.add,afterEach:pe.add,onError:we.add,isReady:Sn,install(_r){const Kr=this;_r.component("RouterLink",T1),_r.component("RouterView",P1),_r.config.globalProperties.$router=Kr,Object.defineProperty(_r.config.globalProperties,"$route",{enumerable:!0,get:()=>Cs(de)}),yc&&!Ns&&de.value===Jl&&(Ns=!0,Ar(v.location).catch(oi=>{}));const yr={};for(const oi in Jl)yr[oi]=Ks(()=>de.value[oi]);_r.provide(qh,Kr),_r.provide($h,Pc(yr)),_r.provide(vh,de);const dn=_r.unmount;cs.add(_r),_r.unmount=function(){cs.delete(_r),cs.size<1&&(Le=Jl,yi&&yi(),yi=null,de.value=Jl,Ns=!1,rn=!1),dn()}}};return ts}function dc(i){return i.reduce((c,l)=>c.then(()=>l()),Promise.resolve())}function B1(i,c){const l=[],f=[],v=[],B=Math.max(c.matched.length,i.matched.length);for(let Y=0;Y<B;Y++){const pe=c.matched[Y];pe&&(i.matched.find(Le=>wc(Le,pe))?f.push(pe):l.push(pe));const de=i.matched[Y];de&&(c.matched.find(Le=>wc(Le,de))||v.push(de))}return[l,f,v]}function _1(){return Ol($h)}const I1=nl({__name:"FileIcon",props:{id:null},setup(i){const c=i,l=Ks(()=>c.id.split(/\./g).pop()),f=Ks(()=>{switch(l.value){case"vue":return"i-logos-vue";default:return"i-carbon-document-blank"}});return(v,B)=>(xa(),ho("div",{class:Cc(Cs(f))},null,2))}}),O1={open:""},L1={"cursor-default":"","select-none":"","text-sm":"",truncate:"",p:"y1"},M1={"ml-1":""},j1=nl({__name:"ModuleTreeNode",props:{node:null,icon:{default:"i-carbon-folder"}},setup(i){const c=_1();return(l,f)=>{const v=Dp("ModuleTreeNode",!0),B=I1,Y=Dp("RouterLink");return xa(),ho("details",O1,[Vi("summary",L1,[Vi("div",{class:Cc(i.icon)},null,2),Qu(" "+Bo(i.node.name),1)]),(xa(!0),ho(Xo,null,sf(Object.entries(i.node.children),pe=>(xa(),Ec(v,{key:pe[0],ml2:"",node:pe[1]},null,8,["node"]))),128)),(xa(!0),ho(Xo,null,sf(i.node.items,pe=>(xa(),ho("div",{key:pe.full,ml4:"","ws-nowrap":""},[ta(Y,{block:"","text-sm":"",p:"x2 y1",rounded:"",to:`/module/${encodeURIComponent(pe.full)}`,class:Cc({"bg-gray/10":pe.full===Cs(c).params.id})},{default:Il(()=>[ta(B,{id:pe.path},null,8,["id"]),Vi("span",M1,Bo(pe.path.split("/").pop()),1)]),_:2},1032,["to","class"])]))),128))])}}}),R1="/__unocss/icon.svg",U1={p:"x4 y3",b:"b main",flex:"","children:my-auto":""},z1=Vi("div",{flex:"","flex-auto":"","children:my-auto":"","ws-nowrap":""},[Vi("img",{src:R1,filter:"","dark:invert":"","inline-block":"",h:"1.3em",m:"r-1.5"}),Vi("div",{"of-hidden":""},[Qu(" Inspector "),Vi("sup",{"text-teal5":"","bg-teal5:10":"",p:"x1.5 y0.5",rounded:"",italic:""},"beta")])],-1),H1=nl({__name:"NarBar",setup(i){const c=nD(),l=wy(c);return(f,v)=>(xa(),ho("nav",U1,[z1,Vi("button",{"text-lg":"","i-carbon-sun":"","dark:i-carbon-moon":"",onClick:v[0]||(v[0]=B=>Cs(l)())})]))}}),q1={"h-full":""},$1={b:"r main","of-hidden":""},W1={pt:"4",flex:"~ col gap-3"},V1=Vi("div",{"i-carbon-dashboard":""},null,-1),G1=Vi("span",null," Overview ",-1),X1=Vi("div",{"i-carbon-terminal":""},null,-1),J1=Vi("span",null," REPL ",-1),K1=Vi("div",{b:"b main"},null,-1),Q1={b:"r main",class:"scrolls scrolls-sidebar"},Y1=nl({__name:"Sidebar",setup(i){return(c,l)=>{const f=H1,v=Dp("RouterLink"),B=j1;return xa(),ho("div",q1,[Vi("div",$1,[ta(f),Vi("div",W1,[ta(v,{block:"",to:"/","text-sm":"",m:"l-3.7"},{default:Il(()=>[V1,G1]),_:1}),ta(v,{block:"",to:"/repl","text-sm":"",m:"l-3.7"},{default:Il(()=>[X1,J1]),_:1}),K1])]),Vi("div",Q1,[Object.keys(Cs(lp).workspace.children).length?(xa(),Ec(B,{key:0,node:Cs(lp).workspace,p:"l3 t4",icon:"i-carbon-portfolio"},null,8,["node"])):bp("",!0),Object.keys(Cs(lp).root.children).length?(xa(),Ec(B,{key:1,node:Cs(lp).root,p:"l3 t4",icon:"i-carbon-vmdk-disk"},null,8,["node"])):bp("",!0)])])}}});var Z1=Object.defineProperty,ex=Object.defineProperties,tx=Object.getOwnPropertyDescriptors,Tp=Object.getOwnPropertySymbols,Mm=Object.prototype.hasOwnProperty,jm=Object.prototype.propertyIsEnumerable,sd=(i,c,l)=>c in i?Z1(i,c,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[c]=l,rx=(i,c)=>{for(var l in c||(c={}))Mm.call(c,l)&&sd(i,l,c[l]);if(Tp)for(var l of Tp(c))jm.call(c,l)&&sd(i,l,c[l]);return i},nx=(i,c)=>ex(i,tx(c)),ix=(i,c)=>{var l={};for(var f in i)Mm.call(i,f)&&c.indexOf(f)<0&&(l[f]=i[f]);if(i!=null&&Tp)for(var f of Tp(i))c.indexOf(f)<0&&jm.call(i,f)&&(l[f]=i[f]);return l};const sx={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((i,c)=>(i[c.id]=c)&&i,{})}},methods:{updatePaneComponents(){this.panes.forEach(i=>{i.update&&i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(i,c){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=c},onMouseMove(i){this.touch.mouseDown&&(i.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(i)),this.$emit("resize",this.panes.map(c=>({min:c.min,max:c.max,size:c.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(i,c){"ontouchstart"in window&&(i.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===c?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(i,c),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=c,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[c])},onSplitterDblClick(i,c){let l=0;this.panes=this.panes.map((f,v)=>(f.size=v===c?f.max:f.min,v!==c&&(l+=f.min),f)),this.panes[c].size-=l,this.$emit("pane-maximize",this.panes[c])},onPaneClick(i,c){this.$emit("pane-click",this.indexedPanes[c])},getCurrentMouseDrag(i){const c=this.container.getBoundingClientRect(),{clientX:l,clientY:f}="ontouchstart"in window&&i.touches?i.touches[0]:i;return{x:l-c.left,y:f-c.top}},getCurrentDragPercentage(i){i=i[this.horizontal?"y":"x"];const c=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(i=c-i),i*100/c},calculatePanesSize(i){const c=this.touch.activeSplitter;let l={prevPanesSize:this.sumPrevPanesSize(c),nextPanesSize:this.sumNextPanesSize(c),prevReachedMinPanes:0,nextReachedMinPanes:0};const f=0+(this.pushOtherPanes?0:l.prevPanesSize),v=100-(this.pushOtherPanes?0:l.nextPanesSize),B=Math.max(Math.min(this.getCurrentDragPercentage(i),v),f);let Y=[c,c+1],pe=this.panes[Y[0]]||null,de=this.panes[Y[1]]||null;const Le=pe.max<100&&B>=pe.max+l.prevPanesSize,Me=de.max<100&&B<=100-(de.max+this.sumNextPanesSize(c+1));if(Le||Me){Le?(pe.size=pe.max,de.size=Math.max(100-pe.max-l.prevPanesSize-l.nextPanesSize,0)):(pe.size=Math.max(100-de.max-l.prevPanesSize-this.sumNextPanesSize(c+1),0),de.size=de.max);return}if(this.pushOtherPanes){const rt=this.doPushOtherPanes(l,B);if(!rt)return;({sums:l,panesToResize:Y}=rt),pe=this.panes[Y[0]]||null,de=this.panes[Y[1]]||null}pe!==null&&(pe.size=Math.min(Math.max(B-l.prevPanesSize-l.prevReachedMinPanes,pe.min),pe.max)),de!==null&&(de.size=Math.min(Math.max(100-B-l.nextPanesSize-l.nextReachedMinPanes,de.min),de.max))},doPushOtherPanes(i,c){const l=this.touch.activeSplitter,f=[l,l+1];return c<i.prevPanesSize+this.panes[f[0]].min&&(f[0]=this.findPrevExpandedPane(l).index,i.prevReachedMinPanes=0,f[0]<l&&this.panes.forEach((v,B)=>{B>f[0]&&B<=l&&(v.size=v.min,i.prevReachedMinPanes+=v.min)}),i.prevPanesSize=this.sumPrevPanesSize(f[0]),f[0]===void 0)?(i.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((v,B)=>{B>0&&B<=l&&(v.size=v.min,i.prevReachedMinPanes+=v.min)}),this.panes[f[1]].size=100-i.prevReachedMinPanes-this.panes[0].min-i.prevPanesSize-i.nextPanesSize,null):c>100-i.nextPanesSize-this.panes[f[1]].min&&(f[1]=this.findNextExpandedPane(l).index,i.nextReachedMinPanes=0,f[1]>l+1&&this.panes.forEach((v,B)=>{B>l&&B<f[1]&&(v.size=v.min,i.nextReachedMinPanes+=v.min)}),i.nextPanesSize=this.sumNextPanesSize(f[1]-1),f[1]===void 0)?(i.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((v,B)=>{B<this.panesCount-1&&B>=l+1&&(v.size=v.min,i.nextReachedMinPanes+=v.min)}),this.panes[f[0]].size=100-i.prevPanesSize-i.nextReachedMinPanes-this.panes[this.panesCount-1].min-i.nextPanesSize,null):{sums:i,panesToResize:f}},sumPrevPanesSize(i){return this.panes.reduce((c,l,f)=>c+(f<i?l.size:0),0)},sumNextPanesSize(i){return this.panes.reduce((c,l,f)=>c+(f>i+1?l.size:0),0)},findPrevExpandedPane(i){return[...this.panes].reverse().find(l=>l.index<i&&l.size>l.min)||{}},findNextExpandedPane(i){return this.panes.find(l=>l.index>i+1&&l.size>l.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(c=>{const l=c.classList.contains("splitpanes__pane"),f=c.classList.contains("splitpanes__splitter");if(!l&&!f){c.parentNode.removeChild(c),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.");return}})},addSplitter(i,c,l=!1){const f=i-1,v=document.createElement("div");v.classList.add("splitpanes__splitter"),l||(v.onmousedown=B=>this.onMouseDown(B,f),typeof window<"u"&&"ontouchstart"in window&&(v.ontouchstart=B=>this.onMouseDown(B,f)),v.onclick=B=>this.onSplitterClick(B,f+1)),this.dblClickSplitter&&(v.ondblclick=B=>this.onSplitterDblClick(B,f+1)),c.parentNode.insertBefore(v,c)},removeSplitter(i){i.onmousedown=void 0,i.onclick=void 0,i.ondblclick=void 0,i.parentNode.removeChild(i)},redoSplitters(){const i=Array.from(this.container.children);i.forEach(l=>{l.className.includes("splitpanes__splitter")&&this.removeSplitter(l)});let c=0;i.forEach(l=>{l.className.includes("splitpanes__pane")&&(!c&&this.firstSplitter?this.addSplitter(c,l,!0):c&&this.addSplitter(c,l),c++)})},requestUpdate(i){var c=i,{target:l}=c,f=ix(c,["target"]);const v=this.indexedPanes[l._.uid];Object.entries(f).forEach(([B,Y])=>v[B]=Y)},onPaneAdd(i){let c=-1;Array.from(i.$el.parentNode.children).some(v=>(v.className.includes("splitpanes__pane")&&c++,v===i.$el));const l=parseFloat(i.minSize),f=parseFloat(i.maxSize);this.panes.splice(c,0,{id:i._.uid,index:c,min:isNaN(l)?0:l,max:isNaN(f)?100:f,size:i.size===null?null:parseFloat(i.size),givenSize:i.size,update:i.update}),this.panes.forEach((v,B)=>v.index=B),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[c]}),this.$emit("pane-add",{index:c,panes:this.panes.map(v=>({min:v.min,max:v.max,size:v.size}))})})},onPaneRemove(i){const c=this.panes.findIndex(f=>f.id===i._.uid),l=this.panes.splice(c,1)[0];this.panes.forEach((f,v)=>f.index=v),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:nx(rx({},l),{index:c})}),this.$emit("pane-remove",{removed:l,panes:this.panes.map(f=>({min:f.min,max:f.max,size:f.size}))})})},resetPaneSizes(i={}){!i.addedPane&&!i.removedPane?this.initialPanesSizing():this.panes.some(c=>c.givenSize!==null||c.min||c.max<100)?this.equalizeAfterAddOrRemove(i):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(c=>({min:c.min,max:c.max,size:c.size})))},equalize(){const i=100/this.panesCount;let c=0,l=[],f=[];this.panes.forEach(v=>{v.size=Math.max(Math.min(i,v.max),v.min),c-=v.size,v.size>=v.max&&l.push(v.id),v.size<=v.min&&f.push(v.id)}),c>.1&&this.readjustSizes(c,l,f)},initialPanesSizing(){100/this.panesCount;let i=100,c=[],l=[],f=0;this.panes.forEach(B=>{i-=B.size,B.size!==null&&f++,B.size>=B.max&&c.push(B.id),B.size<=B.min&&l.push(B.id)});let v=100;i>.1&&(this.panes.forEach(B=>{B.size===null&&(B.size=Math.max(Math.min(i/(this.panesCount-f),B.max),B.min)),v-=B.size}),v>.1&&this.readjustSizes(i,c,l))},equalizeAfterAddOrRemove({addedPane:i,removedPane:c}={}){let l=100/this.panesCount,f=0,v=[],B=[];i&&i.givenSize!==null&&(l=(100-i.givenSize)/(this.panesCount-1)),this.panes.forEach(Y=>{f-=Y.size,Y.size>=Y.max&&v.push(Y.id),Y.size<=Y.min&&B.push(Y.id)}),!(Math.abs(f)<.1)&&(this.panes.forEach(Y=>{i&&i.givenSize!==null&&i.id===Y.id||(Y.size=Math.max(Math.min(l,Y.max),Y.min)),f-=Y.size,Y.size>=Y.max&&v.push(Y.id),Y.size<=Y.min&&B.push(Y.id)}),f>.1&&this.readjustSizes(f,v,B))},readjustSizes(i,c,l){let f;i>0?f=i/(this.panesCount-c.length):f=i/(this.panesCount-l.length),this.panes.forEach((v,B)=>{if(i>0&&!c.includes(v.id)){const Y=Math.max(Math.min(v.size+f,v.max),v.min);i-=Y-v.size,v.size=Y}else if(!l.includes(v.id)){const Y=Math.max(Math.min(v.size+f,v.max),v.min);i-=Y-v.size,v.size=Y}v.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[v.id].size}%`})}),Math.abs(i)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(i){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((l,f)=>{l.ondblclick=i?v=>this.onSplitterDblClick(v,f):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Rh("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}};var ax=(i,c)=>{const l=i.__vccOpts||i;for(const[f,v]of c)l[f]=v;return l};const ox={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(i){this.style=i}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(i){this.requestUpdate({target:this,size:i})},minSizeNumber(i){this.requestUpdate({target:this,min:i})},maxSizeNumber(i){this.requestUpdate({target:this,max:i})}}};function ux(i,c,l,f,v,B){return xa(),ho("div",{class:"splitpanes__pane",onClick:c[0]||(c[0]=Y=>B.onPaneClick(Y,i._.uid)),style:tp(i.style)},[vp(i.$slots,"default")],4)}var ad=ax(ox,[["render",ux]]);const lx={"h-screen":"","w-screen":"","of-hidden":""},cx={"h-full":"","of-hidden":""},px=nl({__name:"App",setup(i){return(c,l)=>{const f=Y1,v=Dp("RouterView");return xa(),ho("div",lx,[ta(Cs(sx),null,{default:Il(()=>[ta(Cs(ad),{size:"20","push-other-panes":!1},{default:Il(()=>[ta(f)]),_:1}),ta(Cs(ad),{size:"80"},{default:Il(()=>[Vi("div",cx,[ta(v)])]),_:1})]),_:1})])}}}),Rm=py(px);Rm.use(N1({history:Vv(),routes:Sv}));Rm.mount("#app");export{ad as A,l0 as B,oy as C,sx as D,$D as E,jD as F,_1 as G,ID as _,fx as a,ta as b,ho as c,nl as d,Vi as e,gx as f,Cs as g,PD as h,ka as i,Dm as j,Ec as k,dx as l,bD as m,tp as n,xa as o,mx as p,hx as q,Pa as r,QD as s,Lg as t,WD as u,Ks as v,Il as w,bp as x,Qu as y,Bo as z};
|
|
282
|
+
*/const yc=typeof window<"u";function Fv(i){return i.__esModule||i[Symbol.toStringTag]==="Module"}const oa=Object.assign;function Yp(i,c){const l={};for(const f in c){const v=c[f];l[f]=rl(v)?v.map(i):i(v)}return l}const Wc=()=>{},rl=Array.isArray,kv=/\/$/,Pv=i=>i.replace(kv,"");function Zp(i,c,l="/"){let f,v={},B="",Y="";const pe=c.indexOf("#");let de=c.indexOf("?");return pe<de&&pe>=0&&(de=-1),de>-1&&(f=c.slice(0,de),B=c.slice(de+1,pe>-1?pe:c.length),v=i(B)),pe>-1&&(f=f||c.slice(0,pe),Y=c.slice(pe,c.length)),f=Iv(f!=null?f:c,l),{fullPath:f+(B&&"?")+B+Y,path:f,query:v,hash:Y}}function Nv(i,c){const l=c.query?i(c.query):"";return c.path+(l&&"?")+l+(c.hash||"")}function $f(i,c){return!c||!i.toLowerCase().startsWith(c.toLowerCase())?i:i.slice(c.length)||"/"}function Bv(i,c,l){const f=c.matched.length-1,v=l.matched.length-1;return f>-1&&f===v&&wc(c.matched[f],l.matched[v])&&Sm(c.params,l.params)&&i(c.query)===i(l.query)&&c.hash===l.hash}function wc(i,c){return(i.aliasOf||i)===(c.aliasOf||c)}function Sm(i,c){if(Object.keys(i).length!==Object.keys(c).length)return!1;for(const l in i)if(!_v(i[l],c[l]))return!1;return!0}function _v(i,c){return rl(i)?Wf(i,c):rl(c)?Wf(c,i):i===c}function Wf(i,c){return rl(c)?i.length===c.length&&i.every((l,f)=>l===c[f]):i.length===1&&i[0]===c}function Iv(i,c){if(i.startsWith("/"))return i;if(!i)return c;const l=c.split("/"),f=i.split("/");let v=l.length-1,B,Y;for(B=0;B<f.length;B++)if(Y=f[B],Y!==".")if(Y==="..")v>1&&v--;else break;return l.slice(0,v).join("/")+"/"+f.slice(B-(B===f.length?1:0)).join("/")}var ep;(function(i){i.pop="pop",i.push="push"})(ep||(ep={}));var Vc;(function(i){i.back="back",i.forward="forward",i.unknown=""})(Vc||(Vc={}));function Ov(i){if(!i)if(yc){const c=document.querySelector("base");i=c&&c.getAttribute("href")||"/",i=i.replace(/^\w+:\/\/[^\/]+/,"")}else i="/";return i[0]!=="/"&&i[0]!=="#"&&(i="/"+i),Pv(i)}const Lv=/^[^#]+#/;function Mv(i,c){return i.replace(Lv,"#")+c}function jv(i,c){const l=document.documentElement.getBoundingClientRect(),f=i.getBoundingClientRect();return{behavior:c.behavior,left:f.left-l.left-(c.left||0),top:f.top-l.top-(c.top||0)}}const $p=()=>({left:window.pageXOffset,top:window.pageYOffset});function Rv(i){let c;if("el"in i){const l=i.el,f=typeof l=="string"&&l.startsWith("#"),v=typeof l=="string"?f?document.getElementById(l.slice(1)):document.querySelector(l):l;if(!v)return;c=jv(v,i)}else c=i;"scrollBehavior"in document.documentElement.style?window.scrollTo(c):window.scrollTo(c.left!=null?c.left:window.pageXOffset,c.top!=null?c.top:window.pageYOffset)}function Vf(i,c){return(history.state?history.state.position-c:-1)+i}const yh=new Map;function Uv(i,c){yh.set(i,c)}function zv(i){const c=yh.get(i);return yh.delete(i),c}let Hv=()=>location.protocol+"//"+location.host;function Fm(i,c){const{pathname:l,search:f,hash:v}=c,B=i.indexOf("#");if(B>-1){let pe=v.includes(i.slice(B))?i.slice(B).length:1,de=v.slice(pe);return de[0]!=="/"&&(de="/"+de),$f(de,"")}return $f(l,i)+f+v}function qv(i,c,l,f){let v=[],B=[],Y=null;const pe=({state:yt})=>{const Tt=Fm(i,location),Gt=l.value,sr=c.value;let Mr=0;if(yt){if(l.value=Tt,c.value=yt,Y&&Y===Gt){Y=null;return}Mr=sr?yt.position-sr.position:0}else f(Tt);v.forEach(At=>{At(l.value,Gt,{delta:Mr,type:ep.pop,direction:Mr?Mr>0?Vc.forward:Vc.back:Vc.unknown})})};function de(){Y=l.value}function Le(yt){v.push(yt);const Tt=()=>{const Gt=v.indexOf(yt);Gt>-1&&v.splice(Gt,1)};return B.push(Tt),Tt}function Me(){const{history:yt}=window;!yt.state||yt.replaceState(oa({},yt.state,{scroll:$p()}),"")}function rt(){for(const yt of B)yt();B=[],window.removeEventListener("popstate",pe),window.removeEventListener("beforeunload",Me)}return window.addEventListener("popstate",pe),window.addEventListener("beforeunload",Me),{pauseListeners:de,listen:Le,destroy:rt}}function Gf(i,c,l,f=!1,v=!1){return{back:i,current:c,forward:l,replaced:f,position:window.history.length,scroll:v?$p():null}}function $v(i){const{history:c,location:l}=window,f={value:Fm(i,l)},v={value:c.state};v.value||B(f.value,{back:null,current:f.value,forward:null,position:c.length-1,replaced:!0,scroll:null},!0);function B(de,Le,Me){const rt=i.indexOf("#"),yt=rt>-1?(l.host&&document.querySelector("base")?i:i.slice(rt))+de:Hv()+i+de;try{c[Me?"replaceState":"pushState"](Le,"",yt),v.value=Le}catch(Tt){console.error(Tt),l[Me?"replace":"assign"](yt)}}function Y(de,Le){const Me=oa({},c.state,Gf(v.value.back,de,v.value.forward,!0),Le,{position:v.value.position});B(de,Me,!0),f.value=de}function pe(de,Le){const Me=oa({},v.value,c.state,{forward:de,scroll:$p()});B(Me.current,Me,!0);const rt=oa({},Gf(f.value,de,null),{position:Me.position+1},Le);B(de,rt,!1),f.value=de}return{location:f,state:v,push:pe,replace:Y}}function Wv(i){i=Ov(i);const c=$v(i),l=qv(i,c.state,c.location,c.replace);function f(B,Y=!0){Y||l.pauseListeners(),history.go(B)}const v=oa({location:"",base:i,go:f,createHref:Mv.bind(null,i)},c,l);return Object.defineProperty(v,"location",{enumerable:!0,get:()=>c.location.value}),Object.defineProperty(v,"state",{enumerable:!0,get:()=>c.state.value}),v}function Vv(i){return i=location.host?i||location.pathname+location.search:"",i.includes("#")||(i+="#"),Wv(i)}function Gv(i){return typeof i=="string"||i&&typeof i=="object"}function km(i){return typeof i=="string"||typeof i=="symbol"}const Jl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Pm=Symbol("");var Xf;(function(i){i[i.aborted=4]="aborted",i[i.cancelled=8]="cancelled",i[i.duplicated=16]="duplicated"})(Xf||(Xf={}));function Tc(i,c){return oa(new Error,{type:i,[Pm]:!0},c)}function Bl(i,c){return i instanceof Error&&Pm in i&&(c==null||!!(i.type&c))}const Jf="[^/]+?",Xv={sensitive:!1,strict:!1,start:!0,end:!0},Jv=/[.+*?^${}()[\]/\\]/g;function Kv(i,c){const l=oa({},Xv,c),f=[];let v=l.start?"^":"";const B=[];for(const Le of i){const Me=Le.length?[]:[90];l.strict&&!Le.length&&(v+="/");for(let rt=0;rt<Le.length;rt++){const yt=Le[rt];let Tt=40+(l.sensitive?.25:0);if(yt.type===0)rt||(v+="/"),v+=yt.value.replace(Jv,"\\$&"),Tt+=40;else if(yt.type===1){const{value:Gt,repeatable:sr,optional:Mr,regexp:At}=yt;B.push({name:Gt,repeatable:sr,optional:Mr});const Mt=At||Jf;if(Mt!==Jf){Tt+=10;try{new RegExp(`(${Mt})`)}catch(Ar){throw new Error(`Invalid custom RegExp for param "${Gt}" (${Mt}): `+Ar.message)}}let Wt=sr?`((?:${Mt})(?:/(?:${Mt}))*)`:`(${Mt})`;rt||(Wt=Mr&&Le.length<2?`(?:/${Wt})`:"/"+Wt),Mr&&(Wt+="?"),v+=Wt,Tt+=20,Mr&&(Tt+=-8),sr&&(Tt+=-20),Mt===".*"&&(Tt+=-50)}Me.push(Tt)}f.push(Me)}if(l.strict&&l.end){const Le=f.length-1;f[Le][f[Le].length-1]+=.7000000000000001}l.strict||(v+="/?"),l.end?v+="$":l.strict&&(v+="(?:/|$)");const Y=new RegExp(v,l.sensitive?"":"i");function pe(Le){const Me=Le.match(Y),rt={};if(!Me)return null;for(let yt=1;yt<Me.length;yt++){const Tt=Me[yt]||"",Gt=B[yt-1];rt[Gt.name]=Tt&&Gt.repeatable?Tt.split("/"):Tt}return rt}function de(Le){let Me="",rt=!1;for(const yt of i){(!rt||!Me.endsWith("/"))&&(Me+="/"),rt=!1;for(const Tt of yt)if(Tt.type===0)Me+=Tt.value;else if(Tt.type===1){const{value:Gt,repeatable:sr,optional:Mr}=Tt,At=Gt in Le?Le[Gt]:"";if(rl(At)&&!sr)throw new Error(`Provided param "${Gt}" is an array but it is not repeatable (* or + modifiers)`);const Mt=rl(At)?At.join("/"):At;if(!Mt)if(Mr)yt.length<2&&(Me.endsWith("/")?Me=Me.slice(0,-1):rt=!0);else throw new Error(`Missing required param "${Gt}"`);Me+=Mt}}return Me||"/"}return{re:Y,score:f,keys:B,parse:pe,stringify:de}}function Qv(i,c){let l=0;for(;l<i.length&&l<c.length;){const f=c[l]-i[l];if(f)return f;l++}return i.length<c.length?i.length===1&&i[0]===40+40?-1:1:i.length>c.length?c.length===1&&c[0]===40+40?1:-1:0}function Yv(i,c){let l=0;const f=i.score,v=c.score;for(;l<f.length&&l<v.length;){const B=Qv(f[l],v[l]);if(B)return B;l++}if(Math.abs(v.length-f.length)===1){if(Kf(f))return 1;if(Kf(v))return-1}return v.length-f.length}function Kf(i){const c=i[i.length-1];return i.length>0&&c[c.length-1]<0}const Zv={type:0,value:""},e1=/[a-zA-Z0-9_]/;function t1(i){if(!i)return[[]];if(i==="/")return[[Zv]];if(!i.startsWith("/"))throw new Error(`Invalid path "${i}"`);function c(Tt){throw new Error(`ERR (${l})/"${Le}": ${Tt}`)}let l=0,f=l;const v=[];let B;function Y(){B&&v.push(B),B=[]}let pe=0,de,Le="",Me="";function rt(){!Le||(l===0?B.push({type:0,value:Le}):l===1||l===2||l===3?(B.length>1&&(de==="*"||de==="+")&&c(`A repeatable param (${Le}) must be alone in its segment. eg: '/:ids+.`),B.push({type:1,value:Le,regexp:Me,repeatable:de==="*"||de==="+",optional:de==="*"||de==="?"})):c("Invalid state to consume buffer"),Le="")}function yt(){Le+=de}for(;pe<i.length;){if(de=i[pe++],de==="\\"&&l!==2){f=l,l=4;continue}switch(l){case 0:de==="/"?(Le&&rt(),Y()):de===":"?(rt(),l=1):yt();break;case 4:yt(),l=f;break;case 1:de==="("?l=2:e1.test(de)?yt():(rt(),l=0,de!=="*"&&de!=="?"&&de!=="+"&&pe--);break;case 2:de===")"?Me[Me.length-1]=="\\"?Me=Me.slice(0,-1)+de:l=3:Me+=de;break;case 3:rt(),l=0,de!=="*"&&de!=="?"&&de!=="+"&&pe--,Me="";break;default:c("Unknown state");break}}return l===2&&c(`Unfinished custom RegExp for param "${Le}"`),rt(),Y(),v}function r1(i,c,l){const f=Kv(t1(i.path),l),v=oa(f,{record:i,parent:c,children:[],alias:[]});return c&&!v.record.aliasOf==!c.record.aliasOf&&c.children.push(v),v}function n1(i,c){const l=[],f=new Map;c=Yf({strict:!1,end:!0,sensitive:!1},c);function v(Me){return f.get(Me)}function B(Me,rt,yt){const Tt=!yt,Gt=s1(Me);Gt.aliasOf=yt&&yt.record;const sr=Yf(c,Me),Mr=[Gt];if("alias"in Me){const Wt=typeof Me.alias=="string"?[Me.alias]:Me.alias;for(const Ar of Wt)Mr.push(oa({},Gt,{components:yt?yt.record.components:Gt.components,path:Ar,aliasOf:yt?yt.record:Gt}))}let At,Mt;for(const Wt of Mr){const{path:Ar}=Wt;if(rt&&Ar[0]!=="/"){const an=rt.record.path,Vn=an[an.length-1]==="/"?"":"/";Wt.path=rt.record.path+(Ar&&Vn+Ar)}if(At=r1(Wt,rt,sr),yt?yt.alias.push(At):(Mt=Mt||At,Mt!==At&&Mt.alias.push(At),Tt&&Me.name&&!Qf(At)&&Y(Me.name)),Gt.children){const an=Gt.children;for(let Vn=0;Vn<an.length;Vn++)B(an[Vn],At,yt&&yt.children[Vn])}yt=yt||At,de(At)}return Mt?()=>{Y(Mt)}:Wc}function Y(Me){if(km(Me)){const rt=f.get(Me);rt&&(f.delete(Me),l.splice(l.indexOf(rt),1),rt.children.forEach(Y),rt.alias.forEach(Y))}else{const rt=l.indexOf(Me);rt>-1&&(l.splice(rt,1),Me.record.name&&f.delete(Me.record.name),Me.children.forEach(Y),Me.alias.forEach(Y))}}function pe(){return l}function de(Me){let rt=0;for(;rt<l.length&&Yv(Me,l[rt])>=0&&(Me.record.path!==l[rt].record.path||!Nm(Me,l[rt]));)rt++;l.splice(rt,0,Me),Me.record.name&&!Qf(Me)&&f.set(Me.record.name,Me)}function Le(Me,rt){let yt,Tt={},Gt,sr;if("name"in Me&&Me.name){if(yt=f.get(Me.name),!yt)throw Tc(1,{location:Me});sr=yt.record.name,Tt=oa(i1(rt.params,yt.keys.filter(Mt=>!Mt.optional).map(Mt=>Mt.name)),Me.params),Gt=yt.stringify(Tt)}else if("path"in Me)Gt=Me.path,yt=l.find(Mt=>Mt.re.test(Gt)),yt&&(Tt=yt.parse(Gt),sr=yt.record.name);else{if(yt=rt.name?f.get(rt.name):l.find(Mt=>Mt.re.test(rt.path)),!yt)throw Tc(1,{location:Me,currentLocation:rt});sr=yt.record.name,Tt=oa({},rt.params,Me.params),Gt=yt.stringify(Tt)}const Mr=[];let At=yt;for(;At;)Mr.unshift(At.record),At=At.parent;return{name:sr,path:Gt,params:Tt,matched:Mr,meta:o1(Mr)}}return i.forEach(Me=>B(Me)),{addRoute:B,resolve:Le,removeRoute:Y,getRoutes:pe,getRecordMatcher:v}}function i1(i,c){const l={};for(const f of c)f in i&&(l[f]=i[f]);return l}function s1(i){return{path:i.path,redirect:i.redirect,name:i.name,meta:i.meta||{},aliasOf:void 0,beforeEnter:i.beforeEnter,props:a1(i),children:i.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in i?i.components||null:i.component&&{default:i.component}}}function a1(i){const c={},l=i.props||!1;if("component"in i)c.default=l;else for(const f in i.components)c[f]=typeof l=="boolean"?l:l[f];return c}function Qf(i){for(;i;){if(i.record.aliasOf)return!0;i=i.parent}return!1}function o1(i){return i.reduce((c,l)=>oa(c,l.meta),{})}function Yf(i,c){const l={};for(const f in i)l[f]=f in c?c[f]:i[f];return l}function Nm(i,c){return c.children.some(l=>l===i||Nm(i,l))}const Bm=/#/g,u1=/&/g,l1=/\//g,c1=/=/g,p1=/\?/g,_m=/\+/g,h1=/%5B/g,f1=/%5D/g,Im=/%5E/g,d1=/%60/g,Om=/%7B/g,m1=/%7C/g,Lm=/%7D/g,g1=/%20/g;function Hh(i){return encodeURI(""+i).replace(m1,"|").replace(h1,"[").replace(f1,"]")}function y1(i){return Hh(i).replace(Om,"{").replace(Lm,"}").replace(Im,"^")}function Dh(i){return Hh(i).replace(_m,"%2B").replace(g1,"+").replace(Bm,"%23").replace(u1,"%26").replace(d1,"`").replace(Om,"{").replace(Lm,"}").replace(Im,"^")}function D1(i){return Dh(i).replace(c1,"%3D")}function v1(i){return Hh(i).replace(Bm,"%23").replace(p1,"%3F")}function x1(i){return i==null?"":v1(i).replace(l1,"%2F")}function wp(i){try{return decodeURIComponent(""+i)}catch{}return""+i}function C1(i){const c={};if(i===""||i==="?")return c;const f=(i[0]==="?"?i.slice(1):i).split("&");for(let v=0;v<f.length;++v){const B=f[v].replace(_m," "),Y=B.indexOf("="),pe=wp(Y<0?B:B.slice(0,Y)),de=Y<0?null:wp(B.slice(Y+1));if(pe in c){let Le=c[pe];rl(Le)||(Le=c[pe]=[Le]),Le.push(de)}else c[pe]=de}return c}function Zf(i){let c="";for(let l in i){const f=i[l];if(l=D1(l),f==null){f!==void 0&&(c+=(c.length?"&":"")+l);continue}(rl(f)?f.map(B=>B&&Dh(B)):[f&&Dh(f)]).forEach(B=>{B!==void 0&&(c+=(c.length?"&":"")+l,B!=null&&(c+="="+B))})}return c}function E1(i){const c={};for(const l in i){const f=i[l];f!==void 0&&(c[l]=rl(f)?f.map(v=>v==null?null:""+v):f==null?f:""+f)}return c}const b1=Symbol(""),ed=Symbol(""),qh=Symbol(""),$h=Symbol(""),vh=Symbol("");function Lc(){let i=[];function c(f){return i.push(f),()=>{const v=i.indexOf(f);v>-1&&i.splice(v,1)}}function l(){i=[]}return{add:c,list:()=>i,reset:l}}function Yl(i,c,l,f,v){const B=f&&(f.enterCallbacks[v]=f.enterCallbacks[v]||[]);return()=>new Promise((Y,pe)=>{const de=rt=>{rt===!1?pe(Tc(4,{from:l,to:c})):rt instanceof Error?pe(rt):Gv(rt)?pe(Tc(2,{from:c,to:rt})):(B&&f.enterCallbacks[v]===B&&typeof rt=="function"&&B.push(rt),Y())},Le=i.call(f&&f.instances[v],c,l,de);let Me=Promise.resolve(Le);i.length<3&&(Me=Me.then(de)),Me.catch(rt=>pe(rt))})}function eh(i,c,l,f){const v=[];for(const B of i)for(const Y in B.components){let pe=B.components[Y];if(!(c!=="beforeRouteEnter"&&!B.instances[Y]))if(A1(pe)){const Le=(pe.__vccOpts||pe)[c];Le&&v.push(Yl(Le,l,f,B,Y))}else{let de=pe();v.push(()=>de.then(Le=>{if(!Le)return Promise.reject(new Error(`Couldn't resolve component "${Y}" at "${B.path}"`));const Me=Fv(Le)?Le.default:Le;B.components[Y]=Me;const yt=(Me.__vccOpts||Me)[c];return yt&&Yl(yt,l,f,B,Y)()}))}}return v}function A1(i){return typeof i=="object"||"displayName"in i||"props"in i||"__vccOpts"in i}function td(i){const c=Ol(qh),l=Ol($h),f=Ks(()=>c.resolve(Cs(i.to))),v=Ks(()=>{const{matched:de}=f.value,{length:Le}=de,Me=de[Le-1],rt=l.matched;if(!Me||!rt.length)return-1;const yt=rt.findIndex(wc.bind(null,Me));if(yt>-1)return yt;const Tt=rd(de[Le-2]);return Le>1&&rd(Me)===Tt&&rt[rt.length-1].path!==Tt?rt.findIndex(wc.bind(null,de[Le-2])):yt}),B=Ks(()=>v.value>-1&&F1(l.params,f.value.params)),Y=Ks(()=>v.value>-1&&v.value===l.matched.length-1&&Sm(l.params,f.value.params));function pe(de={}){return S1(de)?c[Cs(i.replace)?"replace":"push"](Cs(i.to)).catch(Wc):Promise.resolve()}return{route:f,href:Ks(()=>f.value.href),isActive:B,isExactActive:Y,navigate:pe}}const w1=nl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:td,setup(i,{slots:c}){const l=Pc(td(i)),{options:f}=Ol(qh),v=Ks(()=>({[nd(i.activeClass,f.linkActiveClass,"router-link-active")]:l.isActive,[nd(i.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:l.isExactActive}));return()=>{const B=c.default&&c.default(l);return i.custom?B:Rh("a",{"aria-current":l.isExactActive?i.ariaCurrentValue:null,href:l.href,onClick:l.navigate,class:v.value},B)}}}),T1=w1;function S1(i){if(!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)&&!i.defaultPrevented&&!(i.button!==void 0&&i.button!==0)){if(i.currentTarget&&i.currentTarget.getAttribute){const c=i.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(c))return}return i.preventDefault&&i.preventDefault(),!0}}function F1(i,c){for(const l in c){const f=c[l],v=i[l];if(typeof f=="string"){if(f!==v)return!1}else if(!rl(v)||v.length!==f.length||f.some((B,Y)=>B!==v[Y]))return!1}return!0}function rd(i){return i?i.aliasOf?i.aliasOf.path:i.path:""}const nd=(i,c,l)=>i!=null?i:c!=null?c:l,k1=nl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(i,{attrs:c,slots:l}){const f=Ol(vh),v=Ks(()=>i.route||f.value),B=Ol(ed,0),Y=Ks(()=>{let Le=Cs(B);const{matched:Me}=v.value;let rt;for(;(rt=Me[Le])&&!rt.components;)Le++;return Le}),pe=Ks(()=>v.value.matched[Y.value]);hp(ed,Ks(()=>Y.value+1)),hp(b1,pe),hp(vh,v);const de=Pa();return Ga(()=>[de.value,pe.value,i.name],([Le,Me,rt],[yt,Tt,Gt])=>{Me&&(Me.instances[rt]=Le,Tt&&Tt!==Me&&Le&&Le===yt&&(Me.leaveGuards.size||(Me.leaveGuards=Tt.leaveGuards),Me.updateGuards.size||(Me.updateGuards=Tt.updateGuards))),Le&&Me&&(!Tt||!wc(Me,Tt)||!yt)&&(Me.enterCallbacks[rt]||[]).forEach(sr=>sr(Le))},{flush:"post"}),()=>{const Le=v.value,Me=i.name,rt=pe.value,yt=rt&&rt.components[Me];if(!yt)return id(l.default,{Component:yt,route:Le});const Tt=rt.props[Me],Gt=Tt?Tt===!0?Le.params:typeof Tt=="function"?Tt(Le):Tt:null,Mr=Rh(yt,oa({},Gt,c,{onVnodeUnmounted:At=>{At.component.isUnmounted&&(rt.instances[Me]=null)},ref:de}));return id(l.default,{Component:Mr,route:Le})||Mr}}});function id(i,c){if(!i)return null;const l=i(c);return l.length===1?l[0]:l}const P1=k1;function N1(i){const c=n1(i.routes,i),l=i.parseQuery||C1,f=i.stringifyQuery||Zf,v=i.history,B=Lc(),Y=Lc(),pe=Lc(),de=Rc(Jl);let Le=Jl;yc&&i.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const Me=Yp.bind(null,_r=>""+_r),rt=Yp.bind(null,x1),yt=Yp.bind(null,wp);function Tt(_r,Kr){let yr,dn;return km(_r)?(yr=c.getRecordMatcher(_r),dn=Kr):dn=_r,c.addRoute(dn,yr)}function Gt(_r){const Kr=c.getRecordMatcher(_r);Kr&&c.removeRoute(Kr)}function sr(){return c.getRoutes().map(_r=>_r.record)}function Mr(_r){return!!c.getRecordMatcher(_r)}function At(_r,Kr){if(Kr=oa({},Kr||de.value),typeof _r=="string"){const li=Zp(l,_r,Kr.path),ct=c.resolve({path:li.path},Kr),Ot=v.createHref(li.fullPath);return oa(li,ct,{params:yt(ct.params),hash:wp(li.hash),redirectedFrom:void 0,href:Ot})}let yr;if("path"in _r)yr=oa({},_r,{path:Zp(l,_r.path,Kr.path).path});else{const li=oa({},_r.params);for(const ct in li)li[ct]==null&&delete li[ct];yr=oa({},_r,{params:rt(_r.params)}),Kr.params=rt(Kr.params)}const dn=c.resolve(yr,Kr),oi=_r.hash||"";dn.params=Me(yt(dn.params));const Jn=Nv(f,oa({},_r,{hash:y1(oi),path:dn.path})),Un=v.createHref(Jn);return oa({fullPath:Jn,hash:oi,query:f===Zf?E1(_r.query):_r.query||{}},dn,{redirectedFrom:void 0,href:Un})}function Mt(_r){return typeof _r=="string"?Zp(l,_r,de.value.path):oa({},_r)}function Wt(_r,Kr){if(Le!==_r)return Tc(8,{from:Kr,to:_r})}function Ar(_r){return An(_r)}function an(_r){return Ar(oa(Mt(_r),{replace:!0}))}function Vn(_r){const Kr=_r.matched[_r.matched.length-1];if(Kr&&Kr.redirect){const{redirect:yr}=Kr;let dn=typeof yr=="function"?yr(_r):yr;return typeof dn=="string"&&(dn=dn.includes("?")||dn.includes("#")?dn=Mt(dn):{path:dn},dn.params={}),oa({query:_r.query,hash:_r.hash,params:"path"in dn?{}:_r.params},dn)}}function An(_r,Kr){const yr=Le=At(_r),dn=de.value,oi=_r.state,Jn=_r.force,Un=_r.replace===!0,li=Vn(yr);if(li)return An(oa(Mt(li),{state:oi,force:Jn,replace:Un}),Kr||yr);const ct=yr;ct.redirectedFrom=Kr;let Ot;return!Jn&&Bv(f,dn,yr)&&(Ot=Tc(16,{to:ct,from:dn}),Yi(dn,dn,!0,!1)),(Ot?Promise.resolve(Ot):ai(ct,dn)).catch(Er=>Bl(Er)?Bl(Er,2)?Er:Kn(Er):lr(Er,ct,dn)).then(Er=>{if(Er){if(Bl(Er,2))return An(oa({replace:Un},Mt(Er.to),{state:oi,force:Jn}),Kr||ct)}else Er=Mn(ct,dn,!0,Un,oi);return $n(ct,dn,Er),Er})}function gi(_r,Kr){const yr=Wt(_r,Kr);return yr?Promise.reject(yr):Promise.resolve()}function ai(_r,Kr){let yr;const[dn,oi,Jn]=B1(_r,Kr);yr=eh(dn.reverse(),"beforeRouteLeave",_r,Kr);for(const li of dn)li.leaveGuards.forEach(ct=>{yr.push(Yl(ct,_r,Kr))});const Un=gi.bind(null,_r,Kr);return yr.push(Un),dc(yr).then(()=>{yr=[];for(const li of B.list())yr.push(Yl(li,_r,Kr));return yr.push(Un),dc(yr)}).then(()=>{yr=eh(oi,"beforeRouteUpdate",_r,Kr);for(const li of oi)li.updateGuards.forEach(ct=>{yr.push(Yl(ct,_r,Kr))});return yr.push(Un),dc(yr)}).then(()=>{yr=[];for(const li of _r.matched)if(li.beforeEnter&&!Kr.matched.includes(li))if(rl(li.beforeEnter))for(const ct of li.beforeEnter)yr.push(Yl(ct,_r,Kr));else yr.push(Yl(li.beforeEnter,_r,Kr));return yr.push(Un),dc(yr)}).then(()=>(_r.matched.forEach(li=>li.enterCallbacks={}),yr=eh(Jn,"beforeRouteEnter",_r,Kr),yr.push(Un),dc(yr))).then(()=>{yr=[];for(const li of Y.list())yr.push(Yl(li,_r,Kr));return yr.push(Un),dc(yr)}).catch(li=>Bl(li,8)?li:Promise.reject(li))}function $n(_r,Kr,yr){for(const dn of pe.list())dn(_r,Kr,yr)}function Mn(_r,Kr,yr,dn,oi){const Jn=Wt(_r,Kr);if(Jn)return Jn;const Un=Kr===Jl,li=yc?history.state:{};yr&&(dn||Un?v.replace(_r.fullPath,oa({scroll:Un&&li&&li.scroll},oi)):v.push(_r.fullPath,oi)),de.value=_r,Yi(_r,Kr,yr,Un),Kn()}let yi;function Cr(){yi||(yi=v.listen((_r,Kr,yr)=>{if(!ts.listening)return;const dn=At(_r),oi=Vn(dn);if(oi){An(oa(oi,{replace:!0}),dn).catch(Wc);return}Le=dn;const Jn=de.value;yc&&Uv(Vf(Jn.fullPath,yr.delta),$p()),ai(dn,Jn).catch(Un=>Bl(Un,12)?Un:Bl(Un,2)?(An(Un.to,dn).then(li=>{Bl(li,20)&&!yr.delta&&yr.type===ep.pop&&v.go(-1,!1)}).catch(Wc),Promise.reject()):(yr.delta&&v.go(-yr.delta,!1),lr(Un,dn,Jn))).then(Un=>{Un=Un||Mn(dn,Jn,!1),Un&&(yr.delta&&!Bl(Un,8)?v.go(-yr.delta,!1):yr.type===ep.pop&&Bl(Un,20)&&v.go(-1,!1)),$n(dn,Jn,Un)}).catch(Wc)}))}let Tn=Lc(),we=Lc(),rn;function lr(_r,Kr,yr){Kn(_r);const dn=we.list();return dn.length?dn.forEach(oi=>oi(_r,Kr,yr)):console.error(_r),Promise.reject(_r)}function Sn(){return rn&&de.value!==Jl?Promise.resolve():new Promise((_r,Kr)=>{Tn.add([_r,Kr])})}function Kn(_r){return rn||(rn=!_r,Cr(),Tn.list().forEach(([Kr,yr])=>_r?yr(_r):Kr()),Tn.reset()),_r}function Yi(_r,Kr,yr,dn){const{scrollBehavior:oi}=i;if(!yc||!oi)return Promise.resolve();const Jn=!yr&&zv(Vf(_r.fullPath,0))||(dn||!yr)&&history.state&&history.state.scroll||null;return Ip().then(()=>oi(_r,Kr,Jn)).then(Un=>Un&&Rv(Un)).catch(Un=>lr(Un,_r,Kr))}const ys=_r=>v.go(_r);let Ns;const cs=new Set,ts={currentRoute:de,listening:!0,addRoute:Tt,removeRoute:Gt,hasRoute:Mr,getRoutes:sr,resolve:At,options:i,push:Ar,replace:an,go:ys,back:()=>ys(-1),forward:()=>ys(1),beforeEach:B.add,beforeResolve:Y.add,afterEach:pe.add,onError:we.add,isReady:Sn,install(_r){const Kr=this;_r.component("RouterLink",T1),_r.component("RouterView",P1),_r.config.globalProperties.$router=Kr,Object.defineProperty(_r.config.globalProperties,"$route",{enumerable:!0,get:()=>Cs(de)}),yc&&!Ns&&de.value===Jl&&(Ns=!0,Ar(v.location).catch(oi=>{}));const yr={};for(const oi in Jl)yr[oi]=Ks(()=>de.value[oi]);_r.provide(qh,Kr),_r.provide($h,Pc(yr)),_r.provide(vh,de);const dn=_r.unmount;cs.add(_r),_r.unmount=function(){cs.delete(_r),cs.size<1&&(Le=Jl,yi&&yi(),yi=null,de.value=Jl,Ns=!1,rn=!1),dn()}}};return ts}function dc(i){return i.reduce((c,l)=>c.then(()=>l()),Promise.resolve())}function B1(i,c){const l=[],f=[],v=[],B=Math.max(c.matched.length,i.matched.length);for(let Y=0;Y<B;Y++){const pe=c.matched[Y];pe&&(i.matched.find(Le=>wc(Le,pe))?f.push(pe):l.push(pe));const de=i.matched[Y];de&&(c.matched.find(Le=>wc(Le,de))||v.push(de))}return[l,f,v]}function _1(){return Ol($h)}const I1=nl({__name:"FileIcon",props:{id:null},setup(i){const c=i,l=Ks(()=>c.id.split(/\./g).pop()),f=Ks(()=>{switch(l.value){case"vue":return"i-logos-vue";default:return"i-carbon-document-blank"}});return(v,B)=>(xa(),ho("div",{class:Cc(Cs(f))},null,2))}}),O1={open:""},L1={"cursor-default":"","select-none":"","text-sm":"",truncate:"",p:"y1"},M1={"ml-1":""},j1=nl({__name:"ModuleTreeNode",props:{node:null,icon:{default:"i-carbon-folder"}},setup(i){const c=_1();return(l,f)=>{const v=Dp("ModuleTreeNode",!0),B=I1,Y=Dp("RouterLink");return xa(),ho("details",O1,[Vi("summary",L1,[Vi("div",{class:Cc(i.icon)},null,2),Qu(" "+Bo(i.node.name),1)]),(xa(!0),ho(Xo,null,sf(Object.entries(i.node.children),pe=>(xa(),Ec(v,{key:pe[0],ml2:"",node:pe[1]},null,8,["node"]))),128)),(xa(!0),ho(Xo,null,sf(i.node.items,pe=>(xa(),ho("div",{key:pe.full,ml4:"","ws-nowrap":""},[ta(Y,{block:"","text-sm":"",p:"x2 y1",rounded:"",to:`/module/${encodeURIComponent(pe.full)}`,class:Cc({"bg-gray/10":pe.full===Cs(c).params.id})},{default:Il(()=>[ta(B,{id:pe.path},null,8,["id"]),Vi("span",M1,Bo(pe.path.split("/").pop()),1)]),_:2},1032,["to","class"])]))),128))])}}}),R1="/__unocss/icon.svg",U1={p:"x4 y3",b:"b main",flex:"","children:my-auto":""},z1=Vi("div",{flex:"","flex-auto":"","children:my-auto":"","ws-nowrap":""},[Vi("img",{src:R1,filter:"","dark:invert":"","inline-block":"",h:"1.3em",m:"r-1.5"}),Vi("div",{"of-hidden":""},[Qu(" Inspector "),Vi("sup",{"text-teal5":"","bg-teal5:10":"",p:"x1.5 y0.5",rounded:"",italic:""},"beta")])],-1),H1=nl({__name:"NarBar",setup(i){const c=nD(),l=wy(c);return(f,v)=>(xa(),ho("nav",U1,[z1,Vi("button",{"text-lg":"","i-carbon-sun":"","dark:i-carbon-moon":"",onClick:v[0]||(v[0]=B=>Cs(l)())})]))}}),q1={"h-full":""},$1={b:"r main","of-hidden":""},W1={pt:"4",flex:"~ col gap-3"},V1=Vi("div",{"i-carbon-dashboard":""},null,-1),G1=Vi("span",null," Overview ",-1),X1=Vi("div",{"i-carbon-terminal":""},null,-1),J1=Vi("span",null," REPL ",-1),K1=Vi("div",{b:"b main"},null,-1),Q1={b:"r main",class:"scrolls scrolls-sidebar"},Y1=nl({__name:"Sidebar",setup(i){return(c,l)=>{const f=H1,v=Dp("RouterLink"),B=j1;return xa(),ho("div",q1,[Vi("div",$1,[ta(f),Vi("div",W1,[ta(v,{block:"",to:"/","text-sm":"",m:"l-3.7"},{default:Il(()=>[V1,G1]),_:1}),ta(v,{block:"",to:"/repl","text-sm":"",m:"l-3.7"},{default:Il(()=>[X1,J1]),_:1}),K1])]),Vi("div",Q1,[Object.keys(Cs(lp).workspace.children).length?(xa(),Ec(B,{key:0,node:Cs(lp).workspace,p:"l3 t4",icon:"i-carbon-portfolio"},null,8,["node"])):bp("",!0),Object.keys(Cs(lp).root.children).length?(xa(),Ec(B,{key:1,node:Cs(lp).root,p:"l3 t4",icon:"i-carbon-vmdk-disk"},null,8,["node"])):bp("",!0)])])}}});var Z1=Object.defineProperty,ex=Object.defineProperties,tx=Object.getOwnPropertyDescriptors,Tp=Object.getOwnPropertySymbols,Mm=Object.prototype.hasOwnProperty,jm=Object.prototype.propertyIsEnumerable,sd=(i,c,l)=>c in i?Z1(i,c,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[c]=l,rx=(i,c)=>{for(var l in c||(c={}))Mm.call(c,l)&&sd(i,l,c[l]);if(Tp)for(var l of Tp(c))jm.call(c,l)&&sd(i,l,c[l]);return i},nx=(i,c)=>ex(i,tx(c)),ix=(i,c)=>{var l={};for(var f in i)Mm.call(i,f)&&c.indexOf(f)<0&&(l[f]=i[f]);if(i!=null&&Tp)for(var f of Tp(i))c.indexOf(f)<0&&jm.call(i,f)&&(l[f]=i[f]);return l};const sx={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((i,c)=>(i[c.id]=c)&&i,{})}},methods:{updatePaneComponents(){this.panes.forEach(i=>{i.update&&i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(i,c){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=c},onMouseMove(i){this.touch.mouseDown&&(i.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(i)),this.$emit("resize",this.panes.map(c=>({min:c.min,max:c.max,size:c.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(i,c){"ontouchstart"in window&&(i.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===c?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(i,c),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=c,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[c])},onSplitterDblClick(i,c){let l=0;this.panes=this.panes.map((f,v)=>(f.size=v===c?f.max:f.min,v!==c&&(l+=f.min),f)),this.panes[c].size-=l,this.$emit("pane-maximize",this.panes[c])},onPaneClick(i,c){this.$emit("pane-click",this.indexedPanes[c])},getCurrentMouseDrag(i){const c=this.container.getBoundingClientRect(),{clientX:l,clientY:f}="ontouchstart"in window&&i.touches?i.touches[0]:i;return{x:l-c.left,y:f-c.top}},getCurrentDragPercentage(i){i=i[this.horizontal?"y":"x"];const c=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(i=c-i),i*100/c},calculatePanesSize(i){const c=this.touch.activeSplitter;let l={prevPanesSize:this.sumPrevPanesSize(c),nextPanesSize:this.sumNextPanesSize(c),prevReachedMinPanes:0,nextReachedMinPanes:0};const f=0+(this.pushOtherPanes?0:l.prevPanesSize),v=100-(this.pushOtherPanes?0:l.nextPanesSize),B=Math.max(Math.min(this.getCurrentDragPercentage(i),v),f);let Y=[c,c+1],pe=this.panes[Y[0]]||null,de=this.panes[Y[1]]||null;const Le=pe.max<100&&B>=pe.max+l.prevPanesSize,Me=de.max<100&&B<=100-(de.max+this.sumNextPanesSize(c+1));if(Le||Me){Le?(pe.size=pe.max,de.size=Math.max(100-pe.max-l.prevPanesSize-l.nextPanesSize,0)):(pe.size=Math.max(100-de.max-l.prevPanesSize-this.sumNextPanesSize(c+1),0),de.size=de.max);return}if(this.pushOtherPanes){const rt=this.doPushOtherPanes(l,B);if(!rt)return;({sums:l,panesToResize:Y}=rt),pe=this.panes[Y[0]]||null,de=this.panes[Y[1]]||null}pe!==null&&(pe.size=Math.min(Math.max(B-l.prevPanesSize-l.prevReachedMinPanes,pe.min),pe.max)),de!==null&&(de.size=Math.min(Math.max(100-B-l.nextPanesSize-l.nextReachedMinPanes,de.min),de.max))},doPushOtherPanes(i,c){const l=this.touch.activeSplitter,f=[l,l+1];return c<i.prevPanesSize+this.panes[f[0]].min&&(f[0]=this.findPrevExpandedPane(l).index,i.prevReachedMinPanes=0,f[0]<l&&this.panes.forEach((v,B)=>{B>f[0]&&B<=l&&(v.size=v.min,i.prevReachedMinPanes+=v.min)}),i.prevPanesSize=this.sumPrevPanesSize(f[0]),f[0]===void 0)?(i.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((v,B)=>{B>0&&B<=l&&(v.size=v.min,i.prevReachedMinPanes+=v.min)}),this.panes[f[1]].size=100-i.prevReachedMinPanes-this.panes[0].min-i.prevPanesSize-i.nextPanesSize,null):c>100-i.nextPanesSize-this.panes[f[1]].min&&(f[1]=this.findNextExpandedPane(l).index,i.nextReachedMinPanes=0,f[1]>l+1&&this.panes.forEach((v,B)=>{B>l&&B<f[1]&&(v.size=v.min,i.nextReachedMinPanes+=v.min)}),i.nextPanesSize=this.sumNextPanesSize(f[1]-1),f[1]===void 0)?(i.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((v,B)=>{B<this.panesCount-1&&B>=l+1&&(v.size=v.min,i.nextReachedMinPanes+=v.min)}),this.panes[f[0]].size=100-i.prevPanesSize-i.nextReachedMinPanes-this.panes[this.panesCount-1].min-i.nextPanesSize,null):{sums:i,panesToResize:f}},sumPrevPanesSize(i){return this.panes.reduce((c,l,f)=>c+(f<i?l.size:0),0)},sumNextPanesSize(i){return this.panes.reduce((c,l,f)=>c+(f>i+1?l.size:0),0)},findPrevExpandedPane(i){return[...this.panes].reverse().find(l=>l.index<i&&l.size>l.min)||{}},findNextExpandedPane(i){return this.panes.find(l=>l.index>i+1&&l.size>l.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(c=>{const l=c.classList.contains("splitpanes__pane"),f=c.classList.contains("splitpanes__splitter");if(!l&&!f){c.parentNode.removeChild(c),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.");return}})},addSplitter(i,c,l=!1){const f=i-1,v=document.createElement("div");v.classList.add("splitpanes__splitter"),l||(v.onmousedown=B=>this.onMouseDown(B,f),typeof window<"u"&&"ontouchstart"in window&&(v.ontouchstart=B=>this.onMouseDown(B,f)),v.onclick=B=>this.onSplitterClick(B,f+1)),this.dblClickSplitter&&(v.ondblclick=B=>this.onSplitterDblClick(B,f+1)),c.parentNode.insertBefore(v,c)},removeSplitter(i){i.onmousedown=void 0,i.onclick=void 0,i.ondblclick=void 0,i.parentNode.removeChild(i)},redoSplitters(){const i=Array.from(this.container.children);i.forEach(l=>{l.className.includes("splitpanes__splitter")&&this.removeSplitter(l)});let c=0;i.forEach(l=>{l.className.includes("splitpanes__pane")&&(!c&&this.firstSplitter?this.addSplitter(c,l,!0):c&&this.addSplitter(c,l),c++)})},requestUpdate(i){var c=i,{target:l}=c,f=ix(c,["target"]);const v=this.indexedPanes[l._.uid];Object.entries(f).forEach(([B,Y])=>v[B]=Y)},onPaneAdd(i){let c=-1;Array.from(i.$el.parentNode.children).some(v=>(v.className.includes("splitpanes__pane")&&c++,v===i.$el));const l=parseFloat(i.minSize),f=parseFloat(i.maxSize);this.panes.splice(c,0,{id:i._.uid,index:c,min:isNaN(l)?0:l,max:isNaN(f)?100:f,size:i.size===null?null:parseFloat(i.size),givenSize:i.size,update:i.update}),this.panes.forEach((v,B)=>v.index=B),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[c]}),this.$emit("pane-add",{index:c,panes:this.panes.map(v=>({min:v.min,max:v.max,size:v.size}))})})},onPaneRemove(i){const c=this.panes.findIndex(f=>f.id===i._.uid),l=this.panes.splice(c,1)[0];this.panes.forEach((f,v)=>f.index=v),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:nx(rx({},l),{index:c})}),this.$emit("pane-remove",{removed:l,panes:this.panes.map(f=>({min:f.min,max:f.max,size:f.size}))})})},resetPaneSizes(i={}){!i.addedPane&&!i.removedPane?this.initialPanesSizing():this.panes.some(c=>c.givenSize!==null||c.min||c.max<100)?this.equalizeAfterAddOrRemove(i):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(c=>({min:c.min,max:c.max,size:c.size})))},equalize(){const i=100/this.panesCount;let c=0,l=[],f=[];this.panes.forEach(v=>{v.size=Math.max(Math.min(i,v.max),v.min),c-=v.size,v.size>=v.max&&l.push(v.id),v.size<=v.min&&f.push(v.id)}),c>.1&&this.readjustSizes(c,l,f)},initialPanesSizing(){100/this.panesCount;let i=100,c=[],l=[],f=0;this.panes.forEach(B=>{i-=B.size,B.size!==null&&f++,B.size>=B.max&&c.push(B.id),B.size<=B.min&&l.push(B.id)});let v=100;i>.1&&(this.panes.forEach(B=>{B.size===null&&(B.size=Math.max(Math.min(i/(this.panesCount-f),B.max),B.min)),v-=B.size}),v>.1&&this.readjustSizes(i,c,l))},equalizeAfterAddOrRemove({addedPane:i,removedPane:c}={}){let l=100/this.panesCount,f=0,v=[],B=[];i&&i.givenSize!==null&&(l=(100-i.givenSize)/(this.panesCount-1)),this.panes.forEach(Y=>{f-=Y.size,Y.size>=Y.max&&v.push(Y.id),Y.size<=Y.min&&B.push(Y.id)}),!(Math.abs(f)<.1)&&(this.panes.forEach(Y=>{i&&i.givenSize!==null&&i.id===Y.id||(Y.size=Math.max(Math.min(l,Y.max),Y.min)),f-=Y.size,Y.size>=Y.max&&v.push(Y.id),Y.size<=Y.min&&B.push(Y.id)}),f>.1&&this.readjustSizes(f,v,B))},readjustSizes(i,c,l){let f;i>0?f=i/(this.panesCount-c.length):f=i/(this.panesCount-l.length),this.panes.forEach((v,B)=>{if(i>0&&!c.includes(v.id)){const Y=Math.max(Math.min(v.size+f,v.max),v.min);i-=Y-v.size,v.size=Y}else if(!l.includes(v.id)){const Y=Math.max(Math.min(v.size+f,v.max),v.min);i-=Y-v.size,v.size=Y}v.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[v.id].size}%`})}),Math.abs(i)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(i){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((l,f)=>{l.ondblclick=i?v=>this.onSplitterDblClick(v,f):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Rh("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}};var ax=(i,c)=>{const l=i.__vccOpts||i;for(const[f,v]of c)l[f]=v;return l};const ox={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(i){this.style=i}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(i){this.requestUpdate({target:this,size:i})},minSizeNumber(i){this.requestUpdate({target:this,min:i})},maxSizeNumber(i){this.requestUpdate({target:this,max:i})}}};function ux(i,c,l,f,v,B){return xa(),ho("div",{class:"splitpanes__pane",onClick:c[0]||(c[0]=Y=>B.onPaneClick(Y,i._.uid)),style:tp(i.style)},[vp(i.$slots,"default")],4)}var ad=ax(ox,[["render",ux]]);const lx={"h-screen":"","w-screen":"","of-hidden":""},cx={"h-full":"","of-hidden":""},px=nl({__name:"App",setup(i){return(c,l)=>{const f=Y1,v=Dp("RouterView");return xa(),ho("div",lx,[ta(Cs(sx),null,{default:Il(()=>[ta(Cs(ad),{size:"20","push-other-panes":!1},{default:Il(()=>[ta(f)]),_:1}),ta(Cs(ad),{size:"80"},{default:Il(()=>[Vi("div",cx,[ta(v)])]),_:1})]),_:1})])}}}),Rm=py(px);Rm.use(N1({history:Vv(),routes:Sv}));Rm.mount("#app");export{QD as A,Ks as B,bp as C,Bo as D,ad as E,sx as F,$D as G,_1 as H,ID as _,fx as a,dm as b,ho as c,nl as d,ta as e,gx as f,Vi as g,l0 as h,Cs as i,ka as j,Qu as k,jD as l,PD as m,tp as n,xa as o,Dm as p,Ec as q,Pa as r,dx as s,bD as t,WD as u,oy as v,Il as w,mx as x,Lg as y,hx as z};
|