@skaldapp/runtime 3.1.0 → 3.1.2
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/.vite/manifest.json +1 -1
- package/dist/assets/index-CN9QoC7K.js +7 -0
- package/dist/assets/markdown-sO0C2Oe0.js +1 -0
- package/dist/assets/{sucrase-TMlnYa6s.js → sucrase-DObGk1l5.js} +1 -1
- package/dist/assets/unocss-D4cmV7ah.js +1 -0
- package/dist/assets/{vscode-CFlNgtc7.js → vscode-BCxqMo1k.js} +1 -1
- package/dist/assets/{vue-CZDGxDyo.js → vue-C0ZnUCoU.js} +1 -1
- package/dist/index.html +6 -6
- package/package.json +10 -23
- package/dist/assets/index-D_pz0pja.js +0 -7
- package/dist/assets/markdown-wpmP4LMJ.js +0 -1
- package/dist/assets/unocss-C0zp3-Vo.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e,b as t}from"./unocss-C0zp3-Vo.js";var n,s,o;!function(e){e[e.NONE=0]="NONE";e[e._abstract=1]="_abstract";e[e._accessor=2]="_accessor";e[e._as=3]="_as";e[e._assert=4]="_assert";e[e._asserts=5]="_asserts";e[e._async=6]="_async";e[e._await=7]="_await";e[e._checks=8]="_checks";e[e._constructor=9]="_constructor";e[e._declare=10]="_declare";e[e._enum=11]="_enum";e[e._exports=12]="_exports";e[e._from=13]="_from";e[e._get=14]="_get";e[e._global=15]="_global";e[e._implements=16]="_implements";e[e._infer=17]="_infer";e[e._interface=18]="_interface";e[e._is=19]="_is";e[e._keyof=20]="_keyof";e[e._mixins=21]="_mixins";e[e._module=22]="_module";e[e._namespace=23]="_namespace";e[e._of=24]="_of";e[e._opaque=25]="_opaque";e[e._out=26]="_out";e[e._override=27]="_override";e[e._private=28]="_private";e[e._protected=29]="_protected";e[e._proto=30]="_proto";e[e._public=31]="_public";e[e._readonly=32]="_readonly";e[e._require=33]="_require";e[e._satisfies=34]="_satisfies";e[e._set=35]="_set";e[e._static=36]="_static";e[e._symbol=37]="_symbol";e[e._type=38]="_type";e[e._unique=39]="_unique";e[e._using=40]="_using"}(n||(n={})),function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";e[e.IS_KEYWORD=16]="IS_KEYWORD";e[e.IS_ASSIGN=32]="IS_ASSIGN";e[e.IS_RIGHT_ASSOCIATIVE=64]="IS_RIGHT_ASSOCIATIVE";e[e.IS_PREFIX=128]="IS_PREFIX";e[e.IS_POSTFIX=256]="IS_POSTFIX";e[e.IS_EXPRESSION_START=512]="IS_EXPRESSION_START";e[e.num=512]="num";e[e.bigint=1536]="bigint";e[e.decimal=2560]="decimal";e[e.regexp=3584]="regexp";e[e.string=4608]="string";e[e.name=5632]="name";e[e.eof=6144]="eof";e[e.bracketL=7680]="bracketL";e[e.bracketR=8192]="bracketR";e[e.braceL=9728]="braceL";e[e.braceBarL=10752]="braceBarL";e[e.braceR=11264]="braceR";e[e.braceBarR=12288]="braceBarR";e[e.parenL=13824]="parenL";e[e.parenR=14336]="parenR";e[e.comma=15360]="comma";e[e.semi=16384]="semi";e[e.colon=17408]="colon";e[e.doubleColon=18432]="doubleColon";e[e.dot=19456]="dot";e[e.question=20480]="question";e[e.questionDot=21504]="questionDot";e[e.arrow=22528]="arrow";e[e.template=23552]="template";e[e.ellipsis=24576]="ellipsis";e[e.backQuote=25600]="backQuote";e[e.dollarBraceL=27136]="dollarBraceL";e[e.at=27648]="at";e[e.hash=29184]="hash";e[e.eq=29728]="eq";e[e.assign=30752]="assign";e[e.preIncDec=32640]="preIncDec";e[e.postIncDec=33664]="postIncDec";e[e.bang=34432]="bang";e[e.tilde=35456]="tilde";e[e.pipeline=35841]="pipeline";e[e.nullishCoalescing=36866]="nullishCoalescing";e[e.logicalOR=37890]="logicalOR";e[e.logicalAND=38915]="logicalAND";e[e.bitwiseOR=39940]="bitwiseOR";e[e.bitwiseXOR=40965]="bitwiseXOR";e[e.bitwiseAND=41990]="bitwiseAND";e[e.equality=43015]="equality";e[e.lessThan=44040]="lessThan";e[e.greaterThan=45064]="greaterThan";e[e.relationalOrEqual=46088]="relationalOrEqual";e[e.bitShiftL=47113]="bitShiftL";e[e.bitShiftR=48137]="bitShiftR";e[e.plus=49802]="plus";e[e.minus=50826]="minus";e[e.modulo=51723]="modulo";e[e.star=52235]="star";e[e.slash=53259]="slash";e[e.exponent=54348]="exponent";e[e.jsxName=55296]="jsxName";e[e.jsxText=56320]="jsxText";e[e.jsxEmptyText=57344]="jsxEmptyText";e[e.jsxTagStart=58880]="jsxTagStart";e[e.jsxTagEnd=59392]="jsxTagEnd";e[e.typeParameterStart=60928]="typeParameterStart";e[e.nonNullAssertion=61440]="nonNullAssertion";e[e._break=62480]="_break";e[e._case=63504]="_case";e[e._catch=64528]="_catch";e[e._continue=65552]="_continue";e[e._debugger=66576]="_debugger";e[e._default=67600]="_default";e[e._do=68624]="_do";e[e._else=69648]="_else";e[e._finally=70672]="_finally";e[e._for=71696]="_for";e[e._function=73232]="_function";e[e._if=73744]="_if";e[e._return=74768]="_return";e[e._switch=75792]="_switch";e[e._throw=77456]="_throw";e[e._try=77840]="_try";e[e._var=78864]="_var";e[e._let=79888]="_let";e[e._const=80912]="_const";e[e._while=81936]="_while";e[e._with=82960]="_with";e[e._new=84496]="_new";e[e._this=85520]="_this";e[e._super=86544]="_super";e[e._class=87568]="_class";e[e._extends=88080]="_extends";e[e._export=89104]="_export";e[e._import=90640]="_import";e[e._yield=91664]="_yield";e[e._null=92688]="_null";e[e._true=93712]="_true";e[e._false=94736]="_false";e[e._in=95256]="_in";e[e._instanceof=96280]="_instanceof";e[e._typeof=97936]="_typeof";e[e._void=98960]="_void";e[e._delete=99984]="_delete";e[e._async=100880]="_async";e[e._get=101904]="_get";e[e._set=102928]="_set";e[e._declare=103952]="_declare";e[e._readonly=104976]="_readonly";e[e._abstract=106e3]="_abstract";e[e._static=107024]="_static";e[e._public=107536]="_public";e[e._private=108560]="_private";e[e._protected=109584]="_protected";e[e._override=110608]="_override";e[e._as=112144]="_as";e[e._enum=113168]="_enum";e[e._type=114192]="_type";e[e._implements=115216]="_implements"}(s||(s={}));class r{constructor(e,t,n){this.startTokenIndex=e,this.endTokenIndex=t,this.isFunctionScope=n}}class i{constructor(e,t,n,s,o,r,i,a,c,h,l,p,u){this.potentialArrowAt=e,this.noAnonFunctionType=t,this.inDisallowConditionalTypesContext=n,this.tokensLength=s,this.scopesLength=o,this.pos=r,this.type=i,this.contextualKeyword=a,this.start=c,this.end=h,this.isType=l,this.scopeDepth=p,this.error=u}}class a{constructor(){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),a.prototype.__init5.call(this),a.prototype.__init6.call(this),a.prototype.__init7.call(this),a.prototype.__init8.call(this),a.prototype.__init9.call(this),a.prototype.__init10.call(this),a.prototype.__init11.call(this),a.prototype.__init12.call(this),a.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=s.eof}__init8(){this.contextualKeyword=n.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new i(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}let c,h,l,p,u,f;function d(){return f++}function m(e){if("pos"in e){const t=function(e){let t=1,n=1;for(let s=0;s<e;s++)u.charCodeAt(s)===o.lineFeed?(t++,n=1):n++;return new k(t,n)}(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}!function(e){e[e.backSpace=8]="backSpace";e[e.lineFeed=10]="lineFeed";e[e.tab=9]="tab";e[e.carriageReturn=13]="carriageReturn";e[e.shiftOut=14]="shiftOut";e[e.space=32]="space";e[e.exclamationMark=33]="exclamationMark";e[e.quotationMark=34]="quotationMark";e[e.numberSign=35]="numberSign";e[e.dollarSign=36]="dollarSign";e[e.percentSign=37]="percentSign";e[e.ampersand=38]="ampersand";e[e.apostrophe=39]="apostrophe";e[e.leftParenthesis=40]="leftParenthesis";e[e.rightParenthesis=41]="rightParenthesis";e[e.asterisk=42]="asterisk";e[e.plusSign=43]="plusSign";e[e.comma=44]="comma";e[e.dash=45]="dash";e[e.dot=46]="dot";e[e.slash=47]="slash";e[e.digit0=48]="digit0";e[e.digit1=49]="digit1";e[e.digit2=50]="digit2";e[e.digit3=51]="digit3";e[e.digit4=52]="digit4";e[e.digit5=53]="digit5";e[e.digit6=54]="digit6";e[e.digit7=55]="digit7";e[e.digit8=56]="digit8";e[e.digit9=57]="digit9";e[e.colon=58]="colon";e[e.semicolon=59]="semicolon";e[e.lessThan=60]="lessThan";e[e.equalsTo=61]="equalsTo";e[e.greaterThan=62]="greaterThan";e[e.questionMark=63]="questionMark";e[e.atSign=64]="atSign";e[e.uppercaseA=65]="uppercaseA";e[e.uppercaseB=66]="uppercaseB";e[e.uppercaseC=67]="uppercaseC";e[e.uppercaseD=68]="uppercaseD";e[e.uppercaseE=69]="uppercaseE";e[e.uppercaseF=70]="uppercaseF";e[e.uppercaseG=71]="uppercaseG";e[e.uppercaseH=72]="uppercaseH";e[e.uppercaseI=73]="uppercaseI";e[e.uppercaseJ=74]="uppercaseJ";e[e.uppercaseK=75]="uppercaseK";e[e.uppercaseL=76]="uppercaseL";e[e.uppercaseM=77]="uppercaseM";e[e.uppercaseN=78]="uppercaseN";e[e.uppercaseO=79]="uppercaseO";e[e.uppercaseP=80]="uppercaseP";e[e.uppercaseQ=81]="uppercaseQ";e[e.uppercaseR=82]="uppercaseR";e[e.uppercaseS=83]="uppercaseS";e[e.uppercaseT=84]="uppercaseT";e[e.uppercaseU=85]="uppercaseU";e[e.uppercaseV=86]="uppercaseV";e[e.uppercaseW=87]="uppercaseW";e[e.uppercaseX=88]="uppercaseX";e[e.uppercaseY=89]="uppercaseY";e[e.uppercaseZ=90]="uppercaseZ";e[e.leftSquareBracket=91]="leftSquareBracket";e[e.backslash=92]="backslash";e[e.rightSquareBracket=93]="rightSquareBracket";e[e.caret=94]="caret";e[e.underscore=95]="underscore";e[e.graveAccent=96]="graveAccent";e[e.lowercaseA=97]="lowercaseA";e[e.lowercaseB=98]="lowercaseB";e[e.lowercaseC=99]="lowercaseC";e[e.lowercaseD=100]="lowercaseD";e[e.lowercaseE=101]="lowercaseE";e[e.lowercaseF=102]="lowercaseF";e[e.lowercaseG=103]="lowercaseG";e[e.lowercaseH=104]="lowercaseH";e[e.lowercaseI=105]="lowercaseI";e[e.lowercaseJ=106]="lowercaseJ";e[e.lowercaseK=107]="lowercaseK";e[e.lowercaseL=108]="lowercaseL";e[e.lowercaseM=109]="lowercaseM";e[e.lowercaseN=110]="lowercaseN";e[e.lowercaseO=111]="lowercaseO";e[e.lowercaseP=112]="lowercaseP";e[e.lowercaseQ=113]="lowercaseQ";e[e.lowercaseR=114]="lowercaseR";e[e.lowercaseS=115]="lowercaseS";e[e.lowercaseT=116]="lowercaseT";e[e.lowercaseU=117]="lowercaseU";e[e.lowercaseV=118]="lowercaseV";e[e.lowercaseW=119]="lowercaseW";e[e.lowercaseX=120]="lowercaseX";e[e.lowercaseY=121]="lowercaseY";e[e.lowercaseZ=122]="lowercaseZ";e[e.leftCurlyBrace=123]="leftCurlyBrace";e[e.verticalBar=124]="verticalBar";e[e.rightCurlyBrace=125]="rightCurlyBrace";e[e.tilde=126]="tilde";e[e.nonBreakingSpace=160]="nonBreakingSpace";e[e.oghamSpaceMark=5760]="oghamSpaceMark";e[e.lineSeparator=8232]="lineSeparator";e[e.paragraphSeparator=8233]="paragraphSeparator"}(o||(o={}));class k{constructor(e,t){this.line=e,this.column=t}}function _(e){return p.contextualKeyword===e}function g(e){const t=ee();return t.type===s.name&&t.contextualKeyword===e}function x(e){return p.contextualKeyword===e&&G(s.name)}function y(e){x(e)||A()}function T(){return Q(s.eof)||Q(s.braceR)||b()}function b(){const e=p.tokens[p.tokens.length-1];for(let t=e?e.end:0;t<p.start;t++){const e=u.charCodeAt(t);if(e===o.lineFeed||e===o.carriageReturn||8232===e||8233===e)return!0}return!1}function I(){const e=te();for(let t=p.end;t<e;t++){const e=u.charCodeAt(t);if(e===o.lineFeed||e===o.carriageReturn||8232===e||8233===e)return!0}return!1}function v(){return G(s.semi)||T()}function w(){v()||A('Unexpected token, expected ";"')}function C(e){G(e)||A(`Unexpected token, expected "${function(e){switch(e){case s.num:return"num";case s.bigint:return"bigint";case s.decimal:return"decimal";case s.regexp:return"regexp";case s.string:return"string";case s.name:return"name";case s.eof:return"eof";case s.bracketL:return"[";case s.bracketR:return"]";case s.braceL:return"{";case s.braceBarL:return"{|";case s.braceR:return"}";case s.braceBarR:return"|}";case s.parenL:return"(";case s.parenR:return")";case s.comma:return",";case s.semi:return";";case s.colon:return":";case s.doubleColon:return"::";case s.dot:return".";case s.question:return"?";case s.questionDot:return"?.";case s.arrow:return"=>";case s.template:return"template";case s.ellipsis:return"...";case s.backQuote:return"`";case s.dollarBraceL:return"${";case s.at:return"@";case s.hash:return"#";case s.eq:return"=";case s.assign:return"_=";case s.preIncDec:case s.postIncDec:return"++/--";case s.bang:return"!";case s.tilde:return"~";case s.pipeline:return"|>";case s.nullishCoalescing:return"??";case s.logicalOR:return"||";case s.logicalAND:return"&&";case s.bitwiseOR:return"|";case s.bitwiseXOR:return"^";case s.bitwiseAND:return"&";case s.equality:return"==/!=";case s.lessThan:return"<";case s.greaterThan:return">";case s.relationalOrEqual:return"<=/>=";case s.bitShiftL:return"<<";case s.bitShiftR:return">>/>>>";case s.plus:return"+";case s.minus:return"-";case s.modulo:return"%";case s.star:return"*";case s.slash:return"/";case s.exponent:return"**";case s.jsxName:return"jsxName";case s.jsxText:return"jsxText";case s.jsxEmptyText:return"jsxEmptyText";case s.jsxTagStart:return"jsxTagStart";case s.jsxTagEnd:return"jsxTagEnd";case s.typeParameterStart:return"typeParameterStart";case s.nonNullAssertion:return"nonNullAssertion";case s._break:return"break";case s._case:return"case";case s._catch:return"catch";case s._continue:return"continue";case s._debugger:return"debugger";case s._default:return"default";case s._do:return"do";case s._else:return"else";case s._finally:return"finally";case s._for:return"for";case s._function:return"function";case s._if:return"if";case s._return:return"return";case s._switch:return"switch";case s._throw:return"throw";case s._try:return"try";case s._var:return"var";case s._let:return"let";case s._const:return"const";case s._while:return"while";case s._with:return"with";case s._new:return"new";case s._this:return"this";case s._super:return"super";case s._class:return"class";case s._extends:return"extends";case s._export:return"export";case s._import:return"import";case s._yield:return"yield";case s._null:return"null";case s._true:return"true";case s._false:return"false";case s._in:return"in";case s._instanceof:return"instanceof";case s._typeof:return"typeof";case s._void:return"void";case s._delete:return"delete";case s._async:return"async";case s._get:return"get";case s._set:return"set";case s._declare:return"declare";case s._readonly:return"readonly";case s._abstract:return"abstract";case s._static:return"static";case s._public:return"public";case s._private:return"private";case s._protected:return"protected";case s._override:return"override";case s._as:return"as";case s._enum:return"enum";case s._type:return"type";case s._implements:return"implements";default:return""}}(e)}"`)}function A(e="Unexpected token",t=p.start){if(p.error)return;const n=new SyntaxError(e);n.pos=t,p.error=n,p.pos=u.length,ce(s.eof)}const E=[9,11,12,o.space,o.nonBreakingSpace,o.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],S=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,N=new Uint8Array(65536);for(const Ko of E)N[Ko]=1;function R(e){if(e<48)return 36===e;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return 95===e;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const L=new Uint8Array(65536);for(let Ko=0;Ko<128;Ko++)L[Ko]=R(Ko)?1:0;for(let Ko=128;Ko<65536;Ko++)L[Ko]=1;for(const Ko of E)L[Ko]=0;L[8232]=0,L[8233]=0;const j=L.slice();for(let Ko=o.digit0;Ko<=o.digit9;Ko++)j[Ko]=0;const D=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,n._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-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,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(s._while<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(s._with<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(s._yield<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var O,P;function q(e){const t=e.identifierRole;return t===O.TopLevelDeclaration||t===O.FunctionScopedDeclaration||t===O.BlockScopedDeclaration||t===O.ObjectShorthandTopLevelDeclaration||t===O.ObjectShorthandFunctionScopedDeclaration||t===O.ObjectShorthandBlockScopedDeclaration}function F(e){const t=e.identifierRole;return t===O.FunctionScopedDeclaration||t===O.BlockScopedDeclaration||t===O.ObjectShorthandFunctionScopedDeclaration||t===O.ObjectShorthandBlockScopedDeclaration}function $(e){const t=e.identifierRole;return t===O.TopLevelDeclaration||t===O.ObjectShorthandTopLevelDeclaration||t===O.ImportDeclaration}function M(e){const t=e.identifierRole;return t===O.TopLevelDeclaration||t===O.BlockScopedDeclaration||t===O.ObjectShorthandTopLevelDeclaration||t===O.ObjectShorthandBlockScopedDeclaration}function B(e){const t=e.identifierRole;return t===O.FunctionScopedDeclaration||t===O.ObjectShorthandFunctionScopedDeclaration}function K(e){return e.identifierRole===O.ObjectShorthandTopLevelDeclaration||e.identifierRole===O.ObjectShorthandBlockScopedDeclaration||e.identifierRole===O.ObjectShorthandFunctionScopedDeclaration}!function(e){e[e.Access=0]="Access";e[e.ExportAccess=1]="ExportAccess";e[e.TopLevelDeclaration=2]="TopLevelDeclaration";e[e.FunctionScopedDeclaration=3]="FunctionScopedDeclaration";e[e.BlockScopedDeclaration=4]="BlockScopedDeclaration";e[e.ObjectShorthandTopLevelDeclaration=5]="ObjectShorthandTopLevelDeclaration";e[e.ObjectShorthandFunctionScopedDeclaration=6]="ObjectShorthandFunctionScopedDeclaration";e[e.ObjectShorthandBlockScopedDeclaration=7]="ObjectShorthandBlockScopedDeclaration";e[e.ObjectShorthand=8]="ObjectShorthand";e[e.ImportDeclaration=9]="ImportDeclaration";e[e.ObjectKey=10]="ObjectKey";e[e.ImportAccess=11]="ImportAccess"}(O||(O={})),function(e){e[e.NoChildren=0]="NoChildren";e[e.OneChild=1]="OneChild";e[e.StaticChildren=2]="StaticChildren";e[e.KeyAfterPropSpread=3]="KeyAfterPropSpread"}(P||(P={}));class U{constructor(){this.type=p.type,this.contextualKeyword=p.contextualKeyword,this.start=p.start,this.end=p.end,this.scopeDepth=p.scopeDepth,this.isType=p.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function V(){p.tokens.push(new U),oe()}function W(){p.tokens.push(new U),p.start=p.pos,function(){for(;;){if(p.pos>=u.length)return void A("Unterminated template");const e=u.charCodeAt(p.pos);if(e===o.graveAccent||e===o.dollarSign&&u.charCodeAt(p.pos+1)===o.leftCurlyBrace)return p.pos===p.start&&Q(s.template)?e===o.dollarSign?(p.pos+=2,void ce(s.dollarBraceL)):(++p.pos,void ce(s.backQuote)):void ce(s.template);e===o.backslash&&p.pos++,p.pos++}}()}function H(){p.type===s.assign&&--p.pos,function(){const e=p.pos;let t=!1,n=!1;for(;;){if(p.pos>=u.length)return void A("Unterminated regular expression",e);const s=u.charCodeAt(p.pos);if(t)t=!1;else{if(s===o.leftSquareBracket)n=!0;else if(s===o.rightSquareBracket&&n)n=!1;else if(s===o.slash&&!n)break;t=s===o.backslash}++p.pos}++p.pos,function(){for(;p.pos<u.length;){const e=u.charCodeAt(p.pos);if(L[e])p.pos++;else{if(e!==o.backslash)break;if(p.pos+=2,u.charCodeAt(p.pos)===o.leftCurlyBrace){for(;p.pos<u.length&&u.charCodeAt(p.pos)!==o.rightCurlyBrace;)p.pos++;p.pos++}}}}(),ce(s.regexp)}()}function X(e){for(let n=p.tokens.length-e;n<p.tokens.length;n++)p.tokens[n].isType=!0;const t=p.isType;return p.isType=!0,t}function z(e){p.isType=e}function G(e){return!!Q(e)&&(V(),!0)}function J(e){const t=p.isType;p.isType=!0,G(e),p.isType=t}function Q(e){return p.type===e}function Y(){const e=p.snapshot();V();const t=p.type;return p.restoreFromSnapshot(e),t}class Z{constructor(e,t){this.type=e,this.contextualKeyword=t}}function ee(){const e=p.snapshot();V();const t=p.type,n=p.contextualKeyword;return p.restoreFromSnapshot(e),new Z(t,n)}function te(){return ne(p.pos)}function ne(e){S.lastIndex=e;return e+S.exec(u)[0].length}function se(){return u.charCodeAt(te())}function oe(){if(ae(),p.start=p.pos,p.pos>=u.length){const e=p.tokens;return e.length>=2&&e[e.length-1].start>=u.length&&e[e.length-2].start>=u.length&&A("Unexpectedly reached the end of input."),void ce(s.eof)}var e;e=u.charCodeAt(p.pos),j[e]||e===o.backslash||e===o.atSign&&u.charCodeAt(p.pos+1)===o.atSign?function(){let e=0,t=0,n=p.pos;for(;n<u.length&&(t=u.charCodeAt(n),!(t<o.lowercaseA||t>o.lowercaseZ));){const s=D[e+(t-o.lowercaseA)+1];if(-1===s)break;e=s,n++}const r=D[e];if(r>-1&&!L[t])return p.pos=n,void(1&r?ce(r>>>1):ce(s.name,r>>>1));for(;n<u.length;){const e=u.charCodeAt(n);if(L[e])n++;else if(e===o.backslash){if(n+=2,u.charCodeAt(n)===o.leftCurlyBrace){for(;n<u.length&&u.charCodeAt(n)!==o.rightCurlyBrace;)n++;n++}}else{if(e!==o.atSign||u.charCodeAt(n+1)!==o.atSign)break;n+=2}}p.pos=n,ce(s.name)}():pe(e)}function re(){for(;u.charCodeAt(p.pos)!==o.asterisk||u.charCodeAt(p.pos+1)!==o.slash;)if(p.pos++,p.pos>u.length)return void A("Unterminated comment",p.pos-2);p.pos+=2}function ie(e){let t=u.charCodeAt(p.pos+=e);if(p.pos<u.length)for(;t!==o.lineFeed&&t!==o.carriageReturn&&t!==o.lineSeparator&&t!==o.paragraphSeparator&&++p.pos<u.length;)t=u.charCodeAt(p.pos)}function ae(){for(;p.pos<u.length;){const e=u.charCodeAt(p.pos);switch(e){case o.carriageReturn:u.charCodeAt(p.pos+1)===o.lineFeed&&++p.pos;case o.lineFeed:case o.lineSeparator:case o.paragraphSeparator:++p.pos;break;case o.slash:switch(u.charCodeAt(p.pos+1)){case o.asterisk:p.pos+=2,re();break;case o.slash:ie(2);break;default:return}break;default:if(!N[e])return;++p.pos}}}function ce(e,t=n.NONE){p.end=p.pos,p.type=e,p.contextualKeyword=t}function he(){if(p.isType)return void ue(s.greaterThan,1);const e=u.charCodeAt(p.pos+1);if(e===o.greaterThan){const e=u.charCodeAt(p.pos+2)===o.greaterThan?3:2;return u.charCodeAt(p.pos+e)===o.equalsTo?void ue(s.assign,e+1):void ue(s.bitShiftR,e)}e===o.equalsTo?ue(s.relationalOrEqual,2):ue(s.greaterThan,1)}function le(){p.type===s.greaterThan&&(p.pos-=1,he())}function pe(e){switch(e){case o.numberSign:return++p.pos,void ce(s.hash);case o.dot:return void function(){const e=u.charCodeAt(p.pos+1);e>=o.digit0&&e<=o.digit9?de(!0):e===o.dot&&u.charCodeAt(p.pos+2)===o.dot?(p.pos+=3,ce(s.ellipsis)):(++p.pos,ce(s.dot))}();case o.leftParenthesis:return++p.pos,void ce(s.parenL);case o.rightParenthesis:return++p.pos,void ce(s.parenR);case o.semicolon:return++p.pos,void ce(s.semi);case o.comma:return++p.pos,void ce(s.comma);case o.leftSquareBracket:return++p.pos,void ce(s.bracketL);case o.rightSquareBracket:return++p.pos,void ce(s.bracketR);case o.leftCurlyBrace:return void(l&&u.charCodeAt(p.pos+1)===o.verticalBar?ue(s.braceBarL,2):(++p.pos,ce(s.braceL)));case o.rightCurlyBrace:return++p.pos,void ce(s.braceR);case o.colon:return void(u.charCodeAt(p.pos+1)===o.colon?ue(s.doubleColon,2):(++p.pos,ce(s.colon)));case o.questionMark:return void function(){const e=u.charCodeAt(p.pos+1),t=u.charCodeAt(p.pos+2);e!==o.questionMark||l&&p.isType?e!==o.dot||t>=o.digit0&&t<=o.digit9?(++p.pos,ce(s.question)):(p.pos+=2,ce(s.questionDot)):t===o.equalsTo?ue(s.assign,3):ue(s.nullishCoalescing,2)}();case o.atSign:return++p.pos,void ce(s.at);case o.graveAccent:return++p.pos,void ce(s.backQuote);case o.digit0:{const e=u.charCodeAt(p.pos+1);if(e===o.lowercaseX||e===o.uppercaseX||e===o.lowercaseO||e===o.uppercaseO||e===o.lowercaseB||e===o.uppercaseB)return void function(){p.pos+=2;for(;;){const e=u.charCodeAt(p.pos);if(!(e>=o.digit0&&e<=o.digit9||e>=o.lowercaseA&&e<=o.lowercaseF||e>=o.uppercaseA&&e<=o.uppercaseF||e===o.underscore))break;p.pos++}const e=u.charCodeAt(p.pos);e===o.lowercaseN?(++p.pos,ce(s.bigint)):ce(s.num)}()}case o.digit1:case o.digit2:case o.digit3:case o.digit4:case o.digit5:case o.digit6:case o.digit7:case o.digit8:case o.digit9:return void de(!1);case o.quotationMark:case o.apostrophe:return void function(e){for(p.pos++;;){if(p.pos>=u.length)return void A("Unterminated string constant");const t=u.charCodeAt(p.pos);if(t===o.backslash)p.pos++;else if(t===e)break;p.pos++}p.pos++,ce(s.string)}(e);case o.slash:return void(u.charCodeAt(p.pos+1)===o.equalsTo?ue(s.assign,2):ue(s.slash,1));case o.percentSign:case o.asterisk:return void function(e){let t=e===o.asterisk?s.star:s.modulo,n=1,r=u.charCodeAt(p.pos+1);e===o.asterisk&&r===o.asterisk&&(n++,r=u.charCodeAt(p.pos+2),t=s.exponent),r===o.equalsTo&&u.charCodeAt(p.pos+2)!==o.greaterThan&&(n++,t=s.assign),ue(t,n)}(e);case o.verticalBar:case o.ampersand:return void function(e){const t=u.charCodeAt(p.pos+1);if(t!==e){if(e===o.verticalBar){if(t===o.greaterThan)return void ue(s.pipeline,2);if(t===o.rightCurlyBrace&&l)return void ue(s.braceBarR,2)}t!==o.equalsTo?ue(e===o.verticalBar?s.bitwiseOR:s.bitwiseAND,1):ue(s.assign,2)}else u.charCodeAt(p.pos+2)===o.equalsTo?ue(s.assign,3):ue(e===o.verticalBar?s.logicalOR:s.logicalAND,2)}(e);case o.caret:return void(u.charCodeAt(p.pos+1)===o.equalsTo?ue(s.assign,2):ue(s.bitwiseXOR,1));case o.plusSign:case o.dash:return void function(e){const t=u.charCodeAt(p.pos+1);t!==e?t===o.equalsTo?ue(s.assign,2):e===o.plusSign?ue(s.plus,1):ue(s.minus,1):ue(s.preIncDec,2)}(e);case o.lessThan:return void function(){const e=u.charCodeAt(p.pos+1);if(e===o.lessThan)return u.charCodeAt(p.pos+2)===o.equalsTo?void ue(s.assign,3):void(p.isType?ue(s.lessThan,1):ue(s.bitShiftL,2));e===o.equalsTo?ue(s.relationalOrEqual,2):ue(s.lessThan,1)}();case o.greaterThan:return void he();case o.equalsTo:case o.exclamationMark:return void function(e){const t=u.charCodeAt(p.pos+1);if(t!==o.equalsTo)return e===o.equalsTo&&t===o.greaterThan?(p.pos+=2,void ce(s.arrow)):void ue(e===o.equalsTo?s.eq:s.bang,1);ue(s.equality,u.charCodeAt(p.pos+2)===o.equalsTo?3:2)}(e);case o.tilde:return void ue(s.tilde,1)}A(`Unexpected character '${String.fromCharCode(e)}'`,p.pos)}function ue(e,t){p.pos+=t,ce(e)}function fe(){for(;;){const e=u.charCodeAt(p.pos);if(!(e>=o.digit0&&e<=o.digit9||e===o.underscore))break;p.pos++}}function de(e){let t=!1,n=!1;e||fe();let r=u.charCodeAt(p.pos);r===o.dot&&(++p.pos,fe(),r=u.charCodeAt(p.pos)),r!==o.uppercaseE&&r!==o.lowercaseE||(r=u.charCodeAt(++p.pos),r!==o.plusSign&&r!==o.dash||++p.pos,fe(),r=u.charCodeAt(p.pos)),r===o.lowercaseN?(++p.pos,t=!0):r===o.lowercaseM&&(++p.pos,n=!0),ce(t?s.bigint:n?s.decimal:s.num)}function me(e,t=e.currentIndex()){let n=t+1;if(ke(e,n)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,ke(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,ke(e,n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(n++,ke(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${t}`)}function ke(e,t){const n=e.tokens[t];return n.type===s.braceR||n.type===s.comma}const _e=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy",""],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj",""],["zwj",""],["lrm",""],["rlm",""],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function ge(e){const[t,n]=xe(e.jsxPragma||"React.createElement"),[s,o]=xe(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:n,fragmentBase:s,fragmentSuffix:o}}function xe(e){let t=e.indexOf(".");return-1===t&&(t=e.length),[e.slice(0,t),e.slice(t)]}class ye{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Te extends ye{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,t,n,s,o){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.options=o,Te.prototype.__init.call(this),Te.prototype.__init2.call(this),Te.prototype.__init3.call(this),Te.prototype.__init4.call(this),Te.prototype.__init5.call(this),this.jsxPragmaInfo=ge(o),this.isAutomaticRuntime="automatic"===o.jsxRuntime,this.jsxImportSource=o.jsxImportSource||"react"}process(){return!!this.tokens.matches1(s.jsxTagStart)&&(this.processJSXTag(),!0)}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[t,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${n} = require("${t}");`;else{const{createElement:t,...n}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from "${this.jsxImportSource}";`);const s=Object.entries(n).map(([e,t])=>`${e} as ${t}`).join(", ");if(s){e+=`import {${s}} from "${this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime")}";`}}return e}processJSXTag(){const{jsxRole:e,start:t}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==P.KeyAfterPropSpread?this.transformTagToJSXFunc(n,e):this.transformTagToCreateElement(n)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const t=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<t.length;)"\n"===t[this.lastIndex]&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,t){const n=t===P.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(n));let o=null;if(this.tokens.matches1(s.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(t);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),o=this.processProps(!0),this.tokens.matches2(s.slash,s.jsxTagEnd))this.tokens.appendCode("}");else{if(!this.tokens.matches1(s.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t)}o&&this.tokens.appendCode(`, ${o}`)}for(this.options.production||(null===o&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${n}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(s.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(s.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(s.slash,s.jsxTagEnd));else{if(!this.tokens.matches1(s.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(s.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){const n=this.claimAutoImportedName(e,t);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(e,t){if(this.importProcessor){const n=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${e}`}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,s.jsxName,s.jsxName)&&!this.tokens.matches2AtIndex(e-1,s.greaterThan,s.jsxName)&&!this.tokens.matches1AtIndex(e,s.braceL)&&!this.tokens.matches1AtIndex(e,s.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,s.slash,s.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const e=this.tokens.identifierName();be(e)&&this.tokens.replaceToken(`'${e}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){const t=this.options.production?"":`__self: this, __source: ${this.getDevSource(e)}`;this.tokens.matches1(s.jsxName)||this.tokens.matches1(s.braceL)?(this.tokens.appendCode(", {"),this.processProps(!1),t?this.tokens.appendCode(` ${t}}`):this.tokens.appendCode("}")):t?this.tokens.appendCode(`, {${t}}`):this.tokens.appendCode(", null")}processProps(e){let t=null;for(;;){if(this.tokens.matches2(s.jsxName,s.eq)){const n=this.tokens.identifierName();if(e&&"key"===n){null!==t&&this.tokens.appendCode(t.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const e=this.tokens.snapshot();this.processPropValue(),t=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(e);continue}this.processPropName(n),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(s.jsxName)){const e=this.tokens.identifierName();this.processPropName(e),this.tokens.appendCode(": true")}else{if(!this.tokens.matches1(s.braceL))break;this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")}this.tokens.appendCode(",")}return t}processPropName(e){e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(s.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(s.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start+1,e.end-1),n=Ie(t),s=function(e){let t="";for(let n=0;n<e.length;n++){const s=e[n];if("\n"===s)if(/\s/.test(e[n+1]))for(t+=" ";n<e.length&&/\s/.test(e[n+1]);)n++;else t+="\n";else if("&"===s){const{entity:s,newI:o}=ve(e,n+1);t+=s,n=o-1}else t+=s}return JSON.stringify(t)}(t);this.tokens.replaceToken(s+n)}processAutomaticChildrenAndEndProps(e){e===P.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(e===P.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(e){let t=e;for(;;){if(this.tokens.matches2(s.jsxTagStart,s.slash))return;let e=!1;if(this.tokens.matches1(s.braceL))this.tokens.matches2(s.braceL,s.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(t?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),e=!0);else if(this.tokens.matches1(s.jsxTagStart))this.tokens.appendCode(t?", ":""),this.processJSXTag(),e=!0;else{if(!this.tokens.matches1(s.jsxText)&&!this.tokens.matches1(s.jsxEmptyText))throw new Error("Unexpected token when processing JSX children.");e=this.processChildTextElement(t)}e&&(t=!0)}}processChildTextElement(e){const t=this.tokens.currentToken(),n=this.tokens.code.slice(t.start,t.end),s=Ie(n),o=function(e){let t="",n="",s=!1,o=!1;for(let r=0;r<e.length;r++){const i=e[r];if(" "===i||"\t"===i||"\r"===i)s||(n+=i);else if("\n"===i)n="",s=!0;else{if(o&&s&&(t+=" "),t+=n,n="","&"===i){const{entity:n,newI:s}=ve(e,r+1);r=s-1,t+=n}else t+=i;o=!0,s=!1}}s||(t+=n);return JSON.stringify(t)}(n);return'""'===o?(this.tokens.replaceToken(s),!1):(this.tokens.replaceToken(`${e?", ":""}${o}${s}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function be(e){const t=e.charCodeAt(0);return t>=o.lowercaseA&&t<=o.lowercaseZ}function Ie(e){let t=0,n=0;for(const s of e)"\n"===s?(t++,n=0):" "===s&&n++;return"\n".repeat(t)+" ".repeat(n)}function ve(e,t){let n,s="",o=0,r=t;if("#"===e[r]){let t,s=10;if(r++,"x"===e[r])for(s=16,r++,t=r;r<e.length&&Ce(e.charCodeAt(r));)r++;else for(t=r;r<e.length&&we(e.charCodeAt(r));)r++;if(";"===e[r]){const o=e.slice(t,r);o&&(r++,n=String.fromCodePoint(parseInt(o,s)))}}else for(;r<e.length&&o++<10;){const t=e[r];if(r++,";"===t){n=_e.get(s);break}s+=t}return n?{entity:n,newI:r}:{entity:"&",newI:t}}function we(e){return e>=o.digit0&&e<=o.digit9}function Ce(e){return e>=o.digit0&&e<=o.digit9||e>=o.lowercaseA&&e<=o.lowercaseF||e>=o.uppercaseA&&e<=o.uppercaseF}function Ae(e,t){const n=ge(t),o=new Set;for(let r=0;r<e.tokens.length;r++){const t=e.tokens[r];if(t.type!==s.name||t.isType||t.identifierRole!==O.Access&&t.identifierRole!==O.ObjectShorthand&&t.identifierRole!==O.ExportAccess||t.shadowsGlobal||o.add(e.identifierNameForToken(t)),t.type===s.jsxTagStart&&o.add(n.base),t.type===s.jsxTagStart&&r+1<e.tokens.length&&e.tokens[r+1].type===s.jsxTagEnd&&(o.add(n.base),o.add(n.fragmentBase)),t.type===s.jsxName&&t.identifierRole===O.Access){be(e.identifierNameForToken(t))&&e.tokens[r+1].type!==s.dot||o.add(e.identifierNameForToken(t))}}return o}class Ee{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,t,n,s,o,r,i){this.nameManager=e,this.tokens=t,this.enableLegacyTypeScriptModuleInterop=n,this.options=s,this.isTypeScriptTransformEnabled=o,this.keepUnusedImports=r,this.helperManager=i,Ee.prototype.__init.call(this),Ee.prototype.__init2.call(this),Ee.prototype.__init3.call(this),Ee.prototype.__init4.call(this),Ee.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,s._import)&&!this.tokens.matches3AtIndex(e,s._import,s.name,s.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,s._export)&&!this.tokens.matches2AtIndex(e,s._export,s.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=Ae(this.tokens,this.options);for(const[e,t]of this.importInfoByPath.entries()){if(t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0)continue;[...t.defaultNames,...t.wildcardNames,...t.namedImports.map(({localName:e})=>e)].every(e=>this.shouldAutomaticallyElideImportedName(e))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,t]of this.importInfoByPath.entries()){const{defaultNames:n,wildcardNames:s,namedImports:o,namedExports:r,exportStarNames:i,hasStarExport:a}=t;if(0===n.length&&0===s.length&&0===o.length&&0===r.length&&0===i.length&&!a){this.importsToReplace.set(e,`require('${e}');`);continue}const c=this.getFreeIdentifierForPath(e);let h;h=this.enableLegacyTypeScriptModuleInterop?c:s.length>0?s[0]:this.getFreeIdentifierForPath(e);let l=`var ${c} = require('${e}');`;if(s.length>0)for(const e of s){l+=` var ${e} = ${this.enableLegacyTypeScriptModuleInterop?c:`${this.helperManager.getHelperName("interopRequireWildcard")}(${c})`};`}else i.length>0&&h!==c?l+=` var ${h} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${c});`:n.length>0&&h!==c&&(l+=` var ${h} = ${this.helperManager.getHelperName("interopRequireDefault")}(${c});`);for(const{importedName:e,localName:t}of r)l+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${c}, '${t}', '${e}');`;for(const e of i)l+=` exports.${e} = ${h};`;a&&(l+=` ${this.helperManager.getHelperName("createStarExport")}(${c});`),this.importsToReplace.set(e,l);for(const e of n)this.identifierReplacements.set(e,`${h}.default`);for(const{importedName:e,localName:t}of o)this.identifierReplacements.set(t,`${c}.${e}`)}}getFreeIdentifierForPath(e){const t=e.split("/"),n=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){const t=[],o=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,n._type)||this.tokens.matches1AtIndex(e,s._typeof))&&!this.tokens.matches1AtIndex(e+1,s.comma)&&!this.tokens.matchesContextualAtIndex(e+1,n._from))return;if(this.tokens.matches1AtIndex(e,s.parenL))return;if(this.tokens.matches1AtIndex(e,s.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,s.comma)&&e++),this.tokens.matches1AtIndex(e,s.star)&&(e+=2,o.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,s.braceL)){const n=this.getNamedImports(e+1);e=n.newIndex;for(const e of n.namedImports)"default"===e.importedName?t.push(e.localName):r.push(e)}if(this.tokens.matchesContextualAtIndex(e,n._from)&&e++,!this.tokens.matches1AtIndex(e,s.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(i);a.defaultNames.push(...t),a.wildcardNames.push(...o),a.namedImports.push(...r),0===t.length&&0===o.length&&0===r.length&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,s._export,s._var)||this.tokens.matches2AtIndex(e,s._export,s._let)||this.tokens.matches2AtIndex(e,s._export,s._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,s._export,s._function)||this.tokens.matches2AtIndex(e,s._export,s._class)){const t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,s._export,s.name,s._function)){const t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,s._export,s.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,s._export,s.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,s.braceL)||this.tokens.matches1AtIndex(n,s.dollarBraceL)||this.tokens.matches1AtIndex(n,s.bracketL))t++;else if(this.tokens.matches1AtIndex(n,s.braceR)||this.tokens.matches1AtIndex(n,s.bracketR))t--;else{if(0===t&&!this.tokens.matches1AtIndex(n,s.name))break;if(this.tokens.matches1AtIndex(1,s.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");n=e-1}else{if(q(this.tokens.tokens[n])){const e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:t,namedImports:o}=this.getNamedImports(e);if(e=t,!this.tokens.matchesContextualAtIndex(e,n._from)){for(const{importedName:e,localName:t}of o)this.addExportBinding(e,t);return}if(e++,!this.tokens.matches1AtIndex(e,s.string))throw new Error("Expected string token at the end of import statement.");const r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...o)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,s._export,s.star,s._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,s.string))throw new Error("Expected string token at the end of star export statement.");const n=this.tokens.stringValueAtIndex(e),o=this.getImportInfo(n);null!==t?o.exportStarNames.push(t):o.hasStarExport=!0}getNamedImports(e){const t=[];for(;;){if(this.tokens.matches1AtIndex(e,s.braceR)){e++;break}const n=me(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,s.comma,s.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,s.braceR)){e++;break}if(!this.tokens.matches1AtIndex(e,s.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`);e++}return{newIndex:e,namedImports:t}}getImportInfo(e){const t=this.importInfoByPath.get(e);if(t)return t;const n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){const t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const t=this.exportBindingsByLocalName.get(e);return t&&0!==t.length?t.map(e=>`exports.${e}`).join(" = "):null}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Se,Ne={exports:{}};Se||(Se=1,Ne.exports=function(){const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(t){return e.test(t)}function o(e){return e.startsWith("//")}function r(e){return e.startsWith("/")}function i(e){return e.startsWith("file:")}function a(e){return/^[.?#]/.test(e)}function c(e){const n=t.exec(e);return l(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function h(e){const t=n.exec(e),s=t[2];return l("file:","",t[1]||"","",r(s)?s:"/"+s,t[3]||"",t[4]||"")}function l(e,t,n,s,o,r,i){return{scheme:e,user:t,host:n,port:s,path:o,query:r,hash:i,type:7}}function p(e){if(o(e)){const t=c("http:"+e);return t.scheme="",t.type=6,t}if(r(e)){const t=c("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t}if(i(e))return h(e);if(s(e))return c(e);const t=c("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function u(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function f(e,t){d(t,t.type),"/"===e.path?e.path=t.path:e.path=u(t.path)+e.path}function d(e,t){const n=t<=4,s=e.path.split("/");let o=1,r=0,i=!1;for(let c=1;c<s.length;c++){const e=s[c];e?(i=!1,"."!==e&&(".."!==e?(s[o++]=e,r++):r?(i=!0,r--,o--):n&&(s[o++]=e))):i=!0}let a="";for(let c=1;c<o;c++)a+="/"+s[c];(!a||i&&!a.endsWith("/.."))&&(a+="/"),e.path=a}function m(e,t){if(!e&&!t)return"";const n=p(e);let s=n.type;if(t&&7!==s){const e=p(t),o=e.type;switch(s){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:f(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}o>s&&(s=o)}d(n,s);const o=n.query+n.hash;switch(s){case 2:case 3:return o;case 4:{const s=n.path.slice(1);return s?a(t||e)&&!a(s)?"./"+s+o:s+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}return m}());var Re=class{constructor(){this._indexes={__proto__:null},this.array=[]}};var Le=class{constructor({file:e,sourceRoot:t}={}){this._names=new Re,this._sources=new Re,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new Re}};var je=(e,t,n,s,o,r,i,a)=>function(e,t,n,s,o,r,i){const{_mappings:a,_sources:c,_sourcesContent:h,_names:l}=t,p=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(a,n),u=function(e,t){let n=e.length;for(let s=n-1;s>=0;n=s--){if(t>=e[s][0])break}return n}(p,s);if(!o){if(function(e,t){if(0===t)return!0;const n=e[t-1];return 1===n.length}(p,u))return;return De(p,u,[s])}const f=function(e,t){const n=function(e,t){return e._indexes[t]}(e,t);if(void 0!==n)return n;const{array:s,_indexes:o}=e,r=s.push(t);return o[t]=r-1}(c,o),d=-1;f===h.length&&(h[f]=null);if(function(e,t,n,s,o,r){if(0===t)return!1;const i=e[t-1];return 1!==i.length&&(n===i[1]&&s===i[2]&&o===i[3]&&r===(5===i.length?i[4]:-1))}(p,u,f,r,i,d))return;return De(p,u,[s,f,r,i])}(0,e,t,n,s,o,r);function De(e,t,n){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=n}function Oe({code:t,mappings:n},s,r,i,a){const c=function(e,t){const n=new Array(t.length);let s=0,r=t[s].start,i=0;for(let a=0;a<e.length;a++)a===r&&(n[s]=r-i,s++,r=t[s].start),e.charCodeAt(a)===o.lineFeed&&(i=a+1);return n}(i,a),h=new Le({file:r.compiledFilename});let l=0,p=n[0];for(;void 0===p&&l<n.length-1;)l++,p=n[l];let u=0,f=0;p!==f&&je(h,u,0,s,u,0);for(let e=0;e<t.length;e++){if(e===p){const t=p-f,o=c[l];for(je(h,u,t,s,u,o);(p===e||void 0===p)&&l<n.length-1;)l++,p=n[l]}t.charCodeAt(e)===o.lineFeed&&(u++,f=e+1,p!==f&&je(h,u,0,s,u,0))}const{sourceRoot:d,sourcesContent:m,...k}=function(t){const n=function(e){const{_mappings:t,_sources:n,_sourcesContent:s,_names:o,_ignoreList:r}=e;return function(e){const{length:t}=e;let n=t;for(let s=n-1;s>=0&&!(e[s].length>0);n=s,s--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:o.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:t,ignoreList:r.array}}(t);return Object.assign({},n,{mappings:e(n.mappings)})}(h);return k}const Pe={require:'\n import {createRequire as CREATE_REQUIRE_NAME} from "module";\n const require = CREATE_REQUIRE_NAME(import.meta.url);\n ',interopRequireWildcard:"\n function interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n return newObj;\n }\n }\n ",interopRequireDefault:"\n function interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n ",createNamedExportFrom:"\n function createNamedExportFrom(obj, localName, importedName) {\n Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});\n }\n ",createStarExport:'\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n ',nullishCoalesce:"\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n ",asyncNullishCoalesce:"\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n ",optionalChain:"\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",asyncOptionalChain:"\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",optionalChainDelete:"\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",asyncOptionalChainDelete:"\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "};class qe{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,qe.prototype.__init.call(this),qe.prototype.__init2.call(this)}getHelperName(e){let t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[t,n]of Object.entries(Pe)){const s=this.helperNames[t];let o=n;"optionalChainDelete"===t?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):"asyncOptionalChainDelete"===t?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):"require"===t&&(null===this.createRequireName&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),s&&(e+=" ",e+=o.replace(t,s).replace(/\s+/g," ").trim())}return e}}function Fe(e,t,n){(function(e,t){for(const n of e.tokens)if(n.type===s.name&&!n.isType&&F(n)&&t.has(e.identifierNameForToken(n)))return!0;return!1})(e,n)&&function(e,t,n){const o=[];let r=t.length-1;for(let i=e.tokens.length-1;;i--){for(;o.length>0&&o[o.length-1].startTokenIndex===i+1;)o.pop();for(;r>=0&&t[r].endTokenIndex===i+1;)o.push(t[r]),r--;if(i<0)break;const a=e.tokens[i],c=e.identifierNameForToken(a);if(o.length>1&&!a.isType&&a.type===s.name&&n.has(c))if(M(a))$e(o[o.length-1],e,c);else if(B(a)){let t=o.length-1;for(;t>0&&!o[t].isFunctionScope;)t--;if(t<0)throw new Error("Did not find parent function scope.");$e(o[t],e,c)}}if(o.length>0)throw new Error("Expected empty scope stack after processing file.")}(e,t,n)}function $e(e,t,n){for(let o=e.startTokenIndex;o<e.endTokenIndex;o++){const e=t.tokens[o];e.type!==s.name&&e.type!==s.jsxName||t.identifierNameForToken(e)!==n||(e.shadowsGlobal=!0)}}class Me{__init(){this.usedNames=new Set}constructor(e,t){Me.prototype.__init.call(this),this.usedNames=new Set(function(e,t){const n=[];for(const o of t)o.type===s.name&&n.push(e.slice(o.start,o.end));return n}(e,t))}claimFreeName(e){const t=this.findFreeName(e);return this.usedNames.add(t),t}findFreeName(e){if(!this.usedNames.has(e))return e;let t=2;for(;this.usedNames.has(e+String(t));)t++;return e+String(t)}}var Be,Ke,Ue,Ve={},We={},He={};function Xe(){if(Be)return He;Be=1;var e=He&&He.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function s(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}();Object.defineProperty(He,"__esModule",{value:!0}),He.DetailContext=He.NoopContext=He.VError=void 0;var t=function(t){function n(e,s){var o=t.call(this,s)||this;return o.path=e,Object.setPrototypeOf(o,n.prototype),o}return e(n,t),n}(Error);He.VError=t;var n=function(){function e(){}return e.prototype.fail=function(e,t,n){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(e){},e}();He.NoopContext=n;var s=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(e,t,n){return this._propNames.push(e),this._messages.push(t),this._score+=n,!1},e.prototype.unionResolver=function(){return new o},e.prototype.resolveUnion=function(e){for(var t,n,s=null,o=0,r=e.contexts;o<r.length;o++){var i=r[o];(!s||i._score>=s._score)&&(s=i)}s&&s._score>0&&((t=this._propNames).push.apply(t,s._propNames),(n=this._messages).push.apply(n,s._messages))},e.prototype.getError=function(e){for(var n=[],s=this._propNames.length-1;s>=0;s--){var o=this._propNames[s];e+="number"==typeof o?"["+o+"]":o?"."+o:"";var r=this._messages[s];r&&n.push(e+" "+r)}return new t(e,n.join("; "))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var o=this._messages[n];o&&t.push({path:e,message:o})}var r=null;for(n=t.length-1;n>=0;n--)r&&(t[n].nested=[r]),r=t[n];return r},e}();He.DetailContext=s;var o=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new s;return this.contexts.push(e),e},e}();return He}function ze(){return Ke||(Ke=1,function(e){var n=We&&We.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function s(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var s=Xe(),o=function(){return function(){}}();function r(e){return"string"==typeof e?a(e):e}function i(e,t){var n=e[t];if(!n)throw new Error("Unknown type "+t);return n}function a(e){return new c(e)}e.TType=o,e.name=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n._failMsg="is not a "+t,n}return n(t,e),t.prototype.getChecker=function(e,n,s){var o=this,r=i(e,this.name),a=r.getChecker(e,n,s);return r instanceof I||r instanceof t?a:function(e,t){return!!a(e,t)||t.fail(null,o._failMsg,0)}},t}(o);e.TName=c,e.lit=function(e){return new h(e)};var h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n.name=JSON.stringify(t),n._failMsg="is not "+n.name,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return e===n.value||t.fail(null,n._failMsg,-1)}},t}(o);e.TLiteral=h,e.array=function(e){return new l(r(e))};var l=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<e.length;s++){if(!n(e[s],t))return t.fail(s,null,1)}return!0}},t}(o);e.TArray=l,e.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new p(e.map(function(e){return r(e)}))};var p=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this.ttypes.map(function(n){return n.getChecker(e,t)}),s=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<n.length;s++){if(!n[s](e[s],t))return t.fail(s,null,1)}return!0};return t?function(e,t){return!!s(e,t)&&(e.length<=n.length||t.fail(n.length,"is extraneous",2))}:s},t}(o);e.TTuple=p,e.union=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new u(e.map(function(e){return r(e)}))};var u=function(e){function t(t){var n=e.call(this)||this;n.ttypes=t;var s=t.map(function(e){return e instanceof c||e instanceof h?e.name:null}).filter(function(e){return e}),o=t.length-s.length;return s.length?(o>0&&s.push(o+" more"),n._failMsg="is none of "+s.join(", ")):n._failMsg="is none of "+o+" types",n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this,s=this.ttypes.map(function(n){return n.getChecker(e,t)});return function(e,t){for(var o=t.unionResolver(),r=0;r<s.length;r++){if(s[r](e,o.createContext()))return!0}return t.resolveUnion(o),t.fail(null,n._failMsg,0)}},t}(o);e.TUnion=u,e.intersection=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new f(e.map(function(e){return r(e)}))};var f=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=new Set,s=this.ttypes.map(function(s){return s.getChecker(e,t,n)});return function(e,t){return!!s.every(function(n){return n(e,t)})||t.fail(null,null,0)}},t}(o);e.TIntersection=f,e.enumtype=function(e){return new d(e)};var d=function(e){function t(t){var n=e.call(this)||this;return n.members=t,n.validValues=new Set,n._failMsg="is not a valid enum value",n.validValues=new Set(Object.keys(t).map(function(e){return t[e]})),n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validValues.has(e)||t.fail(null,n._failMsg,0)}},t}(o);e.TEnumType=d,e.enumlit=function(e,t){return new m(e,t)};var m=function(e){function t(t,n){var s=e.call(this)||this;return s.enumName=t,s.prop=n,s._failMsg="is not "+t+"."+n,s}return n(t,e),t.prototype.getChecker=function(e,t){var n=this,s=i(e,this.enumName);if(!(s instanceof d))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var o=s.members[this.prop];if(!s.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(e,t){return e===o||t.fail(null,n._failMsg,-1)}},t}(o);function k(e){return Object.keys(e).map(function(t){return function(e,t){return t instanceof g?new x(e,t.ttype,!0):new x(e,r(t),!1)}(t,e[t])})}e.TEnumLiteral=m,e.iface=function(e,t){return new _(e,k(t))};var _=function(e){function t(t,n){var s=e.call(this)||this;return s.bases=t,s.props=n,s.propSet=new Set(n.map(function(e){return e.name})),s}return n(t,e),t.prototype.getChecker=function(e,t,n){var o=this,r=this.bases.map(function(n){return i(e,n).getChecker(e,t)}),a=this.props.map(function(n){return n.ttype.getChecker(e,t)}),c=new s.NoopContext,h=this.props.map(function(e,t){return!e.isOpt&&!a[t](void 0,c)}),l=function(e,t){if("object"!=typeof e||null===e)return t.fail(null,"is not an object",0);for(var n=0;n<r.length;n++)if(!r[n](e,t))return!1;for(n=0;n<a.length;n++){var s=o.props[n].name,i=e[s];if(void 0===i){if(h[n])return t.fail(s,"is missing",1)}else if(!a[n](i,t))return t.fail(s,null,1)}return!0};if(!t)return l;var p=this.propSet;return n&&(this.propSet.forEach(function(e){return n.add(e)}),p=n),function(e,t){if(!l(e,t))return!1;for(var n in e)if(!p.has(n))return t.fail(n,"is extraneous",2);return!0}},t}(o);e.TIface=_,e.opt=function(e){return new g(r(e))};var g=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){return void 0===e||n(e,t)}},t}(o);e.TOptional=g;var x=function(){return function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n}}();e.TProp=x,e.func=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new y(new b(t),r(e))};var y=function(e){function t(t,n){var s=e.call(this)||this;return s.paramList=t,s.result=n,s}return n(t,e),t.prototype.getChecker=function(e,t){return function(e,t){return"function"==typeof e||t.fail(null,"is not a function",0)}},t}(o);e.TFunc=y,e.param=function(e,t,n){return new T(e,r(t),Boolean(n))};var T=function(){return function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n}}();e.TParam=T;var b=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this,o=this.params.map(function(n){return n.ttype.getChecker(e,t)}),r=new s.NoopContext,i=this.params.map(function(e,t){return!e.isOpt&&!o[t](void 0,r)}),a=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<o.length;s++){var r=n.params[s];if(void 0===e[s]){if(i[s])return t.fail(r.name,"is missing",1)}else if(!o[s](e[s],t))return t.fail(r.name,null,1)}return!0};return t?function(e,t){return!!a(e,t)&&(e.length<=o.length||t.fail(o.length,"is extraneous",2))}:a},t}(o);e.TParamList=b;var I=function(e){function t(t,n){var s=e.call(this)||this;return s.validator=t,s.message=n,s}return n(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validator(e)||t.fail(null,n.message,0)}},t}(o);e.BasicType=I,e.basicTypes={any:new I(function(e){return!0},"is invalid"),number:new I(function(e){return"number"==typeof e},"is not a number"),object:new I(function(e){return"object"==typeof e&&e},"is not an object"),boolean:new I(function(e){return"boolean"==typeof e},"is not a boolean"),string:new I(function(e){return"string"==typeof e},"is not a string"),symbol:new I(function(e){return"symbol"==typeof e},"is not a symbol"),void:new I(function(e){return null==e},"is not void"),undefined:new I(function(e){return void 0===e},"is not undefined"),null:new I(function(e){return null===e},"is not null"),never:new I(function(e){return!1},"is unexpected"),Date:new I(w("[object Date]"),"is not a Date"),RegExp:new I(w("[object RegExp]"),"is not a RegExp")};var v=Object.prototype.toString;function w(e){return function(t){return"object"==typeof t&&t&&v.call(t)===e}}void 0!==t.Buffer&&(e.basicTypes.Buffer=new I(function(e){return t.Buffer.isBuffer(e)},"is not a Buffer"));for(var C=function(t){e.basicTypes[t.name]=new I(function(e){return e instanceof t},"is not a "+t.name)},A=0,E=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];A<E.length;A++){C(E[A])}}(We)),We}var Ge=(Ue||(Ue=1,function(e){var t=Ve&&Ve.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var s=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],i=0,a=r.length;i<a;i++,o++)s[o]=r[i];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var n=ze(),s=Xe(),o=ze();Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return o.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return o.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return o.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return o.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return o.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return o.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return o.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return o.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return o.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return o.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return o.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return o.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return o.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return o.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return o.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return o.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return o.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return o.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return o.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return o.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return o.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return o.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return o.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return o.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return o.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return o.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return o.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return o.BasicType}});var r=Xe();Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return r.VError}}),e.createCheckers=function(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];for(var o=Object.assign.apply(Object,t([{},n.basicTypes],e)),r={},a=0,c=e;a<c.length;a++)for(var h=c[a],l=0,p=Object.keys(h);l<p.length;l++){var u=p[l];r[u]=new i(o,h[u])}return r};var i=function(){function e(e,t,s){if(void 0===s&&(s="value"),this.suite=e,this.ttype=t,this._path=s,this.props=new Map,t instanceof n.TIface)for(var o=0,r=t.props;o<r.length;o++){var i=r[o];this.props.set(i.name,i.ttype)}this.checkerPlain=this.ttype.getChecker(e,!1),this.checkerStrict=this.ttype.getChecker(e,!0)}return e.prototype.setReportedPath=function(e){this._path=e},e.prototype.check=function(e){return this._doCheck(this.checkerPlain,e)},e.prototype.test=function(e){return this.checkerPlain(e,new s.NoopContext)},e.prototype.validate=function(e){return this._doValidate(this.checkerPlain,e)},e.prototype.strictCheck=function(e){return this._doCheck(this.checkerStrict,e)},e.prototype.strictTest=function(e){return this.checkerStrict(e,new s.NoopContext)},e.prototype.strictValidate=function(e){return this._doValidate(this.checkerStrict,e)},e.prototype.getProp=function(t){var n=this.props.get(t);if(!n)throw new Error("Type has no property "+t);return new e(this.suite,n,this._path+"."+t)},e.prototype.methodArgs=function(t){var n=this._getMethod(t);return new e(this.suite,n.paramList)},e.prototype.methodResult=function(t){var n=this._getMethod(t);return new e(this.suite,n.result)},e.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new e(this.suite,this.ttype.paramList)},e.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new e(this.suite,this.ttype.result)},e.prototype.getType=function(){return this.ttype},e.prototype._doCheck=function(e,t){if(!e(t,new s.NoopContext)){var n=new s.DetailContext;throw e(t,n),n.getError(this._path)}},e.prototype._doValidate=function(e,t){if(e(t,new s.NoopContext))return null;var n=new s.DetailContext;return e(t,n),n.getErrorDetail(this._path)},e.prototype._getMethod=function(e){var t=this.props.get(e);if(!t)throw new Error("Type has no property "+e);if(!(t instanceof n.TFunc))throw new Error("Property "+e+" is not a method");return t},e}();e.Checker=i}(Ve)),Ve);const Je={Transform:Ge.union(Ge.lit("jsx"),Ge.lit("typescript"),Ge.lit("flow"),Ge.lit("imports"),Ge.lit("react-hot-loader"),Ge.lit("jest")),SourceMapOptions:Ge.iface([],{compiledFilename:"string"}),Options:Ge.iface([],{transforms:Ge.array("Transform"),disableESTransforms:Ge.opt("boolean"),jsxRuntime:Ge.opt(Ge.union(Ge.lit("classic"),Ge.lit("automatic"),Ge.lit("preserve"))),production:Ge.opt("boolean"),jsxImportSource:Ge.opt("string"),jsxPragma:Ge.opt("string"),jsxFragmentPragma:Ge.opt("string"),keepUnusedImports:Ge.opt("boolean"),preserveDynamicImport:Ge.opt("boolean"),injectCreateRequireForImportRequire:Ge.opt("boolean"),enableLegacyTypeScriptModuleInterop:Ge.opt("boolean"),enableLegacyBabel5ModuleInterop:Ge.opt("boolean"),sourceMapOptions:Ge.opt("SourceMapOptions"),filePath:Ge.opt("string")})},{Options:Qe}=Ge.createCheckers(Je);function Ye(){V(),mn(!1)}function Ze(e){V(),st(e)}function et(e){Hn(),nt(e)}function tt(){Hn(),p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration}function nt(e){let t;t=0===p.scopeDepth?O.TopLevelDeclaration:e?O.BlockScopedDeclaration:O.FunctionScopedDeclaration,p.tokens[p.tokens.length-1].identifierRole=t}function st(e){switch(p.type){case s._this:{const e=X(0);return V(),void z(e)}case s._yield:case s.name:return p.type=s.name,void et(e);case s.bracketL:return V(),void ot(s.bracketR,e,!0);case s.braceL:return void Pn(!0,e);default:A()}}function ot(e,t,n=!1,o=!1,r=0){let i=!0,a=!1;const c=p.tokens.length;for(;!G(e)&&!p.error;)if(i?i=!1:(C(s.comma),p.tokens[p.tokens.length-1].contextId=r,!a&&p.tokens[c].isType&&(p.tokens[p.tokens.length-1].isType=!0,a=!0)),n&&Q(s.comma));else{if(G(e))break;if(Q(s.ellipsis)){Ze(t),it(),G(s.comma),C(e);break}rt(o,t)}}function rt(e,t){e&<([n._public,n._protected,n._private,n._readonly,n._override]),at(t),it(),at(t,!0)}function it(){l?function(){const e=X(0);G(s.question),Q(s.colon)&&bs();z(e)}():h&&function(){const e=X(0);G(s.question),Dt(),z(e)}()}function at(e,t=!1){if(t||st(e),!G(s.eq))return;const n=p.tokens.length-1;mn(),p.tokens[n].rhsEndIndex=p.tokens.length}function ct(){return Q(s.name)}function ht(){const e=p.snapshot();V();return!!((Q(s.bracketL)||Q(s.braceL)||Q(s.star)||Q(s.ellipsis)||Q(s.hash)||Q(s.name)||Boolean(p.type&s.IS_KEYWORD)||Q(s.string)||Q(s.num)||Q(s.bigint)||Q(s.decimal))&&!b())||(p.restoreFromSnapshot(e),!1)}function lt(e){for(;;){if(null===pt(e))break}}function pt(e){if(!Q(s.name))return null;const t=p.contextualKeyword;if(-1!==e.indexOf(t)&&ht()){switch(t){case n._readonly:p.tokens[p.tokens.length-1].type=s._readonly;break;case n._abstract:p.tokens[p.tokens.length-1].type=s._abstract;break;case n._static:p.tokens[p.tokens.length-1].type=s._static;break;case n._public:p.tokens[p.tokens.length-1].type=s._public;break;case n._private:p.tokens[p.tokens.length-1].type=s._private;break;case n._protected:p.tokens[p.tokens.length-1].type=s._protected;break;case n._override:p.tokens[p.tokens.length-1].type=s._override;break;case n._declare:p.tokens[p.tokens.length-1].type=s._declare}return t}return null}function ut(){for(Hn();G(s.dot);)Hn()}function ft(){C(s._import),C(s.parenL),C(s.string),C(s.parenR),G(s.dot)&&ut(),Q(s.lessThan)&&Yt()}function dt(){G(s._const);const e=G(s._in),t=x(n._out);G(s._const),!e&&!t||Q(s.name)?Hn():p.tokens[p.tokens.length-1].type=s.name,G(s._extends)&&Pt(),G(s.eq)&&Pt()}function mt(){Q(s.lessThan)&&kt()}function kt(){const e=X(0);for(Q(s.lessThan)||Q(s.typeParameterStart)?V():A();!G(s.greaterThan)&&!p.error;)dt(),G(s.comma);z(e)}function _t(e){const t=e===s.arrow;var n;mt(),C(s.parenL),p.scopeDepth++,n=!1,ot(s.parenR,n),p.scopeDepth--,(t||Q(e))&&jt(e)}function gt(){G(s.comma)||w()}function xt(){_t(s.colon),gt()}function yt(){if(!Q(s.bracketL)||!function(){const e=p.snapshot();V();const t=G(s.name)&&Q(s.colon);return p.restoreFromSnapshot(e),t}())return!1;const e=X(0);return C(s.bracketL),Hn(),Ot(),C(s.bracketR),Dt(),gt(),z(e),!0}function Tt(e){G(s.question),e||!Q(s.parenL)&&!Q(s.lessThan)?(Dt(),gt()):(_t(s.colon),gt())}function bt(){if(Q(s.parenL)||Q(s.lessThan))return void xt();if(Q(s._new))return V(),void(Q(s.parenL)||Q(s.lessThan)?xt():Tt(!1));const e=!!pt([n._readonly]);yt()||((_(n._get)||_(n._set))&&ht(),$n(-1),Tt(e))}function It(){for(C(s.braceL);!G(s.braceR)&&!p.error;)bt()}function vt(){const e=p.snapshot(),t=function(){if(V(),G(s.plus)||G(s.minus))return _(n._readonly);_(n._readonly)&&V();if(!Q(s.bracketL))return!1;if(V(),!ct())return!1;return V(),Q(s._in)}();return p.restoreFromSnapshot(e),t}function wt(){C(s.braceL),Q(s.plus)||Q(s.minus)?(V(),y(n._readonly)):x(n._readonly),C(s.bracketL),Hn(),C(s._in),Pt(),x(n._as)&&Pt(),C(s.bracketR),Q(s.plus)||Q(s.minus)?(V(),C(s.question)):G(s.question),G(s.colon)&&Pt(),w(),C(s.braceR)}function Ct(){G(s.ellipsis)?Pt():(Pt(),G(s.question)),G(s.colon)&&Pt()}var At;function Et(e){e===At.TSAbstractConstructorType&&y(n._abstract),e!==At.TSConstructorType&&e!==At.TSAbstractConstructorType||C(s._new);const t=p.inDisallowConditionalTypesContext;p.inDisallowConditionalTypesContext=!1,_t(s.arrow),p.inDisallowConditionalTypesContext=t}function St(){switch(p.type){case s.name:return ut(),void(!b()&&Q(s.lessThan)&&Yt());case s._void:case s._null:return void V();case s.string:case s.num:case s.bigint:case s.decimal:case s._true:case s._false:return void Nn();case s.minus:return V(),void Nn();case s._this:return V(),void(_(n._is)&&!b()&&(V(),Ot()));case s._typeof:return C(s._typeof),Q(s._import)?ft():ut(),void(!b()&&Q(s.lessThan)&&Yt());case s._import:return void ft();case s.braceL:return void(vt()?wt():It());case s.bracketL:return void function(){for(C(s.bracketL);!G(s.bracketR)&&!p.error;)Ct(),G(s.comma)}();case s.parenL:return C(s.parenL),Pt(),void C(s.parenR);case s.backQuote:return void function(){for(W(),W();!Q(s.backQuote)&&!p.error;)C(s.dollarBraceL),Pt(),W(),W();V()}();default:if(p.type&s.IS_KEYWORD)return V(),void(p.tokens[p.tokens.length-1].type=s.name)}A()}function Nt(){if(_(n._keyof)||_(n._unique)||_(n._readonly))V(),Nt();else if(_(n._infer))!function(){if(y(n._infer),Hn(),Q(s._extends)){const e=p.snapshot();C(s._extends);const t=p.inDisallowConditionalTypesContext;p.inDisallowConditionalTypesContext=!0,Pt(),p.inDisallowConditionalTypesContext=t,(p.error||!p.inDisallowConditionalTypesContext&&Q(s.question))&&p.restoreFromSnapshot(e)}}();else{const e=p.inDisallowConditionalTypesContext;p.inDisallowConditionalTypesContext=!1,function(){for(St();!b()&&G(s.bracketL);)G(s.bracketR)||(Pt(),C(s.bracketR))}(),p.inDisallowConditionalTypesContext=e}}function Rt(){if(G(s.bitwiseAND),Nt(),Q(s.bitwiseAND))for(;G(s.bitwiseAND);)Nt()}function Lt(){return!!Q(s.lessThan)||Q(s.parenL)&&function(){const e=p.snapshot(),t=function(){if(V(),Q(s.parenR)||Q(s.ellipsis))return!0;if(function(){if(Q(s.name)||Q(s._this))return V(),!0;if(Q(s.braceL)||Q(s.bracketL)){let e=1;for(V();e>0&&!p.error;)Q(s.braceL)||Q(s.bracketL)?e++:(Q(s.braceR)||Q(s.bracketR))&&e--,V();return!0}return!1}()){if(Q(s.colon)||Q(s.comma)||Q(s.question)||Q(s.eq))return!0;if(Q(s.parenR)&&(V(),Q(s.arrow)))return!0}return!1}();return p.restoreFromSnapshot(e),t}()}function jt(e){const t=X(0);C(e);(function(){const e=p.snapshot();if(_(n._asserts))return V(),x(n._is)?(Pt(),!0):ct()||Q(s._this)?(V(),x(n._is)&&Pt(),!0):(p.restoreFromSnapshot(e),!1);if(ct()||Q(s._this))return V(),_(n._is)&&!b()?(V(),Pt(),!0):(p.restoreFromSnapshot(e),!1);return!1})()||Pt(),z(t)}function Dt(){Q(s.colon)&&Ot()}function Ot(){const e=X(0);C(s.colon),Pt(),z(e)}function Pt(){if(qt(),p.inDisallowConditionalTypesContext||b()||!G(s._extends))return;const e=p.inDisallowConditionalTypesContext;p.inDisallowConditionalTypesContext=!0,qt(),p.inDisallowConditionalTypesContext=e,C(s.question),Pt(),C(s.colon),Pt()}function qt(){Lt()?Et(At.TSFunctionType):Q(s._new)?Et(At.TSConstructorType):_(n._abstract)&&Y()===s._new?Et(At.TSAbstractConstructorType):function(){if(G(s.bitwiseOR),Rt(),Q(s.bitwiseOR))for(;G(s.bitwiseOR);)Rt()}()}function Ft(){for(;!Q(s.braceL)&&!p.error;)$t(),G(s.comma)}function $t(){ut(),Q(s.lessThan)&&Yt()}function Mt(){if(Q(s.string)?Nn():Hn(),G(s.eq)){const e=p.tokens.length-1;mn(),p.tokens[e].rhsEndIndex=p.tokens.length}}function Bt(){for(et(!1),C(s.braceL);!G(s.braceR)&&!p.error;)Mt(),G(s.comma)}function Kt(){C(s.braceL),Os(s.braceR)}function Ut(){et(!1),G(s.dot)?Ut():Kt()}function Vt(){_(n._global)?Hn():Q(s.string)?En():A(),Q(s.braceL)?Kt():w()}function Wt(){tt(),C(s.eq),_(n._require)&&Y()===s.parenL?(y(n._require),C(s.parenL),Q(s.string)||A(),Nn(),C(s.parenR)):ut(),w()}function Ht(){return zt(p.contextualKeyword,!0)}function Xt(e){switch(e){case n._declare:{const e=p.tokens.length-1,t=function(){if(v())return!1;switch(p.type){case s._function:{const e=X(1);return V(),Ms(p.start,!0),z(e),!0}case s._class:{const e=X(1);return Ks(!0,!1),z(e),!0}case s._const:if(Q(s._const)&&g(n._enum)){const e=X(1);return C(s._const),y(n._enum),p.tokens[p.tokens.length-1].type=s._enum,Bt(),z(e),!0}case s._var:case s._let:{const e=X(1);return js(p.type!==s._var),z(e),!0}case s.name:{const e=X(1),t=p.contextualKeyword;let s=!1;return t===n._global?(Vt(),s=!0):s=zt(t,!0),z(e),s}default:return!1}}();if(t)return p.tokens[e].type=s._declare,!0;break}case n._global:if(Q(s.braceL))return Kt(),!0;break;default:return zt(e,!1)}return!1}function zt(e,t){switch(e){case n._abstract:if(Gt(t)&&Q(s._class))return p.tokens[p.tokens.length-1].type=s._abstract,Ks(!0,!1),!0;break;case n._enum:if(Gt(t)&&Q(s.name))return p.tokens[p.tokens.length-1].type=s._enum,Bt(),!0;break;case n._interface:if(Gt(t)&&Q(s.name)){const e=X(t?2:1);return et(!1),mt(),G(s._extends)&&Ft(),It(),z(e),!0}break;case n._module:if(Gt(t)){if(Q(s.string)){const e=X(t?2:1);return Vt(),z(e),!0}if(Q(s.name)){const e=X(t?2:1);return Ut(),z(e),!0}}break;case n._namespace:if(Gt(t)&&Q(s.name)){const e=X(t?2:1);return Ut(),z(e),!0}break;case n._type:if(Gt(t)&&Q(s.name)){const e=X(t?2:1);return et(!1),mt(),C(s.eq),Pt(),w(),z(e),!0}}return!1}function Gt(e){return e?(V(),!0):!v()}function Jt(){const e=p.snapshot();return kt(),Bs(),Q(s.colon)&&jt(s.colon),C(s.arrow),p.error?(p.restoreFromSnapshot(e),!1):(Un(!0),!0)}function Qt(){p.type===s.bitShiftL&&(p.pos-=1,ce(s.lessThan)),Yt()}function Yt(){const e=X(0);for(C(s.lessThan);!Q(s.greaterThan)&&!p.error;)Pt(),G(s.comma);e?(C(s.greaterThan),z(e)):(z(e),le(),C(s.greaterThan),p.tokens[p.tokens.length-1].isType=!0)}function Zt(){if(Q(s.name))switch(p.contextualKeyword){case n._abstract:case n._declare:case n._enum:case n._interface:case n._module:case n._namespace:case n._type:return!0}return!1}function en(e,t){return c?function(e,t){if(!Q(s.lessThan))return kn(e,t);const n=p.snapshot();let o=kn(e,t);if(!p.error)return o;p.restoreFromSnapshot(n);p.type=s.typeParameterStart,kt(),o=kn(e,t),o||A();return o}(e,t):function(e,t){if(!Q(s.lessThan))return kn(e,t);const n=p.snapshot();kt();const o=kn(e,t);o||A();if(!p.error)return o;p.restoreFromSnapshot(n);return kn(e,t)}(e,t)}function tn(){pn()}function nn(e){tn(),G(s.colon)?tn():p.tokens[p.tokens.length-1].identifierRole=e}function sn(){const e=p.tokens.length;nn(O.Access);let t=!1;for(;Q(s.dot);)t=!0,pn(),tn();if(!t){const t=p.tokens[e],n=u.charCodeAt(t.start);n>=o.lowercaseA&&n<=o.lowercaseZ&&(t.identifierRole=null)}}function on(){switch(p.type){case s.braceL:return V(),dn(),void pn();case s.jsxTagStart:return ln(),void pn();case s.string:return void pn();default:A("JSX value should be either an expression or a quoted JSX text")}}function rn(){C(s.ellipsis),dn()}function an(e){if(Q(s.jsxTagEnd))return!1;sn(),h&&function(){if(G(s.jsxTagStart)){p.tokens[p.tokens.length-1].type=s.typeParameterStart;const e=X(1);for(;!Q(s.greaterThan)&&!p.error;)Pt(),G(s.comma);pn(),z(e)}}();let t=!1;for(;!Q(s.slash)&&!Q(s.jsxTagEnd)&&!p.error;)G(s.braceL)?(t=!0,C(s.ellipsis),mn(),pn()):(t&&p.end-p.start===3&&u.charCodeAt(p.start)===o.lowercaseK&&u.charCodeAt(p.start+1)===o.lowercaseE&&u.charCodeAt(p.start+2)===o.lowercaseY&&(p.tokens[e].jsxRole=P.KeyAfterPropSpread),nn(O.ObjectKey),Q(s.eq)&&(pn(),on()));const n=Q(s.slash);return n&&pn(),n}function cn(){Q(s.jsxTagEnd)||sn()}function hn(){const e=p.tokens.length-1;p.tokens[e].jsxRole=P.NoChildren;let t=0;if(!an(e))for(un();;)switch(p.type){case s.jsxTagStart:if(pn(),Q(s.slash))return pn(),cn(),void(p.tokens[e].jsxRole!==P.KeyAfterPropSpread&&(1===t?p.tokens[e].jsxRole=P.OneChild:t>1&&(p.tokens[e].jsxRole=P.StaticChildren)));t++,hn(),un();break;case s.jsxText:t++,un();break;case s.jsxEmptyText:un();break;case s.braceL:V(),Q(s.ellipsis)?(rn(),un(),t+=2):(Q(s.braceR)||(t++,dn()),un());break;default:return void A()}}function ln(){pn(),hn()}function pn(){p.tokens.push(new U),ae(),p.start=p.pos;const e=u.charCodeAt(p.pos);if(j[e])!function(){let e;do{if(p.pos>u.length)return void A("Unexpectedly reached the end of input.");e=u.charCodeAt(++p.pos)}while(L[e]||e===o.dash);ce(s.jsxName)}();else if(e===o.quotationMark||e===o.apostrophe)!function(e){for(p.pos++;;){if(p.pos>=u.length)return void A("Unterminated string constant");if(u.charCodeAt(p.pos)===e){p.pos++;break}p.pos++}ce(s.string)}(e);else switch(++p.pos,e){case o.greaterThan:ce(s.jsxTagEnd);break;case o.lessThan:ce(s.jsxTagStart);break;case o.slash:ce(s.slash);break;case o.equalsTo:ce(s.eq);break;case o.leftCurlyBrace:ce(s.braceL);break;case o.dot:ce(s.dot);break;case o.colon:ce(s.colon);break;default:A()}}function un(){p.tokens.push(new U),p.start=p.pos,function(){let e=!1,t=!1;for(;;){if(p.pos>=u.length)return void A("Unterminated JSX contents");const n=u.charCodeAt(p.pos);if(n===o.lessThan||n===o.leftCurlyBrace)return p.pos===p.start?n===o.lessThan?(p.pos++,void ce(s.jsxTagStart)):void pe(n):void ce(e&&!t?s.jsxEmptyText:s.jsxText);n===o.lineFeed?e=!0:n!==o.space&&n!==o.carriageReturn&&n!==o.tab&&(t=!0),p.pos++}}()}!function(e){e[e.TSFunctionType=0]="TSFunctionType";e[e.TSConstructorType=1]="TSConstructorType";e[e.TSAbstractConstructorType=2]="TSAbstractConstructorType"}(At||(At={}));class fn{constructor(e){this.stop=e}}function dn(e=!1){if(mn(e),Q(s.comma))for(;G(s.comma);)mn(e)}function mn(e=!1,t=!1){return h?en(e,t):l?function(e,t){if(Q(s.lessThan)){const n=p.snapshot();let o=kn(e,t);if(!p.error)return o;p.restoreFromSnapshot(n),p.type=s.typeParameterStart;const r=X(0);if(os(),z(r),o=kn(e,t),o)return!0;A()}return kn(e,t)}(e,t):kn(e,t)}function kn(e,t){if(Q(s._yield))return V(),Q(s.semi)||T()||(G(s.star),mn()),!1;(Q(s.parenL)||Q(s.name)||Q(s._yield))&&(p.potentialArrowAt=p.start);const n=function(e){const t=function(e){const t=p.tokens.length,n=xn();if(n)return!0;return gn(t,-1,e),!1}(e);if(t)return!0;return function(e){h||l?function(e){if(Q(s.question)){const e=Y();if(e===s.colon||e===s.comma||e===s.parenR)return}_n(e)}(e):_n(e)}(e),!1}(e);return t&&Dn(),p.type&s.IS_ASSIGN?(V(),mn(e),!1):n}function _n(e){G(s.question)&&(mn(),C(s.colon),mn(e))}function gn(e,t,o){if(h&&(s._in&s.PRECEDENCE_MASK)>t&&!b()&&(x(n._as)||x(n._satisfies))){const n=X(1);return Pt(),z(n),le(),void gn(e,t,o)}const r=p.type&s.PRECEDENCE_MASK;if(r>0&&(!o||!Q(s._in))&&r>t){const n=p.type;V(),n===s.nullishCoalescing&&(p.tokens[p.tokens.length-1].nullishStartIndex=e);const i=p.tokens.length;xn(),gn(i,n&s.IS_RIGHT_ASSOCIATIVE?r-1:r,o),n===s.nullishCoalescing&&(p.tokens[e].numNullishCoalesceStarts++,p.tokens[p.tokens.length-1].numNullishCoalesceEnds++),gn(e,t,o)}}function xn(){if(h&&!c&&G(s.lessThan))return function(){const e=X(1);Pt(),C(s.greaterThan),z(e),xn()}(),!1;if(_(n._module)&&se()===o.leftCurlyBrace&&!I())return y(n._module),C(s.braceL),Os(s.braceR),!1;if(p.type&s.IS_PREFIX)return V(),xn(),!1;if(yn())return!0;for(;p.type&s.IS_POSTFIX&&!T();)p.type===s.preIncDec&&(p.type=s.postIncDec),V();return!1}function yn(){const e=p.tokens.length;return!!En()||(Tn(e),p.tokens.length>e&&p.tokens[e].isOptionalChainStart&&(p.tokens[p.tokens.length-1].isOptionalChainEnd=!0),!1)}function Tn(e,t=!1){l?function(e,t=!1){if(p.tokens[p.tokens.length-1].contextualKeyword===n._async&&Q(s.lessThan)){const e=p.snapshot(),t=function(){p.scopeDepth++;const e=p.tokens.length;if(Bs(),!jn())return!1;return Bn(e),!0}();if(t&&!p.error)return;p.restoreFromSnapshot(e)}bn(e,t)}(e,t):bn(e,t)}function bn(e,t=!1){const n=new fn(!1);do{In(e,t,n)}while(!n.stop&&!p.error)}function In(e,t,n){h?function(e,t,n){if(b()||!G(s.bang)){if(Q(s.lessThan)||Q(s.bitShiftL)){const n=p.snapshot();if(!t&&wn()&&Jt())return;if(Qt(),!t&&G(s.parenL)?(p.tokens[p.tokens.length-1].subscriptStartIndex=e,Cn()):Q(s.backQuote)?On():(p.type===s.greaterThan||p.type!==s.parenL&&Boolean(p.type&s.IS_EXPRESSION_START)&&!b())&&A(),!p.error)return;p.restoreFromSnapshot(n)}else!t&&Q(s.questionDot)&&Y()===s.lessThan&&(V(),p.tokens[e].isOptionalChainStart=!0,p.tokens[p.tokens.length-1].subscriptStartIndex=e,Yt(),C(s.parenL),Cn());vn(e,t,n)}else p.tokens[p.tokens.length-1].type=s.nonNullAssertion}(e,t,n):l?function(e,t,n){if(Q(s.questionDot)&&Y()===s.lessThan)return t?void(n.stop=!0):(V(),rs(),C(s.parenL),void Cn());if(!t&&Q(s.lessThan)){const e=p.snapshot();if(rs(),C(s.parenL),Cn(),!p.error)return;p.restoreFromSnapshot(e)}vn(e,t,n)}(e,t,n):vn(e,t,n)}function vn(e,t,n){if(!t&&G(s.doubleColon))An(),n.stop=!0,Tn(e,t);else if(Q(s.questionDot)){if(p.tokens[e].isOptionalChainStart=!0,t&&Y()===s.parenL)return void(n.stop=!0);V(),p.tokens[p.tokens.length-1].subscriptStartIndex=e,G(s.bracketL)?(dn(),C(s.bracketR)):G(s.parenL)?Cn():Sn()}else if(G(s.dot))p.tokens[p.tokens.length-1].subscriptStartIndex=e,Sn();else if(G(s.bracketL))p.tokens[p.tokens.length-1].subscriptStartIndex=e,dn(),C(s.bracketR);else if(!t&&Q(s.parenL))if(wn()){const t=p.snapshot(),o=p.tokens.length;V(),p.tokens[p.tokens.length-1].subscriptStartIndex=e;const r=d();p.tokens[p.tokens.length-1].contextId=r,Cn(),p.tokens[p.tokens.length-1].contextId=r,(Q(s.colon)||Q(s.arrow))&&(p.restoreFromSnapshot(t),n.stop=!0,p.scopeDepth++,Bs(),function(e){h?Q(s.colon)&&Ot():l&&function(){if(Q(s.colon)){const e=p.noAnonFunctionType;p.noAnonFunctionType=!0,bs(),p.noAnonFunctionType=e}}();C(s.arrow),Bn(e)}(o))}else{V(),p.tokens[p.tokens.length-1].subscriptStartIndex=e;const t=d();p.tokens[p.tokens.length-1].contextId=t,Cn(),p.tokens[p.tokens.length-1].contextId=t}else Q(s.backQuote)?On():n.stop=!0}function wn(){return p.tokens[p.tokens.length-1].contextualKeyword===n._async&&!T()}function Cn(){let e=!0;for(;!G(s.parenR)&&!p.error;){if(e)e=!1;else if(C(s.comma),G(s.parenR))break;Wn(!1)}}function An(){const e=p.tokens.length;En(),Tn(e,!0)}function En(){if(G(s.modulo))return Hn(),!1;if(Q(s.jsxText)||Q(s.jsxEmptyText))return Nn(),!1;if(Q(s.lessThan)&&c)return p.type=s.jsxTagStart,ln(),V(),!1;const e=p.potentialArrowAt===p.start;switch(p.type){case s.slash:case s.assign:H();case s._super:case s._this:case s.regexp:case s.num:case s.bigint:case s.decimal:case s.string:case s._null:case s._true:case s._false:return V(),!1;case s._import:return V(),Q(s.dot)&&(p.tokens[p.tokens.length-1].type=s.name,V(),Hn()),!1;case s.name:{const t=p.tokens.length,o=p.start,r=p.contextualKeyword;return Hn(),r===n._await?(xn(),!1):r===n._async&&Q(s._function)&&!T()?(V(),Ms(o,!1),!1):e&&r===n._async&&!T()&&Q(s.name)?(p.scopeDepth++,et(!1),C(s.arrow),Bn(t),!0):Q(s._do)&&!T()?(V(),Ds(),!1):e&&!T()&&Q(s.arrow)?(p.scopeDepth++,nt(!1),C(s.arrow),Bn(t),!0):(p.tokens[p.tokens.length-1].identifierRole=O.Access,!1)}case s._do:return V(),Ds(),!1;case s.parenL:return Ln(e);case s.bracketL:return V(),Vn(s.bracketR,!0),!1;case s.braceL:return Pn(!1,!1),!1;case s._function:return function(){const e=p.start;Hn(),G(s.dot)&&Hn();Ms(e,!1)}(),!1;case s.at:Ns();case s._class:return Ks(!1),!1;case s._new:return function(){if(C(s._new),G(s.dot))return void Hn();An(),void G(s.questionDot),l&&function(){if(Q(s.lessThan)){const e=p.snapshot();rs(),p.error&&p.restoreFromSnapshot(e)}}();G(s.parenL)&&Vn(s.parenR)}(),!1;case s.backQuote:return On(),!1;case s.doubleColon:return V(),An(),!1;case s.hash:{const e=se();return j[e]||e===o.backslash?Sn():V(),!1}default:return A(),!1}}function Sn(){G(s.hash),Hn()}function Nn(){V()}function Rn(){C(s.parenL),dn(),C(s.parenR)}function Ln(e){const t=p.snapshot(),n=p.tokens.length;C(s.parenL);let o=!0;for(;!Q(s.parenR)&&!p.error;){if(o)o=!1;else if(C(s.comma),Q(s.parenR))break;if(Q(s.ellipsis)){Ze(!1),Dn();break}mn(!1,!0)}if(C(s.parenR),e&&(Q(s.colon)||!T())){if(jn())return p.restoreFromSnapshot(t),p.scopeDepth++,Bs(),jn(),Bn(n),!p.error||(p.restoreFromSnapshot(t),Ln(!1),!1)}return!1}function jn(){return h?function(){if(Q(s.colon)){const e=p.snapshot();jt(s.colon),T()&&A(),Q(s.arrow)||A(),p.error&&p.restoreFromSnapshot(e)}return G(s.arrow)}():l?function(){if(Q(s.colon)){const e=X(0),t=p.snapshot(),n=p.noAnonFunctionType;p.noAnonFunctionType=!0,Gn(),p.noAnonFunctionType=n,T()&&A(),Q(s.arrow)||A(),p.error&&p.restoreFromSnapshot(t),z(e)}return G(s.arrow)}():G(s.arrow)}function Dn(){(h||l)&&(J(s.question),Q(s.colon)&&(h?Ot():l&&bs()))}function On(){for(W(),W();!Q(s.backQuote)&&!p.error;)C(s.dollarBraceL),dn(),W(),W();V()}function Pn(e,t){const o=d();let r=!0;for(V(),p.tokens[p.tokens.length-1].contextId=o;!G(s.braceR)&&!p.error;){if(r)r=!1;else if(C(s.comma),G(s.braceR))break;let i=!1;if(Q(s.ellipsis)){const n=p.tokens.length;if(Ye(),e&&(p.tokens.length===n+2&&nt(t),G(s.braceR)))break;continue}e||(i=G(s.star)),!e&&_(n._async)?(i&&A(),Hn(),Q(s.colon)||Q(s.parenL)||Q(s.braceR)||Q(s.eq)||Q(s.comma)||(Q(s.star)&&(V(),i=!0),$n(o))):$n(o),Fn(e,t,o)}p.tokens[p.tokens.length-1].contextId=o}function qn(e,t){const n=p.start;return Q(s.parenL)?(e&&A(),Mn(n,!1),!0):!!function(e){return!e&&(Q(s.string)||Q(s.num)||Q(s.bracketL)||Q(s.name)||!!(p.type&s.IS_KEYWORD))}(e)&&($n(t),Mn(n,!1),!0)}function Fn(e,t,n){h?mt():l&&Q(s.lessThan)&&(os(),Q(s.parenL)||A());qn(e,n)||function(e,t){if(G(s.colon))return void(e?at(t):mn(!1));let n;n=e?0===p.scopeDepth?O.ObjectShorthandTopLevelDeclaration:t?O.ObjectShorthandBlockScopedDeclaration:O.ObjectShorthandFunctionScopedDeclaration:O.ObjectShorthand,p.tokens[p.tokens.length-1].identifierRole=n,at(t,!0)}(e,t)}function $n(e){l&&vs(),G(s.bracketL)?(p.tokens[p.tokens.length-1].contextId=e,mn(),C(s.bracketR),p.tokens[p.tokens.length-1].contextId=e):(Q(s.num)||Q(s.string)||Q(s.bigint)||Q(s.decimal)?En():Sn(),p.tokens[p.tokens.length-1].identifierRole=O.ObjectKey,p.tokens[p.tokens.length-1].contextId=e)}function Mn(e,t){const n=d();p.scopeDepth++;const s=p.tokens.length;Bs(t,n),Kn(e,n);const o=p.tokens.length;p.scopes.push(new r(s,o,!0)),p.scopeDepth--}function Bn(e){Un(!0);const t=p.tokens.length;p.scopes.push(new r(e,t,!0)),p.scopeDepth--}function Kn(e,t=0){h?function(e,t){if(Q(s.colon)&&jt(s.colon),!Q(s.braceL)&&v()){let t=p.tokens.length-1;for(;t>=0&&(p.tokens[t].start>=e||p.tokens[t].type===s._default||p.tokens[t].type===s._export);)p.tokens[t].isType=!0,t--;return}Un(!1,t)}(e,t):l?function(e){Q(s.colon)&&Gn();Un(!1,e)}(t):Un(!1,t)}function Un(e,t=0){e&&!Q(s.braceL)?mn():Ds(!0,t)}function Vn(e,t=!1){let n=!0;for(;!G(e)&&!p.error;){if(n)n=!1;else if(C(s.comma),G(e))break;Wn(t)}}function Wn(e){e&&Q(s.comma)||(Q(s.ellipsis)?(Ye(),Dn()):Q(s.question)?V():mn(!1,!0))}function Hn(){V(),p.tokens[p.tokens.length-1].type=s.name}function Xn(e){const t=X(0);C(e||s.colon),Ts(),z(t)}function zn(){C(s.modulo),y(n._checks),G(s.parenL)&&(dn(),C(s.parenR))}function Gn(){const e=X(0);C(s.colon),Q(s.modulo)?zn():(Ts(),Q(s.modulo)&&zn()),z(e)}function Jn(){Q(s._class)?(V(),Qn(!0)):Q(s._function)?(V(),Hn(),Q(s.lessThan)&&os(),C(s.parenL),ks(),C(s.parenR),Gn(),w()):Q(s._var)?(V(),Is(),w()):x(n._module)?G(s.dot)?(y(n._exports),bs(),w()):function(){Q(s.string)?En():Hn();C(s.braceL);for(;!Q(s.braceR)&&!p.error;)Q(s._import)?(V(),so()):A();C(s.braceR)}():_(n._type)?(V(),ts()):_(n._opaque)?(V(),ns(!0)):_(n._interface)?(V(),Qn()):Q(s._export)?(C(s._export),G(s._default)?Q(s._function)||Q(s._class)?Jn():(Ts(),w()):Q(s._var)||Q(s._function)||Q(s._class)||_(n._opaque)?Jn():Q(s.star)||Q(s.braceL)||_(n._interface)||_(n._type)||_(n._opaque)?Js():A()):A()}function Qn(e=!1){if(es(),Q(s.lessThan)&&os(),G(s._extends))do{Yn()}while(!e&&G(s.comma));if(_(n._mixins)){V();do{Yn()}while(G(s.comma))}if(_(n._implements)){V();do{Yn()}while(G(s.comma))}ps(e,!1,e)}function Yn(){ds(!1),Q(s.lessThan)&&rs()}function Zn(){Qn()}function es(){Hn()}function ts(){es(),Q(s.lessThan)&&os(),Xn(s.eq),w()}function ns(e){y(n._type),es(),Q(s.lessThan)&&os(),Q(s.colon)&&Xn(s.colon),e||Xn(s.eq),w()}function ss(){vs(),Is(),G(s.eq)&&Ts()}function os(){const e=X(0);Q(s.lessThan)||Q(s.typeParameterStart)?V():A();do{ss(),Q(s.greaterThan)||C(s.comma)}while(!Q(s.greaterThan)&&!p.error);C(s.greaterThan),z(e)}function rs(){const e=X(0);for(C(s.lessThan);!Q(s.greaterThan)&&!p.error;)Ts(),Q(s.greaterThan)||C(s.comma);C(s.greaterThan),z(e)}function is(){Q(s.num)||Q(s.string)?En():Hn()}function as(){Y()===s.colon?(is(),Xn()):Ts(),C(s.bracketR),Xn()}function cs(){is(),C(s.bracketR),C(s.bracketR),Q(s.lessThan)||Q(s.parenL)?hs():(G(s.question),Xn())}function hs(){for(Q(s.lessThan)&&os(),C(s.parenL);!Q(s.parenR)&&!Q(s.ellipsis)&&!p.error;)ms(),Q(s.parenR)||C(s.comma);G(s.ellipsis)&&ms(),C(s.parenR),Xn()}function ls(){hs()}function ps(e,t,o){let r;for(t&&Q(s.braceBarL)?(C(s.braceBarL),r=s.braceBarR):(C(s.braceL),r=s.braceR);!Q(r)&&!p.error;){if(o&&_(n._proto)){const t=Y();t!==s.colon&&t!==s.question&&(V(),e=!1)}if(e&&_(n._static)){const e=Y();e!==s.colon&&e!==s.question&&V()}if(vs(),G(s.bracketL))G(s.bracketL)?cs():as();else if(Q(s.parenL)||Q(s.lessThan))ls();else{if(_(n._get)||_(n._set)){const e=Y();e!==s.name&&e!==s.string&&e!==s.num||V()}us()}fs()}C(r)}function us(){if(Q(s.ellipsis)){if(C(s.ellipsis),G(s.comma)||G(s.semi),Q(s.braceR))return;Ts()}else is(),Q(s.lessThan)||Q(s.parenL)?hs():(G(s.question),Xn())}function fs(){G(s.semi)||G(s.comma)||Q(s.braceR)||Q(s.braceBarR)||A()}function ds(e){for(e||Hn();G(s.dot);)Hn()}function ms(){const e=Y();e===s.colon||e===s.question?(Hn(),G(s.question),Xn()):Ts()}function ks(){for(;!Q(s.parenR)&&!Q(s.ellipsis)&&!p.error;)ms(),Q(s.parenR)||C(s.comma);G(s.ellipsis)&&ms()}function _s(){let e=!1;const t=p.noAnonFunctionType;switch(p.type){case s.name:return _(n._interface)?void function(){if(y(n._interface),G(s._extends))do{Yn()}while(G(s.comma));ps(!1,!1,!1)}():(Hn(),ds(!0),void(Q(s.lessThan)&&rs()));case s.braceL:return void ps(!1,!1,!1);case s.braceBarL:return void ps(!1,!0,!1);case s.bracketL:return void function(){for(C(s.bracketL);p.pos<u.length&&!Q(s.bracketR)&&(Ts(),!Q(s.bracketR));)C(s.comma);C(s.bracketR)}();case s.lessThan:return os(),C(s.parenL),ks(),C(s.parenR),C(s.arrow),void Ts();case s.parenL:if(V(),!Q(s.parenR)&&!Q(s.ellipsis))if(Q(s.name)){const t=Y();e=t!==s.question&&t!==s.colon}else e=!0;if(e){if(p.noAnonFunctionType=!1,Ts(),p.noAnonFunctionType=t,p.noAnonFunctionType||!(Q(s.comma)||Q(s.parenR)&&Y()===s.arrow))return void C(s.parenR);G(s.comma)}return ks(),C(s.parenR),C(s.arrow),void Ts();case s.minus:return V(),void Nn();case s.string:case s.num:case s._true:case s._false:case s._null:case s._this:case s._void:case s.star:return void V();default:if(p.type===s._typeof)return C(s._typeof),void _s();if(p.type&s.IS_KEYWORD)return V(),void(p.tokens[p.tokens.length-1].type=s.name)}A()}function gs(){G(s.question)?gs():function(){for(_s();!T()&&(Q(s.bracketL)||Q(s.questionDot));)G(s.questionDot),C(s.bracketL),G(s.bracketR)||(Ts(),C(s.bracketR))}()}function xs(){gs(),!p.noAnonFunctionType&&G(s.arrow)&&Ts()}function ys(){for(G(s.bitwiseAND),xs();G(s.bitwiseAND);)xs()}function Ts(){!function(){for(G(s.bitwiseOR),ys();G(s.bitwiseOR);)ys()}()}function bs(){Xn()}function Is(){Hn(),Q(s.colon)&&bs()}function vs(){(Q(s.plus)||Q(s.minus))&&(V(),p.tokens[p.tokens.length-1].isType=!0)}function ws(){if(Q(s._typeof)||_(n._type)){const t=ee();(((e=t).type===s.name||e.type&s.IS_KEYWORD)&&e.contextualKeyword!==n._from||t.type===s.braceL||t.type===s.star)&&V()}var e}function Cs(){y(n._enum),p.tokens[p.tokens.length-1].type=s._enum,Hn(),function(){x(n._of)&&V();C(s.braceL),function(){for(;!Q(s.braceR)&&!p.error&&!G(s.ellipsis);)As(),Q(s.braceR)||C(s.comma)}(),C(s.braceR)}()}function As(){Hn(),G(s.eq)&&V()}function Es(e){l&&function(){if(Q(s.name)&&p.contextualKeyword===n._interface){const e=X(0);return V(),Zn(),z(e),!0}return!!_(n._enum)&&(Cs(),!0)}()||(Q(s.at)&&Ns(),function(e){if(h&&function(){if(p.type===s._const){const e=ee();if(e.type===s.name&&e.contextualKeyword===n._enum)return C(s._const),y(n._enum),p.tokens[p.tokens.length-1].type=s._enum,Bt(),!0}return!1}())return;const t=p.type;switch(t){case s._break:case s._continue:return V(),void(v()||(Hn(),w()));case s._debugger:return V(),void w();case s._do:return V(),Es(!1),C(s._while),Rn(),void G(s.semi);case s._for:return void function(){p.scopeDepth++;const e=p.tokens.length;!function(){V();let e=!1;_(n._await)&&(e=!0,V());if(C(s.parenL),Q(s.semi))return e&&A(),void Ps();const t=Ss();if(t||Q(s._var)||Q(s._let)||Q(s._const)||function(){if(!_(n._using))return!1;if(g(n._of))return!1;return!0}())return t&&y(n._await),V(),Fs(!0,p.type!==s._var),Q(s._in)||_(n._of)?void qs(e):void Ps();if(dn(!0),Q(s._in)||_(n._of))return void qs(e);e&&A();Ps()}();const t=p.tokens.length;p.scopes.push(new r(e,t,!1)),p.scopeDepth--}();case s._function:if(Y()===s.dot)break;return e||A(),void function(){const e=p.start;V(),Ms(e,!0)}();case s._class:return e||A(),void Ks(!0);case s._if:return V(),Rn(),Es(!1),void(G(s._else)&&Es(!1));case s._return:return V(),void(v()||(dn(),w()));case s._switch:return void function(){V(),Rn(),p.scopeDepth++;const e=p.tokens.length;C(s.braceL);for(;!Q(s.braceR)&&!p.error;)if(Q(s._case)||Q(s._default)){const e=Q(s._case);V(),e&&dn(),C(s.colon)}else Es(!0);V();const t=p.tokens.length;p.scopes.push(new r(e,t,!1)),p.scopeDepth--}();case s._throw:return V(),dn(),void w();case s._try:return void function(){if(V(),Ds(),Q(s._catch)){V();let e=null;if(Q(s.parenL)&&(p.scopeDepth++,e=p.tokens.length,C(s.parenL),st(!0),h&&Dt(),C(s.parenR)),Ds(),null!=e){const t=p.tokens.length;p.scopes.push(new r(e,t,!1)),p.scopeDepth--}}G(s._finally)&&Ds()}();case s._let:case s._const:e||A();case s._var:return void js(t!==s._var);case s._while:return V(),Rn(),void Es(!1);case s.braceL:return void Ds();case s.semi:return void V();case s._export:case s._import:{const e=Y();if(e===s.parenL||e===s.dot)break;return V(),void(t===s._import?so():Js())}case s.name:if(p.contextualKeyword===n._async){const e=p.start,t=p.snapshot();if(V(),Q(s._function)&&!T())return C(s._function),void Ms(e,!0);p.restoreFromSnapshot(t)}else{if(p.contextualKeyword===n._using&&!I()&&Y()===s.name)return void js(!0);if(Ss())return y(n._await),void js(!0)}}const o=p.tokens.length;dn();let i=null;if(p.tokens.length===o+1){const e=p.tokens[p.tokens.length-1];e.type===s.name&&(i=e.contextualKeyword)}if(null==i)return void w();G(s.colon)?Es(!0):(a=i,h?function(e){Xt(e)||w()}(a):l?function(e){if(e===n._declare){if(Q(s._class)||Q(s.name)||Q(s._function)||Q(s._var)||Q(s._export)){const e=X(1);Jn(),z(e)}}else if(Q(s.name))if(e===n._interface){const e=X(1);Zn(),z(e)}else if(e===n._type){const e=X(1);ts(),z(e)}else if(e===n._opaque){const e=X(1);ns(!1),z(e)}w()}(a):w());var a}(e))}function Ss(){if(!_(n._await))return!1;const e=p.snapshot();return V(),!_(n._using)||b()?(p.restoreFromSnapshot(e),!1):(V(),!Q(s.name)||b()?(p.restoreFromSnapshot(e),!1):(p.restoreFromSnapshot(e),!0))}function Ns(){for(;Q(s.at);)Rs()}function Rs(){if(V(),G(s.parenL))dn(),C(s.parenR);else{for(Hn();G(s.dot);)Hn();h?((Q(s.lessThan)||Q(s.bitShiftL))&&Qt(),Ls()):Ls()}}function Ls(){G(s.parenL)&&Cn()}function js(e){V(),Fs(!1,e),w()}function Ds(e=!1,t=0){const n=p.tokens.length;p.scopeDepth++,C(s.braceL),t&&(p.tokens[p.tokens.length-1].contextId=t),Os(s.braceR),t&&(p.tokens[p.tokens.length-1].contextId=t);const o=p.tokens.length;p.scopes.push(new r(n,o,e)),p.scopeDepth--}function Os(e){for(;!G(e)&&!p.error;)Es(!0)}function Ps(){C(s.semi),Q(s.semi)||dn(),C(s.semi),Q(s.parenR)||dn(),C(s.parenR),Es(!1)}function qs(e){e?x(n._of):V(),dn(),C(s.parenR),Es(!1)}function Fs(e,t){for(;;){if($s(t),G(s.eq)){const t=p.tokens.length-1;mn(e),p.tokens[t].rhsEndIndex=p.tokens.length}if(!G(s.comma))break}}function $s(e){st(e),h?function(){const e=X(0);b()||G(s.bang),Dt(),z(e)}():l&&Q(s.colon)&&bs()}function Ms(e,t,n=!1){Q(s.star)&&V(),!t||n||Q(s.name)||Q(s._yield)||A();let o=null;Q(s.name)&&(t||(o=p.tokens.length,p.scopeDepth++),et(!1));const i=p.tokens.length;p.scopeDepth++,Bs(),Kn(e);const a=p.tokens.length;p.scopes.push(new r(i,a,!0)),p.scopeDepth--,null!==o&&(p.scopes.push(new r(o,a,!0)),p.scopeDepth--)}function Bs(e=!1,t=0){h?mt():l&&function(){if(Q(s.lessThan)){const e=X(0);os(),z(e)}}(),C(s.parenL),t&&(p.tokens[p.tokens.length-1].contextId=t),ot(s.parenR,!1,!1,e,t),t&&(p.tokens[p.tokens.length-1].contextId=t)}function Ks(e,t=!1){const o=d();V(),p.tokens[p.tokens.length-1].contextId=o,p.tokens[p.tokens.length-1].isExpression=!e;let i=null;e||(i=p.tokens.length,p.scopeDepth++),function(e,t=!1){if(h&&(!e||t)&&_(n._implements))return;Q(s.name)&&et(!0);h?mt():l&&Q(s.lessThan)&&os()}(e,t),function(){let e=!1;G(s._extends)?(yn(),e=!0):e=!1;h?function(e){if(e&&(Q(s.lessThan)||Q(s.bitShiftL))&&Qt(),x(n._implements)){p.tokens[p.tokens.length-1].type=s._implements;const e=X(1);Ft(),z(e)}}(e):l&&function(e){if(e&&Q(s.lessThan)&&rs(),_(n._implements)){const e=X(0);V(),p.tokens[p.tokens.length-1].type=s._implements;do{es(),Q(s.lessThan)&&rs()}while(G(s.comma));z(e)}}(e)}();const a=p.tokens.length;if(function(e){C(s.braceL);for(;!G(s.braceR)&&!p.error;){if(G(s.semi))continue;if(Q(s.at)){Rs();continue}Ws(p.start,e)}}(o),!p.error&&(p.tokens[a].contextId=o,p.tokens[p.tokens.length-1].contextId=o,null!==i)){const e=p.tokens.length;p.scopes.push(new r(i,e,!1)),p.scopeDepth--}}function Us(){return Q(s.eq)||Q(s.semi)||Q(s.braceR)||Q(s.bang)||Q(s.colon)}function Vs(){return Q(s.parenL)||Q(s.lessThan)}function Ws(e,t){h&<([n._declare,n._public,n._protected,n._private,n._override]);let o=!1;if(Q(s.name)&&p.contextualKeyword===n._static){if(Hn(),Vs())return void Hs(e,!1);if(Us())return void Gs();if(p.tokens[p.tokens.length-1].type=s._static,o=!0,Q(s.braceL))return p.tokens[p.tokens.length-1].contextId=t,void Ds()}!function(e,t,o){if(h&&function(e){const t=p.tokens.length;lt([n._abstract,n._readonly,n._declare,n._static,n._override]);const s=p.tokens.length;if(yt()){for(let n=e?t-1:t;n<s;n++)p.tokens[n].isType=!0;return!0}return!1}(t))return;if(G(s.star))return Xs(o),void Hs(e,!1);Xs(o);let r=!1;const i=p.tokens[p.tokens.length-1];i.contextualKeyword===n._constructor&&(r=!0);if(zs(),Vs())Hs(e,r);else if(Us())Gs();else if(i.contextualKeyword!==n._async||v())i.contextualKeyword!==n._get&&i.contextualKeyword!==n._set||v()&&Q(s.star)?i.contextualKeyword!==n._accessor||v()?v()?Gs():A():(Xs(o),Gs()):(i.contextualKeyword===n._get?p.tokens[p.tokens.length-1].type=s._get:p.tokens[p.tokens.length-1].type=s._set,Xs(o),Hs(e,!1));else{p.tokens[p.tokens.length-1].type=s._async;Q(s.star)&&V(),Xs(o),zs(),Hs(e,!1)}}(e,o,t)}function Hs(e,t){h?mt():l&&Q(s.lessThan)&&os(),Mn(e,t)}function Xs(e){$n(e)}function zs(){if(h){const e=X(0);G(s.question),z(e)}}function Gs(){if(h?(J(s.bang),Dt()):l&&Q(s.colon)&&bs(),Q(s.eq)){const e=p.tokens.length;V(),mn(),p.tokens[e].rhsEndIndex=p.tokens.length}w()}function Js(){const e=p.tokens.length-1;h&&function(){if(G(s._import))return _(n._type)&&Y()!==s.eq&&y(n._type),Wt(),!0;if(G(s.eq))return dn(),w(),!0;if(x(n._as))return y(n._namespace),Hn(),w(),!0;if(_(n._type)){const e=Y();e!==s.braceL&&e!==s.star||V()}return!1}()||((l?Q(s.star)||_(n._type)&&Y()===s.star:Q(s.star))?l?function(){if(x(n._type)){const e=X(2);Zs(),z(e)}else Zs()}():Zs():function(){if(h&&Zt())return!1;if(l&&Q(s.name)&&(p.contextualKeyword===n._type||p.contextualKeyword===n._interface||p.contextualKeyword===n._opaque||p.contextualKeyword===n._enum))return!1;if(Q(s.name))return p.contextualKeyword!==n._async;if(!Q(s._default))return!1;const e=te(),t=ee(),r=t.type===s.name&&t.contextualKeyword===n._from;if(t.type===s.comma)return!0;if(r){const t=u.charCodeAt(ne(e+4));return t===o.quotationMark||t===o.apostrophe}return!1}()?(Hn(),Q(s.comma)&&Y()===s.star?(C(s.comma),C(s.star),y(n._as),Hn()):Qs(),Ys()):G(s._default)?function(){if(h&&function(){if(_(n._abstract)&&Y()===s._class)return p.type=s._abstract,V(),Ks(!0,!0),!0;if(_(n._interface)){const e=X(2);return zt(n._interface,!0),z(e),!0}return!1}())return;if(l&&_(n._enum)&&(Cs(),1))return;const e=p.start;G(s._function)?Ms(e,!0,!0):_(n._async)&&Y()===s._function?(x(n._async),G(s._function),Ms(e,!0,!0)):Q(s._class)?Ks(!0,!0):Q(s.at)?(Ns(),Ks(!0,!0)):(mn(),w())}():h&&Zt()||l&&(_(n._type)||_(n._interface)||_(n._opaque)||_(n._enum))||p.type===s._var||p.type===s._const||p.type===s._let||p.type===s._function||p.type===s._class||_(n._async)||Q(s.at)?h?function(){const e=x(n._declare);e&&(p.tokens[p.tokens.length-1].type=s._declare);let t=!1;if(Q(s.name))if(e){const e=X(2);t=Ht(),z(e)}else t=Ht();if(!t)if(e){const e=X(2);Es(!0),z(e)}else Es(!0)}():l?function(){if(_(n._type)){const e=X(1);V(),Q(s.braceL)?(eo(),Ys()):ts(),z(e)}else if(_(n._opaque)){const e=X(1);V(),ns(!1),z(e)}else if(_(n._interface)){const e=X(1);V(),Zn(),z(e)}else Es(!0)}():Es(!0):(eo(),Ys()),p.tokens[e].rhsEndIndex=p.tokens.length)}function Qs(){G(s.comma)&&eo()}function Ys(){x(n._from)&&(En(),io()),w()}function Zs(){C(s.star),_(n._as)?(V(),p.tokens[p.tokens.length-1].type=s._as,Hn(),Qs(),Ys()):Ys()}function eo(){let e=!0;for(C(s.braceL);!G(s.braceR)&&!p.error;){if(e)e=!1;else if(C(s.comma),G(s.braceR))break;to()}}function to(){h?function(){if(Hn(),Q(s.comma)||Q(s.braceR))p.tokens[p.tokens.length-1].identifierRole=O.ExportAccess;else{if(Hn(),Q(s.comma)||Q(s.braceR))return p.tokens[p.tokens.length-1].identifierRole=O.ExportAccess,p.tokens[p.tokens.length-2].isType=!0,void(p.tokens[p.tokens.length-1].isType=!0);Hn(),Q(s.comma)||Q(s.braceR)?p.tokens[p.tokens.length-3].identifierRole=O.ExportAccess:(Hn(),p.tokens[p.tokens.length-3].identifierRole=O.ExportAccess,p.tokens[p.tokens.length-4].isType=!0,p.tokens[p.tokens.length-3].isType=!0,p.tokens[p.tokens.length-2].isType=!0,p.tokens[p.tokens.length-1].isType=!0)}}():(Hn(),p.tokens[p.tokens.length-1].identifierRole=O.ExportAccess,x(n._as)&&Hn())}function no(){_(n._module)&&function(){const e=p.snapshot();return y(n._module),x(n._from)?_(n._from)?(p.restoreFromSnapshot(e),!0):(p.restoreFromSnapshot(e),!1):Q(s.comma)?(p.restoreFromSnapshot(e),!1):(p.restoreFromSnapshot(e),!0)}()&&V()}function so(){if(h&&Q(s.name)&&Y()===s.eq)Wt();else{if(h&&_(n._type)){const e=ee();if(e.type===s.name&&e.contextualKeyword!==n._from){if(y(n._type),Y()===s.eq)return void Wt()}else e.type!==s.star&&e.type!==s.braceL||y(n._type)}Q(s.string)||(no(),function(){l&&ws();let e=!0;if(Q(s.name)&&(oo(),!G(s.comma)))return;if(Q(s.star))return V(),y(n._as),void oo();C(s.braceL);for(;!G(s.braceR)&&!p.error;){if(e)e=!1;else if(G(s.colon)&&A("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),C(s.comma),G(s.braceR))break;ro()}}(),y(n._from)),En(),io(),w()}}function oo(){tt()}function ro(){h?function(){if(Hn(),Q(s.comma)||Q(s.braceR))p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration;else{if(Hn(),Q(s.comma)||Q(s.braceR))return p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration,p.tokens[p.tokens.length-2].isType=!0,void(p.tokens[p.tokens.length-1].isType=!0);if(Hn(),Q(s.comma)||Q(s.braceR))return p.tokens[p.tokens.length-3].identifierRole=O.ImportAccess,void(p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration);Hn(),p.tokens[p.tokens.length-3].identifierRole=O.ImportAccess,p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration,p.tokens[p.tokens.length-4].isType=!0,p.tokens[p.tokens.length-3].isType=!0,p.tokens[p.tokens.length-2].isType=!0,p.tokens[p.tokens.length-1].isType=!0}}():l?function(){const e=p.contextualKeyword===n._type||p.type===s._typeof;e?V():Hn(),_(n._as)&&!g(n._as)?(Hn(),(!e||Q(s.name)||p.type&s.IS_KEYWORD)&&Hn()):(e&&(Q(s.name)||p.type&s.IS_KEYWORD)&&Hn(),x(n._as)&&Hn())}():(tt(),_(n._as)&&(p.tokens[p.tokens.length-1].identifierRole=O.ImportAccess,V(),tt()))}function io(){(Q(s._with)||_(n._assert)&&!b())&&(V(),Pn(!1,!1))}function ao(){return 0===p.pos&&u.charCodeAt(0)===o.numberSign&&u.charCodeAt(1)===o.exclamationMark&&ie(2),oe(),function(){if(Os(s.eof),p.scopes.push(new r(0,p.tokens.length,!0)),0!==p.scopeDepth)throw new Error(`Invalid scope depth at end of file: ${p.scopeDepth}`);return new co(p.tokens,p.scopes)}()}class co{constructor(e,t){this.tokens=e,this.scopes=t}}function ho(e,t,n,s){if(s&&n)throw new Error("Cannot combine flow and typescript plugins.");var o,r,i;o=t,r=n,i=s,u=e,p=new a,f=1,c=o,h=r,l=i;const d=ao();if(p.error)throw m(p.error);return d}class lo{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,t,n,s,o){this.code=e,this.tokens=t,this.isFlowEnabled=n,this.disableESTransforms=s,this.helperManager=o,lo.prototype.__init.call(this),lo.prototype.__init2.call(this),lo.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){const t=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,t}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,t){return this.matches1AtIndex(e,s.name)&&this.tokens[e].contextualKeyword===t}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,t){return this.tokens[e].type===t}matches2AtIndex(e,t,n){return this.tokens[e].type===t&&this.tokens[e+1].type===n}matches3AtIndex(e,t,n,s){return this.tokens[e].type===t&&this.tokens[e+1].type===n&&this.tokens[e+2].type===s}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,t){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t}matches3(e,t,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n}matches4(e,t,n,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===s}matches5(e,t,n,s,o){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===s&&this.tokens[this.tokenIndex+4].type===o}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,t){return this.matches1(e)&&this.currentToken().contextId===t}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(s.braceL))e++;else if(this.matches1(s.braceR)){if(0===e)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=function(e){let t=e.currentIndex(),s=0;const o=e.currentToken();do{const r=e.tokens[t];if(r.isOptionalChainStart&&s++,r.isOptionalChainEnd&&s--,s+=r.numNullishCoalesceStarts,s-=r.numNullishCoalesceEnds,r.contextualKeyword===n._await&&null==r.identifierRole&&r.scopeDepth===o.scopeDepth)return!0;t+=1}while(s>0&&t<e.tokens.length);return!1}(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let t=0;t<e.numNullishCoalesceStarts;t++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===s._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t<e.numNullishCoalesceEnds;t++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function po(e,t,o,r){const i=t.snapshot(),a=function(e){const t=e.currentToken(),n=t.contextId;if(null==n)throw new Error("Expected context ID on class token.");const o=t.isExpression;if(null==o)throw new Error("Expected isExpression on class token.");let r=null,i=!1;e.nextToken(),e.matches1(s.name)&&(r=e.identifierName());for(;!e.matchesContextIdAndLabel(s.braceL,n);)e.matches1(s._extends)&&!e.currentToken().isType&&(i=!0),e.nextToken();return{isExpression:o,className:r,hasSuperclass:i}}(t);let c=[];const h=[],l=[];let p=null;const u=[],f=[],d=t.currentToken().contextId;if(null==d)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(s.braceR,d);)if(t.matchesContextual(n._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:c,constructorInsertPos:p}=fo(t));else if(t.matches1(s.semi))r||f.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{const i=t.currentIndex();let a=!1,m=!1,k=!1;for(;mo(t.currentToken());)t.matches1(s._static)&&(a=!0),t.matches1(s.hash)&&(m=!0),(t.matches1(s._declare)||t.matches1(s._abstract))&&(k=!0),t.nextToken();if(a&&t.matches1(s.braceL)){uo(t,d);continue}if(m){uo(t,d);continue}if(t.matchesContextual(n._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:c,constructorInsertPos:p}=fo(t));continue}const _=t.currentIndex();if(ko(t),t.matches1(s.lessThan)||t.matches1(s.parenL)){uo(t,d);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(s.eq)){const n=t.currentIndex(),s=t.currentToken().rhsEndIndex;if(null==s)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<s;)e.processToken();let r;a?(r=o.claimFreeName("__initStatic"),l.push(r)):(r=o.claimFreeName("__init"),h.push(r)),u.push({initializerName:r,equalsIndex:n,start:_,end:t.currentIndex()})}else r&&!k||f.push({start:i,end:t.currentIndex()})}return t.restoreToSnapshot(i),r?{headerInfo:a,constructorInitializerStatements:c,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:p,fields:[],rangesToRemove:f}:{headerInfo:a,constructorInitializerStatements:c,instanceInitializerNames:h,staticInitializerNames:l,constructorInsertPos:p,fields:u,rangesToRemove:f}}function uo(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;mo(e.tokenAtRelativeIndex(-1));)e.previousToken()}function fo(e){const t=[];e.nextToken();const n=e.currentToken().contextId;if(null==n)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(s.parenR,n);)if(e.currentToken().contextId===n){if(e.nextToken(),mo(e.currentToken())){for(e.nextToken();mo(e.currentToken());)e.nextToken();const n=e.currentToken();if(n.type!==s.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const o=e.identifierNameForToken(n);t.push(`this.${o} = ${o}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let o=e.currentIndex(),r=!1;for(;!e.matchesContextIdAndLabel(s.braceR,n);){if(!r&&e.matches2(s._super,s.parenL)){e.nextToken();const t=e.currentToken().contextId;if(null==t)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(s.parenR,t);)e.nextToken();o=e.currentIndex(),r=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:o}}function mo(e){return[s._async,s._get,s._set,s.plus,s.minus,s._readonly,s._static,s._public,s._private,s._protected,s._override,s._abstract,s.star,s._declare,s.hash].includes(e.type)}function ko(e){if(e.matches1(s.bracketL)){const t=e.currentToken().contextId;if(null==t)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(s.bracketR,t);)e.nextToken();e.nextToken()}else e.nextToken()}function _o(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(s.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(s.dot);)e.removeToken(),e.removeToken()}const go={typeDeclarations:new Set,valueDeclarations:new Set};function xo(e){const t=new Set,n=new Set;for(let o=0;o<e.tokens.length;o++){const r=e.tokens[o];r.type===s.name&&$(r)&&(r.isType?t.add(e.identifierNameForToken(r)):n.add(e.identifierNameForToken(r)))}return{typeDeclarations:t,valueDeclarations:n}}function yo(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,s.braceR);)t++;return e.matchesContextualAtIndex(t+1,n._from)&&e.matches1AtIndex(t+2,s.string)}function To(e){(e.matches2(s._with,s.braceL)||e.matches2(s.name,s.braceL)&&e.matchesContextual(n._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function bo(e,t,n,o){if(!e||t)return!1;const r=n.currentToken();if(null==r.rhsEndIndex)throw new Error("Expected non-null rhsEndIndex on export token.");const i=r.rhsEndIndex-n.currentIndex();if(3!==i&&(4!==i||!n.matches1AtIndex(r.rhsEndIndex-1,s.semi)))return!1;const a=n.tokenAtRelativeIndex(2);if(a.type!==s.name)return!1;const c=n.identifierNameForToken(a);return o.typeDeclarations.has(c)&&!o.valueDeclarations.has(c)}class Io extends ye{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,t,n,s,o,r,i,a,c,h,l,p){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.helperManager=o,this.reactHotLoaderTransformer=r,this.enableLegacyBabel5ModuleInterop=i,this.enableLegacyTypeScriptModuleInterop=a,this.isTypeScriptTransformEnabled=c,this.isFlowTransformEnabled=h,this.preserveDynamicImport=l,this.keepUnusedImports=p,Io.prototype.__init.call(this),Io.prototype.__init2.call(this),Io.prototype.__init3.call(this),this.declarationInfo=c?xo(t):go}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?"\nmodule.exports = exports.default;\n":""}process(){return this.tokens.matches3(s._import,s.name,s.eq)?this.processImportEquals():this.tokens.matches1(s._import)?(this.processImport(),!0):this.tokens.matches2(s._export,s.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(s._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):!(!this.tokens.matches2(s.name,s.postIncDec)||!this.processPostIncDec())||(this.tokens.matches1(s.name)||this.tokens.matches1(s.jsxName)?this.processIdentifier():this.tokens.matches1(s.eq)?this.processAssignment():this.tokens.matches1(s.assign)?this.processComplexAssignment():!!this.tokens.matches1(s.preIncDec)&&this.processPreIncDec())}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?_o(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(s._import,s.parenL)){if(this.preserveDynamicImport)return void this.tokens.copyToken();const e=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${e}require`);const t=this.tokens.currentToken().contextId;if(null==t)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(s.parenR,t);)this.rootTransformer.processToken();return void this.tokens.replaceToken(e?")))":"))")}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.appendCode(this.importProcessor.claimImportCode(e))}To(this.tokens),this.tokens.matches1(s.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(n._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,s.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(s.name)||this.tokens.matches1(s.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(s.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(s.string);)(!e&&this.tokens.matches1(s.braceL)||this.tokens.matches1(s.comma))&&(this.tokens.removeToken(),this.tokens.matches1(s.braceR)||(t=!0),(this.tokens.matches2(s.name,s.comma)||this.tokens.matches2(s.name,s.braceR)||this.tokens.matches4(s.name,s.name,s.name,s.comma)||this.tokens.matches4(s.name,s.name,s.name,s.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}removeRemainingImport(){for(;!this.tokens.matches1(s.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===O.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==O.Access)return!1;const t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let n=this.tokens.currentIndex()+1;for(;n<this.tokens.tokens.length&&this.tokens.tokens[n].type===s.parenR;)n++;return this.tokens.tokens[n].type===s.parenL?this.tokens.tokenAtRelativeIndex(1).type===s.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==s._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR)):this.tokens.replaceToken(`(0, ${t})`):this.tokens.replaceToken(t),!0}processObjectShorthand(){const e=this.tokens.identifierName(),t=this.importProcessor.getIdentifierReplacement(e);return!!t&&(this.tokens.replaceToken(`${e}: ${t}`),!0)}processExport(){if(this.tokens.matches2(s._export,s._enum)||this.tokens.matches3(s._export,s._const,s._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(s._export,s._default))return this.tokens.matches3(s._export,s._default,s._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(s._export,s.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(s._export,s.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(s.braceL)){for(;!this.tokens.matches1(s.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(s._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(n._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,s.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),To(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(s._export,s._var)||this.tokens.matches2(s._export,s._let)||this.tokens.matches2(s._export,s._const))return this.processExportVar(),!0;if(this.tokens.matches2(s._export,s._function)||this.tokens.matches3(s._export,s.name,s._function))return this.processExportFunction(),!0;if(this.tokens.matches2(s._export,s._class)||this.tokens.matches3(s._export,s._abstract,s._class)||this.tokens.matches2(s._export,s.at))return this.processExportClass(),!0;if(this.tokens.matches2(s._export,s.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==s.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,s.dot))return!1;if(e>=2&&[s._var,s._let,s._const].includes(this.tokens.tokens[e-2].type))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0)}processComplexAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==s.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,s.dot))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0)}processPreIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==s.name)return!1;if(t.shadowsGlobal)return!1;if(e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,s.dot)||this.tokens.matches1AtIndex(e+2,s.bracketL)||this.tokens.matches1AtIndex(e+2,s.parenL)))return!1;const n=this.tokens.identifierNameForToken(t),o=this.importProcessor.resolveExportBinding(n);return!!o&&(this.tokens.appendCode(`${o} = `),this.tokens.copyToken(),!0)}processPostIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e],n=this.tokens.tokens[e+1];if(t.type!==s.name)return!1;if(t.shadowsGlobal)return!1;if(e>=1&&this.tokens.matches1AtIndex(e-1,s.dot))return!1;const o=this.tokens.identifierNameForToken(t),r=this.importProcessor.resolveExportBinding(o);if(!r)return!1;const i=this.tokens.rawCodeForToken(n),a=this.importProcessor.getIdentifierReplacement(o)||o;if("++"===i)this.tokens.replaceToken(`(${a} = ${r} = ${a} + 1, ${a} - 1)`);else{if("--"!==i)throw new Error(`Unexpected operator: ${i}`);this.tokens.replaceToken(`(${a} = ${r} = ${a} - 1, ${a} + 1)`)}return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(s._export,s._default,s._function,s.name)||this.tokens.matches5(s._export,s._default,s.name,s._function,s.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,n._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(s._export,s._default,s._class,s.name)||this.tokens.matches5(s._export,s._default,s._abstract,s._class,s.name)||this.tokens.matches3(s._export,s._default,s.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(s._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if(bo(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(s.at);)if(this.tokens.copyToken(),this.tokens.matches1(s.parenL))this.tokens.copyExpectedToken(s.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR);else{for(this.tokens.copyExpectedToken(s.name);this.tokens.matches1(s.dot);)this.tokens.copyExpectedToken(s.dot),this.tokens.copyExpectedToken(s.name);this.tokens.matches1(s.parenL)&&(this.tokens.copyExpectedToken(s.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,s.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,s.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(s.eq);)this.rootTransformer.processToken();const t=this.tokens.currentToken().rhsEndIndex;if(null==t)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(s.braceL);e&&this.tokens.appendCode("(");let t=0;for(;;)if(this.tokens.matches1(s.braceL)||this.tokens.matches1(s.dollarBraceL)||this.tokens.matches1(s.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(s.braceR)||this.tokens.matches1(s.bracketR))t--,this.tokens.copyToken();else{if(0===t&&!this.tokens.matches1(s.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(s.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}else{const e=this.tokens.currentToken();if(q(e)){const t=this.tokens.identifierName();let n=this.importProcessor.getIdentifierReplacement(t);if(null===n)throw new Error(`Expected a replacement for ${t} in \`export var\` syntax.`);K(e)&&(n=`${t}: ${n}`),this.tokens.replaceToken(n)}else this.rootTransformer.processToken()}}if(e){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(s._function))this.tokens.copyToken();else if(this.tokens.matches2(s.name,s._function)){if(!this.tokens.matchesContextual(n._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(s.star)&&this.tokens.copyToken(),!this.tokens.matches1(s.name))throw new Error("Expected identifier for exported function name.");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(s.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(s.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(s._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=yo(this.tokens),t=[];for(;;){if(this.tokens.matches1(s.braceR)){this.tokens.removeToken();break}const n=me(this.tokens);for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();if(!(n.isType||!e&&this.shouldElideExportedIdentifier(n.leftName))){const e=n.rightName;"default"===e?this.hadDefaultExport=!0:this.hadNamedExport=!0;const s=n.leftName,o=this.importProcessor.getIdentifierReplacement(s);t.push(`exports.${e} = ${o||s};`)}if(this.tokens.matches1(s.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(s.comma,s.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}if(!this.tokens.matches1(s.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`);this.tokens.removeToken()}if(this.tokens.matchesContextual(n._from)){this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),To(this.tokens)}else this.tokens.appendCode(t.join(" "));this.tokens.matches1(s.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(s.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),To(this.tokens),this.tokens.matches1(s.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class vo extends ye{constructor(e,t,n,s,o,r,i,a){super(),this.tokens=e,this.nameManager=t,this.helperManager=n,this.reactHotLoaderTransformer=s,this.isTypeScriptTransformEnabled=o,this.isFlowTransformEnabled=r,this.keepUnusedImports=i,this.nonTypeIdentifiers=o&&!i?Ae(e,a):new Set,this.declarationInfo=o&&!i?xo(e):go,this.injectCreateRequireForImportRequire=Boolean(a.injectCreateRequireForImportRequire)}process(){if(this.tokens.matches3(s._import,s.name,s.eq))return this.processImportEquals();if(this.tokens.matches4(s._import,s.name,s.name,s.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(s._export,s.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(s._export,s._import,s.name,s.name,s.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,n._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(s._import))return this.processImport();if(this.tokens.matches2(s._export,s._default))return this.processExportDefault();if(this.tokens.matches2(s._export,s.braceL))return this.processNamedExports();if(this.tokens.matches2(s._export,s.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(s.braceL)){for(;!this.tokens.matches1(s.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(s._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(n._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,s.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),To(this.tokens)),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?_o(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(s._import,s.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(s.string);)this.tokens.removeToken();this.tokens.removeToken(),To(this.tokens),this.tokens.matches1(s.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(s._import),this.tokens.matchesContextual(n._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,s.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._from))return!0;if(this.tokens.matches1(s.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(n._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,n._from)&&this.tokens.copyToken();let e=!1,t=!1,o=!1;if(this.tokens.matches1(s.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(s.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(s.comma)&&(o=!0,this.tokens.removeToken()))),this.tokens.matches1(s.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(o&&this.tokens.appendCode(","),e=!0,this.tokens.copyExpectedToken(s.star),this.tokens.copyExpectedToken(s.name),this.tokens.copyExpectedToken(s.name));else if(this.tokens.matches1(s.braceL)){for(o&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(s.braceR);){t=!0;const n=me(this.tokens);if(n.isType||this.shouldAutomaticallyElideImportedName(n.rightName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(s.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(s.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(s.braceR)}return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(bo(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(s._export,s._default,s._function,s.name)||this.tokens.matches5(s._export,s._default,s.name,s._function,s.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,n._async)||this.tokens.matches4(s._export,s._default,s._class,s.name)||this.tokens.matches5(s._export,s._default,s._abstract,s._class,s.name))&&this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${e}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(s._export),this.tokens.copyExpectedToken(s.braceL);const e=yo(this.tokens);let t=!1;for(;!this.tokens.matches1(s.braceR);){const n=me(this.tokens);if(n.isType||!e&&this.shouldElideExportedName(n.leftName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(s.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(s.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(s.braceR),this.keepUnusedImports||!e||t||(this.tokens.removeToken(),this.tokens.removeToken(),To(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class wo extends ye{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(s._enum)?(this.processEnum(),!0):this.tokens.matches2(s._export,s._enum)?(this.processNamedExportEnum(),!0):!!this.tokens.matches3(s._export,s._default,s._enum)&&(this.processDefaultExportEnum(),!0))}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(s.name);let e=!1;this.tokens.matchesContextual(n._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(n._symbol),this.tokens.removeToken());const t=this.tokens.matches3(s.braceL,s.name,s.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const o=!e&&!t;for(this.tokens.replaceTokenTrimmingLeftWhitespace(o?".Mirrored([":"({");!this.tokens.matches1(s.braceR);){if(this.tokens.matches1(s.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,t),this.tokens.matches1(s.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(o?"]);":"});")}processEnumElement(e,t){if(e){const e=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${e}")`)}else t?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}const Co="jest",Ao=["mock","unmock","enableAutomock","disableAutomock"];class Eo extends ye{__init(){this.hoistedFunctionNames=[]}constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.nameManager=n,this.importProcessor=s,Eo.prototype.__init.call(this)}process(){return!(0!==this.tokens.currentToken().scopeDepth||!this.tokens.matches4(s.name,s.dot,s.name,s.parenL)||this.tokens.identifierName()!==Co)&&(!function(e){let t,n=e[0],s=1;for(;s<e.length;){const o=e[s],r=e[s+1];if(s+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=r(n)):"call"!==o&&"optionalCall"!==o||(n=r((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(Co)])&&this.extractHoistedCalls())}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(s.dot,s.name,s.parenL);){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Ao.includes(t)){const t=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${Co}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${Co}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR),e=!0}return!0}}class So extends ye{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(s.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class No extends ye{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return!!this.tokens.matches2(s._catch,s.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0)}}class Ro extends ye{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(s.nullishCoalescing)){const e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(s._delete)){if(this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0}const e=this.tokens.currentToken().subscriptStartIndex;if(null!=e&&this.tokens.tokens[e].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==s._super){const t=this.nameManager.claimFreeName("_");let n;if(n=e>0&&this.tokens.matches1AtIndex(e-1,s._delete)&&this.isLastSubscriptInChain()?`${t} => delete ${t}`:`${t} => ${t}`,this.tokens.tokens[e].isAsyncOperation&&(n=`async ${n}`),this.tokens.matches2(s.questionDot,s.parenL)||this.tokens.matches2(s.questionDot,s.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${n}`);else if(this.tokens.matches2(s.questionDot,s.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}`);else if(this.tokens.matches1(s.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}.`);else if(this.tokens.matches1(s.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}.`);else if(this.tokens.matches1(s.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}[`);else{if(!this.tokens.matches1(s.parenL))throw new Error("Unexpected subscript operator in optional chain.");this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${n}(`)}return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return this.tokens.tokens[t-1].type===s._super;t--}}}class Lo extends ye{constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.options=s}process(){const e=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(s.name,s.dot,s.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(s.parenL),this.tokens.copyExpectedToken(s.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.braceR),this.tokens.copyExpectedToken(s.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,s.name,s.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===O.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,s._export,s._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const e=(this.options.filePath||"unknown").split("/"),t=e[e.length-1],n=t.lastIndexOf("."),s=-1===n?t:t.slice(0,n);return"index"===s&&e[e.length-2]?e[e.length-2]:s}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(s.parenL,s.braceL))return!1;const t=e+1,n=this.tokens.tokens[t].contextId;if(null==n)throw new Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){const t=this.tokens.tokens[e];if(t.type===s.braceR&&t.contextId===n){e++;break}if("displayName"===this.tokens.identifierNameAtIndex(e)&&this.tokens.tokens[e].identifierRole===O.ObjectKey&&t.contextId===n)return!1}if(e===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,s.parenR)||this.tokens.matches2AtIndex(e,s.comma,s.parenR)}}class jo extends ye{__init(){this.extractedDefaultExportName=null}constructor(e,t){super(),this.tokens=e,this.filePath=t,jo.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return"\n (function () {\n var enterModule = require('react-hot-loader').enterModule;\n enterModule && enterModule(module);\n })();".replace(/\s+/g," ").trim()}getSuffixCode(){const e=new Set;for(const n of this.tokens.tokens)!n.isType&&$(n)&&n.identifierRole!==O.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(n));const t=Array.from(e).map(e=>({variableName:e,uniqueLocalName:e}));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`\n;(function () {\n var reactHotLoader = require('react-hot-loader').default;\n var leaveModule = require('react-hot-loader').leaveModule;\n if (!reactHotLoader) {\n return;\n }\n${t.map(({variableName:e,uniqueLocalName:t})=>` reactHotLoader.register(${e}, "${t}", ${JSON.stringify(this.filePath||"")});`).join("\n")}\n leaveModule(module);\n})();`}process(){return!1}}const Do=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function Oo(e){if(0===e.length)return!1;if(!j[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!L[e.charCodeAt(t)])return!1;return!Do.has(e)}class Po extends ye{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(s._public)||this.tokens.matches1(s._protected)||this.tokens.matches1(s._private)||this.tokens.matches1(s._abstract)||this.tokens.matches1(s._readonly)||this.tokens.matches1(s._override)||this.tokens.matches1(s.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(s._enum)||this.tokens.matches2(s._const,s._enum)?(this.processEnum(),!0):!(!this.tokens.matches2(s._export,s._enum)&&!this.tokens.matches3(s._export,s._const,s._enum))&&(this.processEnum(!0),!0))}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(s._const)||this.tokens.matches1(s._enum);)this.tokens.removeToken();const t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(s.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(s.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(s.braceR);){const{nameStringCode:n,variableName:o}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(s.eq,s.string,s.comma)||this.tokens.matches3(s.eq,s.string,s.braceR)?this.processStringLiteralEnumMember(e,n,o):this.tokens.matches1(s.eq)?this.processExplicitValueEnumMember(e,n,o):this.processImplicitValueEnumMember(e,n,o,t),this.tokens.matches1(s.comma)&&this.tokens.removeToken(),t=null!=o?o:`${e}[${n}]`}}extractEnumKeyInfo(e){if(e.type===s.name){const t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:Oo(t)?t:null}}if(e.type===s.string){const t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:Oo(t)?t:null}}throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(e,t,n){null!=n?(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${n};`)):(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(e,t,n){const s=this.tokens.currentToken().rhsEndIndex;if(null==s)throw new Error("Expected rhsEndIndex on enum assign.");if(null!=n){for(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken();this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${n}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,n,s){let o=null!=s?`${s} + 1`:"0";null!=n&&(this.tokens.appendCode(`const ${n} = ${o}; `),o=n),this.tokens.appendCode(`${e}[${e}[${t}] = ${o}] = ${t};`)}}class qo{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,t,n,s){qo.prototype.__init.call(this),qo.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;const{tokenProcessor:o,importProcessor:r}=e;this.tokens=o,this.isImportsTransformEnabled=t.includes("imports"),this.isReactHotLoaderTransformEnabled=t.includes("react-hot-loader"),this.disableESTransforms=Boolean(s.disableESTransforms),s.disableESTransforms||(this.transformers.push(new Ro(o,this.nameManager)),this.transformers.push(new So(o)),this.transformers.push(new No(o,this.nameManager))),t.includes("jsx")&&("preserve"!==s.jsxRuntime&&this.transformers.push(new Te(this,o,r,this.nameManager,s)),this.transformers.push(new Lo(this,o,r,s)));let i=null;if(t.includes("react-hot-loader")){if(!s.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");i=new jo(o,s.filePath),this.transformers.push(i)}if(t.includes("imports")){if(null===r)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new Io(this,o,r,this.nameManager,this.helperManager,i,n,Boolean(s.enableLegacyTypeScriptModuleInterop),t.includes("typescript"),t.includes("flow"),Boolean(s.preserveDynamicImport),Boolean(s.keepUnusedImports)))}else this.transformers.push(new vo(o,this.nameManager,this.helperManager,i,t.includes("typescript"),t.includes("flow"),Boolean(s.keepUnusedImports),s));t.includes("flow")&&this.transformers.push(new wo(this,o,t.includes("imports"))),t.includes("typescript")&&this.transformers.push(new Po(this,o,t.includes("imports"))),t.includes("jest")&&this.transformers.push(new Eo(this,o,this.nameManager,r))}transform(){this.tokens.reset(),this.processBalancedCode();let e=this.isImportsTransformEnabled?'"use strict";':"";for(const o of this.transformers)e+=o.getPrefixCode();e+=this.helperManager.emitHelpers(),e+=this.generatedVariables.map(e=>` var ${e};`).join("");for(const o of this.transformers)e+=o.getHoistedCode();let t="";for(const o of this.transformers)t+=o.getSuffixCode();const n=this.tokens.finish();let{code:s}=n;if(s.startsWith("#!")){let o=s.indexOf("\n");return-1===o&&(o=s.length,s+="\n"),{code:s.slice(0,o+1)+e+s.slice(o+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}return{code:e+s+t,mappings:this.shiftMappings(n.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(s.braceL)||this.tokens.matches1(s.dollarBraceL))e++;else if(this.tokens.matches1(s.braceR)){if(0===e)return;e--}if(this.tokens.matches1(s.parenL))t++;else if(this.tokens.matches1(s.parenR)){if(0===t)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(s._class))this.processClass();else{for(const e of this.transformers){if(e.process())return}this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(s._class,s.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=po(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));const o=this.tokens.currentToken().contextId;if(null==o)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(s._class);!this.tokens.matchesContextIdAndLabel(s.braceL,o);)this.processToken();this.processClassBody(e,n);const r=e.staticInitializerNames.map(e=>`${n}.${e}()`);t?this.tokens.appendCode(`, ${r.map(e=>`${e}, `).join("")}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${r.map(e=>`${e};`).join(" ")}`)}processClassBody(e,t){const{headerInfo:n,constructorInsertPos:o,constructorInitializerStatements:r,fields:i,instanceInitializerNames:a,rangesToRemove:c}=e;let h=0,l=0;const p=this.tokens.currentToken().contextId;if(null==p)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(s.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const u=r.length+a.length>0;if(null===o&&u){const e=this.makeConstructorInitCode(r,a,t);if(n.hasSuperclass){const t=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(s.braceR,p);)if(h<i.length&&this.tokens.currentIndex()===i[h].start){let e=!1;for(this.tokens.matches1(s.bracketL)?this.tokens.copyTokenWithPrefix(`${i[h].initializerName}() {this`):this.tokens.matches1(s.string)||this.tokens.matches1(s.num)?(this.tokens.copyTokenWithPrefix(`${i[h].initializerName}() {this[`),e=!0):this.tokens.copyTokenWithPrefix(`${i[h].initializerName}() {this.`);this.tokens.currentIndex()<i[h].end;)e&&this.tokens.currentIndex()===i[h].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),h++}else if(l<c.length&&this.tokens.currentIndex()>=c[l].start){for(this.tokens.currentIndex()<c[l].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<c[l].end;)this.tokens.removeToken();l++}else this.tokens.currentIndex()===o?(this.tokens.copyToken(),u&&this.tokens.appendCode(`;${this.makeConstructorInitCode(r,a,t)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(s.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map(e=>`${n}.prototype.${e}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(s.parenR,s.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,s.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(n._async)&&!this.tokens.matches1(s._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==s.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,s.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let n=0;n<e.length;n++){const s=e[n];void 0!==s&&(e[n]=s+t)}return e}}var Fo,$o={};function Mo(e,t,n){t++,e.matches1AtIndex(t,s.parenL)||(e.matches1AtIndex(t,s.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,s.comma)&&t++),e.matches1AtIndex(t,s.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,s.braceL)&&function(e,t,n){for(;;){if(e.matches1AtIndex(t,s.braceR))return;const o=me(e,t);if(t=o.endIndex,o.isType||n.add(o.rightName),e.matches2AtIndex(t,s.comma,s.braceR))return;if(e.matches1AtIndex(t,s.braceR))return;if(!e.matches1AtIndex(t,s.comma))throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`);t++}}(e,++t,n))}function Bo(e,t){!function(e){Qe.strictCheck(e)}(t);try{const n=function(e,t){const n=t.transforms.includes("jsx"),o=t.transforms.includes("typescript"),r=t.transforms.includes("flow"),i=!0===t.disableESTransforms,a=ho(e,n,o,r),c=a.tokens,h=a.scopes,l=new Me(e,c),p=new qe(l),u=new lo(e,c,r,i,p),f=Boolean(t.enableLegacyTypeScriptModuleInterop);let d=null;t.transforms.includes("imports")?(d=new Ee(l,u,f,t,t.transforms.includes("typescript"),Boolean(t.keepUnusedImports),p),d.preprocessTokens(),Fe(u,h,d.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&d.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&Fe(u,h,function(e){const t=new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,s._import)&&!e.matches3AtIndex(n,s._import,s.name,s.eq)&&Mo(e,n,t);return t}(u));return{tokenProcessor:u,scopes:h,nameManager:l,importProcessor:d,helperManager:p}}(e,t),o=new qo(n,t.transforms,Boolean(t.enableLegacyBabel5ModuleInterop),t).transform();let r={code:o.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");r={...r,sourceMap:Oe(o,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return r}catch(n){throw t.filePath&&(n.message=`Error transforming ${t.filePath}: ${n.message}`),n}}Fo||(Fo=1,function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var t="\n",n=function(){function e(e){this.string=e;for(var n=[0],s=0;s<e.length;)switch(e[s]){case t:s+=1,n.push(s);break;case"\r":e[s+=1]===t&&(s+=1),n.push(s);break;default:s++}this.offsets=n}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();e.LinesAndColumns=n,e.default=n}($o));export{Bo as t};
|
|
1
|
+
import{e,b as t}from"./unocss-D4cmV7ah.js";var n,s,o;!function(e){e[e.NONE=0]="NONE";e[e._abstract=1]="_abstract";e[e._accessor=2]="_accessor";e[e._as=3]="_as";e[e._assert=4]="_assert";e[e._asserts=5]="_asserts";e[e._async=6]="_async";e[e._await=7]="_await";e[e._checks=8]="_checks";e[e._constructor=9]="_constructor";e[e._declare=10]="_declare";e[e._enum=11]="_enum";e[e._exports=12]="_exports";e[e._from=13]="_from";e[e._get=14]="_get";e[e._global=15]="_global";e[e._implements=16]="_implements";e[e._infer=17]="_infer";e[e._interface=18]="_interface";e[e._is=19]="_is";e[e._keyof=20]="_keyof";e[e._mixins=21]="_mixins";e[e._module=22]="_module";e[e._namespace=23]="_namespace";e[e._of=24]="_of";e[e._opaque=25]="_opaque";e[e._out=26]="_out";e[e._override=27]="_override";e[e._private=28]="_private";e[e._protected=29]="_protected";e[e._proto=30]="_proto";e[e._public=31]="_public";e[e._readonly=32]="_readonly";e[e._require=33]="_require";e[e._satisfies=34]="_satisfies";e[e._set=35]="_set";e[e._static=36]="_static";e[e._symbol=37]="_symbol";e[e._type=38]="_type";e[e._unique=39]="_unique";e[e._using=40]="_using"}(n||(n={})),function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";e[e.IS_KEYWORD=16]="IS_KEYWORD";e[e.IS_ASSIGN=32]="IS_ASSIGN";e[e.IS_RIGHT_ASSOCIATIVE=64]="IS_RIGHT_ASSOCIATIVE";e[e.IS_PREFIX=128]="IS_PREFIX";e[e.IS_POSTFIX=256]="IS_POSTFIX";e[e.IS_EXPRESSION_START=512]="IS_EXPRESSION_START";e[e.num=512]="num";e[e.bigint=1536]="bigint";e[e.decimal=2560]="decimal";e[e.regexp=3584]="regexp";e[e.string=4608]="string";e[e.name=5632]="name";e[e.eof=6144]="eof";e[e.bracketL=7680]="bracketL";e[e.bracketR=8192]="bracketR";e[e.braceL=9728]="braceL";e[e.braceBarL=10752]="braceBarL";e[e.braceR=11264]="braceR";e[e.braceBarR=12288]="braceBarR";e[e.parenL=13824]="parenL";e[e.parenR=14336]="parenR";e[e.comma=15360]="comma";e[e.semi=16384]="semi";e[e.colon=17408]="colon";e[e.doubleColon=18432]="doubleColon";e[e.dot=19456]="dot";e[e.question=20480]="question";e[e.questionDot=21504]="questionDot";e[e.arrow=22528]="arrow";e[e.template=23552]="template";e[e.ellipsis=24576]="ellipsis";e[e.backQuote=25600]="backQuote";e[e.dollarBraceL=27136]="dollarBraceL";e[e.at=27648]="at";e[e.hash=29184]="hash";e[e.eq=29728]="eq";e[e.assign=30752]="assign";e[e.preIncDec=32640]="preIncDec";e[e.postIncDec=33664]="postIncDec";e[e.bang=34432]="bang";e[e.tilde=35456]="tilde";e[e.pipeline=35841]="pipeline";e[e.nullishCoalescing=36866]="nullishCoalescing";e[e.logicalOR=37890]="logicalOR";e[e.logicalAND=38915]="logicalAND";e[e.bitwiseOR=39940]="bitwiseOR";e[e.bitwiseXOR=40965]="bitwiseXOR";e[e.bitwiseAND=41990]="bitwiseAND";e[e.equality=43015]="equality";e[e.lessThan=44040]="lessThan";e[e.greaterThan=45064]="greaterThan";e[e.relationalOrEqual=46088]="relationalOrEqual";e[e.bitShiftL=47113]="bitShiftL";e[e.bitShiftR=48137]="bitShiftR";e[e.plus=49802]="plus";e[e.minus=50826]="minus";e[e.modulo=51723]="modulo";e[e.star=52235]="star";e[e.slash=53259]="slash";e[e.exponent=54348]="exponent";e[e.jsxName=55296]="jsxName";e[e.jsxText=56320]="jsxText";e[e.jsxEmptyText=57344]="jsxEmptyText";e[e.jsxTagStart=58880]="jsxTagStart";e[e.jsxTagEnd=59392]="jsxTagEnd";e[e.typeParameterStart=60928]="typeParameterStart";e[e.nonNullAssertion=61440]="nonNullAssertion";e[e._break=62480]="_break";e[e._case=63504]="_case";e[e._catch=64528]="_catch";e[e._continue=65552]="_continue";e[e._debugger=66576]="_debugger";e[e._default=67600]="_default";e[e._do=68624]="_do";e[e._else=69648]="_else";e[e._finally=70672]="_finally";e[e._for=71696]="_for";e[e._function=73232]="_function";e[e._if=73744]="_if";e[e._return=74768]="_return";e[e._switch=75792]="_switch";e[e._throw=77456]="_throw";e[e._try=77840]="_try";e[e._var=78864]="_var";e[e._let=79888]="_let";e[e._const=80912]="_const";e[e._while=81936]="_while";e[e._with=82960]="_with";e[e._new=84496]="_new";e[e._this=85520]="_this";e[e._super=86544]="_super";e[e._class=87568]="_class";e[e._extends=88080]="_extends";e[e._export=89104]="_export";e[e._import=90640]="_import";e[e._yield=91664]="_yield";e[e._null=92688]="_null";e[e._true=93712]="_true";e[e._false=94736]="_false";e[e._in=95256]="_in";e[e._instanceof=96280]="_instanceof";e[e._typeof=97936]="_typeof";e[e._void=98960]="_void";e[e._delete=99984]="_delete";e[e._async=100880]="_async";e[e._get=101904]="_get";e[e._set=102928]="_set";e[e._declare=103952]="_declare";e[e._readonly=104976]="_readonly";e[e._abstract=106e3]="_abstract";e[e._static=107024]="_static";e[e._public=107536]="_public";e[e._private=108560]="_private";e[e._protected=109584]="_protected";e[e._override=110608]="_override";e[e._as=112144]="_as";e[e._enum=113168]="_enum";e[e._type=114192]="_type";e[e._implements=115216]="_implements"}(s||(s={}));class r{constructor(e,t,n){this.startTokenIndex=e,this.endTokenIndex=t,this.isFunctionScope=n}}class i{constructor(e,t,n,s,o,r,i,a,c,h,l,p,u){this.potentialArrowAt=e,this.noAnonFunctionType=t,this.inDisallowConditionalTypesContext=n,this.tokensLength=s,this.scopesLength=o,this.pos=r,this.type=i,this.contextualKeyword=a,this.start=c,this.end=h,this.isType=l,this.scopeDepth=p,this.error=u}}class a{constructor(){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),a.prototype.__init5.call(this),a.prototype.__init6.call(this),a.prototype.__init7.call(this),a.prototype.__init8.call(this),a.prototype.__init9.call(this),a.prototype.__init10.call(this),a.prototype.__init11.call(this),a.prototype.__init12.call(this),a.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=s.eof}__init8(){this.contextualKeyword=n.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new i(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}let c,h,l,p,u,f;function d(){return f++}function m(e){if("pos"in e){const t=function(e){let t=1,n=1;for(let s=0;s<e;s++)u.charCodeAt(s)===o.lineFeed?(t++,n=1):n++;return new k(t,n)}(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}!function(e){e[e.backSpace=8]="backSpace";e[e.lineFeed=10]="lineFeed";e[e.tab=9]="tab";e[e.carriageReturn=13]="carriageReturn";e[e.shiftOut=14]="shiftOut";e[e.space=32]="space";e[e.exclamationMark=33]="exclamationMark";e[e.quotationMark=34]="quotationMark";e[e.numberSign=35]="numberSign";e[e.dollarSign=36]="dollarSign";e[e.percentSign=37]="percentSign";e[e.ampersand=38]="ampersand";e[e.apostrophe=39]="apostrophe";e[e.leftParenthesis=40]="leftParenthesis";e[e.rightParenthesis=41]="rightParenthesis";e[e.asterisk=42]="asterisk";e[e.plusSign=43]="plusSign";e[e.comma=44]="comma";e[e.dash=45]="dash";e[e.dot=46]="dot";e[e.slash=47]="slash";e[e.digit0=48]="digit0";e[e.digit1=49]="digit1";e[e.digit2=50]="digit2";e[e.digit3=51]="digit3";e[e.digit4=52]="digit4";e[e.digit5=53]="digit5";e[e.digit6=54]="digit6";e[e.digit7=55]="digit7";e[e.digit8=56]="digit8";e[e.digit9=57]="digit9";e[e.colon=58]="colon";e[e.semicolon=59]="semicolon";e[e.lessThan=60]="lessThan";e[e.equalsTo=61]="equalsTo";e[e.greaterThan=62]="greaterThan";e[e.questionMark=63]="questionMark";e[e.atSign=64]="atSign";e[e.uppercaseA=65]="uppercaseA";e[e.uppercaseB=66]="uppercaseB";e[e.uppercaseC=67]="uppercaseC";e[e.uppercaseD=68]="uppercaseD";e[e.uppercaseE=69]="uppercaseE";e[e.uppercaseF=70]="uppercaseF";e[e.uppercaseG=71]="uppercaseG";e[e.uppercaseH=72]="uppercaseH";e[e.uppercaseI=73]="uppercaseI";e[e.uppercaseJ=74]="uppercaseJ";e[e.uppercaseK=75]="uppercaseK";e[e.uppercaseL=76]="uppercaseL";e[e.uppercaseM=77]="uppercaseM";e[e.uppercaseN=78]="uppercaseN";e[e.uppercaseO=79]="uppercaseO";e[e.uppercaseP=80]="uppercaseP";e[e.uppercaseQ=81]="uppercaseQ";e[e.uppercaseR=82]="uppercaseR";e[e.uppercaseS=83]="uppercaseS";e[e.uppercaseT=84]="uppercaseT";e[e.uppercaseU=85]="uppercaseU";e[e.uppercaseV=86]="uppercaseV";e[e.uppercaseW=87]="uppercaseW";e[e.uppercaseX=88]="uppercaseX";e[e.uppercaseY=89]="uppercaseY";e[e.uppercaseZ=90]="uppercaseZ";e[e.leftSquareBracket=91]="leftSquareBracket";e[e.backslash=92]="backslash";e[e.rightSquareBracket=93]="rightSquareBracket";e[e.caret=94]="caret";e[e.underscore=95]="underscore";e[e.graveAccent=96]="graveAccent";e[e.lowercaseA=97]="lowercaseA";e[e.lowercaseB=98]="lowercaseB";e[e.lowercaseC=99]="lowercaseC";e[e.lowercaseD=100]="lowercaseD";e[e.lowercaseE=101]="lowercaseE";e[e.lowercaseF=102]="lowercaseF";e[e.lowercaseG=103]="lowercaseG";e[e.lowercaseH=104]="lowercaseH";e[e.lowercaseI=105]="lowercaseI";e[e.lowercaseJ=106]="lowercaseJ";e[e.lowercaseK=107]="lowercaseK";e[e.lowercaseL=108]="lowercaseL";e[e.lowercaseM=109]="lowercaseM";e[e.lowercaseN=110]="lowercaseN";e[e.lowercaseO=111]="lowercaseO";e[e.lowercaseP=112]="lowercaseP";e[e.lowercaseQ=113]="lowercaseQ";e[e.lowercaseR=114]="lowercaseR";e[e.lowercaseS=115]="lowercaseS";e[e.lowercaseT=116]="lowercaseT";e[e.lowercaseU=117]="lowercaseU";e[e.lowercaseV=118]="lowercaseV";e[e.lowercaseW=119]="lowercaseW";e[e.lowercaseX=120]="lowercaseX";e[e.lowercaseY=121]="lowercaseY";e[e.lowercaseZ=122]="lowercaseZ";e[e.leftCurlyBrace=123]="leftCurlyBrace";e[e.verticalBar=124]="verticalBar";e[e.rightCurlyBrace=125]="rightCurlyBrace";e[e.tilde=126]="tilde";e[e.nonBreakingSpace=160]="nonBreakingSpace";e[e.oghamSpaceMark=5760]="oghamSpaceMark";e[e.lineSeparator=8232]="lineSeparator";e[e.paragraphSeparator=8233]="paragraphSeparator"}(o||(o={}));class k{constructor(e,t){this.line=e,this.column=t}}function _(e){return p.contextualKeyword===e}function g(e){const t=ee();return t.type===s.name&&t.contextualKeyword===e}function x(e){return p.contextualKeyword===e&&G(s.name)}function y(e){x(e)||A()}function T(){return Q(s.eof)||Q(s.braceR)||b()}function b(){const e=p.tokens[p.tokens.length-1];for(let t=e?e.end:0;t<p.start;t++){const e=u.charCodeAt(t);if(e===o.lineFeed||e===o.carriageReturn||8232===e||8233===e)return!0}return!1}function I(){const e=te();for(let t=p.end;t<e;t++){const e=u.charCodeAt(t);if(e===o.lineFeed||e===o.carriageReturn||8232===e||8233===e)return!0}return!1}function v(){return G(s.semi)||T()}function w(){v()||A('Unexpected token, expected ";"')}function C(e){G(e)||A(`Unexpected token, expected "${function(e){switch(e){case s.num:return"num";case s.bigint:return"bigint";case s.decimal:return"decimal";case s.regexp:return"regexp";case s.string:return"string";case s.name:return"name";case s.eof:return"eof";case s.bracketL:return"[";case s.bracketR:return"]";case s.braceL:return"{";case s.braceBarL:return"{|";case s.braceR:return"}";case s.braceBarR:return"|}";case s.parenL:return"(";case s.parenR:return")";case s.comma:return",";case s.semi:return";";case s.colon:return":";case s.doubleColon:return"::";case s.dot:return".";case s.question:return"?";case s.questionDot:return"?.";case s.arrow:return"=>";case s.template:return"template";case s.ellipsis:return"...";case s.backQuote:return"`";case s.dollarBraceL:return"${";case s.at:return"@";case s.hash:return"#";case s.eq:return"=";case s.assign:return"_=";case s.preIncDec:case s.postIncDec:return"++/--";case s.bang:return"!";case s.tilde:return"~";case s.pipeline:return"|>";case s.nullishCoalescing:return"??";case s.logicalOR:return"||";case s.logicalAND:return"&&";case s.bitwiseOR:return"|";case s.bitwiseXOR:return"^";case s.bitwiseAND:return"&";case s.equality:return"==/!=";case s.lessThan:return"<";case s.greaterThan:return">";case s.relationalOrEqual:return"<=/>=";case s.bitShiftL:return"<<";case s.bitShiftR:return">>/>>>";case s.plus:return"+";case s.minus:return"-";case s.modulo:return"%";case s.star:return"*";case s.slash:return"/";case s.exponent:return"**";case s.jsxName:return"jsxName";case s.jsxText:return"jsxText";case s.jsxEmptyText:return"jsxEmptyText";case s.jsxTagStart:return"jsxTagStart";case s.jsxTagEnd:return"jsxTagEnd";case s.typeParameterStart:return"typeParameterStart";case s.nonNullAssertion:return"nonNullAssertion";case s._break:return"break";case s._case:return"case";case s._catch:return"catch";case s._continue:return"continue";case s._debugger:return"debugger";case s._default:return"default";case s._do:return"do";case s._else:return"else";case s._finally:return"finally";case s._for:return"for";case s._function:return"function";case s._if:return"if";case s._return:return"return";case s._switch:return"switch";case s._throw:return"throw";case s._try:return"try";case s._var:return"var";case s._let:return"let";case s._const:return"const";case s._while:return"while";case s._with:return"with";case s._new:return"new";case s._this:return"this";case s._super:return"super";case s._class:return"class";case s._extends:return"extends";case s._export:return"export";case s._import:return"import";case s._yield:return"yield";case s._null:return"null";case s._true:return"true";case s._false:return"false";case s._in:return"in";case s._instanceof:return"instanceof";case s._typeof:return"typeof";case s._void:return"void";case s._delete:return"delete";case s._async:return"async";case s._get:return"get";case s._set:return"set";case s._declare:return"declare";case s._readonly:return"readonly";case s._abstract:return"abstract";case s._static:return"static";case s._public:return"public";case s._private:return"private";case s._protected:return"protected";case s._override:return"override";case s._as:return"as";case s._enum:return"enum";case s._type:return"type";case s._implements:return"implements";default:return""}}(e)}"`)}function A(e="Unexpected token",t=p.start){if(p.error)return;const n=new SyntaxError(e);n.pos=t,p.error=n,p.pos=u.length,ce(s.eof)}const E=[9,11,12,o.space,o.nonBreakingSpace,o.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],S=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,N=new Uint8Array(65536);for(const Ko of E)N[Ko]=1;function R(e){if(e<48)return 36===e;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return 95===e;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const L=new Uint8Array(65536);for(let Ko=0;Ko<128;Ko++)L[Ko]=R(Ko)?1:0;for(let Ko=128;Ko<65536;Ko++)L[Ko]=1;for(const Ko of E)L[Ko]=0;L[8232]=0,L[8233]=0;const j=L.slice();for(let Ko=o.digit0;Ko<=o.digit9;Ko++)j[Ko]=0;const D=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,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,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(s._yield<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var O,P;function q(e){const t=e.identifierRole;return t===O.TopLevelDeclaration||t===O.FunctionScopedDeclaration||t===O.BlockScopedDeclaration||t===O.ObjectShorthandTopLevelDeclaration||t===O.ObjectShorthandFunctionScopedDeclaration||t===O.ObjectShorthandBlockScopedDeclaration}function F(e){const t=e.identifierRole;return t===O.FunctionScopedDeclaration||t===O.BlockScopedDeclaration||t===O.ObjectShorthandFunctionScopedDeclaration||t===O.ObjectShorthandBlockScopedDeclaration}function $(e){const t=e.identifierRole;return t===O.TopLevelDeclaration||t===O.ObjectShorthandTopLevelDeclaration||t===O.ImportDeclaration}function M(e){const t=e.identifierRole;return t===O.TopLevelDeclaration||t===O.BlockScopedDeclaration||t===O.ObjectShorthandTopLevelDeclaration||t===O.ObjectShorthandBlockScopedDeclaration}function B(e){const t=e.identifierRole;return t===O.FunctionScopedDeclaration||t===O.ObjectShorthandFunctionScopedDeclaration}function K(e){return e.identifierRole===O.ObjectShorthandTopLevelDeclaration||e.identifierRole===O.ObjectShorthandBlockScopedDeclaration||e.identifierRole===O.ObjectShorthandFunctionScopedDeclaration}!function(e){e[e.Access=0]="Access";e[e.ExportAccess=1]="ExportAccess";e[e.TopLevelDeclaration=2]="TopLevelDeclaration";e[e.FunctionScopedDeclaration=3]="FunctionScopedDeclaration";e[e.BlockScopedDeclaration=4]="BlockScopedDeclaration";e[e.ObjectShorthandTopLevelDeclaration=5]="ObjectShorthandTopLevelDeclaration";e[e.ObjectShorthandFunctionScopedDeclaration=6]="ObjectShorthandFunctionScopedDeclaration";e[e.ObjectShorthandBlockScopedDeclaration=7]="ObjectShorthandBlockScopedDeclaration";e[e.ObjectShorthand=8]="ObjectShorthand";e[e.ImportDeclaration=9]="ImportDeclaration";e[e.ObjectKey=10]="ObjectKey";e[e.ImportAccess=11]="ImportAccess"}(O||(O={})),function(e){e[e.NoChildren=0]="NoChildren";e[e.OneChild=1]="OneChild";e[e.StaticChildren=2]="StaticChildren";e[e.KeyAfterPropSpread=3]="KeyAfterPropSpread"}(P||(P={}));class U{constructor(){this.type=p.type,this.contextualKeyword=p.contextualKeyword,this.start=p.start,this.end=p.end,this.scopeDepth=p.scopeDepth,this.isType=p.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function V(){p.tokens.push(new U),oe()}function W(){p.tokens.push(new U),p.start=p.pos,function(){for(;;){if(p.pos>=u.length)return void A("Unterminated template");const e=u.charCodeAt(p.pos);if(e===o.graveAccent||e===o.dollarSign&&u.charCodeAt(p.pos+1)===o.leftCurlyBrace)return p.pos===p.start&&Q(s.template)?e===o.dollarSign?(p.pos+=2,void ce(s.dollarBraceL)):(++p.pos,void ce(s.backQuote)):void ce(s.template);e===o.backslash&&p.pos++,p.pos++}}()}function H(){p.type===s.assign&&--p.pos,function(){const e=p.pos;let t=!1,n=!1;for(;;){if(p.pos>=u.length)return void A("Unterminated regular expression",e);const s=u.charCodeAt(p.pos);if(t)t=!1;else{if(s===o.leftSquareBracket)n=!0;else if(s===o.rightSquareBracket&&n)n=!1;else if(s===o.slash&&!n)break;t=s===o.backslash}++p.pos}++p.pos,function(){for(;p.pos<u.length;){const e=u.charCodeAt(p.pos);if(L[e])p.pos++;else{if(e!==o.backslash)break;if(p.pos+=2,u.charCodeAt(p.pos)===o.leftCurlyBrace){for(;p.pos<u.length&&u.charCodeAt(p.pos)!==o.rightCurlyBrace;)p.pos++;p.pos++}}}}(),ce(s.regexp)}()}function X(e){for(let n=p.tokens.length-e;n<p.tokens.length;n++)p.tokens[n].isType=!0;const t=p.isType;return p.isType=!0,t}function z(e){p.isType=e}function G(e){return!!Q(e)&&(V(),!0)}function J(e){const t=p.isType;p.isType=!0,G(e),p.isType=t}function Q(e){return p.type===e}function Y(){const e=p.snapshot();V();const t=p.type;return p.restoreFromSnapshot(e),t}class Z{constructor(e,t){this.type=e,this.contextualKeyword=t}}function ee(){const e=p.snapshot();V();const t=p.type,n=p.contextualKeyword;return p.restoreFromSnapshot(e),new Z(t,n)}function te(){return ne(p.pos)}function ne(e){S.lastIndex=e;return e+S.exec(u)[0].length}function se(){return u.charCodeAt(te())}function oe(){if(ae(),p.start=p.pos,p.pos>=u.length){const e=p.tokens;return e.length>=2&&e[e.length-1].start>=u.length&&e[e.length-2].start>=u.length&&A("Unexpectedly reached the end of input."),void ce(s.eof)}var e;e=u.charCodeAt(p.pos),j[e]||e===o.backslash||e===o.atSign&&u.charCodeAt(p.pos+1)===o.atSign?function(){let e=0,t=0,n=p.pos;for(;n<u.length&&(t=u.charCodeAt(n),!(t<o.lowercaseA||t>o.lowercaseZ));){const s=D[e+(t-o.lowercaseA)+1];if(-1===s)break;e=s,n++}const r=D[e];if(r>-1&&!L[t])return p.pos=n,void(1&r?ce(r>>>1):ce(s.name,r>>>1));for(;n<u.length;){const e=u.charCodeAt(n);if(L[e])n++;else if(e===o.backslash){if(n+=2,u.charCodeAt(n)===o.leftCurlyBrace){for(;n<u.length&&u.charCodeAt(n)!==o.rightCurlyBrace;)n++;n++}}else{if(e!==o.atSign||u.charCodeAt(n+1)!==o.atSign)break;n+=2}}p.pos=n,ce(s.name)}():pe(e)}function re(){for(;u.charCodeAt(p.pos)!==o.asterisk||u.charCodeAt(p.pos+1)!==o.slash;)if(p.pos++,p.pos>u.length)return void A("Unterminated comment",p.pos-2);p.pos+=2}function ie(e){let t=u.charCodeAt(p.pos+=e);if(p.pos<u.length)for(;t!==o.lineFeed&&t!==o.carriageReturn&&t!==o.lineSeparator&&t!==o.paragraphSeparator&&++p.pos<u.length;)t=u.charCodeAt(p.pos)}function ae(){for(;p.pos<u.length;){const e=u.charCodeAt(p.pos);switch(e){case o.carriageReturn:u.charCodeAt(p.pos+1)===o.lineFeed&&++p.pos;case o.lineFeed:case o.lineSeparator:case o.paragraphSeparator:++p.pos;break;case o.slash:switch(u.charCodeAt(p.pos+1)){case o.asterisk:p.pos+=2,re();break;case o.slash:ie(2);break;default:return}break;default:if(!N[e])return;++p.pos}}}function ce(e,t=n.NONE){p.end=p.pos,p.type=e,p.contextualKeyword=t}function he(){if(p.isType)return void ue(s.greaterThan,1);const e=u.charCodeAt(p.pos+1);if(e===o.greaterThan){const e=u.charCodeAt(p.pos+2)===o.greaterThan?3:2;return u.charCodeAt(p.pos+e)===o.equalsTo?void ue(s.assign,e+1):void ue(s.bitShiftR,e)}e===o.equalsTo?ue(s.relationalOrEqual,2):ue(s.greaterThan,1)}function le(){p.type===s.greaterThan&&(p.pos-=1,he())}function pe(e){switch(e){case o.numberSign:return++p.pos,void ce(s.hash);case o.dot:return void function(){const e=u.charCodeAt(p.pos+1);e>=o.digit0&&e<=o.digit9?de(!0):e===o.dot&&u.charCodeAt(p.pos+2)===o.dot?(p.pos+=3,ce(s.ellipsis)):(++p.pos,ce(s.dot))}();case o.leftParenthesis:return++p.pos,void ce(s.parenL);case o.rightParenthesis:return++p.pos,void ce(s.parenR);case o.semicolon:return++p.pos,void ce(s.semi);case o.comma:return++p.pos,void ce(s.comma);case o.leftSquareBracket:return++p.pos,void ce(s.bracketL);case o.rightSquareBracket:return++p.pos,void ce(s.bracketR);case o.leftCurlyBrace:return void(l&&u.charCodeAt(p.pos+1)===o.verticalBar?ue(s.braceBarL,2):(++p.pos,ce(s.braceL)));case o.rightCurlyBrace:return++p.pos,void ce(s.braceR);case o.colon:return void(u.charCodeAt(p.pos+1)===o.colon?ue(s.doubleColon,2):(++p.pos,ce(s.colon)));case o.questionMark:return void function(){const e=u.charCodeAt(p.pos+1),t=u.charCodeAt(p.pos+2);e!==o.questionMark||l&&p.isType?e!==o.dot||t>=o.digit0&&t<=o.digit9?(++p.pos,ce(s.question)):(p.pos+=2,ce(s.questionDot)):t===o.equalsTo?ue(s.assign,3):ue(s.nullishCoalescing,2)}();case o.atSign:return++p.pos,void ce(s.at);case o.graveAccent:return++p.pos,void ce(s.backQuote);case o.digit0:{const e=u.charCodeAt(p.pos+1);if(e===o.lowercaseX||e===o.uppercaseX||e===o.lowercaseO||e===o.uppercaseO||e===o.lowercaseB||e===o.uppercaseB)return void function(){p.pos+=2;for(;;){const e=u.charCodeAt(p.pos);if(!(e>=o.digit0&&e<=o.digit9||e>=o.lowercaseA&&e<=o.lowercaseF||e>=o.uppercaseA&&e<=o.uppercaseF||e===o.underscore))break;p.pos++}const e=u.charCodeAt(p.pos);e===o.lowercaseN?(++p.pos,ce(s.bigint)):ce(s.num)}()}case o.digit1:case o.digit2:case o.digit3:case o.digit4:case o.digit5:case o.digit6:case o.digit7:case o.digit8:case o.digit9:return void de(!1);case o.quotationMark:case o.apostrophe:return void function(e){for(p.pos++;;){if(p.pos>=u.length)return void A("Unterminated string constant");const t=u.charCodeAt(p.pos);if(t===o.backslash)p.pos++;else if(t===e)break;p.pos++}p.pos++,ce(s.string)}(e);case o.slash:return void(u.charCodeAt(p.pos+1)===o.equalsTo?ue(s.assign,2):ue(s.slash,1));case o.percentSign:case o.asterisk:return void function(e){let t=e===o.asterisk?s.star:s.modulo,n=1,r=u.charCodeAt(p.pos+1);e===o.asterisk&&r===o.asterisk&&(n++,r=u.charCodeAt(p.pos+2),t=s.exponent),r===o.equalsTo&&u.charCodeAt(p.pos+2)!==o.greaterThan&&(n++,t=s.assign),ue(t,n)}(e);case o.verticalBar:case o.ampersand:return void function(e){const t=u.charCodeAt(p.pos+1);if(t!==e){if(e===o.verticalBar){if(t===o.greaterThan)return void ue(s.pipeline,2);if(t===o.rightCurlyBrace&&l)return void ue(s.braceBarR,2)}t!==o.equalsTo?ue(e===o.verticalBar?s.bitwiseOR:s.bitwiseAND,1):ue(s.assign,2)}else u.charCodeAt(p.pos+2)===o.equalsTo?ue(s.assign,3):ue(e===o.verticalBar?s.logicalOR:s.logicalAND,2)}(e);case o.caret:return void(u.charCodeAt(p.pos+1)===o.equalsTo?ue(s.assign,2):ue(s.bitwiseXOR,1));case o.plusSign:case o.dash:return void function(e){const t=u.charCodeAt(p.pos+1);t!==e?t===o.equalsTo?ue(s.assign,2):e===o.plusSign?ue(s.plus,1):ue(s.minus,1):ue(s.preIncDec,2)}(e);case o.lessThan:return void function(){const e=u.charCodeAt(p.pos+1);if(e===o.lessThan)return u.charCodeAt(p.pos+2)===o.equalsTo?void ue(s.assign,3):void(p.isType?ue(s.lessThan,1):ue(s.bitShiftL,2));e===o.equalsTo?ue(s.relationalOrEqual,2):ue(s.lessThan,1)}();case o.greaterThan:return void he();case o.equalsTo:case o.exclamationMark:return void function(e){const t=u.charCodeAt(p.pos+1);if(t!==o.equalsTo)return e===o.equalsTo&&t===o.greaterThan?(p.pos+=2,void ce(s.arrow)):void ue(e===o.equalsTo?s.eq:s.bang,1);ue(s.equality,u.charCodeAt(p.pos+2)===o.equalsTo?3:2)}(e);case o.tilde:return void ue(s.tilde,1)}A(`Unexpected character '${String.fromCharCode(e)}'`,p.pos)}function ue(e,t){p.pos+=t,ce(e)}function fe(){for(;;){const e=u.charCodeAt(p.pos);if(!(e>=o.digit0&&e<=o.digit9||e===o.underscore))break;p.pos++}}function de(e){let t=!1,n=!1;e||fe();let r=u.charCodeAt(p.pos);r===o.dot&&(++p.pos,fe(),r=u.charCodeAt(p.pos)),r!==o.uppercaseE&&r!==o.lowercaseE||(r=u.charCodeAt(++p.pos),r!==o.plusSign&&r!==o.dash||++p.pos,fe(),r=u.charCodeAt(p.pos)),r===o.lowercaseN?(++p.pos,t=!0):r===o.lowercaseM&&(++p.pos,n=!0),ce(t?s.bigint:n?s.decimal:s.num)}function me(e,t=e.currentIndex()){let n=t+1;if(ke(e,n)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,ke(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,ke(e,n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(n++,ke(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${t}`)}function ke(e,t){const n=e.tokens[t];return n.type===s.braceR||n.type===s.comma}const _e=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy",""],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj",""],["zwj",""],["lrm",""],["rlm",""],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function ge(e){const[t,n]=xe(e.jsxPragma||"React.createElement"),[s,o]=xe(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:n,fragmentBase:s,fragmentSuffix:o}}function xe(e){let t=e.indexOf(".");return-1===t&&(t=e.length),[e.slice(0,t),e.slice(t)]}class ye{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Te extends ye{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,t,n,s,o){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.options=o,Te.prototype.__init.call(this),Te.prototype.__init2.call(this),Te.prototype.__init3.call(this),Te.prototype.__init4.call(this),Te.prototype.__init5.call(this),this.jsxPragmaInfo=ge(o),this.isAutomaticRuntime="automatic"===o.jsxRuntime,this.jsxImportSource=o.jsxImportSource||"react"}process(){return!!this.tokens.matches1(s.jsxTagStart)&&(this.processJSXTag(),!0)}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[t,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${n} = require("${t}");`;else{const{createElement:t,...n}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from "${this.jsxImportSource}";`);const s=Object.entries(n).map(([e,t])=>`${e} as ${t}`).join(", ");if(s){e+=`import {${s}} from "${this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime")}";`}}return e}processJSXTag(){const{jsxRole:e,start:t}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==P.KeyAfterPropSpread?this.transformTagToJSXFunc(n,e):this.transformTagToCreateElement(n)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const t=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<t.length;)"\n"===t[this.lastIndex]&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,t){const n=t===P.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(n));let o=null;if(this.tokens.matches1(s.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(t);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),o=this.processProps(!0),this.tokens.matches2(s.slash,s.jsxTagEnd))this.tokens.appendCode("}");else{if(!this.tokens.matches1(s.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t)}o&&this.tokens.appendCode(`, ${o}`)}for(this.options.production||(null===o&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${n}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(s.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(s.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(s.slash,s.jsxTagEnd));else{if(!this.tokens.matches1(s.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(s.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){const n=this.claimAutoImportedName(e,t);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(e,t){if(this.importProcessor){const n=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${e}`}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,s.jsxName,s.jsxName)&&!this.tokens.matches2AtIndex(e-1,s.greaterThan,s.jsxName)&&!this.tokens.matches1AtIndex(e,s.braceL)&&!this.tokens.matches1AtIndex(e,s.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,s.slash,s.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const e=this.tokens.identifierName();be(e)&&this.tokens.replaceToken(`'${e}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){const t=this.options.production?"":`__self: this, __source: ${this.getDevSource(e)}`;this.tokens.matches1(s.jsxName)||this.tokens.matches1(s.braceL)?(this.tokens.appendCode(", {"),this.processProps(!1),t?this.tokens.appendCode(` ${t}}`):this.tokens.appendCode("}")):t?this.tokens.appendCode(`, {${t}}`):this.tokens.appendCode(", null")}processProps(e){let t=null;for(;;){if(this.tokens.matches2(s.jsxName,s.eq)){const n=this.tokens.identifierName();if(e&&"key"===n){null!==t&&this.tokens.appendCode(t.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const e=this.tokens.snapshot();this.processPropValue(),t=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(e);continue}this.processPropName(n),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(s.jsxName)){const e=this.tokens.identifierName();this.processPropName(e),this.tokens.appendCode(": true")}else{if(!this.tokens.matches1(s.braceL))break;this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")}this.tokens.appendCode(",")}return t}processPropName(e){e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(s.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(s.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start+1,e.end-1),n=Ie(t),s=function(e){let t="";for(let n=0;n<e.length;n++){const s=e[n];if("\n"===s)if(/\s/.test(e[n+1]))for(t+=" ";n<e.length&&/\s/.test(e[n+1]);)n++;else t+="\n";else if("&"===s){const{entity:s,newI:o}=ve(e,n+1);t+=s,n=o-1}else t+=s}return JSON.stringify(t)}(t);this.tokens.replaceToken(s+n)}processAutomaticChildrenAndEndProps(e){e===P.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(e===P.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(e){let t=e;for(;;){if(this.tokens.matches2(s.jsxTagStart,s.slash))return;let e=!1;if(this.tokens.matches1(s.braceL))this.tokens.matches2(s.braceL,s.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(t?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),e=!0);else if(this.tokens.matches1(s.jsxTagStart))this.tokens.appendCode(t?", ":""),this.processJSXTag(),e=!0;else{if(!this.tokens.matches1(s.jsxText)&&!this.tokens.matches1(s.jsxEmptyText))throw new Error("Unexpected token when processing JSX children.");e=this.processChildTextElement(t)}e&&(t=!0)}}processChildTextElement(e){const t=this.tokens.currentToken(),n=this.tokens.code.slice(t.start,t.end),s=Ie(n),o=function(e){let t="",n="",s=!1,o=!1;for(let r=0;r<e.length;r++){const i=e[r];if(" "===i||"\t"===i||"\r"===i)s||(n+=i);else if("\n"===i)n="",s=!0;else{if(o&&s&&(t+=" "),t+=n,n="","&"===i){const{entity:n,newI:s}=ve(e,r+1);r=s-1,t+=n}else t+=i;o=!0,s=!1}}s||(t+=n);return JSON.stringify(t)}(n);return'""'===o?(this.tokens.replaceToken(s),!1):(this.tokens.replaceToken(`${e?", ":""}${o}${s}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function be(e){const t=e.charCodeAt(0);return t>=o.lowercaseA&&t<=o.lowercaseZ}function Ie(e){let t=0,n=0;for(const s of e)"\n"===s?(t++,n=0):" "===s&&n++;return"\n".repeat(t)+" ".repeat(n)}function ve(e,t){let n,s="",o=0,r=t;if("#"===e[r]){let t,s=10;if(r++,"x"===e[r])for(s=16,r++,t=r;r<e.length&&Ce(e.charCodeAt(r));)r++;else for(t=r;r<e.length&&we(e.charCodeAt(r));)r++;if(";"===e[r]){const o=e.slice(t,r);o&&(r++,n=String.fromCodePoint(parseInt(o,s)))}}else for(;r<e.length&&o++<10;){const t=e[r];if(r++,";"===t){n=_e.get(s);break}s+=t}return n?{entity:n,newI:r}:{entity:"&",newI:t}}function we(e){return e>=o.digit0&&e<=o.digit9}function Ce(e){return e>=o.digit0&&e<=o.digit9||e>=o.lowercaseA&&e<=o.lowercaseF||e>=o.uppercaseA&&e<=o.uppercaseF}function Ae(e,t){const n=ge(t),o=new Set;for(let r=0;r<e.tokens.length;r++){const t=e.tokens[r];if(t.type!==s.name||t.isType||t.identifierRole!==O.Access&&t.identifierRole!==O.ObjectShorthand&&t.identifierRole!==O.ExportAccess||t.shadowsGlobal||o.add(e.identifierNameForToken(t)),t.type===s.jsxTagStart&&o.add(n.base),t.type===s.jsxTagStart&&r+1<e.tokens.length&&e.tokens[r+1].type===s.jsxTagEnd&&(o.add(n.base),o.add(n.fragmentBase)),t.type===s.jsxName&&t.identifierRole===O.Access){be(e.identifierNameForToken(t))&&e.tokens[r+1].type!==s.dot||o.add(e.identifierNameForToken(t))}}return o}class Ee{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,t,n,s,o,r,i){this.nameManager=e,this.tokens=t,this.enableLegacyTypeScriptModuleInterop=n,this.options=s,this.isTypeScriptTransformEnabled=o,this.keepUnusedImports=r,this.helperManager=i,Ee.prototype.__init.call(this),Ee.prototype.__init2.call(this),Ee.prototype.__init3.call(this),Ee.prototype.__init4.call(this),Ee.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,s._import)&&!this.tokens.matches3AtIndex(e,s._import,s.name,s.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,s._export)&&!this.tokens.matches2AtIndex(e,s._export,s.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=Ae(this.tokens,this.options);for(const[e,t]of this.importInfoByPath.entries()){if(t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0)continue;[...t.defaultNames,...t.wildcardNames,...t.namedImports.map(({localName:e})=>e)].every(e=>this.shouldAutomaticallyElideImportedName(e))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,t]of this.importInfoByPath.entries()){const{defaultNames:n,wildcardNames:s,namedImports:o,namedExports:r,exportStarNames:i,hasStarExport:a}=t;if(0===n.length&&0===s.length&&0===o.length&&0===r.length&&0===i.length&&!a){this.importsToReplace.set(e,`require('${e}');`);continue}const c=this.getFreeIdentifierForPath(e);let h;h=this.enableLegacyTypeScriptModuleInterop?c:s.length>0?s[0]:this.getFreeIdentifierForPath(e);let l=`var ${c} = require('${e}');`;if(s.length>0)for(const e of s){l+=` var ${e} = ${this.enableLegacyTypeScriptModuleInterop?c:`${this.helperManager.getHelperName("interopRequireWildcard")}(${c})`};`}else i.length>0&&h!==c?l+=` var ${h} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${c});`:n.length>0&&h!==c&&(l+=` var ${h} = ${this.helperManager.getHelperName("interopRequireDefault")}(${c});`);for(const{importedName:e,localName:t}of r)l+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${c}, '${t}', '${e}');`;for(const e of i)l+=` exports.${e} = ${h};`;a&&(l+=` ${this.helperManager.getHelperName("createStarExport")}(${c});`),this.importsToReplace.set(e,l);for(const e of n)this.identifierReplacements.set(e,`${h}.default`);for(const{importedName:e,localName:t}of o)this.identifierReplacements.set(t,`${c}.${e}`)}}getFreeIdentifierForPath(e){const t=e.split("/"),n=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){const t=[],o=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,n._type)||this.tokens.matches1AtIndex(e,s._typeof))&&!this.tokens.matches1AtIndex(e+1,s.comma)&&!this.tokens.matchesContextualAtIndex(e+1,n._from))return;if(this.tokens.matches1AtIndex(e,s.parenL))return;if(this.tokens.matches1AtIndex(e,s.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,s.comma)&&e++),this.tokens.matches1AtIndex(e,s.star)&&(e+=2,o.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,s.braceL)){const n=this.getNamedImports(e+1);e=n.newIndex;for(const e of n.namedImports)"default"===e.importedName?t.push(e.localName):r.push(e)}if(this.tokens.matchesContextualAtIndex(e,n._from)&&e++,!this.tokens.matches1AtIndex(e,s.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(i);a.defaultNames.push(...t),a.wildcardNames.push(...o),a.namedImports.push(...r),0===t.length&&0===o.length&&0===r.length&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,s._export,s._var)||this.tokens.matches2AtIndex(e,s._export,s._let)||this.tokens.matches2AtIndex(e,s._export,s._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,s._export,s._function)||this.tokens.matches2AtIndex(e,s._export,s._class)){const t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,s._export,s.name,s._function)){const t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,s._export,s.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,s._export,s.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,s.braceL)||this.tokens.matches1AtIndex(n,s.dollarBraceL)||this.tokens.matches1AtIndex(n,s.bracketL))t++;else if(this.tokens.matches1AtIndex(n,s.braceR)||this.tokens.matches1AtIndex(n,s.bracketR))t--;else{if(0===t&&!this.tokens.matches1AtIndex(n,s.name))break;if(this.tokens.matches1AtIndex(1,s.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");n=e-1}else{if(q(this.tokens.tokens[n])){const e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:t,namedImports:o}=this.getNamedImports(e);if(e=t,!this.tokens.matchesContextualAtIndex(e,n._from)){for(const{importedName:e,localName:t}of o)this.addExportBinding(e,t);return}if(e++,!this.tokens.matches1AtIndex(e,s.string))throw new Error("Expected string token at the end of import statement.");const r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...o)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,s._export,s.star,s._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,s.string))throw new Error("Expected string token at the end of star export statement.");const n=this.tokens.stringValueAtIndex(e),o=this.getImportInfo(n);null!==t?o.exportStarNames.push(t):o.hasStarExport=!0}getNamedImports(e){const t=[];for(;;){if(this.tokens.matches1AtIndex(e,s.braceR)){e++;break}const n=me(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,s.comma,s.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,s.braceR)){e++;break}if(!this.tokens.matches1AtIndex(e,s.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`);e++}return{newIndex:e,namedImports:t}}getImportInfo(e){const t=this.importInfoByPath.get(e);if(t)return t;const n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){const t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const t=this.exportBindingsByLocalName.get(e);return t&&0!==t.length?t.map(e=>`exports.${e}`).join(" = "):null}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Se,Ne={exports:{}};Se||(Se=1,Ne.exports=function(){const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(t){return e.test(t)}function o(e){return e.startsWith("//")}function r(e){return e.startsWith("/")}function i(e){return e.startsWith("file:")}function a(e){return/^[.?#]/.test(e)}function c(e){const n=t.exec(e);return l(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function h(e){const t=n.exec(e),s=t[2];return l("file:","",t[1]||"","",r(s)?s:"/"+s,t[3]||"",t[4]||"")}function l(e,t,n,s,o,r,i){return{scheme:e,user:t,host:n,port:s,path:o,query:r,hash:i,type:7}}function p(e){if(o(e)){const t=c("http:"+e);return t.scheme="",t.type=6,t}if(r(e)){const t=c("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t}if(i(e))return h(e);if(s(e))return c(e);const t=c("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function u(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function f(e,t){d(t,t.type),"/"===e.path?e.path=t.path:e.path=u(t.path)+e.path}function d(e,t){const n=t<=4,s=e.path.split("/");let o=1,r=0,i=!1;for(let c=1;c<s.length;c++){const e=s[c];e?(i=!1,"."!==e&&(".."!==e?(s[o++]=e,r++):r?(i=!0,r--,o--):n&&(s[o++]=e))):i=!0}let a="";for(let c=1;c<o;c++)a+="/"+s[c];(!a||i&&!a.endsWith("/.."))&&(a+="/"),e.path=a}function m(e,t){if(!e&&!t)return"";const n=p(e);let s=n.type;if(t&&7!==s){const e=p(t),o=e.type;switch(s){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:f(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}o>s&&(s=o)}d(n,s);const o=n.query+n.hash;switch(s){case 2:case 3:return o;case 4:{const s=n.path.slice(1);return s?a(t||e)&&!a(s)?"./"+s+o:s+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}return m}());var Re=class{constructor(){this._indexes={__proto__:null},this.array=[]}};var Le=class{constructor({file:e,sourceRoot:t}={}){this._names=new Re,this._sources=new Re,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new Re}};var je=(e,t,n,s,o,r,i,a)=>function(e,t,n,s,o,r,i){const{_mappings:a,_sources:c,_sourcesContent:h,_names:l}=t,p=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(a,n),u=function(e,t){let n=e.length;for(let s=n-1;s>=0;n=s--){if(t>=e[s][0])break}return n}(p,s);if(!o){if(function(e,t){if(0===t)return!0;const n=e[t-1];return 1===n.length}(p,u))return;return De(p,u,[s])}const f=function(e,t){const n=function(e,t){return e._indexes[t]}(e,t);if(void 0!==n)return n;const{array:s,_indexes:o}=e,r=s.push(t);return o[t]=r-1}(c,o),d=-1;f===h.length&&(h[f]=null);if(function(e,t,n,s,o,r){if(0===t)return!1;const i=e[t-1];return 1!==i.length&&(n===i[1]&&s===i[2]&&o===i[3]&&r===(5===i.length?i[4]:-1))}(p,u,f,r,i,d))return;return De(p,u,[s,f,r,i])}(0,e,t,n,s,o,r);function De(e,t,n){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=n}function Oe({code:t,mappings:n},s,r,i,a){const c=function(e,t){const n=new Array(t.length);let s=0,r=t[s].start,i=0;for(let a=0;a<e.length;a++)a===r&&(n[s]=r-i,s++,r=t[s].start),e.charCodeAt(a)===o.lineFeed&&(i=a+1);return n}(i,a),h=new Le({file:r.compiledFilename});let l=0,p=n[0];for(;void 0===p&&l<n.length-1;)l++,p=n[l];let u=0,f=0;p!==f&&je(h,u,0,s,u,0);for(let e=0;e<t.length;e++){if(e===p){const t=p-f,o=c[l];for(je(h,u,t,s,u,o);(p===e||void 0===p)&&l<n.length-1;)l++,p=n[l]}t.charCodeAt(e)===o.lineFeed&&(u++,f=e+1,p!==f&&je(h,u,0,s,u,0))}const{sourceRoot:d,sourcesContent:m,...k}=function(t){const n=function(e){const{_mappings:t,_sources:n,_sourcesContent:s,_names:o,_ignoreList:r}=e;return function(e){const{length:t}=e;let n=t;for(let s=n-1;s>=0&&!(e[s].length>0);n=s,s--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:o.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:t,ignoreList:r.array}}(t);return Object.assign({},n,{mappings:e(n.mappings)})}(h);return k}const Pe={require:'\n import {createRequire as CREATE_REQUIRE_NAME} from "module";\n const require = CREATE_REQUIRE_NAME(import.meta.url);\n ',interopRequireWildcard:"\n function interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n return newObj;\n }\n }\n ",interopRequireDefault:"\n function interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n ",createNamedExportFrom:"\n function createNamedExportFrom(obj, localName, importedName) {\n Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});\n }\n ",createStarExport:'\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n ',nullishCoalesce:"\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n ",asyncNullishCoalesce:"\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n ",optionalChain:"\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",asyncOptionalChain:"\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",optionalChainDelete:"\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",asyncOptionalChainDelete:"\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "};class qe{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,qe.prototype.__init.call(this),qe.prototype.__init2.call(this)}getHelperName(e){let t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[t,n]of Object.entries(Pe)){const s=this.helperNames[t];let o=n;"optionalChainDelete"===t?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):"asyncOptionalChainDelete"===t?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):"require"===t&&(null===this.createRequireName&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),s&&(e+=" ",e+=o.replace(t,s).replace(/\s+/g," ").trim())}return e}}function Fe(e,t,n){(function(e,t){for(const n of e.tokens)if(n.type===s.name&&!n.isType&&F(n)&&t.has(e.identifierNameForToken(n)))return!0;return!1})(e,n)&&function(e,t,n){const o=[];let r=t.length-1;for(let i=e.tokens.length-1;;i--){for(;o.length>0&&o[o.length-1].startTokenIndex===i+1;)o.pop();for(;r>=0&&t[r].endTokenIndex===i+1;)o.push(t[r]),r--;if(i<0)break;const a=e.tokens[i],c=e.identifierNameForToken(a);if(o.length>1&&!a.isType&&a.type===s.name&&n.has(c))if(M(a))$e(o[o.length-1],e,c);else if(B(a)){let t=o.length-1;for(;t>0&&!o[t].isFunctionScope;)t--;if(t<0)throw new Error("Did not find parent function scope.");$e(o[t],e,c)}}if(o.length>0)throw new Error("Expected empty scope stack after processing file.")}(e,t,n)}function $e(e,t,n){for(let o=e.startTokenIndex;o<e.endTokenIndex;o++){const e=t.tokens[o];e.type!==s.name&&e.type!==s.jsxName||t.identifierNameForToken(e)!==n||(e.shadowsGlobal=!0)}}class Me{__init(){this.usedNames=new Set}constructor(e,t){Me.prototype.__init.call(this),this.usedNames=new Set(function(e,t){const n=[];for(const o of t)o.type===s.name&&n.push(e.slice(o.start,o.end));return n}(e,t))}claimFreeName(e){const t=this.findFreeName(e);return this.usedNames.add(t),t}findFreeName(e){if(!this.usedNames.has(e))return e;let t=2;for(;this.usedNames.has(e+String(t));)t++;return e+String(t)}}var Be,Ke,Ue,Ve={},We={},He={};function Xe(){if(Be)return He;Be=1;var e=He&&He.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function s(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}();Object.defineProperty(He,"__esModule",{value:!0}),He.DetailContext=He.NoopContext=He.VError=void 0;var t=function(t){function n(e,s){var o=t.call(this,s)||this;return o.path=e,Object.setPrototypeOf(o,n.prototype),o}return e(n,t),n}(Error);He.VError=t;var n=function(){function e(){}return e.prototype.fail=function(e,t,n){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(e){},e}();He.NoopContext=n;var s=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(e,t,n){return this._propNames.push(e),this._messages.push(t),this._score+=n,!1},e.prototype.unionResolver=function(){return new o},e.prototype.resolveUnion=function(e){for(var t,n,s=null,o=0,r=e.contexts;o<r.length;o++){var i=r[o];(!s||i._score>=s._score)&&(s=i)}s&&s._score>0&&((t=this._propNames).push.apply(t,s._propNames),(n=this._messages).push.apply(n,s._messages))},e.prototype.getError=function(e){for(var n=[],s=this._propNames.length-1;s>=0;s--){var o=this._propNames[s];e+="number"==typeof o?"["+o+"]":o?"."+o:"";var r=this._messages[s];r&&n.push(e+" "+r)}return new t(e,n.join("; "))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var o=this._messages[n];o&&t.push({path:e,message:o})}var r=null;for(n=t.length-1;n>=0;n--)r&&(t[n].nested=[r]),r=t[n];return r},e}();He.DetailContext=s;var o=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new s;return this.contexts.push(e),e},e}();return He}function ze(){return Ke||(Ke=1,function(e){var n=We&&We.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function s(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var s=Xe(),o=function(){return function(){}}();function r(e){return"string"==typeof e?a(e):e}function i(e,t){var n=e[t];if(!n)throw new Error("Unknown type "+t);return n}function a(e){return new c(e)}e.TType=o,e.name=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n._failMsg="is not a "+t,n}return n(t,e),t.prototype.getChecker=function(e,n,s){var o=this,r=i(e,this.name),a=r.getChecker(e,n,s);return r instanceof I||r instanceof t?a:function(e,t){return!!a(e,t)||t.fail(null,o._failMsg,0)}},t}(o);e.TName=c,e.lit=function(e){return new h(e)};var h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n.name=JSON.stringify(t),n._failMsg="is not "+n.name,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return e===n.value||t.fail(null,n._failMsg,-1)}},t}(o);e.TLiteral=h,e.array=function(e){return new l(r(e))};var l=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<e.length;s++){if(!n(e[s],t))return t.fail(s,null,1)}return!0}},t}(o);e.TArray=l,e.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new p(e.map(function(e){return r(e)}))};var p=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this.ttypes.map(function(n){return n.getChecker(e,t)}),s=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<n.length;s++){if(!n[s](e[s],t))return t.fail(s,null,1)}return!0};return t?function(e,t){return!!s(e,t)&&(e.length<=n.length||t.fail(n.length,"is extraneous",2))}:s},t}(o);e.TTuple=p,e.union=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new u(e.map(function(e){return r(e)}))};var u=function(e){function t(t){var n=e.call(this)||this;n.ttypes=t;var s=t.map(function(e){return e instanceof c||e instanceof h?e.name:null}).filter(function(e){return e}),o=t.length-s.length;return s.length?(o>0&&s.push(o+" more"),n._failMsg="is none of "+s.join(", ")):n._failMsg="is none of "+o+" types",n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this,s=this.ttypes.map(function(n){return n.getChecker(e,t)});return function(e,t){for(var o=t.unionResolver(),r=0;r<s.length;r++){if(s[r](e,o.createContext()))return!0}return t.resolveUnion(o),t.fail(null,n._failMsg,0)}},t}(o);e.TUnion=u,e.intersection=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new f(e.map(function(e){return r(e)}))};var f=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=new Set,s=this.ttypes.map(function(s){return s.getChecker(e,t,n)});return function(e,t){return!!s.every(function(n){return n(e,t)})||t.fail(null,null,0)}},t}(o);e.TIntersection=f,e.enumtype=function(e){return new d(e)};var d=function(e){function t(t){var n=e.call(this)||this;return n.members=t,n.validValues=new Set,n._failMsg="is not a valid enum value",n.validValues=new Set(Object.keys(t).map(function(e){return t[e]})),n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validValues.has(e)||t.fail(null,n._failMsg,0)}},t}(o);e.TEnumType=d,e.enumlit=function(e,t){return new m(e,t)};var m=function(e){function t(t,n){var s=e.call(this)||this;return s.enumName=t,s.prop=n,s._failMsg="is not "+t+"."+n,s}return n(t,e),t.prototype.getChecker=function(e,t){var n=this,s=i(e,this.enumName);if(!(s instanceof d))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var o=s.members[this.prop];if(!s.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(e,t){return e===o||t.fail(null,n._failMsg,-1)}},t}(o);function k(e){return Object.keys(e).map(function(t){return function(e,t){return t instanceof g?new x(e,t.ttype,!0):new x(e,r(t),!1)}(t,e[t])})}e.TEnumLiteral=m,e.iface=function(e,t){return new _(e,k(t))};var _=function(e){function t(t,n){var s=e.call(this)||this;return s.bases=t,s.props=n,s.propSet=new Set(n.map(function(e){return e.name})),s}return n(t,e),t.prototype.getChecker=function(e,t,n){var o=this,r=this.bases.map(function(n){return i(e,n).getChecker(e,t)}),a=this.props.map(function(n){return n.ttype.getChecker(e,t)}),c=new s.NoopContext,h=this.props.map(function(e,t){return!e.isOpt&&!a[t](void 0,c)}),l=function(e,t){if("object"!=typeof e||null===e)return t.fail(null,"is not an object",0);for(var n=0;n<r.length;n++)if(!r[n](e,t))return!1;for(n=0;n<a.length;n++){var s=o.props[n].name,i=e[s];if(void 0===i){if(h[n])return t.fail(s,"is missing",1)}else if(!a[n](i,t))return t.fail(s,null,1)}return!0};if(!t)return l;var p=this.propSet;return n&&(this.propSet.forEach(function(e){return n.add(e)}),p=n),function(e,t){if(!l(e,t))return!1;for(var n in e)if(!p.has(n))return t.fail(n,"is extraneous",2);return!0}},t}(o);e.TIface=_,e.opt=function(e){return new g(r(e))};var g=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){return void 0===e||n(e,t)}},t}(o);e.TOptional=g;var x=function(){return function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n}}();e.TProp=x,e.func=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new y(new b(t),r(e))};var y=function(e){function t(t,n){var s=e.call(this)||this;return s.paramList=t,s.result=n,s}return n(t,e),t.prototype.getChecker=function(e,t){return function(e,t){return"function"==typeof e||t.fail(null,"is not a function",0)}},t}(o);e.TFunc=y,e.param=function(e,t,n){return new T(e,r(t),Boolean(n))};var T=function(){return function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n}}();e.TParam=T;var b=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n}return n(t,e),t.prototype.getChecker=function(e,t){var n=this,o=this.params.map(function(n){return n.ttype.getChecker(e,t)}),r=new s.NoopContext,i=this.params.map(function(e,t){return!e.isOpt&&!o[t](void 0,r)}),a=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<o.length;s++){var r=n.params[s];if(void 0===e[s]){if(i[s])return t.fail(r.name,"is missing",1)}else if(!o[s](e[s],t))return t.fail(r.name,null,1)}return!0};return t?function(e,t){return!!a(e,t)&&(e.length<=o.length||t.fail(o.length,"is extraneous",2))}:a},t}(o);e.TParamList=b;var I=function(e){function t(t,n){var s=e.call(this)||this;return s.validator=t,s.message=n,s}return n(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validator(e)||t.fail(null,n.message,0)}},t}(o);e.BasicType=I,e.basicTypes={any:new I(function(e){return!0},"is invalid"),number:new I(function(e){return"number"==typeof e},"is not a number"),object:new I(function(e){return"object"==typeof e&&e},"is not an object"),boolean:new I(function(e){return"boolean"==typeof e},"is not a boolean"),string:new I(function(e){return"string"==typeof e},"is not a string"),symbol:new I(function(e){return"symbol"==typeof e},"is not a symbol"),void:new I(function(e){return null==e},"is not void"),undefined:new I(function(e){return void 0===e},"is not undefined"),null:new I(function(e){return null===e},"is not null"),never:new I(function(e){return!1},"is unexpected"),Date:new I(w("[object Date]"),"is not a Date"),RegExp:new I(w("[object RegExp]"),"is not a RegExp")};var v=Object.prototype.toString;function w(e){return function(t){return"object"==typeof t&&t&&v.call(t)===e}}void 0!==t.Buffer&&(e.basicTypes.Buffer=new I(function(e){return t.Buffer.isBuffer(e)},"is not a Buffer"));for(var C=function(t){e.basicTypes[t.name]=new I(function(e){return e instanceof t},"is not a "+t.name)},A=0,E=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];A<E.length;A++){C(E[A])}}(We)),We}var Ge=(Ue||(Ue=1,function(e){var t=Ve&&Ve.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var s=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],i=0,a=r.length;i<a;i++,o++)s[o]=r[i];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var n=ze(),s=Xe(),o=ze();Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return o.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return o.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return o.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return o.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return o.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return o.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return o.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return o.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return o.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return o.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return o.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return o.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return o.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return o.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return o.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return o.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return o.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return o.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return o.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return o.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return o.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return o.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return o.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return o.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return o.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return o.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return o.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return o.BasicType}});var r=Xe();Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return r.VError}}),e.createCheckers=function(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];for(var o=Object.assign.apply(Object,t([{},n.basicTypes],e)),r={},a=0,c=e;a<c.length;a++)for(var h=c[a],l=0,p=Object.keys(h);l<p.length;l++){var u=p[l];r[u]=new i(o,h[u])}return r};var i=function(){function e(e,t,s){if(void 0===s&&(s="value"),this.suite=e,this.ttype=t,this._path=s,this.props=new Map,t instanceof n.TIface)for(var o=0,r=t.props;o<r.length;o++){var i=r[o];this.props.set(i.name,i.ttype)}this.checkerPlain=this.ttype.getChecker(e,!1),this.checkerStrict=this.ttype.getChecker(e,!0)}return e.prototype.setReportedPath=function(e){this._path=e},e.prototype.check=function(e){return this._doCheck(this.checkerPlain,e)},e.prototype.test=function(e){return this.checkerPlain(e,new s.NoopContext)},e.prototype.validate=function(e){return this._doValidate(this.checkerPlain,e)},e.prototype.strictCheck=function(e){return this._doCheck(this.checkerStrict,e)},e.prototype.strictTest=function(e){return this.checkerStrict(e,new s.NoopContext)},e.prototype.strictValidate=function(e){return this._doValidate(this.checkerStrict,e)},e.prototype.getProp=function(t){var n=this.props.get(t);if(!n)throw new Error("Type has no property "+t);return new e(this.suite,n,this._path+"."+t)},e.prototype.methodArgs=function(t){var n=this._getMethod(t);return new e(this.suite,n.paramList)},e.prototype.methodResult=function(t){var n=this._getMethod(t);return new e(this.suite,n.result)},e.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new e(this.suite,this.ttype.paramList)},e.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new e(this.suite,this.ttype.result)},e.prototype.getType=function(){return this.ttype},e.prototype._doCheck=function(e,t){if(!e(t,new s.NoopContext)){var n=new s.DetailContext;throw e(t,n),n.getError(this._path)}},e.prototype._doValidate=function(e,t){if(e(t,new s.NoopContext))return null;var n=new s.DetailContext;return e(t,n),n.getErrorDetail(this._path)},e.prototype._getMethod=function(e){var t=this.props.get(e);if(!t)throw new Error("Type has no property "+e);if(!(t instanceof n.TFunc))throw new Error("Property "+e+" is not a method");return t},e}();e.Checker=i}(Ve)),Ve);const Je={Transform:Ge.union(Ge.lit("jsx"),Ge.lit("typescript"),Ge.lit("flow"),Ge.lit("imports"),Ge.lit("react-hot-loader"),Ge.lit("jest")),SourceMapOptions:Ge.iface([],{compiledFilename:"string"}),Options:Ge.iface([],{transforms:Ge.array("Transform"),disableESTransforms:Ge.opt("boolean"),jsxRuntime:Ge.opt(Ge.union(Ge.lit("classic"),Ge.lit("automatic"),Ge.lit("preserve"))),production:Ge.opt("boolean"),jsxImportSource:Ge.opt("string"),jsxPragma:Ge.opt("string"),jsxFragmentPragma:Ge.opt("string"),keepUnusedImports:Ge.opt("boolean"),preserveDynamicImport:Ge.opt("boolean"),injectCreateRequireForImportRequire:Ge.opt("boolean"),enableLegacyTypeScriptModuleInterop:Ge.opt("boolean"),enableLegacyBabel5ModuleInterop:Ge.opt("boolean"),sourceMapOptions:Ge.opt("SourceMapOptions"),filePath:Ge.opt("string")})},{Options:Qe}=Ge.createCheckers(Je);function Ye(){V(),mn(!1)}function Ze(e){V(),st(e)}function et(e){Hn(),nt(e)}function tt(){Hn(),p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration}function nt(e){let t;t=0===p.scopeDepth?O.TopLevelDeclaration:e?O.BlockScopedDeclaration:O.FunctionScopedDeclaration,p.tokens[p.tokens.length-1].identifierRole=t}function st(e){switch(p.type){case s._this:{const e=X(0);return V(),void z(e)}case s._yield:case s.name:return p.type=s.name,void et(e);case s.bracketL:return V(),void ot(s.bracketR,e,!0);case s.braceL:return void Pn(!0,e);default:A()}}function ot(e,t,n=!1,o=!1,r=0){let i=!0,a=!1;const c=p.tokens.length;for(;!G(e)&&!p.error;)if(i?i=!1:(C(s.comma),p.tokens[p.tokens.length-1].contextId=r,!a&&p.tokens[c].isType&&(p.tokens[p.tokens.length-1].isType=!0,a=!0)),n&&Q(s.comma));else{if(G(e))break;if(Q(s.ellipsis)){Ze(t),it(),G(s.comma),C(e);break}rt(o,t)}}function rt(e,t){e&<([n._public,n._protected,n._private,n._readonly,n._override]),at(t),it(),at(t,!0)}function it(){l?function(){const e=X(0);G(s.question),Q(s.colon)&&bs();z(e)}():h&&function(){const e=X(0);G(s.question),Dt(),z(e)}()}function at(e,t=!1){if(t||st(e),!G(s.eq))return;const n=p.tokens.length-1;mn(),p.tokens[n].rhsEndIndex=p.tokens.length}function ct(){return Q(s.name)}function ht(){const e=p.snapshot();V();return!!((Q(s.bracketL)||Q(s.braceL)||Q(s.star)||Q(s.ellipsis)||Q(s.hash)||Q(s.name)||Boolean(p.type&s.IS_KEYWORD)||Q(s.string)||Q(s.num)||Q(s.bigint)||Q(s.decimal))&&!b())||(p.restoreFromSnapshot(e),!1)}function lt(e){for(;;){if(null===pt(e))break}}function pt(e){if(!Q(s.name))return null;const t=p.contextualKeyword;if(-1!==e.indexOf(t)&&ht()){switch(t){case n._readonly:p.tokens[p.tokens.length-1].type=s._readonly;break;case n._abstract:p.tokens[p.tokens.length-1].type=s._abstract;break;case n._static:p.tokens[p.tokens.length-1].type=s._static;break;case n._public:p.tokens[p.tokens.length-1].type=s._public;break;case n._private:p.tokens[p.tokens.length-1].type=s._private;break;case n._protected:p.tokens[p.tokens.length-1].type=s._protected;break;case n._override:p.tokens[p.tokens.length-1].type=s._override;break;case n._declare:p.tokens[p.tokens.length-1].type=s._declare}return t}return null}function ut(){for(Hn();G(s.dot);)Hn()}function ft(){C(s._import),C(s.parenL),C(s.string),C(s.parenR),G(s.dot)&&ut(),Q(s.lessThan)&&Yt()}function dt(){G(s._const);const e=G(s._in),t=x(n._out);G(s._const),!e&&!t||Q(s.name)?Hn():p.tokens[p.tokens.length-1].type=s.name,G(s._extends)&&Pt(),G(s.eq)&&Pt()}function mt(){Q(s.lessThan)&&kt()}function kt(){const e=X(0);for(Q(s.lessThan)||Q(s.typeParameterStart)?V():A();!G(s.greaterThan)&&!p.error;)dt(),G(s.comma);z(e)}function _t(e){const t=e===s.arrow;var n;mt(),C(s.parenL),p.scopeDepth++,n=!1,ot(s.parenR,n),p.scopeDepth--,(t||Q(e))&&jt(e)}function gt(){G(s.comma)||w()}function xt(){_t(s.colon),gt()}function yt(){if(!Q(s.bracketL)||!function(){const e=p.snapshot();V();const t=G(s.name)&&Q(s.colon);return p.restoreFromSnapshot(e),t}())return!1;const e=X(0);return C(s.bracketL),Hn(),Ot(),C(s.bracketR),Dt(),gt(),z(e),!0}function Tt(e){G(s.question),e||!Q(s.parenL)&&!Q(s.lessThan)?(Dt(),gt()):(_t(s.colon),gt())}function bt(){if(Q(s.parenL)||Q(s.lessThan))return void xt();if(Q(s._new))return V(),void(Q(s.parenL)||Q(s.lessThan)?xt():Tt(!1));const e=!!pt([n._readonly]);yt()||((_(n._get)||_(n._set))&&ht(),$n(-1),Tt(e))}function It(){for(C(s.braceL);!G(s.braceR)&&!p.error;)bt()}function vt(){const e=p.snapshot(),t=function(){if(V(),G(s.plus)||G(s.minus))return _(n._readonly);_(n._readonly)&&V();if(!Q(s.bracketL))return!1;if(V(),!ct())return!1;return V(),Q(s._in)}();return p.restoreFromSnapshot(e),t}function wt(){C(s.braceL),Q(s.plus)||Q(s.minus)?(V(),y(n._readonly)):x(n._readonly),C(s.bracketL),Hn(),C(s._in),Pt(),x(n._as)&&Pt(),C(s.bracketR),Q(s.plus)||Q(s.minus)?(V(),C(s.question)):G(s.question),G(s.colon)&&Pt(),w(),C(s.braceR)}function Ct(){G(s.ellipsis)?Pt():(Pt(),G(s.question)),G(s.colon)&&Pt()}var At;function Et(e){e===At.TSAbstractConstructorType&&y(n._abstract),e!==At.TSConstructorType&&e!==At.TSAbstractConstructorType||C(s._new);const t=p.inDisallowConditionalTypesContext;p.inDisallowConditionalTypesContext=!1,_t(s.arrow),p.inDisallowConditionalTypesContext=t}function St(){switch(p.type){case s.name:return ut(),void(!b()&&Q(s.lessThan)&&Yt());case s._void:case s._null:return void V();case s.string:case s.num:case s.bigint:case s.decimal:case s._true:case s._false:return void Nn();case s.minus:return V(),void Nn();case s._this:return V(),void(_(n._is)&&!b()&&(V(),Ot()));case s._typeof:return C(s._typeof),Q(s._import)?ft():ut(),void(!b()&&Q(s.lessThan)&&Yt());case s._import:return void ft();case s.braceL:return void(vt()?wt():It());case s.bracketL:return void function(){for(C(s.bracketL);!G(s.bracketR)&&!p.error;)Ct(),G(s.comma)}();case s.parenL:return C(s.parenL),Pt(),void C(s.parenR);case s.backQuote:return void function(){for(W(),W();!Q(s.backQuote)&&!p.error;)C(s.dollarBraceL),Pt(),W(),W();V()}();default:if(p.type&s.IS_KEYWORD)return V(),void(p.tokens[p.tokens.length-1].type=s.name)}A()}function Nt(){if(_(n._keyof)||_(n._unique)||_(n._readonly))V(),Nt();else if(_(n._infer))!function(){if(y(n._infer),Hn(),Q(s._extends)){const e=p.snapshot();C(s._extends);const t=p.inDisallowConditionalTypesContext;p.inDisallowConditionalTypesContext=!0,Pt(),p.inDisallowConditionalTypesContext=t,(p.error||!p.inDisallowConditionalTypesContext&&Q(s.question))&&p.restoreFromSnapshot(e)}}();else{const e=p.inDisallowConditionalTypesContext;p.inDisallowConditionalTypesContext=!1,function(){for(St();!b()&&G(s.bracketL);)G(s.bracketR)||(Pt(),C(s.bracketR))}(),p.inDisallowConditionalTypesContext=e}}function Rt(){if(G(s.bitwiseAND),Nt(),Q(s.bitwiseAND))for(;G(s.bitwiseAND);)Nt()}function Lt(){return!!Q(s.lessThan)||Q(s.parenL)&&function(){const e=p.snapshot(),t=function(){if(V(),Q(s.parenR)||Q(s.ellipsis))return!0;if(function(){if(Q(s.name)||Q(s._this))return V(),!0;if(Q(s.braceL)||Q(s.bracketL)){let e=1;for(V();e>0&&!p.error;)Q(s.braceL)||Q(s.bracketL)?e++:(Q(s.braceR)||Q(s.bracketR))&&e--,V();return!0}return!1}()){if(Q(s.colon)||Q(s.comma)||Q(s.question)||Q(s.eq))return!0;if(Q(s.parenR)&&(V(),Q(s.arrow)))return!0}return!1}();return p.restoreFromSnapshot(e),t}()}function jt(e){const t=X(0);C(e);(function(){const e=p.snapshot();if(_(n._asserts))return V(),x(n._is)?(Pt(),!0):ct()||Q(s._this)?(V(),x(n._is)&&Pt(),!0):(p.restoreFromSnapshot(e),!1);if(ct()||Q(s._this))return V(),_(n._is)&&!b()?(V(),Pt(),!0):(p.restoreFromSnapshot(e),!1);return!1})()||Pt(),z(t)}function Dt(){Q(s.colon)&&Ot()}function Ot(){const e=X(0);C(s.colon),Pt(),z(e)}function Pt(){if(qt(),p.inDisallowConditionalTypesContext||b()||!G(s._extends))return;const e=p.inDisallowConditionalTypesContext;p.inDisallowConditionalTypesContext=!0,qt(),p.inDisallowConditionalTypesContext=e,C(s.question),Pt(),C(s.colon),Pt()}function qt(){Lt()?Et(At.TSFunctionType):Q(s._new)?Et(At.TSConstructorType):_(n._abstract)&&Y()===s._new?Et(At.TSAbstractConstructorType):function(){if(G(s.bitwiseOR),Rt(),Q(s.bitwiseOR))for(;G(s.bitwiseOR);)Rt()}()}function Ft(){for(;!Q(s.braceL)&&!p.error;)$t(),G(s.comma)}function $t(){ut(),Q(s.lessThan)&&Yt()}function Mt(){if(Q(s.string)?Nn():Hn(),G(s.eq)){const e=p.tokens.length-1;mn(),p.tokens[e].rhsEndIndex=p.tokens.length}}function Bt(){for(et(!1),C(s.braceL);!G(s.braceR)&&!p.error;)Mt(),G(s.comma)}function Kt(){C(s.braceL),Os(s.braceR)}function Ut(){et(!1),G(s.dot)?Ut():Kt()}function Vt(){_(n._global)?Hn():Q(s.string)?En():A(),Q(s.braceL)?Kt():w()}function Wt(){tt(),C(s.eq),_(n._require)&&Y()===s.parenL?(y(n._require),C(s.parenL),Q(s.string)||A(),Nn(),C(s.parenR)):ut(),w()}function Ht(){return zt(p.contextualKeyword,!0)}function Xt(e){switch(e){case n._declare:{const e=p.tokens.length-1,t=function(){if(v())return!1;switch(p.type){case s._function:{const e=X(1);return V(),Ms(p.start,!0),z(e),!0}case s._class:{const e=X(1);return Ks(!0,!1),z(e),!0}case s._const:if(Q(s._const)&&g(n._enum)){const e=X(1);return C(s._const),y(n._enum),p.tokens[p.tokens.length-1].type=s._enum,Bt(),z(e),!0}case s._var:case s._let:{const e=X(1);return js(p.type!==s._var),z(e),!0}case s.name:{const e=X(1),t=p.contextualKeyword;let s=!1;return t===n._global?(Vt(),s=!0):s=zt(t,!0),z(e),s}default:return!1}}();if(t)return p.tokens[e].type=s._declare,!0;break}case n._global:if(Q(s.braceL))return Kt(),!0;break;default:return zt(e,!1)}return!1}function zt(e,t){switch(e){case n._abstract:if(Gt(t)&&Q(s._class))return p.tokens[p.tokens.length-1].type=s._abstract,Ks(!0,!1),!0;break;case n._enum:if(Gt(t)&&Q(s.name))return p.tokens[p.tokens.length-1].type=s._enum,Bt(),!0;break;case n._interface:if(Gt(t)&&Q(s.name)){const e=X(t?2:1);return et(!1),mt(),G(s._extends)&&Ft(),It(),z(e),!0}break;case n._module:if(Gt(t)){if(Q(s.string)){const e=X(t?2:1);return Vt(),z(e),!0}if(Q(s.name)){const e=X(t?2:1);return Ut(),z(e),!0}}break;case n._namespace:if(Gt(t)&&Q(s.name)){const e=X(t?2:1);return Ut(),z(e),!0}break;case n._type:if(Gt(t)&&Q(s.name)){const e=X(t?2:1);return et(!1),mt(),C(s.eq),Pt(),w(),z(e),!0}}return!1}function Gt(e){return e?(V(),!0):!v()}function Jt(){const e=p.snapshot();return kt(),Bs(),Q(s.colon)&&jt(s.colon),C(s.arrow),p.error?(p.restoreFromSnapshot(e),!1):(Un(!0),!0)}function Qt(){p.type===s.bitShiftL&&(p.pos-=1,ce(s.lessThan)),Yt()}function Yt(){const e=X(0);for(C(s.lessThan);!Q(s.greaterThan)&&!p.error;)Pt(),G(s.comma);e?(C(s.greaterThan),z(e)):(z(e),le(),C(s.greaterThan),p.tokens[p.tokens.length-1].isType=!0)}function Zt(){if(Q(s.name))switch(p.contextualKeyword){case n._abstract:case n._declare:case n._enum:case n._interface:case n._module:case n._namespace:case n._type:return!0}return!1}function en(e,t){return c?function(e,t){if(!Q(s.lessThan))return kn(e,t);const n=p.snapshot();let o=kn(e,t);if(!p.error)return o;p.restoreFromSnapshot(n);p.type=s.typeParameterStart,kt(),o=kn(e,t),o||A();return o}(e,t):function(e,t){if(!Q(s.lessThan))return kn(e,t);const n=p.snapshot();kt();const o=kn(e,t);o||A();if(!p.error)return o;p.restoreFromSnapshot(n);return kn(e,t)}(e,t)}function tn(){pn()}function nn(e){tn(),G(s.colon)?tn():p.tokens[p.tokens.length-1].identifierRole=e}function sn(){const e=p.tokens.length;nn(O.Access);let t=!1;for(;Q(s.dot);)t=!0,pn(),tn();if(!t){const t=p.tokens[e],n=u.charCodeAt(t.start);n>=o.lowercaseA&&n<=o.lowercaseZ&&(t.identifierRole=null)}}function on(){switch(p.type){case s.braceL:return V(),dn(),void pn();case s.jsxTagStart:return ln(),void pn();case s.string:return void pn();default:A("JSX value should be either an expression or a quoted JSX text")}}function rn(){C(s.ellipsis),dn()}function an(e){if(Q(s.jsxTagEnd))return!1;sn(),h&&function(){if(G(s.jsxTagStart)){p.tokens[p.tokens.length-1].type=s.typeParameterStart;const e=X(1);for(;!Q(s.greaterThan)&&!p.error;)Pt(),G(s.comma);pn(),z(e)}}();let t=!1;for(;!Q(s.slash)&&!Q(s.jsxTagEnd)&&!p.error;)G(s.braceL)?(t=!0,C(s.ellipsis),mn(),pn()):(t&&p.end-p.start===3&&u.charCodeAt(p.start)===o.lowercaseK&&u.charCodeAt(p.start+1)===o.lowercaseE&&u.charCodeAt(p.start+2)===o.lowercaseY&&(p.tokens[e].jsxRole=P.KeyAfterPropSpread),nn(O.ObjectKey),Q(s.eq)&&(pn(),on()));const n=Q(s.slash);return n&&pn(),n}function cn(){Q(s.jsxTagEnd)||sn()}function hn(){const e=p.tokens.length-1;p.tokens[e].jsxRole=P.NoChildren;let t=0;if(!an(e))for(un();;)switch(p.type){case s.jsxTagStart:if(pn(),Q(s.slash))return pn(),cn(),void(p.tokens[e].jsxRole!==P.KeyAfterPropSpread&&(1===t?p.tokens[e].jsxRole=P.OneChild:t>1&&(p.tokens[e].jsxRole=P.StaticChildren)));t++,hn(),un();break;case s.jsxText:t++,un();break;case s.jsxEmptyText:un();break;case s.braceL:V(),Q(s.ellipsis)?(rn(),un(),t+=2):(Q(s.braceR)||(t++,dn()),un());break;default:return void A()}}function ln(){pn(),hn()}function pn(){p.tokens.push(new U),ae(),p.start=p.pos;const e=u.charCodeAt(p.pos);if(j[e])!function(){let e;do{if(p.pos>u.length)return void A("Unexpectedly reached the end of input.");e=u.charCodeAt(++p.pos)}while(L[e]||e===o.dash);ce(s.jsxName)}();else if(e===o.quotationMark||e===o.apostrophe)!function(e){for(p.pos++;;){if(p.pos>=u.length)return void A("Unterminated string constant");if(u.charCodeAt(p.pos)===e){p.pos++;break}p.pos++}ce(s.string)}(e);else switch(++p.pos,e){case o.greaterThan:ce(s.jsxTagEnd);break;case o.lessThan:ce(s.jsxTagStart);break;case o.slash:ce(s.slash);break;case o.equalsTo:ce(s.eq);break;case o.leftCurlyBrace:ce(s.braceL);break;case o.dot:ce(s.dot);break;case o.colon:ce(s.colon);break;default:A()}}function un(){p.tokens.push(new U),p.start=p.pos,function(){let e=!1,t=!1;for(;;){if(p.pos>=u.length)return void A("Unterminated JSX contents");const n=u.charCodeAt(p.pos);if(n===o.lessThan||n===o.leftCurlyBrace)return p.pos===p.start?n===o.lessThan?(p.pos++,void ce(s.jsxTagStart)):void pe(n):void ce(e&&!t?s.jsxEmptyText:s.jsxText);n===o.lineFeed?e=!0:n!==o.space&&n!==o.carriageReturn&&n!==o.tab&&(t=!0),p.pos++}}()}!function(e){e[e.TSFunctionType=0]="TSFunctionType";e[e.TSConstructorType=1]="TSConstructorType";e[e.TSAbstractConstructorType=2]="TSAbstractConstructorType"}(At||(At={}));class fn{constructor(e){this.stop=e}}function dn(e=!1){if(mn(e),Q(s.comma))for(;G(s.comma);)mn(e)}function mn(e=!1,t=!1){return h?en(e,t):l?function(e,t){if(Q(s.lessThan)){const n=p.snapshot();let o=kn(e,t);if(!p.error)return o;p.restoreFromSnapshot(n),p.type=s.typeParameterStart;const r=X(0);if(os(),z(r),o=kn(e,t),o)return!0;A()}return kn(e,t)}(e,t):kn(e,t)}function kn(e,t){if(Q(s._yield))return V(),Q(s.semi)||T()||(G(s.star),mn()),!1;(Q(s.parenL)||Q(s.name)||Q(s._yield))&&(p.potentialArrowAt=p.start);const n=function(e){const t=function(e){const t=p.tokens.length,n=xn();if(n)return!0;return gn(t,-1,e),!1}(e);if(t)return!0;return function(e){h||l?function(e){if(Q(s.question)){const e=Y();if(e===s.colon||e===s.comma||e===s.parenR)return}_n(e)}(e):_n(e)}(e),!1}(e);return t&&Dn(),p.type&s.IS_ASSIGN?(V(),mn(e),!1):n}function _n(e){G(s.question)&&(mn(),C(s.colon),mn(e))}function gn(e,t,o){if(h&&(s._in&s.PRECEDENCE_MASK)>t&&!b()&&(x(n._as)||x(n._satisfies))){const n=X(1);return Pt(),z(n),le(),void gn(e,t,o)}const r=p.type&s.PRECEDENCE_MASK;if(r>0&&(!o||!Q(s._in))&&r>t){const n=p.type;V(),n===s.nullishCoalescing&&(p.tokens[p.tokens.length-1].nullishStartIndex=e);const i=p.tokens.length;xn(),gn(i,n&s.IS_RIGHT_ASSOCIATIVE?r-1:r,o),n===s.nullishCoalescing&&(p.tokens[e].numNullishCoalesceStarts++,p.tokens[p.tokens.length-1].numNullishCoalesceEnds++),gn(e,t,o)}}function xn(){if(h&&!c&&G(s.lessThan))return function(){const e=X(1);Pt(),C(s.greaterThan),z(e),xn()}(),!1;if(_(n._module)&&se()===o.leftCurlyBrace&&!I())return y(n._module),C(s.braceL),Os(s.braceR),!1;if(p.type&s.IS_PREFIX)return V(),xn(),!1;if(yn())return!0;for(;p.type&s.IS_POSTFIX&&!T();)p.type===s.preIncDec&&(p.type=s.postIncDec),V();return!1}function yn(){const e=p.tokens.length;return!!En()||(Tn(e),p.tokens.length>e&&p.tokens[e].isOptionalChainStart&&(p.tokens[p.tokens.length-1].isOptionalChainEnd=!0),!1)}function Tn(e,t=!1){l?function(e,t=!1){if(p.tokens[p.tokens.length-1].contextualKeyword===n._async&&Q(s.lessThan)){const e=p.snapshot(),t=function(){p.scopeDepth++;const e=p.tokens.length;if(Bs(),!jn())return!1;return Bn(e),!0}();if(t&&!p.error)return;p.restoreFromSnapshot(e)}bn(e,t)}(e,t):bn(e,t)}function bn(e,t=!1){const n=new fn(!1);do{In(e,t,n)}while(!n.stop&&!p.error)}function In(e,t,n){h?function(e,t,n){if(b()||!G(s.bang)){if(Q(s.lessThan)||Q(s.bitShiftL)){const n=p.snapshot();if(!t&&wn()&&Jt())return;if(Qt(),!t&&G(s.parenL)?(p.tokens[p.tokens.length-1].subscriptStartIndex=e,Cn()):Q(s.backQuote)?On():(p.type===s.greaterThan||p.type!==s.parenL&&Boolean(p.type&s.IS_EXPRESSION_START)&&!b())&&A(),!p.error)return;p.restoreFromSnapshot(n)}else!t&&Q(s.questionDot)&&Y()===s.lessThan&&(V(),p.tokens[e].isOptionalChainStart=!0,p.tokens[p.tokens.length-1].subscriptStartIndex=e,Yt(),C(s.parenL),Cn());vn(e,t,n)}else p.tokens[p.tokens.length-1].type=s.nonNullAssertion}(e,t,n):l?function(e,t,n){if(Q(s.questionDot)&&Y()===s.lessThan)return t?void(n.stop=!0):(V(),rs(),C(s.parenL),void Cn());if(!t&&Q(s.lessThan)){const e=p.snapshot();if(rs(),C(s.parenL),Cn(),!p.error)return;p.restoreFromSnapshot(e)}vn(e,t,n)}(e,t,n):vn(e,t,n)}function vn(e,t,n){if(!t&&G(s.doubleColon))An(),n.stop=!0,Tn(e,t);else if(Q(s.questionDot)){if(p.tokens[e].isOptionalChainStart=!0,t&&Y()===s.parenL)return void(n.stop=!0);V(),p.tokens[p.tokens.length-1].subscriptStartIndex=e,G(s.bracketL)?(dn(),C(s.bracketR)):G(s.parenL)?Cn():Sn()}else if(G(s.dot))p.tokens[p.tokens.length-1].subscriptStartIndex=e,Sn();else if(G(s.bracketL))p.tokens[p.tokens.length-1].subscriptStartIndex=e,dn(),C(s.bracketR);else if(!t&&Q(s.parenL))if(wn()){const t=p.snapshot(),o=p.tokens.length;V(),p.tokens[p.tokens.length-1].subscriptStartIndex=e;const r=d();p.tokens[p.tokens.length-1].contextId=r,Cn(),p.tokens[p.tokens.length-1].contextId=r,(Q(s.colon)||Q(s.arrow))&&(p.restoreFromSnapshot(t),n.stop=!0,p.scopeDepth++,Bs(),function(e){h?Q(s.colon)&&Ot():l&&function(){if(Q(s.colon)){const e=p.noAnonFunctionType;p.noAnonFunctionType=!0,bs(),p.noAnonFunctionType=e}}();C(s.arrow),Bn(e)}(o))}else{V(),p.tokens[p.tokens.length-1].subscriptStartIndex=e;const t=d();p.tokens[p.tokens.length-1].contextId=t,Cn(),p.tokens[p.tokens.length-1].contextId=t}else Q(s.backQuote)?On():n.stop=!0}function wn(){return p.tokens[p.tokens.length-1].contextualKeyword===n._async&&!T()}function Cn(){let e=!0;for(;!G(s.parenR)&&!p.error;){if(e)e=!1;else if(C(s.comma),G(s.parenR))break;Wn(!1)}}function An(){const e=p.tokens.length;En(),Tn(e,!0)}function En(){if(G(s.modulo))return Hn(),!1;if(Q(s.jsxText)||Q(s.jsxEmptyText))return Nn(),!1;if(Q(s.lessThan)&&c)return p.type=s.jsxTagStart,ln(),V(),!1;const e=p.potentialArrowAt===p.start;switch(p.type){case s.slash:case s.assign:H();case s._super:case s._this:case s.regexp:case s.num:case s.bigint:case s.decimal:case s.string:case s._null:case s._true:case s._false:return V(),!1;case s._import:return V(),Q(s.dot)&&(p.tokens[p.tokens.length-1].type=s.name,V(),Hn()),!1;case s.name:{const t=p.tokens.length,o=p.start,r=p.contextualKeyword;return Hn(),r===n._await?(xn(),!1):r===n._async&&Q(s._function)&&!T()?(V(),Ms(o,!1),!1):e&&r===n._async&&!T()&&Q(s.name)?(p.scopeDepth++,et(!1),C(s.arrow),Bn(t),!0):Q(s._do)&&!T()?(V(),Ds(),!1):e&&!T()&&Q(s.arrow)?(p.scopeDepth++,nt(!1),C(s.arrow),Bn(t),!0):(p.tokens[p.tokens.length-1].identifierRole=O.Access,!1)}case s._do:return V(),Ds(),!1;case s.parenL:return Ln(e);case s.bracketL:return V(),Vn(s.bracketR,!0),!1;case s.braceL:return Pn(!1,!1),!1;case s._function:return function(){const e=p.start;Hn(),G(s.dot)&&Hn();Ms(e,!1)}(),!1;case s.at:Ns();case s._class:return Ks(!1),!1;case s._new:return function(){if(C(s._new),G(s.dot))return void Hn();An(),void G(s.questionDot),l&&function(){if(Q(s.lessThan)){const e=p.snapshot();rs(),p.error&&p.restoreFromSnapshot(e)}}();G(s.parenL)&&Vn(s.parenR)}(),!1;case s.backQuote:return On(),!1;case s.doubleColon:return V(),An(),!1;case s.hash:{const e=se();return j[e]||e===o.backslash?Sn():V(),!1}default:return A(),!1}}function Sn(){G(s.hash),Hn()}function Nn(){V()}function Rn(){C(s.parenL),dn(),C(s.parenR)}function Ln(e){const t=p.snapshot(),n=p.tokens.length;C(s.parenL);let o=!0;for(;!Q(s.parenR)&&!p.error;){if(o)o=!1;else if(C(s.comma),Q(s.parenR))break;if(Q(s.ellipsis)){Ze(!1),Dn();break}mn(!1,!0)}if(C(s.parenR),e&&(Q(s.colon)||!T())){if(jn())return p.restoreFromSnapshot(t),p.scopeDepth++,Bs(),jn(),Bn(n),!p.error||(p.restoreFromSnapshot(t),Ln(!1),!1)}return!1}function jn(){return h?function(){if(Q(s.colon)){const e=p.snapshot();jt(s.colon),T()&&A(),Q(s.arrow)||A(),p.error&&p.restoreFromSnapshot(e)}return G(s.arrow)}():l?function(){if(Q(s.colon)){const e=X(0),t=p.snapshot(),n=p.noAnonFunctionType;p.noAnonFunctionType=!0,Gn(),p.noAnonFunctionType=n,T()&&A(),Q(s.arrow)||A(),p.error&&p.restoreFromSnapshot(t),z(e)}return G(s.arrow)}():G(s.arrow)}function Dn(){(h||l)&&(J(s.question),Q(s.colon)&&(h?Ot():l&&bs()))}function On(){for(W(),W();!Q(s.backQuote)&&!p.error;)C(s.dollarBraceL),dn(),W(),W();V()}function Pn(e,t){const o=d();let r=!0;for(V(),p.tokens[p.tokens.length-1].contextId=o;!G(s.braceR)&&!p.error;){if(r)r=!1;else if(C(s.comma),G(s.braceR))break;let i=!1;if(Q(s.ellipsis)){const n=p.tokens.length;if(Ye(),e&&(p.tokens.length===n+2&&nt(t),G(s.braceR)))break;continue}e||(i=G(s.star)),!e&&_(n._async)?(i&&A(),Hn(),Q(s.colon)||Q(s.parenL)||Q(s.braceR)||Q(s.eq)||Q(s.comma)||(Q(s.star)&&(V(),i=!0),$n(o))):$n(o),Fn(e,t,o)}p.tokens[p.tokens.length-1].contextId=o}function qn(e,t){const n=p.start;return Q(s.parenL)?(e&&A(),Mn(n,!1),!0):!!function(e){return!e&&(Q(s.string)||Q(s.num)||Q(s.bracketL)||Q(s.name)||!!(p.type&s.IS_KEYWORD))}(e)&&($n(t),Mn(n,!1),!0)}function Fn(e,t,n){h?mt():l&&Q(s.lessThan)&&(os(),Q(s.parenL)||A());qn(e,n)||function(e,t){if(G(s.colon))return void(e?at(t):mn(!1));let n;n=e?0===p.scopeDepth?O.ObjectShorthandTopLevelDeclaration:t?O.ObjectShorthandBlockScopedDeclaration:O.ObjectShorthandFunctionScopedDeclaration:O.ObjectShorthand,p.tokens[p.tokens.length-1].identifierRole=n,at(t,!0)}(e,t)}function $n(e){l&&vs(),G(s.bracketL)?(p.tokens[p.tokens.length-1].contextId=e,mn(),C(s.bracketR),p.tokens[p.tokens.length-1].contextId=e):(Q(s.num)||Q(s.string)||Q(s.bigint)||Q(s.decimal)?En():Sn(),p.tokens[p.tokens.length-1].identifierRole=O.ObjectKey,p.tokens[p.tokens.length-1].contextId=e)}function Mn(e,t){const n=d();p.scopeDepth++;const s=p.tokens.length;Bs(t,n),Kn(e,n);const o=p.tokens.length;p.scopes.push(new r(s,o,!0)),p.scopeDepth--}function Bn(e){Un(!0);const t=p.tokens.length;p.scopes.push(new r(e,t,!0)),p.scopeDepth--}function Kn(e,t=0){h?function(e,t){if(Q(s.colon)&&jt(s.colon),!Q(s.braceL)&&v()){let t=p.tokens.length-1;for(;t>=0&&(p.tokens[t].start>=e||p.tokens[t].type===s._default||p.tokens[t].type===s._export);)p.tokens[t].isType=!0,t--;return}Un(!1,t)}(e,t):l?function(e){Q(s.colon)&&Gn();Un(!1,e)}(t):Un(!1,t)}function Un(e,t=0){e&&!Q(s.braceL)?mn():Ds(!0,t)}function Vn(e,t=!1){let n=!0;for(;!G(e)&&!p.error;){if(n)n=!1;else if(C(s.comma),G(e))break;Wn(t)}}function Wn(e){e&&Q(s.comma)||(Q(s.ellipsis)?(Ye(),Dn()):Q(s.question)?V():mn(!1,!0))}function Hn(){V(),p.tokens[p.tokens.length-1].type=s.name}function Xn(e){const t=X(0);C(e||s.colon),Ts(),z(t)}function zn(){C(s.modulo),y(n._checks),G(s.parenL)&&(dn(),C(s.parenR))}function Gn(){const e=X(0);C(s.colon),Q(s.modulo)?zn():(Ts(),Q(s.modulo)&&zn()),z(e)}function Jn(){Q(s._class)?(V(),Qn(!0)):Q(s._function)?(V(),Hn(),Q(s.lessThan)&&os(),C(s.parenL),ks(),C(s.parenR),Gn(),w()):Q(s._var)?(V(),Is(),w()):x(n._module)?G(s.dot)?(y(n._exports),bs(),w()):function(){Q(s.string)?En():Hn();C(s.braceL);for(;!Q(s.braceR)&&!p.error;)Q(s._import)?(V(),so()):A();C(s.braceR)}():_(n._type)?(V(),ts()):_(n._opaque)?(V(),ns(!0)):_(n._interface)?(V(),Qn()):Q(s._export)?(C(s._export),G(s._default)?Q(s._function)||Q(s._class)?Jn():(Ts(),w()):Q(s._var)||Q(s._function)||Q(s._class)||_(n._opaque)?Jn():Q(s.star)||Q(s.braceL)||_(n._interface)||_(n._type)||_(n._opaque)?Js():A()):A()}function Qn(e=!1){if(es(),Q(s.lessThan)&&os(),G(s._extends))do{Yn()}while(!e&&G(s.comma));if(_(n._mixins)){V();do{Yn()}while(G(s.comma))}if(_(n._implements)){V();do{Yn()}while(G(s.comma))}ps(e,!1,e)}function Yn(){ds(!1),Q(s.lessThan)&&rs()}function Zn(){Qn()}function es(){Hn()}function ts(){es(),Q(s.lessThan)&&os(),Xn(s.eq),w()}function ns(e){y(n._type),es(),Q(s.lessThan)&&os(),Q(s.colon)&&Xn(s.colon),e||Xn(s.eq),w()}function ss(){vs(),Is(),G(s.eq)&&Ts()}function os(){const e=X(0);Q(s.lessThan)||Q(s.typeParameterStart)?V():A();do{ss(),Q(s.greaterThan)||C(s.comma)}while(!Q(s.greaterThan)&&!p.error);C(s.greaterThan),z(e)}function rs(){const e=X(0);for(C(s.lessThan);!Q(s.greaterThan)&&!p.error;)Ts(),Q(s.greaterThan)||C(s.comma);C(s.greaterThan),z(e)}function is(){Q(s.num)||Q(s.string)?En():Hn()}function as(){Y()===s.colon?(is(),Xn()):Ts(),C(s.bracketR),Xn()}function cs(){is(),C(s.bracketR),C(s.bracketR),Q(s.lessThan)||Q(s.parenL)?hs():(G(s.question),Xn())}function hs(){for(Q(s.lessThan)&&os(),C(s.parenL);!Q(s.parenR)&&!Q(s.ellipsis)&&!p.error;)ms(),Q(s.parenR)||C(s.comma);G(s.ellipsis)&&ms(),C(s.parenR),Xn()}function ls(){hs()}function ps(e,t,o){let r;for(t&&Q(s.braceBarL)?(C(s.braceBarL),r=s.braceBarR):(C(s.braceL),r=s.braceR);!Q(r)&&!p.error;){if(o&&_(n._proto)){const t=Y();t!==s.colon&&t!==s.question&&(V(),e=!1)}if(e&&_(n._static)){const e=Y();e!==s.colon&&e!==s.question&&V()}if(vs(),G(s.bracketL))G(s.bracketL)?cs():as();else if(Q(s.parenL)||Q(s.lessThan))ls();else{if(_(n._get)||_(n._set)){const e=Y();e!==s.name&&e!==s.string&&e!==s.num||V()}us()}fs()}C(r)}function us(){if(Q(s.ellipsis)){if(C(s.ellipsis),G(s.comma)||G(s.semi),Q(s.braceR))return;Ts()}else is(),Q(s.lessThan)||Q(s.parenL)?hs():(G(s.question),Xn())}function fs(){G(s.semi)||G(s.comma)||Q(s.braceR)||Q(s.braceBarR)||A()}function ds(e){for(e||Hn();G(s.dot);)Hn()}function ms(){const e=Y();e===s.colon||e===s.question?(Hn(),G(s.question),Xn()):Ts()}function ks(){for(;!Q(s.parenR)&&!Q(s.ellipsis)&&!p.error;)ms(),Q(s.parenR)||C(s.comma);G(s.ellipsis)&&ms()}function _s(){let e=!1;const t=p.noAnonFunctionType;switch(p.type){case s.name:return _(n._interface)?void function(){if(y(n._interface),G(s._extends))do{Yn()}while(G(s.comma));ps(!1,!1,!1)}():(Hn(),ds(!0),void(Q(s.lessThan)&&rs()));case s.braceL:return void ps(!1,!1,!1);case s.braceBarL:return void ps(!1,!0,!1);case s.bracketL:return void function(){for(C(s.bracketL);p.pos<u.length&&!Q(s.bracketR)&&(Ts(),!Q(s.bracketR));)C(s.comma);C(s.bracketR)}();case s.lessThan:return os(),C(s.parenL),ks(),C(s.parenR),C(s.arrow),void Ts();case s.parenL:if(V(),!Q(s.parenR)&&!Q(s.ellipsis))if(Q(s.name)){const t=Y();e=t!==s.question&&t!==s.colon}else e=!0;if(e){if(p.noAnonFunctionType=!1,Ts(),p.noAnonFunctionType=t,p.noAnonFunctionType||!(Q(s.comma)||Q(s.parenR)&&Y()===s.arrow))return void C(s.parenR);G(s.comma)}return ks(),C(s.parenR),C(s.arrow),void Ts();case s.minus:return V(),void Nn();case s.string:case s.num:case s._true:case s._false:case s._null:case s._this:case s._void:case s.star:return void V();default:if(p.type===s._typeof)return C(s._typeof),void _s();if(p.type&s.IS_KEYWORD)return V(),void(p.tokens[p.tokens.length-1].type=s.name)}A()}function gs(){G(s.question)?gs():function(){for(_s();!T()&&(Q(s.bracketL)||Q(s.questionDot));)G(s.questionDot),C(s.bracketL),G(s.bracketR)||(Ts(),C(s.bracketR))}()}function xs(){gs(),!p.noAnonFunctionType&&G(s.arrow)&&Ts()}function ys(){for(G(s.bitwiseAND),xs();G(s.bitwiseAND);)xs()}function Ts(){!function(){for(G(s.bitwiseOR),ys();G(s.bitwiseOR);)ys()}()}function bs(){Xn()}function Is(){Hn(),Q(s.colon)&&bs()}function vs(){(Q(s.plus)||Q(s.minus))&&(V(),p.tokens[p.tokens.length-1].isType=!0)}function ws(){if(Q(s._typeof)||_(n._type)){const t=ee();(((e=t).type===s.name||e.type&s.IS_KEYWORD)&&e.contextualKeyword!==n._from||t.type===s.braceL||t.type===s.star)&&V()}var e}function Cs(){y(n._enum),p.tokens[p.tokens.length-1].type=s._enum,Hn(),function(){x(n._of)&&V();C(s.braceL),function(){for(;!Q(s.braceR)&&!p.error&&!G(s.ellipsis);)As(),Q(s.braceR)||C(s.comma)}(),C(s.braceR)}()}function As(){Hn(),G(s.eq)&&V()}function Es(e){l&&function(){if(Q(s.name)&&p.contextualKeyword===n._interface){const e=X(0);return V(),Zn(),z(e),!0}return!!_(n._enum)&&(Cs(),!0)}()||(Q(s.at)&&Ns(),function(e){if(h&&function(){if(p.type===s._const){const e=ee();if(e.type===s.name&&e.contextualKeyword===n._enum)return C(s._const),y(n._enum),p.tokens[p.tokens.length-1].type=s._enum,Bt(),!0}return!1}())return;const t=p.type;switch(t){case s._break:case s._continue:return V(),void(v()||(Hn(),w()));case s._debugger:return V(),void w();case s._do:return V(),Es(!1),C(s._while),Rn(),void G(s.semi);case s._for:return void function(){p.scopeDepth++;const e=p.tokens.length;!function(){V();let e=!1;_(n._await)&&(e=!0,V());if(C(s.parenL),Q(s.semi))return e&&A(),void Ps();const t=Ss();if(t||Q(s._var)||Q(s._let)||Q(s._const)||function(){if(!_(n._using))return!1;if(g(n._of))return!1;return!0}())return t&&y(n._await),V(),Fs(!0,p.type!==s._var),Q(s._in)||_(n._of)?void qs(e):void Ps();if(dn(!0),Q(s._in)||_(n._of))return void qs(e);e&&A();Ps()}();const t=p.tokens.length;p.scopes.push(new r(e,t,!1)),p.scopeDepth--}();case s._function:if(Y()===s.dot)break;return e||A(),void function(){const e=p.start;V(),Ms(e,!0)}();case s._class:return e||A(),void Ks(!0);case s._if:return V(),Rn(),Es(!1),void(G(s._else)&&Es(!1));case s._return:return V(),void(v()||(dn(),w()));case s._switch:return void function(){V(),Rn(),p.scopeDepth++;const e=p.tokens.length;C(s.braceL);for(;!Q(s.braceR)&&!p.error;)if(Q(s._case)||Q(s._default)){const e=Q(s._case);V(),e&&dn(),C(s.colon)}else Es(!0);V();const t=p.tokens.length;p.scopes.push(new r(e,t,!1)),p.scopeDepth--}();case s._throw:return V(),dn(),void w();case s._try:return void function(){if(V(),Ds(),Q(s._catch)){V();let e=null;if(Q(s.parenL)&&(p.scopeDepth++,e=p.tokens.length,C(s.parenL),st(!0),h&&Dt(),C(s.parenR)),Ds(),null!=e){const t=p.tokens.length;p.scopes.push(new r(e,t,!1)),p.scopeDepth--}}G(s._finally)&&Ds()}();case s._let:case s._const:e||A();case s._var:return void js(t!==s._var);case s._while:return V(),Rn(),void Es(!1);case s.braceL:return void Ds();case s.semi:return void V();case s._export:case s._import:{const e=Y();if(e===s.parenL||e===s.dot)break;return V(),void(t===s._import?so():Js())}case s.name:if(p.contextualKeyword===n._async){const e=p.start,t=p.snapshot();if(V(),Q(s._function)&&!T())return C(s._function),void Ms(e,!0);p.restoreFromSnapshot(t)}else{if(p.contextualKeyword===n._using&&!I()&&Y()===s.name)return void js(!0);if(Ss())return y(n._await),void js(!0)}}const o=p.tokens.length;dn();let i=null;if(p.tokens.length===o+1){const e=p.tokens[p.tokens.length-1];e.type===s.name&&(i=e.contextualKeyword)}if(null==i)return void w();G(s.colon)?Es(!0):(a=i,h?function(e){Xt(e)||w()}(a):l?function(e){if(e===n._declare){if(Q(s._class)||Q(s.name)||Q(s._function)||Q(s._var)||Q(s._export)){const e=X(1);Jn(),z(e)}}else if(Q(s.name))if(e===n._interface){const e=X(1);Zn(),z(e)}else if(e===n._type){const e=X(1);ts(),z(e)}else if(e===n._opaque){const e=X(1);ns(!1),z(e)}w()}(a):w());var a}(e))}function Ss(){if(!_(n._await))return!1;const e=p.snapshot();return V(),!_(n._using)||b()?(p.restoreFromSnapshot(e),!1):(V(),!Q(s.name)||b()?(p.restoreFromSnapshot(e),!1):(p.restoreFromSnapshot(e),!0))}function Ns(){for(;Q(s.at);)Rs()}function Rs(){if(V(),G(s.parenL))dn(),C(s.parenR);else{for(Hn();G(s.dot);)Hn();h?((Q(s.lessThan)||Q(s.bitShiftL))&&Qt(),Ls()):Ls()}}function Ls(){G(s.parenL)&&Cn()}function js(e){V(),Fs(!1,e),w()}function Ds(e=!1,t=0){const n=p.tokens.length;p.scopeDepth++,C(s.braceL),t&&(p.tokens[p.tokens.length-1].contextId=t),Os(s.braceR),t&&(p.tokens[p.tokens.length-1].contextId=t);const o=p.tokens.length;p.scopes.push(new r(n,o,e)),p.scopeDepth--}function Os(e){for(;!G(e)&&!p.error;)Es(!0)}function Ps(){C(s.semi),Q(s.semi)||dn(),C(s.semi),Q(s.parenR)||dn(),C(s.parenR),Es(!1)}function qs(e){e?x(n._of):V(),dn(),C(s.parenR),Es(!1)}function Fs(e,t){for(;;){if($s(t),G(s.eq)){const t=p.tokens.length-1;mn(e),p.tokens[t].rhsEndIndex=p.tokens.length}if(!G(s.comma))break}}function $s(e){st(e),h?function(){const e=X(0);b()||G(s.bang),Dt(),z(e)}():l&&Q(s.colon)&&bs()}function Ms(e,t,n=!1){Q(s.star)&&V(),!t||n||Q(s.name)||Q(s._yield)||A();let o=null;Q(s.name)&&(t||(o=p.tokens.length,p.scopeDepth++),et(!1));const i=p.tokens.length;p.scopeDepth++,Bs(),Kn(e);const a=p.tokens.length;p.scopes.push(new r(i,a,!0)),p.scopeDepth--,null!==o&&(p.scopes.push(new r(o,a,!0)),p.scopeDepth--)}function Bs(e=!1,t=0){h?mt():l&&function(){if(Q(s.lessThan)){const e=X(0);os(),z(e)}}(),C(s.parenL),t&&(p.tokens[p.tokens.length-1].contextId=t),ot(s.parenR,!1,!1,e,t),t&&(p.tokens[p.tokens.length-1].contextId=t)}function Ks(e,t=!1){const o=d();V(),p.tokens[p.tokens.length-1].contextId=o,p.tokens[p.tokens.length-1].isExpression=!e;let i=null;e||(i=p.tokens.length,p.scopeDepth++),function(e,t=!1){if(h&&(!e||t)&&_(n._implements))return;Q(s.name)&&et(!0);h?mt():l&&Q(s.lessThan)&&os()}(e,t),function(){let e=!1;G(s._extends)?(yn(),e=!0):e=!1;h?function(e){if(e&&(Q(s.lessThan)||Q(s.bitShiftL))&&Qt(),x(n._implements)){p.tokens[p.tokens.length-1].type=s._implements;const e=X(1);Ft(),z(e)}}(e):l&&function(e){if(e&&Q(s.lessThan)&&rs(),_(n._implements)){const e=X(0);V(),p.tokens[p.tokens.length-1].type=s._implements;do{es(),Q(s.lessThan)&&rs()}while(G(s.comma));z(e)}}(e)}();const a=p.tokens.length;if(function(e){C(s.braceL);for(;!G(s.braceR)&&!p.error;){if(G(s.semi))continue;if(Q(s.at)){Rs();continue}Ws(p.start,e)}}(o),!p.error&&(p.tokens[a].contextId=o,p.tokens[p.tokens.length-1].contextId=o,null!==i)){const e=p.tokens.length;p.scopes.push(new r(i,e,!1)),p.scopeDepth--}}function Us(){return Q(s.eq)||Q(s.semi)||Q(s.braceR)||Q(s.bang)||Q(s.colon)}function Vs(){return Q(s.parenL)||Q(s.lessThan)}function Ws(e,t){h&<([n._declare,n._public,n._protected,n._private,n._override]);let o=!1;if(Q(s.name)&&p.contextualKeyword===n._static){if(Hn(),Vs())return void Hs(e,!1);if(Us())return void Gs();if(p.tokens[p.tokens.length-1].type=s._static,o=!0,Q(s.braceL))return p.tokens[p.tokens.length-1].contextId=t,void Ds()}!function(e,t,o){if(h&&function(e){const t=p.tokens.length;lt([n._abstract,n._readonly,n._declare,n._static,n._override]);const s=p.tokens.length;if(yt()){for(let n=e?t-1:t;n<s;n++)p.tokens[n].isType=!0;return!0}return!1}(t))return;if(G(s.star))return Xs(o),void Hs(e,!1);Xs(o);let r=!1;const i=p.tokens[p.tokens.length-1];i.contextualKeyword===n._constructor&&(r=!0);if(zs(),Vs())Hs(e,r);else if(Us())Gs();else if(i.contextualKeyword!==n._async||v())i.contextualKeyword!==n._get&&i.contextualKeyword!==n._set||v()&&Q(s.star)?i.contextualKeyword!==n._accessor||v()?v()?Gs():A():(Xs(o),Gs()):(i.contextualKeyword===n._get?p.tokens[p.tokens.length-1].type=s._get:p.tokens[p.tokens.length-1].type=s._set,Xs(o),Hs(e,!1));else{p.tokens[p.tokens.length-1].type=s._async;Q(s.star)&&V(),Xs(o),zs(),Hs(e,!1)}}(e,o,t)}function Hs(e,t){h?mt():l&&Q(s.lessThan)&&os(),Mn(e,t)}function Xs(e){$n(e)}function zs(){if(h){const e=X(0);G(s.question),z(e)}}function Gs(){if(h?(J(s.bang),Dt()):l&&Q(s.colon)&&bs(),Q(s.eq)){const e=p.tokens.length;V(),mn(),p.tokens[e].rhsEndIndex=p.tokens.length}w()}function Js(){const e=p.tokens.length-1;h&&function(){if(G(s._import))return _(n._type)&&Y()!==s.eq&&y(n._type),Wt(),!0;if(G(s.eq))return dn(),w(),!0;if(x(n._as))return y(n._namespace),Hn(),w(),!0;if(_(n._type)){const e=Y();e!==s.braceL&&e!==s.star||V()}return!1}()||((l?Q(s.star)||_(n._type)&&Y()===s.star:Q(s.star))?l?function(){if(x(n._type)){const e=X(2);Zs(),z(e)}else Zs()}():Zs():function(){if(h&&Zt())return!1;if(l&&Q(s.name)&&(p.contextualKeyword===n._type||p.contextualKeyword===n._interface||p.contextualKeyword===n._opaque||p.contextualKeyword===n._enum))return!1;if(Q(s.name))return p.contextualKeyword!==n._async;if(!Q(s._default))return!1;const e=te(),t=ee(),r=t.type===s.name&&t.contextualKeyword===n._from;if(t.type===s.comma)return!0;if(r){const t=u.charCodeAt(ne(e+4));return t===o.quotationMark||t===o.apostrophe}return!1}()?(Hn(),Q(s.comma)&&Y()===s.star?(C(s.comma),C(s.star),y(n._as),Hn()):Qs(),Ys()):G(s._default)?function(){if(h&&function(){if(_(n._abstract)&&Y()===s._class)return p.type=s._abstract,V(),Ks(!0,!0),!0;if(_(n._interface)){const e=X(2);return zt(n._interface,!0),z(e),!0}return!1}())return;if(l&&_(n._enum)&&(Cs(),1))return;const e=p.start;G(s._function)?Ms(e,!0,!0):_(n._async)&&Y()===s._function?(x(n._async),G(s._function),Ms(e,!0,!0)):Q(s._class)?Ks(!0,!0):Q(s.at)?(Ns(),Ks(!0,!0)):(mn(),w())}():h&&Zt()||l&&(_(n._type)||_(n._interface)||_(n._opaque)||_(n._enum))||p.type===s._var||p.type===s._const||p.type===s._let||p.type===s._function||p.type===s._class||_(n._async)||Q(s.at)?h?function(){const e=x(n._declare);e&&(p.tokens[p.tokens.length-1].type=s._declare);let t=!1;if(Q(s.name))if(e){const e=X(2);t=Ht(),z(e)}else t=Ht();if(!t)if(e){const e=X(2);Es(!0),z(e)}else Es(!0)}():l?function(){if(_(n._type)){const e=X(1);V(),Q(s.braceL)?(eo(),Ys()):ts(),z(e)}else if(_(n._opaque)){const e=X(1);V(),ns(!1),z(e)}else if(_(n._interface)){const e=X(1);V(),Zn(),z(e)}else Es(!0)}():Es(!0):(eo(),Ys()),p.tokens[e].rhsEndIndex=p.tokens.length)}function Qs(){G(s.comma)&&eo()}function Ys(){x(n._from)&&(En(),io()),w()}function Zs(){C(s.star),_(n._as)?(V(),p.tokens[p.tokens.length-1].type=s._as,Hn(),Qs(),Ys()):Ys()}function eo(){let e=!0;for(C(s.braceL);!G(s.braceR)&&!p.error;){if(e)e=!1;else if(C(s.comma),G(s.braceR))break;to()}}function to(){h?function(){if(Hn(),Q(s.comma)||Q(s.braceR))p.tokens[p.tokens.length-1].identifierRole=O.ExportAccess;else{if(Hn(),Q(s.comma)||Q(s.braceR))return p.tokens[p.tokens.length-1].identifierRole=O.ExportAccess,p.tokens[p.tokens.length-2].isType=!0,void(p.tokens[p.tokens.length-1].isType=!0);Hn(),Q(s.comma)||Q(s.braceR)?p.tokens[p.tokens.length-3].identifierRole=O.ExportAccess:(Hn(),p.tokens[p.tokens.length-3].identifierRole=O.ExportAccess,p.tokens[p.tokens.length-4].isType=!0,p.tokens[p.tokens.length-3].isType=!0,p.tokens[p.tokens.length-2].isType=!0,p.tokens[p.tokens.length-1].isType=!0)}}():(Hn(),p.tokens[p.tokens.length-1].identifierRole=O.ExportAccess,x(n._as)&&Hn())}function no(){_(n._module)&&function(){const e=p.snapshot();return y(n._module),x(n._from)?_(n._from)?(p.restoreFromSnapshot(e),!0):(p.restoreFromSnapshot(e),!1):Q(s.comma)?(p.restoreFromSnapshot(e),!1):(p.restoreFromSnapshot(e),!0)}()&&V()}function so(){if(h&&Q(s.name)&&Y()===s.eq)Wt();else{if(h&&_(n._type)){const e=ee();if(e.type===s.name&&e.contextualKeyword!==n._from){if(y(n._type),Y()===s.eq)return void Wt()}else e.type!==s.star&&e.type!==s.braceL||y(n._type)}Q(s.string)||(no(),function(){l&&ws();let e=!0;if(Q(s.name)&&(oo(),!G(s.comma)))return;if(Q(s.star))return V(),y(n._as),void oo();C(s.braceL);for(;!G(s.braceR)&&!p.error;){if(e)e=!1;else if(G(s.colon)&&A("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),C(s.comma),G(s.braceR))break;ro()}}(),y(n._from)),En(),io(),w()}}function oo(){tt()}function ro(){h?function(){if(Hn(),Q(s.comma)||Q(s.braceR))p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration;else{if(Hn(),Q(s.comma)||Q(s.braceR))return p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration,p.tokens[p.tokens.length-2].isType=!0,void(p.tokens[p.tokens.length-1].isType=!0);if(Hn(),Q(s.comma)||Q(s.braceR))return p.tokens[p.tokens.length-3].identifierRole=O.ImportAccess,void(p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration);Hn(),p.tokens[p.tokens.length-3].identifierRole=O.ImportAccess,p.tokens[p.tokens.length-1].identifierRole=O.ImportDeclaration,p.tokens[p.tokens.length-4].isType=!0,p.tokens[p.tokens.length-3].isType=!0,p.tokens[p.tokens.length-2].isType=!0,p.tokens[p.tokens.length-1].isType=!0}}():l?function(){const e=p.contextualKeyword===n._type||p.type===s._typeof;e?V():Hn(),_(n._as)&&!g(n._as)?(Hn(),(!e||Q(s.name)||p.type&s.IS_KEYWORD)&&Hn()):(e&&(Q(s.name)||p.type&s.IS_KEYWORD)&&Hn(),x(n._as)&&Hn())}():(tt(),_(n._as)&&(p.tokens[p.tokens.length-1].identifierRole=O.ImportAccess,V(),tt()))}function io(){(Q(s._with)||_(n._assert)&&!b())&&(V(),Pn(!1,!1))}function ao(){return 0===p.pos&&u.charCodeAt(0)===o.numberSign&&u.charCodeAt(1)===o.exclamationMark&&ie(2),oe(),function(){if(Os(s.eof),p.scopes.push(new r(0,p.tokens.length,!0)),0!==p.scopeDepth)throw new Error(`Invalid scope depth at end of file: ${p.scopeDepth}`);return new co(p.tokens,p.scopes)}()}class co{constructor(e,t){this.tokens=e,this.scopes=t}}function ho(e,t,n,s){if(s&&n)throw new Error("Cannot combine flow and typescript plugins.");var o,r,i;o=t,r=n,i=s,u=e,p=new a,f=1,c=o,h=r,l=i;const d=ao();if(p.error)throw m(p.error);return d}class lo{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,t,n,s,o){this.code=e,this.tokens=t,this.isFlowEnabled=n,this.disableESTransforms=s,this.helperManager=o,lo.prototype.__init.call(this),lo.prototype.__init2.call(this),lo.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){const t=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,t}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,t){return this.matches1AtIndex(e,s.name)&&this.tokens[e].contextualKeyword===t}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,t){return this.tokens[e].type===t}matches2AtIndex(e,t,n){return this.tokens[e].type===t&&this.tokens[e+1].type===n}matches3AtIndex(e,t,n,s){return this.tokens[e].type===t&&this.tokens[e+1].type===n&&this.tokens[e+2].type===s}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,t){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t}matches3(e,t,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n}matches4(e,t,n,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===s}matches5(e,t,n,s,o){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===s&&this.tokens[this.tokenIndex+4].type===o}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,t){return this.matches1(e)&&this.currentToken().contextId===t}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(s.braceL))e++;else if(this.matches1(s.braceR)){if(0===e)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=function(e){let t=e.currentIndex(),s=0;const o=e.currentToken();do{const r=e.tokens[t];if(r.isOptionalChainStart&&s++,r.isOptionalChainEnd&&s--,s+=r.numNullishCoalesceStarts,s-=r.numNullishCoalesceEnds,r.contextualKeyword===n._await&&null==r.identifierRole&&r.scopeDepth===o.scopeDepth)return!0;t+=1}while(s>0&&t<e.tokens.length);return!1}(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let t=0;t<e.numNullishCoalesceStarts;t++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===s._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t<e.numNullishCoalesceEnds;t++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function po(e,t,o,r){const i=t.snapshot(),a=function(e){const t=e.currentToken(),n=t.contextId;if(null==n)throw new Error("Expected context ID on class token.");const o=t.isExpression;if(null==o)throw new Error("Expected isExpression on class token.");let r=null,i=!1;e.nextToken(),e.matches1(s.name)&&(r=e.identifierName());for(;!e.matchesContextIdAndLabel(s.braceL,n);)e.matches1(s._extends)&&!e.currentToken().isType&&(i=!0),e.nextToken();return{isExpression:o,className:r,hasSuperclass:i}}(t);let c=[];const h=[],l=[];let p=null;const u=[],f=[],d=t.currentToken().contextId;if(null==d)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(s.braceR,d);)if(t.matchesContextual(n._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:c,constructorInsertPos:p}=fo(t));else if(t.matches1(s.semi))r||f.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{const i=t.currentIndex();let a=!1,m=!1,k=!1;for(;mo(t.currentToken());)t.matches1(s._static)&&(a=!0),t.matches1(s.hash)&&(m=!0),(t.matches1(s._declare)||t.matches1(s._abstract))&&(k=!0),t.nextToken();if(a&&t.matches1(s.braceL)){uo(t,d);continue}if(m){uo(t,d);continue}if(t.matchesContextual(n._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:c,constructorInsertPos:p}=fo(t));continue}const _=t.currentIndex();if(ko(t),t.matches1(s.lessThan)||t.matches1(s.parenL)){uo(t,d);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(s.eq)){const n=t.currentIndex(),s=t.currentToken().rhsEndIndex;if(null==s)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<s;)e.processToken();let r;a?(r=o.claimFreeName("__initStatic"),l.push(r)):(r=o.claimFreeName("__init"),h.push(r)),u.push({initializerName:r,equalsIndex:n,start:_,end:t.currentIndex()})}else r&&!k||f.push({start:i,end:t.currentIndex()})}return t.restoreToSnapshot(i),r?{headerInfo:a,constructorInitializerStatements:c,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:p,fields:[],rangesToRemove:f}:{headerInfo:a,constructorInitializerStatements:c,instanceInitializerNames:h,staticInitializerNames:l,constructorInsertPos:p,fields:u,rangesToRemove:f}}function uo(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;mo(e.tokenAtRelativeIndex(-1));)e.previousToken()}function fo(e){const t=[];e.nextToken();const n=e.currentToken().contextId;if(null==n)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(s.parenR,n);)if(e.currentToken().contextId===n){if(e.nextToken(),mo(e.currentToken())){for(e.nextToken();mo(e.currentToken());)e.nextToken();const n=e.currentToken();if(n.type!==s.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const o=e.identifierNameForToken(n);t.push(`this.${o} = ${o}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let o=e.currentIndex(),r=!1;for(;!e.matchesContextIdAndLabel(s.braceR,n);){if(!r&&e.matches2(s._super,s.parenL)){e.nextToken();const t=e.currentToken().contextId;if(null==t)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(s.parenR,t);)e.nextToken();o=e.currentIndex(),r=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:o}}function mo(e){return[s._async,s._get,s._set,s.plus,s.minus,s._readonly,s._static,s._public,s._private,s._protected,s._override,s._abstract,s.star,s._declare,s.hash].includes(e.type)}function ko(e){if(e.matches1(s.bracketL)){const t=e.currentToken().contextId;if(null==t)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(s.bracketR,t);)e.nextToken();e.nextToken()}else e.nextToken()}function _o(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(s.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(s.dot);)e.removeToken(),e.removeToken()}const go={typeDeclarations:new Set,valueDeclarations:new Set};function xo(e){const t=new Set,n=new Set;for(let o=0;o<e.tokens.length;o++){const r=e.tokens[o];r.type===s.name&&$(r)&&(r.isType?t.add(e.identifierNameForToken(r)):n.add(e.identifierNameForToken(r)))}return{typeDeclarations:t,valueDeclarations:n}}function yo(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,s.braceR);)t++;return e.matchesContextualAtIndex(t+1,n._from)&&e.matches1AtIndex(t+2,s.string)}function To(e){(e.matches2(s._with,s.braceL)||e.matches2(s.name,s.braceL)&&e.matchesContextual(n._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function bo(e,t,n,o){if(!e||t)return!1;const r=n.currentToken();if(null==r.rhsEndIndex)throw new Error("Expected non-null rhsEndIndex on export token.");const i=r.rhsEndIndex-n.currentIndex();if(3!==i&&(4!==i||!n.matches1AtIndex(r.rhsEndIndex-1,s.semi)))return!1;const a=n.tokenAtRelativeIndex(2);if(a.type!==s.name)return!1;const c=n.identifierNameForToken(a);return o.typeDeclarations.has(c)&&!o.valueDeclarations.has(c)}class Io extends ye{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,t,n,s,o,r,i,a,c,h,l,p){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.helperManager=o,this.reactHotLoaderTransformer=r,this.enableLegacyBabel5ModuleInterop=i,this.enableLegacyTypeScriptModuleInterop=a,this.isTypeScriptTransformEnabled=c,this.isFlowTransformEnabled=h,this.preserveDynamicImport=l,this.keepUnusedImports=p,Io.prototype.__init.call(this),Io.prototype.__init2.call(this),Io.prototype.__init3.call(this),this.declarationInfo=c?xo(t):go}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?"\nmodule.exports = exports.default;\n":""}process(){return this.tokens.matches3(s._import,s.name,s.eq)?this.processImportEquals():this.tokens.matches1(s._import)?(this.processImport(),!0):this.tokens.matches2(s._export,s.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(s._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):!(!this.tokens.matches2(s.name,s.postIncDec)||!this.processPostIncDec())||(this.tokens.matches1(s.name)||this.tokens.matches1(s.jsxName)?this.processIdentifier():this.tokens.matches1(s.eq)?this.processAssignment():this.tokens.matches1(s.assign)?this.processComplexAssignment():!!this.tokens.matches1(s.preIncDec)&&this.processPreIncDec())}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?_o(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(s._import,s.parenL)){if(this.preserveDynamicImport)return void this.tokens.copyToken();const e=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${e}require`);const t=this.tokens.currentToken().contextId;if(null==t)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(s.parenR,t);)this.rootTransformer.processToken();return void this.tokens.replaceToken(e?")))":"))")}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.appendCode(this.importProcessor.claimImportCode(e))}To(this.tokens),this.tokens.matches1(s.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(n._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,s.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(s.name)||this.tokens.matches1(s.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(s.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(s.string);)(!e&&this.tokens.matches1(s.braceL)||this.tokens.matches1(s.comma))&&(this.tokens.removeToken(),this.tokens.matches1(s.braceR)||(t=!0),(this.tokens.matches2(s.name,s.comma)||this.tokens.matches2(s.name,s.braceR)||this.tokens.matches4(s.name,s.name,s.name,s.comma)||this.tokens.matches4(s.name,s.name,s.name,s.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}removeRemainingImport(){for(;!this.tokens.matches1(s.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===O.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==O.Access)return!1;const t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let n=this.tokens.currentIndex()+1;for(;n<this.tokens.tokens.length&&this.tokens.tokens[n].type===s.parenR;)n++;return this.tokens.tokens[n].type===s.parenL?this.tokens.tokenAtRelativeIndex(1).type===s.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==s._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR)):this.tokens.replaceToken(`(0, ${t})`):this.tokens.replaceToken(t),!0}processObjectShorthand(){const e=this.tokens.identifierName(),t=this.importProcessor.getIdentifierReplacement(e);return!!t&&(this.tokens.replaceToken(`${e}: ${t}`),!0)}processExport(){if(this.tokens.matches2(s._export,s._enum)||this.tokens.matches3(s._export,s._const,s._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(s._export,s._default))return this.tokens.matches3(s._export,s._default,s._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(s._export,s.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(s._export,s.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(s.braceL)){for(;!this.tokens.matches1(s.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(s._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(n._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,s.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),To(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(s._export,s._var)||this.tokens.matches2(s._export,s._let)||this.tokens.matches2(s._export,s._const))return this.processExportVar(),!0;if(this.tokens.matches2(s._export,s._function)||this.tokens.matches3(s._export,s.name,s._function))return this.processExportFunction(),!0;if(this.tokens.matches2(s._export,s._class)||this.tokens.matches3(s._export,s._abstract,s._class)||this.tokens.matches2(s._export,s.at))return this.processExportClass(),!0;if(this.tokens.matches2(s._export,s.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==s.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,s.dot))return!1;if(e>=2&&[s._var,s._let,s._const].includes(this.tokens.tokens[e-2].type))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0)}processComplexAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==s.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,s.dot))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0)}processPreIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==s.name)return!1;if(t.shadowsGlobal)return!1;if(e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,s.dot)||this.tokens.matches1AtIndex(e+2,s.bracketL)||this.tokens.matches1AtIndex(e+2,s.parenL)))return!1;const n=this.tokens.identifierNameForToken(t),o=this.importProcessor.resolveExportBinding(n);return!!o&&(this.tokens.appendCode(`${o} = `),this.tokens.copyToken(),!0)}processPostIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e],n=this.tokens.tokens[e+1];if(t.type!==s.name)return!1;if(t.shadowsGlobal)return!1;if(e>=1&&this.tokens.matches1AtIndex(e-1,s.dot))return!1;const o=this.tokens.identifierNameForToken(t),r=this.importProcessor.resolveExportBinding(o);if(!r)return!1;const i=this.tokens.rawCodeForToken(n),a=this.importProcessor.getIdentifierReplacement(o)||o;if("++"===i)this.tokens.replaceToken(`(${a} = ${r} = ${a} + 1, ${a} - 1)`);else{if("--"!==i)throw new Error(`Unexpected operator: ${i}`);this.tokens.replaceToken(`(${a} = ${r} = ${a} - 1, ${a} + 1)`)}return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(s._export,s._default,s._function,s.name)||this.tokens.matches5(s._export,s._default,s.name,s._function,s.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,n._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(s._export,s._default,s._class,s.name)||this.tokens.matches5(s._export,s._default,s._abstract,s._class,s.name)||this.tokens.matches3(s._export,s._default,s.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(s._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if(bo(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(s.at);)if(this.tokens.copyToken(),this.tokens.matches1(s.parenL))this.tokens.copyExpectedToken(s.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR);else{for(this.tokens.copyExpectedToken(s.name);this.tokens.matches1(s.dot);)this.tokens.copyExpectedToken(s.dot),this.tokens.copyExpectedToken(s.name);this.tokens.matches1(s.parenL)&&(this.tokens.copyExpectedToken(s.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,s.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,s.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(s.eq);)this.rootTransformer.processToken();const t=this.tokens.currentToken().rhsEndIndex;if(null==t)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(s.braceL);e&&this.tokens.appendCode("(");let t=0;for(;;)if(this.tokens.matches1(s.braceL)||this.tokens.matches1(s.dollarBraceL)||this.tokens.matches1(s.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(s.braceR)||this.tokens.matches1(s.bracketR))t--,this.tokens.copyToken();else{if(0===t&&!this.tokens.matches1(s.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(s.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}else{const e=this.tokens.currentToken();if(q(e)){const t=this.tokens.identifierName();let n=this.importProcessor.getIdentifierReplacement(t);if(null===n)throw new Error(`Expected a replacement for ${t} in \`export var\` syntax.`);K(e)&&(n=`${t}: ${n}`),this.tokens.replaceToken(n)}else this.rootTransformer.processToken()}}if(e){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(s._function))this.tokens.copyToken();else if(this.tokens.matches2(s.name,s._function)){if(!this.tokens.matchesContextual(n._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(s.star)&&this.tokens.copyToken(),!this.tokens.matches1(s.name))throw new Error("Expected identifier for exported function name.");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(s.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(s.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(s._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=yo(this.tokens),t=[];for(;;){if(this.tokens.matches1(s.braceR)){this.tokens.removeToken();break}const n=me(this.tokens);for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();if(!(n.isType||!e&&this.shouldElideExportedIdentifier(n.leftName))){const e=n.rightName;"default"===e?this.hadDefaultExport=!0:this.hadNamedExport=!0;const s=n.leftName,o=this.importProcessor.getIdentifierReplacement(s);t.push(`exports.${e} = ${o||s};`)}if(this.tokens.matches1(s.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(s.comma,s.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}if(!this.tokens.matches1(s.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`);this.tokens.removeToken()}if(this.tokens.matchesContextual(n._from)){this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),To(this.tokens)}else this.tokens.appendCode(t.join(" "));this.tokens.matches1(s.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(s.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),To(this.tokens),this.tokens.matches1(s.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class vo extends ye{constructor(e,t,n,s,o,r,i,a){super(),this.tokens=e,this.nameManager=t,this.helperManager=n,this.reactHotLoaderTransformer=s,this.isTypeScriptTransformEnabled=o,this.isFlowTransformEnabled=r,this.keepUnusedImports=i,this.nonTypeIdentifiers=o&&!i?Ae(e,a):new Set,this.declarationInfo=o&&!i?xo(e):go,this.injectCreateRequireForImportRequire=Boolean(a.injectCreateRequireForImportRequire)}process(){if(this.tokens.matches3(s._import,s.name,s.eq))return this.processImportEquals();if(this.tokens.matches4(s._import,s.name,s.name,s.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(s._export,s.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(s._export,s._import,s.name,s.name,s.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,n._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(s._import))return this.processImport();if(this.tokens.matches2(s._export,s._default))return this.processExportDefault();if(this.tokens.matches2(s._export,s.braceL))return this.processNamedExports();if(this.tokens.matches2(s._export,s.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(s.braceL)){for(;!this.tokens.matches1(s.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(s._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(n._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,s.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),To(this.tokens)),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?_o(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(s._import,s.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(s.string);)this.tokens.removeToken();this.tokens.removeToken(),To(this.tokens),this.tokens.matches1(s.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(s._import),this.tokens.matchesContextual(n._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,s.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,n._from))return!0;if(this.tokens.matches1(s.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(n._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,n._from)&&this.tokens.copyToken();let e=!1,t=!1,o=!1;if(this.tokens.matches1(s.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(s.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(s.comma)&&(o=!0,this.tokens.removeToken()))),this.tokens.matches1(s.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(o&&this.tokens.appendCode(","),e=!0,this.tokens.copyExpectedToken(s.star),this.tokens.copyExpectedToken(s.name),this.tokens.copyExpectedToken(s.name));else if(this.tokens.matches1(s.braceL)){for(o&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(s.braceR);){t=!0;const n=me(this.tokens);if(n.isType||this.shouldAutomaticallyElideImportedName(n.rightName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(s.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(s.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(s.braceR)}return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(bo(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(s._export,s._default,s._function,s.name)||this.tokens.matches5(s._export,s._default,s.name,s._function,s.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,n._async)||this.tokens.matches4(s._export,s._default,s._class,s.name)||this.tokens.matches5(s._export,s._default,s._abstract,s._class,s.name))&&this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${e}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(s._export),this.tokens.copyExpectedToken(s.braceL);const e=yo(this.tokens);let t=!1;for(;!this.tokens.matches1(s.braceR);){const n=me(this.tokens);if(n.isType||!e&&this.shouldElideExportedName(n.leftName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(s.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(s.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(s.braceR),this.keepUnusedImports||!e||t||(this.tokens.removeToken(),this.tokens.removeToken(),To(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class wo extends ye{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(s._enum)?(this.processEnum(),!0):this.tokens.matches2(s._export,s._enum)?(this.processNamedExportEnum(),!0):!!this.tokens.matches3(s._export,s._default,s._enum)&&(this.processDefaultExportEnum(),!0))}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(s.name);let e=!1;this.tokens.matchesContextual(n._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(n._symbol),this.tokens.removeToken());const t=this.tokens.matches3(s.braceL,s.name,s.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const o=!e&&!t;for(this.tokens.replaceTokenTrimmingLeftWhitespace(o?".Mirrored([":"({");!this.tokens.matches1(s.braceR);){if(this.tokens.matches1(s.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,t),this.tokens.matches1(s.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(o?"]);":"});")}processEnumElement(e,t){if(e){const e=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${e}")`)}else t?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}const Co="jest",Ao=["mock","unmock","enableAutomock","disableAutomock"];class Eo extends ye{__init(){this.hoistedFunctionNames=[]}constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.nameManager=n,this.importProcessor=s,Eo.prototype.__init.call(this)}process(){return!(0!==this.tokens.currentToken().scopeDepth||!this.tokens.matches4(s.name,s.dot,s.name,s.parenL)||this.tokens.identifierName()!==Co)&&(!function(e){let t,n=e[0],s=1;for(;s<e.length;){const o=e[s],r=e[s+1];if(s+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=r(n)):"call"!==o&&"optionalCall"!==o||(n=r((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(Co)])&&this.extractHoistedCalls())}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(s.dot,s.name,s.parenL);){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Ao.includes(t)){const t=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${Co}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${Co}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.parenR),e=!0}return!0}}class So extends ye{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(s.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class No extends ye{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return!!this.tokens.matches2(s._catch,s.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0)}}class Ro extends ye{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(s.nullishCoalescing)){const e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(s._delete)){if(this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0}const e=this.tokens.currentToken().subscriptStartIndex;if(null!=e&&this.tokens.tokens[e].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==s._super){const t=this.nameManager.claimFreeName("_");let n;if(n=e>0&&this.tokens.matches1AtIndex(e-1,s._delete)&&this.isLastSubscriptInChain()?`${t} => delete ${t}`:`${t} => ${t}`,this.tokens.tokens[e].isAsyncOperation&&(n=`async ${n}`),this.tokens.matches2(s.questionDot,s.parenL)||this.tokens.matches2(s.questionDot,s.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${n}`);else if(this.tokens.matches2(s.questionDot,s.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}`);else if(this.tokens.matches1(s.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}.`);else if(this.tokens.matches1(s.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}.`);else if(this.tokens.matches1(s.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}[`);else{if(!this.tokens.matches1(s.parenL))throw new Error("Unexpected subscript operator in optional chain.");this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${n}(`)}return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return this.tokens.tokens[t-1].type===s._super;t--}}}class Lo extends ye{constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.options=s}process(){const e=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(s.name,s.dot,s.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(s.parenL),this.tokens.copyExpectedToken(s.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(s.braceR),this.tokens.copyExpectedToken(s.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,s.name,s.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===O.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,s._export,s._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const e=(this.options.filePath||"unknown").split("/"),t=e[e.length-1],n=t.lastIndexOf("."),s=-1===n?t:t.slice(0,n);return"index"===s&&e[e.length-2]?e[e.length-2]:s}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(s.parenL,s.braceL))return!1;const t=e+1,n=this.tokens.tokens[t].contextId;if(null==n)throw new Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){const t=this.tokens.tokens[e];if(t.type===s.braceR&&t.contextId===n){e++;break}if("displayName"===this.tokens.identifierNameAtIndex(e)&&this.tokens.tokens[e].identifierRole===O.ObjectKey&&t.contextId===n)return!1}if(e===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,s.parenR)||this.tokens.matches2AtIndex(e,s.comma,s.parenR)}}class jo extends ye{__init(){this.extractedDefaultExportName=null}constructor(e,t){super(),this.tokens=e,this.filePath=t,jo.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return"\n (function () {\n var enterModule = require('react-hot-loader').enterModule;\n enterModule && enterModule(module);\n })();".replace(/\s+/g," ").trim()}getSuffixCode(){const e=new Set;for(const n of this.tokens.tokens)!n.isType&&$(n)&&n.identifierRole!==O.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(n));const t=Array.from(e).map(e=>({variableName:e,uniqueLocalName:e}));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`\n;(function () {\n var reactHotLoader = require('react-hot-loader').default;\n var leaveModule = require('react-hot-loader').leaveModule;\n if (!reactHotLoader) {\n return;\n }\n${t.map(({variableName:e,uniqueLocalName:t})=>` reactHotLoader.register(${e}, "${t}", ${JSON.stringify(this.filePath||"")});`).join("\n")}\n leaveModule(module);\n})();`}process(){return!1}}const Do=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function Oo(e){if(0===e.length)return!1;if(!j[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!L[e.charCodeAt(t)])return!1;return!Do.has(e)}class Po extends ye{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(s._public)||this.tokens.matches1(s._protected)||this.tokens.matches1(s._private)||this.tokens.matches1(s._abstract)||this.tokens.matches1(s._readonly)||this.tokens.matches1(s._override)||this.tokens.matches1(s.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(s._enum)||this.tokens.matches2(s._const,s._enum)?(this.processEnum(),!0):!(!this.tokens.matches2(s._export,s._enum)&&!this.tokens.matches3(s._export,s._const,s._enum))&&(this.processEnum(!0),!0))}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(s._const)||this.tokens.matches1(s._enum);)this.tokens.removeToken();const t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(s.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(s.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(s.braceR);){const{nameStringCode:n,variableName:o}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(s.eq,s.string,s.comma)||this.tokens.matches3(s.eq,s.string,s.braceR)?this.processStringLiteralEnumMember(e,n,o):this.tokens.matches1(s.eq)?this.processExplicitValueEnumMember(e,n,o):this.processImplicitValueEnumMember(e,n,o,t),this.tokens.matches1(s.comma)&&this.tokens.removeToken(),t=null!=o?o:`${e}[${n}]`}}extractEnumKeyInfo(e){if(e.type===s.name){const t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:Oo(t)?t:null}}if(e.type===s.string){const t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:Oo(t)?t:null}}throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(e,t,n){null!=n?(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${n};`)):(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(e,t,n){const s=this.tokens.currentToken().rhsEndIndex;if(null==s)throw new Error("Expected rhsEndIndex on enum assign.");if(null!=n){for(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken();this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${n}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,n,s){let o=null!=s?`${s} + 1`:"0";null!=n&&(this.tokens.appendCode(`const ${n} = ${o}; `),o=n),this.tokens.appendCode(`${e}[${e}[${t}] = ${o}] = ${t};`)}}class qo{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,t,n,s){qo.prototype.__init.call(this),qo.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;const{tokenProcessor:o,importProcessor:r}=e;this.tokens=o,this.isImportsTransformEnabled=t.includes("imports"),this.isReactHotLoaderTransformEnabled=t.includes("react-hot-loader"),this.disableESTransforms=Boolean(s.disableESTransforms),s.disableESTransforms||(this.transformers.push(new Ro(o,this.nameManager)),this.transformers.push(new So(o)),this.transformers.push(new No(o,this.nameManager))),t.includes("jsx")&&("preserve"!==s.jsxRuntime&&this.transformers.push(new Te(this,o,r,this.nameManager,s)),this.transformers.push(new Lo(this,o,r,s)));let i=null;if(t.includes("react-hot-loader")){if(!s.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");i=new jo(o,s.filePath),this.transformers.push(i)}if(t.includes("imports")){if(null===r)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new Io(this,o,r,this.nameManager,this.helperManager,i,n,Boolean(s.enableLegacyTypeScriptModuleInterop),t.includes("typescript"),t.includes("flow"),Boolean(s.preserveDynamicImport),Boolean(s.keepUnusedImports)))}else this.transformers.push(new vo(o,this.nameManager,this.helperManager,i,t.includes("typescript"),t.includes("flow"),Boolean(s.keepUnusedImports),s));t.includes("flow")&&this.transformers.push(new wo(this,o,t.includes("imports"))),t.includes("typescript")&&this.transformers.push(new Po(this,o,t.includes("imports"))),t.includes("jest")&&this.transformers.push(new Eo(this,o,this.nameManager,r))}transform(){this.tokens.reset(),this.processBalancedCode();let e=this.isImportsTransformEnabled?'"use strict";':"";for(const o of this.transformers)e+=o.getPrefixCode();e+=this.helperManager.emitHelpers(),e+=this.generatedVariables.map(e=>` var ${e};`).join("");for(const o of this.transformers)e+=o.getHoistedCode();let t="";for(const o of this.transformers)t+=o.getSuffixCode();const n=this.tokens.finish();let{code:s}=n;if(s.startsWith("#!")){let o=s.indexOf("\n");return-1===o&&(o=s.length,s+="\n"),{code:s.slice(0,o+1)+e+s.slice(o+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}return{code:e+s+t,mappings:this.shiftMappings(n.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(s.braceL)||this.tokens.matches1(s.dollarBraceL))e++;else if(this.tokens.matches1(s.braceR)){if(0===e)return;e--}if(this.tokens.matches1(s.parenL))t++;else if(this.tokens.matches1(s.parenR)){if(0===t)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(s._class))this.processClass();else{for(const e of this.transformers){if(e.process())return}this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(s._class,s.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=po(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));const o=this.tokens.currentToken().contextId;if(null==o)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(s._class);!this.tokens.matchesContextIdAndLabel(s.braceL,o);)this.processToken();this.processClassBody(e,n);const r=e.staticInitializerNames.map(e=>`${n}.${e}()`);t?this.tokens.appendCode(`, ${r.map(e=>`${e}, `).join("")}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${r.map(e=>`${e};`).join(" ")}`)}processClassBody(e,t){const{headerInfo:n,constructorInsertPos:o,constructorInitializerStatements:r,fields:i,instanceInitializerNames:a,rangesToRemove:c}=e;let h=0,l=0;const p=this.tokens.currentToken().contextId;if(null==p)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(s.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const u=r.length+a.length>0;if(null===o&&u){const e=this.makeConstructorInitCode(r,a,t);if(n.hasSuperclass){const t=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(s.braceR,p);)if(h<i.length&&this.tokens.currentIndex()===i[h].start){let e=!1;for(this.tokens.matches1(s.bracketL)?this.tokens.copyTokenWithPrefix(`${i[h].initializerName}() {this`):this.tokens.matches1(s.string)||this.tokens.matches1(s.num)?(this.tokens.copyTokenWithPrefix(`${i[h].initializerName}() {this[`),e=!0):this.tokens.copyTokenWithPrefix(`${i[h].initializerName}() {this.`);this.tokens.currentIndex()<i[h].end;)e&&this.tokens.currentIndex()===i[h].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),h++}else if(l<c.length&&this.tokens.currentIndex()>=c[l].start){for(this.tokens.currentIndex()<c[l].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<c[l].end;)this.tokens.removeToken();l++}else this.tokens.currentIndex()===o?(this.tokens.copyToken(),u&&this.tokens.appendCode(`;${this.makeConstructorInitCode(r,a,t)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(s.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map(e=>`${n}.prototype.${e}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(s.parenR,s.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,s.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(n._async)&&!this.tokens.matches1(s._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==s.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,s.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let n=0;n<e.length;n++){const s=e[n];void 0!==s&&(e[n]=s+t)}return e}}var Fo,$o={};function Mo(e,t,n){t++,e.matches1AtIndex(t,s.parenL)||(e.matches1AtIndex(t,s.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,s.comma)&&t++),e.matches1AtIndex(t,s.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,s.braceL)&&function(e,t,n){for(;;){if(e.matches1AtIndex(t,s.braceR))return;const o=me(e,t);if(t=o.endIndex,o.isType||n.add(o.rightName),e.matches2AtIndex(t,s.comma,s.braceR))return;if(e.matches1AtIndex(t,s.braceR))return;if(!e.matches1AtIndex(t,s.comma))throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`);t++}}(e,++t,n))}function Bo(e,t){!function(e){Qe.strictCheck(e)}(t);try{const n=function(e,t){const n=t.transforms.includes("jsx"),o=t.transforms.includes("typescript"),r=t.transforms.includes("flow"),i=!0===t.disableESTransforms,a=ho(e,n,o,r),c=a.tokens,h=a.scopes,l=new Me(e,c),p=new qe(l),u=new lo(e,c,r,i,p),f=Boolean(t.enableLegacyTypeScriptModuleInterop);let d=null;t.transforms.includes("imports")?(d=new Ee(l,u,f,t,t.transforms.includes("typescript"),Boolean(t.keepUnusedImports),p),d.preprocessTokens(),Fe(u,h,d.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&d.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&Fe(u,h,function(e){const t=new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,s._import)&&!e.matches3AtIndex(n,s._import,s.name,s.eq)&&Mo(e,n,t);return t}(u));return{tokenProcessor:u,scopes:h,nameManager:l,importProcessor:d,helperManager:p}}(e,t),o=new qo(n,t.transforms,Boolean(t.enableLegacyBabel5ModuleInterop),t).transform();let r={code:o.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");r={...r,sourceMap:Oe(o,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return r}catch(n){throw t.filePath&&(n.message=`Error transforming ${t.filePath}: ${n.message}`),n}}Fo||(Fo=1,function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var t="\n",n=function(){function e(e){this.string=e;for(var n=[0],s=0;s<e.length;)switch(e[s]){case t:s+=1,n.push(s);break;case"\r":e[s+=1]===t&&(s+=1),n.push(s);break;default:s++}this.offsets=n}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();e.LinesAndColumns=n,e.default=n}($o));export{Bo as t};
|