@amaster.ai/vite-plugins 1.1.0-beta.70 → 1.1.0-beta.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,64 +1,11 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var Js=require('fs'),Ti=require('path'),url=require('url'),Lp=require('process'),_a=require('fs/promises');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Js__default=/*#__PURE__*/_interopDefault(Js);var Ti__default=/*#__PURE__*/_interopDefault(Ti);var Lp__default=/*#__PURE__*/_interopDefault(Lp);var _a__default=/*#__PURE__*/_interopDefault(_a);var TS=Object.create;var Np=Object.defineProperty;var SS=Object.getOwnPropertyDescriptor;var gS=Object.getOwnPropertyNames;var xS=Object.getPrototypeOf,bS=Object.prototype.hasOwnProperty;var Vs=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var C=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ES=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of gS(t))!bS.call(e,s)&&s!==r&&Np(e,s,{get:()=>t[s],enumerable:!(i=SS(t,s))||i.enumerable});return e};var wa=(e,t,r)=>(r=e!=null?TS(xS(e)):{},ES(Np(r,"default",{value:e,enumerable:true}),e));var Ma=C((La,zi)=>{(function(e,t){if(typeof La=="object"&&typeof zi<"u")t(zi),zi.exports=r(zi);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}})(La,(function(e){var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=(X,j)=>{for(var D in j)t(X,D,{get:j[D],enumerable:true});},a=(X,j,D,$)=>{if(j&&typeof j=="object"||typeof j=="function")for(let oe of i(j))!s.call(X,oe)&&oe!==D&&t(X,oe,{get:()=>j[oe],enumerable:!($=r(j,oe))||$.enumerable});return X},o=X=>a(t({},"__esModule",{value:true}),X),l={};n(l,{decode:()=>kt,decodeGeneratedRanges:()=>Ze,decodeOriginalScopes:()=>ue,encode:()=>hr,encodeGeneratedRanges:()=>Pt,encodeOriginalScopes:()=>Ce}),e.exports=o(l);var c=44,f=59,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=new Uint8Array(64),A=new Uint8Array(128);for(let X=0;X<g.length;X++){let j=g.charCodeAt(X);E[X]=j,A[j]=X;}function v(X,j){let D=0,$=0,oe=0;do{let De=X.next();oe=A[De],D|=(oe&31)<<$,$+=5;}while(oe&32);let Te=D&1;return D>>>=1,Te&&(D=-2147483648|-D),j+D}function O(X,j,D){let $=j-D;$=$<0?-$<<1|1:$<<1;do{let oe=$&31;$>>>=5,$>0&&(oe|=32),X.write(E[oe]);}while($>0);return j}function w(X,j){return X.pos>=j?false:X.peek()!==c}var _=1024*16,L=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(X){return Buffer.from(X.buffer,X.byteOffset,X.byteLength).toString()}}:{decode(X){let j="";for(let D=0;D<X.length;D++)j+=String.fromCharCode(X[D]);return j}},ee=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(_);}write(X){let{buffer:j}=this;j[this.pos++]=X,this.pos===_&&(this.out+=L.decode(j),this.pos=0);}flush(){let{buffer:X,out:j,pos:D}=this;return D>0?j+L.decode(X.subarray(0,D)):j}},W=class{constructor(X){this.pos=0,this.buffer=X;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(X){let{buffer:j,pos:D}=this,$=j.indexOf(X,D);return $===-1?j.length:$}},J=[];function ue(X){let{length:j}=X,D=new W(X),$=[],oe=[],Te=0;for(;D.pos<j;D.pos++){Te=v(D,Te);let De=v(D,0);if(!w(D,j)){let Ve=oe.pop();Ve[2]=Te,Ve[3]=De;continue}let ve=v(D,0),Le=v(D,0)&1?[Te,De,0,0,ve,v(D,0)]:[Te,De,0,0,ve],Re=J;if(w(D,j)){Re=[];do{let Ve=v(D,0);Re.push(Ve);}while(w(D,j))}Le.vars=Re,$.push(Le),oe.push(Le);}return $}function Ce(X){let j=new ee;for(let D=0;D<X.length;)D=Be(X,D,j,[0]);return j.flush()}function Be(X,j,D,$){let oe=X[j],{0:Te,1:De,2:ve,3:Fe,4:_e,vars:Le}=oe;j>0&&D.write(c),$[0]=O(D,Te,$[0]),O(D,De,0),O(D,_e,0);let Re=oe.length===6?1:0;O(D,Re,0),oe.length===6&&O(D,oe[5],0);for(let Ve of Le)O(D,Ve,0);for(j++;j<X.length;){let Ve=X[j],{0:xe,1:qe}=Ve;if(xe>ve||xe===ve&&qe>=Fe)break;j=Be(X,j,D,$);}return D.write(c),$[0]=O(D,ve,$[0]),O(D,Fe,0),j}function Ze(X){let{length:j}=X,D=new W(X),$=[],oe=[],Te=0,De=0,ve=0,Fe=0,_e=0,Le=0,Re=0,Ve=0;do{let xe=D.indexOf(";"),qe=0;for(;D.pos<xe;D.pos++){if(qe=v(D,qe),!w(D,xe)){let te=oe.pop();te[2]=Te,te[3]=qe;continue}let Xe=v(D,0),ht=Xe&1,dt=Xe&2,dr=Xe&4,q=null,R=J,H;if(ht){let te=v(D,De);ve=v(D,De===te?ve:0),De=te,H=[Te,qe,0,0,te,ve];}else H=[Te,qe,0,0];if(H.isScope=!!dr,dt){let te=Fe,ce=_e;Fe=v(D,Fe);let pe=te===Fe;_e=v(D,pe?_e:0),Le=v(D,pe&&ce===_e?Le:0),q=[Fe,_e,Le];}if(H.callsite=q,w(D,xe)){R=[];do{Re=Te,Ve=qe;let te=v(D,0),ce;if(te<-1){ce=[[v(D,0)]];for(let pe=-1;pe>te;pe--){let Ie=Re;Re=v(D,Re),Ve=v(D,Re===Ie?Ve:0);let nt=v(D,0);ce.push([nt,Re,Ve]);}}else ce=[[te]];R.push(ce);}while(w(D,xe))}H.bindings=R,$.push(H),oe.push(H);}Te++,D.pos=xe+1;}while(D.pos<j);return $}function Pt(X){if(X.length===0)return "";let j=new ee;for(let D=0;D<X.length;)D=At(X,D,j,[0,0,0,0,0,0,0]);return j.flush()}function At(X,j,D,$){let oe=X[j],{0:Te,1:De,2:ve,3:Fe,isScope:_e,callsite:Le,bindings:Re}=oe;$[0]<Te?(Nt(D,$[0],Te),$[0]=Te,$[1]=0):j>0&&D.write(c),$[1]=O(D,oe[1],$[1]);let Ve=(oe.length===6?1:0)|(Le?2:0)|(_e?4:0);if(O(D,Ve,0),oe.length===6){let{4:xe,5:qe}=oe;xe!==$[2]&&($[3]=0),$[2]=O(D,xe,$[2]),$[3]=O(D,qe,$[3]);}if(Le){let{0:xe,1:qe,2:Xe}=oe.callsite;xe!==$[4]?($[5]=0,$[6]=0):qe!==$[5]&&($[6]=0),$[4]=O(D,xe,$[4]),$[5]=O(D,qe,$[5]),$[6]=O(D,Xe,$[6]);}if(Re)for(let xe of Re){xe.length>1&&O(D,-xe.length,0);let qe=xe[0][0];O(D,qe,0);let Xe=Te,ht=De;for(let dt=1;dt<xe.length;dt++){let dr=xe[dt];Xe=O(D,dr[1],Xe),ht=O(D,dr[2],ht),O(D,dr[0],0);}}for(j++;j<X.length;){let xe=X[j],{0:qe,1:Xe}=xe;if(qe>ve||qe===ve&&Xe>=Fe)break;j=At(X,j,D,$);}return $[0]<ve?(Nt(D,$[0],ve),$[0]=ve,$[1]=0):D.write(c),$[1]=O(D,Fe,$[1]),j}function Nt(X,j,D){do X.write(f);while(++j<D)}function kt(X){let{length:j}=X,D=new W(X),$=[],oe=0,Te=0,De=0,ve=0,Fe=0;do{let _e=D.indexOf(";"),Le=[],Re=true,Ve=0;for(oe=0;D.pos<_e;){let xe;oe=v(D,oe),oe<Ve&&(Re=false),Ve=oe,w(D,_e)?(Te=v(D,Te),De=v(D,De),ve=v(D,ve),w(D,_e)?(Fe=v(D,Fe),xe=[oe,Te,De,ve,Fe]):xe=[oe,Te,De,ve]):xe=[oe],Le.push(xe),D.pos++;}Re||Qt(Le),$.push(Le),D.pos=_e+1;}while(D.pos<=j);return $}function Qt(X){X.sort(Kr);}function Kr(X,j){return X[0]-j[0]}function hr(X){let j=new ee,D=0,$=0,oe=0,Te=0;for(let De=0;De<X.length;De++){let ve=X[De];if(De>0&&j.write(f),ve.length===0)continue;let Fe=0;for(let _e=0;_e<ve.length;_e++){let Le=ve[_e];_e>0&&j.write(c),Fe=O(j,Le[0],Fe),Le.length!==1&&(D=O(j,Le[1],D),$=O(j,Le[2],$),oe=O(j,Le[3],oe),Le.length!==4&&(Te=O(j,Le[4],Te)));}}return j.flush()}}));});var Bp=C((Ba,Fa)=>{(function(e,t){typeof Ba=="object"&&typeof Fa<"u"?Fa.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t());})(Ba,(function(){let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(w){return e.test(w)}function s(w){return w.startsWith("//")}function n(w){return w.startsWith("/")}function a(w){return w.startsWith("file:")}function o(w){return /^[.?#]/.test(w)}function l(w){let _=t.exec(w);return f(_[1],_[2]||"",_[3],_[4]||"",_[5]||"/",_[6]||"",_[7]||"")}function c(w){let _=r.exec(w),L=_[2];return f("file:","",_[1]||"","",n(L)?L:"/"+L,_[3]||"",_[4]||"")}function f(w,_,L,ee,W,J,ue){return {scheme:w,user:_,host:L,port:ee,path:W,query:J,hash:ue,type:7}}function g(w){if(s(w)){let L=l("http:"+w);return L.scheme="",L.type=6,L}if(n(w)){let L=l("http://foo.com"+w);return L.scheme="",L.host="",L.type=5,L}if(a(w))return c(w);if(i(w))return l(w);let _=l("http://foo.com/"+w);return _.scheme="",_.host="",_.type=w?w.startsWith("?")?3:w.startsWith("#")?2:4:1,_}function E(w){if(w.endsWith("/.."))return w;let _=w.lastIndexOf("/");return w.slice(0,_+1)}function A(w,_){v(_,_.type),w.path==="/"?w.path=_.path:w.path=E(_.path)+w.path;}function v(w,_){let L=_<=4,ee=w.path.split("/"),W=1,J=0,ue=false;for(let Be=1;Be<ee.length;Be++){let Ze=ee[Be];if(!Ze){ue=true;continue}if(ue=false,Ze!=="."){if(Ze===".."){J?(ue=true,J--,W--):L&&(ee[W++]=Ze);continue}ee[W++]=Ze,J++;}}let Ce="";for(let Be=1;Be<W;Be++)Ce+="/"+ee[Be];(!Ce||ue&&!Ce.endsWith("/.."))&&(Ce+="/"),w.path=Ce;}function O(w,_){if(!w&&!_)return "";let L=g(w),ee=L.type;if(_&&ee!==7){let J=g(_),ue=J.type;switch(ee){case 1:L.hash=J.hash;case 2:L.query=J.query;case 3:case 4:A(L,J);case 5:L.user=J.user,L.host=J.host,L.port=J.port;case 6:L.scheme=J.scheme;}ue>ee&&(ee=ue);}v(L,ee);let W=L.query+L.hash;switch(ee){case 2:case 3:return W;case 4:{let J=L.path.slice(1);return J?o(_||w)&&!o(J)?"./"+J+W:J+W:W||"."}case 5:return L.path+W;default:return L.scheme+"//"+L.user+L.host+L.port+L.path+W}}return O}));});var ja=C((Ra,Gi)=>{(function(e,t){if(typeof Ra=="object"&&typeof Gi<"u")t(Gi,Bp(),Ma()),Gi.exports=r(Gi);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}})(Ra,(function(e,t,r){var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(N,M)=>function(){return M||(0, N[a(N)[0]])((M={exports:{}}).exports,M),M.exports},f=(N,M)=>{for(var B in M)s(N,B,{get:M[B],enumerable:true});},g=(N,M,B,V)=>{if(M&&typeof M=="object"||typeof M=="function")for(let ae of a(M))!l.call(N,ae)&&ae!==B&&s(N,ae,{get:()=>M[ae],enumerable:!(V=n(M,ae))||V.enumerable});return N},E=(N,M,B)=>(B=N!=null?i(o(N)):{},g(!N||!N.__esModule?s(B,"default",{value:N,enumerable:true}):B,N)),A=N=>g(s({},"__esModule",{value:true}),N),v=c({"umd:@jridgewell/sourcemap-codec"(N,M){M.exports=r;}}),O=c({"umd:@jridgewell/resolve-uri"(N,M){M.exports=t;}}),w={};f(w,{AnyMap:()=>Fe,FlattenMap:()=>Fe,GREATEST_LOWER_BOUND:()=>ht,LEAST_UPPER_BOUND:()=>Xe,TraceMap:()=>dt,allGeneratedPositionsFor:()=>pe,decodedMap:()=>Yr,decodedMappings:()=>R,eachMapping:()=>Ie,encodedMap:()=>mi,encodedMappings:()=>q,generatedPositionFor:()=>ce,isIgnored:()=>Hi,originalPositionFor:()=>te,presortedDecodedMap:()=>Vr,sourceContentFor:()=>Dt,traceSegment:()=>H}),e.exports=A(w);var _=E(v()),L=E(O());function ee(N){if(!N)return "";let M=N.lastIndexOf("/");return N.slice(0,M+1)}function W(N,M){let B=ee(N),V=M?M+"/":"";return ae=>(0, L.default)(V+(ae||""),B)}var J=0,ue=1,Ce=2,Be=3,Ze=4,Pt=1,At=2;function Nt(N,M){let B=kt(N,0);if(B===N.length)return N;M||(N=N.slice());for(let V=B;V<N.length;V=kt(N,V+1))N[V]=Kr(N[V],M);return N}function kt(N,M){for(let B=M;B<N.length;B++)if(!Qt(N[B]))return B;return N.length}function Qt(N){for(let M=1;M<N.length;M++)if(N[M][J]<N[M-1][J])return false;return true}function Kr(N,M){return M||(N=N.slice()),N.sort(hr)}function hr(N,M){return N[J]-M[J]}function X(N,M){let B=M.map(()=>[]);for(let V=0;V<N.length;V++){let ae=N[V];for(let re=0;re<ae.length;re++){let be=ae[re];if(be.length===1)continue;let je=be[ue],Se=be[Ce],et=be[Be],it=B[je];(it[Se]||(it[Se]=[])).push([et,V,be[J]]);}}for(let V=0;V<B.length;V++){let ae=B[V];for(let re=0;re<ae.length;re++){let be=ae[re];be&&be.sort(hr);}}return B}var j=false;function D(N,M,B,V){for(;B<=V;){let ae=B+(V-B>>1),re=N[ae][J]-M;if(re===0)return j=true,ae;re<0?B=ae+1:V=ae-1;}return j=false,B-1}function $(N,M,B){for(let V=B+1;V<N.length&&N[V][J]===M;B=V++);return B}function oe(N,M,B){for(let V=B-1;V>=0&&N[V][J]===M;B=V--);return B}function Te(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}function De(N,M,B,V){let{lastKey:ae,lastNeedle:re,lastIndex:be}=B,je=0,Se=N.length-1;if(V===ae){if(M===re)return j=be!==-1&&N[be][J]===M,be;M>=re?je=be===-1?0:be:Se=be;}return B.lastKey=V,B.lastNeedle=M,B.lastIndex=D(N,M,je,Se)}function ve(N){return typeof N=="string"?JSON.parse(N):N}var Fe=function(N,M){let B=ve(N);if(!("sections"in B))return new dt(B,M);let V=[],ae=[],re=[],be=[],je=[];_e(B,M,V,ae,re,be,je,0,0,1/0,1/0);let Se={version:3,file:B.file,names:be,sources:ae,sourcesContent:re,mappings:V,ignoreList:je};return Vr(Se)};function _e(N,M,B,V,ae,re,be,je,Se,et,it){let{sections:st}=N;for(let _t=0;_t<st.length;_t++){let{map:Lt,offset:Zt}=st[_t],er=et,Tr=it;if(_t+1<st.length){let yi=st[_t+1].offset;er=Math.min(et,je+yi.line),er===et?Tr=Math.min(it,Se+yi.column):er<et&&(Tr=Se+yi.column);}Le(Lt,M,B,V,ae,re,be,je+Zt.line,Se+Zt.column,er,Tr);}}function Le(N,M,B,V,ae,re,be,je,Se,et,it){let st=ve(N);if("sections"in st)return _e(...arguments);let _t=new dt(st,M),Lt=V.length,Zt=re.length,er=R(_t),{resolvedSources:Tr,sourcesContent:yi,ignoreList:va}=_t;if(Re(V,Tr),Re(re,_t.names),yi)Re(ae,yi);else for(let Mt=0;Mt<Tr.length;Mt++)ae.push(null);if(va)for(let Mt=0;Mt<va.length;Mt++)be.push(va[Mt]+Lt);for(let Mt=0;Mt<er.length;Mt++){let Ca=je+Mt;if(Ca>et)return;let Ap=Ve(B,Ca),yS=Mt===0?Se:0,vp=er[Mt];for(let Ia=0;Ia<vp.length;Ia++){let Wr=vp[Ia],Ks=yS+Wr[J];if(Ca===et&&Ks>=it)return;if(Wr.length===1){Ap.push([Ks]);continue}let Cp=Lt+Wr[ue],Ip=Wr[Ce],wp=Wr[Be];Ap.push(Wr.length===4?[Ks,Cp,Ip,wp]:[Ks,Cp,Ip,wp,Zt+Wr[Ze]]);}}}function Re(N,M){for(let B=0;B<M.length;B++)N.push(M[B]);}function Ve(N,M){for(let B=N.length;B<=M;B++)N[B]=[];return N[M]}var xe="`line` must be greater than 0 (lines start at line 1)",qe="`column` must be greater than or equal to 0 (columns start at column 0)",Xe=-1,ht=1,dt=class{constructor(N,M){let B=typeof N=="string";if(!B&&N._decodedMemo)return N;let V=ve(N),{version:ae,file:re,names:be,sourceRoot:je,sources:Se,sourcesContent:et}=V;this.version=ae,this.file=re,this.names=be||[],this.sourceRoot=je,this.sources=Se,this.sourcesContent=et,this.ignoreList=V.ignoreList||V.x_google_ignoreList||void 0;let it=W(M,je);this.resolvedSources=Se.map(it);let{mappings:st}=V;if(typeof st=="string")this._encoded=st,this._decoded=void 0;else if(Array.isArray(st))this._encoded=void 0,this._decoded=Nt(st,B);else throw V.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(V)}`);this._decodedMemo=Te(),this._bySources=void 0,this._bySourceMemos=void 0;}};function q(N){var M,B;return (B=(M=N)._encoded)!=null?B:M._encoded=(0, _.encode)(N._decoded)}function R(N){var M;return (M=N)._decoded||(M._decoded=(0, _.decode)(N._encoded))}function H(N,M,B){let V=R(N);if(M>=V.length)return null;let ae=V[M],re=Jr(ae,N._decodedMemo,M,B,ht);return re===-1?null:ae[re]}function te(N,M){let{line:B,column:V,bias:ae}=M;if(B--,B<0)throw new Error(xe);if(V<0)throw new Error(qe);let re=R(N);if(B>=re.length)return yr(null,null,null,null);let be=re[B],je=Jr(be,N._decodedMemo,B,V,ae||ht);if(je===-1)return yr(null,null,null,null);let Se=be[je];if(Se.length===1)return yr(null,null,null,null);let{names:et,resolvedSources:it}=N;return yr(it[Se[ue]],Se[Ce]+1,Se[Be],Se.length===5?et[Se[Ze]]:null)}function ce(N,M){let{source:B,line:V,column:ae,bias:re}=M;return Pp(N,B,V,ae,re||ht,false)}function pe(N,M){let{source:B,line:V,column:ae,bias:re}=M;return Pp(N,B,V,ae,re||Xe,true)}function Ie(N,M){let B=R(N),{names:V,resolvedSources:ae}=N;for(let re=0;re<B.length;re++){let be=B[re];for(let je=0;je<be.length;je++){let Se=be[je],et=re+1,it=Se[0],st=null,_t=null,Lt=null,Zt=null;Se.length!==1&&(st=ae[Se[1]],_t=Se[2]+1,Lt=Se[3]),Se.length===5&&(Zt=V[Se[4]]),M({generatedLine:et,generatedColumn:it,source:st,originalLine:_t,originalColumn:Lt,name:Zt});}}}function nt(N,M){let{sources:B,resolvedSources:V}=N,ae=B.indexOf(M);return ae===-1&&(ae=V.indexOf(M)),ae}function Dt(N,M){let{sourcesContent:B}=N;if(B==null)return null;let V=nt(N,M);return V===-1?null:B[V]}function Hi(N,M){let{ignoreList:B}=N;if(B==null)return false;let V=nt(N,M);return V===-1?false:B.includes(V)}function Vr(N,M){let B=new dt(mr(N,[]),M);return B._decoded=N.mappings,B}function Yr(N){return mr(N,R(N))}function mi(N){return mr(N,q(N))}function mr(N,M){return {version:N.version,file:N.file,names:N.names,sourceRoot:N.sourceRoot,sources:N.sources,sourcesContent:N.sourcesContent,mappings:M,ignoreList:N.ignoreList||N.x_google_ignoreList}}function yr(N,M,B,V){return {source:N,line:M,column:B,name:V}}function Wt(N,M){return {line:N,column:M}}function Jr(N,M,B,V,ae){let re=De(N,V,M,B);return j?re=(ae===Xe?$:oe)(N,V,re):ae===Xe&&re++,re===-1||re===N.length?-1:re}function mS(N,M,B,V,ae){let re=Jr(N,M,B,V,ht);if(!j&&ae===Xe&&re++,re===-1||re===N.length)return [];let be=j?V:N[re][J];j||(re=oe(N,be,re));let je=$(N,be,re),Se=[];for(;re<=je;re++){let et=N[re];Se.push(Wt(et[Pt]+1,et[At]));}return Se}function Pp(N,M,B,V,ae,re){var be,je;if(B--,B<0)throw new Error(xe);if(V<0)throw new Error(qe);let{sources:Se,resolvedSources:et}=N,it=Se.indexOf(M);if(it===-1&&(it=et.indexOf(M)),it===-1)return re?[]:Wt(null,null);let st=(be=N)._bySourceMemos||(be._bySourceMemos=Se.map(Te)),Lt=((je=N)._bySources||(je._bySources=X(R(N),st)))[it][B];if(Lt==null)return re?[]:Wt(null,null);let Zt=st[it];if(re)return mS(Lt,Zt,B,V,ae);let er=Jr(Lt,Zt,B,V,ae);if(er===-1)return Wt(null,null);let Tr=Lt[er];return Wt(Tr[Pt]+1,Tr[At])}}));});var Fp=C((qa,Qi)=>{(function(e,t){if(typeof qa=="object"&&typeof Qi<"u")t(Qi,Ma(),ja()),Qi.exports=r(Qi);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}})(qa,(function(e,t,r){var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(q,R)=>function(){return R||(0, q[a(q)[0]])((R={exports:{}}).exports,R),R.exports},f=(q,R)=>{for(var H in R)s(q,H,{get:R[H],enumerable:true});},g=(q,R,H,te)=>{if(R&&typeof R=="object"||typeof R=="function")for(let ce of a(R))!l.call(q,ce)&&ce!==H&&s(q,ce,{get:()=>R[ce],enumerable:!(te=n(R,ce))||te.enumerable});return q},E=(q,R,H)=>(H=q!=null?i(o(q)):{},g(!q||!q.__esModule?s(H,"default",{value:q,enumerable:true}):H,q)),A=q=>g(s({},"__esModule",{value:true}),q),v=c({"umd:@jridgewell/sourcemap-codec"(q,R){R.exports=t;}}),O=c({"umd:@jridgewell/trace-mapping"(q,R){R.exports=r;}}),w={};f(w,{GenMapping:()=>Qt,addMapping:()=>X,addSegment:()=>hr,allMappings:()=>Fe,fromMap:()=>ve,maybeAddMapping:()=>D,maybeAddSegment:()=>j,setIgnore:()=>oe,setSourceContent:()=>$,toDecodedMap:()=>Te,toEncodedMap:()=>De}),e.exports=A(w);var _=class{constructor(){this._indexes={__proto__:null},this.array=[];}};function ee(q,R){return q._indexes[R]}function W(q,R){let H=ee(q,R);if(H!==void 0)return H;let{array:te,_indexes:ce}=q,pe=te.push(R);return ce[R]=pe-1}function J(q,R){let H=ee(q,R);if(H===void 0)return;let{array:te,_indexes:ce}=q;for(let pe=H+1;pe<te.length;pe++){let Ie=te[pe];te[pe-1]=Ie,ce[Ie]--;}ce[R]=void 0,te.pop();}var ue=E(v()),Ce=E(O()),Be=0,Ze=1,Pt=2,At=3,Nt=4,kt=-1,Qt=class{constructor({file:q,sourceRoot:R}={}){this._names=new _,this._sources=new _,this._sourcesContent=[],this._mappings=[],this.file=q,this.sourceRoot=R,this._ignoreList=new _;}};function hr(q,R,H,te,ce,pe,Ie,nt){return _e(false,q,R,H,te,ce,pe,Ie,nt)}function X(q,R){return dr(false,q,R)}var j=(q,R,H,te,ce,pe,Ie,nt)=>_e(true,q,R,H,te,ce,pe,Ie,nt),D=(q,R)=>dr(true,q,R);function $(q,R,H){let{_sources:te,_sourcesContent:ce}=q,pe=W(te,R);ce[pe]=H;}function oe(q,R,H=true){let{_sources:te,_sourcesContent:ce,_ignoreList:pe}=q,Ie=W(te,R);Ie===ce.length&&(ce[Ie]=null),H?W(pe,Ie):J(pe,Ie);}function Te(q){let{_mappings:R,_sources:H,_sourcesContent:te,_names:ce,_ignoreList:pe}=q;return qe(R),{version:3,file:q.file||void 0,names:ce.array,sourceRoot:q.sourceRoot||void 0,sources:H.array,sourcesContent:te,mappings:R,ignoreList:pe.array}}function De(q){let R=Te(q);return Object.assign({},R,{mappings:(0, ue.encode)(R.mappings)})}function ve(q){let R=new Ce.TraceMap(q),H=new Qt({file:R.file,sourceRoot:R.sourceRoot});return Xe(H._names,R.names),Xe(H._sources,R.sources),H._sourcesContent=R.sourcesContent||R.sources.map(()=>null),H._mappings=(0, Ce.decodedMappings)(R),R.ignoreList&&Xe(H._ignoreList,R.ignoreList),H}function Fe(q){let R=[],{_mappings:H,_sources:te,_names:ce}=q;for(let pe=0;pe<H.length;pe++){let Ie=H[pe];for(let nt=0;nt<Ie.length;nt++){let Dt=Ie[nt],Hi={line:pe+1,column:Dt[Be]},Vr,Yr,mi;Dt.length!==1&&(Vr=te.array[Dt[Ze]],Yr={line:Dt[Pt]+1,column:Dt[At]},Dt.length===5&&(mi=ce.array[Dt[Nt]])),R.push({generated:Hi,source:Vr,original:Yr,name:mi});}}return R}function _e(q,R,H,te,ce,pe,Ie,nt,Dt){let{_mappings:Hi,_sources:Vr,_sourcesContent:Yr,_names:mi}=R,mr=Re(Hi,H),yr=Ve(mr,te);if(!ce)return q&&ht(mr,yr)?void 0:xe(mr,yr,[te]);let Wt=W(Vr,ce),Jr=nt?W(mi,nt):kt;if(Wt===Yr.length&&(Yr[Wt]=Dt??null),!(q&&dt(mr,yr,Wt,pe,Ie,Jr)))return xe(mr,yr,nt?[te,Wt,pe,Ie,Jr]:[te,Wt,pe,Ie])}function Re(q,R){for(let H=q.length;H<=R;H++)q[H]=[];return q[R]}function Ve(q,R){let H=q.length;for(let te=H-1;te>=0;H=te--){let ce=q[te];if(R>=ce[Be])break}return H}function xe(q,R,H){for(let te=q.length;te>R;te--)q[te]=q[te-1];q[R]=H;}function qe(q){let{length:R}=q,H=R;for(let te=H-1;te>=0&&!(q[te].length>0);H=te,te--);H<R&&(q.length=H);}function Xe(q,R){for(let H=0;H<R.length;H++)W(q,R[H]);}function ht(q,R){return R===0?true:q[R-1].length===1}function dt(q,R,H,te,ce,pe){if(R===0)return false;let Ie=q[R-1];return Ie.length===1?false:H===Ie[Ze]&&te===Ie[Pt]&&ce===Ie[At]&&pe===(Ie.length===5?Ie[Nt]:kt)}function dr(q,R,H){let{generated:te,source:ce,original:pe,name:Ie,content:nt}=H;return ce?_e(q,R,te.line-1,te.column,ce,pe.line-1,pe.column,Ie,nt):_e(q,R,te.line-1,te.column,null,null,null,null,null)}}));});var Rp=C(Xs=>{Object.defineProperty(Xs,"__esModule",{value:true});Xs.default=void 0;var Cr=Fp(),Ua=ja(),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 Cr.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 Ua.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0, Cr.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o]);}}if(typeof r=="string"&&!t.inputSourceMap)(0, Cr.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0, Cr.setSourceContent)(s,a.replace(/\\/g,"/"),r[a]);}get(){return (0, Cr.toEncodedMap)(this._map)}getDecoded(){return (0, Cr.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0, Cr.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, Ua.originalPositionFor)(this._inputMap,{line:r,column:i}),!l.name&&n){let c=(0, Ua.originalPositionFor)(this._inputMap,n);c.name&&(s=c.name);}}else l={name:null,source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0, Cr.maybeAddMapping)(this._map,{name:s,generated:t,source:(o=l)==null?void 0:o.source,original:l});}};Xs.default=Ka;});var qp=C($s=>{Object.defineProperty($s,"__esModule",{value:true});$s.default=void 0;var jp=[];for(let e=0;e<32;e++)jp.push(" ".repeat(e*2));var Va=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=true,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:true});},get rawMappings(){let n=t.getRawMappings();return s.rawMappings=n,n},set rawMappings(n){Object.defineProperty(s,"rawMappings",{value:n,writable:true});}};return s}append(t,r){this._flush(),this._append(t,r);}appendChar(t){this._flush(),this._appendChar(t,1,true);}queue(t){this._flush(),this._queuedChar=t;}_flush(){let t=this._queuedChar;t!==0&&(this._appendChar(t,1,true),this._queuedChar=0);}_appendChar(t,r,i){if(this._last=t,t===-1){let a=r>=64?this._indentChar.repeat(r):jp[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){let i=t.length,s=this._position,n=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t;let a=this._map!==null;if(!r&&!a){s.column+=i;return}let{column:o,identifierName:l,identifierNamePos:c,filename:f}=n,g=n.line;(l!=null||c!=null)&&this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0);let E=t.indexOf(`
2
- `),A=0;for(a&&E!==0&&this._map.mark(s,g,o,l,c,f);E!==-1;)s.line++,s.column=0,A=E+1,A<i&&g!==void 0&&(g++,a&&this._map.mark(s,g,0,void 0,void 0,f)),E=t.indexOf(`
3
- `,A);s.column+=i-A;}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=false,s.identifierName=i),r(),i!=null&&(this._canMarkIdName=true,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],n=this._sourcePosition;s&&(n.line=s.line,n.column=Math.max(s.column+i,0),n.filename=r.filename);}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}};$s.default=Va;});var Hs=C(Ya=>{Object.defineProperty(Ya,"__esModule",{value:true});Ya.default=DS;function DS(e,t){let r=Object.keys(t);for(let i of r)if(e[i]!==t[i])return false;return true}});var Si=C(Ja=>{Object.defineProperty(Ja,"__esModule",{value:true});Ja.default=LS;var Up=new Set;function LS(e,t,r="",i=e){if(Up.has(i))return;Up.add(i);let{internal:s,trace:n}=MS(1,2);s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
4
- ${n}`);}function MS(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:false,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 $e=C(d=>{Object.defineProperty(d,"__esModule",{value:true});d.isAccessor=ZE;d.isAnyTypeAnnotation=Tx;d.isArgumentPlaceholder=Wb;d.isArrayExpression=BS;d.isArrayPattern=Lg;d.isArrayTypeAnnotation=Sx;d.isArrowFunctionExpression=Mg;d.isAssignmentExpression=FS;d.isAssignmentPattern=Dg;d.isAwaitExpression=sx;d.isBigIntLiteral=ax;d.isBinary=bE;d.isBinaryExpression=RS;d.isBindExpression=Xb;d.isBlock=AE;d.isBlockParent=PE;d.isBlockStatement=KS;d.isBooleanLiteral=ug;d.isBooleanLiteralTypeAnnotation=xx;d.isBooleanTypeAnnotation=gx;d.isBreakStatement=VS;d.isCallExpression=YS;d.isCatchClause=JS;d.isClass=zE;d.isClassAccessorProperty=px;d.isClassBody=Bg;d.isClassDeclaration=Rg;d.isClassExpression=Fg;d.isClassImplements=Ex;d.isClassMethod=zg;d.isClassPrivateMethod=hx;d.isClassPrivateProperty=fx;d.isClassProperty=cx;d.isCompletionStatement=IE;d.isConditional=wE;d.isConditionalExpression=WS;d.isContinueStatement=XS;d.isDebuggerStatement=$S;d.isDecimalLiteral=Zb;d.isDeclaration=FE;d.isDeclareClass=Px;d.isDeclareExportAllDeclaration=kx;d.isDeclareExportDeclaration=Ox;d.isDeclareFunction=Ax;d.isDeclareInterface=vx;d.isDeclareModule=Cx;d.isDeclareModuleExports=Ix;d.isDeclareOpaqueType=Nx;d.isDeclareTypeAlias=wx;d.isDeclareVariable=_x;d.isDeclaredPredicate=Dx;d.isDecorator=$b;d.isDirective=qS;d.isDirectiveLiteral=US;d.isDoExpression=Hb;d.isDoWhileStatement=HS;d.isEmptyStatement=zS;d.isEmptyTypeAnnotation=Yx;d.isEnumBody=aP;d.isEnumBooleanBody=Sb;d.isEnumBooleanMember=Eb;d.isEnumDeclaration=Tb;d.isEnumDefaultedMember=vb;d.isEnumMember=oP;d.isEnumNumberBody=gb;d.isEnumNumberMember=Pb;d.isEnumStringBody=xb;d.isEnumStringMember=Ab;d.isEnumSymbolBody=bb;d.isExistsTypeAnnotation=Lx;d.isExportAllDeclaration=jg;d.isExportDeclaration=GE;d.isExportDefaultDeclaration=qg;d.isExportDefaultSpecifier=zb;d.isExportNamedDeclaration=Ug;d.isExportNamespaceSpecifier=ox;d.isExportSpecifier=Kg;d.isExpression=xE;d.isExpressionStatement=GS;d.isExpressionWrapper=OE;d.isFile=QS;d.isFlow=tP;d.isFlowBaseAnnotation=iP;d.isFlowDeclaration=sP;d.isFlowPredicate=nP;d.isFlowType=rP;d.isFor=kE;d.isForInStatement=ZS;d.isForOfStatement=Vg;d.isForStatement=eg;d.isForXStatement=DE;d.isFunction=LE;d.isFunctionDeclaration=tg;d.isFunctionExpression=rg;d.isFunctionParameter=RE;d.isFunctionParent=ME;d.isFunctionTypeAnnotation=Mx;d.isFunctionTypeParam=Bx;d.isGenericTypeAnnotation=Fx;d.isIdentifier=ig;d.isIfStatement=sg;d.isImmutable=VE;d.isImport=nx;d.isImportAttribute=yx;d.isImportDeclaration=Yg;d.isImportDefaultSpecifier=Jg;d.isImportExpression=$g;d.isImportNamespaceSpecifier=Wg;d.isImportOrExportDeclaration=Kp;d.isImportSpecifier=Xg;d.isIndexedAccessType=Cb;d.isInferredPredicate=Rx;d.isInterfaceDeclaration=qx;d.isInterfaceExtends=jx;d.isInterfaceTypeAnnotation=Ux;d.isInterpreterDirective=jS;d.isIntersectionTypeAnnotation=Kx;d.isJSX=lP;d.isJSXAttribute=wb;d.isJSXClosingElement=Nb;d.isJSXClosingFragment=Kb;d.isJSXElement=_b;d.isJSXEmptyExpression=Ob;d.isJSXExpressionContainer=kb;d.isJSXFragment=qb;d.isJSXIdentifier=Lb;d.isJSXMemberExpression=Mb;d.isJSXNamespacedName=Bb;d.isJSXOpeningElement=Fb;d.isJSXOpeningFragment=Ub;d.isJSXSpreadAttribute=Rb;d.isJSXSpreadChild=Db;d.isJSXText=jb;d.isLVal=qE;d.isLabeledStatement=ng;d.isLiteral=KE;d.isLogicalExpression=pg;d.isLoop=NE;d.isMemberExpression=fg;d.isMetaProperty=Hg;d.isMethod=JE;d.isMiscellaneous=uP;d.isMixedTypeAnnotation=Vx;d.isModuleDeclaration=SP;d.isModuleExpression=e0;d.isModuleSpecifier=QE;d.isNewExpression=hg;d.isNoop=Vb;d.isNullLiteral=lg;d.isNullLiteralTypeAnnotation=bx;d.isNullableTypeAnnotation=Jx;d.isNumberLiteral=dP;d.isNumberLiteralTypeAnnotation=Wx;d.isNumberTypeAnnotation=Xx;d.isNumericLiteral=og;d.isObjectExpression=mg;d.isObjectMember=WE;d.isObjectMethod=yg;d.isObjectPattern=Gg;d.isObjectProperty=Tg;d.isObjectTypeAnnotation=$x;d.isObjectTypeCallProperty=zx;d.isObjectTypeIndexer=Gx;d.isObjectTypeInternalSlot=Hx;d.isObjectTypeProperty=Qx;d.isObjectTypeSpreadProperty=Zx;d.isOpaqueType=eb;d.isOptionalCallExpression=ux;d.isOptionalIndexedAccessType=Ib;d.isOptionalMemberExpression=lx;d.isParenthesizedExpression=bg;d.isPattern=HE;d.isPatternLike=jE;d.isPipelineBareFunction=i0;d.isPipelinePrimaryTopicReference=s0;d.isPipelineTopicExpression=r0;d.isPlaceholder=Yb;d.isPrivate=eP;d.isPrivateName=dx;d.isProgram=dg;d.isProperty=XE;d.isPureish=BE;d.isQualifiedTypeIdentifier=tb;d.isRecordExpression=Gb;d.isRegExpLiteral=cg;d.isRegexLiteral=mP;d.isRestElement=Sg;d.isRestProperty=yP;d.isReturnStatement=gg;d.isScopable=EE;d.isSequenceExpression=xg;d.isSpreadElement=Qg;d.isSpreadProperty=TP;d.isStandardized=gE;d.isStatement=vE;d.isStaticBlock=mx;d.isStringLiteral=ag;d.isStringLiteralTypeAnnotation=rb;d.isStringTypeAnnotation=ib;d.isSuper=Zg;d.isSwitchCase=Eg;d.isSwitchStatement=Pg;d.isSymbolTypeAnnotation=sb;d.isTSAnyKeyword=m0;d.isTSArrayType=M0;d.isTSAsExpression=tE;d.isTSBaseType=hP;d.isTSBigIntKeyword=T0;d.isTSBooleanKeyword=y0;d.isTSCallSignatureDeclaration=c0;d.isTSConditionalType=K0;d.isTSConstructSignatureDeclaration=p0;d.isTSConstructorType=_0;d.isTSDeclareFunction=o0;d.isTSDeclareMethod=l0;d.isTSEntityName=UE;d.isTSEnumBody=sE;d.isTSEnumDeclaration=nE;d.isTSEnumMember=aE;d.isTSExportAssignment=hE;d.isTSExpressionWithTypeArguments=z0;d.isTSExternalModuleReference=pE;d.isTSFunctionType=N0;d.isTSImportEqualsDeclaration=cE;d.isTSImportType=uE;d.isTSIndexSignature=d0;d.isTSIndexedAccessType=W0;d.isTSInferType=V0;d.isTSInstantiationExpression=eE;d.isTSInterfaceBody=Q0;d.isTSInterfaceDeclaration=G0;d.isTSIntersectionType=U0;d.isTSIntrinsicKeyword=S0;d.isTSLiteralType=H0;d.isTSMappedType=X0;d.isTSMethodSignature=h0;d.isTSModuleBlock=lE;d.isTSModuleDeclaration=oE;d.isTSNamedTupleMember=j0;d.isTSNamespaceExportDeclaration=dE;d.isTSNeverKeyword=g0;d.isTSNonNullExpression=fE;d.isTSNullKeyword=x0;d.isTSNumberKeyword=b0;d.isTSObjectKeyword=E0;d.isTSOptionalType=F0;d.isTSParameterProperty=a0;d.isTSParenthesizedType=Y0;d.isTSPropertySignature=f0;d.isTSQualifiedName=u0;d.isTSRestType=R0;d.isTSSatisfiesExpression=rE;d.isTSStringKeyword=P0;d.isTSSymbolKeyword=A0;d.isTSTemplateLiteralType=$0;d.isTSThisType=w0;d.isTSTupleType=B0;d.isTSType=fP;d.isTSTypeAliasDeclaration=Z0;d.isTSTypeAnnotation=mE;d.isTSTypeAssertion=iE;d.isTSTypeElement=pP;d.isTSTypeLiteral=L0;d.isTSTypeOperator=J0;d.isTSTypeParameter=SE;d.isTSTypeParameterDeclaration=TE;d.isTSTypeParameterInstantiation=yE;d.isTSTypePredicate=k0;d.isTSTypeQuery=D0;d.isTSTypeReference=O0;d.isTSUndefinedKeyword=v0;d.isTSUnionType=q0;d.isTSUnknownKeyword=C0;d.isTSVoidKeyword=I0;d.isTaggedTemplateExpression=ex;d.isTemplateElement=tx;d.isTemplateLiteral=rx;d.isTerminatorless=CE;d.isThisExpression=Ag;d.isThisTypeAnnotation=nb;d.isThrowStatement=vg;d.isTopicReference=t0;d.isTryStatement=Cg;d.isTupleExpression=Qb;d.isTupleTypeAnnotation=ab;d.isTypeAlias=lb;d.isTypeAnnotation=ub;d.isTypeCastExpression=cb;d.isTypeParameter=pb;d.isTypeParameterDeclaration=fb;d.isTypeParameterInstantiation=hb;d.isTypeScript=cP;d.isTypeofTypeAnnotation=ob;d.isUnaryExpression=Ig;d.isUnaryLike=$E;d.isUnionTypeAnnotation=db;d.isUpdateExpression=wg;d.isUserWhitespacable=YE;d.isV8IntrinsicIdentifier=Jb;d.isVariableDeclaration=Ng;d.isVariableDeclarator=_g;d.isVariance=mb;d.isVoidPattern=n0;d.isVoidTypeAnnotation=yb;d.isWhile=_E;d.isWhileStatement=Og;d.isWithStatement=kg;d.isYieldExpression=ix;var T=Hs(),Zi=Si();function BS(e,t){return !e||e.type!=="ArrayExpression"?false:t==null||(0, T.default)(e,t)}function FS(e,t){return !e||e.type!=="AssignmentExpression"?false:t==null||(0, T.default)(e,t)}function RS(e,t){return !e||e.type!=="BinaryExpression"?false:t==null||(0, T.default)(e,t)}function jS(e,t){return !e||e.type!=="InterpreterDirective"?false:t==null||(0, T.default)(e,t)}function qS(e,t){return !e||e.type!=="Directive"?false:t==null||(0, T.default)(e,t)}function US(e,t){return !e||e.type!=="DirectiveLiteral"?false:t==null||(0, T.default)(e,t)}function KS(e,t){return !e||e.type!=="BlockStatement"?false:t==null||(0, T.default)(e,t)}function VS(e,t){return !e||e.type!=="BreakStatement"?false:t==null||(0, T.default)(e,t)}function YS(e,t){return !e||e.type!=="CallExpression"?false:t==null||(0, T.default)(e,t)}function JS(e,t){return !e||e.type!=="CatchClause"?false:t==null||(0, T.default)(e,t)}function WS(e,t){return !e||e.type!=="ConditionalExpression"?false:t==null||(0, T.default)(e,t)}function XS(e,t){return !e||e.type!=="ContinueStatement"?false:t==null||(0, T.default)(e,t)}function $S(e,t){return !e||e.type!=="DebuggerStatement"?false:t==null||(0, T.default)(e,t)}function HS(e,t){return !e||e.type!=="DoWhileStatement"?false:t==null||(0, T.default)(e,t)}function zS(e,t){return !e||e.type!=="EmptyStatement"?false:t==null||(0, T.default)(e,t)}function GS(e,t){return !e||e.type!=="ExpressionStatement"?false:t==null||(0, T.default)(e,t)}function QS(e,t){return !e||e.type!=="File"?false:t==null||(0, T.default)(e,t)}function ZS(e,t){return !e||e.type!=="ForInStatement"?false:t==null||(0, T.default)(e,t)}function eg(e,t){return !e||e.type!=="ForStatement"?false:t==null||(0, T.default)(e,t)}function tg(e,t){return !e||e.type!=="FunctionDeclaration"?false:t==null||(0, T.default)(e,t)}function rg(e,t){return !e||e.type!=="FunctionExpression"?false:t==null||(0, T.default)(e,t)}function ig(e,t){return !e||e.type!=="Identifier"?false:t==null||(0, T.default)(e,t)}function sg(e,t){return !e||e.type!=="IfStatement"?false:t==null||(0, T.default)(e,t)}function ng(e,t){return !e||e.type!=="LabeledStatement"?false:t==null||(0, T.default)(e,t)}function ag(e,t){return !e||e.type!=="StringLiteral"?false:t==null||(0, T.default)(e,t)}function og(e,t){return !e||e.type!=="NumericLiteral"?false:t==null||(0, T.default)(e,t)}function lg(e,t){return !e||e.type!=="NullLiteral"?false:t==null||(0, T.default)(e,t)}function ug(e,t){return !e||e.type!=="BooleanLiteral"?false:t==null||(0, T.default)(e,t)}function cg(e,t){return !e||e.type!=="RegExpLiteral"?false:t==null||(0, T.default)(e,t)}function pg(e,t){return !e||e.type!=="LogicalExpression"?false:t==null||(0, T.default)(e,t)}function fg(e,t){return !e||e.type!=="MemberExpression"?false:t==null||(0, T.default)(e,t)}function hg(e,t){return !e||e.type!=="NewExpression"?false:t==null||(0, T.default)(e,t)}function dg(e,t){return !e||e.type!=="Program"?false:t==null||(0, T.default)(e,t)}function mg(e,t){return !e||e.type!=="ObjectExpression"?false:t==null||(0, T.default)(e,t)}function yg(e,t){return !e||e.type!=="ObjectMethod"?false:t==null||(0, T.default)(e,t)}function Tg(e,t){return !e||e.type!=="ObjectProperty"?false:t==null||(0, T.default)(e,t)}function Sg(e,t){return !e||e.type!=="RestElement"?false:t==null||(0, T.default)(e,t)}function gg(e,t){return !e||e.type!=="ReturnStatement"?false:t==null||(0, T.default)(e,t)}function xg(e,t){return !e||e.type!=="SequenceExpression"?false:t==null||(0, T.default)(e,t)}function bg(e,t){return !e||e.type!=="ParenthesizedExpression"?false:t==null||(0, T.default)(e,t)}function Eg(e,t){return !e||e.type!=="SwitchCase"?false:t==null||(0, T.default)(e,t)}function Pg(e,t){return !e||e.type!=="SwitchStatement"?false:t==null||(0, T.default)(e,t)}function Ag(e,t){return !e||e.type!=="ThisExpression"?false:t==null||(0, T.default)(e,t)}function vg(e,t){return !e||e.type!=="ThrowStatement"?false:t==null||(0, T.default)(e,t)}function Cg(e,t){return !e||e.type!=="TryStatement"?false:t==null||(0, T.default)(e,t)}function Ig(e,t){return !e||e.type!=="UnaryExpression"?false:t==null||(0, T.default)(e,t)}function wg(e,t){return !e||e.type!=="UpdateExpression"?false:t==null||(0, T.default)(e,t)}function Ng(e,t){return !e||e.type!=="VariableDeclaration"?false:t==null||(0, T.default)(e,t)}function _g(e,t){return !e||e.type!=="VariableDeclarator"?false:t==null||(0, T.default)(e,t)}function Og(e,t){return !e||e.type!=="WhileStatement"?false:t==null||(0, T.default)(e,t)}function kg(e,t){return !e||e.type!=="WithStatement"?false:t==null||(0, T.default)(e,t)}function Dg(e,t){return !e||e.type!=="AssignmentPattern"?false:t==null||(0, T.default)(e,t)}function Lg(e,t){return !e||e.type!=="ArrayPattern"?false:t==null||(0, T.default)(e,t)}function Mg(e,t){return !e||e.type!=="ArrowFunctionExpression"?false:t==null||(0, T.default)(e,t)}function Bg(e,t){return !e||e.type!=="ClassBody"?false:t==null||(0, T.default)(e,t)}function Fg(e,t){return !e||e.type!=="ClassExpression"?false:t==null||(0, T.default)(e,t)}function Rg(e,t){return !e||e.type!=="ClassDeclaration"?false:t==null||(0, T.default)(e,t)}function jg(e,t){return !e||e.type!=="ExportAllDeclaration"?false:t==null||(0, T.default)(e,t)}function qg(e,t){return !e||e.type!=="ExportDefaultDeclaration"?false:t==null||(0, T.default)(e,t)}function Ug(e,t){return !e||e.type!=="ExportNamedDeclaration"?false:t==null||(0, T.default)(e,t)}function Kg(e,t){return !e||e.type!=="ExportSpecifier"?false:t==null||(0, T.default)(e,t)}function Vg(e,t){return !e||e.type!=="ForOfStatement"?false:t==null||(0, T.default)(e,t)}function Yg(e,t){return !e||e.type!=="ImportDeclaration"?false:t==null||(0, T.default)(e,t)}function Jg(e,t){return !e||e.type!=="ImportDefaultSpecifier"?false:t==null||(0, T.default)(e,t)}function Wg(e,t){return !e||e.type!=="ImportNamespaceSpecifier"?false:t==null||(0, T.default)(e,t)}function Xg(e,t){return !e||e.type!=="ImportSpecifier"?false:t==null||(0, T.default)(e,t)}function $g(e,t){return !e||e.type!=="ImportExpression"?false:t==null||(0, T.default)(e,t)}function Hg(e,t){return !e||e.type!=="MetaProperty"?false:t==null||(0, T.default)(e,t)}function zg(e,t){return !e||e.type!=="ClassMethod"?false:t==null||(0, T.default)(e,t)}function Gg(e,t){return !e||e.type!=="ObjectPattern"?false:t==null||(0, T.default)(e,t)}function Qg(e,t){return !e||e.type!=="SpreadElement"?false:t==null||(0, T.default)(e,t)}function Zg(e,t){return !e||e.type!=="Super"?false:t==null||(0, T.default)(e,t)}function ex(e,t){return !e||e.type!=="TaggedTemplateExpression"?false:t==null||(0, T.default)(e,t)}function tx(e,t){return !e||e.type!=="TemplateElement"?false:t==null||(0, T.default)(e,t)}function rx(e,t){return !e||e.type!=="TemplateLiteral"?false:t==null||(0, T.default)(e,t)}function ix(e,t){return !e||e.type!=="YieldExpression"?false:t==null||(0, T.default)(e,t)}function sx(e,t){return !e||e.type!=="AwaitExpression"?false:t==null||(0, T.default)(e,t)}function nx(e,t){return !e||e.type!=="Import"?false:t==null||(0, T.default)(e,t)}function ax(e,t){return !e||e.type!=="BigIntLiteral"?false:t==null||(0, T.default)(e,t)}function ox(e,t){return !e||e.type!=="ExportNamespaceSpecifier"?false:t==null||(0, T.default)(e,t)}function lx(e,t){return !e||e.type!=="OptionalMemberExpression"?false:t==null||(0, T.default)(e,t)}function ux(e,t){return !e||e.type!=="OptionalCallExpression"?false:t==null||(0, T.default)(e,t)}function cx(e,t){return !e||e.type!=="ClassProperty"?false:t==null||(0, T.default)(e,t)}function px(e,t){return !e||e.type!=="ClassAccessorProperty"?false:t==null||(0, T.default)(e,t)}function fx(e,t){return !e||e.type!=="ClassPrivateProperty"?false:t==null||(0, T.default)(e,t)}function hx(e,t){return !e||e.type!=="ClassPrivateMethod"?false:t==null||(0, T.default)(e,t)}function dx(e,t){return !e||e.type!=="PrivateName"?false:t==null||(0, T.default)(e,t)}function mx(e,t){return !e||e.type!=="StaticBlock"?false:t==null||(0, T.default)(e,t)}function yx(e,t){return !e||e.type!=="ImportAttribute"?false:t==null||(0, T.default)(e,t)}function Tx(e,t){return !e||e.type!=="AnyTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Sx(e,t){return !e||e.type!=="ArrayTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function gx(e,t){return !e||e.type!=="BooleanTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function xx(e,t){return !e||e.type!=="BooleanLiteralTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function bx(e,t){return !e||e.type!=="NullLiteralTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Ex(e,t){return !e||e.type!=="ClassImplements"?false:t==null||(0, T.default)(e,t)}function Px(e,t){return !e||e.type!=="DeclareClass"?false:t==null||(0, T.default)(e,t)}function Ax(e,t){return !e||e.type!=="DeclareFunction"?false:t==null||(0, T.default)(e,t)}function vx(e,t){return !e||e.type!=="DeclareInterface"?false:t==null||(0, T.default)(e,t)}function Cx(e,t){return !e||e.type!=="DeclareModule"?false:t==null||(0, T.default)(e,t)}function Ix(e,t){return !e||e.type!=="DeclareModuleExports"?false:t==null||(0, T.default)(e,t)}function wx(e,t){return !e||e.type!=="DeclareTypeAlias"?false:t==null||(0, T.default)(e,t)}function Nx(e,t){return !e||e.type!=="DeclareOpaqueType"?false:t==null||(0, T.default)(e,t)}function _x(e,t){return !e||e.type!=="DeclareVariable"?false:t==null||(0, T.default)(e,t)}function Ox(e,t){return !e||e.type!=="DeclareExportDeclaration"?false:t==null||(0, T.default)(e,t)}function kx(e,t){return !e||e.type!=="DeclareExportAllDeclaration"?false:t==null||(0, T.default)(e,t)}function Dx(e,t){return !e||e.type!=="DeclaredPredicate"?false:t==null||(0, T.default)(e,t)}function Lx(e,t){return !e||e.type!=="ExistsTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Mx(e,t){return !e||e.type!=="FunctionTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Bx(e,t){return !e||e.type!=="FunctionTypeParam"?false:t==null||(0, T.default)(e,t)}function Fx(e,t){return !e||e.type!=="GenericTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Rx(e,t){return !e||e.type!=="InferredPredicate"?false:t==null||(0, T.default)(e,t)}function jx(e,t){return !e||e.type!=="InterfaceExtends"?false:t==null||(0, T.default)(e,t)}function qx(e,t){return !e||e.type!=="InterfaceDeclaration"?false:t==null||(0, T.default)(e,t)}function Ux(e,t){return !e||e.type!=="InterfaceTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Kx(e,t){return !e||e.type!=="IntersectionTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Vx(e,t){return !e||e.type!=="MixedTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Yx(e,t){return !e||e.type!=="EmptyTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Jx(e,t){return !e||e.type!=="NullableTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Wx(e,t){return !e||e.type!=="NumberLiteralTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Xx(e,t){return !e||e.type!=="NumberTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function $x(e,t){return !e||e.type!=="ObjectTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Hx(e,t){return !e||e.type!=="ObjectTypeInternalSlot"?false:t==null||(0, T.default)(e,t)}function zx(e,t){return !e||e.type!=="ObjectTypeCallProperty"?false:t==null||(0, T.default)(e,t)}function Gx(e,t){return !e||e.type!=="ObjectTypeIndexer"?false:t==null||(0, T.default)(e,t)}function Qx(e,t){return !e||e.type!=="ObjectTypeProperty"?false:t==null||(0, T.default)(e,t)}function Zx(e,t){return !e||e.type!=="ObjectTypeSpreadProperty"?false:t==null||(0, T.default)(e,t)}function eb(e,t){return !e||e.type!=="OpaqueType"?false:t==null||(0, T.default)(e,t)}function tb(e,t){return !e||e.type!=="QualifiedTypeIdentifier"?false:t==null||(0, T.default)(e,t)}function rb(e,t){return !e||e.type!=="StringLiteralTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function ib(e,t){return !e||e.type!=="StringTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function sb(e,t){return !e||e.type!=="SymbolTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function nb(e,t){return !e||e.type!=="ThisTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function ab(e,t){return !e||e.type!=="TupleTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function ob(e,t){return !e||e.type!=="TypeofTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function lb(e,t){return !e||e.type!=="TypeAlias"?false:t==null||(0, T.default)(e,t)}function ub(e,t){return !e||e.type!=="TypeAnnotation"?false:t==null||(0, T.default)(e,t)}function cb(e,t){return !e||e.type!=="TypeCastExpression"?false:t==null||(0, T.default)(e,t)}function pb(e,t){return !e||e.type!=="TypeParameter"?false:t==null||(0, T.default)(e,t)}function fb(e,t){return !e||e.type!=="TypeParameterDeclaration"?false:t==null||(0, T.default)(e,t)}function hb(e,t){return !e||e.type!=="TypeParameterInstantiation"?false:t==null||(0, T.default)(e,t)}function db(e,t){return !e||e.type!=="UnionTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function mb(e,t){return !e||e.type!=="Variance"?false:t==null||(0, T.default)(e,t)}function yb(e,t){return !e||e.type!=="VoidTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function Tb(e,t){return !e||e.type!=="EnumDeclaration"?false:t==null||(0, T.default)(e,t)}function Sb(e,t){return !e||e.type!=="EnumBooleanBody"?false:t==null||(0, T.default)(e,t)}function gb(e,t){return !e||e.type!=="EnumNumberBody"?false:t==null||(0, T.default)(e,t)}function xb(e,t){return !e||e.type!=="EnumStringBody"?false:t==null||(0, T.default)(e,t)}function bb(e,t){return !e||e.type!=="EnumSymbolBody"?false:t==null||(0, T.default)(e,t)}function Eb(e,t){return !e||e.type!=="EnumBooleanMember"?false:t==null||(0, T.default)(e,t)}function Pb(e,t){return !e||e.type!=="EnumNumberMember"?false:t==null||(0, T.default)(e,t)}function Ab(e,t){return !e||e.type!=="EnumStringMember"?false:t==null||(0, T.default)(e,t)}function vb(e,t){return !e||e.type!=="EnumDefaultedMember"?false:t==null||(0, T.default)(e,t)}function Cb(e,t){return !e||e.type!=="IndexedAccessType"?false:t==null||(0, T.default)(e,t)}function Ib(e,t){return !e||e.type!=="OptionalIndexedAccessType"?false:t==null||(0, T.default)(e,t)}function wb(e,t){return !e||e.type!=="JSXAttribute"?false:t==null||(0, T.default)(e,t)}function Nb(e,t){return !e||e.type!=="JSXClosingElement"?false:t==null||(0, T.default)(e,t)}function _b(e,t){return !e||e.type!=="JSXElement"?false:t==null||(0, T.default)(e,t)}function Ob(e,t){return !e||e.type!=="JSXEmptyExpression"?false:t==null||(0, T.default)(e,t)}function kb(e,t){return !e||e.type!=="JSXExpressionContainer"?false:t==null||(0, T.default)(e,t)}function Db(e,t){return !e||e.type!=="JSXSpreadChild"?false:t==null||(0, T.default)(e,t)}function Lb(e,t){return !e||e.type!=="JSXIdentifier"?false:t==null||(0, T.default)(e,t)}function Mb(e,t){return !e||e.type!=="JSXMemberExpression"?false:t==null||(0, T.default)(e,t)}function Bb(e,t){return !e||e.type!=="JSXNamespacedName"?false:t==null||(0, T.default)(e,t)}function Fb(e,t){return !e||e.type!=="JSXOpeningElement"?false:t==null||(0, T.default)(e,t)}function Rb(e,t){return !e||e.type!=="JSXSpreadAttribute"?false:t==null||(0, T.default)(e,t)}function jb(e,t){return !e||e.type!=="JSXText"?false:t==null||(0, T.default)(e,t)}function qb(e,t){return !e||e.type!=="JSXFragment"?false:t==null||(0, T.default)(e,t)}function Ub(e,t){return !e||e.type!=="JSXOpeningFragment"?false:t==null||(0, T.default)(e,t)}function Kb(e,t){return !e||e.type!=="JSXClosingFragment"?false:t==null||(0, T.default)(e,t)}function Vb(e,t){return !e||e.type!=="Noop"?false:t==null||(0, T.default)(e,t)}function Yb(e,t){return !e||e.type!=="Placeholder"?false:t==null||(0, T.default)(e,t)}function Jb(e,t){return !e||e.type!=="V8IntrinsicIdentifier"?false:t==null||(0, T.default)(e,t)}function Wb(e,t){return !e||e.type!=="ArgumentPlaceholder"?false:t==null||(0, T.default)(e,t)}function Xb(e,t){return !e||e.type!=="BindExpression"?false:t==null||(0, T.default)(e,t)}function $b(e,t){return !e||e.type!=="Decorator"?false:t==null||(0, T.default)(e,t)}function Hb(e,t){return !e||e.type!=="DoExpression"?false:t==null||(0, T.default)(e,t)}function zb(e,t){return !e||e.type!=="ExportDefaultSpecifier"?false:t==null||(0, T.default)(e,t)}function Gb(e,t){return !e||e.type!=="RecordExpression"?false:t==null||(0, T.default)(e,t)}function Qb(e,t){return !e||e.type!=="TupleExpression"?false:t==null||(0, T.default)(e,t)}function Zb(e,t){return !e||e.type!=="DecimalLiteral"?false:t==null||(0, T.default)(e,t)}function e0(e,t){return !e||e.type!=="ModuleExpression"?false:t==null||(0, T.default)(e,t)}function t0(e,t){return !e||e.type!=="TopicReference"?false:t==null||(0, T.default)(e,t)}function r0(e,t){return !e||e.type!=="PipelineTopicExpression"?false:t==null||(0, T.default)(e,t)}function i0(e,t){return !e||e.type!=="PipelineBareFunction"?false:t==null||(0, T.default)(e,t)}function s0(e,t){return !e||e.type!=="PipelinePrimaryTopicReference"?false:t==null||(0, T.default)(e,t)}function n0(e,t){return !e||e.type!=="VoidPattern"?false:t==null||(0, T.default)(e,t)}function a0(e,t){return !e||e.type!=="TSParameterProperty"?false:t==null||(0, T.default)(e,t)}function o0(e,t){return !e||e.type!=="TSDeclareFunction"?false:t==null||(0, T.default)(e,t)}function l0(e,t){return !e||e.type!=="TSDeclareMethod"?false:t==null||(0, T.default)(e,t)}function u0(e,t){return !e||e.type!=="TSQualifiedName"?false:t==null||(0, T.default)(e,t)}function c0(e,t){return !e||e.type!=="TSCallSignatureDeclaration"?false:t==null||(0, T.default)(e,t)}function p0(e,t){return !e||e.type!=="TSConstructSignatureDeclaration"?false:t==null||(0, T.default)(e,t)}function f0(e,t){return !e||e.type!=="TSPropertySignature"?false:t==null||(0, T.default)(e,t)}function h0(e,t){return !e||e.type!=="TSMethodSignature"?false:t==null||(0, T.default)(e,t)}function d0(e,t){return !e||e.type!=="TSIndexSignature"?false:t==null||(0, T.default)(e,t)}function m0(e,t){return !e||e.type!=="TSAnyKeyword"?false:t==null||(0, T.default)(e,t)}function y0(e,t){return !e||e.type!=="TSBooleanKeyword"?false:t==null||(0, T.default)(e,t)}function T0(e,t){return !e||e.type!=="TSBigIntKeyword"?false:t==null||(0, T.default)(e,t)}function S0(e,t){return !e||e.type!=="TSIntrinsicKeyword"?false:t==null||(0, T.default)(e,t)}function g0(e,t){return !e||e.type!=="TSNeverKeyword"?false:t==null||(0, T.default)(e,t)}function x0(e,t){return !e||e.type!=="TSNullKeyword"?false:t==null||(0, T.default)(e,t)}function b0(e,t){return !e||e.type!=="TSNumberKeyword"?false:t==null||(0, T.default)(e,t)}function E0(e,t){return !e||e.type!=="TSObjectKeyword"?false:t==null||(0, T.default)(e,t)}function P0(e,t){return !e||e.type!=="TSStringKeyword"?false:t==null||(0, T.default)(e,t)}function A0(e,t){return !e||e.type!=="TSSymbolKeyword"?false:t==null||(0, T.default)(e,t)}function v0(e,t){return !e||e.type!=="TSUndefinedKeyword"?false:t==null||(0, T.default)(e,t)}function C0(e,t){return !e||e.type!=="TSUnknownKeyword"?false:t==null||(0, T.default)(e,t)}function I0(e,t){return !e||e.type!=="TSVoidKeyword"?false:t==null||(0, T.default)(e,t)}function w0(e,t){return !e||e.type!=="TSThisType"?false:t==null||(0, T.default)(e,t)}function N0(e,t){return !e||e.type!=="TSFunctionType"?false:t==null||(0, T.default)(e,t)}function _0(e,t){return !e||e.type!=="TSConstructorType"?false:t==null||(0, T.default)(e,t)}function O0(e,t){return !e||e.type!=="TSTypeReference"?false:t==null||(0, T.default)(e,t)}function k0(e,t){return !e||e.type!=="TSTypePredicate"?false:t==null||(0, T.default)(e,t)}function D0(e,t){return !e||e.type!=="TSTypeQuery"?false:t==null||(0, T.default)(e,t)}function L0(e,t){return !e||e.type!=="TSTypeLiteral"?false:t==null||(0, T.default)(e,t)}function M0(e,t){return !e||e.type!=="TSArrayType"?false:t==null||(0, T.default)(e,t)}function B0(e,t){return !e||e.type!=="TSTupleType"?false:t==null||(0, T.default)(e,t)}function F0(e,t){return !e||e.type!=="TSOptionalType"?false:t==null||(0, T.default)(e,t)}function R0(e,t){return !e||e.type!=="TSRestType"?false:t==null||(0, T.default)(e,t)}function j0(e,t){return !e||e.type!=="TSNamedTupleMember"?false:t==null||(0, T.default)(e,t)}function q0(e,t){return !e||e.type!=="TSUnionType"?false:t==null||(0, T.default)(e,t)}function U0(e,t){return !e||e.type!=="TSIntersectionType"?false:t==null||(0, T.default)(e,t)}function K0(e,t){return !e||e.type!=="TSConditionalType"?false:t==null||(0, T.default)(e,t)}function V0(e,t){return !e||e.type!=="TSInferType"?false:t==null||(0, T.default)(e,t)}function Y0(e,t){return !e||e.type!=="TSParenthesizedType"?false:t==null||(0, T.default)(e,t)}function J0(e,t){return !e||e.type!=="TSTypeOperator"?false:t==null||(0, T.default)(e,t)}function W0(e,t){return !e||e.type!=="TSIndexedAccessType"?false:t==null||(0, T.default)(e,t)}function X0(e,t){return !e||e.type!=="TSMappedType"?false:t==null||(0, T.default)(e,t)}function $0(e,t){return !e||e.type!=="TSTemplateLiteralType"?false:t==null||(0, T.default)(e,t)}function H0(e,t){return !e||e.type!=="TSLiteralType"?false:t==null||(0, T.default)(e,t)}function z0(e,t){return !e||e.type!=="TSExpressionWithTypeArguments"?false:t==null||(0, T.default)(e,t)}function G0(e,t){return !e||e.type!=="TSInterfaceDeclaration"?false:t==null||(0, T.default)(e,t)}function Q0(e,t){return !e||e.type!=="TSInterfaceBody"?false:t==null||(0, T.default)(e,t)}function Z0(e,t){return !e||e.type!=="TSTypeAliasDeclaration"?false:t==null||(0, T.default)(e,t)}function eE(e,t){return !e||e.type!=="TSInstantiationExpression"?false:t==null||(0, T.default)(e,t)}function tE(e,t){return !e||e.type!=="TSAsExpression"?false:t==null||(0, T.default)(e,t)}function rE(e,t){return !e||e.type!=="TSSatisfiesExpression"?false:t==null||(0, T.default)(e,t)}function iE(e,t){return !e||e.type!=="TSTypeAssertion"?false:t==null||(0, T.default)(e,t)}function sE(e,t){return !e||e.type!=="TSEnumBody"?false:t==null||(0, T.default)(e,t)}function nE(e,t){return !e||e.type!=="TSEnumDeclaration"?false:t==null||(0, T.default)(e,t)}function aE(e,t){return !e||e.type!=="TSEnumMember"?false:t==null||(0, T.default)(e,t)}function oE(e,t){return !e||e.type!=="TSModuleDeclaration"?false:t==null||(0, T.default)(e,t)}function lE(e,t){return !e||e.type!=="TSModuleBlock"?false:t==null||(0, T.default)(e,t)}function uE(e,t){return !e||e.type!=="TSImportType"?false:t==null||(0, T.default)(e,t)}function cE(e,t){return !e||e.type!=="TSImportEqualsDeclaration"?false:t==null||(0, T.default)(e,t)}function pE(e,t){return !e||e.type!=="TSExternalModuleReference"?false:t==null||(0, T.default)(e,t)}function fE(e,t){return !e||e.type!=="TSNonNullExpression"?false:t==null||(0, T.default)(e,t)}function hE(e,t){return !e||e.type!=="TSExportAssignment"?false:t==null||(0, T.default)(e,t)}function dE(e,t){return !e||e.type!=="TSNamespaceExportDeclaration"?false:t==null||(0, T.default)(e,t)}function mE(e,t){return !e||e.type!=="TSTypeAnnotation"?false:t==null||(0, T.default)(e,t)}function yE(e,t){return !e||e.type!=="TSTypeParameterInstantiation"?false:t==null||(0, T.default)(e,t)}function TE(e,t){return !e||e.type!=="TSTypeParameterDeclaration"?false:t==null||(0, T.default)(e,t)}function SE(e,t){return !e||e.type!=="TSTypeParameter"?false:t==null||(0, T.default)(e,t)}function gE(e,t){if(!e)return false;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 false}break;default:return false}return t==null||(0, T.default)(e,t)}function xE(e,t){if(!e)return false;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 false}break;default:return false}return t==null||(0, T.default)(e,t)}function bE(e,t){if(!e)return false;switch(e.type){case "BinaryExpression":case "LogicalExpression":break;default:return false}return t==null||(0, T.default)(e,t)}function EE(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function PE(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function AE(e,t){if(!e)return false;switch(e.type){case "BlockStatement":case "Program":case "TSModuleBlock":break;case "Placeholder":if(e.expectedNode==="BlockStatement")break;default:return false}return t==null||(0, T.default)(e,t)}function vE(e,t){if(!e)return false;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 false}break;default:return false}return t==null||(0, T.default)(e,t)}function CE(e,t){if(!e)return false;switch(e.type){case "BreakStatement":case "ContinueStatement":case "ReturnStatement":case "ThrowStatement":case "YieldExpression":case "AwaitExpression":break;default:return false}return t==null||(0, T.default)(e,t)}function IE(e,t){if(!e)return false;switch(e.type){case "BreakStatement":case "ContinueStatement":case "ReturnStatement":case "ThrowStatement":break;default:return false}return t==null||(0, T.default)(e,t)}function wE(e,t){if(!e)return false;switch(e.type){case "ConditionalExpression":case "IfStatement":break;default:return false}return t==null||(0, T.default)(e,t)}function NE(e,t){if(!e)return false;switch(e.type){case "DoWhileStatement":case "ForInStatement":case "ForStatement":case "WhileStatement":case "ForOfStatement":break;default:return false}return t==null||(0, T.default)(e,t)}function _E(e,t){if(!e)return false;switch(e.type){case "DoWhileStatement":case "WhileStatement":break;default:return false}return t==null||(0, T.default)(e,t)}function OE(e,t){if(!e)return false;switch(e.type){case "ExpressionStatement":case "ParenthesizedExpression":case "TypeCastExpression":break;default:return false}return t==null||(0, T.default)(e,t)}function kE(e,t){if(!e)return false;switch(e.type){case "ForInStatement":case "ForStatement":case "ForOfStatement":break;default:return false}return t==null||(0, T.default)(e,t)}function DE(e,t){if(!e)return false;switch(e.type){case "ForInStatement":case "ForOfStatement":break;default:return false}return t==null||(0, T.default)(e,t)}function LE(e,t){if(!e)return false;switch(e.type){case "FunctionDeclaration":case "FunctionExpression":case "ObjectMethod":case "ArrowFunctionExpression":case "ClassMethod":case "ClassPrivateMethod":break;default:return false}return t==null||(0, T.default)(e,t)}function ME(e,t){if(!e)return false;switch(e.type){case "FunctionDeclaration":case "FunctionExpression":case "ObjectMethod":case "ArrowFunctionExpression":case "ClassMethod":case "ClassPrivateMethod":case "StaticBlock":case "TSModuleBlock":break;default:return false}return t==null||(0, T.default)(e,t)}function BE(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function FE(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function RE(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function jE(e,t){if(!e)return false;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 false}break;default:return false}return t==null||(0, T.default)(e,t)}function qE(e,t){if(!e)return false;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 false}break;default:return false}return t==null||(0, T.default)(e,t)}function UE(e,t){if(!e)return false;switch(e.type){case "Identifier":case "TSQualifiedName":break;case "Placeholder":if(e.expectedNode==="Identifier")break;default:return false}return t==null||(0, T.default)(e,t)}function KE(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function VE(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function YE(e,t){if(!e)return false;switch(e.type){case "ObjectMethod":case "ObjectProperty":case "ObjectTypeInternalSlot":case "ObjectTypeCallProperty":case "ObjectTypeIndexer":case "ObjectTypeProperty":case "ObjectTypeSpreadProperty":break;default:return false}return t==null||(0, T.default)(e,t)}function JE(e,t){if(!e)return false;switch(e.type){case "ObjectMethod":case "ClassMethod":case "ClassPrivateMethod":break;default:return false}return t==null||(0, T.default)(e,t)}function WE(e,t){if(!e)return false;switch(e.type){case "ObjectMethod":case "ObjectProperty":break;default:return false}return t==null||(0, T.default)(e,t)}function XE(e,t){if(!e)return false;switch(e.type){case "ObjectProperty":case "ClassProperty":case "ClassAccessorProperty":case "ClassPrivateProperty":break;default:return false}return t==null||(0, T.default)(e,t)}function $E(e,t){if(!e)return false;switch(e.type){case "UnaryExpression":case "SpreadElement":break;default:return false}return t==null||(0, T.default)(e,t)}function HE(e,t){if(!e)return false;switch(e.type){case "AssignmentPattern":case "ArrayPattern":case "ObjectPattern":case "VoidPattern":break;case "Placeholder":if(e.expectedNode==="Pattern")break;default:return false}return t==null||(0, T.default)(e,t)}function zE(e,t){if(!e)return false;switch(e.type){case "ClassExpression":case "ClassDeclaration":break;default:return false}return t==null||(0, T.default)(e,t)}function Kp(e,t){if(!e)return false;switch(e.type){case "ExportAllDeclaration":case "ExportDefaultDeclaration":case "ExportNamedDeclaration":case "ImportDeclaration":break;default:return false}return t==null||(0, T.default)(e,t)}function GE(e,t){if(!e)return false;switch(e.type){case "ExportAllDeclaration":case "ExportDefaultDeclaration":case "ExportNamedDeclaration":break;default:return false}return t==null||(0, T.default)(e,t)}function QE(e,t){if(!e)return false;switch(e.type){case "ExportSpecifier":case "ImportDefaultSpecifier":case "ImportNamespaceSpecifier":case "ImportSpecifier":case "ExportNamespaceSpecifier":case "ExportDefaultSpecifier":break;default:return false}return t==null||(0, T.default)(e,t)}function ZE(e,t){return !e||e.type!=="ClassAccessorProperty"?false:t==null||(0, T.default)(e,t)}function eP(e,t){if(!e)return false;switch(e.type){case "ClassPrivateProperty":case "ClassPrivateMethod":case "PrivateName":break;default:return false}return t==null||(0, T.default)(e,t)}function tP(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function rP(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function iP(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function sP(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function nP(e,t){if(!e)return false;switch(e.type){case "DeclaredPredicate":case "InferredPredicate":break;default:return false}return t==null||(0, T.default)(e,t)}function aP(e,t){if(!e)return false;switch(e.type){case "EnumBooleanBody":case "EnumNumberBody":case "EnumStringBody":case "EnumSymbolBody":break;default:return false}return t==null||(0, T.default)(e,t)}function oP(e,t){if(!e)return false;switch(e.type){case "EnumBooleanMember":case "EnumNumberMember":case "EnumStringMember":case "EnumDefaultedMember":break;default:return false}return t==null||(0, T.default)(e,t)}function lP(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function uP(e,t){if(!e)return false;switch(e.type){case "Noop":case "Placeholder":case "V8IntrinsicIdentifier":break;default:return false}return t==null||(0, T.default)(e,t)}function cP(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function pP(e,t){if(!e)return false;switch(e.type){case "TSCallSignatureDeclaration":case "TSConstructSignatureDeclaration":case "TSPropertySignature":case "TSMethodSignature":case "TSIndexSignature":break;default:return false}return t==null||(0, T.default)(e,t)}function fP(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function hP(e,t){if(!e)return false;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 false}return t==null||(0, T.default)(e,t)}function dP(e,t){return (0, Zi.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?false:t==null||(0, T.default)(e,t)}function mP(e,t){return (0, Zi.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?false:t==null||(0, T.default)(e,t)}function yP(e,t){return (0, Zi.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?false:t==null||(0, T.default)(e,t)}function TP(e,t){return (0, Zi.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?false:t==null||(0, T.default)(e,t)}function SP(e,t){return (0, Zi.default)("isModuleDeclaration","isImportOrExportDeclaration"),Kp(e,t)}});var Xa=C(Wa=>{Object.defineProperty(Wa,"__esModule",{value:true});Wa.default=gP;var Xr=$e();function Vp(e){return (0, Xr.isMemberExpression)(e)||(0, Xr.isMetaProperty)(e)}function gP(e,t,r){if(!Vp(e))return false;let i=Array.isArray(t)?t:t.split("."),s=[],n;for(n=e;Vp(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 false;for(let o=0,l=s.length-1;o<i.length;o++,l--){let c=s[l],f;if((0, Xr.isIdentifier)(c))f=c.name;else if((0, Xr.isStringLiteral)(c))f=c.value;else if((0, Xr.isThisExpression)(c))f="this";else if((0, Xr.isSuper)(c))f="super";else if((0, Xr.isPrivateName)(c))f="#"+c.id.name;else return false;if(i[o]!==f)return false}return true}});var Ha=C($a=>{Object.defineProperty($a,"__esModule",{value:true});$a.default=bP;var xP=Xa();function bP(e,t){let r=e.split(".");return i=>(0, xP.default)(i,r,t)}});var Yp=C(zs=>{Object.defineProperty(zs,"__esModule",{value:true});zs.default=void 0;var EP=Ha(),PP=(0, EP.default)("React.Component");zs.default=PP;});var Jp=C(za=>{Object.defineProperty(za,"__esModule",{value:true});za.default=AP;function AP(e){return !!e&&/^[a-z]/.test(e)}});var Gs=C(Ga=>{Object.defineProperty(Ga,"__esModule",{value:true});Ga.default=vP;var Wp=Bt();function vP(e,t){if(e===t)return true;if(e==null||Wp.ALIAS_KEYS[t])return false;let r=Wp.FLIPPED_ALIAS_KEYS[t];return !!(r!=null&&r.includes(e))}});var Za=C(Qa=>{Object.defineProperty(Qa,"__esModule",{value:true});Qa.default=IP;var CP=Bt();function IP(e,t){if(e===t)return true;let r=CP.PLACEHOLDERS_ALIAS[e];return !!(r!=null&&r.includes(t))}});var gi=C(eo=>{Object.defineProperty(eo,"__esModule",{value:true});eo.default=kP;var wP=Hs(),NP=Gs(),_P=Za(),OP=Bt();function kP(e,t,r){return t?(0, NP.default)(t.type,e)?r===void 0?true:(0, wP.default)(t,r):!r&&t.type==="Placeholder"&&e in OP.FLIPPED_ALIAS_KEYS?(0, _P.default)(t.expectedNode,e):false:false}});var Gp=C(es=>{Object.defineProperty(es,"__esModule",{value:true});es.isIdentifierChar=zp;es.isIdentifierName=BP;es.isIdentifierStart=Hp;var ro="\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",Xp="\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",DP=new RegExp("["+ro+"]"),LP=new RegExp("["+ro+Xp+"]");ro=Xp=null;var $p=[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],MP=[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 to(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return false;if(r+=t[i+1],r>=e)return true}return false}function Hp(e){return e<65?e===36:e<=90?true:e<97?e===95:e<=122?true:e<=65535?e>=170&&DP.test(String.fromCharCode(e)):to(e,$p)}function zp(e){return e<48?e===36:e<58?true:e<65?false:e<=90?true:e<97?e===95:e<=122?true:e<=65535?e>=170&&LP.test(String.fromCharCode(e)):to(e,$p)||to(e,MP)}function BP(e){let t=true;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=false,!Hp(i))return false}else if(!zp(i))return false}return !t}});var tf=C($r=>{Object.defineProperty($r,"__esModule",{value:true});$r.isKeyword=UP;$r.isReservedWord=Qp;$r.isStrictBindOnlyReservedWord=ef;$r.isStrictBindReservedWord=qP;$r.isStrictReservedWord=Zp;var io={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"]},FP=new Set(io.keyword),RP=new Set(io.strict),jP=new Set(io.strictBind);function Qp(e,t){return t&&e==="await"||e==="enum"}function Zp(e,t){return Qp(e,t)||RP.has(e)}function ef(e){return jP.has(e)}function qP(e,t){return Zp(e,t)||ef(e)}function UP(e){return FP.has(e)}});var rs=C(tr=>{Object.defineProperty(tr,"__esModule",{value:true});Object.defineProperty(tr,"isIdentifierChar",{enumerable:true,get:function(){return so.isIdentifierChar}});Object.defineProperty(tr,"isIdentifierName",{enumerable:true,get:function(){return so.isIdentifierName}});Object.defineProperty(tr,"isIdentifierStart",{enumerable:true,get:function(){return so.isIdentifierStart}});Object.defineProperty(tr,"isKeyword",{enumerable:true,get:function(){return ts.isKeyword}});Object.defineProperty(tr,"isReservedWord",{enumerable:true,get:function(){return ts.isReservedWord}});Object.defineProperty(tr,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return ts.isStrictBindOnlyReservedWord}});Object.defineProperty(tr,"isStrictBindReservedWord",{enumerable:true,get:function(){return ts.isStrictBindReservedWord}});Object.defineProperty(tr,"isStrictReservedWord",{enumerable:true,get:function(){return ts.isStrictReservedWord}});var so=Gp(),ts=tf();});var xi=C(ao=>{Object.defineProperty(ao,"__esModule",{value:true});ao.default=KP;var no=rs();function KP(e,t=true){return typeof e!="string"||t&&((0, no.isKeyword)(e)||(0, no.isStrictReservedWord)(e,true))?false:(0, no.isIdentifierName)(e)}});var af=C(is=>{Object.defineProperty(is,"__esModule",{value:true});is.readCodePoint=nf;is.readInt=sf;is.readStringContents=YP;var VP=function(t){return t>=48&&t<=57},rf={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Qs={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 YP(e,t,r,i,s,n){let a=r,o=i,l=s,c="",f=null,g=r,{length:E}=t;for(;;){if(r>=E){n.unterminated(a,o,l),c+=t.slice(g,r);break}let A=t.charCodeAt(r);if(JP(e,A,t,r)){c+=t.slice(g,r);break}if(A===92){c+=t.slice(g,r);let v=WP(t,r,i,s,e==="template",n);v.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:c+=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"?(c+=t.slice(g,r)+`
6
- `,++r,A===13&&t.charCodeAt(r)===10&&++r,++s,g=i=r):n.unterminated(a,o,l):++r;}return {pos:r,str:c,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function JP(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=c=>({pos:t,ch:c,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
7
- `);case 114:return o("\r");case 120:{let c;return {code:c,pos:t}=oo(e,t,r,i,2,false,a,n),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return {code:c,pos:t}=nf(e,t,r,i,a,n),o(c===null?null:String.fromCodePoint(c))}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 c=t-1,g=/^[0-7]+/.exec(e.slice(c,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(c,r,i);}return o(String.fromCharCode(E))}return o(String.fromCharCode(l))}}function oo(e,t,r,i,s,n,a,o){let l=t,c;return {n:c,pos:t}=sf(e,t,r,i,16,s,n,false,o,!a),c===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:c,pos:t}}function sf(e,t,r,i,s,n,a,o,l,c){let f=t,g=s===16?rf.hex:rf.decBinOct,E=s===16?Qs.hex:s===10?Qs.dec:s===8?Qs.oct:Qs.bin,A=false,v=0;for(let O=0,w=n??1/0;O<w;++O){let _=e.charCodeAt(t),L;if(_===95&&o!=="bail"){let ee=e.charCodeAt(t-1),W=e.charCodeAt(t+1);if(o){if(Number.isNaN(W)||!E(W)||g.has(ee)||g.has(W)){if(c)return {n:null,pos:t};l.unexpectedNumericSeparator(t,r,i);}}else {if(c)return {n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i);}++t;continue}if(_>=97?L=_-97+10:_>=65?L=_-65+10:VP(_)?L=_-48:L=1/0,L>=s){if(L<=9&&c)return {n:null,pos:t};if(L<=9&&l.invalidDigit(t,r,i,s))L=0;else if(a)L=0,A=true;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 nf(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=oo(e,t,r,i,e.indexOf("}",t)-t,true,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}=oo(e,t,r,i,4,false,s,n));return {code:o,pos:t}}});var bi=C(fe=>{Object.defineProperty(fe,"__esModule",{value:true});fe.UPDATE_OPERATORS=fe.UNARY_OPERATORS=fe.STRING_UNARY_OPERATORS=fe.STATEMENT_OR_BLOCK_KEYS=fe.NUMBER_UNARY_OPERATORS=fe.NUMBER_BINARY_OPERATORS=fe.LOGICAL_OPERATORS=fe.INHERIT_KEYS=fe.FOR_INIT_KEYS=fe.FLATTENABLE_KEYS=fe.EQUALITY_BINARY_OPERATORS=fe.COMPARISON_BINARY_OPERATORS=fe.COMMENT_KEYS=fe.BOOLEAN_UNARY_OPERATORS=fe.BOOLEAN_NUMBER_BINARY_OPERATORS=fe.BOOLEAN_BINARY_OPERATORS=fe.BINARY_OPERATORS=fe.ASSIGNMENT_OPERATORS=void 0;fe.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];fe.FLATTENABLE_KEYS=["body","expressions"];fe.FOR_INIT_KEYS=["left","init"];fe.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];var XP=fe.LOGICAL_OPERATORS=["||","&&","??"];fe.UPDATE_OPERATORS=["++","--"];var $P=fe.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],HP=fe.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],zP=fe.COMPARISON_BINARY_OPERATORS=[...HP,"in","instanceof"],GP=fe.BOOLEAN_BINARY_OPERATORS=[...zP,...$P],of=fe.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];fe.BINARY_OPERATORS=["+",...of,...GP,"|>"];fe.ASSIGNMENT_OPERATORS=["=","+=",...of.map(e=>e+"="),...XP.map(e=>e+"=")];var QP=fe.BOOLEAN_UNARY_OPERATORS=["delete","!"],ZP=fe.NUMBER_UNARY_OPERATORS=["+","-","~"],eA=fe.STRING_UNARY_OPERATORS=["typeof"];fe.UNARY_OPERATORS=["void","throw",...QP,...ZP,...eA];fe.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};fe.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");fe.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding");});var rr=C(ge=>{Object.defineProperty(ge,"__esModule",{value:true});ge.allExpandedTypes=ge.VISITOR_KEYS=ge.NODE_UNION_SHAPES__PRIVATE=ge.NODE_PARENT_VALIDATIONS=ge.NODE_FIELDS=ge.FLIPPED_ALIAS_KEYS=ge.DEPRECATED_KEYS=ge.BUILDER_KEYS=ge.ALIAS_KEYS=void 0;ge.arrayOf=uf;ge.arrayOfType=cf;ge.assertEach=pf;ge.assertNodeOrValueType=dA;ge.assertNodeType=en;ge.assertOneOf=fA;ge.assertOptionalChainStart=yA;ge.assertShape=mA;ge.assertValueType=po;ge.chain=ff;ge.default=hf;ge.defineAliasedType=gA;ge.validate=co;ge.validateArrayOfType=pA;ge.validateOptional=uA;ge.validateOptionalType=cA;ge.validateType=lA;var lf=gi(),ss=tn(),tA=ge.VISITOR_KEYS={},rA=ge.ALIAS_KEYS={},lo=ge.FLIPPED_ALIAS_KEYS={},iA=ge.NODE_FIELDS={},sA=ge.BUILDER_KEYS={},nA=ge.DEPRECATED_KEYS={},aA=ge.NODE_PARENT_VALIDATIONS={},oA=ge.NODE_UNION_SHAPES__PRIVATE={};function Zs(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function co(e){return {validate:e}}function lA(...e){return co(en(...e))}function uA(e){return {validate:e,optional:true}}function cA(...e){return {validate:en(...e),optional:true}}function uf(e){return ff(po("array"),pf(e))}function cf(...e){return uf(en(...e))}function pA(...e){return co(cf(...e))}function pf(e){let t=process.env.BABEL_TYPES_8_BREAKING?ss.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 fA(...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 hA=ge.allExpandedTypes=[];function en(...e){let t=new Set;hA.push({types:e,set:t});function r(i,s,n){let a=n?.type;if(a!=null){if(t.has(a)){(0, ss.validateChild)(i,s,n);return}if(a==="Placeholder"){for(let o of e)if((0, lf.default)(o,n)){(0, ss.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 dA(...e){function t(r,i,s){let n=Zs(s);for(let a of e)if(n===a||(0, lf.default)(a,s)){(0, ss.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 po(e){function t(r,i,s){if(Zs(s)!==e)throw new TypeError(`Property ${i} expected type of ${e} but got ${Zs(s)}`)}return t.type=e,t}function mA(e){let t=Object.keys(e);function r(i,s,n){let a=[];for(let o of t)try{(0,ss.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:
8
- ${a.join(`
9
- `)}`)}return r.shapeOf=e,r}function yA(){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 ff(...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"]),SA=new Set(["default","optional","deprecated","validate"]),uo={};function gA(...e){return (t,r={})=>{let i=r.aliases;if(!i){var s;r.inherits&&(i=(s=uo[r.inherits].aliases)==null?void 0:s.slice()),i??(i=[]),r.aliases=i;}let n=e.filter(a=>!i.includes(a));i.unshift(...n),hf(t,r);}}function hf(e,t={}){let r=t.inherits&&uo[t.inherits]||{},i=t.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let c=r.fields[l],f=c.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:c.optional,deprecated:c.deprecated,validate:c.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&&(nA[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=true),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=po(Zs(l.default)));for(let c of Object.keys(l))if(!SA.has(c))throw new Error(`Unknown field key "${c}" on ${e}.${o}`)}tA[e]=t.visitor=s,sA[e]=t.builder=a,iA[e]=t.fields=i,rA[e]=t.aliases=n,n.forEach(o=>{lo[o]=lo[o]||[],lo[o].push(e);}),t.validate&&(aA[e]=t.validate),t.unionShape&&(oA[e]=t.unionShape),uo[e]=t;}});var as=C(at=>{Object.defineProperty(at,"__esModule",{value:true});at.patternLikeCommon=at.importAttributes=at.functionTypeAnnotationCommon=at.functionDeclarationCommon=at.functionCommon=at.classMethodOrPropertyUnionShapeCommon=at.classMethodOrPropertyCommon=at.classMethodOrDeclareMethodCommon=void 0;var mt=gi(),xA=xi(),df=rs(),bA=af(),Ei=bi(),S=rr(),ns=(e=false)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[true],properties:{key:{validate:(0, S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[false],properties:{key:{validate:e?(0, S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0, S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});at.classMethodOrPropertyUnionShapeCommon=ns;var U=(0, S.defineAliasedType)("Standardized");U("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"]});U("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){let e=(0, S.assertOneOf)(...Ei.ASSIGNMENT_OPERATORS),t=(0, S.assertOneOf)("=");return function(r,i,s){((0, mt.default)("Pattern",r.left)?t:e)(r,i,s);}})(),{oneOf:Ei.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"]});U("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0, S.assertOneOf)(...Ei.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"]});U("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0, S.assertValueType)("string")}}});U("Directive",{visitor:["value"],fields:{value:{validate:(0, S.assertNodeType)("DirectiveLiteral")}}});U("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0, S.assertValueType)("string")}}});U("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"]});U("BreakStatement",{visitor:["label"],fields:{label:{validate:(0, S.assertNodeType)("Identifier"),optional:true}},aliases:["Statement","Terminatorless","CompletionStatement"]});U("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:true}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, S.assertValueType)("boolean"),optional:true},typeParameters:{validate:(0, S.assertNodeType)("TSTypeParameterInstantiation"),optional:true}})});U("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0, S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:true},body:{validate:(0, S.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});U("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"]});U("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0, S.assertNodeType)("Identifier"),optional:true}},aliases:["Statement","Terminatorless","CompletionStatement"]});U("DebuggerStatement",{aliases:["Statement"]});U("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"]});U("EmptyStatement",{aliases:["Statement"]});U("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0, S.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});U("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:true},tokens:{validate:(0, S.assertEach)(Object.assign(()=>{},{type:"any"})),optional:true}}});U("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")}}});U("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0, S.assertNodeType)("VariableDeclaration","Expression"),optional:true},test:{validate:(0, S.assertNodeType)("Expression"),optional:true},update:{validate:(0, S.assertNodeType)("Expression"),optional:true},body:{validate:(0, S.assertNodeType)("Statement")}}});var Pi=()=>({params:(0, S.validateArrayOfType)("FunctionParameter"),generator:{default:false},async:{default:false}});at.functionCommon=Pi;var Hr=()=>({returnType:{validate:(0, S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},typeParameters:{validate:(0, S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true}});at.functionTypeAnnotationCommon=Hr;var mf=()=>Object.assign({},Pi(),{declare:{validate:(0, S.assertValueType)("boolean"),optional:true},id:{validate:(0, S.assertNodeType)("Identifier"),optional:true}});at.functionDeclarationCommon=mf;U("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},mf(),Hr(),{body:{validate:(0, S.assertNodeType)("BlockStatement")},predicate:{validate:(0, S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}}),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});U("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Pi(),Hr(),{id:{validate:(0, S.assertNodeType)("Identifier"),optional:true},body:{validate:(0, S.assertNodeType)("BlockStatement")},predicate:{validate:(0, S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}})});var Ai=()=>({typeAnnotation:{validate:(0, S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},optional:{validate:(0, S.assertValueType)("boolean"),optional:true},decorators:{validate:(0, S.arrayOfType)("Decorator"),optional:true}});at.patternLikeCommon=Ai;U("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Ai(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, S.chain)((0, S.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0, xA.default)(r,false))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:false};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, df.isKeyword)(r.name)||(0, df.isReservedWord)(r.name,false))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});U("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0, S.assertNodeType)("Expression")},consequent:{validate:(0, S.assertNodeType)("Statement")},alternate:{optional:true,validate:(0, S.assertNodeType)("Statement")}}});U("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0, S.assertNodeType)("Identifier")},body:{validate:(0, S.assertNodeType)("Statement")}}});U("StringLiteral",{builder:["value"],fields:{value:{validate:(0, S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});U("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0, S.chain)((0, S.assertValueType)("number"),Object.assign(function(e,t,r){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});U("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});U("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0, S.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});U("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:""}}});U("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0, S.assertOneOf)(...Ei.LOGICAL_OPERATORS)},left:{validate:(0, S.assertNodeType)("Expression")},right:{validate:(0, S.assertNodeType)("Expression")}}});U("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:[true],properties:{property:{validate:(0, S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[false],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:false}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, S.assertValueType)("boolean"),optional:true}})});U("NewExpression",{inherits:"CallExpression"});U("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:true},directives:{validate:(0, S.arrayOfType)("Directive"),default:[]},body:(0, S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});U("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0, S.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});U("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ns(),{fields:Object.assign({},Pi(),Hr(),{kind:Object.assign({validate:(0, S.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:false},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:true},body:{validate:(0, S.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));U("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[true],properties:{key:{validate:(0, S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[false],properties:{key:{validate:(0, S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:false},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:false},decorators:{validate:(0, S.arrayOfType)("Decorator"),optional:true}},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});U("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Ai(),{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});U("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, S.assertNodeType)("Expression"),optional:true}}});U("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0, S.validateArrayOfType)("Expression")},aliases:["Expression"]});U("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0, S.assertNodeType)("Expression")}}});U("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0, S.assertNodeType)("Expression"),optional:true},consequent:(0, S.validateArrayOfType)("Statement")}});U("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0, S.assertNodeType)("Expression")},cases:(0, S.validateArrayOfType)("SwitchCase")}});U("ThisExpression",{aliases:["Expression"]});U("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, S.assertNodeType)("Expression")}}});U("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:true,validate:(0, S.assertNodeType)("CatchClause")},finalizer:{optional:true,validate:(0, S.assertNodeType)("BlockStatement")}}});U("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:true},argument:{validate:(0, S.assertNodeType)("Expression")},operator:{validate:(0, S.assertOneOf)(...Ei.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});U("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:false},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, S.assertNodeType)("Identifier","MemberExpression"):(0, S.assertNodeType)("Expression")},operator:{validate:(0, S.assertOneOf)(...Ei.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});U("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0, S.assertValueType)("boolean"),optional:true},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 c of o)a==="const"||a==="let"||a==="var"?!l&&!c.init?e(c,"id",c.id):t(c,"id",c.id):r(c,"id",c.id);}})():void 0});U("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:true,validate:(0, S.assertValueType)("boolean")},init:{optional:true,validate:(0, S.assertNodeType)("Expression")}}});U("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0, S.assertNodeType)("Expression")},body:{validate:(0, S.assertNodeType)("Statement")}}});U("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0, S.assertNodeType)("Expression")},body:{validate:(0, S.assertNodeType)("Statement")}}});U("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ai(),{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:true}})});U("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ai(),{elements:{validate:(0, S.chain)((0, S.assertValueType)("array"),(0, S.assertEach)((0, S.assertNodeOrValueType)("null","PatternLike")))}})});U("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, S.assertValueType)("boolean")},body:{validate:(0, S.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0, S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}})});U("ClassBody",{visitor:["body"],fields:{body:(0, S.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});U("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:true},typeParameters:{validate:(0, S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true},body:{validate:(0, S.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0, S.assertNodeType)("Expression")},superTypeParameters:{validate:(0, S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true},implements:{validate:(0, S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:true},decorators:{validate:(0, S.arrayOfType)("Decorator"),optional:true},mixins:{validate:(0, S.assertNodeType)("InterfaceExtends"),optional:true}}});U("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0, S.assertNodeType)("Identifier"),optional:true},typeParameters:{validate:(0, S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true},body:{validate:(0, S.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0, S.assertNodeType)("Expression")},superTypeParameters:{validate:(0, S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true},implements:{validate:(0, S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:true},decorators:{validate:(0, S.arrayOfType)("Decorator"),optional:true},mixins:{validate:(0, S.assertNodeType)("InterfaceExtends"),optional:true},declare:{validate:(0, S.assertValueType)("boolean"),optional:true},abstract:{validate:(0, S.assertValueType)("boolean"),optional:true}},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 rn=at.importAttributes={attributes:{optional:true,validate:(0, S.arrayOfType)("ImportAttribute")}};rn.assertions={deprecated:true,optional:true,validate:(0, S.arrayOfType)("ImportAttribute")};U("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"))},rn)});U("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"))}});U("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:true,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")}},rn,{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:true},exportKind:(0, S.validateOptional)((0, S.assertOneOf)("type","value"))})});U("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:true}}});U("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:false}}});U("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},rn,{module:{optional:true,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:true}})});U("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, S.assertNodeType)("Identifier")}}});U("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, S.assertNodeType)("Identifier")}}});U("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:true}}});U("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:true}}});U("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 sn=()=>({abstract:{validate:(0, S.assertValueType)("boolean"),optional:true},accessibility:{validate:(0, S.assertOneOf)("public","private","protected"),optional:true},static:{default:false},override:{default:false},computed:{default:false},optional:{validate:(0, S.assertValueType)("boolean"),optional:true},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"))}});at.classMethodOrPropertyCommon=sn;var fo=()=>Object.assign({},Pi(),sn(),{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:true},decorators:{validate:(0, S.arrayOfType)("Decorator"),optional:true}});at.classMethodOrDeclareMethodCommon=fo;U("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"]},ns(),{fields:Object.assign({},fo(),Hr(),{body:{validate:(0, S.assertNodeType)("BlockStatement")}})}));U("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ai(),{properties:(0, S.validateArrayOfType)("RestElement","ObjectProperty")})});U("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0, S.assertNodeType)("Expression")}}});U("Super",{aliases:["Expression"]});U("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:true}}});U("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:true}}),function(t){let r=t.value.raw,i=false,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0, bA.readStringContents)("template",r,0,0,0,{unterminated(){i=true;},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:false}}});U("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.
10
- Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});U("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:false},argument:{optional:true,validate:(0, S.assertNodeType)("Expression")}}});U("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0, S.assertNodeType)("Expression")}}});U("Import",{aliases:["Expression"]});U("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0, S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});U("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, S.assertNodeType)("Identifier")}}});U("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:false},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, S.chain)((0, S.assertValueType)("boolean"),(0, S.assertOptionalChainStart)()):(0, S.assertValueType)("boolean")}}});U("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:true}},{typeParameters:{validate:(0, S.assertNodeType)("TSTypeParameterInstantiation"),optional:true}})});U("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},ns(),{fields:Object.assign({},sn(),{value:{validate:(0, S.assertNodeType)("Expression"),optional:true},definite:{validate:(0, S.assertValueType)("boolean"),optional:true},typeAnnotation:{validate:(0, S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0, S.arrayOfType)("Decorator"),optional:true},readonly:{validate:(0, S.assertValueType)("boolean"),optional:true},declare:{validate:(0, S.assertValueType)("boolean"),optional:true},variance:{validate:(0, S.assertNodeType)("Variance"),optional:true}})}));U("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},ns(true),{fields:Object.assign({},sn(),{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:true},definite:{validate:(0, S.assertValueType)("boolean"),optional:true},typeAnnotation:{validate:(0, S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0, S.arrayOfType)("Decorator"),optional:true},readonly:{validate:(0, S.assertValueType)("boolean"),optional:true},declare:{validate:(0, S.assertValueType)("boolean"),optional:true},variance:{validate:(0, S.assertNodeType)("Variance"),optional:true}})}));U("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:true},typeAnnotation:{validate:(0, S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0, S.arrayOfType)("Decorator"),optional:true},static:{validate:(0, S.assertValueType)("boolean"),default:false},readonly:{validate:(0, S.assertValueType)("boolean"),optional:true},optional:{validate:(0, S.assertValueType)("boolean"),optional:true},definite:{validate:(0, S.assertValueType)("boolean"),optional:true},variance:{validate:(0, S.assertNodeType)("Variance"),optional:true}}});U("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},fo(),Hr(),{kind:{validate:(0, S.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0, S.assertNodeType)("PrivateName")},body:{validate:(0, S.assertNodeType)("BlockStatement")}})});U("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0, S.assertNodeType)("Identifier")}}});U("StaticBlock",{visitor:["body"],fields:{body:(0, S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});U("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0, S.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0, S.assertNodeType)("StringLiteral")}}});});var Tf=C(()=>{var yf=as(),I=rr(),Z=(0, I.defineAliasedType)("Flow"),ho=e=>{let t=e==="DeclareClass";Z(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0, I.validateType)("Identifier"),typeParameters:(0, I.validateOptionalType)("TypeParameterDeclaration"),extends:(0, I.validateOptional)((0, I.arrayOfType)("InterfaceExtends"))},t?{mixins:(0, I.validateOptional)((0, I.arrayOfType)("InterfaceExtends")),implements:(0, I.validateOptional)((0, I.arrayOfType)("ClassImplements"))}:{},{body:(0, I.validateType)("ObjectTypeAnnotation")})});};Z("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0, I.validateType)("FlowType")}});Z("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, I.validate)((0, I.assertValueType)("boolean"))}});Z("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0, I.validateType)("Identifier"),typeParameters:(0, I.validateOptionalType)("TypeParameterInstantiation")}});ho("DeclareClass");Z("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, I.validateType)("Identifier"),predicate:(0, I.validateOptionalType)("DeclaredPredicate")}});ho("DeclareInterface");Z("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, I.validateType)("Identifier","StringLiteral"),body:(0, I.validateType)("BlockStatement"),kind:(0, I.validateOptional)((0, I.assertOneOf)("CommonJS","ES"))}});Z("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0, I.validateType)("TypeAnnotation")}});Z("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, I.validateType)("Identifier"),typeParameters:(0, I.validateOptionalType)("TypeParameterDeclaration"),right:(0, I.validateType)("FlowType")}});Z("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, I.validateType)("Identifier"),typeParameters:(0, I.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, I.validateOptionalType)("FlowType"),impltype:(0, I.validateOptionalType)("FlowType")}});Z("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, I.validateType)("Identifier")}});Z("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0, I.validateOptionalType)("Flow"),specifiers:(0, I.validateOptional)((0, I.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0, I.validateOptionalType)("StringLiteral"),default:(0, I.validateOptional)((0, I.assertValueType)("boolean"))},yf.importAttributes)});Z("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0, I.validateType)("StringLiteral"),exportKind:(0, I.validateOptional)((0, I.assertOneOf)("type","value"))},yf.importAttributes)});Z("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0, I.validateType)("Flow")}});Z("ExistsTypeAnnotation",{aliases:["FlowType"]});Z("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0, I.validateOptionalType)("TypeParameterDeclaration"),params:(0, I.validateArrayOfType)("FunctionTypeParam"),rest:(0, I.validateOptionalType)("FunctionTypeParam"),this:(0, I.validateOptionalType)("FunctionTypeParam"),returnType:(0, I.validateType)("FlowType")}});Z("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0, I.validateOptionalType)("Identifier"),typeAnnotation:(0, I.validateType)("FlowType"),optional:(0, I.validateOptional)((0, I.assertValueType)("boolean"))}});Z("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0, I.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0, I.validateOptionalType)("TypeParameterInstantiation")}});Z("InferredPredicate",{aliases:["FlowPredicate"]});Z("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0, I.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0, I.validateOptionalType)("TypeParameterInstantiation")}});ho("InterfaceDeclaration");Z("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0, I.validateOptional)((0, I.arrayOfType)("InterfaceExtends")),body:(0, I.validateType)("ObjectTypeAnnotation")}});Z("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, I.validate)((0, I.arrayOfType)("FlowType"))}});Z("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0, I.validateType)("FlowType")}});Z("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, I.validate)((0, I.assertValueType)("number"))}});Z("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0, I.validate)((0, I.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0, I.arrayOfType)("ObjectTypeIndexer"),optional:true,default:[]},callProperties:{validate:(0, I.arrayOfType)("ObjectTypeCallProperty"),optional:true,default:[]},internalSlots:{validate:(0, I.arrayOfType)("ObjectTypeInternalSlot"),optional:true,default:[]},exact:{validate:(0, I.assertValueType)("boolean"),default:false},inexact:(0, I.validateOptional)((0, I.assertValueType)("boolean"))}});Z("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0, I.validateType)("Identifier"),value:(0, I.validateType)("FlowType"),optional:(0, I.validate)((0, I.assertValueType)("boolean")),static:(0, I.validate)((0, I.assertValueType)("boolean")),method:(0, I.validate)((0, I.assertValueType)("boolean"))}});Z("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0, I.validateType)("FlowType"),static:(0, I.validate)((0, I.assertValueType)("boolean"))}});Z("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0, I.validateOptionalType)("Identifier"),key:(0, I.validateType)("FlowType"),value:(0, I.validateType)("FlowType"),static:(0, I.validate)((0, I.assertValueType)("boolean")),variance:(0, I.validateOptionalType)("Variance")}});Z("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0, I.validateType)("Identifier","StringLiteral"),value:(0, I.validateType)("FlowType"),kind:(0, I.validate)((0, I.assertOneOf)("init","get","set")),static:(0, I.validate)((0, I.assertValueType)("boolean")),proto:(0, I.validate)((0, I.assertValueType)("boolean")),optional:(0, I.validate)((0, I.assertValueType)("boolean")),variance:(0, I.validateOptionalType)("Variance"),method:(0, I.validate)((0, I.assertValueType)("boolean"))}});Z("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0, I.validateType)("FlowType")}});Z("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, I.validateType)("Identifier"),typeParameters:(0, I.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, I.validateOptionalType)("FlowType"),impltype:(0, I.validateType)("FlowType")}});Z("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0, I.validateType)("Identifier"),qualification:(0, I.validateType)("Identifier","QualifiedTypeIdentifier")}});Z("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, I.validate)((0, I.assertValueType)("string"))}});Z("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, I.validate)((0, I.arrayOfType)("FlowType"))}});Z("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0, I.validateType)("FlowType")}});Z("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, I.validateType)("Identifier"),typeParameters:(0, I.validateOptionalType)("TypeParameterDeclaration"),right:(0, I.validateType)("FlowType")}});Z("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0, I.validateType)("FlowType")}});Z("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0, I.validateType)("Expression"),typeAnnotation:(0, I.validateType)("TypeAnnotation")}});Z("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0, I.validate)((0, I.assertValueType)("string")),bound:(0, I.validateOptionalType)("TypeAnnotation"),default:(0, I.validateOptionalType)("FlowType"),variance:(0, I.validateOptionalType)("Variance")}});Z("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0, I.validate)((0, I.arrayOfType)("TypeParameter"))}});Z("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0, I.validate)((0, I.arrayOfType)("FlowType"))}});Z("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, I.validate)((0, I.arrayOfType)("FlowType"))}});Z("Variance",{builder:["kind"],fields:{kind:(0, I.validate)((0, I.assertOneOf)("minus","plus"))}});Z("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Z("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0, I.validateType)("Identifier"),body:(0, I.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});Z("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, I.validate)((0, I.assertValueType)("boolean")),members:(0, I.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0, I.validate)((0, I.assertValueType)("boolean"))}});Z("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, I.validate)((0, I.assertValueType)("boolean")),members:(0, I.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0, I.validate)((0, I.assertValueType)("boolean"))}});Z("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, I.validate)((0, I.assertValueType)("boolean")),members:(0, I.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0, I.validate)((0, I.assertValueType)("boolean"))}});Z("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0, I.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0, I.validate)((0, I.assertValueType)("boolean"))}});Z("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0, I.validateType)("Identifier"),init:(0, I.validateType)("BooleanLiteral")}});Z("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, I.validateType)("Identifier"),init:(0, I.validateType)("NumericLiteral")}});Z("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, I.validateType)("Identifier"),init:(0, I.validateType)("StringLiteral")}});Z("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, I.validateType)("Identifier")}});Z("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, I.validateType)("FlowType"),indexType:(0, I.validateType)("FlowType")}});Z("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, I.validateType)("FlowType"),indexType:(0, I.validateType)("FlowType"),optional:(0, I.validate)((0, I.assertValueType)("boolean"))}});});var Sf=C(()=>{var Je=rr(),yt=(0, Je.defineAliasedType)("JSX");yt("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0, Je.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:true,validate:(0, Je.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});yt("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0, Je.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});yt("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0, Je.assertNodeType)("JSXOpeningElement")},closingElement:{optional:true,validate:(0, Je.assertNodeType)("JSXClosingElement")},children:(0, Je.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0, Je.assertValueType)("boolean"),optional:true}})});yt("JSXEmptyExpression",{});yt("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, Je.assertNodeType)("Expression","JSXEmptyExpression")}}});yt("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, Je.assertNodeType)("Expression")}}});yt("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0, Je.assertValueType)("string")}}});yt("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0, Je.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0, Je.assertNodeType)("JSXIdentifier")}}});yt("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0, Je.assertNodeType)("JSXIdentifier")},name:{validate:(0, Je.assertNodeType)("JSXIdentifier")}}});yt("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0, Je.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:false},attributes:(0, Je.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0, Je.assertNodeType)("TypeParameterInstantiation"),optional:true}},{typeParameters:{validate:(0, Je.assertNodeType)("TSTypeParameterInstantiation"),optional:true}})});yt("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0, Je.assertNodeType)("Expression")}}});yt("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0, Je.assertValueType)("string")}}});yt("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0, Je.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0, Je.assertNodeType)("JSXClosingFragment")},children:(0, Je.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});yt("JSXOpeningFragment",{aliases:["Immutable"]});yt("JSXClosingFragment",{aliases:["Immutable"]});});var To=C(Ir=>{Object.defineProperty(Ir,"__esModule",{value:true});Ir.PLACEHOLDERS_FLIPPED_ALIAS=Ir.PLACEHOLDERS_ALIAS=Ir.PLACEHOLDERS=void 0;var EA=rr(),PA=Ir.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],yo=Ir.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of PA){let t=EA.ALIAS_KEYS[e];t!=null&&t.length&&(yo[e]=t);}var mo=Ir.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(yo).forEach(e=>{yo[e].forEach(t=>{hasOwnProperty.call(mo,t)||(mo[t]=[]),mo[t].push(e);});});});var gf=C(()=>{var nn=rr(),AA=To(),vA=as(),So=(0, nn.defineAliasedType)("Miscellaneous");So("Noop",{visitor:[]});So("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0, nn.assertNodeType)("Identifier")},expectedNode:{validate:(0, nn.assertOneOf)(...AA.PLACEHOLDERS)}},(0, vA.patternLikeCommon)())});So("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0, nn.assertValueType)("string")}}});});var xf=C(()=>{var Ue=rr();(0, Ue.default)("ArgumentPlaceholder",{});(0, Ue.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0, Ue.assertNodeType)("Expression")},callee:{validate:(0, Ue.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0, Ue.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0, Ue.assertNodeType)("Expression")}}});(0, Ue.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0, Ue.assertNodeType)("BlockStatement")},async:{validate:(0, Ue.assertValueType)("boolean"),default:false}}});(0, Ue.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, Ue.assertNodeType)("Identifier")}}});(0, Ue.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0, Ue.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0, Ue.default)("TupleExpression",{fields:{elements:{validate:(0, Ue.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0, Ue.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0, Ue.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0, Ue.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0, Ue.assertNodeType)("Program")}},aliases:["Expression"]});(0, Ue.default)("TopicReference",{aliases:["Expression"]});(0, Ue.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0, Ue.assertNodeType)("Expression")}},aliases:["Expression"]});(0, Ue.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0, Ue.assertNodeType)("Expression")}},aliases:["Expression"]});(0, Ue.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0, Ue.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]});});var If=C(()=>{var k=rr(),go=as(),CA=gi(),se=(0, k.defineAliasedType)("TypeScript"),vt=(0, k.assertValueType)("boolean"),bf=()=>({returnType:{validate:(0, k.assertNodeType)("TSTypeAnnotation","Noop"),optional:true},typeParameters:{validate:(0, k.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:true}});se("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0, k.assertOneOf)("public","private","protected"),optional:true},readonly:{validate:(0, k.assertValueType)("boolean"),optional:true},parameter:{validate:(0, k.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0, k.assertValueType)("boolean"),optional:true},decorators:{validate:(0, k.arrayOfType)("Decorator"),optional:true}}});se("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0, go.functionDeclarationCommon)(),bf())});se("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0, go.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0, go.classMethodOrDeclareMethodCommon)(),bf())}));se("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0, k.validateType)("TSEntityName"),right:(0, k.validateType)("Identifier")}});var an=()=>({typeParameters:(0, k.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0, k.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0, k.validateOptionalType)("TSTypeAnnotation")}),Ef={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:an()};se("TSCallSignatureDeclaration",Ef);se("TSConstructSignatureDeclaration",Ef);var Pf=()=>({key:(0, k.validateType)("Expression"),computed:{default:false},optional:(0, k.validateOptional)(vt)});se("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},Pf(),{readonly:(0, k.validateOptional)(vt),typeAnnotation:(0, k.validateOptionalType)("TSTypeAnnotation"),kind:{optional:true,validate:(0, k.assertOneOf)("get","set")}})});se("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},an(),Pf(),{kind:{validate:(0, k.assertOneOf)("method","get","set")}})});se("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0, k.validateOptional)(vt),static:(0, k.validateOptional)(vt),parameters:(0, k.validateArrayOfType)("Identifier"),typeAnnotation:(0, k.validateOptionalType)("TSTypeAnnotation")}});var IA=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of IA)se(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});se("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var Af={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};se("TSFunctionType",Object.assign({},Af,{fields:an()}));se("TSConstructorType",Object.assign({},Af,{fields:Object.assign({},an(),{abstract:(0, k.validateOptional)(vt)})}));se("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0, k.validateType)("TSEntityName"),typeParameters:(0, k.validateOptionalType)("TSTypeParameterInstantiation")}});se("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0, k.validateType)("Identifier","TSThisType"),typeAnnotation:(0, k.validateOptionalType)("TSTypeAnnotation"),asserts:(0, k.validateOptional)(vt)}});se("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0, k.validateType)("TSEntityName","TSImportType"),typeParameters:(0, k.validateOptionalType)("TSTypeParameterInstantiation")}});se("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0, k.validateArrayOfType)("TSTypeElement")}});se("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0, k.validateType)("TSType")}});se("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0, k.validateArrayOfType)("TSType","TSNamedTupleMember")}});se("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, k.validateType)("TSType")}});se("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, k.validateType)("TSType")}});se("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0, k.validateType)("Identifier"),optional:{validate:vt,default:false},elementType:(0, k.validateType)("TSType")}});var vf={aliases:["TSType"],visitor:["types"],fields:{types:(0, k.validateArrayOfType)("TSType")}};se("TSUnionType",vf);se("TSIntersectionType",vf);se("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0, k.validateType)("TSType"),extendsType:(0, k.validateType)("TSType"),trueType:(0, k.validateType)("TSType"),falseType:(0, k.validateType)("TSType")}});se("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0, k.validateType)("TSTypeParameter")}});se("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, k.validateType)("TSType")}});se("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0, k.assertValueType)("string"),default:"keyof"},typeAnnotation:(0, k.validateType)("TSType")}});se("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0, k.validateType)("TSType"),indexType:(0, k.validateType)("TSType")}});se("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0, k.validateType)("TSTypeParameter")},{readonly:(0, k.validateOptional)((0, k.assertOneOf)(true,false,"+","-")),optional:(0, k.validateOptional)((0, k.assertOneOf)(true,false,"+","-")),typeAnnotation:(0, k.validateOptionalType)("TSType"),nameType:(0, k.validateOptionalType)("TSType")})});se("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0, k.validateArrayOfType)("TemplateElement"),types:{validate:(0, k.chain)((0, k.assertValueType)("array"),(0, k.assertEach)((0, k.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}`)})}}});se("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){let e=(0, k.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0, k.assertOneOf)("-"),r=(0, k.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})()}}});se("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0, k.validateType)("TSEntityName"),typeParameters:(0, k.validateOptionalType)("TSTypeParameterInstantiation")}});se("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0, k.validateOptional)(vt),id:(0, k.validateType)("Identifier"),typeParameters:(0, k.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0, k.validateOptional)((0, k.arrayOfType)("TSExpressionWithTypeArguments")),body:(0, k.validateType)("TSInterfaceBody")}});se("TSInterfaceBody",{visitor:["body"],fields:{body:(0, k.validateArrayOfType)("TSTypeElement")}});se("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0, k.validateOptional)(vt),id:(0, k.validateType)("Identifier"),typeParameters:(0, k.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0, k.validateType)("TSType")}});se("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0, k.validateType)("Expression"),typeParameters:(0, k.validateOptionalType)("TSTypeParameterInstantiation")}});var Cf={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0, k.validateType)("Expression"),typeAnnotation:(0, k.validateType)("TSType")}};se("TSAsExpression",Cf);se("TSSatisfiesExpression",Cf);se("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0, k.validateType)("TSType"),expression:(0, k.validateType)("Expression")}});se("TSEnumBody",{visitor:["members"],fields:{members:(0, k.validateArrayOfType)("TSEnumMember")}});se("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0, k.validateOptional)(vt),const:(0, k.validateOptional)(vt),id:(0, k.validateType)("Identifier"),members:(0, k.validateArrayOfType)("TSEnumMember"),initializer:(0, k.validateOptionalType)("Expression"),body:(0, k.validateOptionalType)("TSEnumBody")}});se("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0, k.validateType)("Identifier","StringLiteral"),initializer:(0, k.validateOptionalType)("Expression")}});se("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0, k.assertOneOf)("global","module","namespace")},declare:(0, k.validateOptional)(vt)},{global:(0, k.validateOptional)(vt)},{id:(0, k.validateType)("Identifier","StringLiteral"),body:(0, k.validateType)("TSModuleBlock","TSModuleDeclaration")})});se("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0, k.validateArrayOfType)("Statement")}});se("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0, k.validateType)("StringLiteral")},{qualifier:(0, k.validateOptionalType)("TSEntityName")},{typeParameters:(0, k.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0, k.assertNodeType)("ObjectExpression"),optional:true}})});se("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0, k.validate)(vt)},{id:(0, k.validateType)("Identifier"),moduleReference:(0, k.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0, k.assertOneOf)("type","value"),optional:true}})});se("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0, k.validateType)("StringLiteral")}});se("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0, k.validateType)("Expression")}});se("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0, k.validateType)("Expression")}});se("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0, k.validateType)("Identifier")}});se("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0, k.assertNodeType)("TSType")}}});se("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0, k.validateArrayOfType)("TSType")}});se("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0, k.validateArrayOfType)("TSTypeParameter")}});se("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0, k.assertValueType)("string")},in:{validate:(0, k.assertValueType)("boolean"),optional:true},out:{validate:(0, k.assertValueType)("boolean"),optional:true},const:{validate:(0, k.assertValueType)("boolean"),optional:true},constraint:{validate:(0, k.assertNodeType)("TSType"),optional:true},default:{validate:(0, k.assertNodeType)("TSType"),optional:true}}});});var wf=C(on=>{Object.defineProperty(on,"__esModule",{value:true});on.DEPRECATED_ALIASES=void 0;on.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"};});var Bt=C(ft=>{Object.defineProperty(ft,"__esModule",{value:true});Object.defineProperty(ft,"ALIAS_KEYS",{enumerable:true,get:function(){return Tt.ALIAS_KEYS}});Object.defineProperty(ft,"BUILDER_KEYS",{enumerable:true,get:function(){return Tt.BUILDER_KEYS}});Object.defineProperty(ft,"DEPRECATED_ALIASES",{enumerable:true,get:function(){return xo.DEPRECATED_ALIASES}});Object.defineProperty(ft,"DEPRECATED_KEYS",{enumerable:true,get:function(){return Tt.DEPRECATED_KEYS}});Object.defineProperty(ft,"FLIPPED_ALIAS_KEYS",{enumerable:true,get:function(){return Tt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(ft,"NODE_FIELDS",{enumerable:true,get:function(){return Tt.NODE_FIELDS}});Object.defineProperty(ft,"NODE_PARENT_VALIDATIONS",{enumerable:true,get:function(){return Tt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(ft,"NODE_UNION_SHAPES__PRIVATE",{enumerable:true,get:function(){return Tt.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(ft,"PLACEHOLDERS",{enumerable:true,get:function(){return bo.PLACEHOLDERS}});Object.defineProperty(ft,"PLACEHOLDERS_ALIAS",{enumerable:true,get:function(){return bo.PLACEHOLDERS_ALIAS}});Object.defineProperty(ft,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:true,get:function(){return bo.PLACEHOLDERS_FLIPPED_ALIAS}});ft.TYPES=void 0;Object.defineProperty(ft,"VISITOR_KEYS",{enumerable:true,get:function(){return Tt.VISITOR_KEYS}});as();Tf();Sf();gf();xf();If();var Tt=rr(),bo=To(),xo=wf();Object.keys(xo.DEPRECATED_ALIASES).forEach(e=>{Tt.FLIPPED_ALIAS_KEYS[e]=Tt.FLIPPED_ALIAS_KEYS[xo.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);}ft.TYPES=[].concat(Object.keys(Tt.VISITOR_KEYS),Object.keys(Tt.FLIPPED_ALIAS_KEYS),Object.keys(Tt.DEPRECATED_KEYS));});var tn=C(vi=>{Object.defineProperty(vi,"__esModule",{value:true});vi.default=wA;vi.validateChild=_f;vi.validateField=Nf;vi.validateInternal=NA;var os=Bt();function wA(e,t,r){if(!e)return;let i=os.NODE_FIELDS[e.type];if(!i)return;let s=i[t];Nf(e,t,r,s),_f(e,t,r);}function NA(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=os.NODE_PARENT_VALIDATIONS[a])==null||n.call(os.NODE_PARENT_VALIDATIONS,t,r,i);}}function Nf(e,t,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(e,t,r));}function _f(e,t,r){var i;let s=r?.type;s!=null&&((i=os.NODE_PARENT_VALIDATIONS[s])==null||i.call(os.NODE_PARENT_VALIDATIONS,e,t,r));}});var Eo=C(h=>{Object.defineProperty(h,"__esModule",{value:true});h.anyTypeAnnotation=u1;h.argumentPlaceholder=RC;h.arrayExpression=DA;h.arrayPattern=wv;h.arrayTypeAnnotation=c1;h.arrowFunctionExpression=Nv;h.assignmentExpression=LA;h.assignmentPattern=Iv;h.awaitExpression=Gv;h.bigIntLiteral=kA;h.binaryExpression=MA;h.bindExpression=jC;h.blockStatement=jA;h.booleanLiteral=nv;h.booleanLiteralTypeAnnotation=f1;h.booleanTypeAnnotation=p1;h.breakStatement=qA;h.callExpression=UA;h.catchClause=KA;h.classAccessorProperty=i1;h.classBody=_v;h.classDeclaration=kv;h.classExpression=Ov;h.classImplements=d1;h.classMethod=Yv;h.classPrivateMethod=n1;h.classPrivateProperty=s1;h.classProperty=r1;h.conditionalExpression=VA;h.continueStatement=YA;h.debuggerStatement=JA;h.decimalLiteral=JC;h.declareClass=m1;h.declareExportAllDeclaration=A1;h.declareExportDeclaration=P1;h.declareFunction=y1;h.declareInterface=T1;h.declareModule=S1;h.declareModuleExports=g1;h.declareOpaqueType=b1;h.declareTypeAlias=x1;h.declareVariable=E1;h.declaredPredicate=v1;h.decorator=qC;h.directive=FA;h.directiveLiteral=RA;h.doExpression=UC;h.doWhileStatement=WA;h.emptyStatement=XA;h.emptyTypeAnnotation=B1;h.enumBooleanBody=cC;h.enumBooleanMember=dC;h.enumDeclaration=uC;h.enumDefaultedMember=TC;h.enumNumberBody=pC;h.enumNumberMember=mC;h.enumStringBody=fC;h.enumStringMember=yC;h.enumSymbolBody=hC;h.existsTypeAnnotation=C1;h.exportAllDeclaration=Dv;h.exportDefaultDeclaration=Lv;h.exportDefaultSpecifier=KC;h.exportNamedDeclaration=Mv;h.exportNamespaceSpecifier=Zv;h.exportSpecifier=Bv;h.expressionStatement=$A;h.file=HA;h.forInStatement=zA;h.forOfStatement=Fv;h.forStatement=GA;h.functionDeclaration=QA;h.functionExpression=ZA;h.functionTypeAnnotation=I1;h.functionTypeParam=w1;h.genericTypeAnnotation=N1;h.identifier=ev;h.ifStatement=tv;h.import=Qv;h.importAttribute=l1;h.importDeclaration=Rv;h.importDefaultSpecifier=jv;h.importExpression=Kv;h.importNamespaceSpecifier=qv;h.importSpecifier=Uv;h.indexedAccessType=SC;h.inferredPredicate=_1;h.interfaceDeclaration=k1;h.interfaceExtends=O1;h.interfaceTypeAnnotation=D1;h.interpreterDirective=BA;h.intersectionTypeAnnotation=L1;h.jSXAttribute=h.jsxAttribute=xC;h.jSXClosingElement=h.jsxClosingElement=bC;h.jSXClosingFragment=h.jsxClosingFragment=LC;h.jSXElement=h.jsxElement=EC;h.jSXEmptyExpression=h.jsxEmptyExpression=PC;h.jSXExpressionContainer=h.jsxExpressionContainer=AC;h.jSXFragment=h.jsxFragment=kC;h.jSXIdentifier=h.jsxIdentifier=CC;h.jSXMemberExpression=h.jsxMemberExpression=IC;h.jSXNamespacedName=h.jsxNamespacedName=wC;h.jSXOpeningElement=h.jsxOpeningElement=NC;h.jSXOpeningFragment=h.jsxOpeningFragment=DC;h.jSXSpreadAttribute=h.jsxSpreadAttribute=_C;h.jSXSpreadChild=h.jsxSpreadChild=vC;h.jSXText=h.jsxText=OC;h.labeledStatement=rv;h.logicalExpression=av;h.memberExpression=ov;h.metaProperty=Vv;h.mixedTypeAnnotation=M1;h.moduleExpression=WC;h.newExpression=lv;h.noop=MC;h.nullLiteral=sv;h.nullLiteralTypeAnnotation=h1;h.nullableTypeAnnotation=F1;h.numberLiteral=pw;h.numberLiteralTypeAnnotation=R1;h.numberTypeAnnotation=j1;h.numericLiteral=Of;h.objectExpression=cv;h.objectMethod=pv;h.objectPattern=Jv;h.objectProperty=fv;h.objectTypeAnnotation=q1;h.objectTypeCallProperty=K1;h.objectTypeIndexer=V1;h.objectTypeInternalSlot=U1;h.objectTypeProperty=Y1;h.objectTypeSpreadProperty=J1;h.opaqueType=W1;h.optionalCallExpression=t1;h.optionalIndexedAccessType=gC;h.optionalMemberExpression=e1;h.parenthesizedExpression=mv;h.pipelineBareFunction=HC;h.pipelinePrimaryTopicReference=zC;h.pipelineTopicExpression=$C;h.placeholder=BC;h.privateName=a1;h.program=uv;h.qualifiedTypeIdentifier=X1;h.recordExpression=VC;h.regExpLiteral=kf;h.regexLiteral=fw;h.restElement=Df;h.restProperty=hw;h.returnStatement=hv;h.sequenceExpression=dv;h.spreadElement=Lf;h.spreadProperty=dw;h.staticBlock=o1;h.stringLiteral=iv;h.stringLiteralTypeAnnotation=$1;h.stringTypeAnnotation=H1;h.super=Wv;h.switchCase=yv;h.switchStatement=Tv;h.symbolTypeAnnotation=z1;h.taggedTemplateExpression=Xv;h.templateElement=$v;h.templateLiteral=Hv;h.thisExpression=Sv;h.thisTypeAnnotation=G1;h.throwStatement=gv;h.topicReference=XC;h.tryStatement=xv;h.tSAnyKeyword=h.tsAnyKeyword=oI;h.tSArrayType=h.tsArrayType=II;h.tSAsExpression=h.tsAsExpression=XI;h.tSBigIntKeyword=h.tsBigIntKeyword=uI;h.tSBooleanKeyword=h.tsBooleanKeyword=lI;h.tSCallSignatureDeclaration=h.tsCallSignatureDeclaration=rI;h.tSConditionalType=h.tsConditionalType=LI;h.tSConstructSignatureDeclaration=h.tsConstructSignatureDeclaration=iI;h.tSConstructorType=h.tsConstructorType=EI;h.tSDeclareFunction=h.tsDeclareFunction=ZC;h.tSDeclareMethod=h.tsDeclareMethod=eI;h.tSEnumBody=h.tsEnumBody=zI;h.tSEnumDeclaration=h.tsEnumDeclaration=GI;h.tSEnumMember=h.tsEnumMember=QI;h.tSExportAssignment=h.tsExportAssignment=nw;h.tSExpressionWithTypeArguments=h.tsExpressionWithTypeArguments=KI;h.tSExternalModuleReference=h.tsExternalModuleReference=iw;h.tSFunctionType=h.tsFunctionType=bI;h.tSImportEqualsDeclaration=h.tsImportEqualsDeclaration=rw;h.tSImportType=h.tsImportType=tw;h.tSIndexSignature=h.tsIndexSignature=aI;h.tSIndexedAccessType=h.tsIndexedAccessType=RI;h.tSInferType=h.tsInferType=MI;h.tSInstantiationExpression=h.tsInstantiationExpression=WI;h.tSInterfaceBody=h.tsInterfaceBody=YI;h.tSInterfaceDeclaration=h.tsInterfaceDeclaration=VI;h.tSIntersectionType=h.tsIntersectionType=DI;h.tSIntrinsicKeyword=h.tsIntrinsicKeyword=cI;h.tSLiteralType=h.tsLiteralType=UI;h.tSMappedType=h.tsMappedType=jI;h.tSMethodSignature=h.tsMethodSignature=nI;h.tSModuleBlock=h.tsModuleBlock=ew;h.tSModuleDeclaration=h.tsModuleDeclaration=ZI;h.tSNamedTupleMember=h.tsNamedTupleMember=OI;h.tSNamespaceExportDeclaration=h.tsNamespaceExportDeclaration=aw;h.tSNeverKeyword=h.tsNeverKeyword=pI;h.tSNonNullExpression=h.tsNonNullExpression=sw;h.tSNullKeyword=h.tsNullKeyword=fI;h.tSNumberKeyword=h.tsNumberKeyword=hI;h.tSObjectKeyword=h.tsObjectKeyword=dI;h.tSOptionalType=h.tsOptionalType=NI;h.tSParameterProperty=h.tsParameterProperty=QC;h.tSParenthesizedType=h.tsParenthesizedType=BI;h.tSPropertySignature=h.tsPropertySignature=sI;h.tSQualifiedName=h.tsQualifiedName=tI;h.tSRestType=h.tsRestType=_I;h.tSSatisfiesExpression=h.tsSatisfiesExpression=$I;h.tSStringKeyword=h.tsStringKeyword=mI;h.tSSymbolKeyword=h.tsSymbolKeyword=yI;h.tSTemplateLiteralType=h.tsTemplateLiteralType=qI;h.tSThisType=h.tsThisType=xI;h.tSTupleType=h.tsTupleType=wI;h.tSTypeAliasDeclaration=h.tsTypeAliasDeclaration=JI;h.tSTypeAnnotation=h.tsTypeAnnotation=ow;h.tSTypeAssertion=h.tsTypeAssertion=HI;h.tSTypeLiteral=h.tsTypeLiteral=CI;h.tSTypeOperator=h.tsTypeOperator=FI;h.tSTypeParameter=h.tsTypeParameter=cw;h.tSTypeParameterDeclaration=h.tsTypeParameterDeclaration=uw;h.tSTypeParameterInstantiation=h.tsTypeParameterInstantiation=lw;h.tSTypePredicate=h.tsTypePredicate=AI;h.tSTypeQuery=h.tsTypeQuery=vI;h.tSTypeReference=h.tsTypeReference=PI;h.tSUndefinedKeyword=h.tsUndefinedKeyword=TI;h.tSUnionType=h.tsUnionType=kI;h.tSUnknownKeyword=h.tsUnknownKeyword=SI;h.tSVoidKeyword=h.tsVoidKeyword=gI;h.tupleExpression=YC;h.tupleTypeAnnotation=Q1;h.typeAlias=eC;h.typeAnnotation=tC;h.typeCastExpression=rC;h.typeParameter=iC;h.typeParameterDeclaration=sC;h.typeParameterInstantiation=nC;h.typeofTypeAnnotation=Z1;h.unaryExpression=bv;h.unionTypeAnnotation=aC;h.updateExpression=Ev;h.v8IntrinsicIdentifier=FC;h.variableDeclaration=Pv;h.variableDeclarator=Av;h.variance=oC;h.voidPattern=GC;h.voidTypeAnnotation=lC;h.whileStatement=vv;h.withStatement=Cv;h.yieldExpression=zv;var _A=tn(),ln=Si(),OA=rr(),{validateInternal:p}=_A,{NODE_FIELDS:P}=OA;function kA(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 DA(e=[]){let t={type:"ArrayExpression",elements:e},r=P.ArrayExpression;return p(r.elements,t,"elements",e,1),t}function LA(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 MA(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 BA(e){let t={type:"InterpreterDirective",value:e},r=P.InterpreterDirective;return p(r.value,t,"value",e),t}function FA(e){let t={type:"Directive",value:e},r=P.Directive;return p(r.value,t,"value",e,1),t}function RA(e){let t={type:"DirectiveLiteral",value:e},r=P.DirectiveLiteral;return p(r.value,t,"value",e),t}function jA(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 qA(e=null){let t={type:"BreakStatement",label:e},r=P.BreakStatement;return p(r.label,t,"label",e,1),t}function UA(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 KA(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 YA(e=null){let t={type:"ContinueStatement",label:e},r=P.ContinueStatement;return p(r.label,t,"label",e,1),t}function JA(){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 XA(){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 HA(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 zA(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 GA(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 QA(e=null,t,r,i=false,s=false){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 ZA(e=null,t,r,i=false,s=false){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 ev(e){let t={type:"Identifier",name:e},r=P.Identifier;return p(r.name,t,"name",e),t}function tv(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 rv(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 iv(e){let t={type:"StringLiteral",value:e},r=P.StringLiteral;return p(r.value,t,"value",e),t}function Of(e){let t={type:"NumericLiteral",value:e},r=P.NumericLiteral;return p(r.value,t,"value",e),t}function sv(){return {type:"NullLiteral"}}function nv(e){let t={type:"BooleanLiteral",value:e},r=P.BooleanLiteral;return p(r.value,t,"value",e),t}function kf(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 av(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 ov(e,t,r=false,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 lv(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 uv(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 cv(e){let t={type:"ObjectExpression",properties:e},r=P.ObjectExpression;return p(r.properties,t,"properties",e,1),t}function pv(e="method",t,r,i,s=false,n=false,a=false){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 fv(e,t,r=false,i=false,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 Df(e){let t={type:"RestElement",argument:e},r=P.RestElement;return p(r.argument,t,"argument",e,1),t}function hv(e=null){let t={type:"ReturnStatement",argument:e},r=P.ReturnStatement;return p(r.argument,t,"argument",e,1),t}function dv(e){let t={type:"SequenceExpression",expressions:e},r=P.SequenceExpression;return p(r.expressions,t,"expressions",e,1),t}function mv(e){let t={type:"ParenthesizedExpression",expression:e},r=P.ParenthesizedExpression;return p(r.expression,t,"expression",e,1),t}function yv(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 Sv(){return {type:"ThisExpression"}}function gv(e){let t={type:"ThrowStatement",argument:e},r=P.ThrowStatement;return p(r.argument,t,"argument",e,1),t}function xv(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 bv(e,t,r=true){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 Ev(e,t,r=false){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 Pv(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 vv(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 Iv(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 wv(e){let t={type:"ArrayPattern",elements:e},r=P.ArrayPattern;return p(r.elements,t,"elements",e,1),t}function Nv(e,t,r=false){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 _v(e){let t={type:"ClassBody",body:e},r=P.ClassBody;return p(r.body,t,"body",e,1),t}function Ov(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 kv(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 Dv(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 Lv(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=P.ExportDefaultDeclaration;return p(r.declaration,t,"declaration",e,1),t}function Mv(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 Bv(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 Fv(e,t,r,i=false){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 Rv(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 jv(e){let t={type:"ImportDefaultSpecifier",local:e},r=P.ImportDefaultSpecifier;return p(r.local,t,"local",e,1),t}function qv(e){let t={type:"ImportNamespaceSpecifier",local:e},r=P.ImportNamespaceSpecifier;return p(r.local,t,"local",e,1),t}function Uv(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 Kv(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 Yv(e="method",t,r,i,s=false,n=false,a=false,o=false){let l={type:"ClassMethod",kind:e,key:t,params:r,body:i,computed:s,static:n,generator:a,async:o},c=P.ClassMethod;return p(c.kind,l,"kind",e),p(c.key,l,"key",t,1),p(c.params,l,"params",r,1),p(c.body,l,"body",i,1),p(c.computed,l,"computed",s),p(c.static,l,"static",n),p(c.generator,l,"generator",a),p(c.async,l,"async",o),l}function Jv(e){let t={type:"ObjectPattern",properties:e},r=P.ObjectPattern;return p(r.properties,t,"properties",e,1),t}function Lf(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 Xv(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=false){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 Hv(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 zv(e=null,t=false){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 Gv(e){let t={type:"AwaitExpression",argument:e},r=P.AwaitExpression;return p(r.argument,t,"argument",e,1),t}function Qv(){return {type:"Import"}}function Zv(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=P.ExportNamespaceSpecifier;return p(r.exported,t,"exported",e,1),t}function e1(e,t,r=false,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 t1(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 r1(e,t=null,r=null,i=null,s=false,n=false){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 i1(e,t=null,r=null,i=null,s=false,n=false){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 s1(e,t=null,r=null,i=false){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 n1(e="method",t,r,i,s=false){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 a1(e){let t={type:"PrivateName",id:e},r=P.PrivateName;return p(r.id,t,"id",e,1),t}function o1(e){let t={type:"StaticBlock",body:e},r=P.StaticBlock;return p(r.body,t,"body",e,1),t}function l1(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 u1(){return {type:"AnyTypeAnnotation"}}function c1(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=P.ArrayTypeAnnotation;return p(r.elementType,t,"elementType",e,1),t}function p1(){return {type:"BooleanTypeAnnotation"}}function f1(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=P.BooleanLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function h1(){return {type:"NullLiteralTypeAnnotation"}}function d1(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 m1(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 y1(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 S1(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 g1(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=P.DeclareModuleExports;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function x1(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 b1(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 E1(e){let t={type:"DeclareVariable",id:e},r=P.DeclareVariable;return p(r.id,t,"id",e,1),t}function P1(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 v1(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 I1(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 w1(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 N1(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 _1(){return {type:"InferredPredicate"}}function O1(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 k1(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 D1(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 L1(e){let t={type:"IntersectionTypeAnnotation",types:e},r=P.IntersectionTypeAnnotation;return p(r.types,t,"types",e,1),t}function M1(){return {type:"MixedTypeAnnotation"}}function B1(){return {type:"EmptyTypeAnnotation"}}function F1(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=P.NullableTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function R1(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=P.NumberLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function j1(){return {type:"NumberTypeAnnotation"}}function q1(e,t=[],r=[],i=[],s=false){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 U1(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 K1(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 Y1(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 J1(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 X1(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 H1(){return {type:"StringTypeAnnotation"}}function z1(){return {type:"SymbolTypeAnnotation"}}function G1(){return {type:"ThisTypeAnnotation"}}function Q1(e){let t={type:"TupleTypeAnnotation",types:e},r=P.TupleTypeAnnotation;return p(r.types,t,"types",e,1),t}function Z1(e){let t={type:"TypeofTypeAnnotation",argument:e},r=P.TypeofTypeAnnotation;return p(r.argument,t,"argument",e,1),t}function eC(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 tC(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=P.TypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function rC(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 iC(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 sC(e){let t={type:"TypeParameterDeclaration",params:e},r=P.TypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function nC(e){let t={type:"TypeParameterInstantiation",params:e},r=P.TypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function aC(e){let t={type:"UnionTypeAnnotation",types:e},r=P.UnionTypeAnnotation;return p(r.types,t,"types",e,1),t}function oC(e){let t={type:"Variance",kind:e},r=P.Variance;return p(r.kind,t,"kind",e),t}function lC(){return {type:"VoidTypeAnnotation"}}function uC(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 cC(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=P.EnumBooleanBody;return p(r.members,t,"members",e,1),t}function pC(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=P.EnumNumberBody;return p(r.members,t,"members",e,1),t}function fC(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=P.EnumStringBody;return p(r.members,t,"members",e,1),t}function hC(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=P.EnumSymbolBody;return p(r.members,t,"members",e,1),t}function dC(e){let t={type:"EnumBooleanMember",id:e,init:null},r=P.EnumBooleanMember;return p(r.id,t,"id",e,1),t}function mC(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 yC(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 SC(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 gC(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 xC(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 bC(e){let t={type:"JSXClosingElement",name:e},r=P.JSXClosingElement;return p(r.name,t,"name",e,1),t}function EC(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 PC(){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 vC(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 IC(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 wC(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 NC(e,t,r=false){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 _C(e){let t={type:"JSXSpreadAttribute",argument:e},r=P.JSXSpreadAttribute;return p(r.argument,t,"argument",e,1),t}function OC(e){let t={type:"JSXText",value:e},r=P.JSXText;return p(r.value,t,"value",e),t}function kC(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 DC(){return {type:"JSXOpeningFragment"}}function LC(){return {type:"JSXClosingFragment"}}function MC(){return {type:"Noop"}}function BC(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 FC(e){let t={type:"V8IntrinsicIdentifier",name:e},r=P.V8IntrinsicIdentifier;return p(r.name,t,"name",e),t}function RC(){return {type:"ArgumentPlaceholder"}}function jC(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 qC(e){let t={type:"Decorator",expression:e},r=P.Decorator;return p(r.expression,t,"expression",e,1),t}function UC(e,t=false){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 KC(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 YC(e=[]){let t={type:"TupleExpression",elements:e},r=P.TupleExpression;return p(r.elements,t,"elements",e,1),t}function JC(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 XC(){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 HC(e){let t={type:"PipelineBareFunction",callee:e},r=P.PipelineBareFunction;return p(r.callee,t,"callee",e,1),t}function zC(){return {type:"PipelinePrimaryTopicReference"}}function GC(){return {type:"VoidPattern"}}function QC(e){let t={type:"TSParameterProperty",parameter:e},r=P.TSParameterProperty;return p(r.parameter,t,"parameter",e,1),t}function ZC(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 eI(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 tI(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 rI(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 iI(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 sI(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 nI(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 aI(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 oI(){return {type:"TSAnyKeyword"}}function lI(){return {type:"TSBooleanKeyword"}}function uI(){return {type:"TSBigIntKeyword"}}function cI(){return {type:"TSIntrinsicKeyword"}}function pI(){return {type:"TSNeverKeyword"}}function fI(){return {type:"TSNullKeyword"}}function hI(){return {type:"TSNumberKeyword"}}function dI(){return {type:"TSObjectKeyword"}}function mI(){return {type:"TSStringKeyword"}}function yI(){return {type:"TSSymbolKeyword"}}function TI(){return {type:"TSUndefinedKeyword"}}function SI(){return {type:"TSUnknownKeyword"}}function gI(){return {type:"TSVoidKeyword"}}function xI(){return {type:"TSThisType"}}function bI(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 EI(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 PI(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 vI(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 II(e){let t={type:"TSArrayType",elementType:e},r=P.TSArrayType;return p(r.elementType,t,"elementType",e,1),t}function wI(e){let t={type:"TSTupleType",elementTypes:e},r=P.TSTupleType;return p(r.elementTypes,t,"elementTypes",e,1),t}function NI(e){let t={type:"TSOptionalType",typeAnnotation:e},r=P.TSOptionalType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function _I(e){let t={type:"TSRestType",typeAnnotation:e},r=P.TSRestType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function OI(e,t,r=false){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 kI(e){let t={type:"TSUnionType",types:e},r=P.TSUnionType;return p(r.types,t,"types",e,1),t}function DI(e){let t={type:"TSIntersectionType",types:e},r=P.TSIntersectionType;return p(r.types,t,"types",e,1),t}function LI(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 MI(e){let t={type:"TSInferType",typeParameter:e},r=P.TSInferType;return p(r.typeParameter,t,"typeParameter",e,1),t}function BI(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=P.TSParenthesizedType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function FI(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 RI(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 jI(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 qI(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 UI(e){let t={type:"TSLiteralType",literal:e},r=P.TSLiteralType;return p(r.literal,t,"literal",e,1),t}function KI(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 YI(e){let t={type:"TSInterfaceBody",body:e},r=P.TSInterfaceBody;return p(r.body,t,"body",e,1),t}function JI(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 XI(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 HI(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 zI(e){let t={type:"TSEnumBody",members:e},r=P.TSEnumBody;return p(r.members,t,"members",e,1),t}function GI(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 QI(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 ZI(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 ew(e){let t={type:"TSModuleBlock",body:e},r=P.TSModuleBlock;return p(r.body,t,"body",e,1),t}function tw(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 rw(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 iw(e){let t={type:"TSExternalModuleReference",expression:e},r=P.TSExternalModuleReference;return p(r.expression,t,"expression",e,1),t}function sw(e){let t={type:"TSNonNullExpression",expression:e},r=P.TSNonNullExpression;return p(r.expression,t,"expression",e,1),t}function nw(e){let t={type:"TSExportAssignment",expression:e},r=P.TSExportAssignment;return p(r.expression,t,"expression",e,1),t}function aw(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=P.TSNamespaceExportDeclaration;return p(r.id,t,"id",e,1),t}function ow(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=P.TSTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function lw(e){let t={type:"TSTypeParameterInstantiation",params:e},r=P.TSTypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function uw(e){let t={type:"TSTypeParameterDeclaration",params:e},r=P.TSTypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function cw(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 pw(e){return (0, ln.default)("NumberLiteral","NumericLiteral","The node type "),Of(e)}function fw(e,t=""){return (0, ln.default)("RegexLiteral","RegExpLiteral","The node type "),kf(e,t)}function hw(e){return (0, ln.default)("RestProperty","RestElement","The node type "),Df(e)}function dw(e){return (0, ln.default)("SpreadProperty","SpreadElement","The node type "),Lf(e)}});var Mf=C(u=>{Object.defineProperty(u,"__esModule",{value:true});u.JSXIdentifier=u.JSXFragment=u.JSXExpressionContainer=u.JSXEmptyExpression=u.JSXElement=u.JSXClosingFragment=u.JSXClosingElement=u.JSXAttribute=u.IntersectionTypeAnnotation=u.InterpreterDirective=u.InterfaceTypeAnnotation=u.InterfaceExtends=u.InterfaceDeclaration=u.InferredPredicate=u.IndexedAccessType=u.ImportSpecifier=u.ImportNamespaceSpecifier=u.ImportExpression=u.ImportDefaultSpecifier=u.ImportDeclaration=u.ImportAttribute=u.Import=u.IfStatement=u.Identifier=u.GenericTypeAnnotation=u.FunctionTypeParam=u.FunctionTypeAnnotation=u.FunctionExpression=u.FunctionDeclaration=u.ForStatement=u.ForOfStatement=u.ForInStatement=u.File=u.ExpressionStatement=u.ExportSpecifier=u.ExportNamespaceSpecifier=u.ExportNamedDeclaration=u.ExportDefaultSpecifier=u.ExportDefaultDeclaration=u.ExportAllDeclaration=u.ExistsTypeAnnotation=u.EnumSymbolBody=u.EnumStringMember=u.EnumStringBody=u.EnumNumberMember=u.EnumNumberBody=u.EnumDefaultedMember=u.EnumDeclaration=u.EnumBooleanMember=u.EnumBooleanBody=u.EmptyTypeAnnotation=u.EmptyStatement=u.DoWhileStatement=u.DoExpression=u.DirectiveLiteral=u.Directive=u.Decorator=u.DeclaredPredicate=u.DeclareVariable=u.DeclareTypeAlias=u.DeclareOpaqueType=u.DeclareModuleExports=u.DeclareModule=u.DeclareInterface=u.DeclareFunction=u.DeclareExportDeclaration=u.DeclareExportAllDeclaration=u.DeclareClass=u.DecimalLiteral=u.DebuggerStatement=u.ContinueStatement=u.ConditionalExpression=u.ClassProperty=u.ClassPrivateProperty=u.ClassPrivateMethod=u.ClassMethod=u.ClassImplements=u.ClassExpression=u.ClassDeclaration=u.ClassBody=u.ClassAccessorProperty=u.CatchClause=u.CallExpression=u.BreakStatement=u.BooleanTypeAnnotation=u.BooleanLiteralTypeAnnotation=u.BooleanLiteral=u.BlockStatement=u.BindExpression=u.BinaryExpression=u.BigIntLiteral=u.AwaitExpression=u.AssignmentPattern=u.AssignmentExpression=u.ArrowFunctionExpression=u.ArrayTypeAnnotation=u.ArrayPattern=u.ArrayExpression=u.ArgumentPlaceholder=u.AnyTypeAnnotation=void 0;u.TSNumberKeyword=u.TSNullKeyword=u.TSNonNullExpression=u.TSNeverKeyword=u.TSNamespaceExportDeclaration=u.TSNamedTupleMember=u.TSModuleDeclaration=u.TSModuleBlock=u.TSMethodSignature=u.TSMappedType=u.TSLiteralType=u.TSIntrinsicKeyword=u.TSIntersectionType=u.TSInterfaceDeclaration=u.TSInterfaceBody=u.TSInstantiationExpression=u.TSInferType=u.TSIndexedAccessType=u.TSIndexSignature=u.TSImportType=u.TSImportEqualsDeclaration=u.TSFunctionType=u.TSExternalModuleReference=u.TSExpressionWithTypeArguments=u.TSExportAssignment=u.TSEnumMember=u.TSEnumDeclaration=u.TSEnumBody=u.TSDeclareMethod=u.TSDeclareFunction=u.TSConstructorType=u.TSConstructSignatureDeclaration=u.TSConditionalType=u.TSCallSignatureDeclaration=u.TSBooleanKeyword=u.TSBigIntKeyword=u.TSAsExpression=u.TSArrayType=u.TSAnyKeyword=u.SymbolTypeAnnotation=u.SwitchStatement=u.SwitchCase=u.Super=u.StringTypeAnnotation=u.StringLiteralTypeAnnotation=u.StringLiteral=u.StaticBlock=u.SpreadProperty=u.SpreadElement=u.SequenceExpression=u.ReturnStatement=u.RestProperty=u.RestElement=u.RegexLiteral=u.RegExpLiteral=u.RecordExpression=u.QualifiedTypeIdentifier=u.Program=u.PrivateName=u.Placeholder=u.PipelineTopicExpression=u.PipelinePrimaryTopicReference=u.PipelineBareFunction=u.ParenthesizedExpression=u.OptionalMemberExpression=u.OptionalIndexedAccessType=u.OptionalCallExpression=u.OpaqueType=u.ObjectTypeSpreadProperty=u.ObjectTypeProperty=u.ObjectTypeInternalSlot=u.ObjectTypeIndexer=u.ObjectTypeCallProperty=u.ObjectTypeAnnotation=u.ObjectProperty=u.ObjectPattern=u.ObjectMethod=u.ObjectExpression=u.NumericLiteral=u.NumberTypeAnnotation=u.NumberLiteralTypeAnnotation=u.NumberLiteral=u.NullableTypeAnnotation=u.NullLiteralTypeAnnotation=u.NullLiteral=u.Noop=u.NewExpression=u.ModuleExpression=u.MixedTypeAnnotation=u.MetaProperty=u.MemberExpression=u.LogicalExpression=u.LabeledStatement=u.JSXText=u.JSXSpreadChild=u.JSXSpreadAttribute=u.JSXOpeningFragment=u.JSXOpeningElement=u.JSXNamespacedName=u.JSXMemberExpression=void 0;u.YieldExpression=u.WithStatement=u.WhileStatement=u.VoidTypeAnnotation=u.VoidPattern=u.Variance=u.VariableDeclarator=u.VariableDeclaration=u.V8IntrinsicIdentifier=u.UpdateExpression=u.UnionTypeAnnotation=u.UnaryExpression=u.TypeofTypeAnnotation=u.TypeParameterInstantiation=u.TypeParameterDeclaration=u.TypeParameter=u.TypeCastExpression=u.TypeAnnotation=u.TypeAlias=u.TupleTypeAnnotation=u.TupleExpression=u.TryStatement=u.TopicReference=u.ThrowStatement=u.ThisTypeAnnotation=u.ThisExpression=u.TemplateLiteral=u.TemplateElement=u.TaggedTemplateExpression=u.TSVoidKeyword=u.TSUnknownKeyword=u.TSUnionType=u.TSUndefinedKeyword=u.TSTypeReference=u.TSTypeQuery=u.TSTypePredicate=u.TSTypeParameterInstantiation=u.TSTypeParameterDeclaration=u.TSTypeParameter=u.TSTypeOperator=u.TSTypeLiteral=u.TSTypeAssertion=u.TSTypeAnnotation=u.TSTypeAliasDeclaration=u.TSTupleType=u.TSThisType=u.TSTemplateLiteralType=u.TSSymbolKeyword=u.TSStringKeyword=u.TSSatisfiesExpression=u.TSRestType=u.TSQualifiedName=u.TSPropertySignature=u.TSParenthesizedType=u.TSParameterProperty=u.TSOptionalType=u.TSObjectKeyword=void 0;var ls=Eo();Si();function x(e){return ls[e]}u.ArrayExpression=x("arrayExpression");u.AssignmentExpression=x("assignmentExpression");u.BinaryExpression=x("binaryExpression");u.InterpreterDirective=x("interpreterDirective");u.Directive=x("directive");u.DirectiveLiteral=x("directiveLiteral");u.BlockStatement=x("blockStatement");u.BreakStatement=x("breakStatement");u.CallExpression=x("callExpression");u.CatchClause=x("catchClause");u.ConditionalExpression=x("conditionalExpression");u.ContinueStatement=x("continueStatement");u.DebuggerStatement=x("debuggerStatement");u.DoWhileStatement=x("doWhileStatement");u.EmptyStatement=x("emptyStatement");u.ExpressionStatement=x("expressionStatement");u.File=x("file");u.ForInStatement=x("forInStatement");u.ForStatement=x("forStatement");u.FunctionDeclaration=x("functionDeclaration");u.FunctionExpression=x("functionExpression");u.Identifier=x("identifier");u.IfStatement=x("ifStatement");u.LabeledStatement=x("labeledStatement");u.StringLiteral=x("stringLiteral");u.NumericLiteral=x("numericLiteral");u.NullLiteral=x("nullLiteral");u.BooleanLiteral=x("booleanLiteral");u.RegExpLiteral=x("regExpLiteral");u.LogicalExpression=x("logicalExpression");u.MemberExpression=x("memberExpression");u.NewExpression=x("newExpression");u.Program=x("program");u.ObjectExpression=x("objectExpression");u.ObjectMethod=x("objectMethod");u.ObjectProperty=x("objectProperty");u.RestElement=x("restElement");u.ReturnStatement=x("returnStatement");u.SequenceExpression=x("sequenceExpression");u.ParenthesizedExpression=x("parenthesizedExpression");u.SwitchCase=x("switchCase");u.SwitchStatement=x("switchStatement");u.ThisExpression=x("thisExpression");u.ThrowStatement=x("throwStatement");u.TryStatement=x("tryStatement");u.UnaryExpression=x("unaryExpression");u.UpdateExpression=x("updateExpression");u.VariableDeclaration=x("variableDeclaration");u.VariableDeclarator=x("variableDeclarator");u.WhileStatement=x("whileStatement");u.WithStatement=x("withStatement");u.AssignmentPattern=x("assignmentPattern");u.ArrayPattern=x("arrayPattern");u.ArrowFunctionExpression=x("arrowFunctionExpression");u.ClassBody=x("classBody");u.ClassExpression=x("classExpression");u.ClassDeclaration=x("classDeclaration");u.ExportAllDeclaration=x("exportAllDeclaration");u.ExportDefaultDeclaration=x("exportDefaultDeclaration");u.ExportNamedDeclaration=x("exportNamedDeclaration");u.ExportSpecifier=x("exportSpecifier");u.ForOfStatement=x("forOfStatement");u.ImportDeclaration=x("importDeclaration");u.ImportDefaultSpecifier=x("importDefaultSpecifier");u.ImportNamespaceSpecifier=x("importNamespaceSpecifier");u.ImportSpecifier=x("importSpecifier");u.ImportExpression=x("importExpression");u.MetaProperty=x("metaProperty");u.ClassMethod=x("classMethod");u.ObjectPattern=x("objectPattern");u.SpreadElement=x("spreadElement");u.Super=x("super");u.TaggedTemplateExpression=x("taggedTemplateExpression");u.TemplateElement=x("templateElement");u.TemplateLiteral=x("templateLiteral");u.YieldExpression=x("yieldExpression");u.AwaitExpression=x("awaitExpression");u.Import=x("import");u.BigIntLiteral=x("bigIntLiteral");u.ExportNamespaceSpecifier=x("exportNamespaceSpecifier");u.OptionalMemberExpression=x("optionalMemberExpression");u.OptionalCallExpression=x("optionalCallExpression");u.ClassProperty=x("classProperty");u.ClassAccessorProperty=x("classAccessorProperty");u.ClassPrivateProperty=x("classPrivateProperty");u.ClassPrivateMethod=x("classPrivateMethod");u.PrivateName=x("privateName");u.StaticBlock=x("staticBlock");u.ImportAttribute=x("importAttribute");u.AnyTypeAnnotation=x("anyTypeAnnotation");u.ArrayTypeAnnotation=x("arrayTypeAnnotation");u.BooleanTypeAnnotation=x("booleanTypeAnnotation");u.BooleanLiteralTypeAnnotation=x("booleanLiteralTypeAnnotation");u.NullLiteralTypeAnnotation=x("nullLiteralTypeAnnotation");u.ClassImplements=x("classImplements");u.DeclareClass=x("declareClass");u.DeclareFunction=x("declareFunction");u.DeclareInterface=x("declareInterface");u.DeclareModule=x("declareModule");u.DeclareModuleExports=x("declareModuleExports");u.DeclareTypeAlias=x("declareTypeAlias");u.DeclareOpaqueType=x("declareOpaqueType");u.DeclareVariable=x("declareVariable");u.DeclareExportDeclaration=x("declareExportDeclaration");u.DeclareExportAllDeclaration=x("declareExportAllDeclaration");u.DeclaredPredicate=x("declaredPredicate");u.ExistsTypeAnnotation=x("existsTypeAnnotation");u.FunctionTypeAnnotation=x("functionTypeAnnotation");u.FunctionTypeParam=x("functionTypeParam");u.GenericTypeAnnotation=x("genericTypeAnnotation");u.InferredPredicate=x("inferredPredicate");u.InterfaceExtends=x("interfaceExtends");u.InterfaceDeclaration=x("interfaceDeclaration");u.InterfaceTypeAnnotation=x("interfaceTypeAnnotation");u.IntersectionTypeAnnotation=x("intersectionTypeAnnotation");u.MixedTypeAnnotation=x("mixedTypeAnnotation");u.EmptyTypeAnnotation=x("emptyTypeAnnotation");u.NullableTypeAnnotation=x("nullableTypeAnnotation");u.NumberLiteralTypeAnnotation=x("numberLiteralTypeAnnotation");u.NumberTypeAnnotation=x("numberTypeAnnotation");u.ObjectTypeAnnotation=x("objectTypeAnnotation");u.ObjectTypeInternalSlot=x("objectTypeInternalSlot");u.ObjectTypeCallProperty=x("objectTypeCallProperty");u.ObjectTypeIndexer=x("objectTypeIndexer");u.ObjectTypeProperty=x("objectTypeProperty");u.ObjectTypeSpreadProperty=x("objectTypeSpreadProperty");u.OpaqueType=x("opaqueType");u.QualifiedTypeIdentifier=x("qualifiedTypeIdentifier");u.StringLiteralTypeAnnotation=x("stringLiteralTypeAnnotation");u.StringTypeAnnotation=x("stringTypeAnnotation");u.SymbolTypeAnnotation=x("symbolTypeAnnotation");u.ThisTypeAnnotation=x("thisTypeAnnotation");u.TupleTypeAnnotation=x("tupleTypeAnnotation");u.TypeofTypeAnnotation=x("typeofTypeAnnotation");u.TypeAlias=x("typeAlias");u.TypeAnnotation=x("typeAnnotation");u.TypeCastExpression=x("typeCastExpression");u.TypeParameter=x("typeParameter");u.TypeParameterDeclaration=x("typeParameterDeclaration");u.TypeParameterInstantiation=x("typeParameterInstantiation");u.UnionTypeAnnotation=x("unionTypeAnnotation");u.Variance=x("variance");u.VoidTypeAnnotation=x("voidTypeAnnotation");u.EnumDeclaration=x("enumDeclaration");u.EnumBooleanBody=x("enumBooleanBody");u.EnumNumberBody=x("enumNumberBody");u.EnumStringBody=x("enumStringBody");u.EnumSymbolBody=x("enumSymbolBody");u.EnumBooleanMember=x("enumBooleanMember");u.EnumNumberMember=x("enumNumberMember");u.EnumStringMember=x("enumStringMember");u.EnumDefaultedMember=x("enumDefaultedMember");u.IndexedAccessType=x("indexedAccessType");u.OptionalIndexedAccessType=x("optionalIndexedAccessType");u.JSXAttribute=x("jsxAttribute");u.JSXClosingElement=x("jsxClosingElement");u.JSXElement=x("jsxElement");u.JSXEmptyExpression=x("jsxEmptyExpression");u.JSXExpressionContainer=x("jsxExpressionContainer");u.JSXSpreadChild=x("jsxSpreadChild");u.JSXIdentifier=x("jsxIdentifier");u.JSXMemberExpression=x("jsxMemberExpression");u.JSXNamespacedName=x("jsxNamespacedName");u.JSXOpeningElement=x("jsxOpeningElement");u.JSXSpreadAttribute=x("jsxSpreadAttribute");u.JSXText=x("jsxText");u.JSXFragment=x("jsxFragment");u.JSXOpeningFragment=x("jsxOpeningFragment");u.JSXClosingFragment=x("jsxClosingFragment");u.Noop=x("noop");u.Placeholder=x("placeholder");u.V8IntrinsicIdentifier=x("v8IntrinsicIdentifier");u.ArgumentPlaceholder=x("argumentPlaceholder");u.BindExpression=x("bindExpression");u.Decorator=x("decorator");u.DoExpression=x("doExpression");u.ExportDefaultSpecifier=x("exportDefaultSpecifier");u.RecordExpression=x("recordExpression");u.TupleExpression=x("tupleExpression");u.DecimalLiteral=x("decimalLiteral");u.ModuleExpression=x("moduleExpression");u.TopicReference=x("topicReference");u.PipelineTopicExpression=x("pipelineTopicExpression");u.PipelineBareFunction=x("pipelineBareFunction");u.PipelinePrimaryTopicReference=x("pipelinePrimaryTopicReference");u.VoidPattern=x("voidPattern");u.TSParameterProperty=x("tsParameterProperty");u.TSDeclareFunction=x("tsDeclareFunction");u.TSDeclareMethod=x("tsDeclareMethod");u.TSQualifiedName=x("tsQualifiedName");u.TSCallSignatureDeclaration=x("tsCallSignatureDeclaration");u.TSConstructSignatureDeclaration=x("tsConstructSignatureDeclaration");u.TSPropertySignature=x("tsPropertySignature");u.TSMethodSignature=x("tsMethodSignature");u.TSIndexSignature=x("tsIndexSignature");u.TSAnyKeyword=x("tsAnyKeyword");u.TSBooleanKeyword=x("tsBooleanKeyword");u.TSBigIntKeyword=x("tsBigIntKeyword");u.TSIntrinsicKeyword=x("tsIntrinsicKeyword");u.TSNeverKeyword=x("tsNeverKeyword");u.TSNullKeyword=x("tsNullKeyword");u.TSNumberKeyword=x("tsNumberKeyword");u.TSObjectKeyword=x("tsObjectKeyword");u.TSStringKeyword=x("tsStringKeyword");u.TSSymbolKeyword=x("tsSymbolKeyword");u.TSUndefinedKeyword=x("tsUndefinedKeyword");u.TSUnknownKeyword=x("tsUnknownKeyword");u.TSVoidKeyword=x("tsVoidKeyword");u.TSThisType=x("tsThisType");u.TSFunctionType=x("tsFunctionType");u.TSConstructorType=x("tsConstructorType");u.TSTypeReference=x("tsTypeReference");u.TSTypePredicate=x("tsTypePredicate");u.TSTypeQuery=x("tsTypeQuery");u.TSTypeLiteral=x("tsTypeLiteral");u.TSArrayType=x("tsArrayType");u.TSTupleType=x("tsTupleType");u.TSOptionalType=x("tsOptionalType");u.TSRestType=x("tsRestType");u.TSNamedTupleMember=x("tsNamedTupleMember");u.TSUnionType=x("tsUnionType");u.TSIntersectionType=x("tsIntersectionType");u.TSConditionalType=x("tsConditionalType");u.TSInferType=x("tsInferType");u.TSParenthesizedType=x("tsParenthesizedType");u.TSTypeOperator=x("tsTypeOperator");u.TSIndexedAccessType=x("tsIndexedAccessType");u.TSMappedType=x("tsMappedType");u.TSTemplateLiteralType=x("tsTemplateLiteralType");u.TSLiteralType=x("tsLiteralType");u.TSExpressionWithTypeArguments=x("tsExpressionWithTypeArguments");u.TSInterfaceDeclaration=x("tsInterfaceDeclaration");u.TSInterfaceBody=x("tsInterfaceBody");u.TSTypeAliasDeclaration=x("tsTypeAliasDeclaration");u.TSInstantiationExpression=x("tsInstantiationExpression");u.TSAsExpression=x("tsAsExpression");u.TSSatisfiesExpression=x("tsSatisfiesExpression");u.TSTypeAssertion=x("tsTypeAssertion");u.TSEnumBody=x("tsEnumBody");u.TSEnumDeclaration=x("tsEnumDeclaration");u.TSEnumMember=x("tsEnumMember");u.TSModuleDeclaration=x("tsModuleDeclaration");u.TSModuleBlock=x("tsModuleBlock");u.TSImportType=x("tsImportType");u.TSImportEqualsDeclaration=x("tsImportEqualsDeclaration");u.TSExternalModuleReference=x("tsExternalModuleReference");u.TSNonNullExpression=x("tsNonNullExpression");u.TSExportAssignment=x("tsExportAssignment");u.TSNamespaceExportDeclaration=x("tsNamespaceExportDeclaration");u.TSTypeAnnotation=x("tsTypeAnnotation");u.TSTypeParameterInstantiation=x("tsTypeParameterInstantiation");u.TSTypeParameterDeclaration=x("tsTypeParameterDeclaration");u.TSTypeParameter=x("tsTypeParameter");u.NumberLiteral=ls.numberLiteral;u.RegexLiteral=ls.regexLiteral;u.RestProperty=ls.restProperty;u.SpreadProperty=ls.spreadProperty;});var Ct=C(wr=>{Object.defineProperty(wr,"__esModule",{value:true});var Po=Eo();Object.keys(Po).forEach(function(e){e==="default"||e==="__esModule"||e in wr&&wr[e]===Po[e]||Object.defineProperty(wr,e,{enumerable:true,get:function(){return Po[e]}});});var Ao=Mf();Object.keys(Ao).forEach(function(e){e==="default"||e==="__esModule"||e in wr&&wr[e]===Ao[e]||Object.defineProperty(wr,e,{enumerable:true,get:function(){return Ao[e]}});});});var Bf=C(vo=>{Object.defineProperty(vo,"__esModule",{value:true});vo.default=Tw;var mw=Ct(),yw=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,c=n===i,f=a.replace(/\t/g," ");o||(f=f.replace(/^ +/,"")),l||(f=f.replace(/ +$/,"")),f&&(c||(f+=" "),s+=f);}s&&t.push((0, yw.inherits)((0, mw.stringLiteral)(s),e));}});var Ff=C(Io=>{Object.defineProperty(Io,"__esModule",{value:true});Io.default=gw;var Co=$e(),Sw=Bf();function gw(e){let t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0, Co.isJSXText)(i)){(0, Sw.default)(i,t);continue}(0, Co.isJSXExpressionContainer)(i)&&(i=i.expression),!(0, Co.isJSXEmptyExpression)(i)&&t.push(i);}return t}});var No=C(wo=>{Object.defineProperty(wo,"__esModule",{value:true});wo.default=bw;var xw=Bt();function bw(e){return !!(e&&xw.VISITOR_KEYS[e.type])}});var Rf=C(_o=>{Object.defineProperty(_o,"__esModule",{value:true});_o.default=Pw;var Ew=No();function Pw(e){if(!(0, Ew.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 jf=C(m=>{Object.defineProperty(m,"__esModule",{value:true});m.assertAccessor=VD;m.assertAnyTypeAnnotation=a_;m.assertArgumentPlaceholder=MO;m.assertArrayExpression=vw;m.assertArrayPattern=PN;m.assertArrayTypeAnnotation=o_;m.assertArrowFunctionExpression=AN;m.assertAssignmentExpression=Cw;m.assertAssignmentPattern=EN;m.assertAwaitExpression=XN;m.assertBigIntLiteral=HN;m.assertBinary=cD;m.assertBinaryExpression=Iw;m.assertBindExpression=BO;m.assertBlock=hD;m.assertBlockParent=fD;m.assertBlockStatement=Ow;m.assertBooleanLiteral=Qw;m.assertBooleanLiteralTypeAnnotation=u_;m.assertBooleanTypeAnnotation=l_;m.assertBreakStatement=kw;m.assertCallExpression=Dw;m.assertCatchClause=Lw;m.assertClass=jD;m.assertClassAccessorProperty=e_;m.assertClassBody=vN;m.assertClassDeclaration=IN;m.assertClassExpression=CN;m.assertClassImplements=p_;m.assertClassMethod=jN;m.assertClassPrivateMethod=r_;m.assertClassPrivateProperty=t_;m.assertClassProperty=ZN;m.assertCompletionStatement=yD;m.assertConditional=TD;m.assertConditionalExpression=Mw;m.assertContinueStatement=Bw;m.assertDebuggerStatement=Fw;m.assertDecimalLiteral=KO;m.assertDeclaration=CD;m.assertDeclareClass=f_;m.assertDeclareExportAllDeclaration=b_;m.assertDeclareExportDeclaration=x_;m.assertDeclareFunction=h_;m.assertDeclareInterface=d_;m.assertDeclareModule=m_;m.assertDeclareModuleExports=y_;m.assertDeclareOpaqueType=S_;m.assertDeclareTypeAlias=T_;m.assertDeclareVariable=g_;m.assertDeclaredPredicate=E_;m.assertDecorator=FO;m.assertDirective=Nw;m.assertDirectiveLiteral=_w;m.assertDoExpression=RO;m.assertDoWhileStatement=Rw;m.assertEmptyStatement=jw;m.assertEmptyTypeAnnotation=D_;m.assertEnumBody=zD;m.assertEnumBooleanBody=oO;m.assertEnumBooleanMember=pO;m.assertEnumDeclaration=aO;m.assertEnumDefaultedMember=dO;m.assertEnumMember=GD;m.assertEnumNumberBody=lO;m.assertEnumNumberMember=fO;m.assertEnumStringBody=uO;m.assertEnumStringMember=hO;m.assertEnumSymbolBody=cO;m.assertExistsTypeAnnotation=P_;m.assertExportAllDeclaration=wN;m.assertExportDeclaration=UD;m.assertExportDefaultDeclaration=NN;m.assertExportDefaultSpecifier=jO;m.assertExportNamedDeclaration=_N;m.assertExportNamespaceSpecifier=zN;m.assertExportSpecifier=ON;m.assertExpression=uD;m.assertExpressionStatement=qw;m.assertExpressionWrapper=xD;m.assertFile=Uw;m.assertFlow=JD;m.assertFlowBaseAnnotation=XD;m.assertFlowDeclaration=$D;m.assertFlowPredicate=HD;m.assertFlowType=WD;m.assertFor=bD;m.assertForInStatement=Kw;m.assertForOfStatement=kN;m.assertForStatement=Vw;m.assertForXStatement=ED;m.assertFunction=PD;m.assertFunctionDeclaration=Yw;m.assertFunctionExpression=Jw;m.assertFunctionParameter=ID;m.assertFunctionParent=AD;m.assertFunctionTypeAnnotation=A_;m.assertFunctionTypeParam=v_;m.assertGenericTypeAnnotation=C_;m.assertIdentifier=Ww;m.assertIfStatement=Xw;m.assertImmutable=kD;m.assertImport=$N;m.assertImportAttribute=n_;m.assertImportDeclaration=DN;m.assertImportDefaultSpecifier=LN;m.assertImportExpression=FN;m.assertImportNamespaceSpecifier=MN;m.assertImportOrExportDeclaration=qD;m.assertImportSpecifier=BN;m.assertIndexedAccessType=mO;m.assertInferredPredicate=I_;m.assertInterfaceDeclaration=N_;m.assertInterfaceExtends=w_;m.assertInterfaceTypeAnnotation=__;m.assertInterpreterDirective=ww;m.assertIntersectionTypeAnnotation=O_;m.assertJSX=QD;m.assertJSXAttribute=TO;m.assertJSXClosingElement=SO;m.assertJSXClosingFragment=OO;m.assertJSXElement=gO;m.assertJSXEmptyExpression=xO;m.assertJSXExpressionContainer=bO;m.assertJSXFragment=NO;m.assertJSXIdentifier=PO;m.assertJSXMemberExpression=AO;m.assertJSXNamespacedName=vO;m.assertJSXOpeningElement=CO;m.assertJSXOpeningFragment=_O;m.assertJSXSpreadAttribute=IO;m.assertJSXSpreadChild=EO;m.assertJSXText=wO;m.assertLVal=ND;m.assertLabeledStatement=$w;m.assertLiteral=OD;m.assertLogicalExpression=eN;m.assertLoop=SD;m.assertMemberExpression=tN;m.assertMetaProperty=RN;m.assertMethod=LD;m.assertMiscellaneous=ZD;m.assertMixedTypeAnnotation=k_;m.assertModuleDeclaration=lL;m.assertModuleExpression=VO;m.assertModuleSpecifier=KD;m.assertNewExpression=rN;m.assertNoop=kO;m.assertNullLiteral=Gw;m.assertNullLiteralTypeAnnotation=c_;m.assertNullableTypeAnnotation=L_;m.assertNumberLiteral=sL;m.assertNumberLiteralTypeAnnotation=M_;m.assertNumberTypeAnnotation=B_;m.assertNumericLiteral=zw;m.assertObjectExpression=sN;m.assertObjectMember=MD;m.assertObjectMethod=nN;m.assertObjectPattern=qN;m.assertObjectProperty=aN;m.assertObjectTypeAnnotation=F_;m.assertObjectTypeCallProperty=j_;m.assertObjectTypeIndexer=q_;m.assertObjectTypeInternalSlot=R_;m.assertObjectTypeProperty=U_;m.assertObjectTypeSpreadProperty=K_;m.assertOpaqueType=V_;m.assertOptionalCallExpression=QN;m.assertOptionalIndexedAccessType=yO;m.assertOptionalMemberExpression=GN;m.assertParenthesizedExpression=cN;m.assertPattern=RD;m.assertPatternLike=wD;m.assertPipelineBareFunction=WO;m.assertPipelinePrimaryTopicReference=XO;m.assertPipelineTopicExpression=JO;m.assertPlaceholder=DO;m.assertPrivate=YD;m.assertPrivateName=i_;m.assertProgram=iN;m.assertProperty=BD;m.assertPureish=vD;m.assertQualifiedTypeIdentifier=Y_;m.assertRecordExpression=qO;m.assertRegExpLiteral=Zw;m.assertRegexLiteral=nL;m.assertRestElement=oN;m.assertRestProperty=aL;m.assertReturnStatement=lN;m.assertScopable=pD;m.assertSequenceExpression=uN;m.assertSpreadElement=UN;m.assertSpreadProperty=oL;m.assertStandardized=lD;m.assertStatement=dD;m.assertStaticBlock=s_;m.assertStringLiteral=Hw;m.assertStringLiteralTypeAnnotation=J_;m.assertStringTypeAnnotation=W_;m.assertSuper=KN;m.assertSwitchCase=pN;m.assertSwitchStatement=fN;m.assertSymbolTypeAnnotation=X_;m.assertTSAnyKeyword=sk;m.assertTSArrayType=Ak;m.assertTSAsExpression=Yk;m.assertTSBaseType=iL;m.assertTSBigIntKeyword=ak;m.assertTSBooleanKeyword=nk;m.assertTSCallSignatureDeclaration=ZO;m.assertTSConditionalType=Ok;m.assertTSConstructSignatureDeclaration=ek;m.assertTSConstructorType=gk;m.assertTSDeclareFunction=zO;m.assertTSDeclareMethod=GO;m.assertTSEntityName=_D;m.assertTSEnumBody=Xk;m.assertTSEnumDeclaration=$k;m.assertTSEnumMember=Hk;m.assertTSExportAssignment=rD;m.assertTSExpressionWithTypeArguments=jk;m.assertTSExternalModuleReference=eD;m.assertTSFunctionType=Sk;m.assertTSImportEqualsDeclaration=Zk;m.assertTSImportType=Qk;m.assertTSIndexSignature=ik;m.assertTSIndexedAccessType=Mk;m.assertTSInferType=kk;m.assertTSInstantiationExpression=Vk;m.assertTSInterfaceBody=Uk;m.assertTSInterfaceDeclaration=qk;m.assertTSIntersectionType=_k;m.assertTSIntrinsicKeyword=ok;m.assertTSLiteralType=Rk;m.assertTSMappedType=Bk;m.assertTSMethodSignature=rk;m.assertTSModuleBlock=Gk;m.assertTSModuleDeclaration=zk;m.assertTSNamedTupleMember=wk;m.assertTSNamespaceExportDeclaration=iD;m.assertTSNeverKeyword=lk;m.assertTSNonNullExpression=tD;m.assertTSNullKeyword=uk;m.assertTSNumberKeyword=ck;m.assertTSObjectKeyword=pk;m.assertTSOptionalType=Ck;m.assertTSParameterProperty=HO;m.assertTSParenthesizedType=Dk;m.assertTSPropertySignature=tk;m.assertTSQualifiedName=QO;m.assertTSRestType=Ik;m.assertTSSatisfiesExpression=Jk;m.assertTSStringKeyword=fk;m.assertTSSymbolKeyword=hk;m.assertTSTemplateLiteralType=Fk;m.assertTSThisType=Tk;m.assertTSTupleType=vk;m.assertTSType=rL;m.assertTSTypeAliasDeclaration=Kk;m.assertTSTypeAnnotation=sD;m.assertTSTypeAssertion=Wk;m.assertTSTypeElement=tL;m.assertTSTypeLiteral=Pk;m.assertTSTypeOperator=Lk;m.assertTSTypeParameter=oD;m.assertTSTypeParameterDeclaration=aD;m.assertTSTypeParameterInstantiation=nD;m.assertTSTypePredicate=bk;m.assertTSTypeQuery=Ek;m.assertTSTypeReference=xk;m.assertTSUndefinedKeyword=dk;m.assertTSUnionType=Nk;m.assertTSUnknownKeyword=mk;m.assertTSVoidKeyword=yk;m.assertTaggedTemplateExpression=VN;m.assertTemplateElement=YN;m.assertTemplateLiteral=JN;m.assertTerminatorless=mD;m.assertThisExpression=hN;m.assertThisTypeAnnotation=$_;m.assertThrowStatement=dN;m.assertTopicReference=YO;m.assertTryStatement=mN;m.assertTupleExpression=UO;m.assertTupleTypeAnnotation=H_;m.assertTypeAlias=G_;m.assertTypeAnnotation=Q_;m.assertTypeCastExpression=Z_;m.assertTypeParameter=eO;m.assertTypeParameterDeclaration=tO;m.assertTypeParameterInstantiation=rO;m.assertTypeScript=eL;m.assertTypeofTypeAnnotation=z_;m.assertUnaryExpression=yN;m.assertUnaryLike=FD;m.assertUnionTypeAnnotation=iO;m.assertUpdateExpression=TN;m.assertUserWhitespacable=DD;m.assertV8IntrinsicIdentifier=LO;m.assertVariableDeclaration=SN;m.assertVariableDeclarator=gN;m.assertVariance=sO;m.assertVoidPattern=$O;m.assertVoidTypeAnnotation=nO;m.assertWhile=gD;m.assertWhileStatement=xN;m.assertWithStatement=bN;m.assertYieldExpression=WN;var Aw=gi(),us=Si();function y(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 vw(e,t){y("ArrayExpression",e,t);}function Cw(e,t){y("AssignmentExpression",e,t);}function Iw(e,t){y("BinaryExpression",e,t);}function ww(e,t){y("InterpreterDirective",e,t);}function Nw(e,t){y("Directive",e,t);}function _w(e,t){y("DirectiveLiteral",e,t);}function Ow(e,t){y("BlockStatement",e,t);}function kw(e,t){y("BreakStatement",e,t);}function Dw(e,t){y("CallExpression",e,t);}function Lw(e,t){y("CatchClause",e,t);}function Mw(e,t){y("ConditionalExpression",e,t);}function Bw(e,t){y("ContinueStatement",e,t);}function Fw(e,t){y("DebuggerStatement",e,t);}function Rw(e,t){y("DoWhileStatement",e,t);}function jw(e,t){y("EmptyStatement",e,t);}function qw(e,t){y("ExpressionStatement",e,t);}function Uw(e,t){y("File",e,t);}function Kw(e,t){y("ForInStatement",e,t);}function Vw(e,t){y("ForStatement",e,t);}function Yw(e,t){y("FunctionDeclaration",e,t);}function Jw(e,t){y("FunctionExpression",e,t);}function Ww(e,t){y("Identifier",e,t);}function Xw(e,t){y("IfStatement",e,t);}function $w(e,t){y("LabeledStatement",e,t);}function Hw(e,t){y("StringLiteral",e,t);}function zw(e,t){y("NumericLiteral",e,t);}function Gw(e,t){y("NullLiteral",e,t);}function Qw(e,t){y("BooleanLiteral",e,t);}function Zw(e,t){y("RegExpLiteral",e,t);}function eN(e,t){y("LogicalExpression",e,t);}function tN(e,t){y("MemberExpression",e,t);}function rN(e,t){y("NewExpression",e,t);}function iN(e,t){y("Program",e,t);}function sN(e,t){y("ObjectExpression",e,t);}function nN(e,t){y("ObjectMethod",e,t);}function aN(e,t){y("ObjectProperty",e,t);}function oN(e,t){y("RestElement",e,t);}function lN(e,t){y("ReturnStatement",e,t);}function uN(e,t){y("SequenceExpression",e,t);}function cN(e,t){y("ParenthesizedExpression",e,t);}function pN(e,t){y("SwitchCase",e,t);}function fN(e,t){y("SwitchStatement",e,t);}function hN(e,t){y("ThisExpression",e,t);}function dN(e,t){y("ThrowStatement",e,t);}function mN(e,t){y("TryStatement",e,t);}function yN(e,t){y("UnaryExpression",e,t);}function TN(e,t){y("UpdateExpression",e,t);}function SN(e,t){y("VariableDeclaration",e,t);}function gN(e,t){y("VariableDeclarator",e,t);}function xN(e,t){y("WhileStatement",e,t);}function bN(e,t){y("WithStatement",e,t);}function EN(e,t){y("AssignmentPattern",e,t);}function PN(e,t){y("ArrayPattern",e,t);}function AN(e,t){y("ArrowFunctionExpression",e,t);}function vN(e,t){y("ClassBody",e,t);}function CN(e,t){y("ClassExpression",e,t);}function IN(e,t){y("ClassDeclaration",e,t);}function wN(e,t){y("ExportAllDeclaration",e,t);}function NN(e,t){y("ExportDefaultDeclaration",e,t);}function _N(e,t){y("ExportNamedDeclaration",e,t);}function ON(e,t){y("ExportSpecifier",e,t);}function kN(e,t){y("ForOfStatement",e,t);}function DN(e,t){y("ImportDeclaration",e,t);}function LN(e,t){y("ImportDefaultSpecifier",e,t);}function MN(e,t){y("ImportNamespaceSpecifier",e,t);}function BN(e,t){y("ImportSpecifier",e,t);}function FN(e,t){y("ImportExpression",e,t);}function RN(e,t){y("MetaProperty",e,t);}function jN(e,t){y("ClassMethod",e,t);}function qN(e,t){y("ObjectPattern",e,t);}function UN(e,t){y("SpreadElement",e,t);}function KN(e,t){y("Super",e,t);}function VN(e,t){y("TaggedTemplateExpression",e,t);}function YN(e,t){y("TemplateElement",e,t);}function JN(e,t){y("TemplateLiteral",e,t);}function WN(e,t){y("YieldExpression",e,t);}function XN(e,t){y("AwaitExpression",e,t);}function $N(e,t){y("Import",e,t);}function HN(e,t){y("BigIntLiteral",e,t);}function zN(e,t){y("ExportNamespaceSpecifier",e,t);}function GN(e,t){y("OptionalMemberExpression",e,t);}function QN(e,t){y("OptionalCallExpression",e,t);}function ZN(e,t){y("ClassProperty",e,t);}function e_(e,t){y("ClassAccessorProperty",e,t);}function t_(e,t){y("ClassPrivateProperty",e,t);}function r_(e,t){y("ClassPrivateMethod",e,t);}function i_(e,t){y("PrivateName",e,t);}function s_(e,t){y("StaticBlock",e,t);}function n_(e,t){y("ImportAttribute",e,t);}function a_(e,t){y("AnyTypeAnnotation",e,t);}function o_(e,t){y("ArrayTypeAnnotation",e,t);}function l_(e,t){y("BooleanTypeAnnotation",e,t);}function u_(e,t){y("BooleanLiteralTypeAnnotation",e,t);}function c_(e,t){y("NullLiteralTypeAnnotation",e,t);}function p_(e,t){y("ClassImplements",e,t);}function f_(e,t){y("DeclareClass",e,t);}function h_(e,t){y("DeclareFunction",e,t);}function d_(e,t){y("DeclareInterface",e,t);}function m_(e,t){y("DeclareModule",e,t);}function y_(e,t){y("DeclareModuleExports",e,t);}function T_(e,t){y("DeclareTypeAlias",e,t);}function S_(e,t){y("DeclareOpaqueType",e,t);}function g_(e,t){y("DeclareVariable",e,t);}function x_(e,t){y("DeclareExportDeclaration",e,t);}function b_(e,t){y("DeclareExportAllDeclaration",e,t);}function E_(e,t){y("DeclaredPredicate",e,t);}function P_(e,t){y("ExistsTypeAnnotation",e,t);}function A_(e,t){y("FunctionTypeAnnotation",e,t);}function v_(e,t){y("FunctionTypeParam",e,t);}function C_(e,t){y("GenericTypeAnnotation",e,t);}function I_(e,t){y("InferredPredicate",e,t);}function w_(e,t){y("InterfaceExtends",e,t);}function N_(e,t){y("InterfaceDeclaration",e,t);}function __(e,t){y("InterfaceTypeAnnotation",e,t);}function O_(e,t){y("IntersectionTypeAnnotation",e,t);}function k_(e,t){y("MixedTypeAnnotation",e,t);}function D_(e,t){y("EmptyTypeAnnotation",e,t);}function L_(e,t){y("NullableTypeAnnotation",e,t);}function M_(e,t){y("NumberLiteralTypeAnnotation",e,t);}function B_(e,t){y("NumberTypeAnnotation",e,t);}function F_(e,t){y("ObjectTypeAnnotation",e,t);}function R_(e,t){y("ObjectTypeInternalSlot",e,t);}function j_(e,t){y("ObjectTypeCallProperty",e,t);}function q_(e,t){y("ObjectTypeIndexer",e,t);}function U_(e,t){y("ObjectTypeProperty",e,t);}function K_(e,t){y("ObjectTypeSpreadProperty",e,t);}function V_(e,t){y("OpaqueType",e,t);}function Y_(e,t){y("QualifiedTypeIdentifier",e,t);}function J_(e,t){y("StringLiteralTypeAnnotation",e,t);}function W_(e,t){y("StringTypeAnnotation",e,t);}function X_(e,t){y("SymbolTypeAnnotation",e,t);}function $_(e,t){y("ThisTypeAnnotation",e,t);}function H_(e,t){y("TupleTypeAnnotation",e,t);}function z_(e,t){y("TypeofTypeAnnotation",e,t);}function G_(e,t){y("TypeAlias",e,t);}function Q_(e,t){y("TypeAnnotation",e,t);}function Z_(e,t){y("TypeCastExpression",e,t);}function eO(e,t){y("TypeParameter",e,t);}function tO(e,t){y("TypeParameterDeclaration",e,t);}function rO(e,t){y("TypeParameterInstantiation",e,t);}function iO(e,t){y("UnionTypeAnnotation",e,t);}function sO(e,t){y("Variance",e,t);}function nO(e,t){y("VoidTypeAnnotation",e,t);}function aO(e,t){y("EnumDeclaration",e,t);}function oO(e,t){y("EnumBooleanBody",e,t);}function lO(e,t){y("EnumNumberBody",e,t);}function uO(e,t){y("EnumStringBody",e,t);}function cO(e,t){y("EnumSymbolBody",e,t);}function pO(e,t){y("EnumBooleanMember",e,t);}function fO(e,t){y("EnumNumberMember",e,t);}function hO(e,t){y("EnumStringMember",e,t);}function dO(e,t){y("EnumDefaultedMember",e,t);}function mO(e,t){y("IndexedAccessType",e,t);}function yO(e,t){y("OptionalIndexedAccessType",e,t);}function TO(e,t){y("JSXAttribute",e,t);}function SO(e,t){y("JSXClosingElement",e,t);}function gO(e,t){y("JSXElement",e,t);}function xO(e,t){y("JSXEmptyExpression",e,t);}function bO(e,t){y("JSXExpressionContainer",e,t);}function EO(e,t){y("JSXSpreadChild",e,t);}function PO(e,t){y("JSXIdentifier",e,t);}function AO(e,t){y("JSXMemberExpression",e,t);}function vO(e,t){y("JSXNamespacedName",e,t);}function CO(e,t){y("JSXOpeningElement",e,t);}function IO(e,t){y("JSXSpreadAttribute",e,t);}function wO(e,t){y("JSXText",e,t);}function NO(e,t){y("JSXFragment",e,t);}function _O(e,t){y("JSXOpeningFragment",e,t);}function OO(e,t){y("JSXClosingFragment",e,t);}function kO(e,t){y("Noop",e,t);}function DO(e,t){y("Placeholder",e,t);}function LO(e,t){y("V8IntrinsicIdentifier",e,t);}function MO(e,t){y("ArgumentPlaceholder",e,t);}function BO(e,t){y("BindExpression",e,t);}function FO(e,t){y("Decorator",e,t);}function RO(e,t){y("DoExpression",e,t);}function jO(e,t){y("ExportDefaultSpecifier",e,t);}function qO(e,t){y("RecordExpression",e,t);}function UO(e,t){y("TupleExpression",e,t);}function KO(e,t){y("DecimalLiteral",e,t);}function VO(e,t){y("ModuleExpression",e,t);}function YO(e,t){y("TopicReference",e,t);}function JO(e,t){y("PipelineTopicExpression",e,t);}function WO(e,t){y("PipelineBareFunction",e,t);}function XO(e,t){y("PipelinePrimaryTopicReference",e,t);}function $O(e,t){y("VoidPattern",e,t);}function HO(e,t){y("TSParameterProperty",e,t);}function zO(e,t){y("TSDeclareFunction",e,t);}function GO(e,t){y("TSDeclareMethod",e,t);}function QO(e,t){y("TSQualifiedName",e,t);}function ZO(e,t){y("TSCallSignatureDeclaration",e,t);}function ek(e,t){y("TSConstructSignatureDeclaration",e,t);}function tk(e,t){y("TSPropertySignature",e,t);}function rk(e,t){y("TSMethodSignature",e,t);}function ik(e,t){y("TSIndexSignature",e,t);}function sk(e,t){y("TSAnyKeyword",e,t);}function nk(e,t){y("TSBooleanKeyword",e,t);}function ak(e,t){y("TSBigIntKeyword",e,t);}function ok(e,t){y("TSIntrinsicKeyword",e,t);}function lk(e,t){y("TSNeverKeyword",e,t);}function uk(e,t){y("TSNullKeyword",e,t);}function ck(e,t){y("TSNumberKeyword",e,t);}function pk(e,t){y("TSObjectKeyword",e,t);}function fk(e,t){y("TSStringKeyword",e,t);}function hk(e,t){y("TSSymbolKeyword",e,t);}function dk(e,t){y("TSUndefinedKeyword",e,t);}function mk(e,t){y("TSUnknownKeyword",e,t);}function yk(e,t){y("TSVoidKeyword",e,t);}function Tk(e,t){y("TSThisType",e,t);}function Sk(e,t){y("TSFunctionType",e,t);}function gk(e,t){y("TSConstructorType",e,t);}function xk(e,t){y("TSTypeReference",e,t);}function bk(e,t){y("TSTypePredicate",e,t);}function Ek(e,t){y("TSTypeQuery",e,t);}function Pk(e,t){y("TSTypeLiteral",e,t);}function Ak(e,t){y("TSArrayType",e,t);}function vk(e,t){y("TSTupleType",e,t);}function Ck(e,t){y("TSOptionalType",e,t);}function Ik(e,t){y("TSRestType",e,t);}function wk(e,t){y("TSNamedTupleMember",e,t);}function Nk(e,t){y("TSUnionType",e,t);}function _k(e,t){y("TSIntersectionType",e,t);}function Ok(e,t){y("TSConditionalType",e,t);}function kk(e,t){y("TSInferType",e,t);}function Dk(e,t){y("TSParenthesizedType",e,t);}function Lk(e,t){y("TSTypeOperator",e,t);}function Mk(e,t){y("TSIndexedAccessType",e,t);}function Bk(e,t){y("TSMappedType",e,t);}function Fk(e,t){y("TSTemplateLiteralType",e,t);}function Rk(e,t){y("TSLiteralType",e,t);}function jk(e,t){y("TSExpressionWithTypeArguments",e,t);}function qk(e,t){y("TSInterfaceDeclaration",e,t);}function Uk(e,t){y("TSInterfaceBody",e,t);}function Kk(e,t){y("TSTypeAliasDeclaration",e,t);}function Vk(e,t){y("TSInstantiationExpression",e,t);}function Yk(e,t){y("TSAsExpression",e,t);}function Jk(e,t){y("TSSatisfiesExpression",e,t);}function Wk(e,t){y("TSTypeAssertion",e,t);}function Xk(e,t){y("TSEnumBody",e,t);}function $k(e,t){y("TSEnumDeclaration",e,t);}function Hk(e,t){y("TSEnumMember",e,t);}function zk(e,t){y("TSModuleDeclaration",e,t);}function Gk(e,t){y("TSModuleBlock",e,t);}function Qk(e,t){y("TSImportType",e,t);}function Zk(e,t){y("TSImportEqualsDeclaration",e,t);}function eD(e,t){y("TSExternalModuleReference",e,t);}function tD(e,t){y("TSNonNullExpression",e,t);}function rD(e,t){y("TSExportAssignment",e,t);}function iD(e,t){y("TSNamespaceExportDeclaration",e,t);}function sD(e,t){y("TSTypeAnnotation",e,t);}function nD(e,t){y("TSTypeParameterInstantiation",e,t);}function aD(e,t){y("TSTypeParameterDeclaration",e,t);}function oD(e,t){y("TSTypeParameter",e,t);}function lD(e,t){y("Standardized",e,t);}function uD(e,t){y("Expression",e,t);}function cD(e,t){y("Binary",e,t);}function pD(e,t){y("Scopable",e,t);}function fD(e,t){y("BlockParent",e,t);}function hD(e,t){y("Block",e,t);}function dD(e,t){y("Statement",e,t);}function mD(e,t){y("Terminatorless",e,t);}function yD(e,t){y("CompletionStatement",e,t);}function TD(e,t){y("Conditional",e,t);}function SD(e,t){y("Loop",e,t);}function gD(e,t){y("While",e,t);}function xD(e,t){y("ExpressionWrapper",e,t);}function bD(e,t){y("For",e,t);}function ED(e,t){y("ForXStatement",e,t);}function PD(e,t){y("Function",e,t);}function AD(e,t){y("FunctionParent",e,t);}function vD(e,t){y("Pureish",e,t);}function CD(e,t){y("Declaration",e,t);}function ID(e,t){y("FunctionParameter",e,t);}function wD(e,t){y("PatternLike",e,t);}function ND(e,t){y("LVal",e,t);}function _D(e,t){y("TSEntityName",e,t);}function OD(e,t){y("Literal",e,t);}function kD(e,t){y("Immutable",e,t);}function DD(e,t){y("UserWhitespacable",e,t);}function LD(e,t){y("Method",e,t);}function MD(e,t){y("ObjectMember",e,t);}function BD(e,t){y("Property",e,t);}function FD(e,t){y("UnaryLike",e,t);}function RD(e,t){y("Pattern",e,t);}function jD(e,t){y("Class",e,t);}function qD(e,t){y("ImportOrExportDeclaration",e,t);}function UD(e,t){y("ExportDeclaration",e,t);}function KD(e,t){y("ModuleSpecifier",e,t);}function VD(e,t){y("Accessor",e,t);}function YD(e,t){y("Private",e,t);}function JD(e,t){y("Flow",e,t);}function WD(e,t){y("FlowType",e,t);}function XD(e,t){y("FlowBaseAnnotation",e,t);}function $D(e,t){y("FlowDeclaration",e,t);}function HD(e,t){y("FlowPredicate",e,t);}function zD(e,t){y("EnumBody",e,t);}function GD(e,t){y("EnumMember",e,t);}function QD(e,t){y("JSX",e,t);}function ZD(e,t){y("Miscellaneous",e,t);}function eL(e,t){y("TypeScript",e,t);}function tL(e,t){y("TSTypeElement",e,t);}function rL(e,t){y("TSType",e,t);}function iL(e,t){y("TSBaseType",e,t);}function sL(e,t){(0, us.default)("assertNumberLiteral","assertNumericLiteral"),y("NumberLiteral",e,t);}function nL(e,t){(0, us.default)("assertRegexLiteral","assertRegExpLiteral"),y("RegexLiteral",e,t);}function aL(e,t){(0, us.default)("assertRestProperty","assertRestElement"),y("RestProperty",e,t);}function oL(e,t){(0, us.default)("assertSpreadProperty","assertSpreadElement"),y("SpreadProperty",e,t);}function lL(e,t){(0, us.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),y("ModuleDeclaration",e,t);}});var qf=C(un=>{Object.defineProperty(un,"__esModule",{value:true});un.default=void 0;var Xt=Ct();un.default=uL;function uL(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 ko=C(Oo=>{Object.defineProperty(Oo,"__esModule",{value:true});Oo.default=Kf;var cs=$e();function Uf(e){return (0, cs.isIdentifier)(e)?e.name:`${e.id.name}.${Uf(e.qualification)}`}function Kf(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, cs.isAnyTypeAnnotation)(o))return [o];if((0, cs.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0, cs.isUnionTypeAnnotation)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}if((0, cs.isGenericTypeAnnotation)(o)){let l=Uf(o.id);if(r.has(l)){let c=r.get(l);c.typeParameters?o.typeParameters&&(c.typeParameters.params.push(...o.typeParameters.params),c.typeParameters.params=Kf(c.typeParameters.params)):c=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 Vf=C(Do=>{Object.defineProperty(Do,"__esModule",{value:true});Do.default=fL;var cL=Ct(),pL=ko();function fL(e){let t=(0, pL.default)(e);return t.length===1?t[0]:(0, cL.unionTypeAnnotation)(t)}});var Wf=C(Lo=>{Object.defineProperty(Lo,"__esModule",{value:true});Lo.default=Jf;var Ci=$e();function Yf(e){return (0, Ci.isIdentifier)(e)?e.name:(0, Ci.isThisExpression)(e)?"this":`${e.right.name}.${Yf(e.left)}`}function Jf(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 c=o[l],f=Yf(o.typeName);if(r.has(f)){let g=r.get(f),E=g[l];E?(E.params.push(...c.params),E.params=Jf(E.params)):g=c;}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 Xf=C(Mo=>{Object.defineProperty(Mo,"__esModule",{value:true});Mo.default=yL;var hL=Ct(),dL=Wf(),mL=$e();function yL(e){let t=e.map(i=>(0, mL.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0, dL.default)(t);return r.length===1?r[0]:(0, hL.tsUnionType)(r)}});var Fo=C(Bo=>{Object.defineProperty(Bo,"__esModule",{value:true});Bo.buildUndefinedNode=TL;var $f=Ct();function TL(){return (0, $f.unaryExpression)("void",(0, $f.numericLiteral)(0),true)}});var Nr=C(jo=>{Object.defineProperty(jo,"__esModule",{value:true});jo.default=SL;var Hf=Bt(),zf=$e(),{hasOwn:ir}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Gf(e,t,r,i){return e&&typeof e.type=="string"?Qf(e,t,r,i):e}function Ro(e,t,r,i){return Array.isArray(e)?e.map(s=>Gf(s,t,r,i)):Gf(e,t,r,i)}function SL(e,t=true,r=false){return Qf(e,t,r,new Map)}function Qf(e,t=true,r=false,i){if(!e)return e;let{type:s}=e,n={type:e.type};if((0, zf.isIdentifier)(e))n.name=e.name,ir(e,"optional")&&typeof e.optional=="boolean"&&(n.optional=e.optional),ir(e,"typeAnnotation")&&(n.typeAnnotation=t?Ro(e.typeAnnotation,true,r,i):e.typeAnnotation),ir(e,"decorators")&&(n.decorators=t?Ro(e.decorators,true,r,i):e.decorators);else if(ir(Hf.NODE_FIELDS,s))for(let a of Object.keys(Hf.NODE_FIELDS[s]))ir(e,a)&&(t?n[a]=(0, zf.isFile)(e)&&a==="comments"?cn(e.comments,t,r,i):Ro(e[a],true,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=cn(e.leadingComments,t,r,i)),ir(e,"innerComments")&&(n.innerComments=cn(e.innerComments,t,r,i)),ir(e,"trailingComments")&&(n.trailingComments=cn(e.trailingComments,t,r,i)),ir(e,"extra")&&(n.extra=Object.assign({},e.extra)),n}function cn(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,c={type:a,value:o,loc:l};return r&&(c.loc=null),i.set(s,c),c})}});var Zf=C(qo=>{Object.defineProperty(qo,"__esModule",{value:true});qo.default=xL;var gL=Nr();function xL(e){return (0, gL.default)(e,false)}});var eh=C(Uo=>{Object.defineProperty(Uo,"__esModule",{value:true});Uo.default=EL;var bL=Nr();function EL(e){return (0, bL.default)(e)}});var th=C(Ko=>{Object.defineProperty(Ko,"__esModule",{value:true});Ko.default=AL;var PL=Nr();function AL(e){return (0, PL.default)(e,true,true)}});var rh=C(Vo=>{Object.defineProperty(Vo,"__esModule",{value:true});Vo.default=CL;var vL=Nr();function CL(e){return (0, vL.default)(e,false,true)}});var Jo=C(Yo=>{Object.defineProperty(Yo,"__esModule",{value:true});Yo.default=IL;function IL(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 ih=C(Wo=>{Object.defineProperty(Wo,"__esModule",{value:true});Wo.default=NL;var wL=Jo();function NL(e,t,r,i){return (0, wL.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var pn=C(Xo=>{Object.defineProperty(Xo,"__esModule",{value:true});Xo.default=_L;function _L(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))));}});var Ho=C($o=>{Object.defineProperty($o,"__esModule",{value:true});$o.default=kL;var OL=pn();function kL(e,t){(0, OL.default)("innerComments",e,t);}});var Go=C(zo=>{Object.defineProperty(zo,"__esModule",{value:true});zo.default=LL;var DL=pn();function LL(e,t){(0, DL.default)("leadingComments",e,t);}});var Zo=C(Qo=>{Object.defineProperty(Qo,"__esModule",{value:true});Qo.default=BL;var ML=pn();function BL(e,t){(0, ML.default)("trailingComments",e,t);}});var tl=C(el=>{Object.defineProperty(el,"__esModule",{value:true});el.default=qL;var FL=Zo(),RL=Go(),jL=Ho();function qL(e,t){return (0, FL.default)(e,t),(0, RL.default)(e,t),(0, jL.default)(e,t),e}});var sh=C(rl=>{Object.defineProperty(rl,"__esModule",{value:true});rl.default=KL;var UL=bi();function KL(e){return UL.COMMENT_KEYS.forEach(t=>{e[t]=null;}),e}});var nh=C(F=>{Object.defineProperty(F,"__esModule",{value:true});F.WHILE_TYPES=F.USERWHITESPACABLE_TYPES=F.UNARYLIKE_TYPES=F.TYPESCRIPT_TYPES=F.TSTYPE_TYPES=F.TSTYPEELEMENT_TYPES=F.TSENTITYNAME_TYPES=F.TSBASETYPE_TYPES=F.TERMINATORLESS_TYPES=F.STATEMENT_TYPES=F.STANDARDIZED_TYPES=F.SCOPABLE_TYPES=F.PUREISH_TYPES=F.PROPERTY_TYPES=F.PRIVATE_TYPES=F.PATTERN_TYPES=F.PATTERNLIKE_TYPES=F.OBJECTMEMBER_TYPES=F.MODULESPECIFIER_TYPES=F.MODULEDECLARATION_TYPES=F.MISCELLANEOUS_TYPES=F.METHOD_TYPES=F.LVAL_TYPES=F.LOOP_TYPES=F.LITERAL_TYPES=F.JSX_TYPES=F.IMPORTOREXPORTDECLARATION_TYPES=F.IMMUTABLE_TYPES=F.FUNCTION_TYPES=F.FUNCTIONPARENT_TYPES=F.FUNCTIONPARAMETER_TYPES=F.FOR_TYPES=F.FORXSTATEMENT_TYPES=F.FLOW_TYPES=F.FLOWTYPE_TYPES=F.FLOWPREDICATE_TYPES=F.FLOWDECLARATION_TYPES=F.FLOWBASEANNOTATION_TYPES=F.EXPRESSION_TYPES=F.EXPRESSIONWRAPPER_TYPES=F.EXPORTDECLARATION_TYPES=F.ENUMMEMBER_TYPES=F.ENUMBODY_TYPES=F.DECLARATION_TYPES=F.CONDITIONAL_TYPES=F.COMPLETIONSTATEMENT_TYPES=F.CLASS_TYPES=F.BLOCK_TYPES=F.BLOCKPARENT_TYPES=F.BINARY_TYPES=F.ACCESSOR_TYPES=void 0;var le=Bt();F.STANDARDIZED_TYPES=le.FLIPPED_ALIAS_KEYS.Standardized;F.EXPRESSION_TYPES=le.FLIPPED_ALIAS_KEYS.Expression;F.BINARY_TYPES=le.FLIPPED_ALIAS_KEYS.Binary;F.SCOPABLE_TYPES=le.FLIPPED_ALIAS_KEYS.Scopable;F.BLOCKPARENT_TYPES=le.FLIPPED_ALIAS_KEYS.BlockParent;F.BLOCK_TYPES=le.FLIPPED_ALIAS_KEYS.Block;F.STATEMENT_TYPES=le.FLIPPED_ALIAS_KEYS.Statement;F.TERMINATORLESS_TYPES=le.FLIPPED_ALIAS_KEYS.Terminatorless;F.COMPLETIONSTATEMENT_TYPES=le.FLIPPED_ALIAS_KEYS.CompletionStatement;F.CONDITIONAL_TYPES=le.FLIPPED_ALIAS_KEYS.Conditional;F.LOOP_TYPES=le.FLIPPED_ALIAS_KEYS.Loop;F.WHILE_TYPES=le.FLIPPED_ALIAS_KEYS.While;F.EXPRESSIONWRAPPER_TYPES=le.FLIPPED_ALIAS_KEYS.ExpressionWrapper;F.FOR_TYPES=le.FLIPPED_ALIAS_KEYS.For;F.FORXSTATEMENT_TYPES=le.FLIPPED_ALIAS_KEYS.ForXStatement;F.FUNCTION_TYPES=le.FLIPPED_ALIAS_KEYS.Function;F.FUNCTIONPARENT_TYPES=le.FLIPPED_ALIAS_KEYS.FunctionParent;F.PUREISH_TYPES=le.FLIPPED_ALIAS_KEYS.Pureish;F.DECLARATION_TYPES=le.FLIPPED_ALIAS_KEYS.Declaration;F.FUNCTIONPARAMETER_TYPES=le.FLIPPED_ALIAS_KEYS.FunctionParameter;F.PATTERNLIKE_TYPES=le.FLIPPED_ALIAS_KEYS.PatternLike;F.LVAL_TYPES=le.FLIPPED_ALIAS_KEYS.LVal;F.TSENTITYNAME_TYPES=le.FLIPPED_ALIAS_KEYS.TSEntityName;F.LITERAL_TYPES=le.FLIPPED_ALIAS_KEYS.Literal;F.IMMUTABLE_TYPES=le.FLIPPED_ALIAS_KEYS.Immutable;F.USERWHITESPACABLE_TYPES=le.FLIPPED_ALIAS_KEYS.UserWhitespacable;F.METHOD_TYPES=le.FLIPPED_ALIAS_KEYS.Method;F.OBJECTMEMBER_TYPES=le.FLIPPED_ALIAS_KEYS.ObjectMember;F.PROPERTY_TYPES=le.FLIPPED_ALIAS_KEYS.Property;F.UNARYLIKE_TYPES=le.FLIPPED_ALIAS_KEYS.UnaryLike;F.PATTERN_TYPES=le.FLIPPED_ALIAS_KEYS.Pattern;F.CLASS_TYPES=le.FLIPPED_ALIAS_KEYS.Class;var VL=F.IMPORTOREXPORTDECLARATION_TYPES=le.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;F.EXPORTDECLARATION_TYPES=le.FLIPPED_ALIAS_KEYS.ExportDeclaration;F.MODULESPECIFIER_TYPES=le.FLIPPED_ALIAS_KEYS.ModuleSpecifier;F.ACCESSOR_TYPES=le.FLIPPED_ALIAS_KEYS.Accessor;F.PRIVATE_TYPES=le.FLIPPED_ALIAS_KEYS.Private;F.FLOW_TYPES=le.FLIPPED_ALIAS_KEYS.Flow;F.FLOWTYPE_TYPES=le.FLIPPED_ALIAS_KEYS.FlowType;F.FLOWBASEANNOTATION_TYPES=le.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;F.FLOWDECLARATION_TYPES=le.FLIPPED_ALIAS_KEYS.FlowDeclaration;F.FLOWPREDICATE_TYPES=le.FLIPPED_ALIAS_KEYS.FlowPredicate;F.ENUMBODY_TYPES=le.FLIPPED_ALIAS_KEYS.EnumBody;F.ENUMMEMBER_TYPES=le.FLIPPED_ALIAS_KEYS.EnumMember;F.JSX_TYPES=le.FLIPPED_ALIAS_KEYS.JSX;F.MISCELLANEOUS_TYPES=le.FLIPPED_ALIAS_KEYS.Miscellaneous;F.TYPESCRIPT_TYPES=le.FLIPPED_ALIAS_KEYS.TypeScript;F.TSTYPEELEMENT_TYPES=le.FLIPPED_ALIAS_KEYS.TSTypeElement;F.TSTYPE_TYPES=le.FLIPPED_ALIAS_KEYS.TSType;F.TSBASETYPE_TYPES=le.FLIPPED_ALIAS_KEYS.TSBaseType;F.MODULEDECLARATION_TYPES=VL;});var nl=C(sl=>{Object.defineProperty(sl,"__esModule",{value:true});sl.default=YL;var fn=$e(),il=Ct();function YL(e,t){if((0, fn.isBlockStatement)(e))return e;let r=[];return (0, fn.isEmptyStatement)(e)?r=[]:((0, fn.isStatement)(e)||((0, fn.isFunction)(t)?e=(0, il.returnStatement)(e):e=(0, il.expressionStatement)(e)),r=[e]),(0, il.blockStatement)(r)}});var ah=C(al=>{Object.defineProperty(al,"__esModule",{value:true});al.default=WL;var JL=nl();function WL(e,t="body"){let r=(0, JL.default)(e[t],e);return e[t]=r,r}});var ll=C(ol=>{Object.defineProperty(ol,"__esModule",{value:true});ol.default=HL;var XL=xi(),$L=rs();function HL(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, XL.default)(t)||(t=`_${t}`),t||"_"}});var oh=C(ul=>{Object.defineProperty(ul,"__esModule",{value:true});ul.default=GL;var zL=ll();function GL(e){return e=(0, zL.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var lh=C(cl=>{Object.defineProperty(cl,"__esModule",{value:true});cl.default=e2;var QL=$e(),ZL=Ct();function e2(e,t=e.key||e.property){return !e.computed&&(0, QL.isIdentifier)(t)&&(t=(0, ZL.stringLiteral)(t.name)),t}});var uh=C(hn=>{Object.defineProperty(hn,"__esModule",{value:true});hn.default=void 0;var ps=$e();hn.default=t2;function t2(e){if((0, ps.isExpressionStatement)(e)&&(e=e.expression),(0, ps.isExpression)(e))return e;if((0, ps.isClass)(e)?(e.type="ClassExpression",e.abstract=false):(0, ps.isFunction)(e)&&(e.type="FunctionExpression"),!(0, ps.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var fl=C(pl=>{Object.defineProperty(pl,"__esModule",{value:true});pl.default=fs;var r2=Bt(),ch=Symbol(),ph=Symbol();function fs(e,t,r){if(!e)return false;let i=r2.VISITOR_KEYS[e.type];if(!i)return false;r=r||{};let s=t(e,r);if(s!==void 0)switch(s){case ch:return false;case ph:return true}for(let n of i){let a=e[n];if(a){if(Array.isArray(a)){for(let o of a)if(fs(o,t,r))return true}else if(fs(a,t,r))return true}}return false}fs.skip=ch;fs.stop=ph;});var dl=C(hl=>{Object.defineProperty(hl,"__esModule",{value:true});hl.default=n2;var i2=bi(),fh=["tokens","start","end","loc","raw","rawValue"],s2=[...i2.COMMENT_KEYS,"comments",...fh];function n2(e,t={}){let r=t.preserveComments?fh:s2;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 yl=C(ml=>{Object.defineProperty(ml,"__esModule",{value:true});ml.default=l2;var a2=fl(),o2=dl();function l2(e,t){return (0, a2.default)(e,o2.default,t),e}});var dh=C(Tl=>{Object.defineProperty(Tl,"__esModule",{value:true});Tl.default=zr;var hh=$e(),u2=Nr(),c2=yl();function zr(e,t=e.key){let r;return e.kind==="method"?zr.increment()+"":((0, hh.isIdentifier)(t)?r=t.name:(0, hh.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0, c2.default)((0, u2.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 mh=C(mn=>{Object.defineProperty(mn,"__esModule",{value:true});mn.default=void 0;var dn=$e(),p2=Ct();mn.default=f2;function f2(e,t){if((0, dn.isStatement)(e))return e;let r=false,i;if((0, dn.isClass)(e))r=true,i="ClassDeclaration";else if((0, dn.isFunction)(e))r=true,i="FunctionDeclaration";else if((0, dn.isAssignmentExpression)(e))return (0, p2.expressionStatement)(e);if(r&&!e.id&&(i=false),!i){if(t)return false;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e}});var yh=C(yn=>{Object.defineProperty(yn,"__esModule",{value:true});yn.default=void 0;var h2=xi(),tt=Ct();yn.default=Sl;var d2=Function.call.bind(Object.prototype.toString);function m2(e){return d2(e)==="[object RegExp]"}function y2(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return false;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Sl(e){if(e===void 0)return (0, tt.identifier)("undefined");if(e===true||e===false)return (0, tt.booleanLiteral)(e);if(e===null)return (0, tt.nullLiteral)();if(typeof e=="string")return (0, tt.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0, tt.numericLiteral)(Math.abs(e));else {let r;Number.isNaN(e)?r=(0, tt.numericLiteral)(0):r=(0, tt.numericLiteral)(1),t=(0, tt.binaryExpression)("/",r,(0, tt.numericLiteral)(0));}return (e<0||Object.is(e,-0))&&(t=(0, tt.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0, tt.unaryExpression)("-",(0, tt.bigIntLiteral)(-e)):(0, tt.bigIntLiteral)(e);if(m2(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return (0, tt.regExpLiteral)(t,r)}if(Array.isArray(e))return (0, tt.arrayExpression)(e.map(Sl));if(y2(e)){let t=[];for(let r of Object.keys(e)){let i,s=false;(0, h2.default)(r)?r==="__proto__"?(s=true,i=(0, tt.stringLiteral)(r)):i=(0, tt.identifier)(r):i=(0, tt.stringLiteral)(r),t.push((0, tt.objectProperty)(i,Sl(e[r]),s));}return (0, tt.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var Th=C(gl=>{Object.defineProperty(gl,"__esModule",{value:true});gl.default=S2;var T2=Ct();function S2(e,t,r=false){return e.object=(0, T2.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var gh=C(xl=>{Object.defineProperty(xl,"__esModule",{value:true});xl.default=x2;var Sh=bi(),g2=tl();function x2(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, g2.default)(e,t),e}});var xh=C(bl=>{Object.defineProperty(bl,"__esModule",{value:true});bl.default=P2;var b2=Ct(),E2=he();function P2(e,t){if((0, E2.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0, b2.memberExpression)(t,e.object),e}});var bh=C(El=>{Object.defineProperty(El,"__esModule",{value:true});El.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;}}return r}});var hs=C(Al=>{Object.defineProperty(Al,"__esModule",{value:true});Al.default=Pl;var Sr=$e();function Pl(e,t,r,i){let s=[].concat(e),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||i&&((0, Sr.isAssignmentExpression)(a)||(0, Sr.isUnaryExpression)(a)||(0, Sr.isUpdateExpression)(a)))continue;if((0, Sr.isIdentifier)(a)){t?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0, Sr.isExportDeclaration)(a)&&!(0, Sr.isExportAllDeclaration)(a)){(0, Sr.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0, Sr.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0, Sr.isFunctionExpression)(a))continue}let o=Pl.keys[a.type];if(o)for(let l=0;l<o.length;l++){let c=o[l],f=a[c];f&&(Array.isArray(f)?s.push(...f):s.push(f));}}return n}var v2={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"]};Pl.keys=v2;});var Eh=C(Tn=>{Object.defineProperty(Tn,"__esModule",{value:true});Tn.default=void 0;var C2=hs();Tn.default=I2;function I2(e,t){return (0, C2.default)(e,t,true)}});var Ah=C(vl=>{Object.defineProperty(vl,"__esModule",{value:true});vl.default=N2;var Ft=$e();function w2(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 Ph(e){if(!e.computed||(0, Ft.isLiteral)(e.key))return e.key}function N2(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=Ph(t):(0, Ft.isObjectMethod)(e)||(0, Ft.isClassMethod)(e)?(i=Ph(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)?w2(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 vh=C(Il=>{Object.defineProperty(Il,"__esModule",{value:true});Il.default=O2;var _2=Bt();function O2(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:i,exit:s}=t;Cl(e,i,s,r,[]);}function Cl(e,t,r,i,s){let n=_2.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 c=o[l];c&&(s.push({node:e,key:a,index:l}),Cl(c,t,r,i,s),s.pop());}else o&&(s.push({node:e,key:a}),Cl(o,t,r,i,s),s.pop());}r&&r(e,s,i);}}});var Ch=C(wl=>{Object.defineProperty(wl,"__esModule",{value:true});wl.default=D2;var k2=hs();function D2(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return false;let i=k2.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 true}else if(a===e)return true}return false}});var _l=C(Nl=>{Object.defineProperty(Nl,"__esModule",{value:true});Nl.default=B2;var L2=$e(),M2=Symbol.for("var used to be block scoped");function B2(e){return (0, L2.isVariableDeclaration)(e)&&(e.kind!=="var"||e[M2])}});var wh=C(Ol=>{Object.defineProperty(Ol,"__esModule",{value:true});Ol.default=R2;var Ih=$e(),F2=_l();function R2(e){return (0, Ih.isFunctionDeclaration)(e)||(0, Ih.isClassDeclaration)(e)||(0, F2.default)(e)}});var Nh=C(kl=>{Object.defineProperty(kl,"__esModule",{value:true});kl.default=U2;var j2=Gs(),q2=$e();function U2(e){return (0, j2.default)(e.type,"Immutable")?true:(0, q2.isIdentifier)(e)?e.name==="undefined":false}});var Oh=C(Ll=>{Object.defineProperty(Ll,"__esModule",{value:true});Ll.default=Dl;var _h=Bt();function Dl(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return false;let r=Object.keys(_h.NODE_FIELDS[e.type]||e.type),i=_h.VISITOR_KEYS[e.type];for(let s of r){let n=e[s],a=t[s];if(typeof n!=typeof a)return false;if(!(n==null&&a==null)){if(n==null||a==null)return false;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return false;for(let o=0;o<n.length;o++)if(!Dl(n[o],a[o]))return false;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return false;continue}if(!Dl(n,a))return false}}return true}});var kh=C(Ml=>{Object.defineProperty(Ml,"__esModule",{value:true});Ml.default=K2;function K2(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 false;case "ClassMethod":case "ClassPrivateMethod":case "ObjectMethod":return t.key===e?!!t.computed:false;case "ObjectProperty":return t.key===e?!!t.computed:r?.type!=="ObjectPattern";case "ClassProperty":case "ClassAccessorProperty":return t.key===e?!!t.computed:true;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 false;case "CatchClause":return false;case "RestElement":return false;case "BreakStatement":case "ContinueStatement":return false;case "FunctionDeclaration":case "FunctionExpression":return false;case "ExportNamespaceSpecifier":case "ExportDefaultSpecifier":return false;case "ExportSpecifier":return r!=null&&r.source?false:t.local===e;case "ImportDefaultSpecifier":case "ImportNamespaceSpecifier":case "ImportSpecifier":return false;case "ImportAttribute":return false;case "JSXAttribute":return false;case "ObjectPattern":case "ArrayPattern":return false;case "MetaProperty":return false;case "ObjectTypeProperty":return t.key!==e;case "TSEnumMember":return t.id!==e;case "TSPropertySignature":return t.key===e?!!t.computed:true}return true}});var Dh=C(Bl=>{Object.defineProperty(Bl,"__esModule",{value:true});Bl.default=V2;var Gr=$e();function V2(e,t){return (0, Gr.isBlockStatement)(e)&&((0, Gr.isFunction)(t)||(0, Gr.isCatchClause)(t))?false:(0, Gr.isPattern)(e)&&((0, Gr.isFunction)(t)||(0, Gr.isCatchClause)(t))?true:(0, Gr.isScopable)(e)}});var Mh=C(Fl=>{Object.defineProperty(Fl,"__esModule",{value:true});Fl.default=Y2;var Lh=$e();function Y2(e){return (0, Lh.isImportDefaultSpecifier)(e)||(0, Lh.isIdentifier)(e.imported||e.exported,{name:"default"})}});var Bh=C(Rl=>{Object.defineProperty(Rl,"__esModule",{value:true});Rl.default=X2;var J2=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 X2(e){return (0, J2.default)(e)&&!W2.has(e)}});var Fh=C(jl=>{Object.defineProperty(jl,"__esModule",{value:true});jl.default=z2;var $2=$e(),H2=Symbol.for("var used to be block scoped");function z2(e){return (0, $2.isVariableDeclaration)(e,{kind:"var"})&&!e[H2]}});var Rh=C(Kl=>{Object.defineProperty(Kl,"__esModule",{value:true});Kl.default=Sn;var G2=hs(),Qr=$e(),ql=Ct(),Ul=Fo(),Q2=Nr();function Sn(e,t){let r=[],i=true;for(let s of e)if((0, Qr.isEmptyStatement)(s)||(i=false),(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, G2.default)(n);for(let o of Object.keys(a))t.push({kind:s.kind,id:(0, Q2.default)(a[o])});n.init&&r.push((0, ql.assignmentExpression)("=",n.id,n.init));}i=true;}else if((0, Qr.isIfStatement)(s)){let n=s.consequent?Sn([s.consequent],t):(0, Ul.buildUndefinedNode)(),a=s.alternate?Sn([s.alternate],t):(0, Ul.buildUndefinedNode)();if(!n||!a)return;r.push((0, ql.conditionalExpression)(s.test,n,a));}else if((0, Qr.isBlockStatement)(s)){let n=Sn(s.body,t);if(!n)return;r.push(n);}else if((0, Qr.isEmptyStatement)(s))e.indexOf(s)===0&&(i=true);else return;return i&&r.push((0, Ul.buildUndefinedNode)()),r.length===1?r[0]:(0, ql.sequenceExpression)(r)}});var jh=C(Vl=>{Object.defineProperty(Vl,"__esModule",{value:true});Vl.default=eM;var Z2=Rh();function eM(e,t){if(!(e!=null&&e.length))return;let r=[],i=(0, Z2.default)(e,r);if(i){for(let s of r)t.push(s);return i}}});var he=C(K=>{Object.defineProperty(K,"__esModule",{value:true});var _r={react:true,assertNode:true,createTypeAnnotationBasedOnTypeof:true,createUnionTypeAnnotation:true,createFlowUnionType:true,createTSUnionType:true,cloneNode:true,clone:true,cloneDeep:true,cloneDeepWithoutLoc:true,cloneWithoutLoc:true,addComment:true,addComments:true,inheritInnerComments:true,inheritLeadingComments:true,inheritsComments:true,inheritTrailingComments:true,removeComments:true,ensureBlock:true,toBindingIdentifierName:true,toBlock:true,toComputedKey:true,toExpression:true,toIdentifier:true,toKeyAlias:true,toStatement:true,valueToNode:true,appendToMemberExpression:true,inherits:true,prependToMemberExpression:true,removeProperties:true,removePropertiesDeep:true,removeTypeDuplicates:true,getAssignmentIdentifiers:true,getBindingIdentifiers:true,getOuterBindingIdentifiers:true,getFunctionName:true,traverse:true,traverseFast:true,shallowEqual:true,is:true,isBinding:true,isBlockScoped:true,isImmutable:true,isLet:true,isNode:true,isNodesEquivalent:true,isPlaceholderType:true,isReferenced:true,isScope:true,isSpecifierDefault:true,isType:true,isValidES3Identifier:true,isValidIdentifier:true,isVar:true,matchesPattern:true,validate:true,buildMatchMemberExpression:true,__internal__deprecationWarning:true};Object.defineProperty(K,"__internal__deprecationWarning",{enumerable:true,get:function(){return sB.default}});Object.defineProperty(K,"addComment",{enumerable:true,get:function(){return fM.default}});Object.defineProperty(K,"addComments",{enumerable:true,get:function(){return hM.default}});Object.defineProperty(K,"appendToMemberExpression",{enumerable:true,get:function(){return wM.default}});Object.defineProperty(K,"assertNode",{enumerable:true,get:function(){return sM.default}});Object.defineProperty(K,"buildMatchMemberExpression",{enumerable:true,get:function(){return iB.default}});Object.defineProperty(K,"clone",{enumerable:true,get:function(){return lM.default}});Object.defineProperty(K,"cloneDeep",{enumerable:true,get:function(){return uM.default}});Object.defineProperty(K,"cloneDeepWithoutLoc",{enumerable:true,get:function(){return cM.default}});Object.defineProperty(K,"cloneNode",{enumerable:true,get:function(){return oM.default}});Object.defineProperty(K,"cloneWithoutLoc",{enumerable:true,get:function(){return pM.default}});Object.defineProperty(K,"createFlowUnionType",{enumerable:true,get:function(){return qh.default}});Object.defineProperty(K,"createTSUnionType",{enumerable:true,get:function(){return aM.default}});Object.defineProperty(K,"createTypeAnnotationBasedOnTypeof",{enumerable:true,get:function(){return nM.default}});Object.defineProperty(K,"createUnionTypeAnnotation",{enumerable:true,get:function(){return qh.default}});Object.defineProperty(K,"ensureBlock",{enumerable:true,get:function(){return gM.default}});Object.defineProperty(K,"getAssignmentIdentifiers",{enumerable:true,get:function(){return LM.default}});Object.defineProperty(K,"getBindingIdentifiers",{enumerable:true,get:function(){return MM.default}});Object.defineProperty(K,"getFunctionName",{enumerable:true,get:function(){return FM.default}});Object.defineProperty(K,"getOuterBindingIdentifiers",{enumerable:true,get:function(){return BM.default}});Object.defineProperty(K,"inheritInnerComments",{enumerable:true,get:function(){return dM.default}});Object.defineProperty(K,"inheritLeadingComments",{enumerable:true,get:function(){return mM.default}});Object.defineProperty(K,"inheritTrailingComments",{enumerable:true,get:function(){return TM.default}});Object.defineProperty(K,"inherits",{enumerable:true,get:function(){return NM.default}});Object.defineProperty(K,"inheritsComments",{enumerable:true,get:function(){return yM.default}});Object.defineProperty(K,"is",{enumerable:true,get:function(){return qM.default}});Object.defineProperty(K,"isBinding",{enumerable:true,get:function(){return UM.default}});Object.defineProperty(K,"isBlockScoped",{enumerable:true,get:function(){return KM.default}});Object.defineProperty(K,"isImmutable",{enumerable:true,get:function(){return VM.default}});Object.defineProperty(K,"isLet",{enumerable:true,get:function(){return YM.default}});Object.defineProperty(K,"isNode",{enumerable:true,get:function(){return JM.default}});Object.defineProperty(K,"isNodesEquivalent",{enumerable:true,get:function(){return WM.default}});Object.defineProperty(K,"isPlaceholderType",{enumerable:true,get:function(){return XM.default}});Object.defineProperty(K,"isReferenced",{enumerable:true,get:function(){return $M.default}});Object.defineProperty(K,"isScope",{enumerable:true,get:function(){return HM.default}});Object.defineProperty(K,"isSpecifierDefault",{enumerable:true,get:function(){return zM.default}});Object.defineProperty(K,"isType",{enumerable:true,get:function(){return GM.default}});Object.defineProperty(K,"isValidES3Identifier",{enumerable:true,get:function(){return QM.default}});Object.defineProperty(K,"isValidIdentifier",{enumerable:true,get:function(){return ZM.default}});Object.defineProperty(K,"isVar",{enumerable:true,get:function(){return eB.default}});Object.defineProperty(K,"matchesPattern",{enumerable:true,get:function(){return tB.default}});Object.defineProperty(K,"prependToMemberExpression",{enumerable:true,get:function(){return _M.default}});K.react=void 0;Object.defineProperty(K,"removeComments",{enumerable:true,get:function(){return SM.default}});Object.defineProperty(K,"removeProperties",{enumerable:true,get:function(){return OM.default}});Object.defineProperty(K,"removePropertiesDeep",{enumerable:true,get:function(){return kM.default}});Object.defineProperty(K,"removeTypeDuplicates",{enumerable:true,get:function(){return DM.default}});Object.defineProperty(K,"shallowEqual",{enumerable:true,get:function(){return jM.default}});Object.defineProperty(K,"toBindingIdentifierName",{enumerable:true,get:function(){return xM.default}});Object.defineProperty(K,"toBlock",{enumerable:true,get:function(){return bM.default}});Object.defineProperty(K,"toComputedKey",{enumerable:true,get:function(){return EM.default}});Object.defineProperty(K,"toExpression",{enumerable:true,get:function(){return PM.default}});Object.defineProperty(K,"toIdentifier",{enumerable:true,get:function(){return AM.default}});Object.defineProperty(K,"toKeyAlias",{enumerable:true,get:function(){return vM.default}});Object.defineProperty(K,"toStatement",{enumerable:true,get:function(){return CM.default}});Object.defineProperty(K,"traverse",{enumerable:true,get:function(){return gn.default}});Object.defineProperty(K,"traverseFast",{enumerable:true,get:function(){return RM.default}});Object.defineProperty(K,"validate",{enumerable:true,get:function(){return rB.default}});Object.defineProperty(K,"valueToNode",{enumerable:true,get:function(){return IM.default}});var tM=Yp(),rM=Jp(),iM=Ff(),sM=Rf(),Yl=jf();Object.keys(Yl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Yl[e]||Object.defineProperty(K,e,{enumerable:true,get:function(){return Yl[e]}});});var nM=qf(),qh=Vf(),aM=Xf(),Jl=Fo();Object.keys(Jl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Jl[e]||Object.defineProperty(K,e,{enumerable:true,get:function(){return Jl[e]}});});var Wl=Ct();Object.keys(Wl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Wl[e]||Object.defineProperty(K,e,{enumerable:true,get:function(){return Wl[e]}});});var oM=Nr(),lM=Zf(),uM=eh(),cM=th(),pM=rh(),fM=ih(),hM=Jo(),dM=Ho(),mM=Go(),yM=tl(),TM=Zo(),SM=sh(),Xl=nh();Object.keys(Xl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Xl[e]||Object.defineProperty(K,e,{enumerable:true,get:function(){return Xl[e]}});});var $l=bi();Object.keys($l).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===$l[e]||Object.defineProperty(K,e,{enumerable:true,get:function(){return $l[e]}});});var gM=ah(),xM=oh(),bM=nl(),EM=lh(),PM=uh(),AM=ll(),vM=dh(),CM=mh(),IM=yh(),Hl=Bt();Object.keys(Hl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===Hl[e]||Object.defineProperty(K,e,{enumerable:true,get:function(){return Hl[e]}});});var wM=Th(),NM=gh(),_M=xh(),OM=dl(),kM=yl(),DM=ko(),LM=bh(),MM=hs(),BM=Eh(),FM=Ah(),gn=vh();Object.keys(gn).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===gn[e]||Object.defineProperty(K,e,{enumerable:true,get:function(){return gn[e]}});});var RM=fl(),jM=Hs(),qM=gi(),UM=Ch(),KM=wh(),VM=Nh(),YM=_l(),JM=No(),WM=Oh(),XM=Za(),$M=kh(),HM=Dh(),zM=Mh(),GM=Gs(),QM=Bh(),ZM=xi(),eB=Fh(),tB=Xa(),rB=tn(),iB=Ha(),zl=$e();Object.keys(zl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(_r,e)||e in K&&K[e]===zl[e]||Object.defineProperty(K,e,{enumerable:true,get:function(){return zl[e]}});});var sB=Si(),nB=jh();K.react={isReactComponent:tM.default,isCompatTag:rM.default,buildChildren:iM.default};K.toSequenceExpression=nB.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 Xh=C(Ee=>{Object.defineProperty(Ee,"__esModule",{value:true});Ee.AssignmentExpression=OB;Ee.BinaryExpression=AB;Ee.ClassExpression=wB;Ee.ArrowFunctionExpression=Ee.ConditionalExpression=Wh;Ee.DoExpression=mB;Ee.FunctionExpression=NB;Ee.FunctionTypeAnnotation=fB;Ee.Identifier=kB;Ee.LogicalExpression=vB;Ee.NullableTypeAnnotation=pB;Ee.ObjectExpression=dB;Ee.OptionalIndexedAccessType=TB;Ee.OptionalCallExpression=Ee.OptionalMemberExpression=_B;Ee.SequenceExpression=CB;Ee.TSSatisfiesExpression=Ee.TSAsExpression=SB;Ee.TSConditionalType=gB;Ee.TSConstructorType=Ee.TSFunctionType=PB;Ee.TSInferType=bB;Ee.TSInstantiationExpression=EB;Ee.TSIntersectionType=xB;Ee.SpreadElement=Ee.UnaryExpression=Ee.TSTypeAssertion=Jh;Ee.TSTypeOperator=Ql;Ee.TSUnionType=Yh;Ee.IntersectionTypeAnnotation=Ee.UnionTypeAnnotation=yB;Ee.UpdateExpression=hB;Ee.AwaitExpression=Ee.YieldExpression=IB;var aB=he(),ut=Or(),{isMemberExpression:oB,isOptionalMemberExpression:lB,isYieldExpression:uB,isStatement:cB}=aB,Uh=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 Kh(e){return e===156||e===201||e===209}var xn=(e,t,r)=>(r===21||r===22)&&t.superClass===e,bn=(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 true}return false};function pB(e,t,r){return r===4}function fB(e,t,r,i){return r===239||r===90||r===4||(i&ut.TokenContext.arrowFlowReturnType)>0}function hB(e,t,r){return bn(e,t,r)||xn(e,t,r)}function Vh(e){return (e&(ut.TokenContext.expressionStatement|ut.TokenContext.arrowBody))>0}function dB(e,t,r,i){return Vh(i)}function mB(e,t,r,i){return (i&ut.TokenContext.expressionStatement)>0&&!e.async}function Gl(e,t,r,i){if(xn(e,t,r)||bn(e,t,r)||r===238||r===145||r===8)return true;let s;switch(r){case 10:case 107:s=Uh.get(t.operator);break;case 156:case 201:s=7;}if(s!==void 0){let n=i===2?7:Uh.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 true}return false}function yB(e,t,r){switch(r){case 4:case 115:case 90:case 239:return true}return false}function TB(e,t,r){return r===84&&t.objectType===e}function SB(e,t,r){return (r===6||r===7)&&t.left===e||r===10&&(t.operator==="|"||t.operator==="&")&&e===t.left?true:Gl(e,t,r,2)}function gB(e,t,r){switch(r){case 155:case 195:case 211:case 212:return true;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 false}function Yh(e,t,r){switch(r){case 181:case 211:case 155:case 195:return true;case 175:return t.objectType===e}return false}function xB(e,t,r){return r===211||Ql(e,t,r)}function bB(e,t,r){return !!(Ql(e,t,r)||(r===181||r===219)&&e.typeParameter.constraint&&t.types[0]===e)}function Ql(e,t,r){switch(r){case 155:case 195:return true;case 175:if(t.objectType===e)return true}return false}function EB(e,t,r){switch(r){case 17:case 130:case 112:case 177:return t.typeParameters!=null}return false}function PB(e,t,r){return Yh(e,t,r)?true:r===219||r===161&&(t.checkType===e||t.extendsType===e)}function AB(e,t,r,i){return Gl(e,t,r,0)?true:(i&ut.TokenContext.forInOrInitHeadAccumulate)>0&&e.operator==="in"}function vB(e,t,r){return Gl(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?false:r===21?true:r===68?t.right===e:r===60?true:!cB(t)}function IB(e,t,r){return r===10||r===107||r===238||r===145||bn(e,t,r)||r===8&&uB(e)||r===28&&e===t.test||xn(e,t,r)||Kh(r)}function wB(e,t,r,i){return (i&(ut.TokenContext.expressionStatement|ut.TokenContext.exportDefault))>0}function Jh(e,t,r){return bn(e,t,r)||r===10&&t.operator==="**"&&t.left===e||xn(e,t,r)}function NB(e,t,r,i){return (i&(ut.TokenContext.expressionStatement|ut.TokenContext.exportDefault))>0}function Wh(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return true;case 28:if(t.test===e)return true}return Kh(r)?true:Jh(e,t,r)}function _B(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return false}function OB(e,t,r,i){return Vh(i)&&e.left.type==="ObjectPattern"?true:Wh(e,t,r)}function kB(e,t,r,i,s){var n;if(s&&s(e)!==e.name)return false;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 true}return (i&ut.TokenContext.forOfHead||(r===108||r===132)&&i&(ut.TokenContext.expressionStatement|ut.TokenContext.forInitHead|ut.TokenContext.forInHead))&&e.name==="let"?(oB(t,{object:e,computed:true})||lB(t,{object:e,computed:true,optional:false}))&&i&(ut.TokenContext.expressionStatement|ut.TokenContext.forInitHead|ut.TokenContext.forInHead)?true:(i&ut.TokenContext.forOfHead)>0:r===68&&t.left===e&&e.name==="async"&&!t.await}});var Zl=C(Ii=>{Object.defineProperty(Ii,"__esModule",{value:true});Ii.TaggedTemplateExpression=DB;Ii.TemplateElement=LB;Ii.TemplateLiteral=MB;Ii._printTemplate=$h;function DB(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi);}function LB(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function $h(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+"${",true),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+"`",true);}function MB(e){$h.call(this,e,e.expressions);}});var En=C(Oe=>{Object.defineProperty(Oe,"__esModule",{value:true});Oe.LogicalExpression=Oe.AssignmentExpression=oF;Oe.AssignmentPattern=aF;Oe.AwaitExpression=rF;Oe.BinaryExpression=lF;Oe.BindExpression=uF;Oe.CallExpression=eF;Oe.ConditionalExpression=JB;Oe.Decorator=GB;Oe.DoExpression=KB;Oe.EmptyStatement=sF;Oe.ExpressionStatement=nF;Oe.Import=tF;Oe.MemberExpression=cF;Oe.MetaProperty=pF;Oe.ModuleExpression=dF;Oe.NewExpression=WB;Oe.OptionalCallExpression=ZB;Oe.OptionalMemberExpression=QB;Oe.ParenthesizedExpression=VB;Oe.PrivateName=fF;Oe.SequenceExpression=XB;Oe.Super=HB;Oe.ThisExpression=$B;Oe.UnaryExpression=UB;Oe.UpdateExpression=YB;Oe.V8IntrinsicIdentifier=hF;Oe.YieldExpression=iF;Oe._shouldPrintDecoratorsBeforeExport=zB;var BB=he(),FB=Or(),{isCallExpression:RB,isLiteral:Hh,isMemberExpression:eu,isNewExpression:jB,isPattern:qB}=BB;function UB(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 KB(e){e.async&&(this.word("async",true),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,true),this._noLineTerminatorAfterNode=t,this.rightParens(e);}function YB(e){e.prefix?(this.token(e.operator,false,0,true),this.print(e.argument)):(this.print(e.argument,true),this.token(e.operator,false,0,true));}function JB(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&&!RB(t,{callee:e})&&!eu(t)&&!jB(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,true),this._noLineTerminatorAfterNode=r,this.rightParens(e);}function XB(e){this.printList(e.expressions);}function $B(){this.word("this");}function HB(){this.word("super");}function zB(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function GB(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline();}function QB(e){let{computed:t}=e,{optional:r,property:i}=e;if(this.print(e.object),!t&&eu(i))throw new TypeError("Got a MemberExpression for MemberExpression property");Hh(i)&&typeof i.value=="number"&&(t=true),r&&this.token("?."),t?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i));}function ZB(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,true),this._noLineTerminatorAfterNode=t,this.rightParens(e);}function eF(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,true),this._noLineTerminatorAfterNode=t,this.rightParens(e);}function tF(){this.word("import");}function rF(e){this.word("await"),this.space(),this.print(e.argument);}function iF(e){e.delegate?(this.word("yield",true),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",true),this.space(),this.print(e.argument)):this.word("yield");}function sF(){this.semicolon(true);}function nF(e){this.tokenContext|=FB.TokenContext.expressionStatement,this.print(e.expression),this.semicolon();}function aF(e){this.print(e.left),(e.left.type==="Identifier"||qB(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 oF(e){this.print(e.left),this.space(),this.token(e.operator,false,0,true),this.space(),this.print(e.right);}function lF(e){this.print(e.left),this.space();let{operator:t}=e;t.charCodeAt(0)===105?this.word(t):(this.token(t,false,0,true),this.setLastChar(t.charCodeAt(t.length-1))),this.space(),this.print(e.right);}function uF(e){this.print(e.object),this.token("::"),this.print(e.callee);}function cF(e){if(this.print(e.object),!e.computed&&eu(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(Hh(e.property)&&typeof e.property.value=="number"&&(t=true),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,true),this.tokenChar(93),this._noLineTerminatorAfterNode=r;}else this.tokenChar(46),this.print(e.property);}function pF(e){this.print(e.meta),this.tokenChar(46),this.print(e.property);}function fF(e){this.tokenChar(35),this.print(e.id);}function hF(e){this.tokenChar(37),this.word(e.name);}function dF(e){this.word("module",true),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 Gh=C(Ge=>{Object.defineProperty(Ge,"__esModule",{value:true});Ge.BreakStatement=CF;Ge.CatchClause=kF;Ge.ContinueStatement=IF;Ge.DebuggerStatement=MF;Ge.DoWhileStatement=vF;Ge.ForInStatement=PF;Ge.ForOfStatement=AF;Ge.ForStatement=bF;Ge.IfStatement=xF;Ge.LabeledStatement=_F;Ge.ReturnStatement=wF;Ge.SwitchCase=LF;Ge.SwitchStatement=DF;Ge.ThrowStatement=NF;Ge.TryStatement=OF;Ge.VariableDeclaration=FF;Ge.VariableDeclarator=RF;Ge.WhileStatement=EF;Ge.WithStatement=gF;var mF=he(),Zr=Or(),{isFor:yF,isIfStatement:TF,isStatement:SF}=mF;function gF(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body);}function xF(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&TF(zh(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 zh(e){let{body:t}=e;return SF(t)===false?e:zh(t)}function bF(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 EF(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body);}function PF(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 vF(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 Pn(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon();}function CF(e){this.word("break"),Pn(this,e.label);}function IF(e){this.word("continue"),Pn(this,e.label);}function wF(e){this.word("return"),Pn(this,e.argument);}function NF(e){this.word("throw"),Pn(this,e.argument);}function _F(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body);}function OF(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 kF(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 DF(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,true),this.rightBrace(e);}function LF(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,true));}function MF(){this.word("debugger"),this.semicolon();}function BF(e){this.tokenChar(44,e),this.newline();}function FF(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",true);break;default:this.word(r);}this.space();let i=false;if(!yF(t)){for(let s of e.declarations)if(s.init){i=true;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,i?BF: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 RF(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 ds=C(Rt=>{Object.defineProperty(Rt,"__esModule",{value:true});Rt.ArrowFunctionExpression=YF;Rt.FunctionDeclaration=Rt.FunctionExpression=VF;Rt._functionHead=ed;Rt._methodHead=KF;Rt._param=Zh;Rt._parameters=Qh;Rt._params=wi;Rt._predicate=tu;Rt._shouldPrintArrowParamsParens=td;var jF=he(),qF=Or(),{isIdentifier:UF}=jF;function wi(e,t,r,i){if(this.print(e.typeParameters),r!==void 0||i!==void 0){let s=JF.call(this,r,i);s&&this.sourceIdentifierName(s.name,s.pos);}this.tokenChar(40),Qh.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t;}function Qh(e,t){let r=this.enterDelimited(),i=this.shouldPrintTrailingComma(t),s=e.length;for(let n=0;n<s;n++)Zh.call(this,e[n]),(i||n<s-1)&&(this.tokenChar(44,n),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=r;}function Zh(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,true),this.print(e,void 0,true),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,true);}function KF(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",true),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,false,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key):wi.call(this,e,false);}function tu(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t));}function ed(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,false,e.id,t):wi.call(this,e,false),r&&tu.call(this,e);}function VF(e,t){ed.call(this,e,t,true),this.space(),this.print(e.body);}function YF(e,t){e.async&&(this.word("async",true),this.space()),td.call(this,e)?wi.call(this,e,true,void 0,this._buf._map?t:void 0):this.print(e.params[0],true),tu.call(this,e,true),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=qF.TokenContext.arrowBody,this.print(e.body);}function td(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return true;let i=e.params[0];if(!UF(i)||i.typeAnnotation||i.optional||(t=i.leadingComments)!=null&&t.length||(r=i.trailingComments)!=null&&r.length)return true;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return true;let s=this.tokenMap.findMatching(e,"=>");return s?.loc==null?true:s.loc.start.line!==e.loc.start.line}return !!this.format.retainLines}function JF(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 iu=C(z=>{Object.defineProperty(z,"__esModule",{value:true});z.TSAnyKeyword=a3;z.TSArrayType=C3;z.TSAsExpression=J3;z.TSBigIntKeyword=o3;z.TSBooleanKeyword=p3;z.TSCallSignatureDeclaration=t3;z.TSInterfaceHeritage=z.TSClassImplements=U3;z.TSConditionalType=D3;z.TSConstructSignatureDeclaration=r3;z.TSConstructorType=b3;z.TSDeclareFunction=QF;z.TSDeclareMethod=ZF;z.TSEnumBody=od;z.TSEnumDeclaration=H3;z.TSEnumMember=z3;z.TSExportAssignment=iR;z.TSExternalModuleReference=tR;z.TSFunctionType=x3;z.TSImportEqualsDeclaration=eR;z.TSImportType=Z3;z.TSIndexSignature=n3;z.TSIndexedAccessType=F3;z.TSInferType=L3;z.TSInstantiationExpression=$3;z.TSInterfaceBody=V3;z.TSInterfaceDeclaration=K3;z.TSIntersectionType=k3;z.TSIntrinsicKeyword=S3;z.TSLiteralType=q3;z.TSMappedType=R3;z.TSMethodSignature=s3;z.TSModuleBlock=Q3;z.TSModuleDeclaration=G3;z.TSNamedTupleMember=_3;z.TSNamespaceExportDeclaration=sR;z.TSNeverKeyword=T3;z.TSNonNullExpression=rR;z.TSNullKeyword=y3;z.TSNumberKeyword=u3;z.TSObjectKeyword=c3;z.TSOptionalType=w3;z.TSParameterProperty=GF;z.TSParenthesizedType=M3;z.TSPropertySignature=i3;z.TSQualifiedName=e3;z.TSRestType=N3;z.TSSatisfiesExpression=W3;z.TSStringKeyword=f3;z.TSSymbolKeyword=h3;z.TSTemplateLiteralType=j3;z.TSThisType=g3;z.TSTupleType=I3;z.TSTypeAliasDeclaration=Y3;z.TSTypeAnnotation=$F;z.TSTypeAssertion=X3;z.TSTypeLiteral=v3;z.TSTypeOperator=B3;z.TSTypeParameter=zF;z.TSTypeParameterDeclaration=z.TSTypeParameterInstantiation=HF;z.TSTypePredicate=P3;z.TSTypeQuery=A3;z.TSTypeReference=E3;z.TSUndefinedKeyword=m3;z.TSUnionType=O3;z.TSUnknownKeyword=l3;z.TSVoidKeyword=d3;z._tsPrintClassMemberModifiers=nR;var ms=ds(),WF=su(),XF=Zl();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 HF(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 zF(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 GF(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),ms._param.call(this,e.parameter);}function QF(e,t){e.declare&&(this.word("declare"),this.space()),ms._functionHead.call(this,e,t,false),this.semicolon();}function ZF(e){WF._classMethodHead.call(this,e),this.semicolon();}function e3(e){this.print(e.left),this.tokenChar(46),this.print(e.right);}function t3(e){ru.call(this,e),ys(this,e);}function ys(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 r3(e){this.word("new"),this.space(),ru.call(this,e),ys(this,e);}function i3(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),sd.call(this,e),this.print(e.typeAnnotation),ys(this,e);}function sd(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63);}function s3(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),sd.call(this,e),ru.call(this,e),ys(this,e);}function n3(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),ms._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),ys(this,e);}function a3(){this.word("any");}function o3(){this.word("bigint");}function l3(){this.word("unknown");}function u3(){this.word("number");}function c3(){this.word("object");}function p3(){this.word("boolean");}function f3(){this.word("string");}function h3(){this.word("symbol");}function d3(){this.word("void");}function m3(){this.word("undefined");}function y3(){this.word("null");}function T3(){this.word("never");}function S3(){this.word("intrinsic");}function g3(){this.word("this");}function x3(e){nd.call(this,e);}function b3(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),nd.call(this,e);}function nd(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),ms._parameters.call(this,r,41),this.space();let i=e.typeAnnotation;this.print(i);}function E3(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t);}function P3(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 v3(e){An(this,e,()=>this.printJoin(e.members,true,true,void 0,void 0,true));}function C3(e){this.print(e.elementType,true),this.tokenChar(91),this.tokenChar(93);}function I3(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93);}function w3(e){this.print(e.typeAnnotation),this.tokenChar(63);}function N3(e){this.token("..."),this.print(e.typeAnnotation);}function _3(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType);}function O3(e){ad(this,e,"|");}function k3(e){ad(this,e,"&");}function ad(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 D3(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 L3(e){this.word("infer"),this.print(e.typeParameter);}function M3(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41);}function B3(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation);}function F3(e){this.print(e.objectType,true),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93);}function R3(e){let{nameType:t,optional:r,readonly:i,typeAnnotation:s}=e;this.tokenChar(123);let n=this.enterDelimited();this.space(),i&&(rd(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,true),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,true)),this.tokenChar(93),r&&(rd(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s,void 0,true)),this.space(),this._noLineTerminatorAfterNode=n,this.tokenChar(125);}function rd(e,t){t!==true&&e.token(t);}function j3(e){XF._printTemplate.call(this,e,e.types);}function q3(e){this.print(e.literal);}function U3(e){this.print(e.expression),this.print(e.typeArguments);}function K3(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){An(this,e,()=>this.printJoin(e.body,true,true,void 0,void 0,true));}function Y3(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 J3(e){let{expression:t,typeAnnotation:r}=e;this.print(t,true),this.space(),this.word("as"),this.space(),this.print(r);}function W3(e){let{expression:t,typeAnnotation:r}=e;this.print(t,true),this.space(),this.word("satisfies"),this.space(),this.print(r);}function X3(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 H3(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(),od.call(this,e);}function od(e){An(this,e,()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:true,true,true,void 0,true)});}function z3(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r));}function G3(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 Q3(e){An(this,e,()=>this.printSequence(e.body,true,true));}function Z3(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 eR(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 tR(e){this.token("require("),this.print(e.expression),this.tokenChar(41);}function rR(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33);}function iR(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon();}function sR(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon();}function ru(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),ms._parameters.call(this,r,41);let i=e.typeAnnotation;this.print(i);}function nR(e){let t=e.type==="ClassPrivateProperty",r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";id(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),id(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"]);}function An(e,t,r){e.token("{");let i=e.enterDelimited();r(),e._noLineTerminatorAfterNode=i,e.rightBrace(t);}function id(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):false);for(let n of s)e.word(n),e.space();}});var nu=C(St=>{Object.defineProperty(St,"__esModule",{value:true});St.ExportAllDeclaration=gR;St.ExportDefaultDeclaration=bR;St.ExportDefaultSpecifier=yR;St.ExportNamedDeclaration=xR;St.ExportNamespaceSpecifier=SR;St.ExportSpecifier=TR;St.ImportAttribute=PR;St.ImportDeclaration=ER;St.ImportDefaultSpecifier=mR;St.ImportExpression=vR;St.ImportNamespaceSpecifier=AR;St.ImportSpecifier=dR;St._printAttributes=vn;var aR=he(),oR=Or(),lR=En(),{isClassDeclaration:uR,isExportDefaultSpecifier:cR,isExportNamespaceSpecifier:pR,isImportDefaultSpecifier:fR,isImportNamespaceSpecifier:hR,isStatement:ud}=aR;function dR(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 mR(e){this.print(e.local);}function yR(e){this.print(e.exported);}function TR(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 SR(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported);}var ld=false;function vn(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)&&!ld&&(ld=true,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 gR(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,true),this.space(),vn.call(this,e,false)):this.print(e.source),this.semicolon();}function cd(e,t){uR(t.declaration)&&lR._shouldPrintDecoratorsBeforeExport.call(e,t)&&e.printJoin(t.declaration.decorators);}function xR(e){if(cd(this,e),this.word("export"),this.space(),e.declaration){let i=e.declaration;this.print(i),ud(i)||this.semicolon();}else {e.exportKind==="type"&&(this.word("type"),this.space());let i=e.specifiers.slice(0),s=false;for(;;){let a=i[0];if(cR(a)||pR(a))s=true,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}let n=false;if((i.length||!i.length&&!s)&&(n=true,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,true),this.space(),vn.call(this,e,n)):this.print(e.source);}this.semicolon();}}function bR(e){cd(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=oR.TokenContext.exportDefault;let t=e.declaration;this.print(t),ud(t)||this.semicolon();}function ER(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(fR(o)||hR(o))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=false;s.length?(a=true,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!n&&(a=true,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,true),this.space(),vn.call(this,e,a)):this.print(e.source),this.semicolon();}function PR(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value);}function AR(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local);}function vR(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 dd=C((dee,hd)=>{var pd={},CR=pd.hasOwnProperty,fd=(e,t)=>{for(let r in e)CR.call(e,r)&&t(r,e[r]);},IR=(e,t)=>(t&&fd(t,(r,i)=>{e[r]=i;}),e),wR=(e,t)=>{let r=e.length,i=-1;for(;++i<r;)t(e[i]);},Cn=e=>"\\u"+("0000"+e).slice(-4),Ts=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},Ss=pd.toString,NR=Array.isArray,_R=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),OR=e=>Ss.call(e)=="[object Object]",kR=e=>typeof e=="string"||Ss.call(e)=="[object String]",DR=e=>typeof e=="number"||Ss.call(e)=="[object Number]",au=e=>typeof e=="bigint",LR=e=>typeof e=="function",MR=e=>Ss.call(e)=="[object Map]",BR=e=>Ss.call(e)=="[object Set]",FR={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},RR=/[\\\b\f\n\r\t]/,jR=/[0-9]/,qR=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,UR=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,KR=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,kr=(e,t)=>{let r=()=>{c=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel);},i={escapeEverything:false,minimal:false,isScriptContext:false,quotes:"single",wrap:false,es6:false,json:false,compact:true,lowercaseHex:false,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:false,__inline2__:false},s=t&&t.json;s&&(i.quotes="double",i.wrap=true),t=IR(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),c="",f=t.__inline1__,g=t.__inline2__,E=a?"":`
12
- `,A,v=true,O=t.numbers=="binary",w=t.numbers=="octal",_=t.numbers=="decimal",L=t.numbers=="hexadecimal";if(s&&e&&LR(e.toJSON)&&(e=e.toJSON()),!kR(e)){if(MR(e))return e.size==0?"new Map()":(a||(t.__inline1__=true,t.__inline2__=false),"new Map("+kr(Array.from(e),t)+")");if(BR(e))return e.size==0?"new Set()":"new Set("+kr(Array.from(e),t)+")";if(_R(e))return e.length==0?"Buffer.from([])":"Buffer.from("+kr(Array.from(e),t)+")";if(NR(e))return A=[],t.wrap=true,f&&(t.__inline1__=false,t.__inline2__=true),g||r(),wR(e,W=>{v=false,g&&(t.__inline2__=false),A.push((a||g?"":l)+kr(W,t));}),v?"[]":g?"["+A.join(", ")+"]":"["+E+A.join(","+E)+E+(a?"":c)+"]";if(DR(e)||au(e)){if(s)return JSON.stringify(Number(e));let W;if(_)W=String(e);else if(L){let J=e.toString(16);o||(J=J.toUpperCase()),W="0x"+J;}else O?W="0b"+e.toString(2):w&&(W="0o"+e.toString(8));return au(e)?W+"n":W}else return au(e)?s?JSON.stringify(Number(e)):e+"n":OR(e)?(A=[],t.wrap=true,r(),fd(e,(W,J)=>{v=false,A.push((a?"":l)+kr(W,t)+":"+(a?"":" ")+kr(J,t));}),v?"{}":"{"+E+A.join(","+E)+E+(a?"":c)+"}"):s?JSON.stringify(e)||"null":String(e)}let ee=t.escapeEverything?UR:KR;return A=e.replace(ee,(W,J,ue,Ce,Be,Ze)=>{if(J){if(t.minimal)return J;let At=J.charCodeAt(0),Nt=J.charCodeAt(1);if(t.es6){let kt=(At-55296)*1024+Nt-56320+65536;return "\\u{"+Ts(kt,o)+"}"}return Cn(Ts(At,o))+Cn(Ts(Nt,o))}if(ue)return Cn(Ts(ue.charCodeAt(0),o));if(W=="\0"&&!s&&!jR.test(Ze.charAt(Be+1)))return "\\0";if(Ce)return Ce==n||t.escapeEverything?"\\"+Ce:Ce;if(RR.test(W))return FR[W];if(t.minimal&&!qR.test(W))return W;let Pt=Ts(W.charCodeAt(0),o);return s||Pt.length>2?Cn(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};kr.version="3.0.2";hd.exports=kr;});var wn=C(We=>{Object.defineProperty(We,"__esModule",{value:true});We.ArgumentPlaceholder=$R;We.ArrayPattern=We.ArrayExpression=ZR;We.BigIntLiteral=nj;We.BooleanLiteral=tj;We.Identifier=XR;We.NullLiteral=rj;We.NumericLiteral=ij;We.ObjectPattern=We.ObjectExpression=zR;We.ObjectMethod=GR;We.ObjectProperty=QR;We.PipelineBareFunction=lj;We.PipelinePrimaryTopicReference=uj;We.PipelineTopicExpression=oj;We.RegExpLiteral=ej;We.SpreadElement=We.RestElement=HR;We.StringLiteral=sj;We.TopicReference=aj;We.VoidPattern=cj;We._getRawIdentifier=WR;var VR=he(),yd=dd(),YR=ds(),{isAssignmentPattern:JR,isIdentifier:ou}=VR,In="";function WR(e){let{name:t}=e,r=this.tokenMap.find(e,i=>i.value===t);return r?(In=this._originalCode.slice(r.start,r.end),In):In=e.name}function XR(e){if(this._buf._map){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name);}this.word(this.tokenMap?In:e.name);}function $R(){this.tokenChar(63);}function HR(e){this.token("..."),this.print(e.argument);}function zR(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),true,true,void 0,true),this.space(),this._noLineTerminatorAfterNode=r;}this.rightBrace(e);}function GR(e){this.printJoin(e.decorators),YR._methodHead.call(this,e),this.space(),this.print(e.body);}function QR(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else {if(JR(e.value)&&ou(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&ou(e.key)&&ou(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value);}function ZR(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,true),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,s)):this.tokenChar(44,s);}this._noLineTerminatorAfterNode=i,this.tokenChar(93);}function ej(e){this.word(`/${e.pattern}/${e.flags}`,false);}function tj(e){this.word(e.value?"true":"false");}function rj(){this.word("null");}function ij(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value,s=i+"";r.numbers?this.number(yd(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 sj(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=yd(e.value,this.format.jsescOption);this.token(r);}function nj(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n");}var md=new Set(["^^","@@","^","%","#"]);function aj(){let{topicToken:e}=this.format;if(md.has(e))this.token(e);else {let t=JSON.stringify(e),r=Array.from(md,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function oj(e){this.print(e.expression);}function lj(e){this.print(e.callee);}function uj(){this.tokenChar(35);}function cj(){this.word("void");}});var cu=C(G=>{Object.defineProperty(G,"__esModule",{value:true});G.AnyTypeAnnotation=mj;G.ArrayTypeAnnotation=yj;G.BooleanLiteralTypeAnnotation=Sj;G.BooleanTypeAnnotation=Tj;G.DeclareClass=xj;G.DeclareExportAllDeclaration=Oj;G.DeclareExportDeclaration=_j;G.DeclareFunction=bj;G.DeclareInterface=Aj;G.DeclareModule=vj;G.DeclareModuleExports=Cj;G.DeclareOpaqueType=wj;G.DeclareTypeAlias=Ij;G.DeclareVariable=Nj;G.DeclaredPredicate=Pj;G.EmptyTypeAnnotation=zj;G.EnumBooleanBody=Dj;G.EnumBooleanMember=Rj;G.EnumDeclaration=kj;G.EnumDefaultedMember=Fj;G.EnumNumberBody=Lj;G.EnumNumberMember=jj;G.EnumStringBody=Mj;G.EnumStringMember=qj;G.EnumSymbolBody=Bj;G.ExistsTypeAnnotation=Kj;G.FunctionTypeAnnotation=Vj;G.FunctionTypeParam=Yj;G.IndexedAccessType=g4;G.InferredPredicate=Ej;G.InterfaceDeclaration=Sd;G.GenericTypeAnnotation=G.ClassImplements=G.InterfaceExtends=Jj;G.InterfaceTypeAnnotation=Xj;G.IntersectionTypeAnnotation=$j;G.MixedTypeAnnotation=Hj;G.NullLiteralTypeAnnotation=gj;G.NullableTypeAnnotation=Gj;Object.defineProperty(G,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return Td.NumericLiteral}});G.NumberTypeAnnotation=Qj;G.ObjectTypeAnnotation=a4;G.ObjectTypeCallProperty=l4;G.ObjectTypeIndexer=u4;G.ObjectTypeInternalSlot=o4;G.ObjectTypeProperty=c4;G.ObjectTypeSpreadProperty=p4;G.OpaqueType=xd;G.OptionalIndexedAccessType=x4;G.QualifiedTypeIdentifier=f4;Object.defineProperty(G,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return Td.StringLiteral}});G.StringTypeAnnotation=Zj;G.SymbolTypeAnnotation=h4;G.ThisTypeAnnotation=e4;G.TupleTypeAnnotation=t4;G.TypeAlias=gd;G.TypeAnnotation=i4;G.TypeCastExpression=y4;G.TypeParameter=n4;G.TypeParameterDeclaration=G.TypeParameterInstantiation=s4;G.TypeofTypeAnnotation=r4;G.UnionTypeAnnotation=m4;G.Variance=T4;G.VoidTypeAnnotation=S4;G._interfaceish=uu;G._variance=kn;var pj=he(),fj=nu(),hj=Or(),Td=wn(),{isDeclareExportDeclaration:Nn,isStatement:dj}=pj;function mj(){this.word("any");}function yj(e){this.print(e.elementType,true),this.tokenChar(91),this.tokenChar(93);}function Tj(){this.word("boolean");}function Sj(e){this.word(e.value?"true":"false");}function gj(){this.word("null");}function xj(e,t){Nn(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),uu.call(this,e);}function bj(e,t){Nn(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 Ej(){this.tokenChar(37),this.word("checks");}function Pj(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41);}function Aj(e){this.word("declare"),this.space(),Sd.call(this,e);}function vj(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body);}function Cj(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation);}function Ij(e){this.word("declare"),this.space(),gd.call(this,e);}function wj(e,t){Nn(t)||(this.word("declare"),this.space()),xd.call(this,e);}function Nj(e,t){Nn(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon();}function _j(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),Uj.call(this,e);}function Oj(e){this.word("declare"),this.space(),fj.ExportAllDeclaration.call(this,e);}function kj(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r);}function _n(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space();}function On(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 Dj(e){let{explicitType:t}=e;_n(this,"boolean",t),On(this,e);}function Lj(e){let{explicitType:t}=e;_n(this,"number",t),On(this,e);}function Mj(e){let{explicitType:t}=e;_n(this,"string",t),On(this,e);}function Bj(e){_n(this,"symbol",true),On(this,e);}function Fj(e){let{id:t}=e;this.print(t),this.tokenChar(44);}function lu(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",");}function Rj(e){lu(this,e);}function jj(e){lu(this,e);}function qj(e){lu(this,e);}function Uj(e){if(e.declaration){let t=e.declaration;this.print(t),dj(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 Kj(){this.tokenChar(42);}function Vj(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 Yj(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation);}function Jj(e){this.print(e.id),this.print(e.typeParameters,true);}function uu(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 kn(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(),uu.call(this,e);}function Wj(e){this.space(),this.token("&",false,e),this.space();}function Xj(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 $j(e){this.printJoin(e.types,void 0,void 0,Wj);}function Hj(){this.word("mixed");}function zj(){this.word("empty");}function Gj(e){this.tokenChar(63),this.print(e.typeAnnotation);}function Qj(){this.word("number");}function Zj(){this.word("string");}function e4(){this.word("this");}function t4(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93);}function r4(e){this.word("typeof"),this.space(),this.print(e.argument);}function gd(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 i4(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 s4(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62);}function n4(e){kn.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 xd(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 a4(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,true,true,()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space());},true),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125);}function o4(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 l4(e){e.static&&(this.word("static"),this.space()),this.print(e.value);}function u4(e){e.static&&(this.word("static"),this.space()),kn.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 c4(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()),kn.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value);}function p4(e){this.token("..."),this.print(e.argument);}function f4(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id);}function h4(){this.word("symbol");}function d4(e){this.space(),this.token("|",false,e),this.space();}function m4(e){this.printJoin(e.types,void 0,void 0,d4);}function y4(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 S4(){this.word("void");}function g4(e){this.print(e.objectType,true),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93);}function x4(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93);}});var su=C(jt=>{Object.defineProperty(jt,"__esModule",{value:true});jt.ClassAccessorProperty=_4;jt.ClassBody=I4;jt.ClassExpression=jt.ClassDeclaration=C4;jt.ClassMethod=k4;jt.ClassPrivateMethod=D4;jt.ClassPrivateProperty=O4;jt.ClassProperty=N4;jt.StaticBlock=L4;jt._classMethodHead=pu;var b4=he(),E4=En(),Dn=iu(),bd=cu(),P4=ds(),{isExportDefaultDeclaration:A4,isExportNamedDeclaration:v4}=b4;function C4(e,t){(!(A4(t)||v4(t))||!E4._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 I4(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else {let t=w4(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,true,true,t,true,true),this._noLineTerminatorAfterNode=r,this.endsWith(10)||this.newline(),this.rightBrace(e);}}function w4(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,c;for(;i<r.length&&e.tokenMap.matchesOriginal(c=e._tokens[r[i]],";")&&c.start<l;)e.tokenChar(59,s++),i++;}}function N4(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);}Dn._tsPrintClassMemberModifiers.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(bd._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 _4(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),Dn._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",true),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(bd._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 O4(e){this.printJoin(e.decorators),Dn._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 k4(e){pu.call(this,e),this.space(),this.print(e.body);}function D4(e){pu.call(this,e),this.space(),this.print(e.body);}function pu(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);}Dn._tsPrintClassMemberModifiers.call(this,e),P4._methodHead.call(this,e);}function L4(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,true),this.rightBrace(e));}});var Ed=C(gr=>{Object.defineProperty(gr,"__esModule",{value:true});gr.BlockStatement=F4;gr.Directive=R4;gr.DirectiveLiteral=U4;gr.File=M4;gr.InterpreterDirective=K4;gr.Placeholder=V4;gr.Program=B4;function M4(e){e.program&&this.print(e.program.interpreter),this.print(e.program);}function B4(e){var t;this.printInnerComments(false);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 F4(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,true,true,n),(s=e.directives[i-1].trailingComments)!=null&&s.length||this.newline(n);}this.printSequence(e.body,true,true),this._noLineTerminatorAfterNode=r,this.rightBrace(e);}function R4(e){this.print(e.value),this.semicolon();}var j4=/(?:^|[^\\])(?:\\\\)*'/,q4=/(?:^|[^\\])(?:\\\\)*"/;function U4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!q4.test(r))this.token(`"${r}"`);else if(!j4.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 K4(e){this.token(`#!${e.value}`),this._newline();}function V4(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon();}});var Pd=C(ct=>{Object.defineProperty(ct,"__esModule",{value:true});ct.JSXAttribute=Y4;ct.JSXClosingElement=t8;ct.JSXClosingFragment=n8;ct.JSXElement=Q4;ct.JSXEmptyExpression=r8;ct.JSXExpressionContainer=H4;ct.JSXFragment=i8;ct.JSXIdentifier=J4;ct.JSXMemberExpression=X4;ct.JSXNamespacedName=W4;ct.JSXOpeningElement=e8;ct.JSXOpeningFragment=s8;ct.JSXSpreadAttribute=$4;ct.JSXSpreadChild=z4;ct.JSXText=G4;function Y4(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value));}function J4(e){this.word(e.name);}function W4(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name);}function X4(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 H4(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e);}function z4(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e);}function G4(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,true):this.token(e.value,true);}function Q4(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 Z4(){this.space();}function e8(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,Z4)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62);}function t8(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62);}function r8(){this.printInnerComments();}function i8(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment);}function s8(){this.tokenChar(60),this.tokenChar(62);}function n8(){this.token("</"),this.tokenChar(62);}});var Ad=C(Pe=>{Object.defineProperty(Pe,"__esModule",{value:true});var fu=Zl();Object.keys(fu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===fu[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return fu[e]}});});var hu=En();Object.keys(hu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===hu[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return hu[e]}});});var du=Gh();Object.keys(du).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===du[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return du[e]}});});var mu=su();Object.keys(mu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===mu[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return mu[e]}});});var yu=ds();Object.keys(yu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===yu[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return yu[e]}});});var Tu=nu();Object.keys(Tu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Tu[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return Tu[e]}});});var Su=wn();Object.keys(Su).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Su[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return Su[e]}});});var gu=cu();Object.keys(gu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===gu[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return gu[e]}});});var xu=Ed();Object.keys(xu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===xu[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return xu[e]}});});var bu=Pd();Object.keys(bu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===bu[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return bu[e]}});});var Eu=iu();Object.keys(Eu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Eu[e]||Object.defineProperty(Pe,e,{enumerable:true,get:function(){return Eu[e]}});});});var vd=C(ei=>{Object.defineProperty(ei,"__esModule",{value:true});ei.DecimalLiteral=l8;ei.Noop=a8;ei.RecordExpression=u8;ei.TSExpressionWithTypeArguments=o8;ei.TupleExpression=c8;function a8(){}function o8(e){this.print(e.expression),this.print(e.typeParameters);}function l8(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m");}function u8(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),true,true),this.space()),this.token(i);}function c8(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(",",false,n));}this.token(s);}});var Pu=C(Ln=>{Object.defineProperty(Ln,"__esModule",{value:true});Ln.generatorInfosMap=void 0;var Cd=Ad(),Id=vd(),wd=Ln.generatorInfosMap=new Map,Nd=0;for(let e of Object.keys(Cd).sort())e.startsWith("_")||wd.set(e,[Cd[e],Nd++,void 0]);for(let e of Object.keys(Id))wd.set(e,[Id[e],Nd++,void 0]);});var Or=C(Ni=>{Object.defineProperty(Ni,"__esModule",{value:true});Ni.TokenContext=void 0;Ni.isLastChild=d8;Ni.parentNeedsParens=h8;var _d=Xh(),p8=he(),Od=Pu(),{VISITOR_KEYS:f8}=p8;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(_d)){let t=_d[e];Od.generatorInfosMap.has(e)&&(Od.generatorInfosMap.get(e)[2]=t);}function kd(e){switch(e.type){case "CallExpression":return true;case "MemberExpression":return kd(e.object)}return false}function h8(e,t,r){switch(r){case 112:if(t.callee===e&&kd(e))return true;break;case 42:return !Au(e)&&!(e.type==="CallExpression"&&Au(e.callee))&&e.type!=="ParenthesizedExpression"}return false}function Au(e){switch(e.type){case "Identifier":return true;case "MemberExpression":return !e.computed&&e.property.type==="Identifier"&&Au(e.object);default:return false}}function d8(e,t){let r=f8[e.type];for(let i=r.length-1;i>=0;i--){let s=e[r[i]];if(s===t)return true;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 false}return false}});var Dd=C(Mn=>{Object.defineProperty(Mn,"__esModule",{value:true});Mn.TokenMap=void 0;var m8=he(),{traverseFast:y8,VISITOR_KEYS:T8}=m8,vu=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,y8(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?false:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return false;let s=this._tokens[i[0]];return s.start!==t.start?false:this.matchesOriginal(s,r)}endMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return false;let s=this._tokens[i[i.length-1]];return s.end!==t.end?false: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=S8(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 c=this._findTokensOfNode(l,n,s),f=c.first;for(let g=n;g<f;g++)o.push(g);n=c.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}};Mn.TokenMap=vu;function*S8(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 Bd=C(Bn=>{Object.defineProperty(Bn,"__esModule",{value:true});Bn.default=void 0;var g8=qp(),Dr=Or(),x8=Pu(),b8=he(),E8=Dd(),P8=wn(),{isExpression:A8,isFunction:v8,isStatement:C8,isClassBody:I8,isTSInterfaceBody:w8,isTSEnumMember:N8}=b8,_8=/e/i,O8=/\.0+$/,Md=/[\n\r\u2028\u2029]/,k8=/[\n\r\u2028\u2029]|\*\//;function Ld(e){return e.type==="CommentLine"||Md.test(e.value)}var Cu=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=false,this._noLineTerminator=false,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=false,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 g8.default(r,t.indent.style[0]);let{preserveFormat:n,compact:a,concise:o,retainLines:l,retainFunctionParens:c}=t;n&&(this._flags|=1),a&&(this._flags|=2),o&&(this._flags|=4),l&&(this._flags|=8),c&&(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 E8.TokenMap(t,this._tokens,this._originalCode),this._boundGetRawIdentifier=P8._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=false){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=false;}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=false){if(!(this._flags&3))if(t)this._space();else {let r=this.getLastChar(true);r!==0&&r!==32&&r!==10&&this._space();}}word(t,r=false){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,false),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 false}this.word(t),Number.isInteger(r)&&!i(t)&&!_8.test(t)&&!O8.test(t)&&t.charCodeAt(t.length-1)!==46&&this.setLastChar(-2);}token(t,r=false,i=0,s=false){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=false;}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=false;}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(true)===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,true);}_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,true),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,false);}_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._append(a,false),this.setLastChar(32);}}printTerminatorless(t){this._noLineTerminator=true,this.print(t);}print(t,r=false,i=false,s){var n,a;if(!t)return;this._innerCommentsState=0;let{type:o,loc:l,extra:c}=t,f=this._flags,g=false;t._compact&&(this._flags|=4,g=true);let E=x8.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,w=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 ee=0;i&&(ee=this.tokenContext,ee&Dr.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:ee=0);let W=c!=null&&c.parenthesized,J=W&&f&1||W&&f&16&&v===71||w&&((0, Dr.parentNeedsParens)(t,w,_)||O!=null&&O(t,w,_,this.tokenContext,f&1?this._boundGetRawIdentifier:void 0));if(!J&&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(w.callee!==t)break;default:J=true;}let ue=false;!J&&this._noLineTerminator&&((a=t.leadingComments)!=null&&a.some(Ld)||f&8&&l&&l.start.line>this._buf.getCurrentLine())&&(J=true,ue=true);let Ce;if(!J&&(r||(r=!!w&&this._noLineTerminatorAfterNode===w&&(0, Dr.isLastChild)(w,t)),r)){var Be;(Be=t.trailingComments)!=null&&Be.some(Ld)?A8(t)&&(J=true):(Ce=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=t);}J&&(this.tokenChar(40),ue&&this.indent(),this._innerCommentsState=0,i||(ee=this.tokenContext),ee&Dr.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),Ce=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(t,w),this.exactSource(v===139||v===66?null:l,A.bind(this,t,w)),J?(this._printTrailingComments(t,w),ue&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r):r&&!this._noLineTerminator?(this._noLineTerminator=true,this._printTrailingComments(t,w)):this._printTrailingComments(t,w,s),ee&&(this.tokenContext=ee),this._currentNode=w,this._currentTypeId=_,g&&(this._flags=f),f&32&&(this._insideAux=L),Ce!=null&&(this._noLineTerminatorAfterNode=Ce),this._innerCommentsState=0;}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment();}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=true;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0);}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=false;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 c;let E=(c=t[0].loc)==null?void 0:c.start.line;E!=null&&E!==this._buf.getCurrentLine()&&(i=true);}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,false,a,o||0),s!=null&&(E<f-1?s.call(this,E,false):n&&s.call(this,E,true)),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=true,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,true,r??false,void 0,void 0,i,s);}printList(t,r,i,s,n,a){this.printJoin(t,i,s,n??D8,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&&k8.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(true)){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 c=new RegExp("\\n\\s{1,"+l+"}","g");a=a.replace(c,`
13
- `);}if(this._flags&4)a=a.replace(/\n(?!$)/g,`
14
- `);else {let c=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent()||this.format.retainLines)&&(c+=this._indent),a=a.replace(/\n(?!$)/g,`
15
- ${" ".repeat(c)}`);}}}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,c=!!o,f=c?o.start.line:0,g=c?o.end.line:0,E=0,A=0,{_noLineTerminator:v,_flags:O}=this;for(let w=0;w<l;w++){let _=r[w],L=this._shouldPrintComment(_,a);if(L===2)return w===0?0:1;if(c&&_.loc&&L===1){let ee=_.loc.start.line,W=_.loc.end.line;if(t===0){let J=0;if(w===0?this._buf.hasContent()&&(_.type==="CommentLine"||ee!==W)&&(J=A=1):J=ee-E,E=W,J>0&&!v&&this.newline(J,O),this._printComment(_,1),w+1===l){let ue=Math.max(f-E,A);ue>0&&!v&&this.newline(ue,O),E=f;}}else if(t===1){let J=ee-(w===0?f:E);if(E=W,J>0&&!v&&this.newline(J,O),this._printComment(_,1),w+1===l){let ue=Math.min(1,g-E);ue>0&&!v&&this.newline(ue,O),E=g;}}else {let J=ee-(w===0?g-n:E);E=W,J>0&&!v&&this.newline(J,O),this._printComment(_,1);}}else {if(c=false,L!==1)continue;if(l===1){let ee=_.loc?_.loc.start.line===_.loc.end.line:!Md.test(_.value),W=ee&&!C8(i)&&!I8(s)&&!w8(s)&&!N8(i);t===0?this._printComment(_,W&&i.type!=="ObjectExpression"||ee&&v8(s)&&s.body===i?1:0):W&&t===2?this._printComment(_,1):this._printComment(_,0);}else t===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(_,w===0?2:w===l-1?3:0):this._printComment(_,0);}}return t===2&&c&&E&&(this._lastCommentLine=E),2}};Bn.default=Cu;function D8(e,t){this.tokenChar(44,e),t||this.space();}});var Iu=C(_i=>{Object.defineProperty(_i,"__esModule",{value:true});_i.default=void 0;_i.generate=qd;var Fd=Rp(),Rd=Bd();function jd(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:true,style:" "},jsescOption:Object.assign({quotes:"double",wrap:true,minimal:false},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=true,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=false);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=jd(i,r,t),this._map=r.sourceMaps?new Fd.default(r,i):null;}generate(){return new Rd.default(this._format,this._map).generate(this._ast)}};function qd(e,t={},r){let i=jd(r,t,e),s=t.sourceMaps?new Fd.default(t,r):null;return new Rd.default(i,s,e.tokens,typeof r=="string"?r:null).generate(e)}_i.default=qd;});var Wn=C(ws=>{Object.defineProperty(ws,"__esModule",{value:true});function L8(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 lr=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 xt(e,t){let{line:r,column:i,index:s}=e;return new lr(r,i+t,s+t)}var Ud="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",M8={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Ud},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Ud}},Kd={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"},jn=e=>e.type==="UpdateExpression"?Kd.UpdateExpression[`${e.prefix}`]:Kd[e.type],B8={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\`.
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.
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 ${jn(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${jn(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${jn(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."},F8={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."},R8={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)}\`.`},j8=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),q8=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 ${jn({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.'}),U8=["message"];function Vd(e,t,r){Object.defineProperty(e,t,{enumerable:false,configurable:true,value:r});}function K8({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 c=new SyntaxError;return c.code=t,c.reasonCode=r,c.loc=o,c.pos=o.index,c.syntaxPlugin=i,s&&(c.missingPlugin=l.missingPlugin),Vd(c,"clone",function(g={}){var E;let{line:A,column:v,index:O}=(E=g.loc)!=null?E:o;return a(new lr(A,v,O),Object.assign({},l,g.details))}),Vd(c,"details",l),Object.defineProperty(c,"message",{configurable:true,get(){let f=`${e(l)} (${o.line}:${o.column})`;return this.message=f,f},set(f){Object.defineProperty(this,"message",{value:f,writable:true});}}),c}}function ar(e,t){if(Array.isArray(e))return i=>ar(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=L8(n,U8),l=typeof a=="string"?()=>a:a;r[i]=K8(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},t?{syntaxPlugin:t}:{},o));}return r}var b=Object.assign({},ar(M8),ar(B8),ar(F8),ar(R8),ar`pipelineOperator`(q8));function V8(){return {sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:false,allowReturnOutsideFunction:false,allowNewTargetOutsideFunction:false,allowImportExportEverywhere:false,allowSuperOutsideMethod:false,allowUndeclaredExports:false,allowYieldOutsideFunction:false,plugins:[],strictMode:void 0,ranges:false,tokens:false,createImportExpressions:false,createParenthesizedExpressions:false,errorRecovery:false,attachComment:true,annexB:true}}function Y8(e){let t=V8();if(e==null)return t;if(e.annexB!=null&&e.annexB!==false)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:J8}=Object,Yd=(e,t)=>{e&&J8(e,t,{enumerable:false,value:e[t]});};function gs(e){return Yd(e.loc.start,"index"),Yd(e.loc.end,"index"),e}var W8=e=>class extends e{parse(){let r=gs(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(gs)),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,c=Object.create(r.constructor.prototype);return c.type="Literal",c.start=i,c.end=s,c.loc=n,c.range=a,c.raw=o,c.value=l,c}initFunction(r,i){super.initFunction(r,i),r.expression=false;}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=false){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement";}parseMethod(r,i,s,n,a,o,l=false){let c=this.startNode();c.kind=r.kind,c=super.parseMethod(c,i,s,n,a,o,l),delete c.kind;let{typeParameters:f}=r;f&&(delete r.typeParameters,c.typeParameters=f,this.resetStartLocationFromNode(c,f));let g=this.castNodeTo(c,"FunctionExpression");return r.value=g,o==="ClassPrivateMethod"&&(r.computed=false),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=false,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=false),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=false){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=false;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=false,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 gs(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),gs(r);}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),gs(r);}},ri=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r;}},we={brace:new ri("{"),j_oTag:new ri("<tag"),j_cTag:new ri("</tag"),j_expr:new ri("<tag>...</tag>",true)};we.template=new ri("`",true);var de=true,Y=true,wu=true,xs=true,Lr=true,X8=true,Kn=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;}},tc=new Map;function Ae(e,t={}){t.keyword=e;let r=ie(e,t);return tc.set(e,r),r}function gt(e,t){return ie(e,{beforeExpr:de,binop:t})}var As=-1,br=[],rc=[],ic=[],sc=[],nc=[],ac=[];function ie(e,t={}){var r,i,s,n;return ++As,rc.push(e),ic.push((r=t.binop)!=null?r:-1),sc.push((i=t.beforeExpr)!=null?i:false),nc.push((s=t.startsExpr)!=null?s:false),ac.push((n=t.prefix)!=null?n:false),br.push(new Kn(e,t)),As}function me(e,t={}){var r,i,s,n;return ++As,tc.set(e,As),rc.push(e),ic.push((r=t.binop)!=null?r:-1),sc.push((i=t.beforeExpr)!=null?i:false),nc.push((s=t.startsExpr)!=null?s:false),ac.push((n=t.prefix)!=null?n:false),br.push(new Kn("name",t)),As}var $8={bracketL:ie("[",{beforeExpr:de,startsExpr:Y}),bracketHashL:ie("#[",{beforeExpr:de,startsExpr:Y}),bracketBarL:ie("[|",{beforeExpr:de,startsExpr:Y}),bracketR:ie("]"),bracketBarR:ie("|]"),braceL:ie("{",{beforeExpr:de,startsExpr:Y}),braceBarL:ie("{|",{beforeExpr:de,startsExpr:Y}),braceHashL:ie("#{",{beforeExpr:de,startsExpr:Y}),braceR:ie("}"),braceBarR:ie("|}"),parenL:ie("(",{beforeExpr:de,startsExpr:Y}),parenR:ie(")"),comma:ie(",",{beforeExpr:de}),semi:ie(";",{beforeExpr:de}),colon:ie(":",{beforeExpr:de}),doubleColon:ie("::",{beforeExpr:de}),dot:ie("."),question:ie("?",{beforeExpr:de}),questionDot:ie("?."),arrow:ie("=>",{beforeExpr:de}),template:ie("template"),ellipsis:ie("...",{beforeExpr:de}),backQuote:ie("`",{startsExpr:Y}),dollarBraceL:ie("${",{beforeExpr:de,startsExpr:Y}),templateTail:ie("...`",{startsExpr:Y}),templateNonTail:ie("...${",{beforeExpr:de,startsExpr:Y}),at:ie("@"),hash:ie("#",{startsExpr:Y}),interpreterDirective:ie("#!..."),eq:ie("=",{beforeExpr:de,isAssign:xs}),assign:ie("_=",{beforeExpr:de,isAssign:xs}),slashAssign:ie("_=",{beforeExpr:de,isAssign:xs}),xorAssign:ie("_=",{beforeExpr:de,isAssign:xs}),moduloAssign:ie("_=",{beforeExpr:de,isAssign:xs}),incDec:ie("++/--",{prefix:Lr,postfix:X8,startsExpr:Y}),bang:ie("!",{beforeExpr:de,prefix:Lr,startsExpr:Y}),tilde:ie("~",{beforeExpr:de,prefix:Lr,startsExpr:Y}),doubleCaret:ie("^^",{startsExpr:Y}),doubleAt:ie("@@",{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:ie("+/-",{beforeExpr:de,binop:9,prefix:Lr,startsExpr:Y}),modulo:ie("%",{binop:10,startsExpr:Y}),star:ie("*",{binop:10}),slash:gt("/",10),exponent:ie("**",{beforeExpr:de,binop:11,rightAssociative:true}),_in:Ae("in",{beforeExpr:de,binop:7}),_instanceof:Ae("instanceof",{beforeExpr:de,binop:7}),_break:Ae("break"),_case:Ae("case",{beforeExpr:de}),_catch:Ae("catch"),_continue:Ae("continue"),_debugger:Ae("debugger"),_default:Ae("default",{beforeExpr:de}),_else:Ae("else",{beforeExpr:de}),_finally:Ae("finally"),_function:Ae("function",{startsExpr:Y}),_if:Ae("if"),_return:Ae("return",{beforeExpr:de}),_switch:Ae("switch"),_throw:Ae("throw",{beforeExpr:de,prefix:Lr,startsExpr:Y}),_try:Ae("try"),_var:Ae("var"),_const:Ae("const"),_with:Ae("with"),_new:Ae("new",{beforeExpr:de,startsExpr:Y}),_this:Ae("this",{startsExpr:Y}),_super:Ae("super",{startsExpr:Y}),_class:Ae("class",{startsExpr:Y}),_extends:Ae("extends",{beforeExpr:de}),_export:Ae("export"),_import:Ae("import",{startsExpr:Y}),_null:Ae("null",{startsExpr:Y}),_true:Ae("true",{startsExpr:Y}),_false:Ae("false",{startsExpr:Y}),_typeof:Ae("typeof",{beforeExpr:de,prefix:Lr,startsExpr:Y}),_void:Ae("void",{beforeExpr:de,prefix:Lr,startsExpr:Y}),_delete:Ae("delete",{beforeExpr:de,prefix:Lr,startsExpr:Y}),_do:Ae("do",{isLoop:wu,beforeExpr:de}),_for:Ae("for",{isLoop:wu}),_while:Ae("while",{isLoop:wu}),_as:me("as",{startsExpr:Y}),_assert:me("assert",{startsExpr:Y}),_async:me("async",{startsExpr:Y}),_await:me("await",{startsExpr:Y}),_defer:me("defer",{startsExpr:Y}),_from:me("from",{startsExpr:Y}),_get:me("get",{startsExpr:Y}),_let:me("let",{startsExpr:Y}),_meta:me("meta",{startsExpr:Y}),_of:me("of",{startsExpr:Y}),_sent:me("sent",{startsExpr:Y}),_set:me("set",{startsExpr:Y}),_source:me("source",{startsExpr:Y}),_static:me("static",{startsExpr:Y}),_using:me("using",{startsExpr:Y}),_yield:me("yield",{startsExpr:Y}),_asserts:me("asserts",{startsExpr:Y}),_checks:me("checks",{startsExpr:Y}),_exports:me("exports",{startsExpr:Y}),_global:me("global",{startsExpr:Y}),_implements:me("implements",{startsExpr:Y}),_intrinsic:me("intrinsic",{startsExpr:Y}),_infer:me("infer",{startsExpr:Y}),_is:me("is",{startsExpr:Y}),_mixins:me("mixins",{startsExpr:Y}),_proto:me("proto",{startsExpr:Y}),_require:me("require",{startsExpr:Y}),_satisfies:me("satisfies",{startsExpr:Y}),_keyof:me("keyof",{startsExpr:Y}),_readonly:me("readonly",{startsExpr:Y}),_unique:me("unique",{startsExpr:Y}),_abstract:me("abstract",{startsExpr:Y}),_declare:me("declare",{startsExpr:Y}),_enum:me("enum",{startsExpr:Y}),_module:me("module",{startsExpr:Y}),_namespace:me("namespace",{startsExpr:Y}),_interface:me("interface",{startsExpr:Y}),_type:me("type",{startsExpr:Y}),_opaque:me("opaque",{startsExpr:Y}),name:ie("name",{startsExpr:Y}),placeholder:ie("%%",{startsExpr:Y}),string:ie("string",{startsExpr:Y}),num:ie("num",{startsExpr:Y}),bigint:ie("bigint",{startsExpr:Y}),decimal:ie("decimal",{startsExpr:Y}),regexp:ie("regexp",{startsExpr:Y}),privateName:ie("#name",{startsExpr:Y}),eof:ie("eof"),jsxName:ie("jsxName"),jsxText:ie("jsxText",{beforeExpr:de}),jsxTagStart:ie("jsxTagStart",{startsExpr:Y}),jsxTagEnd:ie("jsxTagEnd")};function ke(e){return e>=93&&e<=133}function H8(e){return e<=92}function $t(e){return e>=58&&e<=133}function rm(e){return e>=58&&e<=137}function z8(e){return sc[e]}function Es(e){return nc[e]}function G8(e){return e>=29&&e<=33}function Jd(e){return e>=129&&e<=131}function Q8(e){return e>=90&&e<=92}function oc(e){return e>=58&&e<=92}function Z8(e){return e>=39&&e<=59}function e6(e){return e===34}function t6(e){return ac[e]}function r6(e){return e>=121&&e<=123}function i6(e){return e>=124&&e<=130}function Br(e){return rc[e]}function qn(e){return ic[e]}function s6(e){return e===57}function Vn(e){return e>=24&&e<=25}function xr(e){return br[e]}br[8].updateContext=e=>{e.pop();};br[5].updateContext=br[7].updateContext=br[23].updateContext=e=>{e.push(we.brace);};br[22].updateContext=e=>{e[e.length-1]===we.template?e.pop():e.push(we.template);};br[143].updateContext=e=>{e.push(we.j_expr,we.j_oTag);};var lc="\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",im="\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",n6=new RegExp("["+lc+"]"),a6=new RegExp("["+lc+im+"]");lc=im=null;var sm=[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],o6=[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 Lu(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return false;if(r+=t[i+1],r>=e)return true}return false}function or(e){return e<65?e===36:e<=90?true:e<97?e===95:e<=122?true:e<=65535?e>=170&&n6.test(String.fromCharCode(e)):Lu(e,sm)}function ii(e){return e<48?e===36:e<58?true:e<65?false:e<=90?true:e<97?e===95:e<=122?true:e<=65535?e>=170&&a6.test(String.fromCharCode(e)):Lu(e,sm)||Lu(e,o6)}var uc={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"]},l6=new Set(uc.keyword),u6=new Set(uc.strict),c6=new Set(uc.strictBind);function nm(e,t){return t&&e==="await"||e==="enum"}function am(e,t){return nm(e,t)||u6.has(e)}function om(e){return c6.has(e)}function lm(e,t){return am(e,t)||om(e)}function p6(e){return l6.has(e)}function f6(e,t,r){return e===64&&t===64&&or(r)}var h6=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 d6(e){return h6.has(e)}var vs=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t;}},Cs=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 true;if(r&1731)return false}}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 vs(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 false;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}}},Mu=class extends vs{constructor(...t){super(...t),this.declareFunctions=new Set;}},Bu=class extends Cs{createScope(t){return new Mu(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 true;if(i&2048&&!t.declareFunctions.has(r)){let s=t.names.get(r);return (s&4)>0||(s&2)>0}return false}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t);}},m6=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ne=ar`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 y6(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Wd(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 S6(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 g6=/\*?\s*@((?:no)?flow)\b/,x6=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0;}getScopeHandler(){return Bu}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=g6.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=true,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(ne.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=true,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,true),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(ne.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(true),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(ne.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(o))):(this.expectContextual(125,ne.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(o,true)));}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=false;return s.forEach(o=>{y6(o)?(n==="CommonJS"&&this.raise(ne.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(ne.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(ne.AmbiguousDeclareModuleKind,o),n="CommonJS",a=true);}),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=true,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(ne.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=false,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=false,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,true);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,false),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,true),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:false,allowSpread:false,allowProto:i,allowInexact:false});}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,false),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(ne.UnexpectedReservedUnderscore,this.state.startLoc);}checkReservedType(r,i,s){m6.has(r)&&this.raise(s?ne.AssignReservedType:ne.UnexpectedReservedType,i,{reservedType:r});}flowParseRestrictedIdentifier(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(false,true),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(true,true),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")}flowParseTypeParameter(r=false){let i=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return s.name=a.name,s.variance=n,s.bound=a.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(ne.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=true,this.match(47)||this.match(143)?this.next():this.unexpected();let s=false;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=true),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()!==we.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=true,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=false;!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()===we.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=true,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:false,allowExact:false,allowSpread:false,allowProto:false,allowInexact:false}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(true)}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=true,r.optional=false,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=false,this.eat(17)&&(r.optional=true),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(true),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(false)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(false)),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=true;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let c,f,g=false;for(i&&this.match(6)?(this.expect(6),c=9,f=true):(this.expect(5),c=8,f=false),l.exact=f;!this.match(c);){let A=false,v=null,O=null,w=this.startNode();if(n&&this.isContextual(118)){let L=this.lookahead();L.type!==14&&L.type!==17&&(this.next(),v=this.state.startLoc,r=false);}if(r&&this.isContextual(106)){let L=this.lookahead();L.type!==14&&L.type!==17&&(this.next(),A=true);}let _=this.flowParseVariance();if(this.eat(0))v!=null&&this.unexpected(v),this.eat(0)?(_&&this.unexpected(_.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(w,A))):l.indexers.push(this.flowParseObjectTypeIndexer(w,A,_));else if(this.match(10)||this.match(47))v!=null&&this.unexpected(v),_&&this.unexpected(_.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(w,A));else {let L="init";if(this.isContextual(99)||this.isContextual(104)){let W=this.lookahead();rm(W.type)&&(L=this.state.value,this.next());}let ee=this.flowParseObjectTypeProperty(w,A,v,_,L,s,a??!f);ee===null?(g=true,O=this.state.lastTokStartLoc):l.properties.push(ee);}this.flowObjectTypeSemicolon(),O&&!this.match(8)&&!this.match(9)&&this.raise(ne.UnexpectedExplicitInexactInObject,O);}this.expect(c),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(ne.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ne.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(ne.InexactVariance,n),null):(o||this.raise(ne.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(ne.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 c=false;return this.match(47)||this.match(10)?(r.method=true,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(ne.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=false,this.eat(17)&&(c=true),r.value=this.flowParseTypeInitialiser(),r.variance=n),r.optional=c,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"?ne.GetterMayNotHaveThisParam:ne.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(true);for(;this.eat(16);){let n=this.startNodeAt(r);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(true),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=false,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(ne.ThisParamMustBeFirst,a),i=this.parseIdentifier(l),this.eat(17)&&(s=true,l&&this.raise(ne.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=false,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(true),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(false)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(false)),{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=false,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:true,allowProto:false,allowInexact:true});case 6:return this.flowParseObjectType({allowStatic:false,allowExact:true,allowSpread:true,allowProto:false,allowInexact:false});case 0:return this.state.noAnonFunctionType=false,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(ke(this.state.type)||this.match(78)){let c=this.lookahead().type;a=c!==17&&c!==14;}else a=true;if(a){if(this.state.noAnonFunctionType=false,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(ne.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(oc(this.state.type)){let l=Br(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(ke(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=false;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=true;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(r){let i=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i)),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=false){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,true,s));return}super.parseFunctionBody(r,false,s);}parseFunctionBodyAndFinish(r,i,s=false){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)||ke(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(ke(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,false)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Jd(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Jd(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:c}=this.tryParseConditionalConsequent(),[f,g]=this.getArrowLikeExpressions(l);if(c||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:c}=this.tryParseConditionalConsequent())),[f,g]=this.getArrowLikeExpressions(l);}c&&f.length>1&&this.raise(ne.AmbiguousConditionalArrow,n.startLoc),c&&f.length===1&&(this.state=n,E.push(f[0].start),this.state.noArrowAt=E,{consequent:l,failed:c}=this.tryParseConditionalConsequent());}return this.getArrowLikeExpressions(l,true),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,[]]):S6(n,a=>a.params.every(o=>this.isAssignable(o,true)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,false),this.scope.enter(518),super.checkParams(r,false,true),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=true,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(true),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,false)}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)?true:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),true):false}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=true;}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(ne.DeclareClassElement,n):i.value&&this.raise(ne.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):f6(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=false){!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(ne.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(ne.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(ne.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(true),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(ne.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(ne.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 c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(r,i,s,n,a,o,l);return c&&((f.value||f).typeParameters=c),f}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(ne.PatternIsOptional,r),this.isThisParam(r)&&this.raise(ne.ThisParamMayNotBeOptional,r),r.optional=true),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(ne.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(ne.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(ne.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ne.ImportReflectionHasImportType,r.specifiers[0].loc.start);}parseImportSpecifierLocal(r,i,s){i.local=Wd(r)?this.flowParseRestrictedIdentifier(true,true):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s));}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return true;if(this.isContextual(130)){if(!r)return true;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 c=false;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let g=this.parseIdentifier(true);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(true),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():(c=true,r.local=this.cloneIdentifier(r.imported));}let f=Wd(r);return s&&f&&this.raise(ne.ImportTypeShorthandOnlyInPureImport,r),(s||f)&&this.checkReservedType(r.local.name,r.local.loc.start,true),c&&!s&&!f&&this.checkReservedWord(r.local.name,r.loc.start,true,true),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(true):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=true,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:c}=this.state,f=c[c.length-1];(f===we.j_oTag||f===we.j_expr)&&c.pop();}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let c,f=this.tryParse(E=>{var A;c=this.flowParseTypeParameterDeclaration();let v=this.forwardNoArrowParamsConversionAt(c,()=>{let w=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(w,c),w});(A=v.extra)!=null&&A.parenthesized&&E();let O=this.maybeUnwrapTypeCastExpression(v);return O.type!=="ArrowFunctionExpression"&&E(),O.typeParameters=c,this.resetStartLocationFromNode(O,c),v},n),g=null;if(f.node&&this.maybeUnwrapTypeCastExpression(f.node).type==="ArrowFunctionExpression"){if(!f.error&&!f.aborted)return f.node.async&&this.raise(ne.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),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(ne.UnexpectedTokenAfterTypeParameter,c)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;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=true){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(ne.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=true,s)return n.stop=true,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=true,this.finishCallExpression(a,true)}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=false),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,false),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,true)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=false,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(ne.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ne.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=true);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:false}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(ne.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i});}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?ne.EnumInvalidMemberInitializerSymbolType:ne.EnumInvalidMemberInitializerPrimaryType:ne.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(ne.EnumNumberMemberNotInitialized,r,i);}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(ne.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(true),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=false;for(;!this.match(8);){if(this.eat(21)){a=true;break}let o=this.startNode(),{id:l,init:c}=this.flowEnumMemberRaw(),f=l.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(ne.EnumInvalidMemberName,l,{memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:r}),s.has(f)&&this.raise(ne.EnumDuplicateMemberName,l,{memberName:f,enumName:r}),s.add(f);let g={enumName:r,explicitType:i,memberName:f};switch(o.id=l,c.type){case "boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,g,"boolean"),o.init=c.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case "number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,g,"number"),o.init=c.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case "string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,g,"string"),o.init=c.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case "invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,g);case "none":switch(i){case "boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,g);break;case "number":this.flowEnumErrorNumberMemberNotInitialized(c.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(!ke(this.state.type))throw this.raise(ne.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(ne.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=true,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case "number":return r.explicitType=true,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case "string":return r.explicitType=true,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 c=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=false;let f=o.booleanMembers.length,g=o.numberMembers.length,E=o.stringMembers.length,A=o.defaultedMembers.length;if(!f&&!g&&!E&&!A)return c();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(ne.EnumInconsistentMemberValues,n,{enumName:s}),c()}}}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 false}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}},b6={__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"},E6=/\r\n|[\r\n\u2028\u2029]/,Fn=new RegExp(E6.source,"g");function ki(e){switch(e){case 10:case 13:case 8232:case 8233:return true;default:return false}}function Xd(e,t,r){for(let i=t;i<r;i++)if(ki(e.charCodeAt(i)))return true;return false}var Nu=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,_u=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function P6(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 true;default:return false}}var ti=ar`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 Mr(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":false}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:ki(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(true),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?`
18
- `:`\r
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(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):ki(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(false),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,false,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return ++this.state.pos,String.fromCodePoint(s)}else {let i=0,s=false;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=b6[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:oc(this.state.type)?r.name=Br(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(we.brace),this.next(),r=this.jsxParseExpressionContainer(r,we.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(we.j_expr),this.state.canStartJSXElement=true,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=true,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(we.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(we.j_oTag),this.state.canStartJSXElement=true,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(we.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,we.j_expr));break}default:this.unexpected();}Mr(n)&&!Mr(a)&&a!==null?this.raise(ti.MissingClosingTagFragment,a):!Mr(n)&&Mr(a)?this.raise(ti.MissingClosingTagElement,a,{openingTagName:Oi(n.name)}):!Mr(n)&&!Mr(a)&&Oi(a.name)!==Oi(n.name)&&this.raise(ti.MissingClosingTagElement,a,{openingTagName:Oi(n.name)});}if(Mr(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 Mr(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===we.j_expr){this.jsxReadToken();return}if(i===we.j_oTag||i===we.j_cTag){if(or(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&i===we.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,we.j_cTag),this.state.canStartJSXElement=false;else if(s===143)i.push(we.j_oTag);else if(s===144){let n=i[i.length-1];n===we.j_oTag&&r===56||n===we.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===we.j_expr):(this.setContext(we.j_expr),this.state.canStartJSXElement=true);}else this.state.canStartJSXElement=z8(s);}},Fu=class extends vs{constructor(...t){super(...t),this.tsNames=new Map;}},Ru=class extends Cs{constructor(...t){super(...t),this.importsStack=[];}createScope(t){return this.importsStack.push(new Set),new Fu(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 true;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(t))return true}return false}declareName(t,r,i){if(r&4096){this.hasImport(t,true)&&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 true}return i&128&&(s&8)>0?t.names.get(r)&2?!!(i&1):false:i&2&&(s&1)>0?true: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);}},ju=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 Un(e,t){return (e?2:0)|(t?1:0)}var qu=class{constructor(){this.sawUnambiguousESM=false,this.ambiguousScriptDifferentAst=false;}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 false;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return false;return true}}getPluginOption(t,r){var i;return (i=this.plugins.get(t))==null?void 0:i[r]}};function um(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t);}function v6(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t);}function Is(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t);}function sr(e,t,r){let i=null,s=t.length;for(;i===null&&s>0;)i=t[--s];i===null||i.start>r.start?Is(e,r.comments):um(i,r.comments);}var Uu=class extends qu{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&&um(t.leadingNode,i),t.trailingNode!==null&&v6(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":sr(s,s.properties,t);break;case "CallExpression":case "OptionalCallExpression":sr(s,s.arguments,t);break;case "ImportExpression":sr(s,[s.source,(r=s.options)!=null?r:null],t);break;case "FunctionDeclaration":case "FunctionExpression":case "ArrowFunctionExpression":case "ObjectMethod":case "ClassMethod":case "ClassPrivateMethod":sr(s,s.params,t);break;case "ArrayExpression":case "ArrayPattern":sr(s,s.elements,t);break;case "ExportNamedDeclaration":case "ImportDeclaration":sr(s,s.specifiers,t);break;case "TSEnumDeclaration":sr(s,s.members,t);break;case "TSEnumBody":sr(s,s.members,t);break;default:{if(s.type==="RecordExpression"){sr(s,s.properties,t);break}if(s.type==="TupleExpression"){sr(s,s.elements,t);break}Is(s,i);}}else Is(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=[we.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===false?false:t===true?true:r==="module",this.startIndex=i,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new lr(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 lr(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},$d={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Rn={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 Hd(e,t,r,i,s,n){let a=r,o=i,l=s,c="",f=null,g=r,{length:E}=t;for(;;){if(r>=E){n.unterminated(a,o,l),c+=t.slice(g,r);break}let A=t.charCodeAt(r);if(I6(e,A,t,r)){c+=t.slice(g,r);break}if(A===92){c+=t.slice(g,r);let v=w6(t,r,i,s,e==="template",n);v.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:c+=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"?(c+=t.slice(g,r)+`
20
- `,++r,A===13&&t.charCodeAt(r)===10&&++r,++s,g=i=r):n.unterminated(a,o,l):++r;}return {pos:r,str:c,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function I6(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function w6(e,t,r,i,s,n){let a=!s;t++;let o=c=>({pos:t,ch:c,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
21
- `);case 114:return o("\r");case 120:{let c;return {code:c,pos:t}=Vu(e,t,r,i,2,false,a,n),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return {code:c,pos:t}=pm(e,t,r,i,a,n),o(c===null?null:String.fromCodePoint(c))}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 c=t-1,g=/^[0-7]+/.exec(e.slice(c,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(c,r,i);}return o(String.fromCharCode(E))}return o(String.fromCharCode(l))}}function Vu(e,t,r,i,s,n,a,o){let l=t,c;return {n:c,pos:t}=cm(e,t,r,i,16,s,n,false,o,!a),c===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:c,pos:t}}function cm(e,t,r,i,s,n,a,o,l,c){let f=t,g=s===16?$d.hex:$d.decBinOct,E=s===16?Rn.hex:s===10?Rn.dec:s===8?Rn.oct:Rn.bin,A=false,v=0;for(let O=0,w=n??1/0;O<w;++O){let _=e.charCodeAt(t),L;if(_===95&&o!=="bail"){let ee=e.charCodeAt(t-1),W=e.charCodeAt(t+1);if(o){if(Number.isNaN(W)||!E(W)||g.has(ee)||g.has(W)){if(c)return {n:null,pos:t};l.unexpectedNumericSeparator(t,r,i);}}else {if(c)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&&c)return {n:null,pos:t};if(L<=9&&l.invalidDigit(t,r,i,s))L=0;else if(a)L=0,A=true;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 pm(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Vu(e,t,r,i,e.indexOf("}",t)-t,true,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}=Vu(e,t,r,i,4,false,s,n));return {code:o,pos:t}}function bs(e,t,r){return new lr(r,e-t,e)}var N6=new Set([103,109,115,105,121,117,100,118]),nr=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);}},Yu=class extends Uu{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,bs(i,s,n),{radix:a}),true):false,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,bs(i,s,n));},unterminated:(i,s,n)=>{throw this.raise(b.UnterminatedString,bs(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,bs(i,s,n))}}),this.state=new Ku,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=false;}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength;}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new nr(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken();}eat(t){return this.match(t)?(this.next(),true):false}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=true,this.nextToken(),this.isLookahead=false;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Nu.lastIndex=t,Nu.test(this.input)?Nu.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 _u.lastIndex=t,_u.test(this.input)?_u.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,Fn.lastIndex=i+2;Fn.test(this.input)&&Fn.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Fn.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(;!ki(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(P6(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 or(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(true);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 false;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return false;let r=this.state.pos;for(this.state.pos+=1;!ki(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),true}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(false);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(or(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 c=this.input.charCodeAt(n);if(ki(c))throw this.raise(b.UnterminatedRegExp,xt(t,1));if(i)i=false;else {if(c===91)s=true;else if(c===93&&s)s=false;else if(c===47&&!s)break;i=c===92;}}let a=this.input.slice(r,n);++n;let o="",l=()=>xt(t,n+2-r);for(;n<this.length;){let c=this.codePointAtPos(n),f=String.fromCharCode(c);if(N6.has(c))c===118?o.includes("u")&&this.raise(b.IncompatibleRegExpUVFlags,l()):c===117&&o.includes("v")&&this.raise(b.IncompatibleRegExpUVFlags,l()),o.includes(f)&&this.raise(b.DuplicateRegExpFlags,l());else if(ii(c)||c===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=false,s=true){let{n,pos:a}=cm(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,i,s,this.errorHandlers_readInt,false);return this.state.pos=a,n}readRadixNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=false;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=true;else if(a===109)throw this.raise(b.InvalidDecimal,i);if(or(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=false,n=false,a=false,o=false;!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 c=this.input.charCodeAt(this.state.pos);if(c===46&&!o&&(++this.state.pos,this.readInt(10),s=true,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!o&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(b.InvalidOrMissingExponent,i),s=true,a=true,c=this.input.charCodeAt(this.state.pos)),c===110&&((s||l)&&this.raise(b.InvalidBigIntLiteral,i),++this.state.pos,n=true),c===109){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(b.InvalidDecimal,i),++this.state.pos;var f=true;}if(or(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}=pm(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}=Hd(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}=Hd("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 lr(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=false;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=true,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?or:ii;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(true);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=tc.get(r);i!==void 0?this.finishToken(i,Br(i)):this.finishToken(132,r);}checkKeywordEscapes(){let{type:t}=this.state;oc(t)&&this.state.containsEsc&&this.raise(b.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Br(t)});}raise(t,r,i={}){let s=r instanceof lr?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 lr?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?Br(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return true;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,bs(r,i,s));}}},Ju=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map;}},Wu=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 Ju);}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 c=l&4,f=r&4,g=l&3,E=r&3;o=g===E||c!==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});}},Mi=class{constructor(t=0){this.type=t;}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Yn=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);}},Xu=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(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 _6(){return new Mi(3)}function O6(){return new Yn(1)}function k6(){return new Yn(2)}function fm(){return new Mi}var $u=class extends Yu{addExtra(t,r,i,s=true){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 false}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),true):false}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 Xd(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Xd(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=true){(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:true,aborted:false,failState:n};if(s===i)return {node:i.node,error:null,thrown:false,aborted:true,failState:n};throw s}}checkExpressionErrors(t,r){if(!t)return false;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 rm(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 ju;let l=this.classScope;this.classScope=new Wu(this);let c=this.expressionScope;return this.expressionScope=new Xu(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=n,this.prodParam=o,this.classScope=l,this.expressionScope=c;}}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);}},Di=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);}},Hu=Bi.prototype;Hu.__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 zu=class extends $u{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(Hu);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(Hu);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.extra=o,l.value=t.value,l}},Gu=e=>e.type==="ParenthesizedExpression"?Gu(e.expression):e,Qu=class extends zu{toAssignable(t,r=false){var i,s;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=Gu(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,c=l-1;o<l;o++){var a;let f=t.properties[o],g=o===c;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,false),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,true),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 true;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 false}}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,true);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,i){let s=i&1,n=[],a=true;for(;!this.eat(t);)if(a?a=false: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=false,this.parseObjPropValue(i,r,false,false,true,false)}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 true;case "CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return true}return false}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,i=64,s=false,n=false,a=false,o=false){var l;let c=t.type;if(this.isObjectMethod(t))return;let f=this.isOptionalMemberExpression(t);if(f||c==="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(c==="Identifier"){this.checkIdentifier(t,i,n);let{name:_}=t;s&&(s.has(_)?this.raise(b.ParamDupe,t):s.add(_));return}else c==="VoidPattern"&&r.type==="CatchClause"&&this.raise(b.VoidPatternCatchClauseParam,t);let g=Gu(t);o||(o=g.type==="CallExpression"&&(g.callee.type==="Import"||g.callee.type==="Super"));let E=this.isValidLVal(c,o,!(a||(l=t.extra)!=null&&l.parenthesized)&&r.type==="AssignmentExpression",i);if(E===true)return;if(E===false){let _=i===64?b.InvalidLhs:b.InvalidLhsBinding;this.raise(_,t,{ancestor:r});return}let A,v;typeof E=="string"?(A=E,v=c==="ParenthesizedExpression"):[A,v]=E;let O=c==="ArrayPattern"||c==="ObjectPattern"?{type:c}:r,w=t[A];if(Array.isArray(w))for(let _ of w)_&&this.checkLVal(_,O,i,s,n,v,true);else w&&this.checkLVal(w,O,i,s,n,v,o);}checkIdentifier(t,r,i=false){this.state.strict&&(i?lm(t.name,this.inModule):om(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),true):false}},Ou=/in(?:stanceof)?|as|satisfies/y;function D6(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function zd(e){if(!e)throw new Error("Assert fail")}var Q=ar`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 L6(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 Gd(e){return e==="private"||e==="public"||e==="protected"}function M6(e){return e==="in"||e==="out"}var B6=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:Q.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Q.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Q.InvalidModifierOnTypeParameter});}getScopeHandler(){return Ru}tsIsIdentifier(){return ke(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()?false:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!ke(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=Q.InvalidModifierOnTypeMember},a){let o=(c,f,g,E)=>{f===g&&a[E]&&this.raise(Q.InvalidModifiersOrder,c,{orderedModifiers:[g,E]});},l=(c,f,g,E)=>{(a[g]&&f===E||a[E]&&f===g)&&this.raise(Q.IncompatibleModifiers,c,{modifiers:[g,E]});};for(;;){let{startLoc:c}=this.state,f=this.tsParseModifier(r.concat(i??[]),s,a.static);if(!f)break;Gd(f)?a.accessibility?this.raise(Q.DuplicateAccessibilityModifier,c,{modifier:f}):(o(c,f,f,"override"),o(c,f,f,"static"),o(c,f,f,"readonly"),a.accessibility=f):M6(f)?(a[f]&&this.raise(Q.DuplicateModifier,c,{modifier:f}),a[f]=true,o(c,f,"in","out")):(hasOwnProperty.call(a,f)?this.raise(Q.DuplicateModifier,c,{modifier:f}):(o(c,f,"static","readonly"),o(c,f,"static","override"),o(c,f,"override","readonly"),o(c,f,"abstract","override"),l(c,f,"declare","override"),l(c,f,"static","abstract")),a[f]=true),i!=null&&i.includes(f)&&this.raise(n,c,{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 D6(this.tsParseDelimitedListWorker(r,i,true,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(Q.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=false,i.key=this.parseIdentifier(true),i.computed=false,i.shorthand=false):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;ke(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(true);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(false),i.asserts=false,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),false,true,s),i.params.length===0&&this.raise(Q.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(Q.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(),ke(this.state.type)?(this.next(),this.match(14)):false}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=true),this.match(10)||this.match(47)){i&&this.raise(Q.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(Q.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(Q.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(Q.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(Q.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(Q.SetAccessorCannotHaveRestParameter,this.state.curPosition());}s[a]&&this.raise(Q.SetAccessorCannotHaveReturnType,s[a]);}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else {let s=r;i&&(s.readonly=true);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,false))}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())?false:(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=true),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=true),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),true,false);let i=false;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(Q.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=true,o=false,a=this.parseIdentifier(true),this.expect(14),l=this.tsParseType();else if(f===63){o=true;let g=this.state.value,E=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=true,a=this.createIdentifier(this.startNodeAt(s),g),this.expect(17),this.expect(14),l=this.tsParseType()):(n=false,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=true,this.raise(Q.TupleOptionalAfterType,this.state.lastTokStartLoc))):(g=this.startNodeAt(s),g.optional=o,this.raise(Q.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(false),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(ke(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":L6(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(Q.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 r6(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)?true:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(ke(this.state.type)||this.match(78))return this.next(),true;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return false}}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 false}}return false}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=true,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=true),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(false,i);let o=this.tsParseTypeAnnotation(false);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 false;let r=this.state.containsEsc;return this.next(),!ke(this.state.type)&&!this.match(78)?false:(r&&this.raise(b.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),true)}tsParseTypeAnnotation(r=true,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType();}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){zd(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",true):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Q.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(Q.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=true),ke(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(Q.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()!==we.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=true;try{return r()}finally{this.state.inType=i;}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=true;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i;}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=false;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(true),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=true),i.declare&&(r.declare=true),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,true,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=false){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,true),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=true,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||false,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(Q.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=true,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!==false)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=true,super.parseFunctionStatement(r,false,false);case 80:return r.declare=true,this.parseClass(r,true,false);case 126:return this.tsParseEnumDeclaration(r,{declare:true});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=true,this.parseVarStatement(r,this.state.value,true)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:true,declare:true}));case 107:if(this.isUsing())return this.raise(Q.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=true,this.parseVarStatement(r,"using",true);break;case 96:if(this.isAwaitUsing())return this.raise(Q.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=true,this.next(),this.parseVarStatement(r,"await using",true);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:true});if(s)return s}default:if(ke(i))return this.tsParseDeclaration(r,this.state.type,true,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,true,null)}tsParseDeclaration(r,i,s,n){switch(i){case 124:if(this.tsCheckLineTerminator(s)&&(this.match(80)||ke(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(ke(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(s)&&ke(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(s)&&ke(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?false:(this.next(),true):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=true;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,true)}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(Q.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===we.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return i6(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?false: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(Q.UnexpectedParameterModifier,s);let c=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(c);let f=this.parseMaybeDefault(c.loc.start,c);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(Q.UnsupportedParameterPropertyKind,g),g.parameter=f,this.finishNode(g,"TSParameterProperty")}return i.length&&(c.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(Q.PatternIsOptional,i);}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r);}parseFunctionBodyAndFinish(r,i,s=false){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(Q.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(Q.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=false,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=false;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=true,r;n.optionalChainMember=a=true,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=true,E}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Vn(this.state.type)){let E=super.parseTaggedTemplateExpression(r,i,n);return E.typeParameters=c,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=c,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&&Es(f)&&!this.hasPrecedingLineBreak())return;let g=this.startNodeAt(i);return g.expression=r,g.typeParameters=c,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(Q.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(qn(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(Q.ImportReflectionHasImportType,r.specifiers[0].loc.start);}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return true;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(ke(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,false);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(Q.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=r;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(false)?n=this.parseMaybeImportPhase(s,false):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,true)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=true,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=true,this.parseClass(r,true,true)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=false){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(Q.UsingDeclarationInAmbientContext,r,i),a;for(let{id:o,init:l}of a.declarations)l&&(i==="var"||i==="let"||o.typeAnnotation?this.raise(Q.InitializerNotAllowedInAmbientContext,l):R6(l,this.hasPlugin("estree"))||this.raise(Q.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:true})}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=true),a):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),s===125?"declare":"abstract"),this.semicolon(false),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,false,i)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,128,false,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=>Gd(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:true,errorTemplate:Q.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(Q.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(Q.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(Q.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(Q.IndexSignatureHasDeclare,i),i.override&&this.raise(Q.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(Q.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(Q.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n);}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=true),r.readonly&&this.match(10)&&this.raise(Q.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(Q.ClassMethodHasDeclare,r);}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?true: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=true,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(Q.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=ke(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=true),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=true:this.eat(17)&&(r.optional=true));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(Q.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(Q.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(Q.PrivateElementHasAbstract,r),r.accessibility&&this.raise(Q.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(Q.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(Q.ConstructorHasTypeParameters,l);let{declare:c=false,kind:f}=i;c&&(f==="get"||f==="set")&&this.raise(Q.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 c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(r.typeParameters=c),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=true);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 c,f,g;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),f=this.tryParse(()=>super.parseMaybeAssign(r,i),c),!f.error)return f.node;let{context:v}=this.state,O=v[v.length-1];(O===we.j_oTag||O===we.j_expr)&&v.pop();}if(!((s=f)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!c||c===this.state)&&(c=this.state.clone());let E,A=this.tryParse(v=>{var O,w;E=this.tsParseTypeParameters(this.tsParseConstModifier);let _=super.parseMaybeAssign(r,i);return (_.type!=="ArrowFunctionExpression"||(O=_.extra)!=null&&O.parenthesized)&&v(),((w=E)==null?void 0:w.params.length)!==0&&this.resetStartLocationFromNode(_,E),_.typeParameters=E,_},c);if(!A.error&&!A.aborted)return E&&this.reportReservedArrowTypeParam(E),A.node;if(!f&&(zd(!this.hasPlugin("jsx")),g=this.tryParse(()=>super.parseMaybeAssign(r,i),c),!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(Q.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=true);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 true;default:return super.isAssignable(r,i)}}toAssignable(r,i=false){switch(r.type){case "ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case "TSAsExpression":case "TSSatisfiesExpression":case "TSNonNullExpression":case "TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(Q.UnexpectedTypeCastInParameter,r):this.raise(Q.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,false);break;default:super.checkToRestConversion(r,i);}}isValidLVal(r,i,s,n){switch(r){case "TSTypeCastExpression":return true;case "TSParameterProperty":return "parameter";case "TSNonNullExpression":return "expression";case "TSAsExpression":case "TSSatisfiesExpression":case "TSTypeAssertion":return (n!==64||!s)&&["expression",true];default:return super.isValidLVal(r,i,s,n)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(true):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(),false):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(Q.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,true)):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=true,this.state.strict=false;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=true,this.maybeTakeDecorators(i,this.parseClass(r,true,false));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=true,this.raise(Q.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,i,s,n,a,o,l){let c=super.parseMethod(r,i,s,n,a,o,l);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:E}=c;this.raise(Q.AbstractMethodHasImplementation,c,{methodName:E.type==="Identifier"&&!c.computed?E.name:`[${this.input.slice(this.offsetToSourcePos(E.start),this.offsetToSourcePos(E.end))}]`});}return c}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return !!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=true),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=true),super.getExpression()}parseExportSpecifier(r,i,s,n){return !i&&n?(this.parseTypeOnlyImportExportSpecifier(r,false,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,true,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,c=false,f=true,g=o.loc.start;if(this.isContextual(93)){let A=this.parseIdentifier();if(this.isContextual(93)){let v=this.parseIdentifier();$t(this.state.type)?(c=true,o=A,l=i?this.parseIdentifier():this.parseModuleExportName(),f=false):(l=v,f=false);}else $t(this.state.type)?(f=false,l=i?this.parseIdentifier():this.parseModuleExportName()):(c=true,o=A);}else $t(this.state.type)&&(c=true,i?(o=this.parseIdentifier(true),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,true,true)):o=this.parseModuleExportName());c&&s&&this.raise(i?Q.TypeModifierIsUsedInTypeImports:Q.TypeModifierIsUsedInTypeExports,g),r[n]=o,r[a]=l;let E=i?"importKind":"exportKind";r[E]=c?"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],c?4098:4096);}fillOptionalPropertiesForTSESLint(r){switch(r.type){case "ExpressionStatement":(r.directive)!=null||(r.directive=void 0);return;case "RestElement":r.value=void 0;case "Identifier":case "ArrayPattern":case "AssignmentPattern":case "ObjectPattern":(r.decorators)!=null||(r.decorators=[]),(r.optional)!=null||(r.optional=false),(r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case "TSParameterProperty":(r.accessibility)!=null||(r.accessibility=void 0),(r.decorators)!=null||(r.decorators=[]),(r.override)!=null||(r.override=false),(r.readonly)!=null||(r.readonly=false),(r.static)!=null||(r.static=false);return;case "TSEmptyBodyFunctionExpression":r.body=null;case "TSDeclareFunction":case "FunctionDeclaration":case "FunctionExpression":case "ClassMethod":case "ClassPrivateMethod":(r.declare)!=null||(r.declare=false),(r.returnType)!=null||(r.returnType=void 0),(r.typeParameters)!=null||(r.typeParameters=void 0);return;case "Property":(r.optional)!=null||(r.optional=false);return;case "TSMethodSignature":case "TSPropertySignature":(r.optional)!=null||(r.optional=false);case "TSIndexSignature":(r.accessibility)!=null||(r.accessibility=void 0),(r.readonly)!=null||(r.readonly=false),(r.static)!=null||(r.static=false);return;case "TSAbstractPropertyDefinition":case "PropertyDefinition":case "TSAbstractAccessorProperty":case "AccessorProperty":(r.declare)!=null||(r.declare=false),(r.definite)!=null||(r.definite=false),(r.readonly)!=null||(r.readonly=false),(r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case "TSAbstractMethodDefinition":case "MethodDefinition":(r.accessibility)!=null||(r.accessibility=void 0),(r.decorators)!=null||(r.decorators=[]),(r.override)!=null||(r.override=false),(r.optional)!=null||(r.optional=false);return;case "ClassExpression":(r.id)!=null||(r.id=null);case "ClassDeclaration":(r.abstract)!=null||(r.abstract=false),(r.declare)!=null||(r.declare=false),(r.decorators)!=null||(r.decorators=[]),(r.implements)!=null||(r.implements=[]),(r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(r.typeParameters)!=null||(r.typeParameters=void 0);return;case "TSTypeAliasDeclaration":case "VariableDeclaration":(r.declare)!=null||(r.declare=false);return;case "VariableDeclarator":(r.definite)!=null||(r.definite=false);return;case "TSEnumDeclaration":(r.const)!=null||(r.const=false),(r.declare)!=null||(r.declare=false);return;case "TSEnumMember":(r.computed)!=null||(r.computed=false);return;case "TSImportType":(r.qualifier)!=null||(r.qualifier=null),(r.options)!=null||(r.options=null);return;case "TSInterfaceDeclaration":(r.declare)!=null||(r.declare=false),(r.extends)!=null||(r.extends=[]);return;case "TSMappedType":(r.optional)!=null||(r.optional=false),(r.readonly)!=null||(r.readonly=void 0);return;case "TSModuleDeclaration":(r.declare)!=null||(r.declare=false),(r.global)!=null||(r.global=r.kind==="global");return;case "TSTypeParameter":(r.const)!=null||(r.const=false),(r.in)!=null||(r.in=false),(r.out)!=null||(r.out=false);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,i){if(or(r)){if(Ou.lastIndex=i,Ou.test(this.input)){let s=this.codePointAtPos(Ou.lastIndex);if(!ii(s)&&s!==92)return false}return true}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 F6(e){if(e.type!=="MemberExpression")return false;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?false:dm(e.object)}function R6(e,t){var r;let{type:i}=e;if((r=e.extra)!=null&&r.parenthesized)return false;if(t){if(i==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return true}}else if(i==="StringLiteral"||i==="BooleanLiteral")return true;return !!(hm(e,t)||j6(e,t)||i==="TemplateLiteral"&&e.expressions.length===0||F6(e))}function hm(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function j6(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:i}=e;if(r==="-"&&hm(i,t))return true}return false}function dm(e){return e.type==="Identifier"?true:e.type!=="MemberExpression"||e.computed?false:dm(e.object)}var Qd=ar`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),q6=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(true),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 true;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(Qd.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(Br(133),this.nextTokenStartSince(r+4)))return true}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return (s=r.specifiers)!=null&&s.length?true: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(Qd.UnexpectedSpace,this.state.lastTokEndLoc);}},U6=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),ke(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)}},Zd=["minimal","fsharp","hack","smart"],em=["^^","@@","^","%","#"];function K6(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(!Zd.includes(i)){let s=Zd.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(!em.includes(s)){let n=em.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 mm={estree:W8,jsx:A6,flow:x6,typescript:B6,v8intrinsic:U6,placeholders:q6},V6=Object.keys(mm),Zu=class extends Qu{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),true):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(b.DuplicateProto,n)),true):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=false:(t=new Di,n=true);let{type:a}=this.state;(a===10||ke(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,i)),G8(this.state.type)){let l=this.startNodeAt(i),c=this.state.value;if(l.operator=c,this.match(29)){this.toAssignable(o,true),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,c==="||="||c==="&&="||c==="??="),l}else n&&this.checkExpressionErrors(t,true);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Es(l):Es(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>=qn(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(Z8(s)&&(this.prodParam.hasIn||!this.match(58))){let n=qn(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=qn(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 c=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(c,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,s6(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return j8.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(t6(this.state.type)){a.operator=this.state.value,a.prefix=true,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,true),this.checkExpressionErrors(t,true),this.state.strict&&l){let c=a.argument;c.type==="Identifier"?this.raise(b.StrictDelete,a):this.hasPropertyAsPrivateName(c)&&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")?Es(l):Es(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,false))return n;for(;e6(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=false,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:false,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:false};do t=this.parseSubscript(t,r,i,s),s.maybeAsyncArrow=false;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(Vn(n))return this.parseTaggedTemplateExpression(t,r,s);let a=false;if(n===18){if(i&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,s);s.optionalChainMember=a=true,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=true,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(true),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=true,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(t,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=true,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:c}=i;l&&(this.expressionScope.enter(k6()),a=new Di),c&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,a);let f=this.finishCallExpression(o,c);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=true,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),f)):(l&&(this.checkExpressionErrors(a,true),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(true),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=true,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=false;!this.eat(11);){if(n)n=false;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,false,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,true,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&Is(t,r.innerComments),r.callee.trailingComments&&Is(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,true)}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(),false);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(true);case 86:return this.parseBooleanLiteral(false);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,false,t);case 5:return this.parseObjectLike(8,false,false,t);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),false);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(false);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 or(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,true);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,false,true);if(ke(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(ke(l))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),true)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],false)):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:Br(s)})}testTopicReferenceConfiguration(t,r,i){switch(t){case "hack":return this.hasPlugin(["pipelineOperator",{topicToken:Br(i)}]);case "smart":return i===27;default:throw this.raise(b.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Un(true,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,true)}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(true),(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=true),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(O6());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=true,this.state.inFSharpPipelineDirectBody=false;let a=this.state.startLoc,o=[],l=new Di,c=true,f,g;for(;!this.match(11);){if(c)c=false;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,false),A):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),g&&this.unexpected(g),f&&this.unexpected(f),this.checkExpressionErrors(l,true),this.toReferencedListDeep(o,true),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",true),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),c=l?-1:-2,f=s+c;o.value={raw:this.input.slice(a,f).replace(/\r\n?/g,`
22
- `),cooked:n===null?null:n.slice(1,c)},o.tail=l,this.next();let g=this.finishNode(o,"TemplateElement");return this.resetEndLocation(g,xt(this.state.lastTokEndLoc,c)),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=false;let a=false,o=true,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=false;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",true),l.properties.push(f);}this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return r?c="ObjectPattern":i&&(c="RecordExpression"),this.finishNode(l,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,false);}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=false,n=false,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=false,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:c}=i,f=c.name;f==="async"&&!this.hasPrecedingLineBreak()&&(s=true,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(i)),(f==="get"||f==="set")&&(n=true,this.resetPreviousNodeTrailingComments(c),i.kind=f,this.match(55)&&(o=true,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:f}),this.next()),this.parsePropertyName(i));}return this.parseObjPropValue(i,a,o,s,false,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,false,false,false,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=true,this.parseMethod(t,r,i,false,false,"ObjectMethod")}parseObjectProperty(t,r,i,s){if(t.shorthand=false,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,true,false),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=true,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=true,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else {let{type:i,value:s}=this.state,n;if($t(i))n=this.parseIdentifier(true);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=false);}}initFunction(t,r){t.id=null,t.generator=false,t.async=r;}parseMethod(t,r,i,s,n,a,o=false){this.initFunction(t,i),t.generator=r,this.scope.enter(530|(o?576:0)|(n?32:0)),this.prodParam.enter(Un(i,t.generator)),this.parseFunctionParams(t,s);let l=this.parseFunctionBodyAndFinish(t,a,true);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,i){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;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=Un(i,false);!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=true,this.setArrowFunctionParameters(t,r,s)),this.state.maybeInArrowParameters=false,this.parseFunctionBody(t,true),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,i){this.toAssignableList(r,i,false),t.params=r;}parseFunctionBodyAndFinish(t,r,i=false){return this.parseFunctionBody(t,false,i),this.finishNode(t,r)}parseFunctionBody(t,r,i=false){let s=r&&!this.match(5);if(this.expressionScope.enter(fm()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,false,r,false);else {let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(true,false,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 c=!n&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!i&&!l,r,c),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,c);}),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 false;return true}checkParams(t,r,i,s=true){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=true;for(;!this.eat(t);){if(a)a=false;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=H8(s);return t?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,false),this.next(),r}checkReservedWord(t,r,i,s){if(t.length>10||!d6(t))return;if(i&&p6(t)){this.raise(b.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?s?lm:am:nm)(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=true),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=true:this.sawUnambiguousESM=true),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,true)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return true;let{type:t}=this.state;return t===53||t===10||t===0||Vn(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=false,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 true;default:return false}}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=true;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=true;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(true);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){}},ku={kind:1},Y6={kind:2},J6=/[\uD800-\uDFFF]/u,Du=/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:c}=s,f=o+1,g=xt(a.start,1);e.splice(i,1,new nr({type:xr(27),value:"#",start:o,end:f,startLoc:a.start,endLoc:g}),new nr({type:xr(132),value:l,start:f,end:c,startLoc:g,endLoc:a.end})),i++;continue}if(Vn(n)){let{loc:a,start:o,value:l,end:c}=s,f=o+1,g=xt(a.start,1),E;t.charCodeAt(o-r)===96?E=new nr({type:xr(22),value:"`",start:o,end:f,startLoc:a.start,endLoc:g}):E=new nr({type:xr(8),value:"}",start:o,end:f,startLoc:a.start,endLoc:g});let A,v,O,w;n===24?(v=c-1,O=xt(a.end,-1),A=l===null?null:l.slice(1,-1),w=new nr({type:xr(22),value:"`",start:v,end:c,startLoc:O,endLoc:a.end})):(v=c-2,O=xt(a.end,-2),A=l===null?null:l.slice(1,-2),w=new nr({type:xr(23),value:"${",start:v,end:c,startLoc:O,endLoc:a.end})),e.splice(i,1,E,new nr({type:xr(20),value:A,start:f,end:v,startLoc:g,endLoc:O}),w),i+=2;continue}s.type=xr(n);}}return e}var ec=class extends Zu{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,true,true,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():false}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():false}isForUsing(){if(!this.isContextual(107))return false;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 false}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 false;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 true}return false}chStartsBindingIdentifier(t,r){if(or(t)){if(Du.lastIndex=r,Du.test(this.input)){let i=this.codePointAtPos(Du.lastIndex);if(!ii(i)&&i!==92)return false}return true}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=false){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(true)),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,true);case 63:return this.parseBreakContinueStatement(s,false);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,false,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),true);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,true,!n&&a)}let l=this.state.value,c=this.parseExpression();return ke(i)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,c,t):this.parseExpressionStatement(s,c,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(b.ImportOutsideModule,t);}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?true:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==false}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")===false&&t.expression!==i&&this.raise(b.DecoratorArgumentsOutsideParentheses,n);}else {for(i=this.parseIdentifier(false);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(true),s.computed=false,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(ku),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(ku);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(),c=l||this.isForUsing(),f=i&&this.hasFollowingBindingAtom()||c;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,true,E);let A=this.finishNode(g,"VariableDeclaration"),v=this.match(58);return v&&c&&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 Di,a=this.parseExpression(true,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,true);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:l}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(n,true);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(Y6),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=true,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(false,false)),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=false){return this.next(),this.parseVar(t,false,r,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(ku),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=Q8(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(true):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=false,r=true,i){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,t,false,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=false,l=false;for(;!this.match(s);){let c=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(c)){let f=this.stmtToDirective(c);r.push(f),!o&&f.value.value==="use strict"&&(o=true,this.setStrict(true));continue}l=true,this.state.strictErrors.clear();}t.push(c);}n?.call(this,o),a||this.setStrict(false),this.next();}parseFor(t,r){return t.init=r,this.semicolon(false),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(false),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=false){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=true),s&&(t.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=false,this.scope.enter(514),this.prodParam.enter(Un(a,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,false),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||ke(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(_6()),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=true,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:false,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(true);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=false,s.key=i,s.static=false,this.pushClassMethod(t,s,false,false,false,false),true}else if(this.isClassProperty()){let s=r;return s.computed=false,s.key=i,s.static=false,t.body.push(this.parseClassProperty(s)),true}return this.resetPreviousNodeTrailingComments(i),false}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,c=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,true,false);return}this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsGenerator,n.key),this.pushClassMethod(t,n,true,false,false,false);return}let E=!this.state.containsEsc&&ke(this.state.type),A=this.parseClassElementName(r),v=E?A.name:null,O=this.isPrivateName(A),w=this.state.startLoc;if(this.parsePostMemberNameModifiers(g),this.isClassMethod()){if(f.kind="method",O){this.pushClassPrivateMethod(t,a,false,false);return}let _=this.isNonstaticConstructor(n),L=false;_&&(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=true,L=i.hadSuperClass),this.pushClassMethod(t,n,false,false,_,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(w),f.kind="method";let L=this.match(139);this.parseClassElementName(f),this.parsePostMemberNameModifiers(g),L?this.pushClassPrivateMethod(t,a,_,true):(this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsAsync,n.key),this.pushClassMethod(t,n,_,true,false,false));}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,false,false):(this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsAccessor,n.key),this.pushClassMethod(t,n,false,false,false,false)),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,c,_);}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,false,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",true));}pushClassPrivateMethod(t,r,i,s){let n=this.parseMethod(r,i,s,false,false,"ClassPrivateMethod",true);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(fm()),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(ke(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,true),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)),c=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(b.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,true),this.sawUnambiguousESM=true,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(c||f){if(g=false,r)throw this.raise(b.UnsupportedDecoratorExport,t);this.parseExportFrom(t,c);}else g=this.maybeParseExportDeclaration(t);if(c||f||g){var E;let A=t;if(this.checkExport(A,true,false,!!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=true,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,true,true),this.sawUnambiguousESM=true,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(true),s=this.startNodeAtNode(i);return s.exported=i,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],true}return false}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r;((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")),true}return false}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,true}return false}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),true):false}isAsyncFunction(){if(!this.isContextual(95))return false;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,true,true);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===true&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false),this.startNode()),true,true);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(),true,false):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(ke(t)){if(t===95&&!this.state.containsEsc||t===100)return false;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"]),false}}else if(!this.match(65))return false;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||ke(this.state.type)&&i)return true;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return false}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")===true&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),true):this.isUsing()?(this.raise(b.UsingDeclarationExport,this.state.startLoc),true):this.isAwaitUsing()?(this.raise(b.UsingDeclarationExport,this.state.startLoc),true):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,c=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,c),!s&&o.local){let{local:f}=o;f.type!=="Identifier"?this.raise(b.ExportBindingIsString,o,{localName:f.value,exportName:c}):(this.checkReservedWord(f.name,f.loc.start,true,false),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=true;for(this.expect(5);!this.eat(8);){if(i)i=false;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=J6.exec(t.value);return r&&this.raise(b.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(true)}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")):false}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?false:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),t.module=true):this.hasPlugin("importReflection")&&(t.module=false),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(true),{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 ke(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,false))}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){return (t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=true,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(true),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(true),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=false;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",true)):r=this.parseImportAttributes(),i=true;}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",true),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")),true}else if($t(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),true;return false}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),true}return false}parseNamedImportSpecifiers(t){let r=true;for(this.expect(5);!this.eat(8);){if(r)r=false;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,true,true),t.local||(t.local=this.cloneIdentifier(a));}return this.finishImportSpecifier(t,"ImportSpecifier",n)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Jn=class extends ec{constructor(t,r,i){let s=Y8(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 Cs}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 X6(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let i=Ps(t,e),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",Ps(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return t.sourceType="script",Ps(t,e).parse()}catch{}throw i}}else return Ps(t,e).parse()}function $6(e,t){let r=Ps(t,e);return r.options.strictMode&&(r.state.strict=true),r.getExpression()}function H6(e){let t={};for(let r of Object.keys(e))t[r]=xr(e[r]);return t}var z6=H6($8);function Ps(e,t){let r=Jn,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||{});}K6(i),r=G6(i);}return new r(e,t,i)}var tm=new Map;function G6(e){let t=[];for(let s of V6)e.has(s)&&t.push(s);let r=t.join("|"),i=tm.get(r);if(!i){i=Jn;for(let s of t)i=mm[s](i);tm.set(r,i);}return i}ws.parse=X6;ws.parseExpression=$6;ws.tokTypes=z6;});var cc=C(ye=>{Object.defineProperty(ye,"__esModule",{value:true});ye.Var=ye.User=ye.Statement=ye.SpreadProperty=ye.Scope=ye.RestProperty=ye.ReferencedMemberExpression=ye.ReferencedIdentifier=ye.Referenced=ye.Pure=ye.NumericLiteralTypeAnnotation=ye.Generated=ye.ForAwaitStatement=ye.Flow=ye.Expression=ye.ExistentialTypeParam=ye.BlockScoped=ye.BindingIdentifier=void 0;ye.ReferencedIdentifier=["Identifier","JSXIdentifier"];ye.ReferencedMemberExpression=["MemberExpression"];ye.BindingIdentifier=["Identifier"];ye.Statement=["Statement"];ye.Expression=["Expression"];ye.Scope=["Scopable","Pattern"];ye.Referenced=null;ye.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"];ye.Var=["VariableDeclaration"];ye.User=null;ye.Generated=null;ye.Pure=null;ye.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];ye.RestProperty=["RestElement"];ye.SpreadProperty=["RestElement"];ye.ExistentialTypeParam=["ExistsTypeAnnotation"];ye.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];ye.ForAwaitStatement=["ForOfStatement"];});var Tm=C((ite,ym)=>{var Fi=1e3,Ri=Fi*60,ji=Ri*60,si=ji*24,Q6=si*7,Z6=si*365.25;ym.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return e9(e);if(r==="number"&&isFinite(e))return t.long?r9(e):t9(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function e9(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*Z6;case "weeks":case "week":case "w":return r*Q6;case "days":case "day":case "d":return r*si;case "hours":case "hour":case "hrs":case "hr":case "h":return r*ji;case "minutes":case "minute":case "mins":case "min":case "m":return r*Ri;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 t9(e){var t=Math.abs(e);return t>=si?Math.round(e/si)+"d":t>=ji?Math.round(e/ji)+"h":t>=Ri?Math.round(e/Ri)+"m":t>=Fi?Math.round(e/Fi)+"s":e+"ms"}function r9(e){var t=Math.abs(e);return t>=si?Xn(e,t,si,"day"):t>=ji?Xn(e,t,ji,"hour"):t>=Ri?Xn(e,t,Ri,"minute"):t>=Fi?Xn(e,t,Fi,"second"):e+" ms"}function Xn(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}});var pc=C((ste,Sm)=>{function i9(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=Tm(),r.destroy=c,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(...w){if(!O.enabled)return;let _=O,L=Number(new Date),ee=L-(g||L);_.diff=ee,_.prev=g,_.curr=L,g=L,w[0]=r.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let W=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(ue,Ce)=>{if(ue==="%%")return "%";W++;let Be=r.formatters[Ce];if(typeof Be=="function"){let Ze=w[W];ue=Be.call(_,Ze),w.splice(W,1),W--;}return ue}),r.formatArgs.call(_,w),(_.log||r.log).apply(_,w);}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:true,configurable:false,get:()=>E!==null?E:(A!==r.namespaces&&(A=r.namespaces,v=r.enabled(f)),v),set:w=>{E=w;}}),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 false;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 false;for(let g of r.names)if(n(f,g))return true;return false}function l(f){return f instanceof Error?f.stack||f.message:f}function c(){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=i9;});var gm=C((It,$n)=>{It.formatArgs=n9;It.save=a9;It.load=o9;It.useColors=s9;It.storage=l9();It.destroy=(()=>{let e=false;return ()=>{e||(e=true,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 s9(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return true;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return false;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 n9(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+$n.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 a9(e){try{e?It.storage.setItem("debug",e):It.storage.removeItem("debug");}catch{}}function o9(){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 l9(){try{return localStorage}catch{}}$n.exports=pc()(It);var{formatters:u9}=$n.exports;u9.j=function(e){try{return JSON.stringify(e)}catch(t){return "[UnexpectedJSONParseError]: "+t.message}};});var bm=C((nte,xm)=>{xm.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1||i<s)};});var Am=C((ate,Pm)=>{var c9=Vs("os"),Em=Vs("tty"),qt=bm(),{env:ot}=process,Fr;qt("no-color")||qt("no-colors")||qt("color=false")||qt("color=never")?Fr=0:(qt("color")||qt("colors")||qt("color=true")||qt("color=always"))&&(Fr=1);"FORCE_COLOR"in ot&&(ot.FORCE_COLOR==="true"?Fr=1:ot.FORCE_COLOR==="false"?Fr=0:Fr=ot.FORCE_COLOR.length===0?1:Math.min(parseInt(ot.FORCE_COLOR,10),3));function fc(e){return e===0?false:{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function hc(e,t){if(Fr===0)return 0;if(qt("color=16m")||qt("color=full")||qt("color=truecolor"))return 3;if(qt("color=256"))return 2;if(e&&!t&&Fr===void 0)return 0;let r=Fr||0;if(ot.TERM==="dumb")return r;if(process.platform==="win32"){let i=c9.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in ot)return ["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in ot)||ot.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ot)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ot.TEAMCITY_VERSION)?1:0;if(ot.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ot){let i=parseInt((ot.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ot.TERM_PROGRAM){case "iTerm.app":return i>=3?3:2;case "Apple_Terminal":return 2}}return /-256(color)?$/i.test(ot.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ot.TERM)||"COLORTERM"in ot?1:r}function p9(e){let t=hc(e,e&&e.isTTY);return fc(t)}Pm.exports={supportsColor:p9,stdout:fc(hc(true,Em.isatty(1))),stderr:fc(hc(true,Em.isatty(2)))};});var Cm=C((lt,zn)=>{var f9=Vs("tty"),Hn=Vs("util");lt.init=g9;lt.log=y9;lt.formatArgs=d9;lt.save=T9;lt.load=S9;lt.useColors=h9;lt.destroy=Hn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");lt.colors=[6,2,3,4,5,1];try{let e=Am();e&&(e.stderr||e).level>=2&&(lt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]);}catch{}lt.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),i=process.env[t];return /^(yes|on|true|enabled)$/i.test(i)?i=true:/^(no|off|false|disabled)$/i.test(i)?i=false:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function h9(){return "colors"in lt.inspectOpts?!!lt.inspectOpts.colors:f9.isatty(process.stderr.fd)}function d9(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${s};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
23
- `).join(`
24
- `+n),e.push(s+"m+"+zn.exports.humanize(this.diff)+"\x1B[0m");}else e[0]=m9()+t+" "+e[0];}function m9(){return lt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function y9(...e){return process.stderr.write(Hn.formatWithOptions(lt.inspectOpts,...e)+`
25
- `)}function T9(e){e?process.env.DEBUG=e:delete process.env.DEBUG;}function S9(){return process.env.DEBUG}function g9(e){e.inspectOpts={};let t=Object.keys(lt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=lt.inspectOpts[t[r]];}zn.exports=pc()(lt);var{formatters:vm}=zn.exports;vm.o=function(e){return this.inspectOpts.colors=this.useColors,Hn.inspect(e,this.inspectOpts).split(`
26
- `).map(t=>t.trim()).join(" ")};vm.O=function(e){return this.inspectOpts.colors=this.useColors,Hn.inspect(e,this.inspectOpts)};});var Im=C((ote,dc)=>{typeof process>"u"||process.type==="renderer"||process.browser===true||process.__nwjs?dc.exports=gm():dc.exports=Cm();});var mc=C(rt=>{Object.defineProperty(rt,"__esModule",{value:true});rt.isBindingIdentifier=K9;rt.isBlockScoped=X9;rt.isExpression=Y9;rt.isFlow=Q9;rt.isForAwaitStatement=t5;rt.isGenerated=z9;rt.isPure=G9;rt.isReferenced=W9;rt.isReferencedIdentifier=q9;rt.isReferencedMemberExpression=U9;rt.isRestProperty=Z9;rt.isScope=J9;rt.isSpreadProperty=e5;rt.isStatement=V9;rt.isUser=H9;rt.isVar=$9;var x9=he(),{isBinding:b9,isBlockScoped:E9,isExportDeclaration:P9,isExpression:A9,isFlow:v9,isForStatement:C9,isForXStatement:I9,isIdentifier:wm,isImportDeclaration:w9,isImportSpecifier:N9,isJSXIdentifier:_9,isJSXMemberExpression:O9,isMemberExpression:k9,isRestElement:Nm,isReferenced:Gn,isScope:D9,isStatement:L9,isVar:M9,isVariableDeclaration:B9,react:F9,isForOfStatement:R9}=x9,{isCompatTag:j9}=F9;function q9(e){let{node:t,parent:r}=this;return wm(t,e)?Gn(t,r,this.parentPath.parent):_9(t,e)?!O9(r)&&j9(t.name)?false:Gn(t,r,this.parentPath.parent):false}function U9(){let{node:e,parent:t}=this;return k9(e)&&Gn(e,t)}function K9(){let{node:e,parent:t}=this,r=this.parentPath.parent;return wm(e)&&b9(e,t,r)}function V9(){let{node:e,parent:t}=this;return L9(e)?!(B9(e)&&(I9(t,{left:e})||C9(t,{init:e}))):false}function Y9(){return this.isIdentifier()?this.isReferencedIdentifier():A9(this.node)}function J9(){return D9(this.node,this.parent)}function W9(){return Gn(this.node,this.parent)}function X9(){return E9(this.node)}function $9(){return M9(this.node)}function H9(){var e;return !!((e=this.node)!=null&&e.loc)}function z9(){return !this.isUser()}function G9(e){return this.scope.isPure(this.node,e)}function Q9(){let{node:e}=this;return v9(e)?true:w9(e)?e.importKind==="type"||e.importKind==="typeof":P9(e)?e.exportKind==="type":N9(e)?e.importKind==="type"||e.importKind==="typeof":false}function Z9(){var e;return Nm(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function e5(){var e;return Nm(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function t5(){return R9(this.node,{await:true})}rt.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};rt.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};});var _s=C(ai=>{Object.defineProperty(ai,"__esModule",{value:true});ai.environmentVisitor=u5;ai.explode=qm;ai.isExplodedVisitor=jm;ai.merge=Km;ai.verify=Um;var Rm=cc(),r5=mc(),i5=he(),_m=Ut(),{DEPRECATED_KEYS:Om,DEPRECATED_ALIASES:km,FLIPPED_ALIAS_KEYS:Dm,TYPES:s5,__internal__deprecationWarning:Lm}=i5;function n5(e){return e in Rm}function jm(e){return e?._exploded}function qm(e){if(jm(e))return e;e._exploded=true;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;}Um(e),delete e.__esModule,a5(e),Fm(e);for(let r of Object.keys(e)){if(ni(r)||!n5(r))continue;let i=e[r];for(let n of Object.keys(i))i[n]=o5(r,i[n]);delete e[r];let s=Rm[r];if(s!==null)for(let n of s){(e[n])!=null||(e[n]={}),Ns(e[n],i);}else Ns(e,i);}for(let r of Object.keys(e)){if(ni(r))continue;let i=Dm[r];if(r in Om){let n=Om[r];Lm(r,n,"Visitor "),i=[n];}else if(r in km){let n=km[r];Lm(r,n,"Visitor "),i=Dm[n];}if(!i)continue;let s=e[r];delete e[r];for(let n of i){let a=e[n];a?Ns(a,s):e[n]=Object.assign({},s);}}for(let r of Object.keys(e))ni(r)||Fm(e[r]);return e}function Um(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")&&Mm(t,e[t]),ni(t))continue;if(!s5.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.0`);let r=e[t];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")Mm(`${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=true;}}function Mm(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 Km(e,t=[],r){let i={_verified:true,_exploded:true};Object.defineProperty(i,"_exploded",{enumerable:false}),Object.defineProperty(i,"_verified",{enumerable:false});for(let s=0;s<e.length;s++){let n=qm(e[s]),a=t[s],o=n;(a||r)&&(o=Bm(o,a,r)),Ns(i,o);for(let l of Object.keys(n)){if(ni(l))continue;let c=n[l];(a||r)&&(c=Bm(c,a,r));let f=i[l]||(i[l]={});Ns(f,c);}}return i}function Bm(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 a5(e){for(let t of Object.keys(e)){if(ni(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r});}}function Fm(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit]);}function o5(e,t){let r=`is${e}`,i=r5[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 Ns(e,t){for(let r of ["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]));}var l5={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():_m.requeueComputedKeyAndDecorators.call(e)));},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():_m.requeueComputedKeyAndDecorators.call(e));}};function u5(e){return Km([l5,e])}});var Vm=C(Zn=>{Object.defineProperty(Zn,"__esModule",{value:true});Zn.default=void 0;var Qn=he(),c5=Qn,p5=ea(),f5=_s(),h5=Ut(),{getAssignmentIdentifiers:d5}=c5,m5={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():h5.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=false,(s=e.extra)!=null&&s.shorthand&&(e.extra.shorthand=false);}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?d5(e.node):e.getOuterBindingIdentifiers();for(let i in r)i===t.oldName&&(r[i].name=t.newName);}},yc=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(Qn.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(c=>c.isDeclaration()||c.isFunctionExpression()||c.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:true};Qn.isMethod(o)&&(o.computed&&(l.key=true),Qn.isObjectMethod(o)||(l.decorators=true)),(0, p5.traverseNode)(o,(0, f5.explode)(m5),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));}};Zn.default=yc;});var Ym=C(Tc=>{Object.defineProperty(Tc,"__esModule",{value:true});Tc.default=b5;var y5=he(),T5=qi(),S5=_s(),g5=Ut(),{VISITOR_KEYS:x5}=y5;function b5(e,t,r){let i=(0, S5.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,c,f,g,E){if(!o)return;let A=E||T5.NodePath.get({hub:g,parentPath:n,parent:a,container:l,listKey:f,key:c});g5._forceSetScope.call(A);let v=i[o.type];if(v!=null&&v.enter)for(let w of v.enter)w.call(r,A,r);if(A.shouldSkip)return;let O=x5[o.type];if(O!=null&&O.length){for(let w of O){let _=o[w];if(_)if(Array.isArray(_))for(let L=0;L<_.length;L++){let ee=_[L];s(A,o,ee,_,L,w);}else s(A,o,_,o,w,null);}if(v!=null&&v.exit)for(let w of v.exit)w.call(r,A,r);}}}});var Jm=C(ta=>{Object.defineProperty(ta,"__esModule",{value:true});ta.default=void 0;var Sc=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=true,this.referencePaths=[],this.referenced=false,this.references=0,this.identifier=t,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&E5(i)&&this.reassign(i),this.clearValue();}deoptValue(){this.clearValue(),this.hasDeoptedValue=true;}setValue(t){this.hasDeoptedValue||(this.hasValue=true,this.value=t);}clearValue(){this.hasDeoptedValue=false,this.hasValue=false,this.value=null;}reassign(t){this.constant=false,!this.constantViolations.includes(t)&&this.constantViolations.push(t);}reference(t){this.referencePaths.includes(t)||(this.referenced=true,this.references++,this.referencePaths.push(t));}dereference(){this.references--,this.referenced=!!this.references;}};ta.default=Sc;function E5(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 false;if(i==="left"&&r.isForXStatement()||t&&i==="body"&&r.isLoop())return true}return false}});var oi=C(Ot=>{Object.defineProperty(Ot,"__esModule",{value:true});Ot.clear=A5;Ot.clearPath=Wm;Ot.clearScope=Xm;Ot.getCachedPaths=v5;Ot.getOrCreateCachedPaths=C5;Ot.scope=Ot.path=void 0;var ra=Ot.path=new WeakMap;Ot.scope=new WeakMap;function A5(){Wm(),Xm();}function Wm(){Ot.path=ra=new WeakMap;}function Xm(){Ot.scope=new WeakMap;}function v5(e){let{parent:t,parentPath:r}=e;return ra.get(t)}function C5(e,t){let r=ra.get(e);return r||ra.set(e,r=new Map),r}});var $m=C((dte,I5)=>{I5.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];});var Hm=C((mte,w5)=>{w5.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 Ec=C(sa=>{Object.defineProperty(sa,"__esModule",{value:true});sa.default=void 0;var N5=Vm(),ny=qi();Ym();var _5=Jm(),ay=he(),oy=ay,zm=oi(),O5=$m(),k5=Hm(),{assignmentExpression:D5,callExpression:Gm,cloneNode:Qm,getBindingIdentifiers:ly,identifier:ui,isArrayExpression:uy,isBinary:L5,isCallExpression:Zm,isClass:M5,isClassBody:B5,isClassDeclaration:F5,isExportAllDeclaration:cy,isExportDefaultDeclaration:R5,isExportNamedDeclaration:gc,isFunctionDeclaration:j5,isIdentifier:li,isImportDeclaration:xc,isLiteral:q5,isMemberExpression:U5,isMethod:K5,isModuleSpecifier:V5,isNullLiteral:Y5,isObjectExpression:J5,isProperty:W5,isPureish:X5,isRegExpLiteral:$5,isSuper:H5,isTaggedTemplateExpression:z5,isTemplateLiteral:py,isThisExpression:ey,isUnaryExpression:G5,isVariableDeclaration:Q5,expressionStatement:Z5,matchesPattern:ty,memberExpression:bc,numericLiteral:eq,toIdentifier:tq,variableDeclaration:rq,variableDeclarator:iq,isObjectProperty:sq,isTopicReference:ry,isMetaProperty:nq,isPrivateName:aq,isExportDeclaration:oq,buildUndefinedNode:lq,sequenceExpression:uq}=ay;function Ke(e,t){switch(e?.type){default:if(xc(e)||oq(e)){var r;if((cy(e)||gc(e)||xc(e))&&e.source)Ke(e.source,t);else if((gc(e)||xc(e))&&(r=e.specifiers)!=null&&r.length)for(let i of e.specifiers)Ke(i,t);else (R5(e)||gc(e))&&e.declaration&&Ke(e.declaration,t);}else V5(e)?Ke(e.local,t):q5(e)&&!Y5(e)&&!$5(e)&&!py(e)&&t.push(e.value);break;case "MemberExpression":case "OptionalMemberExpression":case "JSXMemberExpression":Ke(e.object,t),Ke(e.property,t);break;case "Identifier":case "JSXIdentifier":t.push(e.name);break;case "CallExpression":case "OptionalCallExpression":case "NewExpression":Ke(e.callee,t);break;case "ObjectExpression":case "ObjectPattern":for(let i of e.properties)Ke(i,t);break;case "SpreadElement":case "RestElement":Ke(e.argument,t);break;case "ObjectProperty":case "ObjectMethod":case "ClassProperty":case "ClassMethod":case "ClassPrivateProperty":case "ClassPrivateMethod":Ke(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"),Ke(e.argument,t);break;case "AwaitExpression":t.push("await"),Ke(e.argument,t);break;case "AssignmentExpression":Ke(e.left,t);break;case "VariableDeclarator":Ke(e.id,t);break;case "FunctionExpression":case "FunctionDeclaration":case "ClassExpression":case "ClassDeclaration":Ke(e.id,t);break;case "PrivateName":Ke(e.id,t);break;case "ParenthesizedExpression":Ke(e.expression,t);break;case "UnaryExpression":case "UpdateExpression":Ke(e.argument,t);break;case "MetaProperty":Ke(e.meta,t),Ke(e.property,t);break;case "JSXElement":Ke(e.openingElement,t);break;case "JSXOpeningElement":Ke(e.name,t);break;case "JSXFragment":Ke(e.openingFragment,t);break;case "JSXOpeningFragment":t.push("Fragment");break;case "JSXNamespacedName":Ke(e.namespace,t),Ke(e.name,t);break}}function iy(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null);}function cq(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}var sy=Symbol.for("should not be considered a local binding"),pq={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){oy.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(cy(t))return;let i=t.declaration;if(F5(i)||j5(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n?.reference(e);}else if(Q5(i))for(let s of i.declarations)for(let n of Object.keys(ly(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[sy]&&e.scope.registerBinding("local",e.get("id"),e);},ClassExpression(e){e.node.id&&!e.node.id[sy]&&e.scope.registerBinding("local",e.get("id"),e);},TSTypeAnnotation(e){e.skip();}},ia,fq=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=zm.scope.get(r);if(i?.path===t)return i;zm.scope.set(r,this),this.uid=fq++,this.block=r,this.path=t,this.labels=new Map,this.inited=false,Object.defineProperties(this,{references:{enumerable:true,configurable:true,writable:true,value:Object.create(null)},uids:{enumerable:true,configurable:true,writable:true,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}),Qm(r)}generateUidIdentifier(t){return ui(this.generateUid(t))}generateUid(t="temp"){t=tq(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]=true,s.uids[r]=true,r}generateUidBasedOnNode(t,r){let i=[];Ke(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(ey(t)||H5(t)||ry(t))return true;if(li(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return false}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let i=this.generateUidIdentifierBasedOnNode(t);return r?i:(this.push({id:i}),Qm(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 N5.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 lq()}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(true);for(let a of Object.keys(n)){s.references[a]=true;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 _5.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 true;while(r=r.parent);return false}hasGlobal(t){let r=this;do if(r.globals[t])return true;while(r=r.parent);return false}hasReference(t){return !!this.getProgramParent().references[t]}isPure(t,r){if(li(t)){let a=this.getBinding(t.name);return a?r?a.constant:true:false}else {if(ey(t)||nq(t)||ry(t)||aq(t))return true;if(M5(t)){var i;return t.superClass&&!this.isPure(t.superClass,r)||((i=t.decorators)==null?void 0:i.length)>0?false:this.isPure(t.body,r)}else if(B5(t)){for(let a of t.body)if(!this.isPure(a,r))return false;return true}else {if(L5(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(uy(t)||t?.type==="TupleExpression"){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return false;return true}else if(J5(t)||t?.type==="RecordExpression"){for(let a of t.properties)if(!this.isPure(a,r))return false;return true}else if(K5(t)){var s;return !(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0)}else if(W5(t)){var n;return !(t.computed&&!this.isPure(t.key,r)||((n=t.decorators)==null?void 0:n.length)>0||(sq(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else {if(G5(t))return this.isPure(t.argument,r);if(py(t)){for(let a of t.expressions)if(!this.isPure(a,r))return false;return true}else return z5(t)?ty(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:true})&&this.isPure(t.quasi,r):U5(t)?!t.computed&&li(t.object)&&t.object.name==="Symbol"&&li(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:true}):Zm(t)?ty(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:true})&&t.arguments.length===1&&oy.isStringLiteral(t.arguments[0]):X5(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=true,this.crawl());}crawl(){let t=this.path;iy(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=true,ia||(ia=ny.default.visitors.merge([{Scope(n){iy(n.scope);}},pq])),t.type!=="Program"){let n=ia[t.type];if(n)for(let a of n.enter)a.call(s,t,s);}t.traverse(ia,s),this.crawling=false;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")&&cq(r)&&Zm(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}`,c=!s&&r.getData(l);if(!c){let E=rq(n,[]);E._blockHoist=o,[c]=r.unshiftContainer("body",[E]),s||r.setData(l,c);}let f=iq(a,i),g=c.node.declarations.push(f);r.scope.registerBinding(n,c.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 false;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 true}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]=false);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,c=[];for(let f of a.declarations){l??(l=f.id),f.init&&c.push(D5("=",f.id,f.init));let g=Object.keys(ly(f,false,true,true));for(let E of g)t(ui(E),f.init!=null);}if(o.parentPath.isForXStatement({left:a}))o.replaceWith(l);else if(c.length===0)o.remove();else {let f=c.length===1?c[0]:uq(c);o.parentPath.isForStatement({init:a})?o.replaceWith(f):o.replaceWith(Z5(f));}}}};sa.default=Ht;Ht.globals=[...O5,...k5];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, ny.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(li(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(uy(t))return t;if(li(t,{name:"arguments"}))return Gm(bc(bc(bc(ui("Array"),ui("prototype")),ui("slice")),ui("call")),[t]);let s,n=[t];return r===true?s="toConsumableArray":typeof r=="number"?(n.push(eq(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),Gm(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:true,enumerable:true,get(){return this.path.parent}},hub:{configurable:true,enumerable:true,get(){return this.path.hub}}});});var fy=C(Kt=>{Object.defineProperty(Kt,"__esModule",{value:true});Kt.find=yq;Kt.findParent=mq;Kt.getAncestry=bq;Kt.getDeepestCommonAncestorFrom=xq;Kt.getEarliestCommonAncestorFrom=gq;Kt.getFunctionParent=Tq;Kt.getStatementParent=Sq;Kt.inType=Aq;Kt.isAncestor=Eq;Kt.isDescendant=Pq;var hq=he(),{VISITOR_KEYS:dq}=hq;function mq(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function yq(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function Tq(){return this.findParent(e=>e.isFunction())}function Sq(){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 gq(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let s,n=dq[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),c=n.indexOf(o.parentKey);l>c&&(s=o);}return s})}function xq(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 c of n)if(c[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 bq(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function Eq(e){return e.isDescendant(this)}function Pq(e){return !!this.findParent(t=>t===e)}function Aq(...e){let t=this;for(;t;){if(e.includes(t.node.type))return true;t=t.parentPath;}return false}});var Ac=C(Pc=>{Object.defineProperty(Pc,"__esModule",{value:true});Pc.createUnionType=Nq;var vq=he(),{createFlowUnionType:hy,createTSUnionType:dy,createUnionTypeAnnotation:Cq,isFlowType:Iq,isTSType:wq}=vq;function Nq(e){if(e.every(t=>Iq(t)))return hy?hy(e):Cq(e);if(e.every(t=>wq(t))&&dy)return dy(e)}});var gy=C(vc=>{Object.defineProperty(vc,"__esModule",{value:true});vc.default=Lq;var _q=he(),yy=Ac(),{BOOLEAN_NUMBER_BINARY_OPERATORS:Oq,createTypeAnnotationBasedOnTypeof:kq,numberTypeAnnotation:Ty,voidTypeAnnotation:Dq}=_q;function Lq(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:Mq(t,this,e.name);if(e.name==="undefined")return Dq();if(e.name==="NaN"||e.name==="Infinity")return Ty();e.name;}function Mq(e,t,r){let i=[],s=[],n=my(e,t,s),a=Sy(e,t,r);if(a){let o=my(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, yy.createUnionType)(i)}function my(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 Bq(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():Oq.includes(r)?Ty():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 kq(l)}function Fq(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 Sy(e,t,r){let i=Fq(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 c=Bq(r,l);c&&a.push(c);}}return a.length?{typeAnnotation:(0, yy.createUnionType)(a),ifStatement:i}:Sy(e,i,r)}});var Iy=C(Ne=>{Object.defineProperty(Ne,"__esModule",{value:true});Ne.ArrayExpression=Ay;Ne.AssignmentExpression=a7;Ne.BinaryExpression=t7;Ne.BooleanLiteral=c7;Ne.CallExpression=g7;Ne.ConditionalExpression=i7;Ne.ClassDeclaration=Ne.ClassExpression=Ne.FunctionDeclaration=Ne.ArrowFunctionExpression=Ne.FunctionExpression=d7;Object.defineProperty(Ne,"Identifier",{enumerable:true,get:function(){return jq.default}});Ne.LogicalExpression=r7;Ne.NewExpression=Qq;Ne.NullLiteral=p7;Ne.NumericLiteral=u7;Ne.ObjectExpression=h7;Ne.ParenthesizedExpression=n7;Ne.RegExpLiteral=f7;Ne.RestElement=vy;Ne.SequenceExpression=s7;Ne.StringLiteral=l7;Ne.TSAsExpression=Py;Ne.TSNonNullExpression=Gq;Ne.TaggedTemplateExpression=x7;Ne.TemplateLiteral=Zq;Ne.TypeCastExpression=Ey;Ne.UnaryExpression=e7;Ne.UpdateExpression=o7;Ne.VariableDeclarator=zq;var Rq=he(),jq=gy(),by=Ac(),{BOOLEAN_BINARY_OPERATORS:qq,BOOLEAN_UNARY_OPERATORS:Uq,NUMBER_BINARY_OPERATORS:Kq,NUMBER_UNARY_OPERATORS:Vq,STRING_UNARY_OPERATORS:Yq,anyTypeAnnotation:xy,arrayTypeAnnotation:Cc,booleanTypeAnnotation:Ic,buildMatchMemberExpression:na,genericTypeAnnotation:Rr,identifier:ci,nullLiteralTypeAnnotation:Jq,numberTypeAnnotation:Ui,stringTypeAnnotation:pi,tupleTypeAnnotation:Wq,unionTypeAnnotation:Xq,voidTypeAnnotation:$q,isIdentifier:Hq}=Rq;function zq(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function Ey(e){return e.typeAnnotation}Ey.validParent=true;function Py(e){return e.typeAnnotation}Py.validParent=true;function Gq(){return this.get("expression").getTypeAnnotation()}function Qq(e){if(e.callee.type==="Identifier")return Rr(e.callee)}function Zq(){return pi()}function e7(e){let t=e.operator;if(t==="void")return $q();if(Vq.includes(t))return Ui();if(Yq.includes(t))return pi();if(Uq.includes(t))return Ic()}function t7(e){let t=e.operator;if(Kq.includes(t))return Ui();if(qq.includes(t))return Ic();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():Xq([pi(),Ui()])}}function r7(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return (0, by.createUnionType)(e)}function i7(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return (0, by.createUnionType)(e)}function s7(){return this.get("expressions").pop().getTypeAnnotation()}function n7(){return this.get("expression").getTypeAnnotation()}function a7(){return this.get("right").getTypeAnnotation()}function o7(e){let t=e.operator;if(t==="++"||t==="--")return Ui()}function l7(){return pi()}function u7(){return Ui()}function c7(){return Ic()}function p7(){return Jq()}function f7(){return Rr(ci("RegExp"))}function h7(){return Rr(ci("Object"))}function Ay(){return Rr(ci("Array"))}function vy(){return Ay()}vy.validParent=true;function d7(){return Rr(ci("Function"))}var m7=na("Array.from"),y7=na("Object.keys"),T7=na("Object.values"),S7=na("Object.entries");function g7(){let{callee:e}=this.node;return y7(e)?Cc(pi()):m7(e)||T7(e)||Hq(e,{name:"Array"})?Cc(xy()):S7(e)?Cc(Wq([pi(),xy()])):Cy(this.get("callee"))}function x7(){return Cy(this.get("tag"))}function Cy(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Rr(ci("AsyncIterator")):Rr(ci("Promise"));if(t.generator)return Rr(ci("Iterator"));if(e.node.returnType)return e.node.returnType}}});var ky=C(jr=>{Object.defineProperty(jr,"__esModule",{value:true});jr._getTypeAnnotation=Oy;jr.baseTypeStrictlyMatches=K7;jr.couldBeBaseType=U7;jr.getTypeAnnotation=j7;jr.isBaseType=q7;jr.isGenericType=V7;var wy=Iy(),b7=he(),{anyTypeAnnotation:_y,isAnyTypeAnnotation:aa,isArrayTypeAnnotation:E7,isBooleanTypeAnnotation:P7,isEmptyTypeAnnotation:A7,isFlowBaseAnnotation:v7,isGenericTypeAnnotation:C7,isIdentifier:Ny,isMixedTypeAnnotation:I7,isNumberTypeAnnotation:w7,isStringTypeAnnotation:N7,isTSArrayType:_7,isTSTypeAnnotation:O7,isTSTypeReference:k7,isTupleTypeAnnotation:D7,isTypeAnnotation:L7,isUnionTypeAnnotation:M7,isVoidTypeAnnotation:B7,stringTypeAnnotation:F7,voidTypeAnnotation:R7}=b7;function j7(){let e=this.getData("typeAnnotation");return e!=null||(e=Oy.call(this)||_y(),(L7(e)||O7(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var wc=new WeakSet;function Oy(){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()?F7():r.key==="left"&&i.isForOfStatement()?_y():R7()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!wc.has(e)){wc.add(e);try{var t;let r=wy[e.type];if(r)return r.call(this,e);if(r=wy[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{wc.delete(e);}}}function q7(e,t){return Nc(e,this.getTypeAnnotation(),t)}function Nc(e,t,r){if(e==="string")return N7(t);if(e==="number")return w7(t);if(e==="boolean")return P7(t);if(e==="any")return aa(t);if(e==="mixed")return I7(t);if(e==="empty")return A7(t);if(e==="void")return B7(t);if(r)return false;throw new Error(`Unknown base type ${e}`)}function U7(e){let t=this.getTypeAnnotation();if(aa(t))return true;if(M7(t)){for(let r of t.types)if(aa(r)||Nc(e,r,true))return true;return false}else return Nc(e,t,true)}function K7(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return !aa(t)&&v7(t)?r.type===t.type:false}function V7(e){let t=this.getTypeAnnotation();return e==="Array"&&(_7(t)||E7(t)||D7(t))?true:C7(t)&&Ny(t.id,{name:e})||k7(t)&&Ny(t.typeName,{name:e})}});var My=C((Pte,_c)=>{var la=process||{},Dy=la.argv||[],oa=la.env||{},Y7=!(oa.NO_COLOR||Dy.includes("--no-color"))&&(!!oa.FORCE_COLOR||Dy.includes("--color")||la.platform==="win32"||(la.stdout||{}).isTTY&&oa.TERM!=="dumb"||!!oa.CI),J7=(e,t,r=e)=>i=>{let s=""+i,n=s.indexOf(t,e.length);return ~n?e+W7(s,t,r,n)+t:e+s+t},W7=(e,t,r,i)=>{let s="",n=0;do s+=e.substring(n,i)+r,n=i+t.length,i=e.indexOf(t,n);while(~i);return s+e.substring(n)},Ly=(e=Y7)=>{let t=e?J7:()=>String;return {isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};_c.exports=Ly();_c.exports.createColors=Ly;});var By=C(ua=>{Object.defineProperty(ua,"__esModule",{value:true});ua.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;ua.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 kc=C(Os=>{Object.defineProperty(Os,"__esModule",{value:true});var Oc=My(),Fy=By(),Ry=rs();function X7(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?false:Oc.isColorSupported}var ca=(e,t)=>r=>e(t(r));function Uy(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:ca(ca(e.white,e.bgRed),e.bold),gutter:e.gray,marker:ca(e.red,e.bold),message:ca(e.red,e.bold),reset:e.reset}}var $7=Uy(Oc.createColors(true)),H7=Uy(Oc.createColors(false));function Ky(e){return e?$7:H7}var z7=new Set(["as","async","from","get","of","set"]),G7=/\r\n|[\n\r\u2028\u2029]/,Q7=/^[()[\]{}]$/,Vy,Z7=/^[a-z][\w-]*$/i,eU=function(e,t,r){if(e.type==="name"){let i=e.value;if(Ry.isKeyword(i)||Ry.isStrictReservedWord(i,true)||z7.has(i))return "keyword";if(Z7.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"&&Q7.test(e.value)?"bracket":e.type==="invalid"&&(e.value==="@"||e.value==="#")?"punctuator":e.type};Vy=function*(e){let t;for(;t=Fy.default.exec(e);){let r=Fy.matchToToken(t);yield {type:eU(r,t.index,e),value:r.value};}};function Yy(e){if(e==="")return "";let t=Ky(true),r="";for(let{type:i,value:s}of Vy(e))i in t?r+=s.split(G7).map(n=>t[i](n)).join(`
27
- `):r+=s;return r}var jy=false,qy=/\r\n|[\n\r\u2028\u2029]/;function tU(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,c=s.column,f=n.line-i,g=n.column,E=Math.max(l-(a+1),0),A=Math.min(t.length,f+o);l===-1&&(E=0),f===-1&&(A=t.length);let v=f-l,O={};if(v)for(let w=0;w<=v;w++){let _=w+l;if(!c)O[_]=true;else if(w===0){let L=t[_-1].length;O[_]=[c,L-c+1];}else if(w===v)O[_]=[0,g];else {let L=t[_-w].length;O[_]=[0,L];}}else c===g?c?O[l]=[c,0]:O[l]=true:O[l]=[c,g-c];return {start:E,end:A,markerLines:O}}function Jy(e,t,r={}){let i=r.forceColor||X7()&&r.highlightCode,s=(r.startLine||1)-1,n=Ky(i),a=e.split(qy),{start:o,end:l,markerLines:c}=tU(t,a,r,s),f=t.start&&typeof t.start.column=="number",g=String(l+s).length,A=(i?Yy(e):e).split(qy,l).slice(o,l).map((v,O)=>{let w=o+1+O,L=` ${` ${w+s}`.slice(-g)} |`,ee=c[w],W=!c[w+1];if(ee){let J="";if(Array.isArray(ee)){let ue=v.slice(0,Math.max(ee[0]-1,0)).replace(/[^\t]/g," "),Ce=ee[1]||1;J=[`
28
- `,n.gutter(L.replace(/\d/g," "))," ",ue,n.marker("^").repeat(Ce)].join(""),W&&r.message&&(J+=" "+n.message(r.message));}return [n.marker(">"),n.gutter(L),v.length>0?` ${v}`:"",J].join("")}else return ` ${n.gutter(L)}${v.length>0?` ${v}`:""}`}).join(`
29
- `);return r.message&&!f&&(A=`${" ".repeat(g+1)}${r.message}
30
- ${A}`),i?n.reset(A):A}function rU(e,t,r,i={}){if(!jy){jy=true;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),Jy(e,{start:{column:r,line:t}},i)}Os.codeFrameColumns=Jy;Os.default=rU;Os.highlight=Yy;});var Wy=C(pa=>{Object.defineProperty(pa,"__esModule",{value:true});pa.hooks=void 0;pa.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(),true},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),true},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),true},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),true}];});var fa=C(qr=>{Object.defineProperty(qr,"__esModule",{value:true});qr._assertUnremoved=Gy;qr._callRemovalHooks=Hy;qr._markRemoved=Dc;qr._remove=zy;qr._removeFromScope=$y;qr.remove=uU;var iU=Wy(),sU=oi(),nU=Lc(),Xy=Er(),aU=he(),oU=ha(),lU=Ut();function uU(){var e;if(Gy.call(this),lU.resync.call(this),Hy.call(this)){Dc.call(this);return}(e=this.opts)!=null&&e.noScope||$y.call(this),this.shareCommentsWithSiblings(),zy.call(this),Dc.call(this);}function $y(){let e=aU.getBindingIdentifiers(this.node,false,false,true);Object.keys(e).forEach(t=>this.scope.removeBinding(t));}function Hy(){if(this.parentPath){for(let e of iU.hooks)if(e(this,this.parentPath))return true}}function zy(){Array.isArray(this.container)?(this.container.splice(this.key,1),oU.updateSiblingKeys.call(this,this.key,-1)):nU._replaceWith.call(this,null);}function Dc(){if(this._traverseFlags|=Xy.SHOULD_SKIP|Xy.REMOVED,this.parent){var e;(e=(0, sU.getCachedPaths)(this))==null||e.delete(this.node);}this.node=null;}function Gy(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var Zy=C(da=>{Object.defineProperty(da,"__esModule",{value:true});da.default=void 0;var Qy=he(),cU=Qy,{react:pU}=Qy,{cloneNode:fU,jsxExpressionContainer:hU,variableDeclaration:dU,variableDeclarator:mU}=cU,yU={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&pU.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=true,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r);}}},Mc=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=false,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=false;}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let i=this.bindings[r];if(!t.bindingIdentifierEquals(r,i.identifier))return false}return true}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=true,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 true}return false}run(){if(this.path.traverse(yU,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=mU(r,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[n]=t[s]([t.isVariableDeclarator()?i:dU("var",[i])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=hU(r)),this.path.replaceWith(fU(r)),n.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}};da.default=Mc;});var ha=C(Vt=>{Object.defineProperty(Vt,"__esModule",{value:true});Vt._containerInsert=qc;Vt._containerInsertAfter=rT;Vt._containerInsertBefore=Uc;Vt._verifyNodeList=ks;Vt.insertAfter=DU;Vt.insertBefore=OU;Vt.pushContainer=MU;Vt.unshiftContainer=LU;Vt.updateSiblingKeys=nT;var TU=oi(),jc=Er(),Bc=Ut(),ma=fa(),SU=he(),gU=Zy(),{arrowFunctionExpression:xU,assertExpression:bU,assignmentExpression:EU,blockStatement:eT,callExpression:PU,cloneNode:Fc,expressionStatement:Rc,isAssignmentExpression:AU,isCallExpression:vU,isExportNamedDeclaration:tT,isExpression:CU,isIdentifier:IU,isSequenceExpression:wU,isSuper:NU,thisExpression:_U}=SU;function OU(e){ma._assertUnremoved.call(this);let t=ks.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||tT(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 Uc.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(eT(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 qc(e,t){nT.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,true);}return r}function Uc(e){return qc.call(this,this.key,e)}function rT(e){return qc.call(this,this.key+1,e)}var iT=e=>e[e.length-1];function sT(e){return wU(e.parent)&&(iT(e.parent.expressions)!==e.node||sT(e.parentPath))}function kU(e,t){if(!AU(e)||!IU(e.left))return false;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function DU(e){if(ma._assertUnremoved.call(this),this.isSequenceExpression())return iT(this.get("expressions")).insertAfter(e);let t=ks.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||tT(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(s=>CU(s)?Rc(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 bU(n),s.replaceWith(PU(xU([],n),[])),s.get("callee.body").insertAfter(t),[s];if(sT(s))t.unshift(n);else if(vU(n)&&NU(n.callee))t.unshift(n),t.push(_U());else if(kU(n,a))t.unshift(n),t.push(Fc(n.left));else if(a.isPure(n,true))t.push(n);else {r.isMethod({computed:true,key:n})&&(a=a.parent);let o=a.generateDeclaredUidIdentifier();t.unshift(Rc(EU("=",Fc(o),n))),t.push(Rc(Fc(o)));}}return this.replaceExpressionWithStatements(t)}else {if(Array.isArray(this.container))return rT.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(eT(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 nT(e,t){if(!this.parent)return;let r=(0, TU.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 jc.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 LU(e,t){ma._assertUnremoved.call(this);let r=ks.call(this,t),i=this.node[e],s=jc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:0}).setContext(this.context);return Uc.call(s,r)}function MU(e,t){ma._assertUnremoved.call(this);let r=ks.call(this,t),i=this.node[e];return jc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:i.length}).setContext(this.context).replaceWithMultiple(r)}Vt.hoist=function(t=this.scope){return new gU.default(this,t).run()};});var Lc=C(Ur=>{Object.defineProperty(Ur,"__esModule",{value:true});Ur._replaceWith=hT;Ur.replaceExpressionWithStatements=uK;Ur.replaceInline=cK;Ur.replaceWith=lK;Ur.replaceWithMultiple=aK;Ur.replaceWithSourceString=oK;var BU=kc(),Vc=qi(),FU=Er(),cT=oi(),Yc=ha(),RU=Wn(),jU=he(),Ki=Ut(),{FUNCTION_TYPES:aT,arrowFunctionExpression:qU,assignmentExpression:pT,awaitExpression:UU,blockStatement:KU,buildUndefinedNode:Kc,callExpression:VU,cloneNode:Jc,conditionalExpression:YU,expressionStatement:JU,getBindingIdentifiers:WU,identifier:XU,inheritLeadingComments:$U,inheritTrailingComments:HU,inheritsComments:zU,isBlockStatement:GU,isEmptyStatement:oT,isExpression:fT,isExpressionStatement:QU,isIfStatement:ZU,isProgram:eK,isStatement:tK,isVariableDeclaration:rK,removeComments:iK,returnStatement:lT,sequenceExpression:sK,validate:uT,yieldExpression:nK}=jU;function aK(e){var t;Ki.resync.call(this);let r=Yc._verifyNodeList.call(this,e);$U(r[0],this.node),HU(r[r.length-1],this.node),(t=(0, cT.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 oK(e){Ki.resync.call(this);let t;try{e=`(${e})`,t=(0,RU.parse)(e);}catch(i){let s=i.loc;throw s&&(i.message+=` - make sure this is an expression.
31
- `+(0, BU.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 Vc.default.removeProperties(r),this.replaceWith(r)}function lK(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 FU.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()&&!eK(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")&&fT(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=JU(t),r="expression"),this.isNodeType("Expression")&&tK(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let i=this.node;return i&&(zU(t,i),iK(i)),hT.call(this,t),this.type=t.type,Ki.setScope.call(this),this.requeue(),[r?this.get(r):this]}function hT(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?uT(this.parent,this.key,[e]):uT(this.parent,this.key,e),this.debug(`Replace with ${e?.type}`),(t=(0, cT.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e;}function uK(e){Ki.resync.call(this);let t=[],r=ya(e,t);if(r){for(let E of t)this.scope.push({id:E});return this.replaceWith(r)[0].get("expressions")}let i=this.getFunctionParent(),s=i?.node.async,n=i?.node.generator,a=qU([],KU(e));this.replaceWith(VU(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(E=>this.scope.push({id:E}));let l=o.getCompletionRecords();for(let E of l){if(!E.isExpressionStatement())continue;let A=E.findParent(v=>v.isLoop());if(A){let v=A.getData("expressionReplacementReturnUid");v?v=XU(v.name):(v=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",lT(Jc(v))),A.setData("expressionReplacementReturnUid",v)),E.get("expression").replaceWith(pT("=",Jc(v),E.node.expression));}else E.replaceWith(lT(E.node.expression));}o.arrowFunctionToExpression();let c=o,f=s&&Vc.default.hasType(c.node.body,"AwaitExpression",aT),g=n&&Vc.default.hasType(c.node.body,"YieldExpression",aT);return f&&(c.set("async",true),g||this.replaceWith(UU(this.node))),g&&(c.set("generator",true),this.replaceWith(nK(this.node,true))),c.get("body.body")}function ya(e,t){let r=[],i=true;for(let s of e)if(oT(s)||(i=false),fT(s))r.push(s);else if(QU(s))r.push(s.expression);else if(rK(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=WU(n);for(let o of Object.keys(a))t.push(Jc(a[o]));n.init&&r.push(pT("=",n.id,n.init));}i=true;}else if(ZU(s)){let n=s.consequent?ya([s.consequent],t):Kc(),a=s.alternate?ya([s.alternate],t):Kc();if(!n||!a)return;r.push(YU(s.test,n,a));}else if(GU(s)){let n=ya(s.body,t);if(!n)return;r.push(n);}else if(oT(s))e.indexOf(s)===0&&(i=true);else return;return i&&r.push(Kc()),r.length===1?r[0]:sK(r)}function cK(e){if(Ki.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=Yc._verifyNodeList.call(this,e);let t=Yc._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var TT=C(Ta=>{Object.defineProperty(Ta,"__esModule",{value:true});Ta.evaluate=SK;Ta.evaluateTruthy=yK;var pK=["Number","String","Math"],fK=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],hK=["random"];function dT(e){return pK.includes(e)}function dK(e){return fK.includes(e)}function mK(e){return hK.includes(e)}function yK(){let e=this.evaluate();if(e.confident)return !!e.value}function Yt(e,t){t.confident&&(t.deoptPath=e,t.confident=false);}var mT=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function bt(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:false};i.set(r,s);let n=TK(e,t);return t.confident&&(s.resolved=true,s.value=n),n}}function TK(e,t){if(t.confident){if(e.isSequenceExpression()){let i=e.get("expressions");return bt(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 yT(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 yT(e,e.node.quasi.quasis,t,true)}if(e.isConditionalExpression()){let i=bt(e.get("test"),t);return t.confident?bt(i?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return bt(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=bt(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 c=!l.path.parentPath.isBlockStatement();for(let f=l.parent;f;f=f.parent){var r;if(f===e.scope){if(c){Yt(i.path,t);return}break}(r=f.path.parentPath)!=null&&r.isBlockStatement()&&(c=true);}}if(i.hasValue)return i.value}let s=e.node.name;if(mT.has(s)){if(!i)return mT.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=bt(a,t);if(typeof o=="object"&&o!==null&&i.references>1){Yt(a,t);return}return o}if(e.isUnaryExpression({prefix:true})){if(e.node.operator==="void")return;let i=e.get("argument");if(e.node.operator==="typeof"&&(i.isFunction()||i.isClass()))return "function";let s=bt(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 c=n.get("value").evaluate();if(!c.confident){Yt(c.deopt,t);return}c=c.value,i[o]=c;}return i}if(e.isLogicalExpression()){let i=t.confident,s=bt(e.get("left"),t),n=t.confident;t.confident=i;let a=bt(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=bt(e.get("left"),t);if(!t.confident)return;let s=bt(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)&&(dT(i.node.name)||dK(i.node.name))&&(n=global[i.node.name]),i.isMemberExpression()){let a=i.get("object"),o=i.get("property");if(a.isIdentifier()&&o.isIdentifier()&&dT(a.node.name)&&!mK(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=>bt(o,t));return t.confident?n.apply(s,a):void 0}}Yt(e,t);}}function yT(e,t,r,i=false){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(bt(l,r)));}if(r.confident)return s}function SK(){let e={confident:true,deoptPath:null,seen:new Map},t=bt(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});var ST=C(Jt=>{Object.defineProperty(Jt,"__esModule",{value:true});Jt.statements=Jt.statement=Jt.smart=Jt.program=Jt.expression=void 0;var gK=he(),{assertExpressionStatement:xK}=gK;function Wc(e){return {code:t=>`/* @babel/template */;
32
- ${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}Jt.smart=Wc(e=>e.length>1?e:e[0]);Jt.statements=Wc(e=>e);Jt.statement=Wc(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]});var bK=Jt.expression={code:e=>`(
33
- ${e}
34
- )`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(bK.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return xK(t),t.expression}};Jt.program={code:e=>e,validate:()=>{},unwrap:e=>e.program};});var Sa=C(Ds=>{Object.defineProperty(Ds,"__esModule",{value:true});Ds.merge=AK;Ds.normalizeReplacements=CK;Ds.validate=vK;var EK=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function PK(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 AK(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 vK(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=PK(t,EK);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(i!=null&&!(i instanceof RegExp)&&i!==false)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===true&&(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 CK(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 $c=C(Xc=>{Object.defineProperty(Xc,"__esModule",{value:true});Xc.default=qK;var IK=he(),wK=Wn(),NK=kc(),{isCallExpression:_K,isExpressionStatement:OK,isFunction:kK,isIdentifier:DK,isJSXIdentifier:LK,isNewExpression:MK,isPlaceholder:ga,isStatement:BK,isStringLiteral:gT,removePropertiesDeep:FK,traverse:RK}=IK,jK=/^[_$A-Z0-9]+$/;function qK(e,t,r){let{placeholderWhitelist:i,placeholderPattern:s,preserveComments:n,syntacticPlaceholders:a}=r,o=VK(t,r.parser,a);FK(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 RK(o,UK,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function UK(e,t,r){var i;let s,n=r.syntactic.placeholders.length>0;if(ga(e)){if(r.syntacticPlaceholders===false)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,n=true;}else {if(n||r.syntacticPlaceholders)return;if(DK(e)||LK(e))s=e.name;else if(gT(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===false||!(r.placeholderPattern||jK).test(s))&&!((i=r.placeholderWhitelist)!=null&&i.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;gT(e)||ga(e,{expectedNode:"StringLiteral"})?l="string":MK(a)&&o==="arguments"||_K(a)&&o==="arguments"||kK(a)&&o==="params"?l="param":OK(a)&&!ga(e)?(l="statement",t=t.slice(0,-1)):BK(e)&&ga(e)?l="statement":l="other";let{placeholders:c,placeholderNames:f}=n?r.syntactic:r.legacy;c.push({name:s,type:l,resolve:g=>KK(g,t),isDuplicate:f.has(s)}),f.add(s);}function KK(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 VK(e,t,r){let i=(t.plugins||[]).slice();r!==false&&i.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:true,allowReturnOutsideFunction:true,allowNewTargetOutsideFunction:true,allowSuperOutsideMethod:true,allowYieldOutsideFunction:true,sourceType:"module"},t,{plugins:i});try{return (0,wK.parse)(e,t)}catch(s){let n=s.loc;throw n&&(s.message+=`
35
- `+(0, NK.codeFrameColumns)(e,{start:n}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var Qc=C(Gc=>{Object.defineProperty(Gc,"__esModule",{value:true});Gc.default=HK;var YK=he(),{blockStatement:JK,cloneNode:zc,emptyStatement:WK,expressionStatement:Hc,identifier:xa,isStatement:xT,isStringLiteral:XK,stringLiteral:$K,validate:bT}=YK;function HK(e,t){let r=zc(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
36
- placeholder you may want to consider passing one of the following options to @babel/template:
37
- - { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
38
- - { 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;zK(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 zK(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>zc(o)):typeof r=="object"&&(r=zc(r)));let{parent:i,key:s,index:n}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=$K(r)),!r||!XK(r))throw new Error("Expected string substitution")}else if(e.type==="statement")n===void 0?r?Array.isArray(r)?r=JK(r):typeof r=="string"?r=Hc(xa(r)):xT(r)||(r=Hc(r)):r=WK():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=xa(r)),xT(r)||(r=Hc(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=xa(r)),n===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=xa(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,l,c){let f=o[l];o[l]=c,(f.type==="Identifier"||f.type==="Placeholder")&&(f.typeAnnotation&&(c.typeAnnotation=f.typeAnnotation),f.optional&&(c.optional=f.optional),f.decorators&&(c.decorators=f.decorators));}if(n===void 0)bT(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),bT(i,s,o),i[s]=o;}}});var ET=C(Zc=>{Object.defineProperty(Zc,"__esModule",{value:true});Zc.default=eV;var GK=Sa(),QK=$c(),ZK=Qc();function eV(e,t,r){t=e.code(t);let i;return s=>{let n=(0, GK.normalizeReplacements)(s);return i||(i=(0, QK.default)(e,t,r)),e.unwrap((0, ZK.default)(i,n))}}});var PT=C(ep=>{Object.defineProperty(ep,"__esModule",{value:true});ep.default=sV;var tV=Sa(),rV=$c(),iV=Qc();function sV(e,t,r){let{metadata:i,names:s}=nV(e,t,r);return n=>{let a={};return n.forEach((o,l)=>{a[s[l]]=o;}),o=>{let l=(0, tV.normalizeReplacements)(o);return l&&Object.keys(l).forEach(c=>{if(hasOwnProperty.call(a,c))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0, iV.default)(i,l?Object.assign(l,a):a))}}}function nV(e,t,r){let i="BABEL_TPL$",s=t.join("");do i="$$"+i;while(s.includes(i));let{names:n,code:a}=aV(t,i);return {metadata:(0, rV.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 aV(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 NT=C(tp=>{Object.defineProperty(tp,"__esModule",{value:true});tp.default=wT;var ur=Sa(),AT=ET(),vT=PT(),CT=(0, ur.validate)({placeholderPattern:false});function wT(e,t){let r=new WeakMap,i=new WeakMap,s=t||(0, ur.validate)(null);return Object.assign((n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return IT((0,AT.default)(e,n,(0,ur.merge)(s,(0,ur.validate)(a[0]))))}else if(Array.isArray(n)){let o=r.get(n);return o||(o=(0, vT.default)(e,n,s),r.set(n,o)),IT(o(a))}else if(typeof n=="object"&&n){if(a.length>0)throw new Error("Unexpected extra params.");return wT(e,(0, ur.merge)(s,(0, ur.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, AT.default)(e,n,(0, ur.merge)((0, ur.merge)(s,(0, ur.validate)(a[0])),CT))()}else if(Array.isArray(n)){let o=i.get(n);return o||(o=(0, vT.default)(e,n,(0, ur.merge)(s,CT)),i.set(n,o)),o(a)()}throw new Error(`Unexpected template param ${typeof n}`)}})}function IT(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
39
- `).slice(3).join(`
40
- `));}return r=>{try{return e(r)}catch(i){throw i.stack+=`
41
- =============
42
- ${t}`,i}}}});var _T=C(wt=>{Object.defineProperty(wt,"__esModule",{value:true});wt.statements=wt.statement=wt.smart=wt.program=wt.expression=wt.default=void 0;var Ls=ST(),Ms=NT(),rp=wt.smart=(0, Ms.default)(Ls.smart),oV=wt.statement=(0, Ms.default)(Ls.statement),lV=wt.statements=(0, Ms.default)(Ls.statements),uV=wt.expression=(0, Ms.default)(Ls.expression),cV=wt.program=(0, Ms.default)(Ls.program);wt.default=Object.assign(rp.bind(void 0),{smart:rp,statement:oV,statements:lV,expression:uV,program:cV,ast:rp.ast});});var RT=C(Pr=>{Object.defineProperty(Pr,"__esModule",{value:true});Pr.arrowFunctionToExpression=qV;Pr.ensureBlock=FV;Pr.ensureFunctionName=QV;Pr.splitExportDeclaration=zV;Pr.toComputedKey=BV;Pr.unwrapFunctionEnvironment=RV;var pV=he(),fV=_T(),np=_s(),hV=Ut(),{arrowFunctionExpression:ap,assignmentExpression:fi,binaryExpression:ip,blockStatement:dV,callExpression:Vi,conditionalExpression:mV,expressionStatement:DT,identifier:Me,isIdentifier:yV,jsxIdentifier:TV,logicalExpression:SV,LOGICAL_OPERATORS:gV,memberExpression:zt,metaProperty:xV,numericLiteral:bV,objectExpression:EV,restElement:PV,returnStatement:AV,sequenceExpression:vV,spreadElement:CV,stringLiteral:LT,super:sp,thisExpression:Bs,toExpression:MT,unaryExpression:IV,toBindingIdentifierName:wV,isFunction:NV,isAssignmentPattern:_V,isRestElement:OV,getFunctionName:kV,cloneNode:hi,variableDeclaration:DV,variableDeclarator:LV,exportNamedDeclaration:OT,exportSpecifier:kT,inherits:MV}=pV;function BV(){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||yV(e)&&(e=LT(e.name)),e}function FV(){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(AV(e.node))):(s="expression",r.push(DT(e.node)))),this.node.body=dV(r);let a=this.get(i);return hV.setup.call(e,a,n?a.node[n]:a.node,n,s),this.node}Pr.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression();};function RV(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");BT(this);}function jV(e,t){e.node.type=t;}function qV({allowInsertArrow:e=true,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(false))!=null?s:i;}let{thisBinding:n,fnPath:a}=BT(i,r,e,t);if(a.ensureBlock(),jV(a,"FunctionExpression"),!r){let o=n?null:a.scope.generateUidIdentifier("arrowCheckId");return o&&a.parentPath.scope.push({id:o,init:EV([])}),a.get("body").unshiftContainer("body",DT(Vi(this.hub.addHelper("newArrowCheck"),[Bs(),Me(o?o.name:n)]))),a.replaceWith(Vi(zt(a.node,Me("bind")),[o?Me(o.name):Bs()])),a.get("callee.object")}return a}var UV=(0, np.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e);}});function BT(e,t=true,r=true,i=true){let s,n=e.findParent(A=>A.isArrowFunctionExpression()?(s??(s=A),false):A.isFunction()||A.isProgram()||A.isClassProperty({static:false})||A.isClassPrivateProperty({static:false})),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(s)n=s;else if(r)e.replaceWith(Vi(ap([],MT(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:c,superProps:f,superCalls:g}=HV(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(UV,{allSuperCalls:A});let v=WV(n);A.forEach(O=>{let w=Me(v);w.loc=O.node.callee.loc,O.get("callee").replaceWith(w);});}if(l.length>0){let A=Fs(n,"arguments",()=>{let v=()=>Me("arguments");return n.scope.path.isProgram()?mV(ip("===",IV("typeof",v()),LT("undefined")),n.scope.buildUndefinedNode(),v()):v()});l.forEach(v=>{let O=Me(A);O.loc=v.node.loc,v.replaceWith(O);});}if(c.length>0){let A=Fs(n,"newtarget",()=>xV(Me("new"),Me("target")));c.forEach(v=>{let O=Me(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(VV(O)),[]).forEach(v=>{let O=v.node.computed?"":v.get("property").node.name,w=v.parentPath,_=w.isAssignmentExpression({left:v.node}),L=w.isCallExpression({callee:v.node}),ee=w.isTaggedTemplateExpression({tag:v.node}),W=XV(n,_,O),J=[];if(v.node.computed&&J.push(v.get("property").node),_){let Ce=w.node.right;J.push(Ce);}let ue=Vi(Me(W),J);L?(w.unshiftContainer("arguments",Bs()),v.replaceWith(zt(ue,Me("call"))),o.push(w.get("arguments.0"))):_?w.replaceWith(ue):ee?(v.replaceWith(Vi(zt(ue,Me("bind"),false),[Bs()])),o.push(v.get("arguments.0"))):v.replaceWith(ue);});}let E;return (o.length>0||!t)&&(E=JV(n,a),(t||a&&FT(n))&&(o.forEach(A=>{let v=A.isJSX()?TV(E):Me(E);v.loc=A.node.loc,A.replaceWith(v);}),t||(E=null))),{thisBinding:E,fnPath:e}}function KV(e){return gV.includes(e)}function VV(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=KV(i);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;r.get("left").replaceWith(zt(o,fi("=",a,l),true)),r.get("right").replaceWith(t(n?"=":i,zt(o,Me(a.name),true),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,Me(o.name)),s));}return n?r.replaceWith(SV(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,zt(e.node.object,s?fi("=",s,e.node.property):e.node.property,e.node.computed)),fi("=",zt(e.node.object,s?Me(s.name):e.node.property,e.node.computed),ip(e.parentPath.node.operator[0],Me(i.name),bV(1)))];e.parentPath.node.prefix||n.push(Me(i.name)),r.replaceWith(vV(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):ip(r,i,s)}}function FT(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var YV=(0, np.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,fi("=",Me(r),Me("this"))])));}});function JV(e,t){return Fs(e,"this",r=>{if(!t||!FT(e))return Bs();e.traverse(YV,{supers:new WeakSet,thisBinding:r});})}function WV(e){return Fs(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return ap([PV(t)],Vi(sp(),[CV(Me(t.name))]))})}function XV(e,t,r){return Fs(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let s=[],n;if(r)n=zt(sp(),Me(r));else {let a=e.scope.generateUidIdentifier("prop");s.unshift(a),n=zt(sp(),Me(a.name),true);}if(t){let a=e.scope.generateUidIdentifier("value");s.push(a),n=fi("=",n,Me(a.name));}return ap(s,n)})}function Fs(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 $V=(0, np.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 HV(e){let t=[],r=[],i=[],s=[],n=[];return e.traverse($V,{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}}function zV(){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=false;o?n&&a.hasBinding(o.name)&&(l=true,o=a.generateUidIdentifier(o.name)):(l=true,o=a.generateUidIdentifier("default"),(s||n)&&(e.node.id=hi(o)));let c=s?e.node:DV("var",[LV(hi(o),e.node)]),f=OT(null,[kT(hi(o),Me("default"))]);return this.insertAfter(f),this.replaceWith(c),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=>kT(Me(s),Me(s))),i=OT(null,r);return this.insertAfter(i),this.replaceWith(e.node),this}var GV={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=true,e.stop());},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip();}};function QV(e){if(this.node.id)return this;let t=kV(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=wV(r.replace(/[/ ]/g,"_"));let i=Me(r);MV(i,t.originalNode);let s={needsRename:false,name:r},{scope:n}=this,a=n.getOwnBinding(r);if(a?a.kind==="param"&&(s.needsRename=true):(n.parent.hasBinding(r)||n.hasGlobal(r))&&this.traverse(GV,s),!s.needsRename)return this.node.id=i,n.getProgramParent().references[i.name]=true,this;if(n.hasBinding(i.name)&&!n.hasGlobal(i.name))return n.rename(i.name),this.node.id=i,n.getProgramParent().references[i.name]=true,this;if(!NV(this.node))return null;let o=n.generateUidIdentifier(i.name),l=[];for(let f=0,g=ZV(this.node);f<g;f++)l.push(n.generateUidIdentifier("x"));let c=fV.default.expression.ast`
43
- (function (${o}) {
44
- function ${i}(${l}) {
45
- return ${hi(o)}.apply(this, arguments);
46
- }
47
-
48
- ${hi(i)}.toString = function () {
49
- return ${hi(o)}.toString();
50
- }
51
-
52
- return ${hi(i)};
53
- })(${MT(this.node)})
54
- `;return this.replaceWith(c)[0].get("arguments.0")}function ZV(e){let t=e.params.findIndex(r=>_V(r)||OV(r));return t===-1?e.params.length:t}});var YT=C(He=>{Object.defineProperty(He,"__esModule",{value:true});He._guessExecutionStatusRelativeTo=xY;He._resolve=VT;He.canHaveVariableDeclarationOrExpression=fY;He.canSwapBetweenExpressionAndStatement=hY;He.getSource=TY;He.isCompletionRecord=dY;He.isConstantExpression=AY;He.isInStrictMode=vY;He.isNodeType=pY;He.isStatementOrBlock=mY;He.isStatic=cY;He.matchesPattern=uY;He.referencesImport=yY;He.resolve=PY;He.willIMaybeExecuteBefore=SY;var eY=he(),{STATEMENT_OR_BLOCK_KEYS:tY,VISITOR_KEYS:rY,isBlockStatement:KT,isExpression:iY,isIdentifier:sY,isLiteral:nY,isStringLiteral:aY,isType:oY,matchesPattern:lY}=eY;function uY(e,t){return lY(this.node,e,t)}He.has=function(t){var r;let i=(r=this.node)==null?void 0:r[t];return i&&Array.isArray(i)?!!i.length:!!i};function cY(){return this.scope.isStatic(this.node)}He.is=He.has;He.isnt=function(t){return !this.has(t)};He.equals=function(t,r){return this.node[t]===r};function pY(e){return oY(this.type,e)}function fY(){return (this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function hY(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?false:this.isExpression()?KT(e):this.isBlockStatement()?iY(e):false}function dY(e){let t=this,r=true;do{let{type:i,container:s}=t;if(!r&&(t.isFunction()||i==="StaticBlock"))return !!e;if(r=false,Array.isArray(s)&&t.key!==s.length-1)return false}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return true}function mY(){return this.parentPath.isLabeledStatement()||KT(this.container)?false:tY.includes(this.key)}function yY(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?aY(this.node.property,{value:t}):this.node.property.name===t)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(e,"*")}return false}let r=this.scope.getBinding(this.node.name);if(r?.kind!=="module")return false;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return false;if(s.node.source.value===e){if(!t)return true}else return false;return !!(i.isImportDefaultSpecifier()&&t==="default"||i.isImportNamespaceSpecifier()&&t==="*"||i.isImportSpecifier()&&sY(i.node.imported,{name:t}))}function TY(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return ""}function SY(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function jT(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function gY(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 false}}function qT(e,t){for(let r=0;r<t;r++){let i=e[r];if(gY(i.parent.type,i.parentKey))return true}return false}var UT=Symbol();function xY(e){return op(this,e,new Map)}function op(e,t,r){let i={this:jT(e),target:jT(t)};if(i.target.node!==i.this.node)return EY(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(qT(s.this,a.this-1)||qT(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=rY[n.type],c={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return c.target>c.this?"before":"after"}function bY(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return "unknown"}else return op(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(c=>c.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return "unknown";let l=op(e,a,r);if(n&&n!==l)return "unknown";n=l;}return n}function EY(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===UT?"unknown":s;i.set(t.node,UT);let n=bY(e,t,r);return i.set(t.node,n),n}function PY(e,t){return VT.call(this,e,t)||this}function VT(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(!nY(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"),c=o.isnt("computed")&&l.isIdentifier({name:s});if(c=c||l.isLiteral({value:s}),c)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 AY(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:false}if(this.isLiteral())return this.isRegExpLiteral()?false:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):true;if(this.isUnaryExpression())return this.node.operator!=="void"?false: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:true}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:true})&&this.get("arguments")[0].isStringLiteral():false}function vY(){return !!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return true;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return false;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return false;for(let s of i.directives)if(s.value.value==="use strict")return true;return false})}});var HT=C(pt=>{Object.defineProperty(pt,"__esModule",{value:true});pt._getKey=XT;pt._getPattern=$T;pt.get=KY;pt.getAllNextSiblings=qY;pt.getAllPrevSiblings=UY;pt.getAssignmentIdentifiers=VY;pt.getBindingIdentifierPaths=WY;pt.getBindingIdentifiers=YY;pt.getCompletionRecords=BY;pt.getNextSibling=jY;pt.getOpposite=DY;pt.getOuterBindingIdentifierPaths=XY;pt.getOuterBindingIdentifiers=JY;pt.getPrevSibling=RY;pt.getSibling=FY;var up=Er(),CY=he(),{getAssignmentIdentifiers:IY,getBindingIdentifiers:WT,getOuterBindingIdentifiers:wY,numericLiteral:NY,unaryExpression:_Y}=CY,cp=0,Rs=1;function OY(e){return {type:cp,path:e}}function kY(e){return {type:Rs,path:e}}function DY(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Yi(e,t,r){return e&&t.push(...Ji(e,r)),t}function LY(e,t,r){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Ji(n,r),o=[],l=[];for(let c of a)c.type===cp&&o.push(c),c.type===Rs&&l.push(c);o.length&&(i=o),t.push(...l);}return t.push(...i),t}function MY(e){e.forEach(t=>{t.type=Rs;});}function lp(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(_Y("void",NY(0))):r.path.remove());});}function JT(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:false});n.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=true:a.shouldPopulateBreak=false;let o=Ji(n,a);if(o.length>0&&o.every(l=>l.type===Rs)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(MY(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),t.shouldPreserveBreak||lp(o,true)),t.shouldPreserveBreak||lp(o,false)):(r.push(...o),!t.shouldPopulateBreak&&!t.shouldPreserveBreak&&lp(o,true));break}if(s===e.length-1)r.push(...o);else {i=[];for(let l=0;l<o.length;l++){let c=o[l];c.type===Rs&&r.push(c),c.type===cp&&i.push(c);}}}}else if(e.length)for(let i=e.length-1;i>=0;i--){let s=Ji(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 Ji(e,t){let r=[];if(e.isIfStatement())r=Yi(e.get("consequent"),r,t),r=Yi(e.get("alternate"),r,t);else {if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return Yi(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return JT(e.get("body"),t);if(e.isFunction())return Ji(e.get("body"),t);if(e.isTryStatement())r=Yi(e.get("block"),r,t),r=Yi(e.get("handler"),r,t);else {if(e.isCatchClause())return Yi(e.get("body"),r,t);if(e.isSwitchStatement())return LY(e.get("cases"),r,t);if(e.isSwitchCase())return JT(e.get("consequent"),{canHaveBreak:true,shouldPopulateBreak:false,inCaseClause:true,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(kY(e)):r.push(OY(e));}}return r}function BY(e=false){return Ji(this,{canHaveBreak:false,shouldPopulateBreak:false,inCaseClause:false,shouldPreserveBreak:e}).map(r=>r.path)}function FY(e){return up.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function RY(){return this.getSibling(this.key-1)}function jY(){return this.getSibling(this.key+1)}function qY(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function UY(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function KY(e,t=true){t===true&&(t=this.context);let r=e.split(".");return r.length===1?XT.call(this,e,t):$T.call(this,r,t)}function XT(e,t){let r=this.node,i=r[e];return Array.isArray(i)?i.map((s,n)=>up.default.get({listKey:e,parentPath:this,parent:r,container:i,key:n}).setContext(t)):up.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function $T(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 VY(){return IY(this.node)}function YY(e){return WT(this.node,e)}function JY(e){return wY(this.node,e)}function WY(e=false,t=false){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=WT.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],c=n.get(l);Array.isArray(c)?i.push(...c):c.node&&i.push(c);}}return s}function XY(e=false){return this.getBindingIdentifierPaths(e,true)}});var GT=C(js=>{Object.defineProperty(js,"__esModule",{value:true});js.addComment=QY;js.addComments=ZY;js.shareCommentsWithSiblings=GY;var $Y=he(),{addComment:HY,addComments:zY}=$Y;function GY(){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",zT(r,i.node.trailingComments)),t&&!a&&i.addComments("trailing",t)),a&&(t&&s.addComments("leading",zT(t,s.node.leadingComments)),r&&!n&&s.addComments("leading",r));}function zT(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(i=>!r.has(i))}function QY(e,t,r){HY(this.node,e,t,r);}function ZY(e,t){zY(this.node,e,t);}});var Er=C(fr=>{Object.defineProperty(fr,"__esModule",{value:true});fr.default=fr.SHOULD_STOP=fr.SHOULD_SKIP=fr.REMOVED=void 0;var eJ=cc(),tJ=Im(),rJ=qi(),iJ=Ec(),eS=he(),ba=eS,sJ=oi(),nJ=Iu(),cr=fy(),Wi=ky(),Xi=Lc(),QT=TT(),di=RT(),Qe=YT(),tS=Ut(),ze=tS,$i=fa(),pr=ha(),Et=HT(),pp=GT(),aJ=mc(),{validate:oJ}=eS,ZT=tJ("babel");fr.REMOVED=1;fr.SHOULD_STOP=2;fr.SHOULD_SKIP=4;var Ar=fr.default=class rS{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=sJ.getOrCreateCachedPaths(i,r),c=l.get(o);return c||(c=new rS(t,i),o&&l.set(o,c)),tS.setup.call(c,r,s,n,a),c}getScope(t){return this.isScope()?new iJ.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, rJ.default)(this.node,t,this.scope,r,this);}set(t,r){oJ(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){ZT.enabled&&ZT(`${this.getPathLocation()} ${this.type}: ${t}`);}toString(){return (0, nJ.default)(this.node).code}get inList(){return !!this.listKey}set inList(t){t||(this.listKey=null);}get parentKey(){return this.listKey||this.key}},lJ={findParent:cr.findParent,find:cr.find,getFunctionParent:cr.getFunctionParent,getStatementParent:cr.getStatementParent,getEarliestCommonAncestorFrom:cr.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:cr.getDeepestCommonAncestorFrom,getAncestry:cr.getAncestry,isAncestor:cr.isAncestor,isDescendant:cr.isDescendant,inType:cr.inType,getTypeAnnotation:Wi.getTypeAnnotation,isBaseType:Wi.isBaseType,couldBeBaseType:Wi.couldBeBaseType,baseTypeStrictlyMatches:Wi.baseTypeStrictlyMatches,isGenericType:Wi.isGenericType,replaceWithMultiple:Xi.replaceWithMultiple,replaceWithSourceString:Xi.replaceWithSourceString,replaceWith:Xi.replaceWith,replaceExpressionWithStatements:Xi.replaceExpressionWithStatements,replaceInline:Xi.replaceInline,evaluateTruthy:QT.evaluateTruthy,evaluate:QT.evaluate,toComputedKey:di.toComputedKey,ensureBlock:di.ensureBlock,unwrapFunctionEnvironment:di.unwrapFunctionEnvironment,arrowFunctionToExpression:di.arrowFunctionToExpression,splitExportDeclaration:di.splitExportDeclaration,ensureFunctionName:di.ensureFunctionName,matchesPattern:Qe.matchesPattern,isStatic:Qe.isStatic,isNodeType:Qe.isNodeType,canHaveVariableDeclarationOrExpression:Qe.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:Qe.canSwapBetweenExpressionAndStatement,isCompletionRecord:Qe.isCompletionRecord,isStatementOrBlock:Qe.isStatementOrBlock,referencesImport:Qe.referencesImport,getSource:Qe.getSource,willIMaybeExecuteBefore:Qe.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:Qe._guessExecutionStatusRelativeTo,resolve:Qe.resolve,isConstantExpression:Qe.isConstantExpression,isInStrictMode:Qe.isInStrictMode,isDenylisted:ze.isDenylisted,visit:ze.visit,skip:ze.skip,skipKey:ze.skipKey,stop:ze.stop,setContext:ze.setContext,requeue:ze.requeue,requeueComputedKeyAndDecorators:ze.requeueComputedKeyAndDecorators,remove:$i.remove,insertBefore:pr.insertBefore,insertAfter:pr.insertAfter,unshiftContainer:pr.unshiftContainer,pushContainer:pr.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:pp.shareCommentsWithSiblings,addComment:pp.addComment,addComments:pp.addComments};Object.assign(Ar.prototype,lJ);Ar.prototype.arrowFunctionToShadowed=di.arrowFunctionToShadowed;Object.assign(Ar.prototype,{has:Qe.has,is:Qe.is,isnt:Qe.isnt,equals:Qe.equals,hoist:pr.hoist,updateSiblingKeys:pr.updateSiblingKeys,call:ze.call,isBlacklisted:ze.isBlacklisted,setScope:ze.setScope,resync:ze.resync,popContext:ze.popContext,pushContext:ze.pushContext,setup:ze.setup,setKey:ze.setKey});Ar.prototype._guessExecutionStatusRelativeToDifferentFunctions=Qe._guessExecutionStatusRelativeTo;Ar.prototype._guessExecutionStatusRelativeToDifferentFunctions=Qe._guessExecutionStatusRelativeTo;Object.assign(Ar.prototype,{_getTypeAnnotation:Wi._getTypeAnnotation,_replaceWith:Xi._replaceWith,_resolve:Qe._resolve,_call:ze._call,_resyncParent:ze._resyncParent,_resyncKey:ze._resyncKey,_resyncList:ze._resyncList,_resyncRemoved:ze._resyncRemoved,_getQueueContexts:ze._getQueueContexts,_removeFromScope:$i._removeFromScope,_callRemovalHooks:$i._callRemovalHooks,_remove:$i._remove,_markRemoved:$i._markRemoved,_assertUnremoved:$i._assertUnremoved,_containerInsert:pr._containerInsert,_containerInsertBefore:pr._containerInsertBefore,_containerInsertAfter:pr._containerInsertAfter,_verifyNodeList:pr._verifyNodeList,_getKey:Et._getKey,_getPattern:Et._getPattern});for(let e of ba.TYPES){let t=`is${e}`,r=ba[t];Ar.prototype[t]=function(i){return r(this.node,i)},Ar.prototype[`assert${e}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${e}`)};}Object.assign(Ar.prototype,aJ);for(let e of Object.keys(eJ))e.startsWith("_")||ba.TYPES.includes(e)||ba.TYPES.push(e);});var hp=C(Ea=>{Object.defineProperty(Ea,"__esModule",{value:true});Ea.default=void 0;var fp=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,i=TypeError){return new i(r)}};Ea.default=fp;});var iS=C(Pa=>{Object.defineProperty(Pa,"__esModule",{value:true});Pa.default=void 0;var uJ=Er(),cJ=he(),dp=Ut(),pJ=hp(),{VISITOR_KEYS:fJ}=cJ,mp=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 true;let i=fJ[t.type];if(!(i!=null&&i.length))return false;for(let s of i)if(t[s])return true;return false}create(t,r,i,s){let{parentPath:n}=this,a=n==null?t.type==="Program"||t.type==="File"?new pJ.default:void 0:n.hub;return uJ.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 false;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)]):false}visitQueue(t){this.queue=t,this.priorityQueue=[];let r=new WeakSet,i=false,s=0;for(;s<t.length;){let n=t[s];if(s++,dp.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&dp.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=true;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=t,i))break}}for(let n=0;n<s;n++)dp.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):false}};Pa.default=mp;});var ea=C(yp=>{Object.defineProperty(yp,"__esModule",{value:true});yp.traverseNode=yJ;var hJ=iS();Er();var dJ=he();Ut();var {VISITOR_KEYS:mJ}=dJ;function yJ(e,t,r,i,s,n,a){let o=mJ[e.type];if(!o)return false;let l=new hJ.default(r,t,i,s);if(a)return n!=null&&n[s.parentKey]?false:l.visitQueue([s]);for(let c of o)if(!(n!=null&&n[c])&&l.visit(e,c))return true;return false}});var Ut=C(Ye=>{Object.defineProperty(Ye,"__esModule",{value:true});Ye._call=Sp;Ye._forceSetScope=AJ;Ye._getQueueContexts=DJ;Ye._resyncKey=uS;Ye._resyncList=cS;Ye._resyncParent=lS;Ye._resyncRemoved=IJ;Ye.call=Tp;Ye.isDenylisted=aS;Ye.popContext=wJ;Ye.pushContext=NJ;Ye.requeue=OJ;Ye.requeueComputedKeyAndDecorators=kJ;Ye.resync=CJ;Ye.setContext=vJ;Ye.setKey=Aa;Ye.setScope=oS;Ye.setup=_J;Ye.skip=bJ;Ye.skipKey=EJ;Ye.stop=PJ;Ye.visit=xJ;var TJ=ea(),sS=Er(),SJ=fa(),gJ=he();function Tp(e){let t=this.opts;if(this.debug(e),this.node&&Sp.call(this,t[e]))return true;if(this.node){var r;return Sp.call(this,(r=t[this.node.type])==null?void 0:r[e])}return false}function Sp(e){if(!e)return false;for(let t of e){if(!t)continue;let r=this.node;if(!r)return true;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 true}return false}function aS(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t?.includes(this.node.type)}Ye.isBlacklisted=aS;function nS(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts);}function xJ(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return false;let r=this.context;return this.shouldSkip||Tp.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(nS(this,r),this.debug("Recursing into..."),this.shouldStop=(0, TJ.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),nS(this,r),Tp.call(this,"exit"),this.shouldStop)}function bJ(){this.shouldSkip=true;}function EJ(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=true;}function PJ(){this._traverseFlags|=sS.SHOULD_SKIP|sS.SHOULD_STOP;}function AJ(){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 oS(){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 vJ(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),oS.call(this),this}function CJ(){this.removed||(lS.call(this),cS.call(this),uS.call(this));}function lS(){this.parentPath&&(this.parent=this.parentPath.node);}function uS(){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){Aa.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){Aa.call(this,e);return}this.key=null;}}function cS(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null);}function IJ(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&SJ._markRemoved.call(this);}function wJ(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0);}function NJ(e){this.contexts.push(e),this.setContext(e);}function _J(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,Aa.call(this,i);}function Aa(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type;}function OJ(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e);}function kJ(){let{context:e,node:t}=this;if(!gJ.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r);}function DJ(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var qi=C(vr=>{Object.defineProperty(vr,"__esModule",{value:true});Object.defineProperty(vr,"Hub",{enumerable:true,get:function(){return RJ.default}});Object.defineProperty(vr,"NodePath",{enumerable:true,get:function(){return BJ.default}});Object.defineProperty(vr,"Scope",{enumerable:true,get:function(){return FJ.default}});vr.visitors=vr.default=void 0;Ut();var Us=_s();vr.visitors=Us;var LJ=he(),MJ=oi(),pS=ea(),BJ=Er(),FJ=Ec(),RJ=hp(),{VISITOR_KEYS:jJ,removeProperties:qJ,traverseFast:qs}=LJ;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.");jJ[e.type]&&(Us.explode(t),(0, pS.traverseNode)(e,t,r,i,s,void 0,n));}}vr.default=Gt;Gt.visitors=Us;Gt.verify=Us.verify;Gt.explode=Us.explode;Gt.cheap=function(e,t){qs(e,t);};Gt.node=function(e,t,r,i,s,n){(0, pS.traverseNode)(e,t,r,i,s,n);};Gt.clearNode=function(e,t){qJ(e,t);};Gt.removeProperties=function(e,t){return qs(e,Gt.clearNode,t),e};Gt.hasType=function(e,t,r){return r!=null&&r.includes(e.type)?false:e.type===t?true:qs(e,function(i){if(r!=null&&r.includes(i.type))return qs.skip;if(i.type===t)return qs.stop})};Gt.cache=MJ;});var IS=url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))),wS=Ti.dirname(IS),Op="@amaster/bridge-monitor",_p="\0"+Op,Ys=null;function NS(){if(Ys)return Ys;try{let e=Ti.resolve(wS,"../dist/bridge-module.global.js");return Ys=Js.readFileSync(e,"utf-8"),Ys}catch(e){return console.warn("[editor-bridge] Failed to load pre-built bridge module:",e),""}}function _S(){return '<script type="module" src="/@id/@amaster/bridge-monitor"></script>'}function OS(e){return NS().replace(/__SESSION_KEY__/g,e)+`
55
- export default {};`}function kp(){let e=false;return {name:"vite-plugin-editor-bridge",configResolved(t){e=t.command==="serve";},resolveId(t){if(t===Op)return _p},load(t){if(t===_p){let r=process.env.VITE_AMASTER_KEY||"";return OS(r)}},transformIndexHtml(t){if(!e)return t;let r=_S();return t.replace("</body>",`${r}</body>`)}}}function Dp(e){let t=false,r=e?.routesFilePath||"src/routes.tsx";return {name:"vite-plugin-routes-expose",enforce:"post",configResolved(i){t=i.command==="serve";},transform(i,s){if(!t||!s.endsWith(r))return null;try{return i.includes("window.__APP_ROUTES__")?null:{code:`${i}
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var y=require('fs'),d=require('path'),url=require('url'),A=require('process'),w=require('fs/promises'),k=require('@babel/generator'),parser=require('@babel/parser'),L=require('@babel/traverse');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var y__default=/*#__PURE__*/_interopDefault(y);var d__default=/*#__PURE__*/_interopDefault(d);var A__default=/*#__PURE__*/_interopDefault(A);var w__default=/*#__PURE__*/_interopDefault(w);var k__default=/*#__PURE__*/_interopDefault(k);var L__default=/*#__PURE__*/_interopDefault(L);var F=url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))),U=d.dirname(F),P="@amaster/bridge-monitor",T="\0"+P,m=null;function z(){if(m)return m;try{let e=d.resolve(U,"../dist/bridge-module.global.js");return m=y.readFileSync(e,"utf-8"),m}catch(e){return console.warn("[editor-bridge] Failed to load pre-built bridge module:",e),""}}function W(){return '<script type="module" src="/@id/@amaster/bridge-monitor"></script>'}function X(e){return z().replace(/__SESSION_KEY__/g,e)+`
2
+ export default {};`}function C(){let e=false;return {name:"vite-plugin-editor-bridge",configResolved(n){e=n.command==="serve";},resolveId(n){if(n===P)return T},load(n){if(n===T){let r=process.env.VITE_AMASTER_KEY||"";return X(r)}},transformIndexHtml(n){if(!e)return n;let r=W();return n.replace("</body>",`${r}</body>`)}}}function I(e){let n=false,r=e?.routesFilePath||"src/routes.tsx";return {name:"vite-plugin-routes-expose",enforce:"post",configResolved(t){n=t.command==="serve";},transform(t,o){if(!n||!o.endsWith(r))return null;try{return t.includes("window.__APP_ROUTES__")?null:{code:`${t}
56
3
 
57
4
  // Development mode: Expose routes to window.__APP_ROUTES__
58
5
  if (typeof window !== 'undefined') {
59
6
  window.__APP_ROUTES__ = typeof routes !== 'undefined' && Array.isArray(routes) ? routes : [];
60
7
  }
61
- `,map:null}}catch{return null}}}}function Mp(){let e="",t=`
8
+ `,map:null}}catch{return null}}}}function j(){let e="",n=`
62
9
  <script>
63
10
  (function() {
64
11
  'use strict';
@@ -749,8 +696,8 @@ if (typeof window !== 'undefined') {
749
696
 
750
697
  originalConsole.log('[BrowserLogs] Log collection started');
751
698
  })();
752
- </script>`;return {name:"vite-plugin-browser-logs",configResolved(r){let i=Lp__default.default.env.WORKSPACE_DIR;if(i)e=Ti__default.default.join(i,"browser.log");else {let s=r.root||Lp__default.default.cwd();for(;s!==Ti__default.default.dirname(s)&&!Js__default.default.existsSync(Ti__default.default.join(s,"package.json"));)s=Ti__default.default.dirname(s);e=Ti__default.default.join(s,"browser.log");}},configureServer(r){r.middlewares.use((i,s,n)=>{if(i.url==="/__browser__"&&i.method==="POST"){let a=i.headers.origin||"*",o="";i.on("data",l=>{o+=l.toString();}),i.on("end",()=>{try{let l=Ti__default.default.dirname(e);Js__default.default.existsSync(l)||Js__default.default.mkdirSync(l,{recursive:!0}),Js__default.default.appendFileSync(e,`${o}
753
- `,"utf-8"),s.writeHead(200,{"Content-Type":"application/json","Access-Control-Allow-Origin":a,"Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type"}),s.end(JSON.stringify({success:!0}));}catch(l){console.error("[BrowserLogs] Write error:",l),s.writeHead(500,{"Content-Type":"application/json","Access-Control-Allow-Origin":a,"Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type"}),s.end(JSON.stringify({success:false,error:String(l)}));}});}else if(i.url==="/__browser__"&&i.method==="OPTIONS"){let a=i.headers.origin||"*";s.writeHead(204,{"Access-Control-Allow-Origin":a,"Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type","Access-Control-Max-Age":"86400"}),s.end();}else if(i.url==="/__browser__"){let a=i.headers.origin||"*";s.writeHead(405,{"Content-Type":"application/json","Access-Control-Allow-Origin":a}),s.end(JSON.stringify({error:"Method not allowed"}));}else n();}),console.log("[BrowserLogs] Logs will be written to:",e);},transformIndexHtml(r){return r.replace(/<head([^>]*)>/i,`<head$1>${t}`)}}}var kS=`
699
+ </script>`;return {name:"vite-plugin-browser-logs",configResolved(r){let t=A__default.default.env.WORKSPACE_DIR;if(t)e=d__default.default.join(t,"browser.log");else {let o=r.root||A__default.default.cwd();for(;o!==d__default.default.dirname(o)&&!y__default.default.existsSync(d__default.default.join(o,"package.json"));)o=d__default.default.dirname(o);e=d__default.default.join(o,"browser.log");}},configureServer(r){r.middlewares.use((t,o,l)=>{if(t.url==="/__browser__"&&t.method==="POST"){let i=t.headers.origin||"*",c="";t.on("data",u=>{c+=u.toString();}),t.on("end",()=>{try{let u=d__default.default.dirname(e);y__default.default.existsSync(u)||y__default.default.mkdirSync(u,{recursive:!0}),y__default.default.appendFileSync(e,`${c}
700
+ `,"utf-8"),o.writeHead(200,{"Content-Type":"application/json","Access-Control-Allow-Origin":i,"Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type"}),o.end(JSON.stringify({success:!0}));}catch(u){console.error("[BrowserLogs] Write error:",u),o.writeHead(500,{"Content-Type":"application/json","Access-Control-Allow-Origin":i,"Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type"}),o.end(JSON.stringify({success:false,error:String(u)}));}});}else if(t.url==="/__browser__"&&t.method==="OPTIONS"){let i=t.headers.origin||"*";o.writeHead(204,{"Access-Control-Allow-Origin":i,"Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type","Access-Control-Max-Age":"86400"}),o.end();}else if(t.url==="/__browser__"){let i=t.headers.origin||"*";o.writeHead(405,{"Content-Type":"application/json","Access-Control-Allow-Origin":i}),o.end(JSON.stringify({error:"Method not allowed"}));}else l();}),console.log("[BrowserLogs] Logs will be written to:",e);},transformIndexHtml(r){return r.replace(/<head([^>]*)>/i,`<head$1>${n}`)}}}var J=`
754
701
  import * as React from "react";
755
702
  import * as ReactJSXDevRuntime from "react/jsx-dev-runtime";
756
703
 
@@ -932,14 +879,14 @@ export function jsxDEV(type, props, key, isStatic, source, self) {
932
879
 
933
880
  return _jsxDEV(type, props, key, isStatic, source, self);
934
881
  }
935
- `;function Na(){let e=false,t="";return {name:"vite-plugin-jsx-source-tagger",enforce:"pre",configResolved(r){e=r.command==="serve",t=r.root;},resolveId(r,i){return e&&r==="react/jsx-dev-runtime"&&!i?.includes("\0jsx-source")?"\0jsx-source/jsx-dev-runtime":null},load(r){return e&&r==="\0jsx-source/jsx-dev-runtime"?kS.replace('const PROJECT_ROOT = "";',`const PROJECT_ROOT = ${JSON.stringify(t)};`):null}}}function ka(e){let t="",r=false,i=null,s=null,n=e?.configPath||"./tailwind.config.ts",a="@amaster/tailwind-config",o="\0"+a,l=async()=>{let f=Ti__default.default.resolve(t,n);try{return await _a__default.default.access(f),f}catch{if(n.endsWith(".ts")){let g=f.replace(/\.ts$/,".js");try{return await _a__default.default.access(g),g}catch{return null}}else if(n.endsWith(".js")){let g=f.replace(/\.js$/,".ts");try{return await _a__default.default.access(g),g}catch{return null}}return null}},c=async f=>{try{let g=await l();if(!g)return null;if(f){let O=await f.ssrLoadModule(g);return i=O.default||O,i}let A=await import(`file://${g}?t=${Date.now()}`);return i=A.default||A,i}catch(g){return console.error("[tailwind-config-sync] Failed to generate config:",g),null}};return {name:"vite-plugin-tailwind-config-sync",configResolved(f){t=f.root,r=f.command==="serve";},async buildStart(){r&&await c();},resolveId(f){if(f===a)return o},async load(f){if(f===o)return await c(s),i?`
882
+ `;function S(){let e=false,n="";return {name:"vite-plugin-jsx-source-tagger",enforce:"pre",configResolved(r){e=r.command==="serve",n=r.root;},resolveId(r,t){return e&&r==="react/jsx-dev-runtime"&&!t?.includes("\0jsx-source")?"\0jsx-source/jsx-dev-runtime":null},load(r){return e&&r==="\0jsx-source/jsx-dev-runtime"?J.replace('const PROJECT_ROOT = "";',`const PROJECT_ROOT = ${JSON.stringify(n)};`):null}}}function b(e){let n="",r=false,t=null,o=null,l=e?.configPath||"./tailwind.config.ts",i="@amaster/tailwind-config",c="\0"+i,u=async()=>{let a=d__default.default.resolve(n,l);try{return await w__default.default.access(a),a}catch{if(l.endsWith(".ts")){let s=a.replace(/\.ts$/,".js");try{return await w__default.default.access(s),s}catch{return null}}else if(l.endsWith(".js")){let s=a.replace(/\.js$/,".ts");try{return await w__default.default.access(s),s}catch{return null}}return null}},v=async a=>{try{let s=await u();if(!s)return null;if(a){let O=await a.ssrLoadModule(s);return t=O.default||O,t}let f=await import(`file://${s}?t=${Date.now()}`);return t=f.default||f,t}catch(s){return console.error("[tailwind-config-sync] Failed to generate config:",s),null}};return {name:"vite-plugin-tailwind-config-sync",configResolved(a){n=a.root,r=a.command==="serve";},async buildStart(){r&&await v();},resolveId(a){if(a===i)return c},async load(a){if(a===c)return await v(o),t?`
936
883
  // Use global variable to persist callbacks and current config across HMR updates
937
884
  if (!window.__tailwindConfigCallbacks) {
938
885
  window.__tailwindConfigCallbacks = [];
939
886
  }
940
887
 
941
888
  // Always update current config with the latest from server
942
- let tailwindConfigCurrent = ${JSON.stringify(i)};
889
+ let tailwindConfigCurrent = ${JSON.stringify(t)};
943
890
 
944
891
  if (import.meta.hot) {
945
892
  // Accept self updates
@@ -969,14 +916,14 @@ export function onUpdate(fn) {
969
916
  };
970
917
  export default tailwindConfigCurrent;
971
918
 
972
- `:"export default null;"},configureServer(f){r&&(s=f,(async()=>{try{let g=await l();g&&f.watcher.add(g);}catch{}})());},async handleHotUpdate({file:f,server:g}){let E=await l();if(!E||Ti__default.default.normalize(f)!==Ti__default.default.normalize(E))return;let A=g.moduleGraph.getModuleById(E);A&&g.moduleGraph.invalidateModule(A),await c(g);let v=g.moduleGraph.getModuleById(o);return v?(g.moduleGraph.invalidateModule(v),[v]):[]}}}function Da(e={}){let{designWidth:t=375,maxWidth:r=750,baseFontSize:i=12,minRootSize:s=12,maxRootSize:n=24}=e;return {name:"vite-plugin-taro-style-adapter",apply:"serve",transformIndexHtml(a){let o=`
919
+ `:"export default null;"},configureServer(a){r&&(o=a,(async()=>{try{let s=await u();s&&a.watcher.add(s);}catch{}})());},async handleHotUpdate({file:a,server:s}){let p=await u();if(!p||d__default.default.normalize(a)!==d__default.default.normalize(p))return;let f=s.moduleGraph.getModuleById(p);f&&s.moduleGraph.invalidateModule(f),await v(s);let g=s.moduleGraph.getModuleById(c);return g?(s.moduleGraph.invalidateModule(g),[g]):[]}}}function x(e={}){let{designWidth:n=375,maxWidth:r=750,baseFontSize:t=12,minRootSize:o=12,maxRootSize:l=24}=e;return {name:"vite-plugin-taro-style-adapter",apply:"serve",transformIndexHtml(i){let c=`
973
920
  <script data-taro-flexible="true">
974
921
  (function() {
975
- var designWidth = ${t};
922
+ var designWidth = ${n};
976
923
  var maxWidth = ${r};
977
- var baseFontSize = ${i};
978
- var minRootSize = ${s};
979
- var maxRootSize = ${n};
924
+ var baseFontSize = ${t};
925
+ var minRootSize = ${o};
926
+ var maxRootSize = ${l};
980
927
 
981
928
  function setRootFontSize() {
982
929
  var docEl = document.documentElement;
@@ -1010,7 +957,7 @@ export default tailwindConfigCurrent;
1010
957
  document.addEventListener('DOMContentLoaded', setRootFontSize);
1011
958
  })();
1012
959
  </script>
1013
- `;return a.replace("</head>",`${o}
960
+ `;return i.replace("</head>",`${c}
1014
961
  <style data-taro-adapter="true">
1015
962
  /* \u4EC5 H5 \u751F\u6548\uFF1A\u9690\u85CF Taro \u9875\u9762\u5BB9\u5668\u6EDA\u52A8\u6761\uFF0C\u4F46\u4ECD\u53EF\u6EDA\u52A8 */
1016
963
  .taro_page {
@@ -1056,5 +1003,5 @@ export default tailwindConfigCurrent;
1056
1003
  object-fit: contain;
1057
1004
  }
1058
1005
  </style>
1059
- </head>`)}}}function Ws(e={}){let{ratio:t=2}=e;return {postcssPlugin:"postcss-rpx2px",Declaration(r){r.value?.includes("rpx")&&(r.value=r.value.replace(/(-?\d*\.?\d+)rpx/gi,(i,s)=>{let n=parseFloat(s)/t;return n===0?"0":`${n}px`}));}}}Ws.postcss=true;var gp=wa(Iu()),fS=wa(Wn()),xp=wa(qi()),UJ=/(-?\d*\.?\d+)rpx/gi,KJ=gp.default.default??gp.default,VJ=xp.default.default??xp.default;function bp(e,t){return e.replace(UJ,(r,i)=>{let s=Number.parseFloat(i)/t;return s===0?"0":`${s}px`})}function YJ(e,t){if(!e.value.includes("rpx"))return false;let r=bp(e.value,t);return r===e.value?false:(e.value=r,e.extra?.raw&&(e.extra.rawValue=r,e.extra.raw=JSON.stringify(r)),true)}function JJ(e,t){let r=e.value.raw;if(!r.includes("rpx"))return false;let i=bp(r,t),s=e.value.cooked==null?void 0:bp(e.value.cooked,t);return i===r&&s===e.value.cooked?false:(e.value.raw=i,e.value.cooked=s,true)}function WJ(e){return e.name.type==="JSXIdentifier"&&e.name.name==="style"}function XJ(e,t){let r=false;return e.traverse({StringLiteral(i){YJ(i.node,t)&&(r=true);},TemplateElement(i){JJ(i.node,t)&&(r=true);}}),r}function hS(e,t=2){let r=(0, fS.parse)(e,{sourceType:"module",plugins:["jsx","typescript"],errorRecovery:true}),i=false;return VJ(r,{JSXAttribute(s){if(!WJ(s.node)||s.node.value?.type!=="JSXExpressionContainer")return;let n=s.get("value");n.isJSXExpressionContainer()&&XJ(n,t)&&(i=true);}}),i?{changed:true,code:KJ(r,{retainLines:true,decoratorsBeforeExport:true,jsescOption:{minimal:true}},e).code}:{changed:false,code:e}}function Ep(e={}){let{ratio:t=2}=e;return {name:"vite-plugin-jsx-inline-style-rpx",enforce:"pre",transform(r,i){if(process.env.TARO_ENV!=="h5"||!/\.[jt]sx($|\?)/.test(i))return null;let s=hS(r,t);return s.changed?{code:s.code,map:null}:null}}}function $J(e={}){let{additional:t=[],autoInjectTaroApp:r=true,autoInjectVite:i=true}=e,s={},n=new Set(t);return r&&Object.keys(process.env).forEach(a=>{a.startsWith("TARO_APP_")&&n.add(a);}),i&&Object.keys(process.env).forEach(a=>{a.startsWith("VITE_")&&n.add(a);}),n.forEach(a=>{let o=process.env[a]||"";s[`process.env.${a}`]=JSON.stringify(o);}),s}function HJ(){return {"process.env.TARO_APP_API_BASE_URL":JSON.stringify(process.env.TARO_APP_API_BASE_URL||""),"process.env.VITE_API_BASE_URL":JSON.stringify(process.env.VITE_API_BASE_URL||"")}}function zJ(e={}){let t=e.isTaro??Lp__default.default.env.TARO_ENV==="h5",r=[kp(),Dp()];return e.jsxSourceTagger!==false&&r.push(Na()),e.tailwindConfigSync!==false&&r.push(ka({configPath:e.tailwindConfigPath})),t&&(r.unshift(Ep()),r.unshift(Da(e.styleAdapter)),r.unshift({name:"dev-postcss-rpx2px-plugin",apply:"serve",config(i){typeof i.css?.postcss=="object"&&i.css?.postcss.plugins?.unshift(Ws());}})),Lp__default.default.env.WORKSPACE_GIT_REPO&&r.push(Mp()),r}exports.default=zJ;exports.editorBridgePlugin=kp;exports.injectAmasterEnv=HJ;exports.injectTaroEnv=$J;exports.jsxInlineStyleRpxPlugin=Ep;exports.jsxSourceTaggerPlugin=Na;exports.routesExposePlugin=Dp;exports.rpx2pxPlugin=Ws;exports.tailwindConfigSyncPlugin=ka;exports.taroStyleAdapterPlugin=Da;exports.transformJsxInlineStyleRpx=hS;//# sourceMappingURL=index.cjs.map
1006
+ </head>`)}}}function h(e={}){let{ratio:n=2}=e;return {postcssPlugin:"postcss-rpx2px",Declaration(r){r.value?.includes("rpx")&&(r.value=r.value.replace(/(-?\d*\.?\d+)rpx/gi,(t,o)=>{let l=parseFloat(o)/n;return l===0?"0":`${l}px`}));}}}h.postcss=true;var $=/(-?\d*\.?\d+)rpx/gi,K=k__default.default.default??k__default.default,Y=L__default.default.default??L__default.default;function E(e,n){return e.replace($,(r,t)=>{let o=Number.parseFloat(t)/n;return o===0?"0":`${o}px`})}function G(e,n){if(!e.value.includes("rpx"))return false;let r=E(e.value,n);return r===e.value?false:(e.value=r,e.extra?.raw&&(e.extra.rawValue=r,e.extra.raw=JSON.stringify(r)),true)}function Q(e,n){let r=e.value.raw;if(!r.includes("rpx"))return false;let t=E(r,n),o=e.value.cooked==null?void 0:E(e.value.cooked,n);return t===r&&o===e.value.cooked?false:(e.value.raw=t,e.value.cooked=o,true)}function Z(e){return e.name.type==="JSXIdentifier"&&e.name.name==="style"}function ee(e,n){let r=false;return e.traverse({StringLiteral(t){G(t.node,n)&&(r=true);},TemplateElement(t){Q(t.node,n)&&(r=true);}}),r}function D(e,n=2){let r=parser.parse(e,{sourceType:"module",plugins:["jsx","typescript"],errorRecovery:true}),t=false;return Y(r,{JSXAttribute(o){if(!Z(o.node)||o.node.value?.type!=="JSXExpressionContainer")return;let l=o.get("value");l.isJSXExpressionContainer()&&ee(l,n)&&(t=true);}}),t?{changed:true,code:K(r,{retainLines:true,decoratorsBeforeExport:true,jsescOption:{minimal:true}},e).code}:{changed:false,code:e}}function R(e={}){let{ratio:n=2}=e;return {name:"vite-plugin-jsx-inline-style-rpx",enforce:"pre",transform(r,t){if(process.env.TARO_ENV!=="h5"||!/\.[jt]sx($|\?)/.test(t))return null;let o=D(r,n);return o.changed?{code:o.code,map:null}:null}}}function re(e={}){let{additional:n=[],autoInjectTaroApp:r=true,autoInjectVite:t=true}=e,o={},l=new Set(n);return r&&Object.keys(process.env).forEach(i=>{i.startsWith("TARO_APP_")&&l.add(i);}),t&&Object.keys(process.env).forEach(i=>{i.startsWith("VITE_")&&l.add(i);}),l.forEach(i=>{let c=process.env[i]||"";o[`process.env.${i}`]=JSON.stringify(c);}),o}function te(){return {"process.env.TARO_APP_API_BASE_URL":JSON.stringify(process.env.TARO_APP_API_BASE_URL||""),"process.env.VITE_API_BASE_URL":JSON.stringify(process.env.VITE_API_BASE_URL||"")}}function ne(e={}){let n=e.isTaro??A__default.default.env.TARO_ENV==="h5",r=[C(),I()];return e.jsxSourceTagger!==false&&r.push(S()),e.tailwindConfigSync!==false&&r.push(b({configPath:e.tailwindConfigPath})),n&&(r.unshift(R()),r.unshift(x(e.styleAdapter)),r.unshift({name:"dev-postcss-rpx2px-plugin",apply:"serve",config(t){typeof t.css?.postcss=="object"&&t.css?.postcss.plugins?.unshift(h());}})),A__default.default.env.WORKSPACE_GIT_REPO&&r.push(j()),r}exports.default=ne;exports.editorBridgePlugin=C;exports.injectAmasterEnv=te;exports.injectTaroEnv=re;exports.jsxInlineStyleRpxPlugin=R;exports.jsxSourceTaggerPlugin=S;exports.routesExposePlugin=I;exports.rpx2pxPlugin=h;exports.tailwindConfigSyncPlugin=b;exports.taroStyleAdapterPlugin=x;exports.transformJsxInlineStyleRpx=D;//# sourceMappingURL=index.cjs.map
1060
1007
  //# sourceMappingURL=index.cjs.map