@nocobase/app 2.0.0-alpha.4 → 2.0.0-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/113.736e29a0.async.js +7 -0
- package/dist/client/1145.0351040a.async.js +3 -0
- package/dist/client/1161.0b3b5766.async.js +40 -0
- package/dist/client/1442.be509f94.async.js +5 -0
- package/dist/client/1595.6a6087c3.async.js +44 -0
- package/dist/client/1758.eeeacf43.async.js +5 -0
- package/dist/client/1883.6ee256ab.async.js +17 -0
- package/dist/client/1905.ff0793ff.async.js +12 -0
- package/dist/client/2042.feb4b9ac.async.js +10 -0
- package/dist/client/2097.bb2e7097.async.js +14 -0
- package/dist/client/{2190.90c718a9.async.js → 2190.4f5395e5.async.js} +1 -1
- package/dist/client/2380.900b7a22.async.js +15 -0
- package/dist/client/2612.0865e67e.async.js +19 -0
- package/dist/client/2775.455c3402.async.js +47 -0
- package/dist/client/2936.902710e4.async.js +28 -0
- package/dist/client/3357.be95167c.async.js +28 -0
- package/dist/client/341.fba65e23.async.js +28 -0
- package/dist/client/3451.a9466e73.async.js +24 -0
- package/dist/client/4327.68c0f17b.async.js +16 -0
- package/dist/client/4351.efe05af2.async.js +15 -0
- package/dist/client/4356.feef0eca.async.js +18 -0
- package/dist/client/4666.fb83d11a.async.js +9 -0
- package/dist/client/4727.0f6df8fb.async.js +1 -0
- package/dist/client/4750.b552d2df.async.js +31 -0
- package/dist/client/4926.58238954.async.js +17 -0
- package/dist/client/5013.b14730ba.async.js +3 -0
- package/dist/client/5501.22d50b3a.async.js +23 -0
- package/dist/client/5505.a71c2922.async.js +2 -0
- package/dist/client/5662.8c643e63.async.js +26 -0
- package/dist/client/5882.abae55ef.async.js +50 -0
- package/dist/client/5950.179a885e.async.js +4 -0
- package/dist/client/6021.cdefa0d3.async.js +22 -0
- package/dist/client/645.c19a1f59.async.js +55 -0
- package/dist/client/6474.49632e37.async.js +21 -0
- package/dist/client/6534.6ea6468b.async.js +33 -0
- package/dist/client/6747.de538558.async.js +22 -0
- package/dist/client/689.4de33d65.async.js +3 -0
- package/dist/client/6920.497d7e80.async.js +59 -0
- package/dist/client/6939.d7d780b7.async.js +17 -0
- package/dist/client/6996.ae27c9d6.async.js +9 -0
- package/dist/client/703.f2104ec4.async.js +17 -0
- package/dist/client/7087.5646e199.async.js +6 -0
- package/dist/client/7483.546ddcb6.async.js +23 -0
- package/dist/client/7534.0d69e071.async.js +34 -0
- package/dist/client/8183.4c6f7e21.async.js +12 -0
- package/dist/client/8408.c0ef773c.async.js +84 -0
- package/dist/client/8805.819c4f44.async.js +20 -0
- package/dist/client/9017.4ae5c322.async.js +6 -0
- package/dist/client/9042.3d21f631.async.js +45 -0
- package/dist/client/908.0e8c8a54.async.js +14 -0
- package/dist/client/9317.fe6ffa9a.async.js +13 -0
- package/dist/client/935.97d45ffa.async.js +27 -0
- package/dist/client/95.24aa76c4.async.js +6 -0
- package/dist/client/9547.a442df93.async.js +25 -0
- package/dist/client/9801.34b13a74.async.js +9 -0
- package/dist/client/9844.6f484975.async.js +37 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/npm._at_jridgewell.72fd4dd4.async.js +1 -0
- package/dist/client/{npm._at_umijs.47085d01.async.js → npm._at_umijs.f64c1387.async.js} +1 -1
- package/dist/client/npm.acorn.59eb4103.async.js +11 -0
- package/dist/client/npm.antd-mobile.55661292.async.js +2 -0
- package/dist/client/npm.babel-runtime.eed49798.async.js +1 -0
- package/dist/client/{npm.highlight.js.c1f693ec.async.js → npm.highlight.js.5db864c8.async.js} +2 -2
- package/dist/client/{npm.htmlparser2.a2f8d64d.async.js → npm.htmlparser2.ee1fb042.async.js} +1 -1
- package/dist/client/npm.liquidjs.7be2e0df.async.js +13 -0
- package/dist/client/npm.sucrase.1cb664e8.async.js +135 -0
- package/dist/client/{npm.unknown.1838c8f4.chunk.css → npm.unknown.d9b587d9.chunk.css} +26 -1
- package/dist/client/npm.vditor.eb5da290.async.js +233 -0
- package/dist/client/p__index.88104805.async.js +2411 -0
- package/dist/client/{umi.202472df.js → umi.29f402d6.js} +17 -17
- package/lib/config/telemetry.js +1 -0
- package/package.json +6 -6
- package/src/config/telemetry.ts +1 -0
- package/dist/client/1145.4029b0be.async.js +0 -3
- package/dist/client/1617.dd671a87.async.js +0 -6
- package/dist/client/1833.82373d30.async.js +0 -6
- package/dist/client/2134.1d86e440.async.js +0 -5
- package/dist/client/2498.be8b1194.async.js +0 -7
- package/dist/client/260.5b02a0a5.async.js +0 -4
- package/dist/client/2953.2e77d77c.async.js +0 -24
- package/dist/client/3170.6147bd19.async.js +0 -24
- package/dist/client/3255.e6303833.async.js +0 -10
- package/dist/client/3520.81fd6362.async.js +0 -24
- package/dist/client/3522.674f2264.async.js +0 -4
- package/dist/client/4088.0568ef31.async.js +0 -5
- package/dist/client/4205.c3eac46d.async.js +0 -9
- package/dist/client/4644.ae01f8a6.async.js +0 -4
- package/dist/client/4666.d20ff352.async.js +0 -8
- package/dist/client/4840.477401f9.async.js +0 -8
- package/dist/client/5068.72e9d750.async.js +0 -5
- package/dist/client/5087.468f5500.async.js +0 -6
- package/dist/client/5950.b83f8586.async.js +0 -4
- package/dist/client/6416.361c93ff.async.js +0 -4
- package/dist/client/6472.ac05f778.async.js +0 -7
- package/dist/client/6779.47fc1971.async.js +0 -10
- package/dist/client/6816.1ff200ac.async.js +0 -5
- package/dist/client/6996.836a3f7f.async.js +0 -8
- package/dist/client/7463.70ca58ce.async.js +0 -20
- package/dist/client/7482.3924bcd9.async.js +0 -1
- package/dist/client/7522.1f91be5c.async.js +0 -23
- package/dist/client/7596.232a7185.async.js +0 -10
- package/dist/client/7688.85d6d7bb.async.js +0 -4
- package/dist/client/8106.829fd6b5.async.js +0 -10
- package/dist/client/8541.e3110aaa.async.js +0 -8
- package/dist/client/9017.28eacc5a.async.js +0 -6
- package/dist/client/937.a55819ab.async.js +0 -5
- package/dist/client/9462.a7773548.async.js +0 -35
- package/dist/client/9489.25ca39a9.async.js +0 -7
- package/dist/client/9663.c04b2ad1.async.js +0 -5
- package/dist/client/9729.0d7a5c47.async.js +0 -8
- package/dist/client/9848.18f8d3db.async.js +0 -4
- package/dist/client/npm._at_babel.94b2dd75.async.js +0 -3
- package/dist/client/npm.acorn.1f389fab.async.js +0 -6
- package/dist/client/npm.antd-mobile.1a8a8320.async.js +0 -2
- package/dist/client/npm.async-validator.32d9020f.async.js +0 -12
- package/dist/client/p__index.390271c5.async.js +0 -2316
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[4326],{75572:function(cl,Ds,ze){ze.r(Ds),ze.d(Ds,{getFormattedTokens:function(){return Wc},getVersion:function(){return Vc},transform:function(){return Uc}});var c;(function(t){t[t.NONE=0]="NONE";const n=0+1;t[t._abstract=n]="_abstract";const o=n+1;t[t._accessor=o]="_accessor";const a=o+1;t[t._as=a]="_as";const l=a+1;t[t._assert=l]="_assert";const m=l+1;t[t._asserts=m]="_asserts";const k=m+1;t[t._async=k]="_async";const b=k+1;t[t._await=b]="_await";const I=b+1;t[t._checks=I]="_checks";const E=I+1;t[t._constructor=E]="_constructor";const P=E+1;t[t._declare=P]="_declare";const _=P+1;t[t._enum=_]="_enum";const w=_+1;t[t._exports=w]="_exports";const j=w+1;t[t._from=j]="_from";const H=j+1;t[t._get=H]="_get";const ee=H+1;t[t._global=ee]="_global";const oe=ee+1;t[t._implements=oe]="_implements";const fe=oe+1;t[t._infer=fe]="_infer";const ae=fe+1;t[t._interface=ae]="_interface";const Q=ae+1;t[t._is=Q]="_is";const Ne=Q+1;t[t._keyof=Ne]="_keyof";const Pe=Ne+1;t[t._mixins=Pe]="_mixins";const Re=Pe+1;t[t._module=Re]="_module";const Ce=Re+1;t[t._namespace=Ce]="_namespace";const ve=Ce+1;t[t._of=ve]="_of";const De=ve+1;t[t._opaque=De]="_opaque";const Le=De+1;t[t._out=Le]="_out";const Fe=Le+1;t[t._override=Fe]="_override";const Oe=Fe+1;t[t._private=Oe]="_private";const je=Oe+1;t[t._protected=je]="_protected";const qe=je+1;t[t._proto=qe]="_proto";const Be=qe+1;t[t._public=Be]="_public";const Me=Be+1;t[t._readonly=Me]="_readonly";const $e=Me+1;t[t._require=$e]="_require";const He=$e+1;t[t._satisfies=He]="_satisfies";const Ve=He+1;t[t._set=Ve]="_set";const Ue=Ve+1;t[t._static=Ue]="_static";const We=Ue+1;t[t._symbol=We]="_symbol";const Ge=We+1;t[t._type=Ge]="_type";const Xe=Ge+1;t[t._unique=Xe]="_unique";const ht=Xe+1;t[t._using=ht]="_using"})(c||(c={}));var e;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const o=32;t[t.IS_ASSIGN=o]="IS_ASSIGN";const a=64;t[t.IS_RIGHT_ASSOCIATIVE=a]="IS_RIGHT_ASSOCIATIVE";const l=128;t[t.IS_PREFIX=l]="IS_PREFIX";const m=256;t[t.IS_POSTFIX=m]="IS_POSTFIX";const k=512;t[t.IS_EXPRESSION_START=k]="IS_EXPRESSION_START";const b=512;t[t.num=b]="num";const I=1536;t[t.bigint=I]="bigint";const E=2560;t[t.decimal=E]="decimal";const P=3584;t[t.regexp=P]="regexp";const _=4608;t[t.string=_]="string";const w=5632;t[t.name=w]="name";const j=6144;t[t.eof=j]="eof";const H=7680;t[t.bracketL=H]="bracketL";const ee=8192;t[t.bracketR=ee]="bracketR";const oe=9728;t[t.braceL=oe]="braceL";const fe=10752;t[t.braceBarL=fe]="braceBarL";const ae=11264;t[t.braceR=ae]="braceR";const Q=12288;t[t.braceBarR=Q]="braceBarR";const Ne=13824;t[t.parenL=Ne]="parenL";const Pe=14336;t[t.parenR=Pe]="parenR";const Re=15360;t[t.comma=Re]="comma";const Ce=16384;t[t.semi=Ce]="semi";const ve=17408;t[t.colon=ve]="colon";const De=18432;t[t.doubleColon=De]="doubleColon";const Le=19456;t[t.dot=Le]="dot";const Fe=20480;t[t.question=Fe]="question";const Oe=21504;t[t.questionDot=Oe]="questionDot";const je=22528;t[t.arrow=je]="arrow";const qe=23552;t[t.template=qe]="template";const Be=24576;t[t.ellipsis=Be]="ellipsis";const Me=25600;t[t.backQuote=Me]="backQuote";const $e=27136;t[t.dollarBraceL=$e]="dollarBraceL";const He=27648;t[t.at=He]="at";const Ve=29184;t[t.hash=Ve]="hash";const Ue=29728;t[t.eq=Ue]="eq";const We=30752;t[t.assign=We]="assign";const Ge=32640;t[t.preIncDec=Ge]="preIncDec";const Xe=33664;t[t.postIncDec=Xe]="postIncDec";const ht=34432;t[t.bang=ht]="bang";const T1=35456;t[t.tilde=T1]="tilde";const A1=35841;t[t.pipeline=A1]="pipeline";const S1=36866;t[t.nullishCoalescing=S1]="nullishCoalescing";const E1=37890;t[t.logicalOR=E1]="logicalOR";const N1=38915;t[t.logicalAND=N1]="logicalAND";const P1=39940;t[t.bitwiseOR=P1]="bitwiseOR";const R1=40965;t[t.bitwiseXOR=R1]="bitwiseXOR";const C1=41990;t[t.bitwiseAND=C1]="bitwiseAND";const v1=43015;t[t.equality=v1]="equality";const D1=44040;t[t.lessThan=D1]="lessThan";const L1=45064;t[t.greaterThan=L1]="greaterThan";const F1=46088;t[t.relationalOrEqual=F1]="relationalOrEqual";const O1=47113;t[t.bitShiftL=O1]="bitShiftL";const j1=48137;t[t.bitShiftR=j1]="bitShiftR";const q1=49802;t[t.plus=q1]="plus";const B1=50826;t[t.minus=B1]="minus";const M1=51723;t[t.modulo=M1]="modulo";const $1=52235;t[t.star=$1]="star";const H1=53259;t[t.slash=H1]="slash";const V1=54348;t[t.exponent=V1]="exponent";const U1=55296;t[t.jsxName=U1]="jsxName";const W1=56320;t[t.jsxText=W1]="jsxText";const G1=57344;t[t.jsxEmptyText=G1]="jsxEmptyText";const X1=58880;t[t.jsxTagStart=X1]="jsxTagStart";const z1=59392;t[t.jsxTagEnd=z1]="jsxTagEnd";const Q1=60928;t[t.typeParameterStart=Q1]="typeParameterStart";const Y1=61440;t[t.nonNullAssertion=Y1]="nonNullAssertion";const J1=62480;t[t._break=J1]="_break";const Z1=63504;t[t._case=Z1]="_case";const K1=64528;t[t._catch=K1]="_catch";const es=65552;t[t._continue=es]="_continue";const ts=66576;t[t._debugger=ts]="_debugger";const ss=67600;t[t._default=ss]="_default";const ns=68624;t[t._do=ns]="_do";const rs=69648;t[t._else=rs]="_else";const os=70672;t[t._finally=os]="_finally";const is=71696;t[t._for=is]="_for";const as=73232;t[t._function=as]="_function";const cs=73744;t[t._if=cs]="_if";const ls=74768;t[t._return=ls]="_return";const us=75792;t[t._switch=us]="_switch";const ps=77456;t[t._throw=ps]="_throw";const hs=77840;t[t._try=hs]="_try";const fs=78864;t[t._var=fs]="_var";const ms=79888;t[t._let=ms]="_let";const ds=80912;t[t._const=ds]="_const";const ks=81936;t[t._while=ks]="_while";const _s=82960;t[t._with=_s]="_with";const gs=84496;t[t._new=gs]="_new";const xs=85520;t[t._this=xs]="_this";const Is=86544;t[t._super=Is]="_super";const bs=87568;t[t._class=bs]="_class";const ys=88080;t[t._extends=ys]="_extends";const ws=89104;t[t._export=ws]="_export";const Ts=90640;t[t._import=Ts]="_import";const As=91664;t[t._yield=As]="_yield";const Ss=92688;t[t._null=Ss]="_null";const Es=93712;t[t._true=Es]="_true";const Ns=94736;t[t._false=Ns]="_false";const Ps=95256;t[t._in=Ps]="_in";const Rs=96280;t[t._instanceof=Rs]="_instanceof";const Cs=97936;t[t._typeof=Cs]="_typeof";const vs=98960;t[t._void=vs]="_void";const Gc=99984;t[t._delete=Gc]="_delete";const Xc=100880;t[t._async=Xc]="_async";const zc=101904;t[t._get=zc]="_get";const Qc=102928;t[t._set=Qc]="_set";const Yc=103952;t[t._declare=Yc]="_declare";const Jc=104976;t[t._readonly=Jc]="_readonly";const Zc=106e3;t[t._abstract=Zc]="_abstract";const Kc=107024;t[t._static=Kc]="_static";const el=107536;t[t._public=el]="_public";const tl=108560;t[t._private=tl]="_private";const sl=109584;t[t._protected=sl]="_protected";const nl=110608;t[t._override=nl]="_override";const rl=112144;t[t._as=rl]="_as";const ol=113168;t[t._enum=ol]="_enum";const il=114192;t[t._type=il]="_type";const al=115216;t[t._implements=al]="_implements"})(e||(e={}));function Ls(t){switch(t){case e.num:return"num";case e.bigint:return"bigint";case e.decimal:return"decimal";case e.regexp:return"regexp";case e.string:return"string";case e.name:return"name";case e.eof:return"eof";case e.bracketL:return"[";case e.bracketR:return"]";case e.braceL:return"{";case e.braceBarL:return"{|";case e.braceR:return"}";case e.braceBarR:return"|}";case e.parenL:return"(";case e.parenR:return")";case e.comma:return",";case e.semi:return";";case e.colon:return":";case e.doubleColon:return"::";case e.dot:return".";case e.question:return"?";case e.questionDot:return"?.";case e.arrow:return"=>";case e.template:return"template";case e.ellipsis:return"...";case e.backQuote:return"`";case e.dollarBraceL:return"${";case e.at:return"@";case e.hash:return"#";case e.eq:return"=";case e.assign:return"_=";case e.preIncDec:return"++/--";case e.postIncDec:return"++/--";case e.bang:return"!";case e.tilde:return"~";case e.pipeline:return"|>";case e.nullishCoalescing:return"??";case e.logicalOR:return"||";case e.logicalAND:return"&&";case e.bitwiseOR:return"|";case e.bitwiseXOR:return"^";case e.bitwiseAND:return"&";case e.equality:return"==/!=";case e.lessThan:return"<";case e.greaterThan:return">";case e.relationalOrEqual:return"<=/>=";case e.bitShiftL:return"<<";case e.bitShiftR:return">>/>>>";case e.plus:return"+";case e.minus:return"-";case e.modulo:return"%";case e.star:return"*";case e.slash:return"/";case e.exponent:return"**";case e.jsxName:return"jsxName";case e.jsxText:return"jsxText";case e.jsxEmptyText:return"jsxEmptyText";case e.jsxTagStart:return"jsxTagStart";case e.jsxTagEnd:return"jsxTagEnd";case e.typeParameterStart:return"typeParameterStart";case e.nonNullAssertion:return"nonNullAssertion";case e._break:return"break";case e._case:return"case";case e._catch:return"catch";case e._continue:return"continue";case e._debugger:return"debugger";case e._default:return"default";case e._do:return"do";case e._else:return"else";case e._finally:return"finally";case e._for:return"for";case e._function:return"function";case e._if:return"if";case e._return:return"return";case e._switch:return"switch";case e._throw:return"throw";case e._try:return"try";case e._var:return"var";case e._let:return"let";case e._const:return"const";case e._while:return"while";case e._with:return"with";case e._new:return"new";case e._this:return"this";case e._super:return"super";case e._class:return"class";case e._extends:return"extends";case e._export:return"export";case e._import:return"import";case e._yield:return"yield";case e._null:return"null";case e._true:return"true";case e._false:return"false";case e._in:return"in";case e._instanceof:return"instanceof";case e._typeof:return"typeof";case e._void:return"void";case e._delete:return"delete";case e._async:return"async";case e._get:return"get";case e._set:return"set";case e._declare:return"declare";case e._readonly:return"readonly";case e._abstract:return"abstract";case e._static:return"static";case e._public:return"public";case e._private:return"private";case e._protected:return"protected";case e._override:return"override";case e._as:return"as";case e._enum:return"enum";case e._type:return"type";case e._implements:return"implements";default:return""}}class te{constructor(s,n,o){this.startTokenIndex=s,this.endTokenIndex=n,this.isFunctionScope=o}}class pr{constructor(s,n,o,a,l,m,k,b,I,E,P,_,w){this.potentialArrowAt=s,this.noAnonFunctionType=n,this.inDisallowConditionalTypesContext=o,this.tokensLength=a,this.scopesLength=l,this.pos=m,this.type=k,this.contextualKeyword=b,this.start=I,this.end=E,this.isType=P,this.scopeDepth=_,this.error=w}}class V{constructor(){V.prototype.__init.call(this),V.prototype.__init2.call(this),V.prototype.__init3.call(this),V.prototype.__init4.call(this),V.prototype.__init5.call(this),V.prototype.__init6.call(this),V.prototype.__init7.call(this),V.prototype.__init8.call(this),V.prototype.__init9.call(this),V.prototype.__init10.call(this),V.prototype.__init11.call(this),V.prototype.__init12.call(this),V.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=e.eof}__init8(){this.contextualKeyword=c.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new pr(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(s){this.potentialArrowAt=s.potentialArrowAt,this.noAnonFunctionType=s.noAnonFunctionType,this.inDisallowConditionalTypesContext=s.inDisallowConditionalTypesContext,this.tokens.length=s.tokensLength,this.scopes.length=s.scopesLength,this.pos=s.pos,this.type=s.type,this.contextualKeyword=s.contextualKeyword,this.start=s.start,this.end=s.end,this.isType=s.isType,this.scopeDepth=s.scopeDepth,this.error=s.error}}var u;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const o=9;t[t.tab=o]="tab";const a=13;t[t.carriageReturn=a]="carriageReturn";const l=14;t[t.shiftOut=l]="shiftOut";const m=32;t[t.space=m]="space";const k=33;t[t.exclamationMark=k]="exclamationMark";const b=34;t[t.quotationMark=b]="quotationMark";const I=35;t[t.numberSign=I]="numberSign";const E=36;t[t.dollarSign=E]="dollarSign";const P=37;t[t.percentSign=P]="percentSign";const _=38;t[t.ampersand=_]="ampersand";const w=39;t[t.apostrophe=w]="apostrophe";const j=40;t[t.leftParenthesis=j]="leftParenthesis";const H=41;t[t.rightParenthesis=H]="rightParenthesis";const ee=42;t[t.asterisk=ee]="asterisk";const oe=43;t[t.plusSign=oe]="plusSign";const fe=44;t[t.comma=fe]="comma";const ae=45;t[t.dash=ae]="dash";const Q=46;t[t.dot=Q]="dot";const Ne=47;t[t.slash=Ne]="slash";const Pe=48;t[t.digit0=Pe]="digit0";const Re=49;t[t.digit1=Re]="digit1";const Ce=50;t[t.digit2=Ce]="digit2";const ve=51;t[t.digit3=ve]="digit3";const De=52;t[t.digit4=De]="digit4";const Le=53;t[t.digit5=Le]="digit5";const Fe=54;t[t.digit6=Fe]="digit6";const Oe=55;t[t.digit7=Oe]="digit7";const je=56;t[t.digit8=je]="digit8";const qe=57;t[t.digit9=qe]="digit9";const Be=58;t[t.colon=Be]="colon";const Me=59;t[t.semicolon=Me]="semicolon";const $e=60;t[t.lessThan=$e]="lessThan";const He=61;t[t.equalsTo=He]="equalsTo";const Ve=62;t[t.greaterThan=Ve]="greaterThan";const Ue=63;t[t.questionMark=Ue]="questionMark";const We=64;t[t.atSign=We]="atSign";const Ge=65;t[t.uppercaseA=Ge]="uppercaseA";const Xe=66;t[t.uppercaseB=Xe]="uppercaseB";const ht=67;t[t.uppercaseC=ht]="uppercaseC";const T1=68;t[t.uppercaseD=T1]="uppercaseD";const A1=69;t[t.uppercaseE=A1]="uppercaseE";const S1=70;t[t.uppercaseF=S1]="uppercaseF";const E1=71;t[t.uppercaseG=E1]="uppercaseG";const N1=72;t[t.uppercaseH=N1]="uppercaseH";const P1=73;t[t.uppercaseI=P1]="uppercaseI";const R1=74;t[t.uppercaseJ=R1]="uppercaseJ";const C1=75;t[t.uppercaseK=C1]="uppercaseK";const v1=76;t[t.uppercaseL=v1]="uppercaseL";const D1=77;t[t.uppercaseM=D1]="uppercaseM";const L1=78;t[t.uppercaseN=L1]="uppercaseN";const F1=79;t[t.uppercaseO=F1]="uppercaseO";const O1=80;t[t.uppercaseP=O1]="uppercaseP";const j1=81;t[t.uppercaseQ=j1]="uppercaseQ";const q1=82;t[t.uppercaseR=q1]="uppercaseR";const B1=83;t[t.uppercaseS=B1]="uppercaseS";const M1=84;t[t.uppercaseT=M1]="uppercaseT";const $1=85;t[t.uppercaseU=$1]="uppercaseU";const H1=86;t[t.uppercaseV=H1]="uppercaseV";const V1=87;t[t.uppercaseW=V1]="uppercaseW";const U1=88;t[t.uppercaseX=U1]="uppercaseX";const W1=89;t[t.uppercaseY=W1]="uppercaseY";const G1=90;t[t.uppercaseZ=G1]="uppercaseZ";const X1=91;t[t.leftSquareBracket=X1]="leftSquareBracket";const z1=92;t[t.backslash=z1]="backslash";const Q1=93;t[t.rightSquareBracket=Q1]="rightSquareBracket";const Y1=94;t[t.caret=Y1]="caret";const J1=95;t[t.underscore=J1]="underscore";const Z1=96;t[t.graveAccent=Z1]="graveAccent";const K1=97;t[t.lowercaseA=K1]="lowercaseA";const es=98;t[t.lowercaseB=es]="lowercaseB";const ts=99;t[t.lowercaseC=ts]="lowercaseC";const ss=100;t[t.lowercaseD=ss]="lowercaseD";const ns=101;t[t.lowercaseE=ns]="lowercaseE";const rs=102;t[t.lowercaseF=rs]="lowercaseF";const os=103;t[t.lowercaseG=os]="lowercaseG";const is=104;t[t.lowercaseH=is]="lowercaseH";const as=105;t[t.lowercaseI=as]="lowercaseI";const cs=106;t[t.lowercaseJ=cs]="lowercaseJ";const ls=107;t[t.lowercaseK=ls]="lowercaseK";const us=108;t[t.lowercaseL=us]="lowercaseL";const ps=109;t[t.lowercaseM=ps]="lowercaseM";const hs=110;t[t.lowercaseN=hs]="lowercaseN";const fs=111;t[t.lowercaseO=fs]="lowercaseO";const ms=112;t[t.lowercaseP=ms]="lowercaseP";const ds=113;t[t.lowercaseQ=ds]="lowercaseQ";const ks=114;t[t.lowercaseR=ks]="lowercaseR";const _s=115;t[t.lowercaseS=_s]="lowercaseS";const gs=116;t[t.lowercaseT=gs]="lowercaseT";const xs=117;t[t.lowercaseU=xs]="lowercaseU";const Is=118;t[t.lowercaseV=Is]="lowercaseV";const bs=119;t[t.lowercaseW=bs]="lowercaseW";const ys=120;t[t.lowercaseX=ys]="lowercaseX";const ws=121;t[t.lowercaseY=ws]="lowercaseY";const Ts=122;t[t.lowercaseZ=Ts]="lowercaseZ";const As=123;t[t.leftCurlyBrace=As]="leftCurlyBrace";const Ss=124;t[t.verticalBar=Ss]="verticalBar";const Es=125;t[t.rightCurlyBrace=Es]="rightCurlyBrace";const Ns=126;t[t.tilde=Ns]="tilde";const Ps=160;t[t.nonBreakingSpace=Ps]="nonBreakingSpace";const Rs=5760;t[t.oghamSpaceMark=Rs]="oghamSpaceMark";const Cs=8232;t[t.lineSeparator=Cs]="lineSeparator";const vs=8233;t[t.paragraphSeparator=vs]="paragraphSeparator"})(u||(u={}));function ll(t){return t>=u.digit0&&t<=u.digit9||t>=u.lowercaseA&&t<=u.lowercaseF||t>=u.uppercaseA&&t<=u.uppercaseF}let ft,R,C,r,d,Fs;function Qe(){return Fs++}function hr(t){if("pos"in t){const s=mr(t.pos);t.message+=` (${s.line}:${s.column})`,t.loc=s}return t}class fr{constructor(s,n){this.line=s,this.column=n}}function mr(t){let s=1,n=1;for(let o=0;o<t;o++)d.charCodeAt(o)===u.lineFeed?(s++,n=1):n++;return new fr(s,n)}function dr(t,s,n,o){d=t,r=new V,Fs=1,ft=s,R=n,C=o}function g(t){return r.contextualKeyword===t}function Ot(t){const s=Je();return s.type===e.name&&s.contextualKeyword===t}function B(t){return r.contextualKeyword===t&&p(e.name)}function q(t){B(t)||T()}function G(){return i(e.eof)||i(e.braceR)||U()}function U(){const t=r.tokens[r.tokens.length-1],s=t?t.end:0;for(let n=s;n<r.start;n++){const o=d.charCodeAt(n);if(o===u.lineFeed||o===u.carriageReturn||o===8232||o===8233)return!0}return!1}function Os(){const t=jt();for(let s=r.end;s<t;s++){const n=d.charCodeAt(s);if(n===u.lineFeed||n===u.carriageReturn||n===8232||n===8233)return!0}return!1}function se(){return p(e.semi)||G()}function L(){se()||T('Unexpected token, expected ";"')}function h(t){p(t)||T(`Unexpected token, expected "${Ls(t)}"`)}function T(t="Unexpected token",s=r.start){if(r.error)return;const n=new SyntaxError(t);n.pos=s,r.error=n,r.pos=d.length,A(e.eof)}const js=[9,11,12,u.space,u.nonBreakingSpace,u.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],qs=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Bs=new Uint8Array(65536);for(const t of js)Bs[t]=1;function kr(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const Y=new Uint8Array(65536);for(let t=0;t<128;t++)Y[t]=kr(t)?1:0;for(let t=128;t<65536;t++)Y[t]=1;for(const t of js)Y[t]=0;Y[8232]=0,Y[8233]=0;const Ye=Y.slice();for(let t=u.digit0;t<=u.digit9;t++)Ye[t]=0;const Ms=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,c._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,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,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]){r.pos=n,o&1?A(o>>>1):A(e.name,o>>>1);return}for(;n<d.length;){const a=d.charCodeAt(n);if(Y[a])n++;else if(a===u.backslash){if(n+=2,d.charCodeAt(n)===u.leftCurlyBrace){for(;n<d.length&&d.charCodeAt(n)!==u.rightCurlyBrace;)n++;n++}}else if(a===u.atSign&&d.charCodeAt(n+1)===u.atSign)n+=2;else break}r.pos=n,A(e.name)}var x;(function(t){t[t.Access=0]="Access";const n=0+1;t[t.ExportAccess=n]="ExportAccess";const o=n+1;t[t.TopLevelDeclaration=o]="TopLevelDeclaration";const a=o+1;t[t.FunctionScopedDeclaration=a]="FunctionScopedDeclaration";const l=a+1;t[t.BlockScopedDeclaration=l]="BlockScopedDeclaration";const m=l+1;t[t.ObjectShorthandTopLevelDeclaration=m]="ObjectShorthandTopLevelDeclaration";const k=m+1;t[t.ObjectShorthandFunctionScopedDeclaration=k]="ObjectShorthandFunctionScopedDeclaration";const b=k+1;t[t.ObjectShorthandBlockScopedDeclaration=b]="ObjectShorthandBlockScopedDeclaration";const I=b+1;t[t.ObjectShorthand=I]="ObjectShorthand";const E=I+1;t[t.ImportDeclaration=E]="ImportDeclaration";const P=E+1;t[t.ObjectKey=P]="ObjectKey";const _=P+1;t[t.ImportAccess=_]="ImportAccess"})(x||(x={}));var J;(function(t){t[t.NoChildren=0]="NoChildren";const n=0+1;t[t.OneChild=n]="OneChild";const o=n+1;t[t.StaticChildren=o]="StaticChildren";const a=o+1;t[t.KeyAfterPropSpread=a]="KeyAfterPropSpread"})(J||(J={}));function $s(t){const s=t.identifierRole;return s===x.TopLevelDeclaration||s===x.FunctionScopedDeclaration||s===x.BlockScopedDeclaration||s===x.ObjectShorthandTopLevelDeclaration||s===x.ObjectShorthandFunctionScopedDeclaration||s===x.ObjectShorthandBlockScopedDeclaration}function gr(t){const s=t.identifierRole;return s===x.FunctionScopedDeclaration||s===x.BlockScopedDeclaration||s===x.ObjectShorthandFunctionScopedDeclaration||s===x.ObjectShorthandBlockScopedDeclaration}function Hs(t){const s=t.identifierRole;return s===x.TopLevelDeclaration||s===x.ObjectShorthandTopLevelDeclaration||s===x.ImportDeclaration}function xr(t){const s=t.identifierRole;return s===x.TopLevelDeclaration||s===x.BlockScopedDeclaration||s===x.ObjectShorthandTopLevelDeclaration||s===x.ObjectShorthandBlockScopedDeclaration}function Ir(t){const s=t.identifierRole;return s===x.FunctionScopedDeclaration||s===x.ObjectShorthandFunctionScopedDeclaration}function br(t){return t.identifierRole===x.ObjectShorthandTopLevelDeclaration||t.identifierRole===x.ObjectShorthandBlockScopedDeclaration||t.identifierRole===x.ObjectShorthandFunctionScopedDeclaration}class mt{constructor(){this.type=r.type,this.contextualKeyword=r.contextualKeyword,this.start=r.start,this.end=r.end,this.scopeDepth=r.scopeDepth,this.isType=r.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 f(){r.tokens.push(new mt),Gs()}function ce(){r.tokens.push(new mt),r.start=r.pos,qr()}function yr(){r.type===e.assign&&--r.pos,Fr()}function N(t){for(let n=r.tokens.length-t;n<r.tokens.length;n++)r.tokens[n].isType=!0;const s=r.isType;return r.isType=!0,s}function S(t){r.isType=t}function p(t){return i(t)?(f(),!0):!1}function Vs(t){const s=r.isType;r.isType=!0,p(t),r.isType=s}function i(t){return r.type===t}function F(){const t=r.snapshot();f();const s=r.type;return r.restoreFromSnapshot(t),s}class wr{constructor(s,n){this.type=s,this.contextualKeyword=n}}function Je(){const t=r.snapshot();f();const s=r.type,n=r.contextualKeyword;return r.restoreFromSnapshot(t),new wr(s,n)}function jt(){return Us(r.pos)}function Us(t){qs.lastIndex=t;const s=qs.exec(d);return t+s[0].length}function Ws(){return d.charCodeAt(jt())}function Gs(){if(zs(),r.start=r.pos,r.pos>=d.length){const t=r.tokens;t.length>=2&&t[t.length-1].start>=d.length&&t[t.length-2].start>=d.length&&T("Unexpectedly reached the end of input."),A(e.eof);return}Tr(d.charCodeAt(r.pos))}function Tr(t){Ye[t]||t===u.backslash||t===u.atSign&&d.charCodeAt(r.pos+1)===u.atSign?_r():Js(t)}function Ar(){for(;d.charCodeAt(r.pos)!==u.asterisk||d.charCodeAt(r.pos+1)!==u.slash;)if(r.pos++,r.pos>d.length){T("Unterminated comment",r.pos-2);return}r.pos+=2}function Xs(t){let s=d.charCodeAt(r.pos+=t);if(r.pos<d.length)for(;s!==u.lineFeed&&s!==u.carriageReturn&&s!==u.lineSeparator&&s!==u.paragraphSeparator&&++r.pos<d.length;)s=d.charCodeAt(r.pos)}function zs(){for(;r.pos<d.length;){const t=d.charCodeAt(r.pos);switch(t){case u.carriageReturn:d.charCodeAt(r.pos+1)===u.lineFeed&&++r.pos;case u.lineFeed:case u.lineSeparator:case u.paragraphSeparator:++r.pos;break;case u.slash:switch(d.charCodeAt(r.pos+1)){case u.asterisk:r.pos+=2,Ar();break;case u.slash:Xs(2);break;default:return}break;default:if(Bs[t])++r.pos;else return}}}function A(t,s=c.NONE){r.end=r.pos,r.type=t,r.contextualKeyword=s}function Sr(){const t=d.charCodeAt(r.pos+1);if(t>=u.digit0&&t<=u.digit9){Zs(!0);return}t===u.dot&&d.charCodeAt(r.pos+2)===u.dot?(r.pos+=3,A(e.ellipsis)):(++r.pos,A(e.dot))}function Er(){d.charCodeAt(r.pos+1)===u.equalsTo?v(e.assign,2):v(e.slash,1)}function Nr(t){let s=t===u.asterisk?e.star:e.modulo,n=1,o=d.charCodeAt(r.pos+1);t===u.asterisk&&o===u.asterisk&&(n++,o=d.charCodeAt(r.pos+2),s=e.exponent),o===u.equalsTo&&d.charCodeAt(r.pos+2)!==u.greaterThan&&(n++,s=e.assign),v(s,n)}function Pr(t){const s=d.charCodeAt(r.pos+1);if(s===t){d.charCodeAt(r.pos+2)===u.equalsTo?v(e.assign,3):v(t===u.verticalBar?e.logicalOR:e.logicalAND,2);return}if(t===u.verticalBar){if(s===u.greaterThan){v(e.pipeline,2);return}else if(s===u.rightCurlyBrace&&C){v(e.braceBarR,2);return}}if(s===u.equalsTo){v(e.assign,2);return}v(t===u.verticalBar?e.bitwiseOR:e.bitwiseAND,1)}function Rr(){d.charCodeAt(r.pos+1)===u.equalsTo?v(e.assign,2):v(e.bitwiseXOR,1)}function Cr(t){const s=d.charCodeAt(r.pos+1);if(s===t){v(e.preIncDec,2);return}s===u.equalsTo?v(e.assign,2):t===u.plusSign?v(e.plus,1):v(e.minus,1)}function vr(){const t=d.charCodeAt(r.pos+1);if(t===u.lessThan){if(d.charCodeAt(r.pos+2)===u.equalsTo){v(e.assign,3);return}r.isType?v(e.lessThan,1):v(e.bitShiftL,2);return}t===u.equalsTo?v(e.relationalOrEqual,2):v(e.lessThan,1)}function Qs(){if(r.isType){v(e.greaterThan,1);return}const t=d.charCodeAt(r.pos+1);if(t===u.greaterThan){const s=d.charCodeAt(r.pos+2)===u.greaterThan?3:2;if(d.charCodeAt(r.pos+s)===u.equalsTo){v(e.assign,s+1);return}v(e.bitShiftR,s);return}t===u.equalsTo?v(e.relationalOrEqual,2):v(e.greaterThan,1)}function Ys(){r.type===e.greaterThan&&(r.pos-=1,Qs())}function Dr(t){const s=d.charCodeAt(r.pos+1);if(s===u.equalsTo){v(e.equality,d.charCodeAt(r.pos+2)===u.equalsTo?3:2);return}if(t===u.equalsTo&&s===u.greaterThan){r.pos+=2,A(e.arrow);return}v(t===u.equalsTo?e.eq:e.bang,1)}function Lr(){const t=d.charCodeAt(r.pos+1),s=d.charCodeAt(r.pos+2);t===u.questionMark&&!(C&&r.isType)?s===u.equalsTo?v(e.assign,3):v(e.nullishCoalescing,2):t===u.dot&&!(s>=u.digit0&&s<=u.digit9)?(r.pos+=2,A(e.questionDot)):(++r.pos,A(e.question))}function Js(t){switch(t){case u.numberSign:++r.pos,A(e.hash);return;case u.dot:Sr();return;case u.leftParenthesis:++r.pos,A(e.parenL);return;case u.rightParenthesis:++r.pos,A(e.parenR);return;case u.semicolon:++r.pos,A(e.semi);return;case u.comma:++r.pos,A(e.comma);return;case u.leftSquareBracket:++r.pos,A(e.bracketL);return;case u.rightSquareBracket:++r.pos,A(e.bracketR);return;case u.leftCurlyBrace:C&&d.charCodeAt(r.pos+1)===u.verticalBar?v(e.braceBarL,2):(++r.pos,A(e.braceL));return;case u.rightCurlyBrace:++r.pos,A(e.braceR);return;case u.colon:d.charCodeAt(r.pos+1)===u.colon?v(e.doubleColon,2):(++r.pos,A(e.colon));return;case u.questionMark:Lr();return;case u.atSign:++r.pos,A(e.at);return;case u.graveAccent:++r.pos,A(e.backQuote);return;case u.digit0:{const s=d.charCodeAt(r.pos+1);if(s===u.lowercaseX||s===u.uppercaseX||s===u.lowercaseO||s===u.uppercaseO||s===u.lowercaseB||s===u.uppercaseB){Or();return}}case u.digit1:case u.digit2:case u.digit3:case u.digit4:case u.digit5:case u.digit6:case u.digit7:case u.digit8:case u.digit9:Zs(!1);return;case u.quotationMark:case u.apostrophe:jr(t);return;case u.slash:Er();return;case u.percentSign:case u.asterisk:Nr(t);return;case u.verticalBar:case u.ampersand:Pr(t);return;case u.caret:Rr();return;case u.plusSign:case u.dash:Cr(t);return;case u.lessThan:vr();return;case u.greaterThan:Qs();return;case u.equalsTo:case u.exclamationMark:Dr(t);return;case u.tilde:v(e.tilde,1);return;default:break}T(`Unexpected character '${String.fromCharCode(t)}'`,r.pos)}function v(t,s){r.pos+=s,A(t)}function Fr(){const t=r.pos;let s=!1,n=!1;for(;;){if(r.pos>=d.length){T("Unterminated regular expression",t);return}const o=d.charCodeAt(r.pos);if(s)s=!1;else{if(o===u.leftSquareBracket)n=!0;else if(o===u.rightSquareBracket&&n)n=!1;else if(o===u.slash&&!n)break;s=o===u.backslash}++r.pos}++r.pos,Br(),A(e.regexp)}function qt(){for(;;){const t=d.charCodeAt(r.pos);if(t>=u.digit0&&t<=u.digit9||t===u.underscore)r.pos++;else break}}function Or(){for(r.pos+=2;;){const s=d.charCodeAt(r.pos);if(s>=u.digit0&&s<=u.digit9||s>=u.lowercaseA&&s<=u.lowercaseF||s>=u.uppercaseA&&s<=u.uppercaseF||s===u.underscore)r.pos++;else break}d.charCodeAt(r.pos)===u.lowercaseN?(++r.pos,A(e.bigint)):A(e.num)}function Zs(t){let s=!1,n=!1;t||qt();let o=d.charCodeAt(r.pos);if(o===u.dot&&(++r.pos,qt(),o=d.charCodeAt(r.pos)),(o===u.uppercaseE||o===u.lowercaseE)&&(o=d.charCodeAt(++r.pos),(o===u.plusSign||o===u.dash)&&++r.pos,qt(),o=d.charCodeAt(r.pos)),o===u.lowercaseN?(++r.pos,s=!0):o===u.lowercaseM&&(++r.pos,n=!0),s){A(e.bigint);return}if(n){A(e.decimal);return}A(e.num)}function jr(t){for(r.pos++;;){if(r.pos>=d.length){T("Unterminated string constant");return}const s=d.charCodeAt(r.pos);if(s===u.backslash)r.pos++;else if(s===t)break;r.pos++}r.pos++,A(e.string)}function qr(){for(;;){if(r.pos>=d.length){T("Unterminated template");return}const t=d.charCodeAt(r.pos);if(t===u.graveAccent||t===u.dollarSign&&d.charCodeAt(r.pos+1)===u.leftCurlyBrace){if(r.pos===r.start&&i(e.template))if(t===u.dollarSign){r.pos+=2,A(e.dollarBraceL);return}else{++r.pos,A(e.backQuote);return}A(e.template);return}t===u.backslash&&r.pos++,r.pos++}}function Br(){for(;r.pos<d.length;){const t=d.charCodeAt(r.pos);if(Y[t])r.pos++;else if(t===u.backslash){if(r.pos+=2,d.charCodeAt(r.pos)===u.leftCurlyBrace){for(;r.pos<d.length&&d.charCodeAt(r.pos)!==u.rightCurlyBrace;)r.pos++;r.pos++}}else break}}function Ze(t,s=t.currentIndex()){let n=s+1;if(dt(t,n)){const o=t.identifierNameAtIndex(s);return{isType:!1,leftName:o,rightName:o,endIndex:n}}if(n++,dt(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,dt(t,n))return{isType:!1,leftName:t.identifierNameAtIndex(s),rightName:t.identifierNameAtIndex(s+2),endIndex:n};if(n++,dt(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${s}`)}function dt(t,s){const n=t.tokens[s];return n.type===e.braceR||n.type===e.comma}var Mr=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xA0"],["iexcl","\xA1"],["cent","\xA2"],["pound","\xA3"],["curren","\xA4"],["yen","\xA5"],["brvbar","\xA6"],["sect","\xA7"],["uml","\xA8"],["copy","\xA9"],["ordf","\xAA"],["laquo","\xAB"],["not","\xAC"],["shy","\xAD"],["reg","\xAE"],["macr","\xAF"],["deg","\xB0"],["plusmn","\xB1"],["sup2","\xB2"],["sup3","\xB3"],["acute","\xB4"],["micro","\xB5"],["para","\xB6"],["middot","\xB7"],["cedil","\xB8"],["sup1","\xB9"],["ordm","\xBA"],["raquo","\xBB"],["frac14","\xBC"],["frac12","\xBD"],["frac34","\xBE"],["iquest","\xBF"],["Agrave","\xC0"],["Aacute","\xC1"],["Acirc","\xC2"],["Atilde","\xC3"],["Auml","\xC4"],["Aring","\xC5"],["AElig","\xC6"],["Ccedil","\xC7"],["Egrave","\xC8"],["Eacute","\xC9"],["Ecirc","\xCA"],["Euml","\xCB"],["Igrave","\xCC"],["Iacute","\xCD"],["Icirc","\xCE"],["Iuml","\xCF"],["ETH","\xD0"],["Ntilde","\xD1"],["Ograve","\xD2"],["Oacute","\xD3"],["Ocirc","\xD4"],["Otilde","\xD5"],["Ouml","\xD6"],["times","\xD7"],["Oslash","\xD8"],["Ugrave","\xD9"],["Uacute","\xDA"],["Ucirc","\xDB"],["Uuml","\xDC"],["Yacute","\xDD"],["THORN","\xDE"],["szlig","\xDF"],["agrave","\xE0"],["aacute","\xE1"],["acirc","\xE2"],["atilde","\xE3"],["auml","\xE4"],["aring","\xE5"],["aelig","\xE6"],["ccedil","\xE7"],["egrave","\xE8"],["eacute","\xE9"],["ecirc","\xEA"],["euml","\xEB"],["igrave","\xEC"],["iacute","\xED"],["icirc","\xEE"],["iuml","\xEF"],["eth","\xF0"],["ntilde","\xF1"],["ograve","\xF2"],["oacute","\xF3"],["ocirc","\xF4"],["otilde","\xF5"],["ouml","\xF6"],["divide","\xF7"],["oslash","\xF8"],["ugrave","\xF9"],["uacute","\xFA"],["ucirc","\xFB"],["uuml","\xFC"],["yacute","\xFD"],["thorn","\xFE"],["yuml","\xFF"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02C6"],["tilde","\u02DC"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039A"],["Lambda","\u039B"],["Mu","\u039C"],["Nu","\u039D"],["Xi","\u039E"],["Omicron","\u039F"],["Pi","\u03A0"],["Rho","\u03A1"],["Sigma","\u03A3"],["Tau","\u03A4"],["Upsilon","\u03A5"],["Phi","\u03A6"],["Chi","\u03A7"],["Psi","\u03A8"],["Omega","\u03A9"],["alpha","\u03B1"],["beta","\u03B2"],["gamma","\u03B3"],["delta","\u03B4"],["epsilon","\u03B5"],["zeta","\u03B6"],["eta","\u03B7"],["theta","\u03B8"],["iota","\u03B9"],["kappa","\u03BA"],["lambda","\u03BB"],["mu","\u03BC"],["nu","\u03BD"],["xi","\u03BE"],["omicron","\u03BF"],["pi","\u03C0"],["rho","\u03C1"],["sigmaf","\u03C2"],["sigma","\u03C3"],["tau","\u03C4"],["upsilon","\u03C5"],["phi","\u03C6"],["chi","\u03C7"],["psi","\u03C8"],["omega","\u03C9"],["thetasym","\u03D1"],["upsih","\u03D2"],["piv","\u03D6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200C"],["zwj","\u200D"],["lrm","\u200E"],["rlm","\u200F"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201A"],["ldquo","\u201C"],["rdquo","\u201D"],["bdquo","\u201E"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203A"],["oline","\u203E"],["frasl","\u2044"],["euro","\u20AC"],["image","\u2111"],["weierp","\u2118"],["real","\u211C"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21B5"],["lArr","\u21D0"],["uArr","\u21D1"],["rArr","\u21D2"],["dArr","\u21D3"],["hArr","\u21D4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220B"],["prod","\u220F"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221A"],["prop","\u221D"],["infin","\u221E"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222A"],["int","\u222B"],["there4","\u2234"],["sim","\u223C"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22A5"],["sdot","\u22C5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230A"],["rfloor","\u230B"],["lang","\u2329"],["rang","\u232A"],["loz","\u25CA"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function Ks(t){const[s,n]=en(t.jsxPragma||"React.createElement"),[o,a]=en(t.jsxFragmentPragma||"React.Fragment");return{base:s,suffix:n,fragmentBase:o,fragmentSuffix:a}}function en(t){let s=t.indexOf(".");return s===-1&&(s=t.length),[t.slice(0,s),t.slice(s)]}class Z{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class me extends Z{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(s,n,o,a,l){super(),this.rootTransformer=s,this.tokens=n,this.importProcessor=o,this.nameManager=a,this.options=l,me.prototype.__init.call(this),me.prototype.__init2.call(this),me.prototype.__init3.call(this),me.prototype.__init4.call(this),me.prototype.__init5.call(this),this.jsxPragmaInfo=Ks(l),this.isAutomaticRuntime=l.jsxRuntime==="automatic",this.jsxImportSource=l.jsxImportSource||"react"}process(){return this.tokens.matches1(e.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let s="";if(this.filenameVarName&&(s+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[n,o]of Object.entries(this.cjsAutomaticModuleNameResolutions))s+=`var ${o} = require("${n}");`;else{const{createElement:n,...o}=this.esmAutomaticImportNameResolutions;n&&(s+=`import {createElement as ${n}} from "${this.jsxImportSource}";`);const a=Object.entries(o).map(([l,m])=>`${l} as ${m}`).join(", ");if(a){const l=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");s+=`import {${a}} from "${l}";`}}return s}processJSXTag(){const{jsxRole:s,start:n}=this.tokens.currentToken(),o=this.options.production?null:this.getElementLocationCode(n);this.isAutomaticRuntime&&s!==J.KeyAfterPropSpread?this.transformTagToJSXFunc(o,s):this.transformTagToCreateElement(o)}getElementLocationCode(s){return`lineNumber: ${this.getLineNumberForIndex(s)}`}getLineNumberForIndex(s){const n=this.tokens.code;for(;this.lastIndex<s&&this.lastIndex<n.length;)n[this.lastIndex]===`
|
|
2
|
+
`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(s,n){const o=n===J.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(o));let a=null;if(this.tokens.matches1(e.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(n);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),a=this.processProps(!0),this.tokens.matches2(e.slash,e.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(e.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(n);else throw new Error("Expected either /> or > at the end of the tag.");a&&this.tokens.appendCode(`, ${a}`)}for(this.options.production||(a===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${o}, ${this.getDevSource(s)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(e.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(s){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(e.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(s),!this.tokens.matches2(e.slash,e.jsxTagEnd))if(this.tokens.matches1(e.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(e.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(s){return this.options.production?s?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:s}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(s.base)||s.base}${s.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:s}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(s.fragmentBase)||s.fragmentBase)+s.fragmentSuffix}}claimAutoImportedFuncInvocation(s,n){const o=this.claimAutoImportedName(s,n);return this.importProcessor?`${o}.call(void 0, `:`${o}(`}claimAutoImportedName(s,n){if(this.importProcessor){const o=this.jsxImportSource+n;return this.cjsAutomaticModuleNameResolutions[o]||(this.cjsAutomaticModuleNameResolutions[o]=this.importProcessor.getFreeIdentifierForPath(o)),`${this.cjsAutomaticModuleNameResolutions[o]}.${s}`}else return this.esmAutomaticImportNameResolutions[s]||(this.esmAutomaticImportNameResolutions[s]=this.nameManager.claimFreeName(`_${s}`)),this.esmAutomaticImportNameResolutions[s]}processTagIntro(){let s=this.tokens.currentIndex()+1;for(;this.tokens.tokens[s].isType||!this.tokens.matches2AtIndex(s-1,e.jsxName,e.jsxName)&&!this.tokens.matches2AtIndex(s-1,e.greaterThan,e.jsxName)&&!this.tokens.matches1AtIndex(s,e.braceL)&&!this.tokens.matches1AtIndex(s,e.jsxTagEnd)&&!this.tokens.matches2AtIndex(s,e.slash,e.jsxTagEnd);)s++;if(s===this.tokens.currentIndex()+1){const n=this.tokens.identifierName();tn(n)&&this.tokens.replaceToken(`'${n}'`)}for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(s){const n=this.options.production?"":`__self: this, __source: ${this.getDevSource(s)}`;if(!this.tokens.matches1(e.jsxName)&&!this.tokens.matches1(e.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),n?this.tokens.appendCode(` ${n}}`):this.tokens.appendCode("}")}processProps(s){let n=null;for(;;){if(this.tokens.matches2(e.jsxName,e.eq)){const o=this.tokens.identifierName();if(s&&o==="key"){n!==null&&this.tokens.appendCode(n.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const a=this.tokens.snapshot();this.processPropValue(),n=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(a);continue}else this.processPropName(o),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(e.jsxName)){const o=this.tokens.identifierName();this.processPropName(o),this.tokens.appendCode(": true")}else if(this.tokens.matches1(e.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return n}processPropName(s){s.includes("-")?this.tokens.replaceToken(`'${s}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(e.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(e.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const s=this.tokens.currentToken(),n=this.tokens.code.slice(s.start+1,s.end-1),o=sn(n),a=Hr(n);this.tokens.replaceToken(a+o)}processAutomaticChildrenAndEndProps(s){s===J.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(s===J.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(s){let n=s;for(;;){if(this.tokens.matches2(e.jsxTagStart,e.slash))return;let o=!1;if(this.tokens.matches1(e.braceL))this.tokens.matches2(e.braceL,e.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(n?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),o=!0);else if(this.tokens.matches1(e.jsxTagStart))this.tokens.appendCode(n?", ":""),this.processJSXTag(),o=!0;else if(this.tokens.matches1(e.jsxText)||this.tokens.matches1(e.jsxEmptyText))o=this.processChildTextElement(n);else throw new Error("Unexpected token when processing JSX children.");o&&(n=!0)}}processChildTextElement(s){const n=this.tokens.currentToken(),o=this.tokens.code.slice(n.start,n.end),a=sn(o),l=$r(o);return l==='""'?(this.tokens.replaceToken(a),!1):(this.tokens.replaceToken(`${s?", ":""}${l}${a}`),!0)}getDevSource(s){return`{fileName: ${this.getFilenameVarName()}, ${s}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function tn(t){const s=t.charCodeAt(0);return s>=u.lowercaseA&&s<=u.lowercaseZ}function $r(t){let s="",n="",o=!1,a=!1;for(let l=0;l<t.length;l++){const m=t[l];if(m===" "||m===" "||m==="\r")o||(n+=m);else if(m===`
|
|
3
|
+
`)n="",o=!0;else{if(a&&o&&(s+=" "),s+=n,n="",m==="&"){const{entity:k,newI:b}=nn(t,l+1);l=b-1,s+=k}else s+=m;a=!0,o=!1}}return o||(s+=n),JSON.stringify(s)}function sn(t){let s=0,n=0;for(const o of t)o===`
|
|
4
|
+
`?(s++,n=0):o===" "&&n++;return`
|
|
5
|
+
`.repeat(s)+" ".repeat(n)}function Hr(t){let s="";for(let n=0;n<t.length;n++){const o=t[n];if(o===`
|
|
6
|
+
`)if(/\s/.test(t[n+1]))for(s+=" ";n<t.length&&/\s/.test(t[n+1]);)n++;else s+=`
|
|
7
|
+
`;else if(o==="&"){const{entity:a,newI:l}=nn(t,n+1);s+=a,n=l-1}else s+=o}return JSON.stringify(s)}function nn(t,s){let n="",o=0,a,l=s;if(t[l]==="#"){let m=10;l++;let k;if(t[l]==="x")for(m=16,l++,k=l;l<t.length&&Ur(t.charCodeAt(l));)l++;else for(k=l;l<t.length&&Vr(t.charCodeAt(l));)l++;if(t[l]===";"){const b=t.slice(k,l);b&&(l++,a=String.fromCodePoint(parseInt(b,m)))}}else for(;l<t.length&&o++<10;){const m=t[l];if(l++,m===";"){a=Mr.get(n);break}n+=m}return a?{entity:a,newI:l}:{entity:"&",newI:s}}function Vr(t){return t>=u.digit0&&t<=u.digit9}function Ur(t){return t>=u.digit0&&t<=u.digit9||t>=u.lowercaseA&&t<=u.lowercaseF||t>=u.uppercaseA&&t<=u.uppercaseF}function rn(t,s){const n=Ks(s),o=new Set;for(let a=0;a<t.tokens.length;a++){const l=t.tokens[a];if(l.type===e.name&&!l.isType&&(l.identifierRole===x.Access||l.identifierRole===x.ObjectShorthand||l.identifierRole===x.ExportAccess)&&!l.shadowsGlobal&&o.add(t.identifierNameForToken(l)),l.type===e.jsxTagStart&&o.add(n.base),l.type===e.jsxTagStart&&a+1<t.tokens.length&&t.tokens[a+1].type===e.jsxTagEnd&&(o.add(n.base),o.add(n.fragmentBase)),l.type===e.jsxName&&l.identifierRole===x.Access){const m=t.identifierNameForToken(l);(!tn(m)||t.tokens[a+1].type===e.dot)&&o.add(t.identifierNameForToken(l))}}return o}class de{__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(s,n,o,a,l,m,k){this.nameManager=s,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=o,this.options=a,this.isTypeScriptTransformEnabled=l,this.keepUnusedImports=m,this.helperManager=k,de.prototype.__init.call(this),de.prototype.__init2.call(this),de.prototype.__init3.call(this),de.prototype.__init4.call(this),de.prototype.__init5.call(this)}preprocessTokens(){for(let s=0;s<this.tokens.tokens.length;s++)this.tokens.matches1AtIndex(s,e._import)&&!this.tokens.matches3AtIndex(s,e._import,e.name,e.eq)&&this.preprocessImportAtIndex(s),this.tokens.matches1AtIndex(s,e._export)&&!this.tokens.matches2AtIndex(s,e._export,e.eq)&&this.preprocessExportAtIndex(s);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=rn(this.tokens,this.options);for(const[s,n]of this.importInfoByPath.entries()){if(n.hasBareImport||n.hasStarExport||n.exportStarNames.length>0||n.namedExports.length>0)continue;[...n.defaultNames,...n.wildcardNames,...n.namedImports.map(({localName:a})=>a)].every(a=>this.shouldAutomaticallyElideImportedName(a))&&this.importsToReplace.set(s,"")}}shouldAutomaticallyElideImportedName(s){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(s)}generateImportReplacements(){for(const[s,n]of this.importInfoByPath.entries()){const{defaultNames:o,wildcardNames:a,namedImports:l,namedExports:m,exportStarNames:k,hasStarExport:b}=n;if(o.length===0&&a.length===0&&l.length===0&&m.length===0&&k.length===0&&!b){this.importsToReplace.set(s,`require('${s}');`);continue}const I=this.getFreeIdentifierForPath(s);let E;this.enableLegacyTypeScriptModuleInterop?E=I:E=a.length>0?a[0]:this.getFreeIdentifierForPath(s);let P=`var ${I} = require('${s}');`;if(a.length>0)for(const _ of a){const w=this.enableLegacyTypeScriptModuleInterop?I:`${this.helperManager.getHelperName("interopRequireWildcard")}(${I})`;P+=` var ${_} = ${w};`}else k.length>0&&E!==I?P+=` var ${E} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${I});`:o.length>0&&E!==I&&(P+=` var ${E} = ${this.helperManager.getHelperName("interopRequireDefault")}(${I});`);for(const{importedName:_,localName:w}of m)P+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${I}, '${w}', '${_}');`;for(const _ of k)P+=` exports.${_} = ${E};`;b&&(P+=` ${this.helperManager.getHelperName("createStarExport")}(${I});`),this.importsToReplace.set(s,P);for(const _ of o)this.identifierReplacements.set(_,`${E}.default`);for(const{importedName:_,localName:w}of l)this.identifierReplacements.set(w,`${I}.${_}`)}}getFreeIdentifierForPath(s){const n=s.split("/"),a=n[n.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${a}`)}preprocessImportAtIndex(s){const n=[],o=[],a=[];if(s++,(this.tokens.matchesContextualAtIndex(s,c._type)||this.tokens.matches1AtIndex(s,e._typeof))&&!this.tokens.matches1AtIndex(s+1,e.comma)&&!this.tokens.matchesContextualAtIndex(s+1,c._from)||this.tokens.matches1AtIndex(s,e.parenL))return;if(this.tokens.matches1AtIndex(s,e.name)&&(n.push(this.tokens.identifierNameAtIndex(s)),s++,this.tokens.matches1AtIndex(s,e.comma)&&s++),this.tokens.matches1AtIndex(s,e.star)&&(s+=2,o.push(this.tokens.identifierNameAtIndex(s)),s++),this.tokens.matches1AtIndex(s,e.braceL)){const k=this.getNamedImports(s+1);s=k.newIndex;for(const b of k.namedImports)b.importedName==="default"?n.push(b.localName):a.push(b)}if(this.tokens.matchesContextualAtIndex(s,c._from)&&s++,!this.tokens.matches1AtIndex(s,e.string))throw new Error("Expected string token at the end of import statement.");const l=this.tokens.stringValueAtIndex(s),m=this.getImportInfo(l);m.defaultNames.push(...n),m.wildcardNames.push(...o),m.namedImports.push(...a),n.length===0&&o.length===0&&a.length===0&&(m.hasBareImport=!0)}preprocessExportAtIndex(s){if(this.tokens.matches2AtIndex(s,e._export,e._var)||this.tokens.matches2AtIndex(s,e._export,e._let)||this.tokens.matches2AtIndex(s,e._export,e._const))this.preprocessVarExportAtIndex(s);else if(this.tokens.matches2AtIndex(s,e._export,e._function)||this.tokens.matches2AtIndex(s,e._export,e._class)){const n=this.tokens.identifierNameAtIndex(s+2);this.addExportBinding(n,n)}else if(this.tokens.matches3AtIndex(s,e._export,e.name,e._function)){const n=this.tokens.identifierNameAtIndex(s+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(s,e._export,e.braceL)?this.preprocessNamedExportAtIndex(s):this.tokens.matches2AtIndex(s,e._export,e.star)&&this.preprocessExportStarAtIndex(s)}preprocessVarExportAtIndex(s){let n=0;for(let o=s+2;;o++)if(this.tokens.matches1AtIndex(o,e.braceL)||this.tokens.matches1AtIndex(o,e.dollarBraceL)||this.tokens.matches1AtIndex(o,e.bracketL))n++;else if(this.tokens.matches1AtIndex(o,e.braceR)||this.tokens.matches1AtIndex(o,e.bracketR))n--;else{if(n===0&&!this.tokens.matches1AtIndex(o,e.name))break;if(this.tokens.matches1AtIndex(1,e.eq)){const a=this.tokens.currentToken().rhsEndIndex;if(a==null)throw new Error("Expected = token with an end index.");o=a-1}else{const a=this.tokens.tokens[o];if($s(a)){const l=this.tokens.identifierNameAtIndex(o);this.identifierReplacements.set(l,`exports.${l}`)}}}}preprocessNamedExportAtIndex(s){s+=2;const{newIndex:n,namedImports:o}=this.getNamedImports(s);if(s=n,this.tokens.matchesContextualAtIndex(s,c._from))s++;else{for(const{importedName:m,localName:k}of o)this.addExportBinding(m,k);return}if(!this.tokens.matches1AtIndex(s,e.string))throw new Error("Expected string token at the end of import statement.");const a=this.tokens.stringValueAtIndex(s);this.getImportInfo(a).namedExports.push(...o)}preprocessExportStarAtIndex(s){let n=null;if(this.tokens.matches3AtIndex(s,e._export,e.star,e._as)?(s+=3,n=this.tokens.identifierNameAtIndex(s),s+=2):s+=3,!this.tokens.matches1AtIndex(s,e.string))throw new Error("Expected string token at the end of star export statement.");const o=this.tokens.stringValueAtIndex(s),a=this.getImportInfo(o);n!==null?a.exportStarNames.push(n):a.hasStarExport=!0}getNamedImports(s){const n=[];for(;;){if(this.tokens.matches1AtIndex(s,e.braceR)){s++;break}const o=Ze(this.tokens,s);if(s=o.endIndex,o.isType||n.push({importedName:o.leftName,localName:o.rightName}),this.tokens.matches2AtIndex(s,e.comma,e.braceR)){s+=2;break}else if(this.tokens.matches1AtIndex(s,e.braceR)){s++;break}else if(this.tokens.matches1AtIndex(s,e.comma))s++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[s])}`)}return{newIndex:s,namedImports:n}}getImportInfo(s){const n=this.importInfoByPath.get(s);if(n)return n;const o={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(s,o),o}addExportBinding(s,n){this.exportBindingsByLocalName.has(s)||this.exportBindingsByLocalName.set(s,[]),this.exportBindingsByLocalName.get(s).push(n)}claimImportCode(s){const n=this.importsToReplace.get(s);return this.importsToReplace.set(s,""),n||""}getIdentifierReplacement(s){return this.identifierReplacements.get(s)||null}resolveExportBinding(s){const n=this.exportBindingsByLocalName.get(s);return!n||n.length===0?null:n.map(o=>`exports.${o}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Ke=ze(92509);function Wr({code:t,mappings:s},n,o,a,l){const m=Gr(a,l),k=new Ke.GenMapping({file:o.compiledFilename});let b=0,I=s[0];for(;I===void 0&&b<s.length-1;)b++,I=s[b];let E=0,P=0;I!==P&&(0,Ke.maybeAddSegment)(k,E,0,n,E,0);for(let H=0;H<t.length;H++){if(H===I){const ee=I-P,oe=m[b];for((0,Ke.maybeAddSegment)(k,E,ee,n,E,oe);(I===H||I===void 0)&&b<s.length-1;)b++,I=s[b]}t.charCodeAt(H)===u.lineFeed&&(E++,P=H+1,I!==P&&(0,Ke.maybeAddSegment)(k,E,0,n,E,0))}const{sourceRoot:_,sourcesContent:w,...j}=(0,Ke.toEncodedMap)(k);return j}function Gr(t,s){const n=new Array(s.length);let o=0,a=s[o].start,l=0;for(let m=0;m<t.length;m++)m===a&&(n[o]=a-l,o++,a=s[o].start),t.charCodeAt(m)===u.lineFeed&&(l=m+1);return n}const Xr={require:`
|
|
8
|
+
import {createRequire as CREATE_REQUIRE_NAME} from "module";
|
|
9
|
+
const require = CREATE_REQUIRE_NAME(import.meta.url);
|
|
10
|
+
`,interopRequireWildcard:`
|
|
11
|
+
function interopRequireWildcard(obj) {
|
|
12
|
+
if (obj && obj.__esModule) {
|
|
13
|
+
return obj;
|
|
14
|
+
} else {
|
|
15
|
+
var newObj = {};
|
|
16
|
+
if (obj != null) {
|
|
17
|
+
for (var key in obj) {
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
19
|
+
newObj[key] = obj[key];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
newObj.default = obj;
|
|
24
|
+
return newObj;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`,interopRequireDefault:`
|
|
28
|
+
function interopRequireDefault(obj) {
|
|
29
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
30
|
+
}
|
|
31
|
+
`,createNamedExportFrom:`
|
|
32
|
+
function createNamedExportFrom(obj, localName, importedName) {
|
|
33
|
+
Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
|
|
34
|
+
}
|
|
35
|
+
`,createStarExport:`
|
|
36
|
+
function createStarExport(obj) {
|
|
37
|
+
Object.keys(obj)
|
|
38
|
+
.filter((key) => key !== "default" && key !== "__esModule")
|
|
39
|
+
.forEach((key) => {
|
|
40
|
+
if (exports.hasOwnProperty(key)) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
`,nullishCoalesce:`
|
|
47
|
+
function nullishCoalesce(lhs, rhsFn) {
|
|
48
|
+
if (lhs != null) {
|
|
49
|
+
return lhs;
|
|
50
|
+
} else {
|
|
51
|
+
return rhsFn();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
`,asyncNullishCoalesce:`
|
|
55
|
+
async function asyncNullishCoalesce(lhs, rhsFn) {
|
|
56
|
+
if (lhs != null) {
|
|
57
|
+
return lhs;
|
|
58
|
+
} else {
|
|
59
|
+
return await rhsFn();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`,optionalChain:`
|
|
63
|
+
function optionalChain(ops) {
|
|
64
|
+
let lastAccessLHS = undefined;
|
|
65
|
+
let value = ops[0];
|
|
66
|
+
let i = 1;
|
|
67
|
+
while (i < ops.length) {
|
|
68
|
+
const op = ops[i];
|
|
69
|
+
const fn = ops[i + 1];
|
|
70
|
+
i += 2;
|
|
71
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
75
|
+
lastAccessLHS = value;
|
|
76
|
+
value = fn(value);
|
|
77
|
+
} else if (op === 'call' || op === 'optionalCall') {
|
|
78
|
+
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
|
79
|
+
lastAccessLHS = undefined;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
`,asyncOptionalChain:`
|
|
85
|
+
async function asyncOptionalChain(ops) {
|
|
86
|
+
let lastAccessLHS = undefined;
|
|
87
|
+
let value = ops[0];
|
|
88
|
+
let i = 1;
|
|
89
|
+
while (i < ops.length) {
|
|
90
|
+
const op = ops[i];
|
|
91
|
+
const fn = ops[i + 1];
|
|
92
|
+
i += 2;
|
|
93
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
97
|
+
lastAccessLHS = value;
|
|
98
|
+
value = await fn(value);
|
|
99
|
+
} else if (op === 'call' || op === 'optionalCall') {
|
|
100
|
+
value = await fn((...args) => value.call(lastAccessLHS, ...args));
|
|
101
|
+
lastAccessLHS = undefined;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
`,optionalChainDelete:`
|
|
107
|
+
function optionalChainDelete(ops) {
|
|
108
|
+
const result = OPTIONAL_CHAIN_NAME(ops);
|
|
109
|
+
return result == null ? true : result;
|
|
110
|
+
}
|
|
111
|
+
`,asyncOptionalChainDelete:`
|
|
112
|
+
async function asyncOptionalChainDelete(ops) {
|
|
113
|
+
const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
|
|
114
|
+
return result == null ? true : result;
|
|
115
|
+
}
|
|
116
|
+
`};class kt{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(s){this.nameManager=s,kt.prototype.__init.call(this),kt.prototype.__init2.call(this)}getHelperName(s){let n=this.helperNames[s];return n||(n=this.nameManager.claimFreeName(`_${s}`),this.helperNames[s]=n,n)}emitHelpers(){let s="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[n,o]of Object.entries(Xr)){const a=this.helperNames[n];let l=o;n==="optionalChainDelete"?l=l.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):n==="asyncOptionalChainDelete"?l=l.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):n==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),l=l.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),a&&(s+=" ",s+=l.replace(n,a).replace(/\s+/g," ").trim())}return s}}function on(t,s,n){zr(t,n)&&Qr(t,s,n)}function zr(t,s){for(const n of t.tokens)if(n.type===e.name&&!n.isType&&gr(n)&&s.has(t.identifierNameForToken(n)))return!0;return!1}function Qr(t,s,n){const o=[];let a=s.length-1;for(let l=t.tokens.length-1;;l--){for(;o.length>0&&o[o.length-1].startTokenIndex===l+1;)o.pop();for(;a>=0&&s[a].endTokenIndex===l+1;)o.push(s[a]),a--;if(l<0)break;const m=t.tokens[l],k=t.identifierNameForToken(m);if(o.length>1&&!m.isType&&m.type===e.name&&n.has(k)){if(xr(m))an(o[o.length-1],t,k);else if(Ir(m)){let b=o.length-1;for(;b>0&&!o[b].isFunctionScope;)b--;if(b<0)throw new Error("Did not find parent function scope.");an(o[b],t,k)}}}if(o.length>0)throw new Error("Expected empty scope stack after processing file.")}function an(t,s,n){for(let o=t.startTokenIndex;o<t.endTokenIndex;o++){const a=s.tokens[o];(a.type===e.name||a.type===e.jsxName)&&s.identifierNameForToken(a)===n&&(a.shadowsGlobal=!0)}}function Yr(t,s){const n=[];for(const o of s)o.type===e.name&&n.push(t.slice(o.start,o.end));return n}class Bt{__init(){this.usedNames=new Set}constructor(s,n){Bt.prototype.__init.call(this),this.usedNames=new Set(Yr(s,n))}claimFreeName(s){const n=this.findFreeName(s);return this.usedNames.add(n),n}findFreeName(s){if(!this.usedNames.has(s))return s;let n=2;for(;this.usedNames.has(s+String(n));)n++;return s+String(n)}}var D=ze(41074);const Jr=D.union(D.lit("jsx"),D.lit("typescript"),D.lit("flow"),D.lit("imports"),D.lit("react-hot-loader"),D.lit("jest")),Zr=D.iface([],{compiledFilename:"string"}),Kr=D.iface([],{transforms:D.array("Transform"),disableESTransforms:D.opt("boolean"),jsxRuntime:D.opt(D.union(D.lit("classic"),D.lit("automatic"),D.lit("preserve"))),production:D.opt("boolean"),jsxImportSource:D.opt("string"),jsxPragma:D.opt("string"),jsxFragmentPragma:D.opt("string"),keepUnusedImports:D.opt("boolean"),preserveDynamicImport:D.opt("boolean"),injectCreateRequireForImportRequire:D.opt("boolean"),enableLegacyTypeScriptModuleInterop:D.opt("boolean"),enableLegacyBabel5ModuleInterop:D.opt("boolean"),sourceMapOptions:D.opt("SourceMapOptions"),filePath:D.opt("string")});var eo={Transform:Jr,SourceMapOptions:Zr,Options:Kr};const{Options:to}=(0,D.createCheckers)(eo);function so(t){to.strictCheck(t)}function cn(){f(),$(!1)}function ln(t){f(),gt(t)}function le(t){y(),Mt(t)}function _t(){y(),r.tokens[r.tokens.length-1].identifierRole=x.ImportDeclaration}function Mt(t){let s;r.scopeDepth===0?s=x.TopLevelDeclaration:t?s=x.BlockScopedDeclaration:s=x.FunctionScopedDeclaration,r.tokens[r.tokens.length-1].identifierRole=s}function gt(t){switch(r.type){case e._this:{const s=N(0);f(),S(s);return}case e._yield:case e.name:{r.type=e.name,le(t);return}case e.bracketL:{f(),$t(e.bracketR,t,!0);return}case e.braceL:o1(!0,t);return;default:T()}}function $t(t,s,n=!1,o=!1,a=0){let l=!0,m=!1;const k=r.tokens.length;for(;!p(t)&&!r.error;)if(l?l=!1:(h(e.comma),r.tokens[r.tokens.length-1].contextId=a,!m&&r.tokens[k].isType&&(r.tokens[r.tokens.length-1].isType=!0,m=!0)),!(n&&i(e.comma))){if(p(t))break;if(i(e.ellipsis)){ln(s),un(),p(e.comma),h(t);break}else no(o,s)}}function no(t,s){t&&Vt([c._public,c._protected,c._private,c._readonly,c._override]),xt(s),un(),xt(s,!0)}function un(){C?ya():R&&hi()}function xt(t,s=!1){if(s||gt(t),!p(e.eq))return;const n=r.tokens.length-1;$(),r.tokens[n].rhsEndIndex=r.tokens.length}function Ht(){return i(e.name)}function ro(){return i(e.name)||!!(r.type&e.IS_KEYWORD)||i(e.string)||i(e.num)||i(e.bigint)||i(e.decimal)}function pn(){const t=r.snapshot();return f(),(i(e.bracketL)||i(e.braceL)||i(e.star)||i(e.ellipsis)||i(e.hash)||ro())&&!U()?!0:(r.restoreFromSnapshot(t),!1)}function Vt(t){for(;hn(t)!==null;);}function hn(t){if(!i(e.name))return null;const s=r.contextualKeyword;if(t.indexOf(s)!==-1&&pn()){switch(s){case c._readonly:r.tokens[r.tokens.length-1].type=e._readonly;break;case c._abstract:r.tokens[r.tokens.length-1].type=e._abstract;break;case c._static:r.tokens[r.tokens.length-1].type=e._static;break;case c._public:r.tokens[r.tokens.length-1].type=e._public;break;case c._private:r.tokens[r.tokens.length-1].type=e._private;break;case c._protected:r.tokens[r.tokens.length-1].type=e._protected;break;case c._override:r.tokens[r.tokens.length-1].type=e._override;break;case c._declare:r.tokens[r.tokens.length-1].type=e._declare;break;default:break}return s}return null}function et(){for(y();p(e.dot);)y()}function oo(){et(),!U()&&i(e.lessThan)&&Te()}function io(){f(),st()}function ao(){f()}function co(){h(e._typeof),i(e._import)?fn():et(),!U()&&i(e.lessThan)&&Te()}function fn(){h(e._import),h(e.parenL),h(e.string),h(e.parenR),p(e.dot)&&et(),i(e.lessThan)&&Te()}function lo(){p(e._const);const t=p(e._in),s=B(c._out);p(e._const),(t||s)&&!i(e.name)?r.tokens[r.tokens.length-1].type=e.name:y(),p(e._extends)&&O(),p(e.eq)&&O()}function ke(){i(e.lessThan)&&It()}function It(){const t=N(0);for(i(e.lessThan)||i(e.typeParameterStart)?f():T();!p(e.greaterThan)&&!r.error;)lo(),p(e.comma);S(t)}function Ut(t){const s=t===e.arrow;ke(),h(e.parenL),r.scopeDepth++,uo(!1),r.scopeDepth--,(s||i(t))&&tt(t)}function uo(t){$t(e.parenR,t)}function bt(){p(e.comma)||L()}function mn(){Ut(e.colon),bt()}function po(){const t=r.snapshot();f();const s=p(e.name)&&i(e.colon);return r.restoreFromSnapshot(t),s}function dn(){if(!(i(e.bracketL)&&po()))return!1;const t=N(0);return h(e.bracketL),y(),st(),h(e.bracketR),ye(),bt(),S(t),!0}function kn(t){p(e.question),!t&&(i(e.parenL)||i(e.lessThan))?(Ut(e.colon),bt()):(ye(),bt())}function ho(){if(i(e.parenL)||i(e.lessThan)){mn();return}if(i(e._new)){f(),i(e.parenL)||i(e.lessThan)?mn():kn(!1);return}const t=!!hn([c._readonly]);dn()||((g(c._get)||g(c._set))&&pn(),rt(-1),kn(t))}function fo(){_n()}function _n(){for(h(e.braceL);!p(e.braceR)&&!r.error;)ho()}function mo(){const t=r.snapshot(),s=ko();return r.restoreFromSnapshot(t),s}function ko(){return f(),p(e.plus)||p(e.minus)?g(c._readonly):(g(c._readonly)&&f(),!i(e.bracketL)||(f(),!Ht())?!1:(f(),i(e._in)))}function _o(){y(),h(e._in),O()}function go(){h(e.braceL),i(e.plus)||i(e.minus)?(f(),q(c._readonly)):B(c._readonly),h(e.bracketL),_o(),B(c._as)&&O(),h(e.bracketR),i(e.plus)||i(e.minus)?(f(),h(e.question)):p(e.question),vo(),L(),h(e.braceR)}function xo(){for(h(e.bracketL);!p(e.bracketR)&&!r.error;)Io(),p(e.comma)}function Io(){p(e.ellipsis)?O():(O(),p(e.question)),p(e.colon)&&O()}function bo(){h(e.parenL),O(),h(e.parenR)}function yo(){for(ce(),ce();!i(e.backQuote)&&!r.error;)h(e.dollarBraceL),O(),ce(),ce();f()}var ue;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=0+1;t[t.TSConstructorType=n]="TSConstructorType";const o=n+1;t[t.TSAbstractConstructorType=o]="TSAbstractConstructorType"})(ue||(ue={}));function Wt(t){t===ue.TSAbstractConstructorType&&q(c._abstract),(t===ue.TSConstructorType||t===ue.TSAbstractConstructorType)&&h(e._new);const s=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!1,Ut(e.arrow),r.inDisallowConditionalTypesContext=s}function wo(){switch(r.type){case e.name:oo();return;case e._void:case e._null:f();return;case e.string:case e.num:case e.bigint:case e.decimal:case e._true:case e._false:Se();return;case e.minus:f(),Se();return;case e._this:{ao(),g(c._is)&&!U()&&io();return}case e._typeof:co();return;case e._import:fn();return;case e.braceL:mo()?go():fo();return;case e.bracketL:xo();return;case e.parenL:bo();return;case e.backQuote:yo();return;default:if(r.type&e.IS_KEYWORD){f(),r.tokens[r.tokens.length-1].type=e.name;return}break}T()}function To(){for(wo();!U()&&p(e.bracketL);)p(e.bracketR)||(O(),h(e.bracketR))}function Ao(){if(q(c._infer),y(),i(e._extends)){const t=r.snapshot();h(e._extends);const s=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!0,O(),r.inDisallowConditionalTypesContext=s,(r.error||!r.inDisallowConditionalTypesContext&&i(e.question))&&r.restoreFromSnapshot(t)}}function Gt(){if(g(c._keyof)||g(c._unique)||g(c._readonly))f(),Gt();else if(g(c._infer))Ao();else{const t=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!1,To(),r.inDisallowConditionalTypesContext=t}}function gn(){if(p(e.bitwiseAND),Gt(),i(e.bitwiseAND))for(;p(e.bitwiseAND);)Gt()}function So(){if(p(e.bitwiseOR),gn(),i(e.bitwiseOR))for(;p(e.bitwiseOR);)gn()}function Eo(){return i(e.lessThan)?!0:i(e.parenL)&&Po()}function No(){if(i(e.name)||i(e._this))return f(),!0;if(i(e.braceL)||i(e.bracketL)){let t=1;for(f();t>0&&!r.error;)i(e.braceL)||i(e.bracketL)?t++:(i(e.braceR)||i(e.bracketR))&&t--,f();return!0}return!1}function Po(){const t=r.snapshot(),s=Ro();return r.restoreFromSnapshot(t),s}function Ro(){return f(),!!(i(e.parenR)||i(e.ellipsis)||No()&&(i(e.colon)||i(e.comma)||i(e.question)||i(e.eq)||i(e.parenR)&&(f(),i(e.arrow))))}function tt(t){const s=N(0);h(t),Do()||O(),S(s)}function Co(){i(e.colon)&&tt(e.colon)}function ye(){i(e.colon)&&st()}function vo(){p(e.colon)&&O()}function Do(){const t=r.snapshot();return g(c._asserts)?(f(),B(c._is)?(O(),!0):Ht()||i(e._this)?(f(),B(c._is)&&O(),!0):(r.restoreFromSnapshot(t),!1)):Ht()||i(e._this)?(f(),g(c._is)&&!U()?(f(),O(),!0):(r.restoreFromSnapshot(t),!1)):!1}function st(){const t=N(0);h(e.colon),O(),S(t)}function O(){if(xn(),r.inDisallowConditionalTypesContext||U()||!p(e._extends))return;const t=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!0,xn(),r.inDisallowConditionalTypesContext=t,h(e.question),O(),h(e.colon),O()}function Lo(){return g(c._abstract)&&F()===e._new}function xn(){if(Eo()){Wt(ue.TSFunctionType);return}if(i(e._new)){Wt(ue.TSConstructorType);return}else if(Lo()){Wt(ue.TSAbstractConstructorType);return}So()}function Fo(){const t=N(1);O(),h(e.greaterThan),S(t),nt()}function Oo(){if(p(e.jsxTagStart)){r.tokens[r.tokens.length-1].type=e.typeParameterStart;const t=N(1);for(;!i(e.greaterThan)&&!r.error;)O(),p(e.comma);z(),S(t)}}function In(){for(;!i(e.braceL)&&!r.error;)jo(),p(e.comma)}function jo(){et(),i(e.lessThan)&&Te()}function qo(){le(!1),ke(),p(e._extends)&&In(),_n()}function Bo(){le(!1),ke(),h(e.eq),O(),L()}function Mo(){if(i(e.string)?Se():y(),p(e.eq)){const t=r.tokens.length-1;$(),r.tokens[t].rhsEndIndex=r.tokens.length}}function Xt(){for(le(!1),h(e.braceL);!p(e.braceR)&&!r.error;)Mo(),p(e.comma)}function zt(){h(e.braceL),Ct(e.braceR)}function Qt(){le(!1),p(e.dot)?Qt():zt()}function bn(){g(c._global)?y():i(e.string)?ie():T(),i(e.braceL)?zt():L()}function Yt(){_t(),h(e.eq),Ho(),L()}function $o(){return g(c._require)&&F()===e.parenL}function Ho(){$o()?Vo():et()}function Vo(){q(c._require),h(e.parenL),i(e.string)||T(),Se(),h(e.parenR)}function Uo(){if(se())return!1;switch(r.type){case e._function:{const t=N(1);f();const s=r.start;return xe(s,!0),S(t),!0}case e._class:{const t=N(1);return Ie(!0,!1),S(t),!0}case e._const:if(i(e._const)&&Ot(c._enum)){const t=N(1);return h(e._const),q(c._enum),r.tokens[r.tokens.length-1].type=e._enum,Xt(),S(t),!0}case e._var:case e._let:{const t=N(1);return Rt(r.type!==e._var),S(t),!0}case e.name:{const t=N(1),s=r.contextualKeyword;let n=!1;return s===c._global?(bn(),n=!0):n=yt(s,!0),S(t),n}default:return!1}}function yn(){return yt(r.contextualKeyword,!0)}function Wo(t){switch(t){case c._declare:{const s=r.tokens.length-1;if(Uo())return r.tokens[s].type=e._declare,!0;break}case c._global:if(i(e.braceL))return zt(),!0;break;default:return yt(t,!1)}return!1}function yt(t,s){switch(t){case c._abstract:if(we(s)&&i(e._class))return r.tokens[r.tokens.length-1].type=e._abstract,Ie(!0,!1),!0;break;case c._enum:if(we(s)&&i(e.name))return r.tokens[r.tokens.length-1].type=e._enum,Xt(),!0;break;case c._interface:if(we(s)&&i(e.name)){const n=N(s?2:1);return qo(),S(n),!0}break;case c._module:if(we(s)){if(i(e.string)){const n=N(s?2:1);return bn(),S(n),!0}else if(i(e.name)){const n=N(s?2:1);return Qt(),S(n),!0}}break;case c._namespace:if(we(s)&&i(e.name)){const n=N(s?2:1);return Qt(),S(n),!0}break;case c._type:if(we(s)&&i(e.name)){const n=N(s?2:1);return Bo(),S(n),!0}break;default:break}return!1}function we(t){return t?(f(),!0):!se()}function Go(){const t=r.snapshot();return It(),Ee(),Co(),h(e.arrow),r.error?(r.restoreFromSnapshot(t),!1):(it(!0),!0)}function Jt(){r.type===e.bitShiftL&&(r.pos-=1,A(e.lessThan)),Te()}function Te(){const t=N(0);for(h(e.lessThan);!i(e.greaterThan)&&!r.error;)O(),p(e.comma);t?(h(e.greaterThan),S(t)):(S(t),Ys(),h(e.greaterThan),r.tokens[r.tokens.length-1].isType=!0)}function wn(){if(i(e.name))switch(r.contextualKeyword){case c._abstract:case c._declare:case c._enum:case c._interface:case c._module:case c._namespace:case c._type:return!0;default:break}return!1}function Xo(t,s){if(i(e.colon)&&tt(e.colon),!i(e.braceL)&&se()){let n=r.tokens.length-1;for(;n>=0&&(r.tokens[n].start>=t||r.tokens[n].type===e._default||r.tokens[n].type===e._export);)r.tokens[n].isType=!0,n--;return}it(!1,s)}function zo(t,s,n){if(!U()&&p(e.bang)){r.tokens[r.tokens.length-1].type=e.nonNullAssertion;return}if(i(e.lessThan)||i(e.bitShiftL)){const o=r.snapshot();if(!s&&Cn()&&Go())return;if(Jt(),!s&&p(e.parenL)?(r.tokens[r.tokens.length-1].subscriptStartIndex=t,pe()):i(e.backQuote)?r1():(r.type===e.greaterThan||r.type!==e.parenL&&r.type&e.IS_EXPRESSION_START&&!U())&&T(),r.error)r.restoreFromSnapshot(o);else return}else!s&&i(e.questionDot)&&F()===e.lessThan&&(f(),r.tokens[t].isOptionalChainStart=!0,r.tokens[r.tokens.length-1].subscriptStartIndex=t,Te(),h(e.parenL),pe());e1(t,s,n)}function Qo(){if(p(e._import))return g(c._type)&&F()!==e.eq&&q(c._type),Yt(),!0;if(p(e.eq))return M(),L(),!0;if(B(c._as))return q(c._namespace),y(),L(),!0;if(g(c._type)){const t=F();(t===e.braceL||t===e.star)&&f()}return!1}function Yo(){if(y(),i(e.comma)||i(e.braceR)){r.tokens[r.tokens.length-1].identifierRole=x.ImportDeclaration;return}if(y(),i(e.comma)||i(e.braceR)){r.tokens[r.tokens.length-1].identifierRole=x.ImportDeclaration,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0;return}if(y(),i(e.comma)||i(e.braceR)){r.tokens[r.tokens.length-3].identifierRole=x.ImportAccess,r.tokens[r.tokens.length-1].identifierRole=x.ImportDeclaration;return}y(),r.tokens[r.tokens.length-3].identifierRole=x.ImportAccess,r.tokens[r.tokens.length-1].identifierRole=x.ImportDeclaration,r.tokens[r.tokens.length-4].isType=!0,r.tokens[r.tokens.length-3].isType=!0,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0}function Jo(){if(y(),i(e.comma)||i(e.braceR)){r.tokens[r.tokens.length-1].identifierRole=x.ExportAccess;return}if(y(),i(e.comma)||i(e.braceR)){r.tokens[r.tokens.length-1].identifierRole=x.ExportAccess,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0;return}if(y(),i(e.comma)||i(e.braceR)){r.tokens[r.tokens.length-3].identifierRole=x.ExportAccess;return}y(),r.tokens[r.tokens.length-3].identifierRole=x.ExportAccess,r.tokens[r.tokens.length-4].isType=!0,r.tokens[r.tokens.length-3].isType=!0,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0}function Zo(){if(g(c._abstract)&&F()===e._class)return r.type=e._abstract,f(),Ie(!0,!0),!0;if(g(c._interface)){const t=N(2);return yt(c._interface,!0),S(t),!0}return!1}function Ko(){if(r.type===e._const){const t=Je();if(t.type===e.name&&t.contextualKeyword===c._enum)return h(e._const),q(c._enum),r.tokens[r.tokens.length-1].type=e._enum,Xt(),!0}return!1}function ei(t){const s=r.tokens.length;Vt([c._abstract,c._readonly,c._declare,c._static,c._override]);const n=r.tokens.length;if(dn()){const a=t?s-1:s;for(let l=a;l<n;l++)r.tokens[l].isType=!0;return!0}return!1}function ti(t){Wo(t)||L()}function si(){const t=B(c._declare);t&&(r.tokens[r.tokens.length-1].type=e._declare);let s=!1;if(i(e.name))if(t){const n=N(2);s=yn(),S(n)}else s=yn();if(!s)if(t){const n=N(2);X(!0),S(n)}else X(!0)}function ni(t){if(t&&(i(e.lessThan)||i(e.bitShiftL))&&Jt(),B(c._implements)){r.tokens[r.tokens.length-1].type=e._implements;const s=N(1);In(),S(s)}}function ri(){ke()}function oi(){ke()}function ii(){const t=N(0);U()||p(e.bang),ye(),S(t)}function ai(){i(e.colon)&&st()}function ci(t,s){return ft?li(t,s):ui(t,s)}function li(t,s){if(!i(e.lessThan))return ne(t,s);const n=r.snapshot();let o=ne(t,s);if(r.error)r.restoreFromSnapshot(n);else return o;return r.type=e.typeParameterStart,It(),o=ne(t,s),o||T(),o}function ui(t,s){if(!i(e.lessThan))return ne(t,s);const n=r.snapshot();It();const o=ne(t,s);if(o||T(),r.error)r.restoreFromSnapshot(n);else return o;return ne(t,s)}function pi(){if(i(e.colon)){const t=r.snapshot();tt(e.colon),G()&&T(),i(e.arrow)||T(),r.error&&r.restoreFromSnapshot(t)}return p(e.arrow)}function hi(){const t=N(0);p(e.question),ye(),S(t)}function fi(){(i(e.lessThan)||i(e.bitShiftL))&&Jt(),Gn()}function mi(){let t=!1,s=!1;for(;;){if(r.pos>=d.length){T("Unterminated JSX contents");return}const n=d.charCodeAt(r.pos);if(n===u.lessThan||n===u.leftCurlyBrace){if(r.pos===r.start){if(n===u.lessThan){r.pos++,A(e.jsxTagStart);return}Js(n);return}A(t&&!s?e.jsxEmptyText:e.jsxText);return}n===u.lineFeed?t=!0:n!==u.space&&n!==u.carriageReturn&&n!==u.tab&&(s=!0),r.pos++}}function di(t){for(r.pos++;;){if(r.pos>=d.length){T("Unterminated string constant");return}if(d.charCodeAt(r.pos)===t){r.pos++;break}r.pos++}A(e.string)}function ki(){let t;do{if(r.pos>d.length){T("Unexpectedly reached the end of input.");return}t=d.charCodeAt(++r.pos)}while(Y[t]||t===u.dash);A(e.jsxName)}function Zt(){z()}function Tn(t){if(Zt(),!p(e.colon)){r.tokens[r.tokens.length-1].identifierRole=t;return}Zt()}function An(){const t=r.tokens.length;Tn(x.Access);let s=!1;for(;i(e.dot);)s=!0,z(),Zt();if(!s){const n=r.tokens[t],o=d.charCodeAt(n.start);o>=u.lowercaseA&&o<=u.lowercaseZ&&(n.identifierRole=null)}}function _i(){switch(r.type){case e.braceL:f(),M(),z();return;case e.jsxTagStart:En(),z();return;case e.string:z();return;default:T("JSX value should be either an expression or a quoted JSX text")}}function gi(){h(e.ellipsis),M()}function xi(t){if(i(e.jsxTagEnd))return!1;An(),R&&Oo();let s=!1;for(;!i(e.slash)&&!i(e.jsxTagEnd)&&!r.error;){if(p(e.braceL)){s=!0,h(e.ellipsis),$(),z();continue}s&&r.end-r.start===3&&d.charCodeAt(r.start)===u.lowercaseK&&d.charCodeAt(r.start+1)===u.lowercaseE&&d.charCodeAt(r.start+2)===u.lowercaseY&&(r.tokens[t].jsxRole=J.KeyAfterPropSpread),Tn(x.ObjectKey),i(e.eq)&&(z(),_i())}const n=i(e.slash);return n&&z(),n}function Ii(){i(e.jsxTagEnd)||An()}function Sn(){const t=r.tokens.length-1;r.tokens[t].jsxRole=J.NoChildren;let s=0;if(!xi(t))for(Ae();;)switch(r.type){case e.jsxTagStart:if(z(),i(e.slash)){z(),Ii(),r.tokens[t].jsxRole!==J.KeyAfterPropSpread&&(s===1?r.tokens[t].jsxRole=J.OneChild:s>1&&(r.tokens[t].jsxRole=J.StaticChildren));return}s++,Sn(),Ae();break;case e.jsxText:s++,Ae();break;case e.jsxEmptyText:Ae();break;case e.braceL:f(),i(e.ellipsis)?(gi(),Ae(),s+=2):(i(e.braceR)||(s++,M()),Ae());break;default:T();return}}function En(){z(),Sn()}function z(){r.tokens.push(new mt),zs(),r.start=r.pos;const t=d.charCodeAt(r.pos);if(Ye[t])ki();else if(t===u.quotationMark||t===u.apostrophe)di(t);else switch(++r.pos,t){case u.greaterThan:A(e.jsxTagEnd);break;case u.lessThan:A(e.jsxTagStart);break;case u.slash:A(e.slash);break;case u.equalsTo:A(e.eq);break;case u.leftCurlyBrace:A(e.braceL);break;case u.dot:A(e.dot);break;case u.colon:A(e.colon);break;default:T()}}function Ae(){r.tokens.push(new mt),r.start=r.pos,mi()}function bi(t){if(i(e.question)){const s=F();if(s===e.colon||s===e.comma||s===e.parenR)return}Nn(t)}function yi(){Vs(e.question),i(e.colon)&&(R?st():C&&ge())}class wi{constructor(s){this.stop=s}}function M(t=!1){if($(t),i(e.comma))for(;p(e.comma);)$(t)}function $(t=!1,s=!1){return R?ci(t,s):C?Na(t,s):ne(t,s)}function ne(t,s){if(i(e._yield))return Bi(),!1;(i(e.parenL)||i(e.name)||i(e._yield))&&(r.potentialArrowAt=r.start);const n=Ti(t);return s&&n1(),r.type&e.IS_ASSIGN?(f(),$(t),!1):n}function Ti(t){return Si(t)?!0:(Ai(t),!1)}function Ai(t){R||C?bi(t):Nn(t)}function Nn(t){p(e.question)&&($(),h(e.colon),$(t))}function Si(t){const s=r.tokens.length;return nt()?!0:(wt(s,-1,t),!1)}function wt(t,s,n){if(R&&(e._in&e.PRECEDENCE_MASK)>s&&!U()&&(B(c._as)||B(c._satisfies))){const a=N(1);O(),S(a),Ys(),wt(t,s,n);return}const o=r.type&e.PRECEDENCE_MASK;if(o>0&&(!n||!i(e._in))&&o>s){const a=r.type;f(),a===e.nullishCoalescing&&(r.tokens[r.tokens.length-1].nullishStartIndex=t);const l=r.tokens.length;nt(),wt(l,a&e.IS_RIGHT_ASSOCIATIVE?o-1:o,n),a===e.nullishCoalescing&&(r.tokens[t].numNullishCoalesceStarts++,r.tokens[r.tokens.length-1].numNullishCoalesceEnds++),wt(t,s,n)}}function nt(){if(R&&!ft&&p(e.lessThan))return Fo(),!1;if(g(c._module)&&Ws()===u.leftCurlyBrace&&!Os())return Mi(),!1;if(r.type&e.IS_PREFIX)return f(),nt(),!1;if(Pn())return!0;for(;r.type&e.IS_POSTFIX&&!G();)r.type===e.preIncDec&&(r.type=e.postIncDec),f();return!1}function Pn(){const t=r.tokens.length;return ie()?!0:(Kt(t),r.tokens.length>t&&r.tokens[t].isOptionalChainStart&&(r.tokens[r.tokens.length-1].isOptionalChainEnd=!0),!1)}function Kt(t,s=!1){C?Ra(t,s):Rn(t,s)}function Rn(t,s=!1){const n=new wi(!1);do Ei(t,s,n);while(!n.stop&&!r.error)}function Ei(t,s,n){R?zo(t,s,n):C?ua(t,s,n):e1(t,s,n)}function e1(t,s,n){if(!s&&p(e.doubleColon))t1(),n.stop=!0,Kt(t,s);else if(i(e.questionDot)){if(r.tokens[t].isOptionalChainStart=!0,s&&F()===e.parenL){n.stop=!0;return}f(),r.tokens[r.tokens.length-1].subscriptStartIndex=t,p(e.bracketL)?(M(),h(e.bracketR)):p(e.parenL)?pe():Tt()}else if(p(e.dot))r.tokens[r.tokens.length-1].subscriptStartIndex=t,Tt();else if(p(e.bracketL))r.tokens[r.tokens.length-1].subscriptStartIndex=t,M(),h(e.bracketR);else if(!s&&i(e.parenL))if(Cn()){const o=r.snapshot(),a=r.tokens.length;f(),r.tokens[r.tokens.length-1].subscriptStartIndex=t;const l=Qe();r.tokens[r.tokens.length-1].contextId=l,pe(),r.tokens[r.tokens.length-1].contextId=l,Ni()&&(r.restoreFromSnapshot(o),n.stop=!0,r.scopeDepth++,Ee(),Pi(a))}else{f(),r.tokens[r.tokens.length-1].subscriptStartIndex=t;const o=Qe();r.tokens[r.tokens.length-1].contextId=o,pe(),r.tokens[r.tokens.length-1].contextId=o}else i(e.backQuote)?r1():n.stop=!0}function Cn(){return r.tokens[r.tokens.length-1].contextualKeyword===c._async&&!G()}function pe(){let t=!0;for(;!p(e.parenR)&&!r.error;){if(t)t=!1;else if(h(e.comma),p(e.parenR))break;Fn(!1)}}function Ni(){return i(e.colon)||i(e.arrow)}function Pi(t){R?ai():C&&Ea(),h(e.arrow),ot(t)}function t1(){const t=r.tokens.length;ie(),Kt(t,!0)}function ie(){if(p(e.modulo))return y(),!1;if(i(e.jsxText)||i(e.jsxEmptyText))return Se(),!1;if(i(e.lessThan)&&ft)return r.type=e.jsxTagStart,En(),f(),!1;const t=r.potentialArrowAt===r.start;switch(r.type){case e.slash:case e.assign:yr();case e._super:case e._this:case e.regexp:case e.num:case e.bigint:case e.decimal:case e.string:case e._null:case e._true:case e._false:return f(),!1;case e._import:return f(),i(e.dot)&&(r.tokens[r.tokens.length-1].type=e.name,f(),y()),!1;case e.name:{const s=r.tokens.length,n=r.start,o=r.contextualKeyword;return y(),o===c._await?(qi(),!1):o===c._async&&i(e._function)&&!G()?(f(),xe(n,!1),!1):t&&o===c._async&&!G()&&i(e.name)?(r.scopeDepth++,le(!1),h(e.arrow),ot(s),!0):i(e._do)&&!G()?(f(),he(),!1):t&&!G()&&i(e.arrow)?(r.scopeDepth++,Mt(!1),h(e.arrow),ot(s),!0):(r.tokens[r.tokens.length-1].identifierRole=x.Access,!1)}case e._do:return f(),he(),!1;case e.parenL:return vn(t);case e.bracketL:return f(),Ln(e.bracketR,!0),!1;case e.braceL:return o1(!1,!1),!1;case e._function:return Ri(),!1;case e.at:_1();case e._class:return Ie(!1),!1;case e._new:return vi(),!1;case e.backQuote:return r1(),!1;case e.doubleColon:return f(),t1(),!1;case e.hash:{const s=Ws();return Ye[s]||s===u.backslash?Tt():f(),!1}default:return T(),!1}}function Tt(){p(e.hash),y()}function Ri(){const t=r.start;y(),p(e.dot)&&y(),xe(t,!1)}function Se(){f()}function At(){h(e.parenL),M(),h(e.parenR)}function vn(t){const s=r.snapshot(),n=r.tokens.length;h(e.parenL);let o=!0;for(;!i(e.parenR)&&!r.error;){if(o)o=!1;else if(h(e.comma),i(e.parenR))break;if(i(e.ellipsis)){ln(!1),n1();break}else $(!1,!0)}return h(e.parenR),t&&Ci()&&s1()?(r.restoreFromSnapshot(s),r.scopeDepth++,Ee(),s1(),ot(n),r.error?(r.restoreFromSnapshot(s),vn(!1),!1):!0):!1}function Ci(){return i(e.colon)||!G()}function s1(){return R?pi():C?Pa():p(e.arrow)}function n1(){(R||C)&&yi()}function vi(){if(h(e._new),p(e.dot)){y();return}Di(),C&&pa(),p(e.parenL)&&Ln(e.parenR)}function Di(){t1(),p(e.questionDot)}function r1(){for(ce(),ce();!i(e.backQuote)&&!r.error;)h(e.dollarBraceL),M(),ce(),ce();f()}function o1(t,s){const n=Qe();let o=!0;for(f(),r.tokens[r.tokens.length-1].contextId=n;!p(e.braceR)&&!r.error;){if(o)o=!1;else if(h(e.comma),p(e.braceR))break;let a=!1;if(i(e.ellipsis)){const l=r.tokens.length;if(cn(),t&&(r.tokens.length===l+2&&Mt(s),p(e.braceR)))break;continue}t||(a=p(e.star)),!t&&g(c._async)?(a&&T(),y(),i(e.colon)||i(e.parenL)||i(e.braceR)||i(e.eq)||i(e.comma)||(i(e.star)&&(f(),a=!0),rt(n))):rt(n),ji(t,s,n)}r.tokens[r.tokens.length-1].contextId=n}function Li(t){return!t&&(i(e.string)||i(e.num)||i(e.bracketL)||i(e.name)||!!(r.type&e.IS_KEYWORD))}function Fi(t,s){const n=r.start;return i(e.parenL)?(t&&T(),i1(n,!1),!0):Li(t)?(rt(s),i1(n,!1),!0):!1}function Oi(t,s){if(p(e.colon)){t?xt(s):$(!1);return}let n;t?r.scopeDepth===0?n=x.ObjectShorthandTopLevelDeclaration:s?n=x.ObjectShorthandBlockScopedDeclaration:n=x.ObjectShorthandFunctionScopedDeclaration:n=x.ObjectShorthand,r.tokens[r.tokens.length-1].identifierRole=n,xt(s,!0)}function ji(t,s,n){R?ri():C&&ba(),Fi(t,n)||Oi(t,s)}function rt(t){C&&k1(),p(e.bracketL)?(r.tokens[r.tokens.length-1].contextId=t,$(),h(e.bracketR),r.tokens[r.tokens.length-1].contextId=t):(i(e.num)||i(e.string)||i(e.bigint)||i(e.decimal)?ie():Tt(),r.tokens[r.tokens.length-1].identifierRole=x.ObjectKey,r.tokens[r.tokens.length-1].contextId=t)}function i1(t,s){const n=Qe();r.scopeDepth++;const o=r.tokens.length;Ee(s,n),Dn(t,n);const l=r.tokens.length;r.scopes.push(new te(o,l,!0)),r.scopeDepth--}function ot(t){it(!0);const s=r.tokens.length;r.scopes.push(new te(t,s,!0)),r.scopeDepth--}function Dn(t,s=0){R?Xo(t,s):C?la(s):it(!1,s)}function it(t,s=0){t&&!i(e.braceL)?$():he(!0,s)}function Ln(t,s=!1){let n=!0;for(;!p(t)&&!r.error;){if(n)n=!1;else if(h(e.comma),p(t))break;Fn(s)}}function Fn(t){t&&i(e.comma)||(i(e.ellipsis)?(cn(),n1()):i(e.question)?f():$(!1,!0))}function y(){f(),r.tokens[r.tokens.length-1].type=e.name}function qi(){nt()}function Bi(){f(),!i(e.semi)&&!G()&&(p(e.star),$())}function Mi(){q(c._module),h(e.braceL),Ct(e.braceR)}function $i(t){return(t.type===e.name||!!(t.type&e.IS_KEYWORD))&&t.contextualKeyword!==c._from}function re(t){const s=N(0);h(t||e.colon),W(),S(s)}function On(){h(e.modulo),q(c._checks),p(e.parenL)&&(M(),h(e.parenR))}function a1(){const t=N(0);h(e.colon),i(e.modulo)?On():(W(),i(e.modulo)&&On()),S(t)}function Hi(){f(),l1(!0)}function Vi(){f(),y(),i(e.lessThan)&&K(),h(e.parenL),d1(),h(e.parenR),a1(),L()}function c1(){i(e._class)?Hi():i(e._function)?Vi():i(e._var)?Ui():B(c._module)?p(e.dot)?Xi():Wi():g(c._type)?zi():g(c._opaque)?Qi():g(c._interface)?Yi():i(e._export)?Gi():T()}function Ui(){f(),Hn(),L()}function Wi(){for(i(e.string)?ie():y(),h(e.braceL);!i(e.braceR)&&!r.error;)i(e._import)?(f(),er()):T();h(e.braceR)}function Gi(){h(e._export),p(e._default)?i(e._function)||i(e._class)?c1():(W(),L()):i(e._var)||i(e._function)||i(e._class)||g(c._opaque)?c1():i(e.star)||i(e.braceL)||g(c._interface)||g(c._type)||g(c._opaque)?Zn():T()}function Xi(){q(c._exports),ge(),L()}function zi(){f(),p1()}function Qi(){f(),h1(!0)}function Yi(){f(),l1()}function l1(t=!1){if(Et(),i(e.lessThan)&&K(),p(e._extends))do St();while(!t&&p(e.comma));if(g(c._mixins)){f();do St();while(p(e.comma))}if(g(c._implements)){f();do St();while(p(e.comma))}Nt(t,!1,t)}function St(){jn(!1),i(e.lessThan)&&_e()}function u1(){l1()}function Et(){y()}function p1(){Et(),i(e.lessThan)&&K(),re(e.eq),L()}function h1(t){q(c._type),Et(),i(e.lessThan)&&K(),i(e.colon)&&re(e.colon),t||re(e.eq),L()}function Ji(){k1(),Hn(),p(e.eq)&&W()}function K(){const t=N(0);i(e.lessThan)||i(e.typeParameterStart)?f():T();do Ji(),i(e.greaterThan)||h(e.comma);while(!i(e.greaterThan)&&!r.error);h(e.greaterThan),S(t)}function _e(){const t=N(0);for(h(e.lessThan);!i(e.greaterThan)&&!r.error;)W(),i(e.greaterThan)||h(e.comma);h(e.greaterThan),S(t)}function Zi(){if(q(c._interface),p(e._extends))do St();while(p(e.comma));Nt(!1,!1,!1)}function f1(){i(e.num)||i(e.string)?ie():y()}function Ki(){F()===e.colon?(f1(),re()):W(),h(e.bracketR),re()}function ea(){f1(),h(e.bracketR),h(e.bracketR),i(e.lessThan)||i(e.parenL)?m1():(p(e.question),re())}function m1(){for(i(e.lessThan)&&K(),h(e.parenL);!i(e.parenR)&&!i(e.ellipsis)&&!r.error;)Pt(),i(e.parenR)||h(e.comma);p(e.ellipsis)&&Pt(),h(e.parenR),re()}function ta(){m1()}function Nt(t,s,n){let o;for(s&&i(e.braceBarL)?(h(e.braceBarL),o=e.braceBarR):(h(e.braceL),o=e.braceR);!i(o)&&!r.error;){if(n&&g(c._proto)){const a=F();a!==e.colon&&a!==e.question&&(f(),t=!1)}if(t&&g(c._static)){const a=F();a!==e.colon&&a!==e.question&&f()}if(k1(),p(e.bracketL))p(e.bracketL)?ea():Ki();else if(i(e.parenL)||i(e.lessThan))ta();else{if(g(c._get)||g(c._set)){const a=F();(a===e.name||a===e.string||a===e.num)&&f()}sa()}na()}h(o)}function sa(){if(i(e.ellipsis)){if(h(e.ellipsis),p(e.comma)||p(e.semi),i(e.braceR))return;W()}else f1(),i(e.lessThan)||i(e.parenL)?m1():(p(e.question),re())}function na(){!p(e.semi)&&!p(e.comma)&&!i(e.braceR)&&!i(e.braceBarR)&&T()}function jn(t){for(t||y();p(e.dot);)y()}function ra(){jn(!0),i(e.lessThan)&&_e()}function oa(){h(e._typeof),qn()}function ia(){for(h(e.bracketL);r.pos<d.length&&!i(e.bracketR)&&(W(),!i(e.bracketR));)h(e.comma);h(e.bracketR)}function Pt(){const t=F();t===e.colon||t===e.question?(y(),p(e.question),re()):W()}function d1(){for(;!i(e.parenR)&&!i(e.ellipsis)&&!r.error;)Pt(),i(e.parenR)||h(e.comma);p(e.ellipsis)&&Pt()}function qn(){let t=!1;const s=r.noAnonFunctionType;switch(r.type){case e.name:{if(g(c._interface)){Zi();return}y(),ra();return}case e.braceL:Nt(!1,!1,!1);return;case e.braceBarL:Nt(!1,!0,!1);return;case e.bracketL:ia();return;case e.lessThan:K(),h(e.parenL),d1(),h(e.parenR),h(e.arrow),W();return;case e.parenL:if(f(),!i(e.parenR)&&!i(e.ellipsis))if(i(e.name)){const n=F();t=n!==e.question&&n!==e.colon}else t=!0;if(t)if(r.noAnonFunctionType=!1,W(),r.noAnonFunctionType=s,r.noAnonFunctionType||!(i(e.comma)||i(e.parenR)&&F()===e.arrow)){h(e.parenR);return}else p(e.comma);d1(),h(e.parenR),h(e.arrow),W();return;case e.minus:f(),Se();return;case e.string:case e.num:case e._true:case e._false:case e._null:case e._this:case e._void:case e.star:f();return;default:if(r.type===e._typeof){oa();return}else if(r.type&e.IS_KEYWORD){f(),r.tokens[r.tokens.length-1].type=e.name;return}}T()}function aa(){for(qn();!G()&&(i(e.bracketL)||i(e.questionDot));)p(e.questionDot),h(e.bracketL),p(e.bracketR)||(W(),h(e.bracketR))}function Bn(){p(e.question)?Bn():aa()}function Mn(){Bn(),!r.noAnonFunctionType&&p(e.arrow)&&W()}function $n(){for(p(e.bitwiseAND),Mn();p(e.bitwiseAND);)Mn()}function ca(){for(p(e.bitwiseOR),$n();p(e.bitwiseOR);)$n()}function W(){ca()}function ge(){re()}function Hn(){y(),i(e.colon)&&ge()}function k1(){(i(e.plus)||i(e.minus))&&(f(),r.tokens[r.tokens.length-1].isType=!0)}function la(t){i(e.colon)&&a1(),it(!1,t)}function ua(t,s,n){if(i(e.questionDot)&&F()===e.lessThan){if(s){n.stop=!0;return}f(),_e(),h(e.parenL),pe();return}else if(!s&&i(e.lessThan)){const o=r.snapshot();if(_e(),h(e.parenL),pe(),r.error)r.restoreFromSnapshot(o);else return}e1(t,s,n)}function pa(){if(i(e.lessThan)){const t=r.snapshot();_e(),r.error&&r.restoreFromSnapshot(t)}}function ha(){if(i(e.name)&&r.contextualKeyword===c._interface){const t=N(0);return f(),u1(),S(t),!0}else if(g(c._enum))return Vn(),!0;return!1}function fa(){return g(c._enum)?(Vn(),!0):!1}function ma(t){if(t===c._declare){if(i(e._class)||i(e.name)||i(e._function)||i(e._var)||i(e._export)){const s=N(1);c1(),S(s)}}else if(i(e.name)){if(t===c._interface){const s=N(1);u1(),S(s)}else if(t===c._type){const s=N(1);p1(),S(s)}else if(t===c._opaque){const s=N(1);h1(!1),S(s)}}L()}function da(){return g(c._type)||g(c._interface)||g(c._opaque)||g(c._enum)}function ka(){return i(e.name)&&(r.contextualKeyword===c._type||r.contextualKeyword===c._interface||r.contextualKeyword===c._opaque||r.contextualKeyword===c._enum)}function _a(){if(g(c._type)){const t=N(1);f(),i(e.braceL)?(I1(),lt()):p1(),S(t)}else if(g(c._opaque)){const t=N(1);f(),h1(!1),S(t)}else if(g(c._interface)){const t=N(1);f(),u1(),S(t)}else X(!0)}function ga(){return i(e.star)||g(c._type)&&F()===e.star}function xa(){if(B(c._type)){const t=N(2);x1(),S(t)}else x1()}function Ia(t){if(t&&i(e.lessThan)&&_e(),g(c._implements)){const s=N(0);f(),r.tokens[r.tokens.length-1].type=e._implements;do Et(),i(e.lessThan)&&_e();while(p(e.comma));S(s)}}function ba(){i(e.lessThan)&&(K(),i(e.parenL)||T())}function ya(){const t=N(0);p(e.question),i(e.colon)&&ge(),S(t)}function wa(){if(i(e._typeof)||g(c._type)){const t=Je();($i(t)||t.type===e.braceL||t.type===e.star)&&f()}}function Ta(){const t=r.contextualKeyword===c._type||r.type===e._typeof;t?f():y(),g(c._as)&&!Ot(c._as)?(y(),t&&!i(e.name)&&!(r.type&e.IS_KEYWORD)||y()):(t&&(i(e.name)||r.type&e.IS_KEYWORD)&&y(),B(c._as)&&y())}function Aa(){if(i(e.lessThan)){const t=N(0);K(),S(t)}}function Sa(){i(e.colon)&&ge()}function Ea(){if(i(e.colon)){const t=r.noAnonFunctionType;r.noAnonFunctionType=!0,ge(),r.noAnonFunctionType=t}}function Na(t,s){if(i(e.lessThan)){const n=r.snapshot();let o=ne(t,s);if(r.error)r.restoreFromSnapshot(n),r.type=e.typeParameterStart;else return o;const a=N(0);if(K(),S(a),o=ne(t,s),o)return!0;T()}return ne(t,s)}function Pa(){if(i(e.colon)){const t=N(0),s=r.snapshot(),n=r.noAnonFunctionType;r.noAnonFunctionType=!0,a1(),r.noAnonFunctionType=n,G()&&T(),i(e.arrow)||T(),r.error&&r.restoreFromSnapshot(s),S(t)}return p(e.arrow)}function Ra(t,s=!1){if(r.tokens[r.tokens.length-1].contextualKeyword===c._async&&i(e.lessThan)){const n=r.snapshot();if(Ca()&&!r.error)return;r.restoreFromSnapshot(n)}Rn(t,s)}function Ca(){r.scopeDepth++;const t=r.tokens.length;return Ee(),s1()?(ot(t),!0):!1}function Vn(){q(c._enum),r.tokens[r.tokens.length-1].type=e._enum,y(),va()}function va(){B(c._of)&&f(),h(e.braceL),Da(),h(e.braceR)}function Da(){for(;!i(e.braceR)&&!r.error&&!p(e.ellipsis);)La(),i(e.braceR)||h(e.comma)}function La(){y(),p(e.eq)&&f()}function Fa(){if(Ct(e.eof),r.scopes.push(new te(0,r.tokens.length,!0)),r.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${r.scopeDepth}`);return new bc(r.tokens,r.scopes)}function X(t){C&&ha()||(i(e.at)&&_1(),Oa(t))}function Oa(t){if(R&&Ko())return;const s=r.type;switch(s){case e._break:case e._continue:qa();return;case e._debugger:Ba();return;case e._do:Ma();return;case e._for:$a();return;case e._function:if(F()===e.dot)break;t||T(),Ua();return;case e._class:t||T(),Ie(!0);return;case e._if:Wa();return;case e._return:Ga();return;case e._switch:Xa();return;case e._throw:za();return;case e._try:Ya();return;case e._let:case e._const:t||T();case e._var:Rt(s!==e._var);return;case e._while:Ja();return;case e.braceL:he();return;case e.semi:Za();return;case e._export:case e._import:{const a=F();if(a===e.parenL||a===e.dot)break;f(),s===e._import?er():Zn();return}case e.name:if(r.contextualKeyword===c._async){const a=r.start,l=r.snapshot();if(f(),i(e._function)&&!G()){h(e._function),xe(a,!0);return}else r.restoreFromSnapshot(l)}else if(r.contextualKeyword===c._using&&!Os()&&F()===e.name){Rt(!0);return}else if(Un()){q(c._await),Rt(!0);return}default:break}const n=r.tokens.length;M();let o=null;if(r.tokens.length===n+1){const a=r.tokens[r.tokens.length-1];a.type===e.name&&(o=a.contextualKeyword)}if(o==null){L();return}p(e.colon)?Ka():ec(o)}function Un(){if(!g(c._await))return!1;const t=r.snapshot();return f(),!g(c._using)||U()||(f(),!i(e.name)||U())?(r.restoreFromSnapshot(t),!1):(r.restoreFromSnapshot(t),!0)}function _1(){for(;i(e.at);)Wn()}function Wn(){if(f(),p(e.parenL))M(),h(e.parenR);else{for(y();p(e.dot);)y();ja()}}function ja(){R?fi():Gn()}function Gn(){p(e.parenL)&&pe()}function qa(){f(),se()||(y(),L())}function Ba(){f(),L()}function Ma(){f(),X(!1),h(e._while),At(),p(e.semi)}function $a(){r.scopeDepth++;const t=r.tokens.length;Va();const s=r.tokens.length;r.scopes.push(new te(t,s,!1)),r.scopeDepth--}function Ha(){return!(!g(c._using)||Ot(c._of))}function Va(){f();let t=!1;if(g(c._await)&&(t=!0,f()),h(e.parenL),i(e.semi)){t&&T(),g1();return}const s=Un();if(s||i(e._var)||i(e._let)||i(e._const)||Ha()){if(s&&q(c._await),f(),zn(!0,r.type!==e._var),i(e._in)||g(c._of)){Xn(t);return}g1();return}if(M(!0),i(e._in)||g(c._of)){Xn(t);return}t&&T(),g1()}function Ua(){const t=r.start;f(),xe(t,!0)}function Wa(){f(),At(),X(!1),p(e._else)&&X(!1)}function Ga(){f(),se()||(M(),L())}function Xa(){f(),At(),r.scopeDepth++;const t=r.tokens.length;for(h(e.braceL);!i(e.braceR)&&!r.error;)if(i(e._case)||i(e._default)){const n=i(e._case);f(),n&&M(),h(e.colon)}else X(!0);f();const s=r.tokens.length;r.scopes.push(new te(t,s,!1)),r.scopeDepth--}function za(){f(),M(),L()}function Qa(){gt(!0),R&&ye()}function Ya(){if(f(),he(),i(e._catch)){f();let t=null;if(i(e.parenL)&&(r.scopeDepth++,t=r.tokens.length,h(e.parenL),Qa(),h(e.parenR)),he(),t!=null){const s=r.tokens.length;r.scopes.push(new te(t,s,!1)),r.scopeDepth--}}p(e._finally)&&he()}function Rt(t){f(),zn(!1,t),L()}function Ja(){f(),At(),X(!1)}function Za(){f()}function Ka(){X(!0)}function ec(t){R?ti(t):C?ma(t):L()}function he(t=!1,s=0){const n=r.tokens.length;r.scopeDepth++,h(e.braceL),s&&(r.tokens[r.tokens.length-1].contextId=s),Ct(e.braceR),s&&(r.tokens[r.tokens.length-1].contextId=s);const o=r.tokens.length;r.scopes.push(new te(n,o,t)),r.scopeDepth--}function Ct(t){for(;!p(t)&&!r.error;)X(!0)}function g1(){h(e.semi),i(e.semi)||M(),h(e.semi),i(e.parenR)||M(),h(e.parenR),X(!1)}function Xn(t){t?B(c._of):f(),M(),h(e.parenR),X(!1)}function zn(t,s){for(;;){if(tc(s),p(e.eq)){const n=r.tokens.length-1;$(t),r.tokens[n].rhsEndIndex=r.tokens.length}if(!p(e.comma))break}}function tc(t){gt(t),R?ii():C&&Sa()}function xe(t,s,n=!1){i(e.star)&&f(),s&&!n&&!i(e.name)&&!i(e._yield)&&T();let o=null;i(e.name)&&(s||(o=r.tokens.length,r.scopeDepth++),le(!1));const a=r.tokens.length;r.scopeDepth++,Ee(),Dn(t);const l=r.tokens.length;r.scopes.push(new te(a,l,!0)),r.scopeDepth--,o!==null&&(r.scopes.push(new te(o,l,!0)),r.scopeDepth--)}function Ee(t=!1,s=0){R?oi():C&&Aa(),h(e.parenL),s&&(r.tokens[r.tokens.length-1].contextId=s),$t(e.parenR,!1,!1,t,s),s&&(r.tokens[r.tokens.length-1].contextId=s)}function Ie(t,s=!1){const n=Qe();f(),r.tokens[r.tokens.length-1].contextId=n,r.tokens[r.tokens.length-1].isExpression=!t;let o=null;t||(o=r.tokens.length,r.scopeDepth++),oc(t,s),ic();const a=r.tokens.length;if(sc(n),!r.error&&(r.tokens[a].contextId=n,r.tokens[r.tokens.length-1].contextId=n,o!==null)){const l=r.tokens.length;r.scopes.push(new te(o,l,!1)),r.scopeDepth--}}function Qn(){return i(e.eq)||i(e.semi)||i(e.braceR)||i(e.bang)||i(e.colon)}function Yn(){return i(e.parenL)||i(e.lessThan)}function sc(t){for(h(e.braceL);!p(e.braceR)&&!r.error;){if(p(e.semi))continue;if(i(e.at)){Wn();continue}const s=r.start;nc(s,t)}}function nc(t,s){R&&Vt([c._declare,c._public,c._protected,c._private,c._override]);let n=!1;if(i(e.name)&&r.contextualKeyword===c._static){if(y(),Yn()){at(t,!1);return}else if(Qn()){vt();return}if(r.tokens[r.tokens.length-1].type=e._static,n=!0,i(e.braceL)){r.tokens[r.tokens.length-1].contextId=s,he();return}}rc(t,n,s)}function rc(t,s,n){if(R&&ei(s))return;if(p(e.star)){ct(n),at(t,!1);return}ct(n);let o=!1;const a=r.tokens[r.tokens.length-1];a.contextualKeyword===c._constructor&&(o=!0),Jn(),Yn()?at(t,o):Qn()?vt():a.contextualKeyword===c._async&&!se()?(r.tokens[r.tokens.length-1].type=e._async,i(e.star)&&f(),ct(n),Jn(),at(t,!1)):(a.contextualKeyword===c._get||a.contextualKeyword===c._set)&&!(se()&&i(e.star))?(a.contextualKeyword===c._get?r.tokens[r.tokens.length-1].type=e._get:r.tokens[r.tokens.length-1].type=e._set,ct(n),at(t,!1)):a.contextualKeyword===c._accessor&&!se()?(ct(n),vt()):se()?vt():T()}function at(t,s){R?ke():C&&i(e.lessThan)&&K(),i1(t,s)}function ct(t){rt(t)}function Jn(){if(R){const t=N(0);p(e.question),S(t)}}function vt(){if(R?(Vs(e.bang),ye()):C&&i(e.colon)&&ge(),i(e.eq)){const t=r.tokens.length;f(),$(),r.tokens[t].rhsEndIndex=r.tokens.length}L()}function oc(t,s=!1){R&&(!t||s)&&g(c._implements)||(i(e.name)&&le(!0),R?ke():C&&i(e.lessThan)&&K())}function ic(){let t=!1;p(e._extends)?(Pn(),t=!0):t=!1,R?ni(t):C&&Ia(t)}function Zn(){const t=r.tokens.length-1;R&&Qo()||(uc()?pc():lc()?(y(),i(e.comma)&&F()===e.star?(h(e.comma),h(e.star),q(c._as),y()):Kn(),lt()):p(e._default)?ac():fc()?cc():(I1(),lt()),r.tokens[t].rhsEndIndex=r.tokens.length)}function ac(){if(R&&Zo()||C&&fa())return;const t=r.start;p(e._function)?xe(t,!0,!0):g(c._async)&&F()===e._function?(B(c._async),p(e._function),xe(t,!0,!0)):i(e._class)?Ie(!0,!0):i(e.at)?(_1(),Ie(!0,!0)):($(),L())}function cc(){R?si():C?_a():X(!0)}function lc(){if(R&&wn())return!1;if(C&&ka())return!1;if(i(e.name))return r.contextualKeyword!==c._async;if(!i(e._default))return!1;const t=jt(),s=Je(),n=s.type===e.name&&s.contextualKeyword===c._from;if(s.type===e.comma)return!0;if(n){const o=d.charCodeAt(Us(t+4));return o===u.quotationMark||o===u.apostrophe}return!1}function Kn(){p(e.comma)&&I1()}function lt(){B(c._from)&&(ie(),sr()),L()}function uc(){return C?ga():i(e.star)}function pc(){C?xa():x1()}function x1(){h(e.star),g(c._as)?hc():lt()}function hc(){f(),r.tokens[r.tokens.length-1].type=e._as,y(),Kn(),lt()}function fc(){return R&&wn()||C&&da()||r.type===e._var||r.type===e._const||r.type===e._let||r.type===e._function||r.type===e._class||g(c._async)||i(e.at)}function I1(){let t=!0;for(h(e.braceL);!p(e.braceR)&&!r.error;){if(t)t=!1;else if(h(e.comma),p(e.braceR))break;mc()}}function mc(){if(R){Jo();return}y(),r.tokens[r.tokens.length-1].identifierRole=x.ExportAccess,B(c._as)&&y()}function dc(){const t=r.snapshot();return q(c._module),B(c._from)?g(c._from)?(r.restoreFromSnapshot(t),!0):(r.restoreFromSnapshot(t),!1):i(e.comma)?(r.restoreFromSnapshot(t),!1):(r.restoreFromSnapshot(t),!0)}function kc(){g(c._module)&&dc()&&f()}function er(){if(R&&i(e.name)&&F()===e.eq){Yt();return}if(R&&g(c._type)){const t=Je();if(t.type===e.name&&t.contextualKeyword!==c._from){if(q(c._type),F()===e.eq){Yt();return}}else(t.type===e.star||t.type===e.braceL)&&q(c._type)}i(e.string)||(kc(),gc(),q(c._from)),ie(),sr(),L()}function _c(){return i(e.name)}function tr(){_t()}function gc(){C&&wa();let t=!0;if(!(_c()&&(tr(),!p(e.comma)))){if(i(e.star)){f(),q(c._as),tr();return}for(h(e.braceL);!p(e.braceR)&&!r.error;){if(t)t=!1;else if(p(e.colon)&&T("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),h(e.comma),p(e.braceR))break;xc()}}}function xc(){if(R){Yo();return}if(C){Ta();return}_t(),g(c._as)&&(r.tokens[r.tokens.length-1].identifierRole=x.ImportAccess,f(),_t())}function sr(){(i(e._with)||g(c._assert)&&!U())&&(f(),o1(!1,!1))}function Ic(){return r.pos===0&&d.charCodeAt(0)===u.numberSign&&d.charCodeAt(1)===u.exclamationMark&&Xs(2),Gs(),Fa()}class bc{constructor(s,n){this.tokens=s,this.scopes=n}}function yc(t,s,n,o){if(o&&n)throw new Error("Cannot combine flow and typescript plugins.");dr(t,s,n,o);const a=Ic();if(r.error)throw hr(r.error);return a}function wc(t){let s=t.currentIndex(),n=0;const o=t.currentToken();do{const a=t.tokens[s];if(a.isOptionalChainStart&&n++,a.isOptionalChainEnd&&n--,n+=a.numNullishCoalesceStarts,n-=a.numNullishCoalesceEnds,a.contextualKeyword===c._await&&a.identifierRole==null&&a.scopeDepth===o.scopeDepth)return!0;s+=1}while(n>0&&s<t.tokens.length);return!1}class ut{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(s,n,o,a,l){this.code=s,this.tokens=n,this.isFlowEnabled=o,this.disableESTransforms=a,this.helperManager=l,ut.prototype.__init.call(this),ut.prototype.__init2.call(this),ut.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(s){this.resultCode=s.resultCode,this.tokenIndex=s.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(s){const n=this.resultCode.slice(s.resultCode.length);return this.resultCode=s.resultCode,n}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(s,n){return this.matches1AtIndex(s,e.name)&&this.tokens[s].contextualKeyword===n}identifierNameAtIndex(s){return this.identifierNameForToken(this.tokens[s])}identifierNameAtRelativeIndex(s){return this.identifierNameForToken(this.tokenAtRelativeIndex(s))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(s){return this.code.slice(s.start,s.end)}rawCodeForToken(s){return this.code.slice(s.start,s.end)}stringValueAtIndex(s){return this.stringValueForToken(this.tokens[s])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(s){return this.code.slice(s.start+1,s.end-1)}matches1AtIndex(s,n){return this.tokens[s].type===n}matches2AtIndex(s,n,o){return this.tokens[s].type===n&&this.tokens[s+1].type===o}matches3AtIndex(s,n,o,a){return this.tokens[s].type===n&&this.tokens[s+1].type===o&&this.tokens[s+2].type===a}matches1(s){return this.tokens[this.tokenIndex].type===s}matches2(s,n){return this.tokens[this.tokenIndex].type===s&&this.tokens[this.tokenIndex+1].type===n}matches3(s,n,o){return this.tokens[this.tokenIndex].type===s&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===o}matches4(s,n,o,a){return this.tokens[this.tokenIndex].type===s&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===o&&this.tokens[this.tokenIndex+3].type===a}matches5(s,n,o,a,l){return this.tokens[this.tokenIndex].type===s&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===o&&this.tokens[this.tokenIndex+3].type===a&&this.tokens[this.tokenIndex+4].type===l}matchesContextual(s){return this.matchesContextualAtIndex(this.tokenIndex,s)}matchesContextIdAndLabel(s,n){return this.matches1(s)&&this.currentToken().contextId===n}previousWhitespaceAndComments(){let s=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&&(s=s.replace(/@flow/g,"")),s}replaceToken(s){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=s,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(s){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=s,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let s=0;for(;!this.isAtEnd();){if(this.matches1(e.braceL))s++;else if(this.matches1(e.braceR)){if(s===0)return;s--}this.removeToken()}}copyExpectedToken(s){if(this.tokens[this.tokenIndex].type!==s)throw new Error(`Expected token ${s}`);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(s){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=s,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 s=this.currentToken();if((s.numNullishCoalesceStarts||s.isOptionalChainStart)&&(s.isAsyncOperation=wc(this)),!this.disableESTransforms){if(s.numNullishCoalesceStarts)for(let n=0;n<s.numNullishCoalesceStarts;n++)s.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";s.isOptionalChainStart&&(s.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===e._delete?s.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):s.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const s=this.currentToken();if(s.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),s.numNullishCoalesceEnds&&!this.disableESTransforms)for(let n=0;n<s.numNullishCoalesceEnds;n++)this.resultCode+="))"}appendCode(s){this.resultCode+=s}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const s=this.currentToken();return this.code.slice(s.start,s.end)}tokenAtRelativeIndex(s){return this.tokens[this.tokenIndex+s]}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 Tc(t,s,n,o){const a=s.snapshot(),l=Ac(s);let m=[];const k=[],b=[];let I=null;const E=[],P=[],_=s.currentToken().contextId;if(_==null)throw new Error("Expected non-null class context ID on class open-brace.");for(s.nextToken();!s.matchesContextIdAndLabel(e.braceR,_);)if(s.matchesContextual(c._constructor)&&!s.currentToken().isType)({constructorInitializerStatements:m,constructorInsertPos:I}=nr(s));else if(s.matches1(e.semi))o||P.push({start:s.currentIndex(),end:s.currentIndex()+1}),s.nextToken();else if(s.currentToken().isType)s.nextToken();else{const w=s.currentIndex();let j=!1,H=!1,ee=!1;for(;Dt(s.currentToken());)s.matches1(e._static)&&(j=!0),s.matches1(e.hash)&&(H=!0),(s.matches1(e._declare)||s.matches1(e._abstract))&&(ee=!0),s.nextToken();if(j&&s.matches1(e.braceL)){b1(s,_);continue}if(H){b1(s,_);continue}if(s.matchesContextual(c._constructor)&&!s.currentToken().isType){({constructorInitializerStatements:m,constructorInsertPos:I}=nr(s));continue}const oe=s.currentIndex();if(Sc(s),s.matches1(e.lessThan)||s.matches1(e.parenL)){b1(s,_);continue}for(;s.currentToken().isType;)s.nextToken();if(s.matches1(e.eq)){const fe=s.currentIndex(),ae=s.currentToken().rhsEndIndex;if(ae==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(s.nextToken();s.currentIndex()<ae;)t.processToken();let Q;j?(Q=n.claimFreeName("__initStatic"),b.push(Q)):(Q=n.claimFreeName("__init"),k.push(Q)),E.push({initializerName:Q,equalsIndex:fe,start:oe,end:s.currentIndex()})}else(!o||ee)&&P.push({start:w,end:s.currentIndex()})}return s.restoreToSnapshot(a),o?{headerInfo:l,constructorInitializerStatements:m,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:I,fields:[],rangesToRemove:P}:{headerInfo:l,constructorInitializerStatements:m,instanceInitializerNames:k,staticInitializerNames:b,constructorInsertPos:I,fields:E,rangesToRemove:P}}function b1(t,s){for(t.nextToken();t.currentToken().contextId!==s;)t.nextToken();for(;Dt(t.tokenAtRelativeIndex(-1));)t.previousToken()}function Ac(t){const s=t.currentToken(),n=s.contextId;if(n==null)throw new Error("Expected context ID on class token.");const o=s.isExpression;if(o==null)throw new Error("Expected isExpression on class token.");let a=null,l=!1;for(t.nextToken(),t.matches1(e.name)&&(a=t.identifierName());!t.matchesContextIdAndLabel(e.braceL,n);)t.matches1(e._extends)&&!t.currentToken().isType&&(l=!0),t.nextToken();return{isExpression:o,className:a,hasSuperclass:l}}function nr(t){const s=[];t.nextToken();const n=t.currentToken().contextId;if(n==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!t.matchesContextIdAndLabel(e.parenR,n);)if(t.currentToken().contextId===n){if(t.nextToken(),Dt(t.currentToken())){for(t.nextToken();Dt(t.currentToken());)t.nextToken();const l=t.currentToken();if(l.type!==e.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const m=t.identifierNameForToken(l);s.push(`this.${m} = ${m}`)}}else t.nextToken();for(t.nextToken();t.currentToken().isType;)t.nextToken();let o=t.currentIndex(),a=!1;for(;!t.matchesContextIdAndLabel(e.braceR,n);){if(!a&&t.matches2(e._super,e.parenL)){t.nextToken();const l=t.currentToken().contextId;if(l==null)throw new Error("Expected a context ID on the super call");for(;!t.matchesContextIdAndLabel(e.parenR,l);)t.nextToken();o=t.currentIndex(),a=!0}t.nextToken()}return t.nextToken(),{constructorInitializerStatements:s,constructorInsertPos:o}}function Dt(t){return[e._async,e._get,e._set,e.plus,e.minus,e._readonly,e._static,e._public,e._private,e._protected,e._override,e._abstract,e.star,e._declare,e.hash].includes(t.type)}function Sc(t){if(t.matches1(e.bracketL)){const n=t.currentToken().contextId;if(n==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!t.matchesContextIdAndLabel(e.bracketR,n);)t.nextToken();t.nextToken()}else t.nextToken()}function rr(t){if(t.removeInitialToken(),t.removeToken(),t.removeToken(),t.removeToken(),t.matches1(e.parenL))t.removeToken(),t.removeToken(),t.removeToken();else for(;t.matches1(e.dot);)t.removeToken(),t.removeToken()}const or={typeDeclarations:new Set,valueDeclarations:new Set};function ir(t){const s=new Set,n=new Set;for(let o=0;o<t.tokens.length;o++){const a=t.tokens[o];a.type===e.name&&Hs(a)&&(a.isType?s.add(t.identifierNameForToken(a)):n.add(t.identifierNameForToken(a)))}return{typeDeclarations:s,valueDeclarations:n}}function ar(t){let s=t.currentIndex();for(;!t.matches1AtIndex(s,e.braceR);)s++;return t.matchesContextualAtIndex(s+1,c._from)&&t.matches1AtIndex(s+2,e.string)}function be(t){(t.matches2(e._with,e.braceL)||t.matches2(e.name,e.braceL)&&t.matchesContextual(c._assert))&&(t.removeToken(),t.removeToken(),t.removeBalancedCode(),t.removeToken())}function cr(t,s,n,o){if(!t||s)return!1;const a=n.currentToken();if(a.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const l=a.rhsEndIndex-n.currentIndex();if(l!==3&&!(l===4&&n.matches1AtIndex(a.rhsEndIndex-1,e.semi)))return!1;const m=n.tokenAtRelativeIndex(2);if(m.type!==e.name)return!1;const k=n.identifierNameForToken(m);return o.typeDeclarations.has(k)&&!o.valueDeclarations.has(k)}class pt extends Z{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(s,n,o,a,l,m,k,b,I,E,P,_){super(),this.rootTransformer=s,this.tokens=n,this.importProcessor=o,this.nameManager=a,this.helperManager=l,this.reactHotLoaderTransformer=m,this.enableLegacyBabel5ModuleInterop=k,this.enableLegacyTypeScriptModuleInterop=b,this.isTypeScriptTransformEnabled=I,this.isFlowTransformEnabled=E,this.preserveDynamicImport=P,this.keepUnusedImports=_,pt.prototype.__init.call(this),pt.prototype.__init2.call(this),pt.prototype.__init3.call(this),this.declarationInfo=I?ir(n):or}getPrefixCode(){let s="";return this.hadExport&&(s+='Object.defineProperty(exports, "__esModule", {value: true});'),s}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
|
|
117
|
+
module.exports = exports.default;
|
|
118
|
+
`:""}process(){return this.tokens.matches3(e._import,e.name,e.eq)?this.processImportEquals():this.tokens.matches1(e._import)?(this.processImport(),!0):this.tokens.matches2(e._export,e.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(e._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(e.name,e.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(e.name)||this.tokens.matches1(e.jsxName)?this.processIdentifier():this.tokens.matches1(e.eq)?this.processAssignment():this.tokens.matches1(e.assign)?this.processComplexAssignment():this.tokens.matches1(e.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const s=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(s)?rr(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(e._import,e.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const n=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${n}require`);const o=this.tokens.currentToken().contextId;if(o==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(e.parenR,o);)this.rootTransformer.processToken();this.tokens.replaceToken(n?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}be(this.tokens),this.tokens.matches1(e.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(c._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,e.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,c._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(e.name)||this.tokens.matches1(e.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(e.string))return!1;let s=!1,n=!1;for(;!this.tokens.matches1(e.string);)(!s&&this.tokens.matches1(e.braceL)||this.tokens.matches1(e.comma))&&(this.tokens.removeToken(),this.tokens.matches1(e.braceR)||(n=!0),(this.tokens.matches2(e.name,e.comma)||this.tokens.matches2(e.name,e.braceR)||this.tokens.matches4(e.name,e.name,e.name,e.comma)||this.tokens.matches4(e.name,e.name,e.name,e.braceR))&&(s=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!s:this.isFlowTransformEnabled?n&&!s:!1}removeRemainingImport(){for(;!this.tokens.matches1(e.string);)this.tokens.removeToken()}processIdentifier(){const s=this.tokens.currentToken();if(s.shadowsGlobal)return!1;if(s.identifierRole===x.ObjectShorthand)return this.processObjectShorthand();if(s.identifierRole!==x.Access)return!1;const n=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(s));if(!n)return!1;let o=this.tokens.currentIndex()+1;for(;o<this.tokens.tokens.length&&this.tokens.tokens[o].type===e.parenR;)o++;return this.tokens.tokens[o].type===e.parenL?this.tokens.tokenAtRelativeIndex(1).type===e.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==e._new?(this.tokens.replaceToken(`${n}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR)):this.tokens.replaceToken(`(0, ${n})`):this.tokens.replaceToken(n),!0}processObjectShorthand(){const s=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(s);return n?(this.tokens.replaceToken(`${s}: ${n}`),!0):!1}processExport(){if(this.tokens.matches2(e._export,e._enum)||this.tokens.matches3(e._export,e._const,e._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(e._export,e._default))return this.tokens.matches3(e._export,e._default,e._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(e._export,e.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(e._export,e.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,c._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(e.braceL)){for(;!this.tokens.matches1(e.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(e._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(c._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,e.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),be(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(e._export,e._var)||this.tokens.matches2(e._export,e._let)||this.tokens.matches2(e._export,e._const))return this.processExportVar(),!0;if(this.tokens.matches2(e._export,e._function)||this.tokens.matches3(e._export,e.name,e._function))return this.processExportFunction(),!0;if(this.tokens.matches2(e._export,e._class)||this.tokens.matches3(e._export,e._abstract,e._class)||this.tokens.matches2(e._export,e.at))return this.processExportClass(),!0;if(this.tokens.matches2(e._export,e.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const s=this.tokens.currentIndex(),n=this.tokens.tokens[s-1];if(n.isType||n.type!==e.name||n.shadowsGlobal||s>=2&&this.tokens.matches1AtIndex(s-2,e.dot)||s>=2&&[e._var,e._let,e._const].includes(this.tokens.tokens[s-2].type))return!1;const o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return o?(this.tokens.copyToken(),this.tokens.appendCode(` ${o} =`),!0):!1}processComplexAssignment(){const s=this.tokens.currentIndex(),n=this.tokens.tokens[s-1];if(n.type!==e.name||n.shadowsGlobal||s>=2&&this.tokens.matches1AtIndex(s-2,e.dot))return!1;const o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return o?(this.tokens.appendCode(` = ${o}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const s=this.tokens.currentIndex(),n=this.tokens.tokens[s+1];if(n.type!==e.name||n.shadowsGlobal||s+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(s+2,e.dot)||this.tokens.matches1AtIndex(s+2,e.bracketL)||this.tokens.matches1AtIndex(s+2,e.parenL)))return!1;const o=this.tokens.identifierNameForToken(n),a=this.importProcessor.resolveExportBinding(o);return a?(this.tokens.appendCode(`${a} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const s=this.tokens.currentIndex(),n=this.tokens.tokens[s],o=this.tokens.tokens[s+1];if(n.type!==e.name||n.shadowsGlobal||s>=1&&this.tokens.matches1AtIndex(s-1,e.dot))return!1;const a=this.tokens.identifierNameForToken(n),l=this.importProcessor.resolveExportBinding(a);if(!l)return!1;const m=this.tokens.rawCodeForToken(o),k=this.importProcessor.getIdentifierReplacement(a)||a;if(m==="++")this.tokens.replaceToken(`(${k} = ${l} = ${k} + 1, ${k} - 1)`);else if(m==="--")this.tokens.replaceToken(`(${k} = ${l} = ${k} - 1, ${k} + 1)`);else throw new Error(`Unexpected operator: ${m}`);return this.tokens.removeToken(),!0}processExportDefault(){let s=!0;if(this.tokens.matches4(e._export,e._default,e._function,e.name)||this.tokens.matches5(e._export,e._default,e.name,e._function,e.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,c._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${n};`)}else if(this.tokens.matches4(e._export,e._default,e._class,e.name)||this.tokens.matches5(e._export,e._default,e._abstract,e._class,e.name)||this.tokens.matches3(e._export,e._default,e.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(e._abstract)&&this.tokens.removeToken();const n=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${n};`)}else if(cr(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))s=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${n}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");s&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(e.at);)if(this.tokens.copyToken(),this.tokens.matches1(e.parenL))this.tokens.copyExpectedToken(e.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR);else{for(this.tokens.copyExpectedToken(e.name);this.tokens.matches1(e.dot);)this.tokens.copyExpectedToken(e.dot),this.tokens.copyExpectedToken(e.name);this.tokens.matches1(e.parenL)&&(this.tokens.copyExpectedToken(e.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let s=this.tokens.currentIndex();if(s++,s++,!this.tokens.matches1AtIndex(s,e.name))return!1;for(s++;s<this.tokens.tokens.length&&this.tokens.tokens[s].isType;)s++;return!!this.tokens.matches1AtIndex(s,e.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const s=this.tokens.identifierName();for(;!this.tokens.matches1(e.eq);)this.rootTransformer.processToken();const n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${s} = ${s}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const s=this.tokens.matches1(e.braceL);s&&this.tokens.appendCode("(");let n=0;for(;;)if(this.tokens.matches1(e.braceL)||this.tokens.matches1(e.dollarBraceL)||this.tokens.matches1(e.bracketL))n++,this.tokens.copyToken();else if(this.tokens.matches1(e.braceR)||this.tokens.matches1(e.bracketR))n--,this.tokens.copyToken();else{if(n===0&&!this.tokens.matches1(e.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(e.eq)){const o=this.tokens.currentToken().rhsEndIndex;if(o==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<o;)this.rootTransformer.processToken()}else{const o=this.tokens.currentToken();if($s(o)){const a=this.tokens.identifierName();let l=this.importProcessor.getIdentifierReplacement(a);if(l===null)throw new Error(`Expected a replacement for ${a} in \`export var\` syntax.`);br(o)&&(l=`${a}: ${l}`),this.tokens.replaceToken(l)}else this.rootTransformer.processToken()}}if(s){const o=this.tokens.currentToken().rhsEndIndex;if(o==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<o;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const s=this.processNamedFunction();this.tokens.appendCode(` exports.${s} = ${s};`)}processNamedFunction(){if(this.tokens.matches1(e._function))this.tokens.copyToken();else if(this.tokens.matches2(e.name,e._function)){if(!this.tokens.matchesContextual(c._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(e.star)&&this.tokens.copyToken(),!this.tokens.matches1(e.name))throw new Error("Expected identifier for exported function name.");const s=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(e.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(e.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.braceR),s}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(e._abstract)&&this.tokens.removeToken();const s=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${s} = ${s};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const s=ar(this.tokens),n=[];for(;;){if(this.tokens.matches1(e.braceR)){this.tokens.removeToken();break}const o=Ze(this.tokens);for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();if(!(o.isType||!s&&this.shouldElideExportedIdentifier(o.leftName))){const l=o.rightName;l==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const m=o.leftName,k=this.importProcessor.getIdentifierReplacement(m);n.push(`exports.${l} = ${k||m};`)}if(this.tokens.matches1(e.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(e.comma,e.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(e.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(c._from)){this.tokens.removeToken();const o=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(o)),be(this.tokens)}else this.tokens.appendCode(n.join(" "));this.tokens.matches1(e.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(e.string);)this.tokens.removeToken();const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),be(this.tokens),this.tokens.matches1(e.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(s){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(s)}}class Ec extends Z{constructor(s,n,o,a,l,m,k,b){super(),this.tokens=s,this.nameManager=n,this.helperManager=o,this.reactHotLoaderTransformer=a,this.isTypeScriptTransformEnabled=l,this.isFlowTransformEnabled=m,this.keepUnusedImports=k,this.nonTypeIdentifiers=l&&!k?rn(s,b):new Set,this.declarationInfo=l&&!k?ir(s):or,this.injectCreateRequireForImportRequire=!!b.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(e._import,e.name,e.eq))return this.processImportEquals();if(this.tokens.matches4(e._import,e.name,e.name,e.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,c._type)){this.tokens.removeInitialToken();for(let s=0;s<7;s++)this.tokens.removeToken();return!0}if(this.tokens.matches2(e._export,e.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(e._export,e._import,e.name,e.name,e.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,c._type)){this.tokens.removeInitialToken();for(let s=0;s<8;s++)this.tokens.removeToken();return!0}if(this.tokens.matches1(e._import))return this.processImport();if(this.tokens.matches2(e._export,e._default))return this.processExportDefault();if(this.tokens.matches2(e._export,e.braceL))return this.processNamedExports();if(this.tokens.matches2(e._export,e.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,c._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(e.braceL)){for(;!this.tokens.matches1(e.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(e._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(c._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,e.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),be(this.tokens)),!0}return!1}processImportEquals(){const s=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(s)?rr(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(e._import,e.parenL))return!1;const s=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(s);!this.tokens.matches1(e.string);)this.tokens.removeToken();this.tokens.removeToken(),be(this.tokens),this.tokens.matches1(e.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(e._import),this.tokens.matchesContextual(c._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,e.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,c._from))return!0;if(this.tokens.matches1(e.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(c._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,c._from)&&this.tokens.copyToken();let s=!1,n=!1,o=!1;if(this.tokens.matches1(e.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(e.comma)&&this.tokens.removeToken()):(s=!0,this.tokens.copyToken(),this.tokens.matches1(e.comma)&&(o=!0,this.tokens.removeToken()))),this.tokens.matches1(e.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(o&&this.tokens.appendCode(","),s=!0,this.tokens.copyExpectedToken(e.star),this.tokens.copyExpectedToken(e.name),this.tokens.copyExpectedToken(e.name));else if(this.tokens.matches1(e.braceL)){for(o&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(e.braceR);){n=!0;const a=Ze(this.tokens);if(a.isType||this.shouldAutomaticallyElideImportedName(a.rightName)){for(;this.tokens.currentIndex()<a.endIndex;)this.tokens.removeToken();this.tokens.matches1(e.comma)&&this.tokens.removeToken()}else{for(s=!0;this.tokens.currentIndex()<a.endIndex;)this.tokens.copyToken();this.tokens.matches1(e.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(e.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!s:this.isFlowTransformEnabled?n&&!s:!1}shouldAutomaticallyElideImportedName(s){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(s)}processExportDefault(){if(cr(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(e._export,e._default,e._function,e.name)||this.tokens.matches5(e._export,e._default,e.name,e._function,e.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,c._async)||this.tokens.matches4(e._export,e._default,e._class,e.name)||this.tokens.matches5(e._export,e._default,e._abstract,e._class,e.name))&&this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${n}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(e._export),this.tokens.copyExpectedToken(e.braceL);const s=ar(this.tokens);let n=!1;for(;!this.tokens.matches1(e.braceR);){const o=Ze(this.tokens);if(o.isType||!s&&this.shouldElideExportedName(o.leftName)){for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();this.tokens.matches1(e.comma)&&this.tokens.removeToken()}else{for(n=!0;this.tokens.currentIndex()<o.endIndex;)this.tokens.copyToken();this.tokens.matches1(e.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(e.braceR),!this.keepUnusedImports&&s&&!n&&(this.tokens.removeToken(),this.tokens.removeToken(),be(this.tokens)),!0}shouldElideExportedName(s){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(s)&&!this.declarationInfo.valueDeclarations.has(s)}}class Nc extends Z{constructor(s,n,o){super(),this.rootTransformer=s,this.tokens=n,this.isImportsTransformEnabled=o}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(e._enum)?(this.processEnum(),!0):this.tokens.matches2(e._export,e._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(e._export,e._default,e._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const s=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${s} = ${s};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const s=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${s};`):this.tokens.appendCode(` export default ${s};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(e.name);let s=!1;this.tokens.matchesContextual(c._of)&&(this.tokens.removeToken(),s=this.tokens.matchesContextual(c._symbol),this.tokens.removeToken());const n=this.tokens.matches3(e.braceL,e.name,e.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const o=!s&&!n;for(this.tokens.replaceTokenTrimmingLeftWhitespace(o?".Mirrored([":"({");!this.tokens.matches1(e.braceR);){if(this.tokens.matches1(e.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(s,n),this.tokens.matches1(e.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(o?"]);":"});")}processEnumElement(s,n){if(s){const o=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${o}")`)}else n?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function Pc(t){let s,n=t[0],o=1;for(;o<t.length;){const a=t[o],l=t[o+1];if(o+=2,(a==="optionalAccess"||a==="optionalCall")&&n==null)return;a==="access"||a==="optionalAccess"?(s=n,n=l(n)):(a==="call"||a==="optionalCall")&&(n=l((...m)=>n.call(s,...m)),s=void 0)}return n}const Lt="jest",Rc=["mock","unmock","enableAutomock","disableAutomock"];class y1 extends Z{__init(){this.hoistedFunctionNames=[]}constructor(s,n,o,a){super(),this.rootTransformer=s,this.tokens=n,this.nameManager=o,this.importProcessor=a,y1.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(e.name,e.dot,e.name,e.parenL)&&this.tokens.identifierName()===Lt?Pc([this,"access",s=>s.importProcessor,"optionalAccess",s=>s.getGlobalNames,"call",s=>s(),"optionalAccess",s=>s.has,"call",s=>s(Lt)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(s=>`${s}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let s=!1;for(;this.tokens.matches3(e.dot,e.name,e.parenL);){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Rc.includes(n)){const a=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(a),this.tokens.replaceToken(`function ${a}(){${Lt}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR),this.tokens.appendCode(";}"),s=!1}else s?this.tokens.copyToken():this.tokens.replaceToken(`${Lt}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR),s=!0}return!0}}class Cc extends Z{constructor(s){super(),this.tokens=s}process(){if(this.tokens.matches1(e.num)){const s=this.tokens.currentTokenCode();if(s.includes("_"))return this.tokens.replaceToken(s.replace(/_/g,"")),!0}return!1}}class vc extends Z{constructor(s,n){super(),this.tokens=s,this.nameManager=n}process(){return this.tokens.matches2(e._catch,e.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class Dc extends Z{constructor(s,n){super(),this.tokens=s,this.nameManager=n}process(){if(this.tokens.matches1(e.nullishCoalescing)){const o=this.tokens.currentToken();return this.tokens.tokens[o.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(e._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const n=this.tokens.currentToken().subscriptStartIndex;if(n!=null&&this.tokens.tokens[n].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==e._super){const o=this.nameManager.claimFreeName("_");let a;if(n>0&&this.tokens.matches1AtIndex(n-1,e._delete)&&this.isLastSubscriptInChain()?a=`${o} => delete ${o}`:a=`${o} => ${o}`,this.tokens.tokens[n].isAsyncOperation&&(a=`async ${a}`),this.tokens.matches2(e.questionDot,e.parenL)||this.tokens.matches2(e.questionDot,e.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${a}`);else if(this.tokens.matches2(e.questionDot,e.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${a}`);else if(this.tokens.matches1(e.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${a}.`);else if(this.tokens.matches1(e.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${a}.`);else if(this.tokens.matches1(e.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${a}[`);else if(this.tokens.matches1(e.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${a}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let s=0;for(let n=this.tokens.currentIndex()+1;;n++){if(n>=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[n].isOptionalChainStart?s++:this.tokens.tokens[n].isOptionalChainEnd&&s--,s<0)return!0;if(s===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let s=0,n=this.tokens.currentIndex()-1;for(;;){if(n<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?s--:this.tokens.tokens[n].isOptionalChainEnd&&s++,s<0)return!1;if(s===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return this.tokens.tokens[n-1].type===e._super;n--}}}class Lc extends Z{constructor(s,n,o,a){super(),this.rootTransformer=s,this.tokens=n,this.importProcessor=o,this.options=a}process(){const s=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return n?this.tokens.replaceToken(`(0, ${n})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(s),!0}if(this.tokens.matches3(e.name,e.dot,e.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return n?(this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(s),!0}return!1}tryProcessCreateClassCall(s){const n=this.findDisplayName(s);n&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(e.parenL),this.tokens.copyExpectedToken(e.braceL),this.tokens.appendCode(`displayName: '${n}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.braceR),this.tokens.copyExpectedToken(e.parenR))}findDisplayName(s){return s<2?null:this.tokens.matches2AtIndex(s-2,e.name,e.eq)?this.tokens.identifierNameAtIndex(s-2):s>=2&&this.tokens.tokens[s-2].identifierRole===x.ObjectKey?this.tokens.identifierNameAtIndex(s-2):this.tokens.matches2AtIndex(s-2,e._export,e._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const n=(this.options.filePath||"unknown").split("/"),o=n[n.length-1],a=o.lastIndexOf("."),l=a===-1?o:o.slice(0,a);return l==="index"&&n[n.length-2]?n[n.length-2]:l}classNeedsDisplayName(){let s=this.tokens.currentIndex();if(!this.tokens.matches2(e.parenL,e.braceL))return!1;const n=s+1,o=this.tokens.tokens[n].contextId;if(o==null)throw new Error("Expected non-null context ID on object open-brace.");for(;s<this.tokens.tokens.length;s++){const a=this.tokens.tokens[s];if(a.type===e.braceR&&a.contextId===o){s++;break}if(this.tokens.identifierNameAtIndex(s)==="displayName"&&this.tokens.tokens[s].identifierRole===x.ObjectKey&&a.contextId===o)return!1}if(s===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(s,e.parenR)||this.tokens.matches2AtIndex(s,e.comma,e.parenR)}}class w1 extends Z{__init(){this.extractedDefaultExportName=null}constructor(s,n){super(),this.tokens=s,this.filePath=n,w1.prototype.__init.call(this)}setExtractedDefaultExportName(s){this.extractedDefaultExportName=s}getPrefixCode(){return`
|
|
119
|
+
(function () {
|
|
120
|
+
var enterModule = require('react-hot-loader').enterModule;
|
|
121
|
+
enterModule && enterModule(module);
|
|
122
|
+
})();`.replace(/\s+/g," ").trim()}getSuffixCode(){const s=new Set;for(const o of this.tokens.tokens)!o.isType&&Hs(o)&&o.identifierRole!==x.ImportDeclaration&&s.add(this.tokens.identifierNameForToken(o));const n=Array.from(s).map(o=>({variableName:o,uniqueLocalName:o}));return this.extractedDefaultExportName&&n.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
|
|
123
|
+
;(function () {
|
|
124
|
+
var reactHotLoader = require('react-hot-loader').default;
|
|
125
|
+
var leaveModule = require('react-hot-loader').leaveModule;
|
|
126
|
+
if (!reactHotLoader) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
${n.map(({variableName:o,uniqueLocalName:a})=>` reactHotLoader.register(${o}, "${a}", ${JSON.stringify(this.filePath||"")});`).join(`
|
|
130
|
+
`)}
|
|
131
|
+
leaveModule(module);
|
|
132
|
+
})();`}process(){return!1}}const Fc=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 lr(t){if(t.length===0||!Ye[t.charCodeAt(0)])return!1;for(let s=1;s<t.length;s++)if(!Y[t.charCodeAt(s)])return!1;return!Fc.has(t)}class Oc extends Z{constructor(s,n,o){super(),this.rootTransformer=s,this.tokens=n,this.isImportsTransformEnabled=o}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(e._public)||this.tokens.matches1(e._protected)||this.tokens.matches1(e._private)||this.tokens.matches1(e._abstract)||this.tokens.matches1(e._readonly)||this.tokens.matches1(e._override)||this.tokens.matches1(e.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(e._enum)||this.tokens.matches2(e._const,e._enum)?(this.processEnum(),!0):this.tokens.matches2(e._export,e._enum)||this.tokens.matches3(e._export,e._const,e._enum)?(this.processEnum(!0),!0):!1}processEnum(s=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(e._const)||this.tokens.matches1(e._enum);)this.tokens.removeToken();const n=this.tokens.identifierName();this.tokens.removeToken(),s&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${n}; (function (${n})`),this.tokens.copyExpectedToken(e.braceL),this.processEnumBody(n),this.tokens.copyExpectedToken(e.braceR),s&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`):this.tokens.appendCode(`)(${n} || (${n} = {}));`)}processEnumBody(s){let n=null;for(;!this.tokens.matches1(e.braceR);){const{nameStringCode:o,variableName:a}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(e.eq,e.string,e.comma)||this.tokens.matches3(e.eq,e.string,e.braceR)?this.processStringLiteralEnumMember(s,o,a):this.tokens.matches1(e.eq)?this.processExplicitValueEnumMember(s,o,a):this.processImplicitValueEnumMember(s,o,a,n),this.tokens.matches1(e.comma)&&this.tokens.removeToken(),a!=null?n=a:n=`${s}[${o}]`}}extractEnumKeyInfo(s){if(s.type===e.name){const n=this.tokens.identifierNameForToken(s);return{nameStringCode:`"${n}"`,variableName:lr(n)?n:null}}else if(s.type===e.string){const n=this.tokens.stringValueForToken(s);return{nameStringCode:this.tokens.code.slice(s.start,s.end),variableName:lr(n)?n:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(s,n,o){o!=null?(this.tokens.appendCode(`const ${o}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${s}[${n}] = ${o};`)):(this.tokens.appendCode(`${s}[${n}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(s,n,o){const a=this.tokens.currentToken().rhsEndIndex;if(a==null)throw new Error("Expected rhsEndIndex on enum assign.");if(o!=null){for(this.tokens.appendCode(`const ${o}`),this.tokens.copyToken();this.tokens.currentIndex()<a;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${s}[${s}[${n}] = ${o}] = ${n};`)}else{for(this.tokens.appendCode(`${s}[${s}[${n}]`),this.tokens.copyToken();this.tokens.currentIndex()<a;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${n};`)}}processImplicitValueEnumMember(s,n,o,a){let l=a!=null?`${a} + 1`:"0";o!=null&&(this.tokens.appendCode(`const ${o} = ${l}; `),l=o),this.tokens.appendCode(`${s}[${s}[${n}] = ${l}] = ${n};`)}}class Ft{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(s,n,o,a){Ft.prototype.__init.call(this),Ft.prototype.__init2.call(this),this.nameManager=s.nameManager,this.helperManager=s.helperManager;const{tokenProcessor:l,importProcessor:m}=s;this.tokens=l,this.isImportsTransformEnabled=n.includes("imports"),this.isReactHotLoaderTransformEnabled=n.includes("react-hot-loader"),this.disableESTransforms=!!a.disableESTransforms,a.disableESTransforms||(this.transformers.push(new Dc(l,this.nameManager)),this.transformers.push(new Cc(l)),this.transformers.push(new vc(l,this.nameManager))),n.includes("jsx")&&(a.jsxRuntime!=="preserve"&&this.transformers.push(new me(this,l,m,this.nameManager,a)),this.transformers.push(new Lc(this,l,m,a)));let k=null;if(n.includes("react-hot-loader")){if(!a.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");k=new w1(l,a.filePath),this.transformers.push(k)}if(n.includes("imports")){if(m===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new pt(this,l,m,this.nameManager,this.helperManager,k,o,!!a.enableLegacyTypeScriptModuleInterop,n.includes("typescript"),n.includes("flow"),!!a.preserveDynamicImport,!!a.keepUnusedImports))}else this.transformers.push(new Ec(l,this.nameManager,this.helperManager,k,n.includes("typescript"),n.includes("flow"),!!a.keepUnusedImports,a));n.includes("flow")&&this.transformers.push(new Nc(this,l,n.includes("imports"))),n.includes("typescript")&&this.transformers.push(new Oc(this,l,n.includes("imports"))),n.includes("jest")&&this.transformers.push(new y1(this,l,this.nameManager,m))}transform(){this.tokens.reset(),this.processBalancedCode();let n=this.isImportsTransformEnabled?'"use strict";':"";for(const m of this.transformers)n+=m.getPrefixCode();n+=this.helperManager.emitHelpers(),n+=this.generatedVariables.map(m=>` var ${m};`).join("");for(const m of this.transformers)n+=m.getHoistedCode();let o="";for(const m of this.transformers)o+=m.getSuffixCode();const a=this.tokens.finish();let{code:l}=a;if(l.startsWith("#!")){let m=l.indexOf(`
|
|
133
|
+
`);return m===-1&&(m=l.length,l+=`
|
|
134
|
+
`),{code:l.slice(0,m+1)+n+l.slice(m+1)+o,mappings:this.shiftMappings(a.mappings,n.length)}}else return{code:n+l+o,mappings:this.shiftMappings(a.mappings,n.length)}}processBalancedCode(){let s=0,n=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(e.braceL)||this.tokens.matches1(e.dollarBraceL))s++;else if(this.tokens.matches1(e.braceR)){if(s===0)return;s--}if(this.tokens.matches1(e.parenL))n++;else if(this.tokens.matches1(e.parenR)){if(n===0)return;n--}this.processToken()}}processToken(){if(this.tokens.matches1(e._class)){this.processClass();return}for(const s of this.transformers)if(s.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(e._class,e.name))throw new Error("Expected identifier for exported class name.");const s=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),s}processClass(){const s=Tc(this,this.tokens,this.nameManager,this.disableESTransforms),n=(s.headerInfo.isExpression||!s.headerInfo.className)&&s.staticInitializerNames.length+s.instanceInitializerNames.length>0;let o=s.headerInfo.className;n&&(o=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(o),this.tokens.appendCode(` (${o} =`));const l=this.tokens.currentToken().contextId;if(l==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(e._class);!this.tokens.matchesContextIdAndLabel(e.braceL,l);)this.processToken();this.processClassBody(s,o);const m=s.staticInitializerNames.map(k=>`${o}.${k}()`);n?this.tokens.appendCode(`, ${m.map(k=>`${k}, `).join("")}${o})`):s.staticInitializerNames.length>0&&this.tokens.appendCode(` ${m.map(k=>`${k};`).join(" ")}`)}processClassBody(s,n){const{headerInfo:o,constructorInsertPos:a,constructorInitializerStatements:l,fields:m,instanceInitializerNames:k,rangesToRemove:b}=s;let I=0,E=0;const P=this.tokens.currentToken().contextId;if(P==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(e.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const _=l.length+k.length>0;if(a===null&&_){const w=this.makeConstructorInitCode(l,k,n);if(o.hasSuperclass){const j=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${j}) { super(...${j}); ${w}; }`)}else this.tokens.appendCode(`constructor() { ${w}; }`)}for(;!this.tokens.matchesContextIdAndLabel(e.braceR,P);)if(I<m.length&&this.tokens.currentIndex()===m[I].start){let w=!1;for(this.tokens.matches1(e.bracketL)?this.tokens.copyTokenWithPrefix(`${m[I].initializerName}() {this`):this.tokens.matches1(e.string)||this.tokens.matches1(e.num)?(this.tokens.copyTokenWithPrefix(`${m[I].initializerName}() {this[`),w=!0):this.tokens.copyTokenWithPrefix(`${m[I].initializerName}() {this.`);this.tokens.currentIndex()<m[I].end;)w&&this.tokens.currentIndex()===m[I].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),I++}else if(E<b.length&&this.tokens.currentIndex()>=b[E].start){for(this.tokens.currentIndex()<b[E].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<b[E].end;)this.tokens.removeToken();E++}else this.tokens.currentIndex()===a?(this.tokens.copyToken(),_&&this.tokens.appendCode(`;${this.makeConstructorInitCode(l,k,n)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(e.braceR)}makeConstructorInitCode(s,n,o){return[...s,...n.map(a=>`${o}.prototype.${a}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(e.parenR,e.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let s=this.tokens.currentIndex()+1;for(;this.tokens.tokens[s].isType;)s++;if(this.tokens.matches1AtIndex(s,e.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<s;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(c._async)&&!this.tokens.matches1(e._async))return!1;const s=this.tokens.tokenAtRelativeIndex(1);if(s.type!==e.lessThan||!s.isType)return!1;let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType;)n++;if(this.tokens.matches1AtIndex(n,e.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<n;)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(s,n){for(let o=0;o<s.length;o++){const a=s[o];a!==void 0&&(s[o]=a+n)}return s}}var jc=ze(18589);function qc(t,s){if(s.length===0)return"";const n=Object.keys(s[0]).filter(_=>_!=="type"&&_!=="value"&&_!=="start"&&_!=="end"&&_!=="loc"),o=Object.keys(s[0].type).filter(_=>_!=="label"&&_!=="keyword"),a=["Location","Label","Raw",...n,...o],l=new jc.ZP(t),m=[a,...s.map(b)],k=a.map(()=>0);for(const _ of m)for(let w=0;w<_.length;w++)k[w]=Math.max(k[w],_[w].length);return m.map(_=>_.map((w,j)=>w.padEnd(k[j])).join(" ")).join(`
|
|
135
|
+
`);function b(_){const w=t.slice(_.start,_.end);return[E(_.start,_.end),Ls(_.type),Bc(String(w),14),...n.map(j=>I(_[j],j)),...o.map(j=>I(_.type[j],j))]}function I(_,w){return _===!0?w:_===!1||_===null?"":String(_)}function E(_,w){return`${P(_)}-${P(w)}`}function P(_){const w=l.locationForIndex(_);return w?`${w.line+1}:${w.column+1}`:"Unknown"}}function Bc(t,s){return t.length>s?`${t.slice(0,s-3)}...`:t}function Mc(t){const s=new Set;for(let n=0;n<t.tokens.length;n++)t.matches1AtIndex(n,e._import)&&!t.matches3AtIndex(n,e._import,e.name,e.eq)&&$c(t,n,s);return s}function $c(t,s,n){s++,!t.matches1AtIndex(s,e.parenL)&&(t.matches1AtIndex(s,e.name)&&(n.add(t.identifierNameAtIndex(s)),s++,t.matches1AtIndex(s,e.comma)&&s++),t.matches1AtIndex(s,e.star)&&(s+=2,n.add(t.identifierNameAtIndex(s)),s++),t.matches1AtIndex(s,e.braceL)&&(s++,Hc(t,s,n)))}function Hc(t,s,n){for(;;){if(t.matches1AtIndex(s,e.braceR))return;const o=Ze(t,s);if(s=o.endIndex,o.isType||n.add(o.rightName),t.matches2AtIndex(s,e.comma,e.braceR))return;if(t.matches1AtIndex(s,e.braceR))return;if(t.matches1AtIndex(s,e.comma))s++;else throw new Error(`Unexpected token: ${JSON.stringify(t.tokens[s])}`)}}function Vc(){return"3.35.0"}function Uc(t,s){so(s);try{const n=ur(t,s),a=new Ft(n,s.transforms,!!s.enableLegacyBabel5ModuleInterop,s).transform();let l={code:a.code};if(s.sourceMapOptions){if(!s.filePath)throw new Error("filePath must be specified when generating a source map.");l={...l,sourceMap:Wr(a,s.filePath,s.sourceMapOptions,t,n.tokenProcessor.tokens)}}return l}catch(n){throw s.filePath&&(n.message=`Error transforming ${s.filePath}: ${n.message}`),n}}function Wc(t,s){const n=ur(t,s).tokenProcessor.tokens;return qc(t,n)}function ur(t,s){const n=s.transforms.includes("jsx"),o=s.transforms.includes("typescript"),a=s.transforms.includes("flow"),l=s.disableESTransforms===!0,m=yc(t,n,o,a),k=m.tokens,b=m.scopes,I=new Bt(t,k),E=new kt(I),P=new ut(t,k,a,l,E),_=!!s.enableLegacyTypeScriptModuleInterop;let w=null;return s.transforms.includes("imports")?(w=new de(I,P,_,s,s.transforms.includes("typescript"),!!s.keepUnusedImports,E),w.preprocessTokens(),on(P,b,w.getGlobalNames()),s.transforms.includes("typescript")&&!s.keepUnusedImports&&w.pruneTypeOnlyImports()):s.transforms.includes("typescript")&&!s.keepUnusedImports&&on(P,b,Mc(P)),{tokenProcessor:P,scopes:b,nameManager:I,importProcessor:w,helperManager:E}}}}]);
|