@furryr/typescript-runtime 1.0.2 → 1.0.4
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.
|
@@ -1,54 +1,53 @@
|
|
|
1
|
-
var process=typeof process=="undefined"?{env:{NODE_ENV:"production"}}:process;
|
|
2
|
-
"use strict";var typescriptRuntimeInternal=(()=>{var pS=Object.create;var bp=Object.defineProperty;var fS=Object.getOwnPropertyDescriptor;var hS=Object.getOwnPropertyNames;var dS=Object.getPrototypeOf,mS=Object.prototype.hasOwnProperty;var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var yS=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of hS(t))!mS.call(e,s)&&s!==r&&bp(e,s,{get:()=>t[s],enumerable:!(i=fS(t,s))||i.enumerable});return e};var Ks=(e,t,r)=>(r=e!=null?pS(dS(e)):{},yS(t||!e||!e.__esModule?bp(r,"default",{value:e,enumerable:!0}):r,e));var Aa=w((Pa,Hi)=>{"use strict";(function(e,t){if(typeof Pa=="object"&&typeof Hi<"u")t(Hi),Hi.exports=r(Hi);else if(typeof define=="function"&&define.amd)define(["module"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(Pa,(function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=($,q)=>{for(var k in q)t($,k,{get:q[k],enumerable:!0})},a=($,q,k,H)=>{if(q&&typeof q=="object"||typeof q=="function")for(let le of i(q))!s.call($,le)&&le!==k&&t($,le,{get:()=>q[le],enumerable:!(H=r(q,le))||H.enumerable});return $},o=$=>a(t({},"__esModule",{value:!0}),$),l={};n(l,{decode:()=>Dt,decodeGeneratedRanges:()=>tt,decodeOriginalScopes:()=>ce,encode:()=>fr,encodeGeneratedRanges:()=>Pt,encodeOriginalScopes:()=>we}),e.exports=o(l);var u=44,f=59,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=new Uint8Array(64),A=new Uint8Array(128);for(let $=0;$<g.length;$++){let q=g.charCodeAt($);E[$]=q,A[q]=$}function v($,q){let k=0,H=0,le=0;do{let Me=$.next();le=A[Me],k|=(le&31)<<H,H+=5}while(le&32);let ge=k&1;return k>>>=1,ge&&(k=-2147483648|-k),q+k}function O($,q,k){let H=q-k;H=H<0?-H<<1|1:H<<1;do{let le=H&31;H>>>=5,H>0&&(le|=32),$.write(E[le])}while(H>0);return q}function I($,q){return $.pos>=q?!1:$.peek()!==u}var _=1024*16,L=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode($){return Buffer.from($.buffer,$.byteOffset,$.byteLength).toString()}}:{decode($){let q="";for(let k=0;k<$.length;k++)q+=String.fromCharCode($[k]);return q}},te=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(_)}write($){let{buffer:q}=this;q[this.pos++]=$,this.pos===_&&(this.out+=L.decode(q),this.pos=0)}flush(){let{buffer:$,out:q,pos:k}=this;return k>0?q+L.decode($.subarray(0,k)):q}},W=class{constructor($){this.pos=0,this.buffer=$}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf($){let{buffer:q,pos:k}=this,H=q.indexOf($,k);return H===-1?q.length:H}},X=[];function ce($){let{length:q}=$,k=new W($),H=[],le=[],ge=0;for(;k.pos<q;k.pos++){ge=v(k,ge);let Me=v(k,0);if(!I(k,q)){let Ye=le.pop();Ye[2]=ge,Ye[3]=Me;continue}let Ie=v(k,0),Be=v(k,0)&1?[ge,Me,0,0,Ie,v(k,0)]:[ge,Me,0,0,Ie],qe=X;if(I(k,q)){qe=[];do{let Ye=v(k,0);qe.push(Ye)}while(I(k,q))}Be.vars=qe,H.push(Be),le.push(Be)}return H}function we($){let q=new te;for(let k=0;k<$.length;)k=je($,k,q,[0]);return q.flush()}function je($,q,k,H){let le=$[q],{0:ge,1:Me,2:Ie,3:Re,4:De,vars:Be}=le;q>0&&k.write(u),H[0]=O(k,ge,H[0]),O(k,Me,0),O(k,De,0);let qe=le.length===6?1:0;O(k,qe,0),le.length===6&&O(k,le[5],0);for(let Ye of Be)O(k,Ye,0);for(q++;q<$.length;){let Ye=$[q],{0:Ee,1:Ke}=Ye;if(Ee>Ie||Ee===Ie&&Ke>=Re)break;q=je($,q,k,H)}return k.write(u),H[0]=O(k,Ie,H[0]),O(k,Re,0),q}function tt($){let{length:q}=$,k=new W($),H=[],le=[],ge=0,Me=0,Ie=0,Re=0,De=0,Be=0,qe=0,Ye=0;do{let Ee=k.indexOf(";"),Ke=0;for(;k.pos<Ee;k.pos++){if(Ke=v(k,Ke),!I(k,Ee)){let re=le.pop();re[2]=ge,re[3]=Ke;continue}let He=v(k,0),ht=He&1,dt=He&2,hr=He&4,U=null,R=X,z;if(ht){let re=v(k,Me);Ie=v(k,Me===re?Ie:0),Me=re,z=[ge,Ke,0,0,re,Ie]}else z=[ge,Ke,0,0];if(z.isScope=!!hr,dt){let re=Re,pe=De;Re=v(k,Re);let fe=re===Re;De=v(k,fe?De:0),Be=v(k,fe&&pe===De?Be:0),U=[Re,De,Be]}if(z.callsite=U,I(k,Ee)){R=[];do{qe=ge,Ye=Ke;let re=v(k,0),pe;if(re<-1){pe=[[v(k,0)]];for(let fe=-1;fe>re;fe--){let Ne=qe;qe=v(k,qe),Ye=v(k,qe===Ne?Ye:0);let ot=v(k,0);pe.push([ot,qe,Ye])}}else pe=[[re]];R.push(pe)}while(I(k,Ee))}z.bindings=R,H.push(z),le.push(z)}ge++,k.pos=Ee+1}while(k.pos<q);return H}function Pt($){if($.length===0)return"";let q=new te;for(let k=0;k<$.length;)k=At($,k,q,[0,0,0,0,0,0,0]);return q.flush()}function At($,q,k,H){let le=$[q],{0:ge,1:Me,2:Ie,3:Re,isScope:De,callsite:Be,bindings:qe}=le;H[0]<ge?(Nt(k,H[0],ge),H[0]=ge,H[1]=0):q>0&&k.write(u),H[1]=O(k,le[1],H[1]);let Ye=(le.length===6?1:0)|(Be?2:0)|(De?4:0);if(O(k,Ye,0),le.length===6){let{4:Ee,5:Ke}=le;Ee!==H[2]&&(H[3]=0),H[2]=O(k,Ee,H[2]),H[3]=O(k,Ke,H[3])}if(Be){let{0:Ee,1:Ke,2:He}=le.callsite;Ee!==H[4]?(H[5]=0,H[6]=0):Ke!==H[5]&&(H[6]=0),H[4]=O(k,Ee,H[4]),H[5]=O(k,Ke,H[5]),H[6]=O(k,He,H[6])}if(qe)for(let Ee of qe){Ee.length>1&&O(k,-Ee.length,0);let Ke=Ee[0][0];O(k,Ke,0);let He=ge,ht=Me;for(let dt=1;dt<Ee.length;dt++){let hr=Ee[dt];He=O(k,hr[1],He),ht=O(k,hr[2],ht),O(k,hr[0],0)}}for(q++;q<$.length;){let Ee=$[q],{0:Ke,1:He}=Ee;if(Ke>Ie||Ke===Ie&&He>=Re)break;q=At($,q,k,H)}return H[0]<Ie?(Nt(k,H[0],Ie),H[0]=Ie,H[1]=0):k.write(u),H[1]=O(k,Re,H[1]),q}function Nt($,q,k){do $.write(f);while(++q<k)}function Dt($){let{length:q}=$,k=new W($),H=[],le=0,ge=0,Me=0,Ie=0,Re=0;do{let De=k.indexOf(";"),Be=[],qe=!0,Ye=0;for(le=0;k.pos<De;){let Ee;le=v(k,le),le<Ye&&(qe=!1),Ye=le,I(k,De)?(ge=v(k,ge),Me=v(k,Me),Ie=v(k,Ie),I(k,De)?(Re=v(k,Re),Ee=[le,ge,Me,Ie,Re]):Ee=[le,ge,Me,Ie]):Ee=[le],Be.push(Ee),k.pos++}qe||Qt(Be),H.push(Be),k.pos=De+1}while(k.pos<=q);return H}function Qt($){$.sort(qr)}function qr($,q){return $[0]-q[0]}function fr($){let q=new te,k=0,H=0,le=0,ge=0;for(let Me=0;Me<$.length;Me++){let Ie=$[Me];if(Me>0&&q.write(f),Ie.length===0)continue;let Re=0;for(let De=0;De<Ie.length;De++){let Be=Ie[De];De>0&&q.write(u),Re=O(q,Be[0],Re),Be.length!==1&&(k=O(q,Be[1],k),H=O(q,Be[2],H),le=O(q,Be[3],le),Be.length!==4&&(ge=O(q,Be[4],ge)))}}return q.flush()}}))});var Ep=w((va,Ca)=>{"use strict";(function(e,t){typeof va=="object"&&typeof Ca<"u"?Ca.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(va,(function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(I){return e.test(I)}function s(I){return I.startsWith("//")}function n(I){return I.startsWith("/")}function a(I){return I.startsWith("file:")}function o(I){return/^[.?#]/.test(I)}function l(I){let _=t.exec(I);return f(_[1],_[2]||"",_[3],_[4]||"",_[5]||"/",_[6]||"",_[7]||"")}function u(I){let _=r.exec(I),L=_[2];return f("file:","",_[1]||"","",n(L)?L:"/"+L,_[3]||"",_[4]||"")}function f(I,_,L,te,W,X,ce){return{scheme:I,user:_,host:L,port:te,path:W,query:X,hash:ce,type:7}}function g(I){if(s(I)){let L=l("http:"+I);return L.scheme="",L.type=6,L}if(n(I)){let L=l("http://foo.com"+I);return L.scheme="",L.host="",L.type=5,L}if(a(I))return u(I);if(i(I))return l(I);let _=l("http://foo.com/"+I);return _.scheme="",_.host="",_.type=I?I.startsWith("?")?3:I.startsWith("#")?2:4:1,_}function E(I){if(I.endsWith("/.."))return I;let _=I.lastIndexOf("/");return I.slice(0,_+1)}function A(I,_){v(_,_.type),I.path==="/"?I.path=_.path:I.path=E(_.path)+I.path}function v(I,_){let L=_<=4,te=I.path.split("/"),W=1,X=0,ce=!1;for(let je=1;je<te.length;je++){let tt=te[je];if(!tt){ce=!0;continue}if(ce=!1,tt!=="."){if(tt===".."){X?(ce=!0,X--,W--):L&&(te[W++]=tt);continue}te[W++]=tt,X++}}let we="";for(let je=1;je<W;je++)we+="/"+te[je];(!we||ce&&!we.endsWith("/.."))&&(we+="/"),I.path=we}function O(I,_){if(!I&&!_)return"";let L=g(I),te=L.type;if(_&&te!==7){let X=g(_),ce=X.type;switch(te){case 1:L.hash=X.hash;case 2:L.query=X.query;case 3:case 4:A(L,X);case 5:L.user=X.user,L.host=X.host,L.port=X.port;case 6:L.scheme=X.scheme}ce>te&&(te=ce)}v(L,te);let W=L.query+L.hash;switch(te){case 2:case 3:return W;case 4:{let X=L.path.slice(1);return X?o(_||I)&&!o(X)?"./"+X+W:X+W:W||"."}case 5:return L.path+W;default:return L.scheme+"//"+L.user+L.host+L.port+L.path+W}}return O}))});var wa=w((Ia,zi)=>{"use strict";(function(e,t){if(typeof Ia=="object"&&typeof zi<"u")t(zi,Ep(),Aa()),zi.exports=r(zi);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(Ia,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(N,B)=>function(){return B||(0,N[a(N)[0]])((B={exports:{}}).exports,B),B.exports},f=(N,B)=>{for(var F in B)s(N,F,{get:B[F],enumerable:!0})},g=(N,B,F,J)=>{if(B&&typeof B=="object"||typeof B=="function")for(let oe of a(B))!l.call(N,oe)&&oe!==F&&s(N,oe,{get:()=>B[oe],enumerable:!(J=n(B,oe))||J.enumerable});return N},E=(N,B,F)=>(F=N!=null?i(o(N)):{},g(B||!N||!N.__esModule?s(F,"default",{value:N,enumerable:!0}):F,N)),A=N=>g(s({},"__esModule",{value:!0}),N),v=u({"umd:@jridgewell/sourcemap-codec"(N,B){B.exports=r}}),O=u({"umd:@jridgewell/resolve-uri"(N,B){B.exports=t}}),I={};f(I,{AnyMap:()=>Re,FlattenMap:()=>Re,GREATEST_LOWER_BOUND:()=>ht,LEAST_UPPER_BOUND:()=>He,TraceMap:()=>dt,allGeneratedPositionsFor:()=>fe,decodedMap:()=>Kr,decodedMappings:()=>R,eachMapping:()=>Ne,encodedMap:()=>di,encodedMappings:()=>U,generatedPositionFor:()=>pe,isIgnored:()=>$i,originalPositionFor:()=>re,presortedDecodedMap:()=>Ur,sourceContentFor:()=>kt,traceSegment:()=>z}),e.exports=A(I);var _=E(v()),L=E(O());function te(N){if(!N)return"";let B=N.lastIndexOf("/");return N.slice(0,B+1)}function W(N,B){let F=te(N),J=B?B+"/":"";return oe=>(0,L.default)(J+(oe||""),F)}var X=0,ce=1,we=2,je=3,tt=4,Pt=1,At=2;function Nt(N,B){let F=Dt(N,0);if(F===N.length)return N;B||(N=N.slice());for(let J=F;J<N.length;J=Dt(N,J+1))N[J]=qr(N[J],B);return N}function Dt(N,B){for(let F=B;F<N.length;F++)if(!Qt(N[F]))return F;return N.length}function Qt(N){for(let B=1;B<N.length;B++)if(N[B][X]<N[B-1][X])return!1;return!0}function qr(N,B){return B||(N=N.slice()),N.sort(fr)}function fr(N,B){return N[X]-B[X]}function $(N,B){let F=B.map(()=>[]);for(let J=0;J<N.length;J++){let oe=N[J];for(let ie=0;ie<oe.length;ie++){let Pe=oe[ie];if(Pe.length===1)continue;let Ue=Pe[ce],xe=Pe[we],rt=Pe[je],nt=F[Ue];(nt[xe]||(nt[xe]=[])).push([rt,J,Pe[X]])}}for(let J=0;J<F.length;J++){let oe=F[J];for(let ie=0;ie<oe.length;ie++){let Pe=oe[ie];Pe&&Pe.sort(fr)}}return F}var q=!1;function k(N,B,F,J){for(;F<=J;){let oe=F+(J-F>>1),ie=N[oe][X]-B;if(ie===0)return q=!0,oe;ie<0?F=oe+1:J=oe-1}return q=!1,F-1}function H(N,B,F){for(let J=F+1;J<N.length&&N[J][X]===B;F=J++);return F}function le(N,B,F){for(let J=F-1;J>=0&&N[J][X]===B;F=J--);return F}function ge(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Me(N,B,F,J){let{lastKey:oe,lastNeedle:ie,lastIndex:Pe}=F,Ue=0,xe=N.length-1;if(J===oe){if(B===ie)return q=Pe!==-1&&N[Pe][X]===B,Pe;B>=ie?Ue=Pe===-1?0:Pe:xe=Pe}return F.lastKey=J,F.lastNeedle=B,F.lastIndex=k(N,B,Ue,xe)}function Ie(N){return typeof N=="string"?JSON.parse(N):N}var Re=function(N,B){let F=Ie(N);if(!("sections"in F))return new dt(F,B);let J=[],oe=[],ie=[],Pe=[],Ue=[];De(F,B,J,oe,ie,Pe,Ue,0,0,1/0,1/0);let xe={version:3,file:F.file,names:Pe,sources:oe,sourcesContent:ie,mappings:J,ignoreList:Ue};return Ur(xe)};function De(N,B,F,J,oe,ie,Pe,Ue,xe,rt,nt){let{sections:at}=N;for(let _t=0;_t<at.length;_t++){let{map:Lt,offset:Zt}=at[_t],er=rt,yr=nt;if(_t+1<at.length){let mi=at[_t+1].offset;er=Math.min(rt,Ue+mi.line),er===rt?yr=Math.min(nt,xe+mi.column):er<rt&&(yr=xe+mi.column)}Be(Lt,B,F,J,oe,ie,Pe,Ue+Zt.line,xe+Zt.column,er,yr)}}function Be(N,B,F,J,oe,ie,Pe,Ue,xe,rt,nt){let at=Ie(N);if("sections"in at)return De(...arguments);let _t=new dt(at,B),Lt=J.length,Zt=ie.length,er=R(_t),{resolvedSources:yr,sourcesContent:mi,ignoreList:xa}=_t;if(qe(J,yr),qe(ie,_t.names),mi)qe(oe,mi);else for(let Mt=0;Mt<yr.length;Mt++)oe.push(null);if(xa)for(let Mt=0;Mt<xa.length;Mt++)Pe.push(xa[Mt]+Lt);for(let Mt=0;Mt<er.length;Mt++){let ba=Ue+Mt;if(ba>rt)return;let yp=Ye(F,ba),cS=Mt===0?xe:0,Tp=er[Mt];for(let Ea=0;Ea<Tp.length;Ea++){let Jr=Tp[Ea],Us=cS+Jr[X];if(ba===rt&&Us>=nt)return;if(Jr.length===1){yp.push([Us]);continue}let Sp=Lt+Jr[ce],gp=Jr[we],xp=Jr[je];yp.push(Jr.length===4?[Us,Sp,gp,xp]:[Us,Sp,gp,xp,Zt+Jr[tt]])}}}function qe(N,B){for(let F=0;F<B.length;F++)N.push(B[F])}function Ye(N,B){for(let F=N.length;F<=B;F++)N[F]=[];return N[B]}var Ee="`line` must be greater than 0 (lines start at line 1)",Ke="`column` must be greater than or equal to 0 (columns start at column 0)",He=-1,ht=1,dt=class{constructor(N,B){let F=typeof N=="string";if(!F&&N._decodedMemo)return N;let J=Ie(N),{version:oe,file:ie,names:Pe,sourceRoot:Ue,sources:xe,sourcesContent:rt}=J;this.version=oe,this.file=ie,this.names=Pe||[],this.sourceRoot=Ue,this.sources=xe,this.sourcesContent=rt,this.ignoreList=J.ignoreList||J.x_google_ignoreList||void 0;let nt=W(B,Ue);this.resolvedSources=xe.map(nt);let{mappings:at}=J;if(typeof at=="string")this._encoded=at,this._decoded=void 0;else if(Array.isArray(at))this._encoded=void 0,this._decoded=Nt(at,F);else throw J.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(J)}`);this._decodedMemo=ge(),this._bySources=void 0,this._bySourceMemos=void 0}};function hr(N){return N}function U(N){var B,F;return(F=(B=N)._encoded)!=null?F:B._encoded=(0,_.encode)(N._decoded)}function R(N){var B;return(B=N)._decoded||(B._decoded=(0,_.decode)(N._encoded))}function z(N,B,F){let J=R(N);if(B>=J.length)return null;let oe=J[B],ie=Vr(oe,N._decodedMemo,B,F,ht);return ie===-1?null:oe[ie]}function re(N,B){let{line:F,column:J,bias:oe}=B;if(F--,F<0)throw new Error(Ee);if(J<0)throw new Error(Ke);let ie=R(N);if(F>=ie.length)return mr(null,null,null,null);let Pe=ie[F],Ue=Vr(Pe,N._decodedMemo,F,J,oe||ht);if(Ue===-1)return mr(null,null,null,null);let xe=Pe[Ue];if(xe.length===1)return mr(null,null,null,null);let{names:rt,resolvedSources:nt}=N;return mr(nt[xe[ce]],xe[we]+1,xe[je],xe.length===5?rt[xe[tt]]:null)}function pe(N,B){let{source:F,line:J,column:oe,bias:ie}=B;return mp(N,F,J,oe,ie||ht,!1)}function fe(N,B){let{source:F,line:J,column:oe,bias:ie}=B;return mp(N,F,J,oe,ie||He,!0)}function Ne(N,B){let F=R(N),{names:J,resolvedSources:oe}=N;for(let ie=0;ie<F.length;ie++){let Pe=F[ie];for(let Ue=0;Ue<Pe.length;Ue++){let xe=Pe[Ue],rt=ie+1,nt=xe[0],at=null,_t=null,Lt=null,Zt=null;xe.length!==1&&(at=oe[xe[1]],_t=xe[2]+1,Lt=xe[3]),xe.length===5&&(Zt=J[xe[4]]),B({generatedLine:rt,generatedColumn:nt,source:at,originalLine:_t,originalColumn:Lt,name:Zt})}}}function ot(N,B){let{sources:F,resolvedSources:J}=N,oe=F.indexOf(B);return oe===-1&&(oe=J.indexOf(B)),oe}function kt(N,B){let{sourcesContent:F}=N;if(F==null)return null;let J=ot(N,B);return J===-1?null:F[J]}function $i(N,B){let{ignoreList:F}=N;if(F==null)return!1;let J=ot(N,B);return J===-1?!1:F.includes(J)}function Ur(N,B){let F=new dt(dr(N,[]),B);return F._decoded=N.mappings,F}function Kr(N){return dr(N,R(N))}function di(N){return dr(N,U(N))}function dr(N,B){return{version:N.version,file:N.file,names:N.names,sourceRoot:N.sourceRoot,sources:N.sources,sourcesContent:N.sourcesContent,mappings:B,ignoreList:N.ignoreList||N.x_google_ignoreList}}function mr(N,B,F,J){return{source:N,line:B,column:F,name:J}}function Yt(N,B){return{line:N,column:B}}function Vr(N,B,F,J,oe){let ie=Me(N,J,B,F);return q?ie=(oe===He?H:le)(N,J,ie):oe===He&&ie++,ie===-1||ie===N.length?-1:ie}function uS(N,B,F,J,oe){let ie=Vr(N,B,F,J,ht);if(!q&&oe===He&&ie++,ie===-1||ie===N.length)return[];let Pe=q?J:N[ie][X];q||(ie=le(N,Pe,ie));let Ue=H(N,Pe,ie),xe=[];for(;ie<=Ue;ie++){let rt=N[ie];xe.push(Yt(rt[Pt]+1,rt[At]))}return xe}function mp(N,B,F,J,oe,ie){var Pe,Ue;if(F--,F<0)throw new Error(Ee);if(J<0)throw new Error(Ke);let{sources:xe,resolvedSources:rt}=N,nt=xe.indexOf(B);if(nt===-1&&(nt=rt.indexOf(B)),nt===-1)return ie?[]:Yt(null,null);let at=(Pe=N)._bySourceMemos||(Pe._bySourceMemos=xe.map(ge)),Lt=((Ue=N)._bySources||(Ue._bySources=$(R(N),at)))[nt][F];if(Lt==null)return ie?[]:Yt(null,null);let Zt=at[nt];if(ie)return uS(Lt,Zt,F,J,oe);let er=Vr(Lt,Zt,F,J,oe);if(er===-1)return Yt(null,null);let yr=Lt[er];return Yt(yr[Pt]+1,yr[At])}}))});var Pp=w((Na,Gi)=>{"use strict";(function(e,t){if(typeof Na=="object"&&typeof Gi<"u")t(Gi,Aa(),wa()),Gi.exports=r(Gi);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(Na,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(U,R)=>function(){return R||(0,U[a(U)[0]])((R={exports:{}}).exports,R),R.exports},f=(U,R)=>{for(var z in R)s(U,z,{get:R[z],enumerable:!0})},g=(U,R,z,re)=>{if(R&&typeof R=="object"||typeof R=="function")for(let pe of a(R))!l.call(U,pe)&&pe!==z&&s(U,pe,{get:()=>R[pe],enumerable:!(re=n(R,pe))||re.enumerable});return U},E=(U,R,z)=>(z=U!=null?i(o(U)):{},g(R||!U||!U.__esModule?s(z,"default",{value:U,enumerable:!0}):z,U)),A=U=>g(s({},"__esModule",{value:!0}),U),v=u({"umd:@jridgewell/sourcemap-codec"(U,R){R.exports=t}}),O=u({"umd:@jridgewell/trace-mapping"(U,R){R.exports=r}}),I={};f(I,{GenMapping:()=>Qt,addMapping:()=>$,addSegment:()=>fr,allMappings:()=>Re,fromMap:()=>Ie,maybeAddMapping:()=>k,maybeAddSegment:()=>q,setIgnore:()=>le,setSourceContent:()=>H,toDecodedMap:()=>ge,toEncodedMap:()=>Me}),e.exports=A(I);var _=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function L(U){return U}function te(U,R){return U._indexes[R]}function W(U,R){let z=te(U,R);if(z!==void 0)return z;let{array:re,_indexes:pe}=U,fe=re.push(R);return pe[R]=fe-1}function X(U,R){let z=te(U,R);if(z===void 0)return;let{array:re,_indexes:pe}=U;for(let fe=z+1;fe<re.length;fe++){let Ne=re[fe];re[fe-1]=Ne,pe[Ne]--}pe[R]=void 0,re.pop()}var ce=E(v()),we=E(O()),je=0,tt=1,Pt=2,At=3,Nt=4,Dt=-1,Qt=class{constructor({file:U,sourceRoot:R}={}){this._names=new _,this._sources=new _,this._sourcesContent=[],this._mappings=[],this.file=U,this.sourceRoot=R,this._ignoreList=new _}};function qr(U){return U}function fr(U,R,z,re,pe,fe,Ne,ot){return De(!1,U,R,z,re,pe,fe,Ne,ot)}function $(U,R){return hr(!1,U,R)}var q=(U,R,z,re,pe,fe,Ne,ot)=>De(!0,U,R,z,re,pe,fe,Ne,ot),k=(U,R)=>hr(!0,U,R);function H(U,R,z){let{_sources:re,_sourcesContent:pe}=U,fe=W(re,R);pe[fe]=z}function le(U,R,z=!0){let{_sources:re,_sourcesContent:pe,_ignoreList:fe}=U,Ne=W(re,R);Ne===pe.length&&(pe[Ne]=null),z?W(fe,Ne):X(fe,Ne)}function ge(U){let{_mappings:R,_sources:z,_sourcesContent:re,_names:pe,_ignoreList:fe}=U;return Ke(R),{version:3,file:U.file||void 0,names:pe.array,sourceRoot:U.sourceRoot||void 0,sources:z.array,sourcesContent:re,mappings:R,ignoreList:fe.array}}function Me(U){let R=ge(U);return Object.assign({},R,{mappings:(0,ce.encode)(R.mappings)})}function Ie(U){let R=new we.TraceMap(U),z=new Qt({file:R.file,sourceRoot:R.sourceRoot});return He(z._names,R.names),He(z._sources,R.sources),z._sourcesContent=R.sourcesContent||R.sources.map(()=>null),z._mappings=(0,we.decodedMappings)(R),R.ignoreList&&He(z._ignoreList,R.ignoreList),z}function Re(U){let R=[],{_mappings:z,_sources:re,_names:pe}=U;for(let fe=0;fe<z.length;fe++){let Ne=z[fe];for(let ot=0;ot<Ne.length;ot++){let kt=Ne[ot],$i={line:fe+1,column:kt[je]},Ur,Kr,di;kt.length!==1&&(Ur=re.array[kt[tt]],Kr={line:kt[Pt]+1,column:kt[At]},kt.length===5&&(di=pe.array[kt[Nt]])),R.push({generated:$i,source:Ur,original:Kr,name:di})}}return R}function De(U,R,z,re,pe,fe,Ne,ot,kt){let{_mappings:$i,_sources:Ur,_sourcesContent:Kr,_names:di}=R,dr=qe($i,z),mr=Ye(dr,re);if(!pe)return U&&ht(dr,mr)?void 0:Ee(dr,mr,[re]);let Yt=W(Ur,pe),Vr=ot?W(di,ot):Dt;if(Yt===Kr.length&&(Kr[Yt]=kt??null),!(U&&dt(dr,mr,Yt,fe,Ne,Vr)))return Ee(dr,mr,ot?[re,Yt,fe,Ne,Vr]:[re,Yt,fe,Ne])}function Be(U){}function qe(U,R){for(let z=U.length;z<=R;z++)U[z]=[];return U[R]}function Ye(U,R){let z=U.length;for(let re=z-1;re>=0;z=re--){let pe=U[re];if(R>=pe[je])break}return z}function Ee(U,R,z){for(let re=U.length;re>R;re--)U[re]=U[re-1];U[R]=z}function Ke(U){let{length:R}=U,z=R;for(let re=z-1;re>=0&&!(U[re].length>0);z=re,re--);z<R&&(U.length=z)}function He(U,R){for(let z=0;z<R.length;z++)W(U,R[z])}function ht(U,R){return R===0?!0:U[R-1].length===1}function dt(U,R,z,re,pe,fe){if(R===0)return!1;let Ne=U[R-1];return Ne.length===1?!1:z===Ne[tt]&&re===Ne[Pt]&&pe===Ne[At]&&fe===(Ne.length===5?Ne[Nt]:Dt)}function hr(U,R,z){let{generated:re,source:pe,original:fe,name:Ne,content:ot}=z;return pe?De(U,R,re.line-1,re.column,pe,fe.line-1,fe.column,Ne,ot):De(U,R,re.line-1,re.column,null,null,null,null,null)}}))});var Ap=w(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.default=void 0;var vr=Pp(),_a=wa(),Oa=class{constructor(t,r){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let s=this._map=new vr.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(i=t.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new _a.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0,vr.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o])}}if(typeof r=="string"&&!t.inputSourceMap)(0,vr.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,vr.setSourceContent)(s,a.replace(/\\/g,"/"),r[a])}get(){return(0,vr.toEncodedMap)(this._map)}getDecoded(){return(0,vr.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,vr.allMappings)(this._map))}mark(t,r,i,s,n,a){var o;this._rawMappings=void 0;let l;if(r!=null)if(this._inputMap){if(l=(0,_a.originalPositionFor)(this._inputMap,{line:r,column:i}),l.name&&(n||s!=null&&l.column===i))s=l.name;else if(n){let u=(0,_a.originalPositionFor)(this._inputMap,n);u.name&&(s=u.name)}}else l={name:null,source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0,vr.maybeAddMapping)(this._map,{name:s,generated:t,source:(o=l)==null?void 0:o.source,original:l})}};Vs.default=Oa});var Cp=w(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.default=void 0;var vp=[];for(let e=0;e<32;e++)vp.push(" ".repeat(e*2));var Da=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r}get(){let{_map:t,_last:r}=this;this._queuedChar!==32&&this._flush();let i=r===10?(this._buf+this._str).trimRight():this._buf+this._str;if(t===null)return{code:i,decodedMap:void 0,map:null,rawMappings:void 0};let s={code:i,decodedMap:t.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t.get();return s.map=n,n},set map(n){Object.defineProperty(s,"map",{value:n,writable:!0})},get rawMappings(){let n=t.getRawMappings();return s.rawMappings=n,n},set rawMappings(n){Object.defineProperty(s,"rawMappings",{value:n,writable:!0})}};return s}append(t,r,i=!1){this._flush(),this._append(t,r,i)}appendChar(t){this._flush(),this._appendChar(t,1,!0)}queue(t){this._flush(),this._queuedChar=t}_flush(){let t=this._queuedChar;t!==0&&(this._appendChar(t,1,!0),this._queuedChar=0)}_appendChar(t,r,i){if(this._last=t,t===-1){let a=r>=64?this._indentChar.repeat(r):vp[r/2];this._str+=a}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);let s=t===32,n=this._position;if(t!==10){if(this._map){let a=this._sourcePosition;i&&a?(this._map.mark(n,a.line,a.column,s?void 0:a.identifierName,s?void 0:a.identifierNamePos,a.filename),!s&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0)):this._map.mark(n)}n.column+=r}else n.line++,n.column=0}_append(t,r,i){let s=t.length,n=this._position,a=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t;let o=!i&&this._map!==null;if(!r&&!o){n.column+=s;return}let{column:l,identifierName:u,identifierNamePos:f,filename:g}=a,E=a.line;(u!=null||f!=null)&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0);let A=t.indexOf(`
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
${n}`)}function gS(e,t){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!s)return{internal:!1,trace:""};let n=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map(a=>` at ${a}`).join(`
|
|
6
|
-
`)}}});var ze=w(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.isAccessor=FE;d.isAnyTypeAnnotation=tx;d.isArgumentPlaceholder=_b;d.isArrayExpression=xS;d.isArrayPattern=Sg;d.isArrayTypeAnnotation=rx;d.isArrowFunctionExpression=gg;d.isAssignmentExpression=bS;d.isAssignmentPattern=Tg;d.isAwaitExpression=Kg;d.isBigIntLiteral=Jg;d.isBinary=nE;d.isBinaryExpression=ES;d.isBindExpression=Ob;d.isBlock=lE;d.isBlockParent=oE;d.isBlockStatement=CS;d.isBooleanLiteral=WS;d.isBooleanLiteralTypeAnnotation=sx;d.isBooleanTypeAnnotation=ix;d.isBreakStatement=IS;d.isCallExpression=wS;d.isCatchClause=NS;d.isClass=LE;d.isClassAccessorProperty=Hg;d.isClassBody=xg;d.isClassDeclaration=Eg;d.isClassExpression=bg;d.isClassImplements=ax;d.isClassMethod=Lg;d.isClassPrivateMethod=Gg;d.isClassPrivateProperty=zg;d.isClassProperty=$g;d.isCompletionStatement=pE;d.isConditional=fE;d.isConditionalExpression=_S;d.isContinueStatement=OS;d.isDebuggerStatement=DS;d.isDecimalLiteral=Fb;d.isDeclaration=bE;d.isDeclareClass=ox;d.isDeclareExportAllDeclaration=yx;d.isDeclareExportDeclaration=mx;d.isDeclareFunction=lx;d.isDeclareInterface=ux;d.isDeclareModule=cx;d.isDeclareModuleExports=px;d.isDeclareOpaqueType=hx;d.isDeclareTypeAlias=fx;d.isDeclareVariable=dx;d.isDeclaredPredicate=Tx;d.isDecorator=Db;d.isDirective=AS;d.isDirectiveLiteral=vS;d.isDoExpression=kb;d.isDoWhileStatement=kS;d.isEmptyStatement=LS;d.isEmptyTypeAnnotation=wx;d.isEnumBody=JE;d.isEnumBooleanBody=rb;d.isEnumBooleanMember=ab;d.isEnumDeclaration=tb;d.isEnumDefaultedMember=ub;d.isEnumMember=YE;d.isEnumNumberBody=ib;d.isEnumNumberMember=ob;d.isEnumStringBody=sb;d.isEnumStringMember=lb;d.isEnumSymbolBody=nb;d.isExistsTypeAnnotation=Sx;d.isExportAllDeclaration=Pg;d.isExportDeclaration=ME;d.isExportDefaultDeclaration=Ag;d.isExportDefaultSpecifier=Lb;d.isExportNamedDeclaration=vg;d.isExportNamespaceSpecifier=Yg;d.isExportSpecifier=Cg;d.isExpression=sE;d.isExpressionStatement=MS;d.isExpressionWrapper=mE;d.isFile=BS;d.isFlow=RE;d.isFlowBaseAnnotation=UE;d.isFlowDeclaration=KE;d.isFlowPredicate=VE;d.isFlowType=qE;d.isFor=yE;d.isForInStatement=FS;d.isForOfStatement=Ig;d.isForStatement=jS;d.isForXStatement=TE;d.isFunction=SE;d.isFunctionDeclaration=RS;d.isFunctionExpression=qS;d.isFunctionParameter=EE;d.isFunctionParent=gE;d.isFunctionTypeAnnotation=gx;d.isFunctionTypeParam=xx;d.isGenericTypeAnnotation=bx;d.isIdentifier=US;d.isIfStatement=KS;d.isImmutable=IE;d.isImport=Vg;d.isImportAttribute=ex;d.isImportDeclaration=wg;d.isImportDefaultSpecifier=Ng;d.isImportExpression=Dg;d.isImportNamespaceSpecifier=_g;d.isImportOrExportDeclaration=wp;d.isImportSpecifier=Og;d.isIndexedAccessType=cb;d.isInferredPredicate=Ex;d.isInterfaceDeclaration=Ax;d.isInterfaceExtends=Px;d.isInterfaceTypeAnnotation=vx;d.isInterpreterDirective=PS;d.isIntersectionTypeAnnotation=Cx;d.isJSX=XE;d.isJSXAttribute=fb;d.isJSXClosingElement=hb;d.isJSXClosingFragment=Cb;d.isJSXElement=db;d.isJSXEmptyExpression=mb;d.isJSXExpressionContainer=yb;d.isJSXFragment=Ab;d.isJSXIdentifier=Sb;d.isJSXMemberExpression=gb;d.isJSXNamespacedName=xb;d.isJSXOpeningElement=bb;d.isJSXOpeningFragment=vb;d.isJSXSpreadAttribute=Eb;d.isJSXSpreadChild=Tb;d.isJSXText=Pb;d.isLVal=AE;d.isLabeledStatement=VS;d.isLiteral=CE;d.isLogicalExpression=HS;d.isLoop=hE;d.isMemberExpression=zS;d.isMetaProperty=kg;d.isMethod=NE;d.isMiscellaneous=WE;d.isMixedTypeAnnotation=Ix;d.isModuleDeclaration=rP;d.isModuleExpression=jb;d.isModuleSpecifier=BE;d.isNewExpression=GS;d.isNoop=Ib;d.isNullLiteral=XS;d.isNullLiteralTypeAnnotation=nx;d.isNullableTypeAnnotation=Nx;d.isNumberLiteral=QE;d.isNumberLiteralTypeAnnotation=_x;d.isNumberTypeAnnotation=Ox;d.isNumericLiteral=YS;d.isObjectExpression=ZS;d.isObjectMember=_E;d.isObjectMethod=eg;d.isObjectPattern=Mg;d.isObjectProperty=tg;d.isObjectTypeAnnotation=Dx;d.isObjectTypeCallProperty=Lx;d.isObjectTypeIndexer=Mx;d.isObjectTypeInternalSlot=kx;d.isObjectTypeProperty=Bx;d.isObjectTypeSpreadProperty=Fx;d.isOpaqueType=jx;d.isOptionalCallExpression=Wg;d.isOptionalIndexedAccessType=pb;d.isOptionalMemberExpression=Xg;d.isParenthesizedExpression=ng;d.isPattern=kE;d.isPatternLike=PE;d.isPipelineBareFunction=Ub;d.isPipelinePrimaryTopicReference=Kb;d.isPipelineTopicExpression=qb;d.isPlaceholder=wb;d.isPrivate=jE;d.isPrivateName=Qg;d.isProgram=QS;d.isProperty=OE;d.isPureish=xE;d.isQualifiedTypeIdentifier=Rx;d.isRecordExpression=Mb;d.isRegExpLiteral=$S;d.isRegexLiteral=ZE;d.isRestElement=rg;d.isRestProperty=eP;d.isReturnStatement=ig;d.isScopable=aE;d.isSequenceExpression=sg;d.isSpreadElement=Bg;d.isSpreadProperty=tP;d.isStandardized=iE;d.isStatement=uE;d.isStaticBlock=Zg;d.isStringLiteral=JS;d.isStringLiteralTypeAnnotation=qx;d.isStringTypeAnnotation=Ux;d.isSuper=Fg;d.isSwitchCase=ag;d.isSwitchStatement=og;d.isSymbolTypeAnnotation=Kx;d.isTSAnyKeyword=Zb;d.isTSArrayType=g0;d.isTSAsExpression=R0;d.isTSBaseType=GE;d.isTSBigIntKeyword=t0;d.isTSBooleanKeyword=e0;d.isTSCallSignatureDeclaration=$b;d.isTSConditionalType=C0;d.isTSConstructSignatureDeclaration=Hb;d.isTSConstructorType=d0;d.isTSDeclareFunction=Yb;d.isTSDeclareMethod=Xb;d.isTSEntityName=vE;d.isTSEnumBody=K0;d.isTSEnumDeclaration=V0;d.isTSEnumMember=J0;d.isTSExportAssignment=G0;d.isTSExpressionWithTypeArguments=L0;d.isTSExternalModuleReference=H0;d.isTSFunctionType=h0;d.isTSImportEqualsDeclaration=$0;d.isTSImportType=W0;d.isTSIndexSignature=Qb;d.isTSIndexedAccessType=_0;d.isTSInferType=I0;d.isTSInstantiationExpression=j0;d.isTSInterfaceBody=B0;d.isTSInterfaceDeclaration=M0;d.isTSIntersectionType=v0;d.isTSIntrinsicKeyword=r0;d.isTSLiteralType=k0;d.isTSMappedType=O0;d.isTSMethodSignature=Gb;d.isTSModuleBlock=X0;d.isTSModuleDeclaration=Y0;d.isTSNamedTupleMember=P0;d.isTSNamespaceExportDeclaration=Q0;d.isTSNeverKeyword=i0;d.isTSNonNullExpression=z0;d.isTSNullKeyword=s0;d.isTSNumberKeyword=n0;d.isTSObjectKeyword=a0;d.isTSOptionalType=b0;d.isTSParameterProperty=Jb;d.isTSParenthesizedType=w0;d.isTSPropertySignature=zb;d.isTSQualifiedName=Wb;d.isTSRestType=E0;d.isTSSatisfiesExpression=q0;d.isTSStringKeyword=o0;d.isTSSymbolKeyword=l0;d.isTSTemplateLiteralType=D0;d.isTSThisType=f0;d.isTSTupleType=x0;d.isTSType=zE;d.isTSTypeAliasDeclaration=F0;d.isTSTypeAnnotation=Z0;d.isTSTypeAssertion=U0;d.isTSTypeElement=HE;d.isTSTypeLiteral=S0;d.isTSTypeOperator=N0;d.isTSTypeParameter=rE;d.isTSTypeParameterDeclaration=tE;d.isTSTypeParameterInstantiation=eE;d.isTSTypePredicate=y0;d.isTSTypeQuery=T0;d.isTSTypeReference=m0;d.isTSUndefinedKeyword=u0;d.isTSUnionType=A0;d.isTSUnknownKeyword=c0;d.isTSVoidKeyword=p0;d.isTaggedTemplateExpression=jg;d.isTemplateElement=Rg;d.isTemplateLiteral=qg;d.isTerminatorless=cE;d.isThisExpression=lg;d.isThisTypeAnnotation=Vx;d.isThrowStatement=ug;d.isTopicReference=Rb;d.isTryStatement=cg;d.isTupleExpression=Bb;d.isTupleTypeAnnotation=Jx;d.isTypeAlias=Xx;d.isTypeAnnotation=Wx;d.isTypeCastExpression=$x;d.isTypeParameter=Hx;d.isTypeParameterDeclaration=zx;d.isTypeParameterInstantiation=Gx;d.isTypeScript=$E;d.isTypeofTypeAnnotation=Yx;d.isUnaryExpression=pg;d.isUnaryLike=DE;d.isUnionTypeAnnotation=Qx;d.isUpdateExpression=fg;d.isUserWhitespacable=wE;d.isV8IntrinsicIdentifier=Nb;d.isVariableDeclaration=hg;d.isVariableDeclarator=dg;d.isVariance=Zx;d.isVoidPattern=Vb;d.isVoidTypeAnnotation=eb;d.isWhile=dE;d.isWhileStatement=mg;d.isWithStatement=yg;d.isYieldExpression=Ug;var T=Ys(),Qi=yi();function xS(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,T.default)(e,t)}function bS(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,T.default)(e,t)}function ES(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,T.default)(e,t)}function PS(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,T.default)(e,t)}function AS(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,T.default)(e,t)}function vS(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,T.default)(e,t)}function CS(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,T.default)(e,t)}function IS(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,T.default)(e,t)}function wS(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,T.default)(e,t)}function NS(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,T.default)(e,t)}function _S(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,T.default)(e,t)}function OS(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,T.default)(e,t)}function DS(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,T.default)(e,t)}function kS(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,T.default)(e,t)}function LS(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,T.default)(e,t)}function MS(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,T.default)(e,t)}function BS(e,t){return!e||e.type!=="File"?!1:t==null||(0,T.default)(e,t)}function FS(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,T.default)(e,t)}function jS(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,T.default)(e,t)}function RS(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,T.default)(e,t)}function qS(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,T.default)(e,t)}function US(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,T.default)(e,t)}function KS(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,T.default)(e,t)}function VS(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,T.default)(e,t)}function JS(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,T.default)(e,t)}function YS(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,T.default)(e,t)}function XS(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,T.default)(e,t)}function WS(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,T.default)(e,t)}function $S(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,T.default)(e,t)}function HS(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,T.default)(e,t)}function zS(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,T.default)(e,t)}function GS(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,T.default)(e,t)}function QS(e,t){return!e||e.type!=="Program"?!1:t==null||(0,T.default)(e,t)}function ZS(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,T.default)(e,t)}function eg(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,T.default)(e,t)}function tg(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,T.default)(e,t)}function rg(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,T.default)(e,t)}function ig(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,T.default)(e,t)}function sg(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,T.default)(e,t)}function ng(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,T.default)(e,t)}function ag(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,T.default)(e,t)}function og(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,T.default)(e,t)}function lg(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,T.default)(e,t)}function ug(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,T.default)(e,t)}function cg(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,T.default)(e,t)}function pg(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,T.default)(e,t)}function fg(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,T.default)(e,t)}function hg(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,T.default)(e,t)}function dg(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,T.default)(e,t)}function mg(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,T.default)(e,t)}function yg(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,T.default)(e,t)}function Tg(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,T.default)(e,t)}function Sg(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,T.default)(e,t)}function gg(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,T.default)(e,t)}function xg(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,T.default)(e,t)}function bg(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,T.default)(e,t)}function Eg(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,T.default)(e,t)}function Pg(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,T.default)(e,t)}function Ag(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,T.default)(e,t)}function vg(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,T.default)(e,t)}function Cg(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,T.default)(e,t)}function Ig(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,T.default)(e,t)}function wg(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,T.default)(e,t)}function Ng(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,T.default)(e,t)}function _g(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,T.default)(e,t)}function Og(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,T.default)(e,t)}function Dg(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,T.default)(e,t)}function kg(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,T.default)(e,t)}function Lg(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,T.default)(e,t)}function Mg(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,T.default)(e,t)}function Bg(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,T.default)(e,t)}function Fg(e,t){return!e||e.type!=="Super"?!1:t==null||(0,T.default)(e,t)}function jg(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,T.default)(e,t)}function Rg(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,T.default)(e,t)}function qg(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,T.default)(e,t)}function Ug(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,T.default)(e,t)}function Kg(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,T.default)(e,t)}function Vg(e,t){return!e||e.type!=="Import"?!1:t==null||(0,T.default)(e,t)}function Jg(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,T.default)(e,t)}function Yg(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,T.default)(e,t)}function Xg(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,T.default)(e,t)}function Wg(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,T.default)(e,t)}function $g(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,T.default)(e,t)}function Hg(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,T.default)(e,t)}function zg(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,T.default)(e,t)}function Gg(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,T.default)(e,t)}function Qg(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,T.default)(e,t)}function Zg(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,T.default)(e,t)}function ex(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,T.default)(e,t)}function tx(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function rx(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function ix(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function sx(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function nx(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function ax(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,T.default)(e,t)}function ox(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,T.default)(e,t)}function lx(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,T.default)(e,t)}function ux(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,T.default)(e,t)}function cx(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,T.default)(e,t)}function px(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,T.default)(e,t)}function fx(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,T.default)(e,t)}function hx(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,T.default)(e,t)}function dx(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,T.default)(e,t)}function mx(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,T.default)(e,t)}function yx(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,T.default)(e,t)}function Tx(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,T.default)(e,t)}function Sx(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function gx(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function xx(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,T.default)(e,t)}function bx(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Ex(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,T.default)(e,t)}function Px(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,T.default)(e,t)}function Ax(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,T.default)(e,t)}function vx(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Cx(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Ix(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function wx(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Nx(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function _x(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Ox(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Dx(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function kx(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,T.default)(e,t)}function Lx(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,T.default)(e,t)}function Mx(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,T.default)(e,t)}function Bx(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,T.default)(e,t)}function Fx(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,T.default)(e,t)}function jx(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,T.default)(e,t)}function Rx(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,T.default)(e,t)}function qx(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Ux(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Kx(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Vx(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Jx(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Yx(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Xx(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,T.default)(e,t)}function Wx(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function $x(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,T.default)(e,t)}function Hx(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,T.default)(e,t)}function zx(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,T.default)(e,t)}function Gx(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,T.default)(e,t)}function Qx(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function Zx(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,T.default)(e,t)}function eb(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function tb(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,T.default)(e,t)}function rb(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,T.default)(e,t)}function ib(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,T.default)(e,t)}function sb(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,T.default)(e,t)}function nb(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,T.default)(e,t)}function ab(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,T.default)(e,t)}function ob(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,T.default)(e,t)}function lb(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,T.default)(e,t)}function ub(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,T.default)(e,t)}function cb(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,T.default)(e,t)}function pb(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,T.default)(e,t)}function fb(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,T.default)(e,t)}function hb(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,T.default)(e,t)}function db(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,T.default)(e,t)}function mb(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,T.default)(e,t)}function yb(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,T.default)(e,t)}function Tb(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,T.default)(e,t)}function Sb(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,T.default)(e,t)}function gb(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,T.default)(e,t)}function xb(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,T.default)(e,t)}function bb(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,T.default)(e,t)}function Eb(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,T.default)(e,t)}function Pb(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,T.default)(e,t)}function Ab(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,T.default)(e,t)}function vb(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,T.default)(e,t)}function Cb(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,T.default)(e,t)}function Ib(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,T.default)(e,t)}function wb(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,T.default)(e,t)}function Nb(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,T.default)(e,t)}function _b(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,T.default)(e,t)}function Ob(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,T.default)(e,t)}function Db(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,T.default)(e,t)}function kb(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,T.default)(e,t)}function Lb(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,T.default)(e,t)}function Mb(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,T.default)(e,t)}function Bb(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,T.default)(e,t)}function Fb(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,T.default)(e,t)}function jb(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,T.default)(e,t)}function Rb(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,T.default)(e,t)}function qb(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,T.default)(e,t)}function Ub(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,T.default)(e,t)}function Kb(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,T.default)(e,t)}function Vb(e,t){return!e||e.type!=="VoidPattern"?!1:t==null||(0,T.default)(e,t)}function Jb(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,T.default)(e,t)}function Yb(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,T.default)(e,t)}function Xb(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,T.default)(e,t)}function Wb(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,T.default)(e,t)}function $b(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,T.default)(e,t)}function Hb(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,T.default)(e,t)}function zb(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,T.default)(e,t)}function Gb(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,T.default)(e,t)}function Qb(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,T.default)(e,t)}function Zb(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,T.default)(e,t)}function e0(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,T.default)(e,t)}function t0(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,T.default)(e,t)}function r0(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,T.default)(e,t)}function i0(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,T.default)(e,t)}function s0(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,T.default)(e,t)}function n0(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,T.default)(e,t)}function a0(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,T.default)(e,t)}function o0(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,T.default)(e,t)}function l0(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,T.default)(e,t)}function u0(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,T.default)(e,t)}function c0(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,T.default)(e,t)}function p0(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,T.default)(e,t)}function f0(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,T.default)(e,t)}function h0(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,T.default)(e,t)}function d0(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,T.default)(e,t)}function m0(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,T.default)(e,t)}function y0(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,T.default)(e,t)}function T0(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,T.default)(e,t)}function S0(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,T.default)(e,t)}function g0(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,T.default)(e,t)}function x0(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,T.default)(e,t)}function b0(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,T.default)(e,t)}function E0(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,T.default)(e,t)}function P0(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,T.default)(e,t)}function A0(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,T.default)(e,t)}function v0(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,T.default)(e,t)}function C0(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,T.default)(e,t)}function I0(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,T.default)(e,t)}function w0(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,T.default)(e,t)}function N0(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,T.default)(e,t)}function _0(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,T.default)(e,t)}function O0(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,T.default)(e,t)}function D0(e,t){return!e||e.type!=="TSTemplateLiteralType"?!1:t==null||(0,T.default)(e,t)}function k0(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,T.default)(e,t)}function L0(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,T.default)(e,t)}function M0(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,T.default)(e,t)}function B0(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,T.default)(e,t)}function F0(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,T.default)(e,t)}function j0(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,T.default)(e,t)}function R0(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,T.default)(e,t)}function q0(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,T.default)(e,t)}function U0(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,T.default)(e,t)}function K0(e,t){return!e||e.type!=="TSEnumBody"?!1:t==null||(0,T.default)(e,t)}function V0(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,T.default)(e,t)}function J0(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,T.default)(e,t)}function Y0(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,T.default)(e,t)}function X0(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,T.default)(e,t)}function W0(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,T.default)(e,t)}function $0(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,T.default)(e,t)}function H0(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,T.default)(e,t)}function z0(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,T.default)(e,t)}function G0(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,T.default)(e,t)}function Q0(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,T.default)(e,t)}function Z0(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,T.default)(e,t)}function eE(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,T.default)(e,t)}function tE(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,T.default)(e,t)}function rE(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,T.default)(e,t)}function iE(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function sE(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function nE(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,T.default)(e,t)}function aE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,T.default)(e,t)}function oE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,T.default)(e,t)}function lE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,T.default)(e,t)}function uE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function cE(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,T.default)(e,t)}function pE(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function fE(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function hE(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function dE(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function mE(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,T.default)(e,t)}function yE(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function TE(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,T.default)(e,t)}function SE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,T.default)(e,t)}function gE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,T.default)(e,t)}function xE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,T.default)(e,t)}function bE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,T.default)(e,t)}function EE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,T.default)(e,t)}function PE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function AE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,T.default)(e,t)}function vE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,T.default)(e,t)}function CE(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,T.default)(e,t)}function IE(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,T.default)(e,t)}function wE(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,T.default)(e,t)}function NE(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,T.default)(e,t)}function _E(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,T.default)(e,t)}function OE(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,T.default)(e,t)}function DE(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,T.default)(e,t)}function kE(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,T.default)(e,t)}function LE(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,T.default)(e,t)}function wp(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,T.default)(e,t)}function ME(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,T.default)(e,t)}function BE(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,T.default)(e,t)}function FE(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,T.default)(e,t)}function jE(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,T.default)(e,t)}function RE(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,T.default)(e,t)}function qE(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,T.default)(e,t)}function UE(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,T.default)(e,t)}function KE(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,T.default)(e,t)}function VE(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,T.default)(e,t)}function JE(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,T.default)(e,t)}function YE(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,T.default)(e,t)}function XE(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,T.default)(e,t)}function WE(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,T.default)(e,t)}function $E(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,T.default)(e,t)}function HE(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,T.default)(e,t)}function zE(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,T.default)(e,t)}function GE(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,T.default)(e,t)}function QE(e,t){return(0,Qi.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,T.default)(e,t)}function ZE(e,t){return(0,Qi.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,T.default)(e,t)}function eP(e,t){return(0,Qi.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,T.default)(e,t)}function tP(e,t){return(0,Qi.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,T.default)(e,t)}function rP(e,t){return(0,Qi.default)("isModuleDeclaration","isImportOrExportDeclaration"),wp(e,t)}});var Ba=w(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.default=iP;var Yr=ze();function Np(e){return(0,Yr.isMemberExpression)(e)||(0,Yr.isMetaProperty)(e)}function iP(e,t,r){if(!Np(e))return!1;let i=Array.isArray(t)?t:t.split("."),s=[],n;for(n=e;Np(n);n=(a=n.object)!=null?a:n.meta){var a;s.push(n.property)}if(s.push(n),s.length<i.length||!r&&s.length>i.length)return!1;for(let o=0,l=s.length-1;o<i.length;o++,l--){let u=s[l],f;if((0,Yr.isIdentifier)(u))f=u.name;else if((0,Yr.isStringLiteral)(u))f=u.value;else if((0,Yr.isThisExpression)(u))f="this";else if((0,Yr.isSuper)(u))f="super";else if((0,Yr.isPrivateName)(u))f="#"+u.id.name;else return!1;if(i[o]!==f)return!1}return!0}});var ja=w(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=nP;var sP=Ba();function nP(e,t){let r=e.split(".");return i=>(0,sP.default)(i,r,t)}});var _p=w(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=void 0;var aP=ja(),oP=(0,aP.default)("React.Component"),ZY=Xs.default=oP});var Op=w(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.default=lP;function lP(e){return!!e&&/^[a-z]/.test(e)}});var Ws=w(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.default=uP;var Dp=Bt();function uP(e,t){if(e===t)return!0;if(e==null||Dp.ALIAS_KEYS[t])return!1;let r=Dp.FLIPPED_ALIAS_KEYS[t];return!!(r!=null&&r.includes(e))}});var Ka=w(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=pP;var cP=Bt();function pP(e,t){if(e===t)return!0;let r=cP.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(t))}});var Ti=w(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=yP;var fP=Ys(),hP=Ws(),dP=Ka(),mP=Bt();function yP(e,t,r){return t?(0,hP.default)(t.type,e)?r===void 0?!0:(0,fP.default)(t,r):!r&&t.type==="Placeholder"&&e in mP.FLIPPED_ALIAS_KEYS?(0,dP.default)(t.expectedNode,e):!1:!1}});var Fp=w(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.isIdentifierChar=Bp;Zi.isIdentifierName=xP;Zi.isIdentifierStart=Mp;var Ya="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",kp="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",TP=new RegExp("["+Ya+"]"),SP=new RegExp("["+Ya+kp+"]");Ya=kp=null;var Lp=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],gP=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Ja(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function Mp(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&TP.test(String.fromCharCode(e)):Ja(e,Lp)}function Bp(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&SP.test(String.fromCharCode(e)):Ja(e,Lp)||Ja(e,gP)}function xP(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if((i&64512)===55296&&r+1<e.length){let s=e.charCodeAt(++r);(s&64512)===56320&&(i=65536+((i&1023)<<10)+(s&1023))}if(t){if(t=!1,!Mp(i))return!1}else if(!Bp(i))return!1}return!t}});var Up=w(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.isKeyword=vP;Xr.isReservedWord=jp;Xr.isStrictBindOnlyReservedWord=qp;Xr.isStrictBindReservedWord=AP;Xr.isStrictReservedWord=Rp;var Xa={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},bP=new Set(Xa.keyword),EP=new Set(Xa.strict),PP=new Set(Xa.strictBind);function jp(e,t){return t&&e==="await"||e==="enum"}function Rp(e,t){return jp(e,t)||EP.has(e)}function qp(e){return PP.has(e)}function AP(e,t){return Rp(e,t)||qp(e)}function vP(e){return bP.has(e)}});var ts=w(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});Object.defineProperty(tr,"isIdentifierChar",{enumerable:!0,get:function(){return Wa.isIdentifierChar}});Object.defineProperty(tr,"isIdentifierName",{enumerable:!0,get:function(){return Wa.isIdentifierName}});Object.defineProperty(tr,"isIdentifierStart",{enumerable:!0,get:function(){return Wa.isIdentifierStart}});Object.defineProperty(tr,"isKeyword",{enumerable:!0,get:function(){return es.isKeyword}});Object.defineProperty(tr,"isReservedWord",{enumerable:!0,get:function(){return es.isReservedWord}});Object.defineProperty(tr,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return es.isStrictBindOnlyReservedWord}});Object.defineProperty(tr,"isStrictBindReservedWord",{enumerable:!0,get:function(){return es.isStrictBindReservedWord}});Object.defineProperty(tr,"isStrictReservedWord",{enumerable:!0,get:function(){return es.isStrictReservedWord}});var Wa=Fp(),es=Up()});var Si=w(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=CP;var $a=ts();function CP(e,t=!0){return typeof e!="string"||t&&((0,$a.isKeyword)(e)||(0,$a.isStrictReservedWord)(e,!0))?!1:(0,$a.isIdentifierName)(e)}});var Yp=w(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.readCodePoint=Jp;rs.readInt=Vp;rs.readStringContents=wP;var IP=function(t){return t>=48&&t<=57},Kp={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},$s={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function wP(e,t,r,i,s,n){let a=r,o=i,l=s,u="",f=null,g=r,{length:E}=t;for(;;){if(r>=E){n.unterminated(a,o,l),u+=t.slice(g,r);break}let A=t.charCodeAt(r);if(NP(e,A,t,r)){u+=t.slice(g,r);break}if(A===92){u+=t.slice(g,r);let v=_P(t,r,i,s,e==="template",n);v.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=v.ch,{pos:r,lineStart:i,curLine:s}=v,g=r}else A===8232||A===8233?(++r,++s,i=r):A===10||A===13?e==="template"?(u+=t.slice(g,r)+`
|
|
7
|
-
|
|
8
|
-
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=za(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=Jp(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,g=/^[0-7]+/.exec(e.slice(u,t+2))[0],E=parseInt(g,8);E>255&&(g=g.slice(0,-1),E=parseInt(g,8)),t+=g.length-1;let A=e.charCodeAt(t);if(g!=="0"||A===56||A===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(E))}return o(String.fromCharCode(l))}}function za(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=Vp(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function Vp(e,t,r,i,s,n,a,o,l,u){let f=t,g=s===16?Kp.hex:Kp.decBinOct,E=s===16?$s.hex:s===10?$s.dec:s===8?$s.oct:$s.bin,A=!1,v=0;for(let O=0,I=n??1/0;O<I;++O){let _=e.charCodeAt(t),L;if(_===95&&o!=="bail"){let te=e.charCodeAt(t-1),W=e.charCodeAt(t+1);if(o){if(Number.isNaN(W)||!E(W)||g.has(te)||g.has(W)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(_>=97?L=_-97+10:_>=65?L=_-65+10:IP(_)?L=_-48:L=1/0,L>=s){if(L<=9&&u)return{n:null,pos:t};if(L<=9&&l.invalidDigit(t,r,i,s))L=0;else if(a)L=0,A=!0;else break}++t,v=v*s+L}return t===f||n!=null&&t-f!==n||A?{n:null,pos:t}:{n:v,pos:t}}function Jp(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=za(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=za(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}});var gi=w(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.UPDATE_OPERATORS=me.UNARY_OPERATORS=me.STRING_UNARY_OPERATORS=me.STATEMENT_OR_BLOCK_KEYS=me.NUMBER_UNARY_OPERATORS=me.NUMBER_BINARY_OPERATORS=me.LOGICAL_OPERATORS=me.INHERIT_KEYS=me.FOR_INIT_KEYS=me.FLATTENABLE_KEYS=me.EQUALITY_BINARY_OPERATORS=me.COMPARISON_BINARY_OPERATORS=me.COMMENT_KEYS=me.BOOLEAN_UNARY_OPERATORS=me.BOOLEAN_NUMBER_BINARY_OPERATORS=me.BOOLEAN_BINARY_OPERATORS=me.BINARY_OPERATORS=me.ASSIGNMENT_OPERATORS=void 0;var cX=me.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],pX=me.FLATTENABLE_KEYS=["body","expressions"],fX=me.FOR_INIT_KEYS=["left","init"],hX=me.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],OP=me.LOGICAL_OPERATORS=["||","&&","??"],dX=me.UPDATE_OPERATORS=["++","--"],DP=me.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],kP=me.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],LP=me.COMPARISON_BINARY_OPERATORS=[...kP,"in","instanceof"],MP=me.BOOLEAN_BINARY_OPERATORS=[...LP,...DP],Xp=me.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],mX=me.BINARY_OPERATORS=["+",...Xp,...MP,"|>"],yX=me.ASSIGNMENT_OPERATORS=["=","+=",...Xp.map(e=>e+"="),...OP.map(e=>e+"=")],BP=me.BOOLEAN_UNARY_OPERATORS=["delete","!"],FP=me.NUMBER_UNARY_OPERATORS=["+","-","~"],jP=me.STRING_UNARY_OPERATORS=["typeof"],TX=me.UNARY_OPERATORS=["void","throw",...BP,...FP,...jP],SX=me.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};me.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");me.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var rr=w(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.allExpandedTypes=be.VISITOR_KEYS=be.NODE_UNION_SHAPES__PRIVATE=be.NODE_PARENT_VALIDATIONS=be.NODE_FIELDS=be.FLIPPED_ALIAS_KEYS=be.DEPRECATED_KEYS=be.BUILDER_KEYS=be.ALIAS_KEYS=void 0;be.arrayOf=$p;be.arrayOfType=Hp;be.assertEach=zp;be.assertNodeOrValueType=QP;be.assertNodeType=zs;be.assertOneOf=zP;be.assertOptionalChainStart=eA;be.assertShape=ZP;be.assertValueType=eo;be.chain=Gp;be.default=Qp;be.defineAliasedType=iA;be.validate=Za;be.validateArrayOfType=HP;be.validateOptional=WP;be.validateOptionalType=$P;be.validateType=XP;var Wp=Ti(),is=Gs(),RP=be.VISITOR_KEYS={},qP=be.ALIAS_KEYS={},Ga=be.FLIPPED_ALIAS_KEYS={},UP=be.NODE_FIELDS={},KP=be.BUILDER_KEYS={},VP=be.DEPRECATED_KEYS={},JP=be.NODE_PARENT_VALIDATIONS={},YP=be.NODE_UNION_SHAPES__PRIVATE={};function Hs(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function Za(e){return{validate:e}}function XP(...e){return Za(zs(...e))}function WP(e){return{validate:e,optional:!0}}function $P(...e){return{validate:zs(...e),optional:!0}}function $p(e){return Gp(eo("array"),zp(e))}function Hp(...e){return $p(zs(...e))}function HP(...e){return Za(Hp(...e))}function zp(e){let t=process.env.BABEL_TYPES_8_BREAKING?is.validateChild:()=>{};function r(i,s,n){if(!Array.isArray(n))return;let a=0,o={toString(){return`${s}[${a}]`}};for(;a<n.length;a++){let l=n[a];e(i,o,l),t(i,o,l)}}return r.each=e,r}function zP(...e){function t(r,i,s){if(!e.includes(s))throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`)}return t.oneOf=e,t}var GP=be.allExpandedTypes=[];function zs(...e){let t=new Set;GP.push({types:e,set:t});function r(i,s,n){let a=n?.type;if(a!=null){if(t.has(a)){(0,is.validateChild)(i,s,n);return}if(a==="Placeholder"){for(let o of e)if((0,Wp.default)(o,n)){(0,is.validateChild)(i,s,n);return}}}throw new TypeError(`Property ${s} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return r.oneOfNodeTypes=e,r}function QP(...e){function t(r,i,s){let n=Hs(s);for(let a of e)if(n===a||(0,Wp.default)(a,s)){(0,is.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function eo(e){function t(r,i,s){if(Hs(s)!==e)throw new TypeError(`Property ${i} expected type of ${e} but got ${Hs(s)}`)}return t.type=e,t}function ZP(e){let t=Object.keys(e);function r(i,s,n){let a=[];for(let o of t)try{(0,is.validateField)(i,o,n[o],e[o])}catch(l){if(l instanceof TypeError){a.push(l.message);continue}throw l}if(a.length)throw new TypeError(`Property ${s} of ${i.type} expected to have the following:
|
|
1
|
+
"use strict";var typescriptRuntimeInternal=(()=>{var oS=Object.create;var bp=Object.defineProperty;var lS=Object.getOwnPropertyDescriptor;var uS=Object.getOwnPropertyNames;var cS=Object.getPrototypeOf,pS=Object.prototype.hasOwnProperty;var fS=(e,t)=>()=>(e&&(t=e(e=0)),t);var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var hS=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of uS(t))!pS.call(e,s)&&s!==r&&bp(e,s,{get:()=>t[s],enumerable:!(i=lS(t,s))||i.enumerable});return e};var Js=(e,t,r)=>(r=e!=null?oS(cS(e)):{},hS(t||!e||!e.__esModule?bp(r,"default",{value:e,enumerable:!0}):r,e));var v,d=fS(()=>{v={env:{NODE_ENV:"production"}}});var Ca=_((va,Gi)=>{"use strict";d();(function(e,t){if(typeof va=="object"&&typeof Gi<"u")t(Gi),Gi.exports=r(Gi);else if(typeof define=="function"&&define.amd)define(["module"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(va,(function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=(z,K)=>{for(var M in K)t(z,M,{get:K[M],enumerable:!0})},a=(z,K,M,G)=>{if(K&&typeof K=="object"||typeof K=="function")for(let ce of i(K))!s.call(z,ce)&&ce!==M&&t(z,ce,{get:()=>K[ce],enumerable:!(G=r(K,ce))||G.enumerable});return z},o=z=>a(t({},"__esModule",{value:!0}),z),l={};n(l,{decode:()=>Lt,decodeGeneratedRanges:()=>it,decodeOriginalScopes:()=>fe,encode:()=>dr,encodeGeneratedRanges:()=>vt,encodeOriginalScopes:()=>_e}),e.exports=o(l);var u=44,f=59,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=new Uint8Array(64),C=new Uint8Array(128);for(let z=0;z<x.length;z++){let K=x.charCodeAt(z);A[z]=K,C[K]=z}function I(z,K){let M=0,G=0,ce=0;do{let Fe=z.next();ce=C[Fe],M|=(ce&31)<<G,G+=5}while(ce&32);let be=M&1;return M>>>=1,be&&(M=-2147483648|-M),K+M}function k(z,K,M){let G=K-M;G=G<0?-G<<1|1:G<<1;do{let ce=G&31;G>>>=5,G>0&&(ce|=32),z.write(A[ce])}while(G>0);return K}function N(z,K){return z.pos>=K?!1:z.peek()!==u}var D=1024*16,F=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(z){return Buffer.from(z.buffer,z.byteOffset,z.byteLength).toString()}}:{decode(z){let K="";for(let M=0;M<z.length;M++)K+=String.fromCharCode(z[M]);return K}},ie=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(D)}write(z){let{buffer:K}=this;K[this.pos++]=z,this.pos===D&&(this.out+=F.decode(K),this.pos=0)}flush(){let{buffer:z,out:K,pos:M}=this;return M>0?K+F.decode(z.subarray(0,M)):K}},H=class{constructor(z){this.pos=0,this.buffer=z}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(z){let{buffer:K,pos:M}=this,G=K.indexOf(z,M);return G===-1?K.length:G}},$=[];function fe(z){let{length:K}=z,M=new H(z),G=[],ce=[],be=0;for(;M.pos<K;M.pos++){be=I(M,be);let Fe=I(M,0);if(!N(M,K)){let We=ce.pop();We[2]=be,We[3]=Fe;continue}let Ne=I(M,0),je=I(M,0)&1?[be,Fe,0,0,Ne,I(M,0)]:[be,Fe,0,0,Ne],Ke=$;if(N(M,K)){Ke=[];do{let We=I(M,0);Ke.push(We)}while(N(M,K))}je.vars=Ke,G.push(je),ce.push(je)}return G}function _e(z){let K=new ie;for(let M=0;M<z.length;)M=qe(z,M,K,[0]);return K.flush()}function qe(z,K,M,G){let ce=z[K],{0:be,1:Fe,2:Ne,3:Ue,4:Le,vars:je}=ce;K>0&&M.write(u),G[0]=k(M,be,G[0]),k(M,Fe,0),k(M,Le,0);let Ke=ce.length===6?1:0;k(M,Ke,0),ce.length===6&&k(M,ce[5],0);for(let We of je)k(M,We,0);for(K++;K<z.length;){let We=z[K],{0:Ae,1:Je}=We;if(Ae>Ne||Ae===Ne&&Je>=Ue)break;K=qe(z,K,M,G)}return M.write(u),G[0]=k(M,Ne,G[0]),k(M,Ue,0),K}function it(z){let{length:K}=z,M=new H(z),G=[],ce=[],be=0,Fe=0,Ne=0,Ue=0,Le=0,je=0,Ke=0,We=0;do{let Ae=M.indexOf(";"),Je=0;for(;M.pos<Ae;M.pos++){if(Je=I(M,Je),!N(M,Ae)){let se=ce.pop();se[2]=be,se[3]=Je;continue}let Ge=I(M,0),mt=Ge&1,yt=Ge&2,mr=Ge&4,V=null,U=$,Q;if(mt){let se=I(M,Fe);Ne=I(M,Fe===se?Ne:0),Fe=se,Q=[be,Je,0,0,se,Ne]}else Q=[be,Je,0,0];if(Q.isScope=!!mr,yt){let se=Ue,he=Le;Ue=I(M,Ue);let de=se===Ue;Le=I(M,de?Le:0),je=I(M,de&&he===Le?je:0),V=[Ue,Le,je]}if(Q.callsite=V,N(M,Ae)){U=[];do{Ke=be,We=Je;let se=I(M,0),he;if(se<-1){he=[[I(M,0)]];for(let de=-1;de>se;de--){let Oe=Ke;Ke=I(M,Ke),We=I(M,Ke===Oe?We:0);let ut=I(M,0);he.push([ut,Ke,We])}}else he=[[se]];U.push(he)}while(N(M,Ae))}Q.bindings=U,G.push(Q),ce.push(Q)}be++,M.pos=Ae+1}while(M.pos<K);return G}function vt(z){if(z.length===0)return"";let K=new ie;for(let M=0;M<z.length;)M=Ct(z,M,K,[0,0,0,0,0,0,0]);return K.flush()}function Ct(z,K,M,G){let ce=z[K],{0:be,1:Fe,2:Ne,3:Ue,isScope:Le,callsite:je,bindings:Ke}=ce;G[0]<be?(Ot(M,G[0],be),G[0]=be,G[1]=0):K>0&&M.write(u),G[1]=k(M,ce[1],G[1]);let We=(ce.length===6?1:0)|(je?2:0)|(Le?4:0);if(k(M,We,0),ce.length===6){let{4:Ae,5:Je}=ce;Ae!==G[2]&&(G[3]=0),G[2]=k(M,Ae,G[2]),G[3]=k(M,Je,G[3])}if(je){let{0:Ae,1:Je,2:Ge}=ce.callsite;Ae!==G[4]?(G[5]=0,G[6]=0):Je!==G[5]&&(G[6]=0),G[4]=k(M,Ae,G[4]),G[5]=k(M,Je,G[5]),G[6]=k(M,Ge,G[6])}if(Ke)for(let Ae of Ke){Ae.length>1&&k(M,-Ae.length,0);let Je=Ae[0][0];k(M,Je,0);let Ge=be,mt=Fe;for(let yt=1;yt<Ae.length;yt++){let mr=Ae[yt];Ge=k(M,mr[1],Ge),mt=k(M,mr[2],mt),k(M,mr[0],0)}}for(K++;K<z.length;){let Ae=z[K],{0:Je,1:Ge}=Ae;if(Je>Ne||Je===Ne&&Ge>=Ue)break;K=Ct(z,K,M,G)}return G[0]<Ne?(Ot(M,G[0],Ne),G[0]=Ne,G[1]=0):M.write(u),G[1]=k(M,Ue,G[1]),K}function Ot(z,K,M){do z.write(f);while(++K<M)}function Lt(z){let{length:K}=z,M=new H(z),G=[],ce=0,be=0,Fe=0,Ne=0,Ue=0;do{let Le=M.indexOf(";"),je=[],Ke=!0,We=0;for(ce=0;M.pos<Le;){let Ae;ce=I(M,ce),ce<We&&(Ke=!1),We=ce,N(M,Le)?(be=I(M,be),Fe=I(M,Fe),Ne=I(M,Ne),N(M,Le)?(Ue=I(M,Ue),Ae=[ce,be,Fe,Ne,Ue]):Ae=[ce,be,Fe,Ne]):Ae=[ce],je.push(Ae),M.pos++}Ke||er(je),G.push(je),M.pos=Le+1}while(M.pos<=K);return G}function er(z){z.sort(Kr)}function Kr(z,K){return z[0]-K[0]}function dr(z){let K=new ie,M=0,G=0,ce=0,be=0;for(let Fe=0;Fe<z.length;Fe++){let Ne=z[Fe];if(Fe>0&&K.write(f),Ne.length===0)continue;let Ue=0;for(let Le=0;Le<Ne.length;Le++){let je=Ne[Le];Le>0&&K.write(u),Ue=k(K,je[0],Ue),je.length!==1&&(M=k(K,je[1],M),G=k(K,je[2],G),ce=k(K,je[3],ce),je.length!==4&&(be=k(K,je[4],be)))}}return K.flush()}}))});var Ep=_((Ia,wa)=>{"use strict";d();(function(e,t){typeof Ia=="object"&&typeof wa<"u"?wa.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(Ia,(function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(N){return e.test(N)}function s(N){return N.startsWith("//")}function n(N){return N.startsWith("/")}function a(N){return N.startsWith("file:")}function o(N){return/^[.?#]/.test(N)}function l(N){let D=t.exec(N);return f(D[1],D[2]||"",D[3],D[4]||"",D[5]||"/",D[6]||"",D[7]||"")}function u(N){let D=r.exec(N),F=D[2];return f("file:","",D[1]||"","",n(F)?F:"/"+F,D[3]||"",D[4]||"")}function f(N,D,F,ie,H,$,fe){return{scheme:N,user:D,host:F,port:ie,path:H,query:$,hash:fe,type:7}}function x(N){if(s(N)){let F=l("http:"+N);return F.scheme="",F.type=6,F}if(n(N)){let F=l("http://foo.com"+N);return F.scheme="",F.host="",F.type=5,F}if(a(N))return u(N);if(i(N))return l(N);let D=l("http://foo.com/"+N);return D.scheme="",D.host="",D.type=N?N.startsWith("?")?3:N.startsWith("#")?2:4:1,D}function A(N){if(N.endsWith("/.."))return N;let D=N.lastIndexOf("/");return N.slice(0,D+1)}function C(N,D){I(D,D.type),N.path==="/"?N.path=D.path:N.path=A(D.path)+N.path}function I(N,D){let F=D<=4,ie=N.path.split("/"),H=1,$=0,fe=!1;for(let qe=1;qe<ie.length;qe++){let it=ie[qe];if(!it){fe=!0;continue}if(fe=!1,it!=="."){if(it===".."){$?(fe=!0,$--,H--):F&&(ie[H++]=it);continue}ie[H++]=it,$++}}let _e="";for(let qe=1;qe<H;qe++)_e+="/"+ie[qe];(!_e||fe&&!_e.endsWith("/.."))&&(_e+="/"),N.path=_e}function k(N,D){if(!N&&!D)return"";let F=x(N),ie=F.type;if(D&&ie!==7){let $=x(D),fe=$.type;switch(ie){case 1:F.hash=$.hash;case 2:F.query=$.query;case 3:case 4:C(F,$);case 5:F.user=$.user,F.host=$.host,F.port=$.port;case 6:F.scheme=$.scheme}fe>ie&&(ie=fe)}I(F,ie);let H=F.query+F.hash;switch(ie){case 2:case 3:return H;case 4:{let $=F.path.slice(1);return $?o(D||N)&&!o($)?"./"+$+H:$+H:H||"."}case 5:return F.path+H;default:return F.scheme+"//"+F.user+F.host+F.port+F.path+H}}return k}))});var _a=_((Na,Qi)=>{"use strict";d();(function(e,t){if(typeof Na=="object"&&typeof Qi<"u")t(Qi,Ep(),Ca()),Qi.exports=r(Qi);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(Na,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(O,j)=>function(){return j||(0,O[a(O)[0]])((j={exports:{}}).exports,j),j.exports},f=(O,j)=>{for(var R in j)s(O,R,{get:j[R],enumerable:!0})},x=(O,j,R,X)=>{if(j&&typeof j=="object"||typeof j=="function")for(let ue of a(j))!l.call(O,ue)&&ue!==R&&s(O,ue,{get:()=>j[ue],enumerable:!(X=n(j,ue))||X.enumerable});return O},A=(O,j,R)=>(R=O!=null?i(o(O)):{},x(j||!O||!O.__esModule?s(R,"default",{value:O,enumerable:!0}):R,O)),C=O=>x(s({},"__esModule",{value:!0}),O),I=u({"umd:@jridgewell/sourcemap-codec"(O,j){j.exports=r}}),k=u({"umd:@jridgewell/resolve-uri"(O,j){j.exports=t}}),N={};f(N,{AnyMap:()=>Ue,FlattenMap:()=>Ue,GREATEST_LOWER_BOUND:()=>mt,LEAST_UPPER_BOUND:()=>Ge,TraceMap:()=>yt,allGeneratedPositionsFor:()=>de,decodedMap:()=>Jr,decodedMappings:()=>U,eachMapping:()=>Oe,encodedMap:()=>yi,encodedMappings:()=>V,generatedPositionFor:()=>he,isIgnored:()=>zi,originalPositionFor:()=>se,presortedDecodedMap:()=>Vr,sourceContentFor:()=>Mt,traceSegment:()=>Q}),e.exports=C(N);var D=A(I()),F=A(k());function ie(O){if(!O)return"";let j=O.lastIndexOf("/");return O.slice(0,j+1)}function H(O,j){let R=ie(O),X=j?j+"/":"";return ue=>(0,F.default)(X+(ue||""),R)}var $=0,fe=1,_e=2,qe=3,it=4,vt=1,Ct=2;function Ot(O,j){let R=Lt(O,0);if(R===O.length)return O;j||(O=O.slice());for(let X=R;X<O.length;X=Lt(O,X+1))O[X]=Kr(O[X],j);return O}function Lt(O,j){for(let R=j;R<O.length;R++)if(!er(O[R]))return R;return O.length}function er(O){for(let j=1;j<O.length;j++)if(O[j][$]<O[j-1][$])return!1;return!0}function Kr(O,j){return j||(O=O.slice()),O.sort(dr)}function dr(O,j){return O[$]-j[$]}function z(O,j){let R=j.map(()=>[]);for(let X=0;X<O.length;X++){let ue=O[X];for(let ne=0;ne<ue.length;ne++){let ve=ue[ne];if(ve.length===1)continue;let Ve=ve[fe],Ee=ve[_e],st=ve[qe],ot=R[Ve];(ot[Ee]||(ot[Ee]=[])).push([st,X,ve[$]])}}for(let X=0;X<R.length;X++){let ue=R[X];for(let ne=0;ne<ue.length;ne++){let ve=ue[ne];ve&&ve.sort(dr)}}return R}var K=!1;function M(O,j,R,X){for(;R<=X;){let ue=R+(X-R>>1),ne=O[ue][$]-j;if(ne===0)return K=!0,ue;ne<0?R=ue+1:X=ue-1}return K=!1,R-1}function G(O,j,R){for(let X=R+1;X<O.length&&O[X][$]===j;R=X++);return R}function ce(O,j,R){for(let X=R-1;X>=0&&O[X][$]===j;R=X--);return R}function be(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Fe(O,j,R,X){let{lastKey:ue,lastNeedle:ne,lastIndex:ve}=R,Ve=0,Ee=O.length-1;if(X===ue){if(j===ne)return K=ve!==-1&&O[ve][$]===j,ve;j>=ne?Ve=ve===-1?0:ve:Ee=ve}return R.lastKey=X,R.lastNeedle=j,R.lastIndex=M(O,j,Ve,Ee)}function Ne(O){return typeof O=="string"?JSON.parse(O):O}var Ue=function(O,j){let R=Ne(O);if(!("sections"in R))return new yt(R,j);let X=[],ue=[],ne=[],ve=[],Ve=[];Le(R,j,X,ue,ne,ve,Ve,0,0,1/0,1/0);let Ee={version:3,file:R.file,names:ve,sources:ue,sourcesContent:ne,mappings:X,ignoreList:Ve};return Vr(Ee)};function Le(O,j,R,X,ue,ne,ve,Ve,Ee,st,ot){let{sections:lt}=O;for(let Dt=0;Dt<lt.length;Dt++){let{map:Bt,offset:tr}=lt[Dt],rr=st,Sr=ot;if(Dt+1<lt.length){let Ti=lt[Dt+1].offset;rr=Math.min(st,Ve+Ti.line),rr===st?Sr=Math.min(ot,Ee+Ti.column):rr<st&&(Sr=Ee+Ti.column)}je(Bt,j,R,X,ue,ne,ve,Ve+tr.line,Ee+tr.column,rr,Sr)}}function je(O,j,R,X,ue,ne,ve,Ve,Ee,st,ot){let lt=Ne(O);if("sections"in lt)return Le(...arguments);let Dt=new yt(lt,j),Bt=X.length,tr=ne.length,rr=U(Dt),{resolvedSources:Sr,sourcesContent:Ti,ignoreList:Ea}=Dt;if(Ke(X,Sr),Ke(ne,Dt.names),Ti)Ke(ue,Ti);else for(let Ft=0;Ft<Sr.length;Ft++)ue.push(null);if(Ea)for(let Ft=0;Ft<Ea.length;Ft++)ve.push(Ea[Ft]+Bt);for(let Ft=0;Ft<rr.length;Ft++){let Pa=Ve+Ft;if(Pa>st)return;let yp=We(R,Pa),aS=Ft===0?Ee:0,Tp=rr[Ft];for(let Aa=0;Aa<Tp.length;Aa++){let Xr=Tp[Aa],Vs=aS+Xr[$];if(Pa===st&&Vs>=ot)return;if(Xr.length===1){yp.push([Vs]);continue}let Sp=Bt+Xr[fe],gp=Xr[_e],xp=Xr[qe];yp.push(Xr.length===4?[Vs,Sp,gp,xp]:[Vs,Sp,gp,xp,tr+Xr[it]])}}}function Ke(O,j){for(let R=0;R<j.length;R++)O.push(j[R])}function We(O,j){for(let R=O.length;R<=j;R++)O[R]=[];return O[j]}var Ae="`line` must be greater than 0 (lines start at line 1)",Je="`column` must be greater than or equal to 0 (columns start at column 0)",Ge=-1,mt=1,yt=class{constructor(O,j){let R=typeof O=="string";if(!R&&O._decodedMemo)return O;let X=Ne(O),{version:ue,file:ne,names:ve,sourceRoot:Ve,sources:Ee,sourcesContent:st}=X;this.version=ue,this.file=ne,this.names=ve||[],this.sourceRoot=Ve,this.sources=Ee,this.sourcesContent=st,this.ignoreList=X.ignoreList||X.x_google_ignoreList||void 0;let ot=H(j,Ve);this.resolvedSources=Ee.map(ot);let{mappings:lt}=X;if(typeof lt=="string")this._encoded=lt,this._decoded=void 0;else if(Array.isArray(lt))this._encoded=void 0,this._decoded=Ot(lt,R);else throw X.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(X)}`);this._decodedMemo=be(),this._bySources=void 0,this._bySourceMemos=void 0}};function mr(O){return O}function V(O){var j,R;return(R=(j=O)._encoded)!=null?R:j._encoded=(0,D.encode)(O._decoded)}function U(O){var j;return(j=O)._decoded||(j._decoded=(0,D.decode)(O._encoded))}function Q(O,j,R){let X=U(O);if(j>=X.length)return null;let ue=X[j],ne=Yr(ue,O._decodedMemo,j,R,mt);return ne===-1?null:ue[ne]}function se(O,j){let{line:R,column:X,bias:ue}=j;if(R--,R<0)throw new Error(Ae);if(X<0)throw new Error(Je);let ne=U(O);if(R>=ne.length)return Tr(null,null,null,null);let ve=ne[R],Ve=Yr(ve,O._decodedMemo,R,X,ue||mt);if(Ve===-1)return Tr(null,null,null,null);let Ee=ve[Ve];if(Ee.length===1)return Tr(null,null,null,null);let{names:st,resolvedSources:ot}=O;return Tr(ot[Ee[fe]],Ee[_e]+1,Ee[qe],Ee.length===5?st[Ee[it]]:null)}function he(O,j){let{source:R,line:X,column:ue,bias:ne}=j;return mp(O,R,X,ue,ne||mt,!1)}function de(O,j){let{source:R,line:X,column:ue,bias:ne}=j;return mp(O,R,X,ue,ne||Ge,!0)}function Oe(O,j){let R=U(O),{names:X,resolvedSources:ue}=O;for(let ne=0;ne<R.length;ne++){let ve=R[ne];for(let Ve=0;Ve<ve.length;Ve++){let Ee=ve[Ve],st=ne+1,ot=Ee[0],lt=null,Dt=null,Bt=null,tr=null;Ee.length!==1&&(lt=ue[Ee[1]],Dt=Ee[2]+1,Bt=Ee[3]),Ee.length===5&&(tr=X[Ee[4]]),j({generatedLine:st,generatedColumn:ot,source:lt,originalLine:Dt,originalColumn:Bt,name:tr})}}}function ut(O,j){let{sources:R,resolvedSources:X}=O,ue=R.indexOf(j);return ue===-1&&(ue=X.indexOf(j)),ue}function Mt(O,j){let{sourcesContent:R}=O;if(R==null)return null;let X=ut(O,j);return X===-1?null:R[X]}function zi(O,j){let{ignoreList:R}=O;if(R==null)return!1;let X=ut(O,j);return X===-1?!1:R.includes(X)}function Vr(O,j){let R=new yt(yr(O,[]),j);return R._decoded=O.mappings,R}function Jr(O){return yr(O,U(O))}function yi(O){return yr(O,V(O))}function yr(O,j){return{version:O.version,file:O.file,names:O.names,sourceRoot:O.sourceRoot,sources:O.sources,sourcesContent:O.sourcesContent,mappings:j,ignoreList:O.ignoreList||O.x_google_ignoreList}}function Tr(O,j,R,X){return{source:O,line:j,column:R,name:X}}function Wt(O,j){return{line:O,column:j}}function Yr(O,j,R,X,ue){let ne=Fe(O,X,j,R);return K?ne=(ue===Ge?G:ce)(O,X,ne):ue===Ge&&ne++,ne===-1||ne===O.length?-1:ne}function nS(O,j,R,X,ue){let ne=Yr(O,j,R,X,mt);if(!K&&ue===Ge&&ne++,ne===-1||ne===O.length)return[];let ve=K?X:O[ne][$];K||(ne=ce(O,ve,ne));let Ve=G(O,ve,ne),Ee=[];for(;ne<=Ve;ne++){let st=O[ne];Ee.push(Wt(st[vt]+1,st[Ct]))}return Ee}function mp(O,j,R,X,ue,ne){var ve,Ve;if(R--,R<0)throw new Error(Ae);if(X<0)throw new Error(Je);let{sources:Ee,resolvedSources:st}=O,ot=Ee.indexOf(j);if(ot===-1&&(ot=st.indexOf(j)),ot===-1)return ne?[]:Wt(null,null);let lt=(ve=O)._bySourceMemos||(ve._bySourceMemos=Ee.map(be)),Bt=((Ve=O)._bySources||(Ve._bySources=z(U(O),lt)))[ot][R];if(Bt==null)return ne?[]:Wt(null,null);let tr=lt[ot];if(ne)return nS(Bt,tr,R,X,ue);let rr=Yr(Bt,tr,R,X,ue);if(rr===-1)return Wt(null,null);let Sr=Bt[rr];return Wt(Sr[vt]+1,Sr[Ct])}}))});var Pp=_((Oa,Zi)=>{"use strict";d();(function(e,t){if(typeof Oa=="object"&&typeof Zi<"u")t(Zi,Ca(),_a()),Zi.exports=r(Zi);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(Oa,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(V,U)=>function(){return U||(0,V[a(V)[0]])((U={exports:{}}).exports,U),U.exports},f=(V,U)=>{for(var Q in U)s(V,Q,{get:U[Q],enumerable:!0})},x=(V,U,Q,se)=>{if(U&&typeof U=="object"||typeof U=="function")for(let he of a(U))!l.call(V,he)&&he!==Q&&s(V,he,{get:()=>U[he],enumerable:!(se=n(U,he))||se.enumerable});return V},A=(V,U,Q)=>(Q=V!=null?i(o(V)):{},x(U||!V||!V.__esModule?s(Q,"default",{value:V,enumerable:!0}):Q,V)),C=V=>x(s({},"__esModule",{value:!0}),V),I=u({"umd:@jridgewell/sourcemap-codec"(V,U){U.exports=t}}),k=u({"umd:@jridgewell/trace-mapping"(V,U){U.exports=r}}),N={};f(N,{GenMapping:()=>er,addMapping:()=>z,addSegment:()=>dr,allMappings:()=>Ue,fromMap:()=>Ne,maybeAddMapping:()=>M,maybeAddSegment:()=>K,setIgnore:()=>ce,setSourceContent:()=>G,toDecodedMap:()=>be,toEncodedMap:()=>Fe}),e.exports=C(N);var D=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function F(V){return V}function ie(V,U){return V._indexes[U]}function H(V,U){let Q=ie(V,U);if(Q!==void 0)return Q;let{array:se,_indexes:he}=V,de=se.push(U);return he[U]=de-1}function $(V,U){let Q=ie(V,U);if(Q===void 0)return;let{array:se,_indexes:he}=V;for(let de=Q+1;de<se.length;de++){let Oe=se[de];se[de-1]=Oe,he[Oe]--}he[U]=void 0,se.pop()}var fe=A(I()),_e=A(k()),qe=0,it=1,vt=2,Ct=3,Ot=4,Lt=-1,er=class{constructor({file:V,sourceRoot:U}={}){this._names=new D,this._sources=new D,this._sourcesContent=[],this._mappings=[],this.file=V,this.sourceRoot=U,this._ignoreList=new D}};function Kr(V){return V}function dr(V,U,Q,se,he,de,Oe,ut){return Le(!1,V,U,Q,se,he,de,Oe,ut)}function z(V,U){return mr(!1,V,U)}var K=(V,U,Q,se,he,de,Oe,ut)=>Le(!0,V,U,Q,se,he,de,Oe,ut),M=(V,U)=>mr(!0,V,U);function G(V,U,Q){let{_sources:se,_sourcesContent:he}=V,de=H(se,U);he[de]=Q}function ce(V,U,Q=!0){let{_sources:se,_sourcesContent:he,_ignoreList:de}=V,Oe=H(se,U);Oe===he.length&&(he[Oe]=null),Q?H(de,Oe):$(de,Oe)}function be(V){let{_mappings:U,_sources:Q,_sourcesContent:se,_names:he,_ignoreList:de}=V;return Je(U),{version:3,file:V.file||void 0,names:he.array,sourceRoot:V.sourceRoot||void 0,sources:Q.array,sourcesContent:se,mappings:U,ignoreList:de.array}}function Fe(V){let U=be(V);return Object.assign({},U,{mappings:(0,fe.encode)(U.mappings)})}function Ne(V){let U=new _e.TraceMap(V),Q=new er({file:U.file,sourceRoot:U.sourceRoot});return Ge(Q._names,U.names),Ge(Q._sources,U.sources),Q._sourcesContent=U.sourcesContent||U.sources.map(()=>null),Q._mappings=(0,_e.decodedMappings)(U),U.ignoreList&&Ge(Q._ignoreList,U.ignoreList),Q}function Ue(V){let U=[],{_mappings:Q,_sources:se,_names:he}=V;for(let de=0;de<Q.length;de++){let Oe=Q[de];for(let ut=0;ut<Oe.length;ut++){let Mt=Oe[ut],zi={line:de+1,column:Mt[qe]},Vr,Jr,yi;Mt.length!==1&&(Vr=se.array[Mt[it]],Jr={line:Mt[vt]+1,column:Mt[Ct]},Mt.length===5&&(yi=he.array[Mt[Ot]])),U.push({generated:zi,source:Vr,original:Jr,name:yi})}}return U}function Le(V,U,Q,se,he,de,Oe,ut,Mt){let{_mappings:zi,_sources:Vr,_sourcesContent:Jr,_names:yi}=U,yr=Ke(zi,Q),Tr=We(yr,se);if(!he)return V&&mt(yr,Tr)?void 0:Ae(yr,Tr,[se]);let Wt=H(Vr,he),Yr=ut?H(yi,ut):Lt;if(Wt===Jr.length&&(Jr[Wt]=Mt??null),!(V&&yt(yr,Tr,Wt,de,Oe,Yr)))return Ae(yr,Tr,ut?[se,Wt,de,Oe,Yr]:[se,Wt,de,Oe])}function je(V){}function Ke(V,U){for(let Q=V.length;Q<=U;Q++)V[Q]=[];return V[U]}function We(V,U){let Q=V.length;for(let se=Q-1;se>=0;Q=se--){let he=V[se];if(U>=he[qe])break}return Q}function Ae(V,U,Q){for(let se=V.length;se>U;se--)V[se]=V[se-1];V[U]=Q}function Je(V){let{length:U}=V,Q=U;for(let se=Q-1;se>=0&&!(V[se].length>0);Q=se,se--);Q<U&&(V.length=Q)}function Ge(V,U){for(let Q=0;Q<U.length;Q++)H(V,U[Q])}function mt(V,U){return U===0?!0:V[U-1].length===1}function yt(V,U,Q,se,he,de){if(U===0)return!1;let Oe=V[U-1];return Oe.length===1?!1:Q===Oe[it]&&se===Oe[vt]&&he===Oe[Ct]&&de===(Oe.length===5?Oe[Ot]:Lt)}function mr(V,U,Q){let{generated:se,source:he,original:de,name:Oe,content:ut}=Q;return he?Le(V,U,se.line-1,se.column,he,de.line-1,de.column,Oe,ut):Le(V,U,se.line-1,se.column,null,null,null,null,null)}}))});var Ap=_(Ys=>{"use strict";d();Object.defineProperty(Ys,"__esModule",{value:!0});Ys.default=void 0;var Ir=Pp(),Da=_a(),ka=class{constructor(t,r){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let s=this._map=new Ir.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(i=t.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new Da.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0,Ir.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o])}}if(typeof r=="string"&&!t.inputSourceMap)(0,Ir.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,Ir.setSourceContent)(s,a.replace(/\\/g,"/"),r[a])}get(){return(0,Ir.toEncodedMap)(this._map)}getDecoded(){return(0,Ir.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,Ir.allMappings)(this._map))}mark(t,r,i,s,n,a){var o;this._rawMappings=void 0;let l;if(r!=null)if(this._inputMap){if(l=(0,Da.originalPositionFor)(this._inputMap,{line:r,column:i}),l.name&&(n||s!=null&&l.column===i))s=l.name;else if(n){let u=(0,Da.originalPositionFor)(this._inputMap,n);u.name&&(s=u.name)}}else l={name:null,source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0,Ir.maybeAddMapping)(this._map,{name:s,generated:t,source:(o=l)==null?void 0:o.source,original:l})}};Ys.default=ka});var Cp=_(Xs=>{"use strict";d();Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=void 0;var vp=[];for(let e=0;e<32;e++)vp.push(" ".repeat(e*2));var La=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r}get(){let{_map:t,_last:r}=this;this._queuedChar!==32&&this._flush();let i=r===10?(this._buf+this._str).trimRight():this._buf+this._str;if(t===null)return{code:i,decodedMap:void 0,map:null,rawMappings:void 0};let s={code:i,decodedMap:t.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t.get();return s.map=n,n},set map(n){Object.defineProperty(s,"map",{value:n,writable:!0})},get rawMappings(){let n=t.getRawMappings();return s.rawMappings=n,n},set rawMappings(n){Object.defineProperty(s,"rawMappings",{value:n,writable:!0})}};return s}append(t,r,i=!1){this._flush(),this._append(t,r,i)}appendChar(t){this._flush(),this._appendChar(t,1,!0)}queue(t){this._flush(),this._queuedChar=t}_flush(){let t=this._queuedChar;t!==0&&(this._appendChar(t,1,!0),this._queuedChar=0)}_appendChar(t,r,i){if(this._last=t,t===-1){let a=r>=64?this._indentChar.repeat(r):vp[r/2];this._str+=a}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);let s=t===32,n=this._position;if(t!==10){if(this._map){let a=this._sourcePosition;i&&a?(this._map.mark(n,a.line,a.column,s?void 0:a.identifierName,s?void 0:a.identifierNamePos,a.filename),!s&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0)):this._map.mark(n)}n.column+=r}else n.line++,n.column=0}_append(t,r,i){let s=t.length,n=this._position,a=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t;let o=!i&&this._map!==null;if(!r&&!o){n.column+=s;return}let{column:l,identifierName:u,identifierNamePos:f,filename:x}=a,A=a.line;(u!=null||f!=null)&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0);let C=t.indexOf(`
|
|
2
|
+
`),I=0;for(o&&C!==0&&this._map.mark(n,A,l,u,f,x);C!==-1;)n.line++,n.column=0,I=C+1,I<s&&A!==void 0&&(A++,o&&this._map.mark(n,A,0,void 0,void 0,x)),C=t.indexOf(`
|
|
3
|
+
`,I);n.column+=s-I}removeLastSemicolon(){this._queuedChar===59&&(this._queuedChar=0)}getLastChar(t){if(!t)return this._last;let r=this._queuedChar;return r!==0?r:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let i=t.identifierName,s=this._sourcePosition;i!=null&&(this._canMarkIdName=!1,s.identifierName=i),r(),i!=null&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,i){this._map&&this._normalizePosition(t,r,i)}_normalizePosition(t,r,i){this._flush();let s=r[t];s&&(this.setSourcePosition(s.line,Math.max(s.column+i,0)),this._sourcePosition.filename=r.filename)}setSourcePosition(t,r){let i=this._sourcePosition;i.line=t,i.column=r}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}};Xs.default=La});var Ws=_(Ma=>{"use strict";d();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.default=mS;function mS(e,t){let r=Object.keys(t);for(let i of r)if(e[i]!==t[i])return!1;return!0}});var Si=_(Ba=>{"use strict";d();Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=yS;var Ip=new Set;function yS(e,t,r="",i=e){if(Ip.has(i))return;Ip.add(i);let{internal:s,trace:n}=TS(1,2);s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
|
|
4
|
+
${n}`)}function TS(e,t){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!s)return{internal:!1,trace:""};let n=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map(a=>` at ${a}`).join(`
|
|
5
|
+
`)}}});var Qe=_(m=>{"use strict";d();Object.defineProperty(m,"__esModule",{value:!0});m.isAccessor=ME;m.isAnyTypeAnnotation=Zg;m.isArgumentPlaceholder=wb;m.isArrayExpression=SS;m.isArrayPattern=yg;m.isArrayTypeAnnotation=ex;m.isArrowFunctionExpression=Tg;m.isAssignmentExpression=gS;m.isAssignmentPattern=mg;m.isAwaitExpression=qg;m.isBigIntLiteral=Kg;m.isBinary=iE;m.isBinaryExpression=xS;m.isBindExpression=Nb;m.isBlock=aE;m.isBlockParent=nE;m.isBlockStatement=AS;m.isBooleanLiteral=YS;m.isBooleanLiteralTypeAnnotation=rx;m.isBooleanTypeAnnotation=tx;m.isBreakStatement=vS;m.isCallExpression=CS;m.isCatchClause=IS;m.isClass=DE;m.isClassAccessorProperty=Wg;m.isClassBody=Sg;m.isClassDeclaration=xg;m.isClassExpression=gg;m.isClassImplements=sx;m.isClassMethod=Dg;m.isClassPrivateMethod=Hg;m.isClassPrivateProperty=$g;m.isClassProperty=Xg;m.isCompletionStatement=uE;m.isConditional=cE;m.isConditionalExpression=wS;m.isContinueStatement=NS;m.isDebuggerStatement=_S;m.isDecimalLiteral=Mb;m.isDeclaration=gE;m.isDeclareClass=nx;m.isDeclareExportAllDeclaration=dx;m.isDeclareExportDeclaration=hx;m.isDeclareFunction=ax;m.isDeclareInterface=ox;m.isDeclareModule=lx;m.isDeclareModuleExports=ux;m.isDeclareOpaqueType=px;m.isDeclareTypeAlias=cx;m.isDeclareVariable=fx;m.isDeclaredPredicate=mx;m.isDecorator=_b;m.isDirective=ES;m.isDirectiveLiteral=PS;m.isDoExpression=Ob;m.isDoWhileStatement=OS;m.isEmptyStatement=DS;m.isEmptyTypeAnnotation=Cx;m.isEnumBody=KE;m.isEnumBooleanBody=eb;m.isEnumBooleanMember=sb;m.isEnumDeclaration=Zx;m.isEnumDefaultedMember=ob;m.isEnumMember=VE;m.isEnumNumberBody=tb;m.isEnumNumberMember=nb;m.isEnumStringBody=rb;m.isEnumStringMember=ab;m.isEnumSymbolBody=ib;m.isExistsTypeAnnotation=yx;m.isExportAllDeclaration=bg;m.isExportDeclaration=kE;m.isExportDefaultDeclaration=Eg;m.isExportDefaultSpecifier=Db;m.isExportNamedDeclaration=Pg;m.isExportNamespaceSpecifier=Vg;m.isExportSpecifier=Ag;m.isExpression=rE;m.isExpressionStatement=kS;m.isExpressionWrapper=hE;m.isFile=LS;m.isFlow=FE;m.isFlowBaseAnnotation=RE;m.isFlowDeclaration=qE;m.isFlowPredicate=UE;m.isFlowType=jE;m.isFor=dE;m.isForInStatement=MS;m.isForOfStatement=vg;m.isForStatement=BS;m.isForXStatement=mE;m.isFunction=yE;m.isFunctionDeclaration=FS;m.isFunctionExpression=jS;m.isFunctionParameter=xE;m.isFunctionParent=TE;m.isFunctionTypeAnnotation=Tx;m.isFunctionTypeParam=Sx;m.isGenericTypeAnnotation=gx;m.isIdentifier=RS;m.isIfStatement=qS;m.isImmutable=vE;m.isImport=Ug;m.isImportAttribute=Qg;m.isImportDeclaration=Cg;m.isImportDefaultSpecifier=Ig;m.isImportExpression=_g;m.isImportNamespaceSpecifier=wg;m.isImportOrExportDeclaration=wp;m.isImportSpecifier=Ng;m.isIndexedAccessType=lb;m.isInferredPredicate=xx;m.isInterfaceDeclaration=Ex;m.isInterfaceExtends=bx;m.isInterfaceTypeAnnotation=Px;m.isInterpreterDirective=bS;m.isIntersectionTypeAnnotation=Ax;m.isJSX=JE;m.isJSXAttribute=cb;m.isJSXClosingElement=pb;m.isJSXClosingFragment=Ab;m.isJSXElement=fb;m.isJSXEmptyExpression=hb;m.isJSXExpressionContainer=db;m.isJSXFragment=Eb;m.isJSXIdentifier=yb;m.isJSXMemberExpression=Tb;m.isJSXNamespacedName=Sb;m.isJSXOpeningElement=gb;m.isJSXOpeningFragment=Pb;m.isJSXSpreadAttribute=xb;m.isJSXSpreadChild=mb;m.isJSXText=bb;m.isLVal=EE;m.isLabeledStatement=US;m.isLiteral=AE;m.isLogicalExpression=WS;m.isLoop=pE;m.isMemberExpression=$S;m.isMetaProperty=Og;m.isMethod=IE;m.isMiscellaneous=YE;m.isMixedTypeAnnotation=vx;m.isModuleDeclaration=eP;m.isModuleExpression=Bb;m.isModuleSpecifier=LE;m.isNewExpression=HS;m.isNoop=vb;m.isNullLiteral=JS;m.isNullLiteralTypeAnnotation=ix;m.isNullableTypeAnnotation=Ix;m.isNumberLiteral=zE;m.isNumberLiteralTypeAnnotation=wx;m.isNumberTypeAnnotation=Nx;m.isNumericLiteral=VS;m.isObjectExpression=GS;m.isObjectMember=wE;m.isObjectMethod=QS;m.isObjectPattern=kg;m.isObjectProperty=ZS;m.isObjectTypeAnnotation=_x;m.isObjectTypeCallProperty=Dx;m.isObjectTypeIndexer=kx;m.isObjectTypeInternalSlot=Ox;m.isObjectTypeProperty=Lx;m.isObjectTypeSpreadProperty=Mx;m.isOpaqueType=Bx;m.isOptionalCallExpression=Yg;m.isOptionalIndexedAccessType=ub;m.isOptionalMemberExpression=Jg;m.isParenthesizedExpression=ig;m.isPattern=OE;m.isPatternLike=bE;m.isPipelineBareFunction=Rb;m.isPipelinePrimaryTopicReference=qb;m.isPipelineTopicExpression=jb;m.isPlaceholder=Cb;m.isPrivate=BE;m.isPrivateName=zg;m.isProgram=zS;m.isProperty=NE;m.isPureish=SE;m.isQualifiedTypeIdentifier=Fx;m.isRecordExpression=kb;m.isRegExpLiteral=XS;m.isRegexLiteral=GE;m.isRestElement=eg;m.isRestProperty=QE;m.isReturnStatement=tg;m.isScopable=sE;m.isSequenceExpression=rg;m.isSpreadElement=Lg;m.isSpreadProperty=ZE;m.isStandardized=tE;m.isStatement=oE;m.isStaticBlock=Gg;m.isStringLiteral=KS;m.isStringLiteralTypeAnnotation=jx;m.isStringTypeAnnotation=Rx;m.isSuper=Mg;m.isSwitchCase=sg;m.isSwitchStatement=ng;m.isSymbolTypeAnnotation=qx;m.isTSAnyKeyword=Gb;m.isTSArrayType=T0;m.isTSAsExpression=F0;m.isTSBaseType=HE;m.isTSBigIntKeyword=Zb;m.isTSBooleanKeyword=Qb;m.isTSCallSignatureDeclaration=Xb;m.isTSConditionalType=A0;m.isTSConstructSignatureDeclaration=Wb;m.isTSConstructorType=f0;m.isTSDeclareFunction=Vb;m.isTSDeclareMethod=Jb;m.isTSEntityName=PE;m.isTSEnumBody=q0;m.isTSEnumDeclaration=U0;m.isTSEnumMember=K0;m.isTSExportAssignment=H0;m.isTSExpressionWithTypeArguments=D0;m.isTSExternalModuleReference=W0;m.isTSFunctionType=p0;m.isTSImportEqualsDeclaration=X0;m.isTSImportType=Y0;m.isTSIndexSignature=zb;m.isTSIndexedAccessType=w0;m.isTSInferType=v0;m.isTSInstantiationExpression=B0;m.isTSInterfaceBody=L0;m.isTSInterfaceDeclaration=k0;m.isTSIntersectionType=P0;m.isTSIntrinsicKeyword=e0;m.isTSLiteralType=O0;m.isTSMappedType=N0;m.isTSMethodSignature=Hb;m.isTSModuleBlock=J0;m.isTSModuleDeclaration=V0;m.isTSNamedTupleMember=b0;m.isTSNamespaceExportDeclaration=z0;m.isTSNeverKeyword=t0;m.isTSNonNullExpression=$0;m.isTSNullKeyword=r0;m.isTSNumberKeyword=i0;m.isTSObjectKeyword=s0;m.isTSOptionalType=g0;m.isTSParameterProperty=Kb;m.isTSParenthesizedType=C0;m.isTSPropertySignature=$b;m.isTSQualifiedName=Yb;m.isTSRestType=x0;m.isTSSatisfiesExpression=j0;m.isTSStringKeyword=n0;m.isTSSymbolKeyword=a0;m.isTSTemplateLiteralType=_0;m.isTSThisType=c0;m.isTSTupleType=S0;m.isTSType=$E;m.isTSTypeAliasDeclaration=M0;m.isTSTypeAnnotation=G0;m.isTSTypeAssertion=R0;m.isTSTypeElement=WE;m.isTSTypeLiteral=y0;m.isTSTypeOperator=I0;m.isTSTypeParameter=eE;m.isTSTypeParameterDeclaration=Z0;m.isTSTypeParameterInstantiation=Q0;m.isTSTypePredicate=d0;m.isTSTypeQuery=m0;m.isTSTypeReference=h0;m.isTSUndefinedKeyword=o0;m.isTSUnionType=E0;m.isTSUnknownKeyword=l0;m.isTSVoidKeyword=u0;m.isTaggedTemplateExpression=Bg;m.isTemplateElement=Fg;m.isTemplateLiteral=jg;m.isTerminatorless=lE;m.isThisExpression=ag;m.isThisTypeAnnotation=Ux;m.isThrowStatement=og;m.isTopicReference=Fb;m.isTryStatement=lg;m.isTupleExpression=Lb;m.isTupleTypeAnnotation=Kx;m.isTypeAlias=Jx;m.isTypeAnnotation=Yx;m.isTypeCastExpression=Xx;m.isTypeParameter=Wx;m.isTypeParameterDeclaration=$x;m.isTypeParameterInstantiation=Hx;m.isTypeScript=XE;m.isTypeofTypeAnnotation=Vx;m.isUnaryExpression=ug;m.isUnaryLike=_E;m.isUnionTypeAnnotation=zx;m.isUpdateExpression=cg;m.isUserWhitespacable=CE;m.isV8IntrinsicIdentifier=Ib;m.isVariableDeclaration=pg;m.isVariableDeclarator=fg;m.isVariance=Gx;m.isVoidPattern=Ub;m.isVoidTypeAnnotation=Qx;m.isWhile=fE;m.isWhileStatement=hg;m.isWithStatement=dg;m.isYieldExpression=Rg;var S=Ws(),es=Si();function SS(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,S.default)(e,t)}function gS(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,S.default)(e,t)}function xS(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,S.default)(e,t)}function bS(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,S.default)(e,t)}function ES(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,S.default)(e,t)}function PS(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,S.default)(e,t)}function AS(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,S.default)(e,t)}function vS(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,S.default)(e,t)}function CS(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,S.default)(e,t)}function IS(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,S.default)(e,t)}function wS(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,S.default)(e,t)}function NS(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,S.default)(e,t)}function _S(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,S.default)(e,t)}function OS(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,S.default)(e,t)}function DS(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,S.default)(e,t)}function kS(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,S.default)(e,t)}function LS(e,t){return!e||e.type!=="File"?!1:t==null||(0,S.default)(e,t)}function MS(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,S.default)(e,t)}function BS(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,S.default)(e,t)}function FS(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,S.default)(e,t)}function jS(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,S.default)(e,t)}function RS(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,S.default)(e,t)}function qS(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,S.default)(e,t)}function US(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,S.default)(e,t)}function KS(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,S.default)(e,t)}function VS(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,S.default)(e,t)}function JS(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,S.default)(e,t)}function YS(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,S.default)(e,t)}function XS(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,S.default)(e,t)}function WS(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,S.default)(e,t)}function $S(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,S.default)(e,t)}function HS(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,S.default)(e,t)}function zS(e,t){return!e||e.type!=="Program"?!1:t==null||(0,S.default)(e,t)}function GS(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,S.default)(e,t)}function QS(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,S.default)(e,t)}function ZS(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,S.default)(e,t)}function eg(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,S.default)(e,t)}function tg(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,S.default)(e,t)}function rg(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,S.default)(e,t)}function ig(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,S.default)(e,t)}function sg(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,S.default)(e,t)}function ng(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,S.default)(e,t)}function ag(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,S.default)(e,t)}function og(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,S.default)(e,t)}function lg(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,S.default)(e,t)}function ug(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,S.default)(e,t)}function cg(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,S.default)(e,t)}function pg(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,S.default)(e,t)}function fg(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,S.default)(e,t)}function hg(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,S.default)(e,t)}function dg(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,S.default)(e,t)}function mg(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,S.default)(e,t)}function yg(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,S.default)(e,t)}function Tg(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,S.default)(e,t)}function Sg(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,S.default)(e,t)}function gg(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,S.default)(e,t)}function xg(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,S.default)(e,t)}function bg(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,S.default)(e,t)}function Eg(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,S.default)(e,t)}function Pg(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,S.default)(e,t)}function Ag(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,S.default)(e,t)}function vg(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,S.default)(e,t)}function Cg(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,S.default)(e,t)}function Ig(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,S.default)(e,t)}function wg(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,S.default)(e,t)}function Ng(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,S.default)(e,t)}function _g(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,S.default)(e,t)}function Og(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,S.default)(e,t)}function Dg(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,S.default)(e,t)}function kg(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,S.default)(e,t)}function Lg(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,S.default)(e,t)}function Mg(e,t){return!e||e.type!=="Super"?!1:t==null||(0,S.default)(e,t)}function Bg(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,S.default)(e,t)}function Fg(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,S.default)(e,t)}function jg(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,S.default)(e,t)}function Rg(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,S.default)(e,t)}function qg(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,S.default)(e,t)}function Ug(e,t){return!e||e.type!=="Import"?!1:t==null||(0,S.default)(e,t)}function Kg(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,S.default)(e,t)}function Vg(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,S.default)(e,t)}function Jg(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,S.default)(e,t)}function Yg(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,S.default)(e,t)}function Xg(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,S.default)(e,t)}function Wg(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,S.default)(e,t)}function $g(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,S.default)(e,t)}function Hg(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,S.default)(e,t)}function zg(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,S.default)(e,t)}function Gg(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,S.default)(e,t)}function Qg(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,S.default)(e,t)}function Zg(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function ex(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function tx(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function rx(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function ix(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function sx(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,S.default)(e,t)}function nx(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,S.default)(e,t)}function ax(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,S.default)(e,t)}function ox(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,S.default)(e,t)}function lx(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,S.default)(e,t)}function ux(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,S.default)(e,t)}function cx(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,S.default)(e,t)}function px(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,S.default)(e,t)}function fx(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,S.default)(e,t)}function hx(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,S.default)(e,t)}function dx(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,S.default)(e,t)}function mx(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,S.default)(e,t)}function yx(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Tx(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Sx(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,S.default)(e,t)}function gx(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function xx(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,S.default)(e,t)}function bx(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,S.default)(e,t)}function Ex(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,S.default)(e,t)}function Px(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Ax(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function vx(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Cx(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Ix(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function wx(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Nx(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function _x(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Ox(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,S.default)(e,t)}function Dx(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,S.default)(e,t)}function kx(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,S.default)(e,t)}function Lx(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,S.default)(e,t)}function Mx(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,S.default)(e,t)}function Bx(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,S.default)(e,t)}function Fx(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,S.default)(e,t)}function jx(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Rx(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function qx(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Ux(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Kx(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Vx(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Jx(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,S.default)(e,t)}function Yx(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Xx(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,S.default)(e,t)}function Wx(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,S.default)(e,t)}function $x(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,S.default)(e,t)}function Hx(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,S.default)(e,t)}function zx(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Gx(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,S.default)(e,t)}function Qx(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Zx(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,S.default)(e,t)}function eb(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,S.default)(e,t)}function tb(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,S.default)(e,t)}function rb(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,S.default)(e,t)}function ib(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,S.default)(e,t)}function sb(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,S.default)(e,t)}function nb(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,S.default)(e,t)}function ab(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,S.default)(e,t)}function ob(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,S.default)(e,t)}function lb(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,S.default)(e,t)}function ub(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,S.default)(e,t)}function cb(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,S.default)(e,t)}function pb(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,S.default)(e,t)}function fb(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,S.default)(e,t)}function hb(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,S.default)(e,t)}function db(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,S.default)(e,t)}function mb(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,S.default)(e,t)}function yb(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,S.default)(e,t)}function Tb(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,S.default)(e,t)}function Sb(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,S.default)(e,t)}function gb(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,S.default)(e,t)}function xb(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,S.default)(e,t)}function bb(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,S.default)(e,t)}function Eb(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,S.default)(e,t)}function Pb(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,S.default)(e,t)}function Ab(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,S.default)(e,t)}function vb(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,S.default)(e,t)}function Cb(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,S.default)(e,t)}function Ib(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,S.default)(e,t)}function wb(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,S.default)(e,t)}function Nb(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,S.default)(e,t)}function _b(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,S.default)(e,t)}function Ob(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,S.default)(e,t)}function Db(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,S.default)(e,t)}function kb(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,S.default)(e,t)}function Lb(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,S.default)(e,t)}function Mb(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,S.default)(e,t)}function Bb(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,S.default)(e,t)}function Fb(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,S.default)(e,t)}function jb(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,S.default)(e,t)}function Rb(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,S.default)(e,t)}function qb(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,S.default)(e,t)}function Ub(e,t){return!e||e.type!=="VoidPattern"?!1:t==null||(0,S.default)(e,t)}function Kb(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,S.default)(e,t)}function Vb(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,S.default)(e,t)}function Jb(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,S.default)(e,t)}function Yb(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,S.default)(e,t)}function Xb(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,S.default)(e,t)}function Wb(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,S.default)(e,t)}function $b(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,S.default)(e,t)}function Hb(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,S.default)(e,t)}function zb(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,S.default)(e,t)}function Gb(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,S.default)(e,t)}function Qb(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,S.default)(e,t)}function Zb(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,S.default)(e,t)}function e0(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,S.default)(e,t)}function t0(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,S.default)(e,t)}function r0(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,S.default)(e,t)}function i0(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,S.default)(e,t)}function s0(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,S.default)(e,t)}function n0(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,S.default)(e,t)}function a0(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,S.default)(e,t)}function o0(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,S.default)(e,t)}function l0(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,S.default)(e,t)}function u0(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,S.default)(e,t)}function c0(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,S.default)(e,t)}function p0(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,S.default)(e,t)}function f0(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,S.default)(e,t)}function h0(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,S.default)(e,t)}function d0(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,S.default)(e,t)}function m0(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,S.default)(e,t)}function y0(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,S.default)(e,t)}function T0(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,S.default)(e,t)}function S0(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,S.default)(e,t)}function g0(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,S.default)(e,t)}function x0(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,S.default)(e,t)}function b0(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,S.default)(e,t)}function E0(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,S.default)(e,t)}function P0(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,S.default)(e,t)}function A0(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,S.default)(e,t)}function v0(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,S.default)(e,t)}function C0(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,S.default)(e,t)}function I0(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,S.default)(e,t)}function w0(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,S.default)(e,t)}function N0(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,S.default)(e,t)}function _0(e,t){return!e||e.type!=="TSTemplateLiteralType"?!1:t==null||(0,S.default)(e,t)}function O0(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,S.default)(e,t)}function D0(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,S.default)(e,t)}function k0(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,S.default)(e,t)}function L0(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,S.default)(e,t)}function M0(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,S.default)(e,t)}function B0(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,S.default)(e,t)}function F0(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,S.default)(e,t)}function j0(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,S.default)(e,t)}function R0(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,S.default)(e,t)}function q0(e,t){return!e||e.type!=="TSEnumBody"?!1:t==null||(0,S.default)(e,t)}function U0(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,S.default)(e,t)}function K0(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,S.default)(e,t)}function V0(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,S.default)(e,t)}function J0(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,S.default)(e,t)}function Y0(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,S.default)(e,t)}function X0(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,S.default)(e,t)}function W0(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,S.default)(e,t)}function $0(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,S.default)(e,t)}function H0(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,S.default)(e,t)}function z0(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,S.default)(e,t)}function G0(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Q0(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,S.default)(e,t)}function Z0(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,S.default)(e,t)}function eE(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,S.default)(e,t)}function tE(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function rE(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function iE(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,S.default)(e,t)}function sE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,S.default)(e,t)}function nE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,S.default)(e,t)}function aE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,S.default)(e,t)}function oE(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function lE(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,S.default)(e,t)}function uE(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function cE(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function pE(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function fE(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function hE(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,S.default)(e,t)}function dE(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function mE(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function yE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,S.default)(e,t)}function TE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,S.default)(e,t)}function SE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,S.default)(e,t)}function gE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,S.default)(e,t)}function xE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,S.default)(e,t)}function bE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function EE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function PE(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,S.default)(e,t)}function AE(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,S.default)(e,t)}function vE(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,S.default)(e,t)}function CE(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,S.default)(e,t)}function IE(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,S.default)(e,t)}function wE(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,S.default)(e,t)}function NE(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,S.default)(e,t)}function _E(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,S.default)(e,t)}function OE(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,S.default)(e,t)}function DE(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,S.default)(e,t)}function wp(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,S.default)(e,t)}function kE(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,S.default)(e,t)}function LE(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,S.default)(e,t)}function ME(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,S.default)(e,t)}function BE(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,S.default)(e,t)}function FE(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,S.default)(e,t)}function jE(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,S.default)(e,t)}function RE(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,S.default)(e,t)}function qE(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,S.default)(e,t)}function UE(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,S.default)(e,t)}function KE(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,S.default)(e,t)}function VE(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,S.default)(e,t)}function JE(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,S.default)(e,t)}function YE(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,S.default)(e,t)}function XE(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,S.default)(e,t)}function WE(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,S.default)(e,t)}function $E(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,S.default)(e,t)}function HE(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,S.default)(e,t)}function zE(e,t){return(0,es.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,S.default)(e,t)}function GE(e,t){return(0,es.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,S.default)(e,t)}function QE(e,t){return(0,es.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,S.default)(e,t)}function ZE(e,t){return(0,es.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,S.default)(e,t)}function eP(e,t){return(0,es.default)("isModuleDeclaration","isImportOrExportDeclaration"),wp(e,t)}});var ja=_(Fa=>{"use strict";d();Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=tP;var Wr=Qe();function Np(e){return(0,Wr.isMemberExpression)(e)||(0,Wr.isMetaProperty)(e)}function tP(e,t,r){if(!Np(e))return!1;let i=Array.isArray(t)?t:t.split("."),s=[],n;for(n=e;Np(n);n=(a=n.object)!=null?a:n.meta){var a;s.push(n.property)}if(s.push(n),s.length<i.length||!r&&s.length>i.length)return!1;for(let o=0,l=s.length-1;o<i.length;o++,l--){let u=s[l],f;if((0,Wr.isIdentifier)(u))f=u.name;else if((0,Wr.isStringLiteral)(u))f=u.value;else if((0,Wr.isThisExpression)(u))f="this";else if((0,Wr.isSuper)(u))f="super";else if((0,Wr.isPrivateName)(u))f="#"+u.id.name;else return!1;if(i[o]!==f)return!1}return!0}});var qa=_(Ra=>{"use strict";d();Object.defineProperty(Ra,"__esModule",{value:!0});Ra.default=iP;var rP=ja();function iP(e,t){let r=e.split(".");return i=>(0,rP.default)(i,r,t)}});var _p=_($s=>{"use strict";d();Object.defineProperty($s,"__esModule",{value:!0});$s.default=void 0;var sP=qa(),nP=(0,sP.default)("React.Component"),uX=$s.default=nP});var Op=_(Ua=>{"use strict";d();Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=aP;function aP(e){return!!e&&/^[a-z]/.test(e)}});var Hs=_(Ka=>{"use strict";d();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.default=oP;var Dp=jt();function oP(e,t){if(e===t)return!0;if(e==null||Dp.ALIAS_KEYS[t])return!1;let r=Dp.FLIPPED_ALIAS_KEYS[t];return!!(r!=null&&r.includes(e))}});var Ja=_(Va=>{"use strict";d();Object.defineProperty(Va,"__esModule",{value:!0});Va.default=uP;var lP=jt();function uP(e,t){if(e===t)return!0;let r=lP.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(t))}});var gi=_(Ya=>{"use strict";d();Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=dP;var cP=Ws(),pP=Hs(),fP=Ja(),hP=jt();function dP(e,t,r){return t?(0,pP.default)(t.type,e)?r===void 0?!0:(0,cP.default)(t,r):!r&&t.type==="Placeholder"&&e in hP.FLIPPED_ALIAS_KEYS?(0,fP.default)(t.expectedNode,e):!1:!1}});var Fp=_(ts=>{"use strict";d();Object.defineProperty(ts,"__esModule",{value:!0});ts.isIdentifierChar=Bp;ts.isIdentifierName=SP;ts.isIdentifierStart=Mp;var Wa="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",kp="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",mP=new RegExp("["+Wa+"]"),yP=new RegExp("["+Wa+kp+"]");Wa=kp=null;var Lp=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],TP=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Xa(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function Mp(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&mP.test(String.fromCharCode(e)):Xa(e,Lp)}function Bp(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&yP.test(String.fromCharCode(e)):Xa(e,Lp)||Xa(e,TP)}function SP(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if((i&64512)===55296&&r+1<e.length){let s=e.charCodeAt(++r);(s&64512)===56320&&(i=65536+((i&1023)<<10)+(s&1023))}if(t){if(t=!1,!Mp(i))return!1}else if(!Bp(i))return!1}return!t}});var Up=_($r=>{"use strict";d();Object.defineProperty($r,"__esModule",{value:!0});$r.isKeyword=PP;$r.isReservedWord=jp;$r.isStrictBindOnlyReservedWord=qp;$r.isStrictBindReservedWord=EP;$r.isStrictReservedWord=Rp;var $a={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},gP=new Set($a.keyword),xP=new Set($a.strict),bP=new Set($a.strictBind);function jp(e,t){return t&&e==="await"||e==="enum"}function Rp(e,t){return jp(e,t)||xP.has(e)}function qp(e){return bP.has(e)}function EP(e,t){return Rp(e,t)||qp(e)}function PP(e){return gP.has(e)}});var is=_(ir=>{"use strict";d();Object.defineProperty(ir,"__esModule",{value:!0});Object.defineProperty(ir,"isIdentifierChar",{enumerable:!0,get:function(){return Ha.isIdentifierChar}});Object.defineProperty(ir,"isIdentifierName",{enumerable:!0,get:function(){return Ha.isIdentifierName}});Object.defineProperty(ir,"isIdentifierStart",{enumerable:!0,get:function(){return Ha.isIdentifierStart}});Object.defineProperty(ir,"isKeyword",{enumerable:!0,get:function(){return rs.isKeyword}});Object.defineProperty(ir,"isReservedWord",{enumerable:!0,get:function(){return rs.isReservedWord}});Object.defineProperty(ir,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return rs.isStrictBindOnlyReservedWord}});Object.defineProperty(ir,"isStrictBindReservedWord",{enumerable:!0,get:function(){return rs.isStrictBindReservedWord}});Object.defineProperty(ir,"isStrictReservedWord",{enumerable:!0,get:function(){return rs.isStrictReservedWord}});var Ha=Fp(),rs=Up()});var xi=_(Ga=>{"use strict";d();Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=AP;var za=is();function AP(e,t=!0){return typeof e!="string"||t&&((0,za.isKeyword)(e)||(0,za.isStrictReservedWord)(e,!0))?!1:(0,za.isIdentifierName)(e)}});var Yp=_(ss=>{"use strict";d();Object.defineProperty(ss,"__esModule",{value:!0});ss.readCodePoint=Jp;ss.readInt=Vp;ss.readStringContents=CP;var vP=function(t){return t>=48&&t<=57},Kp={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},zs={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function CP(e,t,r,i,s,n){let a=r,o=i,l=s,u="",f=null,x=r,{length:A}=t;for(;;){if(r>=A){n.unterminated(a,o,l),u+=t.slice(x,r);break}let C=t.charCodeAt(r);if(IP(e,C,t,r)){u+=t.slice(x,r);break}if(C===92){u+=t.slice(x,r);let I=wP(t,r,i,s,e==="template",n);I.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=I.ch,{pos:r,lineStart:i,curLine:s}=I,x=r}else C===8232||C===8233?(++r,++s,i=r):C===10||C===13?e==="template"?(u+=t.slice(x,r)+`
|
|
6
|
+
`,++r,C===13&&t.charCodeAt(r)===10&&++r,++s,x=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function IP(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function wP(e,t,r,i,s,n){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
|
|
7
|
+
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Qa(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=Jp(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,x=/^[0-7]+/.exec(e.slice(u,t+2))[0],A=parseInt(x,8);A>255&&(x=x.slice(0,-1),A=parseInt(x,8)),t+=x.length-1;let C=e.charCodeAt(t);if(x!=="0"||C===56||C===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(A))}return o(String.fromCharCode(l))}}function Qa(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=Vp(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function Vp(e,t,r,i,s,n,a,o,l,u){let f=t,x=s===16?Kp.hex:Kp.decBinOct,A=s===16?zs.hex:s===10?zs.dec:s===8?zs.oct:zs.bin,C=!1,I=0;for(let k=0,N=n??1/0;k<N;++k){let D=e.charCodeAt(t),F;if(D===95&&o!=="bail"){let ie=e.charCodeAt(t-1),H=e.charCodeAt(t+1);if(o){if(Number.isNaN(H)||!A(H)||x.has(ie)||x.has(H)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(D>=97?F=D-97+10:D>=65?F=D-65+10:vP(D)?F=D-48:F=1/0,F>=s){if(F<=9&&u)return{n:null,pos:t};if(F<=9&&l.invalidDigit(t,r,i,s))F=0;else if(a)F=0,C=!0;else break}++t,I=I*s+F}return t===f||n!=null&&t-f!==n||C?{n:null,pos:t}:{n:I,pos:t}}function Jp(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Qa(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=Qa(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}});var bi=_(Te=>{"use strict";d();Object.defineProperty(Te,"__esModule",{value:!0});Te.UPDATE_OPERATORS=Te.UNARY_OPERATORS=Te.STRING_UNARY_OPERATORS=Te.STATEMENT_OR_BLOCK_KEYS=Te.NUMBER_UNARY_OPERATORS=Te.NUMBER_BINARY_OPERATORS=Te.LOGICAL_OPERATORS=Te.INHERIT_KEYS=Te.FOR_INIT_KEYS=Te.FLATTENABLE_KEYS=Te.EQUALITY_BINARY_OPERATORS=Te.COMPARISON_BINARY_OPERATORS=Te.COMMENT_KEYS=Te.BOOLEAN_UNARY_OPERATORS=Te.BOOLEAN_NUMBER_BINARY_OPERATORS=Te.BOOLEAN_BINARY_OPERATORS=Te.BINARY_OPERATORS=Te.ASSIGNMENT_OPERATORS=void 0;var _X=Te.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],OX=Te.FLATTENABLE_KEYS=["body","expressions"],DX=Te.FOR_INIT_KEYS=["left","init"],kX=Te.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],NP=Te.LOGICAL_OPERATORS=["||","&&","??"],LX=Te.UPDATE_OPERATORS=["++","--"],_P=Te.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],OP=Te.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],DP=Te.COMPARISON_BINARY_OPERATORS=[...OP,"in","instanceof"],kP=Te.BOOLEAN_BINARY_OPERATORS=[...DP,..._P],Xp=Te.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],MX=Te.BINARY_OPERATORS=["+",...Xp,...kP,"|>"],BX=Te.ASSIGNMENT_OPERATORS=["=","+=",...Xp.map(e=>e+"="),...NP.map(e=>e+"=")],LP=Te.BOOLEAN_UNARY_OPERATORS=["delete","!"],MP=Te.NUMBER_UNARY_OPERATORS=["+","-","~"],BP=Te.STRING_UNARY_OPERATORS=["typeof"],FX=Te.UNARY_OPERATORS=["void","throw",...LP,...MP,...BP],jX=Te.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};Te.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");Te.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var sr=_(Pe=>{"use strict";d();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.allExpandedTypes=Pe.VISITOR_KEYS=Pe.NODE_UNION_SHAPES__PRIVATE=Pe.NODE_PARENT_VALIDATIONS=Pe.NODE_FIELDS=Pe.FLIPPED_ALIAS_KEYS=Pe.DEPRECATED_KEYS=Pe.BUILDER_KEYS=Pe.ALIAS_KEYS=void 0;Pe.arrayOf=$p;Pe.arrayOfType=Hp;Pe.assertEach=zp;Pe.assertNodeOrValueType=zP;Pe.assertNodeType=Qs;Pe.assertOneOf=$P;Pe.assertOptionalChainStart=QP;Pe.assertShape=GP;Pe.assertValueType=ro;Pe.chain=Gp;Pe.default=Qp;Pe.defineAliasedType=tA;Pe.validate=to;Pe.validateArrayOfType=WP;Pe.validateOptional=YP;Pe.validateOptionalType=XP;Pe.validateType=JP;var Wp=gi(),ns=Zs(),FP=Pe.VISITOR_KEYS={},jP=Pe.ALIAS_KEYS={},Za=Pe.FLIPPED_ALIAS_KEYS={},RP=Pe.NODE_FIELDS={},qP=Pe.BUILDER_KEYS={},UP=Pe.DEPRECATED_KEYS={},KP=Pe.NODE_PARENT_VALIDATIONS={},VP=Pe.NODE_UNION_SHAPES__PRIVATE={};function Gs(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function to(e){return{validate:e}}function JP(...e){return to(Qs(...e))}function YP(e){return{validate:e,optional:!0}}function XP(...e){return{validate:Qs(...e),optional:!0}}function $p(e){return Gp(ro("array"),zp(e))}function Hp(...e){return $p(Qs(...e))}function WP(...e){return to(Hp(...e))}function zp(e){let t=v.env.BABEL_TYPES_8_BREAKING?ns.validateChild:()=>{};function r(i,s,n){if(!Array.isArray(n))return;let a=0,o={toString(){return`${s}[${a}]`}};for(;a<n.length;a++){let l=n[a];e(i,o,l),t(i,o,l)}}return r.each=e,r}function $P(...e){function t(r,i,s){if(!e.includes(s))throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`)}return t.oneOf=e,t}var HP=Pe.allExpandedTypes=[];function Qs(...e){let t=new Set;HP.push({types:e,set:t});function r(i,s,n){let a=n?.type;if(a!=null){if(t.has(a)){(0,ns.validateChild)(i,s,n);return}if(a==="Placeholder"){for(let o of e)if((0,Wp.default)(o,n)){(0,ns.validateChild)(i,s,n);return}}}throw new TypeError(`Property ${s} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return r.oneOfNodeTypes=e,r}function zP(...e){function t(r,i,s){let n=Gs(s);for(let a of e)if(n===a||(0,Wp.default)(a,s)){(0,ns.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function ro(e){function t(r,i,s){if(Gs(s)!==e)throw new TypeError(`Property ${i} expected type of ${e} but got ${Gs(s)}`)}return t.type=e,t}function GP(e){let t=Object.keys(e);function r(i,s,n){let a=[];for(let o of t)try{(0,ns.validateField)(i,o,n[o],e[o])}catch(l){if(l instanceof TypeError){a.push(l.message);continue}throw l}if(a.length)throw new TypeError(`Property ${s} of ${i.type} expected to have the following:
|
|
9
8
|
${a.join(`
|
|
10
|
-
`)}`)}return r.shapeOf=e,r}function eA(){function e(t){var r;let i=t;for(;t;){let{type:s}=i;if(s==="OptionalCallExpression"){if(i.optional)return;i=i.callee;continue}if(s==="OptionalMemberExpression"){if(i.optional)return;i=i.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return e}function Gp(...e){function t(...r){for(let i of e)i(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var tA=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),rA=new Set(["default","optional","deprecated","validate"]),Qa={};function iA(...e){return(t,r={})=>{let i=r.aliases;if(!i){var s;r.inherits&&(i=(s=Qa[r.inherits].aliases)==null?void 0:s.slice()),i??(i=[]),r.aliases=i}let n=e.filter(a=>!i.includes(a));i.unshift(...n),Qp(t,r)}}function Qp(e,t={}){let r=t.inherits&&Qa[t.inherits]||{},i=t.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],f=u.default;if(Array.isArray(f)?f.length>0:f&&typeof f=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[l]={default:Array.isArray(f)?[]:f,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let s=t.visitor||r.visitor||[],n=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!tA.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(VP[t.deprecatedAlias]=e);for(let o of s.concat(a))i[o]=i[o]||{};for(let o of Object.keys(i)){let l=i[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=eo(Hs(l.default)));for(let u of Object.keys(l))if(!rA.has(u))throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}RP[e]=t.visitor=s,KP[e]=t.builder=a,UP[e]=t.fields=i,qP[e]=t.aliases=n,n.forEach(o=>{Ga[o]=Ga[o]||[],Ga[o].push(e)}),t.validate&&(JP[e]=t.validate),t.unionShape&&(YP[e]=t.unionShape),Qa[e]=t}});var ns=w(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.patternLikeCommon=lt.importAttributes=lt.functionTypeAnnotationCommon=lt.functionDeclarationCommon=lt.functionCommon=lt.classMethodOrPropertyUnionShapeCommon=lt.classMethodOrPropertyCommon=lt.classMethodOrDeclareMethodCommon=void 0;var mt=Ti(),sA=Si(),Zp=ts(),nA=Yp(),xi=gi(),S=rr(),ss=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});lt.classMethodOrPropertyUnionShapeCommon=ss;var K=(0,S.defineAliasedType)("Standardized");K("ArrayExpression",{fields:{elements:{validate:(0,S.arrayOf)((0,S.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});K("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){let e=(0,S.assertOneOf)(...xi.ASSIGNMENT_OPERATORS),t=(0,S.assertOneOf)("=");return function(r,i,s){((0,mt.default)("Pattern",r.left)?t:e)(r,i,s)}})(),{oneOf:xi.ASSIGNMENT_OPERATORS}):(0,S.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,S.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});K("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,S.assertOneOf)(...xi.BINARY_OPERATORS)},left:{validate:(function(){let e=(0,S.assertNodeType)("Expression"),t=(0,S.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,n){(i.operator==="in"?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,S.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});K("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});K("Directive",{visitor:["value"],fields:{value:{validate:(0,S.assertNodeType)("DirectiveLiteral")}}});K("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});K("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,S.arrayOfType)("Directive"),default:[]},body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});K("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});K("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,S.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,S.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});K("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});K("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},consequent:{validate:(0,S.assertNodeType)("Expression")},alternate:{validate:(0,S.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});K("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});K("DebuggerStatement",{aliases:["Statement"]});K("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});K("EmptyStatement",{aliases:["Statement"]});K("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});K("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,S.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertEach)((0,S.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,S.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});K("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});K("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,S.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},update:{validate:(0,S.assertNodeType)("Expression"),optional:!0},body:{validate:(0,S.assertNodeType)("Statement")}}});var bi=()=>({params:(0,S.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});lt.functionCommon=bi;var Wr=()=>({returnType:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});lt.functionTypeAnnotationCommon=Wr;var ef=()=>Object.assign({},bi(),{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}});lt.functionDeclarationCommon=ef;K("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},ef(),Wr(),{body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,S.assertNodeType)("Identifier");return function(t,r,i){(0,mt.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});K("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},bi(),Wr(),{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Ei=()=>({typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}});lt.patternLikeCommon=Ei;K("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Ei(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,sA.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,S.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let i=/\.(\w+)$/.exec(t.toString());if(!i)return;let[,s]=i,n={computed:!1};if(s==="property"){if((0,mt.default)("MemberExpression",e,n)||(0,mt.default)("OptionalMemberExpression",e,n))return}else if(s==="key"){if((0,mt.default)("Property",e,n)||(0,mt.default)("Method",e,n))return}else if(s==="exported"){if((0,mt.default)("ExportSpecifier",e))return}else if(s==="imported"){if((0,mt.default)("ImportSpecifier",e,{imported:r}))return}else if(s==="meta"&&(0,mt.default)("MetaProperty",e,{meta:r}))return;if(((0,Zp.isKeyword)(r.name)||(0,Zp.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});K("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},consequent:{validate:(0,S.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,S.assertNodeType)("Statement")}}});K("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,S.assertNodeType)("Identifier")},body:{validate:(0,S.assertNodeType)("Statement")}}});K("StringLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});K("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,S.chain)((0,S.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let i=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});K("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});K("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});K("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,S.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("string"),Object.assign(function(e,t,r){let i=/[^dgimsuvy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,S.assertValueType)("string"),default:""}}});K("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,S.assertOneOf)(...xi.LOGICAL_OPERATORS)},left:{validate:(0,S.assertNodeType)("Expression")},right:{validate:(0,S.assertNodeType)("Expression")}}});K("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,S.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,S.assertNodeType)("Expression","Super")},property:{validate:(function(){let e=(0,S.assertNodeType)("Identifier","PrivateName"),t=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r})()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertValueType)("boolean"),optional:!0}})});K("NewExpression",{inherits:"CallExpression"});K("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,S.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,S.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,S.arrayOfType)("Directive"),default:[]},body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});K("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,S.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});K("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ss(),{fields:Object.assign({},bi(),Wr(),{kind:Object.assign({validate:(0,S.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r})()},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));K("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,S.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,mt.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,S.assertValueType)("boolean"),default:!1},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,S.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,S.assertNodeType)("Expression");return function(r,i,s){((0,mt.default)("ObjectPattern",r)?e:t)(s,"value",s.value)}})():void 0});K("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Ei(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(e[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}:void 0});K("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression"),optional:!0}}});K("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,S.validateArrayOfType)("Expression")},aliases:["Expression"]});K("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}}});K("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},consequent:(0,S.validateArrayOfType)("Statement")}});K("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,S.assertNodeType)("Expression")},cases:(0,S.validateArrayOfType)("SwitchCase")}});K("ThisExpression",{aliases:["Expression"]});K("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});K("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,S.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,S.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,S.assertNodeType)("BlockStatement")}}});K("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...xi.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});K("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","MemberExpression"):(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...xi.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});K("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},kind:{validate:(0,S.assertOneOf)("var","let","const","using","await using")},declarations:(0,S.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,S.assertNodeType)("Identifier","Placeholder"),t=(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,S.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(i,s,n){let{kind:a,declarations:o}=n,l=(0,mt.default)("ForXStatement",i,{left:n});if(l&&o.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(let u of o)a==="const"||a==="let"||a==="var"?!l&&!u.init?e(u,"id",u.id):t(u,"id",u.id):r(u,"id",u.id)}})():void 0});K("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,S.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,S.assertValueType)("boolean")},init:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});K("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});K("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});K("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ei(),{left:{validate:(0,S.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,S.assertNodeType)("Expression")},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}})});K("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ei(),{elements:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeOrValueType)("null","PatternLike")))}})});K("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},bi(),Wr(),{expression:{validate:(0,S.assertValueType)("boolean")},body:{validate:(0,S.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});K("ClassBody",{visitor:["body"],fields:{body:(0,S.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});K("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0}}});K("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,S.assertNodeType)("Identifier");return function(t,r,i){(0,mt.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});var Qs=lt.importAttributes={attributes:{optional:!0,validate:(0,S.arrayOfType)("ImportAttribute")}};Qs.assertions={deprecated:!0,optional:!0,validate:(0,S.arrayOfType)("ImportAttribute")};K("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,S.assertNodeType)("StringLiteral")},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("type","value"))},Qs)});K("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,S.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,S.validateOptional)((0,S.assertOneOf)("value"))}});K("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,S.assertNodeType)("Declaration")}},Qs,{specifiers:{default:[],validate:(0,S.arrayOf)((function(){let e=(0,S.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,S.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,i,s){(r.source?e:t)(r,i,s)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e})())},source:{validate:(0,S.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("type","value"))})});K("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},exported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,S.assertOneOf)("type","value"),optional:!0}}});K("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,S.assertNodeType)("VariableDeclaration","LVal");let e=(0,S.assertNodeType)("VariableDeclaration"),t=(0,S.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,i,s){(0,mt.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")},await:{default:!1}}});K("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},Qs,{module:{optional:!0,validate:(0,S.assertValueType)("boolean")},phase:{default:null,validate:(0,S.assertOneOf)("source","defer")},specifiers:(0,S.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,S.assertNodeType)("StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}})});K("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});K("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});K("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},imported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}}});K("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,S.assertOneOf)("source","defer")},source:{validate:(0,S.assertNodeType)("Expression")},options:{validate:(0,S.assertNodeType)("Expression"),optional:!0}}});K("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,mt.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,S.assertNodeType)("Identifier")},property:{validate:(0,S.assertNodeType)("Identifier")}}});var Zs=()=>({abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,S.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},key:{validate:(0,S.chain)((function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});lt.classMethodOrPropertyCommon=Zs;var to=()=>Object.assign({},bi(),Zs(),{params:(0,S.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,S.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,S.chain)((0,S.assertValueType)("string"),(0,S.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}});lt.classMethodOrDeclareMethodCommon=to;K("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ss(),{fields:Object.assign({},to(),Wr(),{body:{validate:(0,S.assertNodeType)("BlockStatement")}})}));K("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ei(),{properties:(0,S.validateArrayOfType)("RestElement","ObjectProperty")})});K("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});K("Super",{aliases:["Expression"]});K("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,S.assertNodeType)("Expression")},quasi:{validate:(0,S.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});K("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,S.chain)((0,S.assertShape)({raw:{validate:(0,S.assertValueType)("string")},cooked:{validate:(0,S.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,nA.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!i)throw new Error("Invalid raw");t.value.cooked=a?null:n})},tail:{default:!1}}});K("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,S.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
|
|
11
|
-
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});K("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,S.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});K("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});K("Import",{aliases:["Expression"]});K("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});K("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,S.assertNodeType)("Identifier")}}});K("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},property:{validate:(function(){let e=(0,S.assertNodeType)("Identifier"),t=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")}}});K("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,S.assertNodeType)("Expression")},arguments:(0,S.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")},typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});K("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},ss(),{fields:Object.assign({},Zs(),{value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})}));K("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},ss(!0),{fields:Object.assign({},Zs(),{key:{validate:(0,S.chain)((function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})}));K("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,S.assertNodeType)("PrivateName")},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,S.assertValueType)("boolean"),default:!1},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}}});K("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},to(),Wr(),{kind:{validate:(0,S.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,S.assertNodeType)("PrivateName")},body:{validate:(0,S.assertNodeType)("BlockStatement")}})});K("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,S.assertNodeType)("Identifier")}}});K("StaticBlock",{visitor:["body"],fields:{body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});K("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,S.assertNodeType)("StringLiteral")}}})});var rf=w(()=>{"use strict";var tf=ns(),C=rr(),ee=(0,C.defineAliasedType)("Flow"),ro=e=>{let t=e==="DeclareClass";ee(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),extends:(0,C.validateOptional)((0,C.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,C.validateOptional)((0,C.arrayOfType)("InterfaceExtends")),implements:(0,C.validateOptional)((0,C.arrayOfType)("ClassImplements"))}:{},{body:(0,C.validateType)("ObjectTypeAnnotation")})})};ee("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,C.validateType)("FlowType")}});ee("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,C.validate)((0,C.assertValueType)("boolean"))}});ee("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterInstantiation")}});ro("DeclareClass");ee("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),predicate:(0,C.validateOptionalType)("DeclaredPredicate")}});ro("DeclareInterface");ee("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier","StringLiteral"),body:(0,C.validateType)("BlockStatement"),kind:(0,C.validateOptional)((0,C.assertOneOf)("CommonJS","ES"))}});ee("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,C.validateType)("TypeAnnotation")}});ee("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),right:(0,C.validateType)("FlowType")}});ee("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,C.validateOptionalType)("FlowType"),impltype:(0,C.validateOptionalType)("FlowType")}});ee("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier")}});ee("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,C.validateOptionalType)("Flow"),specifiers:(0,C.validateOptional)((0,C.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,C.validateOptionalType)("StringLiteral"),default:(0,C.validateOptional)((0,C.assertValueType)("boolean"))},tf.importAttributes)});ee("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,C.validateType)("StringLiteral"),exportKind:(0,C.validateOptional)((0,C.assertOneOf)("type","value"))},tf.importAttributes)});ee("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,C.validateType)("Flow")}});ee("ExistsTypeAnnotation",{aliases:["FlowType"]});ee("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),params:(0,C.validateArrayOfType)("FunctionTypeParam"),rest:(0,C.validateOptionalType)("FunctionTypeParam"),this:(0,C.validateOptionalType)("FunctionTypeParam"),returnType:(0,C.validateType)("FlowType")}});ee("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,C.validateOptionalType)("Identifier"),typeAnnotation:(0,C.validateType)("FlowType"),optional:(0,C.validateOptional)((0,C.assertValueType)("boolean"))}});ee("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,C.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterInstantiation")}});ee("InferredPredicate",{aliases:["FlowPredicate"]});ee("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,C.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterInstantiation")}});ro("InterfaceDeclaration");ee("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,C.validateOptional)((0,C.arrayOfType)("InterfaceExtends")),body:(0,C.validateType)("ObjectTypeAnnotation")}});ee("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});ee("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,C.validateType)("FlowType")}});ee("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,C.validate)((0,C.assertValueType)("number"))}});ee("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,C.validate)((0,C.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,C.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,C.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,C.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,C.assertValueType)("boolean"),default:!1},inexact:(0,C.validateOptional)((0,C.assertValueType)("boolean"))}});ee("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,C.validateType)("Identifier"),value:(0,C.validateType)("FlowType"),optional:(0,C.validate)((0,C.assertValueType)("boolean")),static:(0,C.validate)((0,C.assertValueType)("boolean")),method:(0,C.validate)((0,C.assertValueType)("boolean"))}});ee("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,C.validateType)("FlowType"),static:(0,C.validate)((0,C.assertValueType)("boolean"))}});ee("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,C.validateOptionalType)("Identifier"),key:(0,C.validateType)("FlowType"),value:(0,C.validateType)("FlowType"),static:(0,C.validate)((0,C.assertValueType)("boolean")),variance:(0,C.validateOptionalType)("Variance")}});ee("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,C.validateType)("Identifier","StringLiteral"),value:(0,C.validateType)("FlowType"),kind:(0,C.validate)((0,C.assertOneOf)("init","get","set")),static:(0,C.validate)((0,C.assertValueType)("boolean")),proto:(0,C.validate)((0,C.assertValueType)("boolean")),optional:(0,C.validate)((0,C.assertValueType)("boolean")),variance:(0,C.validateOptionalType)("Variance"),method:(0,C.validate)((0,C.assertValueType)("boolean"))}});ee("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,C.validateType)("FlowType")}});ee("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,C.validateOptionalType)("FlowType"),impltype:(0,C.validateType)("FlowType")}});ee("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,C.validateType)("Identifier"),qualification:(0,C.validateType)("Identifier","QualifiedTypeIdentifier")}});ee("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,C.validate)((0,C.assertValueType)("string"))}});ee("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});ee("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,C.validateType)("FlowType")}});ee("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),right:(0,C.validateType)("FlowType")}});ee("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,C.validateType)("FlowType")}});ee("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,C.validateType)("Expression"),typeAnnotation:(0,C.validateType)("TypeAnnotation")}});ee("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,C.validate)((0,C.assertValueType)("string")),bound:(0,C.validateOptionalType)("TypeAnnotation"),default:(0,C.validateOptionalType)("FlowType"),variance:(0,C.validateOptionalType)("Variance")}});ee("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,C.validate)((0,C.arrayOfType)("TypeParameter"))}});ee("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});ee("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});ee("Variance",{builder:["kind"],fields:{kind:(0,C.validate)((0,C.assertOneOf)("minus","plus"))}});ee("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ee("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,C.validateType)("Identifier"),body:(0,C.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});ee("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,C.validate)((0,C.assertValueType)("boolean")),members:(0,C.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});ee("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,C.validate)((0,C.assertValueType)("boolean")),members:(0,C.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});ee("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,C.validate)((0,C.assertValueType)("boolean")),members:(0,C.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});ee("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,C.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});ee("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,C.validateType)("Identifier"),init:(0,C.validateType)("BooleanLiteral")}});ee("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,C.validateType)("Identifier"),init:(0,C.validateType)("NumericLiteral")}});ee("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,C.validateType)("Identifier"),init:(0,C.validateType)("StringLiteral")}});ee("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,C.validateType)("Identifier")}});ee("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,C.validateType)("FlowType"),indexType:(0,C.validateType)("FlowType")}});ee("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,C.validateType)("FlowType"),indexType:(0,C.validateType)("FlowType"),optional:(0,C.validate)((0,C.assertValueType)("boolean"))}})});var sf=w(()=>{"use strict";var We=rr(),yt=(0,We.defineAliasedType)("JSX");yt("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,We.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,We.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});yt("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,We.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});yt("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,We.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,We.assertNodeType)("JSXClosingElement")},children:(0,We.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,We.assertValueType)("boolean"),optional:!0}})});yt("JSXEmptyExpression",{});yt("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,We.assertNodeType)("Expression","JSXEmptyExpression")}}});yt("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,We.assertNodeType)("Expression")}}});yt("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,We.assertValueType)("string")}}});yt("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,We.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,We.assertNodeType)("JSXIdentifier")}}});yt("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,We.assertNodeType)("JSXIdentifier")},name:{validate:(0,We.assertNodeType)("JSXIdentifier")}}});yt("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,We.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,We.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,We.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,We.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});yt("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,We.assertNodeType)("Expression")}}});yt("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,We.assertValueType)("string")}}});yt("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,We.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,We.assertNodeType)("JSXClosingFragment")},children:(0,We.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});yt("JSXOpeningFragment",{aliases:["Immutable"]});yt("JSXClosingFragment",{aliases:["Immutable"]})});var no=w(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.PLACEHOLDERS_FLIPPED_ALIAS=Cr.PLACEHOLDERS_ALIAS=Cr.PLACEHOLDERS=void 0;var aA=rr(),oA=Cr.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],so=Cr.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of oA){let t=aA.ALIAS_KEYS[e];t!=null&&t.length&&(so[e]=t)}var io=Cr.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(so).forEach(e=>{so[e].forEach(t=>{hasOwnProperty.call(io,t)||(io[t]=[]),io[t].push(e)})})});var nf=w(()=>{"use strict";var en=rr(),lA=no(),uA=ns(),ao=(0,en.defineAliasedType)("Miscellaneous");ao("Noop",{visitor:[]});ao("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,en.assertNodeType)("Identifier")},expectedNode:{validate:(0,en.assertOneOf)(...lA.PLACEHOLDERS)}},(0,uA.patternLikeCommon)())});ao("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,en.assertValueType)("string")}}})});var af=w(()=>{"use strict";var Ve=rr();(0,Ve.default)("ArgumentPlaceholder",{});(0,Ve.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Ve.assertNodeType)("Expression")},callee:{validate:(0,Ve.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Ve.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Ve.assertNodeType)("Expression")}}});(0,Ve.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Ve.assertNodeType)("BlockStatement")},async:{validate:(0,Ve.assertValueType)("boolean"),default:!1}}});(0,Ve.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Ve.assertNodeType)("Identifier")}}});(0,Ve.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Ve.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Ve.default)("TupleExpression",{fields:{elements:{validate:(0,Ve.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Ve.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Ve.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Ve.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Ve.assertNodeType)("Program")}},aliases:["Expression"]});(0,Ve.default)("TopicReference",{aliases:["Expression"]});(0,Ve.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Ve.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ve.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Ve.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ve.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Ve.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var hf=w(()=>{"use strict";var D=rr(),oo=ns(),cA=Ti(),ne=(0,D.defineAliasedType)("TypeScript"),vt=(0,D.assertValueType)("boolean"),of=()=>({returnType:{validate:(0,D.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,D.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});ne("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,D.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,D.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,D.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,D.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0}}});ne("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,oo.functionDeclarationCommon)(),of())});ne("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,oo.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,oo.classMethodOrDeclareMethodCommon)(),of())}));ne("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,D.validateType)("TSEntityName"),right:(0,D.validateType)("Identifier")}});var tn=()=>({typeParameters:(0,D.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,D.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,D.validateOptionalType)("TSTypeAnnotation")}),lf={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:tn()};ne("TSCallSignatureDeclaration",lf);ne("TSConstructSignatureDeclaration",lf);var uf=()=>({key:(0,D.validateType)("Expression"),computed:{default:!1},optional:(0,D.validateOptional)(vt)});ne("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},uf(),{readonly:(0,D.validateOptional)(vt),typeAnnotation:(0,D.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,D.assertOneOf)("get","set")}})});ne("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},tn(),uf(),{kind:{validate:(0,D.assertOneOf)("method","get","set")}})});ne("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,D.validateOptional)(vt),static:(0,D.validateOptional)(vt),parameters:(0,D.validateArrayOfType)("Identifier"),typeAnnotation:(0,D.validateOptionalType)("TSTypeAnnotation")}});var pA=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of pA)ne(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});ne("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var cf={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};ne("TSFunctionType",Object.assign({},cf,{fields:tn()}));ne("TSConstructorType",Object.assign({},cf,{fields:Object.assign({},tn(),{abstract:(0,D.validateOptional)(vt)})}));ne("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,D.validateType)("TSEntityName"),typeParameters:(0,D.validateOptionalType)("TSTypeParameterInstantiation")}});ne("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,D.validateType)("Identifier","TSThisType"),typeAnnotation:(0,D.validateOptionalType)("TSTypeAnnotation"),asserts:(0,D.validateOptional)(vt)}});ne("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,D.validateType)("TSEntityName","TSImportType"),typeParameters:(0,D.validateOptionalType)("TSTypeParameterInstantiation")}});ne("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,D.validateArrayOfType)("TSTypeElement")}});ne("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,D.validateType)("TSType")}});ne("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,D.validateArrayOfType)("TSType","TSNamedTupleMember")}});ne("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,D.validateType)("TSType")}});ne("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,D.validateType)("TSType")}});ne("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,D.validateType)("Identifier"),optional:{validate:vt,default:!1},elementType:(0,D.validateType)("TSType")}});var pf={aliases:["TSType"],visitor:["types"],fields:{types:(0,D.validateArrayOfType)("TSType")}};ne("TSUnionType",pf);ne("TSIntersectionType",pf);ne("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,D.validateType)("TSType"),extendsType:(0,D.validateType)("TSType"),trueType:(0,D.validateType)("TSType"),falseType:(0,D.validateType)("TSType")}});ne("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,D.validateType)("TSTypeParameter")}});ne("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,D.validateType)("TSType")}});ne("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,D.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,D.validateType)("TSType")}});ne("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,D.validateType)("TSType"),indexType:(0,D.validateType)("TSType")}});ne("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,D.validateType)("TSTypeParameter")},{readonly:(0,D.validateOptional)((0,D.assertOneOf)(!0,!1,"+","-")),optional:(0,D.validateOptional)((0,D.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,D.validateOptionalType)("TSType"),nameType:(0,D.validateOptionalType)("TSType")})});ne("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,D.validateArrayOfType)("TemplateElement"),types:{validate:(0,D.chain)((0,D.assertValueType)("array"),(0,D.assertEach)((0,D.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
|
|
12
|
-
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});ne("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){let e=(0,D.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,D.assertOneOf)("-"),r=(0,D.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),i=function(n,a,o){(0,cA.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):r(n,a,o)};return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i})()}}});ne("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,D.validateType)("TSEntityName"),typeParameters:(0,D.validateOptionalType)("TSTypeParameterInstantiation")}});ne("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,D.validateOptional)(vt),id:(0,D.validateType)("Identifier"),typeParameters:(0,D.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,D.validateOptional)((0,D.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,D.validateType)("TSInterfaceBody")}});ne("TSInterfaceBody",{visitor:["body"],fields:{body:(0,D.validateArrayOfType)("TSTypeElement")}});ne("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,D.validateOptional)(vt),id:(0,D.validateType)("Identifier"),typeParameters:(0,D.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,D.validateType)("TSType")}});ne("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,D.validateType)("Expression"),typeParameters:(0,D.validateOptionalType)("TSTypeParameterInstantiation")}});var ff={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,D.validateType)("Expression"),typeAnnotation:(0,D.validateType)("TSType")}};ne("TSAsExpression",ff);ne("TSSatisfiesExpression",ff);ne("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,D.validateType)("TSType"),expression:(0,D.validateType)("Expression")}});ne("TSEnumBody",{visitor:["members"],fields:{members:(0,D.validateArrayOfType)("TSEnumMember")}});ne("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,D.validateOptional)(vt),const:(0,D.validateOptional)(vt),id:(0,D.validateType)("Identifier"),members:(0,D.validateArrayOfType)("TSEnumMember"),initializer:(0,D.validateOptionalType)("Expression"),body:(0,D.validateOptionalType)("TSEnumBody")}});ne("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,D.validateType)("Identifier","StringLiteral"),initializer:(0,D.validateOptionalType)("Expression")}});ne("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,D.assertOneOf)("global","module","namespace")},declare:(0,D.validateOptional)(vt)},{global:(0,D.validateOptional)(vt)},{id:(0,D.validateType)("Identifier","StringLiteral"),body:(0,D.validateType)("TSModuleBlock","TSModuleDeclaration")})});ne("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,D.validateArrayOfType)("Statement")}});ne("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,D.validateType)("StringLiteral")},{qualifier:(0,D.validateOptionalType)("TSEntityName")},{typeParameters:(0,D.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,D.assertNodeType)("ObjectExpression"),optional:!0}})});ne("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,D.validate)(vt)},{id:(0,D.validateType)("Identifier"),moduleReference:(0,D.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,D.assertOneOf)("type","value"),optional:!0}})});ne("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,D.validateType)("StringLiteral")}});ne("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,D.validateType)("Expression")}});ne("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,D.validateType)("Expression")}});ne("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,D.validateType)("Identifier")}});ne("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,D.assertNodeType)("TSType")}}});ne("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,D.validateArrayOfType)("TSType")}});ne("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,D.validateArrayOfType)("TSTypeParameter")}});ne("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,D.assertValueType)("string")},in:{validate:(0,D.assertValueType)("boolean"),optional:!0},out:{validate:(0,D.assertValueType)("boolean"),optional:!0},const:{validate:(0,D.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,D.assertNodeType)("TSType"),optional:!0},default:{validate:(0,D.assertNodeType)("TSType"),optional:!0}}})});var df=w(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.DEPRECATED_ALIASES=void 0;var kX=rn.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var Bt=w(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});Object.defineProperty(ft,"ALIAS_KEYS",{enumerable:!0,get:function(){return Tt.ALIAS_KEYS}});Object.defineProperty(ft,"BUILDER_KEYS",{enumerable:!0,get:function(){return Tt.BUILDER_KEYS}});Object.defineProperty(ft,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return lo.DEPRECATED_ALIASES}});Object.defineProperty(ft,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Tt.DEPRECATED_KEYS}});Object.defineProperty(ft,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Tt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(ft,"NODE_FIELDS",{enumerable:!0,get:function(){return Tt.NODE_FIELDS}});Object.defineProperty(ft,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Tt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(ft,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return Tt.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(ft,"PLACEHOLDERS",{enumerable:!0,get:function(){return uo.PLACEHOLDERS}});Object.defineProperty(ft,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return uo.PLACEHOLDERS_ALIAS}});Object.defineProperty(ft,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return uo.PLACEHOLDERS_FLIPPED_ALIAS}});ft.TYPES=void 0;Object.defineProperty(ft,"VISITOR_KEYS",{enumerable:!0,get:function(){return Tt.VISITOR_KEYS}});ns();rf();sf();nf();af();hf();var Tt=rr(),uo=no(),lo=df();Object.keys(lo.DEPRECATED_ALIASES).forEach(e=>{Tt.FLIPPED_ALIAS_KEYS[e]=Tt.FLIPPED_ALIAS_KEYS[lo.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of Tt.allExpandedTypes)for(let r of e){let i=Tt.FLIPPED_ALIAS_KEYS[r];i?i.forEach(t.add,t):t.add(r)}var MX=ft.TYPES=[].concat(Object.keys(Tt.VISITOR_KEYS),Object.keys(Tt.FLIPPED_ALIAS_KEYS),Object.keys(Tt.DEPRECATED_KEYS))});var Gs=w(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.default=fA;Pi.validateChild=yf;Pi.validateField=mf;Pi.validateInternal=hA;var as=Bt();function fA(e,t,r){if(!e)return;let i=as.NODE_FIELDS[e.type];if(!i)return;let s=i[t];mf(e,t,r,s),yf(e,t,r)}function hA(e,t,r,i,s){if(e!=null&&e.validate&&!(e.optional&&i==null)&&(e.validate(t,r,i),s)){var n;let a=i.type;if(a==null)return;(n=as.NODE_PARENT_VALIDATIONS[a])==null||n.call(as.NODE_PARENT_VALIDATIONS,t,r,i)}}function mf(e,t,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(e,t,r))}function yf(e,t,r){var i;let s=r?.type;s!=null&&((i=as.NODE_PARENT_VALIDATIONS[s])==null||i.call(as.NODE_PARENT_VALIDATIONS,e,t,r))}});var co=w(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.anyTypeAnnotation=Wv;h.argumentPlaceholder=EC;h.arrayExpression=TA;h.arrayPattern=fv;h.arrayTypeAnnotation=$v;h.arrowFunctionExpression=hv;h.assignmentExpression=SA;h.assignmentPattern=pv;h.awaitExpression=Mv;h.bigIntLiteral=yA;h.binaryExpression=gA;h.bindExpression=PC;h.blockStatement=PA;h.booleanLiteral=VA;h.booleanLiteralTypeAnnotation=zv;h.booleanTypeAnnotation=Hv;h.breakStatement=AA;h.callExpression=vA;h.catchClause=CA;h.classAccessorProperty=Uv;h.classBody=dv;h.classDeclaration=yv;h.classExpression=mv;h.classImplements=Qv;h.classMethod=wv;h.classPrivateMethod=Vv;h.classPrivateProperty=Kv;h.classProperty=qv;h.conditionalExpression=IA;h.continueStatement=wA;h.debuggerStatement=NA;h.decimalLiteral=NC;h.declareClass=Zv;h.declareExportAllDeclaration=l1;h.declareExportDeclaration=o1;h.declareFunction=e1;h.declareInterface=t1;h.declareModule=r1;h.declareModuleExports=i1;h.declareOpaqueType=n1;h.declareTypeAlias=s1;h.declareVariable=a1;h.declaredPredicate=u1;h.decorator=AC;h.directive=bA;h.directiveLiteral=EA;h.doExpression=vC;h.doWhileStatement=_A;h.emptyStatement=OA;h.emptyTypeAnnotation=x1;h.enumBooleanBody=$1;h.enumBooleanMember=Q1;h.enumDeclaration=W1;h.enumDefaultedMember=tC;h.enumNumberBody=H1;h.enumNumberMember=Z1;h.enumStringBody=z1;h.enumStringMember=eC;h.enumSymbolBody=G1;h.existsTypeAnnotation=c1;h.exportAllDeclaration=Tv;h.exportDefaultDeclaration=Sv;h.exportDefaultSpecifier=CC;h.exportNamedDeclaration=gv;h.exportNamespaceSpecifier=Fv;h.exportSpecifier=xv;h.expressionStatement=DA;h.file=kA;h.forInStatement=LA;h.forOfStatement=bv;h.forStatement=MA;h.functionDeclaration=BA;h.functionExpression=FA;h.functionTypeAnnotation=p1;h.functionTypeParam=f1;h.genericTypeAnnotation=h1;h.identifier=jA;h.ifStatement=RA;h.import=Bv;h.importAttribute=Xv;h.importDeclaration=Ev;h.importDefaultSpecifier=Pv;h.importExpression=Cv;h.importNamespaceSpecifier=Av;h.importSpecifier=vv;h.indexedAccessType=rC;h.inferredPredicate=d1;h.interfaceDeclaration=y1;h.interfaceExtends=m1;h.interfaceTypeAnnotation=T1;h.interpreterDirective=xA;h.intersectionTypeAnnotation=S1;h.jSXAttribute=h.jsxAttribute=sC;h.jSXClosingElement=h.jsxClosingElement=nC;h.jSXClosingFragment=h.jsxClosingFragment=SC;h.jSXElement=h.jsxElement=aC;h.jSXEmptyExpression=h.jsxEmptyExpression=oC;h.jSXExpressionContainer=h.jsxExpressionContainer=lC;h.jSXFragment=h.jsxFragment=yC;h.jSXIdentifier=h.jsxIdentifier=cC;h.jSXMemberExpression=h.jsxMemberExpression=pC;h.jSXNamespacedName=h.jsxNamespacedName=fC;h.jSXOpeningElement=h.jsxOpeningElement=hC;h.jSXOpeningFragment=h.jsxOpeningFragment=TC;h.jSXSpreadAttribute=h.jsxSpreadAttribute=dC;h.jSXSpreadChild=h.jsxSpreadChild=uC;h.jSXText=h.jsxText=mC;h.labeledStatement=qA;h.logicalExpression=JA;h.memberExpression=YA;h.metaProperty=Iv;h.mixedTypeAnnotation=g1;h.moduleExpression=_C;h.newExpression=XA;h.noop=gC;h.nullLiteral=KA;h.nullLiteralTypeAnnotation=Gv;h.nullableTypeAnnotation=b1;h.numberLiteral=HI;h.numberLiteralTypeAnnotation=E1;h.numberTypeAnnotation=P1;h.numericLiteral=Tf;h.objectExpression=$A;h.objectMethod=HA;h.objectPattern=Nv;h.objectProperty=zA;h.objectTypeAnnotation=A1;h.objectTypeCallProperty=C1;h.objectTypeIndexer=I1;h.objectTypeInternalSlot=v1;h.objectTypeProperty=w1;h.objectTypeSpreadProperty=N1;h.opaqueType=_1;h.optionalCallExpression=Rv;h.optionalIndexedAccessType=iC;h.optionalMemberExpression=jv;h.parenthesizedExpression=ZA;h.pipelineBareFunction=kC;h.pipelinePrimaryTopicReference=LC;h.pipelineTopicExpression=DC;h.placeholder=xC;h.privateName=Jv;h.program=WA;h.qualifiedTypeIdentifier=O1;h.recordExpression=IC;h.regExpLiteral=Sf;h.regexLiteral=zI;h.restElement=gf;h.restProperty=GI;h.returnStatement=GA;h.sequenceExpression=QA;h.spreadElement=xf;h.spreadProperty=QI;h.staticBlock=Yv;h.stringLiteral=UA;h.stringLiteralTypeAnnotation=D1;h.stringTypeAnnotation=k1;h.super=_v;h.switchCase=ev;h.switchStatement=tv;h.symbolTypeAnnotation=L1;h.taggedTemplateExpression=Ov;h.templateElement=Dv;h.templateLiteral=kv;h.thisExpression=rv;h.thisTypeAnnotation=M1;h.throwStatement=iv;h.topicReference=OC;h.tryStatement=sv;h.tSAnyKeyword=h.tsAnyKeyword=YC;h.tSArrayType=h.tsArrayType=pI;h.tSAsExpression=h.tsAsExpression=OI;h.tSBigIntKeyword=h.tsBigIntKeyword=WC;h.tSBooleanKeyword=h.tsBooleanKeyword=XC;h.tSCallSignatureDeclaration=h.tsCallSignatureDeclaration=qC;h.tSConditionalType=h.tsConditionalType=SI;h.tSConstructSignatureDeclaration=h.tsConstructSignatureDeclaration=UC;h.tSConstructorType=h.tsConstructorType=aI;h.tSDeclareFunction=h.tsDeclareFunction=FC;h.tSDeclareMethod=h.tsDeclareMethod=jC;h.tSEnumBody=h.tsEnumBody=LI;h.tSEnumDeclaration=h.tsEnumDeclaration=MI;h.tSEnumMember=h.tsEnumMember=BI;h.tSExportAssignment=h.tsExportAssignment=VI;h.tSExpressionWithTypeArguments=h.tsExpressionWithTypeArguments=CI;h.tSExternalModuleReference=h.tsExternalModuleReference=UI;h.tSFunctionType=h.tsFunctionType=nI;h.tSImportEqualsDeclaration=h.tsImportEqualsDeclaration=qI;h.tSImportType=h.tsImportType=RI;h.tSIndexSignature=h.tsIndexSignature=JC;h.tSIndexedAccessType=h.tsIndexedAccessType=EI;h.tSInferType=h.tsInferType=gI;h.tSInstantiationExpression=h.tsInstantiationExpression=_I;h.tSInterfaceBody=h.tsInterfaceBody=wI;h.tSInterfaceDeclaration=h.tsInterfaceDeclaration=II;h.tSIntersectionType=h.tsIntersectionType=TI;h.tSIntrinsicKeyword=h.tsIntrinsicKeyword=$C;h.tSLiteralType=h.tsLiteralType=vI;h.tSMappedType=h.tsMappedType=PI;h.tSMethodSignature=h.tsMethodSignature=VC;h.tSModuleBlock=h.tsModuleBlock=jI;h.tSModuleDeclaration=h.tsModuleDeclaration=FI;h.tSNamedTupleMember=h.tsNamedTupleMember=mI;h.tSNamespaceExportDeclaration=h.tsNamespaceExportDeclaration=JI;h.tSNeverKeyword=h.tsNeverKeyword=HC;h.tSNonNullExpression=h.tsNonNullExpression=KI;h.tSNullKeyword=h.tsNullKeyword=zC;h.tSNumberKeyword=h.tsNumberKeyword=GC;h.tSObjectKeyword=h.tsObjectKeyword=QC;h.tSOptionalType=h.tsOptionalType=hI;h.tSParameterProperty=h.tsParameterProperty=BC;h.tSParenthesizedType=h.tsParenthesizedType=xI;h.tSPropertySignature=h.tsPropertySignature=KC;h.tSQualifiedName=h.tsQualifiedName=RC;h.tSRestType=h.tsRestType=dI;h.tSSatisfiesExpression=h.tsSatisfiesExpression=DI;h.tSStringKeyword=h.tsStringKeyword=ZC;h.tSSymbolKeyword=h.tsSymbolKeyword=eI;h.tSTemplateLiteralType=h.tsTemplateLiteralType=AI;h.tSThisType=h.tsThisType=sI;h.tSTupleType=h.tsTupleType=fI;h.tSTypeAliasDeclaration=h.tsTypeAliasDeclaration=NI;h.tSTypeAnnotation=h.tsTypeAnnotation=YI;h.tSTypeAssertion=h.tsTypeAssertion=kI;h.tSTypeLiteral=h.tsTypeLiteral=cI;h.tSTypeOperator=h.tsTypeOperator=bI;h.tSTypeParameter=h.tsTypeParameter=$I;h.tSTypeParameterDeclaration=h.tsTypeParameterDeclaration=WI;h.tSTypeParameterInstantiation=h.tsTypeParameterInstantiation=XI;h.tSTypePredicate=h.tsTypePredicate=lI;h.tSTypeQuery=h.tsTypeQuery=uI;h.tSTypeReference=h.tsTypeReference=oI;h.tSUndefinedKeyword=h.tsUndefinedKeyword=tI;h.tSUnionType=h.tsUnionType=yI;h.tSUnknownKeyword=h.tsUnknownKeyword=rI;h.tSVoidKeyword=h.tsVoidKeyword=iI;h.tupleExpression=wC;h.tupleTypeAnnotation=B1;h.typeAlias=j1;h.typeAnnotation=R1;h.typeCastExpression=q1;h.typeParameter=U1;h.typeParameterDeclaration=K1;h.typeParameterInstantiation=V1;h.typeofTypeAnnotation=F1;h.unaryExpression=nv;h.unionTypeAnnotation=J1;h.updateExpression=av;h.v8IntrinsicIdentifier=bC;h.variableDeclaration=ov;h.variableDeclarator=lv;h.variance=Y1;h.voidPattern=MC;h.voidTypeAnnotation=X1;h.whileStatement=uv;h.withStatement=cv;h.yieldExpression=Lv;var dA=Gs(),sn=yi(),mA=rr(),{validateInternal:p}=dA,{NODE_FIELDS:P}=mA;function yA(e){typeof e=="bigint"&&(e=e.toString());let t={type:"BigIntLiteral",value:e},r=P.BigIntLiteral;return p(r.value,t,"value",e),t}function TA(e=[]){let t={type:"ArrayExpression",elements:e},r=P.ArrayExpression;return p(r.elements,t,"elements",e,1),t}function SA(e,t,r){let i={type:"AssignmentExpression",operator:e,left:t,right:r},s=P.AssignmentExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function gA(e,t,r){let i={type:"BinaryExpression",operator:e,left:t,right:r},s=P.BinaryExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function xA(e){let t={type:"InterpreterDirective",value:e},r=P.InterpreterDirective;return p(r.value,t,"value",e),t}function bA(e){let t={type:"Directive",value:e},r=P.Directive;return p(r.value,t,"value",e,1),t}function EA(e){let t={type:"DirectiveLiteral",value:e},r=P.DirectiveLiteral;return p(r.value,t,"value",e),t}function PA(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},i=P.BlockStatement;return p(i.body,r,"body",e,1),p(i.directives,r,"directives",t,1),r}function AA(e=null){let t={type:"BreakStatement",label:e},r=P.BreakStatement;return p(r.label,t,"label",e,1),t}function vA(e,t){let r={type:"CallExpression",callee:e,arguments:t},i=P.CallExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function CA(e=null,t){let r={type:"CatchClause",param:e,body:t},i=P.CatchClause;return p(i.param,r,"param",e,1),p(i.body,r,"body",t,1),r}function IA(e,t,r){let i={type:"ConditionalExpression",test:e,consequent:t,alternate:r},s=P.ConditionalExpression;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function wA(e=null){let t={type:"ContinueStatement",label:e},r=P.ContinueStatement;return p(r.label,t,"label",e,1),t}function NA(){return{type:"DebuggerStatement"}}function _A(e,t){let r={type:"DoWhileStatement",test:e,body:t},i=P.DoWhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function OA(){return{type:"EmptyStatement"}}function DA(e){let t={type:"ExpressionStatement",expression:e},r=P.ExpressionStatement;return p(r.expression,t,"expression",e,1),t}function kA(e,t=null,r=null){let i={type:"File",program:e,comments:t,tokens:r},s=P.File;return p(s.program,i,"program",e,1),p(s.comments,i,"comments",t,1),p(s.tokens,i,"tokens",r),i}function LA(e,t,r){let i={type:"ForInStatement",left:e,right:t,body:r},s=P.ForInStatement;return p(s.left,i,"left",e,1),p(s.right,i,"right",t,1),p(s.body,i,"body",r,1),i}function MA(e=null,t=null,r=null,i){let s={type:"ForStatement",init:e,test:t,update:r,body:i},n=P.ForStatement;return p(n.init,s,"init",e,1),p(n.test,s,"test",t,1),p(n.update,s,"update",r,1),p(n.body,s,"body",i,1),s}function BA(e=null,t,r,i=!1,s=!1){let n={type:"FunctionDeclaration",id:e,params:t,body:r,generator:i,async:s},a=P.FunctionDeclaration;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function FA(e=null,t,r,i=!1,s=!1){let n={type:"FunctionExpression",id:e,params:t,body:r,generator:i,async:s},a=P.FunctionExpression;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function jA(e){let t={type:"Identifier",name:e},r=P.Identifier;return p(r.name,t,"name",e),t}function RA(e,t,r=null){let i={type:"IfStatement",test:e,consequent:t,alternate:r},s=P.IfStatement;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function qA(e,t){let r={type:"LabeledStatement",label:e,body:t},i=P.LabeledStatement;return p(i.label,r,"label",e,1),p(i.body,r,"body",t,1),r}function UA(e){let t={type:"StringLiteral",value:e},r=P.StringLiteral;return p(r.value,t,"value",e),t}function Tf(e){let t={type:"NumericLiteral",value:e},r=P.NumericLiteral;return p(r.value,t,"value",e),t}function KA(){return{type:"NullLiteral"}}function VA(e){let t={type:"BooleanLiteral",value:e},r=P.BooleanLiteral;return p(r.value,t,"value",e),t}function Sf(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},i=P.RegExpLiteral;return p(i.pattern,r,"pattern",e),p(i.flags,r,"flags",t),r}function JA(e,t,r){let i={type:"LogicalExpression",operator:e,left:t,right:r},s=P.LogicalExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function YA(e,t,r=!1,i=null){let s={type:"MemberExpression",object:e,property:t,computed:r,optional:i},n=P.MemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function XA(e,t){let r={type:"NewExpression",callee:e,arguments:t},i=P.NewExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function WA(e,t=[],r="script",i=null){let s={type:"Program",body:e,directives:t,sourceType:r,interpreter:i},n=P.Program;return p(n.body,s,"body",e,1),p(n.directives,s,"directives",t,1),p(n.sourceType,s,"sourceType",r),p(n.interpreter,s,"interpreter",i,1),s}function $A(e){let t={type:"ObjectExpression",properties:e},r=P.ObjectExpression;return p(r.properties,t,"properties",e,1),t}function HA(e="method",t,r,i,s=!1,n=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:i,computed:s,generator:n,async:a},l=P.ObjectMethod;return p(l.kind,o,"kind",e),p(l.key,o,"key",t,1),p(l.params,o,"params",r,1),p(l.body,o,"body",i,1),p(l.computed,o,"computed",s),p(l.generator,o,"generator",n),p(l.async,o,"async",a),o}function zA(e,t,r=!1,i=!1,s=null){let n={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:i,decorators:s},a=P.ObjectProperty;return p(a.key,n,"key",e,1),p(a.value,n,"value",t,1),p(a.computed,n,"computed",r),p(a.shorthand,n,"shorthand",i),p(a.decorators,n,"decorators",s,1),n}function gf(e){let t={type:"RestElement",argument:e},r=P.RestElement;return p(r.argument,t,"argument",e,1),t}function GA(e=null){let t={type:"ReturnStatement",argument:e},r=P.ReturnStatement;return p(r.argument,t,"argument",e,1),t}function QA(e){let t={type:"SequenceExpression",expressions:e},r=P.SequenceExpression;return p(r.expressions,t,"expressions",e,1),t}function ZA(e){let t={type:"ParenthesizedExpression",expression:e},r=P.ParenthesizedExpression;return p(r.expression,t,"expression",e,1),t}function ev(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},i=P.SwitchCase;return p(i.test,r,"test",e,1),p(i.consequent,r,"consequent",t,1),r}function tv(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},i=P.SwitchStatement;return p(i.discriminant,r,"discriminant",e,1),p(i.cases,r,"cases",t,1),r}function rv(){return{type:"ThisExpression"}}function iv(e){let t={type:"ThrowStatement",argument:e},r=P.ThrowStatement;return p(r.argument,t,"argument",e,1),t}function sv(e,t=null,r=null){let i={type:"TryStatement",block:e,handler:t,finalizer:r},s=P.TryStatement;return p(s.block,i,"block",e,1),p(s.handler,i,"handler",t,1),p(s.finalizer,i,"finalizer",r,1),i}function nv(e,t,r=!0){let i={type:"UnaryExpression",operator:e,argument:t,prefix:r},s=P.UnaryExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function av(e,t,r=!1){let i={type:"UpdateExpression",operator:e,argument:t,prefix:r},s=P.UpdateExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function ov(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},i=P.VariableDeclaration;return p(i.kind,r,"kind",e),p(i.declarations,r,"declarations",t,1),r}function lv(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},i=P.VariableDeclarator;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function uv(e,t){let r={type:"WhileStatement",test:e,body:t},i=P.WhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function cv(e,t){let r={type:"WithStatement",object:e,body:t},i=P.WithStatement;return p(i.object,r,"object",e,1),p(i.body,r,"body",t,1),r}function pv(e,t){let r={type:"AssignmentPattern",left:e,right:t},i=P.AssignmentPattern;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function fv(e){let t={type:"ArrayPattern",elements:e},r=P.ArrayPattern;return p(r.elements,t,"elements",e,1),t}function hv(e,t,r=!1){let i={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},s=P.ArrowFunctionExpression;return p(s.params,i,"params",e,1),p(s.body,i,"body",t,1),p(s.async,i,"async",r),i}function dv(e){let t={type:"ClassBody",body:e},r=P.ClassBody;return p(r.body,t,"body",e,1),t}function mv(e=null,t=null,r,i=null){let s={type:"ClassExpression",id:e,superClass:t,body:r,decorators:i},n=P.ClassExpression;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function yv(e=null,t=null,r,i=null){let s={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:i},n=P.ClassDeclaration;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function Tv(e,t=null){let r={type:"ExportAllDeclaration",source:e,attributes:t},i=P.ExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function Sv(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=P.ExportDefaultDeclaration;return p(r.declaration,t,"declaration",e,1),t}function gv(e=null,t=[],r=null,i=null){let s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=P.ExportNamedDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function xv(e,t){let r={type:"ExportSpecifier",local:e,exported:t},i=P.ExportSpecifier;return p(i.local,r,"local",e,1),p(i.exported,r,"exported",t,1),r}function bv(e,t,r,i=!1){let s={type:"ForOfStatement",left:e,right:t,body:r,await:i},n=P.ForOfStatement;return p(n.left,s,"left",e,1),p(n.right,s,"right",t,1),p(n.body,s,"body",r,1),p(n.await,s,"await",i),s}function Ev(e,t,r=null){let i={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},s=P.ImportDeclaration;return p(s.specifiers,i,"specifiers",e,1),p(s.source,i,"source",t,1),p(s.attributes,i,"attributes",r,1),i}function Pv(e){let t={type:"ImportDefaultSpecifier",local:e},r=P.ImportDefaultSpecifier;return p(r.local,t,"local",e,1),t}function Av(e){let t={type:"ImportNamespaceSpecifier",local:e},r=P.ImportNamespaceSpecifier;return p(r.local,t,"local",e,1),t}function vv(e,t){let r={type:"ImportSpecifier",local:e,imported:t},i=P.ImportSpecifier;return p(i.local,r,"local",e,1),p(i.imported,r,"imported",t,1),r}function Cv(e,t=null){let r={type:"ImportExpression",source:e,options:t},i=P.ImportExpression;return p(i.source,r,"source",e,1),p(i.options,r,"options",t,1),r}function Iv(e,t){let r={type:"MetaProperty",meta:e,property:t},i=P.MetaProperty;return p(i.meta,r,"meta",e,1),p(i.property,r,"property",t,1),r}function wv(e="method",t,r,i,s=!1,n=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:i,computed:s,static:n,generator:a,async:o},u=P.ClassMethod;return p(u.kind,l,"kind",e),p(u.key,l,"key",t,1),p(u.params,l,"params",r,1),p(u.body,l,"body",i,1),p(u.computed,l,"computed",s),p(u.static,l,"static",n),p(u.generator,l,"generator",a),p(u.async,l,"async",o),l}function Nv(e){let t={type:"ObjectPattern",properties:e},r=P.ObjectPattern;return p(r.properties,t,"properties",e,1),t}function xf(e){let t={type:"SpreadElement",argument:e},r=P.SpreadElement;return p(r.argument,t,"argument",e,1),t}function _v(){return{type:"Super"}}function Ov(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},i=P.TaggedTemplateExpression;return p(i.tag,r,"tag",e,1),p(i.quasi,r,"quasi",t,1),r}function Dv(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},i=P.TemplateElement;return p(i.value,r,"value",e),p(i.tail,r,"tail",t),r}function kv(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},i=P.TemplateLiteral;return p(i.quasis,r,"quasis",e,1),p(i.expressions,r,"expressions",t,1),r}function Lv(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},i=P.YieldExpression;return p(i.argument,r,"argument",e,1),p(i.delegate,r,"delegate",t),r}function Mv(e){let t={type:"AwaitExpression",argument:e},r=P.AwaitExpression;return p(r.argument,t,"argument",e,1),t}function Bv(){return{type:"Import"}}function Fv(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=P.ExportNamespaceSpecifier;return p(r.exported,t,"exported",e,1),t}function jv(e,t,r=!1,i){let s={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:i},n=P.OptionalMemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function Rv(e,t,r){let i={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},s=P.OptionalCallExpression;return p(s.callee,i,"callee",e,1),p(s.arguments,i,"arguments",t,1),p(s.optional,i,"optional",r),i}function qv(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=P.ClassProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function Uv(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=P.ClassAccessorProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function Kv(e,t=null,r=null,i=!1){let s={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:i},n=P.ClassPrivateProperty;return p(n.key,s,"key",e,1),p(n.value,s,"value",t,1),p(n.decorators,s,"decorators",r,1),p(n.static,s,"static",i),s}function Vv(e="method",t,r,i,s=!1){let n={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:i,static:s},a=P.ClassPrivateMethod;return p(a.kind,n,"kind",e),p(a.key,n,"key",t,1),p(a.params,n,"params",r,1),p(a.body,n,"body",i,1),p(a.static,n,"static",s),n}function Jv(e){let t={type:"PrivateName",id:e},r=P.PrivateName;return p(r.id,t,"id",e,1),t}function Yv(e){let t={type:"StaticBlock",body:e},r=P.StaticBlock;return p(r.body,t,"body",e,1),t}function Xv(e,t){let r={type:"ImportAttribute",key:e,value:t},i=P.ImportAttribute;return p(i.key,r,"key",e,1),p(i.value,r,"value",t,1),r}function Wv(){return{type:"AnyTypeAnnotation"}}function $v(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=P.ArrayTypeAnnotation;return p(r.elementType,t,"elementType",e,1),t}function Hv(){return{type:"BooleanTypeAnnotation"}}function zv(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=P.BooleanLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function Gv(){return{type:"NullLiteralTypeAnnotation"}}function Qv(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},i=P.ClassImplements;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function Zv(e,t=null,r=null,i){let s={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:i},n=P.DeclareClass;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function e1(e){let t={type:"DeclareFunction",id:e},r=P.DeclareFunction;return p(r.id,t,"id",e,1),t}function t1(e,t=null,r=null,i){let s={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:i},n=P.DeclareInterface;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function r1(e,t,r=null){let i={type:"DeclareModule",id:e,body:t,kind:r},s=P.DeclareModule;return p(s.id,i,"id",e,1),p(s.body,i,"body",t,1),p(s.kind,i,"kind",r),i}function i1(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=P.DeclareModuleExports;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function s1(e,t=null,r){let i={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},s=P.DeclareTypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function n1(e,t=null,r=null){let i={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},s=P.DeclareOpaqueType;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.supertype,i,"supertype",r,1),i}function a1(e){let t={type:"DeclareVariable",id:e},r=P.DeclareVariable;return p(r.id,t,"id",e,1),t}function o1(e=null,t=null,r=null,i=null){let s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=P.DeclareExportDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function l1(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},i=P.DeclareExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function u1(e){let t={type:"DeclaredPredicate",value:e},r=P.DeclaredPredicate;return p(r.value,t,"value",e,1),t}function c1(){return{type:"ExistsTypeAnnotation"}}function p1(e=null,t,r=null,i){let s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:i},n=P.FunctionTypeAnnotation;return p(n.typeParameters,s,"typeParameters",e,1),p(n.params,s,"params",t,1),p(n.rest,s,"rest",r,1),p(n.returnType,s,"returnType",i,1),s}function f1(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},i=P.FunctionTypeParam;return p(i.name,r,"name",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function h1(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},i=P.GenericTypeAnnotation;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function d1(){return{type:"InferredPredicate"}}function m1(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},i=P.InterfaceExtends;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function y1(e,t=null,r=null,i){let s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=P.InterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function T1(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},i=P.InterfaceTypeAnnotation;return p(i.extends,r,"extends",e,1),p(i.body,r,"body",t,1),r}function S1(e){let t={type:"IntersectionTypeAnnotation",types:e},r=P.IntersectionTypeAnnotation;return p(r.types,t,"types",e,1),t}function g1(){return{type:"MixedTypeAnnotation"}}function x1(){return{type:"EmptyTypeAnnotation"}}function b1(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=P.NullableTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function E1(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=P.NumberLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function P1(){return{type:"NumberTypeAnnotation"}}function A1(e,t=[],r=[],i=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:i,exact:s},a=P.ObjectTypeAnnotation;return p(a.properties,n,"properties",e,1),p(a.indexers,n,"indexers",t,1),p(a.callProperties,n,"callProperties",r,1),p(a.internalSlots,n,"internalSlots",i,1),p(a.exact,n,"exact",s),n}function v1(e,t,r,i,s){let n={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:i,method:s},a=P.ObjectTypeInternalSlot;return p(a.id,n,"id",e,1),p(a.value,n,"value",t,1),p(a.optional,n,"optional",r),p(a.static,n,"static",i),p(a.method,n,"method",s),n}function C1(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=P.ObjectTypeCallProperty;return p(r.value,t,"value",e,1),t}function I1(e=null,t,r,i=null){let s={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:i,static:null},n=P.ObjectTypeIndexer;return p(n.id,s,"id",e,1),p(n.key,s,"key",t,1),p(n.value,s,"value",r,1),p(n.variance,s,"variance",i,1),s}function w1(e,t,r=null){let i={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=P.ObjectTypeProperty;return p(s.key,i,"key",e,1),p(s.value,i,"value",t,1),p(s.variance,i,"variance",r,1),i}function N1(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=P.ObjectTypeSpreadProperty;return p(r.argument,t,"argument",e,1),t}function _1(e,t=null,r=null,i){let s={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:i},n=P.OpaqueType;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.supertype,s,"supertype",r,1),p(n.impltype,s,"impltype",i,1),s}function O1(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},i=P.QualifiedTypeIdentifier;return p(i.id,r,"id",e,1),p(i.qualification,r,"qualification",t,1),r}function D1(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=P.StringLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function k1(){return{type:"StringTypeAnnotation"}}function L1(){return{type:"SymbolTypeAnnotation"}}function M1(){return{type:"ThisTypeAnnotation"}}function B1(e){let t={type:"TupleTypeAnnotation",types:e},r=P.TupleTypeAnnotation;return p(r.types,t,"types",e,1),t}function F1(e){let t={type:"TypeofTypeAnnotation",argument:e},r=P.TypeofTypeAnnotation;return p(r.argument,t,"argument",e,1),t}function j1(e,t=null,r){let i={type:"TypeAlias",id:e,typeParameters:t,right:r},s=P.TypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function R1(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=P.TypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function q1(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},i=P.TypeCastExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function U1(e=null,t=null,r=null){let i={type:"TypeParameter",bound:e,default:t,variance:r,name:null},s=P.TypeParameter;return p(s.bound,i,"bound",e,1),p(s.default,i,"default",t,1),p(s.variance,i,"variance",r,1),i}function K1(e){let t={type:"TypeParameterDeclaration",params:e},r=P.TypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function V1(e){let t={type:"TypeParameterInstantiation",params:e},r=P.TypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function J1(e){let t={type:"UnionTypeAnnotation",types:e},r=P.UnionTypeAnnotation;return p(r.types,t,"types",e,1),t}function Y1(e){let t={type:"Variance",kind:e},r=P.Variance;return p(r.kind,t,"kind",e),t}function X1(){return{type:"VoidTypeAnnotation"}}function W1(e,t){let r={type:"EnumDeclaration",id:e,body:t},i=P.EnumDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function $1(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=P.EnumBooleanBody;return p(r.members,t,"members",e,1),t}function H1(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=P.EnumNumberBody;return p(r.members,t,"members",e,1),t}function z1(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=P.EnumStringBody;return p(r.members,t,"members",e,1),t}function G1(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=P.EnumSymbolBody;return p(r.members,t,"members",e,1),t}function Q1(e){let t={type:"EnumBooleanMember",id:e,init:null},r=P.EnumBooleanMember;return p(r.id,t,"id",e,1),t}function Z1(e,t){let r={type:"EnumNumberMember",id:e,init:t},i=P.EnumNumberMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function eC(e,t){let r={type:"EnumStringMember",id:e,init:t},i=P.EnumStringMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function tC(e){let t={type:"EnumDefaultedMember",id:e},r=P.EnumDefaultedMember;return p(r.id,t,"id",e,1),t}function rC(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},i=P.IndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function iC(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},i=P.OptionalIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function sC(e,t=null){let r={type:"JSXAttribute",name:e,value:t},i=P.JSXAttribute;return p(i.name,r,"name",e,1),p(i.value,r,"value",t,1),r}function nC(e){let t={type:"JSXClosingElement",name:e},r=P.JSXClosingElement;return p(r.name,t,"name",e,1),t}function aC(e,t=null,r,i=null){let s={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:i},n=P.JSXElement;return p(n.openingElement,s,"openingElement",e,1),p(n.closingElement,s,"closingElement",t,1),p(n.children,s,"children",r,1),p(n.selfClosing,s,"selfClosing",i),s}function oC(){return{type:"JSXEmptyExpression"}}function lC(e){let t={type:"JSXExpressionContainer",expression:e},r=P.JSXExpressionContainer;return p(r.expression,t,"expression",e,1),t}function uC(e){let t={type:"JSXSpreadChild",expression:e},r=P.JSXSpreadChild;return p(r.expression,t,"expression",e,1),t}function cC(e){let t={type:"JSXIdentifier",name:e},r=P.JSXIdentifier;return p(r.name,t,"name",e),t}function pC(e,t){let r={type:"JSXMemberExpression",object:e,property:t},i=P.JSXMemberExpression;return p(i.object,r,"object",e,1),p(i.property,r,"property",t,1),r}function fC(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},i=P.JSXNamespacedName;return p(i.namespace,r,"namespace",e,1),p(i.name,r,"name",t,1),r}function hC(e,t,r=!1){let i={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},s=P.JSXOpeningElement;return p(s.name,i,"name",e,1),p(s.attributes,i,"attributes",t,1),p(s.selfClosing,i,"selfClosing",r),i}function dC(e){let t={type:"JSXSpreadAttribute",argument:e},r=P.JSXSpreadAttribute;return p(r.argument,t,"argument",e,1),t}function mC(e){let t={type:"JSXText",value:e},r=P.JSXText;return p(r.value,t,"value",e),t}function yC(e,t,r){let i={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},s=P.JSXFragment;return p(s.openingFragment,i,"openingFragment",e,1),p(s.closingFragment,i,"closingFragment",t,1),p(s.children,i,"children",r,1),i}function TC(){return{type:"JSXOpeningFragment"}}function SC(){return{type:"JSXClosingFragment"}}function gC(){return{type:"Noop"}}function xC(e,t){let r={type:"Placeholder",expectedNode:e,name:t},i=P.Placeholder;return p(i.expectedNode,r,"expectedNode",e),p(i.name,r,"name",t,1),r}function bC(e){let t={type:"V8IntrinsicIdentifier",name:e},r=P.V8IntrinsicIdentifier;return p(r.name,t,"name",e),t}function EC(){return{type:"ArgumentPlaceholder"}}function PC(e,t){let r={type:"BindExpression",object:e,callee:t},i=P.BindExpression;return p(i.object,r,"object",e,1),p(i.callee,r,"callee",t,1),r}function AC(e){let t={type:"Decorator",expression:e},r=P.Decorator;return p(r.expression,t,"expression",e,1),t}function vC(e,t=!1){let r={type:"DoExpression",body:e,async:t},i=P.DoExpression;return p(i.body,r,"body",e,1),p(i.async,r,"async",t),r}function CC(e){let t={type:"ExportDefaultSpecifier",exported:e},r=P.ExportDefaultSpecifier;return p(r.exported,t,"exported",e,1),t}function IC(e){let t={type:"RecordExpression",properties:e},r=P.RecordExpression;return p(r.properties,t,"properties",e,1),t}function wC(e=[]){let t={type:"TupleExpression",elements:e},r=P.TupleExpression;return p(r.elements,t,"elements",e,1),t}function NC(e){let t={type:"DecimalLiteral",value:e},r=P.DecimalLiteral;return p(r.value,t,"value",e),t}function _C(e){let t={type:"ModuleExpression",body:e},r=P.ModuleExpression;return p(r.body,t,"body",e,1),t}function OC(){return{type:"TopicReference"}}function DC(e){let t={type:"PipelineTopicExpression",expression:e},r=P.PipelineTopicExpression;return p(r.expression,t,"expression",e,1),t}function kC(e){let t={type:"PipelineBareFunction",callee:e},r=P.PipelineBareFunction;return p(r.callee,t,"callee",e,1),t}function LC(){return{type:"PipelinePrimaryTopicReference"}}function MC(){return{type:"VoidPattern"}}function BC(e){let t={type:"TSParameterProperty",parameter:e},r=P.TSParameterProperty;return p(r.parameter,t,"parameter",e,1),t}function FC(e=null,t=null,r,i=null){let s={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:i},n=P.TSDeclareFunction;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.params,s,"params",r,1),p(n.returnType,s,"returnType",i,1),s}function jC(e=null,t,r=null,i,s=null){let n={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:i,returnType:s},a=P.TSDeclareMethod;return p(a.decorators,n,"decorators",e,1),p(a.key,n,"key",t,1),p(a.typeParameters,n,"typeParameters",r,1),p(a.params,n,"params",i,1),p(a.returnType,n,"returnType",s,1),n}function RC(e,t){let r={type:"TSQualifiedName",left:e,right:t},i=P.TSQualifiedName;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function qC(e=null,t,r=null){let i={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=P.TSCallSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function UC(e=null,t,r=null){let i={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=P.TSConstructSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function KC(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},i=P.TSPropertySignature;return p(i.key,r,"key",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function VC(e,t=null,r,i=null){let s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:i,kind:null},n=P.TSMethodSignature;return p(n.key,s,"key",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.parameters,s,"parameters",r,1),p(n.typeAnnotation,s,"typeAnnotation",i,1),s}function JC(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},i=P.TSIndexSignature;return p(i.parameters,r,"parameters",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function YC(){return{type:"TSAnyKeyword"}}function XC(){return{type:"TSBooleanKeyword"}}function WC(){return{type:"TSBigIntKeyword"}}function $C(){return{type:"TSIntrinsicKeyword"}}function HC(){return{type:"TSNeverKeyword"}}function zC(){return{type:"TSNullKeyword"}}function GC(){return{type:"TSNumberKeyword"}}function QC(){return{type:"TSObjectKeyword"}}function ZC(){return{type:"TSStringKeyword"}}function eI(){return{type:"TSSymbolKeyword"}}function tI(){return{type:"TSUndefinedKeyword"}}function rI(){return{type:"TSUnknownKeyword"}}function iI(){return{type:"TSVoidKeyword"}}function sI(){return{type:"TSThisType"}}function nI(e=null,t,r=null){let i={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},s=P.TSFunctionType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function aI(e=null,t,r=null){let i={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},s=P.TSConstructorType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function oI(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},i=P.TSTypeReference;return p(i.typeName,r,"typeName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function lI(e,t=null,r=null){let i={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},s=P.TSTypePredicate;return p(s.parameterName,i,"parameterName",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.asserts,i,"asserts",r),i}function uI(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},i=P.TSTypeQuery;return p(i.exprName,r,"exprName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function cI(e){let t={type:"TSTypeLiteral",members:e},r=P.TSTypeLiteral;return p(r.members,t,"members",e,1),t}function pI(e){let t={type:"TSArrayType",elementType:e},r=P.TSArrayType;return p(r.elementType,t,"elementType",e,1),t}function fI(e){let t={type:"TSTupleType",elementTypes:e},r=P.TSTupleType;return p(r.elementTypes,t,"elementTypes",e,1),t}function hI(e){let t={type:"TSOptionalType",typeAnnotation:e},r=P.TSOptionalType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function dI(e){let t={type:"TSRestType",typeAnnotation:e},r=P.TSRestType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function mI(e,t,r=!1){let i={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},s=P.TSNamedTupleMember;return p(s.label,i,"label",e,1),p(s.elementType,i,"elementType",t,1),p(s.optional,i,"optional",r),i}function yI(e){let t={type:"TSUnionType",types:e},r=P.TSUnionType;return p(r.types,t,"types",e,1),t}function TI(e){let t={type:"TSIntersectionType",types:e},r=P.TSIntersectionType;return p(r.types,t,"types",e,1),t}function SI(e,t,r,i){let s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:i},n=P.TSConditionalType;return p(n.checkType,s,"checkType",e,1),p(n.extendsType,s,"extendsType",t,1),p(n.trueType,s,"trueType",r,1),p(n.falseType,s,"falseType",i,1),s}function gI(e){let t={type:"TSInferType",typeParameter:e},r=P.TSInferType;return p(r.typeParameter,t,"typeParameter",e,1),t}function xI(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=P.TSParenthesizedType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function bI(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},i=P.TSTypeOperator;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.operator,r,"operator",t),r}function EI(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},i=P.TSIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function PI(e,t=null,r=null){let i={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},s=P.TSMappedType;return p(s.typeParameter,i,"typeParameter",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.nameType,i,"nameType",r,1),i}function AI(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},i=P.TSTemplateLiteralType;return p(i.quasis,r,"quasis",e,1),p(i.types,r,"types",t,1),r}function vI(e){let t={type:"TSLiteralType",literal:e},r=P.TSLiteralType;return p(r.literal,t,"literal",e,1),t}function CI(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},i=P.TSExpressionWithTypeArguments;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function II(e,t=null,r=null,i){let s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=P.TSInterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function wI(e){let t={type:"TSInterfaceBody",body:e},r=P.TSInterfaceBody;return p(r.body,t,"body",e,1),t}function NI(e,t=null,r){let i={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},s=P.TSTypeAliasDeclaration;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function _I(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},i=P.TSInstantiationExpression;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function OI(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},i=P.TSAsExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function DI(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},i=P.TSSatisfiesExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function kI(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},i=P.TSTypeAssertion;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.expression,r,"expression",t,1),r}function LI(e){let t={type:"TSEnumBody",members:e},r=P.TSEnumBody;return p(r.members,t,"members",e,1),t}function MI(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},i=P.TSEnumDeclaration;return p(i.id,r,"id",e,1),p(i.members,r,"members",t,1),r}function BI(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},i=P.TSEnumMember;return p(i.id,r,"id",e,1),p(i.initializer,r,"initializer",t,1),r}function FI(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},i=P.TSModuleDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function jI(e){let t={type:"TSModuleBlock",body:e},r=P.TSModuleBlock;return p(r.body,t,"body",e,1),t}function RI(e,t=null,r=null){let i={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},s=P.TSImportType;return p(s.argument,i,"argument",e,1),p(s.qualifier,i,"qualifier",t,1),p(s.typeParameters,i,"typeParameters",r,1),i}function qI(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},i=P.TSImportEqualsDeclaration;return p(i.id,r,"id",e,1),p(i.moduleReference,r,"moduleReference",t,1),r}function UI(e){let t={type:"TSExternalModuleReference",expression:e},r=P.TSExternalModuleReference;return p(r.expression,t,"expression",e,1),t}function KI(e){let t={type:"TSNonNullExpression",expression:e},r=P.TSNonNullExpression;return p(r.expression,t,"expression",e,1),t}function VI(e){let t={type:"TSExportAssignment",expression:e},r=P.TSExportAssignment;return p(r.expression,t,"expression",e,1),t}function JI(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=P.TSNamespaceExportDeclaration;return p(r.id,t,"id",e,1),t}function YI(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=P.TSTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function XI(e){let t={type:"TSTypeParameterInstantiation",params:e},r=P.TSTypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function WI(e){let t={type:"TSTypeParameterDeclaration",params:e},r=P.TSTypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function $I(e=null,t=null,r){let i={type:"TSTypeParameter",constraint:e,default:t,name:r},s=P.TSTypeParameter;return p(s.constraint,i,"constraint",e,1),p(s.default,i,"default",t,1),p(s.name,i,"name",r),i}function HI(e){return(0,sn.default)("NumberLiteral","NumericLiteral","The node type "),Tf(e)}function zI(e,t=""){return(0,sn.default)("RegexLiteral","RegExpLiteral","The node type "),Sf(e,t)}function GI(e){return(0,sn.default)("RestProperty","RestElement","The node type "),gf(e)}function QI(e){return(0,sn.default)("SpreadProperty","SpreadElement","The node type "),xf(e)}});var bf=w(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.JSXIdentifier=c.JSXFragment=c.JSXExpressionContainer=c.JSXEmptyExpression=c.JSXElement=c.JSXClosingFragment=c.JSXClosingElement=c.JSXAttribute=c.IntersectionTypeAnnotation=c.InterpreterDirective=c.InterfaceTypeAnnotation=c.InterfaceExtends=c.InterfaceDeclaration=c.InferredPredicate=c.IndexedAccessType=c.ImportSpecifier=c.ImportNamespaceSpecifier=c.ImportExpression=c.ImportDefaultSpecifier=c.ImportDeclaration=c.ImportAttribute=c.Import=c.IfStatement=c.Identifier=c.GenericTypeAnnotation=c.FunctionTypeParam=c.FunctionTypeAnnotation=c.FunctionExpression=c.FunctionDeclaration=c.ForStatement=c.ForOfStatement=c.ForInStatement=c.File=c.ExpressionStatement=c.ExportSpecifier=c.ExportNamespaceSpecifier=c.ExportNamedDeclaration=c.ExportDefaultSpecifier=c.ExportDefaultDeclaration=c.ExportAllDeclaration=c.ExistsTypeAnnotation=c.EnumSymbolBody=c.EnumStringMember=c.EnumStringBody=c.EnumNumberMember=c.EnumNumberBody=c.EnumDefaultedMember=c.EnumDeclaration=c.EnumBooleanMember=c.EnumBooleanBody=c.EmptyTypeAnnotation=c.EmptyStatement=c.DoWhileStatement=c.DoExpression=c.DirectiveLiteral=c.Directive=c.Decorator=c.DeclaredPredicate=c.DeclareVariable=c.DeclareTypeAlias=c.DeclareOpaqueType=c.DeclareModuleExports=c.DeclareModule=c.DeclareInterface=c.DeclareFunction=c.DeclareExportDeclaration=c.DeclareExportAllDeclaration=c.DeclareClass=c.DecimalLiteral=c.DebuggerStatement=c.ContinueStatement=c.ConditionalExpression=c.ClassProperty=c.ClassPrivateProperty=c.ClassPrivateMethod=c.ClassMethod=c.ClassImplements=c.ClassExpression=c.ClassDeclaration=c.ClassBody=c.ClassAccessorProperty=c.CatchClause=c.CallExpression=c.BreakStatement=c.BooleanTypeAnnotation=c.BooleanLiteralTypeAnnotation=c.BooleanLiteral=c.BlockStatement=c.BindExpression=c.BinaryExpression=c.BigIntLiteral=c.AwaitExpression=c.AssignmentPattern=c.AssignmentExpression=c.ArrowFunctionExpression=c.ArrayTypeAnnotation=c.ArrayPattern=c.ArrayExpression=c.ArgumentPlaceholder=c.AnyTypeAnnotation=void 0;c.TSNumberKeyword=c.TSNullKeyword=c.TSNonNullExpression=c.TSNeverKeyword=c.TSNamespaceExportDeclaration=c.TSNamedTupleMember=c.TSModuleDeclaration=c.TSModuleBlock=c.TSMethodSignature=c.TSMappedType=c.TSLiteralType=c.TSIntrinsicKeyword=c.TSIntersectionType=c.TSInterfaceDeclaration=c.TSInterfaceBody=c.TSInstantiationExpression=c.TSInferType=c.TSIndexedAccessType=c.TSIndexSignature=c.TSImportType=c.TSImportEqualsDeclaration=c.TSFunctionType=c.TSExternalModuleReference=c.TSExpressionWithTypeArguments=c.TSExportAssignment=c.TSEnumMember=c.TSEnumDeclaration=c.TSEnumBody=c.TSDeclareMethod=c.TSDeclareFunction=c.TSConstructorType=c.TSConstructSignatureDeclaration=c.TSConditionalType=c.TSCallSignatureDeclaration=c.TSBooleanKeyword=c.TSBigIntKeyword=c.TSAsExpression=c.TSArrayType=c.TSAnyKeyword=c.SymbolTypeAnnotation=c.SwitchStatement=c.SwitchCase=c.Super=c.StringTypeAnnotation=c.StringLiteralTypeAnnotation=c.StringLiteral=c.StaticBlock=c.SpreadProperty=c.SpreadElement=c.SequenceExpression=c.ReturnStatement=c.RestProperty=c.RestElement=c.RegexLiteral=c.RegExpLiteral=c.RecordExpression=c.QualifiedTypeIdentifier=c.Program=c.PrivateName=c.Placeholder=c.PipelineTopicExpression=c.PipelinePrimaryTopicReference=c.PipelineBareFunction=c.ParenthesizedExpression=c.OptionalMemberExpression=c.OptionalIndexedAccessType=c.OptionalCallExpression=c.OpaqueType=c.ObjectTypeSpreadProperty=c.ObjectTypeProperty=c.ObjectTypeInternalSlot=c.ObjectTypeIndexer=c.ObjectTypeCallProperty=c.ObjectTypeAnnotation=c.ObjectProperty=c.ObjectPattern=c.ObjectMethod=c.ObjectExpression=c.NumericLiteral=c.NumberTypeAnnotation=c.NumberLiteralTypeAnnotation=c.NumberLiteral=c.NullableTypeAnnotation=c.NullLiteralTypeAnnotation=c.NullLiteral=c.Noop=c.NewExpression=c.ModuleExpression=c.MixedTypeAnnotation=c.MetaProperty=c.MemberExpression=c.LogicalExpression=c.LabeledStatement=c.JSXText=c.JSXSpreadChild=c.JSXSpreadAttribute=c.JSXOpeningFragment=c.JSXOpeningElement=c.JSXNamespacedName=c.JSXMemberExpression=void 0;c.YieldExpression=c.WithStatement=c.WhileStatement=c.VoidTypeAnnotation=c.VoidPattern=c.Variance=c.VariableDeclarator=c.VariableDeclaration=c.V8IntrinsicIdentifier=c.UpdateExpression=c.UnionTypeAnnotation=c.UnaryExpression=c.TypeofTypeAnnotation=c.TypeParameterInstantiation=c.TypeParameterDeclaration=c.TypeParameter=c.TypeCastExpression=c.TypeAnnotation=c.TypeAlias=c.TupleTypeAnnotation=c.TupleExpression=c.TryStatement=c.TopicReference=c.ThrowStatement=c.ThisTypeAnnotation=c.ThisExpression=c.TemplateLiteral=c.TemplateElement=c.TaggedTemplateExpression=c.TSVoidKeyword=c.TSUnknownKeyword=c.TSUnionType=c.TSUndefinedKeyword=c.TSTypeReference=c.TSTypeQuery=c.TSTypePredicate=c.TSTypeParameterInstantiation=c.TSTypeParameterDeclaration=c.TSTypeParameter=c.TSTypeOperator=c.TSTypeLiteral=c.TSTypeAssertion=c.TSTypeAnnotation=c.TSTypeAliasDeclaration=c.TSTupleType=c.TSThisType=c.TSTemplateLiteralType=c.TSSymbolKeyword=c.TSStringKeyword=c.TSSatisfiesExpression=c.TSRestType=c.TSQualifiedName=c.TSPropertySignature=c.TSParenthesizedType=c.TSParameterProperty=c.TSOptionalType=c.TSObjectKeyword=void 0;var os=co(),RX=yi();function x(e){return os[e]}var qX=c.ArrayExpression=x("arrayExpression"),UX=c.AssignmentExpression=x("assignmentExpression"),KX=c.BinaryExpression=x("binaryExpression"),VX=c.InterpreterDirective=x("interpreterDirective"),JX=c.Directive=x("directive"),YX=c.DirectiveLiteral=x("directiveLiteral"),XX=c.BlockStatement=x("blockStatement"),WX=c.BreakStatement=x("breakStatement"),$X=c.CallExpression=x("callExpression"),HX=c.CatchClause=x("catchClause"),zX=c.ConditionalExpression=x("conditionalExpression"),GX=c.ContinueStatement=x("continueStatement"),QX=c.DebuggerStatement=x("debuggerStatement"),ZX=c.DoWhileStatement=x("doWhileStatement"),eW=c.EmptyStatement=x("emptyStatement"),tW=c.ExpressionStatement=x("expressionStatement"),rW=c.File=x("file"),iW=c.ForInStatement=x("forInStatement"),sW=c.ForStatement=x("forStatement"),nW=c.FunctionDeclaration=x("functionDeclaration"),aW=c.FunctionExpression=x("functionExpression"),oW=c.Identifier=x("identifier"),lW=c.IfStatement=x("ifStatement"),uW=c.LabeledStatement=x("labeledStatement"),cW=c.StringLiteral=x("stringLiteral"),pW=c.NumericLiteral=x("numericLiteral"),fW=c.NullLiteral=x("nullLiteral"),hW=c.BooleanLiteral=x("booleanLiteral"),dW=c.RegExpLiteral=x("regExpLiteral"),mW=c.LogicalExpression=x("logicalExpression"),yW=c.MemberExpression=x("memberExpression"),TW=c.NewExpression=x("newExpression"),SW=c.Program=x("program"),gW=c.ObjectExpression=x("objectExpression"),xW=c.ObjectMethod=x("objectMethod"),bW=c.ObjectProperty=x("objectProperty"),EW=c.RestElement=x("restElement"),PW=c.ReturnStatement=x("returnStatement"),AW=c.SequenceExpression=x("sequenceExpression"),vW=c.ParenthesizedExpression=x("parenthesizedExpression"),CW=c.SwitchCase=x("switchCase"),IW=c.SwitchStatement=x("switchStatement"),wW=c.ThisExpression=x("thisExpression"),NW=c.ThrowStatement=x("throwStatement"),_W=c.TryStatement=x("tryStatement"),OW=c.UnaryExpression=x("unaryExpression"),DW=c.UpdateExpression=x("updateExpression"),kW=c.VariableDeclaration=x("variableDeclaration"),LW=c.VariableDeclarator=x("variableDeclarator"),MW=c.WhileStatement=x("whileStatement"),BW=c.WithStatement=x("withStatement"),FW=c.AssignmentPattern=x("assignmentPattern"),jW=c.ArrayPattern=x("arrayPattern"),RW=c.ArrowFunctionExpression=x("arrowFunctionExpression"),qW=c.ClassBody=x("classBody"),UW=c.ClassExpression=x("classExpression"),KW=c.ClassDeclaration=x("classDeclaration"),VW=c.ExportAllDeclaration=x("exportAllDeclaration"),JW=c.ExportDefaultDeclaration=x("exportDefaultDeclaration"),YW=c.ExportNamedDeclaration=x("exportNamedDeclaration"),XW=c.ExportSpecifier=x("exportSpecifier"),WW=c.ForOfStatement=x("forOfStatement"),$W=c.ImportDeclaration=x("importDeclaration"),HW=c.ImportDefaultSpecifier=x("importDefaultSpecifier"),zW=c.ImportNamespaceSpecifier=x("importNamespaceSpecifier"),GW=c.ImportSpecifier=x("importSpecifier"),QW=c.ImportExpression=x("importExpression"),ZW=c.MetaProperty=x("metaProperty"),e$=c.ClassMethod=x("classMethod"),t$=c.ObjectPattern=x("objectPattern"),r$=c.SpreadElement=x("spreadElement"),i$=c.Super=x("super"),s$=c.TaggedTemplateExpression=x("taggedTemplateExpression"),n$=c.TemplateElement=x("templateElement"),a$=c.TemplateLiteral=x("templateLiteral"),o$=c.YieldExpression=x("yieldExpression"),l$=c.AwaitExpression=x("awaitExpression"),u$=c.Import=x("import"),c$=c.BigIntLiteral=x("bigIntLiteral"),p$=c.ExportNamespaceSpecifier=x("exportNamespaceSpecifier"),f$=c.OptionalMemberExpression=x("optionalMemberExpression"),h$=c.OptionalCallExpression=x("optionalCallExpression"),d$=c.ClassProperty=x("classProperty"),m$=c.ClassAccessorProperty=x("classAccessorProperty"),y$=c.ClassPrivateProperty=x("classPrivateProperty"),T$=c.ClassPrivateMethod=x("classPrivateMethod"),S$=c.PrivateName=x("privateName"),g$=c.StaticBlock=x("staticBlock"),x$=c.ImportAttribute=x("importAttribute"),b$=c.AnyTypeAnnotation=x("anyTypeAnnotation"),E$=c.ArrayTypeAnnotation=x("arrayTypeAnnotation"),P$=c.BooleanTypeAnnotation=x("booleanTypeAnnotation"),A$=c.BooleanLiteralTypeAnnotation=x("booleanLiteralTypeAnnotation"),v$=c.NullLiteralTypeAnnotation=x("nullLiteralTypeAnnotation"),C$=c.ClassImplements=x("classImplements"),I$=c.DeclareClass=x("declareClass"),w$=c.DeclareFunction=x("declareFunction"),N$=c.DeclareInterface=x("declareInterface"),_$=c.DeclareModule=x("declareModule"),O$=c.DeclareModuleExports=x("declareModuleExports"),D$=c.DeclareTypeAlias=x("declareTypeAlias"),k$=c.DeclareOpaqueType=x("declareOpaqueType"),L$=c.DeclareVariable=x("declareVariable"),M$=c.DeclareExportDeclaration=x("declareExportDeclaration"),B$=c.DeclareExportAllDeclaration=x("declareExportAllDeclaration"),F$=c.DeclaredPredicate=x("declaredPredicate"),j$=c.ExistsTypeAnnotation=x("existsTypeAnnotation"),R$=c.FunctionTypeAnnotation=x("functionTypeAnnotation"),q$=c.FunctionTypeParam=x("functionTypeParam"),U$=c.GenericTypeAnnotation=x("genericTypeAnnotation"),K$=c.InferredPredicate=x("inferredPredicate"),V$=c.InterfaceExtends=x("interfaceExtends"),J$=c.InterfaceDeclaration=x("interfaceDeclaration"),Y$=c.InterfaceTypeAnnotation=x("interfaceTypeAnnotation"),X$=c.IntersectionTypeAnnotation=x("intersectionTypeAnnotation"),W$=c.MixedTypeAnnotation=x("mixedTypeAnnotation"),$$=c.EmptyTypeAnnotation=x("emptyTypeAnnotation"),H$=c.NullableTypeAnnotation=x("nullableTypeAnnotation"),z$=c.NumberLiteralTypeAnnotation=x("numberLiteralTypeAnnotation"),G$=c.NumberTypeAnnotation=x("numberTypeAnnotation"),Q$=c.ObjectTypeAnnotation=x("objectTypeAnnotation"),Z$=c.ObjectTypeInternalSlot=x("objectTypeInternalSlot"),eH=c.ObjectTypeCallProperty=x("objectTypeCallProperty"),tH=c.ObjectTypeIndexer=x("objectTypeIndexer"),rH=c.ObjectTypeProperty=x("objectTypeProperty"),iH=c.ObjectTypeSpreadProperty=x("objectTypeSpreadProperty"),sH=c.OpaqueType=x("opaqueType"),nH=c.QualifiedTypeIdentifier=x("qualifiedTypeIdentifier"),aH=c.StringLiteralTypeAnnotation=x("stringLiteralTypeAnnotation"),oH=c.StringTypeAnnotation=x("stringTypeAnnotation"),lH=c.SymbolTypeAnnotation=x("symbolTypeAnnotation"),uH=c.ThisTypeAnnotation=x("thisTypeAnnotation"),cH=c.TupleTypeAnnotation=x("tupleTypeAnnotation"),pH=c.TypeofTypeAnnotation=x("typeofTypeAnnotation"),fH=c.TypeAlias=x("typeAlias"),hH=c.TypeAnnotation=x("typeAnnotation"),dH=c.TypeCastExpression=x("typeCastExpression"),mH=c.TypeParameter=x("typeParameter"),yH=c.TypeParameterDeclaration=x("typeParameterDeclaration"),TH=c.TypeParameterInstantiation=x("typeParameterInstantiation"),SH=c.UnionTypeAnnotation=x("unionTypeAnnotation"),gH=c.Variance=x("variance"),xH=c.VoidTypeAnnotation=x("voidTypeAnnotation"),bH=c.EnumDeclaration=x("enumDeclaration"),EH=c.EnumBooleanBody=x("enumBooleanBody"),PH=c.EnumNumberBody=x("enumNumberBody"),AH=c.EnumStringBody=x("enumStringBody"),vH=c.EnumSymbolBody=x("enumSymbolBody"),CH=c.EnumBooleanMember=x("enumBooleanMember"),IH=c.EnumNumberMember=x("enumNumberMember"),wH=c.EnumStringMember=x("enumStringMember"),NH=c.EnumDefaultedMember=x("enumDefaultedMember"),_H=c.IndexedAccessType=x("indexedAccessType"),OH=c.OptionalIndexedAccessType=x("optionalIndexedAccessType"),DH=c.JSXAttribute=x("jsxAttribute"),kH=c.JSXClosingElement=x("jsxClosingElement"),LH=c.JSXElement=x("jsxElement"),MH=c.JSXEmptyExpression=x("jsxEmptyExpression"),BH=c.JSXExpressionContainer=x("jsxExpressionContainer"),FH=c.JSXSpreadChild=x("jsxSpreadChild"),jH=c.JSXIdentifier=x("jsxIdentifier"),RH=c.JSXMemberExpression=x("jsxMemberExpression"),qH=c.JSXNamespacedName=x("jsxNamespacedName"),UH=c.JSXOpeningElement=x("jsxOpeningElement"),KH=c.JSXSpreadAttribute=x("jsxSpreadAttribute"),VH=c.JSXText=x("jsxText"),JH=c.JSXFragment=x("jsxFragment"),YH=c.JSXOpeningFragment=x("jsxOpeningFragment"),XH=c.JSXClosingFragment=x("jsxClosingFragment"),WH=c.Noop=x("noop"),$H=c.Placeholder=x("placeholder"),HH=c.V8IntrinsicIdentifier=x("v8IntrinsicIdentifier"),zH=c.ArgumentPlaceholder=x("argumentPlaceholder"),GH=c.BindExpression=x("bindExpression"),QH=c.Decorator=x("decorator"),ZH=c.DoExpression=x("doExpression"),ez=c.ExportDefaultSpecifier=x("exportDefaultSpecifier"),tz=c.RecordExpression=x("recordExpression"),rz=c.TupleExpression=x("tupleExpression"),iz=c.DecimalLiteral=x("decimalLiteral"),sz=c.ModuleExpression=x("moduleExpression"),nz=c.TopicReference=x("topicReference"),az=c.PipelineTopicExpression=x("pipelineTopicExpression"),oz=c.PipelineBareFunction=x("pipelineBareFunction"),lz=c.PipelinePrimaryTopicReference=x("pipelinePrimaryTopicReference"),uz=c.VoidPattern=x("voidPattern"),cz=c.TSParameterProperty=x("tsParameterProperty"),pz=c.TSDeclareFunction=x("tsDeclareFunction"),fz=c.TSDeclareMethod=x("tsDeclareMethod"),hz=c.TSQualifiedName=x("tsQualifiedName"),dz=c.TSCallSignatureDeclaration=x("tsCallSignatureDeclaration"),mz=c.TSConstructSignatureDeclaration=x("tsConstructSignatureDeclaration"),yz=c.TSPropertySignature=x("tsPropertySignature"),Tz=c.TSMethodSignature=x("tsMethodSignature"),Sz=c.TSIndexSignature=x("tsIndexSignature"),gz=c.TSAnyKeyword=x("tsAnyKeyword"),xz=c.TSBooleanKeyword=x("tsBooleanKeyword"),bz=c.TSBigIntKeyword=x("tsBigIntKeyword"),Ez=c.TSIntrinsicKeyword=x("tsIntrinsicKeyword"),Pz=c.TSNeverKeyword=x("tsNeverKeyword"),Az=c.TSNullKeyword=x("tsNullKeyword"),vz=c.TSNumberKeyword=x("tsNumberKeyword"),Cz=c.TSObjectKeyword=x("tsObjectKeyword"),Iz=c.TSStringKeyword=x("tsStringKeyword"),wz=c.TSSymbolKeyword=x("tsSymbolKeyword"),Nz=c.TSUndefinedKeyword=x("tsUndefinedKeyword"),_z=c.TSUnknownKeyword=x("tsUnknownKeyword"),Oz=c.TSVoidKeyword=x("tsVoidKeyword"),Dz=c.TSThisType=x("tsThisType"),kz=c.TSFunctionType=x("tsFunctionType"),Lz=c.TSConstructorType=x("tsConstructorType"),Mz=c.TSTypeReference=x("tsTypeReference"),Bz=c.TSTypePredicate=x("tsTypePredicate"),Fz=c.TSTypeQuery=x("tsTypeQuery"),jz=c.TSTypeLiteral=x("tsTypeLiteral"),Rz=c.TSArrayType=x("tsArrayType"),qz=c.TSTupleType=x("tsTupleType"),Uz=c.TSOptionalType=x("tsOptionalType"),Kz=c.TSRestType=x("tsRestType"),Vz=c.TSNamedTupleMember=x("tsNamedTupleMember"),Jz=c.TSUnionType=x("tsUnionType"),Yz=c.TSIntersectionType=x("tsIntersectionType"),Xz=c.TSConditionalType=x("tsConditionalType"),Wz=c.TSInferType=x("tsInferType"),$z=c.TSParenthesizedType=x("tsParenthesizedType"),Hz=c.TSTypeOperator=x("tsTypeOperator"),zz=c.TSIndexedAccessType=x("tsIndexedAccessType"),Gz=c.TSMappedType=x("tsMappedType"),Qz=c.TSTemplateLiteralType=x("tsTemplateLiteralType"),Zz=c.TSLiteralType=x("tsLiteralType"),eG=c.TSExpressionWithTypeArguments=x("tsExpressionWithTypeArguments"),tG=c.TSInterfaceDeclaration=x("tsInterfaceDeclaration"),rG=c.TSInterfaceBody=x("tsInterfaceBody"),iG=c.TSTypeAliasDeclaration=x("tsTypeAliasDeclaration"),sG=c.TSInstantiationExpression=x("tsInstantiationExpression"),nG=c.TSAsExpression=x("tsAsExpression"),aG=c.TSSatisfiesExpression=x("tsSatisfiesExpression"),oG=c.TSTypeAssertion=x("tsTypeAssertion"),lG=c.TSEnumBody=x("tsEnumBody"),uG=c.TSEnumDeclaration=x("tsEnumDeclaration"),cG=c.TSEnumMember=x("tsEnumMember"),pG=c.TSModuleDeclaration=x("tsModuleDeclaration"),fG=c.TSModuleBlock=x("tsModuleBlock"),hG=c.TSImportType=x("tsImportType"),dG=c.TSImportEqualsDeclaration=x("tsImportEqualsDeclaration"),mG=c.TSExternalModuleReference=x("tsExternalModuleReference"),yG=c.TSNonNullExpression=x("tsNonNullExpression"),TG=c.TSExportAssignment=x("tsExportAssignment"),SG=c.TSNamespaceExportDeclaration=x("tsNamespaceExportDeclaration"),gG=c.TSTypeAnnotation=x("tsTypeAnnotation"),xG=c.TSTypeParameterInstantiation=x("tsTypeParameterInstantiation"),bG=c.TSTypeParameterDeclaration=x("tsTypeParameterDeclaration"),EG=c.TSTypeParameter=x("tsTypeParameter"),PG=c.NumberLiteral=os.numberLiteral,AG=c.RegexLiteral=os.regexLiteral,vG=c.RestProperty=os.restProperty,CG=c.SpreadProperty=os.spreadProperty});var Ct=w(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});var po=co();Object.keys(po).forEach(function(e){e==="default"||e==="__esModule"||e in Ir&&Ir[e]===po[e]||Object.defineProperty(Ir,e,{enumerable:!0,get:function(){return po[e]}})});var fo=bf();Object.keys(fo).forEach(function(e){e==="default"||e==="__esModule"||e in Ir&&Ir[e]===fo[e]||Object.defineProperty(Ir,e,{enumerable:!0,get:function(){return fo[e]}})})});var Ef=w(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.default=tw;var ZI=Ct(),ew=he();function tw(e,t){let r=e.value.split(/\r\n|\n|\r/),i=0;for(let n=0;n<r.length;n++)/[^ \t]/.exec(r[n])&&(i=n);let s="";for(let n=0;n<r.length;n++){let a=r[n],o=n===0,l=n===r.length-1,u=n===i,f=a.replace(/\t/g," ");o||(f=f.replace(/^ +/,"")),l||(f=f.replace(/ +$/,"")),f&&(u||(f+=" "),s+=f)}s&&t.push((0,ew.inherits)((0,ZI.stringLiteral)(s),e))}});var Pf=w(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.default=iw;var mo=ze(),rw=Ef();function iw(e){let t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0,mo.isJSXText)(i)){(0,rw.default)(i,t);continue}(0,mo.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,mo.isJSXEmptyExpression)(i)&&t.push(i)}return t}});var So=w(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.default=nw;var sw=Bt();function nw(e){return!!(e&&sw.VISITOR_KEYS[e.type])}});var Af=w(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.default=ow;var aw=So();function ow(e){if(!(0,aw.default)(e)){var t;let r=(t=e?.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var vf=w(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.assertAccessor=Ik;m.assertAnyTypeAnnotation=JN;m.assertArgumentPlaceholder=gO;m.assertArrayExpression=uw;m.assertArrayPattern=oN;m.assertArrayTypeAnnotation=YN;m.assertArrowFunctionExpression=lN;m.assertAssignmentExpression=cw;m.assertAssignmentPattern=aN;m.assertAwaitExpression=ON;m.assertBigIntLiteral=kN;m.assertBinary=$D;m.assertBinaryExpression=pw;m.assertBindExpression=xO;m.assertBlock=GD;m.assertBlockParent=zD;m.assertBlockStatement=mw;m.assertBooleanLiteral=Bw;m.assertBooleanLiteralTypeAnnotation=WN;m.assertBooleanTypeAnnotation=XN;m.assertBreakStatement=yw;m.assertCallExpression=Tw;m.assertCatchClause=Sw;m.assertClass=Pk;m.assertClassAccessorProperty=jN;m.assertClassBody=uN;m.assertClassDeclaration=pN;m.assertClassExpression=cN;m.assertClassImplements=HN;m.assertClassMethod=PN;m.assertClassPrivateMethod=qN;m.assertClassPrivateProperty=RN;m.assertClassProperty=FN;m.assertCompletionStatement=ek;m.assertConditional=tk;m.assertConditionalExpression=gw;m.assertContinueStatement=xw;m.assertDebuggerStatement=bw;m.assertDecimalLiteral=CO;m.assertDeclaration=ck;m.assertDeclareClass=zN;m.assertDeclareExportAllDeclaration=n_;m.assertDeclareExportDeclaration=s_;m.assertDeclareFunction=GN;m.assertDeclareInterface=QN;m.assertDeclareModule=ZN;m.assertDeclareModuleExports=e_;m.assertDeclareOpaqueType=r_;m.assertDeclareTypeAlias=t_;m.assertDeclareVariable=i_;m.assertDeclaredPredicate=a_;m.assertDecorator=bO;m.assertDirective=hw;m.assertDirectiveLiteral=dw;m.assertDoExpression=EO;m.assertDoWhileStatement=Ew;m.assertEmptyStatement=Pw;m.assertEmptyTypeAnnotation=T_;m.assertEnumBody=Lk;m.assertEnumBooleanBody=Y_;m.assertEnumBooleanMember=H_;m.assertEnumDeclaration=J_;m.assertEnumDefaultedMember=Q_;m.assertEnumMember=Mk;m.assertEnumNumberBody=X_;m.assertEnumNumberMember=z_;m.assertEnumStringBody=W_;m.assertEnumStringMember=G_;m.assertEnumSymbolBody=$_;m.assertExistsTypeAnnotation=o_;m.assertExportAllDeclaration=fN;m.assertExportDeclaration=vk;m.assertExportDefaultDeclaration=hN;m.assertExportDefaultSpecifier=PO;m.assertExportNamedDeclaration=dN;m.assertExportNamespaceSpecifier=LN;m.assertExportSpecifier=mN;m.assertExpression=WD;m.assertExpressionStatement=Aw;m.assertExpressionWrapper=sk;m.assertFile=vw;m.assertFlow=Nk;m.assertFlowBaseAnnotation=Ok;m.assertFlowDeclaration=Dk;m.assertFlowPredicate=kk;m.assertFlowType=_k;m.assertFor=nk;m.assertForInStatement=Cw;m.assertForOfStatement=yN;m.assertForStatement=Iw;m.assertForXStatement=ak;m.assertFunction=ok;m.assertFunctionDeclaration=ww;m.assertFunctionExpression=Nw;m.assertFunctionParameter=pk;m.assertFunctionParent=lk;m.assertFunctionTypeAnnotation=l_;m.assertFunctionTypeParam=u_;m.assertGenericTypeAnnotation=c_;m.assertIdentifier=_w;m.assertIfStatement=Ow;m.assertImmutable=yk;m.assertImport=DN;m.assertImportAttribute=VN;m.assertImportDeclaration=TN;m.assertImportDefaultSpecifier=SN;m.assertImportExpression=bN;m.assertImportNamespaceSpecifier=gN;m.assertImportOrExportDeclaration=Ak;m.assertImportSpecifier=xN;m.assertIndexedAccessType=Z_;m.assertInferredPredicate=p_;m.assertInterfaceDeclaration=h_;m.assertInterfaceExtends=f_;m.assertInterfaceTypeAnnotation=d_;m.assertInterpreterDirective=fw;m.assertIntersectionTypeAnnotation=m_;m.assertJSX=Bk;m.assertJSXAttribute=tO;m.assertJSXClosingElement=rO;m.assertJSXClosingFragment=mO;m.assertJSXElement=iO;m.assertJSXEmptyExpression=sO;m.assertJSXExpressionContainer=nO;m.assertJSXFragment=hO;m.assertJSXIdentifier=oO;m.assertJSXMemberExpression=lO;m.assertJSXNamespacedName=uO;m.assertJSXOpeningElement=cO;m.assertJSXOpeningFragment=dO;m.assertJSXSpreadAttribute=pO;m.assertJSXSpreadChild=aO;m.assertJSXText=fO;m.assertLVal=hk;m.assertLabeledStatement=Dw;m.assertLiteral=mk;m.assertLogicalExpression=jw;m.assertLoop=rk;m.assertMemberExpression=Rw;m.assertMetaProperty=EN;m.assertMethod=Sk;m.assertMiscellaneous=Fk;m.assertMixedTypeAnnotation=y_;m.assertModuleDeclaration=Xk;m.assertModuleExpression=IO;m.assertModuleSpecifier=Ck;m.assertNewExpression=qw;m.assertNoop=yO;m.assertNullLiteral=Mw;m.assertNullLiteralTypeAnnotation=$N;m.assertNullableTypeAnnotation=S_;m.assertNumberLiteral=Kk;m.assertNumberLiteralTypeAnnotation=g_;m.assertNumberTypeAnnotation=x_;m.assertNumericLiteral=Lw;m.assertObjectExpression=Kw;m.assertObjectMember=gk;m.assertObjectMethod=Vw;m.assertObjectPattern=AN;m.assertObjectProperty=Jw;m.assertObjectTypeAnnotation=b_;m.assertObjectTypeCallProperty=P_;m.assertObjectTypeIndexer=A_;m.assertObjectTypeInternalSlot=E_;m.assertObjectTypeProperty=v_;m.assertObjectTypeSpreadProperty=C_;m.assertOpaqueType=I_;m.assertOptionalCallExpression=BN;m.assertOptionalIndexedAccessType=eO;m.assertOptionalMemberExpression=MN;m.assertParenthesizedExpression=$w;m.assertPattern=Ek;m.assertPatternLike=fk;m.assertPipelineBareFunction=_O;m.assertPipelinePrimaryTopicReference=OO;m.assertPipelineTopicExpression=NO;m.assertPlaceholder=TO;m.assertPrivate=wk;m.assertPrivateName=UN;m.assertProgram=Uw;m.assertProperty=xk;m.assertPureish=uk;m.assertQualifiedTypeIdentifier=w_;m.assertRecordExpression=AO;m.assertRegExpLiteral=Fw;m.assertRegexLiteral=Vk;m.assertRestElement=Yw;m.assertRestProperty=Jk;m.assertReturnStatement=Xw;m.assertScopable=HD;m.assertSequenceExpression=Ww;m.assertSpreadElement=vN;m.assertSpreadProperty=Yk;m.assertStandardized=XD;m.assertStatement=QD;m.assertStaticBlock=KN;m.assertStringLiteral=kw;m.assertStringLiteralTypeAnnotation=N_;m.assertStringTypeAnnotation=__;m.assertSuper=CN;m.assertSwitchCase=Hw;m.assertSwitchStatement=zw;m.assertSymbolTypeAnnotation=O_;m.assertTSAnyKeyword=KO;m.assertTSArrayType=lD;m.assertTSAsExpression=wD;m.assertTSBaseType=Uk;m.assertTSBigIntKeyword=JO;m.assertTSBooleanKeyword=VO;m.assertTSCallSignatureDeclaration=FO;m.assertTSConditionalType=mD;m.assertTSConstructSignatureDeclaration=jO;m.assertTSConstructorType=iD;m.assertTSDeclareFunction=LO;m.assertTSDeclareMethod=MO;m.assertTSEntityName=dk;m.assertTSEnumBody=OD;m.assertTSEnumDeclaration=DD;m.assertTSEnumMember=kD;m.assertTSExportAssignment=qD;m.assertTSExpressionWithTypeArguments=PD;m.assertTSExternalModuleReference=jD;m.assertTSFunctionType=rD;m.assertTSImportEqualsDeclaration=FD;m.assertTSImportType=BD;m.assertTSIndexSignature=UO;m.assertTSIndexedAccessType=gD;m.assertTSInferType=yD;m.assertTSInstantiationExpression=ID;m.assertTSInterfaceBody=vD;m.assertTSInterfaceDeclaration=AD;m.assertTSIntersectionType=dD;m.assertTSIntrinsicKeyword=YO;m.assertTSLiteralType=ED;m.assertTSMappedType=xD;m.assertTSMethodSignature=qO;m.assertTSModuleBlock=MD;m.assertTSModuleDeclaration=LD;m.assertTSNamedTupleMember=fD;m.assertTSNamespaceExportDeclaration=UD;m.assertTSNeverKeyword=XO;m.assertTSNonNullExpression=RD;m.assertTSNullKeyword=WO;m.assertTSNumberKeyword=$O;m.assertTSObjectKeyword=HO;m.assertTSOptionalType=cD;m.assertTSParameterProperty=kO;m.assertTSParenthesizedType=TD;m.assertTSPropertySignature=RO;m.assertTSQualifiedName=BO;m.assertTSRestType=pD;m.assertTSSatisfiesExpression=ND;m.assertTSStringKeyword=zO;m.assertTSSymbolKeyword=GO;m.assertTSTemplateLiteralType=bD;m.assertTSThisType=tD;m.assertTSTupleType=uD;m.assertTSType=qk;m.assertTSTypeAliasDeclaration=CD;m.assertTSTypeAnnotation=KD;m.assertTSTypeAssertion=_D;m.assertTSTypeElement=Rk;m.assertTSTypeLiteral=oD;m.assertTSTypeOperator=SD;m.assertTSTypeParameter=YD;m.assertTSTypeParameterDeclaration=JD;m.assertTSTypeParameterInstantiation=VD;m.assertTSTypePredicate=nD;m.assertTSTypeQuery=aD;m.assertTSTypeReference=sD;m.assertTSUndefinedKeyword=QO;m.assertTSUnionType=hD;m.assertTSUnknownKeyword=ZO;m.assertTSVoidKeyword=eD;m.assertTaggedTemplateExpression=IN;m.assertTemplateElement=wN;m.assertTemplateLiteral=NN;m.assertTerminatorless=ZD;m.assertThisExpression=Gw;m.assertThisTypeAnnotation=D_;m.assertThrowStatement=Qw;m.assertTopicReference=wO;m.assertTryStatement=Zw;m.assertTupleExpression=vO;m.assertTupleTypeAnnotation=k_;m.assertTypeAlias=M_;m.assertTypeAnnotation=B_;m.assertTypeCastExpression=F_;m.assertTypeParameter=j_;m.assertTypeParameterDeclaration=R_;m.assertTypeParameterInstantiation=q_;m.assertTypeScript=jk;m.assertTypeofTypeAnnotation=L_;m.assertUnaryExpression=eN;m.assertUnaryLike=bk;m.assertUnionTypeAnnotation=U_;m.assertUpdateExpression=tN;m.assertUserWhitespacable=Tk;m.assertV8IntrinsicIdentifier=SO;m.assertVariableDeclaration=rN;m.assertVariableDeclarator=iN;m.assertVariance=K_;m.assertVoidPattern=DO;m.assertVoidTypeAnnotation=V_;m.assertWhile=ik;m.assertWhileStatement=sN;m.assertWithStatement=nN;m.assertYieldExpression=_N;var lw=Ti(),ls=yi();function y(e,t,r){if(!(0,lw.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function uw(e,t){y("ArrayExpression",e,t)}function cw(e,t){y("AssignmentExpression",e,t)}function pw(e,t){y("BinaryExpression",e,t)}function fw(e,t){y("InterpreterDirective",e,t)}function hw(e,t){y("Directive",e,t)}function dw(e,t){y("DirectiveLiteral",e,t)}function mw(e,t){y("BlockStatement",e,t)}function yw(e,t){y("BreakStatement",e,t)}function Tw(e,t){y("CallExpression",e,t)}function Sw(e,t){y("CatchClause",e,t)}function gw(e,t){y("ConditionalExpression",e,t)}function xw(e,t){y("ContinueStatement",e,t)}function bw(e,t){y("DebuggerStatement",e,t)}function Ew(e,t){y("DoWhileStatement",e,t)}function Pw(e,t){y("EmptyStatement",e,t)}function Aw(e,t){y("ExpressionStatement",e,t)}function vw(e,t){y("File",e,t)}function Cw(e,t){y("ForInStatement",e,t)}function Iw(e,t){y("ForStatement",e,t)}function ww(e,t){y("FunctionDeclaration",e,t)}function Nw(e,t){y("FunctionExpression",e,t)}function _w(e,t){y("Identifier",e,t)}function Ow(e,t){y("IfStatement",e,t)}function Dw(e,t){y("LabeledStatement",e,t)}function kw(e,t){y("StringLiteral",e,t)}function Lw(e,t){y("NumericLiteral",e,t)}function Mw(e,t){y("NullLiteral",e,t)}function Bw(e,t){y("BooleanLiteral",e,t)}function Fw(e,t){y("RegExpLiteral",e,t)}function jw(e,t){y("LogicalExpression",e,t)}function Rw(e,t){y("MemberExpression",e,t)}function qw(e,t){y("NewExpression",e,t)}function Uw(e,t){y("Program",e,t)}function Kw(e,t){y("ObjectExpression",e,t)}function Vw(e,t){y("ObjectMethod",e,t)}function Jw(e,t){y("ObjectProperty",e,t)}function Yw(e,t){y("RestElement",e,t)}function Xw(e,t){y("ReturnStatement",e,t)}function Ww(e,t){y("SequenceExpression",e,t)}function $w(e,t){y("ParenthesizedExpression",e,t)}function Hw(e,t){y("SwitchCase",e,t)}function zw(e,t){y("SwitchStatement",e,t)}function Gw(e,t){y("ThisExpression",e,t)}function Qw(e,t){y("ThrowStatement",e,t)}function Zw(e,t){y("TryStatement",e,t)}function eN(e,t){y("UnaryExpression",e,t)}function tN(e,t){y("UpdateExpression",e,t)}function rN(e,t){y("VariableDeclaration",e,t)}function iN(e,t){y("VariableDeclarator",e,t)}function sN(e,t){y("WhileStatement",e,t)}function nN(e,t){y("WithStatement",e,t)}function aN(e,t){y("AssignmentPattern",e,t)}function oN(e,t){y("ArrayPattern",e,t)}function lN(e,t){y("ArrowFunctionExpression",e,t)}function uN(e,t){y("ClassBody",e,t)}function cN(e,t){y("ClassExpression",e,t)}function pN(e,t){y("ClassDeclaration",e,t)}function fN(e,t){y("ExportAllDeclaration",e,t)}function hN(e,t){y("ExportDefaultDeclaration",e,t)}function dN(e,t){y("ExportNamedDeclaration",e,t)}function mN(e,t){y("ExportSpecifier",e,t)}function yN(e,t){y("ForOfStatement",e,t)}function TN(e,t){y("ImportDeclaration",e,t)}function SN(e,t){y("ImportDefaultSpecifier",e,t)}function gN(e,t){y("ImportNamespaceSpecifier",e,t)}function xN(e,t){y("ImportSpecifier",e,t)}function bN(e,t){y("ImportExpression",e,t)}function EN(e,t){y("MetaProperty",e,t)}function PN(e,t){y("ClassMethod",e,t)}function AN(e,t){y("ObjectPattern",e,t)}function vN(e,t){y("SpreadElement",e,t)}function CN(e,t){y("Super",e,t)}function IN(e,t){y("TaggedTemplateExpression",e,t)}function wN(e,t){y("TemplateElement",e,t)}function NN(e,t){y("TemplateLiteral",e,t)}function _N(e,t){y("YieldExpression",e,t)}function ON(e,t){y("AwaitExpression",e,t)}function DN(e,t){y("Import",e,t)}function kN(e,t){y("BigIntLiteral",e,t)}function LN(e,t){y("ExportNamespaceSpecifier",e,t)}function MN(e,t){y("OptionalMemberExpression",e,t)}function BN(e,t){y("OptionalCallExpression",e,t)}function FN(e,t){y("ClassProperty",e,t)}function jN(e,t){y("ClassAccessorProperty",e,t)}function RN(e,t){y("ClassPrivateProperty",e,t)}function qN(e,t){y("ClassPrivateMethod",e,t)}function UN(e,t){y("PrivateName",e,t)}function KN(e,t){y("StaticBlock",e,t)}function VN(e,t){y("ImportAttribute",e,t)}function JN(e,t){y("AnyTypeAnnotation",e,t)}function YN(e,t){y("ArrayTypeAnnotation",e,t)}function XN(e,t){y("BooleanTypeAnnotation",e,t)}function WN(e,t){y("BooleanLiteralTypeAnnotation",e,t)}function $N(e,t){y("NullLiteralTypeAnnotation",e,t)}function HN(e,t){y("ClassImplements",e,t)}function zN(e,t){y("DeclareClass",e,t)}function GN(e,t){y("DeclareFunction",e,t)}function QN(e,t){y("DeclareInterface",e,t)}function ZN(e,t){y("DeclareModule",e,t)}function e_(e,t){y("DeclareModuleExports",e,t)}function t_(e,t){y("DeclareTypeAlias",e,t)}function r_(e,t){y("DeclareOpaqueType",e,t)}function i_(e,t){y("DeclareVariable",e,t)}function s_(e,t){y("DeclareExportDeclaration",e,t)}function n_(e,t){y("DeclareExportAllDeclaration",e,t)}function a_(e,t){y("DeclaredPredicate",e,t)}function o_(e,t){y("ExistsTypeAnnotation",e,t)}function l_(e,t){y("FunctionTypeAnnotation",e,t)}function u_(e,t){y("FunctionTypeParam",e,t)}function c_(e,t){y("GenericTypeAnnotation",e,t)}function p_(e,t){y("InferredPredicate",e,t)}function f_(e,t){y("InterfaceExtends",e,t)}function h_(e,t){y("InterfaceDeclaration",e,t)}function d_(e,t){y("InterfaceTypeAnnotation",e,t)}function m_(e,t){y("IntersectionTypeAnnotation",e,t)}function y_(e,t){y("MixedTypeAnnotation",e,t)}function T_(e,t){y("EmptyTypeAnnotation",e,t)}function S_(e,t){y("NullableTypeAnnotation",e,t)}function g_(e,t){y("NumberLiteralTypeAnnotation",e,t)}function x_(e,t){y("NumberTypeAnnotation",e,t)}function b_(e,t){y("ObjectTypeAnnotation",e,t)}function E_(e,t){y("ObjectTypeInternalSlot",e,t)}function P_(e,t){y("ObjectTypeCallProperty",e,t)}function A_(e,t){y("ObjectTypeIndexer",e,t)}function v_(e,t){y("ObjectTypeProperty",e,t)}function C_(e,t){y("ObjectTypeSpreadProperty",e,t)}function I_(e,t){y("OpaqueType",e,t)}function w_(e,t){y("QualifiedTypeIdentifier",e,t)}function N_(e,t){y("StringLiteralTypeAnnotation",e,t)}function __(e,t){y("StringTypeAnnotation",e,t)}function O_(e,t){y("SymbolTypeAnnotation",e,t)}function D_(e,t){y("ThisTypeAnnotation",e,t)}function k_(e,t){y("TupleTypeAnnotation",e,t)}function L_(e,t){y("TypeofTypeAnnotation",e,t)}function M_(e,t){y("TypeAlias",e,t)}function B_(e,t){y("TypeAnnotation",e,t)}function F_(e,t){y("TypeCastExpression",e,t)}function j_(e,t){y("TypeParameter",e,t)}function R_(e,t){y("TypeParameterDeclaration",e,t)}function q_(e,t){y("TypeParameterInstantiation",e,t)}function U_(e,t){y("UnionTypeAnnotation",e,t)}function K_(e,t){y("Variance",e,t)}function V_(e,t){y("VoidTypeAnnotation",e,t)}function J_(e,t){y("EnumDeclaration",e,t)}function Y_(e,t){y("EnumBooleanBody",e,t)}function X_(e,t){y("EnumNumberBody",e,t)}function W_(e,t){y("EnumStringBody",e,t)}function $_(e,t){y("EnumSymbolBody",e,t)}function H_(e,t){y("EnumBooleanMember",e,t)}function z_(e,t){y("EnumNumberMember",e,t)}function G_(e,t){y("EnumStringMember",e,t)}function Q_(e,t){y("EnumDefaultedMember",e,t)}function Z_(e,t){y("IndexedAccessType",e,t)}function eO(e,t){y("OptionalIndexedAccessType",e,t)}function tO(e,t){y("JSXAttribute",e,t)}function rO(e,t){y("JSXClosingElement",e,t)}function iO(e,t){y("JSXElement",e,t)}function sO(e,t){y("JSXEmptyExpression",e,t)}function nO(e,t){y("JSXExpressionContainer",e,t)}function aO(e,t){y("JSXSpreadChild",e,t)}function oO(e,t){y("JSXIdentifier",e,t)}function lO(e,t){y("JSXMemberExpression",e,t)}function uO(e,t){y("JSXNamespacedName",e,t)}function cO(e,t){y("JSXOpeningElement",e,t)}function pO(e,t){y("JSXSpreadAttribute",e,t)}function fO(e,t){y("JSXText",e,t)}function hO(e,t){y("JSXFragment",e,t)}function dO(e,t){y("JSXOpeningFragment",e,t)}function mO(e,t){y("JSXClosingFragment",e,t)}function yO(e,t){y("Noop",e,t)}function TO(e,t){y("Placeholder",e,t)}function SO(e,t){y("V8IntrinsicIdentifier",e,t)}function gO(e,t){y("ArgumentPlaceholder",e,t)}function xO(e,t){y("BindExpression",e,t)}function bO(e,t){y("Decorator",e,t)}function EO(e,t){y("DoExpression",e,t)}function PO(e,t){y("ExportDefaultSpecifier",e,t)}function AO(e,t){y("RecordExpression",e,t)}function vO(e,t){y("TupleExpression",e,t)}function CO(e,t){y("DecimalLiteral",e,t)}function IO(e,t){y("ModuleExpression",e,t)}function wO(e,t){y("TopicReference",e,t)}function NO(e,t){y("PipelineTopicExpression",e,t)}function _O(e,t){y("PipelineBareFunction",e,t)}function OO(e,t){y("PipelinePrimaryTopicReference",e,t)}function DO(e,t){y("VoidPattern",e,t)}function kO(e,t){y("TSParameterProperty",e,t)}function LO(e,t){y("TSDeclareFunction",e,t)}function MO(e,t){y("TSDeclareMethod",e,t)}function BO(e,t){y("TSQualifiedName",e,t)}function FO(e,t){y("TSCallSignatureDeclaration",e,t)}function jO(e,t){y("TSConstructSignatureDeclaration",e,t)}function RO(e,t){y("TSPropertySignature",e,t)}function qO(e,t){y("TSMethodSignature",e,t)}function UO(e,t){y("TSIndexSignature",e,t)}function KO(e,t){y("TSAnyKeyword",e,t)}function VO(e,t){y("TSBooleanKeyword",e,t)}function JO(e,t){y("TSBigIntKeyword",e,t)}function YO(e,t){y("TSIntrinsicKeyword",e,t)}function XO(e,t){y("TSNeverKeyword",e,t)}function WO(e,t){y("TSNullKeyword",e,t)}function $O(e,t){y("TSNumberKeyword",e,t)}function HO(e,t){y("TSObjectKeyword",e,t)}function zO(e,t){y("TSStringKeyword",e,t)}function GO(e,t){y("TSSymbolKeyword",e,t)}function QO(e,t){y("TSUndefinedKeyword",e,t)}function ZO(e,t){y("TSUnknownKeyword",e,t)}function eD(e,t){y("TSVoidKeyword",e,t)}function tD(e,t){y("TSThisType",e,t)}function rD(e,t){y("TSFunctionType",e,t)}function iD(e,t){y("TSConstructorType",e,t)}function sD(e,t){y("TSTypeReference",e,t)}function nD(e,t){y("TSTypePredicate",e,t)}function aD(e,t){y("TSTypeQuery",e,t)}function oD(e,t){y("TSTypeLiteral",e,t)}function lD(e,t){y("TSArrayType",e,t)}function uD(e,t){y("TSTupleType",e,t)}function cD(e,t){y("TSOptionalType",e,t)}function pD(e,t){y("TSRestType",e,t)}function fD(e,t){y("TSNamedTupleMember",e,t)}function hD(e,t){y("TSUnionType",e,t)}function dD(e,t){y("TSIntersectionType",e,t)}function mD(e,t){y("TSConditionalType",e,t)}function yD(e,t){y("TSInferType",e,t)}function TD(e,t){y("TSParenthesizedType",e,t)}function SD(e,t){y("TSTypeOperator",e,t)}function gD(e,t){y("TSIndexedAccessType",e,t)}function xD(e,t){y("TSMappedType",e,t)}function bD(e,t){y("TSTemplateLiteralType",e,t)}function ED(e,t){y("TSLiteralType",e,t)}function PD(e,t){y("TSExpressionWithTypeArguments",e,t)}function AD(e,t){y("TSInterfaceDeclaration",e,t)}function vD(e,t){y("TSInterfaceBody",e,t)}function CD(e,t){y("TSTypeAliasDeclaration",e,t)}function ID(e,t){y("TSInstantiationExpression",e,t)}function wD(e,t){y("TSAsExpression",e,t)}function ND(e,t){y("TSSatisfiesExpression",e,t)}function _D(e,t){y("TSTypeAssertion",e,t)}function OD(e,t){y("TSEnumBody",e,t)}function DD(e,t){y("TSEnumDeclaration",e,t)}function kD(e,t){y("TSEnumMember",e,t)}function LD(e,t){y("TSModuleDeclaration",e,t)}function MD(e,t){y("TSModuleBlock",e,t)}function BD(e,t){y("TSImportType",e,t)}function FD(e,t){y("TSImportEqualsDeclaration",e,t)}function jD(e,t){y("TSExternalModuleReference",e,t)}function RD(e,t){y("TSNonNullExpression",e,t)}function qD(e,t){y("TSExportAssignment",e,t)}function UD(e,t){y("TSNamespaceExportDeclaration",e,t)}function KD(e,t){y("TSTypeAnnotation",e,t)}function VD(e,t){y("TSTypeParameterInstantiation",e,t)}function JD(e,t){y("TSTypeParameterDeclaration",e,t)}function YD(e,t){y("TSTypeParameter",e,t)}function XD(e,t){y("Standardized",e,t)}function WD(e,t){y("Expression",e,t)}function $D(e,t){y("Binary",e,t)}function HD(e,t){y("Scopable",e,t)}function zD(e,t){y("BlockParent",e,t)}function GD(e,t){y("Block",e,t)}function QD(e,t){y("Statement",e,t)}function ZD(e,t){y("Terminatorless",e,t)}function ek(e,t){y("CompletionStatement",e,t)}function tk(e,t){y("Conditional",e,t)}function rk(e,t){y("Loop",e,t)}function ik(e,t){y("While",e,t)}function sk(e,t){y("ExpressionWrapper",e,t)}function nk(e,t){y("For",e,t)}function ak(e,t){y("ForXStatement",e,t)}function ok(e,t){y("Function",e,t)}function lk(e,t){y("FunctionParent",e,t)}function uk(e,t){y("Pureish",e,t)}function ck(e,t){y("Declaration",e,t)}function pk(e,t){y("FunctionParameter",e,t)}function fk(e,t){y("PatternLike",e,t)}function hk(e,t){y("LVal",e,t)}function dk(e,t){y("TSEntityName",e,t)}function mk(e,t){y("Literal",e,t)}function yk(e,t){y("Immutable",e,t)}function Tk(e,t){y("UserWhitespacable",e,t)}function Sk(e,t){y("Method",e,t)}function gk(e,t){y("ObjectMember",e,t)}function xk(e,t){y("Property",e,t)}function bk(e,t){y("UnaryLike",e,t)}function Ek(e,t){y("Pattern",e,t)}function Pk(e,t){y("Class",e,t)}function Ak(e,t){y("ImportOrExportDeclaration",e,t)}function vk(e,t){y("ExportDeclaration",e,t)}function Ck(e,t){y("ModuleSpecifier",e,t)}function Ik(e,t){y("Accessor",e,t)}function wk(e,t){y("Private",e,t)}function Nk(e,t){y("Flow",e,t)}function _k(e,t){y("FlowType",e,t)}function Ok(e,t){y("FlowBaseAnnotation",e,t)}function Dk(e,t){y("FlowDeclaration",e,t)}function kk(e,t){y("FlowPredicate",e,t)}function Lk(e,t){y("EnumBody",e,t)}function Mk(e,t){y("EnumMember",e,t)}function Bk(e,t){y("JSX",e,t)}function Fk(e,t){y("Miscellaneous",e,t)}function jk(e,t){y("TypeScript",e,t)}function Rk(e,t){y("TSTypeElement",e,t)}function qk(e,t){y("TSType",e,t)}function Uk(e,t){y("TSBaseType",e,t)}function Kk(e,t){(0,ls.default)("assertNumberLiteral","assertNumericLiteral"),y("NumberLiteral",e,t)}function Vk(e,t){(0,ls.default)("assertRegexLiteral","assertRegExpLiteral"),y("RegexLiteral",e,t)}function Jk(e,t){(0,ls.default)("assertRestProperty","assertRestElement"),y("RestProperty",e,t)}function Yk(e,t){(0,ls.default)("assertSpreadProperty","assertSpreadElement"),y("SpreadProperty",e,t)}function Xk(e,t){(0,ls.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),y("ModuleDeclaration",e,t)}});var Cf=w(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=void 0;var Xt=Ct(),LG=nn.default=Wk;function Wk(e){switch(e){case"string":return(0,Xt.stringTypeAnnotation)();case"number":return(0,Xt.numberTypeAnnotation)();case"undefined":return(0,Xt.voidTypeAnnotation)();case"boolean":return(0,Xt.booleanTypeAnnotation)();case"function":return(0,Xt.genericTypeAnnotation)((0,Xt.identifier)("Function"));case"object":return(0,Xt.genericTypeAnnotation)((0,Xt.identifier)("Object"));case"symbol":return(0,Xt.genericTypeAnnotation)((0,Xt.identifier)("Symbol"));case"bigint":return(0,Xt.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var bo=w(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.default=wf;var us=ze();function If(e){return(0,us.isIdentifier)(e)?e.name:`${e.id.name}.${If(e.qualification)}`}function wf(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!n.includes(o)){if((0,us.isAnyTypeAnnotation)(o))return[o];if((0,us.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,us.isUnionTypeAnnotation)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}if((0,us.isGenericTypeAnnotation)(o)){let l=If(o.id);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=wf(u.typeParameters.params)):u=o.typeParameters}else r.set(l,o);continue}n.push(o)}}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var Nf=w(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=zk;var $k=Ct(),Hk=bo();function zk(e){let t=(0,Hk.default)(e);return t.length===1?t[0]:(0,$k.unionTypeAnnotation)(t)}});var Df=w(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.default=Of;var Ai=ze();function _f(e){return(0,Ai.isIdentifier)(e)?e.name:(0,Ai.isThisExpression)(e)?"this":`${e.right.name}.${_f(e.left)}`}function Of(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o||n.includes(o))continue;if((0,Ai.isTSAnyKeyword)(o))return[o];if((0,Ai.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,Ai.isTSUnionType)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}let l="typeParameters";if((0,Ai.isTSTypeReference)(o)&&o[l]){let u=o[l],f=_f(o.typeName);if(r.has(f)){let g=r.get(f),E=g[l];E?(E.params.push(...u.params),E.params=Of(E.params)):g=u}else r.set(f,o);continue}n.push(o)}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var kf=w(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.default=eL;var Gk=Ct(),Qk=Df(),Zk=ze();function eL(e){let t=e.map(i=>(0,Zk.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,Qk.default)(t);return r.length===1?r[0]:(0,Gk.tsUnionType)(r)}});var Co=w(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.buildUndefinedNode=tL;var Lf=Ct();function tL(){return(0,Lf.unaryExpression)("void",(0,Lf.numericLiteral)(0),!0)}});var wr=w(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.default=rL;var Mf=Bt(),Bf=ze(),{hasOwn:ir}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Ff(e,t,r,i){return e&&typeof e.type=="string"?jf(e,t,r,i):e}function Io(e,t,r,i){return Array.isArray(e)?e.map(s=>Ff(s,t,r,i)):Ff(e,t,r,i)}function rL(e,t=!0,r=!1){return jf(e,t,r,new Map)}function jf(e,t=!0,r=!1,i){if(!e)return e;let{type:s}=e,n={type:e.type};if((0,Bf.isIdentifier)(e))n.name=e.name,ir(e,"optional")&&typeof e.optional=="boolean"&&(n.optional=e.optional),ir(e,"typeAnnotation")&&(n.typeAnnotation=t?Io(e.typeAnnotation,!0,r,i):e.typeAnnotation),ir(e,"decorators")&&(n.decorators=t?Io(e.decorators,!0,r,i):e.decorators);else if(ir(Mf.NODE_FIELDS,s))for(let a of Object.keys(Mf.NODE_FIELDS[s]))ir(e,a)&&(t?n[a]=(0,Bf.isFile)(e)&&a==="comments"?an(e.comments,t,r,i):Io(e[a],!0,r,i):n[a]=e[a]);else throw new Error(`Unknown node type: "${s}"`);return ir(e,"loc")&&(r?n.loc=null:n.loc=e.loc),ir(e,"leadingComments")&&(n.leadingComments=an(e.leadingComments,t,r,i)),ir(e,"innerComments")&&(n.innerComments=an(e.innerComments,t,r,i)),ir(e,"trailingComments")&&(n.trailingComments=an(e.trailingComments,t,r,i)),ir(e,"extra")&&(n.extra=Object.assign({},e.extra)),n}function an(e,t,r,i){return!e||!t?e:e.map(s=>{let n=i.get(s);if(n)return n;let{type:a,value:o,loc:l}=s,u={type:a,value:o,loc:l};return r&&(u.loc=null),i.set(s,u),u})}});var Rf=w(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.default=sL;var iL=wr();function sL(e){return(0,iL.default)(e,!1)}});var qf=w(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.default=aL;var nL=wr();function aL(e){return(0,nL.default)(e)}});var Uf=w(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=lL;var oL=wr();function lL(e){return(0,oL.default)(e,!0,!0)}});var Kf=w(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.default=cL;var uL=wr();function cL(e){return(0,uL.default)(e,!1,!0)}});var Lo=w(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.default=pL;function pL(e,t,r){if(!r||!e)return e;let i=`${t}Comments`;return e[i]?t==="leading"?e[i]=r.concat(e[i]):e[i].push(...r):e[i]=r,e}});var Vf=w(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=hL;var fL=Lo();function hL(e,t,r,i){return(0,fL.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var on=w(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=dL;function dL(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var jo=w(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.default=yL;var mL=on();function yL(e,t){(0,mL.default)("innerComments",e,t)}});var qo=w(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=SL;var TL=on();function SL(e,t){(0,TL.default)("leadingComments",e,t)}});var Ko=w(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.default=xL;var gL=on();function xL(e,t){(0,gL.default)("trailingComments",e,t)}});var Jo=w(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=AL;var bL=Ko(),EL=qo(),PL=jo();function AL(e,t){return(0,bL.default)(e,t),(0,EL.default)(e,t),(0,PL.default)(e,t),e}});var Jf=w(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.default=CL;var vL=gi();function CL(e){return vL.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var Yf=w(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.WHILE_TYPES=j.USERWHITESPACABLE_TYPES=j.UNARYLIKE_TYPES=j.TYPESCRIPT_TYPES=j.TSTYPE_TYPES=j.TSTYPEELEMENT_TYPES=j.TSENTITYNAME_TYPES=j.TSBASETYPE_TYPES=j.TERMINATORLESS_TYPES=j.STATEMENT_TYPES=j.STANDARDIZED_TYPES=j.SCOPABLE_TYPES=j.PUREISH_TYPES=j.PROPERTY_TYPES=j.PRIVATE_TYPES=j.PATTERN_TYPES=j.PATTERNLIKE_TYPES=j.OBJECTMEMBER_TYPES=j.MODULESPECIFIER_TYPES=j.MODULEDECLARATION_TYPES=j.MISCELLANEOUS_TYPES=j.METHOD_TYPES=j.LVAL_TYPES=j.LOOP_TYPES=j.LITERAL_TYPES=j.JSX_TYPES=j.IMPORTOREXPORTDECLARATION_TYPES=j.IMMUTABLE_TYPES=j.FUNCTION_TYPES=j.FUNCTIONPARENT_TYPES=j.FUNCTIONPARAMETER_TYPES=j.FOR_TYPES=j.FORXSTATEMENT_TYPES=j.FLOW_TYPES=j.FLOWTYPE_TYPES=j.FLOWPREDICATE_TYPES=j.FLOWDECLARATION_TYPES=j.FLOWBASEANNOTATION_TYPES=j.EXPRESSION_TYPES=j.EXPRESSIONWRAPPER_TYPES=j.EXPORTDECLARATION_TYPES=j.ENUMMEMBER_TYPES=j.ENUMBODY_TYPES=j.DECLARATION_TYPES=j.CONDITIONAL_TYPES=j.COMPLETIONSTATEMENT_TYPES=j.CLASS_TYPES=j.BLOCK_TYPES=j.BLOCKPARENT_TYPES=j.BINARY_TYPES=j.ACCESSOR_TYPES=void 0;var ue=Bt(),eQ=j.STANDARDIZED_TYPES=ue.FLIPPED_ALIAS_KEYS.Standardized,tQ=j.EXPRESSION_TYPES=ue.FLIPPED_ALIAS_KEYS.Expression,rQ=j.BINARY_TYPES=ue.FLIPPED_ALIAS_KEYS.Binary,iQ=j.SCOPABLE_TYPES=ue.FLIPPED_ALIAS_KEYS.Scopable,sQ=j.BLOCKPARENT_TYPES=ue.FLIPPED_ALIAS_KEYS.BlockParent,nQ=j.BLOCK_TYPES=ue.FLIPPED_ALIAS_KEYS.Block,aQ=j.STATEMENT_TYPES=ue.FLIPPED_ALIAS_KEYS.Statement,oQ=j.TERMINATORLESS_TYPES=ue.FLIPPED_ALIAS_KEYS.Terminatorless,lQ=j.COMPLETIONSTATEMENT_TYPES=ue.FLIPPED_ALIAS_KEYS.CompletionStatement,uQ=j.CONDITIONAL_TYPES=ue.FLIPPED_ALIAS_KEYS.Conditional,cQ=j.LOOP_TYPES=ue.FLIPPED_ALIAS_KEYS.Loop,pQ=j.WHILE_TYPES=ue.FLIPPED_ALIAS_KEYS.While,fQ=j.EXPRESSIONWRAPPER_TYPES=ue.FLIPPED_ALIAS_KEYS.ExpressionWrapper,hQ=j.FOR_TYPES=ue.FLIPPED_ALIAS_KEYS.For,dQ=j.FORXSTATEMENT_TYPES=ue.FLIPPED_ALIAS_KEYS.ForXStatement,mQ=j.FUNCTION_TYPES=ue.FLIPPED_ALIAS_KEYS.Function,yQ=j.FUNCTIONPARENT_TYPES=ue.FLIPPED_ALIAS_KEYS.FunctionParent,TQ=j.PUREISH_TYPES=ue.FLIPPED_ALIAS_KEYS.Pureish,SQ=j.DECLARATION_TYPES=ue.FLIPPED_ALIAS_KEYS.Declaration,gQ=j.FUNCTIONPARAMETER_TYPES=ue.FLIPPED_ALIAS_KEYS.FunctionParameter,xQ=j.PATTERNLIKE_TYPES=ue.FLIPPED_ALIAS_KEYS.PatternLike,bQ=j.LVAL_TYPES=ue.FLIPPED_ALIAS_KEYS.LVal,EQ=j.TSENTITYNAME_TYPES=ue.FLIPPED_ALIAS_KEYS.TSEntityName,PQ=j.LITERAL_TYPES=ue.FLIPPED_ALIAS_KEYS.Literal,AQ=j.IMMUTABLE_TYPES=ue.FLIPPED_ALIAS_KEYS.Immutable,vQ=j.USERWHITESPACABLE_TYPES=ue.FLIPPED_ALIAS_KEYS.UserWhitespacable,CQ=j.METHOD_TYPES=ue.FLIPPED_ALIAS_KEYS.Method,IQ=j.OBJECTMEMBER_TYPES=ue.FLIPPED_ALIAS_KEYS.ObjectMember,wQ=j.PROPERTY_TYPES=ue.FLIPPED_ALIAS_KEYS.Property,NQ=j.UNARYLIKE_TYPES=ue.FLIPPED_ALIAS_KEYS.UnaryLike,_Q=j.PATTERN_TYPES=ue.FLIPPED_ALIAS_KEYS.Pattern,OQ=j.CLASS_TYPES=ue.FLIPPED_ALIAS_KEYS.Class,IL=j.IMPORTOREXPORTDECLARATION_TYPES=ue.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,DQ=j.EXPORTDECLARATION_TYPES=ue.FLIPPED_ALIAS_KEYS.ExportDeclaration,kQ=j.MODULESPECIFIER_TYPES=ue.FLIPPED_ALIAS_KEYS.ModuleSpecifier,LQ=j.ACCESSOR_TYPES=ue.FLIPPED_ALIAS_KEYS.Accessor,MQ=j.PRIVATE_TYPES=ue.FLIPPED_ALIAS_KEYS.Private,BQ=j.FLOW_TYPES=ue.FLIPPED_ALIAS_KEYS.Flow,FQ=j.FLOWTYPE_TYPES=ue.FLIPPED_ALIAS_KEYS.FlowType,jQ=j.FLOWBASEANNOTATION_TYPES=ue.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,RQ=j.FLOWDECLARATION_TYPES=ue.FLIPPED_ALIAS_KEYS.FlowDeclaration,qQ=j.FLOWPREDICATE_TYPES=ue.FLIPPED_ALIAS_KEYS.FlowPredicate,UQ=j.ENUMBODY_TYPES=ue.FLIPPED_ALIAS_KEYS.EnumBody,KQ=j.ENUMMEMBER_TYPES=ue.FLIPPED_ALIAS_KEYS.EnumMember,VQ=j.JSX_TYPES=ue.FLIPPED_ALIAS_KEYS.JSX,JQ=j.MISCELLANEOUS_TYPES=ue.FLIPPED_ALIAS_KEYS.Miscellaneous,YQ=j.TYPESCRIPT_TYPES=ue.FLIPPED_ALIAS_KEYS.TypeScript,XQ=j.TSTYPEELEMENT_TYPES=ue.FLIPPED_ALIAS_KEYS.TSTypeElement,WQ=j.TSTYPE_TYPES=ue.FLIPPED_ALIAS_KEYS.TSType,$Q=j.TSBASETYPE_TYPES=ue.FLIPPED_ALIAS_KEYS.TSBaseType,HQ=j.MODULEDECLARATION_TYPES=IL});var $o=w(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=wL;var ln=ze(),Xo=Ct();function wL(e,t){if((0,ln.isBlockStatement)(e))return e;let r=[];return(0,ln.isEmptyStatement)(e)?r=[]:((0,ln.isStatement)(e)||((0,ln.isFunction)(t)?e=(0,Xo.returnStatement)(e):e=(0,Xo.expressionStatement)(e)),r=[e]),(0,Xo.blockStatement)(r)}});var Xf=w(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=_L;var NL=$o();function _L(e,t="body"){let r=(0,NL.default)(e[t],e);return e[t]=r,r}});var Go=w(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.default=kL;var OL=Si(),DL=ts();function kL(e){e=e+"";let t="";for(let r of e)t+=(0,DL.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,OL.default)(t)||(t=`_${t}`),t||"_"}});var Wf=w(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=ML;var LL=Go();function ML(e){return e=(0,LL.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var $f=w(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=jL;var BL=ze(),FL=Ct();function jL(e,t=e.key||e.property){return!e.computed&&(0,BL.isIdentifier)(t)&&(t=(0,FL.stringLiteral)(t.name)),t}});var Hf=w(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.default=void 0;var cs=ze(),rZ=un.default=RL;function RL(e){if((0,cs.isExpressionStatement)(e)&&(e=e.expression),(0,cs.isExpression)(e))return e;if((0,cs.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,cs.isFunction)(e)&&(e.type="FunctionExpression"),!(0,cs.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var tl=w(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.default=ps;var qL=Bt(),zf=Symbol(),Gf=Symbol();function ps(e,t,r){if(!e)return!1;let i=qL.VISITOR_KEYS[e.type];if(!i)return!1;r=r||{};let s=t(e,r);if(s!==void 0)switch(s){case zf:return!1;case Gf:return!0}for(let n of i){let a=e[n];if(a){if(Array.isArray(a)){for(let o of a)if(ps(o,t,r))return!0}else if(ps(a,t,r))return!0}}return!1}ps.skip=zf;ps.stop=Gf});var il=w(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.default=VL;var UL=gi(),Qf=["tokens","start","end","loc","raw","rawValue"],KL=[...UL.COMMENT_KEYS,"comments",...Qf];function VL(e,t={}){let r=t.preserveComments?Qf:KL;for(let s of r)e[s]!=null&&(e[s]=void 0);for(let s of Object.keys(e))s.startsWith("_")&&e[s]!=null&&(e[s]=void 0);let i=Object.getOwnPropertySymbols(e);for(let s of i)e[s]=null}});var nl=w(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.default=XL;var JL=tl(),YL=il();function XL(e,t){return(0,JL.default)(e,YL.default,t),e}});var eh=w(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.default=$r;var Zf=ze(),WL=wr(),$L=nl();function $r(e,t=e.key){let r;return e.kind==="method"?$r.increment()+"":((0,Zf.isIdentifier)(t)?r=t.name:(0,Zf.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,$L.default)((0,WL.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}$r.uid=0;$r.increment=function(){return $r.uid>=Number.MAX_SAFE_INTEGER?$r.uid=0:$r.uid++}});var th=w(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=void 0;var cn=ze(),HL=Ct(),lZ=pn.default=zL;function zL(e,t){if((0,cn.isStatement)(e))return e;let r=!1,i;if((0,cn.isClass)(e))r=!0,i="ClassDeclaration";else if((0,cn.isFunction)(e))r=!0,i="FunctionDeclaration";else if((0,cn.isAssignmentExpression)(e))return(0,HL.expressionStatement)(e);if(r&&!e.id&&(i=!1),!i){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e}});var rh=w(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.default=void 0;var GL=Si(),it=Ct(),cZ=fn.default=ol,QL=Function.call.bind(Object.prototype.toString);function ZL(e){return QL(e)==="[object RegExp]"}function e2(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function ol(e){if(e===void 0)return(0,it.identifier)("undefined");if(e===!0||e===!1)return(0,it.booleanLiteral)(e);if(e===null)return(0,it.nullLiteral)();if(typeof e=="string")return(0,it.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,it.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,it.numericLiteral)(0):r=(0,it.numericLiteral)(1),t=(0,it.binaryExpression)("/",r,(0,it.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,it.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0,it.unaryExpression)("-",(0,it.bigIntLiteral)(-e)):(0,it.bigIntLiteral)(e);if(ZL(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,it.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,it.arrayExpression)(e.map(ol));if(e2(e)){let t=[];for(let r of Object.keys(e)){let i,s=!1;(0,GL.default)(r)?r==="__proto__"?(s=!0,i=(0,it.stringLiteral)(r)):i=(0,it.identifier)(r):i=(0,it.stringLiteral)(r),t.push((0,it.objectProperty)(i,ol(e[r]),s))}return(0,it.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var ih=w(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.default=r2;var t2=Ct();function r2(e,t,r=!1){return e.object=(0,t2.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var nh=w(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.default=s2;var sh=gi(),i2=Jo();function s2(e,t){if(!e||!t)return e;for(let r of sh.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r.startsWith("_")&&r!=="__clone"&&(e[r]=t[r]);for(let r of sh.INHERIT_KEYS.force)e[r]=t[r];return(0,i2.default)(e,t),e}});var ah=w(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.default=o2;var n2=Ct(),a2=he();function o2(e,t){if((0,a2.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,n2.memberExpression)(t,e.object),e}});var oh=w(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=l2;function l2(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let i=t.pop();if(i)switch(i.type){case"ArrayPattern":t.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(i.left);break;case"ObjectPattern":t.push(...i.properties);break;case"ObjectProperty":t.push(i.value);break;case"RestElement":case"UpdateExpression":t.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&t.push(i.argument);break;case"Identifier":r[i.name]=i;break;default:break}}return r}});var fs=w(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.default=fl;var Tr=ze();function fl(e,t,r,i){let s=[].concat(e),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||i&&((0,Tr.isAssignmentExpression)(a)||(0,Tr.isUnaryExpression)(a)||(0,Tr.isUpdateExpression)(a)))continue;if((0,Tr.isIdentifier)(a)){t?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,Tr.isExportDeclaration)(a)&&!(0,Tr.isExportAllDeclaration)(a)){(0,Tr.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0,Tr.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,Tr.isFunctionExpression)(a))continue}let o=fl.keys[a.type];if(o)for(let l=0;l<o.length;l++){let u=o[l],f=a[u];f&&(Array.isArray(f)?s.push(...f):s.push(f))}}return n}var u2={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};fl.keys=u2});var lh=w(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.default=void 0;var c2=fs(),TZ=hn.default=p2;function p2(e,t){return(0,c2.default)(e,t,!0)}});var ch=w(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.default=h2;var Ft=ze();function f2(e){return(0,Ft.isNullLiteral)(e)?"null":(0,Ft.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,Ft.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function uh(e){if(!e.computed||(0,Ft.isLiteral)(e.key))return e.key}function h2(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",i;if((0,Ft.isObjectProperty)(t,{value:e})?i=uh(t):(0,Ft.isObjectMethod)(e)||(0,Ft.isClassMethod)(e)?(i=uh(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,Ft.isVariableDeclarator)(t,{init:e})?i=t.id:(0,Ft.isAssignmentExpression)(t,{operator:"=",right:e})&&(i=t.left),!i)return null;let s=(0,Ft.isLiteral)(i)?f2(i):(0,Ft.isIdentifier)(i)?i.name:(0,Ft.isPrivateName)(i)?i.id.name:null;return s==null?null:{name:r+s,originalNode:i}}});var ph=w(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.default=m2;var d2=Bt();function m2(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:i,exit:s}=t;ml(e,i,s,r,[])}function ml(e,t,r,i,s){let n=d2.VISITOR_KEYS[e.type];if(n){t&&t(e,s,i);for(let a of n){let o=e[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let u=o[l];u&&(s.push({node:e,key:a,index:l}),ml(u,t,r,i,s),s.pop())}else o&&(s.push({node:e,key:a}),ml(o,t,r,i,s),s.pop())}r&&r(e,s,i)}}});var fh=w(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=T2;var y2=fs();function T2(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=y2.default.keys[t.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],a=t[n];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}});var gl=w(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=x2;var S2=ze(),g2=Symbol.for("var used to be block scoped");function x2(e){return(0,S2.isVariableDeclaration)(e)&&(e.kind!=="var"||e[g2])}});var dh=w(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.default=E2;var hh=ze(),b2=gl();function E2(e){return(0,hh.isFunctionDeclaration)(e)||(0,hh.isClassDeclaration)(e)||(0,b2.default)(e)}});var mh=w(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.default=v2;var P2=Ws(),A2=ze();function v2(e){return(0,P2.default)(e.type,"Immutable")?!0:(0,A2.isIdentifier)(e)?e.name==="undefined":!1}});var Th=w(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.default=El;var yh=Bt();function El(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(yh.NODE_FIELDS[e.type]||e.type),i=yh.VISITOR_KEYS[e.type];for(let s of r){let n=e[s],a=t[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!El(n[o],a[o]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!El(n,a))return!1}}return!0}});var Sh=w(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=C2;function C2(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:r?.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var gh=w(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.default=I2;var Hr=ze();function I2(e,t){return(0,Hr.isBlockStatement)(e)&&((0,Hr.isFunction)(t)||(0,Hr.isCatchClause)(t))?!1:(0,Hr.isPattern)(e)&&((0,Hr.isFunction)(t)||(0,Hr.isCatchClause)(t))?!0:(0,Hr.isScopable)(e)}});var bh=w(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=w2;var xh=ze();function w2(e){return(0,xh.isImportDefaultSpecifier)(e)||(0,xh.isIdentifier)(e.imported||e.exported,{name:"default"})}});var Eh=w(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.default=O2;var N2=Si(),_2=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function O2(e){return(0,N2.default)(e)&&!_2.has(e)}});var Ph=w(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.default=L2;var D2=ze(),k2=Symbol.for("var used to be block scoped");function L2(e){return(0,D2.isVariableDeclaration)(e,{kind:"var"})&&!e[k2]}});var Ah=w(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=dn;var M2=fs(),zr=ze(),Nl=Ct(),_l=Co(),B2=wr();function dn(e,t){let r=[],i=!0;for(let s of e)if((0,zr.isEmptyStatement)(s)||(i=!1),(0,zr.isExpression)(s))r.push(s);else if((0,zr.isExpressionStatement)(s))r.push(s.expression);else if((0,zr.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,M2.default)(n);for(let o of Object.keys(a))t.push({kind:s.kind,id:(0,B2.default)(a[o])});n.init&&r.push((0,Nl.assignmentExpression)("=",n.id,n.init))}i=!0}else if((0,zr.isIfStatement)(s)){let n=s.consequent?dn([s.consequent],t):(0,_l.buildUndefinedNode)(),a=s.alternate?dn([s.alternate],t):(0,_l.buildUndefinedNode)();if(!n||!a)return;r.push((0,Nl.conditionalExpression)(s.test,n,a))}else if((0,zr.isBlockStatement)(s)){let n=dn(s.body,t);if(!n)return;r.push(n)}else if((0,zr.isEmptyStatement)(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push((0,_l.buildUndefinedNode)()),r.length===1?r[0]:(0,Nl.sequenceExpression)(r)}});var vh=w(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=j2;var F2=Ah();function j2(e,t){if(!(e!=null&&e.length))return;let r=[],i=(0,F2.default)(e,r);if(i){for(let s of r)t.push(s);return i}}});var he=w(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});var Nr={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(V,"__internal__deprecationWarning",{enumerable:!0,get:function(){return KM.default}});Object.defineProperty(V,"addComment",{enumerable:!0,get:function(){return z2.default}});Object.defineProperty(V,"addComments",{enumerable:!0,get:function(){return G2.default}});Object.defineProperty(V,"appendToMemberExpression",{enumerable:!0,get:function(){return fM.default}});Object.defineProperty(V,"assertNode",{enumerable:!0,get:function(){return K2.default}});Object.defineProperty(V,"buildMatchMemberExpression",{enumerable:!0,get:function(){return UM.default}});Object.defineProperty(V,"clone",{enumerable:!0,get:function(){return X2.default}});Object.defineProperty(V,"cloneDeep",{enumerable:!0,get:function(){return W2.default}});Object.defineProperty(V,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return $2.default}});Object.defineProperty(V,"cloneNode",{enumerable:!0,get:function(){return Y2.default}});Object.defineProperty(V,"cloneWithoutLoc",{enumerable:!0,get:function(){return H2.default}});Object.defineProperty(V,"createFlowUnionType",{enumerable:!0,get:function(){return Ch.default}});Object.defineProperty(V,"createTSUnionType",{enumerable:!0,get:function(){return J2.default}});Object.defineProperty(V,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return V2.default}});Object.defineProperty(V,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return Ch.default}});Object.defineProperty(V,"ensureBlock",{enumerable:!0,get:function(){return iM.default}});Object.defineProperty(V,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return SM.default}});Object.defineProperty(V,"getBindingIdentifiers",{enumerable:!0,get:function(){return gM.default}});Object.defineProperty(V,"getFunctionName",{enumerable:!0,get:function(){return bM.default}});Object.defineProperty(V,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return xM.default}});Object.defineProperty(V,"inheritInnerComments",{enumerable:!0,get:function(){return Q2.default}});Object.defineProperty(V,"inheritLeadingComments",{enumerable:!0,get:function(){return Z2.default}});Object.defineProperty(V,"inheritTrailingComments",{enumerable:!0,get:function(){return tM.default}});Object.defineProperty(V,"inherits",{enumerable:!0,get:function(){return hM.default}});Object.defineProperty(V,"inheritsComments",{enumerable:!0,get:function(){return eM.default}});Object.defineProperty(V,"is",{enumerable:!0,get:function(){return AM.default}});Object.defineProperty(V,"isBinding",{enumerable:!0,get:function(){return vM.default}});Object.defineProperty(V,"isBlockScoped",{enumerable:!0,get:function(){return CM.default}});Object.defineProperty(V,"isImmutable",{enumerable:!0,get:function(){return IM.default}});Object.defineProperty(V,"isLet",{enumerable:!0,get:function(){return wM.default}});Object.defineProperty(V,"isNode",{enumerable:!0,get:function(){return NM.default}});Object.defineProperty(V,"isNodesEquivalent",{enumerable:!0,get:function(){return _M.default}});Object.defineProperty(V,"isPlaceholderType",{enumerable:!0,get:function(){return OM.default}});Object.defineProperty(V,"isReferenced",{enumerable:!0,get:function(){return DM.default}});Object.defineProperty(V,"isScope",{enumerable:!0,get:function(){return kM.default}});Object.defineProperty(V,"isSpecifierDefault",{enumerable:!0,get:function(){return LM.default}});Object.defineProperty(V,"isType",{enumerable:!0,get:function(){return MM.default}});Object.defineProperty(V,"isValidES3Identifier",{enumerable:!0,get:function(){return BM.default}});Object.defineProperty(V,"isValidIdentifier",{enumerable:!0,get:function(){return FM.default}});Object.defineProperty(V,"isVar",{enumerable:!0,get:function(){return jM.default}});Object.defineProperty(V,"matchesPattern",{enumerable:!0,get:function(){return RM.default}});Object.defineProperty(V,"prependToMemberExpression",{enumerable:!0,get:function(){return dM.default}});V.react=void 0;Object.defineProperty(V,"removeComments",{enumerable:!0,get:function(){return rM.default}});Object.defineProperty(V,"removeProperties",{enumerable:!0,get:function(){return mM.default}});Object.defineProperty(V,"removePropertiesDeep",{enumerable:!0,get:function(){return yM.default}});Object.defineProperty(V,"removeTypeDuplicates",{enumerable:!0,get:function(){return TM.default}});Object.defineProperty(V,"shallowEqual",{enumerable:!0,get:function(){return PM.default}});Object.defineProperty(V,"toBindingIdentifierName",{enumerable:!0,get:function(){return sM.default}});Object.defineProperty(V,"toBlock",{enumerable:!0,get:function(){return nM.default}});Object.defineProperty(V,"toComputedKey",{enumerable:!0,get:function(){return aM.default}});Object.defineProperty(V,"toExpression",{enumerable:!0,get:function(){return oM.default}});Object.defineProperty(V,"toIdentifier",{enumerable:!0,get:function(){return lM.default}});Object.defineProperty(V,"toKeyAlias",{enumerable:!0,get:function(){return uM.default}});Object.defineProperty(V,"toStatement",{enumerable:!0,get:function(){return cM.default}});Object.defineProperty(V,"traverse",{enumerable:!0,get:function(){return mn.default}});Object.defineProperty(V,"traverseFast",{enumerable:!0,get:function(){return EM.default}});Object.defineProperty(V,"validate",{enumerable:!0,get:function(){return qM.default}});Object.defineProperty(V,"valueToNode",{enumerable:!0,get:function(){return pM.default}});var R2=_p(),q2=Op(),U2=Pf(),K2=Af(),kl=vf();Object.keys(kl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Nr,e)||e in V&&V[e]===kl[e]||Object.defineProperty(V,e,{enumerable:!0,get:function(){return kl[e]}})});var V2=Cf(),Ch=Nf(),J2=kf(),Ll=Co();Object.keys(Ll).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Nr,e)||e in V&&V[e]===Ll[e]||Object.defineProperty(V,e,{enumerable:!0,get:function(){return Ll[e]}})});var Ml=Ct();Object.keys(Ml).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Nr,e)||e in V&&V[e]===Ml[e]||Object.defineProperty(V,e,{enumerable:!0,get:function(){return Ml[e]}})});var Y2=wr(),X2=Rf(),W2=qf(),$2=Uf(),H2=Kf(),z2=Vf(),G2=Lo(),Q2=jo(),Z2=qo(),eM=Jo(),tM=Ko(),rM=Jf(),Bl=Yf();Object.keys(Bl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Nr,e)||e in V&&V[e]===Bl[e]||Object.defineProperty(V,e,{enumerable:!0,get:function(){return Bl[e]}})});var Fl=gi();Object.keys(Fl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Nr,e)||e in V&&V[e]===Fl[e]||Object.defineProperty(V,e,{enumerable:!0,get:function(){return Fl[e]}})});var iM=Xf(),sM=Wf(),nM=$o(),aM=$f(),oM=Hf(),lM=Go(),uM=eh(),cM=th(),pM=rh(),jl=Bt();Object.keys(jl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Nr,e)||e in V&&V[e]===jl[e]||Object.defineProperty(V,e,{enumerable:!0,get:function(){return jl[e]}})});var fM=ih(),hM=nh(),dM=ah(),mM=il(),yM=nl(),TM=bo(),SM=oh(),gM=fs(),xM=lh(),bM=ch(),mn=ph();Object.keys(mn).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Nr,e)||e in V&&V[e]===mn[e]||Object.defineProperty(V,e,{enumerable:!0,get:function(){return mn[e]}})});var EM=tl(),PM=Ys(),AM=Ti(),vM=fh(),CM=dh(),IM=mh(),wM=gl(),NM=So(),_M=Th(),OM=Ka(),DM=Sh(),kM=gh(),LM=bh(),MM=Ws(),BM=Eh(),FM=Si(),jM=Ph(),RM=Ba(),qM=Gs(),UM=ja(),Rl=ze();Object.keys(Rl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Nr,e)||e in V&&V[e]===Rl[e]||Object.defineProperty(V,e,{enumerable:!0,get:function(){return Rl[e]}})});var KM=yi(),VM=vh(),kZ=V.react={isReactComponent:R2.default,isCompatTag:q2.default,buildChildren:U2.default};V.toSequenceExpression=VM.default;process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var kh=w(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.AssignmentExpression=mB;Ae.BinaryExpression=lB;Ae.ClassExpression=fB;Ae.ArrowFunctionExpression=Ae.ConditionalExpression=Dh;Ae.DoExpression=ZM;Ae.FunctionExpression=hB;Ae.FunctionTypeAnnotation=zM;Ae.Identifier=yB;Ae.LogicalExpression=uB;Ae.NullableTypeAnnotation=HM;Ae.ObjectExpression=QM;Ae.OptionalIndexedAccessType=tB;Ae.OptionalCallExpression=Ae.OptionalMemberExpression=dB;Ae.SequenceExpression=cB;Ae.TSSatisfiesExpression=Ae.TSAsExpression=rB;Ae.TSConditionalType=iB;Ae.TSConstructorType=Ae.TSFunctionType=oB;Ae.TSInferType=nB;Ae.TSInstantiationExpression=aB;Ae.TSIntersectionType=sB;Ae.SpreadElement=Ae.UnaryExpression=Ae.TSTypeAssertion=Oh;Ae.TSTypeOperator=Ul;Ae.TSUnionType=_h;Ae.IntersectionTypeAnnotation=Ae.UnionTypeAnnotation=eB;Ae.UpdateExpression=GM;Ae.AwaitExpression=Ae.YieldExpression=pB;var JM=he(),ut=_r(),{isMemberExpression:YM,isOptionalMemberExpression:XM,isYieldExpression:WM,isStatement:$M}=JM,Ih=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function wh(e){return e===156||e===201||e===209}var yn=(e,t,r)=>(r===21||r===22)&&t.superClass===e,Tn=(e,t,r)=>{switch(r){case 108:case 132:return t.object===e;case 17:case 130:case 112:return t.callee===e;case 222:return t.tag===e;case 191:return!0}return!1};function HM(e,t,r){return r===4}function zM(e,t,r,i){return r===239||r===90||r===4||(i&ut.TokenContext.arrowFlowReturnType)>0}function GM(e,t,r){return Tn(e,t,r)||yn(e,t,r)}function Nh(e){return(e&(ut.TokenContext.expressionStatement|ut.TokenContext.arrowBody))>0}function QM(e,t,r,i){return Nh(i)}function ZM(e,t,r,i){return(i&ut.TokenContext.expressionStatement)>0&&!e.async}function ql(e,t,r,i){if(yn(e,t,r)||Tn(e,t,r)||r===238||r===145||r===8)return!0;let s;switch(r){case 10:case 107:s=Ih.get(t.operator);break;case 156:case 201:s=7}if(s!==void 0){let n=i===2?7:Ih.get(e.operator);if(s>n||s===n&&r===10&&(n===11?t.left===e:t.right===e)||i===1&&r===107&&(n===1&&s!==1||s===1&&n!==1))return!0}return!1}function eB(e,t,r){switch(r){case 4:case 115:case 90:case 239:return!0}return!1}function tB(e,t,r){return r===84&&t.objectType===e}function rB(e,t,r){return(r===6||r===7)&&t.left===e||r===10&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:ql(e,t,r,2)}function iB(e,t,r){switch(r){case 155:case 195:case 211:case 212:return!0;case 175:return t.objectType===e;case 181:case 219:return t.types[0]===e;case 161:return t.checkType===e||t.extendsType===e}return!1}function _h(e,t,r){switch(r){case 181:case 211:case 155:case 195:return!0;case 175:return t.objectType===e}return!1}function sB(e,t,r){return r===211||Ul(e,t,r)}function nB(e,t,r){return!!(Ul(e,t,r)||(r===181||r===219)&&e.typeParameter.constraint&&t.types[0]===e)}function Ul(e,t,r){switch(r){case 155:case 195:return!0;case 175:if(t.objectType===e)return!0}return!1}function aB(e,t,r){switch(r){case 17:case 130:case 112:case 177:return t.typeParameters!=null}return!1}function oB(e,t,r){return _h(e,t,r)?!0:r===219||r===161&&(t.checkType===e||t.extendsType===e)}function lB(e,t,r,i){return ql(e,t,r,0)?!0:(i&ut.TokenContext.forInOrInitHeadAccumulate)>0&&e.operator==="in"}function uB(e,t,r){return ql(e,t,r,1)}function cB(e,t,r){return r===144||r===133||r===108&&t.property===e||r===132&&t.property===e||r===224?!1:r===21?!0:r===68?t.right===e:r===60?!0:!$M(t)}function pB(e,t,r){return r===10||r===107||r===238||r===145||Tn(e,t,r)||r===8&&WM(e)||r===28&&e===t.test||yn(e,t,r)||wh(r)}function fB(e,t,r,i){return(i&(ut.TokenContext.expressionStatement|ut.TokenContext.exportDefault))>0}function Oh(e,t,r){return Tn(e,t,r)||r===10&&t.operator==="**"&&t.left===e||yn(e,t,r)}function hB(e,t,r,i){return(i&(ut.TokenContext.expressionStatement|ut.TokenContext.exportDefault))>0}function Dh(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(t.test===e)return!0}return wh(r)?!0:Oh(e,t,r)}function dB(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return!1}function mB(e,t,r,i){return Nh(i)&&e.left.type==="ObjectPattern"?!0:Dh(e,t,r)}function yB(e,t,r,i,s){var n;if(s&&s(e)!==e.name)return!1;if(r===6&&(n=e.extra)!=null&&n.parenthesized&&t.left===e){let a=t.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&t.right.id==null)return!0}return(i&ut.TokenContext.forOfHead||(r===108||r===132)&&i&(ut.TokenContext.expressionStatement|ut.TokenContext.forInitHead|ut.TokenContext.forInHead))&&e.name==="let"?(YM(t,{object:e,computed:!0})||XM(t,{object:e,computed:!0,optional:!1}))&&i&(ut.TokenContext.expressionStatement|ut.TokenContext.forInitHead|ut.TokenContext.forInHead)?!0:(i&ut.TokenContext.forOfHead)>0:r===68&&t.left===e&&e.name==="async"&&!t.await}});var Kl=w(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.TaggedTemplateExpression=TB;vi.TemplateElement=SB;vi.TemplateLiteral=gB;vi._printTemplate=Lh;function TB(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function SB(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function Lh(e,t){let r=e.quasis,i="`";for(let s=0;s<r.length-1;s++)if(i+=r[s].value.raw,this.token(i+"${",!0),this.print(t[s]),i="}",this.tokenMap){let n=this.tokenMap.findMatching(e,"}",s);n&&this._catchUpTo(n.loc.start)}i+=r[r.length-1].value.raw,this.token(i+"`",!0)}function gB(e){Lh.call(this,e,e.expressions)}});var Sn=w(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.LogicalExpression=ke.AssignmentExpression=YB;ke.AssignmentPattern=JB;ke.AwaitExpression=qB;ke.BinaryExpression=XB;ke.BindExpression=WB;ke.CallExpression=jB;ke.ConditionalExpression=NB;ke.Decorator=MB;ke.DoExpression=CB;ke.EmptyStatement=KB;ke.ExpressionStatement=VB;ke.Import=RB;ke.MemberExpression=$B;ke.MetaProperty=HB;ke.ModuleExpression=QB;ke.NewExpression=_B;ke.OptionalCallExpression=FB;ke.OptionalMemberExpression=BB;ke.ParenthesizedExpression=IB;ke.PrivateName=zB;ke.SequenceExpression=OB;ke.Super=kB;ke.ThisExpression=DB;ke.UnaryExpression=vB;ke.UpdateExpression=wB;ke.V8IntrinsicIdentifier=GB;ke.YieldExpression=UB;ke._shouldPrintDecoratorsBeforeExport=LB;var xB=he(),bB=_r(),{isCallExpression:EB,isLiteral:Mh,isMemberExpression:Vl,isNewExpression:PB,isPattern:AB}=xB;function vB(e){let{operator:t}=e,r=t.charCodeAt(0);r>=97&&r<=122?(this.word(t),this.space()):this.tokenChar(r),this.print(e.argument)}function CB(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function IB(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function wB(e){e.prefix?(this.token(e.operator,!1,0,!0),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator,!1,0,!0))}function NB(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function _B(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!EB(t,{callee:e})&&!Vl(t)&&!PB(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=r,this.rightParens(e)}function OB(e){this.printList(e.expressions)}function DB(){this.word("this")}function kB(){this.word("super")}function LB(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function MB(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()}function BB(e){let{computed:t}=e,{optional:r,property:i}=e;if(this.print(e.object),!t&&Vl(i))throw new TypeError("Got a MemberExpression for MemberExpression property");Mh(i)&&typeof i.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i))}function FB(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function jB(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function RB(){this.word("import")}function qB(e){this.word("await"),this.space(),this.print(e.argument)}function UB(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")}function KB(){this.semicolon(!0)}function VB(e){this.tokenContext|=bB.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function JB(e){this.print(e.left),(e.left.type==="Identifier"||AB(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function YB(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}function XB(e){this.print(e.left),this.space();let{operator:t}=e;t.charCodeAt(0)===105?this.word(t):(this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1))),this.space(),this.print(e.right)}function WB(e){this.print(e.object),this.token("::"),this.print(e.callee)}function $B(e){if(this.print(e.object),!e.computed&&Vl(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(Mh(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=r}else this.tokenChar(46),this.print(e.property)}function HB(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function zB(e){this.tokenChar(35),this.print(e.id)}function GB(e){this.tokenChar(37),this.word(e.name)}function QB(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var Fh=w(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.BreakStatement=cF;Ze.CatchClause=yF;Ze.ContinueStatement=pF;Ze.DebuggerStatement=gF;Ze.DoWhileStatement=uF;Ze.ForInStatement=oF;Ze.ForOfStatement=lF;Ze.ForStatement=nF;Ze.IfStatement=sF;Ze.LabeledStatement=dF;Ze.ReturnStatement=fF;Ze.SwitchCase=SF;Ze.SwitchStatement=TF;Ze.ThrowStatement=hF;Ze.TryStatement=mF;Ze.VariableDeclaration=bF;Ze.VariableDeclarator=EF;Ze.WhileStatement=aF;Ze.WithStatement=iF;var ZB=he(),Gr=_r(),{isFor:eF,isIfStatement:tF,isStatement:rF}=ZB;function iF(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)}function sF(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&tF(Bh(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))}function Bh(e){let{body:t}=e;return rF(t)===!1?e:Bh(t)}function nF(e){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=Gr.TokenContext.forInitHead|Gr.TokenContext.forInOrInitHeadAccumulate,this.print(e.init),this.tokenContext=Gr.TokenContext.normal,this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e.body)}function aF(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)}function oF(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=Gr.TokenContext.forInHead|Gr.TokenContext.forInOrInitHeadAccumulate,this.print(e.left),this.tokenContext=Gr.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function lF(e){this.word("for"),this.space(),e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=Gr.TokenContext.forOfHead,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function uF(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function gn(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function cF(e){this.word("break"),gn(this,e.label)}function pF(e){this.word("continue"),gn(this,e.label)}function fF(e){this.word("return"),gn(this,e.argument)}function hF(e){this.word("throw"),gn(this,e.argument)}function dF(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function mF(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))}function yF(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)}function TF(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)}function SF(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))}function gF(){this.word("debugger"),this.semicolon()}function xF(e){this.tokenChar(44,e),this.newline()}function bF(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let i=!1;if(!eF(t)){for(let s of e.declarations)if(s.init){i=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,i?xF:void 0),t!=null)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()}function EF(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}});var hs=w(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.ArrowFunctionExpression=wF;jt.FunctionDeclaration=jt.FunctionExpression=IF;jt._functionHead=qh;jt._methodHead=CF;jt._param=Rh;jt._parameters=jh;jt._params=Ci;jt._predicate=Jl;jt._shouldPrintArrowParamsParens=Uh;var PF=he(),AF=_r(),{isIdentifier:vF}=PF;function Ci(e,t,r,i){if(this.print(e.typeParameters),r!==void 0||i!==void 0){let s=NF.call(this,r,i);s&&this.sourceIdentifierName(s.name,s.pos)}this.tokenChar(40),jh.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function jh(e,t){let r=this.enterDelimited(),i=this.shouldPrintTrailingComma(t),s=e.length;for(let n=0;n<s;n++)Rh.call(this,e[n]),(i||n<s-1)&&(this.tokenChar(44,n),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=r}function Rh(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,!0)}function CF(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._buf._map?Ci.call(this,e,!1,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key):Ci.call(this,e,!1)}function Jl(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function qh(e,t,r){e.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._buf._map?Ci.call(this,e,!1,e.id,t):Ci.call(this,e,!1),r&&Jl.call(this,e)}function IF(e,t){qh.call(this,e,t,!0),this.space(),this.print(e.body)}function wF(e,t){e.async&&(this.word("async",!0),this.space()),Uh.call(this,e)?Ci.call(this,e,!0,void 0,this._buf._map?t:void 0):this.print(e.params[0],!0),Jl.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=AF.TokenContext.arrowBody,this.print(e.body)}function Uh(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return!0;let i=e.params[0];if(!vF(i)||i.typeAnnotation||i.optional||(t=i.leadingComments)!=null&&t.length||(r=i.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return!0;let s=this.tokenMap.findMatching(e,"=>");return s?.loc==null?!0:s.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function NF(e,t){let r=e;if(!r&&t){let l=t.type;l==="VariableDeclarator"?r=t.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=t.left:l==="ObjectProperty"||l==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let i;if(r.type==="Identifier"){var s,n;i={pos:(s=r.loc)==null?void 0:s.start,name:((n=r.loc)==null?void 0:n.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;i={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;i={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return i}});var Xl=w(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.TSAnyKeyword=JF;G.TSArrayType=c3;G.TSAsExpression=N3;G.TSBigIntKeyword=YF;G.TSBooleanKeyword=HF;G.TSCallSignatureDeclaration=RF;G.TSInterfaceHeritage=G.TSClassImplements=v3;G.TSConditionalType=T3;G.TSConstructSignatureDeclaration=qF;G.TSConstructorType=n3;G.TSDeclareFunction=BF;G.TSDeclareMethod=FF;G.TSEnumBody=Wh;G.TSEnumDeclaration=k3;G.TSEnumMember=L3;G.TSExportAssignment=U3;G.TSExternalModuleReference=R3;G.TSFunctionType=s3;G.TSImportEqualsDeclaration=j3;G.TSImportType=F3;G.TSIndexSignature=VF;G.TSIndexedAccessType=b3;G.TSInferType=S3;G.TSInstantiationExpression=D3;G.TSInterfaceBody=I3;G.TSInterfaceDeclaration=C3;G.TSIntersectionType=y3;G.TSIntrinsicKeyword=r3;G.TSLiteralType=A3;G.TSMappedType=E3;G.TSMethodSignature=KF;G.TSModuleBlock=B3;G.TSModuleDeclaration=M3;G.TSNamedTupleMember=d3;G.TSNamespaceExportDeclaration=K3;G.TSNeverKeyword=t3;G.TSNonNullExpression=q3;G.TSNullKeyword=e3;G.TSNumberKeyword=WF;G.TSObjectKeyword=$F;G.TSOptionalType=f3;G.TSParameterProperty=MF;G.TSParenthesizedType=g3;G.TSPropertySignature=UF;G.TSQualifiedName=jF;G.TSRestType=h3;G.TSSatisfiesExpression=_3;G.TSStringKeyword=zF;G.TSSymbolKeyword=GF;G.TSTemplateLiteralType=P3;G.TSThisType=i3;G.TSTupleType=p3;G.TSTypeAliasDeclaration=w3;G.TSTypeAnnotation=DF;G.TSTypeAssertion=O3;G.TSTypeLiteral=u3;G.TSTypeOperator=x3;G.TSTypeParameter=LF;G.TSTypeParameterDeclaration=G.TSTypeParameterInstantiation=kF;G.TSTypePredicate=o3;G.TSTypeQuery=l3;G.TSTypeReference=a3;G.TSUndefinedKeyword=ZF;G.TSUnionType=m3;G.TSUnknownKeyword=XF;G.TSVoidKeyword=QF;G._tsPrintClassMemberModifiers=V3;var ds=hs(),_F=Wl(),OF=Kl();function DF(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function kF(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;this.tokenMap&&e.start!=null&&e.end!=null&&(r&&(r=!!this.tokenMap.find(e,i=>this.tokenMap.matchesOriginal(i,","))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(e.params,r),this.tokenChar(62)}function LF(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function MF(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),ds._param.call(this,e.parameter)}function BF(e,t){e.declare&&(this.word("declare"),this.space()),ds._functionHead.call(this,e,t,!1),this.semicolon()}function FF(e){_F._classMethodHead.call(this,e),this.semicolon()}function jF(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function RF(e){Yl.call(this,e),ms(this,e)}function ms(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon()}function qF(e){this.word("new"),this.space(),Yl.call(this,e),ms(this,e)}function UF(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),Jh.call(this,e),this.print(e.typeAnnotation),ms(this,e)}function Jh(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function KF(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),Jh.call(this,e),Yl.call(this,e),ms(this,e)}function VF(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),ds._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),ms(this,e)}function JF(){this.word("any")}function YF(){this.word("bigint")}function XF(){this.word("unknown")}function WF(){this.word("number")}function $F(){this.word("object")}function HF(){this.word("boolean")}function zF(){this.word("string")}function GF(){this.word("symbol")}function QF(){this.word("void")}function ZF(){this.word("undefined")}function e3(){this.word("null")}function t3(){this.word("never")}function r3(){this.word("intrinsic")}function i3(){this.word("this")}function s3(e){Yh.call(this,e)}function n3(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),Yh.call(this,e)}function Yh(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),ds._parameters.call(this,r,41),this.space();let i=e.typeAnnotation;this.print(i)}function a3(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)}function o3(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function l3(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;t&&this.print(t)}function u3(e){xn(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))}function c3(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function p3(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function f3(e){this.print(e.typeAnnotation),this.tokenChar(63)}function h3(e){this.token("..."),this.print(e.typeAnnotation)}function d3(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)}function m3(e){Xh(this,e,"|")}function y3(e){Xh(this,e,"&")}function Xh(e,t,r){var i;let s=0;(i=e.tokenMap)!=null&&i.startMatches(t,r)&&(s=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(n){this.space(),this.token(r,void 0,n+s),this.space()})}function T3(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function S3(e){this.word("infer"),this.print(e.typeParameter)}function g3(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function x3(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function b3(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function E3(e){let{nameType:t,optional:r,readonly:i,typeAnnotation:s}=e;this.tokenChar(123);let n=this.enterDelimited();this.space(),i&&(Kh(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint,void 0,!0),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,!0)),this.tokenChar(93),r&&(Kh(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=n,this.tokenChar(125)}function Kh(e,t){t!==!0&&e.token(t)}function P3(e){OF._printTemplate.call(this,e,e.types)}function A3(e){this.print(e.literal)}function v3(e){this.print(e.expression),this.print(e.typeArguments)}function C3(e){let{declare:t,id:r,typeParameters:i,extends:s,body:n}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(i),s!=null&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s)),this.space(),this.print(n)}function I3(e){xn(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))}function w3(e){let{declare:t,id:r,typeParameters:i,typeAnnotation:s}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(i),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()}function N3(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)}function _3(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)}function O3(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function D3(e){this.print(e.expression),this.print(e.typeParameters)}function k3(e){let{declare:t,const:r,id:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),Wh.call(this,e)}function Wh(e){xn(this,e,()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:!0,!0,!0,void 0,!0)})}function L3(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))}function M3(e){let{declare:t,id:r,kind:i}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(i??(r.type==="Identifier"?"namespace":"module")),this.space()),this.print(r),!e.body){this.semicolon();return}let s=e.body;for(;s.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(s.id),s=s.body;this.space(),this.print(s)}function B3(e){xn(this,e,()=>this.printSequence(e.body,!0,!0))}function F3(e){let{qualifier:t,options:r}=e;this.word("import"),this.tokenChar(40),this.print(e.argument),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),t&&(this.tokenChar(46),this.print(t));let i=e.typeParameters;i&&this.print(i)}function j3(e){let{id:t,moduleReference:r}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function R3(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function q3(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)}function U3(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function K3(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function Yl(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),ds._parameters.call(this,r,41);let i=e.typeAnnotation;this.print(i)}function V3(e){let t=e.type==="ClassPrivateProperty",r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";Vh(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),Vh(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function xn(e,t,r){e.token("{");let i=e.enterDelimited();r(),e._noLineTerminatorAfterNode=i,e.rightBrace(t)}function Vh(e,t,r){var i;let s=new Set;for(let n of r)n&&s.add(n);(i=e.tokenMap)==null||i.find(t,n=>s.has(n.value)?(e.token(n.value),e.space(),s.delete(n.value),s.size===0):!1);for(let n of s)e.word(n),e.space()}});var $l=w(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.ExportAllDeclaration=ij;St.ExportDefaultDeclaration=nj;St.ExportDefaultSpecifier=ej;St.ExportNamedDeclaration=sj;St.ExportNamespaceSpecifier=rj;St.ExportSpecifier=tj;St.ImportAttribute=oj;St.ImportDeclaration=aj;St.ImportDefaultSpecifier=Z3;St.ImportExpression=uj;St.ImportNamespaceSpecifier=lj;St.ImportSpecifier=Q3;St._printAttributes=bn;var J3=he(),Y3=_r(),X3=Sn(),{isClassDeclaration:W3,isExportDefaultSpecifier:$3,isExportNamespaceSpecifier:H3,isImportDefaultSpecifier:z3,isImportNamespaceSpecifier:G3,isStatement:Hh}=J3;function Q3(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function Z3(e){this.print(e.local)}function ej(e){this.print(e.exported)}function tj(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function rj(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var $h=!1;function bn(e,t){var r;let{attributes:i}=e;var{assertions:s}=e;let{importAttributesKeyword:n}=this.format;i&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!$h&&($h=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=n==="assert"||!n&&s;if(this.word(a?"assert":"with"),this.space(),!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(i||s);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(i||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function ij(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),bn.call(this,e,!1)):this.print(e.source),this.semicolon()}function zh(e,t){W3(t.declaration)&&X3._shouldPrintDecoratorsBeforeExport.call(e,t)&&e.printJoin(t.declaration.decorators)}function sj(e){if(zh(this,e),this.word("export"),this.space(),e.declaration){let i=e.declaration;this.print(i),Hh(i)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let i=e.specifiers.slice(0),s=!1;for(;;){let a=i[0];if($3(a)||H3(a))s=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}let n=!1;if((i.length||!i.length&&!s)&&(n=!0,this.tokenChar(123),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),bn.call(this,e,n)):this.print(e.source)}this.semicolon()}}function nj(e){zh(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=Y3.TokenContext.exportDefault;let t=e.declaration;this.print(t),Hh(t)||this.semicolon()}function aj(e){var t,r;this.word("import"),this.space();let i=e.importKind==="type"||e.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let s=e.specifiers.slice(0),n=!!s.length;for(;n;){let o=s[0];if(z3(o)||G3(o))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!n&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(n||i)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),bn.call(this,e,a)):this.print(e.source),this.semicolon()}function oj(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function lj(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function uj(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)}});var ed=w((KZ,Zh)=>{"use strict";var Gh={},cj=Gh.hasOwnProperty,Qh=(e,t)=>{for(let r in e)cj.call(e,r)&&t(r,e[r])},pj=(e,t)=>(t&&Qh(t,(r,i)=>{e[r]=i}),e),fj=(e,t)=>{let r=e.length,i=-1;for(;++i<r;)t(e[i])},En=e=>"\\u"+("0000"+e).slice(-4),ys=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},Ts=Gh.toString,hj=Array.isArray,dj=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),mj=e=>Ts.call(e)=="[object Object]",yj=e=>typeof e=="string"||Ts.call(e)=="[object String]",Tj=e=>typeof e=="number"||Ts.call(e)=="[object Number]",Hl=e=>typeof e=="bigint",Sj=e=>typeof e=="function",gj=e=>Ts.call(e)=="[object Map]",xj=e=>Ts.call(e)=="[object Set]",bj={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},Ej=/[\\\b\f\n\r\t]/,Pj=/[0-9]/,Aj=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,vj=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,Cj=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,Or=(e,t)=>{let r=()=>{u=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=t&&t.json;s&&(i.quotes="double",i.wrap=!0),t=pj(i,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let n=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),u="",f=t.__inline1__,g=t.__inline2__,E=a?"":`
|
|
13
|
-
`,A,v=!0,O=t.numbers=="binary",I=t.numbers=="octal",_=t.numbers=="decimal",L=t.numbers=="hexadecimal";if(s&&e&&Sj(e.toJSON)&&(e=e.toJSON()),!yj(e)){if(gj(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Or(Array.from(e),t)+")");if(xj(e))return e.size==0?"new Set()":"new Set("+Or(Array.from(e),t)+")";if(dj(e))return e.length==0?"Buffer.from([])":"Buffer.from("+Or(Array.from(e),t)+")";if(hj(e))return A=[],t.wrap=!0,f&&(t.__inline1__=!1,t.__inline2__=!0),g||r(),fj(e,W=>{v=!1,g&&(t.__inline2__=!1),A.push((a||g?"":l)+Or(W,t))}),v?"[]":g?"["+A.join(", ")+"]":"["+E+A.join(","+E)+E+(a?"":u)+"]";if(Tj(e)||Hl(e)){if(s)return JSON.stringify(Number(e));let W;if(_)W=String(e);else if(L){let X=e.toString(16);o||(X=X.toUpperCase()),W="0x"+X}else O?W="0b"+e.toString(2):I&&(W="0o"+e.toString(8));return Hl(e)?W+"n":W}else return Hl(e)?s?JSON.stringify(Number(e)):e+"n":mj(e)?(A=[],t.wrap=!0,r(),Qh(e,(W,X)=>{v=!1,A.push((a?"":l)+Or(W,t)+":"+(a?"":" ")+Or(X,t))}),v?"{}":"{"+E+A.join(","+E)+E+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let te=t.escapeEverything?vj:Cj;return A=e.replace(te,(W,X,ce,we,je,tt)=>{if(X){if(t.minimal)return X;let At=X.charCodeAt(0),Nt=X.charCodeAt(1);if(t.es6){let Dt=(At-55296)*1024+Nt-56320+65536;return"\\u{"+ys(Dt,o)+"}"}return En(ys(At,o))+En(ys(Nt,o))}if(ce)return En(ys(ce.charCodeAt(0),o));if(W=="\0"&&!s&&!Pj.test(tt.charAt(je+1)))return"\\0";if(we)return we==n||t.escapeEverything?"\\"+we:we;if(Ej.test(W))return bj[W];if(t.minimal&&!Aj.test(W))return W;let Pt=ys(W.charCodeAt(0),o);return s||Pt.length>2?En(Pt):"\\x"+("00"+Pt).slice(-2)}),n=="`"&&(A=A.replace(/\$\{/g,"\\${")),t.isScriptContext&&(A=A.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),t.wrap&&(A=n+A+n),A};Or.version="3.0.2";Zh.exports=Or});var An=w($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.ArgumentPlaceholder=Dj;$e.ArrayPattern=$e.ArrayExpression=Fj;$e.BigIntLiteral=Vj;$e.BooleanLiteral=Rj;$e.Identifier=Oj;$e.NullLiteral=qj;$e.NumericLiteral=Uj;$e.ObjectPattern=$e.ObjectExpression=Lj;$e.ObjectMethod=Mj;$e.ObjectProperty=Bj;$e.PipelineBareFunction=Xj;$e.PipelinePrimaryTopicReference=Wj;$e.PipelineTopicExpression=Yj;$e.RegExpLiteral=jj;$e.SpreadElement=$e.RestElement=kj;$e.StringLiteral=Kj;$e.TopicReference=Jj;$e.VoidPattern=$j;$e._getRawIdentifier=_j;var Ij=he(),rd=ed(),wj=hs(),{isAssignmentPattern:Nj,isIdentifier:zl}=Ij,Pn="";function _j(e){let{name:t}=e,r=this.tokenMap.find(e,i=>i.value===t);return r?(Pn=this._originalCode.slice(r.start,r.end),Pn):Pn=e.name}function Oj(e){if(this._buf._map){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name)}this.word(this.tokenMap?Pn:e.name)}function Dj(){this.tokenChar(63)}function kj(e){this.token("..."),this.print(e.argument)}function Lj(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=r}this.rightBrace(e)}function Mj(e){this.printJoin(e.decorators),wj._methodHead.call(this,e),this.space(),this.print(e.body)}function Bj(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(Nj(e.value)&&zl(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&zl(e.key)&&zl(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function Fj(e){let t=e.elements,r=t.length;this.tokenChar(91);let i=this.enterDelimited();for(let s=0;s<t.length;s++){let n=t[s];n?(s>0&&this.space(),this.print(n,void 0,!0),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,s)):this.tokenChar(44,s)}this._noLineTerminatorAfterNode=i,this.tokenChar(93)}function jj(e){this.word(`/${e.pattern}/${e.flags}`,!1)}function Rj(e){this.word(e.value?"true":"false")}function qj(){this.word("null")}function Uj(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value,s=i+"";r.numbers?this.number(rd(i,r),i):t==null?this.number(s,i):this.format.minified?this.number(t.length<s.length?t:s,i):this.number(t,i)}function Kj(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=rd(e.value,this.format.jsescOption);this.token(r)}function Vj(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}var td=new Set(["^^","@@","^","%","#"]);function Jj(){let{topicToken:e}=this.format;if(td.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(td,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function Yj(e){this.print(e.expression)}function Xj(e){this.print(e.callee)}function Wj(){this.tokenChar(35)}function $j(){this.word("void")}});var Zl=w(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.AnyTypeAnnotation=Zj;Q.ArrayTypeAnnotation=eR;Q.BooleanLiteralTypeAnnotation=rR;Q.BooleanTypeAnnotation=tR;Q.DeclareClass=sR;Q.DeclareExportAllDeclaration=mR;Q.DeclareExportDeclaration=dR;Q.DeclareFunction=nR;Q.DeclareInterface=lR;Q.DeclareModule=uR;Q.DeclareModuleExports=cR;Q.DeclareOpaqueType=fR;Q.DeclareTypeAlias=pR;Q.DeclareVariable=hR;Q.DeclaredPredicate=oR;Q.EmptyTypeAnnotation=LR;Q.EnumBooleanBody=TR;Q.EnumBooleanMember=ER;Q.EnumDeclaration=yR;Q.EnumDefaultedMember=bR;Q.EnumNumberBody=SR;Q.EnumNumberMember=PR;Q.EnumStringBody=gR;Q.EnumStringMember=AR;Q.EnumSymbolBody=xR;Q.ExistsTypeAnnotation=CR;Q.FunctionTypeAnnotation=IR;Q.FunctionTypeParam=wR;Q.IndexedAccessType=i4;Q.InferredPredicate=aR;Q.InterfaceDeclaration=sd;Q.GenericTypeAnnotation=Q.ClassImplements=Q.InterfaceExtends=NR;Q.InterfaceTypeAnnotation=OR;Q.IntersectionTypeAnnotation=DR;Q.MixedTypeAnnotation=kR;Q.NullLiteralTypeAnnotation=iR;Q.NullableTypeAnnotation=MR;Object.defineProperty(Q,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return id.NumericLiteral}});Q.NumberTypeAnnotation=BR;Q.ObjectTypeAnnotation=JR;Q.ObjectTypeCallProperty=XR;Q.ObjectTypeIndexer=WR;Q.ObjectTypeInternalSlot=YR;Q.ObjectTypeProperty=$R;Q.ObjectTypeSpreadProperty=HR;Q.OpaqueType=ad;Q.OptionalIndexedAccessType=s4;Q.QualifiedTypeIdentifier=zR;Object.defineProperty(Q,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return id.StringLiteral}});Q.StringTypeAnnotation=FR;Q.SymbolTypeAnnotation=GR;Q.ThisTypeAnnotation=jR;Q.TupleTypeAnnotation=RR;Q.TypeAlias=nd;Q.TypeAnnotation=UR;Q.TypeCastExpression=e4;Q.TypeParameter=VR;Q.TypeParameterDeclaration=Q.TypeParameterInstantiation=KR;Q.TypeofTypeAnnotation=qR;Q.UnionTypeAnnotation=ZR;Q.Variance=t4;Q.VoidTypeAnnotation=r4;Q._interfaceish=Ql;Q._variance=wn;var Hj=he(),zj=$l(),Gj=_r(),id=An(),{isDeclareExportDeclaration:vn,isStatement:Qj}=Hj;function Zj(){this.word("any")}function eR(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function tR(){this.word("boolean")}function rR(e){this.word(e.value?"true":"false")}function iR(){this.word("null")}function sR(e,t){vn(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),Ql.call(this,e)}function nR(e,t){vn(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()}function aR(){this.tokenChar(37),this.word("checks")}function oR(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function lR(e){this.word("declare"),this.space(),sd.call(this,e)}function uR(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function cR(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function pR(e){this.word("declare"),this.space(),nd.call(this,e)}function fR(e,t){vn(t)||(this.word("declare"),this.space()),ad.call(this,e)}function hR(e,t){vn(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function dR(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),vR.call(this,e)}function mR(e){this.word("declare"),this.space(),zj.ExportAllDeclaration.call(this,e)}function yR(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function Cn(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function In(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let i of r)e.print(i),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function TR(e){let{explicitType:t}=e;Cn(this,"boolean",t),In(this,e)}function SR(e){let{explicitType:t}=e;Cn(this,"number",t),In(this,e)}function gR(e){let{explicitType:t}=e;Cn(this,"string",t),In(this,e)}function xR(e){Cn(this,"symbol",!0),In(this,e)}function bR(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function Gl(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function ER(e){Gl(this,e)}function PR(e){Gl(this,e)}function AR(e){Gl(this,e)}function vR(e){if(e.declaration){let t=e.declaration;this.print(t),Qj(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function CR(){this.tokenChar(42)}function IR(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)}function wR(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)}function NR(e){this.print(e.id),this.print(e.typeParameters,!0)}function Ql(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),e.type==="DeclareClass"){var r,i;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(i=e.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)}function wn(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function sd(e){this.word("interface"),this.space(),Ql.call(this,e)}function _R(e){this.space(),this.token("&",!1,e),this.space()}function OR(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)}function DR(e){this.printJoin(e.types,void 0,void 0,_R)}function kR(){this.word("mixed")}function LR(){this.word("empty")}function MR(e){this.tokenChar(63),this.print(e.typeAnnotation)}function BR(){this.word("number")}function FR(){this.word("string")}function jR(){this.word("this")}function RR(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function qR(e){this.word("typeof"),this.space(),this.print(e.argument)}function nd(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function UR(e,t){this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression"?this.tokenContext|=Gj.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function KR(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function VR(e){wn.call(this,e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function ad(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function JR(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)}function YR(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function XR(e){e.static&&(this.word("static"),this.space()),this.print(e.value)}function WR(e){e.static&&(this.word("static"),this.space()),wn.call(this,e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function $R(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),wn.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function HR(e){this.token("..."),this.print(e.argument)}function zR(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function GR(){this.word("symbol")}function QR(e){this.space(),this.token("|",!1,e),this.space()}function ZR(e){this.printJoin(e.types,void 0,void 0,QR)}function e4(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function t4(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function r4(){this.word("void")}function i4(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function s4(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var Wl=w(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.ClassAccessorProperty=d4;Rt.ClassBody=p4;Rt.ClassExpression=Rt.ClassDeclaration=c4;Rt.ClassMethod=y4;Rt.ClassPrivateMethod=T4;Rt.ClassPrivateProperty=m4;Rt.ClassProperty=h4;Rt.StaticBlock=S4;Rt._classMethodHead=eu;var n4=he(),a4=Sn(),Nn=Xl(),od=Zl(),o4=hs(),{isExportDefaultDeclaration:l4,isExportNamedDeclaration:u4}=n4;function c4(e,t){(!(l4(t)||u4(t))||!a4._shouldPrintDecoratorsBeforeExport.call(this,t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function p4(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{let t=f4(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,this.endsWith(10)||this.newline(),this.rightBrace(e)}}function f4(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let i=1,s=0,n=0,a=()=>{for(;n<t.body.length&&t.body[n].start==null;)n++};return a(),o=>{n<=o&&(n=o+1,a());let l=n===t.body.length?t.end:t.body[n].start,u;for(;i<r.length&&e.tokenMap.matchesOriginal(u=e._tokens[r[i]],";")&&u.start<l;)e.tokenChar(59,s++),i++}}function h4(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}Nn._tsPrintClassMemberModifiers.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(od._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function d4(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),Nn._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(od._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function m4(e){this.printJoin(e.decorators),Nn._tsPrintClassMemberModifiers.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function y4(e){eu.call(this,e),this.space(),this.print(e.body)}function T4(e){eu.call(this,e),this.space(),this.print(e.body)}function eu(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}Nn._tsPrintClassMemberModifiers.call(this,e),o4._methodHead.call(this,e)}function S4(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))}});var ld=w(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.BlockStatement=b4;Sr.Directive=E4;Sr.DirectiveLiteral=v4;Sr.File=g4;Sr.InterpreterDirective=C4;Sr.Placeholder=I4;Sr.Program=x4;function g4(e){e.program&&this.print(e.program.interpreter),this.print(e.program)}function x4(e){var t;this.printInnerComments(!1);let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let s=e.body.length?2:1;this.printSequence(e.directives,void 0,void 0,s),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(e.body)}function b4(e){var t;this.tokenChar(123);let r=this.enterDelimited(),i=(t=e.directives)==null?void 0:t.length;if(i){var s;let n=e.body.length?2:1;this.printSequence(e.directives,!0,!0,n),(s=e.directives[i-1].trailingComments)!=null&&s.length||this.newline(n)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=r,this.rightBrace(e)}function E4(e){this.print(e.value),this.semicolon()}var P4=/(?:^|[^\\])(?:\\\\)*'/,A4=/(?:^|[^\\])(?:\\\\)*"/;function v4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!A4.test(r))this.token(`"${r}"`);else if(!P4.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function C4(e){this.token(`#!${e.value}`),this._newline()}function I4(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}});var ud=w(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.JSXAttribute=w4;ct.JSXClosingElement=R4;ct.JSXClosingFragment=V4;ct.JSXElement=B4;ct.JSXEmptyExpression=q4;ct.JSXExpressionContainer=k4;ct.JSXFragment=U4;ct.JSXIdentifier=N4;ct.JSXMemberExpression=O4;ct.JSXNamespacedName=_4;ct.JSXOpeningElement=j4;ct.JSXOpeningFragment=K4;ct.JSXSpreadAttribute=D4;ct.JSXSpreadChild=L4;ct.JSXText=M4;function w4(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))}function N4(e){this.word(e.name)}function _4(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function O4(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function D4(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function k4(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function L4(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function M4(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function B4(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}}function F4(){this.space()}function j4(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,F4)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function R4(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)}function q4(){this.printInnerComments()}function U4(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function K4(){this.tokenChar(60),this.tokenChar(62)}function V4(){this.token("</"),this.tokenChar(62)}});var cd=w(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});var tu=Kl();Object.keys(tu).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===tu[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return tu[e]}})});var ru=Sn();Object.keys(ru).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===ru[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return ru[e]}})});var iu=Fh();Object.keys(iu).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===iu[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return iu[e]}})});var su=Wl();Object.keys(su).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===su[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return su[e]}})});var nu=hs();Object.keys(nu).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===nu[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return nu[e]}})});var au=$l();Object.keys(au).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===au[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return au[e]}})});var ou=An();Object.keys(ou).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===ou[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return ou[e]}})});var lu=Zl();Object.keys(lu).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===lu[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return lu[e]}})});var uu=ld();Object.keys(uu).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===uu[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return uu[e]}})});var cu=ud();Object.keys(cu).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===cu[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return cu[e]}})});var pu=Xl();Object.keys(pu).forEach(function(e){e==="default"||e==="__esModule"||e in ve&&ve[e]===pu[e]||Object.defineProperty(ve,e,{enumerable:!0,get:function(){return pu[e]}})})});var pd=w(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.DecimalLiteral=X4;Qr.Noop=J4;Qr.RecordExpression=W4;Qr.TSExpressionWithTypeArguments=Y4;Qr.TupleExpression=$4;function J4(){}function Y4(e){this.print(e.expression),this.print(e.typeParameters)}function X4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}function W4(e){let t=e.properties,r,i;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",i="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)}function $4(e){let t=e.elements,r=t.length,i,s;if(this.format.recordAndTupleSyntaxType==="bar")i="[|",s="|]";else if(this.format.recordAndTupleSyntaxType==="hash")i="#[",s="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(i);for(let n=0;n<t.length;n++){let a=t[n];a&&(n>0&&this.space(),this.print(a),(n<r-1||this.shouldPrintTrailingComma(s))&&this.token(",",!1,n))}this.token(s)}});var fu=w(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.generatorInfosMap=void 0;var fd=cd(),hd=pd(),dd=_n.generatorInfosMap=new Map,md=0;for(let e of Object.keys(fd).sort())e.startsWith("_")||dd.set(e,[fd[e],md++,void 0]);for(let e of Object.keys(hd))dd.set(e,[hd[e],md++,void 0])});var _r=w(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.TokenContext=void 0;Ii.isLastChild=Q4;Ii.parentNeedsParens=G4;var yd=kh(),H4=he(),Td=fu(),{VISITOR_KEYS:z4}=H4,GZ=Ii.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(let e of Object.keys(yd)){let t=yd[e];Td.generatorInfosMap.has(e)&&(Td.generatorInfosMap.get(e)[2]=t)}function Sd(e){switch(e.type){case"CallExpression":return!0;case"MemberExpression":return Sd(e.object)}return!1}function G4(e,t,r){switch(r){case 112:if(t.callee===e&&Sd(e))return!0;break;case 42:return!hu(e)&&!(e.type==="CallExpression"&&hu(e.callee))&&e.type!=="ParenthesizedExpression"}return!1}function hu(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&hu(e.object);default:return!1}}function Q4(e,t){let r=z4[e.type];for(let i=r.length-1;i>=0;i--){let s=e[r[i]];if(s===t)return!0;if(Array.isArray(s)){let n=s.length-1;for(;n>=0&&s[n]===null;)n--;return n>=0&&s[n]===t}else if(s)return!1}return!1}});var gd=w(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.TokenMap=void 0;var Z4=he(),{traverseFast:e8,VISITOR_KEYS:t8}=Z4,du=class{constructor(t,r,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=i,e8(t,s=>{let n=this._getTokensIndexesOfNode(s);n.length>0&&this._nodesToTokenIndexes.set(s,n)}),this._tokensCache.clear()}has(t){return this._nodesToTokenIndexes.has(t)}getIndexes(t){return this._nodesToTokenIndexes.get(t)}find(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=0;s<i.length;s++){let n=i[s],a=this._tokens[n];if(r(a,n))return a}return null}findLastIndex(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=i.length-1;s>=0;s--){let n=i[s],a=this._tokens[n];if(r(a,n))return n}return-1}findMatching(t,r,i=0){let s=this._nodesToTokenIndexes.get(t);if(s){typeof r=="number"&&(r=String.fromCharCode(r));let n=0,a=i;if(a>1){let o=this._nodesOccurrencesCountCache.get(t);o?.test===r&&o.count<a&&(n=o.i+1,i-=o.count+1)}for(;n<s.length;n++){let o=this._tokens[s[n]];if(this.matchesOriginal(o,r)){if(i===0)return a>0&&this._nodesOccurrencesCountCache.set(t,{test:r,count:a,i:n}),o;i--}}}return null}matchesOriginal(t,r){return t.end-t.start!==r.length?!1:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[0]];return s.start!==t.start?!1:this.matchesOriginal(s,r)}endMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[i.length-1]];return s.end!==t.end?!1:this.matchesOriginal(s,r)}_getTokensIndexesOfNode(t){var r;if(t.start==null||t.end==null)return[];let{first:i,last:s}=this._findTokensOfNode(t,0,this._tokens.length-1),n=i,a=r8(t);(t.type==="ExportNamedDeclaration"||t.type==="ExportDefaultDeclaration")&&((r=t.declaration)==null?void 0:r.type)==="ClassDeclaration"&&a.next();let o=[];for(let l of a){if(l==null||l.start==null||l.end==null)continue;let u=this._findTokensOfNode(l,n,s),f=u.first;for(let g=n;g<f;g++)o.push(g);n=u.last+1}for(let l=n;l<=s;l++)o.push(l);return o}_findTokensOfNode(t,r,i){let s=this._tokensCache.get(t);if(s)return s;let n=this._findFirstTokenOfNode(t.start,r,i),a=this._findLastTokenOfNode(t.end,n,i);return this._tokensCache.set(t,{first:n,last:a}),{first:n,last:a}}_findFirstTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].start)i=s-1;else if(t>this._tokens[s].start)r=s+1;else return s}return r}_findLastTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].end)i=s-1;else if(t>this._tokens[s].end)r=s+1;else return s}return i}};On.TokenMap=du;function*r8(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r<e.quasis.length;r++)yield e.expressions[r-1],yield e.quasis[r];return}let t=t8[e.type];for(let r of t){let i=e[r];i&&(Array.isArray(i)?yield*i:yield i)}}});var Ed=w(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.default=void 0;var i8=Cp(),Dr=_r(),s8=fu(),n8=he(),a8=gd(),o8=An(),{isExpression:l8,isFunction:u8,isStatement:c8,isClassBody:p8,isTSInterfaceBody:f8,isTSEnumMember:h8}=n8,d8=/e/i,m8=/\.0+$/,bd=/[\n\r\u2028\u2029]/,y8=/[\n\r\u2028\u2029]|\*\//;function xd(e){return e.type==="CommentLine"||bd.test(e.value)}var mu=class{constructor(t,r,i=null,s=null){this.tokenContext=Dr.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=t,this._tokens=i,this._originalCode=s,this._indentRepeat=t.indent.style.length,this._inputMap=r?._inputMap||null,this._buf=new i8.default(r,t.indent.style[0]);let{preserveFormat:n,compact:a,concise:o,retainLines:l,retainFunctionParens:u}=t;n&&(this._flags|=1),a&&(this._flags|=2),o&&(this._flags|=4),l&&(this._flags|=8),u&&(this._flags|=16),(t.auxiliaryCommentBefore||t.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){let t=this._noLineTerminatorAfterNode;return t!==null&&(this._noLineTerminatorAfterNode=null),t}generate(t){return this.format.preserveFormat&&(this.tokenMap=new a8.TokenMap(t,this._tokens,this._originalCode),this._boundGetRawIdentifier=o8._getRawIdentifier.bind(this)),this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(t=this._flags){t&7||(this._indent+=this._indentRepeat)}dedent(t=this._flags){t&7||(this._indent-=this._indentRepeat)}semicolon(t=!1){let r=this._flags;if(r&32&&this._maybeAddAuxComment(),r&1){let i=this._currentNode;if(i.start!=null&&i.end!=null){if(!this.tokenMap.endMatches(i,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let s=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[s[s.length-1]].loc.start)}}t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!(this._flags&3))if(t)this._space();else{let r=this.getLastChar(!0);r!==0&&r!==32&&r!==10&&this._space()}}word(t,r=!1){this.tokenContext&=Dr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t);let s=this.getLastChar();(s===-2||s===-3||s===47&&t.charCodeAt(0)===47)&&this._space(),this._append(t,!1),this.setLastChar(-3),this._noLineTerminator=r}number(t,r){function i(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(t),Number.isInteger(r)&&!i(t)&&!d8.test(t)&&!m8.test(t)&&t.charCodeAt(t.length-1)!==46&&this.setLastChar(-2)}token(t,r=!1,i=0,s=!1){this.tokenContext&=Dr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,i);let n=this._flags;if(n&32&&this._maybeAddAuxComment(),n&1&&this._catchUpToCurrentToken(t,i),s){let a=t.charCodeAt(0);((a===45&&t==="--"||a===61)&&this.getLastChar()===33||a===43&&this.getLastChar()===43||a===45&&this.getLastChar()===45||a===46&&this.getLastChar()===-2)&&this._space()}this._append(t,r),this._noLineTerminator=!1}tokenChar(t,r=0){this.tokenContext&=Dr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,r);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t,r),(t===43&&this.getLastChar()===43||t===45&&this.getLastChar()===45||t===46&&this.getLastChar()===-2)&&this._space(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r=this._flags){if(!(t<=0)&&!(r&10)){if(r&4){this.space();return}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let i=0;i<t;i++)this._newline()}}endsWith(t){return this.getLastChar(!0)===t}getLastChar(t){return this._buf.getLastChar(t)}setLastChar(t){this._buf._last=t}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,i){!r||this.format.preserveFormat||(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,i))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=t}_space(){this._queue(32)}_newline(){this._buf._queuedChar===32&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(t,r=0){let i=this.tokenMap.findMatching(this._currentNode,t,r);i&&this._catchUpTo(i.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(t,r){this._maybeIndent(),this._buf.append(t,r)}_appendChar(t,r){r||this._maybeIndent(),this._buf.appendChar(t)}_queue(t){this._buf.queue(t),this.setLastChar(-1)}_maybeIndent(){let t=this._shouldIndent();t>0&&this._buf._appendChar(-1,t,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(t,r){let i=this._flags;if((i&1)===0){i&8&&r!=null&&r[t]&&this.catchUp(r[t].line);return}let s=r?.[t];s!=null&&this._catchUpTo(s)}_catchUpTo({line:t,column:r,index:i}){let s=t-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let a=0;a<s;a++)this._newline();let n=s>0?r:r-this._buf.getCurrentColumn();if(n>0){let a=this._originalCode?this._originalCode.slice(i-n,i).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(n);this._buf.append(a,!1,!0),this._buf.setSourcePosition(t,r),this.setLastChar(32)}}printTerminatorless(t){this._noLineTerminator=!0,this.print(t)}print(t,r=!1,i=!1,s){var n,a;if(!t)return;this._innerCommentsState=0;let{type:o,loc:l,extra:u}=t,f=this._flags,g=!1;t._compact&&(this._flags|=4,g=!0);let E=s8.generatorInfosMap.get(o);if(E===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(t.constructor.name)}`);let[A,v,O]=E,I=this._currentNode,_=this._currentTypeId;this._currentNode=t,this._currentTypeId=v,f&1&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let L;f&32&&(L=this._insideAux,this._insideAux=l==null,this._maybeAddAuxComment(this._insideAux&&!L));let te=0;i&&(te=this.tokenContext,te&Dr.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:te=0);let W=u!=null&&u.parenthesized,X=W&&f&1||W&&f&16&&v===71||I&&((0,Dr.parentNeedsParens)(t,I,_)||O!=null&&O(t,I,_,this.tokenContext,f&1?this._boundGetRawIdentifier:void 0));if(!X&&W&&(n=t.leadingComments)!=null&&n.length&&t.leadingComments[0].type==="CommentBlock")switch(_){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(I.callee!==t)break;default:X=!0}let ce=!1;!X&&this._noLineTerminator&&((a=t.leadingComments)!=null&&a.some(xd)||f&8&&l&&l.start.line>this._buf.getCurrentLine())&&(X=!0,ce=!0);let we;if(!X&&(r||(r=!!I&&this._noLineTerminatorAfterNode===I&&(0,Dr.isLastChild)(I,t)),r)){var je;(je=t.trailingComments)!=null&&je.some(xd)?l8(t)&&(X=!0):(we=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=t)}X&&(this.tokenChar(40),ce&&this.indent(),this._innerCommentsState=0,i||(te=this.tokenContext),te&Dr.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),we=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(t,I),this.exactSource(v===139||v===66?null:l,A.bind(this,t,I)),X?(this._printTrailingComments(t,I),ce&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,I)):this._printTrailingComments(t,I,s),te&&(this.tokenContext=te),this._currentNode=I,this._currentTypeId=_,g&&(this._flags=f),f&32&&(this._insideAux=L),we!=null&&(this._noLineTerminatorAfterNode=we),this._innerCommentsState=0}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){let r=t.extra;if(r?.raw!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r,i,s,n,a,o){if(!(t!=null&&t.length))return;let l=this._flags;if(i==null&&l&8){var u;let E=(u=t[0].loc)==null?void 0:u.start.line;E!=null&&E!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent(l);let f=t.length;for(let E=0;E<f;E++){let A=t[E];if(A&&(r&&E===0&&this._buf.hasContent()&&this.newline(1,l),this.print(A,!1,a,o||0),s!=null&&(E<f-1?s.call(this,E,!1):n&&s.call(this,E,!0)),r))if(E+1===f)this.newline(1,l);else{let v=this._lastCommentLine;if(v>0){var g;let O=(((g=t[E+1].loc)==null?void 0:g.start.line)||0)-v;if(O>=0){this.newline(O||1,l);continue}}this.newline(1,l)}}i&&this.dedent(l)}printAndIndentOnComments(t){let r=t.leadingComments&&t.leadingComments.length>0;r&&this.indent(),this.print(t),r&&this.dedent()}printBlock(t){t.type!=="EmptyStatement"&&this.space(),this.print(t)}_printTrailingComments(t,r,i){let{innerComments:s,trailingComments:n}=t;s!=null&&s.length&&this._printComments(2,s,t,r,i),n!=null&&n.length?this._printComments(2,n,t,r,i):this._lastCommentLine=0}_printLeadingComments(t,r){let i=t.leadingComments;i!=null&&i.length&&this._printComments(0,i,t,r)}_maybePrintInnerComments(t,r){var i;let s=this._innerCommentsState;switch(s&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((s&4)>0,(i=this.tokenMap)==null?void 0:i.findMatching(this._currentNode,t,r))}}printInnerComments(t=!0,r){let i=this._currentNode,s=i.innerComments;if(!(s!=null&&s.length)){this._innerCommentsState=2;return}let n=this.endsWith(32);switch(t&&this.indent(),this._printComments(1,s,i,void 0,void 0,r)){case 2:this._innerCommentsState=2;case 1:n&&this.space()}t&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(t,r,i,s){this.printJoin(t,!0,r??!1,void 0,void 0,i,s)}printList(t,r,i,s,n,a){this.printJoin(t,i,s,n??T8,r,a)}shouldPrintTrailingComma(t){if(!this.tokenMap)return null;let r=this.tokenMap.findLastIndex(this._currentNode,i=>this.tokenMap.matchesOriginal(i,typeof t=="number"?String.fromCharCode(t):t));return r<=0?null:this.tokenMap.matchesOriginal(this._tokens[r-1],",")}_shouldPrintComment(t,r){if(t.ignore||this._printedComments.has(t))return 0;if(this._noLineTerminator&&y8.test(t.value))return 2;if(r&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,s=>s.value===t.value);if(i&&i.start>r.start)return 2}return this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0}_printComment(t,r){let i=this._noLineTerminator,s=t.type==="CommentBlock",n=s&&r!==1&&!i;switch(n&&this._buf.hasContent()&&r!==2&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let a;if(s){if(a=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var o;let l=(o=t.loc)==null?void 0:o.start.column;if(l){let u=new RegExp("\\n\\s{1,"+l+"}","g");a=a.replace(u,`
|
|
9
|
+
`)}`)}return r.shapeOf=e,r}function QP(){function e(t){var r;let i=t;for(;t;){let{type:s}=i;if(s==="OptionalCallExpression"){if(i.optional)return;i=i.callee;continue}if(s==="OptionalMemberExpression"){if(i.optional)return;i=i.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return e}function Gp(...e){function t(...r){for(let i of e)i(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var ZP=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),eA=new Set(["default","optional","deprecated","validate"]),eo={};function tA(...e){return(t,r={})=>{let i=r.aliases;if(!i){var s;r.inherits&&(i=(s=eo[r.inherits].aliases)==null?void 0:s.slice()),i??(i=[]),r.aliases=i}let n=e.filter(a=>!i.includes(a));i.unshift(...n),Qp(t,r)}}function Qp(e,t={}){let r=t.inherits&&eo[t.inherits]||{},i=t.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],f=u.default;if(Array.isArray(f)?f.length>0:f&&typeof f=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[l]={default:Array.isArray(f)?[]:f,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let s=t.visitor||r.visitor||[],n=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!ZP.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(UP[t.deprecatedAlias]=e);for(let o of s.concat(a))i[o]=i[o]||{};for(let o of Object.keys(i)){let l=i[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=ro(Gs(l.default)));for(let u of Object.keys(l))if(!eA.has(u))throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}FP[e]=t.visitor=s,qP[e]=t.builder=a,RP[e]=t.fields=i,jP[e]=t.aliases=n,n.forEach(o=>{Za[o]=Za[o]||[],Za[o].push(e)}),t.validate&&(KP[e]=t.validate),t.unionShape&&(VP[e]=t.unionShape),eo[e]=t}});var os=_(ct=>{"use strict";d();Object.defineProperty(ct,"__esModule",{value:!0});ct.patternLikeCommon=ct.importAttributes=ct.functionTypeAnnotationCommon=ct.functionDeclarationCommon=ct.functionCommon=ct.classMethodOrPropertyUnionShapeCommon=ct.classMethodOrPropertyCommon=ct.classMethodOrDeclareMethodCommon=void 0;var Tt=gi(),rA=xi(),Zp=is(),iA=Yp(),Ei=bi(),g=sr(),as=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,g.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,g.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,g.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});ct.classMethodOrPropertyUnionShapeCommon=as;var J=(0,g.defineAliasedType)("Standardized");J("ArrayExpression",{fields:{elements:{validate:(0,g.arrayOf)((0,g.assertNodeOrValueType)("null","Expression","SpreadElement")),default:v.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});J("AssignmentExpression",{fields:{operator:{validate:v.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){let e=(0,g.assertOneOf)(...Ei.ASSIGNMENT_OPERATORS),t=(0,g.assertOneOf)("=");return function(r,i,s){((0,Tt.default)("Pattern",r.left)?t:e)(r,i,s)}})(),{oneOf:Ei.ASSIGNMENT_OPERATORS}):(0,g.assertValueType)("string")},left:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,g.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,g.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});J("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,g.assertOneOf)(...Ei.BINARY_OPERATORS)},left:{validate:(function(){let e=(0,g.assertNodeType)("Expression"),t=(0,g.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,n){(i.operator==="in"?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,g.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});J("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,g.assertValueType)("string")}}});J("Directive",{visitor:["value"],fields:{value:{validate:(0,g.assertNodeType)("DirectiveLiteral")}}});J("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,g.assertValueType)("string")}}});J("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,g.arrayOfType)("Directive"),default:[]},body:(0,g.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});J("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,g.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});J("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,g.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,g.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,g.assertNodeType)("TypeParameterInstantiation"),optional:!0}},v.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,g.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,g.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});J("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,g.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,g.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});J("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,g.assertNodeType)("Expression")},consequent:{validate:(0,g.assertNodeType)("Expression")},alternate:{validate:(0,g.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});J("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,g.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});J("DebuggerStatement",{aliases:["Statement"]});J("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,g.assertNodeType)("Expression")},body:{validate:(0,g.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});J("EmptyStatement",{aliases:["Statement"]});J("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,g.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});J("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,g.assertNodeType)("Program")},comments:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.assertEach)((0,g.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,g.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});J("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,g.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,g.assertNodeType)("Expression")},body:{validate:(0,g.assertNodeType)("Statement")}}});J("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,g.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,g.assertNodeType)("Expression"),optional:!0},update:{validate:(0,g.assertNodeType)("Expression"),optional:!0},body:{validate:(0,g.assertNodeType)("Statement")}}});var Pi=()=>({params:(0,g.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});ct.functionCommon=Pi;var Hr=()=>({returnType:{validate:(0,g.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,g.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});ct.functionTypeAnnotationCommon=Hr;var ef=()=>Object.assign({},Pi(),{declare:{validate:(0,g.assertValueType)("boolean"),optional:!0},id:{validate:(0,g.assertNodeType)("Identifier"),optional:!0}});ct.functionDeclarationCommon=ef;J("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},ef(),Hr(),{body:{validate:(0,g.assertNodeType)("BlockStatement")},predicate:{validate:(0,g.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:v.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,g.assertNodeType)("Identifier");return function(t,r,i){(0,Tt.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});J("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Pi(),Hr(),{id:{validate:(0,g.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,g.assertNodeType)("BlockStatement")},predicate:{validate:(0,g.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Ai=()=>({typeAnnotation:{validate:(0,g.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,g.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0}});ct.patternLikeCommon=Ai;J("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Ai(),{name:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.chain)((0,g.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,rA.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,g.assertValueType)("string")}}),validate:v.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let i=/\.(\w+)$/.exec(t.toString());if(!i)return;let[,s]=i,n={computed:!1};if(s==="property"){if((0,Tt.default)("MemberExpression",e,n)||(0,Tt.default)("OptionalMemberExpression",e,n))return}else if(s==="key"){if((0,Tt.default)("Property",e,n)||(0,Tt.default)("Method",e,n))return}else if(s==="exported"){if((0,Tt.default)("ExportSpecifier",e))return}else if(s==="imported"){if((0,Tt.default)("ImportSpecifier",e,{imported:r}))return}else if(s==="meta"&&(0,Tt.default)("MetaProperty",e,{meta:r}))return;if(((0,Zp.isKeyword)(r.name)||(0,Zp.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});J("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,g.assertNodeType)("Expression")},consequent:{validate:(0,g.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,g.assertNodeType)("Statement")}}});J("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,g.assertNodeType)("Identifier")},body:{validate:(0,g.assertNodeType)("Statement")}}});J("StringLiteral",{builder:["value"],fields:{value:{validate:(0,g.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});J("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,g.chain)((0,g.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let i=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});J("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});J("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,g.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});J("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,g.assertValueType)("string")},flags:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.chain)((0,g.assertValueType)("string"),Object.assign(function(e,t,r){let i=/[^dgimsuvy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,g.assertValueType)("string"),default:""}}});J("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,g.assertOneOf)(...Ei.LOGICAL_OPERATORS)},left:{validate:(0,g.assertNodeType)("Expression")},right:{validate:(0,g.assertNodeType)("Expression")}}});J("MemberExpression",{builder:["object","property","computed",...v.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,g.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,g.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,g.assertNodeType)("Expression","Super")},property:{validate:(function(){let e=(0,g.assertNodeType)("Identifier","PrivateName"),t=(0,g.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r})()},computed:{default:!1}},v.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,g.assertValueType)("boolean"),optional:!0}})});J("NewExpression",{inherits:"CallExpression"});J("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,g.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,g.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,g.arrayOfType)("Directive"),default:[]},body:(0,g.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});J("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,g.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});J("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},as(),{fields:Object.assign({},Pi(),Hr(),{kind:Object.assign({validate:(0,g.assertOneOf)("method","get","set")},v.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){let e=(0,g.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,g.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r})()},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,g.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));J("ObjectProperty",{builder:["key","value","computed","shorthand",...v.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,g.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,g.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(function(){let e=(0,g.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,g.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,g.assertNodeType)("Expression","PatternLike")},shorthand:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.chain)((0,g.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,Tt.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,g.assertValueType)("boolean"),default:!1},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:v.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,g.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,g.assertNodeType)("Expression");return function(r,i,s){((0,Tt.default)("ObjectPattern",r)?e:t)(s,"value",s.value)}})():void 0});J("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Ai(),{argument:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,g.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:v.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(e[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}:void 0});J("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,g.assertNodeType)("Expression"),optional:!0}}});J("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,g.validateArrayOfType)("Expression")},aliases:["Expression"]});J("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,g.assertNodeType)("Expression")}}});J("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,g.assertNodeType)("Expression"),optional:!0},consequent:(0,g.validateArrayOfType)("Statement")}});J("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,g.assertNodeType)("Expression")},cases:(0,g.validateArrayOfType)("SwitchCase")}});J("ThisExpression",{aliases:["Expression"]});J("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,g.assertNodeType)("Expression")}}});J("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.chain)((0,g.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,g.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,g.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,g.assertNodeType)("BlockStatement")}}});J("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,g.assertNodeType)("Expression")},operator:{validate:(0,g.assertOneOf)(...Ei.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});J("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.assertNodeType)("Identifier","MemberExpression"):(0,g.assertNodeType)("Expression")},operator:{validate:(0,g.assertOneOf)(...Ei.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});J("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,g.assertValueType)("boolean"),optional:!0},kind:{validate:(0,g.assertOneOf)("var","let","const","using","await using")},declarations:(0,g.validateArrayOfType)("VariableDeclarator")},validate:v.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,g.assertNodeType)("Identifier","Placeholder"),t=(0,g.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,g.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(i,s,n){let{kind:a,declarations:o}=n,l=(0,Tt.default)("ForXStatement",i,{left:n});if(l&&o.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(let u of o)a==="const"||a==="let"||a==="var"?!l&&!u.init?e(u,"id",u.id):t(u,"id",u.id):r(u,"id",u.id)}})():void 0});J("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,g.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,g.assertValueType)("boolean")},init:{optional:!0,validate:(0,g.assertNodeType)("Expression")}}});J("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,g.assertNodeType)("Expression")},body:{validate:(0,g.assertNodeType)("Statement")}}});J("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,g.assertNodeType)("Expression")},body:{validate:(0,g.assertNodeType)("Statement")}}});J("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ai(),{left:{validate:(0,g.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,g.assertNodeType)("Expression")},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0}})});J("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ai(),{elements:{validate:(0,g.chain)((0,g.assertValueType)("array"),(0,g.assertEach)((0,g.assertNodeOrValueType)("null","PatternLike")))}})});J("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Pi(),Hr(),{expression:{validate:(0,g.assertValueType)("boolean")},body:{validate:(0,g.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,g.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});J("ClassBody",{visitor:["body"],fields:{body:(0,g.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});J("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,g.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,g.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,g.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,g.assertNodeType)("Expression")},superTypeParameters:{validate:(0,g.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,g.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,g.assertNodeType)("InterfaceExtends"),optional:!0}}});J("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,g.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,g.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,g.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,g.assertNodeType)("Expression")},superTypeParameters:{validate:(0,g.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,g.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,g.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,g.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,g.assertValueType)("boolean"),optional:!0}},validate:v.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,g.assertNodeType)("Identifier");return function(t,r,i){(0,Tt.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});var en=ct.importAttributes={attributes:{optional:!0,validate:(0,g.arrayOfType)("ImportAttribute")}};en.assertions={deprecated:!0,optional:!0,validate:(0,g.arrayOfType)("ImportAttribute")};J("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,g.assertNodeType)("StringLiteral")},exportKind:(0,g.validateOptional)((0,g.assertOneOf)("type","value"))},en)});J("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,g.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,g.validateOptional)((0,g.assertOneOf)("value"))}});J("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.chain)((0,g.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,g.assertNodeType)("Declaration")}},en,{specifiers:{default:[],validate:(0,g.arrayOf)((function(){let e=(0,g.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,g.assertNodeType)("ExportSpecifier");return v.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,i,s){(r.source?e:t)(r,i,s)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e})())},source:{validate:(0,g.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,g.validateOptional)((0,g.assertOneOf)("type","value"))})});J("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,g.assertNodeType)("Identifier")},exported:{validate:(0,g.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,g.assertOneOf)("type","value"),optional:!0}}});J("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(function(){if(!v.env.BABEL_TYPES_8_BREAKING)return(0,g.assertNodeType)("VariableDeclaration","LVal");let e=(0,g.assertNodeType)("VariableDeclaration"),t=(0,g.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,i,s){(0,Tt.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,g.assertNodeType)("Expression")},body:{validate:(0,g.assertNodeType)("Statement")},await:{default:!1}}});J("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},en,{module:{optional:!0,validate:(0,g.assertValueType)("boolean")},phase:{default:null,validate:(0,g.assertOneOf)("source","defer")},specifiers:(0,g.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,g.assertNodeType)("StringLiteral")},importKind:{validate:(0,g.assertOneOf)("type","typeof","value"),optional:!0}})});J("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,g.assertNodeType)("Identifier")}}});J("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,g.assertNodeType)("Identifier")}}});J("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,g.assertNodeType)("Identifier")},imported:{validate:(0,g.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,g.assertOneOf)("type","typeof","value"),optional:!0}}});J("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,g.assertOneOf)("source","defer")},source:{validate:(0,g.assertNodeType)("Expression")},options:{validate:(0,g.assertNodeType)("Expression"),optional:!0}}});J("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.chain)((0,g.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,Tt.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,g.assertNodeType)("Identifier")},property:{validate:(0,g.assertNodeType)("Identifier")}}});var tn=()=>({abstract:{validate:(0,g.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,g.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,g.assertValueType)("boolean"),optional:!0},key:{validate:(0,g.chain)((function(){let e=(0,g.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,g.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,g.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});ct.classMethodOrPropertyCommon=tn;var io=()=>Object.assign({},Pi(),tn(),{params:(0,g.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,g.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,g.chain)((0,g.assertValueType)("string"),(0,g.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0}});ct.classMethodOrDeclareMethodCommon=io;J("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},as(),{fields:Object.assign({},io(),Hr(),{body:{validate:(0,g.assertNodeType)("BlockStatement")}})}));J("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ai(),{properties:(0,g.validateArrayOfType)("RestElement","ObjectProperty")})});J("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,g.assertNodeType)("Expression")}}});J("Super",{aliases:["Expression"]});J("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,g.assertNodeType)("Expression")},quasi:{validate:(0,g.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,g.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});J("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,g.chain)((0,g.assertShape)({raw:{validate:(0,g.assertValueType)("string")},cooked:{validate:(0,g.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,iA.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!i)throw new Error("Invalid raw");t.value.cooked=a?null:n})},tail:{default:!1}}});J("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,g.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,g.chain)((0,g.assertValueType)("array"),(0,g.assertEach)((0,g.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
|
|
10
|
+
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});J("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.chain)((0,g.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,g.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,g.assertNodeType)("Expression")}}});J("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,g.assertNodeType)("Expression")}}});J("Import",{aliases:["Expression"]});J("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,g.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});J("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,g.assertNodeType)("Identifier")}}});J("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,g.assertNodeType)("Expression")},property:{validate:(function(){let e=(0,g.assertNodeType)("Identifier"),t=(0,g.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.chain)((0,g.assertValueType)("boolean"),(0,g.assertOptionalChainStart)()):(0,g.assertValueType)("boolean")}}});J("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,g.assertNodeType)("Expression")},arguments:(0,g.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:v.env.BABEL_TYPES_8_BREAKING?(0,g.chain)((0,g.assertValueType)("boolean"),(0,g.assertOptionalChainStart)()):(0,g.assertValueType)("boolean")},typeArguments:{validate:(0,g.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,g.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});J("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},as(),{fields:Object.assign({},tn(),{value:{validate:(0,g.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,g.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,g.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,g.assertValueType)("boolean"),optional:!0},declare:{validate:(0,g.assertValueType)("boolean"),optional:!0},variance:{validate:(0,g.assertNodeType)("Variance"),optional:!0}})}));J("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},as(!0),{fields:Object.assign({},tn(),{key:{validate:(0,g.chain)((function(){let e=(0,g.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,g.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,g.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,g.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,g.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,g.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,g.assertValueType)("boolean"),optional:!0},declare:{validate:(0,g.assertValueType)("boolean"),optional:!0},variance:{validate:(0,g.assertNodeType)("Variance"),optional:!0}})}));J("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,g.assertNodeType)("PrivateName")},value:{validate:(0,g.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,g.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,g.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,g.assertValueType)("boolean"),default:!1},readonly:{validate:(0,g.assertValueType)("boolean"),optional:!0},optional:{validate:(0,g.assertValueType)("boolean"),optional:!0},definite:{validate:(0,g.assertValueType)("boolean"),optional:!0},variance:{validate:(0,g.assertNodeType)("Variance"),optional:!0}}});J("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},io(),Hr(),{kind:{validate:(0,g.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,g.assertNodeType)("PrivateName")},body:{validate:(0,g.assertNodeType)("BlockStatement")}})});J("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,g.assertNodeType)("Identifier")}}});J("StaticBlock",{visitor:["body"],fields:{body:(0,g.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});J("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,g.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,g.assertNodeType)("StringLiteral")}}})});var rf=_(()=>{"use strict";d();var tf=os(),w=sr(),re=(0,w.defineAliasedType)("Flow"),so=e=>{let t=e==="DeclareClass";re(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),extends:(0,w.validateOptional)((0,w.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,w.validateOptional)((0,w.arrayOfType)("InterfaceExtends")),implements:(0,w.validateOptional)((0,w.arrayOfType)("ClassImplements"))}:{},{body:(0,w.validateType)("ObjectTypeAnnotation")})})};re("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,w.validateType)("FlowType")}});re("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,w.validate)((0,w.assertValueType)("boolean"))}});re("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterInstantiation")}});so("DeclareClass");re("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),predicate:(0,w.validateOptionalType)("DeclaredPredicate")}});so("DeclareInterface");re("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier","StringLiteral"),body:(0,w.validateType)("BlockStatement"),kind:(0,w.validateOptional)((0,w.assertOneOf)("CommonJS","ES"))}});re("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,w.validateType)("TypeAnnotation")}});re("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),right:(0,w.validateType)("FlowType")}});re("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,w.validateOptionalType)("FlowType"),impltype:(0,w.validateOptionalType)("FlowType")}});re("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier")}});re("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,w.validateOptionalType)("Flow"),specifiers:(0,w.validateOptional)((0,w.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,w.validateOptionalType)("StringLiteral"),default:(0,w.validateOptional)((0,w.assertValueType)("boolean"))},tf.importAttributes)});re("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,w.validateType)("StringLiteral"),exportKind:(0,w.validateOptional)((0,w.assertOneOf)("type","value"))},tf.importAttributes)});re("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,w.validateType)("Flow")}});re("ExistsTypeAnnotation",{aliases:["FlowType"]});re("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),params:(0,w.validateArrayOfType)("FunctionTypeParam"),rest:(0,w.validateOptionalType)("FunctionTypeParam"),this:(0,w.validateOptionalType)("FunctionTypeParam"),returnType:(0,w.validateType)("FlowType")}});re("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,w.validateOptionalType)("Identifier"),typeAnnotation:(0,w.validateType)("FlowType"),optional:(0,w.validateOptional)((0,w.assertValueType)("boolean"))}});re("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,w.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterInstantiation")}});re("InferredPredicate",{aliases:["FlowPredicate"]});re("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,w.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterInstantiation")}});so("InterfaceDeclaration");re("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,w.validateOptional)((0,w.arrayOfType)("InterfaceExtends")),body:(0,w.validateType)("ObjectTypeAnnotation")}});re("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,w.validate)((0,w.arrayOfType)("FlowType"))}});re("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,w.validateType)("FlowType")}});re("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,w.validate)((0,w.assertValueType)("number"))}});re("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,w.validate)((0,w.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,w.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,w.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,w.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,w.assertValueType)("boolean"),default:!1},inexact:(0,w.validateOptional)((0,w.assertValueType)("boolean"))}});re("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,w.validateType)("Identifier"),value:(0,w.validateType)("FlowType"),optional:(0,w.validate)((0,w.assertValueType)("boolean")),static:(0,w.validate)((0,w.assertValueType)("boolean")),method:(0,w.validate)((0,w.assertValueType)("boolean"))}});re("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,w.validateType)("FlowType"),static:(0,w.validate)((0,w.assertValueType)("boolean"))}});re("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,w.validateOptionalType)("Identifier"),key:(0,w.validateType)("FlowType"),value:(0,w.validateType)("FlowType"),static:(0,w.validate)((0,w.assertValueType)("boolean")),variance:(0,w.validateOptionalType)("Variance")}});re("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,w.validateType)("Identifier","StringLiteral"),value:(0,w.validateType)("FlowType"),kind:(0,w.validate)((0,w.assertOneOf)("init","get","set")),static:(0,w.validate)((0,w.assertValueType)("boolean")),proto:(0,w.validate)((0,w.assertValueType)("boolean")),optional:(0,w.validate)((0,w.assertValueType)("boolean")),variance:(0,w.validateOptionalType)("Variance"),method:(0,w.validate)((0,w.assertValueType)("boolean"))}});re("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,w.validateType)("FlowType")}});re("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,w.validateOptionalType)("FlowType"),impltype:(0,w.validateType)("FlowType")}});re("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,w.validateType)("Identifier"),qualification:(0,w.validateType)("Identifier","QualifiedTypeIdentifier")}});re("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,w.validate)((0,w.assertValueType)("string"))}});re("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,w.validate)((0,w.arrayOfType)("FlowType"))}});re("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,w.validateType)("FlowType")}});re("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,w.validateType)("Identifier"),typeParameters:(0,w.validateOptionalType)("TypeParameterDeclaration"),right:(0,w.validateType)("FlowType")}});re("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,w.validateType)("FlowType")}});re("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,w.validateType)("Expression"),typeAnnotation:(0,w.validateType)("TypeAnnotation")}});re("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,w.validate)((0,w.assertValueType)("string")),bound:(0,w.validateOptionalType)("TypeAnnotation"),default:(0,w.validateOptionalType)("FlowType"),variance:(0,w.validateOptionalType)("Variance")}});re("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,w.validate)((0,w.arrayOfType)("TypeParameter"))}});re("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,w.validate)((0,w.arrayOfType)("FlowType"))}});re("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,w.validate)((0,w.arrayOfType)("FlowType"))}});re("Variance",{builder:["kind"],fields:{kind:(0,w.validate)((0,w.assertOneOf)("minus","plus"))}});re("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});re("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,w.validateType)("Identifier"),body:(0,w.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});re("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,w.validate)((0,w.assertValueType)("boolean")),members:(0,w.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,w.validate)((0,w.assertValueType)("boolean"))}});re("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,w.validate)((0,w.assertValueType)("boolean")),members:(0,w.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,w.validate)((0,w.assertValueType)("boolean"))}});re("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,w.validate)((0,w.assertValueType)("boolean")),members:(0,w.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,w.validate)((0,w.assertValueType)("boolean"))}});re("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,w.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,w.validate)((0,w.assertValueType)("boolean"))}});re("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,w.validateType)("Identifier"),init:(0,w.validateType)("BooleanLiteral")}});re("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,w.validateType)("Identifier"),init:(0,w.validateType)("NumericLiteral")}});re("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,w.validateType)("Identifier"),init:(0,w.validateType)("StringLiteral")}});re("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,w.validateType)("Identifier")}});re("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,w.validateType)("FlowType"),indexType:(0,w.validateType)("FlowType")}});re("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,w.validateType)("FlowType"),indexType:(0,w.validateType)("FlowType"),optional:(0,w.validate)((0,w.assertValueType)("boolean"))}})});var sf=_(()=>{"use strict";d();var He=sr(),St=(0,He.defineAliasedType)("JSX");St("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,He.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,He.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});St("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,He.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});St("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,He.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,He.assertNodeType)("JSXClosingElement")},children:(0,He.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,He.assertValueType)("boolean"),optional:!0}})});St("JSXEmptyExpression",{});St("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,He.assertNodeType)("Expression","JSXEmptyExpression")}}});St("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,He.assertNodeType)("Expression")}}});St("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,He.assertValueType)("string")}}});St("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,He.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,He.assertNodeType)("JSXIdentifier")}}});St("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,He.assertNodeType)("JSXIdentifier")},name:{validate:(0,He.assertNodeType)("JSXIdentifier")}}});St("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,He.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,He.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,He.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,He.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});St("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,He.assertNodeType)("Expression")}}});St("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,He.assertValueType)("string")}}});St("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,He.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,He.assertNodeType)("JSXClosingFragment")},children:(0,He.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});St("JSXOpeningFragment",{aliases:["Immutable"]});St("JSXClosingFragment",{aliases:["Immutable"]})});var oo=_(wr=>{"use strict";d();Object.defineProperty(wr,"__esModule",{value:!0});wr.PLACEHOLDERS_FLIPPED_ALIAS=wr.PLACEHOLDERS_ALIAS=wr.PLACEHOLDERS=void 0;var sA=sr(),nA=wr.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],ao=wr.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of nA){let t=sA.ALIAS_KEYS[e];t!=null&&t.length&&(ao[e]=t)}var no=wr.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(ao).forEach(e=>{ao[e].forEach(t=>{hasOwnProperty.call(no,t)||(no[t]=[]),no[t].push(e)})})});var nf=_(()=>{"use strict";d();var rn=sr(),aA=oo(),oA=os(),lo=(0,rn.defineAliasedType)("Miscellaneous");lo("Noop",{visitor:[]});lo("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,rn.assertNodeType)("Identifier")},expectedNode:{validate:(0,rn.assertOneOf)(...aA.PLACEHOLDERS)}},(0,oA.patternLikeCommon)())});lo("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,rn.assertValueType)("string")}}})});var af=_(()=>{"use strict";d();var Ye=sr();(0,Ye.default)("ArgumentPlaceholder",{});(0,Ye.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:v.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Ye.assertNodeType)("Expression")},callee:{validate:(0,Ye.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Ye.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Ye.assertNodeType)("Expression")}}});(0,Ye.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Ye.assertNodeType)("BlockStatement")},async:{validate:(0,Ye.assertValueType)("boolean"),default:!1}}});(0,Ye.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Ye.assertNodeType)("Identifier")}}});(0,Ye.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Ye.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Ye.default)("TupleExpression",{fields:{elements:{validate:(0,Ye.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Ye.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Ye.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Ye.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Ye.assertNodeType)("Program")}},aliases:["Expression"]});(0,Ye.default)("TopicReference",{aliases:["Expression"]});(0,Ye.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Ye.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ye.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Ye.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ye.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Ye.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var hf=_(()=>{"use strict";d();var L=sr(),uo=os(),lA=gi(),oe=(0,L.defineAliasedType)("TypeScript"),It=(0,L.assertValueType)("boolean"),of=()=>({returnType:{validate:(0,L.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,L.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});oe("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,L.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,L.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,L.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,L.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,L.arrayOfType)("Decorator"),optional:!0}}});oe("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,uo.functionDeclarationCommon)(),of())});oe("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,uo.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,uo.classMethodOrDeclareMethodCommon)(),of())}));oe("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,L.validateType)("TSEntityName"),right:(0,L.validateType)("Identifier")}});var sn=()=>({typeParameters:(0,L.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,L.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,L.validateOptionalType)("TSTypeAnnotation")}),lf={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:sn()};oe("TSCallSignatureDeclaration",lf);oe("TSConstructSignatureDeclaration",lf);var uf=()=>({key:(0,L.validateType)("Expression"),computed:{default:!1},optional:(0,L.validateOptional)(It)});oe("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},uf(),{readonly:(0,L.validateOptional)(It),typeAnnotation:(0,L.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,L.assertOneOf)("get","set")}})});oe("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},sn(),uf(),{kind:{validate:(0,L.assertOneOf)("method","get","set")}})});oe("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,L.validateOptional)(It),static:(0,L.validateOptional)(It),parameters:(0,L.validateArrayOfType)("Identifier"),typeAnnotation:(0,L.validateOptionalType)("TSTypeAnnotation")}});var uA=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of uA)oe(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});oe("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var cf={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};oe("TSFunctionType",Object.assign({},cf,{fields:sn()}));oe("TSConstructorType",Object.assign({},cf,{fields:Object.assign({},sn(),{abstract:(0,L.validateOptional)(It)})}));oe("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,L.validateType)("TSEntityName"),typeParameters:(0,L.validateOptionalType)("TSTypeParameterInstantiation")}});oe("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,L.validateType)("Identifier","TSThisType"),typeAnnotation:(0,L.validateOptionalType)("TSTypeAnnotation"),asserts:(0,L.validateOptional)(It)}});oe("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,L.validateType)("TSEntityName","TSImportType"),typeParameters:(0,L.validateOptionalType)("TSTypeParameterInstantiation")}});oe("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,L.validateArrayOfType)("TSTypeElement")}});oe("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,L.validateType)("TSType")}});oe("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,L.validateArrayOfType)("TSType","TSNamedTupleMember")}});oe("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,L.validateType)("TSType")}});oe("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,L.validateType)("TSType")}});oe("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,L.validateType)("Identifier"),optional:{validate:It,default:!1},elementType:(0,L.validateType)("TSType")}});var pf={aliases:["TSType"],visitor:["types"],fields:{types:(0,L.validateArrayOfType)("TSType")}};oe("TSUnionType",pf);oe("TSIntersectionType",pf);oe("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,L.validateType)("TSType"),extendsType:(0,L.validateType)("TSType"),trueType:(0,L.validateType)("TSType"),falseType:(0,L.validateType)("TSType")}});oe("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,L.validateType)("TSTypeParameter")}});oe("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,L.validateType)("TSType")}});oe("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,L.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,L.validateType)("TSType")}});oe("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,L.validateType)("TSType"),indexType:(0,L.validateType)("TSType")}});oe("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,L.validateType)("TSTypeParameter")},{readonly:(0,L.validateOptional)((0,L.assertOneOf)(!0,!1,"+","-")),optional:(0,L.validateOptional)((0,L.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,L.validateOptionalType)("TSType"),nameType:(0,L.validateOptionalType)("TSType")})});oe("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,L.validateArrayOfType)("TemplateElement"),types:{validate:(0,L.chain)((0,L.assertValueType)("array"),(0,L.assertEach)((0,L.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
|
|
11
|
+
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});oe("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){let e=(0,L.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,L.assertOneOf)("-"),r=(0,L.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),i=function(n,a,o){(0,lA.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):r(n,a,o)};return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i})()}}});oe("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,L.validateType)("TSEntityName"),typeParameters:(0,L.validateOptionalType)("TSTypeParameterInstantiation")}});oe("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,L.validateOptional)(It),id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,L.validateOptional)((0,L.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,L.validateType)("TSInterfaceBody")}});oe("TSInterfaceBody",{visitor:["body"],fields:{body:(0,L.validateArrayOfType)("TSTypeElement")}});oe("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,L.validateOptional)(It),id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,L.validateType)("TSType")}});oe("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,L.validateType)("Expression"),typeParameters:(0,L.validateOptionalType)("TSTypeParameterInstantiation")}});var ff={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,L.validateType)("Expression"),typeAnnotation:(0,L.validateType)("TSType")}};oe("TSAsExpression",ff);oe("TSSatisfiesExpression",ff);oe("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,L.validateType)("TSType"),expression:(0,L.validateType)("Expression")}});oe("TSEnumBody",{visitor:["members"],fields:{members:(0,L.validateArrayOfType)("TSEnumMember")}});oe("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,L.validateOptional)(It),const:(0,L.validateOptional)(It),id:(0,L.validateType)("Identifier"),members:(0,L.validateArrayOfType)("TSEnumMember"),initializer:(0,L.validateOptionalType)("Expression"),body:(0,L.validateOptionalType)("TSEnumBody")}});oe("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,L.validateType)("Identifier","StringLiteral"),initializer:(0,L.validateOptionalType)("Expression")}});oe("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,L.assertOneOf)("global","module","namespace")},declare:(0,L.validateOptional)(It)},{global:(0,L.validateOptional)(It)},{id:(0,L.validateType)("Identifier","StringLiteral"),body:(0,L.validateType)("TSModuleBlock","TSModuleDeclaration")})});oe("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,L.validateArrayOfType)("Statement")}});oe("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,L.validateType)("StringLiteral")},{qualifier:(0,L.validateOptionalType)("TSEntityName")},{typeParameters:(0,L.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,L.assertNodeType)("ObjectExpression"),optional:!0}})});oe("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,L.validate)(It)},{id:(0,L.validateType)("Identifier"),moduleReference:(0,L.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,L.assertOneOf)("type","value"),optional:!0}})});oe("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,L.validateType)("StringLiteral")}});oe("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,L.validateType)("Expression")}});oe("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,L.validateType)("Expression")}});oe("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,L.validateType)("Identifier")}});oe("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,L.assertNodeType)("TSType")}}});oe("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,L.validateArrayOfType)("TSType")}});oe("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,L.validateArrayOfType)("TSTypeParameter")}});oe("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,L.assertValueType)("string")},in:{validate:(0,L.assertValueType)("boolean"),optional:!0},out:{validate:(0,L.assertValueType)("boolean"),optional:!0},const:{validate:(0,L.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,L.assertNodeType)("TSType"),optional:!0},default:{validate:(0,L.assertNodeType)("TSType"),optional:!0}}})});var df=_(nn=>{"use strict";d();Object.defineProperty(nn,"__esModule",{value:!0});nn.DEPRECATED_ALIASES=void 0;var lW=nn.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var jt=_(dt=>{"use strict";d();Object.defineProperty(dt,"__esModule",{value:!0});Object.defineProperty(dt,"ALIAS_KEYS",{enumerable:!0,get:function(){return gt.ALIAS_KEYS}});Object.defineProperty(dt,"BUILDER_KEYS",{enumerable:!0,get:function(){return gt.BUILDER_KEYS}});Object.defineProperty(dt,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return co.DEPRECATED_ALIASES}});Object.defineProperty(dt,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return gt.DEPRECATED_KEYS}});Object.defineProperty(dt,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return gt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(dt,"NODE_FIELDS",{enumerable:!0,get:function(){return gt.NODE_FIELDS}});Object.defineProperty(dt,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return gt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(dt,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return gt.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(dt,"PLACEHOLDERS",{enumerable:!0,get:function(){return po.PLACEHOLDERS}});Object.defineProperty(dt,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return po.PLACEHOLDERS_ALIAS}});Object.defineProperty(dt,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return po.PLACEHOLDERS_FLIPPED_ALIAS}});dt.TYPES=void 0;Object.defineProperty(dt,"VISITOR_KEYS",{enumerable:!0,get:function(){return gt.VISITOR_KEYS}});os();rf();sf();nf();af();hf();var gt=sr(),po=oo(),co=df();Object.keys(co.DEPRECATED_ALIASES).forEach(e=>{gt.FLIPPED_ALIAS_KEYS[e]=gt.FLIPPED_ALIAS_KEYS[co.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of gt.allExpandedTypes)for(let r of e){let i=gt.FLIPPED_ALIAS_KEYS[r];i?i.forEach(t.add,t):t.add(r)}var pW=dt.TYPES=[].concat(Object.keys(gt.VISITOR_KEYS),Object.keys(gt.FLIPPED_ALIAS_KEYS),Object.keys(gt.DEPRECATED_KEYS))});var Zs=_(vi=>{"use strict";d();Object.defineProperty(vi,"__esModule",{value:!0});vi.default=cA;vi.validateChild=yf;vi.validateField=mf;vi.validateInternal=pA;var ls=jt();function cA(e,t,r){if(!e)return;let i=ls.NODE_FIELDS[e.type];if(!i)return;let s=i[t];mf(e,t,r,s),yf(e,t,r)}function pA(e,t,r,i,s){if(e!=null&&e.validate&&!(e.optional&&i==null)&&(e.validate(t,r,i),s)){var n;let a=i.type;if(a==null)return;(n=ls.NODE_PARENT_VALIDATIONS[a])==null||n.call(ls.NODE_PARENT_VALIDATIONS,t,r,i)}}function mf(e,t,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(e,t,r))}function yf(e,t,r){var i;let s=r?.type;s!=null&&((i=ls.NODE_PARENT_VALIDATIONS[s])==null||i.call(ls.NODE_PARENT_VALIDATIONS,e,t,r))}});var fo=_(h=>{"use strict";d();Object.defineProperty(h,"__esModule",{value:!0});h.anyTypeAnnotation=Yv;h.argumentPlaceholder=xC;h.arrayExpression=mA;h.arrayPattern=cv;h.arrayTypeAnnotation=Xv;h.arrowFunctionExpression=pv;h.assignmentExpression=yA;h.assignmentPattern=uv;h.awaitExpression=kv;h.bigIntLiteral=dA;h.binaryExpression=TA;h.bindExpression=bC;h.blockStatement=bA;h.booleanLiteral=UA;h.booleanLiteralTypeAnnotation=$v;h.booleanTypeAnnotation=Wv;h.breakStatement=EA;h.callExpression=PA;h.catchClause=AA;h.classAccessorProperty=Rv;h.classBody=fv;h.classDeclaration=dv;h.classExpression=hv;h.classImplements=zv;h.classMethod=Cv;h.classPrivateMethod=Uv;h.classPrivateProperty=qv;h.classProperty=jv;h.conditionalExpression=vA;h.continueStatement=CA;h.debuggerStatement=IA;h.decimalLiteral=IC;h.declareClass=Gv;h.declareExportAllDeclaration=a1;h.declareExportDeclaration=n1;h.declareFunction=Qv;h.declareInterface=Zv;h.declareModule=e1;h.declareModuleExports=t1;h.declareOpaqueType=i1;h.declareTypeAlias=r1;h.declareVariable=s1;h.declaredPredicate=o1;h.decorator=EC;h.directive=gA;h.directiveLiteral=xA;h.doExpression=PC;h.doWhileStatement=wA;h.emptyStatement=NA;h.emptyTypeAnnotation=S1;h.enumBooleanBody=X1;h.enumBooleanMember=z1;h.enumDeclaration=Y1;h.enumDefaultedMember=Z1;h.enumNumberBody=W1;h.enumNumberMember=G1;h.enumStringBody=$1;h.enumStringMember=Q1;h.enumSymbolBody=H1;h.existsTypeAnnotation=l1;h.exportAllDeclaration=mv;h.exportDefaultDeclaration=yv;h.exportDefaultSpecifier=AC;h.exportNamedDeclaration=Tv;h.exportNamespaceSpecifier=Mv;h.exportSpecifier=Sv;h.expressionStatement=_A;h.file=OA;h.forInStatement=DA;h.forOfStatement=gv;h.forStatement=kA;h.functionDeclaration=LA;h.functionExpression=MA;h.functionTypeAnnotation=u1;h.functionTypeParam=c1;h.genericTypeAnnotation=p1;h.identifier=BA;h.ifStatement=FA;h.import=Lv;h.importAttribute=Jv;h.importDeclaration=xv;h.importDefaultSpecifier=bv;h.importExpression=Av;h.importNamespaceSpecifier=Ev;h.importSpecifier=Pv;h.indexedAccessType=eC;h.inferredPredicate=f1;h.interfaceDeclaration=d1;h.interfaceExtends=h1;h.interfaceTypeAnnotation=m1;h.interpreterDirective=SA;h.intersectionTypeAnnotation=y1;h.jSXAttribute=h.jsxAttribute=rC;h.jSXClosingElement=h.jsxClosingElement=iC;h.jSXClosingFragment=h.jsxClosingFragment=yC;h.jSXElement=h.jsxElement=sC;h.jSXEmptyExpression=h.jsxEmptyExpression=nC;h.jSXExpressionContainer=h.jsxExpressionContainer=aC;h.jSXFragment=h.jsxFragment=dC;h.jSXIdentifier=h.jsxIdentifier=lC;h.jSXMemberExpression=h.jsxMemberExpression=uC;h.jSXNamespacedName=h.jsxNamespacedName=cC;h.jSXOpeningElement=h.jsxOpeningElement=pC;h.jSXOpeningFragment=h.jsxOpeningFragment=mC;h.jSXSpreadAttribute=h.jsxSpreadAttribute=fC;h.jSXSpreadChild=h.jsxSpreadChild=oC;h.jSXText=h.jsxText=hC;h.labeledStatement=jA;h.logicalExpression=KA;h.memberExpression=VA;h.metaProperty=vv;h.mixedTypeAnnotation=T1;h.moduleExpression=wC;h.newExpression=JA;h.noop=TC;h.nullLiteral=qA;h.nullLiteralTypeAnnotation=Hv;h.nullableTypeAnnotation=g1;h.numberLiteral=WI;h.numberLiteralTypeAnnotation=x1;h.numberTypeAnnotation=b1;h.numericLiteral=Tf;h.objectExpression=XA;h.objectMethod=WA;h.objectPattern=Iv;h.objectProperty=$A;h.objectTypeAnnotation=E1;h.objectTypeCallProperty=A1;h.objectTypeIndexer=v1;h.objectTypeInternalSlot=P1;h.objectTypeProperty=C1;h.objectTypeSpreadProperty=I1;h.opaqueType=w1;h.optionalCallExpression=Fv;h.optionalIndexedAccessType=tC;h.optionalMemberExpression=Bv;h.parenthesizedExpression=GA;h.pipelineBareFunction=OC;h.pipelinePrimaryTopicReference=DC;h.pipelineTopicExpression=_C;h.placeholder=SC;h.privateName=Kv;h.program=YA;h.qualifiedTypeIdentifier=N1;h.recordExpression=vC;h.regExpLiteral=Sf;h.regexLiteral=$I;h.restElement=gf;h.restProperty=HI;h.returnStatement=HA;h.sequenceExpression=zA;h.spreadElement=xf;h.spreadProperty=zI;h.staticBlock=Vv;h.stringLiteral=RA;h.stringLiteralTypeAnnotation=_1;h.stringTypeAnnotation=O1;h.super=wv;h.switchCase=QA;h.switchStatement=ZA;h.symbolTypeAnnotation=D1;h.taggedTemplateExpression=Nv;h.templateElement=_v;h.templateLiteral=Ov;h.thisExpression=ev;h.thisTypeAnnotation=k1;h.throwStatement=tv;h.topicReference=NC;h.tryStatement=rv;h.tSAnyKeyword=h.tsAnyKeyword=VC;h.tSArrayType=h.tsArrayType=uI;h.tSAsExpression=h.tsAsExpression=NI;h.tSBigIntKeyword=h.tsBigIntKeyword=YC;h.tSBooleanKeyword=h.tsBooleanKeyword=JC;h.tSCallSignatureDeclaration=h.tsCallSignatureDeclaration=jC;h.tSConditionalType=h.tsConditionalType=yI;h.tSConstructSignatureDeclaration=h.tsConstructSignatureDeclaration=RC;h.tSConstructorType=h.tsConstructorType=sI;h.tSDeclareFunction=h.tsDeclareFunction=MC;h.tSDeclareMethod=h.tsDeclareMethod=BC;h.tSEnumBody=h.tsEnumBody=DI;h.tSEnumDeclaration=h.tsEnumDeclaration=kI;h.tSEnumMember=h.tsEnumMember=LI;h.tSExportAssignment=h.tsExportAssignment=UI;h.tSExpressionWithTypeArguments=h.tsExpressionWithTypeArguments=AI;h.tSExternalModuleReference=h.tsExternalModuleReference=RI;h.tSFunctionType=h.tsFunctionType=iI;h.tSImportEqualsDeclaration=h.tsImportEqualsDeclaration=jI;h.tSImportType=h.tsImportType=FI;h.tSIndexSignature=h.tsIndexSignature=KC;h.tSIndexedAccessType=h.tsIndexedAccessType=xI;h.tSInferType=h.tsInferType=TI;h.tSInstantiationExpression=h.tsInstantiationExpression=wI;h.tSInterfaceBody=h.tsInterfaceBody=CI;h.tSInterfaceDeclaration=h.tsInterfaceDeclaration=vI;h.tSIntersectionType=h.tsIntersectionType=mI;h.tSIntrinsicKeyword=h.tsIntrinsicKeyword=XC;h.tSLiteralType=h.tsLiteralType=PI;h.tSMappedType=h.tsMappedType=bI;h.tSMethodSignature=h.tsMethodSignature=UC;h.tSModuleBlock=h.tsModuleBlock=BI;h.tSModuleDeclaration=h.tsModuleDeclaration=MI;h.tSNamedTupleMember=h.tsNamedTupleMember=hI;h.tSNamespaceExportDeclaration=h.tsNamespaceExportDeclaration=KI;h.tSNeverKeyword=h.tsNeverKeyword=WC;h.tSNonNullExpression=h.tsNonNullExpression=qI;h.tSNullKeyword=h.tsNullKeyword=$C;h.tSNumberKeyword=h.tsNumberKeyword=HC;h.tSObjectKeyword=h.tsObjectKeyword=zC;h.tSOptionalType=h.tsOptionalType=pI;h.tSParameterProperty=h.tsParameterProperty=LC;h.tSParenthesizedType=h.tsParenthesizedType=SI;h.tSPropertySignature=h.tsPropertySignature=qC;h.tSQualifiedName=h.tsQualifiedName=FC;h.tSRestType=h.tsRestType=fI;h.tSSatisfiesExpression=h.tsSatisfiesExpression=_I;h.tSStringKeyword=h.tsStringKeyword=GC;h.tSSymbolKeyword=h.tsSymbolKeyword=QC;h.tSTemplateLiteralType=h.tsTemplateLiteralType=EI;h.tSThisType=h.tsThisType=rI;h.tSTupleType=h.tsTupleType=cI;h.tSTypeAliasDeclaration=h.tsTypeAliasDeclaration=II;h.tSTypeAnnotation=h.tsTypeAnnotation=VI;h.tSTypeAssertion=h.tsTypeAssertion=OI;h.tSTypeLiteral=h.tsTypeLiteral=lI;h.tSTypeOperator=h.tsTypeOperator=gI;h.tSTypeParameter=h.tsTypeParameter=XI;h.tSTypeParameterDeclaration=h.tsTypeParameterDeclaration=YI;h.tSTypeParameterInstantiation=h.tsTypeParameterInstantiation=JI;h.tSTypePredicate=h.tsTypePredicate=aI;h.tSTypeQuery=h.tsTypeQuery=oI;h.tSTypeReference=h.tsTypeReference=nI;h.tSUndefinedKeyword=h.tsUndefinedKeyword=ZC;h.tSUnionType=h.tsUnionType=dI;h.tSUnknownKeyword=h.tsUnknownKeyword=eI;h.tSVoidKeyword=h.tsVoidKeyword=tI;h.tupleExpression=CC;h.tupleTypeAnnotation=L1;h.typeAlias=B1;h.typeAnnotation=F1;h.typeCastExpression=j1;h.typeParameter=R1;h.typeParameterDeclaration=q1;h.typeParameterInstantiation=U1;h.typeofTypeAnnotation=M1;h.unaryExpression=iv;h.unionTypeAnnotation=K1;h.updateExpression=sv;h.v8IntrinsicIdentifier=gC;h.variableDeclaration=nv;h.variableDeclarator=av;h.variance=V1;h.voidPattern=kC;h.voidTypeAnnotation=J1;h.whileStatement=ov;h.withStatement=lv;h.yieldExpression=Dv;var fA=Zs(),an=Si(),hA=sr(),{validateInternal:p}=fA,{NODE_FIELDS:P}=hA;function dA(e){typeof e=="bigint"&&(e=e.toString());let t={type:"BigIntLiteral",value:e},r=P.BigIntLiteral;return p(r.value,t,"value",e),t}function mA(e=[]){let t={type:"ArrayExpression",elements:e},r=P.ArrayExpression;return p(r.elements,t,"elements",e,1),t}function yA(e,t,r){let i={type:"AssignmentExpression",operator:e,left:t,right:r},s=P.AssignmentExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function TA(e,t,r){let i={type:"BinaryExpression",operator:e,left:t,right:r},s=P.BinaryExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function SA(e){let t={type:"InterpreterDirective",value:e},r=P.InterpreterDirective;return p(r.value,t,"value",e),t}function gA(e){let t={type:"Directive",value:e},r=P.Directive;return p(r.value,t,"value",e,1),t}function xA(e){let t={type:"DirectiveLiteral",value:e},r=P.DirectiveLiteral;return p(r.value,t,"value",e),t}function bA(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},i=P.BlockStatement;return p(i.body,r,"body",e,1),p(i.directives,r,"directives",t,1),r}function EA(e=null){let t={type:"BreakStatement",label:e},r=P.BreakStatement;return p(r.label,t,"label",e,1),t}function PA(e,t){let r={type:"CallExpression",callee:e,arguments:t},i=P.CallExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function AA(e=null,t){let r={type:"CatchClause",param:e,body:t},i=P.CatchClause;return p(i.param,r,"param",e,1),p(i.body,r,"body",t,1),r}function vA(e,t,r){let i={type:"ConditionalExpression",test:e,consequent:t,alternate:r},s=P.ConditionalExpression;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function CA(e=null){let t={type:"ContinueStatement",label:e},r=P.ContinueStatement;return p(r.label,t,"label",e,1),t}function IA(){return{type:"DebuggerStatement"}}function wA(e,t){let r={type:"DoWhileStatement",test:e,body:t},i=P.DoWhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function NA(){return{type:"EmptyStatement"}}function _A(e){let t={type:"ExpressionStatement",expression:e},r=P.ExpressionStatement;return p(r.expression,t,"expression",e,1),t}function OA(e,t=null,r=null){let i={type:"File",program:e,comments:t,tokens:r},s=P.File;return p(s.program,i,"program",e,1),p(s.comments,i,"comments",t,1),p(s.tokens,i,"tokens",r),i}function DA(e,t,r){let i={type:"ForInStatement",left:e,right:t,body:r},s=P.ForInStatement;return p(s.left,i,"left",e,1),p(s.right,i,"right",t,1),p(s.body,i,"body",r,1),i}function kA(e=null,t=null,r=null,i){let s={type:"ForStatement",init:e,test:t,update:r,body:i},n=P.ForStatement;return p(n.init,s,"init",e,1),p(n.test,s,"test",t,1),p(n.update,s,"update",r,1),p(n.body,s,"body",i,1),s}function LA(e=null,t,r,i=!1,s=!1){let n={type:"FunctionDeclaration",id:e,params:t,body:r,generator:i,async:s},a=P.FunctionDeclaration;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function MA(e=null,t,r,i=!1,s=!1){let n={type:"FunctionExpression",id:e,params:t,body:r,generator:i,async:s},a=P.FunctionExpression;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function BA(e){let t={type:"Identifier",name:e},r=P.Identifier;return p(r.name,t,"name",e),t}function FA(e,t,r=null){let i={type:"IfStatement",test:e,consequent:t,alternate:r},s=P.IfStatement;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function jA(e,t){let r={type:"LabeledStatement",label:e,body:t},i=P.LabeledStatement;return p(i.label,r,"label",e,1),p(i.body,r,"body",t,1),r}function RA(e){let t={type:"StringLiteral",value:e},r=P.StringLiteral;return p(r.value,t,"value",e),t}function Tf(e){let t={type:"NumericLiteral",value:e},r=P.NumericLiteral;return p(r.value,t,"value",e),t}function qA(){return{type:"NullLiteral"}}function UA(e){let t={type:"BooleanLiteral",value:e},r=P.BooleanLiteral;return p(r.value,t,"value",e),t}function Sf(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},i=P.RegExpLiteral;return p(i.pattern,r,"pattern",e),p(i.flags,r,"flags",t),r}function KA(e,t,r){let i={type:"LogicalExpression",operator:e,left:t,right:r},s=P.LogicalExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function VA(e,t,r=!1,i=null){let s={type:"MemberExpression",object:e,property:t,computed:r,optional:i},n=P.MemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function JA(e,t){let r={type:"NewExpression",callee:e,arguments:t},i=P.NewExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function YA(e,t=[],r="script",i=null){let s={type:"Program",body:e,directives:t,sourceType:r,interpreter:i},n=P.Program;return p(n.body,s,"body",e,1),p(n.directives,s,"directives",t,1),p(n.sourceType,s,"sourceType",r),p(n.interpreter,s,"interpreter",i,1),s}function XA(e){let t={type:"ObjectExpression",properties:e},r=P.ObjectExpression;return p(r.properties,t,"properties",e,1),t}function WA(e="method",t,r,i,s=!1,n=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:i,computed:s,generator:n,async:a},l=P.ObjectMethod;return p(l.kind,o,"kind",e),p(l.key,o,"key",t,1),p(l.params,o,"params",r,1),p(l.body,o,"body",i,1),p(l.computed,o,"computed",s),p(l.generator,o,"generator",n),p(l.async,o,"async",a),o}function $A(e,t,r=!1,i=!1,s=null){let n={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:i,decorators:s},a=P.ObjectProperty;return p(a.key,n,"key",e,1),p(a.value,n,"value",t,1),p(a.computed,n,"computed",r),p(a.shorthand,n,"shorthand",i),p(a.decorators,n,"decorators",s,1),n}function gf(e){let t={type:"RestElement",argument:e},r=P.RestElement;return p(r.argument,t,"argument",e,1),t}function HA(e=null){let t={type:"ReturnStatement",argument:e},r=P.ReturnStatement;return p(r.argument,t,"argument",e,1),t}function zA(e){let t={type:"SequenceExpression",expressions:e},r=P.SequenceExpression;return p(r.expressions,t,"expressions",e,1),t}function GA(e){let t={type:"ParenthesizedExpression",expression:e},r=P.ParenthesizedExpression;return p(r.expression,t,"expression",e,1),t}function QA(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},i=P.SwitchCase;return p(i.test,r,"test",e,1),p(i.consequent,r,"consequent",t,1),r}function ZA(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},i=P.SwitchStatement;return p(i.discriminant,r,"discriminant",e,1),p(i.cases,r,"cases",t,1),r}function ev(){return{type:"ThisExpression"}}function tv(e){let t={type:"ThrowStatement",argument:e},r=P.ThrowStatement;return p(r.argument,t,"argument",e,1),t}function rv(e,t=null,r=null){let i={type:"TryStatement",block:e,handler:t,finalizer:r},s=P.TryStatement;return p(s.block,i,"block",e,1),p(s.handler,i,"handler",t,1),p(s.finalizer,i,"finalizer",r,1),i}function iv(e,t,r=!0){let i={type:"UnaryExpression",operator:e,argument:t,prefix:r},s=P.UnaryExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function sv(e,t,r=!1){let i={type:"UpdateExpression",operator:e,argument:t,prefix:r},s=P.UpdateExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function nv(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},i=P.VariableDeclaration;return p(i.kind,r,"kind",e),p(i.declarations,r,"declarations",t,1),r}function av(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},i=P.VariableDeclarator;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function ov(e,t){let r={type:"WhileStatement",test:e,body:t},i=P.WhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function lv(e,t){let r={type:"WithStatement",object:e,body:t},i=P.WithStatement;return p(i.object,r,"object",e,1),p(i.body,r,"body",t,1),r}function uv(e,t){let r={type:"AssignmentPattern",left:e,right:t},i=P.AssignmentPattern;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function cv(e){let t={type:"ArrayPattern",elements:e},r=P.ArrayPattern;return p(r.elements,t,"elements",e,1),t}function pv(e,t,r=!1){let i={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},s=P.ArrowFunctionExpression;return p(s.params,i,"params",e,1),p(s.body,i,"body",t,1),p(s.async,i,"async",r),i}function fv(e){let t={type:"ClassBody",body:e},r=P.ClassBody;return p(r.body,t,"body",e,1),t}function hv(e=null,t=null,r,i=null){let s={type:"ClassExpression",id:e,superClass:t,body:r,decorators:i},n=P.ClassExpression;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function dv(e=null,t=null,r,i=null){let s={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:i},n=P.ClassDeclaration;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function mv(e,t=null){let r={type:"ExportAllDeclaration",source:e,attributes:t},i=P.ExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function yv(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=P.ExportDefaultDeclaration;return p(r.declaration,t,"declaration",e,1),t}function Tv(e=null,t=[],r=null,i=null){let s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=P.ExportNamedDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function Sv(e,t){let r={type:"ExportSpecifier",local:e,exported:t},i=P.ExportSpecifier;return p(i.local,r,"local",e,1),p(i.exported,r,"exported",t,1),r}function gv(e,t,r,i=!1){let s={type:"ForOfStatement",left:e,right:t,body:r,await:i},n=P.ForOfStatement;return p(n.left,s,"left",e,1),p(n.right,s,"right",t,1),p(n.body,s,"body",r,1),p(n.await,s,"await",i),s}function xv(e,t,r=null){let i={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},s=P.ImportDeclaration;return p(s.specifiers,i,"specifiers",e,1),p(s.source,i,"source",t,1),p(s.attributes,i,"attributes",r,1),i}function bv(e){let t={type:"ImportDefaultSpecifier",local:e},r=P.ImportDefaultSpecifier;return p(r.local,t,"local",e,1),t}function Ev(e){let t={type:"ImportNamespaceSpecifier",local:e},r=P.ImportNamespaceSpecifier;return p(r.local,t,"local",e,1),t}function Pv(e,t){let r={type:"ImportSpecifier",local:e,imported:t},i=P.ImportSpecifier;return p(i.local,r,"local",e,1),p(i.imported,r,"imported",t,1),r}function Av(e,t=null){let r={type:"ImportExpression",source:e,options:t},i=P.ImportExpression;return p(i.source,r,"source",e,1),p(i.options,r,"options",t,1),r}function vv(e,t){let r={type:"MetaProperty",meta:e,property:t},i=P.MetaProperty;return p(i.meta,r,"meta",e,1),p(i.property,r,"property",t,1),r}function Cv(e="method",t,r,i,s=!1,n=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:i,computed:s,static:n,generator:a,async:o},u=P.ClassMethod;return p(u.kind,l,"kind",e),p(u.key,l,"key",t,1),p(u.params,l,"params",r,1),p(u.body,l,"body",i,1),p(u.computed,l,"computed",s),p(u.static,l,"static",n),p(u.generator,l,"generator",a),p(u.async,l,"async",o),l}function Iv(e){let t={type:"ObjectPattern",properties:e},r=P.ObjectPattern;return p(r.properties,t,"properties",e,1),t}function xf(e){let t={type:"SpreadElement",argument:e},r=P.SpreadElement;return p(r.argument,t,"argument",e,1),t}function wv(){return{type:"Super"}}function Nv(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},i=P.TaggedTemplateExpression;return p(i.tag,r,"tag",e,1),p(i.quasi,r,"quasi",t,1),r}function _v(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},i=P.TemplateElement;return p(i.value,r,"value",e),p(i.tail,r,"tail",t),r}function Ov(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},i=P.TemplateLiteral;return p(i.quasis,r,"quasis",e,1),p(i.expressions,r,"expressions",t,1),r}function Dv(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},i=P.YieldExpression;return p(i.argument,r,"argument",e,1),p(i.delegate,r,"delegate",t),r}function kv(e){let t={type:"AwaitExpression",argument:e},r=P.AwaitExpression;return p(r.argument,t,"argument",e,1),t}function Lv(){return{type:"Import"}}function Mv(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=P.ExportNamespaceSpecifier;return p(r.exported,t,"exported",e,1),t}function Bv(e,t,r=!1,i){let s={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:i},n=P.OptionalMemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function Fv(e,t,r){let i={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},s=P.OptionalCallExpression;return p(s.callee,i,"callee",e,1),p(s.arguments,i,"arguments",t,1),p(s.optional,i,"optional",r),i}function jv(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=P.ClassProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function Rv(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=P.ClassAccessorProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function qv(e,t=null,r=null,i=!1){let s={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:i},n=P.ClassPrivateProperty;return p(n.key,s,"key",e,1),p(n.value,s,"value",t,1),p(n.decorators,s,"decorators",r,1),p(n.static,s,"static",i),s}function Uv(e="method",t,r,i,s=!1){let n={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:i,static:s},a=P.ClassPrivateMethod;return p(a.kind,n,"kind",e),p(a.key,n,"key",t,1),p(a.params,n,"params",r,1),p(a.body,n,"body",i,1),p(a.static,n,"static",s),n}function Kv(e){let t={type:"PrivateName",id:e},r=P.PrivateName;return p(r.id,t,"id",e,1),t}function Vv(e){let t={type:"StaticBlock",body:e},r=P.StaticBlock;return p(r.body,t,"body",e,1),t}function Jv(e,t){let r={type:"ImportAttribute",key:e,value:t},i=P.ImportAttribute;return p(i.key,r,"key",e,1),p(i.value,r,"value",t,1),r}function Yv(){return{type:"AnyTypeAnnotation"}}function Xv(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=P.ArrayTypeAnnotation;return p(r.elementType,t,"elementType",e,1),t}function Wv(){return{type:"BooleanTypeAnnotation"}}function $v(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=P.BooleanLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function Hv(){return{type:"NullLiteralTypeAnnotation"}}function zv(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},i=P.ClassImplements;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function Gv(e,t=null,r=null,i){let s={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:i},n=P.DeclareClass;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function Qv(e){let t={type:"DeclareFunction",id:e},r=P.DeclareFunction;return p(r.id,t,"id",e,1),t}function Zv(e,t=null,r=null,i){let s={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:i},n=P.DeclareInterface;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function e1(e,t,r=null){let i={type:"DeclareModule",id:e,body:t,kind:r},s=P.DeclareModule;return p(s.id,i,"id",e,1),p(s.body,i,"body",t,1),p(s.kind,i,"kind",r),i}function t1(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=P.DeclareModuleExports;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function r1(e,t=null,r){let i={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},s=P.DeclareTypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function i1(e,t=null,r=null){let i={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},s=P.DeclareOpaqueType;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.supertype,i,"supertype",r,1),i}function s1(e){let t={type:"DeclareVariable",id:e},r=P.DeclareVariable;return p(r.id,t,"id",e,1),t}function n1(e=null,t=null,r=null,i=null){let s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=P.DeclareExportDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function a1(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},i=P.DeclareExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function o1(e){let t={type:"DeclaredPredicate",value:e},r=P.DeclaredPredicate;return p(r.value,t,"value",e,1),t}function l1(){return{type:"ExistsTypeAnnotation"}}function u1(e=null,t,r=null,i){let s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:i},n=P.FunctionTypeAnnotation;return p(n.typeParameters,s,"typeParameters",e,1),p(n.params,s,"params",t,1),p(n.rest,s,"rest",r,1),p(n.returnType,s,"returnType",i,1),s}function c1(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},i=P.FunctionTypeParam;return p(i.name,r,"name",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function p1(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},i=P.GenericTypeAnnotation;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function f1(){return{type:"InferredPredicate"}}function h1(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},i=P.InterfaceExtends;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function d1(e,t=null,r=null,i){let s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=P.InterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function m1(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},i=P.InterfaceTypeAnnotation;return p(i.extends,r,"extends",e,1),p(i.body,r,"body",t,1),r}function y1(e){let t={type:"IntersectionTypeAnnotation",types:e},r=P.IntersectionTypeAnnotation;return p(r.types,t,"types",e,1),t}function T1(){return{type:"MixedTypeAnnotation"}}function S1(){return{type:"EmptyTypeAnnotation"}}function g1(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=P.NullableTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function x1(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=P.NumberLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function b1(){return{type:"NumberTypeAnnotation"}}function E1(e,t=[],r=[],i=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:i,exact:s},a=P.ObjectTypeAnnotation;return p(a.properties,n,"properties",e,1),p(a.indexers,n,"indexers",t,1),p(a.callProperties,n,"callProperties",r,1),p(a.internalSlots,n,"internalSlots",i,1),p(a.exact,n,"exact",s),n}function P1(e,t,r,i,s){let n={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:i,method:s},a=P.ObjectTypeInternalSlot;return p(a.id,n,"id",e,1),p(a.value,n,"value",t,1),p(a.optional,n,"optional",r),p(a.static,n,"static",i),p(a.method,n,"method",s),n}function A1(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=P.ObjectTypeCallProperty;return p(r.value,t,"value",e,1),t}function v1(e=null,t,r,i=null){let s={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:i,static:null},n=P.ObjectTypeIndexer;return p(n.id,s,"id",e,1),p(n.key,s,"key",t,1),p(n.value,s,"value",r,1),p(n.variance,s,"variance",i,1),s}function C1(e,t,r=null){let i={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=P.ObjectTypeProperty;return p(s.key,i,"key",e,1),p(s.value,i,"value",t,1),p(s.variance,i,"variance",r,1),i}function I1(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=P.ObjectTypeSpreadProperty;return p(r.argument,t,"argument",e,1),t}function w1(e,t=null,r=null,i){let s={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:i},n=P.OpaqueType;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.supertype,s,"supertype",r,1),p(n.impltype,s,"impltype",i,1),s}function N1(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},i=P.QualifiedTypeIdentifier;return p(i.id,r,"id",e,1),p(i.qualification,r,"qualification",t,1),r}function _1(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=P.StringLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function O1(){return{type:"StringTypeAnnotation"}}function D1(){return{type:"SymbolTypeAnnotation"}}function k1(){return{type:"ThisTypeAnnotation"}}function L1(e){let t={type:"TupleTypeAnnotation",types:e},r=P.TupleTypeAnnotation;return p(r.types,t,"types",e,1),t}function M1(e){let t={type:"TypeofTypeAnnotation",argument:e},r=P.TypeofTypeAnnotation;return p(r.argument,t,"argument",e,1),t}function B1(e,t=null,r){let i={type:"TypeAlias",id:e,typeParameters:t,right:r},s=P.TypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function F1(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=P.TypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function j1(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},i=P.TypeCastExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function R1(e=null,t=null,r=null){let i={type:"TypeParameter",bound:e,default:t,variance:r,name:null},s=P.TypeParameter;return p(s.bound,i,"bound",e,1),p(s.default,i,"default",t,1),p(s.variance,i,"variance",r,1),i}function q1(e){let t={type:"TypeParameterDeclaration",params:e},r=P.TypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function U1(e){let t={type:"TypeParameterInstantiation",params:e},r=P.TypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function K1(e){let t={type:"UnionTypeAnnotation",types:e},r=P.UnionTypeAnnotation;return p(r.types,t,"types",e,1),t}function V1(e){let t={type:"Variance",kind:e},r=P.Variance;return p(r.kind,t,"kind",e),t}function J1(){return{type:"VoidTypeAnnotation"}}function Y1(e,t){let r={type:"EnumDeclaration",id:e,body:t},i=P.EnumDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function X1(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=P.EnumBooleanBody;return p(r.members,t,"members",e,1),t}function W1(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=P.EnumNumberBody;return p(r.members,t,"members",e,1),t}function $1(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=P.EnumStringBody;return p(r.members,t,"members",e,1),t}function H1(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=P.EnumSymbolBody;return p(r.members,t,"members",e,1),t}function z1(e){let t={type:"EnumBooleanMember",id:e,init:null},r=P.EnumBooleanMember;return p(r.id,t,"id",e,1),t}function G1(e,t){let r={type:"EnumNumberMember",id:e,init:t},i=P.EnumNumberMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function Q1(e,t){let r={type:"EnumStringMember",id:e,init:t},i=P.EnumStringMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function Z1(e){let t={type:"EnumDefaultedMember",id:e},r=P.EnumDefaultedMember;return p(r.id,t,"id",e,1),t}function eC(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},i=P.IndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function tC(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},i=P.OptionalIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function rC(e,t=null){let r={type:"JSXAttribute",name:e,value:t},i=P.JSXAttribute;return p(i.name,r,"name",e,1),p(i.value,r,"value",t,1),r}function iC(e){let t={type:"JSXClosingElement",name:e},r=P.JSXClosingElement;return p(r.name,t,"name",e,1),t}function sC(e,t=null,r,i=null){let s={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:i},n=P.JSXElement;return p(n.openingElement,s,"openingElement",e,1),p(n.closingElement,s,"closingElement",t,1),p(n.children,s,"children",r,1),p(n.selfClosing,s,"selfClosing",i),s}function nC(){return{type:"JSXEmptyExpression"}}function aC(e){let t={type:"JSXExpressionContainer",expression:e},r=P.JSXExpressionContainer;return p(r.expression,t,"expression",e,1),t}function oC(e){let t={type:"JSXSpreadChild",expression:e},r=P.JSXSpreadChild;return p(r.expression,t,"expression",e,1),t}function lC(e){let t={type:"JSXIdentifier",name:e},r=P.JSXIdentifier;return p(r.name,t,"name",e),t}function uC(e,t){let r={type:"JSXMemberExpression",object:e,property:t},i=P.JSXMemberExpression;return p(i.object,r,"object",e,1),p(i.property,r,"property",t,1),r}function cC(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},i=P.JSXNamespacedName;return p(i.namespace,r,"namespace",e,1),p(i.name,r,"name",t,1),r}function pC(e,t,r=!1){let i={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},s=P.JSXOpeningElement;return p(s.name,i,"name",e,1),p(s.attributes,i,"attributes",t,1),p(s.selfClosing,i,"selfClosing",r),i}function fC(e){let t={type:"JSXSpreadAttribute",argument:e},r=P.JSXSpreadAttribute;return p(r.argument,t,"argument",e,1),t}function hC(e){let t={type:"JSXText",value:e},r=P.JSXText;return p(r.value,t,"value",e),t}function dC(e,t,r){let i={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},s=P.JSXFragment;return p(s.openingFragment,i,"openingFragment",e,1),p(s.closingFragment,i,"closingFragment",t,1),p(s.children,i,"children",r,1),i}function mC(){return{type:"JSXOpeningFragment"}}function yC(){return{type:"JSXClosingFragment"}}function TC(){return{type:"Noop"}}function SC(e,t){let r={type:"Placeholder",expectedNode:e,name:t},i=P.Placeholder;return p(i.expectedNode,r,"expectedNode",e),p(i.name,r,"name",t,1),r}function gC(e){let t={type:"V8IntrinsicIdentifier",name:e},r=P.V8IntrinsicIdentifier;return p(r.name,t,"name",e),t}function xC(){return{type:"ArgumentPlaceholder"}}function bC(e,t){let r={type:"BindExpression",object:e,callee:t},i=P.BindExpression;return p(i.object,r,"object",e,1),p(i.callee,r,"callee",t,1),r}function EC(e){let t={type:"Decorator",expression:e},r=P.Decorator;return p(r.expression,t,"expression",e,1),t}function PC(e,t=!1){let r={type:"DoExpression",body:e,async:t},i=P.DoExpression;return p(i.body,r,"body",e,1),p(i.async,r,"async",t),r}function AC(e){let t={type:"ExportDefaultSpecifier",exported:e},r=P.ExportDefaultSpecifier;return p(r.exported,t,"exported",e,1),t}function vC(e){let t={type:"RecordExpression",properties:e},r=P.RecordExpression;return p(r.properties,t,"properties",e,1),t}function CC(e=[]){let t={type:"TupleExpression",elements:e},r=P.TupleExpression;return p(r.elements,t,"elements",e,1),t}function IC(e){let t={type:"DecimalLiteral",value:e},r=P.DecimalLiteral;return p(r.value,t,"value",e),t}function wC(e){let t={type:"ModuleExpression",body:e},r=P.ModuleExpression;return p(r.body,t,"body",e,1),t}function NC(){return{type:"TopicReference"}}function _C(e){let t={type:"PipelineTopicExpression",expression:e},r=P.PipelineTopicExpression;return p(r.expression,t,"expression",e,1),t}function OC(e){let t={type:"PipelineBareFunction",callee:e},r=P.PipelineBareFunction;return p(r.callee,t,"callee",e,1),t}function DC(){return{type:"PipelinePrimaryTopicReference"}}function kC(){return{type:"VoidPattern"}}function LC(e){let t={type:"TSParameterProperty",parameter:e},r=P.TSParameterProperty;return p(r.parameter,t,"parameter",e,1),t}function MC(e=null,t=null,r,i=null){let s={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:i},n=P.TSDeclareFunction;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.params,s,"params",r,1),p(n.returnType,s,"returnType",i,1),s}function BC(e=null,t,r=null,i,s=null){let n={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:i,returnType:s},a=P.TSDeclareMethod;return p(a.decorators,n,"decorators",e,1),p(a.key,n,"key",t,1),p(a.typeParameters,n,"typeParameters",r,1),p(a.params,n,"params",i,1),p(a.returnType,n,"returnType",s,1),n}function FC(e,t){let r={type:"TSQualifiedName",left:e,right:t},i=P.TSQualifiedName;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function jC(e=null,t,r=null){let i={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=P.TSCallSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function RC(e=null,t,r=null){let i={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=P.TSConstructSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function qC(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},i=P.TSPropertySignature;return p(i.key,r,"key",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function UC(e,t=null,r,i=null){let s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:i,kind:null},n=P.TSMethodSignature;return p(n.key,s,"key",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.parameters,s,"parameters",r,1),p(n.typeAnnotation,s,"typeAnnotation",i,1),s}function KC(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},i=P.TSIndexSignature;return p(i.parameters,r,"parameters",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function VC(){return{type:"TSAnyKeyword"}}function JC(){return{type:"TSBooleanKeyword"}}function YC(){return{type:"TSBigIntKeyword"}}function XC(){return{type:"TSIntrinsicKeyword"}}function WC(){return{type:"TSNeverKeyword"}}function $C(){return{type:"TSNullKeyword"}}function HC(){return{type:"TSNumberKeyword"}}function zC(){return{type:"TSObjectKeyword"}}function GC(){return{type:"TSStringKeyword"}}function QC(){return{type:"TSSymbolKeyword"}}function ZC(){return{type:"TSUndefinedKeyword"}}function eI(){return{type:"TSUnknownKeyword"}}function tI(){return{type:"TSVoidKeyword"}}function rI(){return{type:"TSThisType"}}function iI(e=null,t,r=null){let i={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},s=P.TSFunctionType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function sI(e=null,t,r=null){let i={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},s=P.TSConstructorType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function nI(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},i=P.TSTypeReference;return p(i.typeName,r,"typeName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function aI(e,t=null,r=null){let i={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},s=P.TSTypePredicate;return p(s.parameterName,i,"parameterName",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.asserts,i,"asserts",r),i}function oI(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},i=P.TSTypeQuery;return p(i.exprName,r,"exprName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function lI(e){let t={type:"TSTypeLiteral",members:e},r=P.TSTypeLiteral;return p(r.members,t,"members",e,1),t}function uI(e){let t={type:"TSArrayType",elementType:e},r=P.TSArrayType;return p(r.elementType,t,"elementType",e,1),t}function cI(e){let t={type:"TSTupleType",elementTypes:e},r=P.TSTupleType;return p(r.elementTypes,t,"elementTypes",e,1),t}function pI(e){let t={type:"TSOptionalType",typeAnnotation:e},r=P.TSOptionalType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function fI(e){let t={type:"TSRestType",typeAnnotation:e},r=P.TSRestType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function hI(e,t,r=!1){let i={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},s=P.TSNamedTupleMember;return p(s.label,i,"label",e,1),p(s.elementType,i,"elementType",t,1),p(s.optional,i,"optional",r),i}function dI(e){let t={type:"TSUnionType",types:e},r=P.TSUnionType;return p(r.types,t,"types",e,1),t}function mI(e){let t={type:"TSIntersectionType",types:e},r=P.TSIntersectionType;return p(r.types,t,"types",e,1),t}function yI(e,t,r,i){let s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:i},n=P.TSConditionalType;return p(n.checkType,s,"checkType",e,1),p(n.extendsType,s,"extendsType",t,1),p(n.trueType,s,"trueType",r,1),p(n.falseType,s,"falseType",i,1),s}function TI(e){let t={type:"TSInferType",typeParameter:e},r=P.TSInferType;return p(r.typeParameter,t,"typeParameter",e,1),t}function SI(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=P.TSParenthesizedType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function gI(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},i=P.TSTypeOperator;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.operator,r,"operator",t),r}function xI(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},i=P.TSIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function bI(e,t=null,r=null){let i={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},s=P.TSMappedType;return p(s.typeParameter,i,"typeParameter",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.nameType,i,"nameType",r,1),i}function EI(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},i=P.TSTemplateLiteralType;return p(i.quasis,r,"quasis",e,1),p(i.types,r,"types",t,1),r}function PI(e){let t={type:"TSLiteralType",literal:e},r=P.TSLiteralType;return p(r.literal,t,"literal",e,1),t}function AI(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},i=P.TSExpressionWithTypeArguments;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function vI(e,t=null,r=null,i){let s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=P.TSInterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function CI(e){let t={type:"TSInterfaceBody",body:e},r=P.TSInterfaceBody;return p(r.body,t,"body",e,1),t}function II(e,t=null,r){let i={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},s=P.TSTypeAliasDeclaration;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function wI(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},i=P.TSInstantiationExpression;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function NI(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},i=P.TSAsExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function _I(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},i=P.TSSatisfiesExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function OI(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},i=P.TSTypeAssertion;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.expression,r,"expression",t,1),r}function DI(e){let t={type:"TSEnumBody",members:e},r=P.TSEnumBody;return p(r.members,t,"members",e,1),t}function kI(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},i=P.TSEnumDeclaration;return p(i.id,r,"id",e,1),p(i.members,r,"members",t,1),r}function LI(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},i=P.TSEnumMember;return p(i.id,r,"id",e,1),p(i.initializer,r,"initializer",t,1),r}function MI(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},i=P.TSModuleDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function BI(e){let t={type:"TSModuleBlock",body:e},r=P.TSModuleBlock;return p(r.body,t,"body",e,1),t}function FI(e,t=null,r=null){let i={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},s=P.TSImportType;return p(s.argument,i,"argument",e,1),p(s.qualifier,i,"qualifier",t,1),p(s.typeParameters,i,"typeParameters",r,1),i}function jI(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},i=P.TSImportEqualsDeclaration;return p(i.id,r,"id",e,1),p(i.moduleReference,r,"moduleReference",t,1),r}function RI(e){let t={type:"TSExternalModuleReference",expression:e},r=P.TSExternalModuleReference;return p(r.expression,t,"expression",e,1),t}function qI(e){let t={type:"TSNonNullExpression",expression:e},r=P.TSNonNullExpression;return p(r.expression,t,"expression",e,1),t}function UI(e){let t={type:"TSExportAssignment",expression:e},r=P.TSExportAssignment;return p(r.expression,t,"expression",e,1),t}function KI(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=P.TSNamespaceExportDeclaration;return p(r.id,t,"id",e,1),t}function VI(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=P.TSTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function JI(e){let t={type:"TSTypeParameterInstantiation",params:e},r=P.TSTypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function YI(e){let t={type:"TSTypeParameterDeclaration",params:e},r=P.TSTypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function XI(e=null,t=null,r){let i={type:"TSTypeParameter",constraint:e,default:t,name:r},s=P.TSTypeParameter;return p(s.constraint,i,"constraint",e,1),p(s.default,i,"default",t,1),p(s.name,i,"name",r),i}function WI(e){return(0,an.default)("NumberLiteral","NumericLiteral","The node type "),Tf(e)}function $I(e,t=""){return(0,an.default)("RegexLiteral","RegExpLiteral","The node type "),Sf(e,t)}function HI(e){return(0,an.default)("RestProperty","RestElement","The node type "),gf(e)}function zI(e){return(0,an.default)("SpreadProperty","SpreadElement","The node type "),xf(e)}});var bf=_(c=>{"use strict";d();Object.defineProperty(c,"__esModule",{value:!0});c.JSXIdentifier=c.JSXFragment=c.JSXExpressionContainer=c.JSXEmptyExpression=c.JSXElement=c.JSXClosingFragment=c.JSXClosingElement=c.JSXAttribute=c.IntersectionTypeAnnotation=c.InterpreterDirective=c.InterfaceTypeAnnotation=c.InterfaceExtends=c.InterfaceDeclaration=c.InferredPredicate=c.IndexedAccessType=c.ImportSpecifier=c.ImportNamespaceSpecifier=c.ImportExpression=c.ImportDefaultSpecifier=c.ImportDeclaration=c.ImportAttribute=c.Import=c.IfStatement=c.Identifier=c.GenericTypeAnnotation=c.FunctionTypeParam=c.FunctionTypeAnnotation=c.FunctionExpression=c.FunctionDeclaration=c.ForStatement=c.ForOfStatement=c.ForInStatement=c.File=c.ExpressionStatement=c.ExportSpecifier=c.ExportNamespaceSpecifier=c.ExportNamedDeclaration=c.ExportDefaultSpecifier=c.ExportDefaultDeclaration=c.ExportAllDeclaration=c.ExistsTypeAnnotation=c.EnumSymbolBody=c.EnumStringMember=c.EnumStringBody=c.EnumNumberMember=c.EnumNumberBody=c.EnumDefaultedMember=c.EnumDeclaration=c.EnumBooleanMember=c.EnumBooleanBody=c.EmptyTypeAnnotation=c.EmptyStatement=c.DoWhileStatement=c.DoExpression=c.DirectiveLiteral=c.Directive=c.Decorator=c.DeclaredPredicate=c.DeclareVariable=c.DeclareTypeAlias=c.DeclareOpaqueType=c.DeclareModuleExports=c.DeclareModule=c.DeclareInterface=c.DeclareFunction=c.DeclareExportDeclaration=c.DeclareExportAllDeclaration=c.DeclareClass=c.DecimalLiteral=c.DebuggerStatement=c.ContinueStatement=c.ConditionalExpression=c.ClassProperty=c.ClassPrivateProperty=c.ClassPrivateMethod=c.ClassMethod=c.ClassImplements=c.ClassExpression=c.ClassDeclaration=c.ClassBody=c.ClassAccessorProperty=c.CatchClause=c.CallExpression=c.BreakStatement=c.BooleanTypeAnnotation=c.BooleanLiteralTypeAnnotation=c.BooleanLiteral=c.BlockStatement=c.BindExpression=c.BinaryExpression=c.BigIntLiteral=c.AwaitExpression=c.AssignmentPattern=c.AssignmentExpression=c.ArrowFunctionExpression=c.ArrayTypeAnnotation=c.ArrayPattern=c.ArrayExpression=c.ArgumentPlaceholder=c.AnyTypeAnnotation=void 0;c.TSNumberKeyword=c.TSNullKeyword=c.TSNonNullExpression=c.TSNeverKeyword=c.TSNamespaceExportDeclaration=c.TSNamedTupleMember=c.TSModuleDeclaration=c.TSModuleBlock=c.TSMethodSignature=c.TSMappedType=c.TSLiteralType=c.TSIntrinsicKeyword=c.TSIntersectionType=c.TSInterfaceDeclaration=c.TSInterfaceBody=c.TSInstantiationExpression=c.TSInferType=c.TSIndexedAccessType=c.TSIndexSignature=c.TSImportType=c.TSImportEqualsDeclaration=c.TSFunctionType=c.TSExternalModuleReference=c.TSExpressionWithTypeArguments=c.TSExportAssignment=c.TSEnumMember=c.TSEnumDeclaration=c.TSEnumBody=c.TSDeclareMethod=c.TSDeclareFunction=c.TSConstructorType=c.TSConstructSignatureDeclaration=c.TSConditionalType=c.TSCallSignatureDeclaration=c.TSBooleanKeyword=c.TSBigIntKeyword=c.TSAsExpression=c.TSArrayType=c.TSAnyKeyword=c.SymbolTypeAnnotation=c.SwitchStatement=c.SwitchCase=c.Super=c.StringTypeAnnotation=c.StringLiteralTypeAnnotation=c.StringLiteral=c.StaticBlock=c.SpreadProperty=c.SpreadElement=c.SequenceExpression=c.ReturnStatement=c.RestProperty=c.RestElement=c.RegexLiteral=c.RegExpLiteral=c.RecordExpression=c.QualifiedTypeIdentifier=c.Program=c.PrivateName=c.Placeholder=c.PipelineTopicExpression=c.PipelinePrimaryTopicReference=c.PipelineBareFunction=c.ParenthesizedExpression=c.OptionalMemberExpression=c.OptionalIndexedAccessType=c.OptionalCallExpression=c.OpaqueType=c.ObjectTypeSpreadProperty=c.ObjectTypeProperty=c.ObjectTypeInternalSlot=c.ObjectTypeIndexer=c.ObjectTypeCallProperty=c.ObjectTypeAnnotation=c.ObjectProperty=c.ObjectPattern=c.ObjectMethod=c.ObjectExpression=c.NumericLiteral=c.NumberTypeAnnotation=c.NumberLiteralTypeAnnotation=c.NumberLiteral=c.NullableTypeAnnotation=c.NullLiteralTypeAnnotation=c.NullLiteral=c.Noop=c.NewExpression=c.ModuleExpression=c.MixedTypeAnnotation=c.MetaProperty=c.MemberExpression=c.LogicalExpression=c.LabeledStatement=c.JSXText=c.JSXSpreadChild=c.JSXSpreadAttribute=c.JSXOpeningFragment=c.JSXOpeningElement=c.JSXNamespacedName=c.JSXMemberExpression=void 0;c.YieldExpression=c.WithStatement=c.WhileStatement=c.VoidTypeAnnotation=c.VoidPattern=c.Variance=c.VariableDeclarator=c.VariableDeclaration=c.V8IntrinsicIdentifier=c.UpdateExpression=c.UnionTypeAnnotation=c.UnaryExpression=c.TypeofTypeAnnotation=c.TypeParameterInstantiation=c.TypeParameterDeclaration=c.TypeParameter=c.TypeCastExpression=c.TypeAnnotation=c.TypeAlias=c.TupleTypeAnnotation=c.TupleExpression=c.TryStatement=c.TopicReference=c.ThrowStatement=c.ThisTypeAnnotation=c.ThisExpression=c.TemplateLiteral=c.TemplateElement=c.TaggedTemplateExpression=c.TSVoidKeyword=c.TSUnknownKeyword=c.TSUnionType=c.TSUndefinedKeyword=c.TSTypeReference=c.TSTypeQuery=c.TSTypePredicate=c.TSTypeParameterInstantiation=c.TSTypeParameterDeclaration=c.TSTypeParameter=c.TSTypeOperator=c.TSTypeLiteral=c.TSTypeAssertion=c.TSTypeAnnotation=c.TSTypeAliasDeclaration=c.TSTupleType=c.TSThisType=c.TSTemplateLiteralType=c.TSSymbolKeyword=c.TSStringKeyword=c.TSSatisfiesExpression=c.TSRestType=c.TSQualifiedName=c.TSPropertySignature=c.TSParenthesizedType=c.TSParameterProperty=c.TSOptionalType=c.TSObjectKeyword=void 0;var us=fo(),SW=Si();function b(e){return us[e]}var gW=c.ArrayExpression=b("arrayExpression"),xW=c.AssignmentExpression=b("assignmentExpression"),bW=c.BinaryExpression=b("binaryExpression"),EW=c.InterpreterDirective=b("interpreterDirective"),PW=c.Directive=b("directive"),AW=c.DirectiveLiteral=b("directiveLiteral"),vW=c.BlockStatement=b("blockStatement"),CW=c.BreakStatement=b("breakStatement"),IW=c.CallExpression=b("callExpression"),wW=c.CatchClause=b("catchClause"),NW=c.ConditionalExpression=b("conditionalExpression"),_W=c.ContinueStatement=b("continueStatement"),OW=c.DebuggerStatement=b("debuggerStatement"),DW=c.DoWhileStatement=b("doWhileStatement"),kW=c.EmptyStatement=b("emptyStatement"),LW=c.ExpressionStatement=b("expressionStatement"),MW=c.File=b("file"),BW=c.ForInStatement=b("forInStatement"),FW=c.ForStatement=b("forStatement"),jW=c.FunctionDeclaration=b("functionDeclaration"),RW=c.FunctionExpression=b("functionExpression"),qW=c.Identifier=b("identifier"),UW=c.IfStatement=b("ifStatement"),KW=c.LabeledStatement=b("labeledStatement"),VW=c.StringLiteral=b("stringLiteral"),JW=c.NumericLiteral=b("numericLiteral"),YW=c.NullLiteral=b("nullLiteral"),XW=c.BooleanLiteral=b("booleanLiteral"),WW=c.RegExpLiteral=b("regExpLiteral"),$W=c.LogicalExpression=b("logicalExpression"),HW=c.MemberExpression=b("memberExpression"),zW=c.NewExpression=b("newExpression"),GW=c.Program=b("program"),QW=c.ObjectExpression=b("objectExpression"),ZW=c.ObjectMethod=b("objectMethod"),e$=c.ObjectProperty=b("objectProperty"),t$=c.RestElement=b("restElement"),r$=c.ReturnStatement=b("returnStatement"),i$=c.SequenceExpression=b("sequenceExpression"),s$=c.ParenthesizedExpression=b("parenthesizedExpression"),n$=c.SwitchCase=b("switchCase"),a$=c.SwitchStatement=b("switchStatement"),o$=c.ThisExpression=b("thisExpression"),l$=c.ThrowStatement=b("throwStatement"),u$=c.TryStatement=b("tryStatement"),c$=c.UnaryExpression=b("unaryExpression"),p$=c.UpdateExpression=b("updateExpression"),f$=c.VariableDeclaration=b("variableDeclaration"),h$=c.VariableDeclarator=b("variableDeclarator"),d$=c.WhileStatement=b("whileStatement"),m$=c.WithStatement=b("withStatement"),y$=c.AssignmentPattern=b("assignmentPattern"),T$=c.ArrayPattern=b("arrayPattern"),S$=c.ArrowFunctionExpression=b("arrowFunctionExpression"),g$=c.ClassBody=b("classBody"),x$=c.ClassExpression=b("classExpression"),b$=c.ClassDeclaration=b("classDeclaration"),E$=c.ExportAllDeclaration=b("exportAllDeclaration"),P$=c.ExportDefaultDeclaration=b("exportDefaultDeclaration"),A$=c.ExportNamedDeclaration=b("exportNamedDeclaration"),v$=c.ExportSpecifier=b("exportSpecifier"),C$=c.ForOfStatement=b("forOfStatement"),I$=c.ImportDeclaration=b("importDeclaration"),w$=c.ImportDefaultSpecifier=b("importDefaultSpecifier"),N$=c.ImportNamespaceSpecifier=b("importNamespaceSpecifier"),_$=c.ImportSpecifier=b("importSpecifier"),O$=c.ImportExpression=b("importExpression"),D$=c.MetaProperty=b("metaProperty"),k$=c.ClassMethod=b("classMethod"),L$=c.ObjectPattern=b("objectPattern"),M$=c.SpreadElement=b("spreadElement"),B$=c.Super=b("super"),F$=c.TaggedTemplateExpression=b("taggedTemplateExpression"),j$=c.TemplateElement=b("templateElement"),R$=c.TemplateLiteral=b("templateLiteral"),q$=c.YieldExpression=b("yieldExpression"),U$=c.AwaitExpression=b("awaitExpression"),K$=c.Import=b("import"),V$=c.BigIntLiteral=b("bigIntLiteral"),J$=c.ExportNamespaceSpecifier=b("exportNamespaceSpecifier"),Y$=c.OptionalMemberExpression=b("optionalMemberExpression"),X$=c.OptionalCallExpression=b("optionalCallExpression"),W$=c.ClassProperty=b("classProperty"),$$=c.ClassAccessorProperty=b("classAccessorProperty"),H$=c.ClassPrivateProperty=b("classPrivateProperty"),z$=c.ClassPrivateMethod=b("classPrivateMethod"),G$=c.PrivateName=b("privateName"),Q$=c.StaticBlock=b("staticBlock"),Z$=c.ImportAttribute=b("importAttribute"),eH=c.AnyTypeAnnotation=b("anyTypeAnnotation"),tH=c.ArrayTypeAnnotation=b("arrayTypeAnnotation"),rH=c.BooleanTypeAnnotation=b("booleanTypeAnnotation"),iH=c.BooleanLiteralTypeAnnotation=b("booleanLiteralTypeAnnotation"),sH=c.NullLiteralTypeAnnotation=b("nullLiteralTypeAnnotation"),nH=c.ClassImplements=b("classImplements"),aH=c.DeclareClass=b("declareClass"),oH=c.DeclareFunction=b("declareFunction"),lH=c.DeclareInterface=b("declareInterface"),uH=c.DeclareModule=b("declareModule"),cH=c.DeclareModuleExports=b("declareModuleExports"),pH=c.DeclareTypeAlias=b("declareTypeAlias"),fH=c.DeclareOpaqueType=b("declareOpaqueType"),hH=c.DeclareVariable=b("declareVariable"),dH=c.DeclareExportDeclaration=b("declareExportDeclaration"),mH=c.DeclareExportAllDeclaration=b("declareExportAllDeclaration"),yH=c.DeclaredPredicate=b("declaredPredicate"),TH=c.ExistsTypeAnnotation=b("existsTypeAnnotation"),SH=c.FunctionTypeAnnotation=b("functionTypeAnnotation"),gH=c.FunctionTypeParam=b("functionTypeParam"),xH=c.GenericTypeAnnotation=b("genericTypeAnnotation"),bH=c.InferredPredicate=b("inferredPredicate"),EH=c.InterfaceExtends=b("interfaceExtends"),PH=c.InterfaceDeclaration=b("interfaceDeclaration"),AH=c.InterfaceTypeAnnotation=b("interfaceTypeAnnotation"),vH=c.IntersectionTypeAnnotation=b("intersectionTypeAnnotation"),CH=c.MixedTypeAnnotation=b("mixedTypeAnnotation"),IH=c.EmptyTypeAnnotation=b("emptyTypeAnnotation"),wH=c.NullableTypeAnnotation=b("nullableTypeAnnotation"),NH=c.NumberLiteralTypeAnnotation=b("numberLiteralTypeAnnotation"),_H=c.NumberTypeAnnotation=b("numberTypeAnnotation"),OH=c.ObjectTypeAnnotation=b("objectTypeAnnotation"),DH=c.ObjectTypeInternalSlot=b("objectTypeInternalSlot"),kH=c.ObjectTypeCallProperty=b("objectTypeCallProperty"),LH=c.ObjectTypeIndexer=b("objectTypeIndexer"),MH=c.ObjectTypeProperty=b("objectTypeProperty"),BH=c.ObjectTypeSpreadProperty=b("objectTypeSpreadProperty"),FH=c.OpaqueType=b("opaqueType"),jH=c.QualifiedTypeIdentifier=b("qualifiedTypeIdentifier"),RH=c.StringLiteralTypeAnnotation=b("stringLiteralTypeAnnotation"),qH=c.StringTypeAnnotation=b("stringTypeAnnotation"),UH=c.SymbolTypeAnnotation=b("symbolTypeAnnotation"),KH=c.ThisTypeAnnotation=b("thisTypeAnnotation"),VH=c.TupleTypeAnnotation=b("tupleTypeAnnotation"),JH=c.TypeofTypeAnnotation=b("typeofTypeAnnotation"),YH=c.TypeAlias=b("typeAlias"),XH=c.TypeAnnotation=b("typeAnnotation"),WH=c.TypeCastExpression=b("typeCastExpression"),$H=c.TypeParameter=b("typeParameter"),HH=c.TypeParameterDeclaration=b("typeParameterDeclaration"),zH=c.TypeParameterInstantiation=b("typeParameterInstantiation"),GH=c.UnionTypeAnnotation=b("unionTypeAnnotation"),QH=c.Variance=b("variance"),ZH=c.VoidTypeAnnotation=b("voidTypeAnnotation"),ez=c.EnumDeclaration=b("enumDeclaration"),tz=c.EnumBooleanBody=b("enumBooleanBody"),rz=c.EnumNumberBody=b("enumNumberBody"),iz=c.EnumStringBody=b("enumStringBody"),sz=c.EnumSymbolBody=b("enumSymbolBody"),nz=c.EnumBooleanMember=b("enumBooleanMember"),az=c.EnumNumberMember=b("enumNumberMember"),oz=c.EnumStringMember=b("enumStringMember"),lz=c.EnumDefaultedMember=b("enumDefaultedMember"),uz=c.IndexedAccessType=b("indexedAccessType"),cz=c.OptionalIndexedAccessType=b("optionalIndexedAccessType"),pz=c.JSXAttribute=b("jsxAttribute"),fz=c.JSXClosingElement=b("jsxClosingElement"),hz=c.JSXElement=b("jsxElement"),dz=c.JSXEmptyExpression=b("jsxEmptyExpression"),mz=c.JSXExpressionContainer=b("jsxExpressionContainer"),yz=c.JSXSpreadChild=b("jsxSpreadChild"),Tz=c.JSXIdentifier=b("jsxIdentifier"),Sz=c.JSXMemberExpression=b("jsxMemberExpression"),gz=c.JSXNamespacedName=b("jsxNamespacedName"),xz=c.JSXOpeningElement=b("jsxOpeningElement"),bz=c.JSXSpreadAttribute=b("jsxSpreadAttribute"),Ez=c.JSXText=b("jsxText"),Pz=c.JSXFragment=b("jsxFragment"),Az=c.JSXOpeningFragment=b("jsxOpeningFragment"),vz=c.JSXClosingFragment=b("jsxClosingFragment"),Cz=c.Noop=b("noop"),Iz=c.Placeholder=b("placeholder"),wz=c.V8IntrinsicIdentifier=b("v8IntrinsicIdentifier"),Nz=c.ArgumentPlaceholder=b("argumentPlaceholder"),_z=c.BindExpression=b("bindExpression"),Oz=c.Decorator=b("decorator"),Dz=c.DoExpression=b("doExpression"),kz=c.ExportDefaultSpecifier=b("exportDefaultSpecifier"),Lz=c.RecordExpression=b("recordExpression"),Mz=c.TupleExpression=b("tupleExpression"),Bz=c.DecimalLiteral=b("decimalLiteral"),Fz=c.ModuleExpression=b("moduleExpression"),jz=c.TopicReference=b("topicReference"),Rz=c.PipelineTopicExpression=b("pipelineTopicExpression"),qz=c.PipelineBareFunction=b("pipelineBareFunction"),Uz=c.PipelinePrimaryTopicReference=b("pipelinePrimaryTopicReference"),Kz=c.VoidPattern=b("voidPattern"),Vz=c.TSParameterProperty=b("tsParameterProperty"),Jz=c.TSDeclareFunction=b("tsDeclareFunction"),Yz=c.TSDeclareMethod=b("tsDeclareMethod"),Xz=c.TSQualifiedName=b("tsQualifiedName"),Wz=c.TSCallSignatureDeclaration=b("tsCallSignatureDeclaration"),$z=c.TSConstructSignatureDeclaration=b("tsConstructSignatureDeclaration"),Hz=c.TSPropertySignature=b("tsPropertySignature"),zz=c.TSMethodSignature=b("tsMethodSignature"),Gz=c.TSIndexSignature=b("tsIndexSignature"),Qz=c.TSAnyKeyword=b("tsAnyKeyword"),Zz=c.TSBooleanKeyword=b("tsBooleanKeyword"),eG=c.TSBigIntKeyword=b("tsBigIntKeyword"),tG=c.TSIntrinsicKeyword=b("tsIntrinsicKeyword"),rG=c.TSNeverKeyword=b("tsNeverKeyword"),iG=c.TSNullKeyword=b("tsNullKeyword"),sG=c.TSNumberKeyword=b("tsNumberKeyword"),nG=c.TSObjectKeyword=b("tsObjectKeyword"),aG=c.TSStringKeyword=b("tsStringKeyword"),oG=c.TSSymbolKeyword=b("tsSymbolKeyword"),lG=c.TSUndefinedKeyword=b("tsUndefinedKeyword"),uG=c.TSUnknownKeyword=b("tsUnknownKeyword"),cG=c.TSVoidKeyword=b("tsVoidKeyword"),pG=c.TSThisType=b("tsThisType"),fG=c.TSFunctionType=b("tsFunctionType"),hG=c.TSConstructorType=b("tsConstructorType"),dG=c.TSTypeReference=b("tsTypeReference"),mG=c.TSTypePredicate=b("tsTypePredicate"),yG=c.TSTypeQuery=b("tsTypeQuery"),TG=c.TSTypeLiteral=b("tsTypeLiteral"),SG=c.TSArrayType=b("tsArrayType"),gG=c.TSTupleType=b("tsTupleType"),xG=c.TSOptionalType=b("tsOptionalType"),bG=c.TSRestType=b("tsRestType"),EG=c.TSNamedTupleMember=b("tsNamedTupleMember"),PG=c.TSUnionType=b("tsUnionType"),AG=c.TSIntersectionType=b("tsIntersectionType"),vG=c.TSConditionalType=b("tsConditionalType"),CG=c.TSInferType=b("tsInferType"),IG=c.TSParenthesizedType=b("tsParenthesizedType"),wG=c.TSTypeOperator=b("tsTypeOperator"),NG=c.TSIndexedAccessType=b("tsIndexedAccessType"),_G=c.TSMappedType=b("tsMappedType"),OG=c.TSTemplateLiteralType=b("tsTemplateLiteralType"),DG=c.TSLiteralType=b("tsLiteralType"),kG=c.TSExpressionWithTypeArguments=b("tsExpressionWithTypeArguments"),LG=c.TSInterfaceDeclaration=b("tsInterfaceDeclaration"),MG=c.TSInterfaceBody=b("tsInterfaceBody"),BG=c.TSTypeAliasDeclaration=b("tsTypeAliasDeclaration"),FG=c.TSInstantiationExpression=b("tsInstantiationExpression"),jG=c.TSAsExpression=b("tsAsExpression"),RG=c.TSSatisfiesExpression=b("tsSatisfiesExpression"),qG=c.TSTypeAssertion=b("tsTypeAssertion"),UG=c.TSEnumBody=b("tsEnumBody"),KG=c.TSEnumDeclaration=b("tsEnumDeclaration"),VG=c.TSEnumMember=b("tsEnumMember"),JG=c.TSModuleDeclaration=b("tsModuleDeclaration"),YG=c.TSModuleBlock=b("tsModuleBlock"),XG=c.TSImportType=b("tsImportType"),WG=c.TSImportEqualsDeclaration=b("tsImportEqualsDeclaration"),$G=c.TSExternalModuleReference=b("tsExternalModuleReference"),HG=c.TSNonNullExpression=b("tsNonNullExpression"),zG=c.TSExportAssignment=b("tsExportAssignment"),GG=c.TSNamespaceExportDeclaration=b("tsNamespaceExportDeclaration"),QG=c.TSTypeAnnotation=b("tsTypeAnnotation"),ZG=c.TSTypeParameterInstantiation=b("tsTypeParameterInstantiation"),eQ=c.TSTypeParameterDeclaration=b("tsTypeParameterDeclaration"),tQ=c.TSTypeParameter=b("tsTypeParameter"),rQ=c.NumberLiteral=us.numberLiteral,iQ=c.RegexLiteral=us.regexLiteral,sQ=c.RestProperty=us.restProperty,nQ=c.SpreadProperty=us.spreadProperty});var wt=_(Nr=>{"use strict";d();Object.defineProperty(Nr,"__esModule",{value:!0});var ho=fo();Object.keys(ho).forEach(function(e){e==="default"||e==="__esModule"||e in Nr&&Nr[e]===ho[e]||Object.defineProperty(Nr,e,{enumerable:!0,get:function(){return ho[e]}})});var mo=bf();Object.keys(mo).forEach(function(e){e==="default"||e==="__esModule"||e in Nr&&Nr[e]===mo[e]||Object.defineProperty(Nr,e,{enumerable:!0,get:function(){return mo[e]}})})});var Ef=_(yo=>{"use strict";d();Object.defineProperty(yo,"__esModule",{value:!0});yo.default=ZI;var GI=wt(),QI=me();function ZI(e,t){let r=e.value.split(/\r\n|\n|\r/),i=0;for(let n=0;n<r.length;n++)/[^ \t]/.exec(r[n])&&(i=n);let s="";for(let n=0;n<r.length;n++){let a=r[n],o=n===0,l=n===r.length-1,u=n===i,f=a.replace(/\t/g," ");o||(f=f.replace(/^ +/,"")),l||(f=f.replace(/ +$/,"")),f&&(u||(f+=" "),s+=f)}s&&t.push((0,QI.inherits)((0,GI.stringLiteral)(s),e))}});var Pf=_(So=>{"use strict";d();Object.defineProperty(So,"__esModule",{value:!0});So.default=tw;var To=Qe(),ew=Ef();function tw(e){let t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0,To.isJSXText)(i)){(0,ew.default)(i,t);continue}(0,To.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,To.isJSXEmptyExpression)(i)&&t.push(i)}return t}});var xo=_(go=>{"use strict";d();Object.defineProperty(go,"__esModule",{value:!0});go.default=iw;var rw=jt();function iw(e){return!!(e&&rw.VISITOR_KEYS[e.type])}});var Af=_(bo=>{"use strict";d();Object.defineProperty(bo,"__esModule",{value:!0});bo.default=nw;var sw=xo();function nw(e){if(!(0,sw.default)(e)){var t;let r=(t=e?.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var vf=_(y=>{"use strict";d();Object.defineProperty(y,"__esModule",{value:!0});y.assertAccessor=vk;y.assertAnyTypeAnnotation=KN;y.assertArgumentPlaceholder=TO;y.assertArrayExpression=ow;y.assertArrayPattern=nN;y.assertArrayTypeAnnotation=VN;y.assertArrowFunctionExpression=aN;y.assertAssignmentExpression=lw;y.assertAssignmentPattern=sN;y.assertAwaitExpression=NN;y.assertBigIntLiteral=ON;y.assertBinary=XD;y.assertBinaryExpression=uw;y.assertBindExpression=SO;y.assertBlock=HD;y.assertBlockParent=$D;y.assertBlockStatement=hw;y.assertBooleanLiteral=Lw;y.assertBooleanLiteralTypeAnnotation=YN;y.assertBooleanTypeAnnotation=JN;y.assertBreakStatement=dw;y.assertCallExpression=mw;y.assertCatchClause=yw;y.assertClass=bk;y.assertClassAccessorProperty=BN;y.assertClassBody=oN;y.assertClassDeclaration=uN;y.assertClassExpression=lN;y.assertClassImplements=WN;y.assertClassMethod=bN;y.assertClassPrivateMethod=jN;y.assertClassPrivateProperty=FN;y.assertClassProperty=MN;y.assertCompletionStatement=QD;y.assertConditional=ZD;y.assertConditionalExpression=Tw;y.assertContinueStatement=Sw;y.assertDebuggerStatement=gw;y.assertDecimalLiteral=AO;y.assertDeclaration=lk;y.assertDeclareClass=$N;y.assertDeclareExportAllDeclaration=i_;y.assertDeclareExportDeclaration=r_;y.assertDeclareFunction=HN;y.assertDeclareInterface=zN;y.assertDeclareModule=GN;y.assertDeclareModuleExports=QN;y.assertDeclareOpaqueType=e_;y.assertDeclareTypeAlias=ZN;y.assertDeclareVariable=t_;y.assertDeclaredPredicate=s_;y.assertDecorator=gO;y.assertDirective=pw;y.assertDirectiveLiteral=fw;y.assertDoExpression=xO;y.assertDoWhileStatement=xw;y.assertEmptyStatement=bw;y.assertEmptyTypeAnnotation=m_;y.assertEnumBody=Dk;y.assertEnumBooleanBody=V_;y.assertEnumBooleanMember=W_;y.assertEnumDeclaration=K_;y.assertEnumDefaultedMember=z_;y.assertEnumMember=kk;y.assertEnumNumberBody=J_;y.assertEnumNumberMember=$_;y.assertEnumStringBody=Y_;y.assertEnumStringMember=H_;y.assertEnumSymbolBody=X_;y.assertExistsTypeAnnotation=n_;y.assertExportAllDeclaration=cN;y.assertExportDeclaration=Pk;y.assertExportDefaultDeclaration=pN;y.assertExportDefaultSpecifier=bO;y.assertExportNamedDeclaration=fN;y.assertExportNamespaceSpecifier=DN;y.assertExportSpecifier=hN;y.assertExpression=YD;y.assertExpressionStatement=Ew;y.assertExpressionWrapper=rk;y.assertFile=Pw;y.assertFlow=Ik;y.assertFlowBaseAnnotation=Nk;y.assertFlowDeclaration=_k;y.assertFlowPredicate=Ok;y.assertFlowType=wk;y.assertFor=ik;y.assertForInStatement=Aw;y.assertForOfStatement=dN;y.assertForStatement=vw;y.assertForXStatement=sk;y.assertFunction=nk;y.assertFunctionDeclaration=Cw;y.assertFunctionExpression=Iw;y.assertFunctionParameter=uk;y.assertFunctionParent=ak;y.assertFunctionTypeAnnotation=a_;y.assertFunctionTypeParam=o_;y.assertGenericTypeAnnotation=l_;y.assertIdentifier=ww;y.assertIfStatement=Nw;y.assertImmutable=dk;y.assertImport=_N;y.assertImportAttribute=UN;y.assertImportDeclaration=mN;y.assertImportDefaultSpecifier=yN;y.assertImportExpression=gN;y.assertImportNamespaceSpecifier=TN;y.assertImportOrExportDeclaration=Ek;y.assertImportSpecifier=SN;y.assertIndexedAccessType=G_;y.assertInferredPredicate=u_;y.assertInterfaceDeclaration=p_;y.assertInterfaceExtends=c_;y.assertInterfaceTypeAnnotation=f_;y.assertInterpreterDirective=cw;y.assertIntersectionTypeAnnotation=h_;y.assertJSX=Lk;y.assertJSXAttribute=Z_;y.assertJSXClosingElement=eO;y.assertJSXClosingFragment=hO;y.assertJSXElement=tO;y.assertJSXEmptyExpression=rO;y.assertJSXExpressionContainer=iO;y.assertJSXFragment=pO;y.assertJSXIdentifier=nO;y.assertJSXMemberExpression=aO;y.assertJSXNamespacedName=oO;y.assertJSXOpeningElement=lO;y.assertJSXOpeningFragment=fO;y.assertJSXSpreadAttribute=uO;y.assertJSXSpreadChild=sO;y.assertJSXText=cO;y.assertLVal=pk;y.assertLabeledStatement=_w;y.assertLiteral=hk;y.assertLogicalExpression=Bw;y.assertLoop=ek;y.assertMemberExpression=Fw;y.assertMetaProperty=xN;y.assertMethod=yk;y.assertMiscellaneous=Mk;y.assertMixedTypeAnnotation=d_;y.assertModuleDeclaration=Jk;y.assertModuleExpression=vO;y.assertModuleSpecifier=Ak;y.assertNewExpression=jw;y.assertNoop=dO;y.assertNullLiteral=kw;y.assertNullLiteralTypeAnnotation=XN;y.assertNullableTypeAnnotation=y_;y.assertNumberLiteral=qk;y.assertNumberLiteralTypeAnnotation=T_;y.assertNumberTypeAnnotation=S_;y.assertNumericLiteral=Dw;y.assertObjectExpression=qw;y.assertObjectMember=Tk;y.assertObjectMethod=Uw;y.assertObjectPattern=EN;y.assertObjectProperty=Kw;y.assertObjectTypeAnnotation=g_;y.assertObjectTypeCallProperty=b_;y.assertObjectTypeIndexer=E_;y.assertObjectTypeInternalSlot=x_;y.assertObjectTypeProperty=P_;y.assertObjectTypeSpreadProperty=A_;y.assertOpaqueType=v_;y.assertOptionalCallExpression=LN;y.assertOptionalIndexedAccessType=Q_;y.assertOptionalMemberExpression=kN;y.assertParenthesizedExpression=Xw;y.assertPattern=xk;y.assertPatternLike=ck;y.assertPipelineBareFunction=wO;y.assertPipelinePrimaryTopicReference=NO;y.assertPipelineTopicExpression=IO;y.assertPlaceholder=mO;y.assertPrivate=Ck;y.assertPrivateName=RN;y.assertProgram=Rw;y.assertProperty=Sk;y.assertPureish=ok;y.assertQualifiedTypeIdentifier=C_;y.assertRecordExpression=EO;y.assertRegExpLiteral=Mw;y.assertRegexLiteral=Uk;y.assertRestElement=Vw;y.assertRestProperty=Kk;y.assertReturnStatement=Jw;y.assertScopable=WD;y.assertSequenceExpression=Yw;y.assertSpreadElement=PN;y.assertSpreadProperty=Vk;y.assertStandardized=JD;y.assertStatement=zD;y.assertStaticBlock=qN;y.assertStringLiteral=Ow;y.assertStringLiteralTypeAnnotation=I_;y.assertStringTypeAnnotation=w_;y.assertSuper=AN;y.assertSwitchCase=Ww;y.assertSwitchStatement=$w;y.assertSymbolTypeAnnotation=N_;y.assertTSAnyKeyword=qO;y.assertTSArrayType=aD;y.assertTSAsExpression=CD;y.assertTSBaseType=Rk;y.assertTSBigIntKeyword=KO;y.assertTSBooleanKeyword=UO;y.assertTSCallSignatureDeclaration=MO;y.assertTSConditionalType=hD;y.assertTSConstructSignatureDeclaration=BO;y.assertTSConstructorType=tD;y.assertTSDeclareFunction=DO;y.assertTSDeclareMethod=kO;y.assertTSEntityName=fk;y.assertTSEnumBody=ND;y.assertTSEnumDeclaration=_D;y.assertTSEnumMember=OD;y.assertTSExportAssignment=jD;y.assertTSExpressionWithTypeArguments=bD;y.assertTSExternalModuleReference=BD;y.assertTSFunctionType=eD;y.assertTSImportEqualsDeclaration=MD;y.assertTSImportType=LD;y.assertTSIndexSignature=RO;y.assertTSIndexedAccessType=TD;y.assertTSInferType=dD;y.assertTSInstantiationExpression=vD;y.assertTSInterfaceBody=PD;y.assertTSInterfaceDeclaration=ED;y.assertTSIntersectionType=fD;y.assertTSIntrinsicKeyword=VO;y.assertTSLiteralType=xD;y.assertTSMappedType=SD;y.assertTSMethodSignature=jO;y.assertTSModuleBlock=kD;y.assertTSModuleDeclaration=DD;y.assertTSNamedTupleMember=cD;y.assertTSNamespaceExportDeclaration=RD;y.assertTSNeverKeyword=JO;y.assertTSNonNullExpression=FD;y.assertTSNullKeyword=YO;y.assertTSNumberKeyword=XO;y.assertTSObjectKeyword=WO;y.assertTSOptionalType=lD;y.assertTSParameterProperty=OO;y.assertTSParenthesizedType=mD;y.assertTSPropertySignature=FO;y.assertTSQualifiedName=LO;y.assertTSRestType=uD;y.assertTSSatisfiesExpression=ID;y.assertTSStringKeyword=$O;y.assertTSSymbolKeyword=HO;y.assertTSTemplateLiteralType=gD;y.assertTSThisType=ZO;y.assertTSTupleType=oD;y.assertTSType=jk;y.assertTSTypeAliasDeclaration=AD;y.assertTSTypeAnnotation=qD;y.assertTSTypeAssertion=wD;y.assertTSTypeElement=Fk;y.assertTSTypeLiteral=nD;y.assertTSTypeOperator=yD;y.assertTSTypeParameter=VD;y.assertTSTypeParameterDeclaration=KD;y.assertTSTypeParameterInstantiation=UD;y.assertTSTypePredicate=iD;y.assertTSTypeQuery=sD;y.assertTSTypeReference=rD;y.assertTSUndefinedKeyword=zO;y.assertTSUnionType=pD;y.assertTSUnknownKeyword=GO;y.assertTSVoidKeyword=QO;y.assertTaggedTemplateExpression=vN;y.assertTemplateElement=CN;y.assertTemplateLiteral=IN;y.assertTerminatorless=GD;y.assertThisExpression=Hw;y.assertThisTypeAnnotation=__;y.assertThrowStatement=zw;y.assertTopicReference=CO;y.assertTryStatement=Gw;y.assertTupleExpression=PO;y.assertTupleTypeAnnotation=O_;y.assertTypeAlias=k_;y.assertTypeAnnotation=L_;y.assertTypeCastExpression=M_;y.assertTypeParameter=B_;y.assertTypeParameterDeclaration=F_;y.assertTypeParameterInstantiation=j_;y.assertTypeScript=Bk;y.assertTypeofTypeAnnotation=D_;y.assertUnaryExpression=Qw;y.assertUnaryLike=gk;y.assertUnionTypeAnnotation=R_;y.assertUpdateExpression=Zw;y.assertUserWhitespacable=mk;y.assertV8IntrinsicIdentifier=yO;y.assertVariableDeclaration=eN;y.assertVariableDeclarator=tN;y.assertVariance=q_;y.assertVoidPattern=_O;y.assertVoidTypeAnnotation=U_;y.assertWhile=tk;y.assertWhileStatement=rN;y.assertWithStatement=iN;y.assertYieldExpression=wN;var aw=gi(),cs=Si();function T(e,t,r){if(!(0,aw.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function ow(e,t){T("ArrayExpression",e,t)}function lw(e,t){T("AssignmentExpression",e,t)}function uw(e,t){T("BinaryExpression",e,t)}function cw(e,t){T("InterpreterDirective",e,t)}function pw(e,t){T("Directive",e,t)}function fw(e,t){T("DirectiveLiteral",e,t)}function hw(e,t){T("BlockStatement",e,t)}function dw(e,t){T("BreakStatement",e,t)}function mw(e,t){T("CallExpression",e,t)}function yw(e,t){T("CatchClause",e,t)}function Tw(e,t){T("ConditionalExpression",e,t)}function Sw(e,t){T("ContinueStatement",e,t)}function gw(e,t){T("DebuggerStatement",e,t)}function xw(e,t){T("DoWhileStatement",e,t)}function bw(e,t){T("EmptyStatement",e,t)}function Ew(e,t){T("ExpressionStatement",e,t)}function Pw(e,t){T("File",e,t)}function Aw(e,t){T("ForInStatement",e,t)}function vw(e,t){T("ForStatement",e,t)}function Cw(e,t){T("FunctionDeclaration",e,t)}function Iw(e,t){T("FunctionExpression",e,t)}function ww(e,t){T("Identifier",e,t)}function Nw(e,t){T("IfStatement",e,t)}function _w(e,t){T("LabeledStatement",e,t)}function Ow(e,t){T("StringLiteral",e,t)}function Dw(e,t){T("NumericLiteral",e,t)}function kw(e,t){T("NullLiteral",e,t)}function Lw(e,t){T("BooleanLiteral",e,t)}function Mw(e,t){T("RegExpLiteral",e,t)}function Bw(e,t){T("LogicalExpression",e,t)}function Fw(e,t){T("MemberExpression",e,t)}function jw(e,t){T("NewExpression",e,t)}function Rw(e,t){T("Program",e,t)}function qw(e,t){T("ObjectExpression",e,t)}function Uw(e,t){T("ObjectMethod",e,t)}function Kw(e,t){T("ObjectProperty",e,t)}function Vw(e,t){T("RestElement",e,t)}function Jw(e,t){T("ReturnStatement",e,t)}function Yw(e,t){T("SequenceExpression",e,t)}function Xw(e,t){T("ParenthesizedExpression",e,t)}function Ww(e,t){T("SwitchCase",e,t)}function $w(e,t){T("SwitchStatement",e,t)}function Hw(e,t){T("ThisExpression",e,t)}function zw(e,t){T("ThrowStatement",e,t)}function Gw(e,t){T("TryStatement",e,t)}function Qw(e,t){T("UnaryExpression",e,t)}function Zw(e,t){T("UpdateExpression",e,t)}function eN(e,t){T("VariableDeclaration",e,t)}function tN(e,t){T("VariableDeclarator",e,t)}function rN(e,t){T("WhileStatement",e,t)}function iN(e,t){T("WithStatement",e,t)}function sN(e,t){T("AssignmentPattern",e,t)}function nN(e,t){T("ArrayPattern",e,t)}function aN(e,t){T("ArrowFunctionExpression",e,t)}function oN(e,t){T("ClassBody",e,t)}function lN(e,t){T("ClassExpression",e,t)}function uN(e,t){T("ClassDeclaration",e,t)}function cN(e,t){T("ExportAllDeclaration",e,t)}function pN(e,t){T("ExportDefaultDeclaration",e,t)}function fN(e,t){T("ExportNamedDeclaration",e,t)}function hN(e,t){T("ExportSpecifier",e,t)}function dN(e,t){T("ForOfStatement",e,t)}function mN(e,t){T("ImportDeclaration",e,t)}function yN(e,t){T("ImportDefaultSpecifier",e,t)}function TN(e,t){T("ImportNamespaceSpecifier",e,t)}function SN(e,t){T("ImportSpecifier",e,t)}function gN(e,t){T("ImportExpression",e,t)}function xN(e,t){T("MetaProperty",e,t)}function bN(e,t){T("ClassMethod",e,t)}function EN(e,t){T("ObjectPattern",e,t)}function PN(e,t){T("SpreadElement",e,t)}function AN(e,t){T("Super",e,t)}function vN(e,t){T("TaggedTemplateExpression",e,t)}function CN(e,t){T("TemplateElement",e,t)}function IN(e,t){T("TemplateLiteral",e,t)}function wN(e,t){T("YieldExpression",e,t)}function NN(e,t){T("AwaitExpression",e,t)}function _N(e,t){T("Import",e,t)}function ON(e,t){T("BigIntLiteral",e,t)}function DN(e,t){T("ExportNamespaceSpecifier",e,t)}function kN(e,t){T("OptionalMemberExpression",e,t)}function LN(e,t){T("OptionalCallExpression",e,t)}function MN(e,t){T("ClassProperty",e,t)}function BN(e,t){T("ClassAccessorProperty",e,t)}function FN(e,t){T("ClassPrivateProperty",e,t)}function jN(e,t){T("ClassPrivateMethod",e,t)}function RN(e,t){T("PrivateName",e,t)}function qN(e,t){T("StaticBlock",e,t)}function UN(e,t){T("ImportAttribute",e,t)}function KN(e,t){T("AnyTypeAnnotation",e,t)}function VN(e,t){T("ArrayTypeAnnotation",e,t)}function JN(e,t){T("BooleanTypeAnnotation",e,t)}function YN(e,t){T("BooleanLiteralTypeAnnotation",e,t)}function XN(e,t){T("NullLiteralTypeAnnotation",e,t)}function WN(e,t){T("ClassImplements",e,t)}function $N(e,t){T("DeclareClass",e,t)}function HN(e,t){T("DeclareFunction",e,t)}function zN(e,t){T("DeclareInterface",e,t)}function GN(e,t){T("DeclareModule",e,t)}function QN(e,t){T("DeclareModuleExports",e,t)}function ZN(e,t){T("DeclareTypeAlias",e,t)}function e_(e,t){T("DeclareOpaqueType",e,t)}function t_(e,t){T("DeclareVariable",e,t)}function r_(e,t){T("DeclareExportDeclaration",e,t)}function i_(e,t){T("DeclareExportAllDeclaration",e,t)}function s_(e,t){T("DeclaredPredicate",e,t)}function n_(e,t){T("ExistsTypeAnnotation",e,t)}function a_(e,t){T("FunctionTypeAnnotation",e,t)}function o_(e,t){T("FunctionTypeParam",e,t)}function l_(e,t){T("GenericTypeAnnotation",e,t)}function u_(e,t){T("InferredPredicate",e,t)}function c_(e,t){T("InterfaceExtends",e,t)}function p_(e,t){T("InterfaceDeclaration",e,t)}function f_(e,t){T("InterfaceTypeAnnotation",e,t)}function h_(e,t){T("IntersectionTypeAnnotation",e,t)}function d_(e,t){T("MixedTypeAnnotation",e,t)}function m_(e,t){T("EmptyTypeAnnotation",e,t)}function y_(e,t){T("NullableTypeAnnotation",e,t)}function T_(e,t){T("NumberLiteralTypeAnnotation",e,t)}function S_(e,t){T("NumberTypeAnnotation",e,t)}function g_(e,t){T("ObjectTypeAnnotation",e,t)}function x_(e,t){T("ObjectTypeInternalSlot",e,t)}function b_(e,t){T("ObjectTypeCallProperty",e,t)}function E_(e,t){T("ObjectTypeIndexer",e,t)}function P_(e,t){T("ObjectTypeProperty",e,t)}function A_(e,t){T("ObjectTypeSpreadProperty",e,t)}function v_(e,t){T("OpaqueType",e,t)}function C_(e,t){T("QualifiedTypeIdentifier",e,t)}function I_(e,t){T("StringLiteralTypeAnnotation",e,t)}function w_(e,t){T("StringTypeAnnotation",e,t)}function N_(e,t){T("SymbolTypeAnnotation",e,t)}function __(e,t){T("ThisTypeAnnotation",e,t)}function O_(e,t){T("TupleTypeAnnotation",e,t)}function D_(e,t){T("TypeofTypeAnnotation",e,t)}function k_(e,t){T("TypeAlias",e,t)}function L_(e,t){T("TypeAnnotation",e,t)}function M_(e,t){T("TypeCastExpression",e,t)}function B_(e,t){T("TypeParameter",e,t)}function F_(e,t){T("TypeParameterDeclaration",e,t)}function j_(e,t){T("TypeParameterInstantiation",e,t)}function R_(e,t){T("UnionTypeAnnotation",e,t)}function q_(e,t){T("Variance",e,t)}function U_(e,t){T("VoidTypeAnnotation",e,t)}function K_(e,t){T("EnumDeclaration",e,t)}function V_(e,t){T("EnumBooleanBody",e,t)}function J_(e,t){T("EnumNumberBody",e,t)}function Y_(e,t){T("EnumStringBody",e,t)}function X_(e,t){T("EnumSymbolBody",e,t)}function W_(e,t){T("EnumBooleanMember",e,t)}function $_(e,t){T("EnumNumberMember",e,t)}function H_(e,t){T("EnumStringMember",e,t)}function z_(e,t){T("EnumDefaultedMember",e,t)}function G_(e,t){T("IndexedAccessType",e,t)}function Q_(e,t){T("OptionalIndexedAccessType",e,t)}function Z_(e,t){T("JSXAttribute",e,t)}function eO(e,t){T("JSXClosingElement",e,t)}function tO(e,t){T("JSXElement",e,t)}function rO(e,t){T("JSXEmptyExpression",e,t)}function iO(e,t){T("JSXExpressionContainer",e,t)}function sO(e,t){T("JSXSpreadChild",e,t)}function nO(e,t){T("JSXIdentifier",e,t)}function aO(e,t){T("JSXMemberExpression",e,t)}function oO(e,t){T("JSXNamespacedName",e,t)}function lO(e,t){T("JSXOpeningElement",e,t)}function uO(e,t){T("JSXSpreadAttribute",e,t)}function cO(e,t){T("JSXText",e,t)}function pO(e,t){T("JSXFragment",e,t)}function fO(e,t){T("JSXOpeningFragment",e,t)}function hO(e,t){T("JSXClosingFragment",e,t)}function dO(e,t){T("Noop",e,t)}function mO(e,t){T("Placeholder",e,t)}function yO(e,t){T("V8IntrinsicIdentifier",e,t)}function TO(e,t){T("ArgumentPlaceholder",e,t)}function SO(e,t){T("BindExpression",e,t)}function gO(e,t){T("Decorator",e,t)}function xO(e,t){T("DoExpression",e,t)}function bO(e,t){T("ExportDefaultSpecifier",e,t)}function EO(e,t){T("RecordExpression",e,t)}function PO(e,t){T("TupleExpression",e,t)}function AO(e,t){T("DecimalLiteral",e,t)}function vO(e,t){T("ModuleExpression",e,t)}function CO(e,t){T("TopicReference",e,t)}function IO(e,t){T("PipelineTopicExpression",e,t)}function wO(e,t){T("PipelineBareFunction",e,t)}function NO(e,t){T("PipelinePrimaryTopicReference",e,t)}function _O(e,t){T("VoidPattern",e,t)}function OO(e,t){T("TSParameterProperty",e,t)}function DO(e,t){T("TSDeclareFunction",e,t)}function kO(e,t){T("TSDeclareMethod",e,t)}function LO(e,t){T("TSQualifiedName",e,t)}function MO(e,t){T("TSCallSignatureDeclaration",e,t)}function BO(e,t){T("TSConstructSignatureDeclaration",e,t)}function FO(e,t){T("TSPropertySignature",e,t)}function jO(e,t){T("TSMethodSignature",e,t)}function RO(e,t){T("TSIndexSignature",e,t)}function qO(e,t){T("TSAnyKeyword",e,t)}function UO(e,t){T("TSBooleanKeyword",e,t)}function KO(e,t){T("TSBigIntKeyword",e,t)}function VO(e,t){T("TSIntrinsicKeyword",e,t)}function JO(e,t){T("TSNeverKeyword",e,t)}function YO(e,t){T("TSNullKeyword",e,t)}function XO(e,t){T("TSNumberKeyword",e,t)}function WO(e,t){T("TSObjectKeyword",e,t)}function $O(e,t){T("TSStringKeyword",e,t)}function HO(e,t){T("TSSymbolKeyword",e,t)}function zO(e,t){T("TSUndefinedKeyword",e,t)}function GO(e,t){T("TSUnknownKeyword",e,t)}function QO(e,t){T("TSVoidKeyword",e,t)}function ZO(e,t){T("TSThisType",e,t)}function eD(e,t){T("TSFunctionType",e,t)}function tD(e,t){T("TSConstructorType",e,t)}function rD(e,t){T("TSTypeReference",e,t)}function iD(e,t){T("TSTypePredicate",e,t)}function sD(e,t){T("TSTypeQuery",e,t)}function nD(e,t){T("TSTypeLiteral",e,t)}function aD(e,t){T("TSArrayType",e,t)}function oD(e,t){T("TSTupleType",e,t)}function lD(e,t){T("TSOptionalType",e,t)}function uD(e,t){T("TSRestType",e,t)}function cD(e,t){T("TSNamedTupleMember",e,t)}function pD(e,t){T("TSUnionType",e,t)}function fD(e,t){T("TSIntersectionType",e,t)}function hD(e,t){T("TSConditionalType",e,t)}function dD(e,t){T("TSInferType",e,t)}function mD(e,t){T("TSParenthesizedType",e,t)}function yD(e,t){T("TSTypeOperator",e,t)}function TD(e,t){T("TSIndexedAccessType",e,t)}function SD(e,t){T("TSMappedType",e,t)}function gD(e,t){T("TSTemplateLiteralType",e,t)}function xD(e,t){T("TSLiteralType",e,t)}function bD(e,t){T("TSExpressionWithTypeArguments",e,t)}function ED(e,t){T("TSInterfaceDeclaration",e,t)}function PD(e,t){T("TSInterfaceBody",e,t)}function AD(e,t){T("TSTypeAliasDeclaration",e,t)}function vD(e,t){T("TSInstantiationExpression",e,t)}function CD(e,t){T("TSAsExpression",e,t)}function ID(e,t){T("TSSatisfiesExpression",e,t)}function wD(e,t){T("TSTypeAssertion",e,t)}function ND(e,t){T("TSEnumBody",e,t)}function _D(e,t){T("TSEnumDeclaration",e,t)}function OD(e,t){T("TSEnumMember",e,t)}function DD(e,t){T("TSModuleDeclaration",e,t)}function kD(e,t){T("TSModuleBlock",e,t)}function LD(e,t){T("TSImportType",e,t)}function MD(e,t){T("TSImportEqualsDeclaration",e,t)}function BD(e,t){T("TSExternalModuleReference",e,t)}function FD(e,t){T("TSNonNullExpression",e,t)}function jD(e,t){T("TSExportAssignment",e,t)}function RD(e,t){T("TSNamespaceExportDeclaration",e,t)}function qD(e,t){T("TSTypeAnnotation",e,t)}function UD(e,t){T("TSTypeParameterInstantiation",e,t)}function KD(e,t){T("TSTypeParameterDeclaration",e,t)}function VD(e,t){T("TSTypeParameter",e,t)}function JD(e,t){T("Standardized",e,t)}function YD(e,t){T("Expression",e,t)}function XD(e,t){T("Binary",e,t)}function WD(e,t){T("Scopable",e,t)}function $D(e,t){T("BlockParent",e,t)}function HD(e,t){T("Block",e,t)}function zD(e,t){T("Statement",e,t)}function GD(e,t){T("Terminatorless",e,t)}function QD(e,t){T("CompletionStatement",e,t)}function ZD(e,t){T("Conditional",e,t)}function ek(e,t){T("Loop",e,t)}function tk(e,t){T("While",e,t)}function rk(e,t){T("ExpressionWrapper",e,t)}function ik(e,t){T("For",e,t)}function sk(e,t){T("ForXStatement",e,t)}function nk(e,t){T("Function",e,t)}function ak(e,t){T("FunctionParent",e,t)}function ok(e,t){T("Pureish",e,t)}function lk(e,t){T("Declaration",e,t)}function uk(e,t){T("FunctionParameter",e,t)}function ck(e,t){T("PatternLike",e,t)}function pk(e,t){T("LVal",e,t)}function fk(e,t){T("TSEntityName",e,t)}function hk(e,t){T("Literal",e,t)}function dk(e,t){T("Immutable",e,t)}function mk(e,t){T("UserWhitespacable",e,t)}function yk(e,t){T("Method",e,t)}function Tk(e,t){T("ObjectMember",e,t)}function Sk(e,t){T("Property",e,t)}function gk(e,t){T("UnaryLike",e,t)}function xk(e,t){T("Pattern",e,t)}function bk(e,t){T("Class",e,t)}function Ek(e,t){T("ImportOrExportDeclaration",e,t)}function Pk(e,t){T("ExportDeclaration",e,t)}function Ak(e,t){T("ModuleSpecifier",e,t)}function vk(e,t){T("Accessor",e,t)}function Ck(e,t){T("Private",e,t)}function Ik(e,t){T("Flow",e,t)}function wk(e,t){T("FlowType",e,t)}function Nk(e,t){T("FlowBaseAnnotation",e,t)}function _k(e,t){T("FlowDeclaration",e,t)}function Ok(e,t){T("FlowPredicate",e,t)}function Dk(e,t){T("EnumBody",e,t)}function kk(e,t){T("EnumMember",e,t)}function Lk(e,t){T("JSX",e,t)}function Mk(e,t){T("Miscellaneous",e,t)}function Bk(e,t){T("TypeScript",e,t)}function Fk(e,t){T("TSTypeElement",e,t)}function jk(e,t){T("TSType",e,t)}function Rk(e,t){T("TSBaseType",e,t)}function qk(e,t){(0,cs.default)("assertNumberLiteral","assertNumericLiteral"),T("NumberLiteral",e,t)}function Uk(e,t){(0,cs.default)("assertRegexLiteral","assertRegExpLiteral"),T("RegexLiteral",e,t)}function Kk(e,t){(0,cs.default)("assertRestProperty","assertRestElement"),T("RestProperty",e,t)}function Vk(e,t){(0,cs.default)("assertSpreadProperty","assertSpreadElement"),T("SpreadProperty",e,t)}function Jk(e,t){(0,cs.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),T("ModuleDeclaration",e,t)}});var Cf=_(on=>{"use strict";d();Object.defineProperty(on,"__esModule",{value:!0});on.default=void 0;var $t=wt(),xQ=on.default=Yk;function Yk(e){switch(e){case"string":return(0,$t.stringTypeAnnotation)();case"number":return(0,$t.numberTypeAnnotation)();case"undefined":return(0,$t.voidTypeAnnotation)();case"boolean":return(0,$t.booleanTypeAnnotation)();case"function":return(0,$t.genericTypeAnnotation)((0,$t.identifier)("Function"));case"object":return(0,$t.genericTypeAnnotation)((0,$t.identifier)("Object"));case"symbol":return(0,$t.genericTypeAnnotation)((0,$t.identifier)("Symbol"));case"bigint":return(0,$t.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var Po=_(Eo=>{"use strict";d();Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=wf;var ps=Qe();function If(e){return(0,ps.isIdentifier)(e)?e.name:`${e.id.name}.${If(e.qualification)}`}function wf(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!n.includes(o)){if((0,ps.isAnyTypeAnnotation)(o))return[o];if((0,ps.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,ps.isUnionTypeAnnotation)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}if((0,ps.isGenericTypeAnnotation)(o)){let l=If(o.id);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=wf(u.typeParameters.params)):u=o.typeParameters}else r.set(l,o);continue}n.push(o)}}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var Nf=_(Ao=>{"use strict";d();Object.defineProperty(Ao,"__esModule",{value:!0});Ao.default=$k;var Xk=wt(),Wk=Po();function $k(e){let t=(0,Wk.default)(e);return t.length===1?t[0]:(0,Xk.unionTypeAnnotation)(t)}});var Df=_(vo=>{"use strict";d();Object.defineProperty(vo,"__esModule",{value:!0});vo.default=Of;var Ci=Qe();function _f(e){return(0,Ci.isIdentifier)(e)?e.name:(0,Ci.isThisExpression)(e)?"this":`${e.right.name}.${_f(e.left)}`}function Of(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o||n.includes(o))continue;if((0,Ci.isTSAnyKeyword)(o))return[o];if((0,Ci.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,Ci.isTSUnionType)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}let l="typeParameters";if((0,Ci.isTSTypeReference)(o)&&o[l]){let u=o[l],f=_f(o.typeName);if(r.has(f)){let x=r.get(f),A=x[l];A?(A.params.push(...u.params),A.params=Of(A.params)):x=u}else r.set(f,o);continue}n.push(o)}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var kf=_(Co=>{"use strict";d();Object.defineProperty(Co,"__esModule",{value:!0});Co.default=Qk;var Hk=wt(),zk=Df(),Gk=Qe();function Qk(e){let t=e.map(i=>(0,Gk.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,zk.default)(t);return r.length===1?r[0]:(0,Hk.tsUnionType)(r)}});var wo=_(Io=>{"use strict";d();Object.defineProperty(Io,"__esModule",{value:!0});Io.buildUndefinedNode=Zk;var Lf=wt();function Zk(){return(0,Lf.unaryExpression)("void",(0,Lf.numericLiteral)(0),!0)}});var _r=_(_o=>{"use strict";d();Object.defineProperty(_o,"__esModule",{value:!0});_o.default=eL;var Mf=jt(),Bf=Qe(),{hasOwn:nr}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Ff(e,t,r,i){return e&&typeof e.type=="string"?jf(e,t,r,i):e}function No(e,t,r,i){return Array.isArray(e)?e.map(s=>Ff(s,t,r,i)):Ff(e,t,r,i)}function eL(e,t=!0,r=!1){return jf(e,t,r,new Map)}function jf(e,t=!0,r=!1,i){if(!e)return e;let{type:s}=e,n={type:e.type};if((0,Bf.isIdentifier)(e))n.name=e.name,nr(e,"optional")&&typeof e.optional=="boolean"&&(n.optional=e.optional),nr(e,"typeAnnotation")&&(n.typeAnnotation=t?No(e.typeAnnotation,!0,r,i):e.typeAnnotation),nr(e,"decorators")&&(n.decorators=t?No(e.decorators,!0,r,i):e.decorators);else if(nr(Mf.NODE_FIELDS,s))for(let a of Object.keys(Mf.NODE_FIELDS[s]))nr(e,a)&&(t?n[a]=(0,Bf.isFile)(e)&&a==="comments"?ln(e.comments,t,r,i):No(e[a],!0,r,i):n[a]=e[a]);else throw new Error(`Unknown node type: "${s}"`);return nr(e,"loc")&&(r?n.loc=null:n.loc=e.loc),nr(e,"leadingComments")&&(n.leadingComments=ln(e.leadingComments,t,r,i)),nr(e,"innerComments")&&(n.innerComments=ln(e.innerComments,t,r,i)),nr(e,"trailingComments")&&(n.trailingComments=ln(e.trailingComments,t,r,i)),nr(e,"extra")&&(n.extra=Object.assign({},e.extra)),n}function ln(e,t,r,i){return!e||!t?e:e.map(s=>{let n=i.get(s);if(n)return n;let{type:a,value:o,loc:l}=s,u={type:a,value:o,loc:l};return r&&(u.loc=null),i.set(s,u),u})}});var Rf=_(Oo=>{"use strict";d();Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=rL;var tL=_r();function rL(e){return(0,tL.default)(e,!1)}});var qf=_(Do=>{"use strict";d();Object.defineProperty(Do,"__esModule",{value:!0});Do.default=sL;var iL=_r();function sL(e){return(0,iL.default)(e)}});var Uf=_(ko=>{"use strict";d();Object.defineProperty(ko,"__esModule",{value:!0});ko.default=aL;var nL=_r();function aL(e){return(0,nL.default)(e,!0,!0)}});var Kf=_(Lo=>{"use strict";d();Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=lL;var oL=_r();function lL(e){return(0,oL.default)(e,!1,!0)}});var Bo=_(Mo=>{"use strict";d();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=uL;function uL(e,t,r){if(!r||!e)return e;let i=`${t}Comments`;return e[i]?t==="leading"?e[i]=r.concat(e[i]):e[i].push(...r):e[i]=r,e}});var Vf=_(Fo=>{"use strict";d();Object.defineProperty(Fo,"__esModule",{value:!0});Fo.default=pL;var cL=Bo();function pL(e,t,r,i){return(0,cL.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var un=_(jo=>{"use strict";d();Object.defineProperty(jo,"__esModule",{value:!0});jo.default=fL;function fL(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var qo=_(Ro=>{"use strict";d();Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=dL;var hL=un();function dL(e,t){(0,hL.default)("innerComments",e,t)}});var Ko=_(Uo=>{"use strict";d();Object.defineProperty(Uo,"__esModule",{value:!0});Uo.default=yL;var mL=un();function yL(e,t){(0,mL.default)("leadingComments",e,t)}});var Jo=_(Vo=>{"use strict";d();Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=SL;var TL=un();function SL(e,t){(0,TL.default)("trailingComments",e,t)}});var Xo=_(Yo=>{"use strict";d();Object.defineProperty(Yo,"__esModule",{value:!0});Yo.default=EL;var gL=Jo(),xL=Ko(),bL=qo();function EL(e,t){return(0,gL.default)(e,t),(0,xL.default)(e,t),(0,bL.default)(e,t),e}});var Jf=_(Wo=>{"use strict";d();Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=AL;var PL=bi();function AL(e){return PL.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var Yf=_(q=>{"use strict";d();Object.defineProperty(q,"__esModule",{value:!0});q.WHILE_TYPES=q.USERWHITESPACABLE_TYPES=q.UNARYLIKE_TYPES=q.TYPESCRIPT_TYPES=q.TSTYPE_TYPES=q.TSTYPEELEMENT_TYPES=q.TSENTITYNAME_TYPES=q.TSBASETYPE_TYPES=q.TERMINATORLESS_TYPES=q.STATEMENT_TYPES=q.STANDARDIZED_TYPES=q.SCOPABLE_TYPES=q.PUREISH_TYPES=q.PROPERTY_TYPES=q.PRIVATE_TYPES=q.PATTERN_TYPES=q.PATTERNLIKE_TYPES=q.OBJECTMEMBER_TYPES=q.MODULESPECIFIER_TYPES=q.MODULEDECLARATION_TYPES=q.MISCELLANEOUS_TYPES=q.METHOD_TYPES=q.LVAL_TYPES=q.LOOP_TYPES=q.LITERAL_TYPES=q.JSX_TYPES=q.IMPORTOREXPORTDECLARATION_TYPES=q.IMMUTABLE_TYPES=q.FUNCTION_TYPES=q.FUNCTIONPARENT_TYPES=q.FUNCTIONPARAMETER_TYPES=q.FOR_TYPES=q.FORXSTATEMENT_TYPES=q.FLOW_TYPES=q.FLOWTYPE_TYPES=q.FLOWPREDICATE_TYPES=q.FLOWDECLARATION_TYPES=q.FLOWBASEANNOTATION_TYPES=q.EXPRESSION_TYPES=q.EXPRESSIONWRAPPER_TYPES=q.EXPORTDECLARATION_TYPES=q.ENUMMEMBER_TYPES=q.ENUMBODY_TYPES=q.DECLARATION_TYPES=q.CONDITIONAL_TYPES=q.COMPLETIONSTATEMENT_TYPES=q.CLASS_TYPES=q.BLOCK_TYPES=q.BLOCKPARENT_TYPES=q.BINARY_TYPES=q.ACCESSOR_TYPES=void 0;var pe=jt(),nZ=q.STANDARDIZED_TYPES=pe.FLIPPED_ALIAS_KEYS.Standardized,aZ=q.EXPRESSION_TYPES=pe.FLIPPED_ALIAS_KEYS.Expression,oZ=q.BINARY_TYPES=pe.FLIPPED_ALIAS_KEYS.Binary,lZ=q.SCOPABLE_TYPES=pe.FLIPPED_ALIAS_KEYS.Scopable,uZ=q.BLOCKPARENT_TYPES=pe.FLIPPED_ALIAS_KEYS.BlockParent,cZ=q.BLOCK_TYPES=pe.FLIPPED_ALIAS_KEYS.Block,pZ=q.STATEMENT_TYPES=pe.FLIPPED_ALIAS_KEYS.Statement,fZ=q.TERMINATORLESS_TYPES=pe.FLIPPED_ALIAS_KEYS.Terminatorless,hZ=q.COMPLETIONSTATEMENT_TYPES=pe.FLIPPED_ALIAS_KEYS.CompletionStatement,dZ=q.CONDITIONAL_TYPES=pe.FLIPPED_ALIAS_KEYS.Conditional,mZ=q.LOOP_TYPES=pe.FLIPPED_ALIAS_KEYS.Loop,yZ=q.WHILE_TYPES=pe.FLIPPED_ALIAS_KEYS.While,TZ=q.EXPRESSIONWRAPPER_TYPES=pe.FLIPPED_ALIAS_KEYS.ExpressionWrapper,SZ=q.FOR_TYPES=pe.FLIPPED_ALIAS_KEYS.For,gZ=q.FORXSTATEMENT_TYPES=pe.FLIPPED_ALIAS_KEYS.ForXStatement,xZ=q.FUNCTION_TYPES=pe.FLIPPED_ALIAS_KEYS.Function,bZ=q.FUNCTIONPARENT_TYPES=pe.FLIPPED_ALIAS_KEYS.FunctionParent,EZ=q.PUREISH_TYPES=pe.FLIPPED_ALIAS_KEYS.Pureish,PZ=q.DECLARATION_TYPES=pe.FLIPPED_ALIAS_KEYS.Declaration,AZ=q.FUNCTIONPARAMETER_TYPES=pe.FLIPPED_ALIAS_KEYS.FunctionParameter,vZ=q.PATTERNLIKE_TYPES=pe.FLIPPED_ALIAS_KEYS.PatternLike,CZ=q.LVAL_TYPES=pe.FLIPPED_ALIAS_KEYS.LVal,IZ=q.TSENTITYNAME_TYPES=pe.FLIPPED_ALIAS_KEYS.TSEntityName,wZ=q.LITERAL_TYPES=pe.FLIPPED_ALIAS_KEYS.Literal,NZ=q.IMMUTABLE_TYPES=pe.FLIPPED_ALIAS_KEYS.Immutable,_Z=q.USERWHITESPACABLE_TYPES=pe.FLIPPED_ALIAS_KEYS.UserWhitespacable,OZ=q.METHOD_TYPES=pe.FLIPPED_ALIAS_KEYS.Method,DZ=q.OBJECTMEMBER_TYPES=pe.FLIPPED_ALIAS_KEYS.ObjectMember,kZ=q.PROPERTY_TYPES=pe.FLIPPED_ALIAS_KEYS.Property,LZ=q.UNARYLIKE_TYPES=pe.FLIPPED_ALIAS_KEYS.UnaryLike,MZ=q.PATTERN_TYPES=pe.FLIPPED_ALIAS_KEYS.Pattern,BZ=q.CLASS_TYPES=pe.FLIPPED_ALIAS_KEYS.Class,vL=q.IMPORTOREXPORTDECLARATION_TYPES=pe.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,FZ=q.EXPORTDECLARATION_TYPES=pe.FLIPPED_ALIAS_KEYS.ExportDeclaration,jZ=q.MODULESPECIFIER_TYPES=pe.FLIPPED_ALIAS_KEYS.ModuleSpecifier,RZ=q.ACCESSOR_TYPES=pe.FLIPPED_ALIAS_KEYS.Accessor,qZ=q.PRIVATE_TYPES=pe.FLIPPED_ALIAS_KEYS.Private,UZ=q.FLOW_TYPES=pe.FLIPPED_ALIAS_KEYS.Flow,KZ=q.FLOWTYPE_TYPES=pe.FLIPPED_ALIAS_KEYS.FlowType,VZ=q.FLOWBASEANNOTATION_TYPES=pe.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,JZ=q.FLOWDECLARATION_TYPES=pe.FLIPPED_ALIAS_KEYS.FlowDeclaration,YZ=q.FLOWPREDICATE_TYPES=pe.FLIPPED_ALIAS_KEYS.FlowPredicate,XZ=q.ENUMBODY_TYPES=pe.FLIPPED_ALIAS_KEYS.EnumBody,WZ=q.ENUMMEMBER_TYPES=pe.FLIPPED_ALIAS_KEYS.EnumMember,$Z=q.JSX_TYPES=pe.FLIPPED_ALIAS_KEYS.JSX,HZ=q.MISCELLANEOUS_TYPES=pe.FLIPPED_ALIAS_KEYS.Miscellaneous,zZ=q.TYPESCRIPT_TYPES=pe.FLIPPED_ALIAS_KEYS.TypeScript,GZ=q.TSTYPEELEMENT_TYPES=pe.FLIPPED_ALIAS_KEYS.TSTypeElement,QZ=q.TSTYPE_TYPES=pe.FLIPPED_ALIAS_KEYS.TSType,ZZ=q.TSBASETYPE_TYPES=pe.FLIPPED_ALIAS_KEYS.TSBaseType,eee=q.MODULEDECLARATION_TYPES=vL});var zo=_(Ho=>{"use strict";d();Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=CL;var cn=Qe(),$o=wt();function CL(e,t){if((0,cn.isBlockStatement)(e))return e;let r=[];return(0,cn.isEmptyStatement)(e)?r=[]:((0,cn.isStatement)(e)||((0,cn.isFunction)(t)?e=(0,$o.returnStatement)(e):e=(0,$o.expressionStatement)(e)),r=[e]),(0,$o.blockStatement)(r)}});var Xf=_(Go=>{"use strict";d();Object.defineProperty(Go,"__esModule",{value:!0});Go.default=wL;var IL=zo();function wL(e,t="body"){let r=(0,IL.default)(e[t],e);return e[t]=r,r}});var Zo=_(Qo=>{"use strict";d();Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=OL;var NL=xi(),_L=is();function OL(e){e=e+"";let t="";for(let r of e)t+=(0,_L.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,NL.default)(t)||(t=`_${t}`),t||"_"}});var Wf=_(el=>{"use strict";d();Object.defineProperty(el,"__esModule",{value:!0});el.default=kL;var DL=Zo();function kL(e){return e=(0,DL.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var $f=_(tl=>{"use strict";d();Object.defineProperty(tl,"__esModule",{value:!0});tl.default=BL;var LL=Qe(),ML=wt();function BL(e,t=e.key||e.property){return!e.computed&&(0,LL.isIdentifier)(t)&&(t=(0,ML.stringLiteral)(t.name)),t}});var Hf=_(pn=>{"use strict";d();Object.defineProperty(pn,"__esModule",{value:!0});pn.default=void 0;var fs=Qe(),hee=pn.default=FL;function FL(e){if((0,fs.isExpressionStatement)(e)&&(e=e.expression),(0,fs.isExpression)(e))return e;if((0,fs.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,fs.isFunction)(e)&&(e.type="FunctionExpression"),!(0,fs.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var il=_(rl=>{"use strict";d();Object.defineProperty(rl,"__esModule",{value:!0});rl.default=hs;var jL=jt(),zf=Symbol(),Gf=Symbol();function hs(e,t,r){if(!e)return!1;let i=jL.VISITOR_KEYS[e.type];if(!i)return!1;r=r||{};let s=t(e,r);if(s!==void 0)switch(s){case zf:return!1;case Gf:return!0}for(let n of i){let a=e[n];if(a){if(Array.isArray(a)){for(let o of a)if(hs(o,t,r))return!0}else if(hs(a,t,r))return!0}}return!1}hs.skip=zf;hs.stop=Gf});var nl=_(sl=>{"use strict";d();Object.defineProperty(sl,"__esModule",{value:!0});sl.default=UL;var RL=bi(),Qf=["tokens","start","end","loc","raw","rawValue"],qL=[...RL.COMMENT_KEYS,"comments",...Qf];function UL(e,t={}){let r=t.preserveComments?Qf:qL;for(let s of r)e[s]!=null&&(e[s]=void 0);for(let s of Object.keys(e))s.startsWith("_")&&e[s]!=null&&(e[s]=void 0);let i=Object.getOwnPropertySymbols(e);for(let s of i)e[s]=null}});var ol=_(al=>{"use strict";d();Object.defineProperty(al,"__esModule",{value:!0});al.default=JL;var KL=il(),VL=nl();function JL(e,t){return(0,KL.default)(e,VL.default,t),e}});var eh=_(ll=>{"use strict";d();Object.defineProperty(ll,"__esModule",{value:!0});ll.default=zr;var Zf=Qe(),YL=_r(),XL=ol();function zr(e,t=e.key){let r;return e.kind==="method"?zr.increment()+"":((0,Zf.isIdentifier)(t)?r=t.name:(0,Zf.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,XL.default)((0,YL.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}zr.uid=0;zr.increment=function(){return zr.uid>=Number.MAX_SAFE_INTEGER?zr.uid=0:zr.uid++}});var th=_(hn=>{"use strict";d();Object.defineProperty(hn,"__esModule",{value:!0});hn.default=void 0;var fn=Qe(),WL=wt(),Aee=hn.default=$L;function $L(e,t){if((0,fn.isStatement)(e))return e;let r=!1,i;if((0,fn.isClass)(e))r=!0,i="ClassDeclaration";else if((0,fn.isFunction)(e))r=!0,i="FunctionDeclaration";else if((0,fn.isAssignmentExpression)(e))return(0,WL.expressionStatement)(e);if(r&&!e.id&&(i=!1),!i){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e}});var rh=_(dn=>{"use strict";d();Object.defineProperty(dn,"__esModule",{value:!0});dn.default=void 0;var HL=xi(),nt=wt(),Iee=dn.default=ul,zL=Function.call.bind(Object.prototype.toString);function GL(e){return zL(e)==="[object RegExp]"}function QL(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function ul(e){if(e===void 0)return(0,nt.identifier)("undefined");if(e===!0||e===!1)return(0,nt.booleanLiteral)(e);if(e===null)return(0,nt.nullLiteral)();if(typeof e=="string")return(0,nt.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,nt.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,nt.numericLiteral)(0):r=(0,nt.numericLiteral)(1),t=(0,nt.binaryExpression)("/",r,(0,nt.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,nt.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0,nt.unaryExpression)("-",(0,nt.bigIntLiteral)(-e)):(0,nt.bigIntLiteral)(e);if(GL(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,nt.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,nt.arrayExpression)(e.map(ul));if(QL(e)){let t=[];for(let r of Object.keys(e)){let i,s=!1;(0,HL.default)(r)?r==="__proto__"?(s=!0,i=(0,nt.stringLiteral)(r)):i=(0,nt.identifier)(r):i=(0,nt.stringLiteral)(r),t.push((0,nt.objectProperty)(i,ul(e[r]),s))}return(0,nt.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var ih=_(cl=>{"use strict";d();Object.defineProperty(cl,"__esModule",{value:!0});cl.default=e2;var ZL=wt();function e2(e,t,r=!1){return e.object=(0,ZL.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var nh=_(pl=>{"use strict";d();Object.defineProperty(pl,"__esModule",{value:!0});pl.default=r2;var sh=bi(),t2=Xo();function r2(e,t){if(!e||!t)return e;for(let r of sh.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r.startsWith("_")&&r!=="__clone"&&(e[r]=t[r]);for(let r of sh.INHERIT_KEYS.force)e[r]=t[r];return(0,t2.default)(e,t),e}});var ah=_(fl=>{"use strict";d();Object.defineProperty(fl,"__esModule",{value:!0});fl.default=n2;var i2=wt(),s2=me();function n2(e,t){if((0,s2.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,i2.memberExpression)(t,e.object),e}});var oh=_(hl=>{"use strict";d();Object.defineProperty(hl,"__esModule",{value:!0});hl.default=a2;function a2(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let i=t.pop();if(i)switch(i.type){case"ArrayPattern":t.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(i.left);break;case"ObjectPattern":t.push(...i.properties);break;case"ObjectProperty":t.push(i.value);break;case"RestElement":case"UpdateExpression":t.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&t.push(i.argument);break;case"Identifier":r[i.name]=i;break;default:break}}return r}});var ds=_(ml=>{"use strict";d();Object.defineProperty(ml,"__esModule",{value:!0});ml.default=dl;var gr=Qe();function dl(e,t,r,i){let s=[].concat(e),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||i&&((0,gr.isAssignmentExpression)(a)||(0,gr.isUnaryExpression)(a)||(0,gr.isUpdateExpression)(a)))continue;if((0,gr.isIdentifier)(a)){t?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,gr.isExportDeclaration)(a)&&!(0,gr.isExportAllDeclaration)(a)){(0,gr.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0,gr.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,gr.isFunctionExpression)(a))continue}let o=dl.keys[a.type];if(o)for(let l=0;l<o.length;l++){let u=o[l],f=a[u];f&&(Array.isArray(f)?s.push(...f):s.push(f))}}return n}var o2={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};dl.keys=o2});var lh=_(mn=>{"use strict";d();Object.defineProperty(mn,"__esModule",{value:!0});mn.default=void 0;var l2=ds(),qee=mn.default=u2;function u2(e,t){return(0,l2.default)(e,t,!0)}});var ch=_(yl=>{"use strict";d();Object.defineProperty(yl,"__esModule",{value:!0});yl.default=p2;var Rt=Qe();function c2(e){return(0,Rt.isNullLiteral)(e)?"null":(0,Rt.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,Rt.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function uh(e){if(!e.computed||(0,Rt.isLiteral)(e.key))return e.key}function p2(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",i;if((0,Rt.isObjectProperty)(t,{value:e})?i=uh(t):(0,Rt.isObjectMethod)(e)||(0,Rt.isClassMethod)(e)?(i=uh(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,Rt.isVariableDeclarator)(t,{init:e})?i=t.id:(0,Rt.isAssignmentExpression)(t,{operator:"=",right:e})&&(i=t.left),!i)return null;let s=(0,Rt.isLiteral)(i)?c2(i):(0,Rt.isIdentifier)(i)?i.name:(0,Rt.isPrivateName)(i)?i.id.name:null;return s==null?null:{name:r+s,originalNode:i}}});var ph=_(Sl=>{"use strict";d();Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=h2;var f2=jt();function h2(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:i,exit:s}=t;Tl(e,i,s,r,[])}function Tl(e,t,r,i,s){let n=f2.VISITOR_KEYS[e.type];if(n){t&&t(e,s,i);for(let a of n){let o=e[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let u=o[l];u&&(s.push({node:e,key:a,index:l}),Tl(u,t,r,i,s),s.pop())}else o&&(s.push({node:e,key:a}),Tl(o,t,r,i,s),s.pop())}r&&r(e,s,i)}}});var fh=_(gl=>{"use strict";d();Object.defineProperty(gl,"__esModule",{value:!0});gl.default=m2;var d2=ds();function m2(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=d2.default.keys[t.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],a=t[n];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}});var bl=_(xl=>{"use strict";d();Object.defineProperty(xl,"__esModule",{value:!0});xl.default=S2;var y2=Qe(),T2=Symbol.for("var used to be block scoped");function S2(e){return(0,y2.isVariableDeclaration)(e)&&(e.kind!=="var"||e[T2])}});var dh=_(El=>{"use strict";d();Object.defineProperty(El,"__esModule",{value:!0});El.default=x2;var hh=Qe(),g2=bl();function x2(e){return(0,hh.isFunctionDeclaration)(e)||(0,hh.isClassDeclaration)(e)||(0,g2.default)(e)}});var mh=_(Pl=>{"use strict";d();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.default=P2;var b2=Hs(),E2=Qe();function P2(e){return(0,b2.default)(e.type,"Immutable")?!0:(0,E2.isIdentifier)(e)?e.name==="undefined":!1}});var Th=_(vl=>{"use strict";d();Object.defineProperty(vl,"__esModule",{value:!0});vl.default=Al;var yh=jt();function Al(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(yh.NODE_FIELDS[e.type]||e.type),i=yh.VISITOR_KEYS[e.type];for(let s of r){let n=e[s],a=t[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!Al(n[o],a[o]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!Al(n,a))return!1}}return!0}});var Sh=_(Cl=>{"use strict";d();Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=A2;function A2(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:r?.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var gh=_(Il=>{"use strict";d();Object.defineProperty(Il,"__esModule",{value:!0});Il.default=v2;var Gr=Qe();function v2(e,t){return(0,Gr.isBlockStatement)(e)&&((0,Gr.isFunction)(t)||(0,Gr.isCatchClause)(t))?!1:(0,Gr.isPattern)(e)&&((0,Gr.isFunction)(t)||(0,Gr.isCatchClause)(t))?!0:(0,Gr.isScopable)(e)}});var bh=_(wl=>{"use strict";d();Object.defineProperty(wl,"__esModule",{value:!0});wl.default=C2;var xh=Qe();function C2(e){return(0,xh.isImportDefaultSpecifier)(e)||(0,xh.isIdentifier)(e.imported||e.exported,{name:"default"})}});var Eh=_(Nl=>{"use strict";d();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.default=N2;var I2=xi(),w2=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function N2(e){return(0,I2.default)(e)&&!w2.has(e)}});var Ph=_(_l=>{"use strict";d();Object.defineProperty(_l,"__esModule",{value:!0});_l.default=D2;var _2=Qe(),O2=Symbol.for("var used to be block scoped");function D2(e){return(0,_2.isVariableDeclaration)(e,{kind:"var"})&&!e[O2]}});var Ah=_(kl=>{"use strict";d();Object.defineProperty(kl,"__esModule",{value:!0});kl.default=yn;var k2=ds(),Qr=Qe(),Ol=wt(),Dl=wo(),L2=_r();function yn(e,t){let r=[],i=!0;for(let s of e)if((0,Qr.isEmptyStatement)(s)||(i=!1),(0,Qr.isExpression)(s))r.push(s);else if((0,Qr.isExpressionStatement)(s))r.push(s.expression);else if((0,Qr.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,k2.default)(n);for(let o of Object.keys(a))t.push({kind:s.kind,id:(0,L2.default)(a[o])});n.init&&r.push((0,Ol.assignmentExpression)("=",n.id,n.init))}i=!0}else if((0,Qr.isIfStatement)(s)){let n=s.consequent?yn([s.consequent],t):(0,Dl.buildUndefinedNode)(),a=s.alternate?yn([s.alternate],t):(0,Dl.buildUndefinedNode)();if(!n||!a)return;r.push((0,Ol.conditionalExpression)(s.test,n,a))}else if((0,Qr.isBlockStatement)(s)){let n=yn(s.body,t);if(!n)return;r.push(n)}else if((0,Qr.isEmptyStatement)(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push((0,Dl.buildUndefinedNode)()),r.length===1?r[0]:(0,Ol.sequenceExpression)(r)}});var vh=_(Ll=>{"use strict";d();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.default=B2;var M2=Ah();function B2(e,t){if(!(e!=null&&e.length))return;let r=[],i=(0,M2.default)(e,r);if(i){for(let s of r)t.push(s);return i}}});var me=_(Y=>{"use strict";d();Object.defineProperty(Y,"__esModule",{value:!0});var Or={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(Y,"__internal__deprecationWarning",{enumerable:!0,get:function(){return qM.default}});Object.defineProperty(Y,"addComment",{enumerable:!0,get:function(){return $2.default}});Object.defineProperty(Y,"addComments",{enumerable:!0,get:function(){return H2.default}});Object.defineProperty(Y,"appendToMemberExpression",{enumerable:!0,get:function(){return cM.default}});Object.defineProperty(Y,"assertNode",{enumerable:!0,get:function(){return q2.default}});Object.defineProperty(Y,"buildMatchMemberExpression",{enumerable:!0,get:function(){return RM.default}});Object.defineProperty(Y,"clone",{enumerable:!0,get:function(){return J2.default}});Object.defineProperty(Y,"cloneDeep",{enumerable:!0,get:function(){return Y2.default}});Object.defineProperty(Y,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return X2.default}});Object.defineProperty(Y,"cloneNode",{enumerable:!0,get:function(){return V2.default}});Object.defineProperty(Y,"cloneWithoutLoc",{enumerable:!0,get:function(){return W2.default}});Object.defineProperty(Y,"createFlowUnionType",{enumerable:!0,get:function(){return Ch.default}});Object.defineProperty(Y,"createTSUnionType",{enumerable:!0,get:function(){return K2.default}});Object.defineProperty(Y,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return U2.default}});Object.defineProperty(Y,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return Ch.default}});Object.defineProperty(Y,"ensureBlock",{enumerable:!0,get:function(){return tM.default}});Object.defineProperty(Y,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return yM.default}});Object.defineProperty(Y,"getBindingIdentifiers",{enumerable:!0,get:function(){return TM.default}});Object.defineProperty(Y,"getFunctionName",{enumerable:!0,get:function(){return gM.default}});Object.defineProperty(Y,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return SM.default}});Object.defineProperty(Y,"inheritInnerComments",{enumerable:!0,get:function(){return z2.default}});Object.defineProperty(Y,"inheritLeadingComments",{enumerable:!0,get:function(){return G2.default}});Object.defineProperty(Y,"inheritTrailingComments",{enumerable:!0,get:function(){return Z2.default}});Object.defineProperty(Y,"inherits",{enumerable:!0,get:function(){return pM.default}});Object.defineProperty(Y,"inheritsComments",{enumerable:!0,get:function(){return Q2.default}});Object.defineProperty(Y,"is",{enumerable:!0,get:function(){return EM.default}});Object.defineProperty(Y,"isBinding",{enumerable:!0,get:function(){return PM.default}});Object.defineProperty(Y,"isBlockScoped",{enumerable:!0,get:function(){return AM.default}});Object.defineProperty(Y,"isImmutable",{enumerable:!0,get:function(){return vM.default}});Object.defineProperty(Y,"isLet",{enumerable:!0,get:function(){return CM.default}});Object.defineProperty(Y,"isNode",{enumerable:!0,get:function(){return IM.default}});Object.defineProperty(Y,"isNodesEquivalent",{enumerable:!0,get:function(){return wM.default}});Object.defineProperty(Y,"isPlaceholderType",{enumerable:!0,get:function(){return NM.default}});Object.defineProperty(Y,"isReferenced",{enumerable:!0,get:function(){return _M.default}});Object.defineProperty(Y,"isScope",{enumerable:!0,get:function(){return OM.default}});Object.defineProperty(Y,"isSpecifierDefault",{enumerable:!0,get:function(){return DM.default}});Object.defineProperty(Y,"isType",{enumerable:!0,get:function(){return kM.default}});Object.defineProperty(Y,"isValidES3Identifier",{enumerable:!0,get:function(){return LM.default}});Object.defineProperty(Y,"isValidIdentifier",{enumerable:!0,get:function(){return MM.default}});Object.defineProperty(Y,"isVar",{enumerable:!0,get:function(){return BM.default}});Object.defineProperty(Y,"matchesPattern",{enumerable:!0,get:function(){return FM.default}});Object.defineProperty(Y,"prependToMemberExpression",{enumerable:!0,get:function(){return fM.default}});Y.react=void 0;Object.defineProperty(Y,"removeComments",{enumerable:!0,get:function(){return eM.default}});Object.defineProperty(Y,"removeProperties",{enumerable:!0,get:function(){return hM.default}});Object.defineProperty(Y,"removePropertiesDeep",{enumerable:!0,get:function(){return dM.default}});Object.defineProperty(Y,"removeTypeDuplicates",{enumerable:!0,get:function(){return mM.default}});Object.defineProperty(Y,"shallowEqual",{enumerable:!0,get:function(){return bM.default}});Object.defineProperty(Y,"toBindingIdentifierName",{enumerable:!0,get:function(){return rM.default}});Object.defineProperty(Y,"toBlock",{enumerable:!0,get:function(){return iM.default}});Object.defineProperty(Y,"toComputedKey",{enumerable:!0,get:function(){return sM.default}});Object.defineProperty(Y,"toExpression",{enumerable:!0,get:function(){return nM.default}});Object.defineProperty(Y,"toIdentifier",{enumerable:!0,get:function(){return aM.default}});Object.defineProperty(Y,"toKeyAlias",{enumerable:!0,get:function(){return oM.default}});Object.defineProperty(Y,"toStatement",{enumerable:!0,get:function(){return lM.default}});Object.defineProperty(Y,"traverse",{enumerable:!0,get:function(){return Tn.default}});Object.defineProperty(Y,"traverseFast",{enumerable:!0,get:function(){return xM.default}});Object.defineProperty(Y,"validate",{enumerable:!0,get:function(){return jM.default}});Object.defineProperty(Y,"valueToNode",{enumerable:!0,get:function(){return uM.default}});var F2=_p(),j2=Op(),R2=Pf(),q2=Af(),Ml=vf();Object.keys(Ml).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Or,e)||e in Y&&Y[e]===Ml[e]||Object.defineProperty(Y,e,{enumerable:!0,get:function(){return Ml[e]}})});var U2=Cf(),Ch=Nf(),K2=kf(),Bl=wo();Object.keys(Bl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Or,e)||e in Y&&Y[e]===Bl[e]||Object.defineProperty(Y,e,{enumerable:!0,get:function(){return Bl[e]}})});var Fl=wt();Object.keys(Fl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Or,e)||e in Y&&Y[e]===Fl[e]||Object.defineProperty(Y,e,{enumerable:!0,get:function(){return Fl[e]}})});var V2=_r(),J2=Rf(),Y2=qf(),X2=Uf(),W2=Kf(),$2=Vf(),H2=Bo(),z2=qo(),G2=Ko(),Q2=Xo(),Z2=Jo(),eM=Jf(),jl=Yf();Object.keys(jl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Or,e)||e in Y&&Y[e]===jl[e]||Object.defineProperty(Y,e,{enumerable:!0,get:function(){return jl[e]}})});var Rl=bi();Object.keys(Rl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Or,e)||e in Y&&Y[e]===Rl[e]||Object.defineProperty(Y,e,{enumerable:!0,get:function(){return Rl[e]}})});var tM=Xf(),rM=Wf(),iM=zo(),sM=$f(),nM=Hf(),aM=Zo(),oM=eh(),lM=th(),uM=rh(),ql=jt();Object.keys(ql).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Or,e)||e in Y&&Y[e]===ql[e]||Object.defineProperty(Y,e,{enumerable:!0,get:function(){return ql[e]}})});var cM=ih(),pM=nh(),fM=ah(),hM=nl(),dM=ol(),mM=Po(),yM=oh(),TM=ds(),SM=lh(),gM=ch(),Tn=ph();Object.keys(Tn).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Or,e)||e in Y&&Y[e]===Tn[e]||Object.defineProperty(Y,e,{enumerable:!0,get:function(){return Tn[e]}})});var xM=il(),bM=Ws(),EM=gi(),PM=fh(),AM=dh(),vM=mh(),CM=bl(),IM=xo(),wM=Th(),NM=Ja(),_M=Sh(),OM=gh(),DM=bh(),kM=Hs(),LM=Eh(),MM=xi(),BM=Ph(),FM=ja(),jM=Zs(),RM=qa(),Ul=Qe();Object.keys(Ul).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Or,e)||e in Y&&Y[e]===Ul[e]||Object.defineProperty(Y,e,{enumerable:!0,get:function(){return Ul[e]}})});var qM=Si(),UM=vh(),Tte=Y.react={isReactComponent:F2.default,isCompatTag:j2.default,buildChildren:R2.default};Y.toSequenceExpression=UM.default;v.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var kh=_(Ce=>{"use strict";d();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.AssignmentExpression=hB;Ce.BinaryExpression=aB;Ce.ClassExpression=cB;Ce.ArrowFunctionExpression=Ce.ConditionalExpression=Dh;Ce.DoExpression=GM;Ce.FunctionExpression=pB;Ce.FunctionTypeAnnotation=$M;Ce.Identifier=dB;Ce.LogicalExpression=oB;Ce.NullableTypeAnnotation=WM;Ce.ObjectExpression=zM;Ce.OptionalIndexedAccessType=ZM;Ce.OptionalCallExpression=Ce.OptionalMemberExpression=fB;Ce.SequenceExpression=lB;Ce.TSSatisfiesExpression=Ce.TSAsExpression=eB;Ce.TSConditionalType=tB;Ce.TSConstructorType=Ce.TSFunctionType=nB;Ce.TSInferType=iB;Ce.TSInstantiationExpression=sB;Ce.TSIntersectionType=rB;Ce.SpreadElement=Ce.UnaryExpression=Ce.TSTypeAssertion=Oh;Ce.TSTypeOperator=Vl;Ce.TSUnionType=_h;Ce.IntersectionTypeAnnotation=Ce.UnionTypeAnnotation=QM;Ce.UpdateExpression=HM;Ce.AwaitExpression=Ce.YieldExpression=uB;var KM=me(),pt=Dr(),{isMemberExpression:VM,isOptionalMemberExpression:JM,isYieldExpression:YM,isStatement:XM}=KM,Ih=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function wh(e){return e===156||e===201||e===209}var Sn=(e,t,r)=>(r===21||r===22)&&t.superClass===e,gn=(e,t,r)=>{switch(r){case 108:case 132:return t.object===e;case 17:case 130:case 112:return t.callee===e;case 222:return t.tag===e;case 191:return!0}return!1};function WM(e,t,r){return r===4}function $M(e,t,r,i){return r===239||r===90||r===4||(i&pt.TokenContext.arrowFlowReturnType)>0}function HM(e,t,r){return gn(e,t,r)||Sn(e,t,r)}function Nh(e){return(e&(pt.TokenContext.expressionStatement|pt.TokenContext.arrowBody))>0}function zM(e,t,r,i){return Nh(i)}function GM(e,t,r,i){return(i&pt.TokenContext.expressionStatement)>0&&!e.async}function Kl(e,t,r,i){if(Sn(e,t,r)||gn(e,t,r)||r===238||r===145||r===8)return!0;let s;switch(r){case 10:case 107:s=Ih.get(t.operator);break;case 156:case 201:s=7}if(s!==void 0){let n=i===2?7:Ih.get(e.operator);if(s>n||s===n&&r===10&&(n===11?t.left===e:t.right===e)||i===1&&r===107&&(n===1&&s!==1||s===1&&n!==1))return!0}return!1}function QM(e,t,r){switch(r){case 4:case 115:case 90:case 239:return!0}return!1}function ZM(e,t,r){return r===84&&t.objectType===e}function eB(e,t,r){return(r===6||r===7)&&t.left===e||r===10&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:Kl(e,t,r,2)}function tB(e,t,r){switch(r){case 155:case 195:case 211:case 212:return!0;case 175:return t.objectType===e;case 181:case 219:return t.types[0]===e;case 161:return t.checkType===e||t.extendsType===e}return!1}function _h(e,t,r){switch(r){case 181:case 211:case 155:case 195:return!0;case 175:return t.objectType===e}return!1}function rB(e,t,r){return r===211||Vl(e,t,r)}function iB(e,t,r){return!!(Vl(e,t,r)||(r===181||r===219)&&e.typeParameter.constraint&&t.types[0]===e)}function Vl(e,t,r){switch(r){case 155:case 195:return!0;case 175:if(t.objectType===e)return!0}return!1}function sB(e,t,r){switch(r){case 17:case 130:case 112:case 177:return t.typeParameters!=null}return!1}function nB(e,t,r){return _h(e,t,r)?!0:r===219||r===161&&(t.checkType===e||t.extendsType===e)}function aB(e,t,r,i){return Kl(e,t,r,0)?!0:(i&pt.TokenContext.forInOrInitHeadAccumulate)>0&&e.operator==="in"}function oB(e,t,r){return Kl(e,t,r,1)}function lB(e,t,r){return r===144||r===133||r===108&&t.property===e||r===132&&t.property===e||r===224?!1:r===21?!0:r===68?t.right===e:r===60?!0:!XM(t)}function uB(e,t,r){return r===10||r===107||r===238||r===145||gn(e,t,r)||r===8&&YM(e)||r===28&&e===t.test||Sn(e,t,r)||wh(r)}function cB(e,t,r,i){return(i&(pt.TokenContext.expressionStatement|pt.TokenContext.exportDefault))>0}function Oh(e,t,r){return gn(e,t,r)||r===10&&t.operator==="**"&&t.left===e||Sn(e,t,r)}function pB(e,t,r,i){return(i&(pt.TokenContext.expressionStatement|pt.TokenContext.exportDefault))>0}function Dh(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(t.test===e)return!0}return wh(r)?!0:Oh(e,t,r)}function fB(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return!1}function hB(e,t,r,i){return Nh(i)&&e.left.type==="ObjectPattern"?!0:Dh(e,t,r)}function dB(e,t,r,i,s){var n;if(s&&s(e)!==e.name)return!1;if(r===6&&(n=e.extra)!=null&&n.parenthesized&&t.left===e){let a=t.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&t.right.id==null)return!0}return(i&pt.TokenContext.forOfHead||(r===108||r===132)&&i&(pt.TokenContext.expressionStatement|pt.TokenContext.forInitHead|pt.TokenContext.forInHead))&&e.name==="let"?(VM(t,{object:e,computed:!0})||JM(t,{object:e,computed:!0,optional:!1}))&&i&(pt.TokenContext.expressionStatement|pt.TokenContext.forInitHead|pt.TokenContext.forInHead)?!0:(i&pt.TokenContext.forOfHead)>0:r===68&&t.left===e&&e.name==="async"&&!t.await}});var Jl=_(Ii=>{"use strict";d();Object.defineProperty(Ii,"__esModule",{value:!0});Ii.TaggedTemplateExpression=mB;Ii.TemplateElement=yB;Ii.TemplateLiteral=TB;Ii._printTemplate=Lh;function mB(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function yB(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function Lh(e,t){let r=e.quasis,i="`";for(let s=0;s<r.length-1;s++)if(i+=r[s].value.raw,this.token(i+"${",!0),this.print(t[s]),i="}",this.tokenMap){let n=this.tokenMap.findMatching(e,"}",s);n&&this._catchUpTo(n.loc.start)}i+=r[r.length-1].value.raw,this.token(i+"`",!0)}function TB(e){Lh.call(this,e,e.expressions)}});var xn=_(Me=>{"use strict";d();Object.defineProperty(Me,"__esModule",{value:!0});Me.LogicalExpression=Me.AssignmentExpression=VB;Me.AssignmentPattern=KB;Me.AwaitExpression=jB;Me.BinaryExpression=JB;Me.BindExpression=YB;Me.CallExpression=BB;Me.ConditionalExpression=IB;Me.Decorator=kB;Me.DoExpression=AB;Me.EmptyStatement=qB;Me.ExpressionStatement=UB;Me.Import=FB;Me.MemberExpression=XB;Me.MetaProperty=WB;Me.ModuleExpression=zB;Me.NewExpression=wB;Me.OptionalCallExpression=MB;Me.OptionalMemberExpression=LB;Me.ParenthesizedExpression=vB;Me.PrivateName=$B;Me.SequenceExpression=NB;Me.Super=OB;Me.ThisExpression=_B;Me.UnaryExpression=PB;Me.UpdateExpression=CB;Me.V8IntrinsicIdentifier=HB;Me.YieldExpression=RB;Me._shouldPrintDecoratorsBeforeExport=DB;var SB=me(),gB=Dr(),{isCallExpression:xB,isLiteral:Mh,isMemberExpression:Yl,isNewExpression:bB,isPattern:EB}=SB;function PB(e){let{operator:t}=e,r=t.charCodeAt(0);r>=97&&r<=122?(this.word(t),this.space()):this.tokenChar(r),this.print(e.argument)}function AB(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function vB(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function CB(e){e.prefix?(this.token(e.operator,!1,0,!0),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator,!1,0,!0))}function IB(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function wB(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!xB(t,{callee:e})&&!Yl(t)&&!bB(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=r,this.rightParens(e)}function NB(e){this.printList(e.expressions)}function _B(){this.word("this")}function OB(){this.word("super")}function DB(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function kB(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()}function LB(e){let{computed:t}=e,{optional:r,property:i}=e;if(this.print(e.object),!t&&Yl(i))throw new TypeError("Got a MemberExpression for MemberExpression property");Mh(i)&&typeof i.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i))}function MB(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function BB(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function FB(){this.word("import")}function jB(e){this.word("await"),this.space(),this.print(e.argument)}function RB(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")}function qB(){this.semicolon(!0)}function UB(e){this.tokenContext|=gB.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function KB(e){this.print(e.left),(e.left.type==="Identifier"||EB(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function VB(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}function JB(e){this.print(e.left),this.space();let{operator:t}=e;t.charCodeAt(0)===105?this.word(t):(this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1))),this.space(),this.print(e.right)}function YB(e){this.print(e.object),this.token("::"),this.print(e.callee)}function XB(e){if(this.print(e.object),!e.computed&&Yl(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(Mh(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=r}else this.tokenChar(46),this.print(e.property)}function WB(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function $B(e){this.tokenChar(35),this.print(e.id)}function HB(e){this.tokenChar(37),this.word(e.name)}function zB(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var Fh=_(tt=>{"use strict";d();Object.defineProperty(tt,"__esModule",{value:!0});tt.BreakStatement=lF;tt.CatchClause=dF;tt.ContinueStatement=uF;tt.DebuggerStatement=TF;tt.DoWhileStatement=oF;tt.ForInStatement=nF;tt.ForOfStatement=aF;tt.ForStatement=iF;tt.IfStatement=rF;tt.LabeledStatement=fF;tt.ReturnStatement=cF;tt.SwitchCase=yF;tt.SwitchStatement=mF;tt.ThrowStatement=pF;tt.TryStatement=hF;tt.VariableDeclaration=gF;tt.VariableDeclarator=xF;tt.WhileStatement=sF;tt.WithStatement=tF;var GB=me(),Zr=Dr(),{isFor:QB,isIfStatement:ZB,isStatement:eF}=GB;function tF(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)}function rF(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&ZB(Bh(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))}function Bh(e){let{body:t}=e;return eF(t)===!1?e:Bh(t)}function iF(e){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=Zr.TokenContext.forInitHead|Zr.TokenContext.forInOrInitHeadAccumulate,this.print(e.init),this.tokenContext=Zr.TokenContext.normal,this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e.body)}function sF(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)}function nF(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=Zr.TokenContext.forInHead|Zr.TokenContext.forInOrInitHeadAccumulate,this.print(e.left),this.tokenContext=Zr.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function aF(e){this.word("for"),this.space(),e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=Zr.TokenContext.forOfHead,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function oF(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function bn(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function lF(e){this.word("break"),bn(this,e.label)}function uF(e){this.word("continue"),bn(this,e.label)}function cF(e){this.word("return"),bn(this,e.argument)}function pF(e){this.word("throw"),bn(this,e.argument)}function fF(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function hF(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))}function dF(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)}function mF(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)}function yF(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))}function TF(){this.word("debugger"),this.semicolon()}function SF(e){this.tokenChar(44,e),this.newline()}function gF(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let i=!1;if(!QB(t)){for(let s of e.declarations)if(s.init){i=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,i?SF:void 0),t!=null)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()}function xF(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}});var ms=_(qt=>{"use strict";d();Object.defineProperty(qt,"__esModule",{value:!0});qt.ArrowFunctionExpression=CF;qt.FunctionDeclaration=qt.FunctionExpression=vF;qt._functionHead=qh;qt._methodHead=AF;qt._param=Rh;qt._parameters=jh;qt._params=wi;qt._predicate=Xl;qt._shouldPrintArrowParamsParens=Uh;var bF=me(),EF=Dr(),{isIdentifier:PF}=bF;function wi(e,t,r,i){if(this.print(e.typeParameters),r!==void 0||i!==void 0){let s=IF.call(this,r,i);s&&this.sourceIdentifierName(s.name,s.pos)}this.tokenChar(40),jh.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function jh(e,t){let r=this.enterDelimited(),i=this.shouldPrintTrailingComma(t),s=e.length;for(let n=0;n<s;n++)Rh.call(this,e[n]),(i||n<s-1)&&(this.tokenChar(44,n),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=r}function Rh(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,!0)}function AF(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._buf._map?wi.call(this,e,!1,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key):wi.call(this,e,!1)}function Xl(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function qh(e,t,r){e.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._buf._map?wi.call(this,e,!1,e.id,t):wi.call(this,e,!1),r&&Xl.call(this,e)}function vF(e,t){qh.call(this,e,t,!0),this.space(),this.print(e.body)}function CF(e,t){e.async&&(this.word("async",!0),this.space()),Uh.call(this,e)?wi.call(this,e,!0,void 0,this._buf._map?t:void 0):this.print(e.params[0],!0),Xl.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=EF.TokenContext.arrowBody,this.print(e.body)}function Uh(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return!0;let i=e.params[0];if(!PF(i)||i.typeAnnotation||i.optional||(t=i.leadingComments)!=null&&t.length||(r=i.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return!0;let s=this.tokenMap.findMatching(e,"=>");return s?.loc==null?!0:s.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function IF(e,t){let r=e;if(!r&&t){let l=t.type;l==="VariableDeclarator"?r=t.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=t.left:l==="ObjectProperty"||l==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let i;if(r.type==="Identifier"){var s,n;i={pos:(s=r.loc)==null?void 0:s.start,name:((n=r.loc)==null?void 0:n.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;i={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;i={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return i}});var $l=_(Z=>{"use strict";d();Object.defineProperty(Z,"__esModule",{value:!0});Z.TSAnyKeyword=KF;Z.TSArrayType=l3;Z.TSAsExpression=I3;Z.TSBigIntKeyword=VF;Z.TSBooleanKeyword=WF;Z.TSCallSignatureDeclaration=FF;Z.TSInterfaceHeritage=Z.TSClassImplements=P3;Z.TSConditionalType=m3;Z.TSConstructSignatureDeclaration=jF;Z.TSConstructorType=i3;Z.TSDeclareFunction=LF;Z.TSDeclareMethod=MF;Z.TSEnumBody=Wh;Z.TSEnumDeclaration=O3;Z.TSEnumMember=D3;Z.TSExportAssignment=R3;Z.TSExternalModuleReference=F3;Z.TSFunctionType=r3;Z.TSImportEqualsDeclaration=B3;Z.TSImportType=M3;Z.TSIndexSignature=UF;Z.TSIndexedAccessType=g3;Z.TSInferType=y3;Z.TSInstantiationExpression=_3;Z.TSInterfaceBody=v3;Z.TSInterfaceDeclaration=A3;Z.TSIntersectionType=d3;Z.TSIntrinsicKeyword=e3;Z.TSLiteralType=E3;Z.TSMappedType=x3;Z.TSMethodSignature=qF;Z.TSModuleBlock=L3;Z.TSModuleDeclaration=k3;Z.TSNamedTupleMember=f3;Z.TSNamespaceExportDeclaration=q3;Z.TSNeverKeyword=ZF;Z.TSNonNullExpression=j3;Z.TSNullKeyword=QF;Z.TSNumberKeyword=YF;Z.TSObjectKeyword=XF;Z.TSOptionalType=c3;Z.TSParameterProperty=kF;Z.TSParenthesizedType=T3;Z.TSPropertySignature=RF;Z.TSQualifiedName=BF;Z.TSRestType=p3;Z.TSSatisfiesExpression=w3;Z.TSStringKeyword=$F;Z.TSSymbolKeyword=HF;Z.TSTemplateLiteralType=b3;Z.TSThisType=t3;Z.TSTupleType=u3;Z.TSTypeAliasDeclaration=C3;Z.TSTypeAnnotation=_F;Z.TSTypeAssertion=N3;Z.TSTypeLiteral=o3;Z.TSTypeOperator=S3;Z.TSTypeParameter=DF;Z.TSTypeParameterDeclaration=Z.TSTypeParameterInstantiation=OF;Z.TSTypePredicate=n3;Z.TSTypeQuery=a3;Z.TSTypeReference=s3;Z.TSUndefinedKeyword=GF;Z.TSUnionType=h3;Z.TSUnknownKeyword=JF;Z.TSVoidKeyword=zF;Z._tsPrintClassMemberModifiers=U3;var ys=ms(),wF=Hl(),NF=Jl();function _F(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function OF(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;this.tokenMap&&e.start!=null&&e.end!=null&&(r&&(r=!!this.tokenMap.find(e,i=>this.tokenMap.matchesOriginal(i,","))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(e.params,r),this.tokenChar(62)}function DF(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function kF(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),ys._param.call(this,e.parameter)}function LF(e,t){e.declare&&(this.word("declare"),this.space()),ys._functionHead.call(this,e,t,!1),this.semicolon()}function MF(e){wF._classMethodHead.call(this,e),this.semicolon()}function BF(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function FF(e){Wl.call(this,e),Ts(this,e)}function Ts(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon()}function jF(e){this.word("new"),this.space(),Wl.call(this,e),Ts(this,e)}function RF(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),Jh.call(this,e),this.print(e.typeAnnotation),Ts(this,e)}function Jh(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function qF(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),Jh.call(this,e),Wl.call(this,e),Ts(this,e)}function UF(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),ys._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),Ts(this,e)}function KF(){this.word("any")}function VF(){this.word("bigint")}function JF(){this.word("unknown")}function YF(){this.word("number")}function XF(){this.word("object")}function WF(){this.word("boolean")}function $F(){this.word("string")}function HF(){this.word("symbol")}function zF(){this.word("void")}function GF(){this.word("undefined")}function QF(){this.word("null")}function ZF(){this.word("never")}function e3(){this.word("intrinsic")}function t3(){this.word("this")}function r3(e){Yh.call(this,e)}function i3(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),Yh.call(this,e)}function Yh(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),ys._parameters.call(this,r,41),this.space();let i=e.typeAnnotation;this.print(i)}function s3(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)}function n3(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function a3(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;t&&this.print(t)}function o3(e){En(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))}function l3(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function u3(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function c3(e){this.print(e.typeAnnotation),this.tokenChar(63)}function p3(e){this.token("..."),this.print(e.typeAnnotation)}function f3(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)}function h3(e){Xh(this,e,"|")}function d3(e){Xh(this,e,"&")}function Xh(e,t,r){var i;let s=0;(i=e.tokenMap)!=null&&i.startMatches(t,r)&&(s=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(n){this.space(),this.token(r,void 0,n+s),this.space()})}function m3(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function y3(e){this.word("infer"),this.print(e.typeParameter)}function T3(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function S3(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function g3(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function x3(e){let{nameType:t,optional:r,readonly:i,typeAnnotation:s}=e;this.tokenChar(123);let n=this.enterDelimited();this.space(),i&&(Kh(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint,void 0,!0),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,!0)),this.tokenChar(93),r&&(Kh(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=n,this.tokenChar(125)}function Kh(e,t){t!==!0&&e.token(t)}function b3(e){NF._printTemplate.call(this,e,e.types)}function E3(e){this.print(e.literal)}function P3(e){this.print(e.expression),this.print(e.typeArguments)}function A3(e){let{declare:t,id:r,typeParameters:i,extends:s,body:n}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(i),s!=null&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s)),this.space(),this.print(n)}function v3(e){En(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))}function C3(e){let{declare:t,id:r,typeParameters:i,typeAnnotation:s}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(i),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()}function I3(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)}function w3(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)}function N3(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function _3(e){this.print(e.expression),this.print(e.typeParameters)}function O3(e){let{declare:t,const:r,id:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),Wh.call(this,e)}function Wh(e){En(this,e,()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:!0,!0,!0,void 0,!0)})}function D3(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))}function k3(e){let{declare:t,id:r,kind:i}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(i??(r.type==="Identifier"?"namespace":"module")),this.space()),this.print(r),!e.body){this.semicolon();return}let s=e.body;for(;s.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(s.id),s=s.body;this.space(),this.print(s)}function L3(e){En(this,e,()=>this.printSequence(e.body,!0,!0))}function M3(e){let{qualifier:t,options:r}=e;this.word("import"),this.tokenChar(40),this.print(e.argument),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),t&&(this.tokenChar(46),this.print(t));let i=e.typeParameters;i&&this.print(i)}function B3(e){let{id:t,moduleReference:r}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function F3(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function j3(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)}function R3(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function q3(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function Wl(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),ys._parameters.call(this,r,41);let i=e.typeAnnotation;this.print(i)}function U3(e){let t=e.type==="ClassPrivateProperty",r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";Vh(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),Vh(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function En(e,t,r){e.token("{");let i=e.enterDelimited();r(),e._noLineTerminatorAfterNode=i,e.rightBrace(t)}function Vh(e,t,r){var i;let s=new Set;for(let n of r)n&&s.add(n);(i=e.tokenMap)==null||i.find(t,n=>s.has(n.value)?(e.token(n.value),e.space(),s.delete(n.value),s.size===0):!1);for(let n of s)e.word(n),e.space()}});var zl=_(xt=>{"use strict";d();Object.defineProperty(xt,"__esModule",{value:!0});xt.ExportAllDeclaration=tj;xt.ExportDefaultDeclaration=ij;xt.ExportDefaultSpecifier=Q3;xt.ExportNamedDeclaration=rj;xt.ExportNamespaceSpecifier=ej;xt.ExportSpecifier=Z3;xt.ImportAttribute=nj;xt.ImportDeclaration=sj;xt.ImportDefaultSpecifier=G3;xt.ImportExpression=oj;xt.ImportNamespaceSpecifier=aj;xt.ImportSpecifier=z3;xt._printAttributes=Pn;var K3=me(),V3=Dr(),J3=xn(),{isClassDeclaration:Y3,isExportDefaultSpecifier:X3,isExportNamespaceSpecifier:W3,isImportDefaultSpecifier:$3,isImportNamespaceSpecifier:H3,isStatement:Hh}=K3;function z3(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function G3(e){this.print(e.local)}function Q3(e){this.print(e.exported)}function Z3(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function ej(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var $h=!1;function Pn(e,t){var r;let{attributes:i}=e;var{assertions:s}=e;let{importAttributesKeyword:n}=this.format;i&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!$h&&($h=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=n==="assert"||!n&&s;if(this.word(a?"assert":"with"),this.space(),!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(i||s);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(i||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function tj(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Pn.call(this,e,!1)):this.print(e.source),this.semicolon()}function zh(e,t){Y3(t.declaration)&&J3._shouldPrintDecoratorsBeforeExport.call(e,t)&&e.printJoin(t.declaration.decorators)}function rj(e){if(zh(this,e),this.word("export"),this.space(),e.declaration){let i=e.declaration;this.print(i),Hh(i)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let i=e.specifiers.slice(0),s=!1;for(;;){let a=i[0];if(X3(a)||W3(a))s=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}let n=!1;if((i.length||!i.length&&!s)&&(n=!0,this.tokenChar(123),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Pn.call(this,e,n)):this.print(e.source)}this.semicolon()}}function ij(e){zh(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=V3.TokenContext.exportDefault;let t=e.declaration;this.print(t),Hh(t)||this.semicolon()}function sj(e){var t,r;this.word("import"),this.space();let i=e.importKind==="type"||e.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let s=e.specifiers.slice(0),n=!!s.length;for(;n;){let o=s[0];if($3(o)||H3(o))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!n&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(n||i)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Pn.call(this,e,a)):this.print(e.source),this.semicolon()}function nj(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function aj(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function oj(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)}});var ed=_((Lte,Zh)=>{"use strict";d();var Gh={},lj=Gh.hasOwnProperty,Qh=(e,t)=>{for(let r in e)lj.call(e,r)&&t(r,e[r])},uj=(e,t)=>(t&&Qh(t,(r,i)=>{e[r]=i}),e),cj=(e,t)=>{let r=e.length,i=-1;for(;++i<r;)t(e[i])},An=e=>"\\u"+("0000"+e).slice(-4),Ss=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},gs=Gh.toString,pj=Array.isArray,fj=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),hj=e=>gs.call(e)=="[object Object]",dj=e=>typeof e=="string"||gs.call(e)=="[object String]",mj=e=>typeof e=="number"||gs.call(e)=="[object Number]",Gl=e=>typeof e=="bigint",yj=e=>typeof e=="function",Tj=e=>gs.call(e)=="[object Map]",Sj=e=>gs.call(e)=="[object Set]",gj={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},xj=/[\\\b\f\n\r\t]/,bj=/[0-9]/,Ej=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pj=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,Aj=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,kr=(e,t)=>{let r=()=>{u=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=t&&t.json;s&&(i.quotes="double",i.wrap=!0),t=uj(i,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let n=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),u="",f=t.__inline1__,x=t.__inline2__,A=a?"":`
|
|
12
|
+
`,C,I=!0,k=t.numbers=="binary",N=t.numbers=="octal",D=t.numbers=="decimal",F=t.numbers=="hexadecimal";if(s&&e&&yj(e.toJSON)&&(e=e.toJSON()),!dj(e)){if(Tj(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+kr(Array.from(e),t)+")");if(Sj(e))return e.size==0?"new Set()":"new Set("+kr(Array.from(e),t)+")";if(fj(e))return e.length==0?"Buffer.from([])":"Buffer.from("+kr(Array.from(e),t)+")";if(pj(e))return C=[],t.wrap=!0,f&&(t.__inline1__=!1,t.__inline2__=!0),x||r(),cj(e,H=>{I=!1,x&&(t.__inline2__=!1),C.push((a||x?"":l)+kr(H,t))}),I?"[]":x?"["+C.join(", ")+"]":"["+A+C.join(","+A)+A+(a?"":u)+"]";if(mj(e)||Gl(e)){if(s)return JSON.stringify(Number(e));let H;if(D)H=String(e);else if(F){let $=e.toString(16);o||($=$.toUpperCase()),H="0x"+$}else k?H="0b"+e.toString(2):N&&(H="0o"+e.toString(8));return Gl(e)?H+"n":H}else return Gl(e)?s?JSON.stringify(Number(e)):e+"n":hj(e)?(C=[],t.wrap=!0,r(),Qh(e,(H,$)=>{I=!1,C.push((a?"":l)+kr(H,t)+":"+(a?"":" ")+kr($,t))}),I?"{}":"{"+A+C.join(","+A)+A+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let ie=t.escapeEverything?Pj:Aj;return C=e.replace(ie,(H,$,fe,_e,qe,it)=>{if($){if(t.minimal)return $;let Ct=$.charCodeAt(0),Ot=$.charCodeAt(1);if(t.es6){let Lt=(Ct-55296)*1024+Ot-56320+65536;return"\\u{"+Ss(Lt,o)+"}"}return An(Ss(Ct,o))+An(Ss(Ot,o))}if(fe)return An(Ss(fe.charCodeAt(0),o));if(H=="\0"&&!s&&!bj.test(it.charAt(qe+1)))return"\\0";if(_e)return _e==n||t.escapeEverything?"\\"+_e:_e;if(xj.test(H))return gj[H];if(t.minimal&&!Ej.test(H))return H;let vt=Ss(H.charCodeAt(0),o);return s||vt.length>2?An(vt):"\\x"+("00"+vt).slice(-2)}),n=="`"&&(C=C.replace(/\$\{/g,"\\${")),t.isScriptContext&&(C=C.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),t.wrap&&(C=n+C+n),C};kr.version="3.0.2";Zh.exports=kr});var Cn=_(ze=>{"use strict";d();Object.defineProperty(ze,"__esModule",{value:!0});ze.ArgumentPlaceholder=_j;ze.ArrayPattern=ze.ArrayExpression=Mj;ze.BigIntLiteral=Uj;ze.BooleanLiteral=Fj;ze.Identifier=Nj;ze.NullLiteral=jj;ze.NumericLiteral=Rj;ze.ObjectPattern=ze.ObjectExpression=Dj;ze.ObjectMethod=kj;ze.ObjectProperty=Lj;ze.PipelineBareFunction=Jj;ze.PipelinePrimaryTopicReference=Yj;ze.PipelineTopicExpression=Vj;ze.RegExpLiteral=Bj;ze.SpreadElement=ze.RestElement=Oj;ze.StringLiteral=qj;ze.TopicReference=Kj;ze.VoidPattern=Xj;ze._getRawIdentifier=wj;var vj=me(),rd=ed(),Cj=ms(),{isAssignmentPattern:Ij,isIdentifier:Ql}=vj,vn="";function wj(e){let{name:t}=e,r=this.tokenMap.find(e,i=>i.value===t);return r?(vn=this._originalCode.slice(r.start,r.end),vn):vn=e.name}function Nj(e){if(this._buf._map){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name)}this.word(this.tokenMap?vn:e.name)}function _j(){this.tokenChar(63)}function Oj(e){this.token("..."),this.print(e.argument)}function Dj(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=r}this.rightBrace(e)}function kj(e){this.printJoin(e.decorators),Cj._methodHead.call(this,e),this.space(),this.print(e.body)}function Lj(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(Ij(e.value)&&Ql(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&Ql(e.key)&&Ql(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function Mj(e){let t=e.elements,r=t.length;this.tokenChar(91);let i=this.enterDelimited();for(let s=0;s<t.length;s++){let n=t[s];n?(s>0&&this.space(),this.print(n,void 0,!0),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,s)):this.tokenChar(44,s)}this._noLineTerminatorAfterNode=i,this.tokenChar(93)}function Bj(e){this.word(`/${e.pattern}/${e.flags}`,!1)}function Fj(e){this.word(e.value?"true":"false")}function jj(){this.word("null")}function Rj(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value,s=i+"";r.numbers?this.number(rd(i,r),i):t==null?this.number(s,i):this.format.minified?this.number(t.length<s.length?t:s,i):this.number(t,i)}function qj(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=rd(e.value,this.format.jsescOption);this.token(r)}function Uj(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}var td=new Set(["^^","@@","^","%","#"]);function Kj(){let{topicToken:e}=this.format;if(td.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(td,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function Vj(e){this.print(e.expression)}function Jj(e){this.print(e.callee)}function Yj(){this.tokenChar(35)}function Xj(){this.word("void")}});var tu=_(ee=>{"use strict";d();Object.defineProperty(ee,"__esModule",{value:!0});ee.AnyTypeAnnotation=Gj;ee.ArrayTypeAnnotation=Qj;ee.BooleanLiteralTypeAnnotation=eR;ee.BooleanTypeAnnotation=Zj;ee.DeclareClass=rR;ee.DeclareExportAllDeclaration=hR;ee.DeclareExportDeclaration=fR;ee.DeclareFunction=iR;ee.DeclareInterface=aR;ee.DeclareModule=oR;ee.DeclareModuleExports=lR;ee.DeclareOpaqueType=cR;ee.DeclareTypeAlias=uR;ee.DeclareVariable=pR;ee.DeclaredPredicate=nR;ee.EmptyTypeAnnotation=DR;ee.EnumBooleanBody=mR;ee.EnumBooleanMember=xR;ee.EnumDeclaration=dR;ee.EnumDefaultedMember=gR;ee.EnumNumberBody=yR;ee.EnumNumberMember=bR;ee.EnumStringBody=TR;ee.EnumStringMember=ER;ee.EnumSymbolBody=SR;ee.ExistsTypeAnnotation=AR;ee.FunctionTypeAnnotation=vR;ee.FunctionTypeParam=CR;ee.IndexedAccessType=t4;ee.InferredPredicate=sR;ee.InterfaceDeclaration=sd;ee.GenericTypeAnnotation=ee.ClassImplements=ee.InterfaceExtends=IR;ee.InterfaceTypeAnnotation=NR;ee.IntersectionTypeAnnotation=_R;ee.MixedTypeAnnotation=OR;ee.NullLiteralTypeAnnotation=tR;ee.NullableTypeAnnotation=kR;Object.defineProperty(ee,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return id.NumericLiteral}});ee.NumberTypeAnnotation=LR;ee.ObjectTypeAnnotation=KR;ee.ObjectTypeCallProperty=JR;ee.ObjectTypeIndexer=YR;ee.ObjectTypeInternalSlot=VR;ee.ObjectTypeProperty=XR;ee.ObjectTypeSpreadProperty=WR;ee.OpaqueType=ad;ee.OptionalIndexedAccessType=r4;ee.QualifiedTypeIdentifier=$R;Object.defineProperty(ee,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return id.StringLiteral}});ee.StringTypeAnnotation=MR;ee.SymbolTypeAnnotation=HR;ee.ThisTypeAnnotation=BR;ee.TupleTypeAnnotation=FR;ee.TypeAlias=nd;ee.TypeAnnotation=RR;ee.TypeCastExpression=QR;ee.TypeParameter=UR;ee.TypeParameterDeclaration=ee.TypeParameterInstantiation=qR;ee.TypeofTypeAnnotation=jR;ee.UnionTypeAnnotation=GR;ee.Variance=ZR;ee.VoidTypeAnnotation=e4;ee._interfaceish=eu;ee._variance=_n;var Wj=me(),$j=zl(),Hj=Dr(),id=Cn(),{isDeclareExportDeclaration:In,isStatement:zj}=Wj;function Gj(){this.word("any")}function Qj(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function Zj(){this.word("boolean")}function eR(e){this.word(e.value?"true":"false")}function tR(){this.word("null")}function rR(e,t){In(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),eu.call(this,e)}function iR(e,t){In(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()}function sR(){this.tokenChar(37),this.word("checks")}function nR(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function aR(e){this.word("declare"),this.space(),sd.call(this,e)}function oR(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function lR(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function uR(e){this.word("declare"),this.space(),nd.call(this,e)}function cR(e,t){In(t)||(this.word("declare"),this.space()),ad.call(this,e)}function pR(e,t){In(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function fR(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),PR.call(this,e)}function hR(e){this.word("declare"),this.space(),$j.ExportAllDeclaration.call(this,e)}function dR(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function wn(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function Nn(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let i of r)e.print(i),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function mR(e){let{explicitType:t}=e;wn(this,"boolean",t),Nn(this,e)}function yR(e){let{explicitType:t}=e;wn(this,"number",t),Nn(this,e)}function TR(e){let{explicitType:t}=e;wn(this,"string",t),Nn(this,e)}function SR(e){wn(this,"symbol",!0),Nn(this,e)}function gR(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function Zl(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function xR(e){Zl(this,e)}function bR(e){Zl(this,e)}function ER(e){Zl(this,e)}function PR(e){if(e.declaration){let t=e.declaration;this.print(t),zj(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function AR(){this.tokenChar(42)}function vR(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)}function CR(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)}function IR(e){this.print(e.id),this.print(e.typeParameters,!0)}function eu(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),e.type==="DeclareClass"){var r,i;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(i=e.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)}function _n(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function sd(e){this.word("interface"),this.space(),eu.call(this,e)}function wR(e){this.space(),this.token("&",!1,e),this.space()}function NR(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)}function _R(e){this.printJoin(e.types,void 0,void 0,wR)}function OR(){this.word("mixed")}function DR(){this.word("empty")}function kR(e){this.tokenChar(63),this.print(e.typeAnnotation)}function LR(){this.word("number")}function MR(){this.word("string")}function BR(){this.word("this")}function FR(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function jR(e){this.word("typeof"),this.space(),this.print(e.argument)}function nd(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function RR(e,t){this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression"?this.tokenContext|=Hj.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function qR(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function UR(e){_n.call(this,e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function ad(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function KR(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)}function VR(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function JR(e){e.static&&(this.word("static"),this.space()),this.print(e.value)}function YR(e){e.static&&(this.word("static"),this.space()),_n.call(this,e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function XR(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),_n.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function WR(e){this.token("..."),this.print(e.argument)}function $R(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function HR(){this.word("symbol")}function zR(e){this.space(),this.token("|",!1,e),this.space()}function GR(e){this.printJoin(e.types,void 0,void 0,zR)}function QR(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function ZR(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function e4(){this.word("void")}function t4(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function r4(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var Hl=_(Ut=>{"use strict";d();Object.defineProperty(Ut,"__esModule",{value:!0});Ut.ClassAccessorProperty=f4;Ut.ClassBody=u4;Ut.ClassExpression=Ut.ClassDeclaration=l4;Ut.ClassMethod=d4;Ut.ClassPrivateMethod=m4;Ut.ClassPrivateProperty=h4;Ut.ClassProperty=p4;Ut.StaticBlock=y4;Ut._classMethodHead=ru;var i4=me(),s4=xn(),On=$l(),od=tu(),n4=ms(),{isExportDefaultDeclaration:a4,isExportNamedDeclaration:o4}=i4;function l4(e,t){(!(a4(t)||o4(t))||!s4._shouldPrintDecoratorsBeforeExport.call(this,t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function u4(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{let t=c4(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,this.endsWith(10)||this.newline(),this.rightBrace(e)}}function c4(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let i=1,s=0,n=0,a=()=>{for(;n<t.body.length&&t.body[n].start==null;)n++};return a(),o=>{n<=o&&(n=o+1,a());let l=n===t.body.length?t.end:t.body[n].start,u;for(;i<r.length&&e.tokenMap.matchesOriginal(u=e._tokens[r[i]],";")&&u.start<l;)e.tokenChar(59,s++),i++}}function p4(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}On._tsPrintClassMemberModifiers.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(od._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function f4(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),On._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(od._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function h4(e){this.printJoin(e.decorators),On._tsPrintClassMemberModifiers.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function d4(e){ru.call(this,e),this.space(),this.print(e.body)}function m4(e){ru.call(this,e),this.space(),this.print(e.body)}function ru(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}On._tsPrintClassMemberModifiers.call(this,e),n4._methodHead.call(this,e)}function y4(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))}});var ld=_(xr=>{"use strict";d();Object.defineProperty(xr,"__esModule",{value:!0});xr.BlockStatement=g4;xr.Directive=x4;xr.DirectiveLiteral=P4;xr.File=T4;xr.InterpreterDirective=A4;xr.Placeholder=v4;xr.Program=S4;function T4(e){e.program&&this.print(e.program.interpreter),this.print(e.program)}function S4(e){var t;this.printInnerComments(!1);let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let s=e.body.length?2:1;this.printSequence(e.directives,void 0,void 0,s),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(e.body)}function g4(e){var t;this.tokenChar(123);let r=this.enterDelimited(),i=(t=e.directives)==null?void 0:t.length;if(i){var s;let n=e.body.length?2:1;this.printSequence(e.directives,!0,!0,n),(s=e.directives[i-1].trailingComments)!=null&&s.length||this.newline(n)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=r,this.rightBrace(e)}function x4(e){this.print(e.value),this.semicolon()}var b4=/(?:^|[^\\])(?:\\\\)*'/,E4=/(?:^|[^\\])(?:\\\\)*"/;function P4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!E4.test(r))this.token(`"${r}"`);else if(!b4.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function A4(e){this.token(`#!${e.value}`),this._newline()}function v4(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}});var ud=_(ft=>{"use strict";d();Object.defineProperty(ft,"__esModule",{value:!0});ft.JSXAttribute=C4;ft.JSXClosingElement=F4;ft.JSXClosingFragment=U4;ft.JSXElement=L4;ft.JSXEmptyExpression=j4;ft.JSXExpressionContainer=O4;ft.JSXFragment=R4;ft.JSXIdentifier=I4;ft.JSXMemberExpression=N4;ft.JSXNamespacedName=w4;ft.JSXOpeningElement=B4;ft.JSXOpeningFragment=q4;ft.JSXSpreadAttribute=_4;ft.JSXSpreadChild=D4;ft.JSXText=k4;function C4(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))}function I4(e){this.word(e.name)}function w4(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function N4(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function _4(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function O4(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function D4(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function k4(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function L4(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}}function M4(){this.space()}function B4(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,M4)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function F4(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)}function j4(){this.printInnerComments()}function R4(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function q4(){this.tokenChar(60),this.tokenChar(62)}function U4(){this.token("</"),this.tokenChar(62)}});var cd=_(Ie=>{"use strict";d();Object.defineProperty(Ie,"__esModule",{value:!0});var iu=Jl();Object.keys(iu).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===iu[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return iu[e]}})});var su=xn();Object.keys(su).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===su[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return su[e]}})});var nu=Fh();Object.keys(nu).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===nu[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return nu[e]}})});var au=Hl();Object.keys(au).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===au[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return au[e]}})});var ou=ms();Object.keys(ou).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===ou[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return ou[e]}})});var lu=zl();Object.keys(lu).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===lu[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return lu[e]}})});var uu=Cn();Object.keys(uu).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===uu[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return uu[e]}})});var cu=tu();Object.keys(cu).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===cu[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return cu[e]}})});var pu=ld();Object.keys(pu).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===pu[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return pu[e]}})});var fu=ud();Object.keys(fu).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===fu[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return fu[e]}})});var hu=$l();Object.keys(hu).forEach(function(e){e==="default"||e==="__esModule"||e in Ie&&Ie[e]===hu[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return hu[e]}})})});var pd=_(ei=>{"use strict";d();Object.defineProperty(ei,"__esModule",{value:!0});ei.DecimalLiteral=J4;ei.Noop=K4;ei.RecordExpression=Y4;ei.TSExpressionWithTypeArguments=V4;ei.TupleExpression=X4;function K4(){}function V4(e){this.print(e.expression),this.print(e.typeParameters)}function J4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}function Y4(e){let t=e.properties,r,i;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",i="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)}function X4(e){let t=e.elements,r=t.length,i,s;if(this.format.recordAndTupleSyntaxType==="bar")i="[|",s="|]";else if(this.format.recordAndTupleSyntaxType==="hash")i="#[",s="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(i);for(let n=0;n<t.length;n++){let a=t[n];a&&(n>0&&this.space(),this.print(a),(n<r-1||this.shouldPrintTrailingComma(s))&&this.token(",",!1,n))}this.token(s)}});var du=_(Dn=>{"use strict";d();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.generatorInfosMap=void 0;var fd=cd(),hd=pd(),dd=Dn.generatorInfosMap=new Map,md=0;for(let e of Object.keys(fd).sort())e.startsWith("_")||dd.set(e,[fd[e],md++,void 0]);for(let e of Object.keys(hd))dd.set(e,[hd[e],md++,void 0])});var Dr=_(Ni=>{"use strict";d();Object.defineProperty(Ni,"__esModule",{value:!0});Ni.TokenContext=void 0;Ni.isLastChild=z4;Ni.parentNeedsParens=H4;var yd=kh(),W4=me(),Td=du(),{VISITOR_KEYS:$4}=W4,Qte=Ni.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(let e of Object.keys(yd)){let t=yd[e];Td.generatorInfosMap.has(e)&&(Td.generatorInfosMap.get(e)[2]=t)}function Sd(e){switch(e.type){case"CallExpression":return!0;case"MemberExpression":return Sd(e.object)}return!1}function H4(e,t,r){switch(r){case 112:if(t.callee===e&&Sd(e))return!0;break;case 42:return!mu(e)&&!(e.type==="CallExpression"&&mu(e.callee))&&e.type!=="ParenthesizedExpression"}return!1}function mu(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&mu(e.object);default:return!1}}function z4(e,t){let r=$4[e.type];for(let i=r.length-1;i>=0;i--){let s=e[r[i]];if(s===t)return!0;if(Array.isArray(s)){let n=s.length-1;for(;n>=0&&s[n]===null;)n--;return n>=0&&s[n]===t}else if(s)return!1}return!1}});var gd=_(kn=>{"use strict";d();Object.defineProperty(kn,"__esModule",{value:!0});kn.TokenMap=void 0;var G4=me(),{traverseFast:Q4,VISITOR_KEYS:Z4}=G4,yu=class{constructor(t,r,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=i,Q4(t,s=>{let n=this._getTokensIndexesOfNode(s);n.length>0&&this._nodesToTokenIndexes.set(s,n)}),this._tokensCache.clear()}has(t){return this._nodesToTokenIndexes.has(t)}getIndexes(t){return this._nodesToTokenIndexes.get(t)}find(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=0;s<i.length;s++){let n=i[s],a=this._tokens[n];if(r(a,n))return a}return null}findLastIndex(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=i.length-1;s>=0;s--){let n=i[s],a=this._tokens[n];if(r(a,n))return n}return-1}findMatching(t,r,i=0){let s=this._nodesToTokenIndexes.get(t);if(s){typeof r=="number"&&(r=String.fromCharCode(r));let n=0,a=i;if(a>1){let o=this._nodesOccurrencesCountCache.get(t);o?.test===r&&o.count<a&&(n=o.i+1,i-=o.count+1)}for(;n<s.length;n++){let o=this._tokens[s[n]];if(this.matchesOriginal(o,r)){if(i===0)return a>0&&this._nodesOccurrencesCountCache.set(t,{test:r,count:a,i:n}),o;i--}}}return null}matchesOriginal(t,r){return t.end-t.start!==r.length?!1:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[0]];return s.start!==t.start?!1:this.matchesOriginal(s,r)}endMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[i.length-1]];return s.end!==t.end?!1:this.matchesOriginal(s,r)}_getTokensIndexesOfNode(t){var r;if(t.start==null||t.end==null)return[];let{first:i,last:s}=this._findTokensOfNode(t,0,this._tokens.length-1),n=i,a=e8(t);(t.type==="ExportNamedDeclaration"||t.type==="ExportDefaultDeclaration")&&((r=t.declaration)==null?void 0:r.type)==="ClassDeclaration"&&a.next();let o=[];for(let l of a){if(l==null||l.start==null||l.end==null)continue;let u=this._findTokensOfNode(l,n,s),f=u.first;for(let x=n;x<f;x++)o.push(x);n=u.last+1}for(let l=n;l<=s;l++)o.push(l);return o}_findTokensOfNode(t,r,i){let s=this._tokensCache.get(t);if(s)return s;let n=this._findFirstTokenOfNode(t.start,r,i),a=this._findLastTokenOfNode(t.end,n,i);return this._tokensCache.set(t,{first:n,last:a}),{first:n,last:a}}_findFirstTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].start)i=s-1;else if(t>this._tokens[s].start)r=s+1;else return s}return r}_findLastTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].end)i=s-1;else if(t>this._tokens[s].end)r=s+1;else return s}return i}};kn.TokenMap=yu;function*e8(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r<e.quasis.length;r++)yield e.expressions[r-1],yield e.quasis[r];return}let t=Z4[e.type];for(let r of t){let i=e[r];i&&(Array.isArray(i)?yield*i:yield i)}}});var Ed=_(Ln=>{"use strict";d();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.default=void 0;var t8=Cp(),Lr=Dr(),r8=du(),i8=me(),s8=gd(),n8=Cn(),{isExpression:a8,isFunction:o8,isStatement:l8,isClassBody:u8,isTSInterfaceBody:c8,isTSEnumMember:p8}=i8,f8=/e/i,h8=/\.0+$/,bd=/[\n\r\u2028\u2029]/,d8=/[\n\r\u2028\u2029]|\*\//;function xd(e){return e.type==="CommentLine"||bd.test(e.value)}var Tu=class{constructor(t,r,i=null,s=null){this.tokenContext=Lr.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=t,this._tokens=i,this._originalCode=s,this._indentRepeat=t.indent.style.length,this._inputMap=r?._inputMap||null,this._buf=new t8.default(r,t.indent.style[0]);let{preserveFormat:n,compact:a,concise:o,retainLines:l,retainFunctionParens:u}=t;n&&(this._flags|=1),a&&(this._flags|=2),o&&(this._flags|=4),l&&(this._flags|=8),u&&(this._flags|=16),(t.auxiliaryCommentBefore||t.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){let t=this._noLineTerminatorAfterNode;return t!==null&&(this._noLineTerminatorAfterNode=null),t}generate(t){return this.format.preserveFormat&&(this.tokenMap=new s8.TokenMap(t,this._tokens,this._originalCode),this._boundGetRawIdentifier=n8._getRawIdentifier.bind(this)),this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(t=this._flags){t&7||(this._indent+=this._indentRepeat)}dedent(t=this._flags){t&7||(this._indent-=this._indentRepeat)}semicolon(t=!1){let r=this._flags;if(r&32&&this._maybeAddAuxComment(),r&1){let i=this._currentNode;if(i.start!=null&&i.end!=null){if(!this.tokenMap.endMatches(i,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let s=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[s[s.length-1]].loc.start)}}t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!(this._flags&3))if(t)this._space();else{let r=this.getLastChar(!0);r!==0&&r!==32&&r!==10&&this._space()}}word(t,r=!1){this.tokenContext&=Lr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t);let s=this.getLastChar();(s===-2||s===-3||s===47&&t.charCodeAt(0)===47)&&this._space(),this._append(t,!1),this.setLastChar(-3),this._noLineTerminator=r}number(t,r){function i(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(t),Number.isInteger(r)&&!i(t)&&!f8.test(t)&&!h8.test(t)&&t.charCodeAt(t.length-1)!==46&&this.setLastChar(-2)}token(t,r=!1,i=0,s=!1){this.tokenContext&=Lr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,i);let n=this._flags;if(n&32&&this._maybeAddAuxComment(),n&1&&this._catchUpToCurrentToken(t,i),s){let a=t.charCodeAt(0);((a===45&&t==="--"||a===61)&&this.getLastChar()===33||a===43&&this.getLastChar()===43||a===45&&this.getLastChar()===45||a===46&&this.getLastChar()===-2)&&this._space()}this._append(t,r),this._noLineTerminator=!1}tokenChar(t,r=0){this.tokenContext&=Lr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,r);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t,r),(t===43&&this.getLastChar()===43||t===45&&this.getLastChar()===45||t===46&&this.getLastChar()===-2)&&this._space(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r=this._flags){if(!(t<=0)&&!(r&10)){if(r&4){this.space();return}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let i=0;i<t;i++)this._newline()}}endsWith(t){return this.getLastChar(!0)===t}getLastChar(t){return this._buf.getLastChar(t)}setLastChar(t){this._buf._last=t}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,i){!r||this.format.preserveFormat||(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,i))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=t}_space(){this._queue(32)}_newline(){this._buf._queuedChar===32&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(t,r=0){let i=this.tokenMap.findMatching(this._currentNode,t,r);i&&this._catchUpTo(i.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(t,r){this._maybeIndent(),this._buf.append(t,r)}_appendChar(t,r){r||this._maybeIndent(),this._buf.appendChar(t)}_queue(t){this._buf.queue(t),this.setLastChar(-1)}_maybeIndent(){let t=this._shouldIndent();t>0&&this._buf._appendChar(-1,t,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(t,r){let i=this._flags;if((i&1)===0){i&8&&r!=null&&r[t]&&this.catchUp(r[t].line);return}let s=r?.[t];s!=null&&this._catchUpTo(s)}_catchUpTo({line:t,column:r,index:i}){let s=t-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let a=0;a<s;a++)this._newline();let n=s>0?r:r-this._buf.getCurrentColumn();if(n>0){let a=this._originalCode?this._originalCode.slice(i-n,i).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(n);this._buf.append(a,!1,!0),this._buf.setSourcePosition(t,r),this.setLastChar(32)}}printTerminatorless(t){this._noLineTerminator=!0,this.print(t)}print(t,r=!1,i=!1,s){var n,a;if(!t)return;this._innerCommentsState=0;let{type:o,loc:l,extra:u}=t,f=this._flags,x=!1;t._compact&&(this._flags|=4,x=!0);let A=r8.generatorInfosMap.get(o);if(A===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(t.constructor.name)}`);let[C,I,k]=A,N=this._currentNode,D=this._currentTypeId;this._currentNode=t,this._currentTypeId=I,f&1&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let F;f&32&&(F=this._insideAux,this._insideAux=l==null,this._maybeAddAuxComment(this._insideAux&&!F));let ie=0;i&&(ie=this.tokenContext,ie&Lr.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:ie=0);let H=u!=null&&u.parenthesized,$=H&&f&1||H&&f&16&&I===71||N&&((0,Lr.parentNeedsParens)(t,N,D)||k!=null&&k(t,N,D,this.tokenContext,f&1?this._boundGetRawIdentifier:void 0));if(!$&&H&&(n=t.leadingComments)!=null&&n.length&&t.leadingComments[0].type==="CommentBlock")switch(D){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(N.callee!==t)break;default:$=!0}let fe=!1;!$&&this._noLineTerminator&&((a=t.leadingComments)!=null&&a.some(xd)||f&8&&l&&l.start.line>this._buf.getCurrentLine())&&($=!0,fe=!0);let _e;if(!$&&(r||(r=!!N&&this._noLineTerminatorAfterNode===N&&(0,Lr.isLastChild)(N,t)),r)){var qe;(qe=t.trailingComments)!=null&&qe.some(xd)?a8(t)&&($=!0):(_e=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=t)}$&&(this.tokenChar(40),fe&&this.indent(),this._innerCommentsState=0,i||(ie=this.tokenContext),ie&Lr.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),_e=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(t,N),this.exactSource(I===139||I===66?null:l,C.bind(this,t,N)),$?(this._printTrailingComments(t,N),fe&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,N)):this._printTrailingComments(t,N,s),ie&&(this.tokenContext=ie),this._currentNode=N,this._currentTypeId=D,x&&(this._flags=f),f&32&&(this._insideAux=F),_e!=null&&(this._noLineTerminatorAfterNode=_e),this._innerCommentsState=0}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){let r=t.extra;if(r?.raw!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r,i,s,n,a,o){if(!(t!=null&&t.length))return;let l=this._flags;if(i==null&&l&8){var u;let A=(u=t[0].loc)==null?void 0:u.start.line;A!=null&&A!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent(l);let f=t.length;for(let A=0;A<f;A++){let C=t[A];if(C&&(r&&A===0&&this._buf.hasContent()&&this.newline(1,l),this.print(C,!1,a,o||0),s!=null&&(A<f-1?s.call(this,A,!1):n&&s.call(this,A,!0)),r))if(A+1===f)this.newline(1,l);else{let I=this._lastCommentLine;if(I>0){var x;let k=(((x=t[A+1].loc)==null?void 0:x.start.line)||0)-I;if(k>=0){this.newline(k||1,l);continue}}this.newline(1,l)}}i&&this.dedent(l)}printAndIndentOnComments(t){let r=t.leadingComments&&t.leadingComments.length>0;r&&this.indent(),this.print(t),r&&this.dedent()}printBlock(t){t.type!=="EmptyStatement"&&this.space(),this.print(t)}_printTrailingComments(t,r,i){let{innerComments:s,trailingComments:n}=t;s!=null&&s.length&&this._printComments(2,s,t,r,i),n!=null&&n.length?this._printComments(2,n,t,r,i):this._lastCommentLine=0}_printLeadingComments(t,r){let i=t.leadingComments;i!=null&&i.length&&this._printComments(0,i,t,r)}_maybePrintInnerComments(t,r){var i;let s=this._innerCommentsState;switch(s&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((s&4)>0,(i=this.tokenMap)==null?void 0:i.findMatching(this._currentNode,t,r))}}printInnerComments(t=!0,r){let i=this._currentNode,s=i.innerComments;if(!(s!=null&&s.length)){this._innerCommentsState=2;return}let n=this.endsWith(32);switch(t&&this.indent(),this._printComments(1,s,i,void 0,void 0,r)){case 2:this._innerCommentsState=2;case 1:n&&this.space()}t&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(t,r,i,s){this.printJoin(t,!0,r??!1,void 0,void 0,i,s)}printList(t,r,i,s,n,a){this.printJoin(t,i,s,n??m8,r,a)}shouldPrintTrailingComma(t){if(!this.tokenMap)return null;let r=this.tokenMap.findLastIndex(this._currentNode,i=>this.tokenMap.matchesOriginal(i,typeof t=="number"?String.fromCharCode(t):t));return r<=0?null:this.tokenMap.matchesOriginal(this._tokens[r-1],",")}_shouldPrintComment(t,r){if(t.ignore||this._printedComments.has(t))return 0;if(this._noLineTerminator&&d8.test(t.value))return 2;if(r&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,s=>s.value===t.value);if(i&&i.start>r.start)return 2}return this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0}_printComment(t,r){let i=this._noLineTerminator,s=t.type==="CommentBlock",n=s&&r!==1&&!i;switch(n&&this._buf.hasContent()&&r!==2&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let a;if(s){if(a=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var o;let l=(o=t.loc)==null?void 0:o.start.column;if(l){let u=new RegExp("\\n\\s{1,"+l+"}","g");a=a.replace(u,`
|
|
14
13
|
`)}if(this._flags&4)a=a.replace(/\n(?!$)/g,`
|
|
15
14
|
`);else{let u=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent()||this.format.retainLines)&&(u+=this._indent),a=a.replace(/\n(?!$)/g,`
|
|
16
|
-
${" ".repeat(u)}`)}}}else i?a=`/*${t.value}*/`:a=`//${t.value}`;this.source("start",t.loc),this._append(a,s),!s&&!i&&this._newline(),n&&r!==3&&this.newline(1)}_printComments(t,r,i,s,n=0,a){let o=i.loc,l=r.length,u=!!o,f=u?o.start.line:0,
|
|
15
|
+
${" ".repeat(u)}`)}}}else i?a=`/*${t.value}*/`:a=`//${t.value}`;this.source("start",t.loc),this._append(a,s),!s&&!i&&this._newline(),n&&r!==3&&this.newline(1)}_printComments(t,r,i,s,n=0,a){let o=i.loc,l=r.length,u=!!o,f=u?o.start.line:0,x=u?o.end.line:0,A=0,C=0,{_noLineTerminator:I,_flags:k}=this;for(let N=0;N<l;N++){let D=r[N],F=this._shouldPrintComment(D,a);if(F===2)return N===0?0:1;if(u&&D.loc&&F===1){let ie=D.loc.start.line,H=D.loc.end.line;if(t===0){let $=0;if(N===0?this._buf.hasContent()&&(D.type==="CommentLine"||ie!==H)&&($=C=1):$=ie-A,A=H,$>0&&!I&&this.newline($,k),this._printComment(D,1),N+1===l){let fe=Math.max(f-A,C);fe>0&&!I&&this.newline(fe,k),A=f}}else if(t===1){let $=ie-(N===0?f:A);if(A=H,$>0&&!I&&this.newline($,k),this._printComment(D,1),N+1===l){let fe=Math.min(1,x-A);fe>0&&!I&&this.newline(fe,k),A=x}}else{let $=ie-(N===0?x-n:A);A=H,$>0&&!I&&this.newline($,k),this._printComment(D,1)}}else{if(u=!1,F!==1)continue;if(l===1){let ie=D.loc?D.loc.start.line===D.loc.end.line:!bd.test(D.value),H=ie&&!l8(i)&&!u8(s)&&!c8(s)&&!p8(i);t===0?this._printComment(D,H&&i.type!=="ObjectExpression"||ie&&o8(s)&&s.body===i?1:0):H&&t===2?this._printComment(D,1):this._printComment(D,0)}else t===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(D,N===0?2:N===l-1?3:0):this._printComment(D,0)}}return t===2&&u&&A&&(this._lastCommentLine=A),2}},ire=Ln.default=Tu;function m8(e,t){this.tokenChar(44,e),t||this.space()}});var Su=_(_i=>{"use strict";d();Object.defineProperty(_i,"__esModule",{value:!0});_i.default=void 0;_i.generate=Cd;var Pd=Ap(),Ad=Ed();function vd(e,t,r){var i;if(t.experimental_preserveFormat){if(typeof e!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&t.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let s={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken};s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.recordAndTupleSyntaxType=(i=t.recordAndTupleSyntaxType)!=null?i:"hash",s.importAttributesKeyword=t.importAttributesKeyword,s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(l=>s.comments||l.includes("@license")||l.includes("@preserve")),s.compact==="auto"&&(s.compact=typeof e=="string"&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(s.compact||s.preserveFormat)&&(s.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:n,auxiliaryCommentAfter:a,shouldPrintComment:o}=s;return n&&!o(n)&&(s.auxiliaryCommentBefore=void 0),a&&!o(a)&&(s.auxiliaryCommentAfter=void 0),s}_i.CodeGenerator=class{constructor(t,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=vd(i,r,t),this._map=r.sourceMaps?new Pd.default(r,i):null}generate(){return new Ad.default(this._format,this._map).generate(this._ast)}};function Cd(e,t={},r){let i=vd(r,t,e),s=t.sourceMaps?new Pd.default(t,r):null;return new Ad.default(i,s,e.tokens,typeof r=="string"?r:null).generate(e)}var ore=_i.default=Cd});var Jn=_(Ns=>{"use strict";d();Object.defineProperty(Ns,"__esModule",{value:!0});function y8(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var ur=class{constructor(t,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=i}},Li=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function Et(e,t){let{line:r,column:i,index:s}=e;return new ur(r,i+t,s+t)}var Id="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",T8={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Id},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Id}},wd={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Fn=e=>e.type==="UpdateExpression"?wd.UpdateExpression[`${e.prefix}`]:wd[e.type],S8={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
17
16
|
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
|
|
18
|
-
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Mn(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Mn(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Mn(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},b8={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},E8={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},P8=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),A8=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Mn({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),v8=["message"];function Nd(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function C8({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins",n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return n[r]&&(r=n[r]),function a(o,l){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=o,u.pos=o.index,u.syntaxPlugin=i,s&&(u.missingPlugin=l.missingPlugin),Nd(u,"clone",function(g={}){var E;let{line:A,column:v,index:O}=(E=g.loc)!=null?E:o;return a(new or(A,v,O),Object.assign({},l,g.details))}),Nd(u,"details",l),Object.defineProperty(u,"message",{configurable:!0,get(){let f=`${e(l)} (${o.line}:${o.column})`;return this.message=f,f},set(f){Object.defineProperty(this,"message",{value:f,writable:!0})}}),u}}function nr(e,t){if(Array.isArray(e))return i=>nr(i,e[0]);let r={};for(let i of Object.keys(e)){let s=e[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,o=S8(n,v8),l=typeof a=="string"?()=>a:a;r[i]=C8(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var b=Object.assign({},nr(g8),nr(x8),nr(b8),nr(E8),nr`pipelineOperator`(A8));function I8(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function w8(e){let t=I8();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:N8}=Object,_d=(e,t)=>{e&&N8(e,t,{enumerable:!1,value:e[t]})};function Ss(e){return _d(e.loc.start,"index"),_d(e.loc.end,"index"),e}var _8=e=>class extends e{parse(){let r=Ss(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(Ss)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:r,flags:i},n}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||r),s}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,i){let s=this.startNodeAtNode(r);return s.expression=r,this.finishNodeAt(s,"ChainExpression",i)}directiveToStmt(r){let i=r.value;delete r.value,this.castNodeTo(i,"Literal"),i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=this.castNodeTo(r,"ExpressionStatement");return s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:i,end:s,loc:n,range:a,raw:o,value:l}=r,u=Object.create(r.constructor.prototype);return u.type="Literal",u.start=i,u.end=s,u.loc=n,u.range=a,u.raw=o,u.value=l,u}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,a){super.parseBlockBody(r,i,s,n,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,a,o,l=!1){let u=this.startNode();u.kind=r.kind,u=super.parseMethod(u,i,s,n,a,o,l),delete u.kind;let{typeParameters:f}=r;f&&(delete r.typeParameters,u.typeParameters=f,this.resetStartLocationFromNode(u,f));let g=this.castNodeTo(u,"FunctionExpression");return r.value=g,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(i,"PropertyDefinition"),i.computed=!1),i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty")),i}parseObjectProperty(r,i,s,n){let a=super.parseObjectProperty(r,i,s,n);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,s,n){return r==="Property"?"value":super.isValidLVal(r,i,s,n)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(b.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(b.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){var n,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(r,i){let s=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,i,s,n,a){let o=super.parseMember(r,i,s,n,a);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let s=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,s){return Ss(super.finishNodeAt(r,i,s))}finishNode(r,i){let s=super.finishNode(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(r,i){super.resetStartLocation(r,i),Ss(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),Ss(r)}},ei=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},_e={brace:new ei("{"),j_oTag:new ei("<tag"),j_cTag:new ei("</tag"),j_expr:new ei("<tag>...</tag>",!0)};_e.template=new ei("`",!0);var ye=!0,Y=!0,Tu=!0,gs=!0,kr=!0,O8=!0,jn=class{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},Ju=new Map;function Ce(e,t={}){t.keyword=e;let r=se(e,t);return Ju.set(e,r),r}function gt(e,t){return se(e,{beforeExpr:ye,binop:t})}var Ps=-1,xr=[],Yu=[],Xu=[],Wu=[],$u=[],Hu=[];function se(e,t={}){var r,i,s,n;return++Ps,Yu.push(e),Xu.push((r=t.binop)!=null?r:-1),Wu.push((i=t.beforeExpr)!=null?i:!1),$u.push((s=t.startsExpr)!=null?s:!1),Hu.push((n=t.prefix)!=null?n:!1),xr.push(new jn(e,t)),Ps}function Te(e,t={}){var r,i,s,n;return++Ps,Ju.set(e,Ps),Yu.push(e),Xu.push((r=t.binop)!=null?r:-1),Wu.push((i=t.beforeExpr)!=null?i:!1),$u.push((s=t.startsExpr)!=null?s:!1),Hu.push((n=t.prefix)!=null?n:!1),xr.push(new jn("name",t)),Ps}var D8={bracketL:se("[",{beforeExpr:ye,startsExpr:Y}),bracketHashL:se("#[",{beforeExpr:ye,startsExpr:Y}),bracketBarL:se("[|",{beforeExpr:ye,startsExpr:Y}),bracketR:se("]"),bracketBarR:se("|]"),braceL:se("{",{beforeExpr:ye,startsExpr:Y}),braceBarL:se("{|",{beforeExpr:ye,startsExpr:Y}),braceHashL:se("#{",{beforeExpr:ye,startsExpr:Y}),braceR:se("}"),braceBarR:se("|}"),parenL:se("(",{beforeExpr:ye,startsExpr:Y}),parenR:se(")"),comma:se(",",{beforeExpr:ye}),semi:se(";",{beforeExpr:ye}),colon:se(":",{beforeExpr:ye}),doubleColon:se("::",{beforeExpr:ye}),dot:se("."),question:se("?",{beforeExpr:ye}),questionDot:se("?."),arrow:se("=>",{beforeExpr:ye}),template:se("template"),ellipsis:se("...",{beforeExpr:ye}),backQuote:se("`",{startsExpr:Y}),dollarBraceL:se("${",{beforeExpr:ye,startsExpr:Y}),templateTail:se("...`",{startsExpr:Y}),templateNonTail:se("...${",{beforeExpr:ye,startsExpr:Y}),at:se("@"),hash:se("#",{startsExpr:Y}),interpreterDirective:se("#!..."),eq:se("=",{beforeExpr:ye,isAssign:gs}),assign:se("_=",{beforeExpr:ye,isAssign:gs}),slashAssign:se("_=",{beforeExpr:ye,isAssign:gs}),xorAssign:se("_=",{beforeExpr:ye,isAssign:gs}),moduloAssign:se("_=",{beforeExpr:ye,isAssign:gs}),incDec:se("++/--",{prefix:kr,postfix:O8,startsExpr:Y}),bang:se("!",{beforeExpr:ye,prefix:kr,startsExpr:Y}),tilde:se("~",{beforeExpr:ye,prefix:kr,startsExpr:Y}),doubleCaret:se("^^",{startsExpr:Y}),doubleAt:se("@@",{startsExpr:Y}),pipeline:gt("|>",0),nullishCoalescing:gt("??",1),logicalOR:gt("||",1),logicalAND:gt("&&",2),bitwiseOR:gt("|",3),bitwiseXOR:gt("^",4),bitwiseAND:gt("&",5),equality:gt("==/!=/===/!==",6),lt:gt("</>/<=/>=",7),gt:gt("</>/<=/>=",7),relational:gt("</>/<=/>=",7),bitShift:gt("<</>>/>>>",8),bitShiftL:gt("<</>>/>>>",8),bitShiftR:gt("<</>>/>>>",8),plusMin:se("+/-",{beforeExpr:ye,binop:9,prefix:kr,startsExpr:Y}),modulo:se("%",{binop:10,startsExpr:Y}),star:se("*",{binop:10}),slash:gt("/",10),exponent:se("**",{beforeExpr:ye,binop:11,rightAssociative:!0}),_in:Ce("in",{beforeExpr:ye,binop:7}),_instanceof:Ce("instanceof",{beforeExpr:ye,binop:7}),_break:Ce("break"),_case:Ce("case",{beforeExpr:ye}),_catch:Ce("catch"),_continue:Ce("continue"),_debugger:Ce("debugger"),_default:Ce("default",{beforeExpr:ye}),_else:Ce("else",{beforeExpr:ye}),_finally:Ce("finally"),_function:Ce("function",{startsExpr:Y}),_if:Ce("if"),_return:Ce("return",{beforeExpr:ye}),_switch:Ce("switch"),_throw:Ce("throw",{beforeExpr:ye,prefix:kr,startsExpr:Y}),_try:Ce("try"),_var:Ce("var"),_const:Ce("const"),_with:Ce("with"),_new:Ce("new",{beforeExpr:ye,startsExpr:Y}),_this:Ce("this",{startsExpr:Y}),_super:Ce("super",{startsExpr:Y}),_class:Ce("class",{startsExpr:Y}),_extends:Ce("extends",{beforeExpr:ye}),_export:Ce("export"),_import:Ce("import",{startsExpr:Y}),_null:Ce("null",{startsExpr:Y}),_true:Ce("true",{startsExpr:Y}),_false:Ce("false",{startsExpr:Y}),_typeof:Ce("typeof",{beforeExpr:ye,prefix:kr,startsExpr:Y}),_void:Ce("void",{beforeExpr:ye,prefix:kr,startsExpr:Y}),_delete:Ce("delete",{beforeExpr:ye,prefix:kr,startsExpr:Y}),_do:Ce("do",{isLoop:Tu,beforeExpr:ye}),_for:Ce("for",{isLoop:Tu}),_while:Ce("while",{isLoop:Tu}),_as:Te("as",{startsExpr:Y}),_assert:Te("assert",{startsExpr:Y}),_async:Te("async",{startsExpr:Y}),_await:Te("await",{startsExpr:Y}),_defer:Te("defer",{startsExpr:Y}),_from:Te("from",{startsExpr:Y}),_get:Te("get",{startsExpr:Y}),_let:Te("let",{startsExpr:Y}),_meta:Te("meta",{startsExpr:Y}),_of:Te("of",{startsExpr:Y}),_sent:Te("sent",{startsExpr:Y}),_set:Te("set",{startsExpr:Y}),_source:Te("source",{startsExpr:Y}),_static:Te("static",{startsExpr:Y}),_using:Te("using",{startsExpr:Y}),_yield:Te("yield",{startsExpr:Y}),_asserts:Te("asserts",{startsExpr:Y}),_checks:Te("checks",{startsExpr:Y}),_exports:Te("exports",{startsExpr:Y}),_global:Te("global",{startsExpr:Y}),_implements:Te("implements",{startsExpr:Y}),_intrinsic:Te("intrinsic",{startsExpr:Y}),_infer:Te("infer",{startsExpr:Y}),_is:Te("is",{startsExpr:Y}),_mixins:Te("mixins",{startsExpr:Y}),_proto:Te("proto",{startsExpr:Y}),_require:Te("require",{startsExpr:Y}),_satisfies:Te("satisfies",{startsExpr:Y}),_keyof:Te("keyof",{startsExpr:Y}),_readonly:Te("readonly",{startsExpr:Y}),_unique:Te("unique",{startsExpr:Y}),_abstract:Te("abstract",{startsExpr:Y}),_declare:Te("declare",{startsExpr:Y}),_enum:Te("enum",{startsExpr:Y}),_module:Te("module",{startsExpr:Y}),_namespace:Te("namespace",{startsExpr:Y}),_interface:Te("interface",{startsExpr:Y}),_type:Te("type",{startsExpr:Y}),_opaque:Te("opaque",{startsExpr:Y}),name:se("name",{startsExpr:Y}),placeholder:se("%%",{startsExpr:Y}),string:se("string",{startsExpr:Y}),num:se("num",{startsExpr:Y}),bigint:se("bigint",{startsExpr:Y}),decimal:se("decimal",{startsExpr:Y}),regexp:se("regexp",{startsExpr:Y}),privateName:se("#name",{startsExpr:Y}),eof:se("eof"),jsxName:se("jsxName"),jsxText:se("jsxText",{beforeExpr:ye}),jsxTagStart:se("jsxTagStart",{startsExpr:Y}),jsxTagEnd:se("jsxTagEnd")};function Le(e){return e>=93&&e<=133}function k8(e){return e<=92}function $t(e){return e>=58&&e<=133}function Kd(e){return e>=58&&e<=137}function L8(e){return Wu[e]}function bs(e){return $u[e]}function M8(e){return e>=29&&e<=33}function Od(e){return e>=129&&e<=131}function B8(e){return e>=90&&e<=92}function zu(e){return e>=58&&e<=92}function F8(e){return e>=39&&e<=59}function j8(e){return e===34}function R8(e){return Hu[e]}function q8(e){return e>=121&&e<=123}function U8(e){return e>=124&&e<=130}function Mr(e){return Yu[e]}function Bn(e){return Xu[e]}function K8(e){return e===57}function Rn(e){return e>=24&&e<=25}function gr(e){return xr[e]}xr[8].updateContext=e=>{e.pop()};xr[5].updateContext=xr[7].updateContext=xr[23].updateContext=e=>{e.push(_e.brace)};xr[22].updateContext=e=>{e[e.length-1]===_e.template?e.pop():e.push(_e.template)};xr[143].updateContext=e=>{e.push(_e.j_expr,_e.j_oTag)};var Gu="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Vd="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",V8=new RegExp("["+Gu+"]"),J8=new RegExp("["+Gu+Vd+"]");Gu=Vd=null;var Jd=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Y8=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Pu(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function ar(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&V8.test(String.fromCharCode(e)):Pu(e,Jd)}function ti(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&J8.test(String.fromCharCode(e)):Pu(e,Jd)||Pu(e,Y8)}var Qu={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},X8=new Set(Qu.keyword),W8=new Set(Qu.strict),$8=new Set(Qu.strictBind);function Yd(e,t){return t&&e==="await"||e==="enum"}function Xd(e,t){return Yd(e,t)||W8.has(e)}function Wd(e){return $8.has(e)}function $d(e,t){return Xd(e,t)||Wd(e)}function H8(e){return X8.has(e)}function z8(e,t,r){return e===64&&t===64&&ar(r)}var G8=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Q8(e){return G8.has(e)}var As=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},vs=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new As(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,t,r,i);let n=s.names.get(t)||0;r&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=t),n=n|2),s.names.set(t,n),r&8&&this.maybeExportDefined(s,t)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,t,r,i),s.names.set(t,(s.names.get(t)||0)|1),this.maybeExportDefined(s,t),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,i,s){this.isRedeclaredInScope(t,r,i)&&this.parser.raise(b.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(t,r,i){if(!(i&1))return!1;if(i&8)return t.names.has(r);let s=t.names.get(r)||0;return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(t)&&(s&1)>0:(s&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(s&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},Au=class extends As{constructor(...t){super(...t),this.declareFunctions=new Set}},vu=class extends vs{createScope(t){return new Au(t)}declareName(t,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t),s.declareFunctions.add(t);return}super.declareName(t,r,i)}isRedeclaredInScope(t,r,i){if(super.isRedeclaredInScope(t,r,i))return!0;if(i&2048&&!t.declareFunctions.has(r)){let s=t.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},Z8=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ae=nr`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function e6(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Dd(e){return e.importKind==="type"||e.importKind==="typeof"}var t6={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function r6(e,t){let r=[],i=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?r:i).push(e[s]);return[r,i]}var i6=/\*?\s*@((?:no)?flow)\b/,s6=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return vu}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,i){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=i6.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(ae.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(ae.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ae.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(o))):(this.expectContextual(125,ae.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=!1;return s.forEach(o=>{e6(o)?(n==="CommonJS"&&this.raise(ae.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(ae.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(ae.AmbiguousDeclareModuleKind,o),n="CommonJS",a=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(ae.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:t6[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(ae.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){Z8.has(r)&&this.raise(s?ae.AssignReservedType:ae.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifierName(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifierName(r)}flowParseRestrictedIdentifier(r,i){let s=this.startNode(),n=this.flowParseRestrictedIdentifierName(r,i);return this.createIdentifier(s,n)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let r=this.startNode();return this.next(),r.typeAnnotation=this.flowParseType(),this.finishNode(r,"TypeAnnotation")}}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance();return s.name=this.flowParseRestrictedIdentifierName(),s.variance=n,s.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(ae.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==_e.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=i,!this.state.inType&&this.curContext()===_e.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,f,g=!1;for(i&&this.match(6)?(this.expect(6),u=9,f=!0):(this.expect(5),u=8,f=!1),l.exact=f;!this.match(u);){let A=!1,v=null,O=null,I=this.startNode();if(n&&this.isContextual(118)){let L=this.lookahead();L.type!==14&&L.type!==17&&(this.next(),v=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let L=this.lookahead();L.type!==14&&L.type!==17&&(this.next(),A=!0)}let _=this.flowParseVariance();if(this.eat(0))v!=null&&this.unexpected(v),this.eat(0)?(_&&this.unexpected(_.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(I,A))):l.indexers.push(this.flowParseObjectTypeIndexer(I,A,_));else if(this.match(10)||this.match(47))v!=null&&this.unexpected(v),_&&this.unexpected(_.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(I,A));else{let L="init";if(this.isContextual(99)||this.isContextual(104)){let W=this.lookahead();Kd(W.type)&&(L=this.state.value,this.next())}let te=this.flowParseObjectTypeProperty(I,A,v,_,L,s,a??!f);te===null?(g=!0,O=this.state.lastTokStartLoc):l.properties.push(te)}this.flowObjectTypeSemicolon(),O&&!this.match(8)&&!this.match(9)&&this.raise(ae.UnexpectedExplicitInexactInObject,O)}this.expect(u),s&&(l.inexact=g);let E=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,E}flowParseObjectTypeProperty(r,i,s,n,a,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(ae.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ae.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(ae.InexactVariance,n),null):(o||this.raise(ae.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(ae.SpreadVariance,n),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=a;let u=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(ae.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(u=!0),r.value=this.flowParseTypeInitialiser(),r.variance=n),r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?ae.GetterMayNotHaveThisParam:ae.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?b.BadGetterArity:b.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(b.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let s=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(r);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(ae.ThisParamMustBeFirst,a),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(ae.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=i,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Le(this.state.type)||this.match(78)){let u=this.lookahead().type;a=u!==17&&u!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(ae.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(zu(this.state.type)){let l=Mr(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(Le(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let r=this.startNode(),i=this.parseIdentifierName();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(r,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,i,s=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if($t(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||Le(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Le(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Od(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Od(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let E=this.lookaheadCharCode();if(E===44||E===61||E===58||E===41)return this.setOptionalParametersError(s),r}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[f,g]=this.getArrowLikeExpressions(l);if(u||g.length>0){let E=[...a];if(g.length>0){this.state=n,this.state.noArrowAt=E;for(let A=0;A<g.length;A++)E.push(g[A].start);({consequent:l,failed:u}=this.tryParseConditionalConsequent()),[f,g]=this.getArrowLikeExpressions(l)}u&&f.length>1&&this.raise(ae.AmbiguousConditionalArrow,n.startLoc),u&&f.length===1&&(this.state=n,E.push(f[0].start),this.state.noArrowAt=E,{consequent:l,failed:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return i?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):r6(n,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(ae.DeclareClassElement,n):i.value&&this.raise(ae.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(b.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):z8(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];a?.type==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let a=r[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(ae.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return s!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(r,i,s,n){return r==="TypeCastExpression"||super.isValidLVal(r,i,s,n)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,n,a,o){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,n,a,o),i.params&&a){let l=i.params;l.length>0&&this.isThisParam(l[0])&&this.raise(ae.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&a&&i.value.params){let l=i.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(ae.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(ae.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(ae.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,n,a,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(r,i,s,n,a,o,l);return u&&((f.value||f).typeParameters=u),f}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(ae.PatternIsOptional,r),this.isThisParam(r)&&this.raise(ae.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(ae.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(ae.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ae.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ae.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,s){i.local=Dd(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,a){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let g=this.parseIdentifier(!0);l!==null&&!$t(this.state.type)?(r.imported=g,r.importKind=l,r.local=this.cloneIdentifier(g)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(l!==null&&$t(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(i)throw this.raise(b.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(u=!0,r.local=this.cloneIdentifier(r.imported))}let f=Dd(r);return s&&f&&this.raise(ae.ImportTypeShorthandOnlyInPureImport,r),(s||f)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),u&&!s&&!f&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!a.error)return a.node;let{context:u}=this.state,f=u[u.length-1];(f===_e.j_oTag||f===_e.j_expr)&&u.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let u,f=this.tryParse(E=>{var A;u=this.flowParseTypeParameterDeclaration();let v=this.forwardNoArrowParamsConversionAt(u,()=>{let I=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(I,u),I});(A=v.extra)!=null&&A.parenthesized&&E();let O=this.maybeUnwrapTypeCastExpression(v);return O.type!=="ArrowFunctionExpression"&&E(),O.typeParameters=u,this.resetStartLocationFromNode(O,u),v},n),g=null;if(f.node&&this.maybeUnwrapTypeCastExpression(f.node).type==="ArrowFunctionExpression"){if(!f.error&&!f.aborted)return f.node.async&&this.raise(ae.UnexpectedTypeParameterBeforeAsyncArrowFunction,u),f.node;g=f.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(g)return this.state=f.failState,g;throw(l=a)!=null&&l.thrown?a.error:f.thrown?f.error:this.raise(ae.UnexpectedTokenAfterTypeParameter,u)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(ae.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(ae.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ae.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(b.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(ae.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?ae.EnumInvalidMemberInitializerSymbolType:ae.EnumInvalidMemberInitializerPrimaryType:ae.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(ae.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(ae.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),f=l.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(ae.EnumInvalidMemberName,l,{memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:r}),s.has(f)&&this.raise(ae.EnumDuplicateMemberName,l,{memberName:f,enumName:r}),s.add(f);let g={enumName:r,explicitType:i,memberName:f};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,g,"boolean"),o.init=u.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,g,"number"),o.init=u.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,g,"string"),o.init=u.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,g);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,g);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,g);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return i}else{for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Le(this.state.type))throw this.raise(ae.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(ae.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let f=o.booleanMembers.length,g=o.numberMembers.length,E=o.stringMembers.length,A=o.defaultedMembers.length;if(!f&&!g&&!E&&!A)return u();if(!f&&!g)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!g&&!E&&f>=A){for(let v of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(v.loc.start,{enumName:s,memberName:v.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!f&&!E&&g>=A){for(let v of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(v.loc.start,{enumName:s,memberName:v.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(ae.EnumInconsistentMemberValues,n,{enumName:s}),u()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},n6={__proto__:null,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"},a6=/\r\n|[\r\n\u2028\u2029]/,kn=new RegExp(a6.source,"g");function _i(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function kd(e,t,r){for(let i=t;i<r;i++)if(_i(e.charCodeAt(i)))return!0;return!1}var Su=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,gu=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function o6(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Zr=nr`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Lr(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Ni(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Ni(e.object)+"."+Ni(e.property);throw new Error("Node had unexpected type: "+e.type)}var l6=e=>class extends e{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Zr.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;default:_i(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
|
|
17
|
+
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Fn(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Fn(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Fn(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},g8={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},x8={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},b8=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),E8=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Fn({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),P8=["message"];function Nd(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function A8({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins",n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return n[r]&&(r=n[r]),function a(o,l){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=o,u.pos=o.index,u.syntaxPlugin=i,s&&(u.missingPlugin=l.missingPlugin),Nd(u,"clone",function(x={}){var A;let{line:C,column:I,index:k}=(A=x.loc)!=null?A:o;return a(new ur(C,I,k),Object.assign({},l,x.details))}),Nd(u,"details",l),Object.defineProperty(u,"message",{configurable:!0,get(){let f=`${e(l)} (${o.line}:${o.column})`;return this.message=f,f},set(f){Object.defineProperty(this,"message",{value:f,writable:!0})}}),u}}function or(e,t){if(Array.isArray(e))return i=>or(i,e[0]);let r={};for(let i of Object.keys(e)){let s=e[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,o=y8(n,P8),l=typeof a=="string"?()=>a:a;r[i]=A8(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var E=Object.assign({},or(T8),or(S8),or(g8),or(x8),or`pipelineOperator`(E8));function v8(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function C8(e){let t=v8();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:I8}=Object,_d=(e,t)=>{e&&I8(e,t,{enumerable:!1,value:e[t]})};function xs(e){return _d(e.loc.start,"index"),_d(e.loc.end,"index"),e}var w8=e=>class extends e{parse(){let r=xs(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(xs)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:r,flags:i},n}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||r),s}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,i){let s=this.startNodeAtNode(r);return s.expression=r,this.finishNodeAt(s,"ChainExpression",i)}directiveToStmt(r){let i=r.value;delete r.value,this.castNodeTo(i,"Literal"),i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=this.castNodeTo(r,"ExpressionStatement");return s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:i,end:s,loc:n,range:a,raw:o,value:l}=r,u=Object.create(r.constructor.prototype);return u.type="Literal",u.start=i,u.end=s,u.loc=n,u.range=a,u.raw=o,u.value=l,u}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,a){super.parseBlockBody(r,i,s,n,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,a,o,l=!1){let u=this.startNode();u.kind=r.kind,u=super.parseMethod(u,i,s,n,a,o,l),delete u.kind;let{typeParameters:f}=r;f&&(delete r.typeParameters,u.typeParameters=f,this.resetStartLocationFromNode(u,f));let x=this.castNodeTo(u,"FunctionExpression");return r.value=x,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(i,"PropertyDefinition"),i.computed=!1),i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty")),i}parseObjectProperty(r,i,s,n){let a=super.parseObjectProperty(r,i,s,n);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,s,n){return r==="Property"?"value":super.isValidLVal(r,i,s,n)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(E.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(E.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){var n,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(r,i){let s=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,i,s,n,a){let o=super.parseMember(r,i,s,n,a);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let s=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,s){return xs(super.finishNodeAt(r,i,s))}finishNode(r,i){let s=super.finishNode(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(r,i){super.resetStartLocation(r,i),xs(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),xs(r)}},ri=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},De={brace:new ri("{"),j_oTag:new ri("<tag"),j_cTag:new ri("</tag"),j_expr:new ri("<tag>...</tag>",!0)};De.template=new ri("`",!0);var Se=!0,W=!0,gu=!0,bs=!0,Mr=!0,N8=!0,qn=class{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},Xu=new Map;function we(e,t={}){t.keyword=e;let r=ae(e,t);return Xu.set(e,r),r}function bt(e,t){return ae(e,{beforeExpr:Se,binop:t})}var vs=-1,Er=[],Wu=[],$u=[],Hu=[],zu=[],Gu=[];function ae(e,t={}){var r,i,s,n;return++vs,Wu.push(e),$u.push((r=t.binop)!=null?r:-1),Hu.push((i=t.beforeExpr)!=null?i:!1),zu.push((s=t.startsExpr)!=null?s:!1),Gu.push((n=t.prefix)!=null?n:!1),Er.push(new qn(e,t)),vs}function ge(e,t={}){var r,i,s,n;return++vs,Xu.set(e,vs),Wu.push(e),$u.push((r=t.binop)!=null?r:-1),Hu.push((i=t.beforeExpr)!=null?i:!1),zu.push((s=t.startsExpr)!=null?s:!1),Gu.push((n=t.prefix)!=null?n:!1),Er.push(new qn("name",t)),vs}var _8={bracketL:ae("[",{beforeExpr:Se,startsExpr:W}),bracketHashL:ae("#[",{beforeExpr:Se,startsExpr:W}),bracketBarL:ae("[|",{beforeExpr:Se,startsExpr:W}),bracketR:ae("]"),bracketBarR:ae("|]"),braceL:ae("{",{beforeExpr:Se,startsExpr:W}),braceBarL:ae("{|",{beforeExpr:Se,startsExpr:W}),braceHashL:ae("#{",{beforeExpr:Se,startsExpr:W}),braceR:ae("}"),braceBarR:ae("|}"),parenL:ae("(",{beforeExpr:Se,startsExpr:W}),parenR:ae(")"),comma:ae(",",{beforeExpr:Se}),semi:ae(";",{beforeExpr:Se}),colon:ae(":",{beforeExpr:Se}),doubleColon:ae("::",{beforeExpr:Se}),dot:ae("."),question:ae("?",{beforeExpr:Se}),questionDot:ae("?."),arrow:ae("=>",{beforeExpr:Se}),template:ae("template"),ellipsis:ae("...",{beforeExpr:Se}),backQuote:ae("`",{startsExpr:W}),dollarBraceL:ae("${",{beforeExpr:Se,startsExpr:W}),templateTail:ae("...`",{startsExpr:W}),templateNonTail:ae("...${",{beforeExpr:Se,startsExpr:W}),at:ae("@"),hash:ae("#",{startsExpr:W}),interpreterDirective:ae("#!..."),eq:ae("=",{beforeExpr:Se,isAssign:bs}),assign:ae("_=",{beforeExpr:Se,isAssign:bs}),slashAssign:ae("_=",{beforeExpr:Se,isAssign:bs}),xorAssign:ae("_=",{beforeExpr:Se,isAssign:bs}),moduloAssign:ae("_=",{beforeExpr:Se,isAssign:bs}),incDec:ae("++/--",{prefix:Mr,postfix:N8,startsExpr:W}),bang:ae("!",{beforeExpr:Se,prefix:Mr,startsExpr:W}),tilde:ae("~",{beforeExpr:Se,prefix:Mr,startsExpr:W}),doubleCaret:ae("^^",{startsExpr:W}),doubleAt:ae("@@",{startsExpr:W}),pipeline:bt("|>",0),nullishCoalescing:bt("??",1),logicalOR:bt("||",1),logicalAND:bt("&&",2),bitwiseOR:bt("|",3),bitwiseXOR:bt("^",4),bitwiseAND:bt("&",5),equality:bt("==/!=/===/!==",6),lt:bt("</>/<=/>=",7),gt:bt("</>/<=/>=",7),relational:bt("</>/<=/>=",7),bitShift:bt("<</>>/>>>",8),bitShiftL:bt("<</>>/>>>",8),bitShiftR:bt("<</>>/>>>",8),plusMin:ae("+/-",{beforeExpr:Se,binop:9,prefix:Mr,startsExpr:W}),modulo:ae("%",{binop:10,startsExpr:W}),star:ae("*",{binop:10}),slash:bt("/",10),exponent:ae("**",{beforeExpr:Se,binop:11,rightAssociative:!0}),_in:we("in",{beforeExpr:Se,binop:7}),_instanceof:we("instanceof",{beforeExpr:Se,binop:7}),_break:we("break"),_case:we("case",{beforeExpr:Se}),_catch:we("catch"),_continue:we("continue"),_debugger:we("debugger"),_default:we("default",{beforeExpr:Se}),_else:we("else",{beforeExpr:Se}),_finally:we("finally"),_function:we("function",{startsExpr:W}),_if:we("if"),_return:we("return",{beforeExpr:Se}),_switch:we("switch"),_throw:we("throw",{beforeExpr:Se,prefix:Mr,startsExpr:W}),_try:we("try"),_var:we("var"),_const:we("const"),_with:we("with"),_new:we("new",{beforeExpr:Se,startsExpr:W}),_this:we("this",{startsExpr:W}),_super:we("super",{startsExpr:W}),_class:we("class",{startsExpr:W}),_extends:we("extends",{beforeExpr:Se}),_export:we("export"),_import:we("import",{startsExpr:W}),_null:we("null",{startsExpr:W}),_true:we("true",{startsExpr:W}),_false:we("false",{startsExpr:W}),_typeof:we("typeof",{beforeExpr:Se,prefix:Mr,startsExpr:W}),_void:we("void",{beforeExpr:Se,prefix:Mr,startsExpr:W}),_delete:we("delete",{beforeExpr:Se,prefix:Mr,startsExpr:W}),_do:we("do",{isLoop:gu,beforeExpr:Se}),_for:we("for",{isLoop:gu}),_while:we("while",{isLoop:gu}),_as:ge("as",{startsExpr:W}),_assert:ge("assert",{startsExpr:W}),_async:ge("async",{startsExpr:W}),_await:ge("await",{startsExpr:W}),_defer:ge("defer",{startsExpr:W}),_from:ge("from",{startsExpr:W}),_get:ge("get",{startsExpr:W}),_let:ge("let",{startsExpr:W}),_meta:ge("meta",{startsExpr:W}),_of:ge("of",{startsExpr:W}),_sent:ge("sent",{startsExpr:W}),_set:ge("set",{startsExpr:W}),_source:ge("source",{startsExpr:W}),_static:ge("static",{startsExpr:W}),_using:ge("using",{startsExpr:W}),_yield:ge("yield",{startsExpr:W}),_asserts:ge("asserts",{startsExpr:W}),_checks:ge("checks",{startsExpr:W}),_exports:ge("exports",{startsExpr:W}),_global:ge("global",{startsExpr:W}),_implements:ge("implements",{startsExpr:W}),_intrinsic:ge("intrinsic",{startsExpr:W}),_infer:ge("infer",{startsExpr:W}),_is:ge("is",{startsExpr:W}),_mixins:ge("mixins",{startsExpr:W}),_proto:ge("proto",{startsExpr:W}),_require:ge("require",{startsExpr:W}),_satisfies:ge("satisfies",{startsExpr:W}),_keyof:ge("keyof",{startsExpr:W}),_readonly:ge("readonly",{startsExpr:W}),_unique:ge("unique",{startsExpr:W}),_abstract:ge("abstract",{startsExpr:W}),_declare:ge("declare",{startsExpr:W}),_enum:ge("enum",{startsExpr:W}),_module:ge("module",{startsExpr:W}),_namespace:ge("namespace",{startsExpr:W}),_interface:ge("interface",{startsExpr:W}),_type:ge("type",{startsExpr:W}),_opaque:ge("opaque",{startsExpr:W}),name:ae("name",{startsExpr:W}),placeholder:ae("%%",{startsExpr:W}),string:ae("string",{startsExpr:W}),num:ae("num",{startsExpr:W}),bigint:ae("bigint",{startsExpr:W}),decimal:ae("decimal",{startsExpr:W}),regexp:ae("regexp",{startsExpr:W}),privateName:ae("#name",{startsExpr:W}),eof:ae("eof"),jsxName:ae("jsxName"),jsxText:ae("jsxText",{beforeExpr:Se}),jsxTagStart:ae("jsxTagStart",{startsExpr:W}),jsxTagEnd:ae("jsxTagEnd")};function Be(e){return e>=93&&e<=133}function O8(e){return e<=92}function zt(e){return e>=58&&e<=133}function Kd(e){return e>=58&&e<=137}function D8(e){return Hu[e]}function Ps(e){return zu[e]}function k8(e){return e>=29&&e<=33}function Od(e){return e>=129&&e<=131}function L8(e){return e>=90&&e<=92}function Qu(e){return e>=58&&e<=92}function M8(e){return e>=39&&e<=59}function B8(e){return e===34}function F8(e){return Gu[e]}function j8(e){return e>=121&&e<=123}function R8(e){return e>=124&&e<=130}function Fr(e){return Wu[e]}function jn(e){return $u[e]}function q8(e){return e===57}function Un(e){return e>=24&&e<=25}function br(e){return Er[e]}Er[8].updateContext=e=>{e.pop()};Er[5].updateContext=Er[7].updateContext=Er[23].updateContext=e=>{e.push(De.brace)};Er[22].updateContext=e=>{e[e.length-1]===De.template?e.pop():e.push(De.template)};Er[143].updateContext=e=>{e.push(De.j_expr,De.j_oTag)};var Zu="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Vd="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",U8=new RegExp("["+Zu+"]"),K8=new RegExp("["+Zu+Vd+"]");Zu=Vd=null;var Jd=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],V8=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function vu(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function lr(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&U8.test(String.fromCharCode(e)):vu(e,Jd)}function ii(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&K8.test(String.fromCharCode(e)):vu(e,Jd)||vu(e,V8)}var ec={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},J8=new Set(ec.keyword),Y8=new Set(ec.strict),X8=new Set(ec.strictBind);function Yd(e,t){return t&&e==="await"||e==="enum"}function Xd(e,t){return Yd(e,t)||Y8.has(e)}function Wd(e){return X8.has(e)}function $d(e,t){return Xd(e,t)||Wd(e)}function W8(e){return J8.has(e)}function $8(e,t,r){return e===64&&t===64&&lr(r)}var H8=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function z8(e){return H8.has(e)}var Cs=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},Is=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Cs(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,t,r,i);let n=s.names.get(t)||0;r&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=t),n=n|2),s.names.set(t,n),r&8&&this.maybeExportDefined(s,t)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,t,r,i),s.names.set(t,(s.names.get(t)||0)|1),this.maybeExportDefined(s,t),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,i,s){this.isRedeclaredInScope(t,r,i)&&this.parser.raise(E.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(t,r,i){if(!(i&1))return!1;if(i&8)return t.names.has(r);let s=t.names.get(r)||0;return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(t)&&(s&1)>0:(s&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(s&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},Cu=class extends Cs{constructor(...t){super(...t),this.declareFunctions=new Set}},Iu=class extends Is{createScope(t){return new Cu(t)}declareName(t,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t),s.declareFunctions.add(t);return}super.declareName(t,r,i)}isRedeclaredInScope(t,r,i){if(super.isRedeclaredInScope(t,r,i))return!0;if(i&2048&&!t.declareFunctions.has(r)){let s=t.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},G8=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),le=or`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Q8(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Dd(e){return e.importKind==="type"||e.importKind==="typeof"}var Z8={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function e6(e,t){let r=[],i=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?r:i).push(e[s]);return[r,i]}var t6=/\*?\s*@((?:no)?flow)\b/,r6=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Iu}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,i){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=t6.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(le.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(le.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(le.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(o))):(this.expectContextual(125,le.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=!1;return s.forEach(o=>{Q8(o)?(n==="CommonJS"&&this.raise(le.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(le.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(le.AmbiguousDeclareModuleKind,o),n="CommonJS",a=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(le.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:Z8[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(le.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){G8.has(r)&&this.raise(s?le.AssignReservedType:le.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifierName(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifierName(r)}flowParseRestrictedIdentifier(r,i){let s=this.startNode(),n=this.flowParseRestrictedIdentifierName(r,i);return this.createIdentifier(s,n)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let r=this.startNode();return this.next(),r.typeAnnotation=this.flowParseType(),this.finishNode(r,"TypeAnnotation")}}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance();return s.name=this.flowParseRestrictedIdentifierName(),s.variance=n,s.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(le.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==De.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=i,!this.state.inType&&this.curContext()===De.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,f,x=!1;for(i&&this.match(6)?(this.expect(6),u=9,f=!0):(this.expect(5),u=8,f=!1),l.exact=f;!this.match(u);){let C=!1,I=null,k=null,N=this.startNode();if(n&&this.isContextual(118)){let F=this.lookahead();F.type!==14&&F.type!==17&&(this.next(),I=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let F=this.lookahead();F.type!==14&&F.type!==17&&(this.next(),C=!0)}let D=this.flowParseVariance();if(this.eat(0))I!=null&&this.unexpected(I),this.eat(0)?(D&&this.unexpected(D.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(N,C))):l.indexers.push(this.flowParseObjectTypeIndexer(N,C,D));else if(this.match(10)||this.match(47))I!=null&&this.unexpected(I),D&&this.unexpected(D.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(N,C));else{let F="init";if(this.isContextual(99)||this.isContextual(104)){let H=this.lookahead();Kd(H.type)&&(F=this.state.value,this.next())}let ie=this.flowParseObjectTypeProperty(N,C,I,D,F,s,a??!f);ie===null?(x=!0,k=this.state.lastTokStartLoc):l.properties.push(ie)}this.flowObjectTypeSemicolon(),k&&!this.match(8)&&!this.match(9)&&this.raise(le.UnexpectedExplicitInexactInObject,k)}this.expect(u),s&&(l.inexact=x);let A=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,A}flowParseObjectTypeProperty(r,i,s,n,a,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(le.InexactInsideExact,this.state.lastTokStartLoc):this.raise(le.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(le.InexactVariance,n),null):(o||this.raise(le.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(le.SpreadVariance,n),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=a;let u=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(le.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(u=!0),r.value=this.flowParseTypeInitialiser(),r.variance=n),r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?le.GetterMayNotHaveThisParam:le.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?E.BadGetterArity:E.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(E.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let s=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(r);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(le.ThisParamMustBeFirst,a),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(le.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=i,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Be(this.state.type)||this.match(78)){let u=this.lookahead().type;a=u!==17&&u!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(le.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Qu(this.state.type)){let l=Fr(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(Be(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let r=this.startNode(),i=this.parseIdentifierName();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(r,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,i,s=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(zt(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||Be(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Be(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Od(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Od(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let A=this.lookaheadCharCode();if(A===44||A===61||A===58||A===41)return this.setOptionalParametersError(s),r}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[f,x]=this.getArrowLikeExpressions(l);if(u||x.length>0){let A=[...a];if(x.length>0){this.state=n,this.state.noArrowAt=A;for(let C=0;C<x.length;C++)A.push(x[C].start);({consequent:l,failed:u}=this.tryParseConditionalConsequent()),[f,x]=this.getArrowLikeExpressions(l)}u&&f.length>1&&this.raise(le.AmbiguousConditionalArrow,n.startLoc),u&&f.length===1&&(this.state=n,A.push(f[0].start),this.state.noArrowAt=A,{consequent:l,failed:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return i?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):e6(n,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(le.DeclareClassElement,n):i.value&&this.raise(le.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(E.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):$8(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];a?.type==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let a=r[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(le.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return s!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(r,i,s,n){return r==="TypeCastExpression"||super.isValidLVal(r,i,s,n)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,n,a,o){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,n,a,o),i.params&&a){let l=i.params;l.length>0&&this.isThisParam(l[0])&&this.raise(le.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&a&&i.value.params){let l=i.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(le.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(le.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(le.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,n,a,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(r,i,s,n,a,o,l);return u&&((f.value||f).typeParameters=u),f}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(le.PatternIsOptional,r),this.isThisParam(r)&&this.raise(le.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(le.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(le.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(le.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(le.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,s){i.local=Dd(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,a){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let x=this.parseIdentifier(!0);l!==null&&!zt(this.state.type)?(r.imported=x,r.importKind=l,r.local=this.cloneIdentifier(x)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(l!==null&&zt(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(i)throw this.raise(E.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(u=!0,r.local=this.cloneIdentifier(r.imported))}let f=Dd(r);return s&&f&&this.raise(le.ImportTypeShorthandOnlyInPureImport,r),(s||f)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),u&&!s&&!f&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!a.error)return a.node;let{context:u}=this.state,f=u[u.length-1];(f===De.j_oTag||f===De.j_expr)&&u.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let u,f=this.tryParse(A=>{var C;u=this.flowParseTypeParameterDeclaration();let I=this.forwardNoArrowParamsConversionAt(u,()=>{let N=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(N,u),N});(C=I.extra)!=null&&C.parenthesized&&A();let k=this.maybeUnwrapTypeCastExpression(I);return k.type!=="ArrowFunctionExpression"&&A(),k.typeParameters=u,this.resetStartLocationFromNode(k,u),I},n),x=null;if(f.node&&this.maybeUnwrapTypeCastExpression(f.node).type==="ArrowFunctionExpression"){if(!f.error&&!f.aborted)return f.node.async&&this.raise(le.UnexpectedTypeParameterBeforeAsyncArrowFunction,u),f.node;x=f.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(x)return this.state=f.failState,x;throw(l=a)!=null&&l.thrown?a.error:f.thrown?f.error:this.raise(le.UnexpectedTokenAfterTypeParameter,u)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(le.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(le.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(le.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(E.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(le.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?le.EnumInvalidMemberInitializerSymbolType:le.EnumInvalidMemberInitializerPrimaryType:le.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(le.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(le.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),f=l.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(le.EnumInvalidMemberName,l,{memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:r}),s.has(f)&&this.raise(le.EnumDuplicateMemberName,l,{memberName:f,enumName:r}),s.add(f);let x={enumName:r,explicitType:i,memberName:f};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,x,"boolean"),o.init=u.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,x,"number"),o.init=u.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,x,"string"),o.init=u.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,x);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,x);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,x);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return i}else{for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Be(this.state.type))throw this.raise(le.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(le.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let f=o.booleanMembers.length,x=o.numberMembers.length,A=o.stringMembers.length,C=o.defaultedMembers.length;if(!f&&!x&&!A&&!C)return u();if(!f&&!x)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!x&&!A&&f>=C){for(let I of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(I.loc.start,{enumName:s,memberName:I.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!f&&!A&&x>=C){for(let I of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(I.loc.start,{enumName:s,memberName:I.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(le.EnumInconsistentMemberValues,n,{enumName:s}),u()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},i6={__proto__:null,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"},s6=/\r\n|[\r\n\u2028\u2029]/,Mn=new RegExp(s6.source,"g");function Di(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function kd(e,t,r){for(let i=t;i<r;i++)if(Di(e.charCodeAt(i)))return!0;return!1}var xu=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,bu=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function n6(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var ti=or`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Br(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Oi(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Oi(e.object)+"."+Oi(e.property);throw new Error("Node had unexpected type: "+e.type)}var a6=e=>class extends e{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ti.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;default:Di(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
|
|
19
18
|
`:`\r
|
|
20
|
-
`):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(b.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===r)break;n===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):_i(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),a=n6[n];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(ti(r)||r===45);this.finishToken(141,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(141)?r.name=this.state.value:zu(this.state.type)?r.name=Mr(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let s=this.startNodeAt(r);return s.namespace=i,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=i,s.property=this.jsxParseIdentifier(),i=this.finishNode(s,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(_e.brace),this.next(),r=this.jsxParseExpressionContainer(r,_e.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(Zr.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Zr.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(_e.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(_e.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(_e.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(144);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(144),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(_e.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,_e.j_expr));break}default:this.unexpected()}Lr(n)&&!Lr(a)&&a!==null?this.raise(Zr.MissingClosingTagFragment,a):!Lr(n)&&Lr(a)?this.raise(Zr.MissingClosingTagElement,a,{openingTagName:Ni(n.name)}):!Lr(n)&&!Lr(a)&&Ni(a.name)!==Ni(n.name)&&this.raise(Zr.MissingClosingTagElement,a,{openingTagName:Ni(n.name)})}if(Lr(n)?(i.openingFragment=n,i.closingFragment=a):(i.openingElement=n,i.closingElement=a),i.children=s,this.match(47))throw this.raise(Zr.UnwrappedAdjacentJSXElements,this.state.startLoc);return Lr(n)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:i}=this.state;i[i.length-1]=r}parseExprAtom(r){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){let i=this.curContext();if(i===_e.j_expr){this.jsxReadToken();return}if(i===_e.j_oTag||i===_e.j_cTag){if(ar(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&i===_e.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(r)}updateContext(r){let{context:i,type:s}=this.state;if(s===56&&r===143)i.splice(-2,2,_e.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)i.push(_e.j_oTag);else if(s===144){let n=i[i.length-1];n===_e.j_oTag&&r===56||n===_e.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===_e.j_expr):(this.setContext(_e.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=L8(s)}},Cu=class extends As{constructor(...t){super(...t),this.tsNames=new Map}},Iu=class extends vs{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new Cu(t)}enter(t){t===1024&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return t===1024&&this.importsStack.pop(),t}hasImport(t,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(t))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(t))return!0}return!1}declareName(t,r,i){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(b.VarRedeclaration,i,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let s=this.currentScope(),n=s.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(s,t),s.tsNames.set(t,n|16);return}super.declareName(t,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&s.tsNames.set(t,n)}isRedeclaredInScope(t,r,i){let s=t.tsNames.get(r);if((s&2)>0){if(i&256){let n=!!(i&512),a=(s&4)>0;return n!==a}return!0}return i&128&&(s&8)>0?t.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(t,r,i)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}},wu=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Fn(e,t){return(e?2:0)|(t?1:0)}var Nu=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,i]=t;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return!1;return!0}}getPluginOption(t,r){var i;return(i=this.plugins.get(t))==null?void 0:i[r]}};function Hd(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function u6(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Cs(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Wt(e,t,r){let i=null,s=t.length;for(;i===null&&s>0;)i=t[--s];i===null||i.start>r.start?Cs(e,r.comments):Hd(i,r.comments)}var _u=class extends Nu{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===t.end&&(n.leadingNode=t,s--);let{start:a}=t;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=t,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=t);break}}}finalizeComment(t){var r;let{comments:i}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&Hd(t.leadingNode,i),t.trailingNode!==null&&u6(t.trailingNode,i);else{let s=t.containingNode,n=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":Wt(s,s.properties,t);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Wt(s,s.arguments,t);break;case"ImportExpression":Wt(s,[s.source,(r=s.options)!=null?r:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Wt(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":Wt(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Wt(s,s.specifiers,t);break;case"TSEnumDeclaration":Wt(s,s.members,t);break;case"TSEnumBody":Wt(s,s.members,t);break;case"TSInterfaceBody":Wt(s,s.body,t);break;default:{if(s.type==="RecordExpression"){Wt(s,s.properties,t);break}if(s.type==="TupleExpression"){Wt(s,s.elements,t);break}Cs(s,i)}}else Cs(s,i)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===t&&(s.leadingNode=null)}takeSurroundingComments(t,r,i){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let a=n-1;for(;a>=0;a--){let o=s[a],l=o.end;if(o.start===i)o.leadingNode=t;else if(l===r)o.trailingNode=t;else if(l<r)break}}},Ou=class e{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[_e.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:i,startLine:s,startColumn:n}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=i,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new or(s,n,i)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new or(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},c6=function(t){return t>=48&&t<=57},Ld={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ln={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Md(e,t,r,i,s,n){let a=r,o=i,l=s,u="",f=null,g=r,{length:E}=t;for(;;){if(r>=E){n.unterminated(a,o,l),u+=t.slice(g,r);break}let A=t.charCodeAt(r);if(p6(e,A,t,r)){u+=t.slice(g,r);break}if(A===92){u+=t.slice(g,r);let v=f6(t,r,i,s,e==="template",n);v.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=v.ch,{pos:r,lineStart:i,curLine:s}=v,g=r}else A===8232||A===8233?(++r,++s,i=r):A===10||A===13?e==="template"?(u+=t.slice(g,r)+`
|
|
21
|
-
`,++r,
|
|
22
|
-
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Du(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=Gd(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,g=/^[0-7]+/.exec(e.slice(u,t+2))[0],E=parseInt(g,8);E>255&&(g=g.slice(0,-1),E=parseInt(g,8)),t+=g.length-1;let A=e.charCodeAt(t);if(g!=="0"||A===56||A===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(E))}return o(String.fromCharCode(l))}}function Du(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=zd(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function zd(e,t,r,i,s,n,a,o,l,u){let f=t,g=s===16?Ld.hex:Ld.decBinOct,E=s===16?Ln.hex:s===10?Ln.dec:s===8?Ln.oct:Ln.bin,A=!1,v=0;for(let O=0,I=n??1/0;O<I;++O){let _=e.charCodeAt(t),L;if(_===95&&o!=="bail"){let te=e.charCodeAt(t-1),W=e.charCodeAt(t+1);if(o){if(Number.isNaN(W)||!E(W)||g.has(te)||g.has(W)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(_>=97?L=_-97+10:_>=65?L=_-65+10:c6(_)?L=_-48:L=1/0,L>=s){if(L<=9&&u)return{n:null,pos:t};if(L<=9&&l.invalidDigit(t,r,i,s))L=0;else if(a)L=0,A=!0;else break}++t,v=v*s+L}return t===f||n!=null&&t-f!==n||A?{n:null,pos:t}:{n:v,pos:t}}function Gd(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Du(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=Du(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}function xs(e,t,r){return new or(r,e-t,e)}var h6=new Set([103,109,115,105,121,117,100,118]),sr=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Di(t.startLoc,t.endLoc)}},ku=class extends _u{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,a)=>this.optionFlags&2048?(this.raise(b.InvalidDigit,xs(i,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(b.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(b.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(b.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(b.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(b.StrictNumericEscape,xs(i,s,n))},unterminated:(i,s,n)=>{throw this.raise(b.UnterminatedString,xs(i-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(b.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(b.UnterminatedTemplate,xs(i,s,n))}}),this.state=new Ou,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new sr(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Su.lastIndex=t,Su.test(this.input)?Su.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return gu.lastIndex=t,gu.test(this.input)?gu.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let i=this.input.charCodeAt(t);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(t,i+2);if(s===-1)throw this.raise(b.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+t.length,kn.lastIndex=i+2;kn.test(this.input)&&kn.lastIndex<=s;)++this.state.curLine,this.state.lineStart=kn.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+t.length),loc:new Di(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(t){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!_i(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n),loc:new Di(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let t=this.state.pos,r=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),r?.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),r?.push(s));break}default:break e}break;default:if(o6(i))++this.state.pos;else if(i===45&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(t===0||this.state.lineStart>t)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else break e}}if(r?.length>0){let i=this.state.pos,s={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(b.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?b.RecordExpressionHashIncorrectStartSyntaxType:b.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else ar(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!_i(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(t){let r=t===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);t===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=t===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(b.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(b.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let i=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(b.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(b.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(ar(t)){this.readWord(t);return}}throw this.raise(b.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,i)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(b.UnterminatedRegExp,xt(t,1));let u=this.input.charCodeAt(n);if(_i(u))throw this.raise(b.UnterminatedRegExp,xt(t,1));if(i)i=!1;else{if(u===91)s=!0;else if(u===93&&s)s=!1;else if(u===47&&!s)break;i=u===92}}let a=this.input.slice(r,n);++n;let o="",l=()=>xt(t,n+2-r);for(;n<this.length;){let u=this.codePointAtPos(n),f=String.fromCharCode(u);if(h6.has(u))u===118?o.includes("u")&&this.raise(b.IncompatibleRegExpUVFlags,l()):u===117&&o.includes("v")&&this.raise(b.IncompatibleRegExpUVFlags,l()),o.includes(f)&&this.raise(b.DuplicateRegExpFlags,l());else if(ti(u)||u===92)this.raise(b.MalformedRegExpFlags,l());else break;++n,o+=f}this.state.pos=n,this.finishToken(138,{pattern:a,flags:o})}readInt(t,r,i=!1,s=!0){let{n,pos:a}=zd(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1;this.state.pos+=2;let n=this.readInt(t);n==null&&this.raise(b.InvalidDigit,xt(i,2),{radix:t});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,s=!0;else if(a===109)throw this.raise(b.InvalidDecimal,i);if(ar(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());if(s){let o=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,n)}readNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,a=!1,o=!1;!t&&this.readInt(10)===null&&this.raise(b.InvalidNumber,this.state.curPosition());let l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){let A=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(b.StrictOctalLiteral,i),!this.state.strict){let v=A.indexOf("_");v>0&&this.raise(b.ZeroDigitNumericSeparator,xt(i,v))}o=l&&!/[89]/.test(A)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,u=this.input.charCodeAt(this.state.pos)),(u===69||u===101)&&!o&&(u=this.input.charCodeAt(++this.state.pos),(u===43||u===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(b.InvalidOrMissingExponent,i),s=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),u===110&&((s||l)&&this.raise(b.InvalidBigIntLiteral,i),++this.state.pos,n=!0),u===109){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(b.InvalidDecimal,i),++this.state.pos;var f=!0}if(ar(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());let g=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,g);return}if(f){this.finishToken(137,g);return}let E=o?parseInt(g,8):parseFloat(g);this.finishToken(135,E)}readCodePoint(t){let{code:r,pos:i}=Gd(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(t){let{str:r,pos:i,curLine:s,lineStart:n}=Md(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:a}=Md("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,i&&(this.state.firstInvalidTemplateEscapePos=new or(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:t+r+"`"):(this.state.pos++,this.finishToken(25,i?null:t+r+"${"))}recordStrictModeErrors(t,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(t,r):this.state.strictErrors.set(i,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(ti(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?ar:ti;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(b.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(b.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(l)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(t){let r=this.readWord1(t),i=Ju.get(r);i!==void 0?this.finishToken(i,Mr(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:t}=this.state;zu(t)&&this.state.containsEsc&&this.raise(b.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Mr(t)})}raise(t,r,i={}){let s=r instanceof or?r:r.loc.start,n=t(s,i);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(t,r,i={}){let s=r instanceof or?r:r.loc.start,n=s.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let l=a[o];if(l.loc.index===n)return a[o]=t(s,i);if(l.loc.index<n)break}return this.raise(t,r,i)}updateContext(t){}unexpected(t,r){throw this.raise(b.UnexpectedToken,t??this.state.startLoc,{expected:r?Mr(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(b.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(b.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,i,s)=>{this.raise(t,xs(r,i,s))}}},Lu=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Mu=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Lu)}exit(){let t=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(b.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(t,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),o=s.has(t);if(r&3){let l=o&&n.get(t);if(l){let u=l&4,f=r&4,g=l&3,E=r&3;o=g===E||u!==f,o||n.delete(t)}else o||n.set(t,r)}o&&this.parser.raise(b.PrivateNameRedeclaration,i,{identifierName:t}),s.add(t),a.delete(t)}usePrivateName(t,r){let i;for(i of this.stack)if(i.privateNames.has(t))return;i?i.undefinedPrivateNames.set(t,r):this.parser.raise(b.InvalidPrivateFieldResolution,r,{identifierName:t})}},ki=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},qn=class extends ki{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let i=r.index;this.declarationErrors.set(i,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},Bu=class{constructor(t){this.parser=void 0,this.stack=[new ki],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let i=r.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,i);else return;a=s[--n]}this.parser.raise(t,i)}recordArrowParameterBindingError(t,r){let{stack:i}=this,s=i[i.length-1],n=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,n);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(b.AwaitBindingIdentifier,t),s=r[--i]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let n=t.length-2,a=t[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=t[--n]})}};function d6(){return new ki(3)}function m6(){return new qn(1)}function y6(){return new qn(2)}function Qd(){return new ki}var Fu=class extends ku{addExtra(t,r,i,s=!0){if(!t)return;let{extra:n}=t;n==null&&(n={},t.extra=n),s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let i=this.input.charCodeAt(t+r.length);return!(ti(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return kd(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return kd(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(b.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let i={node:null};try{let s=t((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:o}=t,l=!!i||!!s||!!a||!!n||!!o;if(!r)return l;i!=null&&this.raise(b.InvalidCoverInitializedName,i),s!=null&&this.raise(b.DuplicateProto,s),n!=null&&this.raise(b.UnexpectedPrivateField,n),a!=null&&this.unexpected(a),o!=null&&this.raise(b.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return Kd(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=t;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new wu;let l=this.classScope;this.classScope=new Mu(this);let u=this.expressionScope;return this.expressionScope=new Bu(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=n,this.prodParam=o,this.classScope=l,this.expressionScope=u}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let i=r?514:1;this.optionFlags&4&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},Oi=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},Li=class{constructor(t,r,i){this.type="",this.start=r,this.end=0,this.loc=new Di(i),t?.optionFlags&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},ju=Li.prototype;ju.__clone=function(){let e=new Li(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){let s=t[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(e[s]=this[s])}return e};var Ru=class extends Fu{startNode(){let t=this.state.startLoc;return new Li(this,t.index,t)}startNodeAt(t){return new Li(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,i){return t.type=r,t.end=i.index,t.loc.end=i,this.optionFlags&128&&(t.range[1]=i.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.optionFlags&128&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}castNodeTo(t,r){return t.type=r,t}cloneIdentifier(t){let{type:r,start:i,end:s,loc:n,range:a,name:o}=t,l=Object.create(ju);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.name=o,t.extra&&(l.extra=t.extra),l}cloneStringLiteral(t){let{type:r,start:i,end:s,loc:n,range:a,extra:o}=t,l=Object.create(ju);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.extra=o,l.value=t.value,l}},qu=e=>e.type==="ParenthesizedExpression"?qu(e.expression):e,Uu=class extends Ru{toAssignable(t,r=!1){var i,s;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=qu(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(b.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(b.InvalidParenthesizedAssignment,t):this.raise(b.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,l=t.properties.length,u=l-1;o<l;o++){var a;let f=t.properties[o],g=o===u;this.toAssignableObjectExpressionProp(f,g,r),g&&f.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(b.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:l}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(l,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,(s=t.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(b.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,t.left.type==="VoidPattern"&&this.raise(b.VoidPatternInitializer,t.left),this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(t,r,i){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?b.PatternHasAccessor:b.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){this.castNodeTo(t,"RestElement");let s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(b.RestTrailingComma,t)}else this.toAssignable(t,i)}toAssignableList(t,r,i){let s=t.length-1;for(let n=0;n<=s;n++){let a=t[n];a&&(this.toAssignableListItem(t,n,i),a.type==="RestElement"&&(n<s?this.raise(b.RestTrailingComma,a):r&&this.raise(b.RestTrailingComma,r)))}}toAssignableListItem(t,r,i){let s=t[r];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,i)}else this.toAssignable(s,i)}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let i=t.properties.length-1;return t.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let i of t)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(b.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,i){let s=i&1,n=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||i&2)&&(o=this.parseFunctionParamType(o)),n.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(b.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());n.push(this.parseBindingElement(i,o))}}return n}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(b.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(t,r){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(b.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(t,r,i,s){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,i=64,s=!1,n=!1,a=!1,o=!1){var l;let u=t.type;if(this.isObjectMethod(t))return;let f=this.isOptionalMemberExpression(t);if(f||u==="MemberExpression"){f&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(b.InvalidLhsOptionalChaining,t,{ancestor:r})),i!==64&&this.raise(b.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,i,n);let{name:_}=t;s&&(s.has(_)?this.raise(b.ParamDupe,t):s.add(_));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(b.VoidPatternCatchClauseParam,t);let g=qu(t);o||(o=g.type==="CallExpression"&&(g.callee.type==="Import"||g.callee.type==="Super"));let E=this.isValidLVal(u,o,!(a||(l=t.extra)!=null&&l.parenthesized)&&r.type==="AssignmentExpression",i);if(E===!0)return;if(E===!1){let _=i===64?b.InvalidLhs:b.InvalidLhsBinding;this.raise(_,t,{ancestor:r});return}let A,v;typeof E=="string"?(A=E,v=u==="ParenthesizedExpression"):[A,v]=E;let O=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,I=t[A];if(Array.isArray(I))for(let _ of I)_&&this.checkLVal(_,O,i,s,n,v,!0);else I&&this.checkLVal(I,O,i,s,n,v,o)}checkIdentifier(t,r,i=!1){this.state.strict&&(i?$d(t.name,this.inModule):Wd(t.name))&&(r===64?this.raise(b.StrictEvalArguments,t,{referenceName:t.name}):this.raise(b.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(b.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(b.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?b.RestTrailingComma:b.ElementAfterRest,this.state.startLoc),!0):!1}},xu=/in(?:stanceof)?|as|satisfies/y;function T6(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function Bd(e){if(!e)throw new Error("Assert fail")}var Z=nr`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function S6(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Fd(e){return e==="private"||e==="public"||e==="protected"}function g6(e){return e==="in"||e==="out"}var x6=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Z.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Z.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Z.InvalidModifierOnTypeParameter})}getScopeHandler(){return Iu}tsIsIdentifier(){return Le(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!Le(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(r.includes(n)){if(s&&this.match(106)||i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:n=Z.InvalidModifierOnTypeMember},a){let o=(u,f,g,E)=>{f===g&&a[E]&&this.raise(Z.InvalidModifiersOrder,u,{orderedModifiers:[g,E]})},l=(u,f,g,E)=>{(a[g]&&f===E||a[E]&&f===g)&&this.raise(Z.IncompatibleModifiers,u,{modifiers:[g,E]})};for(;;){let{startLoc:u}=this.state,f=this.tsParseModifier(r.concat(i??[]),s,a.static);if(!f)break;Fd(f)?a.accessibility?this.raise(Z.DuplicateAccessibilityModifier,u,{modifier:f}):(o(u,f,f,"override"),o(u,f,f,"static"),o(u,f,f,"readonly"),a.accessibility=f):g6(f)?(a[f]&&this.raise(Z.DuplicateModifier,u,{modifier:f}),a[f]=!0,o(u,f,"in","out")):(hasOwnProperty.call(a,f)?this.raise(Z.DuplicateModifier,u,{modifier:f}):(o(u,f,"static","readonly"),o(u,f,"static","override"),o(u,f,"override","readonly"),o(u,f,"abstract","override"),l(u,f,"declare","override"),l(u,f,"static","abstract")),a[f]=!0),i!=null&&i.includes(f)&&this.raise(n,u,{modifier:f})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return T6(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=o),a}tsParseBracketedList(r,i,s,n,a){n||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(Z.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let s=this.state.type;Le(s)||s===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),i=this.finishNode(s,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(Z.EmptyTypeParameters,i),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,n="parameters",a="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[n]=this.tsParseBindingListForSignature(),s?i[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(Z.UnsupportedSignatureParameterKind,i,{type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Le(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(Z.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(Z.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let n="parameters",a="typeAnnotation";if(s.kind==="get")s[n].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(Z.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[n].length!==1)this.raise(b.BadSetterArity,this.state.curPosition());else{let o=s[n][0];this.isThisParam(o)&&this.raise(Z.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(Z.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(Z.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(Z.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;i&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(i,"TSTypeParameter"),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(Z.OptionalTypeBeforeRequired,s),i||(i=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,i=this.eat(21),{startLoc:s}=this.state,n,a,o,l,f=$t(this.state.type)?this.lookaheadCharCode():null;if(f===58)n=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(f===63){o=!0;let g=this.state.value,E=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,a=this.createIdentifier(this.startNodeAt(s),g),this.expect(17),this.expect(14),l=this.tsParseType()):(n=!1,l=E,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let g;a?(g=this.startNodeAt(s),g.optional=o,g.label=a,g.elementType=l,this.eat(17)&&(g.optional=!0,this.raise(Z.TupleOptionalAfterType,this.state.lastTokStartLoc))):(g=this.startNodeAt(s),g.optional=o,this.raise(Z.InvalidTupleMemberLabel,l),g.label=l,g.elementType=this.tsParseType()),l=this.finishNode(g,"TSNamedTupleMember")}else if(o){let g=this.startNodeAt(s);g.typeAnnotation=l,l=this.finishNode(g,"TSOptionalType")}if(i){let g=this.startNodeAt(r);g.typeAnnotation=l,l=this.finishNode(g,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Le(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":S6(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(r);s.elementType=i,this.expect(3),i=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(r);s.objectType=i,s.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(s,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Z.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return q8(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),a=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!a?o[0]:(n.types=o,this.finishNode(n,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Le(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),i.typeAnnotation=l,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Le(this.state.type)&&!this.match(78)?!1:(r&&this.raise(b.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){Bd(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Z.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();return n.expression=this.tsParseEntityName(3),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")});return s.length||this.raise(Z.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),Le(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(Z.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==_e.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(Z.ImportAliasHasImportType,n),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(Z.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(Z.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(Le(i))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,i,s,n){switch(i){case 124:if(this.tsCheckLineTerminator(s)&&(this.match(80)||Le(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(Le(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(s)&&Le(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(s)&&Le(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(Z.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===_e.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return U8(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let s=i.length?i[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,o=n.override,l=n.readonly;!(r&4)&&(a||l||o)&&this.raise(Z.UnexpectedParameterModifier,s);let u=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(u);let f=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let g=this.startNodeAt(s);return i.length&&(g.decorators=i),a&&(g.accessibility=a),l&&(g.readonly=l),o&&(g.override=o),f.type!=="Identifier"&&f.type!=="AssignmentPattern"&&this.raise(Z.UnsupportedParameterPropertyKind,g),g.parameter=f,this.finishNode(g,"TSParameterProperty")}return i.length&&(u.decorators=i),f}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(Z.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Z.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,n,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(Z.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let E=this.tsTryParseGenericAsyncArrowFunction(i);if(E)return n.stop=!0,E}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Rn(this.state.type)){let E=super.parseTaggedTemplateExpression(r,i,n);return E.typeParameters=u,E}if(!s&&this.eat(10)){let E=this.startNodeAt(i);return E.callee=r,E.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(E.arguments),E.typeParameters=u,n.optionalChainMember&&(E.optional=a),this.finishCallExpression(E,n.optionalChainMember)}let f=this.state.type;if(f===48||f===52||f!==10&&f!==93&&f!==120&&bs(f)&&!this.hasPrecedingLineBreak())return;let g=this.startNodeAt(i);return g.expression=r,g.typeParameters=u,this.finishNode(g,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Z.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(r,n))),l}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!((i=s.extra)!=null&&i.parenthesized)&&(r.typeParameters=s.typeParameters,r.callee=s.expression)}parseExprOp(r,i,s){let n;if(Bn(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(i);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,n){this.state.isAmbientContext||super.checkReservedWord(r,i,s,n)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(Z.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(Le(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Z.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=r;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,i,s||n);if(!n)return a;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(Z.UsingDeclarationInAmbientContext,r,i),a;for(let{id:o,init:l}of a.declarations)l&&(i==="var"||i==="let"||o.typeAnnotation?this.raise(Z.InitializerNotAllowedInAmbientContext,l):E6(l,this.hasPlugin("estree"))||this.raise(Z.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return a}parseStatementContent(r,i){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let s=this.state.type,n=this.startNode();this.next();let a=s===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,i);return a?(s===125&&(a.declare=!0),a):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),s===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,127,!1,i)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,128,!1,i)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(s)}break}}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>Fd(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Z.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(Z.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,i,s,n){let a=this.tsTryParseIndexSignature(i);if(a){r.body.push(a),i.abstract&&this.raise(Z.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(Z.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(Z.IndexSignatureHasDeclare,i),i.override&&this.raise(Z.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(Z.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(Z.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(Z.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(Z.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,i,s)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Z.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=Le(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(Z.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(Z.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(Z.PrivateElementHasAbstract,r),r.accessibility&&this.raise(Z.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(Z.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(Z.ConstructorHasTypeParameters,l);let{declare:u=!1,kind:f}=i;u&&(f==="get"||f==="set")&&this.raise(Z.DeclareAccessor,i,{kind:f}),l&&(i.typeParameters=l),super.pushClassMethod(r,i,s,n,a,o)}pushClassPrivateMethod(r,i,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(i.typeParameters=a),super.pushClassPrivateMethod(r,i,s,n)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass)if(r.superClass.type==="TSInstantiationExpression"){let i=r.superClass,s=i.expression;this.takeSurroundingComments(s,s.start,s.end);let n=i.typeParameters;this.takeSurroundingComments(n,n.start,n.end),r.superClass=s,r.superTypeParameters=n}else(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,n,a,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(r.typeParameters=u),super.parseObjPropValue(r,i,s,n,a,o,l)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,a,o,l;let u,f,g;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(u=this.state.clone(),f=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!f.error)return f.node;let{context:v}=this.state,O=v[v.length-1];(O===_e.j_oTag||O===_e.j_expr)&&v.pop()}if(!((s=f)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!u||u===this.state)&&(u=this.state.clone());let E,A=this.tryParse(v=>{var O,I;E=this.tsParseTypeParameters(this.tsParseConstModifier);let _=super.parseMaybeAssign(r,i);return(_.type!=="ArrowFunctionExpression"||(O=_.extra)!=null&&O.parenthesized)&&v(),((I=E)==null?void 0:I.params.length)!==0&&this.resetStartLocationFromNode(_,E),_.typeParameters=E,_},u);if(!A.error&&!A.aborted)return E&&this.reportReservedArrowTypeParam(E),A.node;if(!f&&(Bd(!this.hasPlugin("jsx")),g=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!g.error))return g.node;if((n=f)!=null&&n.node)return this.state=f.failState,f.node;if(A.node)return this.state=A.failState,E&&this.reportReservedArrowTypeParam(E),A.node;if((a=g)!=null&&a.node)return this.state=g.failState,g.node;throw((o=f)==null?void 0:o.error)||A.error||((l=g)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var i;r.params.length===1&&!r.params[0].constraint&&!((i=r.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Z.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(Z.UnexpectedTypeCastInParameter,r):this.raise(Z.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s,n){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(n!==64||!s)&&["expression",!0];default:return super.isValidLVal(r,i,s,n)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(r,i);return n.typeParameters=s,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(Z.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableListItem(r,i,s){let n=r[i];n.type==="TSTypeCastExpression"&&(r[i]=this.typeCastToParameter(n)),super.toAssignableListItem(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(Z.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,i,s,n,a,o,l){let u=super.parseMethod(r,i,s,n,a,o,l);if((u.abstract||u.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?u.value:u).body){let{key:E}=u;this.raise(Z.AbstractMethodHasImplementation,u,{methodName:E.type==="Identifier"&&!u.computed?E.name:`[${this.input.slice(this.offsetToSourcePos(E.start),this.offsetToSourcePos(E.end))}]`})}return u}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,a){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",a=i?"local":"exported",o=r[n],l,u=!1,f=!0,g=o.loc.start;if(this.isContextual(93)){let A=this.parseIdentifier();if(this.isContextual(93)){let v=this.parseIdentifier();$t(this.state.type)?(u=!0,o=A,l=i?this.parseIdentifier():this.parseModuleExportName(),f=!1):(l=v,f=!1)}else $t(this.state.type)?(f=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=A)}else $t(this.state.type)&&(u=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&s&&this.raise(i?Z.TypeModifierIsUsedInTypeImports:Z.TypeModifierIsUsedInTypeExports,g),r[n]=o,r[a]=l;let E=i?"importKind":"exportKind";r[E]=u?"type":"value",f&&this.eatContextual(93)&&(r[a]=i?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=this.cloneIdentifier(r[n])),i&&this.checkIdentifier(r[a],u?4098:4096)}fillOptionalPropertiesForTSESLint(r){var i,s,n,a,o,l,u,f,g,E,A,v,O,I,_,L,te,W,X,ce,we,je,tt,Pt,At,Nt,Dt,Qt,qr,fr,$,q,k,H,le,ge,Me,Ie,Re,De,Be,qe,Ye,Ee,Ke,He,ht,dt;switch(r.type){case"ExpressionStatement":(i=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(s=r.decorators)!=null||(r.decorators=[]),(n=r.optional)!=null||(r.optional=!1),(a=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(o=r.accessibility)!=null||(r.accessibility=void 0),(l=r.decorators)!=null||(r.decorators=[]),(u=r.override)!=null||(r.override=!1),(f=r.readonly)!=null||(r.readonly=!1),(g=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(E=r.declare)!=null||(r.declare=!1),(A=r.returnType)!=null||(r.returnType=void 0),(v=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(O=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(I=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(_=r.accessibility)!=null||(r.accessibility=void 0),(L=r.readonly)!=null||(r.readonly=!1),(te=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(W=r.declare)!=null||(r.declare=!1),(X=r.definite)!=null||(r.definite=!1),(ce=r.readonly)!=null||(r.readonly=!1),(we=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(je=r.accessibility)!=null||(r.accessibility=void 0),(tt=r.decorators)!=null||(r.decorators=[]),(Pt=r.override)!=null||(r.override=!1),(At=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(Nt=r.id)!=null||(r.id=null);case"ClassDeclaration":(Dt=r.abstract)!=null||(r.abstract=!1),(Qt=r.declare)!=null||(r.declare=!1),(qr=r.decorators)!=null||(r.decorators=[]),(fr=r.implements)!=null||(r.implements=[]),($=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(q=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(k=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(H=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(le=r.const)!=null||(r.const=!1),(ge=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(Me=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(Ie=r.qualifier)!=null||(r.qualifier=null),(Re=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(De=r.declare)!=null||(r.declare=!1),(Be=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(qe=r.optional)!=null||(r.optional=!1),(Ye=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(Ee=r.declare)!=null||(r.declare=!1),(Ke=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(He=r.const)!=null||(r.const=!1),(ht=r.in)!=null||(r.in=!1),(dt=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,i){if(ar(r)){if(xu.lastIndex=i,xu.test(this.input)){let s=this.codePointAtPos(xu.lastIndex);if(!ti(s)&&s!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(i,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifier(i,r)||i===34||i===39}};function b6(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:em(e.object)}function E6(e,t){var r;let{type:i}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(i==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(Zd(e,t)||P6(e,t)||i==="TemplateLiteral"&&e.expressions.length===0||b6(e))}function Zd(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function P6(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:i}=e;if(r==="-"&&Zd(i,t))return!0}return!1}function em(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:em(e.object)}var jd=nr`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),A6=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s,n){return r==="Placeholder"||super.isValidLVal(r,i,s,n)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(r,i){var s;((s=r.label)==null?void 0:s.type)!=="Placeholder"&&super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){var s;if(i.type!=="Placeholder"||(s=i.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(i,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=r;return n.name=i.name,this.finishPlaceholder(n,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let n=i?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,n);throw this.raise(jd.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,n)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);let n=r;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(Mr(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(jd.UnexpectedSpace,this.state.lastTokEndLoc)}},v6=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),Le(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(i,s);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},Rd=["minimal","fsharp","hack","smart"],qd=["^^","@@","^","%","#"];function C6(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let i=e.get("decorators").decoratorsBeforeExport;if(i!=null&&typeof i!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=e.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let i=e.get("pipelineOperator").proposal;if(!Rd.includes(i)){let s=Rd.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(i==="hack"){var r;if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=e.get("pipelineOperator").topicToken;if(!qd.includes(s)){let n=qd.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}if(s==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(i==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(e.has("deprecatedImportAssert")||e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){let i=e.get("recordAndTuple").syntaxType;if(i!=null){let s=["hash","bar"];if(!s.includes(i))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(n=>`'${n}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let i=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw i.missingPlugins="doExpressions",i}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var tm={estree:_8,jsx:l6,flow:s6,typescript:x6,v8intrinsic:v6,placeholders:A6},I6=Object.keys(tm),Ku=class extends Uu{checkProto(t,r,i,s){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return i;let n=t.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?r?(this.raise(b.RecordNoProto,n),!0):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(b.DuplicateProto,n)),!0):i}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(b.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(b.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,i=this.parseMaybeAssign(t);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let i=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let l=this.parseYield(i);return r&&(l=r.call(this,l,i)),l}let n;t?n=!1:(t=new Oi,n=!0);let{type:a}=this.state;(a===10||Le(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,i)),M8(this.state.type)){let l=this.startNodeAt(i),u=this.state.value;if(l.operator=u,this.match(29)){this.toAssignable(o,!0),l.left=o;let f=i.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=f&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=f&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=f&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=f&&(t.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression"),void 0,void 0,void 0,void 0,u==="||="||u==="&&="||u==="??="),l}else n&&this.checkExpressionErrors(t,!0);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?bs(l):bs(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(b.YieldNotInGeneratorFunction,i),this.parseYield(i)}return o}parseMaybeConditional(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,t)}parseConditional(t,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(t,r,i){if(this.isPrivateName(t)){let n=this.getPrivateNameSV(t);(i>=Bn(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(b.PrivateInExpectedIn,t,{identifierName:n}),this.classScope.usePrivateName(n,t.loc.start)}let s=this.state.type;if(F8(s)&&(this.prodParam.hasIn||!this.match(58))){let n=Bn(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(n=Bn(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(b.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let u=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),f=this.state.type;if(l&&(f===41||f===42)||o&&f===40)throw this.raise(b.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,r,i)}}return t}parseExprOpRightExpr(t,r){let i=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(b.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),i)});default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,K8(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return P8.has(i.type)&&!((t=i.extra)!=null&&t.parenthesized)&&this.raise(b.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipeTopicUnused,r),i}checkExponentialAfterUnary(t){this.match(57)&&this.raise(b.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let l=this.parseAwait(i);return r||this.checkExponentialAfterUnary(l),l}let n=this.match(34),a=this.startNode();if(R8(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&l){let u=a.argument;u.type==="Identifier"?this.raise(b.StrictDelete,a):this.hasPropertyAsPrivateName(u)&&this.raise(b.DeletePrivateField,a)}if(!n)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,n,t);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?bs(l):bs(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(b.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(t,r,i){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;j8(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(t,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return t}parseSubscript(t,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(t,r,i,s);if(Rn(n))return this.parseTaggedTemplateExpression(t,r,s);let a=!1;if(n===18){if(i&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,s);s.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,s,o,a):this.stopParseSubscript(t,s)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,i,s,n){let a=this.startNodeAt(r);return a.object=t,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(b.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,i,s){let n=this.startNodeAt(r);return n.object=t,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(t,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:u}=i;l&&(this.expressionScope.enter(y6()),a=new Oi),u&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,a);let f=this.finishCallExpression(o,u);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),f)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(f)),this.state.maybeInArrowParameters=n,f}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,i){let s=this.startNodeAt(r);return s.tag=t,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(b.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(b.ImportCallArity,t);else for(let i of t.arguments)i.type==="SpreadElement"&&this.raise(b.ImportCallSpreadArgument,i);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,i){let s=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,i,t))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&Cs(t,r.innerComments),r.callee.trailingComments&&Cs(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(b.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(b.UnsupportedBind,n)}case 139:return this.raise(b.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);throw this.unexpected()}case 47:{let n=this.input.codePointAt(this.nextTokenStart());throw ar(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(Le(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Le(l))return n&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=xt(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,t,s)}finishTopicReference(t,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s))return i==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(b.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(b.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(b.PipeTopicUnconfiguredToken,r,{token:Mr(s)})}testTopicReferenceConfiguration(t,r,i){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Mr(i)}]);case"smart":return i===27;default:throw this.raise(b.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Fn(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(b.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=i,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(b.SuperNotAllowed,t):this.scope.allowSuper||this.optionFlags&16||this.raise(b.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(b.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(xt(this.state.startLoc,1)),i=this.state.value;return this.next(),t.id=this.createIdentifier(r,i),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,i){t.meta=r;let s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==i||s)&&this.raise(b.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(b.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,i){return this.addExtra(i,"rawValue",t),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=t,this.next(),this.finishNode(i,r)}parseLiteral(t,r){let i=this.startNode();return this.parseLiteralAtNode(t,r,i)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(m6());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new Oi,u=!0,f,g;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){g=this.state.startLoc;break}if(this.match(21)){let v=this.state.startLoc;if(f=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),v)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,l,this.parseParenItem))}let E=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let A=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(A=this.parseArrow(A))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(A,o,!1),A):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),g&&this.unexpected(g),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,E)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(t);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let i=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(b.UnexpectedNewTarget,i),i}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),i=this.parseNoCallExpr();t.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(b.ImportCallNotNewExpression,i)}parseTemplateElement(t){let{start:r,startLoc:i,end:s,value:n}=this.state,a=r+1,o=this.startNodeAt(xt(i,1));n===null&&(t||this.raise(b.InvalidEscapeSequenceTemplate,xt(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),u=l?-1:-2,f=s+u;o.value={raw:this.input.slice(a,f).replace(/\r\n?/g,`
|
|
23
|
-
`),cooked:n===null?null:n.slice(1,u)},o.tail=l,this.next();let g=this.finishNode(o,"TemplateElement");return this.resetEndLocation(g,xt(this.state.lastTokEndLoc,u)),g}parseTemplate(t){let r=this.startNode(),i=this.parseTemplateElement(t),s=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(t));return r.expressions=n,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let f;r?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(s),a=this.checkProto(f,i,a,s)),i&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(b.InvalidRecordProperty,f),f.shorthand&&this.addExtra(f,"shorthand",!0),l.properties.push(f)}this.next(),this.state.inFSharpPipelineDirectBody=n;let u="ObjectExpression";return r?u="ObjectPattern":i&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(b.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc;if(this.parsePropertyName(i,t),!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let{key:u}=i,f=u.name;f==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(i)),(f==="get"||f==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(u),i.kind=f,this.match(55)&&(o=!0,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:f}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,s,!1,n,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let i=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==i&&this.raise(t.kind==="get"?b.BadGetterArity:b.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(b.BadSetterRestParameter,t)}parseObjectMethod(t,r,i,s,n){if(n){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,i,s){if(t.shorthand=!1,this.eat(14))return t.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),i)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(b.InvalidCoverInitializedName,n),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,i,s,n,a,o){let l=this.parseObjectMethod(t,i,s,n,a)||this.parseObjectProperty(t,r,n,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if($t(i))n=this.parseIdentifier(!0);else switch(i){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(b.UnexpectedPrivateField,a),n=this.parsePrivateName();break}default:if(i===137){n=this.parseDecimalLiteral(s);break}this.unexpected()}t.key=n,i!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,i,s,n,a,o=!1){this.initFunction(t,i),t.generator=r,this.scope.enter(530|(o?576:0)|(n?32:0)),this.prodParam.enter(Fn(i,t.generator)),this.parseFunctionParams(t,s);let l=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,i){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!r,i,n),this.state.inFSharpPipelineDirectBody=s,this.finishNode(n,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,i,s){this.scope.enter(518);let n=Fn(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(t,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,i){this.toAssignableList(r,i,!1),t.params=r}parseFunctionBodyAndFinish(t,r,i=!1){return this.parseFunctionBody(t,!1,i),this.finishNode(t,r)}parseFunctionBody(t,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(Qd()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(t.params);o&&l&&this.raise(b.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let u=!n&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!i&&!l,r,u),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,u)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,i=t.length;r<i;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,i,s=!0){let n=!r&&new Set,a={type:"FormalParameters"};for(let o of t.params)this.checkLVal(o,a,5,n,s)}parseExprList(t,r,i,s){let n=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(t,r,i))}return n}parseExprListItem(t,r,i,s){let n;if(this.match(12))r||this.raise(b.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let a=this.state.startLoc;n=this.parseParenItem(this.parseSpread(i),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(b.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),n=this.finishNode(a,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(t,i,this.parseParenItem);return n}parseIdentifier(t){let r=this.startNode(),i=this.parseIdentifierName(t);return this.createIdentifier(r,i)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}createIdentifierAt(t,r,i){return t.name=r,t.loc.identifierName=r,this.finishNodeAt(t,"Identifier",i)}parseIdentifierName(t){let r,{startLoc:i,type:s}=this.state;$t(s)?r=this.state.value:this.unexpected();let n=k8(s);return t?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(t,r,i,s){if(t.length>10||!Q8(t))return;if(i&&H8(t)){this.raise(b.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?s?$d:Xd:Yd)(t,this.inModule)){this.raise(b.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(b.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(b.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(b.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(b.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(b.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(b.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Rn(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(b.YieldInParameter,r);let i=!1,s=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:s=this.parseMaybeAssign()}return r.delegate=i,r.argument=s,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(b.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(b.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let i=this.startNodeAt(r);return i.callee=t,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=t,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(b.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,i){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(t===3?93:t===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(t){}},bu={kind:1},w6={kind:2},N6=/[\uD800-\uDFFF]/u,Eu=/in(?:stanceof)?/y;function _6(e,t,r){for(let i=0;i<e.length;i++){let s=e[i],{type:n}=s;if(typeof n=="number"){if(n===139){let{loc:a,start:o,value:l,end:u}=s,f=o+1,g=xt(a.start,1);e.splice(i,1,new sr({type:gr(27),value:"#",start:o,end:f,startLoc:a.start,endLoc:g}),new sr({type:gr(132),value:l,start:f,end:u,startLoc:g,endLoc:a.end})),i++;continue}if(Rn(n)){let{loc:a,start:o,value:l,end:u}=s,f=o+1,g=xt(a.start,1),E;t.charCodeAt(o-r)===96?E=new sr({type:gr(22),value:"`",start:o,end:f,startLoc:a.start,endLoc:g}):E=new sr({type:gr(8),value:"}",start:o,end:f,startLoc:a.start,endLoc:g});let A,v,O,I;n===24?(v=u-1,O=xt(a.end,-1),A=l===null?null:l.slice(1,-1),I=new sr({type:gr(22),value:"`",start:v,end:u,startLoc:O,endLoc:a.end})):(v=u-2,O=xt(a.end,-2),A=l===null?null:l.slice(1,-2),I=new sr({type:gr(23),value:"${",start:v,end:u,startLoc:O,endLoc:a.end})),e.splice(i,1,E,new sr({type:gr(20),value:A,start:f,end:v,startLoc:g,endLoc:O}),I),i+=2;continue}s.type=gr(n)}}return e}var Vu=class extends Ku{parseTopLevel(t,r){return t.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),t.comments=this.comments,this.optionFlags&256&&(t.tokens=_6(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,r,i){if(t.sourceType=i,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(b.ModuleExportUndefined,a,{localName:n});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(t,"Program"):s=this.finishNodeAt(t,"Program",xt(this.state.startLoc,-1)),s}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),i=this.castNodeTo(t.expression,"DirectiveLiteral"),s=i.value,n=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),a=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",a),this.addExtra(i,"expressionValue",s),r.value=i,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let i=this.lookaheadCharCodeSince(t+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(ar(t)){if(Eu.lastIndex=r,Eu.test(this.input)){let i=this.codePointAtPos(Eu.lastIndex);if(!ti(i)&&i!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let i=this.state.type,s=this.startNode(),n=!!(t&2),a=!!(t&4),o=t&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?b.StrictFunction:this.options.annexB?b.SloppyFunctionAnnexB:b.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,s):this.raise(b.UnexpectedLexicalDeclaration,s):this.raise(b.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(b.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let f=this.nextTokenStart(),g=this.codePointAtPos(f);if(g!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(g,f)&&g!==123))break}case 75:n||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let f=this.state.value;return this.parseVarStatement(s,f)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let f=this.lookaheadCharCode();if(f===40||f===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(b.UnexpectedImportExport,this.state.startLoc),this.next();let f;return i===83?f=this.parseImport(s):f=this.parseExport(s,r),this.assertModuleNodeAllowed(f),f}default:if(this.isAsyncFunction())return n||this.raise(b.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let l=this.state.value,u=this.parseExpression();return Le(i)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,t):this.parseExpressionStatement(s,u,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(b.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,i){if(t){var s;(s=r.decorators)!=null&&s.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(b.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),i&&this.resetStartLocationFromNode(i,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(b.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(b.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let n=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(i,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==i&&this.raise(b.DecoratorArgumentsOutsideParentheses,n)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(i,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=t,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((t.label==null||s.name===t.label.name)&&(s.kind!=null&&(r||s.kind===1)||t.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(b.IllegalBreakContinue,t,{type:s})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(bu),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(bu);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let i=this.isContextual(100);{let l=this.isAwaitUsing(),u=l||this.isForUsing(),f=i&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||f){let g=this.startNode(),E;l?(E="await using",this.recordAwaitIfAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):E=this.state.value,this.next(),this.parseVar(g,!0,E);let A=this.finishNode(g,"VariableDeclaration"),v=this.match(58);return v&&u&&this.raise(b.ForInUsing,A),(v||this.isContextual(102))&&A.declarations.length===1?this.parseForIn(t,A,r):(r!==null&&this.unexpected(r),this.parseFor(t,A))}}let s=this.isContextual(95),n=new Oi,a=this.parseExpression(!0,n),o=this.isContextual(102);if(o&&(i&&this.raise(b.ForOfLet,a),r===null&&s&&a.type==="Identifier"&&this.raise(b.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:l}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,i){return this.next(),this.parseFunction(t,1|(i?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(b.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(w6),this.scope.enter(256);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),n?i.test=this.parseExpression():(s&&this.raise(b.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(b.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(b.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,i=!1){return this.next(),this.parseVar(t,!1,r,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(bu),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(b.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,i,s){for(let a of this.state.labels)a.name===r&&this.raise(b.LabelRedeclaration,i,{labelName:r});let n=B8(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=n;else break}return this.state.labels.push({name:r,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,i){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,i){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,i,s,n){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,s,n)}parseBlockOrModuleBlockBody(t,r,i,s,n){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let u=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(u)){let f=this.stmtToDirective(u);r.push(f),!o&&f.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}t.push(u)}n?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):t.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(b.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(b.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,r,i,s=!1){let n=t.declarations=[];for(t.kind=i;;){let a=this.startNode();if(this.parseVarId(a,i),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!s&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(b.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(b.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=i}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(i&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Fn(a,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Le(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(d6()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,i),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:t},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(b.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let a=this.startNode();s.length&&(a.decorators=s,this.resetStartLocationFromNode(a,s[0]),s=[]),this.parseClassMember(n,a,i),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(b.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),s.length)throw this.raise(b.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(t,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(t,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,i,s)}parseClassMemberWithIsStatic(t,r,i,s){let n=r,a=r,o=r,l=r,u=r,f=n,g=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){f.kind="method";let _=this.match(139);if(this.parseClassElementName(f),this.parsePostMemberNameModifiers(f),_){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsGenerator,n.key),this.pushClassMethod(t,n,!0,!1,!1,!1);return}let E=!this.state.containsEsc&&Le(this.state.type),A=this.parseClassElementName(r),v=E?A.name:null,O=this.isPrivateName(A),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(g),this.isClassMethod()){if(f.kind="method",O){this.pushClassPrivateMethod(t,a,!1,!1);return}let _=this.isNonstaticConstructor(n),L=!1;_&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(b.DuplicateConstructor,A),_&&this.hasPlugin("typescript")&&r.override&&this.raise(b.OverrideOnConstructor,A),i.hadConstructor=!0,L=i.hadSuperClass),this.pushClassMethod(t,n,!1,!1,_,L)}else if(this.isClassProperty())O?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(v==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(A);let _=this.eat(55);g.optional&&this.unexpected(I),f.kind="method";let L=this.match(139);this.parseClassElementName(f),this.parsePostMemberNameModifiers(g),L?this.pushClassPrivateMethod(t,a,_,!0):(this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsAsync,n.key),this.pushClassMethod(t,n,_,!0,!1,!1))}else if((v==="get"||v==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(A),f.kind=v;let _=this.match(139);this.parseClassElementName(n),_?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsAccessor,n.key),this.pushClassMethod(t,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(v==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(A);let _=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,u,_)}else this.isLineTerminator()?O?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:i}=this.state;if((r===132||r===134)&&t.static&&i==="prototype"&&this.raise(b.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(b.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return t.key=s,s}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var i;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(b.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(b.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let i=this.parseClassPrivateProperty(r);t.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(t,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(b.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);t.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,r,i,s,n,a){t.body.push(this.parseMethod(r,i,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(n);let a=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(Qd()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,i,s=8331){if(Le(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,s);else if(i||!r)t.id=null;else throw this.raise(b.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let i=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,i),n=!s||this.eat(12),a=n&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),l=n&&(!o||this.eat(12)),u=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(b.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let f=this.maybeParseExportNamedSpecifiers(t);s&&n&&!a&&!f&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let g;if(u||f){if(g=!1,r)throw this.raise(b.UnsupportedDecoratorExport,t);this.parseExportFrom(t,u)}else g=this.maybeParseExportDeclaration(t);if(u||f||g){var E;let A=t;if(this.checkExport(A,!0,!1,!!A.source),((E=A.declaration)==null?void 0:E.type)==="ClassDeclaration")this.maybeTakeDecorators(r,A.declaration,A);else if(r)throw this.raise(b.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(A,"ExportNamedDeclaration")}if(this.eat(65)){let A=t,v=this.parseExportDefaultExpression();if(A.declaration=v,v.type==="ClassDeclaration")this.maybeTakeDecorators(r,v,A);else if(r)throw this.raise(b.UnsupportedDecoratorExport,t);return this.checkExport(A,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(A,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,i;(i=(r=t).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(b.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Le(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),n=this.input.charCodeAt(s);if(n===123||this.chStartsBindingIdentifier(n,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Le(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(b.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(b.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,i,s){if(r){var n;if(i){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(b.ExportDefaultFromAsIdentifier,o)}}else if((n=t.specifiers)!=null&&n.length)for(let o of t.specifiers){let{exported:l}=o,u=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,u),!s&&o.local){let{local:f}=o;f.type!=="Identifier"?this.raise(b.ExportBindingIsString,o,{localName:f.value,exportName:u}):(this.checkReservedWord(f.name,f.loc.start,!0,!1),this.scope.checkLocalExport(f))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(t,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(b.DuplicateDefaultExport,t):this.raise(b.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,n,t,s))}return r}parseExportSpecifier(t,r,i,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=N6.exec(t.value);return r&&this.raise(b.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,i=r.length===1?r[0].type:null;if(t.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(b.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(b.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(b.ImportReflectionNotBinding,r[0].loc.start),((s=t.assertions)==null?void 0:s.length)>0&&this.raise(b.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let i=r.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});i!==void 0&&this.raise(b.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let i=this.startNode(),s=this.parseIdentifierName(!0),{type:n}=this.state;return($t(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(t,r,s,i.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(i,s))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Le(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(t);return s&&!n&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,i){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(t,r,i=8201){return this.checkLVal(t.local,{type:r},i),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(b.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(b.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(b.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(b.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!i&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,t.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if($t(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(b.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(134),n=this.isContextual(130);i.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(i,s,t.importKind==="type"||t.importKind==="typeof",n,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,i,s,n){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(b.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(t,"ImportSpecifier",n)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Un=class extends Vu{constructor(t,r,i){let s=w8(t);super(s,r),this.options=s,this.initializeScopes(),this.plugins=i,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let n=0;s.allowAwaitOutsideFunction&&(n|=1),s.allowReturnOutsideFunction&&(n|=2),s.allowImportExportEverywhere&&(n|=8),s.allowSuperOutsideMethod&&(n|=16),s.allowUndeclaredExports&&(n|=64),s.allowNewTargetOutsideFunction&&(n|=4),s.allowYieldOutsideFunction&&(n|=32),s.ranges&&(n|=128),s.tokens&&(n|=256),s.createImportExpressions&&(n|=512),s.createParenthesizedExpressions&&(n|=1024),s.errorRecovery&&(n|=2048),s.attachComment&&(n|=4096),s.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return vs}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let i=this.parseTopLevel(t,r);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}};function O6(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let i=Es(t,e),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",Es(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return t.sourceType="script",Es(t,e).parse()}catch{}throw i}}else return Es(t,e).parse()}function D6(e,t){let r=Es(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function k6(e){let t={};for(let r of Object.keys(e))t[r]=gr(e[r]);return t}var L6=k6(D8);function Es(e,t){let r=Un,i=new Map;if(e!=null&&e.plugins){for(let s of e.plugins){let n,a;typeof s=="string"?n=s:[n,a]=s,i.has(n)||i.set(n,a||{})}C6(i),r=M6(i)}return new r(e,t,i)}var Ud=new Map;function M6(e){let t=[];for(let s of I6)e.has(s)&&t.push(s);let r=t.join("|"),i=Ud.get(r);if(!i){i=Un;for(let s of t)i=tm[s](i);Ud.set(r,i)}return i}Is.parse=O6;Is.parseExpression=D6;Is.tokTypes=L6});var Zu=w(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.Var=Se.User=Se.Statement=Se.SpreadProperty=Se.Scope=Se.RestProperty=Se.ReferencedMemberExpression=Se.ReferencedIdentifier=Se.Referenced=Se.Pure=Se.NumericLiteralTypeAnnotation=Se.Generated=Se.ForAwaitStatement=Se.Flow=Se.Expression=Se.ExistentialTypeParam=Se.BlockScoped=Se.BindingIdentifier=void 0;var fee=Se.ReferencedIdentifier=["Identifier","JSXIdentifier"],hee=Se.ReferencedMemberExpression=["MemberExpression"],dee=Se.BindingIdentifier=["Identifier"],mee=Se.Statement=["Statement"],yee=Se.Expression=["Expression"],Tee=Se.Scope=["Scopable","Pattern"],See=Se.Referenced=null,gee=Se.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],xee=Se.Var=["VariableDeclaration"],bee=Se.User=null,Eee=Se.Generated=null,Pee=Se.Pure=null,Aee=Se.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],vee=Se.RestProperty=["RestElement"],Cee=Se.SpreadProperty=["RestElement"],Iee=Se.ExistentialTypeParam=["ExistsTypeAnnotation"],wee=Se.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],Nee=Se.ForAwaitStatement=["ForOfStatement"]});var im=w((Oee,rm)=>{"use strict";var Mi=1e3,Bi=Mi*60,Fi=Bi*60,ri=Fi*24,B6=ri*7,F6=ri*365.25;rm.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return j6(e);if(r==="number"&&isFinite(e))return t.long?q6(e):R6(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function j6(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*F6;case"weeks":case"week":case"w":return r*B6;case"days":case"day":case"d":return r*ri;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Fi;case"minutes":case"minute":case"mins":case"min":case"m":return r*Bi;case"seconds":case"second":case"secs":case"sec":case"s":return r*Mi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function R6(e){var t=Math.abs(e);return t>=ri?Math.round(e/ri)+"d":t>=Fi?Math.round(e/Fi)+"h":t>=Bi?Math.round(e/Bi)+"m":t>=Mi?Math.round(e/Mi)+"s":e+"ms"}function q6(e){var t=Math.abs(e);return t>=ri?Vn(e,t,ri,"day"):t>=Fi?Vn(e,t,Fi,"hour"):t>=Bi?Vn(e,t,Bi,"minute"):t>=Mi?Vn(e,t,Mi,"second"):e+" ms"}function Vn(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}});var nm=w((Dee,sm)=>{"use strict";function U6(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=im(),r.destroy=u,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let g=0;for(let E=0;E<f.length;E++)g=(g<<5)-g+f.charCodeAt(E),g|=0;return r.colors[Math.abs(g)%r.colors.length]}r.selectColor=t;function r(f){let g,E=null,A,v;function O(...I){if(!O.enabled)return;let _=O,L=Number(new Date),te=L-(g||L);_.diff=te,_.prev=g,_.curr=L,g=L,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let W=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(ce,we)=>{if(ce==="%%")return"%";W++;let je=r.formatters[we];if(typeof je=="function"){let tt=I[W];ce=je.call(_,tt),I.splice(W,1),W--}return ce}),r.formatArgs.call(_,I),(_.log||r.log).apply(_,I)}return O.namespace=f,O.useColors=r.useColors(),O.color=r.selectColor(f),O.extend=i,O.destroy=r.destroy,Object.defineProperty(O,"enabled",{enumerable:!0,configurable:!1,get:()=>E!==null?E:(A!==r.namespaces&&(A=r.namespaces,v=r.enabled(f)),v),set:I=>{E=I}}),typeof r.init=="function"&&r.init(O),O}function i(f,g){let E=r(this.namespace+(typeof g>"u"?":":g)+f);return E.log=this.log,E}function s(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let g=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let E of g)E[0]==="-"?r.skips.push(E.slice(1)):r.names.push(E)}function n(f,g){let E=0,A=0,v=-1,O=0;for(;E<f.length;)if(A<g.length&&(g[A]===f[E]||g[A]==="*"))g[A]==="*"?(v=A,O=E,A++):(E++,A++);else if(v!==-1)A=v+1,O++,E=O;else return!1;for(;A<g.length&&g[A]==="*";)A++;return A===g.length}function a(){let f=[...r.names,...r.skips.map(g=>"-"+g)].join(",");return r.enable(""),f}function o(f){for(let g of r.skips)if(n(f,g))return!1;for(let g of r.names)if(n(f,g))return!0;return!1}function l(f){return f instanceof Error?f.stack||f.message:f}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}sm.exports=U6});var am=w((It,Jn)=>{"use strict";It.formatArgs=V6;It.save=J6;It.load=Y6;It.useColors=K6;It.storage=X6();It.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();It.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function K6(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function V6(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Jn.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),e.splice(i,0,t)}It.log=console.debug||console.log||(()=>{});function J6(e){try{e?It.storage.setItem("debug",e):It.storage.removeItem("debug")}catch{}}function Y6(){let e;try{e=It.storage.getItem("debug")||It.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function X6(){try{return localStorage}catch{}}Jn.exports=nm()(It);var{formatters:W6}=Jn.exports;W6.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var ec=w(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.isBindingIdentifier=y9;st.isBlockScoped=b9;st.isExpression=S9;st.isFlow=C9;st.isForAwaitStatement=N9;st.isGenerated=A9;st.isPure=v9;st.isReferenced=x9;st.isReferencedIdentifier=d9;st.isReferencedMemberExpression=m9;st.isRestProperty=I9;st.isScope=g9;st.isSpreadProperty=w9;st.isStatement=T9;st.isUser=P9;st.isVar=E9;var $6=he(),{isBinding:H6,isBlockScoped:z6,isExportDeclaration:G6,isExpression:Q6,isFlow:Z6,isForStatement:e9,isForXStatement:t9,isIdentifier:om,isImportDeclaration:r9,isImportSpecifier:i9,isJSXIdentifier:s9,isJSXMemberExpression:n9,isMemberExpression:a9,isRestElement:lm,isReferenced:Yn,isScope:o9,isStatement:l9,isVar:u9,isVariableDeclaration:c9,react:p9,isForOfStatement:f9}=$6,{isCompatTag:h9}=p9;function d9(e){let{node:t,parent:r}=this;return om(t,e)?Yn(t,r,this.parentPath.parent):s9(t,e)?!n9(r)&&h9(t.name)?!1:Yn(t,r,this.parentPath.parent):!1}function m9(){let{node:e,parent:t}=this;return a9(e)&&Yn(e,t)}function y9(){let{node:e,parent:t}=this,r=this.parentPath.parent;return om(e)&&H6(e,t,r)}function T9(){let{node:e,parent:t}=this;return l9(e)?!(c9(e)&&(t9(t,{left:e})||e9(t,{init:e}))):!1}function S9(){return this.isIdentifier()?this.isReferencedIdentifier():Q6(this.node)}function g9(){return o9(this.node,this.parent)}function x9(){return Yn(this.node,this.parent)}function b9(){return z6(this.node)}function E9(){return u9(this.node)}function P9(){var e;return!!((e=this.node)!=null&&e.loc)}function A9(){return!this.isUser()}function v9(e){return this.scope.isPure(this.node,e)}function C9(){let{node:e}=this;return Z6(e)?!0:r9(e)?e.importKind==="type"||e.importKind==="typeof":G6(e)?e.exportKind==="type":i9(e)?e.importKind==="type"||e.importKind==="typeof":!1}function I9(){var e;return lm(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function w9(){var e;return lm(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function N9(){return f9(this.node,{await:!0})}st.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};st.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var Ns=w(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.environmentVisitor=F9;si.explode=gm;si.isExplodedVisitor=Sm;si.merge=bm;si.verify=xm;var Tm=Zu(),_9=ec(),O9=he(),um=qt(),{DEPRECATED_KEYS:cm,DEPRECATED_ALIASES:pm,FLIPPED_ALIAS_KEYS:fm,TYPES:D9,__internal__deprecationWarning:hm}=O9;function k9(e){return e in Tm}function Sm(e){return e?._exploded}function gm(e){if(Sm(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(ii(r))continue;let i=r.split("|");if(i.length===1)continue;let s=e[r];delete e[r];for(let n of i)e[n]=s}xm(e),delete e.__esModule,L9(e),ym(e);for(let r of Object.keys(e)){if(ii(r)||!k9(r))continue;let i=e[r];for(let n of Object.keys(i))i[n]=M9(r,i[n]);delete e[r];let s=Tm[r];if(s!==null)for(let n of s){var t;(t=e[n])!=null||(e[n]={}),ws(e[n],i)}else ws(e,i)}for(let r of Object.keys(e)){if(ii(r))continue;let i=fm[r];if(r in cm){let n=cm[r];hm(r,n,"Visitor "),i=[n]}else if(r in pm){let n=pm[r];hm(r,n,"Visitor "),i=fm[n]}if(!i)continue;let s=e[r];delete e[r];for(let n of i){let a=e[n];a?ws(a,s):e[n]=Object.assign({},s)}}for(let r of Object.keys(e))ii(r)||ym(e[r]);return e}function xm(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&dm(t,e[t]),ii(t))continue;if(!D9.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.29.7`);let r=e[t];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")dm(`${t}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${i}`)}e._verified=!0}}function dm(e,t){let r=[].concat(t);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof i}`)}function bm(e,t=[],r){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let s=0;s<e.length;s++){let n=gm(e[s]),a=t[s],o=n;(a||r)&&(o=mm(o,a,r)),ws(i,o);for(let l of Object.keys(n)){if(ii(l))continue;let u=n[l];(a||r)&&(u=mm(u,a,r));let f=i[l]||(i[l]={});ws(f,u)}}return i}function mm(e,t,r){let i={};for(let s of["enter","exit"]){let n=e[s];Array.isArray(n)&&(n=n.map(function(a){let o=a;return t&&(o=function(l){a.call(t,l,t)}),r&&(o=r(t?.key,s,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[s]=n)}return i}function L9(e){for(let t of Object.keys(e)){if(ii(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function ym(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function M9(e,t){let r=`is${e}`,i=_9[r],s=function(n){if(i.call(n))return t.apply(this,arguments)};return s.toString=()=>t.toString(),s}function ii(e){return!!(e.startsWith("_")||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist")}function ws(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var B9={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():um.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():um.requeueComputedKeyAndDecorators.call(e))}};function F9(e){return bm([B9,e])}});var Em=w(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;var Xn=he(),j9=Xn,R9=$n(),q9=Ns(),U9=qt(),{getAssignmentIdentifiers:K9}=j9,V9={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():U9.requeueComputedKeyAndDecorators.call(e)),e.isSwitchStatement()&&e.context.maybeQueue(e.get("discriminant")))},ObjectProperty({node:e,scope:t},r){let{name:i}=e.key;if(e.shorthand&&(i===r.oldName||i===r.newName)&&t.getBindingIdentifier(i)===r.binding.identifier){var s;e.shorthand=!1,(s=e.extra)!=null&&s.shorthand&&(e.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?K9(e.node):e.getOuterBindingIdentifiers();for(let i in r)i===t.oldName&&(r[i].name=t.newName)}},tc=class{constructor(t,r,i){this.newName=i,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if(Xn.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:i}=this,{scope:s,path:n}=t,a=n.find(u=>u.isDeclaration()||u.isFunctionExpression()||u.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:!0};Xn.isMethod(o)&&(o.computed&&(l.key=!0),Xn.isObjectMethod(o)||(l.decorators=!0)),(0,R9.traverseNode)(o,(0,q9.explode)(V9),s,this,s.path,l),arguments[0]||(s.removeOwnBinding(r),s.bindings[i]=t,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};Wn.default=tc});var Pm=w(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.default=H9;var J9=he(),Y9=ji(),X9=Ns(),W9=qt(),{VISITOR_KEYS:$9}=J9;function H9(e,t,r){let i=(0,X9.explode)(t);if(i.enter||i.exit)throw new Error("Should not be used with enter/exit visitors.");s(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function s(n,a,o,l,u,f,g,E){if(!o)return;let A=E||Y9.NodePath.get({hub:g,parentPath:n,parent:a,container:l,listKey:f,key:u});W9._forceSetScope.call(A);let v=i[o.type];if(v!=null&&v.enter)for(let I of v.enter)I.call(r,A,r);if(A.shouldSkip)return;let O=$9[o.type];if(O!=null&&O.length){for(let I of O){let _=o[I];if(_)if(Array.isArray(_))for(let L=0;L<_.length;L++){let te=_[L];s(A,o,te,_,L,I)}else s(A,o,_,o,I,null)}if(v!=null&&v.exit)for(let I of v.exit)I.call(r,A,r)}}}});var Am=w(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.default=void 0;var ic=class{constructor({identifier:t,scope:r,path:i,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&z9(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};Hn.default=ic;function z9(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:i}=e;r;{parentPath:r,key:i}=r){if(r.isFunctionParent())return!1;if(i==="left"&&r.isForXStatement()||t&&i==="body"&&r.isLoop())return!0}return!1}});var ni=w(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.clear=Q9;Ot.clearPath=vm;Ot.clearScope=Cm;Ot.getCachedPaths=Z9;Ot.getOrCreateCachedPaths=e5;Ot.scope=Ot.path=void 0;var zn=Ot.path=new WeakMap,G9=Ot.scope=new WeakMap;function Q9(){vm(),Cm()}function vm(){Ot.path=zn=new WeakMap}function Cm(){Ot.scope=G9=new WeakMap}function Z9(e){let{parent:t,parentPath:r}=e;return zn.get(t)}function e5(e,t){let r=zn.get(e);return r||zn.set(e,r=new Map),r}});var Im=w((Ree,t5)=>{t5.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var wm=w((qee,r5)=>{r5.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var oc=w(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.default=void 0;var i5=Em(),jm=ji(),Uee=Pm(),s5=Am(),Rm=he(),qm=Rm,Nm=ni(),n5=Im(),a5=wm(),{assignmentExpression:o5,callExpression:_m,cloneNode:Om,getBindingIdentifiers:Um,identifier:oi,isArrayExpression:Km,isBinary:l5,isCallExpression:Dm,isClass:u5,isClassBody:c5,isClassDeclaration:p5,isExportAllDeclaration:Vm,isExportDefaultDeclaration:f5,isExportNamedDeclaration:sc,isFunctionDeclaration:h5,isIdentifier:ai,isImportDeclaration:nc,isLiteral:d5,isMemberExpression:m5,isMethod:y5,isModuleSpecifier:T5,isNullLiteral:S5,isObjectExpression:g5,isProperty:x5,isPureish:b5,isRegExpLiteral:E5,isSuper:P5,isTaggedTemplateExpression:A5,isTemplateLiteral:Jm,isThisExpression:km,isUnaryExpression:v5,isVariableDeclaration:C5,expressionStatement:I5,matchesPattern:Lm,memberExpression:ac,numericLiteral:w5,toIdentifier:N5,variableDeclaration:_5,variableDeclarator:O5,isObjectProperty:D5,isTopicReference:Mm,isMetaProperty:k5,isPrivateName:L5,isExportDeclaration:M5,buildUndefinedNode:B5,sequenceExpression:F5}=Rm;function Je(e,t){switch(e?.type){default:if(nc(e)||M5(e)){var r;if((Vm(e)||sc(e)||nc(e))&&e.source)Je(e.source,t);else if((sc(e)||nc(e))&&(r=e.specifiers)!=null&&r.length)for(let i of e.specifiers)Je(i,t);else(f5(e)||sc(e))&&e.declaration&&Je(e.declaration,t)}else T5(e)?Je(e.local,t):d5(e)&&!S5(e)&&!E5(e)&&!Jm(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Je(e.object,t),Je(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Je(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let i of e.properties)Je(i,t);break;case"SpreadElement":case"RestElement":Je(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Je(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),Je(e.argument,t);break;case"AwaitExpression":t.push("await"),Je(e.argument,t);break;case"AssignmentExpression":Je(e.left,t);break;case"VariableDeclarator":Je(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Je(e.id,t);break;case"PrivateName":Je(e.id,t);break;case"ParenthesizedExpression":Je(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Je(e.argument,t);break;case"MetaProperty":Je(e.meta,t),Je(e.property,t);break;case"JSXElement":Je(e.openingElement,t);break;case"JSXOpeningElement":Je(e.name,t);break;case"JSXFragment":Je(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Je(e.namespace,t),Je(e.name,t);break}}function Bm(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function j5(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}var Fm=Symbol.for("should not be considered a local binding"),R5={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){qm.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:i}=e;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(Vm(t))return;let i=t.declaration;if(p5(i)||h5(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n?.reference(e)}else if(C5(i))for(let s of i.declarations)for(let n of Object.keys(Um(s))){let a=r.getBinding(n);a?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let s=e.node.id.name;e.scope.bindings[s]=e.scope.parent.getBinding(s)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[Fm]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[Fm]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},Gn,q5=0,Ht=class e{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,i=Nm.scope.get(r);if(i?.path===t)return i;Nm.scope.set(r,this),this.uid=q5++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var t;let r,i=this.path;do{var s;let n=i.key==="key"||i.listKey==="decorators";i=i.parentPath,n&&i.isMethod()&&(i=i.parentPath),(s=i)!=null&&s.isScope()&&(r=i)}while(i&&!r);return(t=r)==null?void 0:t.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),Om(r)}generateUidIdentifier(t){return oi(this.generateUid(t))}generateUid(t="temp"){t=N5(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,i=0;do r=`_${t}`,i>=11?r+=i-1:i>=9?r+=i-9:i>=1&&(r+=i+1),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}generateUidBasedOnNode(t,r){let i=[];Je(t,i);let s=i.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return oi(this.generateUidBasedOnNode(t,r))}isStatic(t){if(km(t)||P5(t)||Mm(t))return!0;if(ai(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let i=this.generateUidIdentifierBasedOnNode(t);return r?i:(this.push({id:i}),Om(i))}}checkBlockScopedCollisions(t,r,i,s){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${i}"`,TypeError)}rename(t,r){let i=this.getBinding(t);i&&(r||(r=this.generateUidIdentifier(t).name),new i5.default(i,t,r).rename(arguments[2]))}dump(){let t="-".repeat(60);console.log(t);let r=this;do{console.log("#",r.block.type);for(let i of Object.keys(r.bindings)){let s=r.bindings[i];console.log(" -",i,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(r=r.parent);console.log(t)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:i}=t.node;for(let s of r)this.registerBinding(i==="using"||i==="await using"?"const":i,s)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",i=t.get("specifiers");for(let s of i){let n=r||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(n?"unknown":"module",s)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return B5()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let s of Object.keys(r)){var i;(i=this.getBinding(s))==null||i.reassign(t)}}registerBinding(t,r,i=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(t,o);return}let s=this.getProgramParent(),n=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let o of n[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,t,a,o)}l?l.reassign(i):this.bindings[a]=new s5.default({identifier:o,scope:this,path:i,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(ai(t)){let a=this.getBinding(t.name);return a?r?a.constant:!0:!1}else{if(km(t)||k5(t)||Mm(t)||L5(t))return!0;if(u5(t)){var i;return t.superClass&&!this.isPure(t.superClass,r)||((i=t.decorators)==null?void 0:i.length)>0?!1:this.isPure(t.body,r)}else if(c5(t)){for(let a of t.body)if(!this.isPure(a,r))return!1;return!0}else{if(l5(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(Km(t)||t?.type==="TupleExpression"){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(g5(t)||t?.type==="RecordExpression"){for(let a of t.properties)if(!this.isPure(a,r))return!1;return!0}else if(y5(t)){var s;return!(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0)}else if(x5(t)){var n;return!(t.computed&&!this.isPure(t.key,r)||((n=t.decorators)==null?void 0:n.length)>0||(D5(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(v5(t))return this.isPure(t.argument,r);if(Jm(t)){for(let a of t.expressions)if(!this.isPure(a,r))return!1;return!0}else return A5(t)?Lm(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):m5(t)?!t.computed&&ai(t.object)&&t.object.name==="Symbol"&&ai(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):Dm(t)?Lm(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&qm.isStringLiteral(t.arguments[0]):b5(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let i=r.data[t];if(i!=null)return i}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;Bm(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let i=r,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Gn||(Gn=jm.default.visitors.merge([{Scope(n){Bm(n.scope)}},R5])),t.type!=="Program"){let n=Gn[t.type];if(n)for(let a of n.enter)a.call(s,t,s)}t.traverse(Gn,s),this.crawling=!1;for(let n of s.assignments){let a=n.getAssignmentIdentifiers();for(let o of Object.keys(a))n.scope.getBinding(o)||i.addGlobal(a[o]);n.scope.registerConstantViolation(n)}for(let n of s.references){let a=n.scope.getBinding(n.node.name);a?a.reference(n):i.addGlobal(n.node)}for(let n of s.constantViolations)n.scope.registerConstantViolation(n)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:i,unique:s,kind:n="var",id:a}=t;if(!i&&!s&&(n==="var"||n==="let")&&j5(r)&&Dm(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&ai(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,l=`declaration:${n}:${o}`,u=!s&&r.getData(l);if(!u){let E=_5(n,[]);E._blockHoist=o,[u]=r.unshiftContainer("body",[E]),s||r.setData(l,u)}let f=O5(a,i),g=u.node.declarations.push(f);r.scope.registerBinding(n,u.get("declarations")[g-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in t||(t[i]=r.bindings[i]);r=r.parent}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,i;do{let n=r.getOwnBinding(t);if(n){var s;if(!((s=i)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r?.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let i,s,n;typeof r=="object"?(i=r.noGlobals,s=r.noUids,n=r.upToScope):typeof r=="boolean"&&(i=r);let a=this;do{if(n===a)break;if(a.hasOwnBinding(t))return!0}while(a=a.parent);return!!(!s&&this.hasUid(t)||!i&&e.globals.includes(t)||!i&&e.contextVariables.includes(t))}parentHasBinding(t,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(t,r)}moveBindingTo(t,r){let i=this.getBinding(t);i&&(i.scope.removeOwnBinding(t),i.scope=r,r.bindings[t]=i)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);let i=this;do i.uids[t]&&(i.uids[t]=!1);while(i=i.parent)}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let i of Object.keys(this.bindings)){let s=this.bindings[i];if(!s)continue;let{path:n}=s;if(!n.isVariableDeclarator())continue;let{parent:a,parentPath:o}=n;if(a.kind!=="var"||r.has(a))continue;r.add(n.parent);let l,u=[];for(let f of a.declarations){l??(l=f.id),f.init&&u.push(o5("=",f.id,f.init));let g=Object.keys(Um(f,!1,!0,!0));for(let E of g)t(oi(E),f.init!=null)}if(o.parentPath.isForXStatement({left:a}))o.replaceWith(l);else if(u.length===0)o.remove();else{let f=u.length===1?u[0]:F5(u);o.parentPath.isForStatement({init:a})?o.replaceWith(f):o.replaceWith(I5(f))}}}};Qn.default=Ht;Ht.globals=[...n5,...a5];Ht.contextVariables=["arguments","undefined","Infinity","NaN"];Ht.prototype._renameFromMap=function(t,r,i,s){t[r]&&(t[i]=s,t[r]=null)};Ht.prototype.traverse=function(e,t,r){(0,jm.default)(e,t,this,r,this.path)};Ht.prototype._generateUid=function(t,r){let i=t;return r>1&&(i+=r),`_${i}`};Ht.prototype.toArray=function(t,r,i){if(ai(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(Km(t))return t;if(ai(t,{name:"arguments"}))return _m(ac(ac(ac(oi("Array"),oi("prototype")),oi("slice")),oi("call")),[t]);let s,n=[t];return r===!0?s="toConsumableArray":typeof r=="number"?(n.push(w5(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),_m(this.path.hub.addHelper(s),n)};Ht.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let i of t){let s=this;do{for(let n of Object.keys(s.bindings)){let a=s.bindings[n];a.kind===i&&(r[n]=a)}s=s.parent}while(s)}return r};Object.defineProperties(Ht.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Ym=w(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.find=J5;Ut.findParent=V5;Ut.getAncestry=H5;Ut.getDeepestCommonAncestorFrom=$5;Ut.getEarliestCommonAncestorFrom=W5;Ut.getFunctionParent=Y5;Ut.getStatementParent=X5;Ut.inType=Q5;Ut.isAncestor=z5;Ut.isDescendant=G5;var U5=he(),{VISITOR_KEYS:K5}=U5;function V5(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function J5(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function Y5(){return this.findParent(e=>e.isFunction())}function X5(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function W5(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let s,n=K5[t.type];for(let a of i){let o=a[r+1];if(!s){s=o;continue}if(o.listKey&&s.listKey===o.listKey&&o.key<s.key){s=o;continue}let l=n.indexOf(s.parentKey),u=n.indexOf(o.parentKey);l>u&&(s=o)}return s})}function $5(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,i,s,n=e.map(o=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);return l.length<r&&(r=l.length),l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;i=o,s=l}if(s)return t?t(s,i,n):s;throw new Error("Couldn't find intersection")}function H5(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function z5(e){return e.isDescendant(this)}function G5(e){return!!this.findParent(t=>t===e)}function Q5(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1}});var uc=w(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.createUnionType=i7;var Z5=he(),{createFlowUnionType:Xm,createTSUnionType:Wm,createUnionTypeAnnotation:e7,isFlowType:t7,isTSType:r7}=Z5;function i7(e){if(e.every(t=>t7(t)))return Xm?Xm(e):e7(e);if(e.every(t=>r7(t))&&Wm)return Wm(e)}});var Qm=w(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.default=l7;var s7=he(),Hm=uc(),{BOOLEAN_NUMBER_BINARY_OPERATORS:n7,createTypeAnnotationBasedOnTypeof:a7,numberTypeAnnotation:zm,voidTypeAnnotation:o7}=s7;function l7(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:u7(t,this,e.name);if(e.name==="undefined")return o7();if(e.name==="NaN"||e.name==="Infinity")return zm();e.name}function u7(e,t,r){let i=[],s=[],n=$m(e,t,s),a=Gm(e,t,r);if(a){let o=$m(e,a.ifStatement);n=n.filter(l=>!o.includes(l)),i.push(a.typeAnnotation)}if(n.length){n.push(...s);for(let o of n)i.push(o.getTypeAnnotation())}if(i.length)return(0,Hm.createUnionType)(i)}function $m(e,t,r){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(t);return r&&n==="unknown"&&r.push(s),n==="before"})}function c7(e,t){let r=t.node.operator,i=t.get("right").resolve(),s=t.get("left").resolve(),n;if(s.isIdentifier({name:e})?n=i:i.isIdentifier({name:e})&&(n=s),n)return r==="==="?n.getTypeAnnotation():n7.includes(r)?zm():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(s.isUnaryExpression({operator:"typeof"})?(a=s,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=s),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return a7(l)}function p7(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return t.key==="test"?void 0:i;if(i.isFunction()&&(r==null||i.parentPath.scope.getBinding(r)!==e))return;t=i}}function Gm(e,t,r){let i=p7(e,t,r);if(!i)return;let n=[i.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression())l.node.operator==="&&"&&(n.push(l.get("left")),n.push(l.get("right")));else if(l.isBinaryExpression()){let u=c7(r,l);u&&a.push(u)}}return a.length?{typeAnnotation:(0,Hm.createUnionType)(a),ifStatement:i}:Gm(e,i,r)}});var ay=w(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.ArrayExpression=iy;Oe.AssignmentExpression=L7;Oe.BinaryExpression=N7;Oe.BooleanLiteral=j7;Oe.CallExpression=W7;Oe.ConditionalExpression=O7;Oe.ClassDeclaration=Oe.ClassExpression=Oe.FunctionDeclaration=Oe.ArrowFunctionExpression=Oe.FunctionExpression=K7;Object.defineProperty(Oe,"Identifier",{enumerable:!0,get:function(){return h7.default}});Oe.LogicalExpression=_7;Oe.NewExpression=C7;Oe.NullLiteral=R7;Oe.NumericLiteral=F7;Oe.ObjectExpression=U7;Oe.ParenthesizedExpression=k7;Oe.RegExpLiteral=q7;Oe.RestElement=sy;Oe.SequenceExpression=D7;Oe.StringLiteral=B7;Oe.TSAsExpression=ry;Oe.TSNonNullExpression=v7;Oe.TaggedTemplateExpression=$7;Oe.TemplateLiteral=I7;Oe.TypeCastExpression=ty;Oe.UnaryExpression=w7;Oe.UpdateExpression=M7;Oe.VariableDeclarator=A7;var f7=he(),h7=Qm(),ey=uc(),{BOOLEAN_BINARY_OPERATORS:d7,BOOLEAN_UNARY_OPERATORS:m7,NUMBER_BINARY_OPERATORS:y7,NUMBER_UNARY_OPERATORS:T7,STRING_UNARY_OPERATORS:S7,anyTypeAnnotation:Zm,arrayTypeAnnotation:pc,booleanTypeAnnotation:fc,buildMatchMemberExpression:Zn,genericTypeAnnotation:Br,identifier:li,nullLiteralTypeAnnotation:g7,numberTypeAnnotation:Ri,stringTypeAnnotation:ui,tupleTypeAnnotation:x7,unionTypeAnnotation:b7,voidTypeAnnotation:E7,isIdentifier:P7}=f7;function A7(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function ty(e){return e.typeAnnotation}ty.validParent=!0;function ry(e){return e.typeAnnotation}ry.validParent=!0;function v7(){return this.get("expression").getTypeAnnotation()}function C7(e){if(e.callee.type==="Identifier")return Br(e.callee)}function I7(){return ui()}function w7(e){let t=e.operator;if(t==="void")return E7();if(T7.includes(t))return Ri();if(S7.includes(t))return ui();if(m7.includes(t))return fc()}function N7(e){let t=e.operator;if(y7.includes(t))return Ri();if(d7.includes(t))return fc();if(t==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?Ri():i.isBaseType("string")||r.isBaseType("string")?ui():b7([ui(),Ri()])}}function _7(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,ey.createUnionType)(e)}function O7(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,ey.createUnionType)(e)}function D7(){return this.get("expressions").pop().getTypeAnnotation()}function k7(){return this.get("expression").getTypeAnnotation()}function L7(){return this.get("right").getTypeAnnotation()}function M7(e){let t=e.operator;if(t==="++"||t==="--")return Ri()}function B7(){return ui()}function F7(){return Ri()}function j7(){return fc()}function R7(){return g7()}function q7(){return Br(li("RegExp"))}function U7(){return Br(li("Object"))}function iy(){return Br(li("Array"))}function sy(){return iy()}sy.validParent=!0;function K7(){return Br(li("Function"))}var V7=Zn("Array.from"),J7=Zn("Object.keys"),Y7=Zn("Object.values"),X7=Zn("Object.entries");function W7(){let{callee:e}=this.node;return J7(e)?pc(ui()):V7(e)||Y7(e)||P7(e,{name:"Array"})?pc(Zm()):X7(e)?pc(x7([ui(),Zm()])):ny(this.get("callee"))}function $7(){return ny(this.get("tag"))}function ny(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Br(li("AsyncIterator")):Br(li("Promise"));if(t.generator)return Br(li("Iterator"));if(e.node.returnType)return e.node.returnType}}});var py=w(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr._getTypeAnnotation=cy;Fr.baseTypeStrictlyMatches=yq;Fr.couldBeBaseType=mq;Fr.getTypeAnnotation=hq;Fr.isBaseType=dq;Fr.isGenericType=Tq;var oy=ay(),H7=he(),{anyTypeAnnotation:uy,isAnyTypeAnnotation:ea,isArrayTypeAnnotation:z7,isBooleanTypeAnnotation:G7,isEmptyTypeAnnotation:Q7,isFlowBaseAnnotation:Z7,isGenericTypeAnnotation:eq,isIdentifier:ly,isMixedTypeAnnotation:tq,isNumberTypeAnnotation:rq,isStringTypeAnnotation:iq,isTSArrayType:sq,isTSTypeAnnotation:nq,isTSTypeReference:aq,isTupleTypeAnnotation:oq,isTypeAnnotation:lq,isUnionTypeAnnotation:uq,isVoidTypeAnnotation:cq,stringTypeAnnotation:pq,voidTypeAnnotation:fq}=H7;function hq(){let e=this.getData("typeAnnotation");return e!=null||(e=cy.call(this)||uy(),(lq(e)||nq(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var hc=new WeakSet;function cy(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?pq():r.key==="left"&&i.isForOfStatement()?uy():fq()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!hc.has(e)){hc.add(e);try{var t;let r=oy[e.type];if(r)return r.call(this,e);if(r=oy[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{hc.delete(e)}}}function dq(e,t){return dc(e,this.getTypeAnnotation(),t)}function dc(e,t,r){if(e==="string")return iq(t);if(e==="number")return rq(t);if(e==="boolean")return G7(t);if(e==="any")return ea(t);if(e==="mixed")return tq(t);if(e==="empty")return Q7(t);if(e==="void")return cq(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function mq(e){let t=this.getTypeAnnotation();if(ea(t))return!0;if(uq(t)){for(let r of t.types)if(ea(r)||dc(e,r,!0))return!0;return!1}else return dc(e,t,!0)}function yq(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!ea(t)&&Z7(t)?r.type===t.type:!1}function Tq(e){let t=this.getTypeAnnotation();return e==="Array"&&(sq(t)||z7(t)||oq(t))?!0:eq(t)&&ly(t.id,{name:e})||aq(t)&&ly(t.typeName,{name:e})}});var hy=w(($ee,mc)=>{"use strict";var de=String,fy=function(){return{isColorSupported:!1,reset:de,bold:de,dim:de,italic:de,underline:de,inverse:de,hidden:de,strikethrough:de,black:de,red:de,green:de,yellow:de,blue:de,magenta:de,cyan:de,white:de,gray:de,bgBlack:de,bgRed:de,bgGreen:de,bgYellow:de,bgBlue:de,bgMagenta:de,bgCyan:de,bgWhite:de,blackBright:de,redBright:de,greenBright:de,yellowBright:de,blueBright:de,magentaBright:de,cyanBright:de,whiteBright:de,bgBlackBright:de,bgRedBright:de,bgGreenBright:de,bgYellowBright:de,bgBlueBright:de,bgMagentaBright:de,bgCyanBright:de,bgWhiteBright:de}};mc.exports=fy();mc.exports.createColors=fy});var dy=w(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;ta.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var Tc=w(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var yc=hy(),my=dy(),yy=ts();function Sq(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:yc.isColorSupported}var ra=(e,t)=>r=>e(t(r));function gy(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:ra(ra(e.white,e.bgRed),e.bold),gutter:e.gray,marker:ra(e.red,e.bold),message:ra(e.red,e.bold),reset:e.reset}}var gq=gy(yc.createColors(!0)),xq=gy(yc.createColors(!1));function xy(e){return e?gq:xq}var bq=new Set(["as","async","from","get","of","set"]),Eq=/\r\n|[\n\r\u2028\u2029]/,Pq=/^[()[\]{}]$/,by,Aq=/^[a-z][\w-]*$/i,vq=function(e,t,r){if(e.type==="name"){let i=e.value;if(yy.isKeyword(i)||yy.isStrictReservedWord(i,!0)||bq.has(i))return"keyword";if(Aq.test(i)&&(r[t-1]==="<"||r.slice(t-2,t)==="</"))return"jsxIdentifier";let s=String.fromCodePoint(i.codePointAt(0));if(s!==s.toLowerCase())return"capitalized"}return e.type==="punctuator"&&Pq.test(e.value)?"bracket":e.type==="invalid"&&(e.value==="@"||e.value==="#")?"punctuator":e.type};by=function*(e){let t;for(;t=my.default.exec(e);){let r=my.matchToToken(t);yield{type:vq(r,t.index,e),value:r.value}}};function Ey(e){if(e==="")return"";let t=xy(!0),r="";for(let{type:i,value:s}of by(e))i in t?r+=s.split(Eq).map(n=>t[i](n)).join(`
|
|
24
|
-
`):r+=s;return r}var Ty=!1,Sy=/\r\n|[\n\r\u2028\u2029]/;function
|
|
25
|
-
`,n.gutter(
|
|
26
|
-
`);return r.message&&!f&&(
|
|
27
|
-
${A}`),i?n.reset(A):A}function Iq(e,t,r,i={}){if(!Ty){Ty=!0;let n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(n,"DeprecationWarning");else{let a=new Error(n);a.name="DeprecationWarning",console.warn(new Error(n))}}return r=Math.max(r,0),Py(e,{start:{column:r,line:t}},i)}_s.codeFrameColumns=Py;_s.default=Iq;_s.highlight=Ey});var Ay=w(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.hooks=void 0;var Gee=ia.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]});var sa=w(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr._assertUnremoved=Ny;jr._callRemovalHooks=Iy;jr._markRemoved=Sc;jr._remove=wy;jr._removeFromScope=Cy;jr.remove=Lq;var wq=Ay(),Nq=ni(),_q=gc(),vy=br(),Oq=he(),Dq=na(),kq=qt();function Lq(){var e;if(Ny.call(this),kq.resync.call(this),Iy.call(this)){Sc.call(this);return}(e=this.opts)!=null&&e.noScope||Cy.call(this),this.shareCommentsWithSiblings(),wy.call(this),Sc.call(this)}function Cy(){let e=Oq.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach(t=>this.scope.removeBinding(t))}function Iy(){if(this.parentPath){for(let e of wq.hooks)if(e(this,this.parentPath))return!0}}function wy(){Array.isArray(this.container)?(this.container.splice(this.key,1),Dq.updateSiblingKeys.call(this,this.key,-1)):_q._replaceWith.call(this,null)}function Sc(){if(this._traverseFlags|=vy.SHOULD_SKIP|vy.REMOVED,this.parent){var e;(e=(0,Nq.getCachedPaths)(this))==null||e.delete(this.node)}this.node=null}function Ny(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var Oy=w(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.default=void 0;var _y=he(),Mq=_y,{react:Bq}=_y,{cloneNode:Fq,jsxExpressionContainer:jq,variableDeclaration:Rq,variableDeclarator:qq}=Mq,Uq={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&Bq.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let i=e.scope;do if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;while(i=i.parent);i&&t.breakOnScopePaths.push(i.path)}let r=e.scope.getBinding(e.node.name);if(r){for(let i of r.constantViolations)if(i.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},xc=class{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let i=this.bindings[r];if(!t.bindingIdentifierEquals(r,i.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(let i of Object.keys(this.bindings)){if(!r.hasOwnBinding(i))continue;let s=this.bindings[i];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=t.key){this.attachAfter=!0,t=s.path;for(let a of s.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let i=r.path.get("body").get("body");for(let s=0;s<i.length;s++)if(!i[s].node._blockHoist)return i[s]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath);return t}hasOwnParamBindings(t){for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let i=this.bindings[r];if(i.kind==="param"&&i.constant)return!0}return!1}run(){if(this.path.traverse(Uq,this),this.mutableBinding)return;this.getCompatibleScopes();let t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref"),i=qq(r,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[n]=t[s]([t.isVariableDeclarator()?i:Rq("var",[i])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=jq(r)),this.path.replaceWith(Fq(r)),n.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}};aa.default=xc});var na=w(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt._containerInsert=vc;Kt._containerInsertAfter=Ly;Kt._containerInsertBefore=Cc;Kt._verifyNodeList=Os;Kt.insertAfter=sU;Kt.insertBefore=rU;Kt.pushContainer=aU;Kt.unshiftContainer=nU;Kt.updateSiblingKeys=Fy;var Kq=ni(),Ac=br(),bc=qt(),oa=sa(),Vq=he(),Jq=Oy(),{arrowFunctionExpression:Yq,assertExpression:Xq,assignmentExpression:Wq,blockStatement:Dy,callExpression:$q,cloneNode:Ec,expressionStatement:Pc,isAssignmentExpression:Hq,isCallExpression:zq,isExportNamedDeclaration:ky,isExpression:Gq,isIdentifier:Qq,isSequenceExpression:Zq,isSuper:eU,thisExpression:tU}=Vq;function rU(e){oa._assertUnremoved.call(this);let t=Os.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||ky(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return Cc.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(Dy(n?[s]:[]));return a.unshiftContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function vc(e,t){Fy.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var i;let a=e+n,o=this.getSibling(a);r.push(o),(i=this.context)!=null&&i.queue&&bc.pushContext.call(o,this.context)}let s=bc._getQueueContexts.call(this);for(let n of r){bc.setScope.call(n),n.debug("Inserted.");for(let a of s)a.maybeQueue(n,!0)}return r}function Cc(e){return vc.call(this,this.key,e)}function Ly(e){return vc.call(this,this.key+1,e)}var My=e=>e[e.length-1];function By(e){return Zq(e.parent)&&(My(e.parent.expressions)!==e.node||By(e.parentPath))}function iU(e,t){if(!Hq(e)||!Qq(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function sU(e){if(oa._assertUnremoved.call(this),this.isSequenceExpression())return My(this.get("expressions")).insertAfter(e);let t=Os.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||ky(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(s=>Gq(s)?Pc(s):s));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let s=this;if(s.node){let n=s.node,{scope:a}=this;if(a.path.isPattern())return Xq(n),s.replaceWith($q(Yq([],n),[])),s.get("callee.body").insertAfter(t),[s];if(By(s))t.unshift(n);else if(zq(n)&&eU(n.callee))t.unshift(n),t.push(tU());else if(iU(n,a))t.unshift(n),t.push(Ec(n.left));else if(a.isPure(n,!0))t.push(n);else{r.isMethod({computed:!0,key:n})&&(a=a.parent);let o=a.generateDeclaredUidIdentifier();t.unshift(Pc(Wq("=",Ec(o),n))),t.push(Pc(Ec(o)))}}return this.replaceExpressionWithStatements(t)}else{if(Array.isArray(this.container))return Ly.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(Dy(n?[s]:[]));return a.pushContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function Fy(e,t){if(!this.parent)return;let r=(0,Kq.getCachedPaths)(this);if(r)for(let[,i]of r)typeof i.key=="number"&&i.container===this.container&&i.key>=e&&(i.key+=t)}function Os(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let r=e[t],i;if(r?typeof r!="object"?i="contains a non-object node":r.type?r instanceof Ac.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){let s=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${t} and type of ${s}`)}}return e}function nU(e,t){oa._assertUnremoved.call(this);let r=Os.call(this,t),i=this.node[e],s=Ac.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:0}).setContext(this.context);return Cc.call(s,r)}function aU(e,t){oa._assertUnremoved.call(this);let r=Os.call(this,t),i=this.node[e];return Ac.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:i.length}).setContext(this.context).replaceWithMultiple(r)}Kt.hoist=function(t=this.scope){return new Jq.default(this,t).run()}});var gc=w(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr._replaceWith=Yy;Rr.replaceExpressionWithStatements=LU;Rr.replaceInline=MU;Rr.replaceWith=kU;Rr.replaceWithMultiple=OU;Rr.replaceWithSourceString=DU;var oU=Tc(),wc=ji(),lU=br(),Ky=ni(),Nc=na(),uU=Kn(),cU=he(),qi=qt(),{FUNCTION_TYPES:jy,arrowFunctionExpression:pU,assignmentExpression:Vy,awaitExpression:fU,blockStatement:hU,buildUndefinedNode:Ic,callExpression:dU,cloneNode:_c,conditionalExpression:mU,expressionStatement:yU,getBindingIdentifiers:TU,identifier:SU,inheritLeadingComments:gU,inheritTrailingComments:xU,inheritsComments:bU,isBlockStatement:EU,isEmptyStatement:Ry,isExpression:Jy,isExpressionStatement:PU,isIfStatement:AU,isProgram:vU,isStatement:CU,isVariableDeclaration:IU,removeComments:wU,returnStatement:qy,sequenceExpression:NU,validate:Uy,yieldExpression:_U}=cU;function OU(e){var t;qi.resync.call(this);let r=Nc._verifyNodeList.call(this,e);gU(r[0],this.node),xU(r[r.length-1],this.node),(t=(0,Ky.getCachedPaths)(this))==null||t.delete(this.node),this.node=this.container[this.key]=null;let i=this.insertAfter(e);return this.node?this.requeue():this.remove(),i}function DU(e){qi.resync.call(this);let t;try{e=`(${e})`,t=(0,uU.parse)(e)}catch(i){let s=i.loc;throw s&&(i.message+=` - make sure this is an expression.
|
|
28
|
-
`+(0,
|
|
29
|
-
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var
|
|
19
|
+
`):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(E.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===r)break;n===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):Di(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),a=i6[n];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(ii(r)||r===45);this.finishToken(141,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(141)?r.name=this.state.value:Qu(this.state.type)?r.name=Fr(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let s=this.startNodeAt(r);return s.namespace=i,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=i,s.property=this.jsxParseIdentifier(),i=this.finishNode(s,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(De.brace),this.next(),r=this.jsxParseExpressionContainer(r,De.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(ti.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ti.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(De.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(De.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(De.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(144);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(144),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(De.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,De.j_expr));break}default:this.unexpected()}Br(n)&&!Br(a)&&a!==null?this.raise(ti.MissingClosingTagFragment,a):!Br(n)&&Br(a)?this.raise(ti.MissingClosingTagElement,a,{openingTagName:Oi(n.name)}):!Br(n)&&!Br(a)&&Oi(a.name)!==Oi(n.name)&&this.raise(ti.MissingClosingTagElement,a,{openingTagName:Oi(n.name)})}if(Br(n)?(i.openingFragment=n,i.closingFragment=a):(i.openingElement=n,i.closingElement=a),i.children=s,this.match(47))throw this.raise(ti.UnwrappedAdjacentJSXElements,this.state.startLoc);return Br(n)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:i}=this.state;i[i.length-1]=r}parseExprAtom(r){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){let i=this.curContext();if(i===De.j_expr){this.jsxReadToken();return}if(i===De.j_oTag||i===De.j_cTag){if(lr(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&i===De.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(r)}updateContext(r){let{context:i,type:s}=this.state;if(s===56&&r===143)i.splice(-2,2,De.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)i.push(De.j_oTag);else if(s===144){let n=i[i.length-1];n===De.j_oTag&&r===56||n===De.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===De.j_expr):(this.setContext(De.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=D8(s)}},wu=class extends Cs{constructor(...t){super(...t),this.tsNames=new Map}},Nu=class extends Is{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new wu(t)}enter(t){t===1024&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return t===1024&&this.importsStack.pop(),t}hasImport(t,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(t))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(t))return!0}return!1}declareName(t,r,i){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(E.VarRedeclaration,i,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let s=this.currentScope(),n=s.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(s,t),s.tsNames.set(t,n|16);return}super.declareName(t,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&s.tsNames.set(t,n)}isRedeclaredInScope(t,r,i){let s=t.tsNames.get(r);if((s&2)>0){if(i&256){let n=!!(i&512),a=(s&4)>0;return n!==a}return!0}return i&128&&(s&8)>0?t.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(t,r,i)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}},_u=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Rn(e,t){return(e?2:0)|(t?1:0)}var Ou=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,i]=t;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return!1;return!0}}getPluginOption(t,r){var i;return(i=this.plugins.get(t))==null?void 0:i[r]}};function Hd(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function o6(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function ws(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Ht(e,t,r){let i=null,s=t.length;for(;i===null&&s>0;)i=t[--s];i===null||i.start>r.start?ws(e,r.comments):Hd(i,r.comments)}var Du=class extends Ou{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===t.end&&(n.leadingNode=t,s--);let{start:a}=t;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=t,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=t);break}}}finalizeComment(t){var r;let{comments:i}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&Hd(t.leadingNode,i),t.trailingNode!==null&&o6(t.trailingNode,i);else{let s=t.containingNode,n=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":Ht(s,s.properties,t);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Ht(s,s.arguments,t);break;case"ImportExpression":Ht(s,[s.source,(r=s.options)!=null?r:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Ht(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":Ht(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ht(s,s.specifiers,t);break;case"TSEnumDeclaration":Ht(s,s.members,t);break;case"TSEnumBody":Ht(s,s.members,t);break;case"TSInterfaceBody":Ht(s,s.body,t);break;default:{if(s.type==="RecordExpression"){Ht(s,s.properties,t);break}if(s.type==="TupleExpression"){Ht(s,s.elements,t);break}ws(s,i)}}else ws(s,i)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===t&&(s.leadingNode=null)}takeSurroundingComments(t,r,i){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let a=n-1;for(;a>=0;a--){let o=s[a],l=o.end;if(o.start===i)o.leadingNode=t;else if(l===r)o.trailingNode=t;else if(l<r)break}}},ku=class e{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[De.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:i,startLine:s,startColumn:n}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=i,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new ur(s,n,i)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new ur(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},l6=function(t){return t>=48&&t<=57},Ld={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Bn={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Md(e,t,r,i,s,n){let a=r,o=i,l=s,u="",f=null,x=r,{length:A}=t;for(;;){if(r>=A){n.unterminated(a,o,l),u+=t.slice(x,r);break}let C=t.charCodeAt(r);if(u6(e,C,t,r)){u+=t.slice(x,r);break}if(C===92){u+=t.slice(x,r);let I=c6(t,r,i,s,e==="template",n);I.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=I.ch,{pos:r,lineStart:i,curLine:s}=I,x=r}else C===8232||C===8233?(++r,++s,i=r):C===10||C===13?e==="template"?(u+=t.slice(x,r)+`
|
|
20
|
+
`,++r,C===13&&t.charCodeAt(r)===10&&++r,++s,x=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function u6(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function c6(e,t,r,i,s,n){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
|
|
21
|
+
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Lu(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=Gd(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,x=/^[0-7]+/.exec(e.slice(u,t+2))[0],A=parseInt(x,8);A>255&&(x=x.slice(0,-1),A=parseInt(x,8)),t+=x.length-1;let C=e.charCodeAt(t);if(x!=="0"||C===56||C===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(A))}return o(String.fromCharCode(l))}}function Lu(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=zd(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function zd(e,t,r,i,s,n,a,o,l,u){let f=t,x=s===16?Ld.hex:Ld.decBinOct,A=s===16?Bn.hex:s===10?Bn.dec:s===8?Bn.oct:Bn.bin,C=!1,I=0;for(let k=0,N=n??1/0;k<N;++k){let D=e.charCodeAt(t),F;if(D===95&&o!=="bail"){let ie=e.charCodeAt(t-1),H=e.charCodeAt(t+1);if(o){if(Number.isNaN(H)||!A(H)||x.has(ie)||x.has(H)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(D>=97?F=D-97+10:D>=65?F=D-65+10:l6(D)?F=D-48:F=1/0,F>=s){if(F<=9&&u)return{n:null,pos:t};if(F<=9&&l.invalidDigit(t,r,i,s))F=0;else if(a)F=0,C=!0;else break}++t,I=I*s+F}return t===f||n!=null&&t-f!==n||C?{n:null,pos:t}:{n:I,pos:t}}function Gd(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Lu(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=Lu(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}function Es(e,t,r){return new ur(r,e-t,e)}var p6=new Set([103,109,115,105,121,117,100,118]),ar=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Li(t.startLoc,t.endLoc)}},Mu=class extends Du{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,a)=>this.optionFlags&2048?(this.raise(E.InvalidDigit,Es(i,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(E.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(E.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(E.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(E.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(E.StrictNumericEscape,Es(i,s,n))},unterminated:(i,s,n)=>{throw this.raise(E.UnterminatedString,Es(i-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(E.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(E.UnterminatedTemplate,Es(i,s,n))}}),this.state=new ku,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new ar(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return xu.lastIndex=t,xu.test(this.input)?xu.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return bu.lastIndex=t,bu.test(this.input)?bu.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let i=this.input.charCodeAt(t);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(t,i+2);if(s===-1)throw this.raise(E.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+t.length,Mn.lastIndex=i+2;Mn.test(this.input)&&Mn.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Mn.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+t.length),loc:new Li(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(t){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!Di(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n),loc:new Li(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let t=this.state.pos,r=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),r?.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),r?.push(s));break}default:break e}break;default:if(n6(i))++this.state.pos;else if(i===45&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(t===0||this.state.lineStart>t)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else break e}}if(r?.length>0){let i=this.state.pos,s={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(E.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?E.RecordExpressionHashIncorrectStartSyntaxType:E.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else lr(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!Di(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(t){let r=t===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);t===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=t===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(E.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(E.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let i=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(E.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(E.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(lr(t)){this.readWord(t);return}}throw this.raise(E.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,i)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(E.UnterminatedRegExp,Et(t,1));let u=this.input.charCodeAt(n);if(Di(u))throw this.raise(E.UnterminatedRegExp,Et(t,1));if(i)i=!1;else{if(u===91)s=!0;else if(u===93&&s)s=!1;else if(u===47&&!s)break;i=u===92}}let a=this.input.slice(r,n);++n;let o="",l=()=>Et(t,n+2-r);for(;n<this.length;){let u=this.codePointAtPos(n),f=String.fromCharCode(u);if(p6.has(u))u===118?o.includes("u")&&this.raise(E.IncompatibleRegExpUVFlags,l()):u===117&&o.includes("v")&&this.raise(E.IncompatibleRegExpUVFlags,l()),o.includes(f)&&this.raise(E.DuplicateRegExpFlags,l());else if(ii(u)||u===92)this.raise(E.MalformedRegExpFlags,l());else break;++n,o+=f}this.state.pos=n,this.finishToken(138,{pattern:a,flags:o})}readInt(t,r,i=!1,s=!0){let{n,pos:a}=zd(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1;this.state.pos+=2;let n=this.readInt(t);n==null&&this.raise(E.InvalidDigit,Et(i,2),{radix:t});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,s=!0;else if(a===109)throw this.raise(E.InvalidDecimal,i);if(lr(this.codePointAtPos(this.state.pos)))throw this.raise(E.NumberIdentifier,this.state.curPosition());if(s){let o=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,n)}readNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,a=!1,o=!1;!t&&this.readInt(10)===null&&this.raise(E.InvalidNumber,this.state.curPosition());let l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){let C=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(E.StrictOctalLiteral,i),!this.state.strict){let I=C.indexOf("_");I>0&&this.raise(E.ZeroDigitNumericSeparator,Et(i,I))}o=l&&!/[89]/.test(C)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,u=this.input.charCodeAt(this.state.pos)),(u===69||u===101)&&!o&&(u=this.input.charCodeAt(++this.state.pos),(u===43||u===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(E.InvalidOrMissingExponent,i),s=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),u===110&&((s||l)&&this.raise(E.InvalidBigIntLiteral,i),++this.state.pos,n=!0),u===109){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(E.InvalidDecimal,i),++this.state.pos;var f=!0}if(lr(this.codePointAtPos(this.state.pos)))throw this.raise(E.NumberIdentifier,this.state.curPosition());let x=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,x);return}if(f){this.finishToken(137,x);return}let A=o?parseInt(x,8):parseFloat(x);this.finishToken(135,A)}readCodePoint(t){let{code:r,pos:i}=Gd(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(t){let{str:r,pos:i,curLine:s,lineStart:n}=Md(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:a}=Md("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,i&&(this.state.firstInvalidTemplateEscapePos=new ur(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:t+r+"`"):(this.state.pos++,this.finishToken(25,i?null:t+r+"${"))}recordStrictModeErrors(t,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(t,r):this.state.strictErrors.set(i,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(ii(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?lr:ii;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(E.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(E.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(l)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(t){let r=this.readWord1(t),i=Xu.get(r);i!==void 0?this.finishToken(i,Fr(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:t}=this.state;Qu(t)&&this.state.containsEsc&&this.raise(E.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Fr(t)})}raise(t,r,i={}){let s=r instanceof ur?r:r.loc.start,n=t(s,i);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(t,r,i={}){let s=r instanceof ur?r:r.loc.start,n=s.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let l=a[o];if(l.loc.index===n)return a[o]=t(s,i);if(l.loc.index<n)break}return this.raise(t,r,i)}updateContext(t){}unexpected(t,r){throw this.raise(E.UnexpectedToken,t??this.state.startLoc,{expected:r?Fr(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(E.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(E.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,i,s)=>{this.raise(t,Es(r,i,s))}}},Bu=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Fu=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Bu)}exit(){let t=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(E.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(t,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),o=s.has(t);if(r&3){let l=o&&n.get(t);if(l){let u=l&4,f=r&4,x=l&3,A=r&3;o=x===A||u!==f,o||n.delete(t)}else o||n.set(t,r)}o&&this.parser.raise(E.PrivateNameRedeclaration,i,{identifierName:t}),s.add(t),a.delete(t)}usePrivateName(t,r){let i;for(i of this.stack)if(i.privateNames.has(t))return;i?i.undefinedPrivateNames.set(t,r):this.parser.raise(E.InvalidPrivateFieldResolution,r,{identifierName:t})}},Mi=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Kn=class extends Mi{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let i=r.index;this.declarationErrors.set(i,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},ju=class{constructor(t){this.parser=void 0,this.stack=[new Mi],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let i=r.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,i);else return;a=s[--n]}this.parser.raise(t,i)}recordArrowParameterBindingError(t,r){let{stack:i}=this,s=i[i.length-1],n=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,n);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(E.AwaitBindingIdentifier,t),s=r[--i]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let n=t.length-2,a=t[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=t[--n]})}};function f6(){return new Mi(3)}function h6(){return new Kn(1)}function d6(){return new Kn(2)}function Qd(){return new Mi}var Ru=class extends Mu{addExtra(t,r,i,s=!0){if(!t)return;let{extra:n}=t;n==null&&(n={},t.extra=n),s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let i=this.input.charCodeAt(t+r.length);return!(ii(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return kd(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return kd(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(E.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let i={node:null};try{let s=t((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:o}=t,l=!!i||!!s||!!a||!!n||!!o;if(!r)return l;i!=null&&this.raise(E.InvalidCoverInitializedName,i),s!=null&&this.raise(E.DuplicateProto,s),n!=null&&this.raise(E.UnexpectedPrivateField,n),a!=null&&this.unexpected(a),o!=null&&this.raise(E.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return Kd(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=t;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new _u;let l=this.classScope;this.classScope=new Fu(this);let u=this.expressionScope;return this.expressionScope=new ju(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=n,this.prodParam=o,this.classScope=l,this.expressionScope=u}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let i=r?514:1;this.optionFlags&4&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},ki=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},Bi=class{constructor(t,r,i){this.type="",this.start=r,this.end=0,this.loc=new Li(i),t?.optionFlags&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},qu=Bi.prototype;qu.__clone=function(){let e=new Bi(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){let s=t[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(e[s]=this[s])}return e};var Uu=class extends Ru{startNode(){let t=this.state.startLoc;return new Bi(this,t.index,t)}startNodeAt(t){return new Bi(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,i){return t.type=r,t.end=i.index,t.loc.end=i,this.optionFlags&128&&(t.range[1]=i.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.optionFlags&128&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}castNodeTo(t,r){return t.type=r,t}cloneIdentifier(t){let{type:r,start:i,end:s,loc:n,range:a,name:o}=t,l=Object.create(qu);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.name=o,t.extra&&(l.extra=t.extra),l}cloneStringLiteral(t){let{type:r,start:i,end:s,loc:n,range:a,extra:o}=t,l=Object.create(qu);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.extra=o,l.value=t.value,l}},Ku=e=>e.type==="ParenthesizedExpression"?Ku(e.expression):e,Vu=class extends Uu{toAssignable(t,r=!1){var i,s;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=Ku(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(E.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(E.InvalidParenthesizedAssignment,t):this.raise(E.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,l=t.properties.length,u=l-1;o<l;o++){var a;let f=t.properties[o],x=o===u;this.toAssignableObjectExpressionProp(f,x,r),x&&f.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(E.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:l}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(l,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,(s=t.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(E.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,t.left.type==="VoidPattern"&&this.raise(E.VoidPatternInitializer,t.left),this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(t,r,i){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?E.PatternHasAccessor:E.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){this.castNodeTo(t,"RestElement");let s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(E.RestTrailingComma,t)}else this.toAssignable(t,i)}toAssignableList(t,r,i){let s=t.length-1;for(let n=0;n<=s;n++){let a=t[n];a&&(this.toAssignableListItem(t,n,i),a.type==="RestElement"&&(n<s?this.raise(E.RestTrailingComma,a):r&&this.raise(E.RestTrailingComma,r)))}}toAssignableListItem(t,r,i){let s=t[r];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,i)}else this.toAssignable(s,i)}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let i=t.properties.length-1;return t.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let i of t)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(E.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,i){let s=i&1,n=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||i&2)&&(o=this.parseFunctionParamType(o)),n.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(E.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());n.push(this.parseBindingElement(i,o))}}return n}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(E.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(t,r){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(E.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(t,r,i,s){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,i=64,s=!1,n=!1,a=!1,o=!1){var l;let u=t.type;if(this.isObjectMethod(t))return;let f=this.isOptionalMemberExpression(t);if(f||u==="MemberExpression"){f&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(E.InvalidLhsOptionalChaining,t,{ancestor:r})),i!==64&&this.raise(E.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,i,n);let{name:D}=t;s&&(s.has(D)?this.raise(E.ParamDupe,t):s.add(D));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(E.VoidPatternCatchClauseParam,t);let x=Ku(t);o||(o=x.type==="CallExpression"&&(x.callee.type==="Import"||x.callee.type==="Super"));let A=this.isValidLVal(u,o,!(a||(l=t.extra)!=null&&l.parenthesized)&&r.type==="AssignmentExpression",i);if(A===!0)return;if(A===!1){let D=i===64?E.InvalidLhs:E.InvalidLhsBinding;this.raise(D,t,{ancestor:r});return}let C,I;typeof A=="string"?(C=A,I=u==="ParenthesizedExpression"):[C,I]=A;let k=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,N=t[C];if(Array.isArray(N))for(let D of N)D&&this.checkLVal(D,k,i,s,n,I,!0);else N&&this.checkLVal(N,k,i,s,n,I,o)}checkIdentifier(t,r,i=!1){this.state.strict&&(i?$d(t.name,this.inModule):Wd(t.name))&&(r===64?this.raise(E.StrictEvalArguments,t,{referenceName:t.name}):this.raise(E.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(E.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(E.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?E.RestTrailingComma:E.ElementAfterRest,this.state.startLoc),!0):!1}},Eu=/in(?:stanceof)?|as|satisfies/y;function m6(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function Bd(e){if(!e)throw new Error("Assert fail")}var te=or`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function y6(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Fd(e){return e==="private"||e==="public"||e==="protected"}function T6(e){return e==="in"||e==="out"}var S6=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:te.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:te.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:te.InvalidModifierOnTypeParameter})}getScopeHandler(){return Nu}tsIsIdentifier(){return Be(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!Be(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(r.includes(n)){if(s&&this.match(106)||i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:n=te.InvalidModifierOnTypeMember},a){let o=(u,f,x,A)=>{f===x&&a[A]&&this.raise(te.InvalidModifiersOrder,u,{orderedModifiers:[x,A]})},l=(u,f,x,A)=>{(a[x]&&f===A||a[A]&&f===x)&&this.raise(te.IncompatibleModifiers,u,{modifiers:[x,A]})};for(;;){let{startLoc:u}=this.state,f=this.tsParseModifier(r.concat(i??[]),s,a.static);if(!f)break;Fd(f)?a.accessibility?this.raise(te.DuplicateAccessibilityModifier,u,{modifier:f}):(o(u,f,f,"override"),o(u,f,f,"static"),o(u,f,f,"readonly"),a.accessibility=f):T6(f)?(a[f]&&this.raise(te.DuplicateModifier,u,{modifier:f}),a[f]=!0,o(u,f,"in","out")):(hasOwnProperty.call(a,f)?this.raise(te.DuplicateModifier,u,{modifier:f}):(o(u,f,"static","readonly"),o(u,f,"static","override"),o(u,f,"override","readonly"),o(u,f,"abstract","override"),l(u,f,"declare","override"),l(u,f,"static","abstract")),a[f]=!0),i!=null&&i.includes(f)&&this.raise(n,u,{modifier:f})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return m6(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=o),a}tsParseBracketedList(r,i,s,n,a){n||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(te.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let s=this.state.type;Be(s)||s===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),i=this.finishNode(s,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(te.EmptyTypeParameters,i),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,n="parameters",a="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[n]=this.tsParseBindingListForSignature(),s?i[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(te.UnsupportedSignatureParameterKind,i,{type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Be(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(te.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(te.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let n="parameters",a="typeAnnotation";if(s.kind==="get")s[n].length>0&&(this.raise(E.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(te.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[n].length!==1)this.raise(E.BadSetterArity,this.state.curPosition());else{let o=s[n][0];this.isThisParam(o)&&this.raise(te.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(te.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(te.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(te.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;i&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(i,"TSTypeParameter"),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(te.OptionalTypeBeforeRequired,s),i||(i=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,i=this.eat(21),{startLoc:s}=this.state,n,a,o,l,f=zt(this.state.type)?this.lookaheadCharCode():null;if(f===58)n=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(f===63){o=!0;let x=this.state.value,A=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,a=this.createIdentifier(this.startNodeAt(s),x),this.expect(17),this.expect(14),l=this.tsParseType()):(n=!1,l=A,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let x;a?(x=this.startNodeAt(s),x.optional=o,x.label=a,x.elementType=l,this.eat(17)&&(x.optional=!0,this.raise(te.TupleOptionalAfterType,this.state.lastTokStartLoc))):(x=this.startNodeAt(s),x.optional=o,this.raise(te.InvalidTupleMemberLabel,l),x.label=l,x.elementType=this.tsParseType()),l=this.finishNode(x,"TSNamedTupleMember")}else if(o){let x=this.startNodeAt(s);x.typeAnnotation=l,l=this.finishNode(x,"TSOptionalType")}if(i){let x=this.startNodeAt(r);x.typeAnnotation=l,l=this.finishNode(x,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Be(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":y6(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(r);s.elementType=i,this.expect(3),i=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(r);s.objectType=i,s.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(s,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(te.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return j8(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),a=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!a?o[0]:(n.types=o,this.finishNode(n,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Be(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),i.typeAnnotation=l,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Be(this.state.type)&&!this.match(78)?!1:(r&&this.raise(E.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){Bd(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(te.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();return n.expression=this.tsParseEntityName(3),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")});return s.length||this.raise(te.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),Be(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(te.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==De.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(te.ImportAliasHasImportType,n),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(te.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(te.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(Be(i))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,i,s,n){switch(i){case 124:if(this.tsCheckLineTerminator(s)&&(this.match(80)||Be(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(Be(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(s)&&Be(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(s)&&Be(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(te.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===De.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return R8(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let s=i.length?i[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,o=n.override,l=n.readonly;!(r&4)&&(a||l||o)&&this.raise(te.UnexpectedParameterModifier,s);let u=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(u);let f=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let x=this.startNodeAt(s);return i.length&&(x.decorators=i),a&&(x.accessibility=a),l&&(x.readonly=l),o&&(x.override=o),f.type!=="Identifier"&&f.type!=="AssignmentPattern"&&this.raise(te.UnsupportedParameterPropertyKind,x),x.parameter=f,this.finishNode(x,"TSParameterProperty")}return i.length&&(u.decorators=i),f}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(te.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(te.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,n,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(te.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let A=this.tsTryParseGenericAsyncArrowFunction(i);if(A)return n.stop=!0,A}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Un(this.state.type)){let A=super.parseTaggedTemplateExpression(r,i,n);return A.typeParameters=u,A}if(!s&&this.eat(10)){let A=this.startNodeAt(i);return A.callee=r,A.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(A.arguments),A.typeParameters=u,n.optionalChainMember&&(A.optional=a),this.finishCallExpression(A,n.optionalChainMember)}let f=this.state.type;if(f===48||f===52||f!==10&&f!==93&&f!==120&&Ps(f)&&!this.hasPrecedingLineBreak())return;let x=this.startNodeAt(i);return x.expression=r,x.typeParameters=u,this.finishNode(x,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(te.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(r,n))),l}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!((i=s.extra)!=null&&i.parenthesized)&&(r.typeParameters=s.typeParameters,r.callee=s.expression)}parseExprOp(r,i,s){let n;if(jn(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(i);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(E.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,n){this.state.isAmbientContext||super.checkReservedWord(r,i,s,n)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(te.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(Be(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(te.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=r;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,i,s||n);if(!n)return a;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(te.UsingDeclarationInAmbientContext,r,i),a;for(let{id:o,init:l}of a.declarations)l&&(i==="var"||i==="let"||o.typeAnnotation?this.raise(te.InitializerNotAllowedInAmbientContext,l):x6(l,this.hasPlugin("estree"))||this.raise(te.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return a}parseStatementContent(r,i){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let s=this.state.type,n=this.startNode();this.next();let a=s===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,i);return a?(s===125&&(a.declare=!0),a):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),s===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,127,!1,i)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,128,!1,i)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(s)}break}}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>Fd(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:te.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(te.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,i,s,n){let a=this.tsTryParseIndexSignature(i);if(a){r.body.push(a),i.abstract&&this.raise(te.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(te.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(te.IndexSignatureHasDeclare,i),i.override&&this.raise(te.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(te.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(te.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(te.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(te.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,i,s)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(te.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=Be(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(te.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(te.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(te.PrivateElementHasAbstract,r),r.accessibility&&this.raise(te.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(te.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(te.ConstructorHasTypeParameters,l);let{declare:u=!1,kind:f}=i;u&&(f==="get"||f==="set")&&this.raise(te.DeclareAccessor,i,{kind:f}),l&&(i.typeParameters=l),super.pushClassMethod(r,i,s,n,a,o)}pushClassPrivateMethod(r,i,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(i.typeParameters=a),super.pushClassPrivateMethod(r,i,s,n)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass)if(r.superClass.type==="TSInstantiationExpression"){let i=r.superClass,s=i.expression;this.takeSurroundingComments(s,s.start,s.end);let n=i.typeParameters;this.takeSurroundingComments(n,n.start,n.end),r.superClass=s,r.superTypeParameters=n}else(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,n,a,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(r.typeParameters=u),super.parseObjPropValue(r,i,s,n,a,o,l)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,a,o,l;let u,f,x;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(u=this.state.clone(),f=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!f.error)return f.node;let{context:I}=this.state,k=I[I.length-1];(k===De.j_oTag||k===De.j_expr)&&I.pop()}if(!((s=f)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!u||u===this.state)&&(u=this.state.clone());let A,C=this.tryParse(I=>{var k,N;A=this.tsParseTypeParameters(this.tsParseConstModifier);let D=super.parseMaybeAssign(r,i);return(D.type!=="ArrowFunctionExpression"||(k=D.extra)!=null&&k.parenthesized)&&I(),((N=A)==null?void 0:N.params.length)!==0&&this.resetStartLocationFromNode(D,A),D.typeParameters=A,D},u);if(!C.error&&!C.aborted)return A&&this.reportReservedArrowTypeParam(A),C.node;if(!f&&(Bd(!this.hasPlugin("jsx")),x=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!x.error))return x.node;if((n=f)!=null&&n.node)return this.state=f.failState,f.node;if(C.node)return this.state=C.failState,A&&this.reportReservedArrowTypeParam(A),C.node;if((a=x)!=null&&a.node)return this.state=x.failState,x.node;throw((o=f)==null?void 0:o.error)||C.error||((l=x)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var i;r.params.length===1&&!r.params[0].constraint&&!((i=r.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(te.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(te.UnexpectedTypeCastInParameter,r):this.raise(te.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s,n){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(n!==64||!s)&&["expression",!0];default:return super.isValidLVal(r,i,s,n)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(r,i);return n.typeParameters=s,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(te.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableListItem(r,i,s){let n=r[i];n.type==="TSTypeCastExpression"&&(r[i]=this.typeCastToParameter(n)),super.toAssignableListItem(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(te.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,i,s,n,a,o,l){let u=super.parseMethod(r,i,s,n,a,o,l);if((u.abstract||u.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?u.value:u).body){let{key:A}=u;this.raise(te.AbstractMethodHasImplementation,u,{methodName:A.type==="Identifier"&&!u.computed?A.name:`[${this.input.slice(this.offsetToSourcePos(A.start),this.offsetToSourcePos(A.end))}]`})}return u}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,a){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",a=i?"local":"exported",o=r[n],l,u=!1,f=!0,x=o.loc.start;if(this.isContextual(93)){let C=this.parseIdentifier();if(this.isContextual(93)){let I=this.parseIdentifier();zt(this.state.type)?(u=!0,o=C,l=i?this.parseIdentifier():this.parseModuleExportName(),f=!1):(l=I,f=!1)}else zt(this.state.type)?(f=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=C)}else zt(this.state.type)&&(u=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&s&&this.raise(i?te.TypeModifierIsUsedInTypeImports:te.TypeModifierIsUsedInTypeExports,x),r[n]=o,r[a]=l;let A=i?"importKind":"exportKind";r[A]=u?"type":"value",f&&this.eatContextual(93)&&(r[a]=i?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=this.cloneIdentifier(r[n])),i&&this.checkIdentifier(r[a],u?4098:4096)}fillOptionalPropertiesForTSESLint(r){var i,s,n,a,o,l,u,f,x,A,C,I,k,N,D,F,ie,H,$,fe,_e,qe,it,vt,Ct,Ot,Lt,er,Kr,dr,z,K,M,G,ce,be,Fe,Ne,Ue,Le,je,Ke,We,Ae,Je,Ge,mt,yt;switch(r.type){case"ExpressionStatement":(i=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(s=r.decorators)!=null||(r.decorators=[]),(n=r.optional)!=null||(r.optional=!1),(a=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(o=r.accessibility)!=null||(r.accessibility=void 0),(l=r.decorators)!=null||(r.decorators=[]),(u=r.override)!=null||(r.override=!1),(f=r.readonly)!=null||(r.readonly=!1),(x=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(A=r.declare)!=null||(r.declare=!1),(C=r.returnType)!=null||(r.returnType=void 0),(I=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(k=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(N=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(D=r.accessibility)!=null||(r.accessibility=void 0),(F=r.readonly)!=null||(r.readonly=!1),(ie=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(H=r.declare)!=null||(r.declare=!1),($=r.definite)!=null||(r.definite=!1),(fe=r.readonly)!=null||(r.readonly=!1),(_e=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(qe=r.accessibility)!=null||(r.accessibility=void 0),(it=r.decorators)!=null||(r.decorators=[]),(vt=r.override)!=null||(r.override=!1),(Ct=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(Ot=r.id)!=null||(r.id=null);case"ClassDeclaration":(Lt=r.abstract)!=null||(r.abstract=!1),(er=r.declare)!=null||(r.declare=!1),(Kr=r.decorators)!=null||(r.decorators=[]),(dr=r.implements)!=null||(r.implements=[]),(z=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(K=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(M=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(G=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(ce=r.const)!=null||(r.const=!1),(be=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(Fe=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(Ne=r.qualifier)!=null||(r.qualifier=null),(Ue=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(Le=r.declare)!=null||(r.declare=!1),(je=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(Ke=r.optional)!=null||(r.optional=!1),(We=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(Ae=r.declare)!=null||(r.declare=!1),(Je=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(Ge=r.const)!=null||(r.const=!1),(mt=r.in)!=null||(r.in=!1),(yt=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,i){if(lr(r)){if(Eu.lastIndex=i,Eu.test(this.input)){let s=this.codePointAtPos(Eu.lastIndex);if(!ii(s)&&s!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(i,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifier(i,r)||i===34||i===39}};function g6(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:em(e.object)}function x6(e,t){var r;let{type:i}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(i==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(Zd(e,t)||b6(e,t)||i==="TemplateLiteral"&&e.expressions.length===0||g6(e))}function Zd(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function b6(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:i}=e;if(r==="-"&&Zd(i,t))return!0}return!1}function em(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:em(e.object)}var jd=or`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),E6=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s,n){return r==="Placeholder"||super.isValidLVal(r,i,s,n)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(r,i){var s;((s=r.label)==null?void 0:s.type)!=="Placeholder"&&super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){var s;if(i.type!=="Placeholder"||(s=i.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(i,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=r;return n.name=i.name,this.finishPlaceholder(n,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let n=i?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,n);throw this.raise(jd.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,n)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);let n=r;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(Fr(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(jd.UnexpectedSpace,this.state.lastTokEndLoc)}},P6=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),Be(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(i,s);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},Rd=["minimal","fsharp","hack","smart"],qd=["^^","@@","^","%","#"];function A6(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let i=e.get("decorators").decoratorsBeforeExport;if(i!=null&&typeof i!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=e.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let i=e.get("pipelineOperator").proposal;if(!Rd.includes(i)){let s=Rd.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(i==="hack"){var r;if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=e.get("pipelineOperator").topicToken;if(!qd.includes(s)){let n=qd.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}if(s==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(i==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(e.has("deprecatedImportAssert")||e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){let i=e.get("recordAndTuple").syntaxType;if(i!=null){let s=["hash","bar"];if(!s.includes(i))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(n=>`'${n}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let i=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw i.missingPlugins="doExpressions",i}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var tm={estree:w8,jsx:a6,flow:r6,typescript:S6,v8intrinsic:P6,placeholders:E6},v6=Object.keys(tm),Ju=class extends Vu{checkProto(t,r,i,s){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return i;let n=t.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?r?(this.raise(E.RecordNoProto,n),!0):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(E.DuplicateProto,n)),!0):i}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(E.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(E.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,i=this.parseMaybeAssign(t);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let i=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let l=this.parseYield(i);return r&&(l=r.call(this,l,i)),l}let n;t?n=!1:(t=new ki,n=!0);let{type:a}=this.state;(a===10||Be(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,i)),k8(this.state.type)){let l=this.startNodeAt(i),u=this.state.value;if(l.operator=u,this.match(29)){this.toAssignable(o,!0),l.left=o;let f=i.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=f&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=f&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=f&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=f&&(t.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression"),void 0,void 0,void 0,void 0,u==="||="||u==="&&="||u==="??="),l}else n&&this.checkExpressionErrors(t,!0);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Ps(l):Ps(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(E.YieldNotInGeneratorFunction,i),this.parseYield(i)}return o}parseMaybeConditional(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,t)}parseConditional(t,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(t,r,i){if(this.isPrivateName(t)){let n=this.getPrivateNameSV(t);(i>=jn(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(E.PrivateInExpectedIn,t,{identifierName:n}),this.classScope.usePrivateName(n,t.loc.start)}let s=this.state.type;if(M8(s)&&(this.prodParam.hasIn||!this.match(58))){let n=jn(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(n=jn(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(E.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let u=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),f=this.state.type;if(l&&(f===41||f===42)||o&&f===40)throw this.raise(E.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,r,i)}}return t}parseExprOpRightExpr(t,r){let i=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(E.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),i)});default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,q8(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return b8.has(i.type)&&!((t=i.extra)!=null&&t.parenthesized)&&this.raise(E.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(E.PipeTopicUnused,r),i}checkExponentialAfterUnary(t){this.match(57)&&this.raise(E.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let l=this.parseAwait(i);return r||this.checkExponentialAfterUnary(l),l}let n=this.match(34),a=this.startNode();if(F8(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&l){let u=a.argument;u.type==="Identifier"?this.raise(E.StrictDelete,a):this.hasPropertyAsPrivateName(u)&&this.raise(E.DeletePrivateField,a)}if(!n)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,n,t);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Ps(l):Ps(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(E.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(t,r,i){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;B8(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(t,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return t}parseSubscript(t,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(t,r,i,s);if(Un(n))return this.parseTaggedTemplateExpression(t,r,s);let a=!1;if(n===18){if(i&&(this.raise(E.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,s);s.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,s,o,a):this.stopParseSubscript(t,s)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,i,s,n){let a=this.startNodeAt(r);return a.object=t,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(E.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,i,s){let n=this.startNodeAt(r);return n.object=t,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(t,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:u}=i;l&&(this.expressionScope.enter(d6()),a=new ki),u&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,a);let f=this.finishCallExpression(o,u);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),f)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(f)),this.state.maybeInArrowParameters=n,f}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,i){let s=this.startNodeAt(r);return s.tag=t,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(E.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(E.ImportCallArity,t);else for(let i of t.arguments)i.type==="SpreadElement"&&this.raise(E.ImportCallSpreadArgument,i);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,i){let s=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,i,t))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&ws(t,r.innerComments),r.callee.trailingComments&&ws(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(E.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(E.UnsupportedBind,n)}case 139:return this.raise(E.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);throw this.unexpected()}case 47:{let n=this.input.codePointAt(this.nextTokenStart());throw lr(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(Be(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Be(l))return n&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Et(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,t,s)}finishTopicReference(t,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s))return i==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(E.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(E.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(E.PipeTopicUnconfiguredToken,r,{token:Fr(s)})}testTopicReferenceConfiguration(t,r,i){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Fr(i)}]);case"smart":return i===27;default:throw this.raise(E.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Rn(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(E.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=i,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(E.SuperNotAllowed,t):this.scope.allowSuper||this.optionFlags&16||this.raise(E.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(E.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(Et(this.state.startLoc,1)),i=this.state.value;return this.next(),t.id=this.createIdentifier(r,i),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,i){t.meta=r;let s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==i||s)&&this.raise(E.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(E.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,i){return this.addExtra(i,"rawValue",t),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=t,this.next(),this.finishNode(i,r)}parseLiteral(t,r){let i=this.startNode();return this.parseLiteralAtNode(t,r,i)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(h6());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new ki,u=!0,f,x;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){x=this.state.startLoc;break}if(this.match(21)){let I=this.state.startLoc;if(f=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),I)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,l,this.parseParenItem))}let A=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let C=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(C=this.parseArrow(C))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(C,o,!1),C):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),x&&this.unexpected(x),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,A)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(t);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let i=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(E.UnexpectedNewTarget,i),i}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),i=this.parseNoCallExpr();t.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(E.ImportCallNotNewExpression,i)}parseTemplateElement(t){let{start:r,startLoc:i,end:s,value:n}=this.state,a=r+1,o=this.startNodeAt(Et(i,1));n===null&&(t||this.raise(E.InvalidEscapeSequenceTemplate,Et(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),u=l?-1:-2,f=s+u;o.value={raw:this.input.slice(a,f).replace(/\r\n?/g,`
|
|
22
|
+
`),cooked:n===null?null:n.slice(1,u)},o.tail=l,this.next();let x=this.finishNode(o,"TemplateElement");return this.resetEndLocation(x,Et(this.state.lastTokEndLoc,u)),x}parseTemplate(t){let r=this.startNode(),i=this.parseTemplateElement(t),s=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(t));return r.expressions=n,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let f;r?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(s),a=this.checkProto(f,i,a,s)),i&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(E.InvalidRecordProperty,f),f.shorthand&&this.addExtra(f,"shorthand",!0),l.properties.push(f)}this.next(),this.state.inFSharpPipelineDirectBody=n;let u="ObjectExpression";return r?u="ObjectPattern":i&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(E.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc;if(this.parsePropertyName(i,t),!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let{key:u}=i,f=u.name;f==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(i)),(f==="get"||f==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(u),i.kind=f,this.match(55)&&(o=!0,this.raise(E.AccessorIsGenerator,this.state.curPosition(),{kind:f}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,s,!1,n,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let i=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==i&&this.raise(t.kind==="get"?E.BadGetterArity:E.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(E.BadSetterRestParameter,t)}parseObjectMethod(t,r,i,s,n){if(n){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,i,s){if(t.shorthand=!1,this.eat(14))return t.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),i)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(E.InvalidCoverInitializedName,n),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,i,s,n,a,o){let l=this.parseObjectMethod(t,i,s,n,a)||this.parseObjectProperty(t,r,n,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if(zt(i))n=this.parseIdentifier(!0);else switch(i){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(E.UnexpectedPrivateField,a),n=this.parsePrivateName();break}default:if(i===137){n=this.parseDecimalLiteral(s);break}this.unexpected()}t.key=n,i!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,i,s,n,a,o=!1){this.initFunction(t,i),t.generator=r,this.scope.enter(530|(o?576:0)|(n?32:0)),this.prodParam.enter(Rn(i,t.generator)),this.parseFunctionParams(t,s);let l=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,i){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!r,i,n),this.state.inFSharpPipelineDirectBody=s,this.finishNode(n,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,i,s){this.scope.enter(518);let n=Rn(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(t,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,i){this.toAssignableList(r,i,!1),t.params=r}parseFunctionBodyAndFinish(t,r,i=!1){return this.parseFunctionBody(t,!1,i),this.finishNode(t,r)}parseFunctionBody(t,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(Qd()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(t.params);o&&l&&this.raise(E.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let u=!n&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!i&&!l,r,u),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,u)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,i=t.length;r<i;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,i,s=!0){let n=!r&&new Set,a={type:"FormalParameters"};for(let o of t.params)this.checkLVal(o,a,5,n,s)}parseExprList(t,r,i,s){let n=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(t,r,i))}return n}parseExprListItem(t,r,i,s){let n;if(this.match(12))r||this.raise(E.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let a=this.state.startLoc;n=this.parseParenItem(this.parseSpread(i),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(E.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),n=this.finishNode(a,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(t,i,this.parseParenItem);return n}parseIdentifier(t){let r=this.startNode(),i=this.parseIdentifierName(t);return this.createIdentifier(r,i)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}createIdentifierAt(t,r,i){return t.name=r,t.loc.identifierName=r,this.finishNodeAt(t,"Identifier",i)}parseIdentifierName(t){let r,{startLoc:i,type:s}=this.state;zt(s)?r=this.state.value:this.unexpected();let n=O8(s);return t?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(t,r,i,s){if(t.length>10||!z8(t))return;if(i&&W8(t)){this.raise(E.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?s?$d:Xd:Yd)(t,this.inModule)){this.raise(E.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(E.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(E.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(E.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(E.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(E.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(E.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Un(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(E.YieldInParameter,r);let i=!1,s=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:s=this.parseMaybeAssign()}return r.delegate=i,r.argument=s,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(E.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(E.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let i=this.startNodeAt(r);return i.callee=t,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=t,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(E.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(E.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,i){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(t===3?93:t===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(t){}},Pu={kind:1},C6={kind:2},I6=/[\uD800-\uDFFF]/u,Au=/in(?:stanceof)?/y;function w6(e,t,r){for(let i=0;i<e.length;i++){let s=e[i],{type:n}=s;if(typeof n=="number"){if(n===139){let{loc:a,start:o,value:l,end:u}=s,f=o+1,x=Et(a.start,1);e.splice(i,1,new ar({type:br(27),value:"#",start:o,end:f,startLoc:a.start,endLoc:x}),new ar({type:br(132),value:l,start:f,end:u,startLoc:x,endLoc:a.end})),i++;continue}if(Un(n)){let{loc:a,start:o,value:l,end:u}=s,f=o+1,x=Et(a.start,1),A;t.charCodeAt(o-r)===96?A=new ar({type:br(22),value:"`",start:o,end:f,startLoc:a.start,endLoc:x}):A=new ar({type:br(8),value:"}",start:o,end:f,startLoc:a.start,endLoc:x});let C,I,k,N;n===24?(I=u-1,k=Et(a.end,-1),C=l===null?null:l.slice(1,-1),N=new ar({type:br(22),value:"`",start:I,end:u,startLoc:k,endLoc:a.end})):(I=u-2,k=Et(a.end,-2),C=l===null?null:l.slice(1,-2),N=new ar({type:br(23),value:"${",start:I,end:u,startLoc:k,endLoc:a.end})),e.splice(i,1,A,new ar({type:br(20),value:C,start:f,end:I,startLoc:x,endLoc:k}),N),i+=2;continue}s.type=br(n)}}return e}var Yu=class extends Ju{parseTopLevel(t,r){return t.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),t.comments=this.comments,this.optionFlags&256&&(t.tokens=w6(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,r,i){if(t.sourceType=i,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(E.ModuleExportUndefined,a,{localName:n});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(t,"Program"):s=this.finishNodeAt(t,"Program",Et(this.state.startLoc,-1)),s}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),i=this.castNodeTo(t.expression,"DirectiveLiteral"),s=i.value,n=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),a=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",a),this.addExtra(i,"expressionValue",s),r.value=i,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let i=this.lookaheadCharCodeSince(t+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(lr(t)){if(Au.lastIndex=r,Au.test(this.input)){let i=this.codePointAtPos(Au.lastIndex);if(!ii(i)&&i!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let i=this.state.type,s=this.startNode(),n=!!(t&2),a=!!(t&4),o=t&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?E.StrictFunction:this.options.annexB?E.SloppyFunctionAnnexB:E.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(E.AwaitUsingNotInAsyncContext,s):this.raise(E.UnexpectedLexicalDeclaration,s):this.raise(E.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(E.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(E.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let f=this.nextTokenStart(),x=this.codePointAtPos(f);if(x!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(x,f)&&x!==123))break}case 75:n||this.raise(E.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let f=this.state.value;return this.parseVarStatement(s,f)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let f=this.lookaheadCharCode();if(f===40||f===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(E.UnexpectedImportExport,this.state.startLoc),this.next();let f;return i===83?f=this.parseImport(s):f=this.parseExport(s,r),this.assertModuleNodeAllowed(f),f}default:if(this.isAsyncFunction())return n||this.raise(E.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let l=this.state.value,u=this.parseExpression();return Be(i)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,t):this.parseExpressionStatement(s,u,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(E.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,i){if(t){var s;(s=r.decorators)!=null&&s.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(E.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),i&&this.resetStartLocationFromNode(i,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(E.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(E.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let n=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(i,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==i&&this.raise(E.DecoratorArgumentsOutsideParentheses,n)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(i,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=t,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((t.label==null||s.name===t.label.name)&&(s.kind!=null&&(r||s.kind===1)||t.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(E.IllegalBreakContinue,t,{type:s})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(Pu),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Pu);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let i=this.isContextual(100);{let l=this.isAwaitUsing(),u=l||this.isForUsing(),f=i&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||f){let x=this.startNode(),A;l?(A="await using",this.recordAwaitIfAllowed()||this.raise(E.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):A=this.state.value,this.next(),this.parseVar(x,!0,A);let C=this.finishNode(x,"VariableDeclaration"),I=this.match(58);return I&&u&&this.raise(E.ForInUsing,C),(I||this.isContextual(102))&&C.declarations.length===1?this.parseForIn(t,C,r):(r!==null&&this.unexpected(r),this.parseFor(t,C))}}let s=this.isContextual(95),n=new ki,a=this.parseExpression(!0,n),o=this.isContextual(102);if(o&&(i&&this.raise(E.ForOfLet,a),r===null&&s&&a.type==="Identifier"&&this.raise(E.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:l}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,i){return this.next(),this.parseFunction(t,1|(i?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(E.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(C6),this.scope.enter(256);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),n?i.test=this.parseExpression():(s&&this.raise(E.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(E.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(E.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,i=!1){return this.next(),this.parseVar(t,!1,r,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Pu),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(E.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,i,s){for(let a of this.state.labels)a.name===r&&this.raise(E.LabelRedeclaration,i,{labelName:r});let n=L8(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=n;else break}return this.state.labels.push({name:r,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,i){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,i){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,i,s,n){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,s,n)}parseBlockOrModuleBlockBody(t,r,i,s,n){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let u=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(u)){let f=this.stmtToDirective(u);r.push(f),!o&&f.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}t.push(u)}n?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):t.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(E.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(E.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,r,i,s=!1){let n=t.declarations=[];for(t.kind=i;;){let a=this.startNode();if(this.parseVarId(a,i),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!s&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(E.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(E.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(E.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(E.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=i}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(i&&this.raise(E.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Rn(a,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Be(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(f6()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,i),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:t},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(E.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let a=this.startNode();s.length&&(a.decorators=s,this.resetStartLocationFromNode(a,s[0]),s=[]),this.parseClassMember(n,a,i),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(E.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),s.length)throw this.raise(E.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(t,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(t,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,i,s)}parseClassMemberWithIsStatic(t,r,i,s){let n=r,a=r,o=r,l=r,u=r,f=n,x=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){f.kind="method";let D=this.match(139);if(this.parseClassElementName(f),this.parsePostMemberNameModifiers(f),D){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(E.ConstructorIsGenerator,n.key),this.pushClassMethod(t,n,!0,!1,!1,!1);return}let A=!this.state.containsEsc&&Be(this.state.type),C=this.parseClassElementName(r),I=A?C.name:null,k=this.isPrivateName(C),N=this.state.startLoc;if(this.parsePostMemberNameModifiers(x),this.isClassMethod()){if(f.kind="method",k){this.pushClassPrivateMethod(t,a,!1,!1);return}let D=this.isNonstaticConstructor(n),F=!1;D&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(E.DuplicateConstructor,C),D&&this.hasPlugin("typescript")&&r.override&&this.raise(E.OverrideOnConstructor,C),i.hadConstructor=!0,F=i.hadSuperClass),this.pushClassMethod(t,n,!1,!1,D,F)}else if(this.isClassProperty())k?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(I==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(C);let D=this.eat(55);x.optional&&this.unexpected(N),f.kind="method";let F=this.match(139);this.parseClassElementName(f),this.parsePostMemberNameModifiers(x),F?this.pushClassPrivateMethod(t,a,D,!0):(this.isNonstaticConstructor(n)&&this.raise(E.ConstructorIsAsync,n.key),this.pushClassMethod(t,n,D,!0,!1,!1))}else if((I==="get"||I==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(C),f.kind=I;let D=this.match(139);this.parseClassElementName(n),D?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(E.ConstructorIsAccessor,n.key),this.pushClassMethod(t,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(I==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(C);let D=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,u,D)}else this.isLineTerminator()?k?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:i}=this.state;if((r===132||r===134)&&t.static&&i==="prototype"&&this.raise(E.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(E.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return t.key=s,s}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var i;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(E.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(E.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let i=this.parseClassPrivateProperty(r);t.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(t,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(E.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);t.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,r,i,s,n,a){t.body.push(this.parseMethod(r,i,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(n);let a=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(Qd()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,i,s=8331){if(Be(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,s);else if(i||!r)t.id=null;else throw this.raise(E.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let i=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,i),n=!s||this.eat(12),a=n&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),l=n&&(!o||this.eat(12)),u=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(E.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let f=this.maybeParseExportNamedSpecifiers(t);s&&n&&!a&&!f&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let x;if(u||f){if(x=!1,r)throw this.raise(E.UnsupportedDecoratorExport,t);this.parseExportFrom(t,u)}else x=this.maybeParseExportDeclaration(t);if(u||f||x){var A;let C=t;if(this.checkExport(C,!0,!1,!!C.source),((A=C.declaration)==null?void 0:A.type)==="ClassDeclaration")this.maybeTakeDecorators(r,C.declaration,C);else if(r)throw this.raise(E.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(C,"ExportNamedDeclaration")}if(this.eat(65)){let C=t,I=this.parseExportDefaultExpression();if(C.declaration=I,I.type==="ClassDeclaration")this.maybeTakeDecorators(r,I,C);else if(r)throw this.raise(E.UnsupportedDecoratorExport,t);return this.checkExport(C,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(C,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,i;(i=(r=t).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(E.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(E.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Be(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),n=this.input.charCodeAt(s);if(n===123||this.chStartsBindingIdentifier(n,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Be(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(E.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(E.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(E.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,i,s){if(r){var n;if(i){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(E.ExportDefaultFromAsIdentifier,o)}}else if((n=t.specifiers)!=null&&n.length)for(let o of t.specifiers){let{exported:l}=o,u=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,u),!s&&o.local){let{local:f}=o;f.type!=="Identifier"?this.raise(E.ExportBindingIsString,o,{localName:f.value,exportName:u}):(this.checkReservedWord(f.name,f.loc.start,!0,!1),this.scope.checkLocalExport(f))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(t,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(E.DuplicateDefaultExport,t):this.raise(E.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,n,t,s))}return r}parseExportSpecifier(t,r,i,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=I6.exec(t.value);return r&&this.raise(E.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,i=r.length===1?r[0].type:null;if(t.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(E.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(E.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(E.ImportReflectionNotBinding,r[0].loc.start),((s=t.assertions)==null?void 0:s.length)>0&&this.raise(E.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let i=r.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});i!==void 0&&this.raise(E.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let i=this.startNode(),s=this.parseIdentifierName(!0),{type:n}=this.state;return(zt(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(t,r,s,i.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(i,s))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Be(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(t);return s&&!n&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,i){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(t,r,i=8201){return this.checkLVal(t.local,{type:r},i),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(E.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(E.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(E.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(E.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(E.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(E.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!i&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,t.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(zt(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(E.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(134),n=this.isContextual(130);i.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(i,s,t.importKind==="type"||t.importKind==="typeof",n,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,i,s,n){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(E.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(t,"ImportSpecifier",n)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Vn=class extends Yu{constructor(t,r,i){let s=C8(t);super(s,r),this.options=s,this.initializeScopes(),this.plugins=i,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let n=0;s.allowAwaitOutsideFunction&&(n|=1),s.allowReturnOutsideFunction&&(n|=2),s.allowImportExportEverywhere&&(n|=8),s.allowSuperOutsideMethod&&(n|=16),s.allowUndeclaredExports&&(n|=64),s.allowNewTargetOutsideFunction&&(n|=4),s.allowYieldOutsideFunction&&(n|=32),s.ranges&&(n|=128),s.tokens&&(n|=256),s.createImportExpressions&&(n|=512),s.createParenthesizedExpressions&&(n|=1024),s.errorRecovery&&(n|=2048),s.attachComment&&(n|=4096),s.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return Is}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let i=this.parseTopLevel(t,r);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}};function N6(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let i=As(t,e),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",As(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return t.sourceType="script",As(t,e).parse()}catch{}throw i}}else return As(t,e).parse()}function _6(e,t){let r=As(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function O6(e){let t={};for(let r of Object.keys(e))t[r]=br(e[r]);return t}var D6=O6(_8);function As(e,t){let r=Vn,i=new Map;if(e!=null&&e.plugins){for(let s of e.plugins){let n,a;typeof s=="string"?n=s:[n,a]=s,i.has(n)||i.set(n,a||{})}A6(i),r=k6(i)}return new r(e,t,i)}var Ud=new Map;function k6(e){let t=[];for(let s of v6)e.has(s)&&t.push(s);let r=t.join("|"),i=Ud.get(r);if(!i){i=Vn;for(let s of t)i=tm[s](i);Ud.set(r,i)}return i}Ns.parse=N6;Ns.parseExpression=_6;Ns.tokTypes=D6});var tc=_(xe=>{"use strict";d();Object.defineProperty(xe,"__esModule",{value:!0});xe.Var=xe.User=xe.Statement=xe.SpreadProperty=xe.Scope=xe.RestProperty=xe.ReferencedMemberExpression=xe.ReferencedIdentifier=xe.Referenced=xe.Pure=xe.NumericLiteralTypeAnnotation=xe.Generated=xe.ForAwaitStatement=xe.Flow=xe.Expression=xe.ExistentialTypeParam=xe.BlockScoped=xe.BindingIdentifier=void 0;var Sre=xe.ReferencedIdentifier=["Identifier","JSXIdentifier"],gre=xe.ReferencedMemberExpression=["MemberExpression"],xre=xe.BindingIdentifier=["Identifier"],bre=xe.Statement=["Statement"],Ere=xe.Expression=["Expression"],Pre=xe.Scope=["Scopable","Pattern"],Are=xe.Referenced=null,vre=xe.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],Cre=xe.Var=["VariableDeclaration"],Ire=xe.User=null,wre=xe.Generated=null,Nre=xe.Pure=null,_re=xe.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],Ore=xe.RestProperty=["RestElement"],Dre=xe.SpreadProperty=["RestElement"],kre=xe.ExistentialTypeParam=["ExistsTypeAnnotation"],Lre=xe.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],Mre=xe.ForAwaitStatement=["ForOfStatement"]});var im=_((jre,rm)=>{"use strict";d();var Fi=1e3,ji=Fi*60,Ri=ji*60,si=Ri*24,L6=si*7,M6=si*365.25;rm.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return B6(e);if(r==="number"&&isFinite(e))return t.long?j6(e):F6(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function B6(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*M6;case"weeks":case"week":case"w":return r*L6;case"days":case"day":case"d":return r*si;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ri;case"minutes":case"minute":case"mins":case"min":case"m":return r*ji;case"seconds":case"second":case"secs":case"sec":case"s":return r*Fi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function F6(e){var t=Math.abs(e);return t>=si?Math.round(e/si)+"d":t>=Ri?Math.round(e/Ri)+"h":t>=ji?Math.round(e/ji)+"m":t>=Fi?Math.round(e/Fi)+"s":e+"ms"}function j6(e){var t=Math.abs(e);return t>=si?Yn(e,t,si,"day"):t>=Ri?Yn(e,t,Ri,"hour"):t>=ji?Yn(e,t,ji,"minute"):t>=Fi?Yn(e,t,Fi,"second"):e+" ms"}function Yn(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}});var nm=_((qre,sm)=>{"use strict";d();function R6(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=im(),r.destroy=u,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let x=0;for(let A=0;A<f.length;A++)x=(x<<5)-x+f.charCodeAt(A),x|=0;return r.colors[Math.abs(x)%r.colors.length]}r.selectColor=t;function r(f){let x,A=null,C,I;function k(...N){if(!k.enabled)return;let D=k,F=Number(new Date),ie=F-(x||F);D.diff=ie,D.prev=x,D.curr=F,x=F,N[0]=r.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let H=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(fe,_e)=>{if(fe==="%%")return"%";H++;let qe=r.formatters[_e];if(typeof qe=="function"){let it=N[H];fe=qe.call(D,it),N.splice(H,1),H--}return fe}),r.formatArgs.call(D,N),(D.log||r.log).apply(D,N)}return k.namespace=f,k.useColors=r.useColors(),k.color=r.selectColor(f),k.extend=i,k.destroy=r.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>A!==null?A:(C!==r.namespaces&&(C=r.namespaces,I=r.enabled(f)),I),set:N=>{A=N}}),typeof r.init=="function"&&r.init(k),k}function i(f,x){let A=r(this.namespace+(typeof x>"u"?":":x)+f);return A.log=this.log,A}function s(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let x=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let A of x)A[0]==="-"?r.skips.push(A.slice(1)):r.names.push(A)}function n(f,x){let A=0,C=0,I=-1,k=0;for(;A<f.length;)if(C<x.length&&(x[C]===f[A]||x[C]==="*"))x[C]==="*"?(I=C,k=A,C++):(A++,C++);else if(I!==-1)C=I+1,k++,A=k;else return!1;for(;C<x.length&&x[C]==="*";)C++;return C===x.length}function a(){let f=[...r.names,...r.skips.map(x=>"-"+x)].join(",");return r.enable(""),f}function o(f){for(let x of r.skips)if(n(f,x))return!1;for(let x of r.names)if(n(f,x))return!0;return!1}function l(f){return f instanceof Error?f.stack||f.message:f}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}sm.exports=R6});var am=_((Nt,Xn)=>{"use strict";d();Nt.formatArgs=U6;Nt.save=K6;Nt.load=V6;Nt.useColors=q6;Nt.storage=J6();Nt.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Nt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function q6(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function U6(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Xn.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),e.splice(i,0,t)}Nt.log=console.debug||console.log||(()=>{});function K6(e){try{e?Nt.storage.setItem("debug",e):Nt.storage.removeItem("debug")}catch{}}function V6(){let e;try{e=Nt.storage.getItem("debug")||Nt.storage.getItem("DEBUG")}catch{}return!e&&typeof v<"u"&&"env"in v&&(e=v.env.DEBUG),e}function J6(){try{return localStorage}catch{}}Xn.exports=nm()(Nt);var{formatters:Y6}=Xn.exports;Y6.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var rc=_(at=>{"use strict";d();Object.defineProperty(at,"__esModule",{value:!0});at.isBindingIdentifier=d9;at.isBlockScoped=g9;at.isExpression=y9;at.isFlow=A9;at.isForAwaitStatement=I9;at.isGenerated=E9;at.isPure=P9;at.isReferenced=S9;at.isReferencedIdentifier=f9;at.isReferencedMemberExpression=h9;at.isRestProperty=v9;at.isScope=T9;at.isSpreadProperty=C9;at.isStatement=m9;at.isUser=b9;at.isVar=x9;var X6=me(),{isBinding:W6,isBlockScoped:$6,isExportDeclaration:H6,isExpression:z6,isFlow:G6,isForStatement:Q6,isForXStatement:Z6,isIdentifier:om,isImportDeclaration:e9,isImportSpecifier:t9,isJSXIdentifier:r9,isJSXMemberExpression:i9,isMemberExpression:s9,isRestElement:lm,isReferenced:Wn,isScope:n9,isStatement:a9,isVar:o9,isVariableDeclaration:l9,react:u9,isForOfStatement:c9}=X6,{isCompatTag:p9}=u9;function f9(e){let{node:t,parent:r}=this;return om(t,e)?Wn(t,r,this.parentPath.parent):r9(t,e)?!i9(r)&&p9(t.name)?!1:Wn(t,r,this.parentPath.parent):!1}function h9(){let{node:e,parent:t}=this;return s9(e)&&Wn(e,t)}function d9(){let{node:e,parent:t}=this,r=this.parentPath.parent;return om(e)&&W6(e,t,r)}function m9(){let{node:e,parent:t}=this;return a9(e)?!(l9(e)&&(Z6(t,{left:e})||Q6(t,{init:e}))):!1}function y9(){return this.isIdentifier()?this.isReferencedIdentifier():z6(this.node)}function T9(){return n9(this.node,this.parent)}function S9(){return Wn(this.node,this.parent)}function g9(){return $6(this.node)}function x9(){return o9(this.node)}function b9(){var e;return!!((e=this.node)!=null&&e.loc)}function E9(){return!this.isUser()}function P9(e){return this.scope.isPure(this.node,e)}function A9(){let{node:e}=this;return G6(e)?!0:e9(e)?e.importKind==="type"||e.importKind==="typeof":H6(e)?e.exportKind==="type":t9(e)?e.importKind==="type"||e.importKind==="typeof":!1}function v9(){var e;return lm(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function C9(){var e;return lm(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function I9(){return c9(this.node,{await:!0})}at.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};at.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var Os=_(ai=>{"use strict";d();Object.defineProperty(ai,"__esModule",{value:!0});ai.environmentVisitor=M9;ai.explode=gm;ai.isExplodedVisitor=Sm;ai.merge=bm;ai.verify=xm;var Tm=tc(),w9=rc(),N9=me(),um=Kt(),{DEPRECATED_KEYS:cm,DEPRECATED_ALIASES:pm,FLIPPED_ALIAS_KEYS:fm,TYPES:_9,__internal__deprecationWarning:hm}=N9;function O9(e){return e in Tm}function Sm(e){return e?._exploded}function gm(e){if(Sm(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(ni(r))continue;let i=r.split("|");if(i.length===1)continue;let s=e[r];delete e[r];for(let n of i)e[n]=s}xm(e),delete e.__esModule,D9(e),ym(e);for(let r of Object.keys(e)){if(ni(r)||!O9(r))continue;let i=e[r];for(let n of Object.keys(i))i[n]=k9(r,i[n]);delete e[r];let s=Tm[r];if(s!==null)for(let n of s){var t;(t=e[n])!=null||(e[n]={}),_s(e[n],i)}else _s(e,i)}for(let r of Object.keys(e)){if(ni(r))continue;let i=fm[r];if(r in cm){let n=cm[r];hm(r,n,"Visitor "),i=[n]}else if(r in pm){let n=pm[r];hm(r,n,"Visitor "),i=fm[n]}if(!i)continue;let s=e[r];delete e[r];for(let n of i){let a=e[n];a?_s(a,s):e[n]=Object.assign({},s)}}for(let r of Object.keys(e))ni(r)||ym(e[r]);return e}function xm(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&dm(t,e[t]),ni(t))continue;if(!_9.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.29.7`);let r=e[t];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")dm(`${t}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${i}`)}e._verified=!0}}function dm(e,t){let r=[].concat(t);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof i}`)}function bm(e,t=[],r){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let s=0;s<e.length;s++){let n=gm(e[s]),a=t[s],o=n;(a||r)&&(o=mm(o,a,r)),_s(i,o);for(let l of Object.keys(n)){if(ni(l))continue;let u=n[l];(a||r)&&(u=mm(u,a,r));let f=i[l]||(i[l]={});_s(f,u)}}return i}function mm(e,t,r){let i={};for(let s of["enter","exit"]){let n=e[s];Array.isArray(n)&&(n=n.map(function(a){let o=a;return t&&(o=function(l){a.call(t,l,t)}),r&&(o=r(t?.key,s,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[s]=n)}return i}function D9(e){for(let t of Object.keys(e)){if(ni(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function ym(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function k9(e,t){let r=`is${e}`,i=w9[r],s=function(n){if(i.call(n))return t.apply(this,arguments)};return s.toString=()=>t.toString(),s}function ni(e){return!!(e.startsWith("_")||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist")}function _s(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var L9={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():um.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():um.requeueComputedKeyAndDecorators.call(e))}};function M9(e){return bm([L9,e])}});var Em=_(Hn=>{"use strict";d();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.default=void 0;var $n=me(),B9=$n,F9=zn(),j9=Os(),R9=Kt(),{getAssignmentIdentifiers:q9}=B9,U9={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():R9.requeueComputedKeyAndDecorators.call(e)),e.isSwitchStatement()&&e.context.maybeQueue(e.get("discriminant")))},ObjectProperty({node:e,scope:t},r){let{name:i}=e.key;if(e.shorthand&&(i===r.oldName||i===r.newName)&&t.getBindingIdentifier(i)===r.binding.identifier){var s;e.shorthand=!1,(s=e.extra)!=null&&s.shorthand&&(e.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?q9(e.node):e.getOuterBindingIdentifiers();for(let i in r)i===t.oldName&&(r[i].name=t.newName)}},ic=class{constructor(t,r,i){this.newName=i,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if($n.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:i}=this,{scope:s,path:n}=t,a=n.find(u=>u.isDeclaration()||u.isFunctionExpression()||u.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:!0};$n.isMethod(o)&&(o.computed&&(l.key=!0),$n.isObjectMethod(o)||(l.decorators=!0)),(0,F9.traverseNode)(o,(0,j9.explode)(U9),s,this,s.path,l),arguments[0]||(s.removeOwnBinding(r),s.bindings[i]=t,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};Hn.default=ic});var Pm=_(sc=>{"use strict";d();Object.defineProperty(sc,"__esModule",{value:!0});sc.default=W9;var K9=me(),V9=qi(),J9=Os(),Y9=Kt(),{VISITOR_KEYS:X9}=K9;function W9(e,t,r){let i=(0,J9.explode)(t);if(i.enter||i.exit)throw new Error("Should not be used with enter/exit visitors.");s(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function s(n,a,o,l,u,f,x,A){if(!o)return;let C=A||V9.NodePath.get({hub:x,parentPath:n,parent:a,container:l,listKey:f,key:u});Y9._forceSetScope.call(C);let I=i[o.type];if(I!=null&&I.enter)for(let N of I.enter)N.call(r,C,r);if(C.shouldSkip)return;let k=X9[o.type];if(k!=null&&k.length){for(let N of k){let D=o[N];if(D)if(Array.isArray(D))for(let F=0;F<D.length;F++){let ie=D[F];s(C,o,ie,D,F,N)}else s(C,o,D,o,N,null)}if(I!=null&&I.exit)for(let N of I.exit)N.call(r,C,r)}}}});var Am=_(Gn=>{"use strict";d();Object.defineProperty(Gn,"__esModule",{value:!0});Gn.default=void 0;var nc=class{constructor({identifier:t,scope:r,path:i,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&$9(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};Gn.default=nc;function $9(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:i}=e;r;{parentPath:r,key:i}=r){if(r.isFunctionParent())return!1;if(i==="left"&&r.isForXStatement()||t&&i==="body"&&r.isLoop())return!0}return!1}});var oi=_(kt=>{"use strict";d();Object.defineProperty(kt,"__esModule",{value:!0});kt.clear=z9;kt.clearPath=vm;kt.clearScope=Cm;kt.getCachedPaths=G9;kt.getOrCreateCachedPaths=Q9;kt.scope=kt.path=void 0;var Qn=kt.path=new WeakMap,H9=kt.scope=new WeakMap;function z9(){vm(),Cm()}function vm(){kt.path=Qn=new WeakMap}function Cm(){kt.scope=H9=new WeakMap}function G9(e){let{parent:t,parentPath:r}=e;return Qn.get(t)}function Q9(e,t){let r=Qn.get(e);return r||Qn.set(e,r=new Map),r}});var Im=_((tie,Z9)=>{Z9.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var wm=_((rie,e5)=>{e5.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var uc=_(ea=>{"use strict";d();Object.defineProperty(ea,"__esModule",{value:!0});ea.default=void 0;var t5=Em(),jm=qi(),iie=Pm(),r5=Am(),Rm=me(),qm=Rm,Nm=oi(),i5=Im(),s5=wm(),{assignmentExpression:n5,callExpression:_m,cloneNode:Om,getBindingIdentifiers:Um,identifier:ui,isArrayExpression:Km,isBinary:a5,isCallExpression:Dm,isClass:o5,isClassBody:l5,isClassDeclaration:u5,isExportAllDeclaration:Vm,isExportDefaultDeclaration:c5,isExportNamedDeclaration:ac,isFunctionDeclaration:p5,isIdentifier:li,isImportDeclaration:oc,isLiteral:f5,isMemberExpression:h5,isMethod:d5,isModuleSpecifier:m5,isNullLiteral:y5,isObjectExpression:T5,isProperty:S5,isPureish:g5,isRegExpLiteral:x5,isSuper:b5,isTaggedTemplateExpression:E5,isTemplateLiteral:Jm,isThisExpression:km,isUnaryExpression:P5,isVariableDeclaration:A5,expressionStatement:v5,matchesPattern:Lm,memberExpression:lc,numericLiteral:C5,toIdentifier:I5,variableDeclaration:w5,variableDeclarator:N5,isObjectProperty:_5,isTopicReference:Mm,isMetaProperty:O5,isPrivateName:D5,isExportDeclaration:k5,buildUndefinedNode:L5,sequenceExpression:M5}=Rm;function Xe(e,t){switch(e?.type){default:if(oc(e)||k5(e)){var r;if((Vm(e)||ac(e)||oc(e))&&e.source)Xe(e.source,t);else if((ac(e)||oc(e))&&(r=e.specifiers)!=null&&r.length)for(let i of e.specifiers)Xe(i,t);else(c5(e)||ac(e))&&e.declaration&&Xe(e.declaration,t)}else m5(e)?Xe(e.local,t):f5(e)&&!y5(e)&&!x5(e)&&!Jm(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Xe(e.object,t),Xe(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Xe(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let i of e.properties)Xe(i,t);break;case"SpreadElement":case"RestElement":Xe(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Xe(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),Xe(e.argument,t);break;case"AwaitExpression":t.push("await"),Xe(e.argument,t);break;case"AssignmentExpression":Xe(e.left,t);break;case"VariableDeclarator":Xe(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Xe(e.id,t);break;case"PrivateName":Xe(e.id,t);break;case"ParenthesizedExpression":Xe(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Xe(e.argument,t);break;case"MetaProperty":Xe(e.meta,t),Xe(e.property,t);break;case"JSXElement":Xe(e.openingElement,t);break;case"JSXOpeningElement":Xe(e.name,t);break;case"JSXFragment":Xe(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Xe(e.namespace,t),Xe(e.name,t);break}}function Bm(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function B5(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}var Fm=Symbol.for("should not be considered a local binding"),F5={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){qm.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:i}=e;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(Vm(t))return;let i=t.declaration;if(u5(i)||p5(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n?.reference(e)}else if(A5(i))for(let s of i.declarations)for(let n of Object.keys(Um(s))){let a=r.getBinding(n);a?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let s=e.node.id.name;e.scope.bindings[s]=e.scope.parent.getBinding(s)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[Fm]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[Fm]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},Zn,j5=0,Gt=class e{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,i=Nm.scope.get(r);if(i?.path===t)return i;Nm.scope.set(r,this),this.uid=j5++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var t;let r,i=this.path;do{var s;let n=i.key==="key"||i.listKey==="decorators";i=i.parentPath,n&&i.isMethod()&&(i=i.parentPath),(s=i)!=null&&s.isScope()&&(r=i)}while(i&&!r);return(t=r)==null?void 0:t.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),Om(r)}generateUidIdentifier(t){return ui(this.generateUid(t))}generateUid(t="temp"){t=I5(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,i=0;do r=`_${t}`,i>=11?r+=i-1:i>=9?r+=i-9:i>=1&&(r+=i+1),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}generateUidBasedOnNode(t,r){let i=[];Xe(t,i);let s=i.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return ui(this.generateUidBasedOnNode(t,r))}isStatic(t){if(km(t)||b5(t)||Mm(t))return!0;if(li(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let i=this.generateUidIdentifierBasedOnNode(t);return r?i:(this.push({id:i}),Om(i))}}checkBlockScopedCollisions(t,r,i,s){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${i}"`,TypeError)}rename(t,r){let i=this.getBinding(t);i&&(r||(r=this.generateUidIdentifier(t).name),new t5.default(i,t,r).rename(arguments[2]))}dump(){let t="-".repeat(60);console.log(t);let r=this;do{console.log("#",r.block.type);for(let i of Object.keys(r.bindings)){let s=r.bindings[i];console.log(" -",i,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(r=r.parent);console.log(t)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:i}=t.node;for(let s of r)this.registerBinding(i==="using"||i==="await using"?"const":i,s)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",i=t.get("specifiers");for(let s of i){let n=r||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(n?"unknown":"module",s)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return L5()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let s of Object.keys(r)){var i;(i=this.getBinding(s))==null||i.reassign(t)}}registerBinding(t,r,i=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(t,o);return}let s=this.getProgramParent(),n=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let o of n[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,t,a,o)}l?l.reassign(i):this.bindings[a]=new r5.default({identifier:o,scope:this,path:i,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(li(t)){let a=this.getBinding(t.name);return a?r?a.constant:!0:!1}else{if(km(t)||O5(t)||Mm(t)||D5(t))return!0;if(o5(t)){var i;return t.superClass&&!this.isPure(t.superClass,r)||((i=t.decorators)==null?void 0:i.length)>0?!1:this.isPure(t.body,r)}else if(l5(t)){for(let a of t.body)if(!this.isPure(a,r))return!1;return!0}else{if(a5(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(Km(t)||t?.type==="TupleExpression"){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(T5(t)||t?.type==="RecordExpression"){for(let a of t.properties)if(!this.isPure(a,r))return!1;return!0}else if(d5(t)){var s;return!(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0)}else if(S5(t)){var n;return!(t.computed&&!this.isPure(t.key,r)||((n=t.decorators)==null?void 0:n.length)>0||(_5(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(P5(t))return this.isPure(t.argument,r);if(Jm(t)){for(let a of t.expressions)if(!this.isPure(a,r))return!1;return!0}else return E5(t)?Lm(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):h5(t)?!t.computed&&li(t.object)&&t.object.name==="Symbol"&&li(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):Dm(t)?Lm(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&qm.isStringLiteral(t.arguments[0]):g5(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let i=r.data[t];if(i!=null)return i}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;Bm(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let i=r,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Zn||(Zn=jm.default.visitors.merge([{Scope(n){Bm(n.scope)}},F5])),t.type!=="Program"){let n=Zn[t.type];if(n)for(let a of n.enter)a.call(s,t,s)}t.traverse(Zn,s),this.crawling=!1;for(let n of s.assignments){let a=n.getAssignmentIdentifiers();for(let o of Object.keys(a))n.scope.getBinding(o)||i.addGlobal(a[o]);n.scope.registerConstantViolation(n)}for(let n of s.references){let a=n.scope.getBinding(n.node.name);a?a.reference(n):i.addGlobal(n.node)}for(let n of s.constantViolations)n.scope.registerConstantViolation(n)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:i,unique:s,kind:n="var",id:a}=t;if(!i&&!s&&(n==="var"||n==="let")&&B5(r)&&Dm(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&li(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,l=`declaration:${n}:${o}`,u=!s&&r.getData(l);if(!u){let A=w5(n,[]);A._blockHoist=o,[u]=r.unshiftContainer("body",[A]),s||r.setData(l,u)}let f=N5(a,i),x=u.node.declarations.push(f);r.scope.registerBinding(n,u.get("declarations")[x-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in t||(t[i]=r.bindings[i]);r=r.parent}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,i;do{let n=r.getOwnBinding(t);if(n){var s;if(!((s=i)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r?.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let i,s,n;typeof r=="object"?(i=r.noGlobals,s=r.noUids,n=r.upToScope):typeof r=="boolean"&&(i=r);let a=this;do{if(n===a)break;if(a.hasOwnBinding(t))return!0}while(a=a.parent);return!!(!s&&this.hasUid(t)||!i&&e.globals.includes(t)||!i&&e.contextVariables.includes(t))}parentHasBinding(t,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(t,r)}moveBindingTo(t,r){let i=this.getBinding(t);i&&(i.scope.removeOwnBinding(t),i.scope=r,r.bindings[t]=i)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);let i=this;do i.uids[t]&&(i.uids[t]=!1);while(i=i.parent)}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let i of Object.keys(this.bindings)){let s=this.bindings[i];if(!s)continue;let{path:n}=s;if(!n.isVariableDeclarator())continue;let{parent:a,parentPath:o}=n;if(a.kind!=="var"||r.has(a))continue;r.add(n.parent);let l,u=[];for(let f of a.declarations){l??(l=f.id),f.init&&u.push(n5("=",f.id,f.init));let x=Object.keys(Um(f,!1,!0,!0));for(let A of x)t(ui(A),f.init!=null)}if(o.parentPath.isForXStatement({left:a}))o.replaceWith(l);else if(u.length===0)o.remove();else{let f=u.length===1?u[0]:M5(u);o.parentPath.isForStatement({init:a})?o.replaceWith(f):o.replaceWith(v5(f))}}}};ea.default=Gt;Gt.globals=[...i5,...s5];Gt.contextVariables=["arguments","undefined","Infinity","NaN"];Gt.prototype._renameFromMap=function(t,r,i,s){t[r]&&(t[i]=s,t[r]=null)};Gt.prototype.traverse=function(e,t,r){(0,jm.default)(e,t,this,r,this.path)};Gt.prototype._generateUid=function(t,r){let i=t;return r>1&&(i+=r),`_${i}`};Gt.prototype.toArray=function(t,r,i){if(li(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(Km(t))return t;if(li(t,{name:"arguments"}))return _m(lc(lc(lc(ui("Array"),ui("prototype")),ui("slice")),ui("call")),[t]);let s,n=[t];return r===!0?s="toConsumableArray":typeof r=="number"?(n.push(C5(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),_m(this.path.hub.addHelper(s),n)};Gt.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let i of t){let s=this;do{for(let n of Object.keys(s.bindings)){let a=s.bindings[n];a.kind===i&&(r[n]=a)}s=s.parent}while(s)}return r};Object.defineProperties(Gt.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Ym=_(Vt=>{"use strict";d();Object.defineProperty(Vt,"__esModule",{value:!0});Vt.find=K5;Vt.findParent=U5;Vt.getAncestry=W5;Vt.getDeepestCommonAncestorFrom=X5;Vt.getEarliestCommonAncestorFrom=Y5;Vt.getFunctionParent=V5;Vt.getStatementParent=J5;Vt.inType=z5;Vt.isAncestor=$5;Vt.isDescendant=H5;var R5=me(),{VISITOR_KEYS:q5}=R5;function U5(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function K5(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function V5(){return this.findParent(e=>e.isFunction())}function J5(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function Y5(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let s,n=q5[t.type];for(let a of i){let o=a[r+1];if(!s){s=o;continue}if(o.listKey&&s.listKey===o.listKey&&o.key<s.key){s=o;continue}let l=n.indexOf(s.parentKey),u=n.indexOf(o.parentKey);l>u&&(s=o)}return s})}function X5(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,i,s,n=e.map(o=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);return l.length<r&&(r=l.length),l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;i=o,s=l}if(s)return t?t(s,i,n):s;throw new Error("Couldn't find intersection")}function W5(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function $5(e){return e.isDescendant(this)}function H5(e){return!!this.findParent(t=>t===e)}function z5(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1}});var pc=_(cc=>{"use strict";d();Object.defineProperty(cc,"__esModule",{value:!0});cc.createUnionType=t7;var G5=me(),{createFlowUnionType:Xm,createTSUnionType:Wm,createUnionTypeAnnotation:Q5,isFlowType:Z5,isTSType:e7}=G5;function t7(e){if(e.every(t=>Z5(t)))return Xm?Xm(e):Q5(e);if(e.every(t=>e7(t))&&Wm)return Wm(e)}});var Qm=_(fc=>{"use strict";d();Object.defineProperty(fc,"__esModule",{value:!0});fc.default=a7;var r7=me(),Hm=pc(),{BOOLEAN_NUMBER_BINARY_OPERATORS:i7,createTypeAnnotationBasedOnTypeof:s7,numberTypeAnnotation:zm,voidTypeAnnotation:n7}=r7;function a7(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:o7(t,this,e.name);if(e.name==="undefined")return n7();if(e.name==="NaN"||e.name==="Infinity")return zm();e.name}function o7(e,t,r){let i=[],s=[],n=$m(e,t,s),a=Gm(e,t,r);if(a){let o=$m(e,a.ifStatement);n=n.filter(l=>!o.includes(l)),i.push(a.typeAnnotation)}if(n.length){n.push(...s);for(let o of n)i.push(o.getTypeAnnotation())}if(i.length)return(0,Hm.createUnionType)(i)}function $m(e,t,r){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(t);return r&&n==="unknown"&&r.push(s),n==="before"})}function l7(e,t){let r=t.node.operator,i=t.get("right").resolve(),s=t.get("left").resolve(),n;if(s.isIdentifier({name:e})?n=i:i.isIdentifier({name:e})&&(n=s),n)return r==="==="?n.getTypeAnnotation():i7.includes(r)?zm():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(s.isUnaryExpression({operator:"typeof"})?(a=s,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=s),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return s7(l)}function u7(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return t.key==="test"?void 0:i;if(i.isFunction()&&(r==null||i.parentPath.scope.getBinding(r)!==e))return;t=i}}function Gm(e,t,r){let i=u7(e,t,r);if(!i)return;let n=[i.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression())l.node.operator==="&&"&&(n.push(l.get("left")),n.push(l.get("right")));else if(l.isBinaryExpression()){let u=l7(r,l);u&&a.push(u)}}return a.length?{typeAnnotation:(0,Hm.createUnionType)(a),ifStatement:i}:Gm(e,i,r)}});var ay=_(ke=>{"use strict";d();Object.defineProperty(ke,"__esModule",{value:!0});ke.ArrayExpression=iy;ke.AssignmentExpression=D7;ke.BinaryExpression=I7;ke.BooleanLiteral=B7;ke.CallExpression=Y7;ke.ConditionalExpression=N7;ke.ClassDeclaration=ke.ClassExpression=ke.FunctionDeclaration=ke.ArrowFunctionExpression=ke.FunctionExpression=q7;Object.defineProperty(ke,"Identifier",{enumerable:!0,get:function(){return p7.default}});ke.LogicalExpression=w7;ke.NewExpression=A7;ke.NullLiteral=F7;ke.NumericLiteral=M7;ke.ObjectExpression=R7;ke.ParenthesizedExpression=O7;ke.RegExpLiteral=j7;ke.RestElement=sy;ke.SequenceExpression=_7;ke.StringLiteral=L7;ke.TSAsExpression=ry;ke.TSNonNullExpression=P7;ke.TaggedTemplateExpression=X7;ke.TemplateLiteral=v7;ke.TypeCastExpression=ty;ke.UnaryExpression=C7;ke.UpdateExpression=k7;ke.VariableDeclarator=E7;var c7=me(),p7=Qm(),ey=pc(),{BOOLEAN_BINARY_OPERATORS:f7,BOOLEAN_UNARY_OPERATORS:h7,NUMBER_BINARY_OPERATORS:d7,NUMBER_UNARY_OPERATORS:m7,STRING_UNARY_OPERATORS:y7,anyTypeAnnotation:Zm,arrayTypeAnnotation:hc,booleanTypeAnnotation:dc,buildMatchMemberExpression:ta,genericTypeAnnotation:jr,identifier:ci,nullLiteralTypeAnnotation:T7,numberTypeAnnotation:Ui,stringTypeAnnotation:pi,tupleTypeAnnotation:S7,unionTypeAnnotation:g7,voidTypeAnnotation:x7,isIdentifier:b7}=c7;function E7(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function ty(e){return e.typeAnnotation}ty.validParent=!0;function ry(e){return e.typeAnnotation}ry.validParent=!0;function P7(){return this.get("expression").getTypeAnnotation()}function A7(e){if(e.callee.type==="Identifier")return jr(e.callee)}function v7(){return pi()}function C7(e){let t=e.operator;if(t==="void")return x7();if(m7.includes(t))return Ui();if(y7.includes(t))return pi();if(h7.includes(t))return dc()}function I7(e){let t=e.operator;if(d7.includes(t))return Ui();if(f7.includes(t))return dc();if(t==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?Ui():i.isBaseType("string")||r.isBaseType("string")?pi():g7([pi(),Ui()])}}function w7(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,ey.createUnionType)(e)}function N7(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,ey.createUnionType)(e)}function _7(){return this.get("expressions").pop().getTypeAnnotation()}function O7(){return this.get("expression").getTypeAnnotation()}function D7(){return this.get("right").getTypeAnnotation()}function k7(e){let t=e.operator;if(t==="++"||t==="--")return Ui()}function L7(){return pi()}function M7(){return Ui()}function B7(){return dc()}function F7(){return T7()}function j7(){return jr(ci("RegExp"))}function R7(){return jr(ci("Object"))}function iy(){return jr(ci("Array"))}function sy(){return iy()}sy.validParent=!0;function q7(){return jr(ci("Function"))}var U7=ta("Array.from"),K7=ta("Object.keys"),V7=ta("Object.values"),J7=ta("Object.entries");function Y7(){let{callee:e}=this.node;return K7(e)?hc(pi()):U7(e)||V7(e)||b7(e,{name:"Array"})?hc(Zm()):J7(e)?hc(S7([pi(),Zm()])):ny(this.get("callee"))}function X7(){return ny(this.get("tag"))}function ny(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?jr(ci("AsyncIterator")):jr(ci("Promise"));if(t.generator)return jr(ci("Iterator"));if(e.node.returnType)return e.node.returnType}}});var py=_(Rr=>{"use strict";d();Object.defineProperty(Rr,"__esModule",{value:!0});Rr._getTypeAnnotation=cy;Rr.baseTypeStrictlyMatches=dq;Rr.couldBeBaseType=hq;Rr.getTypeAnnotation=pq;Rr.isBaseType=fq;Rr.isGenericType=mq;var oy=ay(),W7=me(),{anyTypeAnnotation:uy,isAnyTypeAnnotation:ra,isArrayTypeAnnotation:$7,isBooleanTypeAnnotation:H7,isEmptyTypeAnnotation:z7,isFlowBaseAnnotation:G7,isGenericTypeAnnotation:Q7,isIdentifier:ly,isMixedTypeAnnotation:Z7,isNumberTypeAnnotation:eq,isStringTypeAnnotation:tq,isTSArrayType:rq,isTSTypeAnnotation:iq,isTSTypeReference:sq,isTupleTypeAnnotation:nq,isTypeAnnotation:aq,isUnionTypeAnnotation:oq,isVoidTypeAnnotation:lq,stringTypeAnnotation:uq,voidTypeAnnotation:cq}=W7;function pq(){let e=this.getData("typeAnnotation");return e!=null||(e=cy.call(this)||uy(),(aq(e)||iq(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var mc=new WeakSet;function cy(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?uq():r.key==="left"&&i.isForOfStatement()?uy():cq()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!mc.has(e)){mc.add(e);try{var t;let r=oy[e.type];if(r)return r.call(this,e);if(r=oy[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{mc.delete(e)}}}function fq(e,t){return yc(e,this.getTypeAnnotation(),t)}function yc(e,t,r){if(e==="string")return tq(t);if(e==="number")return eq(t);if(e==="boolean")return H7(t);if(e==="any")return ra(t);if(e==="mixed")return Z7(t);if(e==="empty")return z7(t);if(e==="void")return lq(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function hq(e){let t=this.getTypeAnnotation();if(ra(t))return!0;if(oq(t)){for(let r of t.types)if(ra(r)||yc(e,r,!0))return!0;return!1}else return yc(e,t,!0)}function dq(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!ra(t)&&G7(t)?r.type===t.type:!1}function mq(e){let t=this.getTypeAnnotation();return e==="Array"&&(rq(t)||$7(t)||nq(t))?!0:Q7(t)&&ly(t.id,{name:e})||sq(t)&&ly(t.typeName,{name:e})}});var hy=_((yie,Tc)=>{"use strict";d();var ye=String,fy=function(){return{isColorSupported:!1,reset:ye,bold:ye,dim:ye,italic:ye,underline:ye,inverse:ye,hidden:ye,strikethrough:ye,black:ye,red:ye,green:ye,yellow:ye,blue:ye,magenta:ye,cyan:ye,white:ye,gray:ye,bgBlack:ye,bgRed:ye,bgGreen:ye,bgYellow:ye,bgBlue:ye,bgMagenta:ye,bgCyan:ye,bgWhite:ye,blackBright:ye,redBright:ye,greenBright:ye,yellowBright:ye,blueBright:ye,magentaBright:ye,cyanBright:ye,whiteBright:ye,bgBlackBright:ye,bgRedBright:ye,bgGreenBright:ye,bgYellowBright:ye,bgBlueBright:ye,bgMagentaBright:ye,bgCyanBright:ye,bgWhiteBright:ye}};Tc.exports=fy();Tc.exports.createColors=fy});var dy=_(ia=>{"use strict";d();Object.defineProperty(ia,"__esModule",{value:!0});ia.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;ia.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var gc=_(Ds=>{"use strict";d();Object.defineProperty(Ds,"__esModule",{value:!0});var Sc=hy(),my=dy(),yy=is();function yq(){return typeof v=="object"&&(v.env.FORCE_COLOR==="0"||v.env.FORCE_COLOR==="false")?!1:Sc.isColorSupported}var sa=(e,t)=>r=>e(t(r));function gy(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:sa(sa(e.white,e.bgRed),e.bold),gutter:e.gray,marker:sa(e.red,e.bold),message:sa(e.red,e.bold),reset:e.reset}}var Tq=gy(Sc.createColors(!0)),Sq=gy(Sc.createColors(!1));function xy(e){return e?Tq:Sq}var gq=new Set(["as","async","from","get","of","set"]),xq=/\r\n|[\n\r\u2028\u2029]/,bq=/^[()[\]{}]$/,by,Eq=/^[a-z][\w-]*$/i,Pq=function(e,t,r){if(e.type==="name"){let i=e.value;if(yy.isKeyword(i)||yy.isStrictReservedWord(i,!0)||gq.has(i))return"keyword";if(Eq.test(i)&&(r[t-1]==="<"||r.slice(t-2,t)==="</"))return"jsxIdentifier";let s=String.fromCodePoint(i.codePointAt(0));if(s!==s.toLowerCase())return"capitalized"}return e.type==="punctuator"&&bq.test(e.value)?"bracket":e.type==="invalid"&&(e.value==="@"||e.value==="#")?"punctuator":e.type};by=function*(e){let t;for(;t=my.default.exec(e);){let r=my.matchToToken(t);yield{type:Pq(r,t.index,e),value:r.value}}};function Ey(e){if(e==="")return"";let t=xy(!0),r="";for(let{type:i,value:s}of by(e))i in t?r+=s.split(xq).map(n=>t[i](n)).join(`
|
|
23
|
+
`):r+=s;return r}var Ty=!1,Sy=/\r\n|[\n\r\u2028\u2029]/;function Aq(e,t,r,i){let s=Object.assign({column:0,line:-1},e.start),n=Object.assign({},s,e.end),{linesAbove:a=2,linesBelow:o=3}=r||{},l=s.line-i,u=s.column,f=n.line-i,x=n.column,A=Math.max(l-(a+1),0),C=Math.min(t.length,f+o);l===-1&&(A=0),f===-1&&(C=t.length);let I=f-l,k={};if(I)for(let N=0;N<=I;N++){let D=N+l;if(!u)k[D]=!0;else if(N===0){let F=t[D-1].length;k[D]=[u,F-u+1]}else if(N===I)k[D]=[0,x];else{let F=t[D-N].length;k[D]=[0,F]}}else u===x?u?k[l]=[u,0]:k[l]=!0:k[l]=[u,x-u];return{start:A,end:C,markerLines:k}}function Py(e,t,r={}){let i=r.forceColor||yq()&&r.highlightCode,s=(r.startLine||1)-1,n=xy(i),a=e.split(Sy),{start:o,end:l,markerLines:u}=Aq(t,a,r,s),f=t.start&&typeof t.start.column=="number",x=String(l+s).length,C=(i?Ey(e):e).split(Sy,l).slice(o,l).map((I,k)=>{let N=o+1+k,F=` ${` ${N+s}`.slice(-x)} |`,ie=u[N],H=!u[N+1];if(ie){let $="";if(Array.isArray(ie)){let fe=I.slice(0,Math.max(ie[0]-1,0)).replace(/[^\t]/g," "),_e=ie[1]||1;$=[`
|
|
24
|
+
`,n.gutter(F.replace(/\d/g," "))," ",fe,n.marker("^").repeat(_e)].join(""),H&&r.message&&($+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(F),I.length>0?` ${I}`:"",$].join("")}else return` ${n.gutter(F)}${I.length>0?` ${I}`:""}`}).join(`
|
|
25
|
+
`);return r.message&&!f&&(C=`${" ".repeat(x+1)}${r.message}
|
|
26
|
+
${C}`),i?n.reset(C):C}function vq(e,t,r,i={}){if(!Ty){Ty=!0;let n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(v.emitWarning)v.emitWarning(n,"DeprecationWarning");else{let a=new Error(n);a.name="DeprecationWarning",console.warn(new Error(n))}}return r=Math.max(r,0),Py(e,{start:{column:r,line:t}},i)}Ds.codeFrameColumns=Py;Ds.default=vq;Ds.highlight=Ey});var Ay=_(na=>{"use strict";d();Object.defineProperty(na,"__esModule",{value:!0});na.hooks=void 0;var Eie=na.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]});var aa=_(qr=>{"use strict";d();Object.defineProperty(qr,"__esModule",{value:!0});qr._assertUnremoved=Ny;qr._callRemovalHooks=Iy;qr._markRemoved=xc;qr._remove=wy;qr._removeFromScope=Cy;qr.remove=Dq;var Cq=Ay(),Iq=oi(),wq=bc(),vy=Pr(),Nq=me(),_q=oa(),Oq=Kt();function Dq(){var e;if(Ny.call(this),Oq.resync.call(this),Iy.call(this)){xc.call(this);return}(e=this.opts)!=null&&e.noScope||Cy.call(this),this.shareCommentsWithSiblings(),wy.call(this),xc.call(this)}function Cy(){let e=Nq.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach(t=>this.scope.removeBinding(t))}function Iy(){if(this.parentPath){for(let e of Cq.hooks)if(e(this,this.parentPath))return!0}}function wy(){Array.isArray(this.container)?(this.container.splice(this.key,1),_q.updateSiblingKeys.call(this,this.key,-1)):wq._replaceWith.call(this,null)}function xc(){if(this._traverseFlags|=vy.SHOULD_SKIP|vy.REMOVED,this.parent){var e;(e=(0,Iq.getCachedPaths)(this))==null||e.delete(this.node)}this.node=null}function Ny(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var Oy=_(la=>{"use strict";d();Object.defineProperty(la,"__esModule",{value:!0});la.default=void 0;var _y=me(),kq=_y,{react:Lq}=_y,{cloneNode:Mq,jsxExpressionContainer:Bq,variableDeclaration:Fq,variableDeclarator:jq}=kq,Rq={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&Lq.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let i=e.scope;do if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;while(i=i.parent);i&&t.breakOnScopePaths.push(i.path)}let r=e.scope.getBinding(e.node.name);if(r){for(let i of r.constantViolations)if(i.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},Ec=class{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let i=this.bindings[r];if(!t.bindingIdentifierEquals(r,i.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(let i of Object.keys(this.bindings)){if(!r.hasOwnBinding(i))continue;let s=this.bindings[i];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=t.key){this.attachAfter=!0,t=s.path;for(let a of s.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let i=r.path.get("body").get("body");for(let s=0;s<i.length;s++)if(!i[s].node._blockHoist)return i[s]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath);return t}hasOwnParamBindings(t){for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let i=this.bindings[r];if(i.kind==="param"&&i.constant)return!0}return!1}run(){if(this.path.traverse(Rq,this),this.mutableBinding)return;this.getCompatibleScopes();let t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref"),i=jq(r,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[n]=t[s]([t.isVariableDeclarator()?i:Fq("var",[i])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=Bq(r)),this.path.replaceWith(Mq(r)),n.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}};la.default=Ec});var oa=_(Jt=>{"use strict";d();Object.defineProperty(Jt,"__esModule",{value:!0});Jt._containerInsert=Ic;Jt._containerInsertAfter=Ly;Jt._containerInsertBefore=wc;Jt._verifyNodeList=ks;Jt.insertAfter=rU;Jt.insertBefore=eU;Jt.pushContainer=sU;Jt.unshiftContainer=iU;Jt.updateSiblingKeys=Fy;var qq=oi(),Cc=Pr(),Pc=Kt(),ua=aa(),Uq=me(),Kq=Oy(),{arrowFunctionExpression:Vq,assertExpression:Jq,assignmentExpression:Yq,blockStatement:Dy,callExpression:Xq,cloneNode:Ac,expressionStatement:vc,isAssignmentExpression:Wq,isCallExpression:$q,isExportNamedDeclaration:ky,isExpression:Hq,isIdentifier:zq,isSequenceExpression:Gq,isSuper:Qq,thisExpression:Zq}=Uq;function eU(e){ua._assertUnremoved.call(this);let t=ks.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||ky(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return wc.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(Dy(n?[s]:[]));return a.unshiftContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function Ic(e,t){Fy.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var i;let a=e+n,o=this.getSibling(a);r.push(o),(i=this.context)!=null&&i.queue&&Pc.pushContext.call(o,this.context)}let s=Pc._getQueueContexts.call(this);for(let n of r){Pc.setScope.call(n),n.debug("Inserted.");for(let a of s)a.maybeQueue(n,!0)}return r}function wc(e){return Ic.call(this,this.key,e)}function Ly(e){return Ic.call(this,this.key+1,e)}var My=e=>e[e.length-1];function By(e){return Gq(e.parent)&&(My(e.parent.expressions)!==e.node||By(e.parentPath))}function tU(e,t){if(!Wq(e)||!zq(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function rU(e){if(ua._assertUnremoved.call(this),this.isSequenceExpression())return My(this.get("expressions")).insertAfter(e);let t=ks.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||ky(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(s=>Hq(s)?vc(s):s));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let s=this;if(s.node){let n=s.node,{scope:a}=this;if(a.path.isPattern())return Jq(n),s.replaceWith(Xq(Vq([],n),[])),s.get("callee.body").insertAfter(t),[s];if(By(s))t.unshift(n);else if($q(n)&&Qq(n.callee))t.unshift(n),t.push(Zq());else if(tU(n,a))t.unshift(n),t.push(Ac(n.left));else if(a.isPure(n,!0))t.push(n);else{r.isMethod({computed:!0,key:n})&&(a=a.parent);let o=a.generateDeclaredUidIdentifier();t.unshift(vc(Yq("=",Ac(o),n))),t.push(vc(Ac(o)))}}return this.replaceExpressionWithStatements(t)}else{if(Array.isArray(this.container))return Ly.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(Dy(n?[s]:[]));return a.pushContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function Fy(e,t){if(!this.parent)return;let r=(0,qq.getCachedPaths)(this);if(r)for(let[,i]of r)typeof i.key=="number"&&i.container===this.container&&i.key>=e&&(i.key+=t)}function ks(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let r=e[t],i;if(r?typeof r!="object"?i="contains a non-object node":r.type?r instanceof Cc.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){let s=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${t} and type of ${s}`)}}return e}function iU(e,t){ua._assertUnremoved.call(this);let r=ks.call(this,t),i=this.node[e],s=Cc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:0}).setContext(this.context);return wc.call(s,r)}function sU(e,t){ua._assertUnremoved.call(this);let r=ks.call(this,t),i=this.node[e];return Cc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:i.length}).setContext(this.context).replaceWithMultiple(r)}Jt.hoist=function(t=this.scope){return new Kq.default(this,t).run()}});var bc=_(Ur=>{"use strict";d();Object.defineProperty(Ur,"__esModule",{value:!0});Ur._replaceWith=Yy;Ur.replaceExpressionWithStatements=DU;Ur.replaceInline=kU;Ur.replaceWith=OU;Ur.replaceWithMultiple=NU;Ur.replaceWithSourceString=_U;var nU=gc(),_c=qi(),aU=Pr(),Ky=oi(),Oc=oa(),oU=Jn(),lU=me(),Ki=Kt(),{FUNCTION_TYPES:jy,arrowFunctionExpression:uU,assignmentExpression:Vy,awaitExpression:cU,blockStatement:pU,buildUndefinedNode:Nc,callExpression:fU,cloneNode:Dc,conditionalExpression:hU,expressionStatement:dU,getBindingIdentifiers:mU,identifier:yU,inheritLeadingComments:TU,inheritTrailingComments:SU,inheritsComments:gU,isBlockStatement:xU,isEmptyStatement:Ry,isExpression:Jy,isExpressionStatement:bU,isIfStatement:EU,isProgram:PU,isStatement:AU,isVariableDeclaration:vU,removeComments:CU,returnStatement:qy,sequenceExpression:IU,validate:Uy,yieldExpression:wU}=lU;function NU(e){var t;Ki.resync.call(this);let r=Oc._verifyNodeList.call(this,e);TU(r[0],this.node),SU(r[r.length-1],this.node),(t=(0,Ky.getCachedPaths)(this))==null||t.delete(this.node),this.node=this.container[this.key]=null;let i=this.insertAfter(e);return this.node?this.requeue():this.remove(),i}function _U(e){Ki.resync.call(this);let t;try{e=`(${e})`,t=(0,oU.parse)(e)}catch(i){let s=i.loc;throw s&&(i.message+=` - make sure this is an expression.
|
|
27
|
+
`+(0,nU.codeFrameColumns)(e,{start:{line:s.line,column:s.column+1}}),i.code="BABEL_REPLACE_SOURCE_ERROR"),i}let r=t.program.body[0].expression;return _c.default.removeProperties(r),this.replaceWith(r)}function OU(e){if(Ki.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof aU.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!PU(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&Jy(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=dU(t),r="expression"),this.isNodeType("Expression")&&AU(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let i=this.node;return i&&(gU(t,i),CU(i)),Yy.call(this,t),this.type=t.type,Ki.setScope.call(this),this.requeue(),[r?this.get(r):this]}function Yy(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?Uy(this.parent,this.key,[e]):Uy(this.parent,this.key,e),this.debug(`Replace with ${e?.type}`),(t=(0,Ky.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function DU(e){Ki.resync.call(this);let t=[],r=ca(e,t);if(r){for(let A of t)this.scope.push({id:A});return this.replaceWith(r)[0].get("expressions")}let i=this.getFunctionParent(),s=i?.node.async,n=i?.node.generator,a=uU([],pU(e));this.replaceWith(fU(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(A=>this.scope.push({id:A}));let l=o.getCompletionRecords();for(let A of l){if(!A.isExpressionStatement())continue;let C=A.findParent(I=>I.isLoop());if(C){let I=C.getData("expressionReplacementReturnUid");I?I=yU(I.name):(I=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",qy(Dc(I))),C.setData("expressionReplacementReturnUid",I)),A.get("expression").replaceWith(Vy("=",Dc(I),A.node.expression))}else A.replaceWith(qy(A.node.expression))}o.arrowFunctionToExpression();let u=o,f=s&&_c.default.hasType(u.node.body,"AwaitExpression",jy),x=n&&_c.default.hasType(u.node.body,"YieldExpression",jy);return f&&(u.set("async",!0),x||this.replaceWith(cU(this.node))),x&&(u.set("generator",!0),this.replaceWith(wU(this.node,!0))),u.get("body.body")}function ca(e,t){let r=[],i=!0;for(let s of e)if(Ry(s)||(i=!1),Jy(s))r.push(s);else if(bU(s))r.push(s.expression);else if(vU(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=mU(n);for(let o of Object.keys(a))t.push(Dc(a[o]));n.init&&r.push(Vy("=",n.id,n.init))}i=!0}else if(EU(s)){let n=s.consequent?ca([s.consequent],t):Nc(),a=s.alternate?ca([s.alternate],t):Nc();if(!n||!a)return;r.push(hU(s.test,n,a))}else if(xU(s)){let n=ca(s.body,t);if(!n)return;r.push(n)}else if(Ry(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push(Nc()),r.length===1?r[0]:IU(r)}function kU(e){if(Ki.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=Oc._verifyNodeList.call(this,e);let t=Oc._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var Hy=_(pa=>{"use strict";d();Object.defineProperty(pa,"__esModule",{value:!0});pa.evaluate=UU;pa.evaluateTruthy=RU;var LU=["Number","String","Math"],MU=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],BU=["random"];function Xy(e){return LU.includes(e)}function FU(e){return MU.includes(e)}function jU(e){return BU.includes(e)}function RU(){let e=this.evaluate();if(e.confident)return!!e.value}function Yt(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var Wy=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function Pt(e,t){let{node:r}=e,{seen:i}=t;if(i.has(r)){let s=i.get(r);if(s.resolved)return s.value;Yt(e,t);return}else{let s={resolved:!1};i.set(r,s);let n=qU(e,t);return t.confident&&(s.resolved=!0,s.value=n),n}}function qU(e,t){if(t.confident){if(e.isSequenceExpression()){let i=e.get("expressions");return Pt(i[i.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return $y(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let i=e.get("tag.object"),{node:{name:s}}=i,n=e.get("tag.property");if(i.isIdentifier()&&s==="String"&&!e.scope.getBinding(s)&&n.isIdentifier()&&n.node.name==="raw")return $y(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let i=Pt(e.get("test"),t);return t.confident?Pt(i?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return Pt(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let i=e.get("property"),s=e.get("object");if(s.isLiteral()){let n=s.node.value,a=typeof n,o=null;if(e.node.computed){if(o=Pt(i,t),!t.confident)return}else i.isIdentifier()&&(o=i.node.name);if((a==="number"||a==="string")&&o!=null&&(typeof o=="number"||typeof o=="string"))return n[o]}}if(e.isReferencedIdentifier()){let i=e.scope.getBinding(e.node.name);if(i){if(i.constantViolations.length>0||e.node.start<i.path.node.end){Yt(i.path,t);return}let l=i.path.scope;if(i.kind==="var"&&l!==i.scope){let u=!l.path.parentPath.isBlockStatement();for(let f=l.parent;f;f=f.parent){var r;if(f===e.scope){if(u){Yt(i.path,t);return}break}(r=f.path.parentPath)!=null&&r.isBlockStatement()&&(u=!0)}}if(i.hasValue)return i.value}let s=e.node.name;if(Wy.has(s)){if(!i)return Wy.get(s);Yt(i.path,t);return}if(!i){Yt(e,t);return}let n=i.path;if(!n.isVariableDeclarator()){Yt(n,t);return}let a=n.get("init"),o=Pt(a,t);if(typeof o=="object"&&o!==null&&i.references>1){Yt(a,t);return}return o}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;let i=e.get("argument");if(e.node.operator==="typeof"&&(i.isFunction()||i.isClass()))return"function";let s=Pt(i,t);if(!t.confident)return;switch(e.node.operator){case"!":return!s;case"+":return+s;case"-":return-s;case"~":return~s;case"typeof":return typeof s}}if(e.isArrayExpression()){let i=[],s=e.get("elements");for(let n of s){let a=n.evaluate();if(a.confident)i.push(a.value);else{Yt(a.deopt,t);return}}return i}if(e.isObjectExpression()){let i={},s=e.get("properties");for(let n of s){if(n.isObjectMethod()||n.isSpreadElement()){Yt(n,t);return}let a=n.get("key"),o;if(n.node.computed){if(o=a.evaluate(),!o.confident){Yt(o.deopt,t);return}o=o.value}else a.isIdentifier()?o=a.node.name:o=a.node.value;let u=n.get("value").evaluate();if(!u.confident){Yt(u.deopt,t);return}u=u.value,i[o]=u}return i}if(e.isLogicalExpression()){let i=t.confident,s=Pt(e.get("left"),t),n=t.confident;t.confident=i;let a=Pt(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":return t.confident=n&&(!!s||o),t.confident?s||a:void 0;case"&&":return t.confident=n&&(!s||o),t.confident?s&&a:void 0;case"??":return t.confident=n&&(s!=null||o),t.confident?s??a:void 0}}if(e.isBinaryExpression()){let i=Pt(e.get("left"),t);if(!t.confident)return;let s=Pt(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return i-s;case"+":return i+s;case"/":return i/s;case"*":return i*s;case"%":return i%s;case"**":return Math.pow(i,s);case"<":return i<s;case">":return i>s;case"<=":return i<=s;case">=":return i>=s;case"==":return i==s;case"!=":return i!=s;case"===":return i===s;case"!==":return i!==s;case"|":return i|s;case"&":return i&s;case"^":return i^s;case"<<":return i<<s;case">>":return i>>s;case">>>":return i>>>s}}if(e.isCallExpression()){let i=e.get("callee"),s,n;if(i.isIdentifier()&&!e.scope.getBinding(i.node.name)&&(Xy(i.node.name)||FU(i.node.name))&&(n=global[i.node.name]),i.isMemberExpression()){let a=i.get("object"),o=i.get("property");if(a.isIdentifier()&&o.isIdentifier()&&Xy(a.node.name)&&!jU(o.node.name)){s=global[a.node.name];let l=o.node.name;hasOwnProperty.call(s,l)&&(n=s[l])}if(a.isLiteral()&&o.isIdentifier()){let l=typeof a.node.value;(l==="string"||l==="number")&&(s=a.node.value,n=s[o.node.name])}}if(n){let a=e.get("arguments").map(o=>Pt(o,t));return t.confident?n.apply(s,a):void 0}}Yt(e,t)}}function $y(e,t,r,i=!1){let s="",n=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;s+=i?o.value.raw:o.value.cooked;let l=a[n++];l&&(s+=String(Pt(l,r)))}if(r.confident)return s}function UU(){let e={confident:!0,deoptPath:null,seen:new Map},t=Pt(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});var zy=_(Xt=>{"use strict";d();Object.defineProperty(Xt,"__esModule",{value:!0});Xt.statements=Xt.statement=Xt.smart=Xt.program=Xt.expression=void 0;var KU=me(),{assertExpressionStatement:VU}=KU;function kc(e){return{code:t=>`/* @babel/template */;
|
|
28
|
+
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var Mie=Xt.smart=kc(e=>e.length>1?e:e[0]),Bie=Xt.statements=kc(e=>e),Fie=Xt.statement=kc(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}),JU=Xt.expression={code:e=>`(
|
|
30
29
|
${e}
|
|
31
|
-
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(
|
|
32
|
-
`+(0,
|
|
30
|
+
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(JU.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return VU(t),t.expression}},jie=Xt.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var fa=_(Ls=>{"use strict";d();Object.defineProperty(Ls,"__esModule",{value:!0});Ls.merge=WU;Ls.normalizeReplacements=HU;Ls.validate=$U;var YU=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function XU(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function WU(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:n=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}}function $U(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}=t,a=XU(t,YU);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(i!=null&&!(i instanceof RegExp)&&i!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(n!=null&&typeof n!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(n===!0&&(r!=null||i!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:i??void 0,preserveComments:s??void 0,syntacticPlaceholders:n??void 0}}function HU(e){if(Array.isArray(e))return e.reduce((t,r,i)=>(t["$"+i]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var Mc=_(Lc=>{"use strict";d();Object.defineProperty(Lc,"__esModule",{value:!0});Lc.default=uK;var zU=me(),GU=Jn(),QU=gc(),{isCallExpression:ZU,isExpressionStatement:eK,isFunction:tK,isIdentifier:rK,isJSXIdentifier:iK,isNewExpression:sK,isPlaceholder:ha,isStatement:nK,isStringLiteral:Gy,removePropertiesDeep:aK,traverse:oK}=zU,lK=/^[_$A-Z0-9]+$/;function uK(e,t,r){let{placeholderWhitelist:i,placeholderPattern:s,preserveComments:n,syntacticPlaceholders:a}=r,o=fK(t,r.parser,a);aK(o,{preserveComments:n}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:i,placeholderPattern:s,syntacticPlaceholders:a};return oK(o,cK,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function cK(e,t,r){var i;let s,n=r.syntactic.placeholders.length>0;if(ha(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,n=!0}else{if(n||r.syntacticPlaceholders)return;if(rK(e)||iK(e))s=e.name;else if(Gy(e))s=e.value;else return}if(n&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!n&&(r.placeholderPattern===!1||!(r.placeholderPattern||lK).test(s))&&!((i=r.placeholderWhitelist)!=null&&i.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;Gy(e)||ha(e,{expectedNode:"StringLiteral"})?l="string":sK(a)&&o==="arguments"||ZU(a)&&o==="arguments"||tK(a)&&o==="params"?l="param":eK(a)&&!ha(e)?(l="statement",t=t.slice(0,-1)):nK(e)&&ha(e)?l="statement":l="other";let{placeholders:u,placeholderNames:f}=n?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:x=>pK(x,t),isDuplicate:f.has(s)}),f.add(s)}function pK(e,t){let r=e;for(let n=0;n<t.length-1;n++){let{key:a,index:o}=t[n];o===void 0?r=r[a]:r=r[a][o]}let{key:i,index:s}=t[t.length-1];return{parent:r,key:i,index:s}}function fK(e,t,r){let i=(t.plugins||[]).slice();r!==!1&&i.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:i});try{return(0,GU.parse)(e,t)}catch(s){let n=s.loc;throw n&&(s.message+=`
|
|
31
|
+
`+(0,QU.codeFrameColumns)(e,{start:n}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var Rc=_(jc=>{"use strict";d();Object.defineProperty(jc,"__esModule",{value:!0});jc.default=SK;var hK=me(),{blockStatement:dK,cloneNode:Fc,emptyStatement:mK,expressionStatement:Bc,identifier:da,isStatement:Qy,isStringLiteral:yK,stringLiteral:TK,validate:Zy}=hK;function SK(e,t){let r=Fc(e.ast);return t&&(e.placeholders.forEach(i=>{if(!hasOwnProperty.call(t,i.name)){let s=i.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
|
|
33
32
|
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
34
33
|
- { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
|
|
35
|
-
- { placeholderPattern: /^${s}$/ }`)}}),Object.keys(t).forEach(i=>{if(!e.placeholderNames.has(i))throw new Error(`Unknown substitution "${i}" given`)})),e.placeholders.slice().reverse().forEach(i=>{try{var s;
|
|
34
|
+
- { placeholderPattern: /^${s}$/ }`)}}),Object.keys(t).forEach(i=>{if(!e.placeholderNames.has(i))throw new Error(`Unknown substitution "${i}" given`)})),e.placeholders.slice().reverse().forEach(i=>{try{var s;gK(i,r,(s=t&&t[i.name])!=null?s:null)}catch(n){throw n.message=`@babel/template placeholder "${i.name}": ${n.message}`,n}}),r}function gK(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>Fc(o)):typeof r=="object"&&(r=Fc(r)));let{parent:i,key:s,index:n}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=TK(r)),!r||!yK(r))throw new Error("Expected string substitution")}else if(e.type==="statement")n===void 0?r?Array.isArray(r)?r=dK(r):typeof r=="string"?r=Bc(da(r)):Qy(r)||(r=Bc(r)):r=mK():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=da(r)),Qy(r)||(r=Bc(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=da(r)),n===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=da(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,l,u){let f=o[l];o[l]=u,(f.type==="Identifier"||f.type==="Placeholder")&&(f.typeAnnotation&&(u.typeAnnotation=f.typeAnnotation),f.optional&&(u.optional=f.optional),f.decorators&&(u.decorators=f.decorators))}if(n===void 0)Zy(i,s,r),a(i,s,r);else{let o=i[s].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(n,1):Array.isArray(r)?o.splice(n,1,...r):a(o,n,r):a(o,n,r),Zy(i,s,o),i[s]=o}}});var eT=_(qc=>{"use strict";d();Object.defineProperty(qc,"__esModule",{value:!0});qc.default=PK;var xK=fa(),bK=Mc(),EK=Rc();function PK(e,t,r){t=e.code(t);let i;return s=>{let n=(0,xK.normalizeReplacements)(s);return i||(i=(0,bK.default)(e,t,r)),e.unwrap((0,EK.default)(i,n))}}});var tT=_(Uc=>{"use strict";d();Object.defineProperty(Uc,"__esModule",{value:!0});Uc.default=IK;var AK=fa(),vK=Mc(),CK=Rc();function IK(e,t,r){let{metadata:i,names:s}=wK(e,t,r);return n=>{let a={};return n.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,AK.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,CK.default)(i,l?Object.assign(l,a):a))}}}function wK(e,t,r){let i="BABEL_TPL$",s=t.join("");do i="$$"+i;while(s.includes(i));let{names:n,code:a}=NK(t,i);return{metadata:(0,vK.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(n.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:n}}function NK(e,t){let r=[],i=e[0];for(let s=1;s<e.length;s++){let n=`${t}${s-1}`;r.push(n),i+=n+e[s]}return{names:r,code:i}}});var oT=_(Kc=>{"use strict";d();Object.defineProperty(Kc,"__esModule",{value:!0});Kc.default=aT;var cr=fa(),rT=eT(),iT=tT(),sT=(0,cr.validate)({placeholderPattern:!1});function aT(e,t){let r=new WeakMap,i=new WeakMap,s=t||(0,cr.validate)(null);return Object.assign((n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return nT((0,rT.default)(e,n,(0,cr.merge)(s,(0,cr.validate)(a[0]))))}else if(Array.isArray(n)){let o=r.get(n);return o||(o=(0,iT.default)(e,n,s),r.set(n,o)),nT(o(a))}else if(typeof n=="object"&&n){if(a.length>0)throw new Error("Unexpected extra params.");return aT(e,(0,cr.merge)(s,(0,cr.validate)(n)))}throw new Error(`Unexpected template param ${typeof n}`)},{ast:(n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,rT.default)(e,n,(0,cr.merge)((0,cr.merge)(s,(0,cr.validate)(a[0])),sT))()}else if(Array.isArray(n)){let o=i.get(n);return o||(o=(0,iT.default)(e,n,(0,cr.merge)(s,sT)),i.set(n,o)),o(a)()}throw new Error(`Unexpected template param ${typeof n}`)}})}function nT(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
|
|
36
35
|
`).slice(3).join(`
|
|
37
36
|
`))}return r=>{try{return e(r)}catch(i){throw i.stack+=`
|
|
38
37
|
=============
|
|
39
|
-
${t}`,i}}}});var lT=w(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.statements=wt.statement=wt.smart=wt.program=wt.expression=wt.default=void 0;var ks=zy(),Ls=oT(),Uc=wt.smart=(0,Ls.default)(ks.smart),DK=wt.statement=(0,Ls.default)(ks.statement),kK=wt.statements=(0,Ls.default)(ks.statements),LK=wt.expression=(0,Ls.default)(ks.expression),MK=wt.program=(0,Ls.default)(ks.program),mte=wt.default=Object.assign(Uc.bind(void 0),{smart:Uc,statement:DK,statements:kK,expression:LK,program:MK,ast:Uc.ast})});var yT=w(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.arrowFunctionToExpression=pV;Er.ensureBlock=lV;Er.ensureFunctionName=PV;Er.splitExportDeclaration=bV;Er.toComputedKey=oV;Er.unwrapFunctionEnvironment=uV;var BK=he(),FK=lT(),Jc=Ns(),jK=qt(),{arrowFunctionExpression:Yc,assignmentExpression:ci,binaryExpression:Kc,blockStatement:RK,callExpression:Ui,conditionalExpression:qK,expressionStatement:pT,identifier:Fe,isIdentifier:UK,jsxIdentifier:KK,logicalExpression:VK,LOGICAL_OPERATORS:JK,memberExpression:zt,metaProperty:YK,numericLiteral:XK,objectExpression:WK,restElement:$K,returnStatement:HK,sequenceExpression:zK,spreadElement:GK,stringLiteral:fT,super:Vc,thisExpression:Ms,toExpression:hT,unaryExpression:QK,toBindingIdentifierName:ZK,isFunction:eV,isAssignmentPattern:tV,isRestElement:rV,getFunctionName:iV,cloneNode:pi,variableDeclaration:sV,variableDeclarator:nV,exportNamedDeclaration:uT,exportSpecifier:cT,inherits:aV}=BK;function oV(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||UK(e)&&(e=fT(e.name)),e}function lV(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],i="body",s,n;e.isStatement()?(n="body",s=0,r.push(e.node)):(i+=".body.0",this.isFunction()?(s="argument",r.push(HK(e.node))):(s="expression",r.push(pT(e.node)))),this.node.body=RK(r);let a=this.get(i);return jK.setup.call(e,a,n?a.node[n]:a.node,n,s),this.node}Er.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function uV(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");dT(this)}function cV(e,t){e.node.type=t}function pV({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(i=>(i=arguments[0])==null?void 0:i.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let i=this;if(!r){var s;i=(s=i.ensureFunctionName(!1))!=null?s:i}let{thisBinding:n,fnPath:a}=dT(i,r,e,t);if(a.ensureBlock(),cV(a,"FunctionExpression"),!r){let o=n?null:a.scope.generateUidIdentifier("arrowCheckId");return o&&a.parentPath.scope.push({id:o,init:WK([])}),a.get("body").unshiftContainer("body",pT(Ui(this.hub.addHelper("newArrowCheck"),[Ms(),Fe(o?o.name:n)]))),a.replaceWith(Ui(zt(a.node,Fe("bind")),[o?Fe(o.name):Ms()])),a.get("callee.object")}return a}var fV=(0,Jc.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function dT(e,t=!0,r=!0,i=!0){let s,n=e.findParent(A=>A.isArrowFunctionExpression()?(s??(s=A),!1):A.isFunction()||A.isProgram()||A.isClassProperty({static:!1})||A.isClassPrivateProperty({static:!1})),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(s)n=s;else if(r)e.replaceWith(Ui(Yc([],hT(e.node)),[])),n=e.get("callee"),e=n.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:f,superCalls:g}=xV(e);if(a&&g.length>0){if(!r)throw g[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!i)throw g[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let A=[];n.traverse(fV,{allSuperCalls:A});let v=TV(n);A.forEach(O=>{let I=Fe(v);I.loc=O.node.callee.loc,O.get("callee").replaceWith(I)})}if(l.length>0){let A=Bs(n,"arguments",()=>{let v=()=>Fe("arguments");return n.scope.path.isProgram()?qK(Kc("===",QK("typeof",v()),fT("undefined")),n.scope.buildUndefinedNode(),v()):v()});l.forEach(v=>{let O=Fe(A);O.loc=v.node.loc,v.replaceWith(O)})}if(u.length>0){let A=Bs(n,"newtarget",()=>YK(Fe("new"),Fe("target")));u.forEach(v=>{let O=Fe(A);O.loc=v.node.loc,v.replaceWith(O)})}if(f.length>0){if(!r)throw f[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");f.reduce((v,O)=>v.concat(dV(O)),[]).forEach(v=>{let O=v.node.computed?"":v.get("property").node.name,I=v.parentPath,_=I.isAssignmentExpression({left:v.node}),L=I.isCallExpression({callee:v.node}),te=I.isTaggedTemplateExpression({tag:v.node}),W=SV(n,_,O),X=[];if(v.node.computed&&X.push(v.get("property").node),_){let we=I.node.right;X.push(we)}let ce=Ui(Fe(W),X);L?(I.unshiftContainer("arguments",Ms()),v.replaceWith(zt(ce,Fe("call"))),o.push(I.get("arguments.0"))):_?I.replaceWith(ce):te?(v.replaceWith(Ui(zt(ce,Fe("bind"),!1),[Ms()])),o.push(v.get("arguments.0"))):v.replaceWith(ce)})}let E;return(o.length>0||!t)&&(E=yV(n,a),(t||a&&mT(n))&&(o.forEach(A=>{let v=A.isJSX()?KK(E):Fe(E);v.loc=A.node.loc,A.replaceWith(v)}),t||(E=null))),{thisBinding:E,fnPath:e}}function hV(e){return JK.includes(e)}function dV(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,i=r.node.operator.slice(0,-1),s=r.node.right,n=hV(i);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;r.get("left").replaceWith(zt(o,ci("=",a,l),!0)),r.get("right").replaceWith(t(n?"=":i,zt(o,Fe(a.name),!0),s))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(zt(a,o)),r.get("right").replaceWith(t(n?"=":i,zt(a,Fe(o.name)),s))}return n?r.replaceWith(VK(i,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,i=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,n=[ci("=",i,zt(e.node.object,s?ci("=",s,e.node.property):e.node.property,e.node.computed)),ci("=",zt(e.node.object,s?Fe(s.name):e.node.property,e.node.computed),Kc(e.parentPath.node.operator[0],Fe(i.name),XK(1)))];e.parentPath.node.prefix||n.push(Fe(i.name)),r.replaceWith(zK(n));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,i,s){return r==="="?ci("=",i,s):Kc(r,i,s)}}function mT(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var mV=(0,Jc.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,ci("=",Fe(r),Fe("this"))])))}});function yV(e,t){return Bs(e,"this",r=>{if(!t||!mT(e))return Ms();e.traverse(mV,{supers:new WeakSet,thisBinding:r})})}function TV(e){return Bs(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return Yc([$K(t)],Ui(Vc(),[GK(Fe(t.name))]))})}function SV(e,t,r){return Bs(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let s=[],n;if(r)n=zt(Vc(),Fe(r));else{let a=e.scope.generateUidIdentifier("prop");s.unshift(a),n=zt(Vc(),Fe(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");s.push(a),n=ci("=",n,Fe(a.name))}return Yc(s,n)})}function Bs(e,t,r){let i="binding:"+t,s=e.getData(i);if(!s){let n=e.scope.generateUidIdentifier(t);s=n.name,e.setData(i,s),e.scope.push({id:n,init:r(s)})}return s}var gV=(0,Jc.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){e.node.name==="this"&&(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})||t.push(e))},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}});function xV(e){let t=[],r=[],i=[],s=[],n=[];return e.traverse(gV,{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}}function bV(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let s=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,l=!1;o?n&&a.hasBinding(o.name)&&(l=!0,o=a.generateUidIdentifier(o.name)):(l=!0,o=a.generateUidIdentifier("default"),(s||n)&&(e.node.id=pi(o)));let u=s?e.node:sV("var",[nV(pi(o),e.node)]),f=uT(null,[cT(pi(o),Fe("default"))]);return this.insertAfter(f),this.replaceWith(u),l&&a.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(s=>cT(Fe(s),Fe(s))),i=uT(null,r);return this.insertAfter(i),this.replaceWith(e.node),this}var EV={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}};function PV(e){if(this.node.id)return this;let t=iV(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)||r.startsWith("get ")||r.startsWith("set "))return null;r=ZK(r.replace(/[/ ]/g,"_"));let i=Fe(r);aV(i,t.originalNode);let s={needsRename:!1,name:r},{scope:n}=this,a=n.getOwnBinding(r);if(a?a.kind==="param"&&(s.needsRename=!0):(n.parent.hasBinding(r)||n.hasGlobal(r))&&this.traverse(EV,s),!s.needsRename)return this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(n.hasBinding(i.name)&&!n.hasGlobal(i.name))return n.rename(i.name),this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(!eV(this.node))return null;let o=n.generateUidIdentifier(i.name),l=[];for(let f=0,g=AV(this.node);f<g;f++)l.push(n.generateUidIdentifier("x"));let u=FK.default.expression.ast`
|
|
38
|
+
${t}`,i}}}});var lT=_(_t=>{"use strict";d();Object.defineProperty(_t,"__esModule",{value:!0});_t.statements=_t.statement=_t.smart=_t.program=_t.expression=_t.default=void 0;var Ms=zy(),Bs=oT(),Vc=_t.smart=(0,Bs.default)(Ms.smart),_K=_t.statement=(0,Bs.default)(Ms.statement),OK=_t.statements=(0,Bs.default)(Ms.statements),DK=_t.expression=(0,Bs.default)(Ms.expression),kK=_t.program=(0,Bs.default)(Ms.program),Zie=_t.default=Object.assign(Vc.bind(void 0),{smart:Vc,statement:_K,statements:OK,expression:DK,program:kK,ast:Vc.ast})});var yT=_(Ar=>{"use strict";d();Object.defineProperty(Ar,"__esModule",{value:!0});Ar.arrowFunctionToExpression=uV;Ar.ensureBlock=aV;Ar.ensureFunctionName=bV;Ar.splitExportDeclaration=gV;Ar.toComputedKey=nV;Ar.unwrapFunctionEnvironment=oV;var LK=me(),MK=lT(),Xc=Os(),BK=Kt(),{arrowFunctionExpression:Wc,assignmentExpression:fi,binaryExpression:Jc,blockStatement:FK,callExpression:Vi,conditionalExpression:jK,expressionStatement:pT,identifier:Re,isIdentifier:RK,jsxIdentifier:qK,logicalExpression:UK,LOGICAL_OPERATORS:KK,memberExpression:Qt,metaProperty:VK,numericLiteral:JK,objectExpression:YK,restElement:XK,returnStatement:WK,sequenceExpression:$K,spreadElement:HK,stringLiteral:fT,super:Yc,thisExpression:Fs,toExpression:hT,unaryExpression:zK,toBindingIdentifierName:GK,isFunction:QK,isAssignmentPattern:ZK,isRestElement:eV,getFunctionName:tV,cloneNode:hi,variableDeclaration:rV,variableDeclarator:iV,exportNamedDeclaration:uT,exportSpecifier:cT,inherits:sV}=LK;function nV(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||RK(e)&&(e=fT(e.name)),e}function aV(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],i="body",s,n;e.isStatement()?(n="body",s=0,r.push(e.node)):(i+=".body.0",this.isFunction()?(s="argument",r.push(WK(e.node))):(s="expression",r.push(pT(e.node)))),this.node.body=FK(r);let a=this.get(i);return BK.setup.call(e,a,n?a.node[n]:a.node,n,s),this.node}Ar.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function oV(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");dT(this)}function lV(e,t){e.node.type=t}function uV({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(i=>(i=arguments[0])==null?void 0:i.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let i=this;if(!r){var s;i=(s=i.ensureFunctionName(!1))!=null?s:i}let{thisBinding:n,fnPath:a}=dT(i,r,e,t);if(a.ensureBlock(),lV(a,"FunctionExpression"),!r){let o=n?null:a.scope.generateUidIdentifier("arrowCheckId");return o&&a.parentPath.scope.push({id:o,init:YK([])}),a.get("body").unshiftContainer("body",pT(Vi(this.hub.addHelper("newArrowCheck"),[Fs(),Re(o?o.name:n)]))),a.replaceWith(Vi(Qt(a.node,Re("bind")),[o?Re(o.name):Fs()])),a.get("callee.object")}return a}var cV=(0,Xc.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function dT(e,t=!0,r=!0,i=!0){let s,n=e.findParent(C=>C.isArrowFunctionExpression()?(s??(s=C),!1):C.isFunction()||C.isProgram()||C.isClassProperty({static:!1})||C.isClassPrivateProperty({static:!1})),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(s)n=s;else if(r)e.replaceWith(Vi(Wc([],hT(e.node)),[])),n=e.get("callee"),e=n.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:f,superCalls:x}=SV(e);if(a&&x.length>0){if(!r)throw x[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!i)throw x[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let C=[];n.traverse(cV,{allSuperCalls:C});let I=mV(n);C.forEach(k=>{let N=Re(I);N.loc=k.node.callee.loc,k.get("callee").replaceWith(N)})}if(l.length>0){let C=js(n,"arguments",()=>{let I=()=>Re("arguments");return n.scope.path.isProgram()?jK(Jc("===",zK("typeof",I()),fT("undefined")),n.scope.buildUndefinedNode(),I()):I()});l.forEach(I=>{let k=Re(C);k.loc=I.node.loc,I.replaceWith(k)})}if(u.length>0){let C=js(n,"newtarget",()=>VK(Re("new"),Re("target")));u.forEach(I=>{let k=Re(C);k.loc=I.node.loc,I.replaceWith(k)})}if(f.length>0){if(!r)throw f[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");f.reduce((I,k)=>I.concat(fV(k)),[]).forEach(I=>{let k=I.node.computed?"":I.get("property").node.name,N=I.parentPath,D=N.isAssignmentExpression({left:I.node}),F=N.isCallExpression({callee:I.node}),ie=N.isTaggedTemplateExpression({tag:I.node}),H=yV(n,D,k),$=[];if(I.node.computed&&$.push(I.get("property").node),D){let _e=N.node.right;$.push(_e)}let fe=Vi(Re(H),$);F?(N.unshiftContainer("arguments",Fs()),I.replaceWith(Qt(fe,Re("call"))),o.push(N.get("arguments.0"))):D?N.replaceWith(fe):ie?(I.replaceWith(Vi(Qt(fe,Re("bind"),!1),[Fs()])),o.push(I.get("arguments.0"))):I.replaceWith(fe)})}let A;return(o.length>0||!t)&&(A=dV(n,a),(t||a&&mT(n))&&(o.forEach(C=>{let I=C.isJSX()?qK(A):Re(A);I.loc=C.node.loc,C.replaceWith(I)}),t||(A=null))),{thisBinding:A,fnPath:e}}function pV(e){return KK.includes(e)}function fV(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,i=r.node.operator.slice(0,-1),s=r.node.right,n=pV(i);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;r.get("left").replaceWith(Qt(o,fi("=",a,l),!0)),r.get("right").replaceWith(t(n?"=":i,Qt(o,Re(a.name),!0),s))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(Qt(a,o)),r.get("right").replaceWith(t(n?"=":i,Qt(a,Re(o.name)),s))}return n?r.replaceWith(UK(i,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,i=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,n=[fi("=",i,Qt(e.node.object,s?fi("=",s,e.node.property):e.node.property,e.node.computed)),fi("=",Qt(e.node.object,s?Re(s.name):e.node.property,e.node.computed),Jc(e.parentPath.node.operator[0],Re(i.name),JK(1)))];e.parentPath.node.prefix||n.push(Re(i.name)),r.replaceWith($K(n));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,i,s){return r==="="?fi("=",i,s):Jc(r,i,s)}}function mT(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var hV=(0,Xc.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,fi("=",Re(r),Re("this"))])))}});function dV(e,t){return js(e,"this",r=>{if(!t||!mT(e))return Fs();e.traverse(hV,{supers:new WeakSet,thisBinding:r})})}function mV(e){return js(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return Wc([XK(t)],Vi(Yc(),[HK(Re(t.name))]))})}function yV(e,t,r){return js(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let s=[],n;if(r)n=Qt(Yc(),Re(r));else{let a=e.scope.generateUidIdentifier("prop");s.unshift(a),n=Qt(Yc(),Re(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");s.push(a),n=fi("=",n,Re(a.name))}return Wc(s,n)})}function js(e,t,r){let i="binding:"+t,s=e.getData(i);if(!s){let n=e.scope.generateUidIdentifier(t);s=n.name,e.setData(i,s),e.scope.push({id:n,init:r(s)})}return s}var TV=(0,Xc.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){e.node.name==="this"&&(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})||t.push(e))},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}});function SV(e){let t=[],r=[],i=[],s=[],n=[];return e.traverse(TV,{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}}function gV(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let s=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,l=!1;o?n&&a.hasBinding(o.name)&&(l=!0,o=a.generateUidIdentifier(o.name)):(l=!0,o=a.generateUidIdentifier("default"),(s||n)&&(e.node.id=hi(o)));let u=s?e.node:rV("var",[iV(hi(o),e.node)]),f=uT(null,[cT(hi(o),Re("default"))]);return this.insertAfter(f),this.replaceWith(u),l&&a.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(s=>cT(Re(s),Re(s))),i=uT(null,r);return this.insertAfter(i),this.replaceWith(e.node),this}var xV={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}};function bV(e){if(this.node.id)return this;let t=tV(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)||r.startsWith("get ")||r.startsWith("set "))return null;r=GK(r.replace(/[/ ]/g,"_"));let i=Re(r);sV(i,t.originalNode);let s={needsRename:!1,name:r},{scope:n}=this,a=n.getOwnBinding(r);if(a?a.kind==="param"&&(s.needsRename=!0):(n.parent.hasBinding(r)||n.hasGlobal(r))&&this.traverse(xV,s),!s.needsRename)return this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(n.hasBinding(i.name)&&!n.hasGlobal(i.name))return n.rename(i.name),this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(!QK(this.node))return null;let o=n.generateUidIdentifier(i.name),l=[];for(let f=0,x=EV(this.node);f<x;f++)l.push(n.generateUidIdentifier("x"));let u=MK.default.expression.ast`
|
|
40
39
|
(function (${o}) {
|
|
41
40
|
function ${i}(${l}) {
|
|
42
|
-
return ${
|
|
41
|
+
return ${hi(o)}.apply(this, arguments);
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
${
|
|
46
|
-
return ${
|
|
44
|
+
${hi(i)}.toString = function () {
|
|
45
|
+
return ${hi(o)}.toString();
|
|
47
46
|
}
|
|
48
47
|
|
|
49
|
-
return ${
|
|
48
|
+
return ${hi(i)};
|
|
50
49
|
})(${hT(this.node)})
|
|
51
|
-
`;return this.replaceWith(u)[0].get("arguments.0")}function AV(e){let t=e.params.findIndex(r=>tV(r)||rV(r));return t===-1?e.params.length:t}});var ET=w(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge._guessExecutionStatusRelativeTo=YV;Ge._resolve=bT;Ge.canHaveVariableDeclarationOrExpression=FV;Ge.canSwapBetweenExpressionAndStatement=jV;Ge.getSource=KV;Ge.isCompletionRecord=RV;Ge.isConstantExpression=HV;Ge.isInStrictMode=zV;Ge.isNodeType=BV;Ge.isStatementOrBlock=qV;Ge.isStatic=MV;Ge.matchesPattern=LV;Ge.referencesImport=UV;Ge.resolve=$V;Ge.willIMaybeExecuteBefore=VV;var vV=he(),{STATEMENT_OR_BLOCK_KEYS:CV,VISITOR_KEYS:IV,isBlockStatement:xT,isExpression:wV,isIdentifier:NV,isLiteral:_V,isStringLiteral:OV,isType:DV,matchesPattern:kV}=vV;function LV(e,t){return kV(this.node,e,t)}Ge.has=function(t){var r;let i=(r=this.node)==null?void 0:r[t];return i&&Array.isArray(i)?!!i.length:!!i};function MV(){return this.scope.isStatic(this.node)}Ge.is=Ge.has;Ge.isnt=function(t){return!this.has(t)};Ge.equals=function(t,r){return this.node[t]===r};function BV(e){return DV(this.type,e)}function FV(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function jV(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?xT(e):this.isBlockStatement()?wV(e):!1}function RV(e){let t=this,r=!0;do{let{type:i,container:s}=t;if(!r&&(t.isFunction()||i==="StaticBlock"))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function qV(){return this.parentPath.isLabeledStatement()||xT(this.container)?!1:CV.includes(this.key)}function UV(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?OV(this.node.property,{value:t}):this.node.property.name===t)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(r?.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===e){if(!t)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&t==="default"||i.isImportNamespaceSpecifier()&&t==="*"||i.isImportSpecifier()&&NV(i.node.imported,{name:t}))}function KV(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function VV(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function TT(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function JV(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function ST(e,t){for(let r=0;r<t;r++){let i=e[r];if(JV(i.parent.type,i.parentKey))return!0}return!1}var gT=Symbol();function YV(e){return Xc(this,e,new Map)}function Xc(e,t,r){let i={this:TT(e),target:TT(t)};if(i.target.node!==i.this.node)return WV(e,i.target,r);let s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let f=s.this[a.this];a.target=s.target.indexOf(f),a.target>=0?n=f:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(ST(s.this,a.this-1)||ST(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=IV[n.type],u={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function XV(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return Xc(e,t,r)==="before"?"before":"unknown";let i=t.scope.getBinding(t.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(u=>u.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=Xc(e,a,r);if(n&&n!==l)return"unknown";n=l}return n}function WV(e,t,r){let i=r.get(e.node),s;if(!i)r.set(e.node,i=new Map);else if(s=i.get(t.node))return s===gT?"unknown":s;i.set(t.node,gT);let n=XV(e,t,r);return i.set(t.node,n),n}function $V(e,t){return bT.call(this,e,t)||this}function bT(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||i.kind==="module")return;if(i.path!==this){let s=i.path.resolve(e,t);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){let i=this.toComputedKey();if(!_V(i))return;let s=i.value,n=this.get("object").resolve(e,t);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),u=o.isnt("computed")&&l.isIdentifier({name:s});if(u=u||l.isLiteral({value:s}),u)return o.get("value").resolve(e,t)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(e,t)}}}}function HV(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function zV(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0;return!1})}});var IT=w(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt._getKey=vT;pt._getPattern=CT;pt.get=hJ;pt.getAllNextSiblings=pJ;pt.getAllPrevSiblings=fJ;pt.getAssignmentIdentifiers=dJ;pt.getBindingIdentifierPaths=TJ;pt.getBindingIdentifiers=mJ;pt.getCompletionRecords=oJ;pt.getNextSibling=cJ;pt.getOpposite=sJ;pt.getOuterBindingIdentifierPaths=SJ;pt.getOuterBindingIdentifiers=yJ;pt.getPrevSibling=uJ;pt.getSibling=lJ;var $c=br(),GV=he(),{getAssignmentIdentifiers:QV,getBindingIdentifiers:AT,getOuterBindingIdentifiers:ZV,numericLiteral:eJ,unaryExpression:tJ}=GV,Hc=0,Fs=1;function rJ(e){return{type:Hc,path:e}}function iJ(e){return{type:Fs,path:e}}function sJ(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Ki(e,t,r){return e&&t.push(...Vi(e,r)),t}function nJ(e,t,r){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Vi(n,r),o=[],l=[];for(let u of a)u.type===Hc&&o.push(u),u.type===Fs&&l.push(u);o.length&&(i=o),t.push(...l)}return t.push(...i),t}function aJ(e){e.forEach(t=>{t.type=Fs})}function Wc(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(tJ("void",eJ(0))):r.path.remove())})}function PT(e,t){let r=[];if(t.canHaveBreak){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Object.assign({},t,{inCaseClause:!1});n.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=Vi(n,a);if(o.length>0&&o.every(l=>l.type===Fs)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(aJ(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),t.shouldPreserveBreak||Wc(o,!0)),t.shouldPreserveBreak||Wc(o,!1)):(r.push(...o),!t.shouldPopulateBreak&&!t.shouldPreserveBreak&&Wc(o,!0));break}if(s===e.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let u=o[l];u.type===Fs&&r.push(u),u.type===Hc&&i.push(u)}}}}else if(e.length)for(let i=e.length-1;i>=0;i--){let s=Vi(e[i],t);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function Vi(e,t){let r=[];if(e.isIfStatement())r=Ki(e.get("consequent"),r,t),r=Ki(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return Ki(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return PT(e.get("body"),t);if(e.isFunction())return Vi(e.get("body"),t);if(e.isTryStatement())r=Ki(e.get("block"),r,t),r=Ki(e.get("handler"),r,t);else{if(e.isCatchClause())return Ki(e.get("body"),r,t);if(e.isSwitchStatement())return nJ(e.get("cases"),r,t);if(e.isSwitchCase())return PT(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(iJ(e)):r.push(rJ(e))}}return r}function oJ(e=!1){return Vi(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(r=>r.path)}function lJ(e){return $c.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function uJ(){return this.getSibling(this.key-1)}function cJ(){return this.getSibling(this.key+1)}function pJ(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function fJ(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function hJ(e,t=!0){t===!0&&(t=this.context);let r=e.split(".");return r.length===1?vT.call(this,e,t):CT.call(this,r,t)}function vT(e,t){let r=this.node,i=r[e];return Array.isArray(i)?i.map((s,n)=>$c.default.get({listKey:e,parentPath:this,parent:r,container:i,key:n}).setContext(t)):$c.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function CT(e,t){let r=this;for(let i of e)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,t);return r}function dJ(){return QV(this.node)}function mJ(e){return AT(this.node,e)}function yJ(e){return ZV(this.node,e)}function TJ(e=!1,t=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=AT.keys[n.node.type];if(n.isIdentifier()){e?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");o.isDeclaration()&&i.push(o);continue}if(t){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],u=n.get(l);Array.isArray(u)?i.push(...u):u.node&&i.push(u)}}return s}function SJ(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var NT=w(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.addComment=PJ;js.addComments=AJ;js.shareCommentsWithSiblings=EJ;var gJ=he(),{addComment:xJ,addComments:bJ}=gJ;function EJ(){if(typeof this.key=="string")return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!i.node,a=!!s.node;n&&(r&&i.addComments("trailing",wT(r,i.node.trailingComments)),t&&!a&&i.addComments("trailing",t)),a&&(t&&s.addComments("leading",wT(t,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function wT(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(i=>!r.has(i))}function PJ(e,t,r){xJ(this.node,e,t,r)}function AJ(e,t){bJ(this.node,e,t)}});var br=w(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=pr.SHOULD_STOP=pr.SHOULD_SKIP=pr.REMOVED=void 0;var vJ=Zu(),CJ=am(),IJ=ji(),wJ=oc(),DT=he(),ha=DT,NJ=ni(),_J=yu(),ur=Ym(),Ji=py(),Yi=gc(),_T=Hy(),fi=yT(),et=ET(),kT=qt(),Qe=kT,Xi=sa(),cr=na(),Et=IT(),zc=NT(),OJ=ec(),{validate:DJ}=DT,OT=CJ("babel"),bte=pr.REMOVED=1,Ete=pr.SHOULD_STOP=2,Pte=pr.SHOULD_SKIP=4,Pr=pr.default=class LT{constructor(t,r){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(t){t?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(t){t?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(t){t?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!t&&r&&(t=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=NJ.getOrCreateCachedPaths(i,r),u=l.get(o);return u||(u=new LT(t,i),o&&l.set(o,u)),kT.setup.call(u,r,s,n,a),u}getScope(t){return this.isScope()?new wJ.default(this):t}setData(t,r){return this.data==null&&(this.data=Object.create(null)),this.data[t]=r}getData(t,r){this.data==null&&(this.data=Object.create(null));let i=this.data[t];return i===void 0&&r!==void 0&&(i=this.data[t]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,IJ.default)(this.node,t,this.scope,r,this)}set(t,r){DJ(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),t.unshift(i)}while(r=r.parentPath);return t.join(".")}debug(t){OT.enabled&&OT(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,_J.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){t||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},kJ={findParent:ur.findParent,find:ur.find,getFunctionParent:ur.getFunctionParent,getStatementParent:ur.getStatementParent,getEarliestCommonAncestorFrom:ur.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:ur.getDeepestCommonAncestorFrom,getAncestry:ur.getAncestry,isAncestor:ur.isAncestor,isDescendant:ur.isDescendant,inType:ur.inType,getTypeAnnotation:Ji.getTypeAnnotation,isBaseType:Ji.isBaseType,couldBeBaseType:Ji.couldBeBaseType,baseTypeStrictlyMatches:Ji.baseTypeStrictlyMatches,isGenericType:Ji.isGenericType,replaceWithMultiple:Yi.replaceWithMultiple,replaceWithSourceString:Yi.replaceWithSourceString,replaceWith:Yi.replaceWith,replaceExpressionWithStatements:Yi.replaceExpressionWithStatements,replaceInline:Yi.replaceInline,evaluateTruthy:_T.evaluateTruthy,evaluate:_T.evaluate,toComputedKey:fi.toComputedKey,ensureBlock:fi.ensureBlock,unwrapFunctionEnvironment:fi.unwrapFunctionEnvironment,arrowFunctionToExpression:fi.arrowFunctionToExpression,splitExportDeclaration:fi.splitExportDeclaration,ensureFunctionName:fi.ensureFunctionName,matchesPattern:et.matchesPattern,isStatic:et.isStatic,isNodeType:et.isNodeType,canHaveVariableDeclarationOrExpression:et.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:et.canSwapBetweenExpressionAndStatement,isCompletionRecord:et.isCompletionRecord,isStatementOrBlock:et.isStatementOrBlock,referencesImport:et.referencesImport,getSource:et.getSource,willIMaybeExecuteBefore:et.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:et._guessExecutionStatusRelativeTo,resolve:et.resolve,isConstantExpression:et.isConstantExpression,isInStrictMode:et.isInStrictMode,isDenylisted:Qe.isDenylisted,visit:Qe.visit,skip:Qe.skip,skipKey:Qe.skipKey,stop:Qe.stop,setContext:Qe.setContext,requeue:Qe.requeue,requeueComputedKeyAndDecorators:Qe.requeueComputedKeyAndDecorators,remove:Xi.remove,insertBefore:cr.insertBefore,insertAfter:cr.insertAfter,unshiftContainer:cr.unshiftContainer,pushContainer:cr.pushContainer,getOpposite:Et.getOpposite,getCompletionRecords:Et.getCompletionRecords,getSibling:Et.getSibling,getPrevSibling:Et.getPrevSibling,getNextSibling:Et.getNextSibling,getAllNextSiblings:Et.getAllNextSiblings,getAllPrevSiblings:Et.getAllPrevSiblings,get:Et.get,getAssignmentIdentifiers:Et.getAssignmentIdentifiers,getBindingIdentifiers:Et.getBindingIdentifiers,getOuterBindingIdentifiers:Et.getOuterBindingIdentifiers,getBindingIdentifierPaths:Et.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Et.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:zc.shareCommentsWithSiblings,addComment:zc.addComment,addComments:zc.addComments};Object.assign(Pr.prototype,kJ);Pr.prototype.arrowFunctionToShadowed=fi.arrowFunctionToShadowed;Object.assign(Pr.prototype,{has:et.has,is:et.is,isnt:et.isnt,equals:et.equals,hoist:cr.hoist,updateSiblingKeys:cr.updateSiblingKeys,call:Qe.call,isBlacklisted:Qe.isBlacklisted,setScope:Qe.setScope,resync:Qe.resync,popContext:Qe.popContext,pushContext:Qe.pushContext,setup:Qe.setup,setKey:Qe.setKey});Pr.prototype._guessExecutionStatusRelativeToDifferentFunctions=et._guessExecutionStatusRelativeTo;Pr.prototype._guessExecutionStatusRelativeToDifferentFunctions=et._guessExecutionStatusRelativeTo;Object.assign(Pr.prototype,{_getTypeAnnotation:Ji._getTypeAnnotation,_replaceWith:Yi._replaceWith,_resolve:et._resolve,_call:Qe._call,_resyncParent:Qe._resyncParent,_resyncKey:Qe._resyncKey,_resyncList:Qe._resyncList,_resyncRemoved:Qe._resyncRemoved,_getQueueContexts:Qe._getQueueContexts,_removeFromScope:Xi._removeFromScope,_callRemovalHooks:Xi._callRemovalHooks,_remove:Xi._remove,_markRemoved:Xi._markRemoved,_assertUnremoved:Xi._assertUnremoved,_containerInsert:cr._containerInsert,_containerInsertBefore:cr._containerInsertBefore,_containerInsertAfter:cr._containerInsertAfter,_verifyNodeList:cr._verifyNodeList,_getKey:Et._getKey,_getPattern:Et._getPattern});for(let e of ha.TYPES){let t=`is${e}`,r=ha[t];Pr.prototype[t]=function(i){return r(this.node,i)},Pr.prototype[`assert${e}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(Pr.prototype,OJ);for(let e of Object.keys(vJ))e.startsWith("_")||ha.TYPES.includes(e)||ha.TYPES.push(e)});var Qc=w(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.default=void 0;var Gc=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,i=TypeError){return new i(r)}};da.default=Gc});var MT=w(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.default=void 0;var LJ=br(),MJ=he(),Zc=qt(),BJ=Qc(),{VISITOR_KEYS:FJ}=MJ,ep=class{constructor(t,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=t,this.state=i,this.opts=r}shouldVisit(t){let r=this.opts;if(r.enter||r.exit||r[t.type])return!0;let i=FJ[t.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(t[s])return!0;return!1}create(t,r,i,s){let{parentPath:n}=this,a=n==null?t.type==="Program"||t.type==="File"?new BJ.default:void 0:n.hub;return LJ.default.get({parentPath:n,parent:t,container:r,key:i,listKey:s,hub:a})}maybeQueue(t,r){this.queue&&(r?this.queue.push(t):this.priorityQueue.push(t))}visitMultiple(t,r,i){if(t.length===0)return!1;let s=[];for(let n=0;n<t.length;n++){let a=t[n];a&&this.shouldVisit(a)&&s.push(this.create(r,t,n,i))}return this.visitQueue(s)}visitSingle(t,r){return this.shouldVisit(t[r])?this.visitQueue([this.create(t,t,r)]):!1}visitQueue(t){this.queue=t,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<t.length;){let n=t[s];if(s++,Zc.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&Zc.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=t,i))break}}for(let n=0;n<s;n++)Zc.popContext.call(t[n]);return this.queue=null,i}visit(t,r){let i=t[r];return i?Array.isArray(i)?this.visitMultiple(i,t,r):this.visitSingle(t,r):!1}};ma.default=ep});var $n=w(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.traverseNode=UJ;var jJ=MT(),Ite=br(),RJ=he(),wte=qt(),{VISITOR_KEYS:qJ}=RJ;function UJ(e,t,r,i,s,n,a){let o=qJ[e.type];if(!o)return!1;let l=new jJ.default(r,t,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let u of o)if(!(n!=null&&n[u])&&l.visit(e,u))return!0;return!1}});var qt=w(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe._call=ip;Xe._forceSetScope=HJ;Xe._getQueueContexts=sY;Xe._resyncKey=UT;Xe._resyncList=KT;Xe._resyncParent=qT;Xe._resyncRemoved=QJ;Xe.call=rp;Xe.isDenylisted=jT;Xe.popContext=ZJ;Xe.pushContext=eY;Xe.requeue=rY;Xe.requeueComputedKeyAndDecorators=iY;Xe.resync=GJ;Xe.setContext=zJ;Xe.setKey=ya;Xe.setScope=RT;Xe.setup=tY;Xe.skip=XJ;Xe.skipKey=WJ;Xe.stop=$J;Xe.visit=YJ;var KJ=$n(),BT=br(),VJ=sa(),JJ=he();function rp(e){let t=this.opts;if(this.debug(e),this.node&&ip.call(this,t[e]))return!0;if(this.node){var r;return ip.call(this,(r=t[this.node.type])==null?void 0:r[e])}return!1}function ip(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let i=t.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function jT(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t?.includes(this.node.type)}Xe.isBlacklisted=jT;function FT(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function YJ(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;return this.shouldSkip||rp.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(FT(this,r),this.debug("Recursing into..."),this.shouldStop=(0,KJ.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),FT(this,r),rp.call(this,"exit"),this.shouldStop)}function XJ(){this.shouldSkip=!0}function WJ(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=!0}function $J(){this._traverseFlags|=BT.SHOULD_SKIP|BT.SHOULD_STOP}function HJ(){var e;let t=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&t.isMethod()||this.key==="discriminant"&&t.isSwitchStatement())&&(t=t.parentPath);let r;for(;t&&!r;)r=t.scope,t=t.parentPath;this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function RT(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var s;if((s=r.opts)!=null&&s.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(t=this.scope)==null||t.init()}function zJ(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),RT.call(this),this}function GJ(){this.removed||(qT.call(this),KT.call(this),UT.call(this))}function qT(){this.parentPath&&(this.parent=this.parentPath.node)}function UT(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){ya.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){ya.call(this,e);return}this.key=null}}function KT(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function QJ(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&VJ._markRemoved.call(this)}function ZJ(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function eY(e){this.contexts.push(e),this.setContext(e)}function tY(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,ya.call(this,i)}function ya(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function rY(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function iY(){let{context:e,node:t}=this;if(!JJ.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r)}function sY(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var ji=w(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Object.defineProperty(Ar,"Hub",{enumerable:!0,get:function(){return uY.default}});Object.defineProperty(Ar,"NodePath",{enumerable:!0,get:function(){return oY.default}});Object.defineProperty(Ar,"Scope",{enumerable:!0,get:function(){return lY.default}});Ar.visitors=Ar.default=void 0;qt();var qs=Ns();Ar.visitors=qs;var nY=he(),aY=ni(),VT=$n(),oY=br(),lY=oc(),uY=Qc(),{VISITOR_KEYS:cY,removeProperties:pY,traverseFast:Rs}=nY;function Gt(e,t={},r,i,s,n){if(e){if(!t.noScope&&!r&&e.type!=="Program"&&e.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");cY[e.type]&&(qs.explode(t),(0,VT.traverseNode)(e,t,r,i,s,void 0,n))}}var Ote=Ar.default=Gt;Gt.visitors=qs;Gt.verify=qs.verify;Gt.explode=qs.explode;Gt.cheap=function(e,t){Rs(e,t)};Gt.node=function(e,t,r,i,s,n){(0,VT.traverseNode)(e,t,r,i,s,n)};Gt.clearNode=function(e,t){pY(e,t)};Gt.removeProperties=function(e,t){return Rs(e,Gt.clearNode,t),e};Gt.hasType=function(e,t,r){return r!=null&&r.includes(e.type)?!1:e.type===t?!0:Rs(e,function(i){if(r!=null&&r.includes(i.type))return Rs.skip;if(i.type===t)return Rs.stop})};Gt.cache=aY});var Ta=Ks(yu(),1),hp=Ks(Kn(),1),Sa=Ks(ji(),1),M=Ks(he(),1),fY=typeof Ta.default=="function"?Ta.default:Ta.default.default,tS=typeof Sa.default=="function"?Sa.default:Sa.default.default,hY={sourceMaps:!0,scriptType:"module"},JT=new WeakSet,dY=0,Wi={...hY},op=Promise.resolve(),lp="",mY="__ts",yY=new Set(["text/typescript","text/typescript-tsx","application/typescript","application/typescript-tsx","text/ts","application/ts"]),TY=/\.[cm]?tsx(?:[?#].*)?$/i,SY=new Set(["text/typescript-tsx","application/typescript-tsx"]),gY=/\.[cm]?jsx(?:[?#].*)?$/i,rS=/\.[cm]?[jt]sx?(?:[?#].*)?$/i,YT=["typescript","classProperties","classPrivateProperties","decorators-legacy","importMeta","topLevelAwait"],xY=["importMeta","topLevelAwait"],iS={cache:"default",credentials:"same-origin",redirect:"follow"};function bY(e){let t=e.type.trim().toLowerCase(),r=e.getAttribute("src")??"";return yY.has(t)||rS.test(r)}function sS(e){let t=e.type.trim().toLowerCase(),r=e.getAttribute("src")??"";return r?TY.test(r)||gY.test(r):SY.has(t)}function hi(e,t){return new URL(e,t||document.baseURI).href}function nS(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}function EY(e){let t=new TextEncoder().encode(JSON.stringify(e)),r="";for(let i=0;i<t.length;i+=32768)r+=String.fromCharCode(...t.slice(i,i+32768));return`data:application/json;base64,${btoa(r)}`}function up(){return M.identifier(mY)}function PY(){return M.variableDeclaration("const",[M.variableDeclarator(up(),M.awaitExpression(M.callExpression(M.memberExpression(M.callExpression(M.import(),[M.stringLiteral(lp)]),M.identifier("then")),[M.arrowFunctionExpression([M.identifier("module")],M.memberExpression(M.memberExpression(M.identifier("module"),M.identifier("default")),M.identifier("promise")))])))])}function AY(e,t){let r=t.compilerOptions??{};r.erasableSyntaxOnly===!1&&console.warn('[Typescript] Warning: "erasableSyntaxOnly: false" in tsconfig is not supported. typescript-runtime always enforces erasable syntax only. Non-erasable syntax (enum, namespace, decorators) will be rejected.');let i=/^\.\/?$/;r.baseUrl!==void 0&&!i.test(r.baseUrl)&&console.warn(`[Typescript] Warning: "baseUrl" is set to "${r.baseUrl}" in tsconfig, but typescript-runtime always uses the script's effective URL (document.URL) as the import base. This setting is ignored.`),r.rootDir!==void 0&&!i.test(r.rootDir)&&console.warn(`[Typescript] Warning: "rootDir" is set to "${r.rootDir}" in tsconfig, but typescript-runtime does not use this setting for import resolution. This setting is ignored.`),r.paths!==void 0&&console.warn('[Typescript] Warning: "paths" in tsconfig is not supported by typescript-runtime. Import resolution always follows native ESM semantics (relative and absolute URLs).');let s=r.jsx?.toLowerCase(),n=s==="react-jsx"||s==="react-jsxdev"?"automatic":s==="react"?"classic":e.jsxRuntime;return{...e,...t,jsxFactory:r.jsxFactory??e.jsxFactory,jsxFragmentFactory:r.jsxFragmentFactory??e.jsxFragmentFactory,jsxRuntime:n,sourceMaps:r.sourceMap??e.sourceMaps,scriptType:t.scriptType??e.scriptType}}function vY(e){return e.jsxRuntime==="classic"&&e.jsxFactory&&e.jsxFragmentFactory?{runtime:"classic",factory:e.jsxFactory,fragmentFactory:e.jsxFragmentFactory}:e.jsxRuntime==="automatic"?{runtime:"automatic"}:null}async function CY(e){if(JT.has(e))return;JT.add(e);let t=e.getAttribute("src");if(!t)return;let r=await fetch(hi(t),iS);if(!r.ok)throw new Error(`[Typescript] failed to fetch tsconfig ${t}: ${r.status}`);let i=JSON.parse(await r.text());Wi=AY(Wi,i)}function XT(e){op=op.then(()=>CY(e)).catch(t=>{console.error("[Typescript] failed to load tsconfig",t)})}function IY(e){let t=e.getAttribute("src")??"";!e.hasAttribute("type")&&rS.test(t)&&(e.setAttribute("type","text/plain"),e.setAttribute("raw",""))}function wY(e){let t=sS(e)?"tsx":"ts",r=++dY;return{code:e.textContent??"",filename:`ts://inline/${r}.${t}`,baseUrl:document.URL}}function NY(e,t,r){let i=0,s=0,n=typeof document<"u"?hi(t,document.URL):t;if(tS(e,{TSEnumDeclaration(){throw new Error(`[Typescript] \`enum\` is not erasable syntax and cannot be transformed to valid JavaScript. File: ${t}`)},TSModuleDeclaration(o){if(o.node.declare){o.remove();return}if(!o.node.body){o.remove();return}throw new Error(`[Typescript] \`namespace\`/ \`module\` is not erasable syntax. File: ${t}`)},Decorator(){throw new Error(`[Typescript] Decorators are not erasable syntax and cannot be compiled. File: ${t}`)},TSInterfaceDeclaration(o){o.remove()},TSTypeAliasDeclaration(o){o.remove()},TSDeclareFunction(o){o.remove()},ImportDeclaration(o){if(o.node.importKind==="type"){o.remove();return}let l=o.node.specifiers.length>0;o.node.specifiers=o.node.specifiers.filter(u=>!M.isImportSpecifier(u)||u.importKind!=="type"),l&&o.node.specifiers.length===0&&o.remove()},ExportNamedDeclaration(o){o.node.exportKind==="type"&&o.remove()},TSTypeAnnotation(o){o.remove()},TSTypeParameterDeclaration(o){o.remove()},TSTypeParameterInstantiation(o){o.remove()},TSAsExpression(o){o.replaceWith(o.node.expression)},TSTypeAssertion(o){o.replaceWith(o.node.expression)},TSNonNullExpression(o){o.replaceWith(o.node.expression)},TSInstantiationExpression(o){o.replaceWith(o.node.expression)},TSParameterProperty(o){let l=o.node.parameter;(M.isIdentifier(l)||M.isAssignmentPattern(l))&&o.replaceWith(l)},ClassProperty(o){o.node.typeAnnotation=null,o.node.definite=null},ClassPrivateProperty(o){o.node.typeAnnotation=null,o.node.definite=null},Function(o){o.node.returnType=null,o.node.typeParameters=null;for(let l of o.node.params)M.isIdentifier(l)&&(l.typeAnnotation=null,l.optional=!1)},MetaProperty(o){M.isMetaProperty(o.node)&&o.node.meta.name==="import"&&o.node.property.name==="meta"&&(i++,s++,o.replaceWith(M.identifier("__import_meta")))},CallExpression(o){if(!M.isImport(o.node.callee))return;let[l]=o.node.arguments;!l||!M.isExpression(l)||(s++,o.replaceWith(M.callExpression(M.memberExpression(up(),M.identifier("import")),[l,M.stringLiteral(n)])))},JSXElement(o){r&&o.replaceWith(pp(o.node,r))},JSXFragment(o){r&&o.replaceWith(pp(o.node,r))}}),s===0)return;let a=[PY()];i>0&&a.push(M.variableDeclaration("const",[M.variableDeclarator(M.identifier("__import_meta"),M.objectExpression([M.objectProperty(M.identifier("url"),M.stringLiteral(n)),M.objectProperty(M.identifier("resolve"),M.arrowFunctionExpression([M.identifier("specifier")],M.callExpression(M.memberExpression(up(),M.identifier("resolve")),[M.stringLiteral(n),M.identifier("specifier")])))]))])),e.program.body.unshift(...a)}function aS(e,t,r,i){let s=r?vY(i):null;if(r&&!s)throw new Error(`[Typescript] TSX/JSX requires explicit jsx runtime config in tsconfig: ${t}`);let n=(0,hp.parse)(e,{sourceFilename:t,sourceType:i.scriptType==="module"?"module":"unambiguous",plugins:r?[...YT,"jsx"]:YT});NY(n,t,s);let a=fY(n,{sourceMaps:i.sourceMaps,sourceFileName:t});return i.sourceMaps&&a.map?(a.map.sources=[t],a.map.sourcesContent=[e],`${a.code}
|
|
52
|
-
//# sourceMappingURL=${
|
|
53
|
-
`);async function e(r,i){let s=
|
|
50
|
+
`;return this.replaceWith(u)[0].get("arguments.0")}function EV(e){let t=e.params.findIndex(r=>ZK(r)||eV(r));return t===-1?e.params.length:t}});var ET=_(Ze=>{"use strict";d();Object.defineProperty(Ze,"__esModule",{value:!0});Ze._guessExecutionStatusRelativeTo=VV;Ze._resolve=bT;Ze.canHaveVariableDeclarationOrExpression=MV;Ze.canSwapBetweenExpressionAndStatement=BV;Ze.getSource=qV;Ze.isCompletionRecord=FV;Ze.isConstantExpression=WV;Ze.isInStrictMode=$V;Ze.isNodeType=LV;Ze.isStatementOrBlock=jV;Ze.isStatic=kV;Ze.matchesPattern=DV;Ze.referencesImport=RV;Ze.resolve=XV;Ze.willIMaybeExecuteBefore=UV;var PV=me(),{STATEMENT_OR_BLOCK_KEYS:AV,VISITOR_KEYS:vV,isBlockStatement:xT,isExpression:CV,isIdentifier:IV,isLiteral:wV,isStringLiteral:NV,isType:_V,matchesPattern:OV}=PV;function DV(e,t){return OV(this.node,e,t)}Ze.has=function(t){var r;let i=(r=this.node)==null?void 0:r[t];return i&&Array.isArray(i)?!!i.length:!!i};function kV(){return this.scope.isStatic(this.node)}Ze.is=Ze.has;Ze.isnt=function(t){return!this.has(t)};Ze.equals=function(t,r){return this.node[t]===r};function LV(e){return _V(this.type,e)}function MV(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function BV(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?xT(e):this.isBlockStatement()?CV(e):!1}function FV(e){let t=this,r=!0;do{let{type:i,container:s}=t;if(!r&&(t.isFunction()||i==="StaticBlock"))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function jV(){return this.parentPath.isLabeledStatement()||xT(this.container)?!1:AV.includes(this.key)}function RV(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?NV(this.node.property,{value:t}):this.node.property.name===t)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(r?.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===e){if(!t)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&t==="default"||i.isImportNamespaceSpecifier()&&t==="*"||i.isImportSpecifier()&&IV(i.node.imported,{name:t}))}function qV(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function UV(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function TT(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function KV(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function ST(e,t){for(let r=0;r<t;r++){let i=e[r];if(KV(i.parent.type,i.parentKey))return!0}return!1}var gT=Symbol();function VV(e){return $c(this,e,new Map)}function $c(e,t,r){let i={this:TT(e),target:TT(t)};if(i.target.node!==i.this.node)return YV(e,i.target,r);let s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let f=s.this[a.this];a.target=s.target.indexOf(f),a.target>=0?n=f:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(ST(s.this,a.this-1)||ST(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=vV[n.type],u={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function JV(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return $c(e,t,r)==="before"?"before":"unknown";let i=t.scope.getBinding(t.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(u=>u.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=$c(e,a,r);if(n&&n!==l)return"unknown";n=l}return n}function YV(e,t,r){let i=r.get(e.node),s;if(!i)r.set(e.node,i=new Map);else if(s=i.get(t.node))return s===gT?"unknown":s;i.set(t.node,gT);let n=JV(e,t,r);return i.set(t.node,n),n}function XV(e,t){return bT.call(this,e,t)||this}function bT(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||i.kind==="module")return;if(i.path!==this){let s=i.path.resolve(e,t);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){let i=this.toComputedKey();if(!wV(i))return;let s=i.value,n=this.get("object").resolve(e,t);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),u=o.isnt("computed")&&l.isIdentifier({name:s});if(u=u||l.isLiteral({value:s}),u)return o.get("value").resolve(e,t)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(e,t)}}}}function WV(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function $V(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0;return!1})}});var IT=_(ht=>{"use strict";d();Object.defineProperty(ht,"__esModule",{value:!0});ht._getKey=vT;ht._getPattern=CT;ht.get=pJ;ht.getAllNextSiblings=uJ;ht.getAllPrevSiblings=cJ;ht.getAssignmentIdentifiers=fJ;ht.getBindingIdentifierPaths=mJ;ht.getBindingIdentifiers=hJ;ht.getCompletionRecords=nJ;ht.getNextSibling=lJ;ht.getOpposite=rJ;ht.getOuterBindingIdentifierPaths=yJ;ht.getOuterBindingIdentifiers=dJ;ht.getPrevSibling=oJ;ht.getSibling=aJ;var zc=Pr(),HV=me(),{getAssignmentIdentifiers:zV,getBindingIdentifiers:AT,getOuterBindingIdentifiers:GV,numericLiteral:QV,unaryExpression:ZV}=HV,Gc=0,Rs=1;function eJ(e){return{type:Gc,path:e}}function tJ(e){return{type:Rs,path:e}}function rJ(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Ji(e,t,r){return e&&t.push(...Yi(e,r)),t}function iJ(e,t,r){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Yi(n,r),o=[],l=[];for(let u of a)u.type===Gc&&o.push(u),u.type===Rs&&l.push(u);o.length&&(i=o),t.push(...l)}return t.push(...i),t}function sJ(e){e.forEach(t=>{t.type=Rs})}function Hc(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(ZV("void",QV(0))):r.path.remove())})}function PT(e,t){let r=[];if(t.canHaveBreak){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Object.assign({},t,{inCaseClause:!1});n.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=Yi(n,a);if(o.length>0&&o.every(l=>l.type===Rs)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(sJ(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),t.shouldPreserveBreak||Hc(o,!0)),t.shouldPreserveBreak||Hc(o,!1)):(r.push(...o),!t.shouldPopulateBreak&&!t.shouldPreserveBreak&&Hc(o,!0));break}if(s===e.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let u=o[l];u.type===Rs&&r.push(u),u.type===Gc&&i.push(u)}}}}else if(e.length)for(let i=e.length-1;i>=0;i--){let s=Yi(e[i],t);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function Yi(e,t){let r=[];if(e.isIfStatement())r=Ji(e.get("consequent"),r,t),r=Ji(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return Ji(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return PT(e.get("body"),t);if(e.isFunction())return Yi(e.get("body"),t);if(e.isTryStatement())r=Ji(e.get("block"),r,t),r=Ji(e.get("handler"),r,t);else{if(e.isCatchClause())return Ji(e.get("body"),r,t);if(e.isSwitchStatement())return iJ(e.get("cases"),r,t);if(e.isSwitchCase())return PT(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(tJ(e)):r.push(eJ(e))}}return r}function nJ(e=!1){return Yi(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(r=>r.path)}function aJ(e){return zc.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function oJ(){return this.getSibling(this.key-1)}function lJ(){return this.getSibling(this.key+1)}function uJ(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function cJ(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function pJ(e,t=!0){t===!0&&(t=this.context);let r=e.split(".");return r.length===1?vT.call(this,e,t):CT.call(this,r,t)}function vT(e,t){let r=this.node,i=r[e];return Array.isArray(i)?i.map((s,n)=>zc.default.get({listKey:e,parentPath:this,parent:r,container:i,key:n}).setContext(t)):zc.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function CT(e,t){let r=this;for(let i of e)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,t);return r}function fJ(){return zV(this.node)}function hJ(e){return AT(this.node,e)}function dJ(e){return GV(this.node,e)}function mJ(e=!1,t=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=AT.keys[n.node.type];if(n.isIdentifier()){e?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");o.isDeclaration()&&i.push(o);continue}if(t){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],u=n.get(l);Array.isArray(u)?i.push(...u):u.node&&i.push(u)}}return s}function yJ(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var NT=_(qs=>{"use strict";d();Object.defineProperty(qs,"__esModule",{value:!0});qs.addComment=bJ;qs.addComments=EJ;qs.shareCommentsWithSiblings=xJ;var TJ=me(),{addComment:SJ,addComments:gJ}=TJ;function xJ(){if(typeof this.key=="string")return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!i.node,a=!!s.node;n&&(r&&i.addComments("trailing",wT(r,i.node.trailingComments)),t&&!a&&i.addComments("trailing",t)),a&&(t&&s.addComments("leading",wT(t,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function wT(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(i=>!r.has(i))}function bJ(e,t,r){SJ(this.node,e,t,r)}function EJ(e,t){gJ(this.node,e,t)}});var Pr=_(hr=>{"use strict";d();Object.defineProperty(hr,"__esModule",{value:!0});hr.default=hr.SHOULD_STOP=hr.SHOULD_SKIP=hr.REMOVED=void 0;var PJ=tc(),AJ=am(),vJ=qi(),CJ=uc(),DT=me(),ma=DT,IJ=oi(),wJ=Su(),pr=Ym(),Xi=py(),Wi=bc(),_T=Hy(),di=yT(),rt=ET(),kT=Kt(),et=kT,$i=aa(),fr=oa(),At=IT(),Qc=NT(),NJ=rc(),{validate:_J}=DT,OT=AJ("babel"),cse=hr.REMOVED=1,pse=hr.SHOULD_STOP=2,fse=hr.SHOULD_SKIP=4,vr=hr.default=class LT{constructor(t,r){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(t){t?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(t){t?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(t){t?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!t&&r&&(t=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=IJ.getOrCreateCachedPaths(i,r),u=l.get(o);return u||(u=new LT(t,i),o&&l.set(o,u)),kT.setup.call(u,r,s,n,a),u}getScope(t){return this.isScope()?new CJ.default(this):t}setData(t,r){return this.data==null&&(this.data=Object.create(null)),this.data[t]=r}getData(t,r){this.data==null&&(this.data=Object.create(null));let i=this.data[t];return i===void 0&&r!==void 0&&(i=this.data[t]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,vJ.default)(this.node,t,this.scope,r,this)}set(t,r){_J(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),t.unshift(i)}while(r=r.parentPath);return t.join(".")}debug(t){OT.enabled&&OT(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,wJ.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){t||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},OJ={findParent:pr.findParent,find:pr.find,getFunctionParent:pr.getFunctionParent,getStatementParent:pr.getStatementParent,getEarliestCommonAncestorFrom:pr.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:pr.getDeepestCommonAncestorFrom,getAncestry:pr.getAncestry,isAncestor:pr.isAncestor,isDescendant:pr.isDescendant,inType:pr.inType,getTypeAnnotation:Xi.getTypeAnnotation,isBaseType:Xi.isBaseType,couldBeBaseType:Xi.couldBeBaseType,baseTypeStrictlyMatches:Xi.baseTypeStrictlyMatches,isGenericType:Xi.isGenericType,replaceWithMultiple:Wi.replaceWithMultiple,replaceWithSourceString:Wi.replaceWithSourceString,replaceWith:Wi.replaceWith,replaceExpressionWithStatements:Wi.replaceExpressionWithStatements,replaceInline:Wi.replaceInline,evaluateTruthy:_T.evaluateTruthy,evaluate:_T.evaluate,toComputedKey:di.toComputedKey,ensureBlock:di.ensureBlock,unwrapFunctionEnvironment:di.unwrapFunctionEnvironment,arrowFunctionToExpression:di.arrowFunctionToExpression,splitExportDeclaration:di.splitExportDeclaration,ensureFunctionName:di.ensureFunctionName,matchesPattern:rt.matchesPattern,isStatic:rt.isStatic,isNodeType:rt.isNodeType,canHaveVariableDeclarationOrExpression:rt.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:rt.canSwapBetweenExpressionAndStatement,isCompletionRecord:rt.isCompletionRecord,isStatementOrBlock:rt.isStatementOrBlock,referencesImport:rt.referencesImport,getSource:rt.getSource,willIMaybeExecuteBefore:rt.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:rt._guessExecutionStatusRelativeTo,resolve:rt.resolve,isConstantExpression:rt.isConstantExpression,isInStrictMode:rt.isInStrictMode,isDenylisted:et.isDenylisted,visit:et.visit,skip:et.skip,skipKey:et.skipKey,stop:et.stop,setContext:et.setContext,requeue:et.requeue,requeueComputedKeyAndDecorators:et.requeueComputedKeyAndDecorators,remove:$i.remove,insertBefore:fr.insertBefore,insertAfter:fr.insertAfter,unshiftContainer:fr.unshiftContainer,pushContainer:fr.pushContainer,getOpposite:At.getOpposite,getCompletionRecords:At.getCompletionRecords,getSibling:At.getSibling,getPrevSibling:At.getPrevSibling,getNextSibling:At.getNextSibling,getAllNextSiblings:At.getAllNextSiblings,getAllPrevSiblings:At.getAllPrevSiblings,get:At.get,getAssignmentIdentifiers:At.getAssignmentIdentifiers,getBindingIdentifiers:At.getBindingIdentifiers,getOuterBindingIdentifiers:At.getOuterBindingIdentifiers,getBindingIdentifierPaths:At.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:At.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:Qc.shareCommentsWithSiblings,addComment:Qc.addComment,addComments:Qc.addComments};Object.assign(vr.prototype,OJ);vr.prototype.arrowFunctionToShadowed=di.arrowFunctionToShadowed;Object.assign(vr.prototype,{has:rt.has,is:rt.is,isnt:rt.isnt,equals:rt.equals,hoist:fr.hoist,updateSiblingKeys:fr.updateSiblingKeys,call:et.call,isBlacklisted:et.isBlacklisted,setScope:et.setScope,resync:et.resync,popContext:et.popContext,pushContext:et.pushContext,setup:et.setup,setKey:et.setKey});vr.prototype._guessExecutionStatusRelativeToDifferentFunctions=rt._guessExecutionStatusRelativeTo;vr.prototype._guessExecutionStatusRelativeToDifferentFunctions=rt._guessExecutionStatusRelativeTo;Object.assign(vr.prototype,{_getTypeAnnotation:Xi._getTypeAnnotation,_replaceWith:Wi._replaceWith,_resolve:rt._resolve,_call:et._call,_resyncParent:et._resyncParent,_resyncKey:et._resyncKey,_resyncList:et._resyncList,_resyncRemoved:et._resyncRemoved,_getQueueContexts:et._getQueueContexts,_removeFromScope:$i._removeFromScope,_callRemovalHooks:$i._callRemovalHooks,_remove:$i._remove,_markRemoved:$i._markRemoved,_assertUnremoved:$i._assertUnremoved,_containerInsert:fr._containerInsert,_containerInsertBefore:fr._containerInsertBefore,_containerInsertAfter:fr._containerInsertAfter,_verifyNodeList:fr._verifyNodeList,_getKey:At._getKey,_getPattern:At._getPattern});for(let e of ma.TYPES){let t=`is${e}`,r=ma[t];vr.prototype[t]=function(i){return r(this.node,i)},vr.prototype[`assert${e}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(vr.prototype,NJ);for(let e of Object.keys(PJ))e.startsWith("_")||ma.TYPES.includes(e)||ma.TYPES.push(e)});var ep=_(ya=>{"use strict";d();Object.defineProperty(ya,"__esModule",{value:!0});ya.default=void 0;var Zc=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,i=TypeError){return new i(r)}};ya.default=Zc});var MT=_(Ta=>{"use strict";d();Object.defineProperty(Ta,"__esModule",{value:!0});Ta.default=void 0;var DJ=Pr(),kJ=me(),tp=Kt(),LJ=ep(),{VISITOR_KEYS:MJ}=kJ,rp=class{constructor(t,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=t,this.state=i,this.opts=r}shouldVisit(t){let r=this.opts;if(r.enter||r.exit||r[t.type])return!0;let i=MJ[t.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(t[s])return!0;return!1}create(t,r,i,s){let{parentPath:n}=this,a=n==null?t.type==="Program"||t.type==="File"?new LJ.default:void 0:n.hub;return DJ.default.get({parentPath:n,parent:t,container:r,key:i,listKey:s,hub:a})}maybeQueue(t,r){this.queue&&(r?this.queue.push(t):this.priorityQueue.push(t))}visitMultiple(t,r,i){if(t.length===0)return!1;let s=[];for(let n=0;n<t.length;n++){let a=t[n];a&&this.shouldVisit(a)&&s.push(this.create(r,t,n,i))}return this.visitQueue(s)}visitSingle(t,r){return this.shouldVisit(t[r])?this.visitQueue([this.create(t,t,r)]):!1}visitQueue(t){this.queue=t,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<t.length;){let n=t[s];if(s++,tp.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&tp.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=t,i))break}}for(let n=0;n<s;n++)tp.popContext.call(t[n]);return this.queue=null,i}visit(t,r){let i=t[r];return i?Array.isArray(i)?this.visitMultiple(i,t,r):this.visitSingle(t,r):!1}};Ta.default=rp});var zn=_(ip=>{"use strict";d();Object.defineProperty(ip,"__esModule",{value:!0});ip.traverseNode=RJ;var BJ=MT(),gse=Pr(),FJ=me(),xse=Kt(),{VISITOR_KEYS:jJ}=FJ;function RJ(e,t,r,i,s,n,a){let o=jJ[e.type];if(!o)return!1;let l=new BJ.default(r,t,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let u of o)if(!(n!=null&&n[u])&&l.visit(e,u))return!0;return!1}});var Kt=_($e=>{"use strict";d();Object.defineProperty($e,"__esModule",{value:!0});$e._call=np;$e._forceSetScope=WJ;$e._getQueueContexts=rY;$e._resyncKey=UT;$e._resyncList=KT;$e._resyncParent=qT;$e._resyncRemoved=zJ;$e.call=sp;$e.isDenylisted=jT;$e.popContext=GJ;$e.pushContext=QJ;$e.requeue=eY;$e.requeueComputedKeyAndDecorators=tY;$e.resync=HJ;$e.setContext=$J;$e.setKey=Sa;$e.setScope=RT;$e.setup=ZJ;$e.skip=JJ;$e.skipKey=YJ;$e.stop=XJ;$e.visit=VJ;var qJ=zn(),BT=Pr(),UJ=aa(),KJ=me();function sp(e){let t=this.opts;if(this.debug(e),this.node&&np.call(this,t[e]))return!0;if(this.node){var r;return np.call(this,(r=t[this.node.type])==null?void 0:r[e])}return!1}function np(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let i=t.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function jT(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t?.includes(this.node.type)}$e.isBlacklisted=jT;function FT(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function VJ(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;return this.shouldSkip||sp.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(FT(this,r),this.debug("Recursing into..."),this.shouldStop=(0,qJ.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),FT(this,r),sp.call(this,"exit"),this.shouldStop)}function JJ(){this.shouldSkip=!0}function YJ(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=!0}function XJ(){this._traverseFlags|=BT.SHOULD_SKIP|BT.SHOULD_STOP}function WJ(){var e;let t=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&t.isMethod()||this.key==="discriminant"&&t.isSwitchStatement())&&(t=t.parentPath);let r;for(;t&&!r;)r=t.scope,t=t.parentPath;this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function RT(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var s;if((s=r.opts)!=null&&s.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(t=this.scope)==null||t.init()}function $J(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),RT.call(this),this}function HJ(){this.removed||(qT.call(this),KT.call(this),UT.call(this))}function qT(){this.parentPath&&(this.parent=this.parentPath.node)}function UT(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){Sa.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){Sa.call(this,e);return}this.key=null}}function KT(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function zJ(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&UJ._markRemoved.call(this)}function GJ(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function QJ(e){this.contexts.push(e),this.setContext(e)}function ZJ(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,Sa.call(this,i)}function Sa(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function eY(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function tY(){let{context:e,node:t}=this;if(!KJ.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r)}function rY(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var qi=_(Cr=>{"use strict";d();Object.defineProperty(Cr,"__esModule",{value:!0});Object.defineProperty(Cr,"Hub",{enumerable:!0,get:function(){return oY.default}});Object.defineProperty(Cr,"NodePath",{enumerable:!0,get:function(){return nY.default}});Object.defineProperty(Cr,"Scope",{enumerable:!0,get:function(){return aY.default}});Cr.visitors=Cr.default=void 0;Kt();var Ks=Os();Cr.visitors=Ks;var iY=me(),sY=oi(),VT=zn(),nY=Pr(),aY=uc(),oY=ep(),{VISITOR_KEYS:lY,removeProperties:uY,traverseFast:Us}=iY;function Zt(e,t={},r,i,s,n){if(e){if(!t.noScope&&!r&&e.type!=="Program"&&e.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");lY[e.type]&&(Ks.explode(t),(0,VT.traverseNode)(e,t,r,i,s,void 0,n))}}var vse=Cr.default=Zt;Zt.visitors=Ks;Zt.verify=Ks.verify;Zt.explode=Ks.explode;Zt.cheap=function(e,t){Us(e,t)};Zt.node=function(e,t,r,i,s,n){(0,VT.traverseNode)(e,t,r,i,s,n)};Zt.clearNode=function(e,t){uY(e,t)};Zt.removeProperties=function(e,t){return Us(e,Zt.clearNode,t),e};Zt.hasType=function(e,t,r){return r!=null&&r.includes(e.type)?!1:e.type===t?!0:Us(e,function(i){if(r!=null&&r.includes(i.type))return Us.skip;if(i.type===t)return Us.stop})};Zt.cache=sY});d();var ga=Js(Su(),1),eS=Js(Jn(),1),xa=Js(qi(),1),B=Js(me(),1),cY=typeof ga.default=="function"?ga.default:ga.default.default,pY=typeof xa.default=="function"?xa.default:xa.default.default,fY={sourceMaps:!0,scriptType:"module"},JT=new WeakSet,hY=0,Hi={...fY},lp=Promise.resolve(),up="",dY="__ts",mY=new Set(["text/typescript","text/typescript-tsx","application/typescript","application/typescript-tsx","text/ts","application/ts"]),yY=/\.[cm]?tsx(?:[?#].*)?$/i,TY=new Set(["text/typescript-tsx","application/typescript-tsx"]),SY=/\.[cm]?jsx(?:[?#].*)?$/i,tS=/\.[cm]?[jt]sx?(?:[?#].*)?$/i,YT=["typescript","classProperties","classPrivateProperties","decorators-legacy","importMeta","topLevelAwait"],rS={cache:"default",credentials:"same-origin",redirect:"follow"};function gY(e){let t=e.type.trim().toLowerCase(),r=e.getAttribute("src")??"";return mY.has(t)||tS.test(r)}function iS(e){let t=e.type.trim().toLowerCase(),r=e.getAttribute("src")??"";return r?yY.test(r)||SY.test(r):TY.has(t)}function mi(e,t){return new URL(e,t||document.baseURI).href}function hp(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}function xY(e){let t=new TextEncoder().encode(JSON.stringify(e)),r="";for(let i=0;i<t.length;i+=32768)r+=String.fromCharCode(...t.slice(i,i+32768));return`data:application/json;base64,${btoa(r)}`}function cp(){return B.identifier(dY)}function bY(){return B.variableDeclaration("const",[B.variableDeclarator(cp(),B.awaitExpression(B.callExpression(B.memberExpression(B.callExpression(B.import(),[B.stringLiteral(up)]),B.identifier("then")),[B.arrowFunctionExpression([B.identifier("module")],B.memberExpression(B.memberExpression(B.identifier("module"),B.identifier("default")),B.identifier("promise")))])))])}function EY(e,t){let r=t.compilerOptions??{};r.erasableSyntaxOnly===!1&&console.warn('[Typescript] Warning: "erasableSyntaxOnly: false" in tsconfig is not supported. typescript-runtime always enforces erasable syntax only. Non-erasable syntax (enum, namespace, decorators) will be rejected.');let i=/^\.\/?$/;r.baseUrl!==void 0&&!i.test(r.baseUrl)&&console.warn(`[Typescript] Warning: "baseUrl" is set to "${r.baseUrl}" in tsconfig, but typescript-runtime always uses the script's effective URL (document.URL) as the import base. This setting is ignored.`),r.rootDir!==void 0&&!i.test(r.rootDir)&&console.warn(`[Typescript] Warning: "rootDir" is set to "${r.rootDir}" in tsconfig, but typescript-runtime does not use this setting for import resolution. This setting is ignored.`),r.paths!==void 0&&console.warn('[Typescript] Warning: "paths" in tsconfig is not supported by typescript-runtime. Import resolution always follows native ESM semantics (relative and absolute URLs).');let s=r.jsx?.toLowerCase(),n=s==="react-jsx"||s==="react-jsxdev"?"automatic":s==="react"?"classic":e.jsxRuntime;return{...e,...t,jsxFactory:r.jsxFactory??e.jsxFactory,jsxFragmentFactory:r.jsxFragmentFactory??e.jsxFragmentFactory,jsxRuntime:n,sourceMaps:r.sourceMap??e.sourceMaps,scriptType:t.scriptType??e.scriptType}}function PY(e){return e.jsxRuntime==="classic"&&e.jsxFactory&&e.jsxFragmentFactory?{runtime:"classic",factory:e.jsxFactory,fragmentFactory:e.jsxFragmentFactory}:e.jsxRuntime==="automatic"?{runtime:"automatic"}:null}async function AY(e){if(JT.has(e))return;JT.add(e);let t=e.getAttribute("src");if(!t)return;let r=await fetch(mi(t),rS);if(!r.ok)throw new Error(`[Typescript] failed to fetch tsconfig ${t}: ${r.status}`);let i=JSON.parse(await r.text());Hi=EY(Hi,i)}function XT(e){lp=lp.then(()=>AY(e)).catch(t=>{throw console.error("[Typescript] failed to load tsconfig",t),t})}function vY(e){let t=e.getAttribute("src")??"";!e.hasAttribute("type")&&tS.test(t)&&(e.setAttribute("type","text/plain"),e.setAttribute("raw",""))}function CY(e){let t=iS(e)?"tsx":"ts",r=++hY;return{code:e.textContent??"",filename:`ts://inline/${r}.${t}`,baseUrl:document.URL}}function ap(e,t,r){MY(e.value,r)&&t.imports.push({source:e,specifier:e.value})}function IY(e,t,r,i){let s=0,n=0,a={imports:[],isModule:!1},o=mi(i);if(pY(e,{TSEnumDeclaration(){throw new Error(`[Typescript] \`enum\` is not erasable syntax and cannot be transformed to valid JavaScript. File: ${t}`)},TSModuleDeclaration(l){if(l.node.declare){l.remove();return}if(!l.node.body){l.remove();return}throw new Error(`[Typescript] \`namespace\`/ \`module\` is not erasable syntax. File: ${t}`)},Decorator(){throw new Error(`[Typescript] Decorators are not erasable syntax and cannot be compiled. File: ${t}`)},TSInterfaceDeclaration(l){l.remove()},TSTypeAliasDeclaration(l){l.remove()},TSDeclareFunction(l){l.remove()},ImportDeclaration(l){if(l.node.importKind==="type"){l.remove();return}let u=l.node.specifiers.length>0;if(l.node.specifiers=l.node.specifiers.filter(f=>!B.isImportSpecifier(f)||f.importKind!=="type"),u&&l.node.specifiers.length===0){l.remove();return}a.isModule=!0,ap(l.node.source,a,i)},ExportNamedDeclaration(l){if(l.node.exportKind==="type"){l.remove();return}let u=l.node.specifiers.length>0;if(l.node.specifiers=l.node.specifiers.filter(f=>!B.isExportSpecifier(f)||f.exportKind!=="type"),u&&l.node.specifiers.length===0&&!l.node.declaration){l.remove();return}a.isModule=!0,l.node.source&&ap(l.node.source,a,i)},ExportAllDeclaration(l){if(l.node.exportKind==="type"){l.remove();return}a.isModule=!0,ap(l.node.source,a,i)},ExportDefaultDeclaration(){a.isModule=!0},TSTypeAnnotation(l){l.remove()},TSTypeParameterDeclaration(l){l.remove()},TSTypeParameterInstantiation(l){l.remove()},TSAsExpression(l){l.replaceWith(l.node.expression)},TSTypeAssertion(l){l.replaceWith(l.node.expression)},TSNonNullExpression(l){l.replaceWith(l.node.expression)},TSInstantiationExpression(l){l.replaceWith(l.node.expression)},TSParameterProperty(l){let u=l.node.parameter;(B.isIdentifier(u)||B.isAssignmentPattern(u))&&l.replaceWith(u)},ClassProperty(l){l.node.typeAnnotation=null,l.node.definite=null},ClassPrivateProperty(l){l.node.typeAnnotation=null,l.node.definite=null},Function(l){l.node.returnType=null,l.node.typeParameters=null;for(let u of l.node.params)B.isIdentifier(u)&&(u.typeAnnotation=null,u.optional=!1)},MetaProperty(l){B.isMetaProperty(l.node)&&l.node.meta.name==="import"&&l.node.property.name==="meta"&&(s++,n++,l.replaceWith(B.identifier("__import_meta")))},CallExpression(l){if(!B.isImport(l.node.callee))return;let[u]=l.node.arguments;!u||!B.isExpression(u)||(n++,l.replaceWith(B.callExpression(B.memberExpression(cp(),B.identifier("import")),[u,B.stringLiteral(o)])))},AwaitExpression(l){l.getFunctionParent()||(a.isModule=!0)},JSXElement(l){r&&l.replaceWith(fp(l.node,r))},JSXFragment(l){r&&l.replaceWith(fp(l.node,r))}}),n>0){let l=[bY()];s>0&&l.push(B.variableDeclaration("const",[B.variableDeclarator(B.identifier("__import_meta"),B.objectExpression([B.objectProperty(B.identifier("url"),B.stringLiteral(t)),B.objectProperty(B.identifier("resolve"),B.arrowFunctionExpression([B.identifier("specifier")],B.callExpression(B.memberExpression(cp(),B.identifier("resolve")),[B.stringLiteral(o),B.identifier("specifier")])))]))])),e.program.body.unshift(...l)}return a}async function sS(e,t,r,i,s,n){let a=r?PY(i):null;if(r&&!a)throw new Error(`[Typescript] TSX/JSX requires explicit jsx runtime config in tsconfig: ${t}`);let o=DY(e,t,r,i.scriptType),l=IY(o,t,a,s);await Promise.all(l.imports.map(async({source:f,specifier:x})=>{f.value=await LY(x,s,n),f.extra=void 0}));let u=cY(o,{sourceMaps:i.sourceMaps,sourceFileName:t});return i.sourceMaps&&u.map?(u.map.sources=[t],u.map.sourcesContent=[e],{code:`${u.code}
|
|
51
|
+
//# sourceMappingURL=${xY(u.map)}`,isModule:l.isModule}):{code:u.code,isModule:l.isModule}}function WT(e){let[t,...r]=e.split(".");return r.reduce((i,s)=>B.memberExpression(i,B.identifier(s)),B.identifier(t))}function wY(e){let t=e.replace(/\s+/g," ").trim();return t?B.stringLiteral(t):null}function pp(e){return B.isJSXIdentifier(e)?/^[a-z]/.test(e.name)?B.stringLiteral(e.name):B.identifier(e.name):B.isJSXMemberExpression(e)?B.memberExpression(pp(e.object),pp(e.property)):B.stringLiteral(`${e.namespace.name}:${e.name.name}`)}function NY(e){if(B.isJSXSpreadAttribute(e))return B.spreadElement(e.argument);let t=B.isJSXIdentifier(e.name)?B.identifier(e.name.name):B.stringLiteral(e.name.name.name),r=e.value;return r?B.isStringLiteral(r)?B.objectProperty(t,r):B.isJSXExpressionContainer(r)?B.objectProperty(t,B.isJSXEmptyExpression(r.expression)?B.booleanLiteral(!0):r.expression):B.objectProperty(t,r):B.objectProperty(t,B.booleanLiteral(!0))}function fp(e,t){let r=e.children.map(a=>B.isJSXText(a)?wY(a.value):B.isJSXExpressionContainer(a)?B.isJSXEmptyExpression(a.expression)?null:a.expression:B.isJSXElement(a)||B.isJSXFragment(a)?fp(a,t):null).filter(a=>a!==null),i=B.isJSXElement(e)?pp(e.openingElement.name):WT(t.fragmentFactory),s=B.isJSXElement(e)?B.objectExpression(e.openingElement.attributes.map(NY)):B.nullLiteral(),n=t.runtime==="automatic"?B.identifier(r.length>1?"jsxs":"jsx"):WT(t.factory);return B.callExpression(n,[i,s,...r])}function _Y(){up=hp(`export default Promise.withResolvers();
|
|
52
|
+
`);async function e(r,i){let s=mi(r,i);return ba.test(s)?import(await HT(s)):import(s)}async function t(r,i){let s=mi(i,r);return ba.test(s)?await HT(s):s}import(up).then(r=>{r.default.resolve({import:e,resolve:t})})}var ba=/\.[cm]?[jt]sx?(?:[?#].*)?$/i,OY=/\.[cm]?[jt]sx(?:[?#].*)?$/i,$T=new Map,op=new Map;function DY(e,t,r,i){return(0,eS.parse)(e,{sourceFilename:t,sourceType:i==="module"?"module":"unambiguous",plugins:r?[...YT,"jsx"]:YT})}async function kY(e,t){let r=await fetch(e,rS);if(!r.ok)throw new Error(`[Typescript] failed to fetch ${e}: ${r.status}`);let i=await r.text(),s=OY.test(e),n=await sS(i,e,s,Hi,e,t);return{...n,isModule:Hi.scriptType==="module"||n.isModule}}async function LY(e,t,r){let i=mi(e,t);try{return(await dp(i,r)).url}catch(s){let n=s instanceof Error?s.message:String(s);throw Object.assign(new Error(`[Typescript] failed to resolve dependency ${JSON.stringify(e)} from ${t}: ${n}`),{cause:s})}}function MY(e,t){try{return ba.test(mi(e,t))}catch{return ba.test(e)}}async function HT(e,t){return(await dp(e,t)).url}async function dp(e,t){let r=$T.get(e);if(r)return r;let i=new Set(t);if(i.has(e))throw new Error(`[Typescript] circular dependency detected: ${e}`);i.add(e);let s=op.get(e);if(s)return s;let n=(async()=>{let a=await kY(e,i),o={url:hp(a.code),isModule:a.isModule};return $T.set(e,o),o})();op.set(e,n);try{return await n}finally{op.delete(e)}}async function zT(e,t,r){let i=t.parentNode;if(!i)return;let s=document.createElement("script");s.src=e,s.type=r?"module":"text/javascript";for(let{name:n,value:a}of Array.from(t.attributes))!["src","type"].includes(n)&&n.startsWith("data-")&&s.setAttribute(n,a);i.replaceChild(s,t),s.setAttribute("raw","")}function BY(e,t){throw console.error("[Typescript] failed to process script",t,e),e instanceof Error?e:new Error(String(e))}async function FY(e){await lp;try{let t=e.getAttribute("src");if(t){let l=await dp(mi(t));await zT(l.url,e,l.isModule);return}let{code:r,filename:i,baseUrl:s}=CY(e),n=iS(e),a=await sS(r,i,n,Hi,s),o=Hi.scriptType==="module"||a.isModule;await zT(hp(a.code),e,o)}catch(t){BY(t,e)}}function GT(e){e.hasAttribute("raw")||gY(e)&&(vY(e),FY(e))}function QT(e){e instanceof Element&&e.localName.toLowerCase()==="tsconfig"&&XT(e),e instanceof HTMLScriptElement&>(e),e.querySelectorAll?.("tsconfig[src]").forEach(XT),e.querySelectorAll?.("script").forEach(GT)}function ZT(){QT(document),new MutationObserver(t=>{for(let r of t)for(let i of Array.from(r.addedNodes))(i instanceof Element||i instanceof DocumentFragment)&&QT(i)}).observe(document.documentElement,{childList:!0,subtree:!0})}_Y();document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ZT,{once:!0}):ZT();})();
|
|
54
53
|
//# sourceMappingURL=typescript-runtime.global.js.map
|