@unizap/unicss 1.1.36 → 1.1.37

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.
Files changed (2) hide show
  1. package/dist/index.js +47 -47
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@ var k=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Sh=k((mG,bh)=>
2
2
  globstar while`,e,b,r,E,v),this.matchOne(e.slice(b),r.slice(E),i))return this.debug("globstar found match!",b,l,v),!0;if(v==="."||v===".."||!s.dot&&v.charAt(0)==="."){this.debug("dot detected!",e,b,r,E);break}this.debug("globstar swallow a segment, and continue"),b++}return!!(i&&(this.debug(`
3
3
  >>> no match, partial?`,e,b,r,E),b===l))}let A;if(typeof u=="string"?(A=d===u,this.debug("string match",u,d,A)):(A=u.test(d),this.debug("pattern match",u,d,A)),!A)return!1}if(a===l&&o===c)return!0;if(a===l)return i;if(o===c)return a===l-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,ye.braceExpand)(this.pattern,this.options)}parse(e){(0,ra.assertValidPattern)(e);let r=this.options;if(e==="**")return ye.GLOBSTAR;if(e==="")return"";let i,s=null;(i=e.match(oS))?s=r.dot?cS:lS:(i=e.match(Gb))?s=(r.nocase?r.dot?tS:eS:r.dot?Zb:Qb)(i[1]):(i=e.match(uS))?s=(r.nocase?r.dot?fS:pS:r.dot?hS:dS)(i):(i=e.match(rS))?s=r.dot?sS:iS:(i=e.match(nS))&&(s=aS);let n=Rh.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?yS:r.dot?TS:gS,s=new Set(r.nocase?["i"]:[]),n=e.map(l=>{let c=l.map(u=>{if(u instanceof RegExp)for(let d of u.flags.split(""))s.add(d);return typeof u=="string"?vS(u):u===ye.GLOBSTAR?ye.GLOBSTAR:u._src});return c.forEach((u,d)=>{let b=c[d+1],E=c[d-1];u!==ye.GLOBSTAR||E===ye.GLOBSTAR||(E===void 0?b!==void 0&&b!==ye.GLOBSTAR?c[d+1]="(?:\\/|"+i+"\\/)?"+b:c[d]=i:b===void 0?c[d-1]=E+"(?:\\/|"+i+")?":b!==ye.GLOBSTAR&&(c[d-1]=E+"(?:\\/|\\/"+i+"\\/)"+b,c[d+1]=ye.GLOBSTAR))}),c.filter(u=>u!==ye.GLOBSTAR).join("/")}).join("|"),[a,o]=e.length>1?["(?:",")"]:["",""];n="^"+a+n+o+"$",this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let a=s[s.length-1];if(!a)for(let o=s.length-2;!a&&o>=0;o--)a=s[o];for(let o=0;o<n.length;o++){let l=n[o],c=s;if(i.matchBase&&l.length===1&&(c=[a]),this.matchOne(c,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ye.minimatch.defaults(e).Minimatch}};ye.Minimatch=Ei;var AS=ll();Object.defineProperty(ye,"AST",{enumerable:!0,get:function(){return AS.AST}});var wS=cl();Object.defineProperty(ye,"escape",{enumerable:!0,get:function(){return wS.escape}});var CS=Gn();Object.defineProperty(ye,"unescape",{enumerable:!0,get:function(){return CS.unescape}});ye.minimatch.AST=Rh.AST;ye.minimatch.Minimatch=Ei;ye.minimatch.escape=Jb.escape;ye.minimatch.unescape=Xb.unescape});var zh=k(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.LRUCache=void 0;var Qi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Wh=new Set,ul=typeof process=="object"&&process?process:{},Vh=(t,e,r,i)=>{typeof ul.emitWarning=="function"?ul.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},ia=globalThis.AbortController,Kh=globalThis.AbortSignal;if(typeof ia>"u"){Kh=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,s){this._onabort.push(s)}},ia=class{constructor(){e()}signal=new Kh;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let s of this.signal._onabort)s(i);this.signal.onabort?.(i)}}};let t=ul.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,Vh("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var IS=t=>!Wh.has(t),IG=Symbol("type"),Qr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Yh=t=>Qr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Zi:null:null,Zi=class extends Array{constructor(e){super(e),this.fill(0)}},pl=class t{heap;length;static#e=!1;static create(e){let r=Yh(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},fl=class t{#e;#t;#n;#s;#a;#b;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#p;#l;#c;#r;#f;#g;#d;#m;#C;#y;#I;#E;#S;#x;#A;#h;#O;static unsafeExposeInternals(e){return{starts:e.#E,ttls:e.#S,sizes:e.#I,keyMap:e.#l,keyList:e.#c,valList:e.#r,next:e.#f,prev:e.#g,get head(){return e.#d},get tail(){return e.#m},free:e.#C,isBackgroundFetch:r=>e.#u(r),backgroundFetch:(r,i,s,n)=>e.#M(r,i,s,n),moveToTail:r=>e.#j(r),indexes:r=>e.#w(r),rindexes:r=>e.#k(r),isStale:r=>e.#v(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#p}get size(){return this.#o}get fetchMethod(){return this.#b}get memoMethod(){return this.#T}get dispose(){return this.#n}get onInsert(){return this.#s}get disposeAfter(){return this.#a}constructor(e){let{max:r=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:a,updateAgeOnHas:o,allowStale:l,dispose:c,onInsert:u,disposeAfter:d,noDisposeOnSet:b,noUpdateTTL:E,maxSize:v=0,maxEntrySize:A=0,sizeCalculation:I,fetchMethod:_,memoMethod:$,noDeleteOnFetchRejection:X,noDeleteOnStaleGet:N,allowStaleOnFetchRejection:U,allowStaleOnFetchAbort:W,ignoreFetchAbort:ke}=e;if(r!==0&&!Qr(r))throw new TypeError("max option must be a nonnegative integer");let Ce=r?Yh(r):Array;if(!Ce)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=v,this.maxEntrySize=A||this.#t,this.sizeCalculation=I,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if($!==void 0&&typeof $!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=$,_!==void 0&&typeof _!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#b=_,this.#A=!!_,this.#l=new Map,this.#c=new Array(r).fill(void 0),this.#r=new Array(r).fill(void 0),this.#f=new Ce(r),this.#g=new Ce(r),this.#d=0,this.#m=0,this.#C=pl.create(r),this.#o=0,this.#p=0,typeof c=="function"&&(this.#n=c),typeof u=="function"&&(this.#s=u),typeof d=="function"?(this.#a=d,this.#y=[]):(this.#a=void 0,this.#y=void 0),this.#x=!!this.#n,this.#O=!!this.#s,this.#h=!!this.#a,this.noDisposeOnSet=!!b,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!X,this.allowStaleOnFetchRejection=!!U,this.allowStaleOnFetchAbort=!!W,this.ignoreFetchAbort=!!ke,this.maxEntrySize!==0){if(this.#t!==0&&!Qr(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!Qr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#q()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!N,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!o,this.ttlResolution=Qr(s)||s===0?s:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!Qr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#i()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let Ie="LRU_CACHE_UNBOUNDED";IS(Ie)&&(Wh.add(Ie),Vh("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ie,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#i(){let e=new Zi(this.#e),r=new Zi(this.#e);this.#S=e,this.#E=r,this.#_=(n,a,o=Qi.now())=>{if(r[n]=a!==0?o:0,e[n]=a,a!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#v(n)&&this.#N(this.#c[n],"expire")},a+1);l.unref&&l.unref()}},this.#D=n=>{r[n]=e[n]!==0?Qi.now():0},this.#P=(n,a)=>{if(e[a]){let o=e[a],l=r[a];if(!o||!l)return;n.ttl=o,n.start=l,n.now=i||s();let c=n.now-l;n.remainingTTL=o-c}};let i=0,s=()=>{let n=Qi.now();if(this.ttlResolution>0){i=n;let a=setTimeout(()=>i=0,this.ttlResolution);a.unref&&a.unref()}return n};this.getRemainingTTL=n=>{let a=this.#l.get(n);if(a===void 0)return 0;let o=e[a],l=r[a];if(!o||!l)return 1/0;let c=(i||s())-l;return o-c},this.#v=n=>{let a=r[n],o=e[n];return!!o&&!!a&&(i||s())-a>o}}#D=()=>{};#P=()=>{};#_=()=>{};#v=()=>!1;#q(){let e=new Zi(this.#e);this.#p=0,this.#I=e,this.#L=r=>{this.#p-=e[r],e[r]=0},this.#$=(r,i,s,n)=>{if(this.#u(i))return 0;if(!Qr(s))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(s=n(i,r),!Qr(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#F=(r,i,s)=>{if(e[r]=i,this.#t){let n=this.#t-e[r];for(;this.#p>n;)this.#B(!0)}this.#p+=e[r],s&&(s.entrySize=i,s.totalCalculatedSize=this.#p)}}#L=e=>{};#F=(e,r,i)=>{};#$=(e,r,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#w({allowStale:e=this.allowStale}={}){if(this.#o)for(let r=this.#m;!(!this.#U(r)||((e||!this.#v(r))&&(yield r),r===this.#d));)r=this.#g[r]}*#k({allowStale:e=this.allowStale}={}){if(this.#o)for(let r=this.#d;!(!this.#U(r)||((e||!this.#v(r))&&(yield r),r===this.#m));)r=this.#f[r]}#U(e){return e!==void 0&&this.#l.get(this.#c[e])===e}*entries(){for(let e of this.#w())this.#r[e]!==void 0&&this.#c[e]!==void 0&&!this.#u(this.#r[e])&&(yield[this.#c[e],this.#r[e]])}*rentries(){for(let e of this.#k())this.#r[e]!==void 0&&this.#c[e]!==void 0&&!this.#u(this.#r[e])&&(yield[this.#c[e],this.#r[e]])}*keys(){for(let e of this.#w()){let r=this.#c[e];r!==void 0&&!this.#u(this.#r[e])&&(yield r)}}*rkeys(){for(let e of this.#k()){let r=this.#c[e];r!==void 0&&!this.#u(this.#r[e])&&(yield r)}}*values(){for(let e of this.#w())this.#r[e]!==void 0&&!this.#u(this.#r[e])&&(yield this.#r[e])}*rvalues(){for(let e of this.#k())this.#r[e]!==void 0&&!this.#u(this.#r[e])&&(yield this.#r[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#w()){let s=this.#r[i],n=this.#u(s)?s.__staleWhileFetching:s;if(n!==void 0&&e(n,this.#c[i],this))return this.get(this.#c[i],r)}}forEach(e,r=this){for(let i of this.#w()){let s=this.#r[i],n=this.#u(s)?s.__staleWhileFetching:s;n!==void 0&&e.call(r,n,this.#c[i],this)}}rforEach(e,r=this){for(let i of this.#k()){let s=this.#r[i],n=this.#u(s)?s.__staleWhileFetching:s;n!==void 0&&e.call(r,n,this.#c[i],this)}}purgeStale(){let e=!1;for(let r of this.#k({allowStale:!0}))this.#v(r)&&(this.#N(this.#c[r],"expire"),e=!0);return e}info(e){let r=this.#l.get(e);if(r===void 0)return;let i=this.#r[r],s=this.#u(i)?i.__staleWhileFetching:i;if(s===void 0)return;let n={value:s};if(this.#S&&this.#E){let a=this.#S[r],o=this.#E[r];if(a&&o){let l=a-(Qi.now()-o);n.ttl=l,n.start=Date.now()}}return this.#I&&(n.size=this.#I[r]),n}dump(){let e=[];for(let r of this.#w({allowStale:!0})){let i=this.#c[r],s=this.#r[r],n=this.#u(s)?s.__staleWhileFetching:s;if(n===void 0||i===void 0)continue;let a={value:n};if(this.#S&&this.#E){a.ttl=this.#S[r];let o=Qi.now()-this.#E[r];a.start=Math.floor(Date.now()-o)}this.#I&&(a.size=this.#I[r]),e.unshift([i,a])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let s=Date.now()-i.start;i.start=Qi.now()-s}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:s=this.ttl,start:n,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:l}=i,{noUpdateTTL:c=this.noUpdateTTL}=i,u=this.#$(e,r,i.size||0,o);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#N(e,"set"),this;let d=this.#o===0?void 0:this.#l.get(e);if(d===void 0)d=this.#o===0?this.#m:this.#C.length!==0?this.#C.pop():this.#o===this.#e?this.#B(!1):this.#o,this.#c[d]=e,this.#r[d]=r,this.#l.set(e,d),this.#f[this.#m]=d,this.#g[d]=this.#m,this.#m=d,this.#o++,this.#F(d,u,l),l&&(l.set="add"),c=!1,this.#O&&this.#s?.(r,e,"add");else{this.#j(d);let b=this.#r[d];if(r!==b){if(this.#A&&this.#u(b)){b.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:E}=b;E!==void 0&&!a&&(this.#x&&this.#n?.(E,e,"set"),this.#h&&this.#y?.push([E,e,"set"]))}else a||(this.#x&&this.#n?.(b,e,"set"),this.#h&&this.#y?.push([b,e,"set"]));if(this.#L(d),this.#F(d,u,l),this.#r[d]=r,l){l.set="replace";let E=b&&this.#u(b)?b.__staleWhileFetching:b;E!==void 0&&(l.oldValue=E)}}else l&&(l.set="update");this.#O&&this.onInsert?.(r,e,r===b?"update":"replace")}if(s!==0&&!this.#S&&this.#i(),this.#S&&(c||this.#_(d,s,n),l&&this.#P(l,d)),!a&&this.#h&&this.#y){let b=this.#y,E;for(;E=b?.shift();)this.#a?.(...E)}return this}pop(){try{for(;this.#o;){let e=this.#r[this.#d];if(this.#B(!0),this.#u(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#y){let e=this.#y,r;for(;r=e?.shift();)this.#a?.(...r)}}}#B(e){let r=this.#d,i=this.#c[r],s=this.#r[r];return this.#A&&this.#u(s)?s.__abortController.abort(new Error("evicted")):(this.#x||this.#h)&&(this.#x&&this.#n?.(s,i,"evict"),this.#h&&this.#y?.push([s,i,"evict"])),this.#L(r),e&&(this.#c[r]=void 0,this.#r[r]=void 0,this.#C.push(r)),this.#o===1?(this.#d=this.#m=0,this.#C.length=0):this.#d=this.#f[r],this.#l.delete(i),this.#o--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=r,n=this.#l.get(e);if(n!==void 0){let a=this.#r[n];if(this.#u(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#v(n))s&&(s.has="stale",this.#P(s,n));else return i&&this.#D(n),s&&(s.has="hit",this.#P(s,n)),!0}else s&&(s.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,s=this.#l.get(e);if(s===void 0||!i&&this.#v(s))return;let n=this.#r[s];return this.#u(n)?n.__staleWhileFetching:n}#M(e,r,i,s){let n=r===void 0?void 0:this.#r[r];if(this.#u(n))return n;let a=new ia,{signal:o}=i;o?.addEventListener("abort",()=>a.abort(o.reason),{signal:a.signal});let l={signal:a.signal,options:i,context:s},c=(A,I=!1)=>{let{aborted:_}=a.signal,$=i.ignoreFetchAbort&&A!==void 0;if(i.status&&(_&&!I?(i.status.fetchAborted=!0,i.status.fetchError=a.signal.reason,$&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),_&&!$&&!I)return d(a.signal.reason);let X=E;return this.#r[r]===E&&(A===void 0?X.__staleWhileFetching?this.#r[r]=X.__staleWhileFetching:this.#N(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,A,l.options))),A},u=A=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=A),d(A)),d=A=>{let{aborted:I}=a.signal,_=I&&i.allowStaleOnFetchAbort,$=_||i.allowStaleOnFetchRejection,X=$||i.noDeleteOnFetchRejection,N=E;if(this.#r[r]===E&&(!X||N.__staleWhileFetching===void 0?this.#N(e,"fetch"):_||(this.#r[r]=N.__staleWhileFetching)),$)return i.status&&N.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),N.__staleWhileFetching;if(N.__returned===N)throw A},b=(A,I)=>{let _=this.#b?.(e,n,l);_&&_ instanceof Promise&&_.then($=>A($===void 0?void 0:$),I),a.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(A(void 0),i.allowStaleOnFetchAbort&&(A=$=>c($,!0)))})};i.status&&(i.status.fetchDispatched=!0);let E=new Promise(b).then(c,u),v=Object.assign(E,{__abortController:a,__staleWhileFetching:n,__returned:void 0});return r===void 0?(this.set(e,v,{...l.options,status:void 0}),r=this.#l.get(e)):this.#r[r]=v,v}#u(e){if(!this.#A)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof ia}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:b=this.allowStaleOnFetchRejection,ignoreFetchAbort:E=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:A,forceRefresh:I=!1,status:_,signal:$}=r;if(!this.#A)return _&&(_.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,status:_});let X={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,ttl:a,noDisposeOnSet:o,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:v,ignoreFetchAbort:E,status:_,signal:$},N=this.#l.get(e);if(N===void 0){_&&(_.fetch="miss");let U=this.#M(e,N,X,A);return U.__returned=U}else{let U=this.#r[N];if(this.#u(U)){let We=i&&U.__staleWhileFetching!==void 0;return _&&(_.fetch="inflight",We&&(_.returnedStale=!0)),We?U.__staleWhileFetching:U.__returned=U}let W=this.#v(N);if(!I&&!W)return _&&(_.fetch="hit"),this.#j(N),s&&this.#D(N),_&&this.#P(_,N),U;let ke=this.#M(e,N,X,A),Ie=ke.__staleWhileFetching!==void 0&&i;return _&&(_.fetch=W?"stale":"refresh",Ie&&W&&(_.returnedStale=!0)),Ie?ke.__staleWhileFetching:ke.__returned=ke}}async forceFetch(e,r={}){let i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){let i=this.#T;if(!i)throw new Error("no memoMethod provided to constructor");let{context:s,forceRefresh:n,...a}=r,o=this.get(e,a);if(!n&&o!==void 0)return o;let l=i(e,o,{options:a,context:s});return this.set(e,l,a),l}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:a}=r,o=this.#l.get(e);if(o!==void 0){let l=this.#r[o],c=this.#u(l);return a&&this.#P(a,o),this.#v(o)?(a&&(a.get="stale"),c?(a&&i&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),i?l.__staleWhileFetching:void 0):(n||this.#N(e,"expire"),a&&i&&(a.returnedStale=!0),i?l:void 0)):(a&&(a.get="hit"),c?l.__staleWhileFetching:(this.#j(o),s&&this.#D(o),l))}else a&&(a.get="miss")}#K(e,r){this.#g[r]=e,this.#f[e]=r}#j(e){e!==this.#m&&(e===this.#d?this.#d=this.#f[e]:this.#K(this.#g[e],this.#f[e]),this.#K(this.#m,e),this.#m=e)}delete(e){return this.#N(e,"delete")}#N(e,r){let i=!1;if(this.#o!==0){let s=this.#l.get(e);if(s!==void 0)if(i=!0,this.#o===1)this.#R(r);else{this.#L(s);let n=this.#r[s];if(this.#u(n)?n.__abortController.abort(new Error("deleted")):(this.#x||this.#h)&&(this.#x&&this.#n?.(n,e,r),this.#h&&this.#y?.push([n,e,r])),this.#l.delete(e),this.#c[s]=void 0,this.#r[s]=void 0,s===this.#m)this.#m=this.#g[s];else if(s===this.#d)this.#d=this.#f[s];else{let a=this.#g[s];this.#f[a]=this.#f[s];let o=this.#f[s];this.#g[o]=this.#g[s]}this.#o--,this.#C.push(s)}}if(this.#h&&this.#y?.length){let s=this.#y,n;for(;n=s?.shift();)this.#a?.(...n)}return i}clear(){return this.#R("delete")}#R(e){for(let r of this.#k({allowStale:!0})){let i=this.#r[r];if(this.#u(i))i.__abortController.abort(new Error("deleted"));else{let s=this.#c[r];this.#x&&this.#n?.(i,s,e),this.#h&&this.#y?.push([i,s,e])}}if(this.#l.clear(),this.#r.fill(void 0),this.#c.fill(void 0),this.#S&&this.#E&&(this.#S.fill(0),this.#E.fill(0)),this.#I&&this.#I.fill(0),this.#d=0,this.#m=0,this.#C.length=0,this.#p=0,this.#o=0,this.#h&&this.#y){let r=this.#y,i;for(;i=r?.shift();)this.#a?.(...i)}}};sa.LRUCache=fl});var bl=k(Bt=>{"use strict";var kS=Bt&&Bt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Minipass=Bt.isWritable=Bt.isReadable=Bt.isStream=void 0;var Jh=typeof process=="object"&&process?process:{stdout:null,stderr:null},xl=require("node:events"),Qh=kS(require("node:stream")),OS=require("node:string_decoder"),_S=t=>!!t&&typeof t=="object"&&(t instanceof pa||t instanceof Qh.default||(0,Bt.isReadable)(t)||(0,Bt.isWritable)(t));Bt.isStream=_S;var NS=t=>!!t&&typeof t=="object"&&t instanceof xl.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Qh.default.Writable.prototype.pipe;Bt.isReadable=NS;var DS=t=>!!t&&typeof t=="object"&&t instanceof xl.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Bt.isWritable=DS;var jr=Symbol("EOF"),Rr=Symbol("maybeEmitEnd"),Zr=Symbol("emittedEnd"),na=Symbol("emittingEnd"),Bs=Symbol("emittedError"),aa=Symbol("closed"),Xh=Symbol("read"),oa=Symbol("flush"),Hh=Symbol("flushChunk"),dr=Symbol("encoding"),es=Symbol("decoder"),Pt=Symbol("flowing"),js=Symbol("paused"),ts=Symbol("resume"),vt=Symbol("buffer"),Ft=Symbol("pipes"),At=Symbol("bufferLength"),hl=Symbol("bufferPush"),la=Symbol("bufferShift"),Dt=Symbol("objectMode"),yt=Symbol("destroyed"),dl=Symbol("error"),ml=Symbol("emitData"),Gh=Symbol("emitEnd"),yl=Symbol("emitEnd2"),vr=Symbol("async"),Tl=Symbol("abort"),ca=Symbol("aborted"),Rs=Symbol("signal"),Pi=Symbol("dataListeners"),Zt=Symbol("discarded"),qs=t=>Promise.resolve().then(t),LS=t=>t(),MS=t=>t==="end"||t==="finish"||t==="prefinish",FS=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,BS=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ua=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ts](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},gl=class extends ua{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=s=>r.emit("error",s),e.on("error",this.proxyErrors)}},jS=t=>!!t.objectMode,RS=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",pa=class extends xl.EventEmitter{[Pt]=!1;[js]=!1;[Ft]=[];[vt]=[];[Dt];[dr];[vr];[es];[jr]=!1;[Zr]=!1;[na]=!1;[aa]=!1;[Bs]=null;[At]=0;[yt]=!1;[Rs];[ca]=!1;[Pi]=0;[Zt]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");jS(r)?(this[Dt]=!0,this[dr]=null):RS(r)?(this[dr]=r.encoding,this[Dt]=!1):(this[Dt]=!1,this[dr]=null),this[vr]=!!r.async,this[es]=this[dr]?new OS.StringDecoder(this[dr]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[vt]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ft]});let{signal:i}=r;i&&(this[Rs]=i,i.aborted?this[Tl]():i.addEventListener("abort",()=>this[Tl]()))}get bufferLength(){return this[At]}get encoding(){return this[dr]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Dt]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[vr]}set async(e){this[vr]=this[vr]||!!e}[Tl](){this[ca]=!0,this.emit("abort",this[Rs]?.reason),this.destroy(this[Rs]?.reason)}get aborted(){return this[ca]}set aborted(e){}write(e,r,i){if(this[ca])return!1;if(this[jr])throw new Error("write after end");if(this[yt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let s=this[vr]?qs:LS;if(!this[Dt]&&!Buffer.isBuffer(e)){if(BS(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(FS(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Dt]?(this[Pt]&&this[At]!==0&&this[oa](!0),this[Pt]?this.emit("data",e):this[hl](e),this[At]!==0&&this.emit("readable"),i&&s(i),this[Pt]):e.length?(typeof e=="string"&&!(r===this[dr]&&!this[es]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[dr]&&(e=this[es].write(e)),this[Pt]&&this[At]!==0&&this[oa](!0),this[Pt]?this.emit("data",e):this[hl](e),this[At]!==0&&this.emit("readable"),i&&s(i),this[Pt]):(this[At]!==0&&this.emit("readable"),i&&s(i),this[Pt])}read(e){if(this[yt])return null;if(this[Zt]=!1,this[At]===0||e===0||e&&e>this[At])return this[Rr](),null;this[Dt]&&(e=null),this[vt].length>1&&!this[Dt]&&(this[vt]=[this[dr]?this[vt].join(""):Buffer.concat(this[vt],this[At])]);let r=this[Xh](e||null,this[vt][0]);return this[Rr](),r}[Xh](e,r){if(this[Dt])this[la]();else{let i=r;e===i.length||e===null?this[la]():typeof i=="string"?(this[vt][0]=i.slice(e),r=i.slice(0,e),this[At]-=e):(this[vt][0]=i.subarray(e),r=i.subarray(0,e),this[At]-=e)}return this.emit("data",r),!this[vt].length&&!this[jr]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[jr]=!0,this.writable=!1,(this[Pt]||!this[js])&&this[Rr](),this}[ts](){this[yt]||(!this[Pi]&&!this[Ft].length&&(this[Zt]=!0),this[js]=!1,this[Pt]=!0,this.emit("resume"),this[vt].length?this[oa]():this[jr]?this[Rr]():this.emit("drain"))}resume(){return this[ts]()}pause(){this[Pt]=!1,this[js]=!0,this[Zt]=!1}get destroyed(){return this[yt]}get flowing(){return this[Pt]}get paused(){return this[js]}[hl](e){this[Dt]?this[At]+=1:this[At]+=e.length,this[vt].push(e)}[la](){return this[Dt]?this[At]-=1:this[At]-=this[vt][0].length,this[vt].shift()}[oa](e=!1){do;while(this[Hh](this[la]())&&this[vt].length);!e&&!this[vt].length&&!this[jr]&&this.emit("drain")}[Hh](e){return this.emit("data",e),this[Pt]}pipe(e,r){if(this[yt])return e;this[Zt]=!1;let i=this[Zr];return r=r||{},e===Jh.stdout||e===Jh.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ft].push(r.proxyErrors?new gl(this,e,r):new ua(this,e,r)),this[vr]?qs(()=>this[ts]()):this[ts]()),e}unpipe(e){let r=this[Ft].find(i=>i.dest===e);r&&(this[Ft].length===1?(this[Pt]&&this[Pi]===0&&(this[Pt]=!1),this[Ft]=[]):this[Ft].splice(this[Ft].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Zt]=!1,this[Pi]++,!this[Ft].length&&!this[Pt]&&this[ts]();else if(e==="readable"&&this[At]!==0)super.emit("readable");else if(MS(e)&&this[Zr])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Bs]){let s=r;this[vr]?qs(()=>s.call(this,this[Bs])):s.call(this,this[Bs])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[Pi]=this.listeners("data").length,this[Pi]===0&&!this[Zt]&&!this[Ft].length&&(this[Pt]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Pi]=0,!this[Zt]&&!this[Ft].length&&(this[Pt]=!1)),r}get emittedEnd(){return this[Zr]}[Rr](){!this[na]&&!this[Zr]&&!this[yt]&&this[vt].length===0&&this[jr]&&(this[na]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[aa]&&this.emit("close"),this[na]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==yt&&this[yt])return!1;if(e==="data")return!this[Dt]&&!i?!1:this[vr]?(qs(()=>this[ml](i)),!0):this[ml](i);if(e==="end")return this[Gh]();if(e==="close"){if(this[aa]=!0,!this[Zr]&&!this[yt])return!1;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Bs]=i,super.emit(dl,i);let n=!this[Rs]||this.listeners("error").length?super.emit("error",i):!1;return this[Rr](),n}else if(e==="resume"){let n=super.emit("resume");return this[Rr](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,...r);return this[Rr](),s}[ml](e){for(let i of this[Ft])i.dest.write(e)===!1&&this.pause();let r=this[Zt]?!1:super.emit("data",e);return this[Rr](),r}[Gh](){return this[Zr]?!1:(this[Zr]=!0,this.readable=!1,this[vr]?(qs(()=>this[yl]()),!0):this[yl]())}[yl](){if(this[es]){let r=this[es].end();if(r){for(let i of this[Ft])i.dest.write(r);this[Zt]||super.emit("data",r)}}for(let r of this[Ft])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Dt]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Dt]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Dt])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[dr]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(yt,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Zt]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[jr])return r();let n,a,o=d=>{this.off("data",l),this.off("end",c),this.off(yt,u),r(),a(d)},l=d=>{this.off("error",o),this.off("end",c),this.off(yt,u),this.pause(),n({value:d,done:!!this[jr]})},c=()=>{this.off("error",o),this.off("data",l),this.off(yt,u),r(),n({done:!0,value:void 0})},u=()=>o(new Error("stream destroyed"));return new Promise((d,b)=>{a=b,n=d,this.once(yt,u),this.once("error",o),this.once("end",c),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Zt]=!1;let e=!1,r=()=>(this.pause(),this.off(dl,r),this.off(yt,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let s=this.read();return s===null?r():{done:!1,value:s}};return this.once("end",r),this.once(dl,r),this.once(yt,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(e){if(this[yt])return e?this.emit("error",e):this.emit(yt),this;this[yt]=!0,this[Zt]=!0,this[vt].length=0,this[At]=0;let r=this;return typeof r.close=="function"&&!this[aa]&&r.close(),e?this.emit("error",e):this.emit(yt),this}static get isStream(){return Bt.isStream}};Bt.Minipass=pa});var hd=k(Qe=>{"use strict";var qS=Qe&&Qe.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),$S=Qe&&Qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),US=Qe&&Qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&qS(e,t,r);return $S(e,t),e};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.PathScurry=Qe.Path=Qe.PathScurryDarwin=Qe.PathScurryPosix=Qe.PathScurryWin32=Qe.PathScurryBase=Qe.PathPosix=Qe.PathWin32=Qe.PathBase=Qe.ChildrenCache=Qe.ResolveCache=void 0;var sd=zh(),ya=require("node:path"),KS=require("node:url"),Us=require("fs"),WS=US(require("node:fs")),VS=Us.realpathSync.native,fa=require("node:fs/promises"),Zh=bl(),Ks={lstatSync:Us.lstatSync,readdir:Us.readdir,readdirSync:Us.readdirSync,readlinkSync:Us.readlinkSync,realpathSync:VS,promises:{lstat:fa.lstat,readdir:fa.readdir,readlink:fa.readlink,realpath:fa.realpath}},nd=t=>!t||t===Ks||t===WS?Ks:{...Ks,...t,promises:{...Ks.promises,...t.promises||{}}},ad=/^\\\\\?\\([a-z]:)\\?$/i,YS=t=>t.replace(/\//g,"\\").replace(ad,"$1\\"),zS=/[\\\/]/,ar=0,od=1,ld=2,Ar=4,cd=6,ud=8,vi=10,pd=12,nr=15,$s=~nr,Sl=16,ed=32,Ws=64,mr=128,ha=256,ma=512,td=Ws|mr|ma,JS=1023,El=t=>t.isFile()?ud:t.isDirectory()?Ar:t.isSymbolicLink()?vi:t.isCharacterDevice()?ld:t.isBlockDevice()?cd:t.isSocket()?pd:t.isFIFO()?od:ar,rd=new Map,Vs=t=>{let e=rd.get(t);if(e)return e;let r=t.normalize("NFKD");return rd.set(t,r),r},id=new Map,da=t=>{let e=id.get(t);if(e)return e;let r=Vs(t.toLowerCase());return id.set(t,r),r},Ys=class extends sd.LRUCache{constructor(){super({max:256})}};Qe.ResolveCache=Ys;var Ta=class extends sd.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};Qe.ChildrenCache=Ta;var fd=Symbol("PathScurry setAsCwd"),Ot=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#n;get mode(){return this.#n}#s;get nlink(){return this.#s}#a;get uid(){return this.#a}#b;get gid(){return this.#b}#T;get rdev(){return this.#T}#o;get blksize(){return this.#o}#p;get ino(){return this.#p}#l;get size(){return this.#l}#c;get blocks(){return this.#c}#r;get atimeMs(){return this.#r}#f;get mtimeMs(){return this.#f}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#m;get atime(){return this.#m}#C;get mtime(){return this.#C}#y;get ctime(){return this.#y}#I;get birthtime(){return this.#I}#E;#S;#x;#A;#h;#O;#i;#D;#P;#_;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=ar,i,s,n,a,o){this.name=e,this.#E=n?da(e):Vs(e),this.#i=r&JS,this.nocase=n,this.roots=s,this.root=i||this,this.#D=a,this.#x=o.fullpath,this.#h=o.relative,this.#O=o.relativePosix,this.parent=o.parent,this.parent?this.#e=this.parent.#e:this.#e=nd(o.fs)}depth(){return this.#S!==void 0?this.#S:this.parent?this.#S=this.parent.depth()+1:this.#S=0}childrenCache(){return this.#D}resolve(e){if(!e)return this;let r=this.getRootString(e),s=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#v(s):this.#v(s)}#v(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#D.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#D.set(this,r),this.#i&=~Sl,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),s=this.nocase?da(e):Vs(e);for(let l of i)if(l.#E===s)return l;let n=this.parent?this.sep:"",a=this.#x?this.#x+n+e:void 0,o=this.newChild(e,ar,{...r,parent:this,fullpath:a});return this.canReaddir()||(o.#i|=mr),i.push(o),o}relative(){if(this.isCWD)return"";if(this.#h!==void 0)return this.#h;let e=this.name,r=this.parent;if(!r)return this.#h=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#O!==void 0)return this.#O;let e=this.name,r=this.parent;if(!r)return this.#O=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#x!==void 0)return this.#x;let e=this.name,r=this.parent;if(!r)return this.#x=this.name;let s=r.fullpath()+(r.parent?this.sep:"")+e;return this.#x=s}fullpathPosix(){if(this.#A!==void 0)return this.#A;if(this.sep==="/")return this.#A=this.fullpath();if(!this.parent){let s=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(s)?this.#A=`//?/${s}`:this.#A=s}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#A=i}isUnknown(){return(this.#i&nr)===ar}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&nr)===ud}isDirectory(){return(this.#i&nr)===Ar}isCharacterDevice(){return(this.#i&nr)===ld}isBlockDevice(){return(this.#i&nr)===cd}isFIFO(){return(this.#i&nr)===od}isSocket(){return(this.#i&nr)===pd}isSymbolicLink(){return(this.#i&vi)===vi}lstatCached(){return this.#i&ed?this:void 0}readlinkCached(){return this.#P}realpathCached(){return this.#_}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#P)return!0;if(!this.parent)return!1;let e=this.#i&nr;return!(e!==ar&&e!==vi||this.#i&ha||this.#i&mr)}calledReaddir(){return!!(this.#i&Sl)}isENOENT(){return!!(this.#i&mr)}isNamed(e){return this.nocase?this.#E===da(e):this.#E===Vs(e)}async readlink(){let e=this.#P;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#P=i}catch(r){this.#B(r.code);return}}readlinkSync(){let e=this.#P;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#P=i}catch(r){this.#B(r.code);return}}#q(e){this.#i|=Sl;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#L()}}#L(){this.#i&mr||(this.#i=(this.#i|mr)&$s,this.#F())}#F(){let e=this.children();e.provisional=0;for(let r of e)r.#L()}#$(){this.#i|=ma,this.#w()}#w(){if(this.#i&Ws)return;let e=this.#i;(e&nr)===Ar&&(e&=$s),this.#i=e|Ws,this.#F()}#k(e=""){e==="ENOTDIR"||e==="EPERM"?this.#w():e==="ENOENT"?this.#L():this.children().provisional=0}#U(e=""){e==="ENOTDIR"?this.parent.#w():e==="ENOENT"&&this.#L()}#B(e=""){let r=this.#i;r|=ha,e==="ENOENT"&&(r|=mr),(e==="EINVAL"||e==="UNKNOWN")&&(r&=$s),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#w()}#M(e,r){return this.#K(e,r)||this.#u(e,r)}#u(e,r){let i=El(e),s=this.newChild(e.name,i,{parent:this}),n=s.#i&nr;return n!==Ar&&n!==vi&&n!==ar&&(s.#i|=Ws),r.unshift(s),r.provisional++,s}#K(e,r){for(let i=r.provisional;i<r.length;i++){let s=r[i];if((this.nocase?da(e.name):Vs(e.name))===s.#E)return this.#j(e,s,i,r)}}#j(e,r,i,s){let n=r.name;return r.#i=r.#i&$s|El(e),n!==e.name&&(r.name=e.name),i!==s.provisional&&(i===s.length-1?s.pop():s.splice(i,1),s.unshift(r)),s.provisional++,r}async lstat(){if((this.#i&mr)===0)try{return this.#N(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#U(e.code)}}lstatSync(){if((this.#i&mr)===0)try{return this.#N(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#U(e.code)}}#N(e){let{atime:r,atimeMs:i,birthtime:s,birthtimeMs:n,blksize:a,blocks:o,ctime:l,ctimeMs:c,dev:u,gid:d,ino:b,mode:E,mtime:v,mtimeMs:A,nlink:I,rdev:_,size:$,uid:X}=e;this.#m=r,this.#r=i,this.#I=s,this.#d=n,this.#o=a,this.#c=o,this.#y=l,this.#g=c,this.#t=u,this.#b=d,this.#p=b,this.#n=E,this.#C=v,this.#f=A,this.#s=I,this.#T=_,this.#l=$,this.#a=X;let N=El(e);this.#i=this.#i&$s|N|ed,N!==ar&&N!==Ar&&N!==vi&&(this.#i|=Ws)}#R=[];#V=!1;#Y(e){this.#V=!1;let r=this.#R.slice();this.#R.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let n=i.slice(0,i.provisional);r?e(null,n):queueMicrotask(()=>e(null,n));return}if(this.#R.push(e),this.#V)return;this.#V=!0;let s=this.fullpath();this.#e.readdir(s,{withFileTypes:!0},(n,a)=>{if(n)this.#k(n.code),i.provisional=0;else{for(let o of a)this.#M(o,i);this.#q(i)}this.#Y(i.slice(0,i.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#W)await this.#W;else{let i=()=>{};this.#W=new Promise(s=>i=s);try{for(let s of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#M(s,e);this.#q(e)}catch(s){this.#k(s.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#M(i,e);this.#q(e)}catch(i){this.#k(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&td)return!1;let e=nr&this.#i;return e===ar||e===Ar||e===vi}shouldWalk(e,r){return(this.#i&Ar)===Ar&&!(this.#i&td)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#_)return this.#_;if(!((ma|ha|mr)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#_=this.resolve(e)}catch{this.#$()}}realpathSync(){if(this.#_)return this.#_;if(!((ma|ha|mr)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#_=this.resolve(e)}catch{this.#$()}}[fd](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],s=this;for(;s&&s.parent;)r.add(s),s.#h=i.join(this.sep),s.#O=i.join("/"),s=s.parent,i.push("..");for(s=e;s&&s.parent&&!r.has(s);)s.#h=void 0,s.#O=void 0,s=s.parent}};Qe.PathBase=Ot;var zs=class t extends Ot{sep="\\";splitSep=zS;constructor(e,r=ar,i,s,n,a,o){super(e,r,i,s,n,a,o)}newChild(e,r=ar,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return ya.win32.parse(e).root}getRoot(e){if(e=YS(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new Hs(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(ad,"$1\\"),e===r}};Qe.PathWin32=zs;var Js=class t extends Ot{splitSep="/";sep="/";constructor(e,r=ar,i,s,n,a,o){super(e,r,i,s,n,a,o)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=ar,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};Qe.PathPosix=Js;var Xs=class{root;rootPath;roots;cwd;#e;#t;#n;nocase;#s;constructor(e=process.cwd(),r,i,{nocase:s,childrenCacheSize:n=16*1024,fs:a=Ks}={}){this.#s=nd(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,KS.fileURLToPath)(e));let o=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#e=new Ys,this.#t=new Ys,this.#n=new Ta(n);let l=o.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),s===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=s,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let c=this.root,u=l.length-1,d=r.sep,b=this.rootPath,E=!1;for(let v of l){let A=u--;c=c.child(v,{relative:new Array(A).fill("..").join(d),relativePosix:new Array(A).fill("..").join("/"),fullpath:b+=(E?"":d)+v}),E=!0}this.cwd=c}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let n=e.length-1;n>=0;n--){let a=e[n];if(!(!a||a===".")&&(r=r?`${a}/${r}`:a,this.isAbsolute(a)))break}let i=this.#e.get(r);if(i!==void 0)return i;let s=this.cwd.resolve(r).fullpath();return this.#e.set(r,s),s}resolvePosix(...e){let r="";for(let n=e.length-1;n>=0;n--){let a=e[n];if(!(!a||a===".")&&(r=r?`${a}/${r}`:a,this.isAbsolute(a)))break}let i=this.#t.get(r);if(i!==void 0)return i;let s=this.cwd.resolve(r).fullpathPosix();return this.#t.set(r,s),s}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e,e=this.cwd);let{withFileTypes:i}=r;if(e.canReaddir()){let s=await e.readdir();return i?s:s.map(n=>n.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e,e=this.cwd);let{withFileTypes:i=!0}=r;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(s=>s.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e.withFileTypes,e=this.cwd);let i=await e.readlink();return r?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return r?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e.withFileTypes,e=this.cwd);let i=await e.realpath();return r?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return r?i:i?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:a}=r,o=[];(!n||n(e))&&o.push(i?e:e.fullpath());let l=new Set,c=(d,b)=>{l.add(d),d.readdirCB((E,v)=>{if(E)return b(E);let A=v.length;if(!A)return b();let I=()=>{--A===0&&b()};for(let _ of v)(!n||n(_))&&o.push(i?_:_.fullpath()),s&&_.isSymbolicLink()?_.realpath().then($=>$?.isUnknown()?$.lstat():$).then($=>$?.shouldWalk(l,a)?c($,I):I()):_.shouldWalk(l,a)?c(_,I):I()},!0)},u=e;return new Promise((d,b)=>{c(u,E=>{if(E)return b(E);d(o)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:a}=r,o=[];(!n||n(e))&&o.push(i?e:e.fullpath());let l=new Set([e]);for(let c of l){let u=c.readdirSync();for(let d of u){(!n||n(d))&&o.push(i?d:d.fullpath());let b=d;if(d.isSymbolicLink()){if(!(s&&(b=d.realpathSync())))continue;b.isUnknown()&&b.lstatSync()}b.shouldWalk(l,a)&&l.add(b)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:a}=r;(!n||n(e))&&(yield i?e:e.fullpath());let o=new Set([e]);for(let l of o){let c=l.readdirSync();for(let u of c){(!n||n(u))&&(yield i?u:u.fullpath());let d=u;if(u.isSymbolicLink()){if(!(s&&(d=u.realpathSync())))continue;d.isUnknown()&&d.lstatSync()}d.shouldWalk(o,a)&&o.add(d)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:a}=r,o=new Zh.Minipass({objectMode:!0});(!n||n(e))&&o.write(i?e:e.fullpath());let l=new Set,c=[e],u=0,d=()=>{let b=!1;for(;!b;){let E=c.shift();if(!E){u===0&&o.end();return}u++,l.add(E);let v=(I,_,$=!1)=>{if(I)return o.emit("error",I);if(s&&!$){let X=[];for(let N of _)N.isSymbolicLink()&&X.push(N.realpath().then(U=>U?.isUnknown()?U.lstat():U));if(X.length){Promise.all(X).then(()=>v(null,_,!0));return}}for(let X of _)X&&(!n||n(X))&&(o.write(i?X:X.fullpath())||(b=!0));u--;for(let X of _){let N=X.realpathCached()||X;N.shouldWalk(l,a)&&c.push(N)}b&&!o.flowing?o.once("drain",d):A||d()},A=!0;E.readdirCB(v,!0),A=!1}};return d(),o}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ot||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:n,walkFilter:a}=r,o=new Zh.Minipass({objectMode:!0}),l=new Set;(!n||n(e))&&o.write(i?e:e.fullpath());let c=[e],u=0,d=()=>{let b=!1;for(;!b;){let E=c.shift();if(!E){u===0&&o.end();return}u++,l.add(E);let v=E.readdirSync();for(let A of v)(!n||n(A))&&(o.write(i?A:A.fullpath())||(b=!0));u--;for(let A of v){let I=A;if(A.isSymbolicLink()){if(!(s&&(I=A.realpathSync())))continue;I.isUnknown()&&I.lstatSync()}I.shouldWalk(l,a)&&c.push(I)}}b&&!o.flowing&&o.once("drain",d)};return d(),o}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[fd](r)}};Qe.PathScurryBase=Xs;var Hs=class extends Xs{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,ya.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let s=this.cwd;s;s=s.parent)s.nocase=this.nocase}parseRootPath(e){return ya.win32.parse(e).root.toUpperCase()}newRoot(e){return new zs(this.rootPath,Ar,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};Qe.PathScurryWin32=Hs;var Gs=class extends Xs{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,ya.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new Js(this.rootPath,Ar,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};Qe.PathScurryPosix=Gs;var ga=class extends Gs{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};Qe.PathScurryDarwin=ga;Qe.Path=process.platform==="win32"?zs:Js;Qe.PathScurry=process.platform==="win32"?Hs:process.platform==="darwin"?ga:Gs});var vl=k(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.Pattern=void 0;var XS=Gr(),HS=t=>t.length>=1,GS=t=>t.length>=1,Pl=class t{#e;#t;#n;length;#s;#a;#b;#T;#o;#p;#l=!0;constructor(e,r,i,s){if(!HS(e))throw new TypeError("empty pattern list");if(!GS(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=r,this.#n=i,this.#s=s,this.#n===0){if(this.isUNC()){let[n,a,o,l,...c]=this.#e,[u,d,b,E,...v]=this.#t;c[0]===""&&(c.shift(),v.shift());let A=[n,a,o,l,""].join("/"),I=[u,d,b,E,""].join("/");this.#e=[A,...c],this.#t=[I,...v],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[n,...a]=this.#e,[o,...l]=this.#t;a[0]===""&&(a.shift(),l.shift());let c=n+"/",u=o+"/";this.#e=[c,...a],this.#t=[u,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===XS.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#b=this.#b||(this.#n===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#a!==void 0?this.#a:this.hasMore()?(this.#a=new t(this.#e,this.#t,this.#n+1,this.#s),this.#a.#p=this.#p,this.#a.#o=this.#o,this.#a.#T=this.#T,this.#a):this.#a=null}isUNC(){let e=this.#e;return this.#o!==void 0?this.#o:this.#o=this.#s==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#T!==void 0?this.#T:this.#T=this.#s==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#p!==void 0?this.#p:this.#p=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}};xa.Pattern=Pl});var wl=k(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.Ignore=void 0;var dd=Gr(),QS=vl(),ZS=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Al=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:s,noglobstar:n,platform:a=ZS}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:s,noglobstar:n,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let o of e)this.add(o)}add(e){let r=new dd.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let s=r.set[i],n=r.globParts[i];if(!s||!n)throw new Error("invalid pattern object");for(;s[0]==="."&&n[0]===".";)s.shift(),n.shift();let a=new QS.Pattern(s,n,0,this.platform),o=new dd.Minimatch(a.globString(),this.mmopts),l=n[n.length-1]==="**",c=a.isAbsolute();c?this.absolute.push(o):this.relative.push(o),l&&(c?this.absoluteChildren.push(o):this.relativeChildren.push(o))}}ignored(e){let r=e.fullpath(),i=`${r}/`,s=e.relative()||".",n=`${s}/`;for(let a of this.relative)if(a.match(s)||a.match(n))return!0;for(let a of this.absolute)if(a.match(r)||a.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let s of this.relativeChildren)if(s.match(i))return!0;for(let s of this.absoluteChildren)if(s.match(r))return!0;return!1}};ba.Ignore=Al});var yd=k(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.Processor=wr.SubWalks=wr.MatchRecord=wr.HasWalkedCache=void 0;var md=Gr(),Sa=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),s=this.store.get(i);s?s.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};wr.HasWalkedCache=Sa;var Ea=class{store=new Map;add(e,r,i){let s=(r?2:0)|(i?1:0),n=this.store.get(e);this.store.set(e,n===void 0?s:s&n)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};wr.MatchRecord=Ea;var Pa=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(s=>s.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};wr.SubWalks=Pa;var Cl=class t{hasWalkedCache;matches=new Ea;subwalks=new Pa;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new Sa}processPatterns(e,r){this.patterns=r;let i=r.map(s=>[e,s]);for(let[s,n]of i){this.hasWalkedCache.storeWalked(s,n);let a=n.root(),o=n.isAbsolute()&&this.opts.absolute!==!1;if(a){s=s.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let d=n.rest();if(d)n=d;else{this.matches.add(s,!0,!1);continue}}if(s.isENOENT())continue;let l,c,u=!1;for(;typeof(l=n.pattern())=="string"&&(c=n.rest());)s=s.resolve(l),n=c,u=!0;if(l=n.pattern(),c=n.rest(),u){if(this.hasWalkedCache.hasWalked(s,n))continue;this.hasWalkedCache.storeWalked(s,n)}if(typeof l=="string"){let d=l===".."||l===""||l===".";this.matches.add(s.resolve(l),o,d);continue}else if(l===md.GLOBSTAR){(!s.isSymbolicLink()||this.follow||n.checkFollowGlobstar())&&this.subwalks.add(s,n);let d=c?.pattern(),b=c?.rest();if(!c||(d===""||d===".")&&!b)this.matches.add(s,o,d===""||d===".");else if(d===".."){let E=s.parent||s;b?this.hasWalkedCache.hasWalked(E,b)||this.subwalks.add(E,b):this.matches.add(E,o,!0)}}else l instanceof RegExp&&this.subwalks.add(s,n)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),s=this.child();for(let n of r)for(let a of i){let o=a.isAbsolute(),l=a.pattern(),c=a.rest();l===md.GLOBSTAR?s.testGlobstar(n,a,c,o):l instanceof RegExp?s.testRegExp(n,l,c,o):s.testString(n,l,c,o)}return s}testGlobstar(e,r,i,s){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,s,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let n=i.pattern();if(typeof n=="string"&&n!==".."&&n!==""&&n!==".")this.testString(e,n,i.rest(),s);else if(n===".."){let a=e.parent||e;this.subwalks.add(a,i)}else n instanceof RegExp&&this.testRegExp(e,n,i.rest(),s)}}testRegExp(e,r,i,s){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,s,!1))}testString(e,r,i,s){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,s,!1))}};wr.Processor=Cl});var xd=k(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.GlobStream=ei.GlobWalker=ei.GlobUtil=void 0;var eE=bl(),Td=wl(),gd=yd(),tE=(t,e)=>typeof t=="string"?new Td.Ignore([t],e):Array.isArray(t)?new Td.Ignore(t,e):t,Qs=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#t=tE(i.ignore??[],i),!this.includeChildMatches&&typeof this.#t.add!="function")){let s="cannot ignore child matches, ignore lacks add() method.";throw new Error(s)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#s(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#a(e){return!!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let n=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let a=await n.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(n,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#s(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let n=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let a=n.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(n,r)}matchFinish(e,r){if(this.#s(e))return;if(!this.includeChildMatches&&this.#t?.add){let n=`${e.relativePosix()}/**`;this.#t.add(n)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let s=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let n=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(n+s)}else{let n=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!n.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(n?a+n+s:"."+s)}}async match(e,r,i){let s=await this.matchCheck(e,i);s&&this.matchFinish(s,r)}matchSync(e,r,i){let s=this.matchCheckSync(e,i);s&&this.matchFinish(s,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new gd.Processor(this.opts),i)}walkCB2(e,r,i,s){if(this.#a(e))return s();if(this.signal?.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,s));return}i.processPatterns(e,r);let n=1,a=()=>{--n===0&&s()};for(let[o,l,c]of i.matches.entries())this.#s(o)||(n++,this.match(o,l,c).then(()=>a()));for(let o of i.subwalkTargets()){if(this.maxDepth!==1/0&&o.depth()>=this.maxDepth)continue;n++;let l=o.readdirCached();o.calledReaddir()?this.walkCB3(o,l,i,a):o.readdirCB((c,u)=>this.walkCB3(o,u,i,a),!0)}a()}walkCB3(e,r,i,s){i=i.filterEntries(e,r);let n=1,a=()=>{--n===0&&s()};for(let[o,l,c]of i.matches.entries())this.#s(o)||(n++,this.match(o,l,c).then(()=>a()));for(let[o,l]of i.subwalks.entries())n++,this.walkCB2(o,l,i.child(),a);a()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new gd.Processor(this.opts),i)}walkCB2Sync(e,r,i,s){if(this.#a(e))return s();if(this.signal?.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,s));return}i.processPatterns(e,r);let n=1,a=()=>{--n===0&&s()};for(let[o,l,c]of i.matches.entries())this.#s(o)||this.matchSync(o,l,c);for(let o of i.subwalkTargets()){if(this.maxDepth!==1/0&&o.depth()>=this.maxDepth)continue;n++;let l=o.readdirSync();this.walkCB3Sync(o,l,i,a)}a()}walkCB3Sync(e,r,i,s){i=i.filterEntries(e,r);let n=1,a=()=>{--n===0&&s()};for(let[o,l,c]of i.matches.entries())this.#s(o)||this.matchSync(o,l,c);for(let[o,l]of i.subwalks.entries())n++,this.walkCB2Sync(o,l,i.child(),a);a()}};ei.GlobUtil=Qs;var Il=class extends Qs{matches=new Set;constructor(e,r,i){super(e,r,i)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};ei.GlobWalker=Il;var kl=class extends Qs{results;constructor(e,r,i){super(e,r,i),this.results=new eE.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};ei.GlobStream=kl});var _l=k(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.Glob=void 0;var rE=Gr(),iE=require("node:url"),va=hd(),sE=vl(),Aa=xd(),nE=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ol=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,iE.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||nE,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?va.PathScurryWin32:r.platform==="darwin"?va.PathScurryDarwin:r.platform?va.PathScurryPosix:va.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",s={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},n=this.pattern.map(l=>new rE.Minimatch(l,s)),[a,o]=n.reduce((l,c)=>(l[0].push(...c.set),l[1].push(...c.globParts),l),[[],[]]);this.patterns=a.map((l,c)=>{let u=o[c];if(!u)throw new Error("invalid pattern object");return new sE.Pattern(l,u,0,this.platform)})}async walk(){return[...await new Aa.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Aa.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Aa.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Aa.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};wa.Glob=Ol});var Nl=k(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.hasMagic=void 0;var aE=Gr(),oE=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new aE.Minimatch(r,e).hasMagic())return!0;return!1};Ca.hasMagic=oE});var Pd=k(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.glob=Re.sync=Re.iterate=Re.iterateSync=Re.stream=Re.streamSync=Re.Ignore=Re.hasMagic=Re.Glob=Re.unescape=Re.escape=void 0;Re.globStreamSync=Zs;Re.globStream=Dl;Re.globSync=Ll;Re.globIterateSync=en;Re.globIterate=Ml;var bd=Gr(),Ai=_l(),lE=Nl(),Ed=Gr();Object.defineProperty(Re,"escape",{enumerable:!0,get:function(){return Ed.escape}});Object.defineProperty(Re,"unescape",{enumerable:!0,get:function(){return Ed.unescape}});var cE=_l();Object.defineProperty(Re,"Glob",{enumerable:!0,get:function(){return cE.Glob}});var uE=Nl();Object.defineProperty(Re,"hasMagic",{enumerable:!0,get:function(){return uE.hasMagic}});var pE=wl();Object.defineProperty(Re,"Ignore",{enumerable:!0,get:function(){return pE.Ignore}});function Zs(t,e={}){return new Ai.Glob(t,e).streamSync()}function Dl(t,e={}){return new Ai.Glob(t,e).stream()}function Ll(t,e={}){return new Ai.Glob(t,e).walkSync()}async function Sd(t,e={}){return new Ai.Glob(t,e).walk()}function en(t,e={}){return new Ai.Glob(t,e).iterateSync()}function Ml(t,e={}){return new Ai.Glob(t,e).iterate()}Re.streamSync=Zs;Re.stream=Object.assign(Dl,{sync:Zs});Re.iterateSync=en;Re.iterate=Object.assign(Ml,{sync:en});Re.sync=Object.assign(Ll,{stream:Zs,iterate:en});Re.glob=Object.assign(Sd,{glob:Sd,globSync:Ll,sync:Re.sync,globStream:Dl,stream:Re.stream,globStreamSync:Zs,streamSync:Re.streamSync,globIterate:Ml,iterate:Re.iterate,globIterateSync:en,iterateSync:Re.iterateSync,Glob:Ai.Glob,hasMagic:lE.hasMagic,escape:bd.escape,unescape:bd.unescape});Re.glob.glob=Re.glob});var Cd=k((RG,wd)=>{"use strict";var fE=function(e){return hE(e)&&!dE(e)};function hE(t){return!!t&&typeof t=="object"}function dE(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||TE(t)}var mE=typeof Symbol=="function"&&Symbol.for,yE=mE?Symbol.for("react.element"):60103;function TE(t){return t.$$typeof===yE}function gE(t){return Array.isArray(t)?[]:{}}function tn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?rs(gE(t),t,e):t}function xE(t,e,r){return t.concat(e).map(function(i){return tn(i,r)})}function bE(t,e){if(!e.customMerge)return rs;var r=e.customMerge(t);return typeof r=="function"?r:rs}function SE(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function vd(t){return Object.keys(t).concat(SE(t))}function Ad(t,e){try{return e in t}catch{return!1}}function EE(t,e){return Ad(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function PE(t,e,r){var i={};return r.isMergeableObject(t)&&vd(t).forEach(function(s){i[s]=tn(t[s],r)}),vd(e).forEach(function(s){EE(t,s)||(Ad(t,s)&&r.isMergeableObject(e[s])?i[s]=bE(s,r)(t[s],e[s],r):i[s]=tn(e[s],r))}),i}function rs(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||xE,r.isMergeableObject=r.isMergeableObject||fE,r.cloneUnlessOtherwiseSpecified=tn;var i=Array.isArray(e),s=Array.isArray(t),n=i===s;return n?i?r.arrayMerge(t,e,r):PE(t,e,r):tn(e,r)}rs.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,s){return rs(i,s,r)},{})};var vE=rs;wd.exports=vE});var Ba=k(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});function AE(t,e){if(t==null)return{};var r={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;r[i]=t[i]}return r}var kr=class{constructor(e,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=r,this.index=i}},os=class{constructor(e,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=r}};function Rt(t,e){let{line:r,column:i,index:s}=t;return new kr(r,i+e,s+e)}var Id="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",wE={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Id},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Id}},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"},Oa=t=>t.type==="UpdateExpression"?kd.UpdateExpression[`${t.prefix}`]:kd[t.type],CE={AccessorIsGenerator:({kind:t})=>`A ${t}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:t})=>`Missing initializer in ${t} 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:t})=>`\`${t}\` 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:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
4
4
  - Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="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:t})=>`Unsyntactic ${t==="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:t})=>`A string literal cannot be used as an imported binding.
5
- - Did you mean \`import { "${t}" 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:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${Oa(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Oa(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Oa(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} 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:t})=>`Label '${t}' 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:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).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:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' 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:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,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:t})=>`Unexpected keyword '${t}'.`,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:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,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:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,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:t})=>`Identifier '${t}' 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."},IE={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' 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."},kE={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},OE=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),_E=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:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${Oa({type:t})}; 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.'}),NE=["message"];function Od(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function DE({toMessage:t,code:e,reasonCode:r,syntaxPlugin:i}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};n[r]&&(r=n[r])}return function n(a,o){let l=new SyntaxError;return l.code=e,l.reasonCode=r,l.loc=a,l.pos=a.index,l.syntaxPlugin=i,s&&(l.missingPlugin=o.missingPlugin),Od(l,"clone",function(u={}){var d;let{line:b,column:E,index:v}=(d=u.loc)!=null?d:a;return n(new kr(b,E,v),Object.assign({},o,u.details))}),Od(l,"details",o),Object.defineProperty(l,"message",{configurable:!0,get(){let c=`${t(o)} (${a.line}:${a.column})`;return this.message=c,c},set(c){Object.defineProperty(this,"message",{value:c,writable:!0})}}),l}}function Ir(t,e){if(Array.isArray(t))return i=>Ir(i,t[0]);let r={};for(let i of Object.keys(t)){let s=t[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,o=AE(n,NE),l=typeof a=="string"?()=>a:a;r[i]=DE(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},e?{syntaxPlugin:e}:{},o))}return r}var w=Object.assign({},Ir(wE),Ir(CE),Ir(IE),Ir(kE),Ir`pipelineOperator`(_E));function LE(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function ME(t){let e=LE();if(t==null)return e;if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(e))t[r]!=null&&(e[r]=t[r]);if(e.startLine===1)t.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:t.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if((t.startColumn==null||t.startIndex==null)&&t.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(e.sourceType==="commonjs"){if(t.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(t.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(t.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return e}var{defineProperty:FE}=Object,_d=(t,e)=>{t&&FE(t,e,{enumerable:!1,value:t[e]})};function rn(t){return _d(t.loc.start,"index"),_d(t.loc.end,"index"),t}var BE=t=>class extends t{parse(){let r=rn(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(rn)),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=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,a){super.parseBlockBody(r,i,s,n,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,a,o,l=!1){let c=this.startNode();c.kind=r.kind,c=super.parseMethod(c,i,s,n,a,o,l),delete c.kind;let{typeParameters:u}=r;u&&(delete r.typeParameters,c.typeParameters=u,this.resetStartLocationFromNode(c,u));let d=this.castNodeTo(c,"FunctionExpression");return r.value=d,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(i,"PropertyDefinition"),i.computed=!1),i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty")),i}parseObjectProperty(r,i,s,n){let a=super.parseObjectProperty(r,i,s,n);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,s){return r==="Property"?"value":super.isValidLVal(r,i,s)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(w.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(w.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){var n,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(r,i){let s=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,i,s,n,a){let o=super.parseMember(r,i,s,n,a);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let s=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,s){return rn(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),rn(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),rn(r)}},Ci=class{constructor(e,r){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!r}},ze={brace:new Ci("{"),j_oTag:new Ci("<tag"),j_cTag:new Ci("</tag"),j_expr:new Ci("<tag>...</tag>",!0)};ze.template=new Ci("`",!0);var De=!0,le=!0,Fl=!0,sn=!0,ti=!0,jE=!0,Da=class{constructor(e,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=e,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}},oc=new Map;function $e(t,e={}){e.keyword=t;let r=Te(t,e);return oc.set(t,r),r}function jt(t,e){return Te(t,{beforeExpr:De,binop:e})}var ln=-1,$r=[],lc=[],cc=[],uc=[],pc=[],fc=[];function Te(t,e={}){var r,i,s,n;return++ln,lc.push(t),cc.push((r=e.binop)!=null?r:-1),uc.push((i=e.beforeExpr)!=null?i:!1),pc.push((s=e.startsExpr)!=null?s:!1),fc.push((n=e.prefix)!=null?n:!1),$r.push(new Da(t,e)),ln}function Fe(t,e={}){var r,i,s,n;return++ln,oc.set(t,ln),lc.push(t),cc.push((r=e.binop)!=null?r:-1),uc.push((i=e.beforeExpr)!=null?i:!1),pc.push((s=e.startsExpr)!=null?s:!1),fc.push((n=e.prefix)!=null?n:!1),$r.push(new Da("name",e)),ln}var RE={bracketL:Te("[",{beforeExpr:De,startsExpr:le}),bracketHashL:Te("#[",{beforeExpr:De,startsExpr:le}),bracketBarL:Te("[|",{beforeExpr:De,startsExpr:le}),bracketR:Te("]"),bracketBarR:Te("|]"),braceL:Te("{",{beforeExpr:De,startsExpr:le}),braceBarL:Te("{|",{beforeExpr:De,startsExpr:le}),braceHashL:Te("#{",{beforeExpr:De,startsExpr:le}),braceR:Te("}"),braceBarR:Te("|}"),parenL:Te("(",{beforeExpr:De,startsExpr:le}),parenR:Te(")"),comma:Te(",",{beforeExpr:De}),semi:Te(";",{beforeExpr:De}),colon:Te(":",{beforeExpr:De}),doubleColon:Te("::",{beforeExpr:De}),dot:Te("."),question:Te("?",{beforeExpr:De}),questionDot:Te("?."),arrow:Te("=>",{beforeExpr:De}),template:Te("template"),ellipsis:Te("...",{beforeExpr:De}),backQuote:Te("`",{startsExpr:le}),dollarBraceL:Te("${",{beforeExpr:De,startsExpr:le}),templateTail:Te("...`",{startsExpr:le}),templateNonTail:Te("...${",{beforeExpr:De,startsExpr:le}),at:Te("@"),hash:Te("#",{startsExpr:le}),interpreterDirective:Te("#!..."),eq:Te("=",{beforeExpr:De,isAssign:sn}),assign:Te("_=",{beforeExpr:De,isAssign:sn}),slashAssign:Te("_=",{beforeExpr:De,isAssign:sn}),xorAssign:Te("_=",{beforeExpr:De,isAssign:sn}),moduloAssign:Te("_=",{beforeExpr:De,isAssign:sn}),incDec:Te("++/--",{prefix:ti,postfix:jE,startsExpr:le}),bang:Te("!",{beforeExpr:De,prefix:ti,startsExpr:le}),tilde:Te("~",{beforeExpr:De,prefix:ti,startsExpr:le}),doubleCaret:Te("^^",{startsExpr:le}),doubleAt:Te("@@",{startsExpr:le}),pipeline:jt("|>",0),nullishCoalescing:jt("??",1),logicalOR:jt("||",1),logicalAND:jt("&&",2),bitwiseOR:jt("|",3),bitwiseXOR:jt("^",4),bitwiseAND:jt("&",5),equality:jt("==/!=/===/!==",6),lt:jt("</>/<=/>=",7),gt:jt("</>/<=/>=",7),relational:jt("</>/<=/>=",7),bitShift:jt("<</>>/>>>",8),bitShiftL:jt("<</>>/>>>",8),bitShiftR:jt("<</>>/>>>",8),plusMin:Te("+/-",{beforeExpr:De,binop:9,prefix:ti,startsExpr:le}),modulo:Te("%",{binop:10,startsExpr:le}),star:Te("*",{binop:10}),slash:jt("/",10),exponent:Te("**",{beforeExpr:De,binop:11,rightAssociative:!0}),_in:$e("in",{beforeExpr:De,binop:7}),_instanceof:$e("instanceof",{beforeExpr:De,binop:7}),_break:$e("break"),_case:$e("case",{beforeExpr:De}),_catch:$e("catch"),_continue:$e("continue"),_debugger:$e("debugger"),_default:$e("default",{beforeExpr:De}),_else:$e("else",{beforeExpr:De}),_finally:$e("finally"),_function:$e("function",{startsExpr:le}),_if:$e("if"),_return:$e("return",{beforeExpr:De}),_switch:$e("switch"),_throw:$e("throw",{beforeExpr:De,prefix:ti,startsExpr:le}),_try:$e("try"),_var:$e("var"),_const:$e("const"),_with:$e("with"),_new:$e("new",{beforeExpr:De,startsExpr:le}),_this:$e("this",{startsExpr:le}),_super:$e("super",{startsExpr:le}),_class:$e("class",{startsExpr:le}),_extends:$e("extends",{beforeExpr:De}),_export:$e("export"),_import:$e("import",{startsExpr:le}),_null:$e("null",{startsExpr:le}),_true:$e("true",{startsExpr:le}),_false:$e("false",{startsExpr:le}),_typeof:$e("typeof",{beforeExpr:De,prefix:ti,startsExpr:le}),_void:$e("void",{beforeExpr:De,prefix:ti,startsExpr:le}),_delete:$e("delete",{beforeExpr:De,prefix:ti,startsExpr:le}),_do:$e("do",{isLoop:Fl,beforeExpr:De}),_for:$e("for",{isLoop:Fl}),_while:$e("while",{isLoop:Fl}),_as:Fe("as",{startsExpr:le}),_assert:Fe("assert",{startsExpr:le}),_async:Fe("async",{startsExpr:le}),_await:Fe("await",{startsExpr:le}),_defer:Fe("defer",{startsExpr:le}),_from:Fe("from",{startsExpr:le}),_get:Fe("get",{startsExpr:le}),_let:Fe("let",{startsExpr:le}),_meta:Fe("meta",{startsExpr:le}),_of:Fe("of",{startsExpr:le}),_sent:Fe("sent",{startsExpr:le}),_set:Fe("set",{startsExpr:le}),_source:Fe("source",{startsExpr:le}),_static:Fe("static",{startsExpr:le}),_using:Fe("using",{startsExpr:le}),_yield:Fe("yield",{startsExpr:le}),_asserts:Fe("asserts",{startsExpr:le}),_checks:Fe("checks",{startsExpr:le}),_exports:Fe("exports",{startsExpr:le}),_global:Fe("global",{startsExpr:le}),_implements:Fe("implements",{startsExpr:le}),_intrinsic:Fe("intrinsic",{startsExpr:le}),_infer:Fe("infer",{startsExpr:le}),_is:Fe("is",{startsExpr:le}),_mixins:Fe("mixins",{startsExpr:le}),_proto:Fe("proto",{startsExpr:le}),_require:Fe("require",{startsExpr:le}),_satisfies:Fe("satisfies",{startsExpr:le}),_keyof:Fe("keyof",{startsExpr:le}),_readonly:Fe("readonly",{startsExpr:le}),_unique:Fe("unique",{startsExpr:le}),_abstract:Fe("abstract",{startsExpr:le}),_declare:Fe("declare",{startsExpr:le}),_enum:Fe("enum",{startsExpr:le}),_module:Fe("module",{startsExpr:le}),_namespace:Fe("namespace",{startsExpr:le}),_interface:Fe("interface",{startsExpr:le}),_type:Fe("type",{startsExpr:le}),_opaque:Fe("opaque",{startsExpr:le}),name:Te("name",{startsExpr:le}),placeholder:Te("%%",{startsExpr:le}),string:Te("string",{startsExpr:le}),num:Te("num",{startsExpr:le}),bigint:Te("bigint",{startsExpr:le}),decimal:Te("decimal",{startsExpr:le}),regexp:Te("regexp",{startsExpr:le}),privateName:Te("#name",{startsExpr:le}),eof:Te("eof"),jsxName:Te("jsxName"),jsxText:Te("jsxText",{beforeExpr:De}),jsxTagStart:Te("jsxTagStart",{startsExpr:le}),jsxTagEnd:Te("jsxTagEnd")};function Xe(t){return t>=93&&t<=133}function qE(t){return t<=92}function yr(t){return t>=58&&t<=133}function Kd(t){return t>=58&&t<=137}function $E(t){return uc[t]}function an(t){return pc[t]}function UE(t){return t>=29&&t<=33}function Nd(t){return t>=129&&t<=131}function KE(t){return t>=90&&t<=92}function hc(t){return t>=58&&t<=92}function WE(t){return t>=39&&t<=59}function VE(t){return t===34}function YE(t){return fc[t]}function zE(t){return t>=121&&t<=123}function JE(t){return t>=124&&t<=130}function si(t){return lc[t]}function _a(t){return cc[t]}function XE(t){return t===57}function La(t){return t>=24&&t<=25}function qr(t){return $r[t]}$r[8].updateContext=t=>{t.pop()},$r[5].updateContext=$r[7].updateContext=$r[23].updateContext=t=>{t.push(ze.brace)},$r[22].updateContext=t=>{t[t.length-1]===ze.template?t.pop():t.push(ze.template)},$r[143].updateContext=t=>{t.push(ze.j_expr,ze.j_oTag)};var dc="\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-\u088E\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\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",Wd="\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-\u1ACE\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",HE=new RegExp("["+dc+"]"),GE=new RegExp("["+dc+Wd+"]");dc=Wd=null;var Vd=[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,71,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,2,60,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,328,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,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,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,496,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],QE=[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,80,3,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,343,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,330,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,726,6,110,6,6,9,4759,9,787719,239];function $l(t,e){let r=65536;for(let i=0,s=e.length;i<s;i+=2){if(r+=e[i],r>t)return!1;if(r+=e[i+1],r>=t)return!0}return!1}function Ur(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&HE.test(String.fromCharCode(t)):$l(t,Vd)}function ss(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&GE.test(String.fromCharCode(t)):$l(t,Vd)||$l(t,QE)}var mc={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"]},ZE=new Set(mc.keyword),eP=new Set(mc.strict),tP=new Set(mc.strictBind);function Yd(t,e){return e&&t==="await"||t==="enum"}function zd(t,e){return Yd(t,e)||eP.has(t)}function Jd(t){return tP.has(t)}function Xd(t,e){return zd(t,e)||Jd(t)}function rP(t){return ZE.has(t)}function iP(t,e,r){return t===64&&e===64&&Ur(r)}var sP=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 nP(t){return sP.has(t)}var cn=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},un=class{constructor(e,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,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 e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new cn(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,e,r,i);let n=s.names.get(e)||0;r&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=e),n=n|2),s.names.set(e,n),r&8&&this.maybeExportDefined(s,e)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,e,r,i),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,i,s){this.isRedeclaredInScope(e,r,i)&&this.parser.raise(w.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(e,r,i){if(!(i&1))return!1;if(i&8)return e.names.has(r);let s=e.names.get(r);return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0:(s&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1667)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1731&&!(r&4))return r}}},Ul=class extends cn{constructor(...e){super(...e),this.declareFunctions=new Set}},Kl=class extends un{createScope(e){return new Ul(e)}declareName(e,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,r,i)}isRedeclaredInScope(e,r,i){if(super.isRedeclaredInScope(e,r,i))return!0;if(i&2048&&!e.declareFunctions.has(r)){let s=e.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},aP=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),be=Ir`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:t})=>`Cannot overwrite reserved type ${t}.`,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:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,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:t})=>`Unexpected reserved type ${t}.`,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:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function oP(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Dd(t){return t.importKind==="type"||t.importKind==="typeof"}var lP={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function cP(t,e){let r=[],i=[];for(let s=0;s<t.length;s++)(e(t[s],s,t)?r:i).push(t[s]);return[r,i]}var uP=/\*?\s*@((?:no)?flow)\b/,pP=t=>class extends t{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Kl}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=uP.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(be.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(be.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);this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),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(be.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,be.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),s.push(o)}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=!1;return s.forEach(o=>{oP(o)?(n==="CommonJS"&&this.raise(be.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(be.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(be.AmbiguousDeclareModuleKind,o),n="CommonJS",a=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(be.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:lP[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(be.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){aP.has(r)&&this.raise(s?be.AssignReservedType:be.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(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){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(be.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==ze.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=i,!this.state.inType&&this.curContext()===ze.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let c,u,d=!1;for(i&&this.match(6)?(this.expect(6),c=9,u=!0):(this.expect(5),c=8,u=!1),l.exact=u;!this.match(c);){let E=!1,v=null,A=null,I=this.startNode();if(n&&this.isContextual(118)){let $=this.lookahead();$.type!==14&&$.type!==17&&(this.next(),v=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let $=this.lookahead();$.type!==14&&$.type!==17&&(this.next(),E=!0)}let _=this.flowParseVariance();if(this.eat(0))v!=null&&this.unexpected(v),this.eat(0)?(_&&this.unexpected(_.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(I,E))):l.indexers.push(this.flowParseObjectTypeIndexer(I,E,_));else if(this.match(10)||this.match(47))v!=null&&this.unexpected(v),_&&this.unexpected(_.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(I,E));else{let $="init";if(this.isContextual(99)||this.isContextual(104)){let N=this.lookahead();Kd(N.type)&&($=this.state.value,this.next())}let X=this.flowParseObjectTypeProperty(I,E,v,_,$,s,a??!u);X===null?(d=!0,A=this.state.lastTokStartLoc):l.properties.push(X)}this.flowObjectTypeSemicolon(),A&&!this.match(8)&&!this.match(9)&&this.raise(be.UnexpectedExplicitInexactInObject,A)}this.expect(c),s&&(l.inexact=d);let b=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,b}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(be.InexactInsideExact,this.state.lastTokStartLoc):this.raise(be.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(be.InexactVariance,n),null):(o||this.raise(be.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(be.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=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(be.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(c=!0),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"?be.GetterMayNotHaveThisParam:be.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?w.BadGetterArity:w.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(w.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let s=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(r);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(be.ThisParamMustBeFirst,a),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(be.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=i,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Xe(this.state.type)||this.match(78)){let c=this.lookahead().type;a=c!==17&&c!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(be.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;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(hc(this.state.type)){let l=si(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(Xe(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(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=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(yr(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)||Xe(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Xe(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Nd(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Nd(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 b=this.lookaheadCharCode();if(b===44||b===61||b===58||b===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(),[u,d]=this.getArrowLikeExpressions(l);if(c||d.length>0){let b=[...a];if(d.length>0){this.state=n,this.state.noArrowAt=b;for(let E=0;E<d.length;E++)b.push(d[E].start);({consequent:l,failed:c}=this.tryParseConditionalConsequent()),[u,d]=this.getArrowLikeExpressions(l)}c&&u.length>1&&this.raise(be.AmbiguousConditionalArrow,n.startLoc),c&&u.length===1&&(this.state=n,b.push(u[0].start),this.state.noArrowAt=b,{consequent:l,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return i?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):cP(n,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(be.DeclareClassElement,n):i.value&&this.raise(be.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(w.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):iP(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];a?.type==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let a=r[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(be.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,i,s,n){let a=super.parseArrayLike(r,i,s,n);return i&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(r,i,s){return r==="TypeCastExpression"||super.isValidLVal(r,i,s)}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(be.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(be.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(be.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(be.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 u=super.parseObjPropValue(r,i,s,n,a,o,l);return c&&((u.value||u).typeParameters=c),u}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(be.PatternIsOptional,r),this.isThisParam(r)&&this.raise(be.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(be.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(be.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(be.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(be.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,s){i.local=Dd(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,a){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let c=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let d=this.parseIdentifier(!0);l!==null&&!yr(this.state.type)?(r.imported=d,r.importKind=l,r.local=this.cloneIdentifier(d)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(l!==null&&yr(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(i)throw this.raise(w.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(c=!0,r.local=this.cloneIdentifier(r.imported))}let u=Dd(r);return s&&u&&this.raise(be.ImportTypeShorthandOnlyInPureImport,r),(s||u)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),c&&!s&&!u&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!a.error)return a.node;let{context:c}=this.state,u=c[c.length-1];(u===ze.j_oTag||u===ze.j_expr)&&c.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let c,u=this.tryParse(b=>{var E;c=this.flowParseTypeParameterDeclaration();let v=this.forwardNoArrowParamsConversionAt(c,()=>{let I=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(I,c),I});(E=v.extra)!=null&&E.parenthesized&&b();let A=this.maybeUnwrapTypeCastExpression(v);return A.type!=="ArrowFunctionExpression"&&b(),A.typeParameters=c,this.resetStartLocationFromNode(A,c),v},n),d=null;if(u.node&&this.maybeUnwrapTypeCastExpression(u.node).type==="ArrowFunctionExpression"){if(!u.error&&!u.aborted)return u.node.async&&this.raise(be.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),u.node;d=u.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(d)return this.state=u.failState,d;throw(l=a)!=null&&l.thrown?a.error:u.thrown?u.error:this.raise(be.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=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(be.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(be.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(be.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(be.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?be.EnumInvalidMemberInitializerSymbolType:be.EnumInvalidMemberInitializerPrimaryType:be.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(be.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(be.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:c}=this.flowEnumMemberRaw(),u=l.name;if(u==="")continue;/^[a-z]/.test(u)&&this.raise(be.EnumInvalidMemberName,l,{memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:r}),s.has(u)&&this.raise(be.EnumDuplicateMemberName,l,{memberName:u,enumName:r}),s.add(u);let d={enumName:r,explicitType:i,memberName:u};switch(o.id=l,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"boolean"),o.init=c.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"number"),o.init=c.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"string"),o.init=c.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,d);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,d);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(!Xe(this.state.type))throw this.raise(be.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(be.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let c=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let u=o.booleanMembers.length,d=o.numberMembers.length,b=o.stringMembers.length,E=o.defaultedMembers.length;if(!u&&!d&&!b&&!E)return c();if(!u&&!d)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!d&&!b&&u>=E){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(!u&&!b&&d>=E){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(be.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!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},fP={__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"},hP=/\r\n|[\r\n\u2028\u2029]/,Ia=new RegExp(hP.source,"g");function ns(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Ld(t,e,r){for(let i=e;i<r;i++)if(ns(t.charCodeAt(i)))return!0;return!1}var Bl=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,jl=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function dP(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var wi=Ir`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,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:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,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 ri(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function is(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return is(t.object)+"."+is(t.property);throw new Error("Node had unexpected type: "+t.type)}var mP=t=>class extends t{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(wi.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;case 62:case 125:default:ns(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
5
+ - Did you mean \`import { "${t}" 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:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${Oa(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Oa(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Oa(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} 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:t})=>`Label '${t}' 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:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).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:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' 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:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,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:t})=>`Unexpected keyword '${t}'.`,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:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,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:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,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:t})=>`Identifier '${t}' 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."},IE={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' 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."},kE={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},OE=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),_E=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:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${Oa({type:t})}; 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.'}),NE=["message"];function Od(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function DE({toMessage:t,code:e,reasonCode:r,syntaxPlugin:i}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};n[r]&&(r=n[r])}return function n(a,o){let l=new SyntaxError;return l.code=e,l.reasonCode=r,l.loc=a,l.pos=a.index,l.syntaxPlugin=i,s&&(l.missingPlugin=o.missingPlugin),Od(l,"clone",function(u={}){var d;let{line:b,column:E,index:v}=(d=u.loc)!=null?d:a;return n(new kr(b,E,v),Object.assign({},o,u.details))}),Od(l,"details",o),Object.defineProperty(l,"message",{configurable:!0,get(){let c=`${t(o)} (${a.line}:${a.column})`;return this.message=c,c},set(c){Object.defineProperty(this,"message",{value:c,writable:!0})}}),l}}function Ir(t,e){if(Array.isArray(t))return i=>Ir(i,t[0]);let r={};for(let i of Object.keys(t)){let s=t[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,o=AE(n,NE),l=typeof a=="string"?()=>a:a;r[i]=DE(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},e?{syntaxPlugin:e}:{},o))}return r}var w=Object.assign({},Ir(wE),Ir(CE),Ir(IE),Ir(kE),Ir`pipelineOperator`(_E));function LE(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function ME(t){let e=LE();if(t==null)return e;if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(e))t[r]!=null&&(e[r]=t[r]);if(e.startLine===1)t.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:t.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if((t.startColumn==null||t.startIndex==null)&&t.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(e.sourceType==="commonjs"){if(t.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(t.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(t.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return e}var{defineProperty:FE}=Object,_d=(t,e)=>{t&&FE(t,e,{enumerable:!1,value:t[e]})};function rn(t){return _d(t.loc.start,"index"),_d(t.loc.end,"index"),t}var BE=t=>class extends t{parse(){let r=rn(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(rn)),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=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,a){super.parseBlockBody(r,i,s,n,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,a,o,l=!1){let c=this.startNode();c.kind=r.kind,c=super.parseMethod(c,i,s,n,a,o,l),delete c.kind;let{typeParameters:u}=r;u&&(delete r.typeParameters,c.typeParameters=u,this.resetStartLocationFromNode(c,u));let d=this.castNodeTo(c,"FunctionExpression");return r.value=d,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(i,"PropertyDefinition"),i.computed=!1),i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty")),i}parseObjectProperty(r,i,s,n){let a=super.parseObjectProperty(r,i,s,n);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,s){return r==="Property"?"value":super.isValidLVal(r,i,s)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(w.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(w.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){var n,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(r,i){let s=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,i,s,n,a){let o=super.parseMember(r,i,s,n,a);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let s=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,s){return rn(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),rn(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),rn(r)}},Ci=class{constructor(e,r){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!r}},Je={brace:new Ci("{"),j_oTag:new Ci("<tag"),j_cTag:new Ci("</tag"),j_expr:new Ci("<tag>...</tag>",!0)};Je.template=new Ci("`",!0);var De=!0,le=!0,Fl=!0,sn=!0,ti=!0,jE=!0,Da=class{constructor(e,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=e,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}},oc=new Map;function $e(t,e={}){e.keyword=t;let r=Te(t,e);return oc.set(t,r),r}function jt(t,e){return Te(t,{beforeExpr:De,binop:e})}var ln=-1,$r=[],lc=[],cc=[],uc=[],pc=[],fc=[];function Te(t,e={}){var r,i,s,n;return++ln,lc.push(t),cc.push((r=e.binop)!=null?r:-1),uc.push((i=e.beforeExpr)!=null?i:!1),pc.push((s=e.startsExpr)!=null?s:!1),fc.push((n=e.prefix)!=null?n:!1),$r.push(new Da(t,e)),ln}function Fe(t,e={}){var r,i,s,n;return++ln,oc.set(t,ln),lc.push(t),cc.push((r=e.binop)!=null?r:-1),uc.push((i=e.beforeExpr)!=null?i:!1),pc.push((s=e.startsExpr)!=null?s:!1),fc.push((n=e.prefix)!=null?n:!1),$r.push(new Da("name",e)),ln}var RE={bracketL:Te("[",{beforeExpr:De,startsExpr:le}),bracketHashL:Te("#[",{beforeExpr:De,startsExpr:le}),bracketBarL:Te("[|",{beforeExpr:De,startsExpr:le}),bracketR:Te("]"),bracketBarR:Te("|]"),braceL:Te("{",{beforeExpr:De,startsExpr:le}),braceBarL:Te("{|",{beforeExpr:De,startsExpr:le}),braceHashL:Te("#{",{beforeExpr:De,startsExpr:le}),braceR:Te("}"),braceBarR:Te("|}"),parenL:Te("(",{beforeExpr:De,startsExpr:le}),parenR:Te(")"),comma:Te(",",{beforeExpr:De}),semi:Te(";",{beforeExpr:De}),colon:Te(":",{beforeExpr:De}),doubleColon:Te("::",{beforeExpr:De}),dot:Te("."),question:Te("?",{beforeExpr:De}),questionDot:Te("?."),arrow:Te("=>",{beforeExpr:De}),template:Te("template"),ellipsis:Te("...",{beforeExpr:De}),backQuote:Te("`",{startsExpr:le}),dollarBraceL:Te("${",{beforeExpr:De,startsExpr:le}),templateTail:Te("...`",{startsExpr:le}),templateNonTail:Te("...${",{beforeExpr:De,startsExpr:le}),at:Te("@"),hash:Te("#",{startsExpr:le}),interpreterDirective:Te("#!..."),eq:Te("=",{beforeExpr:De,isAssign:sn}),assign:Te("_=",{beforeExpr:De,isAssign:sn}),slashAssign:Te("_=",{beforeExpr:De,isAssign:sn}),xorAssign:Te("_=",{beforeExpr:De,isAssign:sn}),moduloAssign:Te("_=",{beforeExpr:De,isAssign:sn}),incDec:Te("++/--",{prefix:ti,postfix:jE,startsExpr:le}),bang:Te("!",{beforeExpr:De,prefix:ti,startsExpr:le}),tilde:Te("~",{beforeExpr:De,prefix:ti,startsExpr:le}),doubleCaret:Te("^^",{startsExpr:le}),doubleAt:Te("@@",{startsExpr:le}),pipeline:jt("|>",0),nullishCoalescing:jt("??",1),logicalOR:jt("||",1),logicalAND:jt("&&",2),bitwiseOR:jt("|",3),bitwiseXOR:jt("^",4),bitwiseAND:jt("&",5),equality:jt("==/!=/===/!==",6),lt:jt("</>/<=/>=",7),gt:jt("</>/<=/>=",7),relational:jt("</>/<=/>=",7),bitShift:jt("<</>>/>>>",8),bitShiftL:jt("<</>>/>>>",8),bitShiftR:jt("<</>>/>>>",8),plusMin:Te("+/-",{beforeExpr:De,binop:9,prefix:ti,startsExpr:le}),modulo:Te("%",{binop:10,startsExpr:le}),star:Te("*",{binop:10}),slash:jt("/",10),exponent:Te("**",{beforeExpr:De,binop:11,rightAssociative:!0}),_in:$e("in",{beforeExpr:De,binop:7}),_instanceof:$e("instanceof",{beforeExpr:De,binop:7}),_break:$e("break"),_case:$e("case",{beforeExpr:De}),_catch:$e("catch"),_continue:$e("continue"),_debugger:$e("debugger"),_default:$e("default",{beforeExpr:De}),_else:$e("else",{beforeExpr:De}),_finally:$e("finally"),_function:$e("function",{startsExpr:le}),_if:$e("if"),_return:$e("return",{beforeExpr:De}),_switch:$e("switch"),_throw:$e("throw",{beforeExpr:De,prefix:ti,startsExpr:le}),_try:$e("try"),_var:$e("var"),_const:$e("const"),_with:$e("with"),_new:$e("new",{beforeExpr:De,startsExpr:le}),_this:$e("this",{startsExpr:le}),_super:$e("super",{startsExpr:le}),_class:$e("class",{startsExpr:le}),_extends:$e("extends",{beforeExpr:De}),_export:$e("export"),_import:$e("import",{startsExpr:le}),_null:$e("null",{startsExpr:le}),_true:$e("true",{startsExpr:le}),_false:$e("false",{startsExpr:le}),_typeof:$e("typeof",{beforeExpr:De,prefix:ti,startsExpr:le}),_void:$e("void",{beforeExpr:De,prefix:ti,startsExpr:le}),_delete:$e("delete",{beforeExpr:De,prefix:ti,startsExpr:le}),_do:$e("do",{isLoop:Fl,beforeExpr:De}),_for:$e("for",{isLoop:Fl}),_while:$e("while",{isLoop:Fl}),_as:Fe("as",{startsExpr:le}),_assert:Fe("assert",{startsExpr:le}),_async:Fe("async",{startsExpr:le}),_await:Fe("await",{startsExpr:le}),_defer:Fe("defer",{startsExpr:le}),_from:Fe("from",{startsExpr:le}),_get:Fe("get",{startsExpr:le}),_let:Fe("let",{startsExpr:le}),_meta:Fe("meta",{startsExpr:le}),_of:Fe("of",{startsExpr:le}),_sent:Fe("sent",{startsExpr:le}),_set:Fe("set",{startsExpr:le}),_source:Fe("source",{startsExpr:le}),_static:Fe("static",{startsExpr:le}),_using:Fe("using",{startsExpr:le}),_yield:Fe("yield",{startsExpr:le}),_asserts:Fe("asserts",{startsExpr:le}),_checks:Fe("checks",{startsExpr:le}),_exports:Fe("exports",{startsExpr:le}),_global:Fe("global",{startsExpr:le}),_implements:Fe("implements",{startsExpr:le}),_intrinsic:Fe("intrinsic",{startsExpr:le}),_infer:Fe("infer",{startsExpr:le}),_is:Fe("is",{startsExpr:le}),_mixins:Fe("mixins",{startsExpr:le}),_proto:Fe("proto",{startsExpr:le}),_require:Fe("require",{startsExpr:le}),_satisfies:Fe("satisfies",{startsExpr:le}),_keyof:Fe("keyof",{startsExpr:le}),_readonly:Fe("readonly",{startsExpr:le}),_unique:Fe("unique",{startsExpr:le}),_abstract:Fe("abstract",{startsExpr:le}),_declare:Fe("declare",{startsExpr:le}),_enum:Fe("enum",{startsExpr:le}),_module:Fe("module",{startsExpr:le}),_namespace:Fe("namespace",{startsExpr:le}),_interface:Fe("interface",{startsExpr:le}),_type:Fe("type",{startsExpr:le}),_opaque:Fe("opaque",{startsExpr:le}),name:Te("name",{startsExpr:le}),placeholder:Te("%%",{startsExpr:le}),string:Te("string",{startsExpr:le}),num:Te("num",{startsExpr:le}),bigint:Te("bigint",{startsExpr:le}),decimal:Te("decimal",{startsExpr:le}),regexp:Te("regexp",{startsExpr:le}),privateName:Te("#name",{startsExpr:le}),eof:Te("eof"),jsxName:Te("jsxName"),jsxText:Te("jsxText",{beforeExpr:De}),jsxTagStart:Te("jsxTagStart",{startsExpr:le}),jsxTagEnd:Te("jsxTagEnd")};function He(t){return t>=93&&t<=133}function qE(t){return t<=92}function yr(t){return t>=58&&t<=133}function Kd(t){return t>=58&&t<=137}function $E(t){return uc[t]}function an(t){return pc[t]}function UE(t){return t>=29&&t<=33}function Nd(t){return t>=129&&t<=131}function KE(t){return t>=90&&t<=92}function hc(t){return t>=58&&t<=92}function WE(t){return t>=39&&t<=59}function VE(t){return t===34}function YE(t){return fc[t]}function zE(t){return t>=121&&t<=123}function JE(t){return t>=124&&t<=130}function si(t){return lc[t]}function _a(t){return cc[t]}function XE(t){return t===57}function La(t){return t>=24&&t<=25}function qr(t){return $r[t]}$r[8].updateContext=t=>{t.pop()},$r[5].updateContext=$r[7].updateContext=$r[23].updateContext=t=>{t.push(Je.brace)},$r[22].updateContext=t=>{t[t.length-1]===Je.template?t.pop():t.push(Je.template)},$r[143].updateContext=t=>{t.push(Je.j_expr,Je.j_oTag)};var dc="\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-\u088E\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\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",Wd="\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-\u1ACE\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",HE=new RegExp("["+dc+"]"),GE=new RegExp("["+dc+Wd+"]");dc=Wd=null;var Vd=[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,71,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,2,60,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,328,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,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,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,496,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],QE=[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,80,3,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,343,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,330,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,726,6,110,6,6,9,4759,9,787719,239];function $l(t,e){let r=65536;for(let i=0,s=e.length;i<s;i+=2){if(r+=e[i],r>t)return!1;if(r+=e[i+1],r>=t)return!0}return!1}function Ur(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&HE.test(String.fromCharCode(t)):$l(t,Vd)}function ss(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&GE.test(String.fromCharCode(t)):$l(t,Vd)||$l(t,QE)}var mc={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"]},ZE=new Set(mc.keyword),eP=new Set(mc.strict),tP=new Set(mc.strictBind);function Yd(t,e){return e&&t==="await"||t==="enum"}function zd(t,e){return Yd(t,e)||eP.has(t)}function Jd(t){return tP.has(t)}function Xd(t,e){return zd(t,e)||Jd(t)}function rP(t){return ZE.has(t)}function iP(t,e,r){return t===64&&e===64&&Ur(r)}var sP=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 nP(t){return sP.has(t)}var cn=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},un=class{constructor(e,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,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 e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new cn(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,e,r,i);let n=s.names.get(e)||0;r&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=e),n=n|2),s.names.set(e,n),r&8&&this.maybeExportDefined(s,e)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,e,r,i),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,i,s){this.isRedeclaredInScope(e,r,i)&&this.parser.raise(w.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(e,r,i){if(!(i&1))return!1;if(i&8)return e.names.has(r);let s=e.names.get(r);return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0:(s&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1667)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1731&&!(r&4))return r}}},Ul=class extends cn{constructor(...e){super(...e),this.declareFunctions=new Set}},Kl=class extends un{createScope(e){return new Ul(e)}declareName(e,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,r,i)}isRedeclaredInScope(e,r,i){if(super.isRedeclaredInScope(e,r,i))return!0;if(i&2048&&!e.declareFunctions.has(r)){let s=e.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},aP=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),be=Ir`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:t})=>`Cannot overwrite reserved type ${t}.`,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:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,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:t})=>`Unexpected reserved type ${t}.`,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:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function oP(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Dd(t){return t.importKind==="type"||t.importKind==="typeof"}var lP={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function cP(t,e){let r=[],i=[];for(let s=0;s<t.length;s++)(e(t[s],s,t)?r:i).push(t[s]);return[r,i]}var uP=/\*?\s*@((?:no)?flow)\b/,pP=t=>class extends t{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Kl}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=uP.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(be.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(be.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);this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),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(be.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,be.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),s.push(o)}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=!1;return s.forEach(o=>{oP(o)?(n==="CommonJS"&&this.raise(be.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(be.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(be.AmbiguousDeclareModuleKind,o),n="CommonJS",a=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(be.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:lP[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(be.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){aP.has(r)&&this.raise(s?be.AssignReservedType:be.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(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){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(be.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==Je.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=i,!this.state.inType&&this.curContext()===Je.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let c,u,d=!1;for(i&&this.match(6)?(this.expect(6),c=9,u=!0):(this.expect(5),c=8,u=!1),l.exact=u;!this.match(c);){let E=!1,v=null,A=null,I=this.startNode();if(n&&this.isContextual(118)){let $=this.lookahead();$.type!==14&&$.type!==17&&(this.next(),v=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let $=this.lookahead();$.type!==14&&$.type!==17&&(this.next(),E=!0)}let _=this.flowParseVariance();if(this.eat(0))v!=null&&this.unexpected(v),this.eat(0)?(_&&this.unexpected(_.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(I,E))):l.indexers.push(this.flowParseObjectTypeIndexer(I,E,_));else if(this.match(10)||this.match(47))v!=null&&this.unexpected(v),_&&this.unexpected(_.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(I,E));else{let $="init";if(this.isContextual(99)||this.isContextual(104)){let N=this.lookahead();Kd(N.type)&&($=this.state.value,this.next())}let X=this.flowParseObjectTypeProperty(I,E,v,_,$,s,a??!u);X===null?(d=!0,A=this.state.lastTokStartLoc):l.properties.push(X)}this.flowObjectTypeSemicolon(),A&&!this.match(8)&&!this.match(9)&&this.raise(be.UnexpectedExplicitInexactInObject,A)}this.expect(c),s&&(l.inexact=d);let b=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,b}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(be.InexactInsideExact,this.state.lastTokStartLoc):this.raise(be.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(be.InexactVariance,n),null):(o||this.raise(be.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(be.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=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(be.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(c=!0),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"?be.GetterMayNotHaveThisParam:be.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?w.BadGetterArity:w.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(w.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let s=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(r);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(be.ThisParamMustBeFirst,a),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(be.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=i,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(He(this.state.type)||this.match(78)){let c=this.lookahead().type;a=c!==17&&c!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(be.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;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(hc(this.state.type)){let l=si(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(He(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(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=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(yr(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)||He(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(He(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Nd(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Nd(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 b=this.lookaheadCharCode();if(b===44||b===61||b===58||b===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(),[u,d]=this.getArrowLikeExpressions(l);if(c||d.length>0){let b=[...a];if(d.length>0){this.state=n,this.state.noArrowAt=b;for(let E=0;E<d.length;E++)b.push(d[E].start);({consequent:l,failed:c}=this.tryParseConditionalConsequent()),[u,d]=this.getArrowLikeExpressions(l)}c&&u.length>1&&this.raise(be.AmbiguousConditionalArrow,n.startLoc),c&&u.length===1&&(this.state=n,b.push(u[0].start),this.state.noArrowAt=b,{consequent:l,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return i?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):cP(n,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(be.DeclareClassElement,n):i.value&&this.raise(be.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(w.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):iP(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];a?.type==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let a=r[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(be.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,i,s,n){let a=super.parseArrayLike(r,i,s,n);return i&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(r,i,s){return r==="TypeCastExpression"||super.isValidLVal(r,i,s)}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(be.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(be.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(be.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(be.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 u=super.parseObjPropValue(r,i,s,n,a,o,l);return c&&((u.value||u).typeParameters=c),u}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(be.PatternIsOptional,r),this.isThisParam(r)&&this.raise(be.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(be.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(be.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(be.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(be.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,s){i.local=Dd(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,a){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let c=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let d=this.parseIdentifier(!0);l!==null&&!yr(this.state.type)?(r.imported=d,r.importKind=l,r.local=this.cloneIdentifier(d)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(l!==null&&yr(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(i)throw this.raise(w.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(c=!0,r.local=this.cloneIdentifier(r.imported))}let u=Dd(r);return s&&u&&this.raise(be.ImportTypeShorthandOnlyInPureImport,r),(s||u)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),c&&!s&&!u&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!a.error)return a.node;let{context:c}=this.state,u=c[c.length-1];(u===Je.j_oTag||u===Je.j_expr)&&c.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let c,u=this.tryParse(b=>{var E;c=this.flowParseTypeParameterDeclaration();let v=this.forwardNoArrowParamsConversionAt(c,()=>{let I=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(I,c),I});(E=v.extra)!=null&&E.parenthesized&&b();let A=this.maybeUnwrapTypeCastExpression(v);return A.type!=="ArrowFunctionExpression"&&b(),A.typeParameters=c,this.resetStartLocationFromNode(A,c),v},n),d=null;if(u.node&&this.maybeUnwrapTypeCastExpression(u.node).type==="ArrowFunctionExpression"){if(!u.error&&!u.aborted)return u.node.async&&this.raise(be.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),u.node;d=u.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(d)return this.state=u.failState,d;throw(l=a)!=null&&l.thrown?a.error:u.thrown?u.error:this.raise(be.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=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(be.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(be.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(be.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(be.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?be.EnumInvalidMemberInitializerSymbolType:be.EnumInvalidMemberInitializerPrimaryType:be.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(be.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(be.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:c}=this.flowEnumMemberRaw(),u=l.name;if(u==="")continue;/^[a-z]/.test(u)&&this.raise(be.EnumInvalidMemberName,l,{memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:r}),s.has(u)&&this.raise(be.EnumDuplicateMemberName,l,{memberName:u,enumName:r}),s.add(u);let d={enumName:r,explicitType:i,memberName:u};switch(o.id=l,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"boolean"),o.init=c.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"number"),o.init=c.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"string"),o.init=c.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,d);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,d);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(!He(this.state.type))throw this.raise(be.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(be.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let c=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let u=o.booleanMembers.length,d=o.numberMembers.length,b=o.stringMembers.length,E=o.defaultedMembers.length;if(!u&&!d&&!b&&!E)return c();if(!u&&!d)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!d&&!b&&u>=E){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(!u&&!b&&d>=E){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(be.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!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},fP={__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"},hP=/\r\n|[\r\n\u2028\u2029]/,Ia=new RegExp(hP.source,"g");function ns(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Ld(t,e,r){for(let i=e;i<r;i++)if(ns(t.charCodeAt(i)))return!0;return!1}var Bl=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,jl=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function dP(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var wi=Ir`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,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:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,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 ri(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function is(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return is(t.object)+"."+is(t.property);throw new Error("Node had unexpected type: "+t.type)}var mP=t=>class extends t{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(wi.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;case 62:case 125:default:ns(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
6
6
  `:`\r
7
- `):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(w.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):ns(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),a=fP[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(ss(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:hc(this.state.type)?r.name=si(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(ze.brace),this.next(),r=this.jsxParseExpressionContainer(r,ze.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(wi.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(wi.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(ze.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(ze.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(ze.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(144);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(144),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(ze.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,ze.j_expr));break}default:this.unexpected()}ri(n)&&!ri(a)&&a!==null?this.raise(wi.MissingClosingTagFragment,a):!ri(n)&&ri(a)?this.raise(wi.MissingClosingTagElement,a,{openingTagName:is(n.name)}):!ri(n)&&!ri(a)&&is(a.name)!==is(n.name)&&this.raise(wi.MissingClosingTagElement,a,{openingTagName:is(n.name)})}if(ri(n)?(i.openingFragment=n,i.closingFragment=a):(i.openingElement=n,i.closingElement=a),i.children=s,this.match(47))throw this.raise(wi.UnwrappedAdjacentJSXElements,this.state.startLoc);return ri(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===ze.j_expr){this.jsxReadToken();return}if(i===ze.j_oTag||i===ze.j_cTag){if(Ur(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&i===ze.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,ze.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)i.push(ze.j_oTag);else if(s===144){let n=i[i.length-1];n===ze.j_oTag&&r===56||n===ze.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===ze.j_expr):(this.setContext(ze.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=$E(s)}},Wl=class extends cn{constructor(...e){super(...e),this.tsNames=new Map}},Vl=class extends un{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Wl(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(e))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(e))return!0}return!1}declareName(e,r,i){if(r&4096){this.hasImport(e,!0)&&this.parser.raise(w.VarRedeclaration,i,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let s=this.currentScope(),n=s.tsNames.get(e)||0;if(r&1024){this.maybeExportDefined(s,e),s.tsNames.set(e,n|16);return}super.declareName(e,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&s.tsNames.set(e,n)}isRedeclaredInScope(e,r,i){let s=e.tsNames.get(r);if((s&2)>0){if(i&256){let n=!!(i&512),a=(s&4)>0;return n!==a}return!0}return i&128&&(s&8)>0?e.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(e,r,i)}checkLocalExport(e){let{name:r}=e;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(e)}},Yl=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}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 Na(t,e){return(t?2:0)|(e?1:0)}var zl=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,i]=e;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return!1;return!0}}getPluginOption(e,r){var i;return(i=this.plugins.get(e))==null?void 0:i[r]}};function Hd(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function yP(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function pn(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function ii(t,e,r){let i=null,s=e.length;for(;i===null&&s>0;)i=e[--s];i===null||i.start>r.start?pn(t,r.comments):Hd(i,r.comments)}var Jl=class extends zl{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===e.end&&(n.leadingNode=e,s--);let{start:a}=e;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=e,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=e);break}}}finalizeComment(e){var r;let{comments:i}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&Hd(e.leadingNode,i),e.trailingNode!==null&&yP(e.trailingNode,i);else{let{containingNode:s,start:n}=e;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":ii(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":ii(s,s.arguments,e);break;case"ImportExpression":ii(s,[s.source,(r=s.options)!=null?r:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":ii(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":ii(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":ii(s,s.specifiers,e);break;case"TSEnumDeclaration":ii(s,s.members,e);break;case"TSEnumBody":ii(s,s.members,e);break;default:pn(s,i)}else pn(s,i)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===e&&(s.leadingNode=null)}takeSurroundingComments(e,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=e;else if(l===r)o.trailingNode=e;else if(l<r)break}}},Xl=class t{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=[ze.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:r,startIndex:i,startLine:s,startColumn:n}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.startIndex=i,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new kr(s,n,i)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new kr(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new t;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},TP=function(e){return e>=48&&e<=57},Md={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ka={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Fd(t,e,r,i,s,n){let a=r,o=i,l=s,c="",u=null,d=r,{length:b}=e;for(;;){if(r>=b){n.unterminated(a,o,l),c+=e.slice(d,r);break}let E=e.charCodeAt(r);if(gP(t,E,e,r)){c+=e.slice(d,r);break}if(E===92){c+=e.slice(d,r);let v=xP(e,r,i,s,t==="template",n);v.ch===null&&!u?u={pos:r,lineStart:i,curLine:s}:c+=v.ch,{pos:r,lineStart:i,curLine:s}=v,d=r}else E===8232||E===8233?(++r,++s,i=r):E===10||E===13?t==="template"?(c+=e.slice(d,r)+`
7
+ `):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(w.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):ns(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),a=fP[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(ss(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:hc(this.state.type)?r.name=si(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(Je.brace),this.next(),r=this.jsxParseExpressionContainer(r,Je.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(wi.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(wi.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(Je.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(Je.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(Je.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(144);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(144),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(Je.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,Je.j_expr));break}default:this.unexpected()}ri(n)&&!ri(a)&&a!==null?this.raise(wi.MissingClosingTagFragment,a):!ri(n)&&ri(a)?this.raise(wi.MissingClosingTagElement,a,{openingTagName:is(n.name)}):!ri(n)&&!ri(a)&&is(a.name)!==is(n.name)&&this.raise(wi.MissingClosingTagElement,a,{openingTagName:is(n.name)})}if(ri(n)?(i.openingFragment=n,i.closingFragment=a):(i.openingElement=n,i.closingElement=a),i.children=s,this.match(47))throw this.raise(wi.UnwrappedAdjacentJSXElements,this.state.startLoc);return ri(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===Je.j_expr){this.jsxReadToken();return}if(i===Je.j_oTag||i===Je.j_cTag){if(Ur(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&i===Je.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,Je.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)i.push(Je.j_oTag);else if(s===144){let n=i[i.length-1];n===Je.j_oTag&&r===56||n===Je.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===Je.j_expr):(this.setContext(Je.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=$E(s)}},Wl=class extends cn{constructor(...e){super(...e),this.tsNames=new Map}},Vl=class extends un{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Wl(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(e))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(e))return!0}return!1}declareName(e,r,i){if(r&4096){this.hasImport(e,!0)&&this.parser.raise(w.VarRedeclaration,i,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let s=this.currentScope(),n=s.tsNames.get(e)||0;if(r&1024){this.maybeExportDefined(s,e),s.tsNames.set(e,n|16);return}super.declareName(e,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&s.tsNames.set(e,n)}isRedeclaredInScope(e,r,i){let s=e.tsNames.get(r);if((s&2)>0){if(i&256){let n=!!(i&512),a=(s&4)>0;return n!==a}return!0}return i&128&&(s&8)>0?e.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(e,r,i)}checkLocalExport(e){let{name:r}=e;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(e)}},Yl=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}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 Na(t,e){return(t?2:0)|(e?1:0)}var zl=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,i]=e;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return!1;return!0}}getPluginOption(e,r){var i;return(i=this.plugins.get(e))==null?void 0:i[r]}};function Hd(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function yP(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function pn(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function ii(t,e,r){let i=null,s=e.length;for(;i===null&&s>0;)i=e[--s];i===null||i.start>r.start?pn(t,r.comments):Hd(i,r.comments)}var Jl=class extends zl{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===e.end&&(n.leadingNode=e,s--);let{start:a}=e;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=e,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=e);break}}}finalizeComment(e){var r;let{comments:i}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&Hd(e.leadingNode,i),e.trailingNode!==null&&yP(e.trailingNode,i);else{let{containingNode:s,start:n}=e;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":ii(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":ii(s,s.arguments,e);break;case"ImportExpression":ii(s,[s.source,(r=s.options)!=null?r:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":ii(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":ii(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":ii(s,s.specifiers,e);break;case"TSEnumDeclaration":ii(s,s.members,e);break;case"TSEnumBody":ii(s,s.members,e);break;default:pn(s,i)}else pn(s,i)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===e&&(s.leadingNode=null)}takeSurroundingComments(e,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=e;else if(l===r)o.trailingNode=e;else if(l<r)break}}},Xl=class t{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=[Je.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:r,startIndex:i,startLine:s,startColumn:n}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.startIndex=i,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new kr(s,n,i)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new kr(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new t;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},TP=function(e){return e>=48&&e<=57},Md={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ka={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Fd(t,e,r,i,s,n){let a=r,o=i,l=s,c="",u=null,d=r,{length:b}=e;for(;;){if(r>=b){n.unterminated(a,o,l),c+=e.slice(d,r);break}let E=e.charCodeAt(r);if(gP(t,E,e,r)){c+=e.slice(d,r);break}if(E===92){c+=e.slice(d,r);let v=xP(e,r,i,s,t==="template",n);v.ch===null&&!u?u={pos:r,lineStart:i,curLine:s}:c+=v.ch,{pos:r,lineStart:i,curLine:s}=v,d=r}else E===8232||E===8233?(++r,++s,i=r):E===10||E===13?t==="template"?(c+=e.slice(d,r)+`
8
8
  `,++r,E===13&&e.charCodeAt(r)===10&&++r,++s,d=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:c,firstInvalidLoc:u,lineStart:i,curLine:s,containsInvalid:!!u}}function gP(t,e,r,i){return t==="template"?e===96||e===36&&r.charCodeAt(i+1)===123:e===(t==="double"?34:39)}function xP(t,e,r,i,s,n){let a=!s;e++;let o=c=>({pos:e,ch:c,lineStart:r,curLine:i}),l=t.charCodeAt(e++);switch(l){case 110:return o(`
9
- `);case 114:return o("\r");case 120:{let c;return{code:c,pos:e}=Hl(t,e,r,i,2,!1,a,n),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:e}=Qd(t,e,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:t.charCodeAt(e)===10&&++e;case 10:r=e,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(e-1,r,i);default:if(l>=48&&l<=55){let c=e-1,d=/^[0-7]+/.exec(t.slice(c,e+2))[0],b=parseInt(d,8);b>255&&(d=d.slice(0,-1),b=parseInt(d,8)),e+=d.length-1;let E=t.charCodeAt(e);if(d!=="0"||E===56||E===57){if(s)return o(null);n.strictNumericEscape(c,r,i)}return o(String.fromCharCode(b))}return o(String.fromCharCode(l))}}function Hl(t,e,r,i,s,n,a,o){let l=e,c;return{n:c,pos:e}=Gd(t,e,r,i,16,s,n,!1,o,!a),c===null&&(a?o.invalidEscapeSequence(l,r,i):e=l-1),{code:c,pos:e}}function Gd(t,e,r,i,s,n,a,o,l,c){let u=e,d=s===16?Md.hex:Md.decBinOct,b=s===16?ka.hex:s===10?ka.dec:s===8?ka.oct:ka.bin,E=!1,v=0;for(let A=0,I=n??1/0;A<I;++A){let _=t.charCodeAt(e),$;if(_===95&&o!=="bail"){let X=t.charCodeAt(e-1),N=t.charCodeAt(e+1);if(o){if(Number.isNaN(N)||!b(N)||d.has(X)||d.has(N)){if(c)return{n:null,pos:e};l.unexpectedNumericSeparator(e,r,i)}}else{if(c)return{n:null,pos:e};l.numericSeparatorInEscapeSequence(e,r,i)}++e;continue}if(_>=97?$=_-97+10:_>=65?$=_-65+10:TP(_)?$=_-48:$=1/0,$>=s){if($<=9&&c)return{n:null,pos:e};if($<=9&&l.invalidDigit(e,r,i,s))$=0;else if(a)$=0,E=!0;else break}++e,v=v*s+$}return e===u||n!=null&&e-u!==n||E?{n:null,pos:e}:{n:v,pos:e}}function Qd(t,e,r,i,s,n){let a=t.charCodeAt(e),o;if(a===123){if(++e,{code:o,pos:e}=Hl(t,e,r,i,t.indexOf("}",e)-e,!0,s,n),++e,o!==null&&o>1114111)if(s)n.invalidCodePoint(e,r,i);else return{code:null,pos:e}}else({code:o,pos:e}=Hl(t,e,r,i,4,!1,s,n));return{code:o,pos:e}}function nn(t,e,r){return new kr(r,t-e,t)}var bP=new Set([103,109,115,105,121,117,100,118]),Cr=class{constructor(e){let r=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=r+e.start,this.end=r+e.end,this.loc=new os(e.startLoc,e.endLoc)}},Gl=class extends Jl{constructor(e,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,a)=>this.optionFlags&2048?(this.raise(w.InvalidDigit,nn(i,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(w.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(w.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(w.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(w.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(w.StrictNumericEscape,nn(i,s,n))},unterminated:(i,s,n)=>{throw this.raise(w.UnterminatedString,nn(i-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(w.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(w.UnterminatedTemplate,nn(i,s,n))}}),this.state=new Xl,this.state.init(e),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Cr(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Bl.lastIndex=e,Bl.test(this.input)?Bl.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return jl.lastIndex=e,jl.test(this.input)?jl.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++e<this.input.length){let i=this.input.charCodeAt(e);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(e){this.state.strict=e,e&&(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(e){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(e,i+2);if(s===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,Ia.lastIndex=i+2;Ia.test(this.input)&&Ia.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Ia.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+e.length),loc:new os(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(e){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!ns(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+e,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n),loc:new os(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let e=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(dP(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&&(e===0||this.state.lineStart>e)){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(e),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(w.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?w.RecordExpressionHashIncorrectStartSyntaxType:w.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Ur(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 e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!ns(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(e){let r=e===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);e===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=e===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.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(w.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===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(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===60){if(this.input.charCodeAt(e+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:e}=this.state,r=this.input.charCodeAt(e+1);if(r===62){let i=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+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(e){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(e===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);e===63?r===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){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(w.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(w.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);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(Ur(e)){this.readWord(e);return}}throw this.raise(w.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,i)}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(w.UnterminatedRegExp,Rt(e,1));let c=this.input.charCodeAt(n);if(ns(c))throw this.raise(w.UnterminatedRegExp,Rt(e,1));if(i)i=!1;else{if(c===91)s=!0;else if(c===93&&s)s=!1;else if(c===47&&!s)break;i=c===92}}let a=this.input.slice(r,n);++n;let o="",l=()=>Rt(e,n+2-r);for(;n<this.length;){let c=this.codePointAtPos(n),u=String.fromCharCode(c);if(bP.has(c))c===118?o.includes("u")&&this.raise(w.IncompatibleRegExpUVFlags,l()):c===117&&o.includes("v")&&this.raise(w.IncompatibleRegExpUVFlags,l()),o.includes(u)&&this.raise(w.DuplicateRegExpFlags,l());else if(ss(c)||c===92)this.raise(w.MalformedRegExpFlags,l());else break;++n,o+=u}this.state.pos=n,this.finishToken(138,{pattern:a,flags:o})}readInt(e,r,i=!1,s=!0){let{n,pos:a}=Gd(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(e){let r=this.state.pos,i=this.state.curPosition(),s=!1;this.state.pos+=2;let n=this.readInt(e);n==null&&this.raise(w.InvalidDigit,Rt(i,2),{radix:e});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,s=!0;else if(a===109)throw this.raise(w.InvalidDecimal,i);if(Ur(this.codePointAtPos(this.state.pos)))throw this.raise(w.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(e){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,a=!1,o=!1;!e&&this.readInt(10)===null&&this.raise(w.InvalidNumber,this.state.curPosition());let l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){let E=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(w.StrictOctalLiteral,i),!this.state.strict){let v=E.indexOf("_");v>0&&this.raise(w.ZeroDigitNumericSeparator,Rt(i,v))}o=l&&!/[89]/.test(E)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,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(w.InvalidOrMissingExponent,i),s=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((s||l)&&this.raise(w.InvalidBigIntLiteral,i),++this.state.pos,n=!0),c===109){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(w.InvalidDecimal,i),++this.state.pos;var u=!0}if(Ur(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());let d=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,d);return}if(u){this.finishToken(137,d);return}let b=o?parseInt(d,8):parseFloat(d);this.finishToken(135,b)}readCodePoint(e){let{code:r,pos:i}=Qd(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(e){let{str:r,pos:i,curLine:s,lineStart:n}=Fd(e===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 e=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:a}=Fd("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 kr(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:e+r+"`"):(this.state.pos++,this.finishToken(25,i?null:e+r+"${"))}recordStrictModeErrors(e,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,r):this.state.strictErrors.set(i,[e,r])}readWord1(e){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(ss(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?Ur:ss;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(w.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(w.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(l)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(e){let r=this.readWord1(e),i=oc.get(r);i!==void 0?this.finishToken(i,si(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:e}=this.state;hc(e)&&this.state.containsEsc&&this.raise(w.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:si(e)})}raise(e,r,i={}){let s=r instanceof kr?r:r.loc.start,n=e(s,i);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,r,i={}){let s=r instanceof kr?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]=e(s,i);if(l.loc.index<n)break}return this.raise(e,r,i)}updateContext(e){}unexpected(e,r){throw this.raise(w.UnexpectedToken,e??this.state.startLoc,{expected:r?si(r):null})}expectPlugin(e,r){if(this.hasPlugin(e))return!0;throw this.raise(w.MissingPlugin,r??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(r=>this.hasPlugin(r)))throw this.raise(w.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(r,i,s)=>{this.raise(e,nn(r,i,s))}}},Ql=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Zl=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Ql)}exit(){let e=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(w.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(e,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),o=s.has(e);if(r&3){let l=o&&n.get(e);if(l){let c=l&4,u=r&4,d=l&3,b=r&3;o=d===b||c!==u,o||n.delete(e)}else o||n.set(e,r)}o&&this.parser.raise(w.PrivateNameRedeclaration,i,{identifierName:e}),s.add(e),a.delete(e)}usePrivateName(e,r){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,r):this.parser.raise(w.InvalidPrivateFieldResolution,r,{identifierName:e})}},ls=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Ma=class extends ls{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,r){let i=r.index;this.declarationErrors.set(i,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},ec=class{constructor(e){this.parser=void 0,this.stack=[new ls],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,r){let i=r.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,i);else return;a=s[--n]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,r){let{stack:i}=this,s=i[i.length-1],n=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,n);else return}recordAsyncArrowParametersError(e){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(w.AwaitBindingIdentifier,e),s=r[--i]}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let n=e.length-2,a=e[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=e[--n]})}};function SP(){return new ls(3)}function EP(){return new Ma(1)}function PP(){return new Ma(2)}function Zd(){return new ls}var tc=class extends Gl{addExtra(e,r,i,s=!0){if(!e)return;let{extra:n}=e;n==null&&(n={},e.extra=n),s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){if(this.input.startsWith(r,e)){let i=this.input.charCodeAt(e+r.length);return!(ss(i)||(i&64512)===55296)}return!1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ld(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Ld(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(w.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,r){this.eat(e)||this.unexpected(r,e)}tryParse(e,r=this.state.clone()){let i={node:null};try{let s=e((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:o}=e,l=!!i||!!s||!!a||!!n||!!o;if(!r)return l;i!=null&&this.raise(w.InvalidCoverInitializedName,i),s!=null&&this.raise(w.DuplicateProto,s),n!=null&&this.raise(w.UnexpectedPrivateField,n),a!=null&&this.unexpected(a),o!=null&&this.raise(w.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return Kd(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=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=e;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let o=this.prodParam;this.prodParam=new Yl;let l=this.classScope;this.classScope=new Zl(this);let c=this.expressionScope;return this.expressionScope=new ec(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 e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let i=r?514:1;this.optionFlags&4&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r)}},as=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},cs=class{constructor(e,r,i){this.type="",this.start=r,this.end=0,this.loc=new os(i),e?.optionFlags&128&&(this.range=[r,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},rc=cs.prototype;rc.__clone=function(){let t=new cs(void 0,this.start,this.loc.start),e=Object.keys(this);for(let r=0,i=e.length;r<i;r++){let s=e[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(t[s]=this[s])}return t};var ic=class extends tc{startNode(){let e=this.state.startLoc;return new cs(this,e.index,e)}startNodeAt(e){return new cs(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,i){return e.type=r,e.end=i.index,e.loc.end=i,this.optionFlags&128&&(e.range[1]=i.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index,e.loc.start=r,this.optionFlags&128&&(e.range[0]=r.index)}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index,e.loc.end=r,this.optionFlags&128&&(e.range[1]=r.index)}resetStartLocationFromNode(e,r){this.resetStartLocation(e,r.loc.start)}castNodeTo(e,r){return e.type=r,e}cloneIdentifier(e){let{type:r,start:i,end:s,loc:n,range:a,name:o}=e,l=Object.create(rc);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.name=o,e.extra&&(l.extra=e.extra),l}cloneStringLiteral(e){let{type:r,start:i,end:s,loc:n,range:a,extra:o}=e,l=Object.create(rc);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.extra=o,l.value=e.value,l}},em=t=>t.type==="ParenthesizedExpression"?em(t.expression):t,sc=class extends ic{toAssignable(e,r=!1){var i,s;let n;switch((e.type==="ParenthesizedExpression"||(i=e.extra)!=null&&i.parenthesized)&&(n=em(e),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(w.InvalidParenthesizedAssignment,e):n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(w.InvalidParenthesizedAssignment,e):this.raise(w.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let o=0,l=e.properties.length,c=l-1;o<l;o++){var a;let u=e.properties[o],d=o===c;this.toAssignableObjectExpressionProp(u,d,r),d&&u.type==="RestElement"&&(a=e.extra)!=null&&a.trailingCommaLoc&&this.raise(w.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:l}=e;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(e,"ArrayPattern"),this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":e.operator!=="="&&this.raise(w.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,e.left),this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(e,r,i){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?w.PatternHasAccessor:w.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(w.RestTrailingComma,e)}else this.toAssignable(e,i)}toAssignableList(e,r,i){let s=e.length-1;for(let n=0;n<=s;n++){let a=e[n];a&&(this.toAssignableListItem(e,n,i),a.type==="RestElement"&&(n<s?this.raise(w.RestTrailingComma,a):r&&this.raise(w.RestTrailingComma,r)))}}toAssignableListItem(e,r,i){let s=e[r];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,i)}else this.toAssignable(s,i)}isAssignable(e,r){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let i=e.properties.length-1;return e.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(e,r){return e}toReferencedListDeep(e,r){this.toReferencedList(e,r);for(let i of e)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,r),e.argument=r,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,r,i){let s=i&1,n=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(e))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(e);break}}else{let o=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(w.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());n.push(this.parseBindingElement(i,o))}}return n}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(w.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:r}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return e===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(e,r){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||e&2)&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(e){return e}parseMaybeDefault(e,r){if(e??(e=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(e);return r.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(e,r,i){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,r,i=64,s=!1,n=!1,a=!1){var o;let l=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||l==="MemberExpression"){c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),r.type!=="AssignmentExpression"&&this.raise(w.InvalidLhsOptionalChaining,e,{ancestor:r})),i!==64&&this.raise(w.InvalidPropertyBindingPattern,e);return}if(l==="Identifier"){this.checkIdentifier(e,i,n);let{name:A}=e;s&&(s.has(A)?this.raise(w.ParamDupe,e):s.add(A));return}else l==="VoidPattern"&&r.type==="CatchClause"&&this.raise(w.VoidPatternCatchClauseParam,e);let u=this.isValidLVal(l,!(a||(o=e.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",i);if(u===!0)return;if(u===!1){let A=i===64?w.InvalidLhs:w.InvalidLhsBinding;this.raise(A,e,{ancestor:r});return}let d,b;typeof u=="string"?(d=u,b=l==="ParenthesizedExpression"):[d,b]=u;let E=l==="ArrayPattern"||l==="ObjectPattern"?{type:l}:r,v=e[d];if(Array.isArray(v))for(let A of v)A&&this.checkLVal(A,E,i,s,n,b);else v&&this.checkLVal(v,E,i,s,n,b)}checkIdentifier(e,r,i=!1){this.state.strict&&(i?Xd(e.name,this.inModule):Jd(e.name))&&(r===64?this.raise(w.StrictEvalArguments,e,{referenceName:e.name}):this.raise(w.StrictEvalArgumentsBinding,e,{bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(w.LetInLexicalBinding,e),r&64||this.declareNameFromIdentifier(e,r)}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.loc.start)}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(w.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?w.RestTrailingComma:w.ElementAfterRest,this.state.startLoc),!0):!1}};function vP(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function Bd(t){if(!t)throw new Error("Assert fail")}var de=Ir`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' 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:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>`Accessibility modifier already seen: '${t}'.`,DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' 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:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,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:t})=>`'${t}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:t=>`'${t}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:t=>`'${t}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[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:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,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:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,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:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`,UsingDeclarationInAmbientContext:t=>`'${t}' declarations are not allowed in ambient contexts.`});function AP(t){switch(t){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 jd(t){return t==="private"||t==="public"||t==="protected"}function wP(t){return t==="in"||t==="out"}var CP=t=>class extends t{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:de.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:de.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:de.InvalidModifierOnTypeParameter})}getScopeHandler(){return Vl}tsIsIdentifier(){return Xe(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!Xe(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=de.InvalidModifierOnTypeMember},a){let o=(c,u,d,b)=>{u===d&&a[b]&&this.raise(de.InvalidModifiersOrder,c,{orderedModifiers:[d,b]})},l=(c,u,d,b)=>{(a[d]&&u===b||a[b]&&u===d)&&this.raise(de.IncompatibleModifiers,c,{modifiers:[d,b]})};for(;;){let{startLoc:c}=this.state,u=this.tsParseModifier(r.concat(i??[]),s,a.static);if(!u)break;jd(u)?a.accessibility?this.raise(de.DuplicateAccessibilityModifier,c,{modifier:u}):(o(c,u,u,"override"),o(c,u,u,"static"),o(c,u,u,"readonly"),a.accessibility=u):wP(u)?(a[u]&&this.raise(de.DuplicateModifier,c,{modifier:u}),a[u]=!0,o(c,u,"in","out")):(hasOwnProperty.call(a,u)?this.raise(de.DuplicateModifier,c,{modifier:u}):(o(c,u,"static","readonly"),o(c,u,"static","override"),o(c,u,"override","readonly"),o(c,u,"abstract","override"),l(c,u,"declare","override"),l(c,u,"static","abstract")),a[u]=!0),i!=null&&i.includes(u)&&this.raise(n,c,{modifier:u})}}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 vP(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=o),a}tsParseBracketedList(r,i,s,n,a){n||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(de.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let s=this.state.type;Xe(s)||s===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),i=this.finishNode(s,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(de.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(de.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(),Xe(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(de.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(de.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(w.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(de.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[n].length!==1)this.raise(w.BadSetterArity,this.state.curPosition());else{let o=s[n][0];this.isThisParam(o)&&this.raise(de.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(de.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(de.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(de.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;i&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);{let i=this.startNode();i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(i,"TSTypeParameter")}return r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(de.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,u=yr(this.state.type)?this.lookaheadCharCode():null;if(u===58)n=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(u===63){o=!0;let d=this.state.value,b=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,a=this.createIdentifier(this.startNodeAt(s),d),this.expect(17),this.expect(14),l=this.tsParseType()):(n=!1,l=b,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let d;a?(d=this.startNodeAt(s),d.optional=o,d.label=a,d.elementType=l,this.eat(17)&&(d.optional=!0,this.raise(de.TupleOptionalAfterType,this.state.lastTokStartLoc))):(d=this.startNodeAt(s),d.optional=o,this.raise(de.InvalidTupleMemberLabel,l),d.label=l,d.elementType=this.tsParseType()),l=this.finishNode(d,"TSNamedTupleMember")}else if(o){let d=this.startNodeAt(s);d.typeAnnotation=l,l=this.finishNode(d,"TSOptionalType")}if(i){let d=this.startNodeAt(r);d.typeAnnotation=l,l=this.finishNode(d,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Xe(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":AP(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}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(de.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 zE(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),a=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!a?o[0]:(n.types=o,this.finishNode(n,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Xe(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),i.typeAnnotation=l,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Xe(this.state.type)&&!this.match(78)?!1:(r&&this.raise(w.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){Bd(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(de.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(de.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),Xe(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(de.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()!==ze.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(de.ImportAliasHasImportType,n),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(de.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(de.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(Xe(i))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,i,s){switch(i.name){case"declare":{let n=this.tsTryParseDeclare(r);return n&&(n.declare=!0),n}case"global":if(this.match(5)){this.scope.enter(1024),this.prodParam.enter(0);let n=r;return n.kind="global",r.global=!0,n.id=i,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,i.name,!1,s)}}tsParseDeclaration(r,i,s,n){switch(i){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||Xe(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(Xe(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&Xe(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(s)&&Xe(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(de.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===ze.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return JE(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let s=i.length?i[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,o=n.override,l=n.readonly;!(r&4)&&(a||l||o)&&this.raise(de.UnexpectedParameterModifier,s);let c=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(c);let u=this.parseMaybeDefault(c.loc.start,c);if(a||l||o){let d=this.startNodeAt(s);return i.length&&(d.decorators=i),a&&(d.accessibility=a),l&&(d.readonly=l),o&&(d.override=o),u.type!=="Identifier"&&u.type!=="AssignmentPattern"&&this.raise(de.UnsupportedParameterPropertyKind,d),d.parameter=u,this.finishNode(d,"TSParameterProperty")}return i.length&&(c.decorators=i),u}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(de.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(de.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(de.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s,n){let a=super.parseArrayLike(r,i,s,n);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let b=this.tsTryParseGenericAsyncArrowFunction(i);if(b)return b}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(La(this.state.type)){let b=super.parseTaggedTemplateExpression(r,i,n);return b.typeParameters=c,b}if(!s&&this.eat(10)){let b=this.startNodeAt(i);return b.callee=r,b.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(b.arguments),b.typeParameters=c,n.optionalChainMember&&(b.optional=a),this.finishCallExpression(b,n.optionalChainMember)}let u=this.state.type;if(u===48||u===52||u!==10&&an(u)&&!this.hasPrecedingLineBreak())return;let d=this.startNodeAt(i);return d.expression=r,d.typeParameters=c,this.finishNode(d,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(de.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(_a(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(w.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(de.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(Xe(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(de.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=r;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,i,s||n);if(!n)return a;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(de.UsingDeclarationInAmbientContext,r,i),a;for(let{id:o,init:l}of a.declarations)l&&(i==="var"||i==="let"||o.typeAnnotation?this.raise(de.InitializerNotAllowedInAmbientContext,l):kP(l,this.hasPlugin("estree"))||this.raise(de.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return a}parseStatementContent(r,i){if(this.match(75)&&this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>jd(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:de.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(de.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(de.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(de.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(de.IndexSignatureHasDeclare,i),i.override&&this.raise(de.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(de.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(de.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(de.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(de.ClassMethodHasDeclare,r)}parseExpressionStatement(r,i,s){return(i.type==="Identifier"?this.tsParseExpressionStatement(r,i,s):void 0)||super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,i,s)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(de.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=Xe(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(de.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(de.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(de.PrivateElementHasAbstract,r),r.accessibility&&this.raise(de.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(de.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(de.ConstructorHasTypeParameters,l);let{declare:c=!1,kind:u}=i;c&&(u==="get"||u==="set")&&this.raise(de.DeclareAccessor,i,{kind:u}),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){super.parseClassSuper(r),r.superClass&&(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=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,a,o,l;let c,u,d;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),u=this.tryParse(()=>super.parseMaybeAssign(r,i),c),!u.error)return u.node;let{context:v}=this.state,A=v[v.length-1];(A===ze.j_oTag||A===ze.j_expr)&&v.pop()}if(!((s=u)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!c||c===this.state)&&(c=this.state.clone());let b,E=this.tryParse(v=>{var A,I;b=this.tsParseTypeParameters(this.tsParseConstModifier);let _=super.parseMaybeAssign(r,i);return(_.type!=="ArrowFunctionExpression"||(A=_.extra)!=null&&A.parenthesized)&&v(),((I=b)==null?void 0:I.params.length)!==0&&this.resetStartLocationFromNode(_,b),_.typeParameters=b,_},c);if(!E.error&&!E.aborted)return b&&this.reportReservedArrowTypeParam(b),E.node;if(!u&&(Bd(!this.hasPlugin("jsx")),d=this.tryParse(()=>super.parseMaybeAssign(r,i),c),!d.error))return d.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;if(E.node)return this.state=E.failState,b&&this.reportReservedArrowTypeParam(b),E.node;if((a=d)!=null&&a.node)return this.state=d.failState,d.node;throw((o=u)==null?void 0:o.error)||E.error||((l=d)==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(de.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(de.UnexpectedTypeCastInParameter,r):this.raise(de.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!i)&&["expression",!0];default:return super.isValidLVal(r,i,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(r,i);return n.typeParameters=s,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(de.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableListItem(r,i,s){let n=r[i];n.type==="TSTypeCastExpression"&&(r[i]=this.typeCastToParameter(n)),super.toAssignableListItem(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(de.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r)}else 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:b}=c;this.raise(de.AbstractMethodHasImplementation,c,{methodName:b.type==="Identifier"&&!c.computed?b.name:`[${this.input.slice(this.offsetToSourcePos(b.start),this.offsetToSourcePos(b.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,a){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",a=i?"local":"exported",o=r[n],l,c=!1,u=!0,d=o.loc.start;if(this.isContextual(93)){let E=this.parseIdentifier();if(this.isContextual(93)){let v=this.parseIdentifier();yr(this.state.type)?(c=!0,o=E,l=i?this.parseIdentifier():this.parseModuleExportName(),u=!1):(l=v,u=!1)}else yr(this.state.type)?(u=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=E)}else yr(this.state.type)&&(c=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&s&&this.raise(i?de.TypeModifierIsUsedInTypeImports:de.TypeModifierIsUsedInTypeExports,d),r[n]=o,r[a]=l;let b=i?"importKind":"exportKind";r[b]=c?"type":"value",u&&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){var i,s,n,a,o,l,c,u,d,b,E,v,A,I,_,$,X,N,U,W,ke,Ce,Ie,We,ft,f,ve,Oe,tt,Ct,ne,ie,O,F,D,ee,Q,ae,j,B,R,Y,te,Z,ue,ge;switch(r.type){case"ExpressionStatement":(i=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(s=r.decorators)!=null||(r.decorators=[]),(n=r.optional)!=null||(r.optional=!1),(a=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(o=r.accessibility)!=null||(r.accessibility=void 0),(l=r.decorators)!=null||(r.decorators=[]),(c=r.override)!=null||(r.override=!1),(u=r.readonly)!=null||(r.readonly=!1),(d=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(b=r.declare)!=null||(r.declare=!1),(E=r.returnType)!=null||(r.returnType=void 0),(v=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(A=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(I=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(_=r.accessibility)!=null||(r.accessibility=void 0),($=r.readonly)!=null||(r.readonly=!1),(X=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(N=r.declare)!=null||(r.declare=!1),(U=r.definite)!=null||(r.definite=!1),(W=r.readonly)!=null||(r.readonly=!1),(ke=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(Ce=r.accessibility)!=null||(r.accessibility=void 0),(Ie=r.decorators)!=null||(r.decorators=[]),(We=r.override)!=null||(r.override=!1),(ft=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(f=r.id)!=null||(r.id=null);case"ClassDeclaration":(ve=r.abstract)!=null||(r.abstract=!1),(Oe=r.declare)!=null||(r.declare=!1),(tt=r.decorators)!=null||(r.decorators=[]),(Ct=r.implements)!=null||(r.implements=[]),(ne=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(ie=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(O=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(F=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(D=r.const)!=null||(r.const=!1),(ee=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(Q=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(ae=r.qualifier)!=null||(r.qualifier=null),(j=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(B=r.declare)!=null||(r.declare=!1),(R=r.extends)!=null||(r.extends=[]);return;case"TSModuleDeclaration":(Y=r.declare)!=null||(r.declare=!1),(te=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(Z=r.const)!=null||(r.const=!1),(ue=r.in)!=null||(r.in=!1),(ge=r.out)!=null||(r.out=!1);return}}};function IP(t){if(t.type!=="MemberExpression")return!1;let{computed:e,property:r}=t;return e&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:rm(t.object)}function kP(t,e){var r;let{type:i}=t;if((r=t.extra)!=null&&r.parenthesized)return!1;if(e){if(i==="Literal"){let{value:s}=t;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(tm(t,e)||OP(t,e)||i==="TemplateLiteral"&&t.expressions.length===0||IP(t))}function tm(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function OP(t,e){if(t.type==="UnaryExpression"){let{operator:r,argument:i}=t;if(r==="-"&&tm(i,e))return!0}return!1}function rm(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:rm(t.object)}var Rd=Ir`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),_P=t=>class extends t{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s){return r==="Placeholder"||super.isValidLVal(r,i,s)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(r,i){r.label&&r.label.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(Rd.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(si(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Rd.UnexpectedSpace,this.state.lastTokEndLoc)}},NP=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),Xe(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)}},qd=["minimal","fsharp","hack","smart"],$d=["^^","@@","^","%","#"];function DP(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let i=t.get("decorators").decoratorsBeforeExport;if(i!=null&&typeof i!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=t.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){var e;let i=t.get("pipelineOperator").proposal;if(!qd.includes(i)){let s=qd.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(i==="hack"){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=t.get("pipelineOperator").topicToken;if(!$d.includes(s)){let n=$d.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}{var r;if(s==="#"&&((r=t.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}}else if(i==="smart"&&((e=t.get("recordAndTuple"))==null?void 0:e.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}if(t.has("moduleAttributes")){if(t.has("deprecatedImportAssert")||t.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(t.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(t.has("importAssertions")&&t.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!t.has("deprecatedImportAssert")&&t.has("importAttributes")&&t.get("importAttributes").deprecatedAssertSyntax&&t.set("deprecatedImportAssert",{}),t.has("recordAndTuple")){let i=t.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(t.has("asyncDoExpressions")&&!t.has("doExpressions")){let i=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw i.missingPlugins="doExpressions",i}if(t.has("optionalChainingAssign")&&t.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(t.has("discardBinding")&&t.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var im={estree:BE,jsx:mP,flow:pP,typescript:CP,v8intrinsic:NP,placeholders:_P},LP=Object.keys(im),nc=class extends sc{checkProto(e,r,i,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return i;let n=e.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?r?(this.raise(w.RecordNoProto,n),!0):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(w.DuplicateProto,n)),!0):i}shouldExitDescending(e,r){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(w.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(w.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,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;e?n=!1:(e=new as,n=!0);let{type:a}=this.state;(a===10||Xe(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(r&&(o=r.call(this,o,i)),UE(this.state.type)){let l=this.startNodeAt(i),c=this.state.value;if(l.operator=c,this.match(29)){this.toAssignable(o,!0),l.left=o;let u=i.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=u&&(e.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression")),l}else n&&this.checkExpressionErrors(e,!0);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?an(l):an(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.YieldNotInGeneratorFunction,i),this.parseYield(i)}return o}parseMaybeConditional(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,e)}parseConditional(e,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(e,r,i){if(this.isPrivateName(e)){let n=this.getPrivateNameSV(e);(i>=_a(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(w.PrivateInExpectedIn,e,{identifierName:n}),this.classScope.usePrivateName(n,e.loc.start)}let s=this.state.type;if(WE(s)&&(this.prodParam.hasIn||!this.match(58))){let n=_a(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r)}let a=this.startNodeAt(r);a.left=e,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(n=_a(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(w.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let c=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(l&&(u===41||u===42)||o&&u===40)throw this.raise(w.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,r,i)}}return e}parseExprOpRightExpr(e,r){let i=this.state.startLoc;switch(e){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(w.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,r),i)});default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,XE(e)?r-1:r)}parseHackPipeBody(){var e;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return OE.has(i.type)&&!((e=i.extra)!=null&&e.parenthesized)&&this.raise(w.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipeTopicUnused,r),i}checkExponentialAfterUnary(e){this.match(57)&&this.raise(w.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,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(YE(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&l){let c=a.argument;c.type==="Identifier"?this.raise(w.StrictDelete,a):this.hasPropertyAsPrivateName(c)&&this.raise(w.DeletePrivateField,a)}if(!n)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,n,e);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?an(l):an(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(e,r,i){if(r){let a=e;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),e}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;VE(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(e,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(e,r,i,s);if(La(n))return this.parseTaggedTemplateExpression(e,r,s);let a=!1;if(n===18){if(i&&(this.raise(w.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,s);s.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(e,r,s,o,a):this.stopParseSubscript(e,s)}}stopParseSubscript(e,r){return r.stop=!0,e}parseMember(e,r,i,s,n){let a=this.startNodeAt(r);return a.object=e,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(w.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(e,r,i,s){let n=this.startNodeAt(r);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(e,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=e;let{maybeAsyncArrow:l,optionalChainMember:c}=i;l&&(this.expressionScope.enter(PP()),a=new as),c&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(e.type!=="Super",o,a);let u=this.finishCallExpression(o,c);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),u)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=n,u}toReferencedArguments(e,r){this.toReferencedListDeep(e.arguments,r)}parseTaggedTemplateExpression(e,r,i){let s=this.startNodeAt(r);return s.tag=e,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(w.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(w.ImportCallArity,e);else for(let i of e.arguments)i.type==="SpreadElement"&&this.raise(w.ImportCallSpreadArgument,i);return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,i){let s=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,i,e))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(e,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&pn(e,r.innerComments),r.callee.trailingComments&&pn(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){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(w.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!0,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(w.UnsupportedBind,n)}case 139:return this.raise(w.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);this.unexpected();break}case 47:{let n=this.input.codePointAt(this.nextTokenStart());Ur(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:{if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!1,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0)}if(Xe(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(Xe(l))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Rt(this.state.endLoc,-1),this.parseTopicReference(i);this.unexpected()}parseTopicReference(e){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,e,s)}finishTopicReference(e,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s))return i==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(w.PipeTopicUnconfiguredToken,r,{token:si(s)})}testTopicReferenceConfiguration(e,r,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:si(i)}]);case"smart":return i===27;default:throw this.raise(w.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Na(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(w.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)?this.raise(w.SuperNotAllowed,e):!this.scope.allowSuper&&!(this.optionFlags&16)&&this.raise(w.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(w.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(Rt(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(r,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,i){e.meta=r;let s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||s)&&this.raise(w.UnsupportedMetaProperty,e.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=r?"source":"defer",this.parseImportCall(e)}else{let r=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(w.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,r,"meta")}}parseLiteralAtNode(e,r,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=e,this.next(),this.finishNode(i,r)}parseLiteral(e,r){let i=this.startNode();return this.parseLiteralAtNode(e,r,i)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=e.pattern,r.flags=e.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(EP());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new as,c=!0,u,d;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let v=this.state.startLoc;if(u=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),v)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,l,this.parseParenItem))}let b=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let E=this.startNodeAt(r);return e&&this.shouldParseArrow(o)&&(E=this.parseArrow(E))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(E,o,!1),E):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),u&&this.unexpected(u),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,b)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(e,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(e);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let i=this.parseMetaProperty(e,r,"target");return this.scope.allowNewTarget||this.raise(w.UnexpectedNewTarget,i),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),e.arguments=r}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let r=this.match(83),i=this.parseNoCallExpr();e.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(w.ImportCallNotNewExpression,i)}parseTemplateElement(e){let{start:r,startLoc:i,end:s,value:n}=this.state,a=r+1,o=this.startNodeAt(Rt(i,1));n===null&&(e||this.raise(w.InvalidEscapeSequenceTemplate,Rt(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),c=l?-1:-2,u=s+c;o.value={raw:this.input.slice(a,u).replace(/\r\n?/g,`
10
- `),cooked:n===null?null:n.slice(1,c)},o.tail=l,this.next();let d=this.finishNode(o,"TemplateElement");return this.resetEndLocation(d,Rt(this.state.lastTokEndLoc,c)),d}parseTemplate(e){let r=this.startNode(),i=this.parseTemplateElement(e),s=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(e));return r.expressions=n,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(l);break}let u;r?u=this.parseBindingProperty():(u=this.parsePropertyDefinition(s),a=this.checkProto(u,i,a,s)),i&&!this.isObjectProperty(u)&&u.type!=="SpreadElement"&&this.raise(w.InvalidRecordProperty,u),u.shorthand&&this.addExtra(u,"shorthand",!0),l.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return r?c="ObjectPattern":i&&(c="RecordExpression"),this.finishNode(l,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(w.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc;if(this.parsePropertyName(i,e),!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let{key:c}=i,u=c.name;u==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(i)),(u==="get"||u==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(c),i.kind=u,this.match(55)&&(o=!0,this.raise(w.AccessorIsGenerator,this.state.curPosition(),{kind:u}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,s,!1,n,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var r;let i=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==i&&this.raise(e.kind==="get"?w.BadGetterArity:w.BadSetterArity,e),e.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(w.BadSetterRestParameter,e)}parseObjectMethod(e,r,i,s,n){if(n){let a=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,i,s){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(w.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,r,i,s,n,a,o){let l=this.parseObjectMethod(e,i,s,n,a)||this.parseObjectProperty(e,r,n,o);return l||this.unexpected(),l}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if(yr(i))n=this.parseIdentifier(!0);else switch(i){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(w.UnexpectedPrivateField,a),n=this.parsePrivateName();break}default:if(i===137){n=this.parseDecimalLiteral(s);break}this.unexpected()}e.key=n,i!==139&&(e.computed=!1)}}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,i,s,n,a,o=!1){this.initFunction(e,i),e.generator=r,this.scope.enter(530|(o?576:0)|(n?32:0)),this.prodParam.enter(Na(i,e.generator)),this.parseFunctionParams(e,s);let l=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!i,s,a),this.state.inFSharpPipelineDirectBody=n,this.finishNode(a,i?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,i,s){this.scope.enter(518);let n=Na(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,i){this.toAssignableList(r,i,!1),e.params=r}parseFunctionBodyAndFinish(e,r,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,r)}parseFunctionBody(e,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(Zd()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(e.params);o&&l&&this.raise(w.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let c=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!i&&!l,r,c),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,c)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,i=e.length;r<i;r++)if(!this.isSimpleParameter(e[r]))return!1;return!0}checkParams(e,r,i,s=!0){let n=!r&&new Set,a={type:"FormalParameters"};for(let o of e.params)this.checkLVal(o,a,5,n,s)}parseExprList(e,r,i,s){let n=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(e,r,i))}return n}parseExprListItem(e,r,i,s){let n;if(this.match(12))r||this.raise(w.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(w.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),n=this.finishNode(a,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(e,i,this.parseParenItem);return n}parseIdentifier(e){let r=this.startNode(),i=this.parseIdentifierName(e);return this.createIdentifier(r,i)}createIdentifier(e,r){return e.name=r,e.loc.identifierName=r,this.finishNode(e,"Identifier")}createIdentifierAt(e,r,i){return e.name=r,e.loc.identifierName=r,this.finishNodeAt(e,"Identifier",i)}parseIdentifierName(e){let r,{startLoc:i,type:s}=this.state;yr(s)?r=this.state.value:this.unexpected();let n=qE(s);return e?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(e,r,i,s){if(e.length>10||!nP(e))return;if(i&&rP(e)){this.raise(w.UnexpectedKeyword,r,{keyword:e});return}if((this.state.strict?s?Xd:zd:Yd)(e,this.inModule)){this.raise(w.UnexpectedReservedWord,r,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(w.YieldBindingIdentifier,r);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(w.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(w.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(w.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(w.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(w.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||La(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let r=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(w.YieldInParameter,r);let i=!1,s=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:s=this.parseMaybeAssign()}return r.delegate=i,r.argument=s,this.finishNode(r,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(w.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(w.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(e,r){if(this.isSimpleReference(e)){let i=this.startNodeAt(r);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=e,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(w.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipelineTopicUnused,e)}withTopicBindingContext(e){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}else return e()}withSoloAwaitPermittingContext(e){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=r}}allowInAnd(e){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return e()}finally{this.prodParam.exit()}}return e()}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(e){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let r=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,r,i){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(e===3?93:e===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(e){}},Rl={kind:1},MP={kind:2},FP=/[\uD800-\uDFFF]/u,ql=/in(?:stanceof)?/y;function BP(t,e,r){for(let i=0;i<t.length;i++){let s=t[i],{type:n}=s;if(typeof n=="number"){{if(n===139){let{loc:a,start:o,value:l,end:c}=s,u=o+1,d=Rt(a.start,1);t.splice(i,1,new Cr({type:qr(27),value:"#",start:o,end:u,startLoc:a.start,endLoc:d}),new Cr({type:qr(132),value:l,start:u,end:c,startLoc:d,endLoc:a.end})),i++;continue}if(La(n)){let{loc:a,start:o,value:l,end:c}=s,u=o+1,d=Rt(a.start,1),b;e.charCodeAt(o-r)===96?b=new Cr({type:qr(22),value:"`",start:o,end:u,startLoc:a.start,endLoc:d}):b=new Cr({type:qr(8),value:"}",start:o,end:u,startLoc:a.start,endLoc:d});let E,v,A,I;n===24?(v=c-1,A=Rt(a.end,-1),E=l===null?null:l.slice(1,-1),I=new Cr({type:qr(22),value:"`",start:v,end:c,startLoc:A,endLoc:a.end})):(v=c-2,A=Rt(a.end,-2),E=l===null?null:l.slice(1,-2),I=new Cr({type:qr(23),value:"${",start:v,end:c,startLoc:A,endLoc:a.end})),t.splice(i,1,b,new Cr({type:qr(20),value:E,start:u,end:v,startLoc:d,endLoc:A}),I),i+=2;continue}}s.type=qr(n)}}return t}var ac=class extends nc{parseTopLevel(e,r){return e.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),e.comments=this.comments,this.optionFlags&256&&(e.tokens=BP(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,r,i){if(e.sourceType=i,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(w.ModuleExportUndefined,a,{localName:n});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(e,"Program"):s=this.finishNodeAt(e,"Program",Rt(this.state.startLoc,-1)),s}stmtToDirective(e){let r=this.castNodeTo(e,"Directive"),i=this.castNodeTo(e.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 e.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let i=this.lookaheadCharCodeSince(e+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,e)||this.isUnparsedContextual(e,"void"))}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))return!0}return!1}chStartsBindingIdentifier(e,r){if(Ur(e)){if(ql.lastIndex=r,ql.test(this.input)){let i=this.codePointAtPos(ql.lastIndex);if(!ss(i)&&i!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return r===123||this.chStartsBindingIdentifier(r,e)}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(e=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let i=this.state.type,s=this.startNode(),n=!!(e&2),a=!!(e&4),o=e&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?w.StrictFunction:this.options.annexB?w.SloppyFunctionAnnexB:w.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,s):this.raise(w.UnexpectedLexicalDeclaration,s):this.raise(w.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(w.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(w.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let u=this.nextTokenStart(),d=this.codePointAtPos(u);if(d!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,u)&&d!==123))break}case 75:n||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let u=this.state.value;return this.parseVarStatement(s,u)}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 u=this.lookaheadCharCode();if(u===40||u===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(w.UnexpectedImportExport,this.state.startLoc),this.next();let u;return i===83?u=this.parseImport(s):u=this.parseExport(s,r),this.assertModuleNodeAllowed(u),u}default:if(this.isAsyncFunction())return n||this.raise(w.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let l=this.state.value,c=this.parseExpression();return Xe(i)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,c,e):this.parseExpressionStatement(s,c,r)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(w.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,r,i){if(e){var s;(s=r.decorators)!=null&&s.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(w.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),i&&this.resetStartLocationFromNode(i,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(w.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(w.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=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;e.expression=this.parseMaybeDecoratorArguments(i,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==i&&this.raise(w.DecoratorArgumentsOutsideParentheses,n)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i,r)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(r||s.kind===1)||e.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(w.IllegalBreakContinue,e,{type:s})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Rl),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Rl);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(e,null);let i=this.isContextual(100);{let l=this.isAwaitUsing(),c=l||this.isForUsing(),u=i&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||u){let d=this.startNode(),b;l?(b="await using",this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):b=this.state.value,this.next(),this.parseVar(d,!0,b);let E=this.finishNode(d,"VariableDeclaration"),v=this.match(58);return v&&c&&this.raise(w.ForInUsing,E),(v||this.isContextual(102))&&E.declarations.length===1?this.parseForIn(e,E,r):(r!==null&&this.unexpected(r),this.parseFor(e,E))}}let s=this.isContextual(95),n=new as,a=this.parseExpression(!0,n),o=this.isContextual(102);if(o&&(i&&this.raise(w.ForOfLet,a),r===null&&s&&a.type==="Identifier"&&this.raise(w.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:l}),this.parseForIn(e,a,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(e,a)}parseFunctionStatement(e,r,i){return this.next(),this.parseFunction(e,1|(i?2:0)|(r?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(w.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];this.expect(5),this.state.labels.push(MP),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(w.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(w.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(w.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,i=!1){return this.next(),this.parseVar(e,!1,r,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Rl),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(w.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,r,i,s){for(let a of this.state.labels)a.name===r&&this.raise(w.LabelRedeclaration,i,{labelName:r});let n=KE(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===e.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)}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,i){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,i){let s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,i,s,n){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,s,n)}parseBlockOrModuleBlockBody(e,r,i,s,n){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let c=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(c)){let u=this.stmtToDirective(c);r.push(u),!o&&u.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}e.push(c)}n?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,r){return e.init=r,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):e.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(w.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(w.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),e.left=r,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,r,i,s=!1){let n=e.declarations=[];for(e.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(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(w.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),a=!!(r&8);this.initFunction(e,a),this.match(55)&&(i&&this.raise(w.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Na(a,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||Xe(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(SP()),e.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},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(w.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(w.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),s.length)throw this.raise(w.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(e,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(5)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,i,s)}parseClassMemberWithIsStatic(e,r,i,s){let n=r,a=r,o=r,l=r,c=r,u=n,d=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){u.kind="method";let _=this.match(139);if(this.parseClassElementName(u),this.parsePostMemberNameModifiers(u),_){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(w.ConstructorIsGenerator,n.key),this.pushClassMethod(e,n,!0,!1,!1,!1);return}let b=!this.state.containsEsc&&Xe(this.state.type),E=this.parseClassElementName(r),v=b?E.name:null,A=this.isPrivateName(E),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(u.kind="method",A){this.pushClassPrivateMethod(e,a,!1,!1);return}let _=this.isNonstaticConstructor(n),$=!1;_&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(w.DuplicateConstructor,E),_&&this.hasPlugin("typescript")&&r.override&&this.raise(w.OverrideOnConstructor,E),i.hadConstructor=!0,$=i.hadSuperClass),this.pushClassMethod(e,n,!1,!1,_,$)}else if(this.isClassProperty())A?this.pushClassPrivateProperty(e,l):this.pushClassProperty(e,o);else if(v==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(E);let _=this.eat(55);d.optional&&this.unexpected(I),u.kind="method";let $=this.match(139);this.parseClassElementName(u),this.parsePostMemberNameModifiers(d),$?this.pushClassPrivateMethod(e,a,_,!0):(this.isNonstaticConstructor(n)&&this.raise(w.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,_,!0,!1,!1))}else if((v==="get"||v==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(E),u.kind=v;let _=this.match(139);this.parseClassElementName(n),_?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(w.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(v==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(E);let _=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,_)}else this.isLineTerminator()?A?this.pushClassPrivateProperty(e,l):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:r,value:i}=this.state;if((r===132||r===134)&&e.static&&i==="prototype"&&this.raise(w.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(w.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,r){var i;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(w.DecoratorStaticBlock,r)}pushClassProperty(e,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(w.ConstructorClassField,r.key),e.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(e,r){let i=this.parseClassPrivateProperty(r);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(e,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(w.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);e.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,r,i,s,n,a){e.body.push(this.parseMethod(r,i,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(e,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);e.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(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(Zd()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,r,i,s=8331){if(Xe(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,s);else if(i||!r)e.id=null;else throw this.raise(w.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,r){let i=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,i),n=!s||this.eat(12),a=n&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),l=n&&(!o||this.eat(12)),c=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(w.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let u=this.maybeParseExportNamedSpecifiers(e);s&&n&&!a&&!u&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let d;if(c||u){if(d=!1,r)throw this.raise(w.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else d=this.maybeParseExportDeclaration(e);if(c||u||d){var b;let E=e;if(this.checkExport(E,!0,!1,!!E.source),((b=E.declaration)==null?void 0:b.type)==="ClassDeclaration")this.maybeTakeDecorators(r,E.declaration,E);else if(r)throw this.raise(w.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(E,"ExportNamedDeclaration")}if(this.eat(65)){let E=e,v=this.parseExportDefaultExpression();if(E.declaration=v,v.type==="ClassDeclaration")this.maybeTakeDecorators(r,v,E);else if(r)throw this.raise(w.UnsupportedDecoratorExport,e);return this.checkExport(E,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(E,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var r,i;(i=(r=e).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let r=e;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(w.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Xe(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),n=this.input.charCodeAt(s);if(n===123||this.chStartsBindingIdentifier(n,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Xe(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(e,r){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,r,i,s){if(r){var n;if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=e.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(w.ExportDefaultFromAsIdentifier,o)}}else if((n=e.specifiers)!=null&&n.length)for(let o of e.specifiers){let{exported:l}=o,c=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,c),!s&&o.local){let{local:u}=o;u.type!=="Identifier"?this.raise(w.ExportBindingIsString,o,{localName:u.value,exportName:c}):(this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u))}}else if(e.declaration){let o=e.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(e,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(w.DuplicateDefaultExport,e):this.raise(w.DuplicateExport,e,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(e){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,n,e,s))}return r}parseExportSpecifier(e,r,i,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():r?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),r=FP.exec(e.value);return r&&this.raise(w.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(e){let{specifiers:r}=e,i=r.length===1?r[0].type:null;if(e.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(w.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(e.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(w.DeferImportRequiresNamespace,r[0].loc.start);else if(e.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(w.ImportReflectionNotBinding,r[0].loc.start),((s=e.assertions)==null?void 0:s.length)>0&&this.raise(w.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:r}=e;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(w.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let i=this.startNode(),s=this.parseIdentifierName(!0),{type:n}=this.state;return(yr(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(e,r,s,i.loc.start),null):(this.applyImportPhase(e,r,null),this.createIdentifier(i,s))}isPrecedingIdImportPhase(e){let{type:r}=this.state;return Xe(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(e);return s&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var r;return(r=e.specifiers)!=null||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,r,i){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(e,r,i=8201){return this.checkLVal(e.local,{type:r},i),this.finishNode(e,r)}parseImportAttributes(){this.expect(5);let e=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(w.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(w.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(w.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let r;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(w.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!i&&this.hasPlugin("importAssertions")?e.assertions=r:e.attributes=r}maybeParseDefaultImportSpecifier(e,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(yr(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(w.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,e.importKind==="type"||e.importKind==="typeof",n,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,r,i,s,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:a}=e;if(r)throw this.raise(w.ImportBindingIsString,e,{importName:a.value});this.checkReservedWord(a.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},Fa=class extends ac{constructor(e,r,i){e=ME(e),super(e,r),this.options=e,this.initializeScopes(),this.plugins=i,this.filename=e.sourceFilename,this.startIndex=e.startIndex;let s=0;e.allowAwaitOutsideFunction&&(s|=1),e.allowReturnOutsideFunction&&(s|=2),e.allowImportExportEverywhere&&(s|=8),e.allowSuperOutsideMethod&&(s|=16),e.allowUndeclaredExports&&(s|=64),e.allowNewTargetOutsideFunction&&(s|=4),e.allowYieldOutsideFunction&&(s|=32),e.ranges&&(s|=128),e.tokens&&(s|=256),e.createImportExpressions&&(s|=512),e.createParenthesizedExpressions&&(s|=1024),e.errorRecovery&&(s|=2048),e.attachComment&&(s|=4096),e.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return un}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,r),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};function jP(t,e){var r;if(((r=e)==null?void 0:r.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let i=on(e,t),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return e.sourceType="script",on(e,t).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return e.sourceType="script",on(e,t).parse()}catch{}throw i}}else return on(e,t).parse()}function RP(t,e){let r=on(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function qP(t){let e={};for(let r of Object.keys(t))e[r]=qr(t[r]);return e}var $P=qP(RE);function on(t,e){let r=Fa,i=new Map;if(t!=null&&t.plugins){for(let s of t.plugins){let n,a;typeof s=="string"?n=s:[n,a]=s,i.has(n)||i.set(n,a||{})}DP(i),r=UP(i)}return new r(t,e,i)}var Ud=new Map;function UP(t){let e=[];for(let s of LP)t.has(s)&&e.push(s);let r=e.join("|"),i=Ud.get(r);if(!i){i=Fa;for(let s of e)i=im[s](i);Ud.set(r,i)}return i}fn.parse=jP;fn.parseExpression=RP;fn.tokTypes=$P});var yc=k(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.Var=Be.User=Be.Statement=Be.SpreadProperty=Be.Scope=Be.RestProperty=Be.ReferencedMemberExpression=Be.ReferencedIdentifier=Be.Referenced=Be.Pure=Be.NumericLiteralTypeAnnotation=Be.Generated=Be.ForAwaitStatement=Be.Flow=Be.Expression=Be.ExistentialTypeParam=Be.BlockScoped=Be.BindingIdentifier=void 0;var zG=Be.ReferencedIdentifier=["Identifier","JSXIdentifier"],JG=Be.ReferencedMemberExpression=["MemberExpression"],XG=Be.BindingIdentifier=["Identifier"],HG=Be.Statement=["Statement"],GG=Be.Expression=["Expression"],QG=Be.Scope=["Scopable","Pattern"],ZG=Be.Referenced=null,eQ=Be.BlockScoped=null,tQ=Be.Var=["VariableDeclaration"],rQ=Be.User=null,iQ=Be.Generated=null,sQ=Be.Pure=null,nQ=Be.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],aQ=Be.RestProperty=["RestElement"],oQ=Be.SpreadProperty=["RestElement"],lQ=Be.ExistentialTypeParam=["ExistsTypeAnnotation"],cQ=Be.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],uQ=Be.ForAwaitStatement=["ForOfStatement"]});var nm=k((fQ,sm)=>{var us=1e3,ps=us*60,fs=ps*60,Ii=fs*24,KP=Ii*7,WP=Ii*365.25;sm.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return VP(t);if(r==="number"&&isFinite(t))return e.long?zP(t):YP(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function VP(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*WP;case"weeks":case"week":case"w":return r*KP;case"days":case"day":case"d":return r*Ii;case"hours":case"hour":case"hrs":case"hr":case"h":return r*fs;case"minutes":case"minute":case"mins":case"min":case"m":return r*ps;case"seconds":case"second":case"secs":case"sec":case"s":return r*us;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function YP(t){var e=Math.abs(t);return e>=Ii?Math.round(t/Ii)+"d":e>=fs?Math.round(t/fs)+"h":e>=ps?Math.round(t/ps)+"m":e>=us?Math.round(t/us)+"s":t+"ms"}function zP(t){var e=Math.abs(t);return e>=Ii?ja(t,e,Ii,"day"):e>=fs?ja(t,e,fs,"hour"):e>=ps?ja(t,e,ps,"minute"):e>=us?ja(t,e,us,"second"):t+" ms"}function ja(t,e,r,i){var s=e>=r*1.5;return Math.round(t/r)+" "+i+(s?"s":"")}});var Tc=k((hQ,am)=>{function JP(t){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=nm(),r.destroy=c,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let d=0;for(let b=0;b<u.length;b++)d=(d<<5)-d+u.charCodeAt(b),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=e;function r(u){let d,b=null,E,v;function A(...I){if(!A.enabled)return;let _=A,$=Number(new Date),X=$-(d||$);_.diff=X,_.prev=d,_.curr=$,d=$,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let N=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(W,ke)=>{if(W==="%%")return"%";N++;let Ce=r.formatters[ke];if(typeof Ce=="function"){let Ie=I[N];W=Ce.call(_,Ie),I.splice(N,1),N--}return W}),r.formatArgs.call(_,I),(_.log||r.log).apply(_,I)}return A.namespace=u,A.useColors=r.useColors(),A.color=r.selectColor(u),A.extend=i,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:()=>b!==null?b:(E!==r.namespaces&&(E=r.namespaces,v=r.enabled(u)),v),set:I=>{b=I}}),typeof r.init=="function"&&r.init(A),A}function i(u,d){let b=r(this.namespace+(typeof d>"u"?":":d)+u);return b.log=this.log,b}function s(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let b of d)b[0]==="-"?r.skips.push(b.slice(1)):r.names.push(b)}function n(u,d){let b=0,E=0,v=-1,A=0;for(;b<u.length;)if(E<d.length&&(d[E]===u[b]||d[E]==="*"))d[E]==="*"?(v=E,A=b,E++):(b++,E++);else if(v!==-1)E=v+1,A++,b=A;else return!1;for(;E<d.length&&d[E]==="*";)E++;return E===d.length}function a(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function o(u){for(let d of r.skips)if(n(u,d))return!1;for(let d of r.names)if(n(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}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}am.exports=JP});var om=k((zt,Ra)=>{zt.formatArgs=HP;zt.save=GP;zt.load=QP;zt.useColors=XP;zt.storage=ZP();zt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();zt.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 XP(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function HP(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ra.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),t.splice(i,0,e)}zt.log=console.debug||console.log||(()=>{});function GP(t){try{t?zt.storage.setItem("debug",t):zt.storage.removeItem("debug")}catch{}}function QP(){let t;try{t=zt.storage.getItem("debug")||zt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function ZP(){try{return localStorage}catch{}}Ra.exports=Tc()(zt);var{formatters:e1}=Ra.exports;e1.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var cm=k((wt,$a)=>{var t1=require("tty"),qa=require("util");wt.init=l1;wt.log=n1;wt.formatArgs=i1;wt.save=a1;wt.load=o1;wt.useColors=r1;wt.destroy=qa.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");wt.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(wt.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{}wt.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});function r1(){return"colors"in wt.inspectOpts?!!wt.inspectOpts.colors:t1.isatty(process.stderr.fd)}function i1(t){let{namespace:e,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${s};1m${e} \x1B[0m`;t[0]=n+t[0].split(`
9
+ `);case 114:return o("\r");case 120:{let c;return{code:c,pos:e}=Hl(t,e,r,i,2,!1,a,n),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:e}=Qd(t,e,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:t.charCodeAt(e)===10&&++e;case 10:r=e,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(e-1,r,i);default:if(l>=48&&l<=55){let c=e-1,d=/^[0-7]+/.exec(t.slice(c,e+2))[0],b=parseInt(d,8);b>255&&(d=d.slice(0,-1),b=parseInt(d,8)),e+=d.length-1;let E=t.charCodeAt(e);if(d!=="0"||E===56||E===57){if(s)return o(null);n.strictNumericEscape(c,r,i)}return o(String.fromCharCode(b))}return o(String.fromCharCode(l))}}function Hl(t,e,r,i,s,n,a,o){let l=e,c;return{n:c,pos:e}=Gd(t,e,r,i,16,s,n,!1,o,!a),c===null&&(a?o.invalidEscapeSequence(l,r,i):e=l-1),{code:c,pos:e}}function Gd(t,e,r,i,s,n,a,o,l,c){let u=e,d=s===16?Md.hex:Md.decBinOct,b=s===16?ka.hex:s===10?ka.dec:s===8?ka.oct:ka.bin,E=!1,v=0;for(let A=0,I=n??1/0;A<I;++A){let _=t.charCodeAt(e),$;if(_===95&&o!=="bail"){let X=t.charCodeAt(e-1),N=t.charCodeAt(e+1);if(o){if(Number.isNaN(N)||!b(N)||d.has(X)||d.has(N)){if(c)return{n:null,pos:e};l.unexpectedNumericSeparator(e,r,i)}}else{if(c)return{n:null,pos:e};l.numericSeparatorInEscapeSequence(e,r,i)}++e;continue}if(_>=97?$=_-97+10:_>=65?$=_-65+10:TP(_)?$=_-48:$=1/0,$>=s){if($<=9&&c)return{n:null,pos:e};if($<=9&&l.invalidDigit(e,r,i,s))$=0;else if(a)$=0,E=!0;else break}++e,v=v*s+$}return e===u||n!=null&&e-u!==n||E?{n:null,pos:e}:{n:v,pos:e}}function Qd(t,e,r,i,s,n){let a=t.charCodeAt(e),o;if(a===123){if(++e,{code:o,pos:e}=Hl(t,e,r,i,t.indexOf("}",e)-e,!0,s,n),++e,o!==null&&o>1114111)if(s)n.invalidCodePoint(e,r,i);else return{code:null,pos:e}}else({code:o,pos:e}=Hl(t,e,r,i,4,!1,s,n));return{code:o,pos:e}}function nn(t,e,r){return new kr(r,t-e,t)}var bP=new Set([103,109,115,105,121,117,100,118]),Cr=class{constructor(e){let r=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=r+e.start,this.end=r+e.end,this.loc=new os(e.startLoc,e.endLoc)}},Gl=class extends Jl{constructor(e,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,a)=>this.optionFlags&2048?(this.raise(w.InvalidDigit,nn(i,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(w.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(w.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(w.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(w.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(w.StrictNumericEscape,nn(i,s,n))},unterminated:(i,s,n)=>{throw this.raise(w.UnterminatedString,nn(i-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(w.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(w.UnterminatedTemplate,nn(i,s,n))}}),this.state=new Xl,this.state.init(e),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Cr(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Bl.lastIndex=e,Bl.test(this.input)?Bl.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return jl.lastIndex=e,jl.test(this.input)?jl.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++e<this.input.length){let i=this.input.charCodeAt(e);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(e){this.state.strict=e,e&&(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(e){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(e,i+2);if(s===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,Ia.lastIndex=i+2;Ia.test(this.input)&&Ia.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Ia.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+e.length),loc:new os(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(e){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!ns(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+e,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n),loc:new os(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let e=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(dP(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&&(e===0||this.state.lineStart>e)){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(e),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(w.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?w.RecordExpressionHashIncorrectStartSyntaxType:w.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Ur(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 e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!ns(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(e){let r=e===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);e===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=e===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.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(w.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===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(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===60){if(this.input.charCodeAt(e+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:e}=this.state,r=this.input.charCodeAt(e+1);if(r===62){let i=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+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(e){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(e===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);e===63?r===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){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(w.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(w.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);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(Ur(e)){this.readWord(e);return}}throw this.raise(w.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,i)}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(w.UnterminatedRegExp,Rt(e,1));let c=this.input.charCodeAt(n);if(ns(c))throw this.raise(w.UnterminatedRegExp,Rt(e,1));if(i)i=!1;else{if(c===91)s=!0;else if(c===93&&s)s=!1;else if(c===47&&!s)break;i=c===92}}let a=this.input.slice(r,n);++n;let o="",l=()=>Rt(e,n+2-r);for(;n<this.length;){let c=this.codePointAtPos(n),u=String.fromCharCode(c);if(bP.has(c))c===118?o.includes("u")&&this.raise(w.IncompatibleRegExpUVFlags,l()):c===117&&o.includes("v")&&this.raise(w.IncompatibleRegExpUVFlags,l()),o.includes(u)&&this.raise(w.DuplicateRegExpFlags,l());else if(ss(c)||c===92)this.raise(w.MalformedRegExpFlags,l());else break;++n,o+=u}this.state.pos=n,this.finishToken(138,{pattern:a,flags:o})}readInt(e,r,i=!1,s=!0){let{n,pos:a}=Gd(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(e){let r=this.state.pos,i=this.state.curPosition(),s=!1;this.state.pos+=2;let n=this.readInt(e);n==null&&this.raise(w.InvalidDigit,Rt(i,2),{radix:e});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,s=!0;else if(a===109)throw this.raise(w.InvalidDecimal,i);if(Ur(this.codePointAtPos(this.state.pos)))throw this.raise(w.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(e){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,a=!1,o=!1;!e&&this.readInt(10)===null&&this.raise(w.InvalidNumber,this.state.curPosition());let l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){let E=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(w.StrictOctalLiteral,i),!this.state.strict){let v=E.indexOf("_");v>0&&this.raise(w.ZeroDigitNumericSeparator,Rt(i,v))}o=l&&!/[89]/.test(E)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,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(w.InvalidOrMissingExponent,i),s=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((s||l)&&this.raise(w.InvalidBigIntLiteral,i),++this.state.pos,n=!0),c===109){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(w.InvalidDecimal,i),++this.state.pos;var u=!0}if(Ur(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());let d=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,d);return}if(u){this.finishToken(137,d);return}let b=o?parseInt(d,8):parseFloat(d);this.finishToken(135,b)}readCodePoint(e){let{code:r,pos:i}=Qd(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(e){let{str:r,pos:i,curLine:s,lineStart:n}=Fd(e===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 e=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:a}=Fd("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 kr(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:e+r+"`"):(this.state.pos++,this.finishToken(25,i?null:e+r+"${"))}recordStrictModeErrors(e,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,r):this.state.strictErrors.set(i,[e,r])}readWord1(e){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(ss(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?Ur:ss;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(w.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(w.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(l)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(e){let r=this.readWord1(e),i=oc.get(r);i!==void 0?this.finishToken(i,si(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:e}=this.state;hc(e)&&this.state.containsEsc&&this.raise(w.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:si(e)})}raise(e,r,i={}){let s=r instanceof kr?r:r.loc.start,n=e(s,i);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,r,i={}){let s=r instanceof kr?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]=e(s,i);if(l.loc.index<n)break}return this.raise(e,r,i)}updateContext(e){}unexpected(e,r){throw this.raise(w.UnexpectedToken,e??this.state.startLoc,{expected:r?si(r):null})}expectPlugin(e,r){if(this.hasPlugin(e))return!0;throw this.raise(w.MissingPlugin,r??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(r=>this.hasPlugin(r)))throw this.raise(w.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(r,i,s)=>{this.raise(e,nn(r,i,s))}}},Ql=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Zl=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Ql)}exit(){let e=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(w.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(e,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),o=s.has(e);if(r&3){let l=o&&n.get(e);if(l){let c=l&4,u=r&4,d=l&3,b=r&3;o=d===b||c!==u,o||n.delete(e)}else o||n.set(e,r)}o&&this.parser.raise(w.PrivateNameRedeclaration,i,{identifierName:e}),s.add(e),a.delete(e)}usePrivateName(e,r){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,r):this.parser.raise(w.InvalidPrivateFieldResolution,r,{identifierName:e})}},ls=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Ma=class extends ls{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,r){let i=r.index;this.declarationErrors.set(i,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},ec=class{constructor(e){this.parser=void 0,this.stack=[new ls],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,r){let i=r.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,i);else return;a=s[--n]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,r){let{stack:i}=this,s=i[i.length-1],n=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,n);else return}recordAsyncArrowParametersError(e){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(w.AwaitBindingIdentifier,e),s=r[--i]}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let n=e.length-2,a=e[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=e[--n]})}};function SP(){return new ls(3)}function EP(){return new Ma(1)}function PP(){return new Ma(2)}function Zd(){return new ls}var tc=class extends Gl{addExtra(e,r,i,s=!0){if(!e)return;let{extra:n}=e;n==null&&(n={},e.extra=n),s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){if(this.input.startsWith(r,e)){let i=this.input.charCodeAt(e+r.length);return!(ss(i)||(i&64512)===55296)}return!1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ld(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Ld(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(w.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,r){this.eat(e)||this.unexpected(r,e)}tryParse(e,r=this.state.clone()){let i={node:null};try{let s=e((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:o}=e,l=!!i||!!s||!!a||!!n||!!o;if(!r)return l;i!=null&&this.raise(w.InvalidCoverInitializedName,i),s!=null&&this.raise(w.DuplicateProto,s),n!=null&&this.raise(w.UnexpectedPrivateField,n),a!=null&&this.unexpected(a),o!=null&&this.raise(w.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return Kd(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=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=e;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let o=this.prodParam;this.prodParam=new Yl;let l=this.classScope;this.classScope=new Zl(this);let c=this.expressionScope;return this.expressionScope=new ec(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 e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let i=r?514:1;this.optionFlags&4&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r)}},as=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},cs=class{constructor(e,r,i){this.type="",this.start=r,this.end=0,this.loc=new os(i),e?.optionFlags&128&&(this.range=[r,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},rc=cs.prototype;rc.__clone=function(){let t=new cs(void 0,this.start,this.loc.start),e=Object.keys(this);for(let r=0,i=e.length;r<i;r++){let s=e[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(t[s]=this[s])}return t};var ic=class extends tc{startNode(){let e=this.state.startLoc;return new cs(this,e.index,e)}startNodeAt(e){return new cs(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,i){return e.type=r,e.end=i.index,e.loc.end=i,this.optionFlags&128&&(e.range[1]=i.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index,e.loc.start=r,this.optionFlags&128&&(e.range[0]=r.index)}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index,e.loc.end=r,this.optionFlags&128&&(e.range[1]=r.index)}resetStartLocationFromNode(e,r){this.resetStartLocation(e,r.loc.start)}castNodeTo(e,r){return e.type=r,e}cloneIdentifier(e){let{type:r,start:i,end:s,loc:n,range:a,name:o}=e,l=Object.create(rc);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.name=o,e.extra&&(l.extra=e.extra),l}cloneStringLiteral(e){let{type:r,start:i,end:s,loc:n,range:a,extra:o}=e,l=Object.create(rc);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.extra=o,l.value=e.value,l}},em=t=>t.type==="ParenthesizedExpression"?em(t.expression):t,sc=class extends ic{toAssignable(e,r=!1){var i,s;let n;switch((e.type==="ParenthesizedExpression"||(i=e.extra)!=null&&i.parenthesized)&&(n=em(e),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(w.InvalidParenthesizedAssignment,e):n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(w.InvalidParenthesizedAssignment,e):this.raise(w.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let o=0,l=e.properties.length,c=l-1;o<l;o++){var a;let u=e.properties[o],d=o===c;this.toAssignableObjectExpressionProp(u,d,r),d&&u.type==="RestElement"&&(a=e.extra)!=null&&a.trailingCommaLoc&&this.raise(w.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:l}=e;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(e,"ArrayPattern"),this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":e.operator!=="="&&this.raise(w.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,e.left),this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(e,r,i){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?w.PatternHasAccessor:w.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(w.RestTrailingComma,e)}else this.toAssignable(e,i)}toAssignableList(e,r,i){let s=e.length-1;for(let n=0;n<=s;n++){let a=e[n];a&&(this.toAssignableListItem(e,n,i),a.type==="RestElement"&&(n<s?this.raise(w.RestTrailingComma,a):r&&this.raise(w.RestTrailingComma,r)))}}toAssignableListItem(e,r,i){let s=e[r];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,i)}else this.toAssignable(s,i)}isAssignable(e,r){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let i=e.properties.length-1;return e.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(e,r){return e}toReferencedListDeep(e,r){this.toReferencedList(e,r);for(let i of e)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,r),e.argument=r,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,r,i){let s=i&1,n=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(e))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(e);break}}else{let o=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(w.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());n.push(this.parseBindingElement(i,o))}}return n}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(w.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:r}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return e===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(e,r){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||e&2)&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(e){return e}parseMaybeDefault(e,r){if(e??(e=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(e);return r.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(e,r,i){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,r,i=64,s=!1,n=!1,a=!1){var o;let l=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||l==="MemberExpression"){c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),r.type!=="AssignmentExpression"&&this.raise(w.InvalidLhsOptionalChaining,e,{ancestor:r})),i!==64&&this.raise(w.InvalidPropertyBindingPattern,e);return}if(l==="Identifier"){this.checkIdentifier(e,i,n);let{name:A}=e;s&&(s.has(A)?this.raise(w.ParamDupe,e):s.add(A));return}else l==="VoidPattern"&&r.type==="CatchClause"&&this.raise(w.VoidPatternCatchClauseParam,e);let u=this.isValidLVal(l,!(a||(o=e.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",i);if(u===!0)return;if(u===!1){let A=i===64?w.InvalidLhs:w.InvalidLhsBinding;this.raise(A,e,{ancestor:r});return}let d,b;typeof u=="string"?(d=u,b=l==="ParenthesizedExpression"):[d,b]=u;let E=l==="ArrayPattern"||l==="ObjectPattern"?{type:l}:r,v=e[d];if(Array.isArray(v))for(let A of v)A&&this.checkLVal(A,E,i,s,n,b);else v&&this.checkLVal(v,E,i,s,n,b)}checkIdentifier(e,r,i=!1){this.state.strict&&(i?Xd(e.name,this.inModule):Jd(e.name))&&(r===64?this.raise(w.StrictEvalArguments,e,{referenceName:e.name}):this.raise(w.StrictEvalArgumentsBinding,e,{bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(w.LetInLexicalBinding,e),r&64||this.declareNameFromIdentifier(e,r)}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.loc.start)}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(w.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?w.RestTrailingComma:w.ElementAfterRest,this.state.startLoc),!0):!1}};function vP(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function Bd(t){if(!t)throw new Error("Assert fail")}var de=Ir`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' 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:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>`Accessibility modifier already seen: '${t}'.`,DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' 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:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,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:t})=>`'${t}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:t=>`'${t}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:t=>`'${t}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[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:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,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:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,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:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`,UsingDeclarationInAmbientContext:t=>`'${t}' declarations are not allowed in ambient contexts.`});function AP(t){switch(t){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 jd(t){return t==="private"||t==="public"||t==="protected"}function wP(t){return t==="in"||t==="out"}var CP=t=>class extends t{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:de.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:de.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:de.InvalidModifierOnTypeParameter})}getScopeHandler(){return Vl}tsIsIdentifier(){return He(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!He(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=de.InvalidModifierOnTypeMember},a){let o=(c,u,d,b)=>{u===d&&a[b]&&this.raise(de.InvalidModifiersOrder,c,{orderedModifiers:[d,b]})},l=(c,u,d,b)=>{(a[d]&&u===b||a[b]&&u===d)&&this.raise(de.IncompatibleModifiers,c,{modifiers:[d,b]})};for(;;){let{startLoc:c}=this.state,u=this.tsParseModifier(r.concat(i??[]),s,a.static);if(!u)break;jd(u)?a.accessibility?this.raise(de.DuplicateAccessibilityModifier,c,{modifier:u}):(o(c,u,u,"override"),o(c,u,u,"static"),o(c,u,u,"readonly"),a.accessibility=u):wP(u)?(a[u]&&this.raise(de.DuplicateModifier,c,{modifier:u}),a[u]=!0,o(c,u,"in","out")):(hasOwnProperty.call(a,u)?this.raise(de.DuplicateModifier,c,{modifier:u}):(o(c,u,"static","readonly"),o(c,u,"static","override"),o(c,u,"override","readonly"),o(c,u,"abstract","override"),l(c,u,"declare","override"),l(c,u,"static","abstract")),a[u]=!0),i!=null&&i.includes(u)&&this.raise(n,c,{modifier:u})}}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 vP(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=o),a}tsParseBracketedList(r,i,s,n,a){n||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(de.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let s=this.state.type;He(s)||s===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),i=this.finishNode(s,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(de.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(de.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(),He(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(de.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(de.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(w.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(de.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[n].length!==1)this.raise(w.BadSetterArity,this.state.curPosition());else{let o=s[n][0];this.isThisParam(o)&&this.raise(de.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(de.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(de.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(de.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;i&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);{let i=this.startNode();i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(i,"TSTypeParameter")}return r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(de.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,u=yr(this.state.type)?this.lookaheadCharCode():null;if(u===58)n=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(u===63){o=!0;let d=this.state.value,b=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,a=this.createIdentifier(this.startNodeAt(s),d),this.expect(17),this.expect(14),l=this.tsParseType()):(n=!1,l=b,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let d;a?(d=this.startNodeAt(s),d.optional=o,d.label=a,d.elementType=l,this.eat(17)&&(d.optional=!0,this.raise(de.TupleOptionalAfterType,this.state.lastTokStartLoc))):(d=this.startNodeAt(s),d.optional=o,this.raise(de.InvalidTupleMemberLabel,l),d.label=l,d.elementType=this.tsParseType()),l=this.finishNode(d,"TSNamedTupleMember")}else if(o){let d=this.startNodeAt(s);d.typeAnnotation=l,l=this.finishNode(d,"TSOptionalType")}if(i){let d=this.startNodeAt(r);d.typeAnnotation=l,l=this.finishNode(d,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(He(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":AP(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}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(de.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 zE(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),a=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!a?o[0]:(n.types=o,this.finishNode(n,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(He(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),i.typeAnnotation=l,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!He(this.state.type)&&!this.match(78)?!1:(r&&this.raise(w.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){Bd(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(de.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(de.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),He(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(de.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()!==Je.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(de.ImportAliasHasImportType,n),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(de.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(de.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(He(i))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,i,s){switch(i.name){case"declare":{let n=this.tsTryParseDeclare(r);return n&&(n.declare=!0),n}case"global":if(this.match(5)){this.scope.enter(1024),this.prodParam.enter(0);let n=r;return n.kind="global",r.global=!0,n.id=i,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,i.name,!1,s)}}tsParseDeclaration(r,i,s,n){switch(i){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||He(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(He(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&He(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(s)&&He(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(de.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===Je.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return JE(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let s=i.length?i[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,o=n.override,l=n.readonly;!(r&4)&&(a||l||o)&&this.raise(de.UnexpectedParameterModifier,s);let c=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(c);let u=this.parseMaybeDefault(c.loc.start,c);if(a||l||o){let d=this.startNodeAt(s);return i.length&&(d.decorators=i),a&&(d.accessibility=a),l&&(d.readonly=l),o&&(d.override=o),u.type!=="Identifier"&&u.type!=="AssignmentPattern"&&this.raise(de.UnsupportedParameterPropertyKind,d),d.parameter=u,this.finishNode(d,"TSParameterProperty")}return i.length&&(c.decorators=i),u}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(de.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(de.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(de.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s,n){let a=super.parseArrayLike(r,i,s,n);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let b=this.tsTryParseGenericAsyncArrowFunction(i);if(b)return b}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(La(this.state.type)){let b=super.parseTaggedTemplateExpression(r,i,n);return b.typeParameters=c,b}if(!s&&this.eat(10)){let b=this.startNodeAt(i);return b.callee=r,b.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(b.arguments),b.typeParameters=c,n.optionalChainMember&&(b.optional=a),this.finishCallExpression(b,n.optionalChainMember)}let u=this.state.type;if(u===48||u===52||u!==10&&an(u)&&!this.hasPrecedingLineBreak())return;let d=this.startNodeAt(i);return d.expression=r,d.typeParameters=c,this.finishNode(d,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(de.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(_a(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(w.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(de.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(He(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(de.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=r;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,i,s||n);if(!n)return a;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(de.UsingDeclarationInAmbientContext,r,i),a;for(let{id:o,init:l}of a.declarations)l&&(i==="var"||i==="let"||o.typeAnnotation?this.raise(de.InitializerNotAllowedInAmbientContext,l):kP(l,this.hasPlugin("estree"))||this.raise(de.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return a}parseStatementContent(r,i){if(this.match(75)&&this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>jd(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:de.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(de.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(de.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(de.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(de.IndexSignatureHasDeclare,i),i.override&&this.raise(de.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(de.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(de.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(de.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(de.ClassMethodHasDeclare,r)}parseExpressionStatement(r,i,s){return(i.type==="Identifier"?this.tsParseExpressionStatement(r,i,s):void 0)||super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,i,s)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(de.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=He(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(de.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(de.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(de.PrivateElementHasAbstract,r),r.accessibility&&this.raise(de.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(de.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(de.ConstructorHasTypeParameters,l);let{declare:c=!1,kind:u}=i;c&&(u==="get"||u==="set")&&this.raise(de.DeclareAccessor,i,{kind:u}),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){super.parseClassSuper(r),r.superClass&&(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=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,a,o,l;let c,u,d;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),u=this.tryParse(()=>super.parseMaybeAssign(r,i),c),!u.error)return u.node;let{context:v}=this.state,A=v[v.length-1];(A===Je.j_oTag||A===Je.j_expr)&&v.pop()}if(!((s=u)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!c||c===this.state)&&(c=this.state.clone());let b,E=this.tryParse(v=>{var A,I;b=this.tsParseTypeParameters(this.tsParseConstModifier);let _=super.parseMaybeAssign(r,i);return(_.type!=="ArrowFunctionExpression"||(A=_.extra)!=null&&A.parenthesized)&&v(),((I=b)==null?void 0:I.params.length)!==0&&this.resetStartLocationFromNode(_,b),_.typeParameters=b,_},c);if(!E.error&&!E.aborted)return b&&this.reportReservedArrowTypeParam(b),E.node;if(!u&&(Bd(!this.hasPlugin("jsx")),d=this.tryParse(()=>super.parseMaybeAssign(r,i),c),!d.error))return d.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;if(E.node)return this.state=E.failState,b&&this.reportReservedArrowTypeParam(b),E.node;if((a=d)!=null&&a.node)return this.state=d.failState,d.node;throw((o=u)==null?void 0:o.error)||E.error||((l=d)==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(de.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(de.UnexpectedTypeCastInParameter,r):this.raise(de.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!i)&&["expression",!0];default:return super.isValidLVal(r,i,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(r,i);return n.typeParameters=s,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(de.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableListItem(r,i,s){let n=r[i];n.type==="TSTypeCastExpression"&&(r[i]=this.typeCastToParameter(n)),super.toAssignableListItem(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(de.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r)}else 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:b}=c;this.raise(de.AbstractMethodHasImplementation,c,{methodName:b.type==="Identifier"&&!c.computed?b.name:`[${this.input.slice(this.offsetToSourcePos(b.start),this.offsetToSourcePos(b.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,a){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",a=i?"local":"exported",o=r[n],l,c=!1,u=!0,d=o.loc.start;if(this.isContextual(93)){let E=this.parseIdentifier();if(this.isContextual(93)){let v=this.parseIdentifier();yr(this.state.type)?(c=!0,o=E,l=i?this.parseIdentifier():this.parseModuleExportName(),u=!1):(l=v,u=!1)}else yr(this.state.type)?(u=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=E)}else yr(this.state.type)&&(c=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&s&&this.raise(i?de.TypeModifierIsUsedInTypeImports:de.TypeModifierIsUsedInTypeExports,d),r[n]=o,r[a]=l;let b=i?"importKind":"exportKind";r[b]=c?"type":"value",u&&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){var i,s,n,a,o,l,c,u,d,b,E,v,A,I,_,$,X,N,U,W,ke,Ce,Ie,We,ft,h,ve,Oe,tt,Ct,ne,ie,O,F,D,ee,Q,ae,j,B,R,Y,te,Z,ue,ge;switch(r.type){case"ExpressionStatement":(i=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(s=r.decorators)!=null||(r.decorators=[]),(n=r.optional)!=null||(r.optional=!1),(a=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(o=r.accessibility)!=null||(r.accessibility=void 0),(l=r.decorators)!=null||(r.decorators=[]),(c=r.override)!=null||(r.override=!1),(u=r.readonly)!=null||(r.readonly=!1),(d=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(b=r.declare)!=null||(r.declare=!1),(E=r.returnType)!=null||(r.returnType=void 0),(v=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(A=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(I=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(_=r.accessibility)!=null||(r.accessibility=void 0),($=r.readonly)!=null||(r.readonly=!1),(X=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(N=r.declare)!=null||(r.declare=!1),(U=r.definite)!=null||(r.definite=!1),(W=r.readonly)!=null||(r.readonly=!1),(ke=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(Ce=r.accessibility)!=null||(r.accessibility=void 0),(Ie=r.decorators)!=null||(r.decorators=[]),(We=r.override)!=null||(r.override=!1),(ft=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(h=r.id)!=null||(r.id=null);case"ClassDeclaration":(ve=r.abstract)!=null||(r.abstract=!1),(Oe=r.declare)!=null||(r.declare=!1),(tt=r.decorators)!=null||(r.decorators=[]),(Ct=r.implements)!=null||(r.implements=[]),(ne=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(ie=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(O=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(F=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(D=r.const)!=null||(r.const=!1),(ee=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(Q=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(ae=r.qualifier)!=null||(r.qualifier=null),(j=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(B=r.declare)!=null||(r.declare=!1),(R=r.extends)!=null||(r.extends=[]);return;case"TSModuleDeclaration":(Y=r.declare)!=null||(r.declare=!1),(te=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(Z=r.const)!=null||(r.const=!1),(ue=r.in)!=null||(r.in=!1),(ge=r.out)!=null||(r.out=!1);return}}};function IP(t){if(t.type!=="MemberExpression")return!1;let{computed:e,property:r}=t;return e&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:rm(t.object)}function kP(t,e){var r;let{type:i}=t;if((r=t.extra)!=null&&r.parenthesized)return!1;if(e){if(i==="Literal"){let{value:s}=t;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(tm(t,e)||OP(t,e)||i==="TemplateLiteral"&&t.expressions.length===0||IP(t))}function tm(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function OP(t,e){if(t.type==="UnaryExpression"){let{operator:r,argument:i}=t;if(r==="-"&&tm(i,e))return!0}return!1}function rm(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:rm(t.object)}var Rd=Ir`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),_P=t=>class extends t{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s){return r==="Placeholder"||super.isValidLVal(r,i,s)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(r,i){r.label&&r.label.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(Rd.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(si(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Rd.UnexpectedSpace,this.state.lastTokEndLoc)}},NP=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),He(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)}},qd=["minimal","fsharp","hack","smart"],$d=["^^","@@","^","%","#"];function DP(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let i=t.get("decorators").decoratorsBeforeExport;if(i!=null&&typeof i!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=t.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){var e;let i=t.get("pipelineOperator").proposal;if(!qd.includes(i)){let s=qd.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(i==="hack"){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=t.get("pipelineOperator").topicToken;if(!$d.includes(s)){let n=$d.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}{var r;if(s==="#"&&((r=t.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}}else if(i==="smart"&&((e=t.get("recordAndTuple"))==null?void 0:e.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}if(t.has("moduleAttributes")){if(t.has("deprecatedImportAssert")||t.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(t.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(t.has("importAssertions")&&t.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!t.has("deprecatedImportAssert")&&t.has("importAttributes")&&t.get("importAttributes").deprecatedAssertSyntax&&t.set("deprecatedImportAssert",{}),t.has("recordAndTuple")){let i=t.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(t.has("asyncDoExpressions")&&!t.has("doExpressions")){let i=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw i.missingPlugins="doExpressions",i}if(t.has("optionalChainingAssign")&&t.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(t.has("discardBinding")&&t.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var im={estree:BE,jsx:mP,flow:pP,typescript:CP,v8intrinsic:NP,placeholders:_P},LP=Object.keys(im),nc=class extends sc{checkProto(e,r,i,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return i;let n=e.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?r?(this.raise(w.RecordNoProto,n),!0):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(w.DuplicateProto,n)),!0):i}shouldExitDescending(e,r){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(w.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(w.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,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;e?n=!1:(e=new as,n=!0);let{type:a}=this.state;(a===10||He(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(r&&(o=r.call(this,o,i)),UE(this.state.type)){let l=this.startNodeAt(i),c=this.state.value;if(l.operator=c,this.match(29)){this.toAssignable(o,!0),l.left=o;let u=i.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=u&&(e.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression")),l}else n&&this.checkExpressionErrors(e,!0);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?an(l):an(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.YieldNotInGeneratorFunction,i),this.parseYield(i)}return o}parseMaybeConditional(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,e)}parseConditional(e,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(e,r,i){if(this.isPrivateName(e)){let n=this.getPrivateNameSV(e);(i>=_a(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(w.PrivateInExpectedIn,e,{identifierName:n}),this.classScope.usePrivateName(n,e.loc.start)}let s=this.state.type;if(WE(s)&&(this.prodParam.hasIn||!this.match(58))){let n=_a(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r)}let a=this.startNodeAt(r);a.left=e,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(n=_a(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(w.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let c=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(l&&(u===41||u===42)||o&&u===40)throw this.raise(w.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,r,i)}}return e}parseExprOpRightExpr(e,r){let i=this.state.startLoc;switch(e){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(w.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,r),i)});default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,XE(e)?r-1:r)}parseHackPipeBody(){var e;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return OE.has(i.type)&&!((e=i.extra)!=null&&e.parenthesized)&&this.raise(w.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipeTopicUnused,r),i}checkExponentialAfterUnary(e){this.match(57)&&this.raise(w.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,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(YE(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&l){let c=a.argument;c.type==="Identifier"?this.raise(w.StrictDelete,a):this.hasPropertyAsPrivateName(c)&&this.raise(w.DeletePrivateField,a)}if(!n)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,n,e);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?an(l):an(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(e,r,i){if(r){let a=e;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),e}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;VE(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(e,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(e,r,i,s);if(La(n))return this.parseTaggedTemplateExpression(e,r,s);let a=!1;if(n===18){if(i&&(this.raise(w.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,s);s.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(e,r,s,o,a):this.stopParseSubscript(e,s)}}stopParseSubscript(e,r){return r.stop=!0,e}parseMember(e,r,i,s,n){let a=this.startNodeAt(r);return a.object=e,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(w.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(e,r,i,s){let n=this.startNodeAt(r);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(e,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=e;let{maybeAsyncArrow:l,optionalChainMember:c}=i;l&&(this.expressionScope.enter(PP()),a=new as),c&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(e.type!=="Super",o,a);let u=this.finishCallExpression(o,c);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),u)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=n,u}toReferencedArguments(e,r){this.toReferencedListDeep(e.arguments,r)}parseTaggedTemplateExpression(e,r,i){let s=this.startNodeAt(r);return s.tag=e,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(w.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(w.ImportCallArity,e);else for(let i of e.arguments)i.type==="SpreadElement"&&this.raise(w.ImportCallSpreadArgument,i);return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,i){let s=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,i,e))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(e,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&pn(e,r.innerComments),r.callee.trailingComments&&pn(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){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(w.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!0,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(w.UnsupportedBind,n)}case 139:return this.raise(w.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);this.unexpected();break}case 47:{let n=this.input.codePointAt(this.nextTokenStart());Ur(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:{if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!1,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0)}if(He(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(He(l))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Rt(this.state.endLoc,-1),this.parseTopicReference(i);this.unexpected()}parseTopicReference(e){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,e,s)}finishTopicReference(e,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s))return i==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(w.PipeTopicUnconfiguredToken,r,{token:si(s)})}testTopicReferenceConfiguration(e,r,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:si(i)}]);case"smart":return i===27;default:throw this.raise(w.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Na(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(w.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)?this.raise(w.SuperNotAllowed,e):!this.scope.allowSuper&&!(this.optionFlags&16)&&this.raise(w.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(w.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(Rt(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(r,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,i){e.meta=r;let s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||s)&&this.raise(w.UnsupportedMetaProperty,e.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=r?"source":"defer",this.parseImportCall(e)}else{let r=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(w.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,r,"meta")}}parseLiteralAtNode(e,r,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=e,this.next(),this.finishNode(i,r)}parseLiteral(e,r){let i=this.startNode();return this.parseLiteralAtNode(e,r,i)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=e.pattern,r.flags=e.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(EP());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new as,c=!0,u,d;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let v=this.state.startLoc;if(u=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),v)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,l,this.parseParenItem))}let b=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let E=this.startNodeAt(r);return e&&this.shouldParseArrow(o)&&(E=this.parseArrow(E))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(E,o,!1),E):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),u&&this.unexpected(u),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,b)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(e,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(e);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let i=this.parseMetaProperty(e,r,"target");return this.scope.allowNewTarget||this.raise(w.UnexpectedNewTarget,i),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),e.arguments=r}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let r=this.match(83),i=this.parseNoCallExpr();e.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(w.ImportCallNotNewExpression,i)}parseTemplateElement(e){let{start:r,startLoc:i,end:s,value:n}=this.state,a=r+1,o=this.startNodeAt(Rt(i,1));n===null&&(e||this.raise(w.InvalidEscapeSequenceTemplate,Rt(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),c=l?-1:-2,u=s+c;o.value={raw:this.input.slice(a,u).replace(/\r\n?/g,`
10
+ `),cooked:n===null?null:n.slice(1,c)},o.tail=l,this.next();let d=this.finishNode(o,"TemplateElement");return this.resetEndLocation(d,Rt(this.state.lastTokEndLoc,c)),d}parseTemplate(e){let r=this.startNode(),i=this.parseTemplateElement(e),s=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(e));return r.expressions=n,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(l);break}let u;r?u=this.parseBindingProperty():(u=this.parsePropertyDefinition(s),a=this.checkProto(u,i,a,s)),i&&!this.isObjectProperty(u)&&u.type!=="SpreadElement"&&this.raise(w.InvalidRecordProperty,u),u.shorthand&&this.addExtra(u,"shorthand",!0),l.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return r?c="ObjectPattern":i&&(c="RecordExpression"),this.finishNode(l,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(w.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc;if(this.parsePropertyName(i,e),!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let{key:c}=i,u=c.name;u==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(i)),(u==="get"||u==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(c),i.kind=u,this.match(55)&&(o=!0,this.raise(w.AccessorIsGenerator,this.state.curPosition(),{kind:u}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,s,!1,n,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var r;let i=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==i&&this.raise(e.kind==="get"?w.BadGetterArity:w.BadSetterArity,e),e.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(w.BadSetterRestParameter,e)}parseObjectMethod(e,r,i,s,n){if(n){let a=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,i,s){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(w.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,r,i,s,n,a,o){let l=this.parseObjectMethod(e,i,s,n,a)||this.parseObjectProperty(e,r,n,o);return l||this.unexpected(),l}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if(yr(i))n=this.parseIdentifier(!0);else switch(i){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(w.UnexpectedPrivateField,a),n=this.parsePrivateName();break}default:if(i===137){n=this.parseDecimalLiteral(s);break}this.unexpected()}e.key=n,i!==139&&(e.computed=!1)}}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,i,s,n,a,o=!1){this.initFunction(e,i),e.generator=r,this.scope.enter(530|(o?576:0)|(n?32:0)),this.prodParam.enter(Na(i,e.generator)),this.parseFunctionParams(e,s);let l=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!i,s,a),this.state.inFSharpPipelineDirectBody=n,this.finishNode(a,i?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,i,s){this.scope.enter(518);let n=Na(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,i){this.toAssignableList(r,i,!1),e.params=r}parseFunctionBodyAndFinish(e,r,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,r)}parseFunctionBody(e,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(Zd()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(e.params);o&&l&&this.raise(w.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let c=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!i&&!l,r,c),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,c)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,i=e.length;r<i;r++)if(!this.isSimpleParameter(e[r]))return!1;return!0}checkParams(e,r,i,s=!0){let n=!r&&new Set,a={type:"FormalParameters"};for(let o of e.params)this.checkLVal(o,a,5,n,s)}parseExprList(e,r,i,s){let n=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(e,r,i))}return n}parseExprListItem(e,r,i,s){let n;if(this.match(12))r||this.raise(w.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(w.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),n=this.finishNode(a,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(e,i,this.parseParenItem);return n}parseIdentifier(e){let r=this.startNode(),i=this.parseIdentifierName(e);return this.createIdentifier(r,i)}createIdentifier(e,r){return e.name=r,e.loc.identifierName=r,this.finishNode(e,"Identifier")}createIdentifierAt(e,r,i){return e.name=r,e.loc.identifierName=r,this.finishNodeAt(e,"Identifier",i)}parseIdentifierName(e){let r,{startLoc:i,type:s}=this.state;yr(s)?r=this.state.value:this.unexpected();let n=qE(s);return e?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(e,r,i,s){if(e.length>10||!nP(e))return;if(i&&rP(e)){this.raise(w.UnexpectedKeyword,r,{keyword:e});return}if((this.state.strict?s?Xd:zd:Yd)(e,this.inModule)){this.raise(w.UnexpectedReservedWord,r,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(w.YieldBindingIdentifier,r);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(w.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(w.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(w.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(w.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(w.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||La(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let r=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(w.YieldInParameter,r);let i=!1,s=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:s=this.parseMaybeAssign()}return r.delegate=i,r.argument=s,this.finishNode(r,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(w.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(w.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(e,r){if(this.isSimpleReference(e)){let i=this.startNodeAt(r);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=e,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(w.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipelineTopicUnused,e)}withTopicBindingContext(e){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}else return e()}withSoloAwaitPermittingContext(e){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=r}}allowInAnd(e){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return e()}finally{this.prodParam.exit()}}return e()}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(e){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let r=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,r,i){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(e===3?93:e===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(e){}},Rl={kind:1},MP={kind:2},FP=/[\uD800-\uDFFF]/u,ql=/in(?:stanceof)?/y;function BP(t,e,r){for(let i=0;i<t.length;i++){let s=t[i],{type:n}=s;if(typeof n=="number"){{if(n===139){let{loc:a,start:o,value:l,end:c}=s,u=o+1,d=Rt(a.start,1);t.splice(i,1,new Cr({type:qr(27),value:"#",start:o,end:u,startLoc:a.start,endLoc:d}),new Cr({type:qr(132),value:l,start:u,end:c,startLoc:d,endLoc:a.end})),i++;continue}if(La(n)){let{loc:a,start:o,value:l,end:c}=s,u=o+1,d=Rt(a.start,1),b;e.charCodeAt(o-r)===96?b=new Cr({type:qr(22),value:"`",start:o,end:u,startLoc:a.start,endLoc:d}):b=new Cr({type:qr(8),value:"}",start:o,end:u,startLoc:a.start,endLoc:d});let E,v,A,I;n===24?(v=c-1,A=Rt(a.end,-1),E=l===null?null:l.slice(1,-1),I=new Cr({type:qr(22),value:"`",start:v,end:c,startLoc:A,endLoc:a.end})):(v=c-2,A=Rt(a.end,-2),E=l===null?null:l.slice(1,-2),I=new Cr({type:qr(23),value:"${",start:v,end:c,startLoc:A,endLoc:a.end})),t.splice(i,1,b,new Cr({type:qr(20),value:E,start:u,end:v,startLoc:d,endLoc:A}),I),i+=2;continue}}s.type=qr(n)}}return t}var ac=class extends nc{parseTopLevel(e,r){return e.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),e.comments=this.comments,this.optionFlags&256&&(e.tokens=BP(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,r,i){if(e.sourceType=i,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(w.ModuleExportUndefined,a,{localName:n});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(e,"Program"):s=this.finishNodeAt(e,"Program",Rt(this.state.startLoc,-1)),s}stmtToDirective(e){let r=this.castNodeTo(e,"Directive"),i=this.castNodeTo(e.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 e.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let i=this.lookaheadCharCodeSince(e+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,e)||this.isUnparsedContextual(e,"void"))}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))return!0}return!1}chStartsBindingIdentifier(e,r){if(Ur(e)){if(ql.lastIndex=r,ql.test(this.input)){let i=this.codePointAtPos(ql.lastIndex);if(!ss(i)&&i!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return r===123||this.chStartsBindingIdentifier(r,e)}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(e=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let i=this.state.type,s=this.startNode(),n=!!(e&2),a=!!(e&4),o=e&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?w.StrictFunction:this.options.annexB?w.SloppyFunctionAnnexB:w.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,s):this.raise(w.UnexpectedLexicalDeclaration,s):this.raise(w.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(w.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(w.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let u=this.nextTokenStart(),d=this.codePointAtPos(u);if(d!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,u)&&d!==123))break}case 75:n||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let u=this.state.value;return this.parseVarStatement(s,u)}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 u=this.lookaheadCharCode();if(u===40||u===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(w.UnexpectedImportExport,this.state.startLoc),this.next();let u;return i===83?u=this.parseImport(s):u=this.parseExport(s,r),this.assertModuleNodeAllowed(u),u}default:if(this.isAsyncFunction())return n||this.raise(w.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let l=this.state.value,c=this.parseExpression();return He(i)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,c,e):this.parseExpressionStatement(s,c,r)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(w.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,r,i){if(e){var s;(s=r.decorators)!=null&&s.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(w.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),i&&this.resetStartLocationFromNode(i,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(w.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(w.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=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;e.expression=this.parseMaybeDecoratorArguments(i,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==i&&this.raise(w.DecoratorArgumentsOutsideParentheses,n)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i,r)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(r||s.kind===1)||e.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(w.IllegalBreakContinue,e,{type:s})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Rl),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Rl);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(e,null);let i=this.isContextual(100);{let l=this.isAwaitUsing(),c=l||this.isForUsing(),u=i&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||u){let d=this.startNode(),b;l?(b="await using",this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):b=this.state.value,this.next(),this.parseVar(d,!0,b);let E=this.finishNode(d,"VariableDeclaration"),v=this.match(58);return v&&c&&this.raise(w.ForInUsing,E),(v||this.isContextual(102))&&E.declarations.length===1?this.parseForIn(e,E,r):(r!==null&&this.unexpected(r),this.parseFor(e,E))}}let s=this.isContextual(95),n=new as,a=this.parseExpression(!0,n),o=this.isContextual(102);if(o&&(i&&this.raise(w.ForOfLet,a),r===null&&s&&a.type==="Identifier"&&this.raise(w.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:l}),this.parseForIn(e,a,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(e,a)}parseFunctionStatement(e,r,i){return this.next(),this.parseFunction(e,1|(i?2:0)|(r?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(w.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];this.expect(5),this.state.labels.push(MP),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(w.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(w.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(w.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,i=!1){return this.next(),this.parseVar(e,!1,r,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Rl),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(w.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,r,i,s){for(let a of this.state.labels)a.name===r&&this.raise(w.LabelRedeclaration,i,{labelName:r});let n=KE(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===e.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)}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,i){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,i){let s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,i,s,n){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,s,n)}parseBlockOrModuleBlockBody(e,r,i,s,n){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let c=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(c)){let u=this.stmtToDirective(c);r.push(u),!o&&u.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}e.push(c)}n?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,r){return e.init=r,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):e.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(w.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(w.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),e.left=r,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,r,i,s=!1){let n=e.declarations=[];for(e.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(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(w.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),a=!!(r&8);this.initFunction(e,a),this.match(55)&&(i&&this.raise(w.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Na(a,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||He(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(SP()),e.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},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(w.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(w.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),s.length)throw this.raise(w.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(e,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(5)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,i,s)}parseClassMemberWithIsStatic(e,r,i,s){let n=r,a=r,o=r,l=r,c=r,u=n,d=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){u.kind="method";let _=this.match(139);if(this.parseClassElementName(u),this.parsePostMemberNameModifiers(u),_){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(w.ConstructorIsGenerator,n.key),this.pushClassMethod(e,n,!0,!1,!1,!1);return}let b=!this.state.containsEsc&&He(this.state.type),E=this.parseClassElementName(r),v=b?E.name:null,A=this.isPrivateName(E),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(u.kind="method",A){this.pushClassPrivateMethod(e,a,!1,!1);return}let _=this.isNonstaticConstructor(n),$=!1;_&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(w.DuplicateConstructor,E),_&&this.hasPlugin("typescript")&&r.override&&this.raise(w.OverrideOnConstructor,E),i.hadConstructor=!0,$=i.hadSuperClass),this.pushClassMethod(e,n,!1,!1,_,$)}else if(this.isClassProperty())A?this.pushClassPrivateProperty(e,l):this.pushClassProperty(e,o);else if(v==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(E);let _=this.eat(55);d.optional&&this.unexpected(I),u.kind="method";let $=this.match(139);this.parseClassElementName(u),this.parsePostMemberNameModifiers(d),$?this.pushClassPrivateMethod(e,a,_,!0):(this.isNonstaticConstructor(n)&&this.raise(w.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,_,!0,!1,!1))}else if((v==="get"||v==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(E),u.kind=v;let _=this.match(139);this.parseClassElementName(n),_?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(w.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(v==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(E);let _=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,_)}else this.isLineTerminator()?A?this.pushClassPrivateProperty(e,l):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:r,value:i}=this.state;if((r===132||r===134)&&e.static&&i==="prototype"&&this.raise(w.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(w.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,r){var i;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(w.DecoratorStaticBlock,r)}pushClassProperty(e,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(w.ConstructorClassField,r.key),e.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(e,r){let i=this.parseClassPrivateProperty(r);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(e,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(w.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);e.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,r,i,s,n,a){e.body.push(this.parseMethod(r,i,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(e,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);e.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(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(Zd()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,r,i,s=8331){if(He(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,s);else if(i||!r)e.id=null;else throw this.raise(w.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,r){let i=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,i),n=!s||this.eat(12),a=n&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),l=n&&(!o||this.eat(12)),c=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(w.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let u=this.maybeParseExportNamedSpecifiers(e);s&&n&&!a&&!u&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let d;if(c||u){if(d=!1,r)throw this.raise(w.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else d=this.maybeParseExportDeclaration(e);if(c||u||d){var b;let E=e;if(this.checkExport(E,!0,!1,!!E.source),((b=E.declaration)==null?void 0:b.type)==="ClassDeclaration")this.maybeTakeDecorators(r,E.declaration,E);else if(r)throw this.raise(w.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(E,"ExportNamedDeclaration")}if(this.eat(65)){let E=e,v=this.parseExportDefaultExpression();if(E.declaration=v,v.type==="ClassDeclaration")this.maybeTakeDecorators(r,v,E);else if(r)throw this.raise(w.UnsupportedDecoratorExport,e);return this.checkExport(E,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(E,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var r,i;(i=(r=e).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let r=e;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(w.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(He(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),n=this.input.charCodeAt(s);if(n===123||this.chStartsBindingIdentifier(n,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||He(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(e,r){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,r,i,s){if(r){var n;if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=e.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(w.ExportDefaultFromAsIdentifier,o)}}else if((n=e.specifiers)!=null&&n.length)for(let o of e.specifiers){let{exported:l}=o,c=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,c),!s&&o.local){let{local:u}=o;u.type!=="Identifier"?this.raise(w.ExportBindingIsString,o,{localName:u.value,exportName:c}):(this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u))}}else if(e.declaration){let o=e.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(e,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(w.DuplicateDefaultExport,e):this.raise(w.DuplicateExport,e,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(e){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,n,e,s))}return r}parseExportSpecifier(e,r,i,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():r?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),r=FP.exec(e.value);return r&&this.raise(w.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(e){let{specifiers:r}=e,i=r.length===1?r[0].type:null;if(e.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(w.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(e.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(w.DeferImportRequiresNamespace,r[0].loc.start);else if(e.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(w.ImportReflectionNotBinding,r[0].loc.start),((s=e.assertions)==null?void 0:s.length)>0&&this.raise(w.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:r}=e;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(w.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let i=this.startNode(),s=this.parseIdentifierName(!0),{type:n}=this.state;return(yr(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(e,r,s,i.loc.start),null):(this.applyImportPhase(e,r,null),this.createIdentifier(i,s))}isPrecedingIdImportPhase(e){let{type:r}=this.state;return He(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(e);return s&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var r;return(r=e.specifiers)!=null||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,r,i){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(e,r,i=8201){return this.checkLVal(e.local,{type:r},i),this.finishNode(e,r)}parseImportAttributes(){this.expect(5);let e=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(w.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(w.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(w.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let r;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(w.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!i&&this.hasPlugin("importAssertions")?e.assertions=r:e.attributes=r}maybeParseDefaultImportSpecifier(e,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(yr(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(w.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,e.importKind==="type"||e.importKind==="typeof",n,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,r,i,s,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:a}=e;if(r)throw this.raise(w.ImportBindingIsString,e,{importName:a.value});this.checkReservedWord(a.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},Fa=class extends ac{constructor(e,r,i){e=ME(e),super(e,r),this.options=e,this.initializeScopes(),this.plugins=i,this.filename=e.sourceFilename,this.startIndex=e.startIndex;let s=0;e.allowAwaitOutsideFunction&&(s|=1),e.allowReturnOutsideFunction&&(s|=2),e.allowImportExportEverywhere&&(s|=8),e.allowSuperOutsideMethod&&(s|=16),e.allowUndeclaredExports&&(s|=64),e.allowNewTargetOutsideFunction&&(s|=4),e.allowYieldOutsideFunction&&(s|=32),e.ranges&&(s|=128),e.tokens&&(s|=256),e.createImportExpressions&&(s|=512),e.createParenthesizedExpressions&&(s|=1024),e.errorRecovery&&(s|=2048),e.attachComment&&(s|=4096),e.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return un}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,r),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};function jP(t,e){var r;if(((r=e)==null?void 0:r.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let i=on(e,t),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return e.sourceType="script",on(e,t).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return e.sourceType="script",on(e,t).parse()}catch{}throw i}}else return on(e,t).parse()}function RP(t,e){let r=on(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function qP(t){let e={};for(let r of Object.keys(t))e[r]=qr(t[r]);return e}var $P=qP(RE);function on(t,e){let r=Fa,i=new Map;if(t!=null&&t.plugins){for(let s of t.plugins){let n,a;typeof s=="string"?n=s:[n,a]=s,i.has(n)||i.set(n,a||{})}DP(i),r=UP(i)}return new r(t,e,i)}var Ud=new Map;function UP(t){let e=[];for(let s of LP)t.has(s)&&e.push(s);let r=e.join("|"),i=Ud.get(r);if(!i){i=Fa;for(let s of e)i=im[s](i);Ud.set(r,i)}return i}fn.parse=jP;fn.parseExpression=RP;fn.tokTypes=$P});var yc=k(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.Var=Be.User=Be.Statement=Be.SpreadProperty=Be.Scope=Be.RestProperty=Be.ReferencedMemberExpression=Be.ReferencedIdentifier=Be.Referenced=Be.Pure=Be.NumericLiteralTypeAnnotation=Be.Generated=Be.ForAwaitStatement=Be.Flow=Be.Expression=Be.ExistentialTypeParam=Be.BlockScoped=Be.BindingIdentifier=void 0;var zG=Be.ReferencedIdentifier=["Identifier","JSXIdentifier"],JG=Be.ReferencedMemberExpression=["MemberExpression"],XG=Be.BindingIdentifier=["Identifier"],HG=Be.Statement=["Statement"],GG=Be.Expression=["Expression"],QG=Be.Scope=["Scopable","Pattern"],ZG=Be.Referenced=null,eQ=Be.BlockScoped=null,tQ=Be.Var=["VariableDeclaration"],rQ=Be.User=null,iQ=Be.Generated=null,sQ=Be.Pure=null,nQ=Be.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],aQ=Be.RestProperty=["RestElement"],oQ=Be.SpreadProperty=["RestElement"],lQ=Be.ExistentialTypeParam=["ExistsTypeAnnotation"],cQ=Be.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],uQ=Be.ForAwaitStatement=["ForOfStatement"]});var nm=k((fQ,sm)=>{var us=1e3,ps=us*60,fs=ps*60,Ii=fs*24,KP=Ii*7,WP=Ii*365.25;sm.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return VP(t);if(r==="number"&&isFinite(t))return e.long?zP(t):YP(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function VP(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*WP;case"weeks":case"week":case"w":return r*KP;case"days":case"day":case"d":return r*Ii;case"hours":case"hour":case"hrs":case"hr":case"h":return r*fs;case"minutes":case"minute":case"mins":case"min":case"m":return r*ps;case"seconds":case"second":case"secs":case"sec":case"s":return r*us;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function YP(t){var e=Math.abs(t);return e>=Ii?Math.round(t/Ii)+"d":e>=fs?Math.round(t/fs)+"h":e>=ps?Math.round(t/ps)+"m":e>=us?Math.round(t/us)+"s":t+"ms"}function zP(t){var e=Math.abs(t);return e>=Ii?ja(t,e,Ii,"day"):e>=fs?ja(t,e,fs,"hour"):e>=ps?ja(t,e,ps,"minute"):e>=us?ja(t,e,us,"second"):t+" ms"}function ja(t,e,r,i){var s=e>=r*1.5;return Math.round(t/r)+" "+i+(s?"s":"")}});var Tc=k((hQ,am)=>{function JP(t){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=nm(),r.destroy=c,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let d=0;for(let b=0;b<u.length;b++)d=(d<<5)-d+u.charCodeAt(b),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=e;function r(u){let d,b=null,E,v;function A(...I){if(!A.enabled)return;let _=A,$=Number(new Date),X=$-(d||$);_.diff=X,_.prev=d,_.curr=$,d=$,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let N=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(W,ke)=>{if(W==="%%")return"%";N++;let Ce=r.formatters[ke];if(typeof Ce=="function"){let Ie=I[N];W=Ce.call(_,Ie),I.splice(N,1),N--}return W}),r.formatArgs.call(_,I),(_.log||r.log).apply(_,I)}return A.namespace=u,A.useColors=r.useColors(),A.color=r.selectColor(u),A.extend=i,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:()=>b!==null?b:(E!==r.namespaces&&(E=r.namespaces,v=r.enabled(u)),v),set:I=>{b=I}}),typeof r.init=="function"&&r.init(A),A}function i(u,d){let b=r(this.namespace+(typeof d>"u"?":":d)+u);return b.log=this.log,b}function s(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let b of d)b[0]==="-"?r.skips.push(b.slice(1)):r.names.push(b)}function n(u,d){let b=0,E=0,v=-1,A=0;for(;b<u.length;)if(E<d.length&&(d[E]===u[b]||d[E]==="*"))d[E]==="*"?(v=E,A=b,E++):(b++,E++);else if(v!==-1)E=v+1,A++,b=A;else return!1;for(;E<d.length&&d[E]==="*";)E++;return E===d.length}function a(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function o(u){for(let d of r.skips)if(n(u,d))return!1;for(let d of r.names)if(n(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}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}am.exports=JP});var om=k((zt,Ra)=>{zt.formatArgs=HP;zt.save=GP;zt.load=QP;zt.useColors=XP;zt.storage=ZP();zt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();zt.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 XP(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function HP(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ra.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),t.splice(i,0,e)}zt.log=console.debug||console.log||(()=>{});function GP(t){try{t?zt.storage.setItem("debug",t):zt.storage.removeItem("debug")}catch{}}function QP(){let t;try{t=zt.storage.getItem("debug")||zt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function ZP(){try{return localStorage}catch{}}Ra.exports=Tc()(zt);var{formatters:e1}=Ra.exports;e1.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var cm=k((wt,$a)=>{var t1=require("tty"),qa=require("util");wt.init=l1;wt.log=n1;wt.formatArgs=i1;wt.save=a1;wt.load=o1;wt.useColors=r1;wt.destroy=qa.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");wt.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(wt.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{}wt.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});function r1(){return"colors"in wt.inspectOpts?!!wt.inspectOpts.colors:t1.isatty(process.stderr.fd)}function i1(t){let{namespace:e,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${s};1m${e} \x1B[0m`;t[0]=n+t[0].split(`
11
11
  `).join(`
12
12
  `+n),t.push(s+"m+"+$a.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=s1()+e+" "+t[0]}function s1(){return wt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function n1(...t){return process.stderr.write(qa.formatWithOptions(wt.inspectOpts,...t)+`
13
13
  `)}function a1(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function o1(){return process.env.DEBUG}function l1(t){t.inspectOpts={};let e=Object.keys(wt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=wt.inspectOpts[e[r]]}$a.exports=Tc()(wt);var{formatters:lm}=$a.exports;lm.o=function(t){return this.inspectOpts.colors=this.useColors,qa.inspect(t,this.inspectOpts).split(`
@@ -19,13 +19,13 @@ ${n}`)}function p1(t,e){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Er
19
19
  ${a.join(`
20
20
  `)}`)}return r.shapeOf=t,r}function Vk(){function t(e){var r;let i=e;for(;e;){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 ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return t}function Mm(...t){function e(...r){for(let i of t)i(...r)}if(e.chainOf=t,t.length>=2&&"type"in t[0]&&t[0].type==="array"&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return e}var Yk=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),zk=new Set(["default","optional","deprecated","validate"]),jc={};function Jk(...t){return(e,r={})=>{let i=r.aliases;if(!i){var s;r.inherits&&(i=(s=jc[r.inherits].aliases)==null?void 0:s.slice()),i??(i=[]),r.aliases=i}let n=t.filter(a=>!i.includes(a));i.unshift(...n),Fm(e,r)}}function Fm(t,e={}){let r=e.inherits&&jc[e.inherits]||{},i=e.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let c=r.fields[l],u=c.default;if(Array.isArray(u)?u.length>0:u&&typeof u=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[l]={default:Array.isArray(u)?[]:u,optional:c.optional,deprecated:c.deprecated,validate:c.validate}}}let s=e.visitor||r.visitor||[],n=e.aliases||r.aliases||[],a=e.builder||r.builder||e.visitor||[];for(let o of Object.keys(e))if(!Yk.has(o))throw new Error(`Unknown type option "${o}" on ${t}`);e.deprecatedAlias&&(Mk[e.deprecatedAlias]=t);for(let o of s.concat(a))i[o]=i[o]||{};for(let o of Object.keys(i)){let l=i[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=qc(Ya(l.default)));for(let c of Object.keys(l))if(!zk.has(c))throw new Error(`Unknown field key "${c}" on ${t}.${o}`)}_k[t]=e.visitor=s,Lk[t]=e.builder=a,Dk[t]=e.fields=i,Nk[t]=e.aliases=n,n.forEach(o=>{Bc[o]=Bc[o]||[],Bc[o].push(t)}),e.validate&&(Fk[t]=e.validate),jc[t]=e}});var xn=k(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.patternLikeCommon=Lt.importAttributes=Lt.functionTypeAnnotationCommon=Lt.functionDeclarationCommon=Lt.functionCommon=Lt.classMethodOrPropertyCommon=Lt.classMethodOrDeclareMethodCommon=void 0;var qt=ds(),Xk=ms(),Bm=yn(),Hk=km(),Ts=ys(),S=_r(),re=(0,S.defineAliasedType)("Standardized");re("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"]});re("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){let t=(0,S.assertOneOf)(...Ts.ASSIGNMENT_OPERATORS),e=(0,S.assertOneOf)("=");return function(r,i,s){((0,qt.default)("Pattern",r.left)?e:t)(r,i,s)}}(),{oneOf:Ts.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")},right:{validate:(0,S.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});re("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,S.assertOneOf)(...Ts.BINARY_OPERATORS)},left:{validate:function(){let t=(0,S.assertNodeType)("Expression"),e=(0,S.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,n){(i.operator==="in"?e:t)(i,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,S.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});re("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});re("Directive",{visitor:["value"],fields:{value:{validate:(0,S.assertNodeType)("DirectiveLiteral")}}});re("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});re("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"]});re("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});re("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,S.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,S.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});re("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});re("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"]});re("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});re("DebuggerStatement",{aliases:["Statement"]});re("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"]});re("EmptyStatement",{aliases:["Statement"]});re("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});re("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,S.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertEach)((0,S.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,S.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});re("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")}}});re("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,S.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},update:{validate:(0,S.assertNodeType)("Expression"),optional:!0},body:{validate:(0,S.assertNodeType)("Statement")}}});var gs=()=>({params:(0,S.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});Lt.functionCommon=gs;var _i=()=>({returnType:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});Lt.functionTypeAnnotationCommon=_i;var jm=()=>Object.assign({},gs(),{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}});Lt.functionDeclarationCommon=jm;re("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},jm(),_i(),{body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let t=(0,S.assertNodeType)("Identifier");return function(e,r,i){(0,qt.default)("ExportDefaultDeclaration",e)||t(i,"id",i.id)}}():void 0});re("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},gs(),_i(),{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var xs=()=>({typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}});Lt.patternLikeCommon=xs;re("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},xs(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("string"),Object.assign(function(t,e,r){if(!(0,Xk.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,S.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(t,e,r){let i=/\.(\w+)$/.exec(e.toString());if(!i)return;let[,s]=i,n={computed:!1};if(s==="property"){if((0,qt.default)("MemberExpression",t,n)||(0,qt.default)("OptionalMemberExpression",t,n))return}else if(s==="key"){if((0,qt.default)("Property",t,n)||(0,qt.default)("Method",t,n))return}else if(s==="exported"){if((0,qt.default)("ExportSpecifier",t))return}else if(s==="imported"){if((0,qt.default)("ImportSpecifier",t,{imported:r}))return}else if(s==="meta"&&(0,qt.default)("MetaProperty",t,{meta:r}))return;if(((0,Bm.isKeyword)(r.name)||(0,Bm.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});re("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},consequent:{validate:(0,S.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,S.assertNodeType)("Statement")}}});re("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,S.assertNodeType)("Identifier")},body:{validate:(0,S.assertNodeType)("Statement")}}});re("StringLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});re("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,S.chain)((0,S.assertValueType)("number"),Object.assign(function(t,e,r){if(1/r<0||!Number.isFinite(r)){let i=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});re("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});re("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});re("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(t,e,r){let i=/[^gimsuy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,S.assertValueType)("string"),default:""}}});re("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,S.assertOneOf)(...Ts.LOGICAL_OPERATORS)},left:{validate:(0,S.assertNodeType)("Expression")},right:{validate:(0,S.assertNodeType)("Expression")}}});re("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],fields:Object.assign({object:{validate:(0,S.assertNodeType)("Expression","Super")},property:{validate:function(){let t=(0,S.assertNodeType)("Identifier","PrivateName"),e=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?e:t)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertValueType)("boolean"),optional:!0}})});re("NewExpression",{inherits:"CallExpression"});re("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,S.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,S.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,S.arrayOfType)("Directive"),default:[]},body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});re("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,S.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});re("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},gs(),_i(),{kind:Object.assign({validate:(0,S.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let t=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),e=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?e:t)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});re("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let t=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),e=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?e:t)(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(t,e,r){if(r){if(t.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,qt.default)("Identifier",t.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,S.assertValueType)("boolean"),default:!1},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let t=(0,S.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),e=(0,S.assertNodeType)("Expression");return function(r,i,s){((0,qt.default)("ObjectPattern",r)?t:e)(s,"value",s.value)}}():void 0});re("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},xs(),{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(t,e){let r=/(\w+)\[(\d+)\]/.exec(e.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(t[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}:void 0});re("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression"),optional:!0}}});re("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,S.validateArrayOfType)("Expression")},aliases:["Expression"]});re("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}}});re("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},consequent:(0,S.validateArrayOfType)("Statement")}});re("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,S.assertNodeType)("Expression")},cases:(0,S.validateArrayOfType)("SwitchCase")}});re("ThisExpression",{aliases:["Expression"]});re("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});re("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(t){if(!t.handler&&!t.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,S.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,S.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,S.assertNodeType)("BlockStatement")}}});re("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...Ts.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});re("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","MemberExpression"):(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...Ts.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});re("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},kind:{validate:(0,S.assertOneOf)("var","let","const","using","await using")},declarations:(0,S.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let t=(0,S.assertNodeType)("Identifier","Placeholder"),e=(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,qt.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?t(c,"id",c.id):e(c,"id",c.id):r(c,"id",c.id)}})():void 0});re("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,S.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,S.assertValueType)("boolean")},init:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});re("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});re("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});re("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},xs(),{left:{validate:(0,S.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,S.assertNodeType)("Expression")},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}})});re("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},xs(),{elements:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeOrValueType)("null","PatternLike")))}})});re("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},gs(),_i(),{expression:{validate:(0,S.assertValueType)("boolean")},body:{validate:(0,S.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});re("ClassBody",{visitor:["body"],fields:{body:(0,S.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});re("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0}}});re("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){let t=(0,S.assertNodeType)("Identifier");return function(e,r,i){(0,qt.default)("ExportDefaultDeclaration",e)||t(i,"id",i.id)}}():void 0});var $c=Lt.importAttributes={attributes:{optional:!0,validate:(0,S.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,S.arrayOfType)("ImportAttribute")}};re("ExportAllDeclaration",{builder:["source"],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"))},$c)});re("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"))}});re("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("Declaration"),Object.assign(function(t,e,r){if(r&&t.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&t.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,S.assertNodeType)("Declaration")}},$c,{specifiers:{default:[],validate:(0,S.arrayOf)(function(){let t=(0,S.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),e=(0,S.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,i,s){(r.source?t:e)(r,i,s)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):t}())},source:{validate:(0,S.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("type","value"))})});re("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},exported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,S.assertOneOf)("type","value"),optional:!0}}});re("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 t=(0,S.assertNodeType)("VariableDeclaration"),e=(0,S.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,i,s){(0,qt.default)("VariableDeclaration",s)?t(r,i,s):e(r,i,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")},await:{default:!1}}});re("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},$c,{module:{optional:!0,validate:(0,S.assertValueType)("boolean")},phase:{default:null,validate:(0,S.assertOneOf)("source","defer")},specifiers:(0,S.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,S.assertNodeType)("StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}})});re("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});re("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});re("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},imported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}}});re("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,S.assertOneOf)("source","defer")},source:{validate:(0,S.assertNodeType)("Expression")},options:{validate:(0,S.assertNodeType)("Expression"),optional:!0}}});re("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(t,e,r){let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,qt.default)("Identifier",t.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,S.assertNodeType)("Identifier")},property:{validate:(0,S.assertNodeType)("Identifier")}}});var Xa=()=>({abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,S.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},key:{validate:(0,S.chain)(function(){let t=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),e=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?e:t)(r,i,s)}}(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});Lt.classMethodOrPropertyCommon=Xa;var Uc=()=>Object.assign({},gs(),Xa(),{params:(0,S.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,S.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,S.chain)((0,S.assertValueType)("string"),(0,S.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}});Lt.classMethodOrDeclareMethodCommon=Uc;re("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},Uc(),_i(),{body:{validate:(0,S.assertNodeType)("BlockStatement")}})});re("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},xs(),{properties:(0,S.validateArrayOfType)("RestElement","ObjectProperty")})});re("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});re("Super",{aliases:["Expression"]});re("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,S.assertNodeType)("Expression")},quasi:{validate:(0,S.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});re("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,S.chain)((0,S.assertShape)({raw:{validate:(0,S.assertValueType)("string")},cooked:{validate:(0,S.assertValueType)("string"),optional:!0}}),function(e){let r=e.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,Hk.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!i)throw new Error("Invalid raw");e.value.cooked=a?null:n})},tail:{default:!1}}});re("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(t,e,r){if(t.quasis.length!==r.length+1)throw new TypeError(`Number of ${t.type} quasis should be exactly one more than the number of expressions.
21
21
  Expected ${r.length+1} quasis but got ${t.quasis.length}`)})}}});re("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(t,e,r){if(r&&!t.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,S.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});re("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});re("Import",{aliases:["Expression"]});re("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});re("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,S.assertNodeType)("Identifier")}}});re("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},property:{validate:function(){let t=(0,S.assertNodeType)("Identifier"),e=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?e:t)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")}}});re("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,S.assertNodeType)("Expression")},arguments:(0,S.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")},typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});re("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Xa(),{value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})});re("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Xa(),{key:{validate:(0,S.chain)(function(){let t=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),e=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?e:t)(r,i,s)}}(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})});re("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,S.assertNodeType)("PrivateName")},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,S.assertValueType)("boolean"),default:!1},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}}});re("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Uc(),_i(),{kind:{validate:(0,S.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,S.assertNodeType)("PrivateName")},body:{validate:(0,S.assertNodeType)("BlockStatement")}})});re("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,S.assertNodeType)("Identifier")}}});re("StaticBlock",{visitor:["body"],fields:{body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});re("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,S.assertNodeType)("StringLiteral")}}})});var qm=k(()=>{"use strict";var Rm=xn(),L=_r(),me=(0,L.defineAliasedType)("Flow"),Kc=t=>{let e=t==="DeclareClass";me(t,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...e?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),extends:(0,L.validateOptional)((0,L.arrayOfType)("InterfaceExtends"))},e?{mixins:(0,L.validateOptional)((0,L.arrayOfType)("InterfaceExtends")),implements:(0,L.validateOptional)((0,L.arrayOfType)("ClassImplements"))}:{},{body:(0,L.validateType)("ObjectTypeAnnotation")})})};me("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,L.validateType)("FlowType")}});me("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,L.validate)((0,L.assertValueType)("boolean"))}});me("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterInstantiation")}});Kc("DeclareClass");me("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),predicate:(0,L.validateOptionalType)("DeclaredPredicate")}});Kc("DeclareInterface");me("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier","StringLiteral"),body:(0,L.validateType)("BlockStatement"),kind:(0,L.validateOptional)((0,L.assertOneOf)("CommonJS","ES"))}});me("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,L.validateType)("TypeAnnotation")}});me("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),right:(0,L.validateType)("FlowType")}});me("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,L.validateOptionalType)("FlowType"),impltype:(0,L.validateOptionalType)("FlowType")}});me("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier")}});me("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,L.validateOptionalType)("Flow"),specifiers:(0,L.validateOptional)((0,L.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,L.validateOptionalType)("StringLiteral"),default:(0,L.validateOptional)((0,L.assertValueType)("boolean"))},Rm.importAttributes)});me("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,L.validateType)("StringLiteral"),exportKind:(0,L.validateOptional)((0,L.assertOneOf)("type","value"))},Rm.importAttributes)});me("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,L.validateType)("Flow")}});me("ExistsTypeAnnotation",{aliases:["FlowType"]});me("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),params:(0,L.validateArrayOfType)("FunctionTypeParam"),rest:(0,L.validateOptionalType)("FunctionTypeParam"),this:(0,L.validateOptionalType)("FunctionTypeParam"),returnType:(0,L.validateType)("FlowType")}});me("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,L.validateOptionalType)("Identifier"),typeAnnotation:(0,L.validateType)("FlowType"),optional:(0,L.validateOptional)((0,L.assertValueType)("boolean"))}});me("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,L.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterInstantiation")}});me("InferredPredicate",{aliases:["FlowPredicate"]});me("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,L.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterInstantiation")}});Kc("InterfaceDeclaration");me("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,L.validateOptional)((0,L.arrayOfType)("InterfaceExtends")),body:(0,L.validateType)("ObjectTypeAnnotation")}});me("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,L.validate)((0,L.arrayOfType)("FlowType"))}});me("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,L.validateType)("FlowType")}});me("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,L.validate)((0,L.assertValueType)("number"))}});me("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,L.validate)((0,L.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,L.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,L.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,L.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,L.assertValueType)("boolean"),default:!1},inexact:(0,L.validateOptional)((0,L.assertValueType)("boolean"))}});me("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,L.validateType)("Identifier"),value:(0,L.validateType)("FlowType"),optional:(0,L.validate)((0,L.assertValueType)("boolean")),static:(0,L.validate)((0,L.assertValueType)("boolean")),method:(0,L.validate)((0,L.assertValueType)("boolean"))}});me("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,L.validateType)("FlowType"),static:(0,L.validate)((0,L.assertValueType)("boolean"))}});me("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,L.validateOptionalType)("Identifier"),key:(0,L.validateType)("FlowType"),value:(0,L.validateType)("FlowType"),static:(0,L.validate)((0,L.assertValueType)("boolean")),variance:(0,L.validateOptionalType)("Variance")}});me("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,L.validateType)("Identifier","StringLiteral"),value:(0,L.validateType)("FlowType"),kind:(0,L.validate)((0,L.assertOneOf)("init","get","set")),static:(0,L.validate)((0,L.assertValueType)("boolean")),proto:(0,L.validate)((0,L.assertValueType)("boolean")),optional:(0,L.validate)((0,L.assertValueType)("boolean")),variance:(0,L.validateOptionalType)("Variance"),method:(0,L.validate)((0,L.assertValueType)("boolean"))}});me("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,L.validateType)("FlowType")}});me("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,L.validateOptionalType)("FlowType"),impltype:(0,L.validateType)("FlowType")}});me("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,L.validateType)("Identifier"),qualification:(0,L.validateType)("Identifier","QualifiedTypeIdentifier")}});me("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,L.validate)((0,L.assertValueType)("string"))}});me("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,L.validate)((0,L.arrayOfType)("FlowType"))}});me("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,L.validateType)("FlowType")}});me("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),right:(0,L.validateType)("FlowType")}});me("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,L.validateType)("FlowType")}});me("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,L.validateType)("Expression"),typeAnnotation:(0,L.validateType)("TypeAnnotation")}});me("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,L.validate)((0,L.assertValueType)("string")),bound:(0,L.validateOptionalType)("TypeAnnotation"),default:(0,L.validateOptionalType)("FlowType"),variance:(0,L.validateOptionalType)("Variance")}});me("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,L.validate)((0,L.arrayOfType)("TypeParameter"))}});me("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,L.validate)((0,L.arrayOfType)("FlowType"))}});me("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,L.validate)((0,L.arrayOfType)("FlowType"))}});me("Variance",{builder:["kind"],fields:{kind:(0,L.validate)((0,L.assertOneOf)("minus","plus"))}});me("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});me("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,L.validateType)("Identifier"),body:(0,L.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});me("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,L.validate)((0,L.assertValueType)("boolean")),members:(0,L.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,L.validate)((0,L.assertValueType)("boolean"))}});me("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,L.validate)((0,L.assertValueType)("boolean")),members:(0,L.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,L.validate)((0,L.assertValueType)("boolean"))}});me("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,L.validate)((0,L.assertValueType)("boolean")),members:(0,L.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,L.validate)((0,L.assertValueType)("boolean"))}});me("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,L.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,L.validate)((0,L.assertValueType)("boolean"))}});me("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,L.validateType)("Identifier"),init:(0,L.validateType)("BooleanLiteral")}});me("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,L.validateType)("Identifier"),init:(0,L.validateType)("NumericLiteral")}});me("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,L.validateType)("Identifier"),init:(0,L.validateType)("StringLiteral")}});me("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,L.validateType)("Identifier")}});me("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,L.validateType)("FlowType"),indexType:(0,L.validateType)("FlowType")}});me("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,L.validateType)("FlowType"),indexType:(0,L.validateType)("FlowType"),optional:(0,L.validate)((0,L.assertValueType)("boolean"))}})});var $m=k(()=>{"use strict";var ct=_r(),$t=(0,ct.defineAliasedType)("JSX");$t("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,ct.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,ct.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});$t("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,ct.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});$t("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,ct.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,ct.assertNodeType)("JSXClosingElement")},children:(0,ct.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,ct.assertValueType)("boolean"),optional:!0}})});$t("JSXEmptyExpression",{});$t("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,ct.assertNodeType)("Expression","JSXEmptyExpression")}}});$t("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,ct.assertNodeType)("Expression")}}});$t("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,ct.assertValueType)("string")}}});$t("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,ct.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,ct.assertNodeType)("JSXIdentifier")}}});$t("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,ct.assertNodeType)("JSXIdentifier")},name:{validate:(0,ct.assertNodeType)("JSXIdentifier")}}});$t("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,ct.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,ct.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,ct.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,ct.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});$t("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,ct.assertNodeType)("Expression")}}});$t("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,ct.assertValueType)("string")}}});$t("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,ct.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,ct.assertNodeType)("JSXClosingFragment")},children:(0,ct.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});$t("JSXOpeningFragment",{aliases:["Immutable"]});$t("JSXClosingFragment",{aliases:["Immutable"]})});var Yc=k(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.PLACEHOLDERS_FLIPPED_ALIAS=ni.PLACEHOLDERS_ALIAS=ni.PLACEHOLDERS=void 0;var Gk=_r(),Qk=ni.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Vc=ni.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let t of Qk){let e=Gk.ALIAS_KEYS[t];e!=null&&e.length&&(Vc[t]=e)}var Wc=ni.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(Vc).forEach(t=>{Vc[t].forEach(e=>{hasOwnProperty.call(Wc,e)||(Wc[e]=[]),Wc[e].push(t)})})});var Um=k(()=>{"use strict";var Ha=_r(),Zk=Yc(),eO=xn(),zc=(0,Ha.defineAliasedType)("Miscellaneous");zc("Noop",{visitor:[]});zc("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,Ha.assertNodeType)("Identifier")},expectedNode:{validate:(0,Ha.assertOneOf)(...Zk.PLACEHOLDERS)}},(0,eO.patternLikeCommon)())});zc("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,Ha.assertValueType)("string")}}})});var Km=k(()=>{"use strict";var it=_r();(0,it.default)("ArgumentPlaceholder",{});(0,it.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,it.assertNodeType)("Expression")},callee:{validate:(0,it.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,it.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,it.assertNodeType)("Expression")}}});(0,it.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,it.assertNodeType)("BlockStatement")},async:{validate:(0,it.assertValueType)("boolean"),default:!1}}});(0,it.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,it.assertNodeType)("Identifier")}}});(0,it.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,it.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,it.default)("TupleExpression",{fields:{elements:{validate:(0,it.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,it.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,it.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,it.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,it.assertNodeType)("Program")}},aliases:["Expression"]});(0,it.default)("TopicReference",{aliases:["Expression"]});(0,it.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,it.assertNodeType)("Expression")}},aliases:["Expression"]});(0,it.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,it.assertNodeType)("Expression")}},aliases:["Expression"]});(0,it.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,it.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var Gm=k(()=>{"use strict";var K=_r(),Wm=xn(),tO=ds(),Se=(0,K.defineAliasedType)("TypeScript"),Jt=(0,K.assertValueType)("boolean"),Vm=()=>({returnType:{validate:(0,K.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,K.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});Se("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,K.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,K.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,K.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,K.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,K.arrayOfType)("Decorator"),optional:!0}}});Se("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,Wm.functionDeclarationCommon)(),Vm())});Se("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,Wm.classMethodOrDeclareMethodCommon)(),Vm())});Se("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,K.validateType)("TSEntityName"),right:(0,K.validateType)("Identifier")}});var Ga=()=>({typeParameters:(0,K.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,K.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,K.validateOptionalType)("TSTypeAnnotation")}),Ym={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:Ga()};Se("TSCallSignatureDeclaration",Ym);Se("TSConstructSignatureDeclaration",Ym);var zm=()=>({key:(0,K.validateType)("Expression"),computed:{default:!1},optional:(0,K.validateOptional)(Jt)});Se("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},zm(),{readonly:(0,K.validateOptional)(Jt),typeAnnotation:(0,K.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,K.assertOneOf)("get","set")}})});Se("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},Ga(),zm(),{kind:{validate:(0,K.assertOneOf)("method","get","set")}})});Se("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,K.validateOptional)(Jt),static:(0,K.validateOptional)(Jt),parameters:(0,K.validateArrayOfType)("Identifier"),typeAnnotation:(0,K.validateOptionalType)("TSTypeAnnotation")}});var rO=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let t of rO)Se(t,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Se("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var Jm={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Se("TSFunctionType",Object.assign({},Jm,{fields:Ga()}));Se("TSConstructorType",Object.assign({},Jm,{fields:Object.assign({},Ga(),{abstract:(0,K.validateOptional)(Jt)})}));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)(Jt)}});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:Jt,default:!1},elementType:(0,K.validateType)("TSType")}});var Xm={aliases:["TSType"],visitor:["types"],fields:{types:(0,K.validateArrayOfType)("TSType")}};Se("TSUnionType",Xm);Se("TSIntersectionType",Xm);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")},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)(!0,!1,"+","-")),optional:(0,K.validateOptional)((0,K.assertOneOf)(!0,!1,"+","-")),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(t,e,r){if(t.quasis.length!==r.length+1)throw new TypeError(`Number of ${t.type} quasis should be exactly one more than the number of types.
22
- Expected ${r.length+1} quasis but got ${t.quasis.length}`)})}}});Se("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let t=(0,K.assertNodeType)("NumericLiteral","BigIntLiteral"),e=(0,K.assertOneOf)("-"),r=(0,K.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function i(s,n,a){(0,tO.default)("UnaryExpression",a)?(e(a,"operator",a.operator),t(a,"argument",a.argument)):r(s,n,a)}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)(Jt),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)(Jt),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 Hm={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,K.validateType)("Expression"),typeAnnotation:(0,K.validateType)("TSType")}};Se("TSAsExpression",Hm);Se("TSSatisfiesExpression",Hm);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)(Jt),const:(0,K.validateOptional)(Jt),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)(Jt)},{global:(0,K.validateOptional)(Jt)},{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:{argument:(0,K.validateType)("StringLiteral"),qualifier:(0,K.validateOptionalType)("TSEntityName"),typeParameters:(0,K.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,K.assertNodeType)("ObjectExpression"),optional:!0}}});Se("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,K.validate)(Jt)},{id:(0,K.validateType)("Identifier"),moduleReference:(0,K.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,K.assertOneOf)("type","value"),optional:!0}})});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:!0},out:{validate:(0,K.assertValueType)("boolean"),optional:!0},const:{validate:(0,K.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,K.assertNodeType)("TSType"),optional:!0},default:{validate:(0,K.assertNodeType)("TSType"),optional:!0}}})});var Qm=k(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.DEPRECATED_ALIASES=void 0;var eZ=Qa.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var or=k(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Object.defineProperty(Ut,"ALIAS_KEYS",{enumerable:!0,get:function(){return Xt.ALIAS_KEYS}});Object.defineProperty(Ut,"BUILDER_KEYS",{enumerable:!0,get:function(){return Xt.BUILDER_KEYS}});Object.defineProperty(Ut,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return Jc.DEPRECATED_ALIASES}});Object.defineProperty(Ut,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Xt.DEPRECATED_KEYS}});Object.defineProperty(Ut,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Xt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Ut,"NODE_FIELDS",{enumerable:!0,get:function(){return Xt.NODE_FIELDS}});Object.defineProperty(Ut,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Xt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Ut,"PLACEHOLDERS",{enumerable:!0,get:function(){return Xc.PLACEHOLDERS}});Object.defineProperty(Ut,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Xc.PLACEHOLDERS_ALIAS}});Object.defineProperty(Ut,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Xc.PLACEHOLDERS_FLIPPED_ALIAS}});Ut.TYPES=void 0;Object.defineProperty(Ut,"VISITOR_KEYS",{enumerable:!0,get:function(){return Xt.VISITOR_KEYS}});xn();qm();$m();Um();Km();Gm();var Xt=_r(),Xc=Yc(),Jc=Qm();Object.keys(Jc.DEPRECATED_ALIASES).forEach(t=>{Xt.FLIPPED_ALIAS_KEYS[t]=Xt.FLIPPED_ALIAS_KEYS[Jc.DEPRECATED_ALIASES[t]]});for(let{types:t,set:e}of Xt.allExpandedTypes)for(let r of t){let i=Xt.FLIPPED_ALIAS_KEYS[r];i?i.forEach(e.add,e):e.add(r)}var rZ=Ut.TYPES=[].concat(Object.keys(Xt.VISITOR_KEYS),Object.keys(Xt.FLIPPED_ALIAS_KEYS),Object.keys(Xt.DEPRECATED_KEYS))});var Ja=k(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.default=iO;bs.validateChild=ey;bs.validateField=Zm;bs.validateInternal=sO;var bn=or();function iO(t,e,r){if(!t)return;let i=bn.NODE_FIELDS[t.type];if(!i)return;let s=i[e];Zm(t,e,r,s),ey(t,e,r)}function sO(t,e,r,i,s){if(t!=null&&t.validate&&!(t.optional&&i==null)&&(t.validate(e,r,i),s)){var n;let a=i.type;if(a==null)return;(n=bn.NODE_PARENT_VALIDATIONS[a])==null||n.call(bn.NODE_PARENT_VALIDATIONS,e,r,i)}}function Zm(t,e,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(t,e,r))}function ey(t,e,r){var i;let s=r?.type;s!=null&&((i=bn.NODE_PARENT_VALIDATIONS[s])==null||i.call(bn.NODE_PARENT_VALIDATIONS,t,e,r))}});var Hc=k(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.anyTypeAnnotation=j_;m.argumentPlaceholder=h2;m.arrayExpression=lO;m.arrayPattern=i_;m.arrayTypeAnnotation=R_;m.arrowFunctionExpression=s_;m.assignmentExpression=cO;m.assignmentPattern=r_;m.awaitExpression=w_;m.bigIntLiteral=oO;m.binaryExpression=uO;m.bindExpression=d2;m.blockStatement=dO;m.booleanLiteral=LO;m.booleanLiteralTypeAnnotation=$_;m.booleanTypeAnnotation=q_;m.breakStatement=mO;m.callExpression=yO;m.catchClause=TO;m.classAccessorProperty=N_;m.classBody=n_;m.classDeclaration=o_;m.classExpression=a_;m.classImplements=K_;m.classMethod=x_;m.classPrivateMethod=L_;m.classPrivateProperty=D_;m.classProperty=__;m.conditionalExpression=gO;m.continueStatement=xO;m.debuggerStatement=bO;m.decimalLiteral=b2;m.declareClass=W_;m.declareExportAllDeclaration=Z_;m.declareExportDeclaration=Q_;m.declareFunction=V_;m.declareInterface=Y_;m.declareModule=z_;m.declareModuleExports=J_;m.declareOpaqueType=H_;m.declareTypeAlias=X_;m.declareVariable=G_;m.declaredPredicate=eN;m.decorator=m2;m.directive=fO;m.directiveLiteral=hO;m.doExpression=y2;m.doWhileStatement=SO;m.emptyStatement=EO;m.emptyTypeAnnotation=pN;m.enumBooleanBody=RN;m.enumBooleanMember=KN;m.enumDeclaration=jN;m.enumDefaultedMember=YN;m.enumNumberBody=qN;m.enumNumberMember=WN;m.enumStringBody=$N;m.enumStringMember=VN;m.enumSymbolBody=UN;m.existsTypeAnnotation=tN;m.exportAllDeclaration=l_;m.exportDefaultDeclaration=c_;m.exportDefaultSpecifier=T2;m.exportNamedDeclaration=u_;m.exportNamespaceSpecifier=I_;m.exportSpecifier=p_;m.expressionStatement=PO;m.file=vO;m.forInStatement=AO;m.forOfStatement=f_;m.forStatement=wO;m.functionDeclaration=CO;m.functionExpression=IO;m.functionTypeAnnotation=rN;m.functionTypeParam=iN;m.genericTypeAnnotation=sN;m.identifier=kO;m.ifStatement=OO;m.import=C_;m.importAttribute=B_;m.importDeclaration=h_;m.importDefaultSpecifier=d_;m.importExpression=T_;m.importNamespaceSpecifier=m_;m.importSpecifier=y_;m.indexedAccessType=zN;m.inferredPredicate=nN;m.interfaceDeclaration=oN;m.interfaceExtends=aN;m.interfaceTypeAnnotation=lN;m.interpreterDirective=pO;m.intersectionTypeAnnotation=cN;m.jSXAttribute=m.jsxAttribute=XN;m.jSXClosingElement=m.jsxClosingElement=HN;m.jSXClosingFragment=m.jsxClosingFragment=c2;m.jSXElement=m.jsxElement=GN;m.jSXEmptyExpression=m.jsxEmptyExpression=QN;m.jSXExpressionContainer=m.jsxExpressionContainer=ZN;m.jSXFragment=m.jsxFragment=o2;m.jSXIdentifier=m.jsxIdentifier=t2;m.jSXMemberExpression=m.jsxMemberExpression=r2;m.jSXNamespacedName=m.jsxNamespacedName=i2;m.jSXOpeningElement=m.jsxOpeningElement=s2;m.jSXOpeningFragment=m.jsxOpeningFragment=l2;m.jSXSpreadAttribute=m.jsxSpreadAttribute=n2;m.jSXSpreadChild=m.jsxSpreadChild=e2;m.jSXText=m.jsxText=a2;m.labeledStatement=_O;m.logicalExpression=MO;m.memberExpression=FO;m.metaProperty=g_;m.mixedTypeAnnotation=uN;m.moduleExpression=S2;m.newExpression=BO;m.noop=u2;m.nullLiteral=DO;m.nullLiteralTypeAnnotation=U_;m.nullableTypeAnnotation=fN;m.numberLiteral=qD;m.numberLiteralTypeAnnotation=hN;m.numberTypeAnnotation=dN;m.numericLiteral=ty;m.objectExpression=RO;m.objectMethod=qO;m.objectPattern=b_;m.objectProperty=$O;m.objectTypeAnnotation=mN;m.objectTypeCallProperty=TN;m.objectTypeIndexer=gN;m.objectTypeInternalSlot=yN;m.objectTypeProperty=xN;m.objectTypeSpreadProperty=bN;m.opaqueType=SN;m.optionalCallExpression=O_;m.optionalIndexedAccessType=JN;m.optionalMemberExpression=k_;m.parenthesizedExpression=WO;m.pipelineBareFunction=v2;m.pipelinePrimaryTopicReference=A2;m.pipelineTopicExpression=P2;m.placeholder=p2;m.privateName=M_;m.program=jO;m.qualifiedTypeIdentifier=EN;m.recordExpression=g2;m.regExpLiteral=ry;m.regexLiteral=$D;m.restElement=iy;m.restProperty=UD;m.returnStatement=UO;m.sequenceExpression=KO;m.spreadElement=sy;m.spreadProperty=KD;m.staticBlock=F_;m.stringLiteral=NO;m.stringLiteralTypeAnnotation=PN;m.stringTypeAnnotation=vN;m.super=S_;m.switchCase=VO;m.switchStatement=YO;m.symbolTypeAnnotation=AN;m.taggedTemplateExpression=E_;m.templateElement=P_;m.templateLiteral=v_;m.thisExpression=zO;m.thisTypeAnnotation=wN;m.throwStatement=JO;m.topicReference=E2;m.tryStatement=XO;m.tSAnyKeyword=m.tsAnyKeyword=F2;m.tSArrayType=m.tsArrayType=rD;m.tSAsExpression=m.tsAsExpression=ED;m.tSBigIntKeyword=m.tsBigIntKeyword=j2;m.tSBooleanKeyword=m.tsBooleanKeyword=B2;m.tSCallSignatureDeclaration=m.tsCallSignatureDeclaration=_2;m.tSConditionalType=m.tsConditionalType=cD;m.tSConstructSignatureDeclaration=m.tsConstructSignatureDeclaration=N2;m.tSConstructorType=m.tsConstructorType=G2;m.tSDeclareFunction=m.tsDeclareFunction=I2;m.tSDeclareMethod=m.tsDeclareMethod=k2;m.tSEnumBody=m.tsEnumBody=AD;m.tSEnumDeclaration=m.tsEnumDeclaration=wD;m.tSEnumMember=m.tsEnumMember=CD;m.tSExportAssignment=m.tsExportAssignment=LD;m.tSExpressionWithTypeArguments=m.tsExpressionWithTypeArguments=TD;m.tSExternalModuleReference=m.tsExternalModuleReference=ND;m.tSFunctionType=m.tsFunctionType=H2;m.tSImportEqualsDeclaration=m.tsImportEqualsDeclaration=_D;m.tSImportType=m.tsImportType=OD;m.tSIndexSignature=m.tsIndexSignature=M2;m.tSIndexedAccessType=m.tsIndexedAccessType=hD;m.tSInferType=m.tsInferType=uD;m.tSInstantiationExpression=m.tsInstantiationExpression=SD;m.tSInterfaceBody=m.tsInterfaceBody=xD;m.tSInterfaceDeclaration=m.tsInterfaceDeclaration=gD;m.tSIntersectionType=m.tsIntersectionType=lD;m.tSIntrinsicKeyword=m.tsIntrinsicKeyword=R2;m.tSLiteralType=m.tsLiteralType=yD;m.tSMappedType=m.tsMappedType=dD;m.tSMethodSignature=m.tsMethodSignature=L2;m.tSModuleBlock=m.tsModuleBlock=kD;m.tSModuleDeclaration=m.tsModuleDeclaration=ID;m.tSNamedTupleMember=m.tsNamedTupleMember=aD;m.tSNamespaceExportDeclaration=m.tsNamespaceExportDeclaration=MD;m.tSNeverKeyword=m.tsNeverKeyword=q2;m.tSNonNullExpression=m.tsNonNullExpression=DD;m.tSNullKeyword=m.tsNullKeyword=$2;m.tSNumberKeyword=m.tsNumberKeyword=U2;m.tSObjectKeyword=m.tsObjectKeyword=K2;m.tSOptionalType=m.tsOptionalType=sD;m.tSParameterProperty=m.tsParameterProperty=C2;m.tSParenthesizedType=m.tsParenthesizedType=pD;m.tSPropertySignature=m.tsPropertySignature=D2;m.tSQualifiedName=m.tsQualifiedName=O2;m.tSRestType=m.tsRestType=nD;m.tSSatisfiesExpression=m.tsSatisfiesExpression=PD;m.tSStringKeyword=m.tsStringKeyword=W2;m.tSSymbolKeyword=m.tsSymbolKeyword=V2;m.tSTemplateLiteralType=m.tsTemplateLiteralType=mD;m.tSThisType=m.tsThisType=X2;m.tSTupleType=m.tsTupleType=iD;m.tSTypeAliasDeclaration=m.tsTypeAliasDeclaration=bD;m.tSTypeAnnotation=m.tsTypeAnnotation=FD;m.tSTypeAssertion=m.tsTypeAssertion=vD;m.tSTypeLiteral=m.tsTypeLiteral=tD;m.tSTypeOperator=m.tsTypeOperator=fD;m.tSTypeParameter=m.tsTypeParameter=RD;m.tSTypeParameterDeclaration=m.tsTypeParameterDeclaration=jD;m.tSTypeParameterInstantiation=m.tsTypeParameterInstantiation=BD;m.tSTypePredicate=m.tsTypePredicate=Z2;m.tSTypeQuery=m.tsTypeQuery=eD;m.tSTypeReference=m.tsTypeReference=Q2;m.tSUndefinedKeyword=m.tsUndefinedKeyword=Y2;m.tSUnionType=m.tsUnionType=oD;m.tSUnknownKeyword=m.tsUnknownKeyword=z2;m.tSVoidKeyword=m.tsVoidKeyword=J2;m.tupleExpression=x2;m.tupleTypeAnnotation=CN;m.typeAlias=kN;m.typeAnnotation=ON;m.typeCastExpression=_N;m.typeParameter=NN;m.typeParameterDeclaration=DN;m.typeParameterInstantiation=LN;m.typeofTypeAnnotation=IN;m.unaryExpression=HO;m.unionTypeAnnotation=MN;m.updateExpression=GO;m.v8IntrinsicIdentifier=f2;m.variableDeclaration=QO;m.variableDeclarator=ZO;m.variance=FN;m.voidPattern=w2;m.voidTypeAnnotation=BN;m.whileStatement=e_;m.withStatement=t_;m.yieldExpression=A_;var nO=Ja(),Za=hs(),aO=_r(),{validateInternal:h}=nO,{NODE_FIELDS:C}=aO;function oO(t){typeof t=="bigint"&&(t=t.toString());let e={type:"BigIntLiteral",value:t},r=C.BigIntLiteral;return h(r.value,e,"value",t),e}function lO(t=[]){let e={type:"ArrayExpression",elements:t},r=C.ArrayExpression;return h(r.elements,e,"elements",t,1),e}function cO(t,e,r){let i={type:"AssignmentExpression",operator:t,left:e,right:r},s=C.AssignmentExpression;return h(s.operator,i,"operator",t),h(s.left,i,"left",e,1),h(s.right,i,"right",r,1),i}function uO(t,e,r){let i={type:"BinaryExpression",operator:t,left:e,right:r},s=C.BinaryExpression;return h(s.operator,i,"operator",t),h(s.left,i,"left",e,1),h(s.right,i,"right",r,1),i}function pO(t){let e={type:"InterpreterDirective",value:t},r=C.InterpreterDirective;return h(r.value,e,"value",t),e}function fO(t){let e={type:"Directive",value:t},r=C.Directive;return h(r.value,e,"value",t,1),e}function hO(t){let e={type:"DirectiveLiteral",value:t},r=C.DirectiveLiteral;return h(r.value,e,"value",t),e}function dO(t,e=[]){let r={type:"BlockStatement",body:t,directives:e},i=C.BlockStatement;return h(i.body,r,"body",t,1),h(i.directives,r,"directives",e,1),r}function mO(t=null){let e={type:"BreakStatement",label:t},r=C.BreakStatement;return h(r.label,e,"label",t,1),e}function yO(t,e){let r={type:"CallExpression",callee:t,arguments:e},i=C.CallExpression;return h(i.callee,r,"callee",t,1),h(i.arguments,r,"arguments",e,1),r}function TO(t=null,e){let r={type:"CatchClause",param:t,body:e},i=C.CatchClause;return h(i.param,r,"param",t,1),h(i.body,r,"body",e,1),r}function gO(t,e,r){let i={type:"ConditionalExpression",test:t,consequent:e,alternate:r},s=C.ConditionalExpression;return h(s.test,i,"test",t,1),h(s.consequent,i,"consequent",e,1),h(s.alternate,i,"alternate",r,1),i}function xO(t=null){let e={type:"ContinueStatement",label:t},r=C.ContinueStatement;return h(r.label,e,"label",t,1),e}function bO(){return{type:"DebuggerStatement"}}function SO(t,e){let r={type:"DoWhileStatement",test:t,body:e},i=C.DoWhileStatement;return h(i.test,r,"test",t,1),h(i.body,r,"body",e,1),r}function EO(){return{type:"EmptyStatement"}}function PO(t){let e={type:"ExpressionStatement",expression:t},r=C.ExpressionStatement;return h(r.expression,e,"expression",t,1),e}function vO(t,e=null,r=null){let i={type:"File",program:t,comments:e,tokens:r},s=C.File;return h(s.program,i,"program",t,1),h(s.comments,i,"comments",e,1),h(s.tokens,i,"tokens",r),i}function AO(t,e,r){let i={type:"ForInStatement",left:t,right:e,body:r},s=C.ForInStatement;return h(s.left,i,"left",t,1),h(s.right,i,"right",e,1),h(s.body,i,"body",r,1),i}function wO(t=null,e=null,r=null,i){let s={type:"ForStatement",init:t,test:e,update:r,body:i},n=C.ForStatement;return h(n.init,s,"init",t,1),h(n.test,s,"test",e,1),h(n.update,s,"update",r,1),h(n.body,s,"body",i,1),s}function CO(t=null,e,r,i=!1,s=!1){let n={type:"FunctionDeclaration",id:t,params:e,body:r,generator:i,async:s},a=C.FunctionDeclaration;return h(a.id,n,"id",t,1),h(a.params,n,"params",e,1),h(a.body,n,"body",r,1),h(a.generator,n,"generator",i),h(a.async,n,"async",s),n}function IO(t=null,e,r,i=!1,s=!1){let n={type:"FunctionExpression",id:t,params:e,body:r,generator:i,async:s},a=C.FunctionExpression;return h(a.id,n,"id",t,1),h(a.params,n,"params",e,1),h(a.body,n,"body",r,1),h(a.generator,n,"generator",i),h(a.async,n,"async",s),n}function kO(t){let e={type:"Identifier",name:t},r=C.Identifier;return h(r.name,e,"name",t),e}function OO(t,e,r=null){let i={type:"IfStatement",test:t,consequent:e,alternate:r},s=C.IfStatement;return h(s.test,i,"test",t,1),h(s.consequent,i,"consequent",e,1),h(s.alternate,i,"alternate",r,1),i}function _O(t,e){let r={type:"LabeledStatement",label:t,body:e},i=C.LabeledStatement;return h(i.label,r,"label",t,1),h(i.body,r,"body",e,1),r}function NO(t){let e={type:"StringLiteral",value:t},r=C.StringLiteral;return h(r.value,e,"value",t),e}function ty(t){let e={type:"NumericLiteral",value:t},r=C.NumericLiteral;return h(r.value,e,"value",t),e}function DO(){return{type:"NullLiteral"}}function LO(t){let e={type:"BooleanLiteral",value:t},r=C.BooleanLiteral;return h(r.value,e,"value",t),e}function ry(t,e=""){let r={type:"RegExpLiteral",pattern:t,flags:e},i=C.RegExpLiteral;return h(i.pattern,r,"pattern",t),h(i.flags,r,"flags",e),r}function MO(t,e,r){let i={type:"LogicalExpression",operator:t,left:e,right:r},s=C.LogicalExpression;return h(s.operator,i,"operator",t),h(s.left,i,"left",e,1),h(s.right,i,"right",r,1),i}function FO(t,e,r=!1,i=null){let s={type:"MemberExpression",object:t,property:e,computed:r,optional:i},n=C.MemberExpression;return h(n.object,s,"object",t,1),h(n.property,s,"property",e,1),h(n.computed,s,"computed",r),h(n.optional,s,"optional",i),s}function BO(t,e){let r={type:"NewExpression",callee:t,arguments:e},i=C.NewExpression;return h(i.callee,r,"callee",t,1),h(i.arguments,r,"arguments",e,1),r}function jO(t,e=[],r="script",i=null){let s={type:"Program",body:t,directives:e,sourceType:r,interpreter:i},n=C.Program;return h(n.body,s,"body",t,1),h(n.directives,s,"directives",e,1),h(n.sourceType,s,"sourceType",r),h(n.interpreter,s,"interpreter",i,1),s}function RO(t){let e={type:"ObjectExpression",properties:t},r=C.ObjectExpression;return h(r.properties,e,"properties",t,1),e}function qO(t="method",e,r,i,s=!1,n=!1,a=!1){let o={type:"ObjectMethod",kind:t,key:e,params:r,body:i,computed:s,generator:n,async:a},l=C.ObjectMethod;return h(l.kind,o,"kind",t),h(l.key,o,"key",e,1),h(l.params,o,"params",r,1),h(l.body,o,"body",i,1),h(l.computed,o,"computed",s),h(l.generator,o,"generator",n),h(l.async,o,"async",a),o}function $O(t,e,r=!1,i=!1,s=null){let n={type:"ObjectProperty",key:t,value:e,computed:r,shorthand:i,decorators:s},a=C.ObjectProperty;return h(a.key,n,"key",t,1),h(a.value,n,"value",e,1),h(a.computed,n,"computed",r),h(a.shorthand,n,"shorthand",i),h(a.decorators,n,"decorators",s,1),n}function iy(t){let e={type:"RestElement",argument:t},r=C.RestElement;return h(r.argument,e,"argument",t,1),e}function UO(t=null){let e={type:"ReturnStatement",argument:t},r=C.ReturnStatement;return h(r.argument,e,"argument",t,1),e}function KO(t){let e={type:"SequenceExpression",expressions:t},r=C.SequenceExpression;return h(r.expressions,e,"expressions",t,1),e}function WO(t){let e={type:"ParenthesizedExpression",expression:t},r=C.ParenthesizedExpression;return h(r.expression,e,"expression",t,1),e}function VO(t=null,e){let r={type:"SwitchCase",test:t,consequent:e},i=C.SwitchCase;return h(i.test,r,"test",t,1),h(i.consequent,r,"consequent",e,1),r}function YO(t,e){let r={type:"SwitchStatement",discriminant:t,cases:e},i=C.SwitchStatement;return h(i.discriminant,r,"discriminant",t,1),h(i.cases,r,"cases",e,1),r}function zO(){return{type:"ThisExpression"}}function JO(t){let e={type:"ThrowStatement",argument:t},r=C.ThrowStatement;return h(r.argument,e,"argument",t,1),e}function XO(t,e=null,r=null){let i={type:"TryStatement",block:t,handler:e,finalizer:r},s=C.TryStatement;return h(s.block,i,"block",t,1),h(s.handler,i,"handler",e,1),h(s.finalizer,i,"finalizer",r,1),i}function HO(t,e,r=!0){let i={type:"UnaryExpression",operator:t,argument:e,prefix:r},s=C.UnaryExpression;return h(s.operator,i,"operator",t),h(s.argument,i,"argument",e,1),h(s.prefix,i,"prefix",r),i}function GO(t,e,r=!1){let i={type:"UpdateExpression",operator:t,argument:e,prefix:r},s=C.UpdateExpression;return h(s.operator,i,"operator",t),h(s.argument,i,"argument",e,1),h(s.prefix,i,"prefix",r),i}function QO(t,e){let r={type:"VariableDeclaration",kind:t,declarations:e},i=C.VariableDeclaration;return h(i.kind,r,"kind",t),h(i.declarations,r,"declarations",e,1),r}function ZO(t,e=null){let r={type:"VariableDeclarator",id:t,init:e},i=C.VariableDeclarator;return h(i.id,r,"id",t,1),h(i.init,r,"init",e,1),r}function e_(t,e){let r={type:"WhileStatement",test:t,body:e},i=C.WhileStatement;return h(i.test,r,"test",t,1),h(i.body,r,"body",e,1),r}function t_(t,e){let r={type:"WithStatement",object:t,body:e},i=C.WithStatement;return h(i.object,r,"object",t,1),h(i.body,r,"body",e,1),r}function r_(t,e){let r={type:"AssignmentPattern",left:t,right:e},i=C.AssignmentPattern;return h(i.left,r,"left",t,1),h(i.right,r,"right",e,1),r}function i_(t){let e={type:"ArrayPattern",elements:t},r=C.ArrayPattern;return h(r.elements,e,"elements",t,1),e}function s_(t,e,r=!1){let i={type:"ArrowFunctionExpression",params:t,body:e,async:r,expression:null},s=C.ArrowFunctionExpression;return h(s.params,i,"params",t,1),h(s.body,i,"body",e,1),h(s.async,i,"async",r),i}function n_(t){let e={type:"ClassBody",body:t},r=C.ClassBody;return h(r.body,e,"body",t,1),e}function a_(t=null,e=null,r,i=null){let s={type:"ClassExpression",id:t,superClass:e,body:r,decorators:i},n=C.ClassExpression;return h(n.id,s,"id",t,1),h(n.superClass,s,"superClass",e,1),h(n.body,s,"body",r,1),h(n.decorators,s,"decorators",i,1),s}function o_(t=null,e=null,r,i=null){let s={type:"ClassDeclaration",id:t,superClass:e,body:r,decorators:i},n=C.ClassDeclaration;return h(n.id,s,"id",t,1),h(n.superClass,s,"superClass",e,1),h(n.body,s,"body",r,1),h(n.decorators,s,"decorators",i,1),s}function l_(t){let e={type:"ExportAllDeclaration",source:t},r=C.ExportAllDeclaration;return h(r.source,e,"source",t,1),e}function c_(t){let e={type:"ExportDefaultDeclaration",declaration:t},r=C.ExportDefaultDeclaration;return h(r.declaration,e,"declaration",t,1),e}function u_(t=null,e=[],r=null){let i={type:"ExportNamedDeclaration",declaration:t,specifiers:e,source:r},s=C.ExportNamedDeclaration;return h(s.declaration,i,"declaration",t,1),h(s.specifiers,i,"specifiers",e,1),h(s.source,i,"source",r,1),i}function p_(t,e){let r={type:"ExportSpecifier",local:t,exported:e},i=C.ExportSpecifier;return h(i.local,r,"local",t,1),h(i.exported,r,"exported",e,1),r}function f_(t,e,r,i=!1){let s={type:"ForOfStatement",left:t,right:e,body:r,await:i},n=C.ForOfStatement;return h(n.left,s,"left",t,1),h(n.right,s,"right",e,1),h(n.body,s,"body",r,1),h(n.await,s,"await",i),s}function h_(t,e){let r={type:"ImportDeclaration",specifiers:t,source:e},i=C.ImportDeclaration;return h(i.specifiers,r,"specifiers",t,1),h(i.source,r,"source",e,1),r}function d_(t){let e={type:"ImportDefaultSpecifier",local:t},r=C.ImportDefaultSpecifier;return h(r.local,e,"local",t,1),e}function m_(t){let e={type:"ImportNamespaceSpecifier",local:t},r=C.ImportNamespaceSpecifier;return h(r.local,e,"local",t,1),e}function y_(t,e){let r={type:"ImportSpecifier",local:t,imported:e},i=C.ImportSpecifier;return h(i.local,r,"local",t,1),h(i.imported,r,"imported",e,1),r}function T_(t,e=null){let r={type:"ImportExpression",source:t,options:e},i=C.ImportExpression;return h(i.source,r,"source",t,1),h(i.options,r,"options",e,1),r}function g_(t,e){let r={type:"MetaProperty",meta:t,property:e},i=C.MetaProperty;return h(i.meta,r,"meta",t,1),h(i.property,r,"property",e,1),r}function x_(t="method",e,r,i,s=!1,n=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:t,key:e,params:r,body:i,computed:s,static:n,generator:a,async:o},c=C.ClassMethod;return h(c.kind,l,"kind",t),h(c.key,l,"key",e,1),h(c.params,l,"params",r,1),h(c.body,l,"body",i,1),h(c.computed,l,"computed",s),h(c.static,l,"static",n),h(c.generator,l,"generator",a),h(c.async,l,"async",o),l}function b_(t){let e={type:"ObjectPattern",properties:t},r=C.ObjectPattern;return h(r.properties,e,"properties",t,1),e}function sy(t){let e={type:"SpreadElement",argument:t},r=C.SpreadElement;return h(r.argument,e,"argument",t,1),e}function S_(){return{type:"Super"}}function E_(t,e){let r={type:"TaggedTemplateExpression",tag:t,quasi:e},i=C.TaggedTemplateExpression;return h(i.tag,r,"tag",t,1),h(i.quasi,r,"quasi",e,1),r}function P_(t,e=!1){let r={type:"TemplateElement",value:t,tail:e},i=C.TemplateElement;return h(i.value,r,"value",t),h(i.tail,r,"tail",e),r}function v_(t,e){let r={type:"TemplateLiteral",quasis:t,expressions:e},i=C.TemplateLiteral;return h(i.quasis,r,"quasis",t,1),h(i.expressions,r,"expressions",e,1),r}function A_(t=null,e=!1){let r={type:"YieldExpression",argument:t,delegate:e},i=C.YieldExpression;return h(i.argument,r,"argument",t,1),h(i.delegate,r,"delegate",e),r}function w_(t){let e={type:"AwaitExpression",argument:t},r=C.AwaitExpression;return h(r.argument,e,"argument",t,1),e}function C_(){return{type:"Import"}}function I_(t){let e={type:"ExportNamespaceSpecifier",exported:t},r=C.ExportNamespaceSpecifier;return h(r.exported,e,"exported",t,1),e}function k_(t,e,r=!1,i){let s={type:"OptionalMemberExpression",object:t,property:e,computed:r,optional:i},n=C.OptionalMemberExpression;return h(n.object,s,"object",t,1),h(n.property,s,"property",e,1),h(n.computed,s,"computed",r),h(n.optional,s,"optional",i),s}function O_(t,e,r){let i={type:"OptionalCallExpression",callee:t,arguments:e,optional:r},s=C.OptionalCallExpression;return h(s.callee,i,"callee",t,1),h(s.arguments,i,"arguments",e,1),h(s.optional,i,"optional",r),i}function __(t,e=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:n},o=C.ClassProperty;return h(o.key,a,"key",t,1),h(o.value,a,"value",e,1),h(o.typeAnnotation,a,"typeAnnotation",r,1),h(o.decorators,a,"decorators",i,1),h(o.computed,a,"computed",s),h(o.static,a,"static",n),a}function N_(t,e=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassAccessorProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:n},o=C.ClassAccessorProperty;return h(o.key,a,"key",t,1),h(o.value,a,"value",e,1),h(o.typeAnnotation,a,"typeAnnotation",r,1),h(o.decorators,a,"decorators",i,1),h(o.computed,a,"computed",s),h(o.static,a,"static",n),a}function D_(t,e=null,r=null,i=!1){let s={type:"ClassPrivateProperty",key:t,value:e,decorators:r,static:i},n=C.ClassPrivateProperty;return h(n.key,s,"key",t,1),h(n.value,s,"value",e,1),h(n.decorators,s,"decorators",r,1),h(n.static,s,"static",i),s}function L_(t="method",e,r,i,s=!1){let n={type:"ClassPrivateMethod",kind:t,key:e,params:r,body:i,static:s},a=C.ClassPrivateMethod;return h(a.kind,n,"kind",t),h(a.key,n,"key",e,1),h(a.params,n,"params",r,1),h(a.body,n,"body",i,1),h(a.static,n,"static",s),n}function M_(t){let e={type:"PrivateName",id:t},r=C.PrivateName;return h(r.id,e,"id",t,1),e}function F_(t){let e={type:"StaticBlock",body:t},r=C.StaticBlock;return h(r.body,e,"body",t,1),e}function B_(t,e){let r={type:"ImportAttribute",key:t,value:e},i=C.ImportAttribute;return h(i.key,r,"key",t,1),h(i.value,r,"value",e,1),r}function j_(){return{type:"AnyTypeAnnotation"}}function R_(t){let e={type:"ArrayTypeAnnotation",elementType:t},r=C.ArrayTypeAnnotation;return h(r.elementType,e,"elementType",t,1),e}function q_(){return{type:"BooleanTypeAnnotation"}}function $_(t){let e={type:"BooleanLiteralTypeAnnotation",value:t},r=C.BooleanLiteralTypeAnnotation;return h(r.value,e,"value",t),e}function U_(){return{type:"NullLiteralTypeAnnotation"}}function K_(t,e=null){let r={type:"ClassImplements",id:t,typeParameters:e},i=C.ClassImplements;return h(i.id,r,"id",t,1),h(i.typeParameters,r,"typeParameters",e,1),r}function W_(t,e=null,r=null,i){let s={type:"DeclareClass",id:t,typeParameters:e,extends:r,body:i},n=C.DeclareClass;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",r,1),h(n.body,s,"body",i,1),s}function V_(t){let e={type:"DeclareFunction",id:t},r=C.DeclareFunction;return h(r.id,e,"id",t,1),e}function Y_(t,e=null,r=null,i){let s={type:"DeclareInterface",id:t,typeParameters:e,extends:r,body:i},n=C.DeclareInterface;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",r,1),h(n.body,s,"body",i,1),s}function z_(t,e,r=null){let i={type:"DeclareModule",id:t,body:e,kind:r},s=C.DeclareModule;return h(s.id,i,"id",t,1),h(s.body,i,"body",e,1),h(s.kind,i,"kind",r),i}function J_(t){let e={type:"DeclareModuleExports",typeAnnotation:t},r=C.DeclareModuleExports;return h(r.typeAnnotation,e,"typeAnnotation",t,1),e}function X_(t,e=null,r){let i={type:"DeclareTypeAlias",id:t,typeParameters:e,right:r},s=C.DeclareTypeAlias;return h(s.id,i,"id",t,1),h(s.typeParameters,i,"typeParameters",e,1),h(s.right,i,"right",r,1),i}function H_(t,e=null,r=null){let i={type:"DeclareOpaqueType",id:t,typeParameters:e,supertype:r},s=C.DeclareOpaqueType;return h(s.id,i,"id",t,1),h(s.typeParameters,i,"typeParameters",e,1),h(s.supertype,i,"supertype",r,1),i}function G_(t){let e={type:"DeclareVariable",id:t},r=C.DeclareVariable;return h(r.id,e,"id",t,1),e}function Q_(t=null,e=null,r=null,i=null){let s={type:"DeclareExportDeclaration",declaration:t,specifiers:e,source:r,attributes:i},n=C.DeclareExportDeclaration;return h(n.declaration,s,"declaration",t,1),h(n.specifiers,s,"specifiers",e,1),h(n.source,s,"source",r,1),h(n.attributes,s,"attributes",i,1),s}function Z_(t,e=null){let r={type:"DeclareExportAllDeclaration",source:t,attributes:e},i=C.DeclareExportAllDeclaration;return h(i.source,r,"source",t,1),h(i.attributes,r,"attributes",e,1),r}function eN(t){let e={type:"DeclaredPredicate",value:t},r=C.DeclaredPredicate;return h(r.value,e,"value",t,1),e}function tN(){return{type:"ExistsTypeAnnotation"}}function rN(t=null,e,r=null,i){let s={type:"FunctionTypeAnnotation",typeParameters:t,params:e,rest:r,returnType:i},n=C.FunctionTypeAnnotation;return h(n.typeParameters,s,"typeParameters",t,1),h(n.params,s,"params",e,1),h(n.rest,s,"rest",r,1),h(n.returnType,s,"returnType",i,1),s}function iN(t=null,e){let r={type:"FunctionTypeParam",name:t,typeAnnotation:e},i=C.FunctionTypeParam;return h(i.name,r,"name",t,1),h(i.typeAnnotation,r,"typeAnnotation",e,1),r}function sN(t,e=null){let r={type:"GenericTypeAnnotation",id:t,typeParameters:e},i=C.GenericTypeAnnotation;return h(i.id,r,"id",t,1),h(i.typeParameters,r,"typeParameters",e,1),r}function nN(){return{type:"InferredPredicate"}}function aN(t,e=null){let r={type:"InterfaceExtends",id:t,typeParameters:e},i=C.InterfaceExtends;return h(i.id,r,"id",t,1),h(i.typeParameters,r,"typeParameters",e,1),r}function oN(t,e=null,r=null,i){let s={type:"InterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i},n=C.InterfaceDeclaration;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",r,1),h(n.body,s,"body",i,1),s}function lN(t=null,e){let r={type:"InterfaceTypeAnnotation",extends:t,body:e},i=C.InterfaceTypeAnnotation;return h(i.extends,r,"extends",t,1),h(i.body,r,"body",e,1),r}function cN(t){let e={type:"IntersectionTypeAnnotation",types:t},r=C.IntersectionTypeAnnotation;return h(r.types,e,"types",t,1),e}function uN(){return{type:"MixedTypeAnnotation"}}function pN(){return{type:"EmptyTypeAnnotation"}}function fN(t){let e={type:"NullableTypeAnnotation",typeAnnotation:t},r=C.NullableTypeAnnotation;return h(r.typeAnnotation,e,"typeAnnotation",t,1),e}function hN(t){let e={type:"NumberLiteralTypeAnnotation",value:t},r=C.NumberLiteralTypeAnnotation;return h(r.value,e,"value",t),e}function dN(){return{type:"NumberTypeAnnotation"}}function mN(t,e=[],r=[],i=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:t,indexers:e,callProperties:r,internalSlots:i,exact:s},a=C.ObjectTypeAnnotation;return h(a.properties,n,"properties",t,1),h(a.indexers,n,"indexers",e,1),h(a.callProperties,n,"callProperties",r,1),h(a.internalSlots,n,"internalSlots",i,1),h(a.exact,n,"exact",s),n}function yN(t,e,r,i,s){let n={type:"ObjectTypeInternalSlot",id:t,value:e,optional:r,static:i,method:s},a=C.ObjectTypeInternalSlot;return h(a.id,n,"id",t,1),h(a.value,n,"value",e,1),h(a.optional,n,"optional",r),h(a.static,n,"static",i),h(a.method,n,"method",s),n}function TN(t){let e={type:"ObjectTypeCallProperty",value:t,static:null},r=C.ObjectTypeCallProperty;return h(r.value,e,"value",t,1),e}function gN(t=null,e,r,i=null){let s={type:"ObjectTypeIndexer",id:t,key:e,value:r,variance:i,static:null},n=C.ObjectTypeIndexer;return h(n.id,s,"id",t,1),h(n.key,s,"key",e,1),h(n.value,s,"value",r,1),h(n.variance,s,"variance",i,1),s}function xN(t,e,r=null){let i={type:"ObjectTypeProperty",key:t,value:e,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=C.ObjectTypeProperty;return h(s.key,i,"key",t,1),h(s.value,i,"value",e,1),h(s.variance,i,"variance",r,1),i}function bN(t){let e={type:"ObjectTypeSpreadProperty",argument:t},r=C.ObjectTypeSpreadProperty;return h(r.argument,e,"argument",t,1),e}function SN(t,e=null,r=null,i){let s={type:"OpaqueType",id:t,typeParameters:e,supertype:r,impltype:i},n=C.OpaqueType;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.supertype,s,"supertype",r,1),h(n.impltype,s,"impltype",i,1),s}function EN(t,e){let r={type:"QualifiedTypeIdentifier",id:t,qualification:e},i=C.QualifiedTypeIdentifier;return h(i.id,r,"id",t,1),h(i.qualification,r,"qualification",e,1),r}function PN(t){let e={type:"StringLiteralTypeAnnotation",value:t},r=C.StringLiteralTypeAnnotation;return h(r.value,e,"value",t),e}function vN(){return{type:"StringTypeAnnotation"}}function AN(){return{type:"SymbolTypeAnnotation"}}function wN(){return{type:"ThisTypeAnnotation"}}function CN(t){let e={type:"TupleTypeAnnotation",types:t},r=C.TupleTypeAnnotation;return h(r.types,e,"types",t,1),e}function IN(t){let e={type:"TypeofTypeAnnotation",argument:t},r=C.TypeofTypeAnnotation;return h(r.argument,e,"argument",t,1),e}function kN(t,e=null,r){let i={type:"TypeAlias",id:t,typeParameters:e,right:r},s=C.TypeAlias;return h(s.id,i,"id",t,1),h(s.typeParameters,i,"typeParameters",e,1),h(s.right,i,"right",r,1),i}function ON(t){let e={type:"TypeAnnotation",typeAnnotation:t},r=C.TypeAnnotation;return h(r.typeAnnotation,e,"typeAnnotation",t,1),e}function _N(t,e){let r={type:"TypeCastExpression",expression:t,typeAnnotation:e},i=C.TypeCastExpression;return h(i.expression,r,"expression",t,1),h(i.typeAnnotation,r,"typeAnnotation",e,1),r}function NN(t=null,e=null,r=null){let i={type:"TypeParameter",bound:t,default:e,variance:r,name:null},s=C.TypeParameter;return h(s.bound,i,"bound",t,1),h(s.default,i,"default",e,1),h(s.variance,i,"variance",r,1),i}function DN(t){let e={type:"TypeParameterDeclaration",params:t},r=C.TypeParameterDeclaration;return h(r.params,e,"params",t,1),e}function LN(t){let e={type:"TypeParameterInstantiation",params:t},r=C.TypeParameterInstantiation;return h(r.params,e,"params",t,1),e}function MN(t){let e={type:"UnionTypeAnnotation",types:t},r=C.UnionTypeAnnotation;return h(r.types,e,"types",t,1),e}function FN(t){let e={type:"Variance",kind:t},r=C.Variance;return h(r.kind,e,"kind",t),e}function BN(){return{type:"VoidTypeAnnotation"}}function jN(t,e){let r={type:"EnumDeclaration",id:t,body:e},i=C.EnumDeclaration;return h(i.id,r,"id",t,1),h(i.body,r,"body",e,1),r}function RN(t){let e={type:"EnumBooleanBody",members:t,explicitType:null,hasUnknownMembers:null},r=C.EnumBooleanBody;return h(r.members,e,"members",t,1),e}function qN(t){let e={type:"EnumNumberBody",members:t,explicitType:null,hasUnknownMembers:null},r=C.EnumNumberBody;return h(r.members,e,"members",t,1),e}function $N(t){let e={type:"EnumStringBody",members:t,explicitType:null,hasUnknownMembers:null},r=C.EnumStringBody;return h(r.members,e,"members",t,1),e}function UN(t){let e={type:"EnumSymbolBody",members:t,hasUnknownMembers:null},r=C.EnumSymbolBody;return h(r.members,e,"members",t,1),e}function KN(t){let e={type:"EnumBooleanMember",id:t,init:null},r=C.EnumBooleanMember;return h(r.id,e,"id",t,1),e}function WN(t,e){let r={type:"EnumNumberMember",id:t,init:e},i=C.EnumNumberMember;return h(i.id,r,"id",t,1),h(i.init,r,"init",e,1),r}function VN(t,e){let r={type:"EnumStringMember",id:t,init:e},i=C.EnumStringMember;return h(i.id,r,"id",t,1),h(i.init,r,"init",e,1),r}function YN(t){let e={type:"EnumDefaultedMember",id:t},r=C.EnumDefaultedMember;return h(r.id,e,"id",t,1),e}function zN(t,e){let r={type:"IndexedAccessType",objectType:t,indexType:e},i=C.IndexedAccessType;return h(i.objectType,r,"objectType",t,1),h(i.indexType,r,"indexType",e,1),r}function JN(t,e){let r={type:"OptionalIndexedAccessType",objectType:t,indexType:e,optional:null},i=C.OptionalIndexedAccessType;return h(i.objectType,r,"objectType",t,1),h(i.indexType,r,"indexType",e,1),r}function XN(t,e=null){let r={type:"JSXAttribute",name:t,value:e},i=C.JSXAttribute;return h(i.name,r,"name",t,1),h(i.value,r,"value",e,1),r}function HN(t){let e={type:"JSXClosingElement",name:t},r=C.JSXClosingElement;return h(r.name,e,"name",t,1),e}function GN(t,e=null,r,i=null){let s={type:"JSXElement",openingElement:t,closingElement:e,children:r,selfClosing:i},n=C.JSXElement;return h(n.openingElement,s,"openingElement",t,1),h(n.closingElement,s,"closingElement",e,1),h(n.children,s,"children",r,1),h(n.selfClosing,s,"selfClosing",i),s}function QN(){return{type:"JSXEmptyExpression"}}function ZN(t){let e={type:"JSXExpressionContainer",expression:t},r=C.JSXExpressionContainer;return h(r.expression,e,"expression",t,1),e}function e2(t){let e={type:"JSXSpreadChild",expression:t},r=C.JSXSpreadChild;return h(r.expression,e,"expression",t,1),e}function t2(t){let e={type:"JSXIdentifier",name:t},r=C.JSXIdentifier;return h(r.name,e,"name",t),e}function r2(t,e){let r={type:"JSXMemberExpression",object:t,property:e},i=C.JSXMemberExpression;return h(i.object,r,"object",t,1),h(i.property,r,"property",e,1),r}function i2(t,e){let r={type:"JSXNamespacedName",namespace:t,name:e},i=C.JSXNamespacedName;return h(i.namespace,r,"namespace",t,1),h(i.name,r,"name",e,1),r}function s2(t,e,r=!1){let i={type:"JSXOpeningElement",name:t,attributes:e,selfClosing:r},s=C.JSXOpeningElement;return h(s.name,i,"name",t,1),h(s.attributes,i,"attributes",e,1),h(s.selfClosing,i,"selfClosing",r),i}function n2(t){let e={type:"JSXSpreadAttribute",argument:t},r=C.JSXSpreadAttribute;return h(r.argument,e,"argument",t,1),e}function a2(t){let e={type:"JSXText",value:t},r=C.JSXText;return h(r.value,e,"value",t),e}function o2(t,e,r){let i={type:"JSXFragment",openingFragment:t,closingFragment:e,children:r},s=C.JSXFragment;return h(s.openingFragment,i,"openingFragment",t,1),h(s.closingFragment,i,"closingFragment",e,1),h(s.children,i,"children",r,1),i}function l2(){return{type:"JSXOpeningFragment"}}function c2(){return{type:"JSXClosingFragment"}}function u2(){return{type:"Noop"}}function p2(t,e){let r={type:"Placeholder",expectedNode:t,name:e},i=C.Placeholder;return h(i.expectedNode,r,"expectedNode",t),h(i.name,r,"name",e,1),r}function f2(t){let e={type:"V8IntrinsicIdentifier",name:t},r=C.V8IntrinsicIdentifier;return h(r.name,e,"name",t),e}function h2(){return{type:"ArgumentPlaceholder"}}function d2(t,e){let r={type:"BindExpression",object:t,callee:e},i=C.BindExpression;return h(i.object,r,"object",t,1),h(i.callee,r,"callee",e,1),r}function m2(t){let e={type:"Decorator",expression:t},r=C.Decorator;return h(r.expression,e,"expression",t,1),e}function y2(t,e=!1){let r={type:"DoExpression",body:t,async:e},i=C.DoExpression;return h(i.body,r,"body",t,1),h(i.async,r,"async",e),r}function T2(t){let e={type:"ExportDefaultSpecifier",exported:t},r=C.ExportDefaultSpecifier;return h(r.exported,e,"exported",t,1),e}function g2(t){let e={type:"RecordExpression",properties:t},r=C.RecordExpression;return h(r.properties,e,"properties",t,1),e}function x2(t=[]){let e={type:"TupleExpression",elements:t},r=C.TupleExpression;return h(r.elements,e,"elements",t,1),e}function b2(t){let e={type:"DecimalLiteral",value:t},r=C.DecimalLiteral;return h(r.value,e,"value",t),e}function S2(t){let e={type:"ModuleExpression",body:t},r=C.ModuleExpression;return h(r.body,e,"body",t,1),e}function E2(){return{type:"TopicReference"}}function P2(t){let e={type:"PipelineTopicExpression",expression:t},r=C.PipelineTopicExpression;return h(r.expression,e,"expression",t,1),e}function v2(t){let e={type:"PipelineBareFunction",callee:t},r=C.PipelineBareFunction;return h(r.callee,e,"callee",t,1),e}function A2(){return{type:"PipelinePrimaryTopicReference"}}function w2(){return{type:"VoidPattern"}}function C2(t){let e={type:"TSParameterProperty",parameter:t},r=C.TSParameterProperty;return h(r.parameter,e,"parameter",t,1),e}function I2(t=null,e=null,r,i=null){let s={type:"TSDeclareFunction",id:t,typeParameters:e,params:r,returnType:i},n=C.TSDeclareFunction;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.params,s,"params",r,1),h(n.returnType,s,"returnType",i,1),s}function k2(t=null,e,r=null,i,s=null){let n={type:"TSDeclareMethod",decorators:t,key:e,typeParameters:r,params:i,returnType:s},a=C.TSDeclareMethod;return h(a.decorators,n,"decorators",t,1),h(a.key,n,"key",e,1),h(a.typeParameters,n,"typeParameters",r,1),h(a.params,n,"params",i,1),h(a.returnType,n,"returnType",s,1),n}function O2(t,e){let r={type:"TSQualifiedName",left:t,right:e},i=C.TSQualifiedName;return h(i.left,r,"left",t,1),h(i.right,r,"right",e,1),r}function _2(t=null,e,r=null){let i={type:"TSCallSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r},s=C.TSCallSignatureDeclaration;return h(s.typeParameters,i,"typeParameters",t,1),h(s.parameters,i,"parameters",e,1),h(s.typeAnnotation,i,"typeAnnotation",r,1),i}function N2(t=null,e,r=null){let i={type:"TSConstructSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r},s=C.TSConstructSignatureDeclaration;return h(s.typeParameters,i,"typeParameters",t,1),h(s.parameters,i,"parameters",e,1),h(s.typeAnnotation,i,"typeAnnotation",r,1),i}function D2(t,e=null){let r={type:"TSPropertySignature",key:t,typeAnnotation:e},i=C.TSPropertySignature;return h(i.key,r,"key",t,1),h(i.typeAnnotation,r,"typeAnnotation",e,1),r}function L2(t,e=null,r,i=null){let s={type:"TSMethodSignature",key:t,typeParameters:e,parameters:r,typeAnnotation:i,kind:null},n=C.TSMethodSignature;return h(n.key,s,"key",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.parameters,s,"parameters",r,1),h(n.typeAnnotation,s,"typeAnnotation",i,1),s}function M2(t,e=null){let r={type:"TSIndexSignature",parameters:t,typeAnnotation:e},i=C.TSIndexSignature;return h(i.parameters,r,"parameters",t,1),h(i.typeAnnotation,r,"typeAnnotation",e,1),r}function F2(){return{type:"TSAnyKeyword"}}function B2(){return{type:"TSBooleanKeyword"}}function j2(){return{type:"TSBigIntKeyword"}}function R2(){return{type:"TSIntrinsicKeyword"}}function q2(){return{type:"TSNeverKeyword"}}function $2(){return{type:"TSNullKeyword"}}function U2(){return{type:"TSNumberKeyword"}}function K2(){return{type:"TSObjectKeyword"}}function W2(){return{type:"TSStringKeyword"}}function V2(){return{type:"TSSymbolKeyword"}}function Y2(){return{type:"TSUndefinedKeyword"}}function z2(){return{type:"TSUnknownKeyword"}}function J2(){return{type:"TSVoidKeyword"}}function X2(){return{type:"TSThisType"}}function H2(t=null,e,r=null){let i={type:"TSFunctionType",typeParameters:t,parameters:e,typeAnnotation:r},s=C.TSFunctionType;return h(s.typeParameters,i,"typeParameters",t,1),h(s.parameters,i,"parameters",e,1),h(s.typeAnnotation,i,"typeAnnotation",r,1),i}function G2(t=null,e,r=null){let i={type:"TSConstructorType",typeParameters:t,parameters:e,typeAnnotation:r},s=C.TSConstructorType;return h(s.typeParameters,i,"typeParameters",t,1),h(s.parameters,i,"parameters",e,1),h(s.typeAnnotation,i,"typeAnnotation",r,1),i}function Q2(t,e=null){let r={type:"TSTypeReference",typeName:t,typeParameters:e},i=C.TSTypeReference;return h(i.typeName,r,"typeName",t,1),h(i.typeParameters,r,"typeParameters",e,1),r}function Z2(t,e=null,r=null){let i={type:"TSTypePredicate",parameterName:t,typeAnnotation:e,asserts:r},s=C.TSTypePredicate;return h(s.parameterName,i,"parameterName",t,1),h(s.typeAnnotation,i,"typeAnnotation",e,1),h(s.asserts,i,"asserts",r),i}function eD(t,e=null){let r={type:"TSTypeQuery",exprName:t,typeParameters:e},i=C.TSTypeQuery;return h(i.exprName,r,"exprName",t,1),h(i.typeParameters,r,"typeParameters",e,1),r}function tD(t){let e={type:"TSTypeLiteral",members:t},r=C.TSTypeLiteral;return h(r.members,e,"members",t,1),e}function rD(t){let e={type:"TSArrayType",elementType:t},r=C.TSArrayType;return h(r.elementType,e,"elementType",t,1),e}function iD(t){let e={type:"TSTupleType",elementTypes:t},r=C.TSTupleType;return h(r.elementTypes,e,"elementTypes",t,1),e}function sD(t){let e={type:"TSOptionalType",typeAnnotation:t},r=C.TSOptionalType;return h(r.typeAnnotation,e,"typeAnnotation",t,1),e}function nD(t){let e={type:"TSRestType",typeAnnotation:t},r=C.TSRestType;return h(r.typeAnnotation,e,"typeAnnotation",t,1),e}function aD(t,e,r=!1){let i={type:"TSNamedTupleMember",label:t,elementType:e,optional:r},s=C.TSNamedTupleMember;return h(s.label,i,"label",t,1),h(s.elementType,i,"elementType",e,1),h(s.optional,i,"optional",r),i}function oD(t){let e={type:"TSUnionType",types:t},r=C.TSUnionType;return h(r.types,e,"types",t,1),e}function lD(t){let e={type:"TSIntersectionType",types:t},r=C.TSIntersectionType;return h(r.types,e,"types",t,1),e}function cD(t,e,r,i){let s={type:"TSConditionalType",checkType:t,extendsType:e,trueType:r,falseType:i},n=C.TSConditionalType;return h(n.checkType,s,"checkType",t,1),h(n.extendsType,s,"extendsType",e,1),h(n.trueType,s,"trueType",r,1),h(n.falseType,s,"falseType",i,1),s}function uD(t){let e={type:"TSInferType",typeParameter:t},r=C.TSInferType;return h(r.typeParameter,e,"typeParameter",t,1),e}function pD(t){let e={type:"TSParenthesizedType",typeAnnotation:t},r=C.TSParenthesizedType;return h(r.typeAnnotation,e,"typeAnnotation",t,1),e}function fD(t,e){let r={type:"TSTypeOperator",typeAnnotation:t,operator:e},i=C.TSTypeOperator;return h(i.typeAnnotation,r,"typeAnnotation",t,1),h(i.operator,r,"operator",e),r}function hD(t,e){let r={type:"TSIndexedAccessType",objectType:t,indexType:e},i=C.TSIndexedAccessType;return h(i.objectType,r,"objectType",t,1),h(i.indexType,r,"indexType",e,1),r}function dD(t,e=null,r=null){let i={type:"TSMappedType",typeParameter:t,typeAnnotation:e,nameType:r},s=C.TSMappedType;return h(s.typeParameter,i,"typeParameter",t,1),h(s.typeAnnotation,i,"typeAnnotation",e,1),h(s.nameType,i,"nameType",r,1),i}function mD(t,e){let r={type:"TSTemplateLiteralType",quasis:t,types:e},i=C.TSTemplateLiteralType;return h(i.quasis,r,"quasis",t,1),h(i.types,r,"types",e,1),r}function yD(t){let e={type:"TSLiteralType",literal:t},r=C.TSLiteralType;return h(r.literal,e,"literal",t,1),e}function TD(t,e=null){let r={type:"TSExpressionWithTypeArguments",expression:t,typeParameters:e},i=C.TSExpressionWithTypeArguments;return h(i.expression,r,"expression",t,1),h(i.typeParameters,r,"typeParameters",e,1),r}function gD(t,e=null,r=null,i){let s={type:"TSInterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i},n=C.TSInterfaceDeclaration;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",r,1),h(n.body,s,"body",i,1),s}function xD(t){let e={type:"TSInterfaceBody",body:t},r=C.TSInterfaceBody;return h(r.body,e,"body",t,1),e}function bD(t,e=null,r){let i={type:"TSTypeAliasDeclaration",id:t,typeParameters:e,typeAnnotation:r},s=C.TSTypeAliasDeclaration;return h(s.id,i,"id",t,1),h(s.typeParameters,i,"typeParameters",e,1),h(s.typeAnnotation,i,"typeAnnotation",r,1),i}function SD(t,e=null){let r={type:"TSInstantiationExpression",expression:t,typeParameters:e},i=C.TSInstantiationExpression;return h(i.expression,r,"expression",t,1),h(i.typeParameters,r,"typeParameters",e,1),r}function ED(t,e){let r={type:"TSAsExpression",expression:t,typeAnnotation:e},i=C.TSAsExpression;return h(i.expression,r,"expression",t,1),h(i.typeAnnotation,r,"typeAnnotation",e,1),r}function PD(t,e){let r={type:"TSSatisfiesExpression",expression:t,typeAnnotation:e},i=C.TSSatisfiesExpression;return h(i.expression,r,"expression",t,1),h(i.typeAnnotation,r,"typeAnnotation",e,1),r}function vD(t,e){let r={type:"TSTypeAssertion",typeAnnotation:t,expression:e},i=C.TSTypeAssertion;return h(i.typeAnnotation,r,"typeAnnotation",t,1),h(i.expression,r,"expression",e,1),r}function AD(t){let e={type:"TSEnumBody",members:t},r=C.TSEnumBody;return h(r.members,e,"members",t,1),e}function wD(t,e){let r={type:"TSEnumDeclaration",id:t,members:e},i=C.TSEnumDeclaration;return h(i.id,r,"id",t,1),h(i.members,r,"members",e,1),r}function CD(t,e=null){let r={type:"TSEnumMember",id:t,initializer:e},i=C.TSEnumMember;return h(i.id,r,"id",t,1),h(i.initializer,r,"initializer",e,1),r}function ID(t,e){let r={type:"TSModuleDeclaration",id:t,body:e,kind:null},i=C.TSModuleDeclaration;return h(i.id,r,"id",t,1),h(i.body,r,"body",e,1),r}function kD(t){let e={type:"TSModuleBlock",body:t},r=C.TSModuleBlock;return h(r.body,e,"body",t,1),e}function OD(t,e=null,r=null){let i={type:"TSImportType",argument:t,qualifier:e,typeParameters:r},s=C.TSImportType;return h(s.argument,i,"argument",t,1),h(s.qualifier,i,"qualifier",e,1),h(s.typeParameters,i,"typeParameters",r,1),i}function _D(t,e){let r={type:"TSImportEqualsDeclaration",id:t,moduleReference:e,isExport:null},i=C.TSImportEqualsDeclaration;return h(i.id,r,"id",t,1),h(i.moduleReference,r,"moduleReference",e,1),r}function ND(t){let e={type:"TSExternalModuleReference",expression:t},r=C.TSExternalModuleReference;return h(r.expression,e,"expression",t,1),e}function DD(t){let e={type:"TSNonNullExpression",expression:t},r=C.TSNonNullExpression;return h(r.expression,e,"expression",t,1),e}function LD(t){let e={type:"TSExportAssignment",expression:t},r=C.TSExportAssignment;return h(r.expression,e,"expression",t,1),e}function MD(t){let e={type:"TSNamespaceExportDeclaration",id:t},r=C.TSNamespaceExportDeclaration;return h(r.id,e,"id",t,1),e}function FD(t){let e={type:"TSTypeAnnotation",typeAnnotation:t},r=C.TSTypeAnnotation;return h(r.typeAnnotation,e,"typeAnnotation",t,1),e}function BD(t){let e={type:"TSTypeParameterInstantiation",params:t},r=C.TSTypeParameterInstantiation;return h(r.params,e,"params",t,1),e}function jD(t){let e={type:"TSTypeParameterDeclaration",params:t},r=C.TSTypeParameterDeclaration;return h(r.params,e,"params",t,1),e}function RD(t=null,e=null,r){let i={type:"TSTypeParameter",constraint:t,default:e,name:r},s=C.TSTypeParameter;return h(s.constraint,i,"constraint",t,1),h(s.default,i,"default",e,1),h(s.name,i,"name",r),i}function qD(t){return(0,Za.default)("NumberLiteral","NumericLiteral","The node type "),ty(t)}function $D(t,e=""){return(0,Za.default)("RegexLiteral","RegExpLiteral","The node type "),ry(t,e)}function UD(t){return(0,Za.default)("RestProperty","RestElement","The node type "),iy(t)}function KD(t){return(0,Za.default)("SpreadProperty","SpreadElement","The node type "),sy(t)}});var ny=k(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.JSXIdentifier=p.JSXFragment=p.JSXExpressionContainer=p.JSXEmptyExpression=p.JSXElement=p.JSXClosingFragment=p.JSXClosingElement=p.JSXAttribute=p.IntersectionTypeAnnotation=p.InterpreterDirective=p.InterfaceTypeAnnotation=p.InterfaceExtends=p.InterfaceDeclaration=p.InferredPredicate=p.IndexedAccessType=p.ImportSpecifier=p.ImportNamespaceSpecifier=p.ImportExpression=p.ImportDefaultSpecifier=p.ImportDeclaration=p.ImportAttribute=p.Import=p.IfStatement=p.Identifier=p.GenericTypeAnnotation=p.FunctionTypeParam=p.FunctionTypeAnnotation=p.FunctionExpression=p.FunctionDeclaration=p.ForStatement=p.ForOfStatement=p.ForInStatement=p.File=p.ExpressionStatement=p.ExportSpecifier=p.ExportNamespaceSpecifier=p.ExportNamedDeclaration=p.ExportDefaultSpecifier=p.ExportDefaultDeclaration=p.ExportAllDeclaration=p.ExistsTypeAnnotation=p.EnumSymbolBody=p.EnumStringMember=p.EnumStringBody=p.EnumNumberMember=p.EnumNumberBody=p.EnumDefaultedMember=p.EnumDeclaration=p.EnumBooleanMember=p.EnumBooleanBody=p.EmptyTypeAnnotation=p.EmptyStatement=p.DoWhileStatement=p.DoExpression=p.DirectiveLiteral=p.Directive=p.Decorator=p.DeclaredPredicate=p.DeclareVariable=p.DeclareTypeAlias=p.DeclareOpaqueType=p.DeclareModuleExports=p.DeclareModule=p.DeclareInterface=p.DeclareFunction=p.DeclareExportDeclaration=p.DeclareExportAllDeclaration=p.DeclareClass=p.DecimalLiteral=p.DebuggerStatement=p.ContinueStatement=p.ConditionalExpression=p.ClassProperty=p.ClassPrivateProperty=p.ClassPrivateMethod=p.ClassMethod=p.ClassImplements=p.ClassExpression=p.ClassDeclaration=p.ClassBody=p.ClassAccessorProperty=p.CatchClause=p.CallExpression=p.BreakStatement=p.BooleanTypeAnnotation=p.BooleanLiteralTypeAnnotation=p.BooleanLiteral=p.BlockStatement=p.BindExpression=p.BinaryExpression=p.BigIntLiteral=p.AwaitExpression=p.AssignmentPattern=p.AssignmentExpression=p.ArrowFunctionExpression=p.ArrayTypeAnnotation=p.ArrayPattern=p.ArrayExpression=p.ArgumentPlaceholder=p.AnyTypeAnnotation=void 0;p.TSNumberKeyword=p.TSNullKeyword=p.TSNonNullExpression=p.TSNeverKeyword=p.TSNamespaceExportDeclaration=p.TSNamedTupleMember=p.TSModuleDeclaration=p.TSModuleBlock=p.TSMethodSignature=p.TSMappedType=p.TSLiteralType=p.TSIntrinsicKeyword=p.TSIntersectionType=p.TSInterfaceDeclaration=p.TSInterfaceBody=p.TSInstantiationExpression=p.TSInferType=p.TSIndexedAccessType=p.TSIndexSignature=p.TSImportType=p.TSImportEqualsDeclaration=p.TSFunctionType=p.TSExternalModuleReference=p.TSExpressionWithTypeArguments=p.TSExportAssignment=p.TSEnumMember=p.TSEnumDeclaration=p.TSEnumBody=p.TSDeclareMethod=p.TSDeclareFunction=p.TSConstructorType=p.TSConstructSignatureDeclaration=p.TSConditionalType=p.TSCallSignatureDeclaration=p.TSBooleanKeyword=p.TSBigIntKeyword=p.TSAsExpression=p.TSArrayType=p.TSAnyKeyword=p.SymbolTypeAnnotation=p.SwitchStatement=p.SwitchCase=p.Super=p.StringTypeAnnotation=p.StringLiteralTypeAnnotation=p.StringLiteral=p.StaticBlock=p.SpreadProperty=p.SpreadElement=p.SequenceExpression=p.ReturnStatement=p.RestProperty=p.RestElement=p.RegexLiteral=p.RegExpLiteral=p.RecordExpression=p.QualifiedTypeIdentifier=p.Program=p.PrivateName=p.Placeholder=p.PipelineTopicExpression=p.PipelinePrimaryTopicReference=p.PipelineBareFunction=p.ParenthesizedExpression=p.OptionalMemberExpression=p.OptionalIndexedAccessType=p.OptionalCallExpression=p.OpaqueType=p.ObjectTypeSpreadProperty=p.ObjectTypeProperty=p.ObjectTypeInternalSlot=p.ObjectTypeIndexer=p.ObjectTypeCallProperty=p.ObjectTypeAnnotation=p.ObjectProperty=p.ObjectPattern=p.ObjectMethod=p.ObjectExpression=p.NumericLiteral=p.NumberTypeAnnotation=p.NumberLiteralTypeAnnotation=p.NumberLiteral=p.NullableTypeAnnotation=p.NullLiteralTypeAnnotation=p.NullLiteral=p.Noop=p.NewExpression=p.ModuleExpression=p.MixedTypeAnnotation=p.MetaProperty=p.MemberExpression=p.LogicalExpression=p.LabeledStatement=p.JSXText=p.JSXSpreadChild=p.JSXSpreadAttribute=p.JSXOpeningFragment=p.JSXOpeningElement=p.JSXNamespacedName=p.JSXMemberExpression=void 0;p.YieldExpression=p.WithStatement=p.WhileStatement=p.VoidTypeAnnotation=p.VoidPattern=p.Variance=p.VariableDeclarator=p.VariableDeclaration=p.V8IntrinsicIdentifier=p.UpdateExpression=p.UnionTypeAnnotation=p.UnaryExpression=p.TypeofTypeAnnotation=p.TypeParameterInstantiation=p.TypeParameterDeclaration=p.TypeParameter=p.TypeCastExpression=p.TypeAnnotation=p.TypeAlias=p.TupleTypeAnnotation=p.TupleExpression=p.TryStatement=p.TopicReference=p.ThrowStatement=p.ThisTypeAnnotation=p.ThisExpression=p.TemplateLiteral=p.TemplateElement=p.TaggedTemplateExpression=p.TSVoidKeyword=p.TSUnknownKeyword=p.TSUnionType=p.TSUndefinedKeyword=p.TSTypeReference=p.TSTypeQuery=p.TSTypePredicate=p.TSTypeParameterInstantiation=p.TSTypeParameterDeclaration=p.TSTypeParameter=p.TSTypeOperator=p.TSTypeLiteral=p.TSTypeAssertion=p.TSTypeAnnotation=p.TSTypeAliasDeclaration=p.TSTupleType=p.TSThisType=p.TSTemplateLiteralType=p.TSSymbolKeyword=p.TSStringKeyword=p.TSSatisfiesExpression=p.TSRestType=p.TSQualifiedName=p.TSPropertySignature=p.TSParenthesizedType=p.TSParameterProperty=p.TSOptionalType=p.TSObjectKeyword=void 0;var Sn=Hc(),aZ=hs();function P(t){return Sn[t]}var oZ=p.ArrayExpression=P("arrayExpression"),lZ=p.AssignmentExpression=P("assignmentExpression"),cZ=p.BinaryExpression=P("binaryExpression"),uZ=p.InterpreterDirective=P("interpreterDirective"),pZ=p.Directive=P("directive"),fZ=p.DirectiveLiteral=P("directiveLiteral"),hZ=p.BlockStatement=P("blockStatement"),dZ=p.BreakStatement=P("breakStatement"),mZ=p.CallExpression=P("callExpression"),yZ=p.CatchClause=P("catchClause"),TZ=p.ConditionalExpression=P("conditionalExpression"),gZ=p.ContinueStatement=P("continueStatement"),xZ=p.DebuggerStatement=P("debuggerStatement"),bZ=p.DoWhileStatement=P("doWhileStatement"),SZ=p.EmptyStatement=P("emptyStatement"),EZ=p.ExpressionStatement=P("expressionStatement"),PZ=p.File=P("file"),vZ=p.ForInStatement=P("forInStatement"),AZ=p.ForStatement=P("forStatement"),wZ=p.FunctionDeclaration=P("functionDeclaration"),CZ=p.FunctionExpression=P("functionExpression"),IZ=p.Identifier=P("identifier"),kZ=p.IfStatement=P("ifStatement"),OZ=p.LabeledStatement=P("labeledStatement"),_Z=p.StringLiteral=P("stringLiteral"),NZ=p.NumericLiteral=P("numericLiteral"),DZ=p.NullLiteral=P("nullLiteral"),LZ=p.BooleanLiteral=P("booleanLiteral"),MZ=p.RegExpLiteral=P("regExpLiteral"),FZ=p.LogicalExpression=P("logicalExpression"),BZ=p.MemberExpression=P("memberExpression"),jZ=p.NewExpression=P("newExpression"),RZ=p.Program=P("program"),qZ=p.ObjectExpression=P("objectExpression"),$Z=p.ObjectMethod=P("objectMethod"),UZ=p.ObjectProperty=P("objectProperty"),KZ=p.RestElement=P("restElement"),WZ=p.ReturnStatement=P("returnStatement"),VZ=p.SequenceExpression=P("sequenceExpression"),YZ=p.ParenthesizedExpression=P("parenthesizedExpression"),zZ=p.SwitchCase=P("switchCase"),JZ=p.SwitchStatement=P("switchStatement"),XZ=p.ThisExpression=P("thisExpression"),HZ=p.ThrowStatement=P("throwStatement"),GZ=p.TryStatement=P("tryStatement"),QZ=p.UnaryExpression=P("unaryExpression"),ZZ=p.UpdateExpression=P("updateExpression"),eee=p.VariableDeclaration=P("variableDeclaration"),tee=p.VariableDeclarator=P("variableDeclarator"),ree=p.WhileStatement=P("whileStatement"),iee=p.WithStatement=P("withStatement"),see=p.AssignmentPattern=P("assignmentPattern"),nee=p.ArrayPattern=P("arrayPattern"),aee=p.ArrowFunctionExpression=P("arrowFunctionExpression"),oee=p.ClassBody=P("classBody"),lee=p.ClassExpression=P("classExpression"),cee=p.ClassDeclaration=P("classDeclaration"),uee=p.ExportAllDeclaration=P("exportAllDeclaration"),pee=p.ExportDefaultDeclaration=P("exportDefaultDeclaration"),fee=p.ExportNamedDeclaration=P("exportNamedDeclaration"),hee=p.ExportSpecifier=P("exportSpecifier"),dee=p.ForOfStatement=P("forOfStatement"),mee=p.ImportDeclaration=P("importDeclaration"),yee=p.ImportDefaultSpecifier=P("importDefaultSpecifier"),Tee=p.ImportNamespaceSpecifier=P("importNamespaceSpecifier"),gee=p.ImportSpecifier=P("importSpecifier"),xee=p.ImportExpression=P("importExpression"),bee=p.MetaProperty=P("metaProperty"),See=p.ClassMethod=P("classMethod"),Eee=p.ObjectPattern=P("objectPattern"),Pee=p.SpreadElement=P("spreadElement"),vee=p.Super=P("super"),Aee=p.TaggedTemplateExpression=P("taggedTemplateExpression"),wee=p.TemplateElement=P("templateElement"),Cee=p.TemplateLiteral=P("templateLiteral"),Iee=p.YieldExpression=P("yieldExpression"),kee=p.AwaitExpression=P("awaitExpression"),Oee=p.Import=P("import"),_ee=p.BigIntLiteral=P("bigIntLiteral"),Nee=p.ExportNamespaceSpecifier=P("exportNamespaceSpecifier"),Dee=p.OptionalMemberExpression=P("optionalMemberExpression"),Lee=p.OptionalCallExpression=P("optionalCallExpression"),Mee=p.ClassProperty=P("classProperty"),Fee=p.ClassAccessorProperty=P("classAccessorProperty"),Bee=p.ClassPrivateProperty=P("classPrivateProperty"),jee=p.ClassPrivateMethod=P("classPrivateMethod"),Ree=p.PrivateName=P("privateName"),qee=p.StaticBlock=P("staticBlock"),$ee=p.ImportAttribute=P("importAttribute"),Uee=p.AnyTypeAnnotation=P("anyTypeAnnotation"),Kee=p.ArrayTypeAnnotation=P("arrayTypeAnnotation"),Wee=p.BooleanTypeAnnotation=P("booleanTypeAnnotation"),Vee=p.BooleanLiteralTypeAnnotation=P("booleanLiteralTypeAnnotation"),Yee=p.NullLiteralTypeAnnotation=P("nullLiteralTypeAnnotation"),zee=p.ClassImplements=P("classImplements"),Jee=p.DeclareClass=P("declareClass"),Xee=p.DeclareFunction=P("declareFunction"),Hee=p.DeclareInterface=P("declareInterface"),Gee=p.DeclareModule=P("declareModule"),Qee=p.DeclareModuleExports=P("declareModuleExports"),Zee=p.DeclareTypeAlias=P("declareTypeAlias"),ete=p.DeclareOpaqueType=P("declareOpaqueType"),tte=p.DeclareVariable=P("declareVariable"),rte=p.DeclareExportDeclaration=P("declareExportDeclaration"),ite=p.DeclareExportAllDeclaration=P("declareExportAllDeclaration"),ste=p.DeclaredPredicate=P("declaredPredicate"),nte=p.ExistsTypeAnnotation=P("existsTypeAnnotation"),ate=p.FunctionTypeAnnotation=P("functionTypeAnnotation"),ote=p.FunctionTypeParam=P("functionTypeParam"),lte=p.GenericTypeAnnotation=P("genericTypeAnnotation"),cte=p.InferredPredicate=P("inferredPredicate"),ute=p.InterfaceExtends=P("interfaceExtends"),pte=p.InterfaceDeclaration=P("interfaceDeclaration"),fte=p.InterfaceTypeAnnotation=P("interfaceTypeAnnotation"),hte=p.IntersectionTypeAnnotation=P("intersectionTypeAnnotation"),dte=p.MixedTypeAnnotation=P("mixedTypeAnnotation"),mte=p.EmptyTypeAnnotation=P("emptyTypeAnnotation"),yte=p.NullableTypeAnnotation=P("nullableTypeAnnotation"),Tte=p.NumberLiteralTypeAnnotation=P("numberLiteralTypeAnnotation"),gte=p.NumberTypeAnnotation=P("numberTypeAnnotation"),xte=p.ObjectTypeAnnotation=P("objectTypeAnnotation"),bte=p.ObjectTypeInternalSlot=P("objectTypeInternalSlot"),Ste=p.ObjectTypeCallProperty=P("objectTypeCallProperty"),Ete=p.ObjectTypeIndexer=P("objectTypeIndexer"),Pte=p.ObjectTypeProperty=P("objectTypeProperty"),vte=p.ObjectTypeSpreadProperty=P("objectTypeSpreadProperty"),Ate=p.OpaqueType=P("opaqueType"),wte=p.QualifiedTypeIdentifier=P("qualifiedTypeIdentifier"),Cte=p.StringLiteralTypeAnnotation=P("stringLiteralTypeAnnotation"),Ite=p.StringTypeAnnotation=P("stringTypeAnnotation"),kte=p.SymbolTypeAnnotation=P("symbolTypeAnnotation"),Ote=p.ThisTypeAnnotation=P("thisTypeAnnotation"),_te=p.TupleTypeAnnotation=P("tupleTypeAnnotation"),Nte=p.TypeofTypeAnnotation=P("typeofTypeAnnotation"),Dte=p.TypeAlias=P("typeAlias"),Lte=p.TypeAnnotation=P("typeAnnotation"),Mte=p.TypeCastExpression=P("typeCastExpression"),Fte=p.TypeParameter=P("typeParameter"),Bte=p.TypeParameterDeclaration=P("typeParameterDeclaration"),jte=p.TypeParameterInstantiation=P("typeParameterInstantiation"),Rte=p.UnionTypeAnnotation=P("unionTypeAnnotation"),qte=p.Variance=P("variance"),$te=p.VoidTypeAnnotation=P("voidTypeAnnotation"),Ute=p.EnumDeclaration=P("enumDeclaration"),Kte=p.EnumBooleanBody=P("enumBooleanBody"),Wte=p.EnumNumberBody=P("enumNumberBody"),Vte=p.EnumStringBody=P("enumStringBody"),Yte=p.EnumSymbolBody=P("enumSymbolBody"),zte=p.EnumBooleanMember=P("enumBooleanMember"),Jte=p.EnumNumberMember=P("enumNumberMember"),Xte=p.EnumStringMember=P("enumStringMember"),Hte=p.EnumDefaultedMember=P("enumDefaultedMember"),Gte=p.IndexedAccessType=P("indexedAccessType"),Qte=p.OptionalIndexedAccessType=P("optionalIndexedAccessType"),Zte=p.JSXAttribute=P("jsxAttribute"),ere=p.JSXClosingElement=P("jsxClosingElement"),tre=p.JSXElement=P("jsxElement"),rre=p.JSXEmptyExpression=P("jsxEmptyExpression"),ire=p.JSXExpressionContainer=P("jsxExpressionContainer"),sre=p.JSXSpreadChild=P("jsxSpreadChild"),nre=p.JSXIdentifier=P("jsxIdentifier"),are=p.JSXMemberExpression=P("jsxMemberExpression"),ore=p.JSXNamespacedName=P("jsxNamespacedName"),lre=p.JSXOpeningElement=P("jsxOpeningElement"),cre=p.JSXSpreadAttribute=P("jsxSpreadAttribute"),ure=p.JSXText=P("jsxText"),pre=p.JSXFragment=P("jsxFragment"),fre=p.JSXOpeningFragment=P("jsxOpeningFragment"),hre=p.JSXClosingFragment=P("jsxClosingFragment"),dre=p.Noop=P("noop"),mre=p.Placeholder=P("placeholder"),yre=p.V8IntrinsicIdentifier=P("v8IntrinsicIdentifier"),Tre=p.ArgumentPlaceholder=P("argumentPlaceholder"),gre=p.BindExpression=P("bindExpression"),xre=p.Decorator=P("decorator"),bre=p.DoExpression=P("doExpression"),Sre=p.ExportDefaultSpecifier=P("exportDefaultSpecifier"),Ere=p.RecordExpression=P("recordExpression"),Pre=p.TupleExpression=P("tupleExpression"),vre=p.DecimalLiteral=P("decimalLiteral"),Are=p.ModuleExpression=P("moduleExpression"),wre=p.TopicReference=P("topicReference"),Cre=p.PipelineTopicExpression=P("pipelineTopicExpression"),Ire=p.PipelineBareFunction=P("pipelineBareFunction"),kre=p.PipelinePrimaryTopicReference=P("pipelinePrimaryTopicReference"),Ore=p.VoidPattern=P("voidPattern"),_re=p.TSParameterProperty=P("tsParameterProperty"),Nre=p.TSDeclareFunction=P("tsDeclareFunction"),Dre=p.TSDeclareMethod=P("tsDeclareMethod"),Lre=p.TSQualifiedName=P("tsQualifiedName"),Mre=p.TSCallSignatureDeclaration=P("tsCallSignatureDeclaration"),Fre=p.TSConstructSignatureDeclaration=P("tsConstructSignatureDeclaration"),Bre=p.TSPropertySignature=P("tsPropertySignature"),jre=p.TSMethodSignature=P("tsMethodSignature"),Rre=p.TSIndexSignature=P("tsIndexSignature"),qre=p.TSAnyKeyword=P("tsAnyKeyword"),$re=p.TSBooleanKeyword=P("tsBooleanKeyword"),Ure=p.TSBigIntKeyword=P("tsBigIntKeyword"),Kre=p.TSIntrinsicKeyword=P("tsIntrinsicKeyword"),Wre=p.TSNeverKeyword=P("tsNeverKeyword"),Vre=p.TSNullKeyword=P("tsNullKeyword"),Yre=p.TSNumberKeyword=P("tsNumberKeyword"),zre=p.TSObjectKeyword=P("tsObjectKeyword"),Jre=p.TSStringKeyword=P("tsStringKeyword"),Xre=p.TSSymbolKeyword=P("tsSymbolKeyword"),Hre=p.TSUndefinedKeyword=P("tsUndefinedKeyword"),Gre=p.TSUnknownKeyword=P("tsUnknownKeyword"),Qre=p.TSVoidKeyword=P("tsVoidKeyword"),Zre=p.TSThisType=P("tsThisType"),eie=p.TSFunctionType=P("tsFunctionType"),tie=p.TSConstructorType=P("tsConstructorType"),rie=p.TSTypeReference=P("tsTypeReference"),iie=p.TSTypePredicate=P("tsTypePredicate"),sie=p.TSTypeQuery=P("tsTypeQuery"),nie=p.TSTypeLiteral=P("tsTypeLiteral"),aie=p.TSArrayType=P("tsArrayType"),oie=p.TSTupleType=P("tsTupleType"),lie=p.TSOptionalType=P("tsOptionalType"),cie=p.TSRestType=P("tsRestType"),uie=p.TSNamedTupleMember=P("tsNamedTupleMember"),pie=p.TSUnionType=P("tsUnionType"),fie=p.TSIntersectionType=P("tsIntersectionType"),hie=p.TSConditionalType=P("tsConditionalType"),die=p.TSInferType=P("tsInferType"),mie=p.TSParenthesizedType=P("tsParenthesizedType"),yie=p.TSTypeOperator=P("tsTypeOperator"),Tie=p.TSIndexedAccessType=P("tsIndexedAccessType"),gie=p.TSMappedType=P("tsMappedType"),xie=p.TSTemplateLiteralType=P("tsTemplateLiteralType"),bie=p.TSLiteralType=P("tsLiteralType"),Sie=p.TSExpressionWithTypeArguments=P("tsExpressionWithTypeArguments"),Eie=p.TSInterfaceDeclaration=P("tsInterfaceDeclaration"),Pie=p.TSInterfaceBody=P("tsInterfaceBody"),vie=p.TSTypeAliasDeclaration=P("tsTypeAliasDeclaration"),Aie=p.TSInstantiationExpression=P("tsInstantiationExpression"),wie=p.TSAsExpression=P("tsAsExpression"),Cie=p.TSSatisfiesExpression=P("tsSatisfiesExpression"),Iie=p.TSTypeAssertion=P("tsTypeAssertion"),kie=p.TSEnumBody=P("tsEnumBody"),Oie=p.TSEnumDeclaration=P("tsEnumDeclaration"),_ie=p.TSEnumMember=P("tsEnumMember"),Nie=p.TSModuleDeclaration=P("tsModuleDeclaration"),Die=p.TSModuleBlock=P("tsModuleBlock"),Lie=p.TSImportType=P("tsImportType"),Mie=p.TSImportEqualsDeclaration=P("tsImportEqualsDeclaration"),Fie=p.TSExternalModuleReference=P("tsExternalModuleReference"),Bie=p.TSNonNullExpression=P("tsNonNullExpression"),jie=p.TSExportAssignment=P("tsExportAssignment"),Rie=p.TSNamespaceExportDeclaration=P("tsNamespaceExportDeclaration"),qie=p.TSTypeAnnotation=P("tsTypeAnnotation"),$ie=p.TSTypeParameterInstantiation=P("tsTypeParameterInstantiation"),Uie=p.TSTypeParameterDeclaration=P("tsTypeParameterDeclaration"),Kie=p.TSTypeParameter=P("tsTypeParameter"),Wie=p.NumberLiteral=Sn.numberLiteral,Vie=p.RegexLiteral=Sn.regexLiteral,Yie=p.RestProperty=Sn.restProperty,zie=p.SpreadProperty=Sn.spreadProperty});var Ht=k(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});var Gc=Hc();Object.keys(Gc).forEach(function(t){t==="default"||t==="__esModule"||t in ai&&ai[t]===Gc[t]||Object.defineProperty(ai,t,{enumerable:!0,get:function(){return Gc[t]}})});var Qc=ny();Object.keys(Qc).forEach(function(t){t==="default"||t==="__esModule"||t in ai&&ai[t]===Qc[t]||Object.defineProperty(ai,t,{enumerable:!0,get:function(){return Qc[t]}})})});var ay=k(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.default=YD;var WD=Ht(),VD=Me();function YD(t,e){let r=t.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,u=a.replace(/\t/g," ");o||(u=u.replace(/^ +/,"")),l||(u=u.replace(/ +$/,"")),u&&(c||(u+=" "),s+=u)}s&&e.push((0,VD.inherits)((0,WD.stringLiteral)(s),t))}});var oy=k(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.default=JD;var eu=ht(),zD=ay();function JD(t){let e=[];for(let r=0;r<t.children.length;r++){let i=t.children[r];if((0,eu.isJSXText)(i)){(0,zD.default)(i,e);continue}(0,eu.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,eu.isJSXEmptyExpression)(i)&&e.push(i)}return e}});var iu=k(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.default=HD;var XD=or();function HD(t){return!!(t&&XD.VISITOR_KEYS[t.type])}});var ly=k(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.default=QD;var GD=iu();function QD(t){if(!(0,GD.default)(t)){var e;let r=(e=t?.type)!=null?e:JSON.stringify(t);throw new TypeError(`Not a valid node of type "${r}"`)}}});var cy=k(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.assertAccessor=gj;T.assertAnyTypeAnnotation=MM;T.assertArgumentPlaceholder=uF;T.assertArrayExpression=eL;T.assertArrayPattern=QL;T.assertArrayTypeAnnotation=FM;T.assertArrowFunctionExpression=ZL;T.assertAssignmentExpression=tL;T.assertAssignmentPattern=GL;T.assertAwaitExpression=EM;T.assertBigIntLiteral=vM;T.assertBinary=RB;T.assertBinaryExpression=rL;T.assertBindExpression=pF;T.assertBlock=UB;T.assertBlockParent=$B;T.assertBlockStatement=aL;T.assertBooleanLiteral=CL;T.assertBooleanLiteralTypeAnnotation=jM;T.assertBooleanTypeAnnotation=BM;T.assertBreakStatement=oL;T.assertCallExpression=lL;T.assertCatchClause=cL;T.assertClass=dj;T.assertClassAccessorProperty=kM;T.assertClassBody=eM;T.assertClassDeclaration=rM;T.assertClassExpression=tM;T.assertClassImplements=qM;T.assertClassMethod=dM;T.assertClassPrivateMethod=_M;T.assertClassPrivateProperty=OM;T.assertClassProperty=IM;T.assertCompletionStatement=VB;T.assertConditional=YB;T.assertConditionalExpression=uL;T.assertContinueStatement=pL;T.assertDebuggerStatement=fL;T.assertDecimalLiteral=TF;T.assertDeclaration=tj;T.assertDeclareClass=$M;T.assertDeclareExportAllDeclaration=HM;T.assertDeclareExportDeclaration=XM;T.assertDeclareFunction=UM;T.assertDeclareInterface=KM;T.assertDeclareModule=WM;T.assertDeclareModuleExports=VM;T.assertDeclareOpaqueType=zM;T.assertDeclareTypeAlias=YM;T.assertDeclareVariable=JM;T.assertDeclaredPredicate=GM;T.assertDecorator=fF;T.assertDirective=sL;T.assertDirectiveLiteral=nL;T.assertDoExpression=hF;T.assertDoWhileStatement=hL;T.assertEmptyStatement=dL;T.assertEmptyTypeAnnotation=l3;T.assertEnumBody=Aj;T.assertEnumBooleanBody=F3;T.assertEnumBooleanMember=q3;T.assertEnumDeclaration=M3;T.assertEnumDefaultedMember=K3;T.assertEnumMember=wj;T.assertEnumNumberBody=B3;T.assertEnumNumberMember=$3;T.assertEnumStringBody=j3;T.assertEnumStringMember=U3;T.assertEnumSymbolBody=R3;T.assertExistsTypeAnnotation=QM;T.assertExportAllDeclaration=iM;T.assertExportDeclaration=yj;T.assertExportDefaultDeclaration=sM;T.assertExportDefaultSpecifier=dF;T.assertExportNamedDeclaration=nM;T.assertExportNamespaceSpecifier=AM;T.assertExportSpecifier=aM;T.assertExpression=jB;T.assertExpressionStatement=mL;T.assertExpressionWrapper=XB;T.assertFile=yL;T.assertFlow=bj;T.assertFlowBaseAnnotation=Ej;T.assertFlowDeclaration=Pj;T.assertFlowPredicate=vj;T.assertFlowType=Sj;T.assertFor=HB;T.assertForInStatement=TL;T.assertForOfStatement=oM;T.assertForStatement=gL;T.assertForXStatement=GB;T.assertFunction=QB;T.assertFunctionDeclaration=xL;T.assertFunctionExpression=bL;T.assertFunctionParameter=rj;T.assertFunctionParent=ZB;T.assertFunctionTypeAnnotation=ZM;T.assertFunctionTypeParam=e3;T.assertGenericTypeAnnotation=t3;T.assertIdentifier=SL;T.assertIfStatement=EL;T.assertImmutable=oj;T.assertImport=PM;T.assertImportAttribute=LM;T.assertImportDeclaration=lM;T.assertImportDefaultSpecifier=cM;T.assertImportExpression=fM;T.assertImportNamespaceSpecifier=uM;T.assertImportOrExportDeclaration=mj;T.assertImportSpecifier=pM;T.assertIndexedAccessType=W3;T.assertInferredPredicate=r3;T.assertInterfaceDeclaration=s3;T.assertInterfaceExtends=i3;T.assertInterfaceTypeAnnotation=n3;T.assertInterpreterDirective=iL;T.assertIntersectionTypeAnnotation=a3;T.assertJSX=Cj;T.assertJSXAttribute=Y3;T.assertJSXClosingElement=z3;T.assertJSXClosingFragment=aF;T.assertJSXElement=J3;T.assertJSXEmptyExpression=X3;T.assertJSXExpressionContainer=H3;T.assertJSXFragment=sF;T.assertJSXIdentifier=Q3;T.assertJSXMemberExpression=Z3;T.assertJSXNamespacedName=eF;T.assertJSXOpeningElement=tF;T.assertJSXOpeningFragment=nF;T.assertJSXSpreadAttribute=rF;T.assertJSXSpreadChild=G3;T.assertJSXText=iF;T.assertLVal=sj;T.assertLabeledStatement=PL;T.assertLiteral=aj;T.assertLogicalExpression=kL;T.assertLoop=zB;T.assertMemberExpression=OL;T.assertMetaProperty=hM;T.assertMethod=cj;T.assertMiscellaneous=Ij;T.assertMixedTypeAnnotation=o3;T.assertModuleDeclaration=Bj;T.assertModuleExpression=gF;T.assertModuleSpecifier=Tj;T.assertNewExpression=_L;T.assertNoop=oF;T.assertNullLiteral=wL;T.assertNullLiteralTypeAnnotation=RM;T.assertNullableTypeAnnotation=c3;T.assertNumberLiteral=Dj;T.assertNumberLiteralTypeAnnotation=u3;T.assertNumberTypeAnnotation=p3;T.assertNumericLiteral=AL;T.assertObjectExpression=DL;T.assertObjectMember=uj;T.assertObjectMethod=LL;T.assertObjectPattern=mM;T.assertObjectProperty=ML;T.assertObjectTypeAnnotation=f3;T.assertObjectTypeCallProperty=d3;T.assertObjectTypeIndexer=m3;T.assertObjectTypeInternalSlot=h3;T.assertObjectTypeProperty=y3;T.assertObjectTypeSpreadProperty=T3;T.assertOpaqueType=g3;T.assertOptionalCallExpression=CM;T.assertOptionalIndexedAccessType=V3;T.assertOptionalMemberExpression=wM;T.assertParenthesizedExpression=RL;T.assertPattern=hj;T.assertPatternLike=ij;T.assertPipelineBareFunction=SF;T.assertPipelinePrimaryTopicReference=EF;T.assertPipelineTopicExpression=bF;T.assertPlaceholder=lF;T.assertPrivate=xj;T.assertPrivateName=NM;T.assertProgram=NL;T.assertProperty=pj;T.assertPureish=ej;T.assertQualifiedTypeIdentifier=x3;T.assertRecordExpression=mF;T.assertRegExpLiteral=IL;T.assertRegexLiteral=Lj;T.assertRestElement=FL;T.assertRestProperty=Mj;T.assertReturnStatement=BL;T.assertScopable=qB;T.assertSequenceExpression=jL;T.assertSpreadElement=yM;T.assertSpreadProperty=Fj;T.assertStandardized=BB;T.assertStatement=KB;T.assertStaticBlock=DM;T.assertStringLiteral=vL;T.assertStringLiteralTypeAnnotation=b3;T.assertStringTypeAnnotation=S3;T.assertSuper=TM;T.assertSwitchCase=qL;T.assertSwitchStatement=$L;T.assertSymbolTypeAnnotation=E3;T.assertTSAnyKeyword=DF;T.assertTSArrayType=ZF;T.assertTSAsExpression=xB;T.assertTSBaseType=Nj;T.assertTSBigIntKeyword=MF;T.assertTSBooleanKeyword=LF;T.assertTSCallSignatureDeclaration=IF;T.assertTSConditionalType=aB;T.assertTSConstructSignatureDeclaration=kF;T.assertTSConstructorType=JF;T.assertTSDeclareFunction=AF;T.assertTSDeclareMethod=wF;T.assertTSEntityName=nj;T.assertTSEnumBody=EB;T.assertTSEnumDeclaration=PB;T.assertTSEnumMember=vB;T.assertTSExportAssignment=_B;T.assertTSExpressionWithTypeArguments=dB;T.assertTSExternalModuleReference=kB;T.assertTSFunctionType=zF;T.assertTSImportEqualsDeclaration=IB;T.assertTSImportType=CB;T.assertTSIndexSignature=NF;T.assertTSIndexedAccessType=uB;T.assertTSInferType=oB;T.assertTSInstantiationExpression=gB;T.assertTSInterfaceBody=yB;T.assertTSInterfaceDeclaration=mB;T.assertTSIntersectionType=nB;T.assertTSIntrinsicKeyword=FF;T.assertTSLiteralType=hB;T.assertTSMappedType=pB;T.assertTSMethodSignature=_F;T.assertTSModuleBlock=wB;T.assertTSModuleDeclaration=AB;T.assertTSNamedTupleMember=iB;T.assertTSNamespaceExportDeclaration=NB;T.assertTSNeverKeyword=BF;T.assertTSNonNullExpression=OB;T.assertTSNullKeyword=jF;T.assertTSNumberKeyword=RF;T.assertTSObjectKeyword=qF;T.assertTSOptionalType=tB;T.assertTSParameterProperty=vF;T.assertTSParenthesizedType=lB;T.assertTSPropertySignature=OF;T.assertTSQualifiedName=CF;T.assertTSRestType=rB;T.assertTSSatisfiesExpression=bB;T.assertTSStringKeyword=$F;T.assertTSSymbolKeyword=UF;T.assertTSTemplateLiteralType=fB;T.assertTSThisType=YF;T.assertTSTupleType=eB;T.assertTSType=_j;T.assertTSTypeAliasDeclaration=TB;T.assertTSTypeAnnotation=DB;T.assertTSTypeAssertion=SB;T.assertTSTypeElement=Oj;T.assertTSTypeLiteral=QF;T.assertTSTypeOperator=cB;T.assertTSTypeParameter=FB;T.assertTSTypeParameterDeclaration=MB;T.assertTSTypeParameterInstantiation=LB;T.assertTSTypePredicate=HF;T.assertTSTypeQuery=GF;T.assertTSTypeReference=XF;T.assertTSUndefinedKeyword=KF;T.assertTSUnionType=sB;T.assertTSUnknownKeyword=WF;T.assertTSVoidKeyword=VF;T.assertTaggedTemplateExpression=gM;T.assertTemplateElement=xM;T.assertTemplateLiteral=bM;T.assertTerminatorless=WB;T.assertThisExpression=UL;T.assertThisTypeAnnotation=P3;T.assertThrowStatement=KL;T.assertTopicReference=xF;T.assertTryStatement=WL;T.assertTupleExpression=yF;T.assertTupleTypeAnnotation=v3;T.assertTypeAlias=w3;T.assertTypeAnnotation=C3;T.assertTypeCastExpression=I3;T.assertTypeParameter=k3;T.assertTypeParameterDeclaration=O3;T.assertTypeParameterInstantiation=_3;T.assertTypeScript=kj;T.assertTypeofTypeAnnotation=A3;T.assertUnaryExpression=VL;T.assertUnaryLike=fj;T.assertUnionTypeAnnotation=N3;T.assertUpdateExpression=YL;T.assertUserWhitespacable=lj;T.assertV8IntrinsicIdentifier=cF;T.assertVariableDeclaration=zL;T.assertVariableDeclarator=JL;T.assertVariance=D3;T.assertVoidPattern=PF;T.assertVoidTypeAnnotation=L3;T.assertWhile=JB;T.assertWhileStatement=XL;T.assertWithStatement=HL;T.assertYieldExpression=SM;var ZD=ds(),En=hs();function g(t,e,r){if(!(0,ZD.default)(t,e,r))throw new Error(`Expected type "${t}" with option ${JSON.stringify(r)}, but instead got "${e.type}".`)}function eL(t,e){g("ArrayExpression",t,e)}function tL(t,e){g("AssignmentExpression",t,e)}function rL(t,e){g("BinaryExpression",t,e)}function iL(t,e){g("InterpreterDirective",t,e)}function sL(t,e){g("Directive",t,e)}function nL(t,e){g("DirectiveLiteral",t,e)}function aL(t,e){g("BlockStatement",t,e)}function oL(t,e){g("BreakStatement",t,e)}function lL(t,e){g("CallExpression",t,e)}function cL(t,e){g("CatchClause",t,e)}function uL(t,e){g("ConditionalExpression",t,e)}function pL(t,e){g("ContinueStatement",t,e)}function fL(t,e){g("DebuggerStatement",t,e)}function hL(t,e){g("DoWhileStatement",t,e)}function dL(t,e){g("EmptyStatement",t,e)}function mL(t,e){g("ExpressionStatement",t,e)}function yL(t,e){g("File",t,e)}function TL(t,e){g("ForInStatement",t,e)}function gL(t,e){g("ForStatement",t,e)}function xL(t,e){g("FunctionDeclaration",t,e)}function bL(t,e){g("FunctionExpression",t,e)}function SL(t,e){g("Identifier",t,e)}function EL(t,e){g("IfStatement",t,e)}function PL(t,e){g("LabeledStatement",t,e)}function vL(t,e){g("StringLiteral",t,e)}function AL(t,e){g("NumericLiteral",t,e)}function wL(t,e){g("NullLiteral",t,e)}function CL(t,e){g("BooleanLiteral",t,e)}function IL(t,e){g("RegExpLiteral",t,e)}function kL(t,e){g("LogicalExpression",t,e)}function OL(t,e){g("MemberExpression",t,e)}function _L(t,e){g("NewExpression",t,e)}function NL(t,e){g("Program",t,e)}function DL(t,e){g("ObjectExpression",t,e)}function LL(t,e){g("ObjectMethod",t,e)}function ML(t,e){g("ObjectProperty",t,e)}function FL(t,e){g("RestElement",t,e)}function BL(t,e){g("ReturnStatement",t,e)}function jL(t,e){g("SequenceExpression",t,e)}function RL(t,e){g("ParenthesizedExpression",t,e)}function qL(t,e){g("SwitchCase",t,e)}function $L(t,e){g("SwitchStatement",t,e)}function UL(t,e){g("ThisExpression",t,e)}function KL(t,e){g("ThrowStatement",t,e)}function WL(t,e){g("TryStatement",t,e)}function VL(t,e){g("UnaryExpression",t,e)}function YL(t,e){g("UpdateExpression",t,e)}function zL(t,e){g("VariableDeclaration",t,e)}function JL(t,e){g("VariableDeclarator",t,e)}function XL(t,e){g("WhileStatement",t,e)}function HL(t,e){g("WithStatement",t,e)}function GL(t,e){g("AssignmentPattern",t,e)}function QL(t,e){g("ArrayPattern",t,e)}function ZL(t,e){g("ArrowFunctionExpression",t,e)}function eM(t,e){g("ClassBody",t,e)}function tM(t,e){g("ClassExpression",t,e)}function rM(t,e){g("ClassDeclaration",t,e)}function iM(t,e){g("ExportAllDeclaration",t,e)}function sM(t,e){g("ExportDefaultDeclaration",t,e)}function nM(t,e){g("ExportNamedDeclaration",t,e)}function aM(t,e){g("ExportSpecifier",t,e)}function oM(t,e){g("ForOfStatement",t,e)}function lM(t,e){g("ImportDeclaration",t,e)}function cM(t,e){g("ImportDefaultSpecifier",t,e)}function uM(t,e){g("ImportNamespaceSpecifier",t,e)}function pM(t,e){g("ImportSpecifier",t,e)}function fM(t,e){g("ImportExpression",t,e)}function hM(t,e){g("MetaProperty",t,e)}function dM(t,e){g("ClassMethod",t,e)}function mM(t,e){g("ObjectPattern",t,e)}function yM(t,e){g("SpreadElement",t,e)}function TM(t,e){g("Super",t,e)}function gM(t,e){g("TaggedTemplateExpression",t,e)}function xM(t,e){g("TemplateElement",t,e)}function bM(t,e){g("TemplateLiteral",t,e)}function SM(t,e){g("YieldExpression",t,e)}function EM(t,e){g("AwaitExpression",t,e)}function PM(t,e){g("Import",t,e)}function vM(t,e){g("BigIntLiteral",t,e)}function AM(t,e){g("ExportNamespaceSpecifier",t,e)}function wM(t,e){g("OptionalMemberExpression",t,e)}function CM(t,e){g("OptionalCallExpression",t,e)}function IM(t,e){g("ClassProperty",t,e)}function kM(t,e){g("ClassAccessorProperty",t,e)}function OM(t,e){g("ClassPrivateProperty",t,e)}function _M(t,e){g("ClassPrivateMethod",t,e)}function NM(t,e){g("PrivateName",t,e)}function DM(t,e){g("StaticBlock",t,e)}function LM(t,e){g("ImportAttribute",t,e)}function MM(t,e){g("AnyTypeAnnotation",t,e)}function FM(t,e){g("ArrayTypeAnnotation",t,e)}function BM(t,e){g("BooleanTypeAnnotation",t,e)}function jM(t,e){g("BooleanLiteralTypeAnnotation",t,e)}function RM(t,e){g("NullLiteralTypeAnnotation",t,e)}function qM(t,e){g("ClassImplements",t,e)}function $M(t,e){g("DeclareClass",t,e)}function UM(t,e){g("DeclareFunction",t,e)}function KM(t,e){g("DeclareInterface",t,e)}function WM(t,e){g("DeclareModule",t,e)}function VM(t,e){g("DeclareModuleExports",t,e)}function YM(t,e){g("DeclareTypeAlias",t,e)}function zM(t,e){g("DeclareOpaqueType",t,e)}function JM(t,e){g("DeclareVariable",t,e)}function XM(t,e){g("DeclareExportDeclaration",t,e)}function HM(t,e){g("DeclareExportAllDeclaration",t,e)}function GM(t,e){g("DeclaredPredicate",t,e)}function QM(t,e){g("ExistsTypeAnnotation",t,e)}function ZM(t,e){g("FunctionTypeAnnotation",t,e)}function e3(t,e){g("FunctionTypeParam",t,e)}function t3(t,e){g("GenericTypeAnnotation",t,e)}function r3(t,e){g("InferredPredicate",t,e)}function i3(t,e){g("InterfaceExtends",t,e)}function s3(t,e){g("InterfaceDeclaration",t,e)}function n3(t,e){g("InterfaceTypeAnnotation",t,e)}function a3(t,e){g("IntersectionTypeAnnotation",t,e)}function o3(t,e){g("MixedTypeAnnotation",t,e)}function l3(t,e){g("EmptyTypeAnnotation",t,e)}function c3(t,e){g("NullableTypeAnnotation",t,e)}function u3(t,e){g("NumberLiteralTypeAnnotation",t,e)}function p3(t,e){g("NumberTypeAnnotation",t,e)}function f3(t,e){g("ObjectTypeAnnotation",t,e)}function h3(t,e){g("ObjectTypeInternalSlot",t,e)}function d3(t,e){g("ObjectTypeCallProperty",t,e)}function m3(t,e){g("ObjectTypeIndexer",t,e)}function y3(t,e){g("ObjectTypeProperty",t,e)}function T3(t,e){g("ObjectTypeSpreadProperty",t,e)}function g3(t,e){g("OpaqueType",t,e)}function x3(t,e){g("QualifiedTypeIdentifier",t,e)}function b3(t,e){g("StringLiteralTypeAnnotation",t,e)}function S3(t,e){g("StringTypeAnnotation",t,e)}function E3(t,e){g("SymbolTypeAnnotation",t,e)}function P3(t,e){g("ThisTypeAnnotation",t,e)}function v3(t,e){g("TupleTypeAnnotation",t,e)}function A3(t,e){g("TypeofTypeAnnotation",t,e)}function w3(t,e){g("TypeAlias",t,e)}function C3(t,e){g("TypeAnnotation",t,e)}function I3(t,e){g("TypeCastExpression",t,e)}function k3(t,e){g("TypeParameter",t,e)}function O3(t,e){g("TypeParameterDeclaration",t,e)}function _3(t,e){g("TypeParameterInstantiation",t,e)}function N3(t,e){g("UnionTypeAnnotation",t,e)}function D3(t,e){g("Variance",t,e)}function L3(t,e){g("VoidTypeAnnotation",t,e)}function M3(t,e){g("EnumDeclaration",t,e)}function F3(t,e){g("EnumBooleanBody",t,e)}function B3(t,e){g("EnumNumberBody",t,e)}function j3(t,e){g("EnumStringBody",t,e)}function R3(t,e){g("EnumSymbolBody",t,e)}function q3(t,e){g("EnumBooleanMember",t,e)}function $3(t,e){g("EnumNumberMember",t,e)}function U3(t,e){g("EnumStringMember",t,e)}function K3(t,e){g("EnumDefaultedMember",t,e)}function W3(t,e){g("IndexedAccessType",t,e)}function V3(t,e){g("OptionalIndexedAccessType",t,e)}function Y3(t,e){g("JSXAttribute",t,e)}function z3(t,e){g("JSXClosingElement",t,e)}function J3(t,e){g("JSXElement",t,e)}function X3(t,e){g("JSXEmptyExpression",t,e)}function H3(t,e){g("JSXExpressionContainer",t,e)}function G3(t,e){g("JSXSpreadChild",t,e)}function Q3(t,e){g("JSXIdentifier",t,e)}function Z3(t,e){g("JSXMemberExpression",t,e)}function eF(t,e){g("JSXNamespacedName",t,e)}function tF(t,e){g("JSXOpeningElement",t,e)}function rF(t,e){g("JSXSpreadAttribute",t,e)}function iF(t,e){g("JSXText",t,e)}function sF(t,e){g("JSXFragment",t,e)}function nF(t,e){g("JSXOpeningFragment",t,e)}function aF(t,e){g("JSXClosingFragment",t,e)}function oF(t,e){g("Noop",t,e)}function lF(t,e){g("Placeholder",t,e)}function cF(t,e){g("V8IntrinsicIdentifier",t,e)}function uF(t,e){g("ArgumentPlaceholder",t,e)}function pF(t,e){g("BindExpression",t,e)}function fF(t,e){g("Decorator",t,e)}function hF(t,e){g("DoExpression",t,e)}function dF(t,e){g("ExportDefaultSpecifier",t,e)}function mF(t,e){g("RecordExpression",t,e)}function yF(t,e){g("TupleExpression",t,e)}function TF(t,e){g("DecimalLiteral",t,e)}function gF(t,e){g("ModuleExpression",t,e)}function xF(t,e){g("TopicReference",t,e)}function bF(t,e){g("PipelineTopicExpression",t,e)}function SF(t,e){g("PipelineBareFunction",t,e)}function EF(t,e){g("PipelinePrimaryTopicReference",t,e)}function PF(t,e){g("VoidPattern",t,e)}function vF(t,e){g("TSParameterProperty",t,e)}function AF(t,e){g("TSDeclareFunction",t,e)}function wF(t,e){g("TSDeclareMethod",t,e)}function CF(t,e){g("TSQualifiedName",t,e)}function IF(t,e){g("TSCallSignatureDeclaration",t,e)}function kF(t,e){g("TSConstructSignatureDeclaration",t,e)}function OF(t,e){g("TSPropertySignature",t,e)}function _F(t,e){g("TSMethodSignature",t,e)}function NF(t,e){g("TSIndexSignature",t,e)}function DF(t,e){g("TSAnyKeyword",t,e)}function LF(t,e){g("TSBooleanKeyword",t,e)}function MF(t,e){g("TSBigIntKeyword",t,e)}function FF(t,e){g("TSIntrinsicKeyword",t,e)}function BF(t,e){g("TSNeverKeyword",t,e)}function jF(t,e){g("TSNullKeyword",t,e)}function RF(t,e){g("TSNumberKeyword",t,e)}function qF(t,e){g("TSObjectKeyword",t,e)}function $F(t,e){g("TSStringKeyword",t,e)}function UF(t,e){g("TSSymbolKeyword",t,e)}function KF(t,e){g("TSUndefinedKeyword",t,e)}function WF(t,e){g("TSUnknownKeyword",t,e)}function VF(t,e){g("TSVoidKeyword",t,e)}function YF(t,e){g("TSThisType",t,e)}function zF(t,e){g("TSFunctionType",t,e)}function JF(t,e){g("TSConstructorType",t,e)}function XF(t,e){g("TSTypeReference",t,e)}function HF(t,e){g("TSTypePredicate",t,e)}function GF(t,e){g("TSTypeQuery",t,e)}function QF(t,e){g("TSTypeLiteral",t,e)}function ZF(t,e){g("TSArrayType",t,e)}function eB(t,e){g("TSTupleType",t,e)}function tB(t,e){g("TSOptionalType",t,e)}function rB(t,e){g("TSRestType",t,e)}function iB(t,e){g("TSNamedTupleMember",t,e)}function sB(t,e){g("TSUnionType",t,e)}function nB(t,e){g("TSIntersectionType",t,e)}function aB(t,e){g("TSConditionalType",t,e)}function oB(t,e){g("TSInferType",t,e)}function lB(t,e){g("TSParenthesizedType",t,e)}function cB(t,e){g("TSTypeOperator",t,e)}function uB(t,e){g("TSIndexedAccessType",t,e)}function pB(t,e){g("TSMappedType",t,e)}function fB(t,e){g("TSTemplateLiteralType",t,e)}function hB(t,e){g("TSLiteralType",t,e)}function dB(t,e){g("TSExpressionWithTypeArguments",t,e)}function mB(t,e){g("TSInterfaceDeclaration",t,e)}function yB(t,e){g("TSInterfaceBody",t,e)}function TB(t,e){g("TSTypeAliasDeclaration",t,e)}function gB(t,e){g("TSInstantiationExpression",t,e)}function xB(t,e){g("TSAsExpression",t,e)}function bB(t,e){g("TSSatisfiesExpression",t,e)}function SB(t,e){g("TSTypeAssertion",t,e)}function EB(t,e){g("TSEnumBody",t,e)}function PB(t,e){g("TSEnumDeclaration",t,e)}function vB(t,e){g("TSEnumMember",t,e)}function AB(t,e){g("TSModuleDeclaration",t,e)}function wB(t,e){g("TSModuleBlock",t,e)}function CB(t,e){g("TSImportType",t,e)}function IB(t,e){g("TSImportEqualsDeclaration",t,e)}function kB(t,e){g("TSExternalModuleReference",t,e)}function OB(t,e){g("TSNonNullExpression",t,e)}function _B(t,e){g("TSExportAssignment",t,e)}function NB(t,e){g("TSNamespaceExportDeclaration",t,e)}function DB(t,e){g("TSTypeAnnotation",t,e)}function LB(t,e){g("TSTypeParameterInstantiation",t,e)}function MB(t,e){g("TSTypeParameterDeclaration",t,e)}function FB(t,e){g("TSTypeParameter",t,e)}function BB(t,e){g("Standardized",t,e)}function jB(t,e){g("Expression",t,e)}function RB(t,e){g("Binary",t,e)}function qB(t,e){g("Scopable",t,e)}function $B(t,e){g("BlockParent",t,e)}function UB(t,e){g("Block",t,e)}function KB(t,e){g("Statement",t,e)}function WB(t,e){g("Terminatorless",t,e)}function VB(t,e){g("CompletionStatement",t,e)}function YB(t,e){g("Conditional",t,e)}function zB(t,e){g("Loop",t,e)}function JB(t,e){g("While",t,e)}function XB(t,e){g("ExpressionWrapper",t,e)}function HB(t,e){g("For",t,e)}function GB(t,e){g("ForXStatement",t,e)}function QB(t,e){g("Function",t,e)}function ZB(t,e){g("FunctionParent",t,e)}function ej(t,e){g("Pureish",t,e)}function tj(t,e){g("Declaration",t,e)}function rj(t,e){g("FunctionParameter",t,e)}function ij(t,e){g("PatternLike",t,e)}function sj(t,e){g("LVal",t,e)}function nj(t,e){g("TSEntityName",t,e)}function aj(t,e){g("Literal",t,e)}function oj(t,e){g("Immutable",t,e)}function lj(t,e){g("UserWhitespacable",t,e)}function cj(t,e){g("Method",t,e)}function uj(t,e){g("ObjectMember",t,e)}function pj(t,e){g("Property",t,e)}function fj(t,e){g("UnaryLike",t,e)}function hj(t,e){g("Pattern",t,e)}function dj(t,e){g("Class",t,e)}function mj(t,e){g("ImportOrExportDeclaration",t,e)}function yj(t,e){g("ExportDeclaration",t,e)}function Tj(t,e){g("ModuleSpecifier",t,e)}function gj(t,e){g("Accessor",t,e)}function xj(t,e){g("Private",t,e)}function bj(t,e){g("Flow",t,e)}function Sj(t,e){g("FlowType",t,e)}function Ej(t,e){g("FlowBaseAnnotation",t,e)}function Pj(t,e){g("FlowDeclaration",t,e)}function vj(t,e){g("FlowPredicate",t,e)}function Aj(t,e){g("EnumBody",t,e)}function wj(t,e){g("EnumMember",t,e)}function Cj(t,e){g("JSX",t,e)}function Ij(t,e){g("Miscellaneous",t,e)}function kj(t,e){g("TypeScript",t,e)}function Oj(t,e){g("TSTypeElement",t,e)}function _j(t,e){g("TSType",t,e)}function Nj(t,e){g("TSBaseType",t,e)}function Dj(t,e){(0,En.default)("assertNumberLiteral","assertNumericLiteral"),g("NumberLiteral",t,e)}function Lj(t,e){(0,En.default)("assertRegexLiteral","assertRegExpLiteral"),g("RegexLiteral",t,e)}function Mj(t,e){(0,En.default)("assertRestProperty","assertRestElement"),g("RestProperty",t,e)}function Fj(t,e){(0,En.default)("assertSpreadProperty","assertSpreadElement"),g("SpreadProperty",t,e)}function Bj(t,e){(0,En.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),g("ModuleDeclaration",t,e)}});var uy=k(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var Tr=Ht(),tse=eo.default=jj;function jj(t){switch(t){case"string":return(0,Tr.stringTypeAnnotation)();case"number":return(0,Tr.numberTypeAnnotation)();case"undefined":return(0,Tr.voidTypeAnnotation)();case"boolean":return(0,Tr.booleanTypeAnnotation)();case"function":return(0,Tr.genericTypeAnnotation)((0,Tr.identifier)("Function"));case"object":return(0,Tr.genericTypeAnnotation)((0,Tr.identifier)("Object"));case"symbol":return(0,Tr.genericTypeAnnotation)((0,Tr.identifier)("Symbol"));case"bigint":return(0,Tr.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+t)}});var au=k(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.default=fy;var Pn=ht();function py(t){return(0,Pn.isIdentifier)(t)?t.name:`${t.id.name}.${py(t.qualification)}`}function fy(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let o=e[a];if(o&&!n.includes(o)){if((0,Pn.isAnyTypeAnnotation)(o))return[o];if((0,Pn.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,Pn.isUnionTypeAnnotation)(o)){s.has(o.types)||(e.push(...o.types),s.add(o.types));continue}if((0,Pn.isGenericTypeAnnotation)(o)){let l=py(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=fy(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 hy=k(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.default=$j;var Rj=Ht(),qj=au();function $j(t){let e=(0,qj.default)(t);return e.length===1?e[0]:(0,Rj.unionTypeAnnotation)(e)}});var yy=k(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.default=my;var Ss=ht();function dy(t){return(0,Ss.isIdentifier)(t)?t.name:(0,Ss.isThisExpression)(t)?"this":`${t.right.name}.${dy(t.left)}`}function my(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let o=e[a];if(!o||n.includes(o))continue;if((0,Ss.isTSAnyKeyword)(o))return[o];if((0,Ss.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,Ss.isTSUnionType)(o)){s.has(o.types)||(e.push(...o.types),s.add(o.types));continue}let l="typeParameters";if((0,Ss.isTSTypeReference)(o)&&o[l]){let c=o[l],u=dy(o.typeName);if(r.has(u)){let d=r.get(u),b=d[l];b?(b.params.push(...c.params),b.params=my(b.params)):d=c}else r.set(u,o);continue}n.push(o)}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var Ty=k(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.default=Vj;var Uj=Ht(),Kj=yy(),Wj=ht();function Vj(t){let e=t.map(i=>(0,Wj.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,Kj.default)(e);return r.length===1?r[0]:(0,Uj.tsUnionType)(r)}});var pu=k(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.buildUndefinedNode=Yj;var gy=Ht();function Yj(){return(0,gy.unaryExpression)("void",(0,gy.numericLiteral)(0),!0)}});var oi=k(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.default=zj;var xy=or(),by=ht(),{hasOwn:Nr}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Sy(t,e,r,i){return t&&typeof t.type=="string"?Ey(t,e,r,i):t}function fu(t,e,r,i){return Array.isArray(t)?t.map(s=>Sy(s,e,r,i)):Sy(t,e,r,i)}function zj(t,e=!0,r=!1){return Ey(t,e,r,new Map)}function Ey(t,e=!0,r=!1,i){if(!t)return t;let{type:s}=t,n={type:t.type};if((0,by.isIdentifier)(t))n.name=t.name,Nr(t,"optional")&&typeof t.optional=="boolean"&&(n.optional=t.optional),Nr(t,"typeAnnotation")&&(n.typeAnnotation=e?fu(t.typeAnnotation,!0,r,i):t.typeAnnotation),Nr(t,"decorators")&&(n.decorators=e?fu(t.decorators,!0,r,i):t.decorators);else if(Nr(xy.NODE_FIELDS,s))for(let a of Object.keys(xy.NODE_FIELDS[s]))Nr(t,a)&&(e?n[a]=(0,by.isFile)(t)&&a==="comments"?to(t.comments,e,r,i):fu(t[a],!0,r,i):n[a]=t[a]);else throw new Error(`Unknown node type: "${s}"`);return Nr(t,"loc")&&(r?n.loc=null:n.loc=t.loc),Nr(t,"leadingComments")&&(n.leadingComments=to(t.leadingComments,e,r,i)),Nr(t,"innerComments")&&(n.innerComments=to(t.innerComments,e,r,i)),Nr(t,"trailingComments")&&(n.trailingComments=to(t.trailingComments,e,r,i)),Nr(t,"extra")&&(n.extra=Object.assign({},t.extra)),n}function to(t,e,r,i){return!t||!e?t:t.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 Py=k(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.default=Xj;var Jj=oi();function Xj(t){return(0,Jj.default)(t,!1)}});var vy=k(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.default=Gj;var Hj=oi();function Gj(t){return(0,Hj.default)(t)}});var Ay=k(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.default=Zj;var Qj=oi();function Zj(t){return(0,Qj.default)(t,!0,!0)}});var wy=k(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.default=t4;var e4=oi();function t4(t){return(0,e4.default)(t,!1,!0)}});var xu=k(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.default=r4;function r4(t,e,r){if(!r||!t)return t;let i=`${e}Comments`;return t[i]?e==="leading"?t[i]=r.concat(t[i]):t[i].push(...r):t[i]=r,t}});var Cy=k(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.default=s4;var i4=xu();function s4(t,e,r,i){return(0,i4.default)(t,e,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var ro=k(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.default=n4;function n4(t,e,r){e&&r&&(e[t]=Array.from(new Set([].concat(e[t],r[t]).filter(Boolean))))}});var Pu=k(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.default=o4;var a4=ro();function o4(t,e){(0,a4.default)("innerComments",t,e)}});var Au=k(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.default=c4;var l4=ro();function c4(t,e){(0,l4.default)("leadingComments",t,e)}});var Cu=k(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.default=p4;var u4=ro();function p4(t,e){(0,u4.default)("trailingComments",t,e)}});var ku=k(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.default=m4;var f4=Cu(),h4=Au(),d4=Pu();function m4(t,e){return(0,f4.default)(t,e),(0,h4.default)(t,e),(0,d4.default)(t,e),t}});var Iy=k(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=T4;var y4=ys();function T4(t){return y4.COMMENT_KEYS.forEach(e=>{t[e]=null}),t}});var ky=k(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.WHILE_TYPES=J.USERWHITESPACABLE_TYPES=J.UNARYLIKE_TYPES=J.TYPESCRIPT_TYPES=J.TSTYPE_TYPES=J.TSTYPEELEMENT_TYPES=J.TSENTITYNAME_TYPES=J.TSBASETYPE_TYPES=J.TERMINATORLESS_TYPES=J.STATEMENT_TYPES=J.STANDARDIZED_TYPES=J.SCOPABLE_TYPES=J.PUREISH_TYPES=J.PROPERTY_TYPES=J.PRIVATE_TYPES=J.PATTERN_TYPES=J.PATTERNLIKE_TYPES=J.OBJECTMEMBER_TYPES=J.MODULESPECIFIER_TYPES=J.MODULEDECLARATION_TYPES=J.MISCELLANEOUS_TYPES=J.METHOD_TYPES=J.LVAL_TYPES=J.LOOP_TYPES=J.LITERAL_TYPES=J.JSX_TYPES=J.IMPORTOREXPORTDECLARATION_TYPES=J.IMMUTABLE_TYPES=J.FUNCTION_TYPES=J.FUNCTIONPARENT_TYPES=J.FUNCTIONPARAMETER_TYPES=J.FOR_TYPES=J.FORXSTATEMENT_TYPES=J.FLOW_TYPES=J.FLOWTYPE_TYPES=J.FLOWPREDICATE_TYPES=J.FLOWDECLARATION_TYPES=J.FLOWBASEANNOTATION_TYPES=J.EXPRESSION_TYPES=J.EXPRESSIONWRAPPER_TYPES=J.EXPORTDECLARATION_TYPES=J.ENUMMEMBER_TYPES=J.ENUMBODY_TYPES=J.DECLARATION_TYPES=J.CONDITIONAL_TYPES=J.COMPLETIONSTATEMENT_TYPES=J.CLASS_TYPES=J.BLOCK_TYPES=J.BLOCKPARENT_TYPES=J.BINARY_TYPES=J.ACCESSOR_TYPES=void 0;var we=or(),Sse=J.STANDARDIZED_TYPES=we.FLIPPED_ALIAS_KEYS.Standardized,Ese=J.EXPRESSION_TYPES=we.FLIPPED_ALIAS_KEYS.Expression,Pse=J.BINARY_TYPES=we.FLIPPED_ALIAS_KEYS.Binary,vse=J.SCOPABLE_TYPES=we.FLIPPED_ALIAS_KEYS.Scopable,Ase=J.BLOCKPARENT_TYPES=we.FLIPPED_ALIAS_KEYS.BlockParent,wse=J.BLOCK_TYPES=we.FLIPPED_ALIAS_KEYS.Block,Cse=J.STATEMENT_TYPES=we.FLIPPED_ALIAS_KEYS.Statement,Ise=J.TERMINATORLESS_TYPES=we.FLIPPED_ALIAS_KEYS.Terminatorless,kse=J.COMPLETIONSTATEMENT_TYPES=we.FLIPPED_ALIAS_KEYS.CompletionStatement,Ose=J.CONDITIONAL_TYPES=we.FLIPPED_ALIAS_KEYS.Conditional,_se=J.LOOP_TYPES=we.FLIPPED_ALIAS_KEYS.Loop,Nse=J.WHILE_TYPES=we.FLIPPED_ALIAS_KEYS.While,Dse=J.EXPRESSIONWRAPPER_TYPES=we.FLIPPED_ALIAS_KEYS.ExpressionWrapper,Lse=J.FOR_TYPES=we.FLIPPED_ALIAS_KEYS.For,Mse=J.FORXSTATEMENT_TYPES=we.FLIPPED_ALIAS_KEYS.ForXStatement,Fse=J.FUNCTION_TYPES=we.FLIPPED_ALIAS_KEYS.Function,Bse=J.FUNCTIONPARENT_TYPES=we.FLIPPED_ALIAS_KEYS.FunctionParent,jse=J.PUREISH_TYPES=we.FLIPPED_ALIAS_KEYS.Pureish,Rse=J.DECLARATION_TYPES=we.FLIPPED_ALIAS_KEYS.Declaration,qse=J.FUNCTIONPARAMETER_TYPES=we.FLIPPED_ALIAS_KEYS.FunctionParameter,$se=J.PATTERNLIKE_TYPES=we.FLIPPED_ALIAS_KEYS.PatternLike,Use=J.LVAL_TYPES=we.FLIPPED_ALIAS_KEYS.LVal,Kse=J.TSENTITYNAME_TYPES=we.FLIPPED_ALIAS_KEYS.TSEntityName,Wse=J.LITERAL_TYPES=we.FLIPPED_ALIAS_KEYS.Literal,Vse=J.IMMUTABLE_TYPES=we.FLIPPED_ALIAS_KEYS.Immutable,Yse=J.USERWHITESPACABLE_TYPES=we.FLIPPED_ALIAS_KEYS.UserWhitespacable,zse=J.METHOD_TYPES=we.FLIPPED_ALIAS_KEYS.Method,Jse=J.OBJECTMEMBER_TYPES=we.FLIPPED_ALIAS_KEYS.ObjectMember,Xse=J.PROPERTY_TYPES=we.FLIPPED_ALIAS_KEYS.Property,Hse=J.UNARYLIKE_TYPES=we.FLIPPED_ALIAS_KEYS.UnaryLike,Gse=J.PATTERN_TYPES=we.FLIPPED_ALIAS_KEYS.Pattern,Qse=J.CLASS_TYPES=we.FLIPPED_ALIAS_KEYS.Class,g4=J.IMPORTOREXPORTDECLARATION_TYPES=we.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,Zse=J.EXPORTDECLARATION_TYPES=we.FLIPPED_ALIAS_KEYS.ExportDeclaration,ene=J.MODULESPECIFIER_TYPES=we.FLIPPED_ALIAS_KEYS.ModuleSpecifier,tne=J.ACCESSOR_TYPES=we.FLIPPED_ALIAS_KEYS.Accessor,rne=J.PRIVATE_TYPES=we.FLIPPED_ALIAS_KEYS.Private,ine=J.FLOW_TYPES=we.FLIPPED_ALIAS_KEYS.Flow,sne=J.FLOWTYPE_TYPES=we.FLIPPED_ALIAS_KEYS.FlowType,nne=J.FLOWBASEANNOTATION_TYPES=we.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,ane=J.FLOWDECLARATION_TYPES=we.FLIPPED_ALIAS_KEYS.FlowDeclaration,one=J.FLOWPREDICATE_TYPES=we.FLIPPED_ALIAS_KEYS.FlowPredicate,lne=J.ENUMBODY_TYPES=we.FLIPPED_ALIAS_KEYS.EnumBody,cne=J.ENUMMEMBER_TYPES=we.FLIPPED_ALIAS_KEYS.EnumMember,une=J.JSX_TYPES=we.FLIPPED_ALIAS_KEYS.JSX,pne=J.MISCELLANEOUS_TYPES=we.FLIPPED_ALIAS_KEYS.Miscellaneous,fne=J.TYPESCRIPT_TYPES=we.FLIPPED_ALIAS_KEYS.TypeScript,hne=J.TSTYPEELEMENT_TYPES=we.FLIPPED_ALIAS_KEYS.TSTypeElement,dne=J.TSTYPE_TYPES=we.FLIPPED_ALIAS_KEYS.TSType,mne=J.TSBASETYPE_TYPES=we.FLIPPED_ALIAS_KEYS.TSBaseType,yne=J.MODULEDECLARATION_TYPES=g4});var Du=k(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.default=x4;var io=ht(),_u=Ht();function x4(t,e){if((0,io.isBlockStatement)(t))return t;let r=[];return(0,io.isEmptyStatement)(t)?r=[]:((0,io.isStatement)(t)||((0,io.isFunction)(e)?t=(0,_u.returnStatement)(t):t=(0,_u.expressionStatement)(t)),r=[t]),(0,_u.blockStatement)(r)}});var Oy=k(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default=S4;var b4=Du();function S4(t,e="body"){let r=(0,b4.default)(t[e],t);return t[e]=r,r}});var Fu=k(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=v4;var E4=ms(),P4=yn();function v4(t){t=t+"";let e="";for(let r of t)e+=(0,P4.isIdentifierChar)(r.codePointAt(0))?r:"-";return e=e.replace(/^[-0-9]+/,""),e=e.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,E4.default)(e)||(e=`_${e}`),e||"_"}});var _y=k(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=w4;var A4=Fu();function w4(t){return t=(0,A4.default)(t),(t==="eval"||t==="arguments")&&(t="_"+t),t}});var Ny=k(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.default=k4;var C4=ht(),I4=Ht();function k4(t,e=t.key||t.property){return!t.computed&&(0,C4.isIdentifier)(e)&&(e=(0,I4.stringLiteral)(e.name)),e}});var Dy=k(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.default=void 0;var vn=ht(),Pne=so.default=O4;function O4(t){if((0,vn.isExpressionStatement)(t)&&(t=t.expression),(0,vn.isExpression)(t))return t;if((0,vn.isClass)(t)?(t.type="ClassExpression",t.abstract=!1):(0,vn.isFunction)(t)&&(t.type="FunctionExpression"),!(0,vn.isExpression)(t))throw new Error(`cannot turn ${t.type} to an expression`);return t}});var qu=k(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default=An;var _4=or(),Ly=Symbol(),My=Symbol();function An(t,e,r){if(!t)return!1;let i=_4.VISITOR_KEYS[t.type];if(!i)return!1;r=r||{};let s=e(t,r);if(s!==void 0)switch(s){case Ly:return!1;case My:return!0}for(let n of i){let a=t[n];if(a){if(Array.isArray(a)){for(let o of a)if(An(o,e,r))return!0}else if(An(a,e,r))return!0}}return!1}An.skip=Ly;An.stop=My});var Uu=k($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.default=L4;var N4=ys(),Fy=["tokens","start","end","loc","raw","rawValue"],D4=[...N4.COMMENT_KEYS,"comments",...Fy];function L4(t,e={}){let r=e.preserveComments?Fy:D4;for(let s of r)t[s]!=null&&(t[s]=void 0);for(let s of Object.keys(t))s[0]==="_"&&t[s]!=null&&(t[s]=void 0);let i=Object.getOwnPropertySymbols(t);for(let s of i)t[s]=null}});var Wu=k(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.default=B4;var M4=qu(),F4=Uu();function B4(t,e){return(0,M4.default)(t,F4.default,e),t}});var jy=k(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=Ni;var By=ht(),j4=oi(),R4=Wu();function Ni(t,e=t.key){let r;return t.kind==="method"?Ni.increment()+"":((0,By.isIdentifier)(e)?r=e.name:(0,By.isStringLiteral)(e)?r=JSON.stringify(e.value):r=JSON.stringify((0,R4.default)((0,j4.default)(e))),t.computed&&(r=`[${r}]`),t.static&&(r=`static:${r}`),r)}Ni.uid=0;Ni.increment=function(){return Ni.uid>=Number.MAX_SAFE_INTEGER?Ni.uid=0:Ni.uid++}});var Ry=k(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var no=ht(),q4=Ht(),kne=ao.default=$4;function $4(t,e){if((0,no.isStatement)(t))return t;let r=!1,i;if((0,no.isClass)(t))r=!0,i="ClassDeclaration";else if((0,no.isFunction)(t))r=!0,i="FunctionDeclaration";else if((0,no.isAssignmentExpression)(t))return(0,q4.expressionStatement)(t);if(r&&!t.id&&(i=!1),!i){if(e)return!1;throw new Error(`cannot turn ${t.type} to a statement`)}return t.type=i,t}});var qy=k(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=void 0;var U4=ms(),gt=Ht(),_ne=oo.default=Yu,K4=Function.call.bind(Object.prototype.toString);function W4(t){return K4(t)==="[object RegExp]"}function V4(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function Yu(t){if(t===void 0)return(0,gt.identifier)("undefined");if(t===!0||t===!1)return(0,gt.booleanLiteral)(t);if(t===null)return(0,gt.nullLiteral)();if(typeof t=="string")return(0,gt.stringLiteral)(t);if(typeof t=="number"){let e;if(Number.isFinite(t))e=(0,gt.numericLiteral)(Math.abs(t));else{let r;Number.isNaN(t)?r=(0,gt.numericLiteral)(0):r=(0,gt.numericLiteral)(1),e=(0,gt.binaryExpression)("/",r,(0,gt.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,gt.unaryExpression)("-",e)),e}if(typeof t=="bigint")return t<0?(0,gt.unaryExpression)("-",(0,gt.bigIntLiteral)(-t)):(0,gt.bigIntLiteral)(t);if(W4(t)){let e=t.source,r=/\/([a-z]*)$/.exec(t.toString())[1];return(0,gt.regExpLiteral)(e,r)}if(Array.isArray(t))return(0,gt.arrayExpression)(t.map(Yu));if(V4(t)){let e=[];for(let r of Object.keys(t)){let i,s=!1;(0,U4.default)(r)?r==="__proto__"?(s=!0,i=(0,gt.stringLiteral)(r)):i=(0,gt.identifier)(r):i=(0,gt.stringLiteral)(r),e.push((0,gt.objectProperty)(i,Yu(t[r]),s))}return(0,gt.objectExpression)(e)}throw new Error("don't know how to turn this value into a node")}});var $y=k(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.default=z4;var Y4=Ht();function z4(t,e,r=!1){return t.object=(0,Y4.memberExpression)(t.object,t.property,t.computed),t.property=e,t.computed=!!r,t}});var Ky=k(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.default=X4;var Uy=ys(),J4=ku();function X4(t,e){if(!t||!e)return t;for(let r of Uy.INHERIT_KEYS.optional)t[r]==null&&(t[r]=e[r]);for(let r of Object.keys(e))r[0]==="_"&&r!=="__clone"&&(t[r]=e[r]);for(let r of Uy.INHERIT_KEYS.force)t[r]=e[r];return(0,J4.default)(t,e),t}});var Wy=k(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.default=Q4;var H4=Ht(),G4=Me();function Q4(t,e){if((0,G4.isSuper)(t.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return t.object=(0,H4.memberExpression)(e,t.object),t}});var Vy=k(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.default=Z4;function Z4(t){let e=[].concat(t),r=Object.create(null);for(;e.length;){let i=e.pop();if(i)switch(i.type){case"ArrayPattern":e.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":e.push(i.left);break;case"ObjectPattern":e.push(...i.properties);break;case"ObjectProperty":e.push(i.value);break;case"RestElement":case"UpdateExpression":e.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&e.push(i.argument);break;case"Identifier":r[i.name]=i;break;default:break}}return r}});var wn=k(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.default=Gu;var Kr=ht();function Gu(t,e,r,i){let s=[].concat(t),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||i&&((0,Kr.isAssignmentExpression)(a)||(0,Kr.isUnaryExpression)(a)||(0,Kr.isUpdateExpression)(a)))continue;if((0,Kr.isIdentifier)(a)){e?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,Kr.isExportDeclaration)(a)&&!(0,Kr.isExportAllDeclaration)(a)){(0,Kr.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0,Kr.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,Kr.isFunctionExpression)(a))continue}let o=Gu.keys[a.type];if(o)for(let l=0;l<o.length;l++){let c=o[l],u=a[c];u&&(Array.isArray(u)?s.push(...u):s.push(u))}}return n}var eR={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"]};Gu.keys=eR});var Yy=k(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var tR=wn(),jne=lo.default=rR;function rR(t,e){return(0,tR.default)(t,e,!0)}});var Jy=k(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.default=sR;var lr=ht();function iR(t){return(0,lr.isNullLiteral)(t)?"null":(0,lr.isRegExpLiteral)(t)?`/${t.pattern}/${t.flags}`:(0,lr.isTemplateLiteral)(t)?t.quasis.map(e=>e.value.raw).join(""):t.value!==void 0?String(t.value):null}function zy(t){if(!t.computed||(0,lr.isLiteral)(t.key))return t.key}function sR(t,e){if("id"in t&&t.id)return{name:t.id.name,originalNode:t.id};let r="",i;if((0,lr.isObjectProperty)(e,{value:t})?i=zy(e):(0,lr.isObjectMethod)(t)||(0,lr.isClassMethod)(t)?(i=zy(t),t.kind==="get"?r="get ":t.kind==="set"&&(r="set ")):(0,lr.isVariableDeclarator)(e,{init:t})?i=e.id:(0,lr.isAssignmentExpression)(e,{operator:"=",right:t})&&(i=e.left),!i)return null;let s=(0,lr.isLiteral)(i)?iR(i):(0,lr.isIdentifier)(i)?i.name:(0,lr.isPrivateName)(i)?i.id.name:null;return s==null?null:{name:r+s,originalNode:i}}});var Xy=k(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.default=aR;var nR=or();function aR(t,e,r){typeof e=="function"&&(e={enter:e});let{enter:i,exit:s}=e;ep(t,i,s,r,[])}function ep(t,e,r,i,s){let n=nR.VISITOR_KEYS[t.type];if(n){e&&e(t,s,i);for(let a of n){let o=t[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let c=o[l];c&&(s.push({node:t,key:a,index:l}),ep(c,e,r,i,s),s.pop())}else o&&(s.push({node:t,key:a}),ep(o,e,r,i,s),s.pop())}r&&r(t,s,i)}}});var Hy=k(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.default=lR;var oR=wn();function lR(t,e,r){if(r&&t.type==="Identifier"&&e.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=oR.default.keys[e.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],a=e[n];if(Array.isArray(a)){if(a.includes(t))return!0}else if(a===t)return!0}return!1}});var sp=k(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.default=uR;var cR=ht();Gy=Symbol.for("var used to be block scoped");var Gy;function uR(t){return(0,cR.isVariableDeclaration)(t)&&(t.kind!=="var"||t[Gy])}});var Zy=k(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.default=fR;var Qy=ht(),pR=sp();function fR(t){return(0,Qy.isFunctionDeclaration)(t)||(0,Qy.isClassDeclaration)(t)||(0,pR.default)(t)}});var eT=k(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.default=mR;var hR=Wa(),dR=ht();function mR(t){return(0,hR.default)(t.type,"Immutable")?!0:(0,dR.isIdentifier)(t)?t.name==="undefined":!1}});var rT=k(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.default=op;var tT=or();function op(t,e){if(typeof t!="object"||typeof e!="object"||t==null||e==null)return t===e;if(t.type!==e.type)return!1;let r=Object.keys(tT.NODE_FIELDS[t.type]||t.type),i=tT.VISITOR_KEYS[t.type];for(let s of r){let n=t[s],a=e[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!op(n[o],a[o]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!op(n,a))return!1}}return!0}});var iT=k(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.default=yR;function yR(t,e,r){switch(e.type){case"MemberExpression":case"OptionalMemberExpression":return e.property===t?!!e.computed:e.object===t;case"JSXMemberExpression":return e.object===t;case"VariableDeclarator":return e.init===t;case"ArrowFunctionExpression":return e.body===t;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return e.key===t?!!e.computed:!1;case"ObjectProperty":return e.key===t?!!e.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return e.key===t?!!e.computed:!0;case"ClassPrivateProperty":return e.key!==t;case"ClassDeclaration":case"ClassExpression":return e.superClass===t;case"AssignmentExpression":return e.right===t;case"AssignmentPattern":return e.right===t;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:e.local===t;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return e.key!==t;case"TSEnumMember":return e.id!==t;case"TSPropertySignature":return e.key===t?!!e.computed:!0}return!0}});var sT=k(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.default=TR;var Di=ht();function TR(t,e){return(0,Di.isBlockStatement)(t)&&((0,Di.isFunction)(e)||(0,Di.isCatchClause)(e))?!1:(0,Di.isPattern)(t)&&((0,Di.isFunction)(e)||(0,Di.isCatchClause)(e))?!0:(0,Di.isScopable)(t)}});var aT=k(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.default=gR;var nT=ht();function gR(t){return(0,nT.isImportDefaultSpecifier)(t)||(0,nT.isIdentifier)(t.imported||t.exported,{name:"default"})}});var oT=k(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.default=SR;var xR=ms(),bR=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 SR(t){return(0,xR.default)(t)&&!bR.has(t)}});var cT=k(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.default=PR;var ER=ht();lT=Symbol.for("var used to be block scoped");var lT;function PR(t){return(0,ER.isVariableDeclaration)(t,{kind:"var"})&&!t[lT]}});var uT=k(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.default=co;var vR=wn(),Li=ht(),dp=Ht(),mp=pu(),AR=oi();function co(t,e){let r=[],i=!0;for(let s of t)if((0,Li.isEmptyStatement)(s)||(i=!1),(0,Li.isExpression)(s))r.push(s);else if((0,Li.isExpressionStatement)(s))r.push(s.expression);else if((0,Li.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,vR.default)(n);for(let o of Object.keys(a))e.push({kind:s.kind,id:(0,AR.default)(a[o])});n.init&&r.push((0,dp.assignmentExpression)("=",n.id,n.init))}i=!0}else if((0,Li.isIfStatement)(s)){let n=s.consequent?co([s.consequent],e):(0,mp.buildUndefinedNode)(),a=s.alternate?co([s.alternate],e):(0,mp.buildUndefinedNode)();if(!n||!a)return;r.push((0,dp.conditionalExpression)(s.test,n,a))}else if((0,Li.isBlockStatement)(s)){let n=co(s.body,e);if(!n)return;r.push(n)}else if((0,Li.isEmptyStatement)(s))t.indexOf(s)===0&&(i=!0);else return;return i&&r.push((0,mp.buildUndefinedNode)()),r.length===1?r[0]:(0,dp.sequenceExpression)(r)}});var pT=k(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.default=CR;var wR=uT();function CR(t,e){if(!(t!=null&&t.length))return;let r=[],i=(0,wR.default)(t,r);if(i){for(let s of r)e.push(s);return i}}});var Me=k(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});var li={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(se,"__internal__deprecationWarning",{enumerable:!0,get:function(){return _6.default}});Object.defineProperty(se,"addComment",{enumerable:!0,get:function(){return RR.default}});Object.defineProperty(se,"addComments",{enumerable:!0,get:function(){return qR.default}});Object.defineProperty(se,"appendToMemberExpression",{enumerable:!0,get:function(){return t6.default}});Object.defineProperty(se,"assertNode",{enumerable:!0,get:function(){return _R.default}});Object.defineProperty(se,"buildMatchMemberExpression",{enumerable:!0,get:function(){return O6.default}});Object.defineProperty(se,"clone",{enumerable:!0,get:function(){return MR.default}});Object.defineProperty(se,"cloneDeep",{enumerable:!0,get:function(){return FR.default}});Object.defineProperty(se,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return BR.default}});Object.defineProperty(se,"cloneNode",{enumerable:!0,get:function(){return LR.default}});Object.defineProperty(se,"cloneWithoutLoc",{enumerable:!0,get:function(){return jR.default}});Object.defineProperty(se,"createFlowUnionType",{enumerable:!0,get:function(){return fT.default}});Object.defineProperty(se,"createTSUnionType",{enumerable:!0,get:function(){return DR.default}});Object.defineProperty(se,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return NR.default}});Object.defineProperty(se,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return fT.default}});Object.defineProperty(se,"ensureBlock",{enumerable:!0,get:function(){return YR.default}});Object.defineProperty(se,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return o6.default}});Object.defineProperty(se,"getBindingIdentifiers",{enumerable:!0,get:function(){return l6.default}});Object.defineProperty(se,"getFunctionName",{enumerable:!0,get:function(){return u6.default}});Object.defineProperty(se,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return c6.default}});Object.defineProperty(se,"inheritInnerComments",{enumerable:!0,get:function(){return $R.default}});Object.defineProperty(se,"inheritLeadingComments",{enumerable:!0,get:function(){return UR.default}});Object.defineProperty(se,"inheritTrailingComments",{enumerable:!0,get:function(){return WR.default}});Object.defineProperty(se,"inherits",{enumerable:!0,get:function(){return r6.default}});Object.defineProperty(se,"inheritsComments",{enumerable:!0,get:function(){return KR.default}});Object.defineProperty(se,"is",{enumerable:!0,get:function(){return h6.default}});Object.defineProperty(se,"isBinding",{enumerable:!0,get:function(){return d6.default}});Object.defineProperty(se,"isBlockScoped",{enumerable:!0,get:function(){return m6.default}});Object.defineProperty(se,"isImmutable",{enumerable:!0,get:function(){return y6.default}});Object.defineProperty(se,"isLet",{enumerable:!0,get:function(){return T6.default}});Object.defineProperty(se,"isNode",{enumerable:!0,get:function(){return g6.default}});Object.defineProperty(se,"isNodesEquivalent",{enumerable:!0,get:function(){return x6.default}});Object.defineProperty(se,"isPlaceholderType",{enumerable:!0,get:function(){return b6.default}});Object.defineProperty(se,"isReferenced",{enumerable:!0,get:function(){return S6.default}});Object.defineProperty(se,"isScope",{enumerable:!0,get:function(){return E6.default}});Object.defineProperty(se,"isSpecifierDefault",{enumerable:!0,get:function(){return P6.default}});Object.defineProperty(se,"isType",{enumerable:!0,get:function(){return v6.default}});Object.defineProperty(se,"isValidES3Identifier",{enumerable:!0,get:function(){return A6.default}});Object.defineProperty(se,"isValidIdentifier",{enumerable:!0,get:function(){return w6.default}});Object.defineProperty(se,"isVar",{enumerable:!0,get:function(){return C6.default}});Object.defineProperty(se,"matchesPattern",{enumerable:!0,get:function(){return I6.default}});Object.defineProperty(se,"prependToMemberExpression",{enumerable:!0,get:function(){return i6.default}});se.react=void 0;Object.defineProperty(se,"removeComments",{enumerable:!0,get:function(){return VR.default}});Object.defineProperty(se,"removeProperties",{enumerable:!0,get:function(){return s6.default}});Object.defineProperty(se,"removePropertiesDeep",{enumerable:!0,get:function(){return n6.default}});Object.defineProperty(se,"removeTypeDuplicates",{enumerable:!0,get:function(){return a6.default}});Object.defineProperty(se,"shallowEqual",{enumerable:!0,get:function(){return f6.default}});Object.defineProperty(se,"toBindingIdentifierName",{enumerable:!0,get:function(){return zR.default}});Object.defineProperty(se,"toBlock",{enumerable:!0,get:function(){return JR.default}});Object.defineProperty(se,"toComputedKey",{enumerable:!0,get:function(){return XR.default}});Object.defineProperty(se,"toExpression",{enumerable:!0,get:function(){return HR.default}});Object.defineProperty(se,"toIdentifier",{enumerable:!0,get:function(){return GR.default}});Object.defineProperty(se,"toKeyAlias",{enumerable:!0,get:function(){return QR.default}});Object.defineProperty(se,"toStatement",{enumerable:!0,get:function(){return ZR.default}});Object.defineProperty(se,"traverse",{enumerable:!0,get:function(){return uo.default}});Object.defineProperty(se,"traverseFast",{enumerable:!0,get:function(){return p6.default}});Object.defineProperty(se,"validate",{enumerable:!0,get:function(){return k6.default}});Object.defineProperty(se,"valueToNode",{enumerable:!0,get:function(){return e6.default}});var IR=dm(),kR=mm(),OR=oy(),_R=ly(),gp=cy();Object.keys(gp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===gp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return gp[t]}})});var NR=uy(),fT=hy(),DR=Ty(),xp=pu();Object.keys(xp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===xp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return xp[t]}})});var bp=Ht();Object.keys(bp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===bp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return bp[t]}})});var LR=oi(),MR=Py(),FR=vy(),BR=Ay(),jR=wy(),RR=Cy(),qR=xu(),$R=Pu(),UR=Au(),KR=ku(),WR=Cu(),VR=Iy(),Sp=ky();Object.keys(Sp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===Sp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return Sp[t]}})});var Ep=ys();Object.keys(Ep).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===Ep[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return Ep[t]}})});var YR=Oy(),zR=_y(),JR=Du(),XR=Ny(),HR=Dy(),GR=Fu(),QR=jy(),ZR=Ry(),e6=qy(),Pp=or();Object.keys(Pp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===Pp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return Pp[t]}})});var t6=$y(),r6=Ky(),i6=Wy(),s6=Uu(),n6=Wu(),a6=au(),o6=Vy(),l6=wn(),c6=Yy(),u6=Jy(),uo=Xy();Object.keys(uo).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===uo[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return uo[t]}})});var p6=qu(),f6=Ua(),h6=ds(),d6=Hy(),m6=Zy(),y6=eT(),T6=sp(),g6=iu(),x6=rT(),b6=Ic(),S6=iT(),E6=sT(),P6=aT(),v6=Wa(),A6=oT(),w6=ms(),C6=cT(),I6=Ec(),k6=Ja(),O6=vc(),vp=ht();Object.keys(vp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===vp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return vp[t]}})});var _6=hs(),N6=pT(),eae=se.react={isReactComponent:IR.default,isCompatTag:kR.default,buildChildren:OR.default};se.toSequenceExpression=N6.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 wp=k(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.isBindingIdentifier=t8;xt.isBlockScoped=a8;xt.isExpression=i8;xt.isFlow=p8;xt.isForAwaitStatement=d8;xt.isGenerated=c8;xt.isPure=u8;xt.isReferenced=n8;xt.isReferencedIdentifier=Z6;xt.isReferencedMemberExpression=e8;xt.isRestProperty=f8;xt.isScope=s8;xt.isSpreadProperty=h8;xt.isStatement=r8;xt.isUser=l8;xt.isVar=o8;var D6=Me(),{isBinding:L6,isBlockScoped:M6,isExportDeclaration:F6,isExpression:B6,isFlow:j6,isForStatement:R6,isForXStatement:q6,isIdentifier:hT,isImportDeclaration:$6,isImportSpecifier:U6,isJSXIdentifier:K6,isJSXMemberExpression:W6,isMemberExpression:V6,isRestElement:dT,isReferenced:Ap,isScope:Y6,isStatement:z6,isVar:J6,isVariableDeclaration:X6,react:H6,isForOfStatement:G6}=D6,{isCompatTag:Q6}=H6;function Z6(t){let{node:e,parent:r}=this;if(!hT(e,t)&&!W6(r,t))if(K6(e,t)){if(Q6(e.name))return!1}else return!1;return Ap(e,r,this.parentPath.parent)}function e8(){let{node:t,parent:e}=this;return V6(t)&&Ap(t,e)}function t8(){let{node:t,parent:e}=this,r=this.parentPath.parent;return hT(t)&&L6(t,e,r)}function r8(){let{node:t,parent:e}=this;return z6(t)?!(X6(t)&&(q6(e,{left:t})||R6(e,{init:t}))):!1}function i8(){return this.isIdentifier()?this.isReferencedIdentifier():B6(this.node)}function s8(){return Y6(this.node,this.parent)}function n8(){return Ap(this.node,this.parent)}function a8(){return M6(this.node)}function o8(){return J6(this.node)}function l8(){return this.node&&!!this.node.loc}function c8(){return!this.isUser()}function u8(t){return this.scope.isPure(this.node,t)}function p8(){let{node:t}=this;return j6(t)?!0:$6(t)?t.importKind==="type"||t.importKind==="typeof":F6(t)?t.exportKind==="type":U6(t)?t.importKind==="type"||t.importKind==="typeof":!1}function f8(){var t;return dT(this.node)&&((t=this.parentPath)==null?void 0:t.isObjectPattern())}function h8(){var t;return dT(this.node)&&((t=this.parentPath)==null?void 0:t.isObjectExpression())}function d8(){return G6(this.node,{await:!0})}xt.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},xt.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var po=k(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.environmentVisitor=E8;Fi.explode=AT;Fi.isExplodedVisitor=vT;Fi.merge=CT;Fi.verify=wT;var PT=yc(),m8=wp(),y8=Me(),mT=gr(),{DEPRECATED_KEYS:yT,DEPRECATED_ALIASES:TT,FLIPPED_ALIAS_KEYS:gT,TYPES:T8,__internal__deprecationWarning:xT}=y8;function g8(t){return t in PT}function vT(t){return t?._exploded}function AT(t){if(vT(t))return t;t._exploded=!0;for(let e of Object.keys(t)){if(Mi(e))continue;let r=e.split("|");if(r.length===1)continue;let i=t[e];delete t[e];for(let s of r)t[s]=i}wT(t),delete t.__esModule,x8(t),ET(t);for(let e of Object.keys(t)){if(Mi(e)||!g8(e))continue;let r=t[e];for(let s of Object.keys(r))r[s]=b8(e,r[s]);delete t[e];let i=PT[e];if(i!==null)for(let s of i)t[s]?Cn(t[s],r):t[s]=r;else Cn(t,r)}for(let e of Object.keys(t)){if(Mi(e))continue;let r=gT[e];if(e in yT){let s=yT[e];xT(e,s,"Visitor "),r=[s]}else if(e in TT){let s=TT[e];xT(e,s,"Visitor "),r=gT[s]}if(!r)continue;let i=t[e];delete t[e];for(let s of r){let n=t[s];n?Cn(n,i):t[s]=Object.assign({},i)}}for(let e of Object.keys(t))Mi(e)||ET(t[e]);return t}function wT(t){if(!t._verified){if(typeof t=="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 e of Object.keys(t)){if((e==="enter"||e==="exit")&&bT(e,t[e]),Mi(e))continue;if(!T8.includes(e))throw new Error(`You gave us a visitor for the node type ${e} but it's not a valid type in @babel/traverse 7.28.0`);let r=t[e];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")bT(`${e}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${e} that has the invalid property ${i}`)}t._verified=!0}}function bT(t,e){let r=[].concat(e);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${t} with type ${typeof i}`)}function CT(t,e=[],r){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let s=0;s<t.length;s++){let n=AT(t[s]),a=e[s],o=n;(a||r)&&(o=ST(o,a,r)),Cn(i,o);for(let l of Object.keys(n)){if(Mi(l))continue;let c=n[l];(a||r)&&(c=ST(c,a,r));let u=i[l]||(i[l]={});Cn(u,c)}}return i}function ST(t,e,r){let i={};for(let s of["enter","exit"]){let n=t[s];Array.isArray(n)&&(n=n.map(function(a){let o=a;return e&&(o=function(l){a.call(e,l,e)}),r&&(o=r(e?.key,s,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[s]=n)}return i}function x8(t){for(let e of Object.keys(t)){if(Mi(e))continue;let r=t[e];typeof r=="function"&&(t[e]={enter:r})}}function ET(t){t.enter&&!Array.isArray(t.enter)&&(t.enter=[t.enter]),t.exit&&!Array.isArray(t.exit)&&(t.exit=[t.exit])}function b8(t,e){let r=`is${t}`,i=m8[r],s=function(n){if(i.call(n))return e.apply(this,arguments)};return s.toString=()=>e.toString(),s}function Mi(t){return t[0]==="_"||t==="enter"||t==="exit"||t==="shouldSkip"||t==="denylist"||t==="noScope"||t==="skipKeys"||t==="blacklist"}function Cn(t,e){for(let r of["enter","exit"])e[r]&&(t[r]=[].concat(t[r]||[],e[r]))}var S8={FunctionParent(t){t.isArrowFunctionExpression()||(t.skip(),t.isMethod()&&(t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():mT.requeueComputedKeyAndDecorators.call(t)))},Property(t){t.isObjectProperty()||(t.skip(),t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():mT.requeueComputedKeyAndDecorators.call(t))}};function E8(t){return CT([S8,t])}});var IT=k(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.default=void 0;var fo=Me(),P8=fo,v8=mo(),A8=po(),w8=gr(),{getAssignmentIdentifiers:C8}=P8,I8={ReferencedIdentifier({node:t},e){t.name===e.oldName&&(t.name=e.newName)},Scope(t,e){t.scope.bindingIdentifierEquals(e.oldName,e.binding.identifier)||(t.skip(),t.isMethod()&&(t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():w8.requeueComputedKeyAndDecorators.call(t)))},ObjectProperty({node:t,scope:e},r){let{name:i}=t.key;if(t.shorthand&&(i===r.oldName||i===r.newName)&&e.getBindingIdentifier(i)===r.binding.identifier){t.shorthand=!1;{var s;(s=t.extra)!=null&&s.shorthand&&(t.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(t,e){if(t.isVariableDeclaration())return;let r=t.isAssignmentExpression()?C8(t.node):t.getOuterBindingIdentifiers();for(let i in r)i===e.oldName&&(r[i].name=e.newName)}},Cp=class{constructor(e,r,i){this.newName=i,this.oldName=r,this.binding=e}maybeConvertFromExportDeclaration(e){let r=e.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if(fo.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:r,newName:i}=this,{scope:s,path:n}=e,a=n.find(c=>c.isDeclaration()||c.isFunctionExpression()||c.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===e.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:!0};fo.isMethod(o)&&(o.computed&&(l.key=!0),fo.isObjectMethod(o)||(l.decorators=!0)),(0,v8.traverseNode)(o,(0,A8.explode)(I8),s,this,s.path,l),arguments[0]||(s.removeOwnBinding(r),s.bindings[i]=e,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};ho.default=Cp});var kT=k(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.default=void 0;var Ip=class{constructor({identifier:e,scope:r,path:i,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&k8(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,!this.constantViolations.includes(e)&&this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}};yo.default=Ip;function k8(t){let e=!t.isVariableDeclarator()||t.node.init;for(let{parentPath:r,key:i}=t;r;{parentPath:r,key:i}=r){if(r.isFunctionParent())return!1;if(i==="left"&&r.isForXStatement()||e&&i==="body"&&r.isLoop())return!0}return!1}});var Bi=k(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.clear=_8;er.clearPath=OT;er.clearScope=_T;er.getCachedPaths=N8;er.getOrCreateCachedPaths=D8;er.scope=er.path=void 0;var To=er.path=new WeakMap,O8=er.scope=new WeakMap;function _8(){OT(),_T()}function OT(){er.path=To=new WeakMap}function _T(){er.scope=O8=new WeakMap}function N8(t){let{parent:e,parentPath:r}=t;return To.get(e)}function D8(t,e){let r=To.get(t);return r||To.set(t,r=new Map),r}});var NT=k((oae,L8)=>{L8.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var DT=k((lae,M8)=>{M8.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 Dp=k(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.default=void 0;var F8=IT(),UT=kn(),B8=kT(),KT=Me(),WT=KT,LT=Bi(),j8=NT(),R8=DT(),{assignmentExpression:q8,callExpression:MT,cloneNode:FT,getBindingIdentifiers:VT,identifier:Ri,isArrayExpression:YT,isBinary:$8,isCallExpression:BT,isClass:U8,isClassBody:K8,isClassDeclaration:W8,isExportAllDeclaration:zT,isExportDefaultDeclaration:V8,isExportNamedDeclaration:kp,isFunctionDeclaration:Y8,isIdentifier:ji,isImportDeclaration:Op,isLiteral:z8,isMemberExpression:J8,isMethod:X8,isModuleSpecifier:H8,isNullLiteral:G8,isObjectExpression:Q8,isProperty:Z8,isPureish:e5,isRegExpLiteral:t5,isSuper:r5,isTaggedTemplateExpression:i5,isTemplateLiteral:JT,isThisExpression:jT,isUnaryExpression:s5,isVariableDeclaration:n5,expressionStatement:a5,matchesPattern:RT,memberExpression:_p,numericLiteral:o5,toIdentifier:l5,variableDeclaration:c5,variableDeclarator:u5,isRecordExpression:p5,isTupleExpression:f5,isObjectProperty:h5,isTopicReference:qT,isMetaProperty:d5,isPrivateName:m5,isExportDeclaration:y5,buildUndefinedNode:T5,sequenceExpression:g5}=KT;function st(t,e){switch(t?.type){default:if(Op(t)||y5(t)){var r;if((zT(t)||kp(t)||Op(t))&&t.source)st(t.source,e);else if((kp(t)||Op(t))&&(r=t.specifiers)!=null&&r.length)for(let i of t.specifiers)st(i,e);else(V8(t)||kp(t))&&t.declaration&&st(t.declaration,e)}else H8(t)?st(t.local,e):z8(t)&&!G8(t)&&!t5(t)&&!JT(t)&&e.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":st(t.object,e),st(t.property,e);break;case"Identifier":case"JSXIdentifier":e.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":st(t.callee,e);break;case"ObjectExpression":case"ObjectPattern":for(let i of t.properties)st(i,e);break;case"SpreadElement":case"RestElement":st(t.argument,e);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":st(t.key,e);break;case"ThisExpression":e.push("this");break;case"Super":e.push("super");break;case"Import":case"ImportExpression":e.push("import");break;case"DoExpression":e.push("do");break;case"YieldExpression":e.push("yield"),st(t.argument,e);break;case"AwaitExpression":e.push("await"),st(t.argument,e);break;case"AssignmentExpression":st(t.left,e);break;case"VariableDeclarator":st(t.id,e);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":st(t.id,e);break;case"PrivateName":st(t.id,e);break;case"ParenthesizedExpression":st(t.expression,e);break;case"UnaryExpression":case"UpdateExpression":st(t.argument,e);break;case"MetaProperty":st(t.meta,e),st(t.property,e);break;case"JSXElement":st(t.openingElement,e);break;case"JSXOpeningElement":st(t.name,e);break;case"JSXFragment":st(t.openingFragment,e);break;case"JSXOpeningFragment":e.push("Fragment");break;case"JSXNamespacedName":st(t.namespace,e),st(t.name,e);break}}function $T(t){t.references=Object.create(null),t.uids=Object.create(null),t.bindings=Object.create(null),t.globals=Object.create(null)}Np=Symbol.for("should not be considered a local binding");var Np,x5={ForStatement(t){let e=t.get("init");if(e.isVar()){let{scope:r}=t;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",e)}},Declaration(t){if(t.isBlockScoped()||t.isImportDeclaration()||t.isExportDeclaration())return;(t.scope.getFunctionParent()||t.scope.getProgramParent()).registerDeclaration(t)},ImportDeclaration(t){t.scope.getBlockParent().registerDeclaration(t)},TSImportEqualsDeclaration(t){t.scope.getBlockParent().registerDeclaration(t)},ReferencedIdentifier(t,e){WT.isTSQualifiedName(t.parent)&&t.parent.right===t.node||t.parentPath.isTSImportEqualsDeclaration()||e.references.push(t)},ForXStatement(t,e){let r=t.get("left");if(r.isPattern()||r.isIdentifier())e.constantViolations.push(t);else if(r.isVar()){let{scope:i}=t;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(t){let{node:e,scope:r}=t;if(zT(e))return;let i=e.declaration;if(W8(i)||Y8(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n?.reference(t)}else if(n5(i))for(let s of i.declarations)for(let n of Object.keys(VT(s))){let a=r.getBinding(n);a?.reference(t)}}},LabeledStatement(t){t.scope.getBlockParent().registerDeclaration(t)},AssignmentExpression(t,e){e.assignments.push(t)},UpdateExpression(t,e){e.constantViolations.push(t)},UnaryExpression(t,e){t.node.operator==="delete"&&e.constantViolations.push(t)},BlockScoped(t){let e=t.scope;if(e.path===t&&(e=e.parent),e.getBlockParent().registerDeclaration(t),t.isClassDeclaration()&&t.node.id){let s=t.node.id.name;t.scope.bindings[s]=t.scope.parent.getBinding(s)}},CatchClause(t){t.scope.registerBinding("let",t)},Function(t){let e=t.get("params");for(let r of e)t.scope.registerBinding("param",r);t.isFunctionExpression()&&t.node.id&&!t.node.id[Np]&&t.scope.registerBinding("local",t.get("id"),t)},ClassExpression(t){t.node.id&&!t.node.id[Np]&&t.scope.registerBinding("local",t.get("id"),t)},TSTypeAnnotation(t){t.skip()}},In,b5=0,xr=class t{constructor(e){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}=e,i=LT.scope.get(r);if(i?.path===e)return i;LT.scope.set(r,this),this.uid=b5++,this.block=r,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;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(e=r)==null?void 0:e.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(e){let r=this.generateUidIdentifier(e);return this.push({id:r}),FT(r)}generateUidIdentifier(e){return Ri(this.generateUid(e))}generateUid(e="temp"){e=l5(e).replace(/^_+/,"").replace(/\d+$/g,"");let r,i=0;do r=`_${e}`,i>=11?r+=i-1:i>=9?r+=i-9:i>=1&&(r+=i+1),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}generateUidBasedOnNode(e,r){let i=[];st(e,i);let s=i.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,r){return Ri(this.generateUidBasedOnNode(e,r))}isStatic(e){if(jT(e)||r5(e)||qT(e))return!0;if(ji(e)){let r=this.getBinding(e.name);return r?r.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,r){if(this.isStatic(e))return null;{let i=this.generateUidIdentifierBasedOnNode(e);return r?i:(this.push({id:i}),FT(i))}}checkBlockScopedCollisions(e,r,i,s){if(r==="param"||e.kind==="local")return;if(r==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&r==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${i}"`,TypeError)}rename(e,r){let i=this.getBinding(e);i&&(r||(r=this.generateUidIdentifier(e).name),new F8.default(i,e,r).rename(arguments[2]))}dump(){let e="-".repeat(60);console.log(e);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(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let r=e.get("declarations"),{kind:i}=e.node;for(let s of r)this.registerBinding(i==="using"||i==="await using"?"const":i,s)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let r=e.node.importKind==="type"||e.node.importKind==="typeof",i=e.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(e.isExportDeclaration()){let r=e.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return T5()}registerConstantViolation(e){let r=e.getAssignmentIdentifiers();for(let s of Object.keys(r)){var i;(i=this.getBinding(s))==null||i.reassign(e)}}registerBinding(e,r,i=r){if(!e)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(e,o);return}let s=this.getProgramParent(),n=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let o of n[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,e,a,o)}l?l.reassign(i):this.bindings[a]=new B8.default({identifier:o,scope:this,path:i,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let r=this;do if(r.uids[e])return!0;while(r=r.parent);return!1}}hasGlobal(e){let r=this;do if(r.globals[e])return!0;while(r=r.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,r){if(ji(e)){let a=this.getBinding(e.name);return a?r?a.constant:!0:!1}else{if(jT(e)||d5(e)||qT(e)||m5(e))return!0;if(U8(e)){var i;return e.superClass&&!this.isPure(e.superClass,r)||((i=e.decorators)==null?void 0:i.length)>0?!1:this.isPure(e.body,r)}else if(K8(e)){for(let a of e.body)if(!this.isPure(a,r))return!1;return!0}else{if($8(e))return this.isPure(e.left,r)&&this.isPure(e.right,r);if(YT(e)||f5(e)){for(let a of e.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(Q8(e)||p5(e)){for(let a of e.properties)if(!this.isPure(a,r))return!1;return!0}else if(X8(e)){var s;return!(e.computed&&!this.isPure(e.key,r)||((s=e.decorators)==null?void 0:s.length)>0)}else if(Z8(e)){var n;return!(e.computed&&!this.isPure(e.key,r)||((n=e.decorators)==null?void 0:n.length)>0||(h5(e)||e.static)&&e.value!==null&&!this.isPure(e.value,r))}else{if(s5(e))return this.isPure(e.argument,r);if(JT(e)){for(let a of e.expressions)if(!this.isPure(a,r))return!1;return!0}else return i5(e)?RT(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,r):J8(e)?!e.computed&&ji(e.object)&&e.object.name==="Symbol"&&ji(e.property)&&e.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):BT(e)?RT(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&e.arguments.length===1&&WT.isStringLiteral(e.arguments[0]):e5(e)}}}}setData(e,r){return this.data[e]=r}getData(e){let r=this;do{let i=r.data[e];if(i!=null)return i}while(r=r.parent)}removeData(e){let r=this;do r.data[e]!=null&&(r.data[e]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let e=this.path;$T(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let i=r,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,In||(In=UT.default.visitors.merge([{Scope(n){$T(n.scope)}},x5])),e.type!=="Program"){for(let a of In.enter)a.call(s,e,s);let n=In[e.type];if(n)for(let a of n.enter)a.call(s,e,s)}e.traverse(In,s),this.crawling=!1;for(let n of s.assignments){let a=n.getAssignmentIdentifiers();for(let o of Object.keys(a))n.scope.getBinding(o)||i.addGlobal(a[o]);n.scope.registerConstantViolation(n)}for(let n of s.references){let a=n.scope.getBinding(n.node.name);a?a.reference(n):i.addGlobal(n.node)}for(let n of s.constantViolations)n.scope.registerConstantViolation(n)}push(e){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}=e;if(!i&&!s&&(n==="var"||n==="let")&&r.isFunction()&&!r.node.name&&BT(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&ji(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=e._blockHoist==null?2:e._blockHoist,l=`declaration:${n}:${o}`,c=!s&&r.getData(l);if(!c){let b=c5(n,[]);b._blockHoist=o,[c]=r.unshiftContainer("body",[b]),s||r.setData(l,c)}let u=u5(a,i),d=c.node.declarations.push(u);r.scope.registerBinding(n,c.get("declarations")[d-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in e||(e[i]=r.bindings[i]);r=r.parent}while(r);return e}bindingIdentifierEquals(e,r){return this.getBindingIdentifier(e)===r}getBinding(e){let r=this,i;do{let n=r.getOwnBinding(e);if(n){var s;if(!((s=i)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&e==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var r;return(r=this.getBinding(e))==null?void 0:r.identifier}getOwnBindingIdentifier(e){let r=this.bindings[e];return r?.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,r){if(!e)return!1;let i,s,n;typeof r=="object"?(i=r.noGlobals,s=r.noUids,n=r.upToScope):typeof r=="boolean"&&(i=r);let a=this;do{if(n===a)break;if(a.hasOwnBinding(e))return!0}while(a=a.parent);return!!(!s&&this.hasUid(e)||!i&&t.globals.includes(e)||!i&&t.contextVariables.includes(e))}parentHasBinding(e,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(e,r)}moveBindingTo(e,r){let i=this.getBinding(e);i&&(i.scope.removeOwnBinding(e),i.scope=r,r.bindings[e]=i)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var r;(r=this.getBinding(e))==null||r.scope.removeOwnBinding(e);{let i=this;do i.uids[e]&&(i.uids[e]=!1);while(i=i.parent)}}hoistVariables(e=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 u of a.declarations){l??(l=u.id),u.init&&c.push(q8("=",u.id,u.init));let d=Object.keys(VT(u,!1,!0,!0));for(let b of d)e(Ri(b),u.init!=null)}if(o.parentPath.isFor({left:a}))o.replaceWith(l);else if(c.length===0)o.remove();else{let u=c.length===1?c[0]:g5(c);o.parentPath.isForStatement({init:a})?o.replaceWith(u):o.replaceWith(a5(u))}}}};go.default=xr;xr.globals=[...j8,...R8];xr.contextVariables=["arguments","undefined","Infinity","NaN"];xr.prototype._renameFromMap=function(e,r,i,s){e[r]&&(e[i]=s,e[r]=null)},xr.prototype.traverse=function(t,e,r){(0,UT.default)(t,e,this,r,this.path)},xr.prototype._generateUid=function(e,r){let i=e;return r>1&&(i+=r),`_${i}`},xr.prototype.toArray=function(e,r,i){if(ji(e)){let a=this.getBinding(e.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return e}if(YT(e))return e;if(ji(e,{name:"arguments"}))return MT(_p(_p(_p(Ri("Array"),Ri("prototype")),Ri("slice")),Ri("call")),[e]);let s,n=[e];return r===!0?s="toConsumableArray":typeof r=="number"?(n.push(o5(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),MT(this.path.hub.addHelper(s),n)},xr.prototype.getAllBindingsOfKind=function(...e){let r=Object.create(null);for(let i of e){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(xr.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Fp=k((Lp,Mp)=>{(function(t,e,r){typeof Lp=="object"&&typeof Mp<"u"?e(Mp):typeof define=="function"&&define.amd?define(["module"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(r={exports:{}}),t.sourcemapCodec="default"in r.exports?r.exports.default:r.exports)})(Lp,function(t){"use strict";var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=(ne,ie)=>{for(var O in ie)e(ne,O,{get:ie[O],enumerable:!0})},a=(ne,ie,O,F)=>{if(ie&&typeof ie=="object"||typeof ie=="function")for(let D of i(ie))!s.call(ne,D)&&D!==O&&e(ne,D,{get:()=>ie[D],enumerable:!(F=r(ie,D))||F.enumerable});return ne},o=ne=>a(e({},"__esModule",{value:!0}),ne),l={};n(l,{decode:()=>ve,decodeGeneratedRanges:()=>Ie,decodeOriginalScopes:()=>W,encode:()=>Ct,encodeGeneratedRanges:()=>We,encodeOriginalScopes:()=>ke}),t.exports=o(l);var c=44,u=59,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=new Uint8Array(64),E=new Uint8Array(128);for(let ne=0;ne<d.length;ne++){let ie=d.charCodeAt(ne);b[ne]=ie,E[ie]=ne}function v(ne,ie){let O=0,F=0,D=0;do{let Q=ne.next();D=E[Q],O|=(D&31)<<F,F+=5}while(D&32);let ee=O&1;return O>>>=1,ee&&(O=-2147483648|-O),ie+O}function A(ne,ie,O){let F=ie-O;F=F<0?-F<<1|1:F<<1;do{let D=F&31;F>>>=5,F>0&&(D|=32),ne.write(b[D])}while(F>0);return ie}function I(ne,ie){return ne.pos>=ie?!1:ne.peek()!==c}var _=1024*16,$=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(ne){return Buffer.from(ne.buffer,ne.byteOffset,ne.byteLength).toString()}}:{decode(ne){let ie="";for(let O=0;O<ne.length;O++)ie+=String.fromCharCode(ne[O]);return ie}},X=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(_)}write(ne){let{buffer:ie}=this;ie[this.pos++]=ne,this.pos===_&&(this.out+=$.decode(ie),this.pos=0)}flush(){let{buffer:ne,out:ie,pos:O}=this;return O>0?ie+$.decode(ne.subarray(0,O)):ie}},N=class{constructor(ne){this.pos=0,this.buffer=ne}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(ne){let{buffer:ie,pos:O}=this,F=ie.indexOf(ne,O);return F===-1?ie.length:F}},U=[];function W(ne){let{length:ie}=ne,O=new N(ne),F=[],D=[],ee=0;for(;O.pos<ie;O.pos++){ee=v(O,ee);let Q=v(O,0);if(!I(O,ie)){let te=D.pop();te[2]=ee,te[3]=Q;continue}let ae=v(O,0),R=v(O,0)&1?[ee,Q,0,0,ae,v(O,0)]:[ee,Q,0,0,ae],Y=U;if(I(O,ie)){Y=[];do{let te=v(O,0);Y.push(te)}while(I(O,ie))}R.vars=Y,F.push(R),D.push(R)}return F}function ke(ne){let ie=new X;for(let O=0;O<ne.length;)O=Ce(ne,O,ie,[0]);return ie.flush()}function Ce(ne,ie,O,F){let D=ne[ie],{0:ee,1:Q,2:ae,3:j,4:B,vars:R}=D;ie>0&&O.write(c),F[0]=A(O,ee,F[0]),A(O,Q,0),A(O,B,0);let Y=D.length===6?1:0;A(O,Y,0),D.length===6&&A(O,D[5],0);for(let te of R)A(O,te,0);for(ie++;ie<ne.length;){let te=ne[ie],{0:Z,1:ue}=te;if(Z>ae||Z===ae&&ue>=j)break;ie=Ce(ne,ie,O,F)}return O.write(c),F[0]=A(O,ae,F[0]),A(O,j,0),ie}function Ie(ne){let{length:ie}=ne,O=new N(ne),F=[],D=[],ee=0,Q=0,ae=0,j=0,B=0,R=0,Y=0,te=0;do{let Z=O.indexOf(";"),ue=0;for(;O.pos<Z;O.pos++){if(ue=v(O,ue),!I(O,Z)){let he=D.pop();he[2]=ee,he[3]=ue;continue}let ge=v(O,0),ot=ge&1,St=ge&2,It=ge&4,H=null,G=U,pe;if(ot){let he=v(O,Q);ae=v(O,Q===he?ae:0),Q=he,pe=[ee,ue,0,0,he,ae]}else pe=[ee,ue,0,0];if(pe.isScope=!!It,St){let he=j,_e=B;j=v(O,j);let Ne=he===j;B=v(O,Ne?B:0),R=v(O,Ne&&_e===B?R:0),H=[j,B,R]}if(pe.callsite=H,I(O,Z)){G=[];do{Y=ee,te=ue;let he=v(O,0),_e;if(he<-1){_e=[[v(O,0)]];for(let Ne=-1;Ne>he;Ne--){let Ye=Y;Y=v(O,Y),te=v(O,Y===Ye?te:0);let kt=v(O,0);_e.push([kt,Y,te])}}else _e=[[he]];G.push(_e)}while(I(O,Z))}pe.bindings=G,F.push(pe),D.push(pe)}ee++,O.pos=Z+1}while(O.pos<ie);return F}function We(ne){if(ne.length===0)return"";let ie=new X;for(let O=0;O<ne.length;)O=ft(ne,O,ie,[0,0,0,0,0,0,0]);return ie.flush()}function ft(ne,ie,O,F){let D=ne[ie],{0:ee,1:Q,2:ae,3:j,isScope:B,callsite:R,bindings:Y}=D;F[0]<ee?(f(O,F[0],ee),F[0]=ee,F[1]=0):ie>0&&O.write(c),F[1]=A(O,D[1],F[1]);let te=(D.length===6?1:0)|(R?2:0)|(B?4:0);if(A(O,te,0),D.length===6){let{4:Z,5:ue}=D;Z!==F[2]&&(F[3]=0),F[2]=A(O,Z,F[2]),F[3]=A(O,ue,F[3])}if(R){let{0:Z,1:ue,2:ge}=D.callsite;Z!==F[4]?(F[5]=0,F[6]=0):ue!==F[5]&&(F[6]=0),F[4]=A(O,Z,F[4]),F[5]=A(O,ue,F[5]),F[6]=A(O,ge,F[6])}if(Y)for(let Z of Y){Z.length>1&&A(O,-Z.length,0);let ue=Z[0][0];A(O,ue,0);let ge=ee,ot=Q;for(let St=1;St<Z.length;St++){let It=Z[St];ge=A(O,It[1],ge),ot=A(O,It[2],ot),A(O,It[0],0)}}for(ie++;ie<ne.length;){let Z=ne[ie],{0:ue,1:ge}=Z;if(ue>ae||ue===ae&&ge>=j)break;ie=ft(ne,ie,O,F)}return F[0]<ae?(f(O,F[0],ae),F[0]=ae,F[1]=0):O.write(c),F[1]=A(O,j,F[1]),ie}function f(ne,ie,O){do ne.write(u);while(++ie<O)}function ve(ne){let{length:ie}=ne,O=new N(ne),F=[],D=0,ee=0,Q=0,ae=0,j=0;do{let B=O.indexOf(";"),R=[],Y=!0,te=0;for(D=0;O.pos<B;){let Z;D=v(O,D),D<te&&(Y=!1),te=D,I(O,B)?(ee=v(O,ee),Q=v(O,Q),ae=v(O,ae),I(O,B)?(j=v(O,j),Z=[D,ee,Q,ae,j]):Z=[D,ee,Q,ae]):Z=[D],R.push(Z),O.pos++}Y||Oe(R),F.push(R),O.pos=B+1}while(O.pos<=ie);return F}function Oe(ne){ne.sort(tt)}function tt(ne,ie){return ne[0]-ie[0]}function Ct(ne){let ie=new X,O=0,F=0,D=0,ee=0;for(let Q=0;Q<ne.length;Q++){let ae=ne[Q];if(Q>0&&ie.write(u),ae.length===0)continue;let j=0;for(let B=0;B<ae.length;B++){let R=ae[B];B>0&&ie.write(c),j=A(ie,R[0],j),R.length!==1&&(O=A(ie,R[1],O),F=A(ie,R[2],F),D=A(ie,R[3],D),R.length!==4&&(ee=A(ie,R[4],ee)))}}return ie.flush()}})});var XT=k((Bp,jp)=>{(function(t,e){typeof Bp=="object"&&typeof jp<"u"?jp.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.resolveURI=e())})(Bp,function(){"use strict";let t=/^[\w+.-]+:\/\//,e=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(I){return t.test(I)}function s(I){return I.startsWith("//")}function n(I){return I.startsWith("/")}function a(I){return I.startsWith("file:")}function o(I){return/^[.?#]/.test(I)}function l(I){let _=e.exec(I);return u(_[1],_[2]||"",_[3],_[4]||"",_[5]||"/",_[6]||"",_[7]||"")}function c(I){let _=r.exec(I),$=_[2];return u("file:","",_[1]||"","",n($)?$:"/"+$,_[3]||"",_[4]||"")}function u(I,_,$,X,N,U,W){return{scheme:I,user:_,host:$,port:X,path:N,query:U,hash:W,type:7}}function d(I){if(s(I)){let $=l("http:"+I);return $.scheme="",$.type=6,$}if(n(I)){let $=l("http://foo.com"+I);return $.scheme="",$.host="",$.type=5,$}if(a(I))return c(I);if(i(I))return l(I);let _=l("http://foo.com/"+I);return _.scheme="",_.host="",_.type=I?I.startsWith("?")?3:I.startsWith("#")?2:4:1,_}function b(I){if(I.endsWith("/.."))return I;let _=I.lastIndexOf("/");return I.slice(0,_+1)}function E(I,_){v(_,_.type),I.path==="/"?I.path=_.path:I.path=b(_.path)+I.path}function v(I,_){let $=_<=4,X=I.path.split("/"),N=1,U=0,W=!1;for(let Ce=1;Ce<X.length;Ce++){let Ie=X[Ce];if(!Ie){W=!0;continue}if(W=!1,Ie!=="."){if(Ie===".."){U?(W=!0,U--,N--):$&&(X[N++]=Ie);continue}X[N++]=Ie,U++}}let ke="";for(let Ce=1;Ce<N;Ce++)ke+="/"+X[Ce];(!ke||W&&!ke.endsWith("/.."))&&(ke+="/"),I.path=ke}function A(I,_){if(!I&&!_)return"";let $=d(I),X=$.type;if(_&&X!==7){let U=d(_),W=U.type;switch(X){case 1:$.hash=U.hash;case 2:$.query=U.query;case 3:case 4:E($,U);case 5:$.user=U.user,$.host=U.host,$.port=U.port;case 6:$.scheme=U.scheme}W>X&&(X=W)}v($,X);let N=$.query+$.hash;switch(X){case 2:case 3:return N;case 4:{let U=$.path.slice(1);return U?o(_||I)&&!o(U)?"./"+U+N:U+N:N||"."}case 5:return $.path+N;default:return $.scheme+"//"+$.user+$.host+$.port+$.path+N}}return A})});var $p=k((Rp,qp)=>{(function(t,e,r){typeof Rp=="object"&&typeof qp<"u"?e(qp,XT(),Fp()):typeof define=="function"&&define.amd?define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(r={exports:{}},t.resolveURI,t.sourcemapCodec),t.traceMapping="default"in r.exports?r.exports.default:r.exports)})(Rp,function(t,e,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(M,V)=>function(){return V||(0,M[a(M)[0]])((V={exports:{}}).exports,V),V.exports},u=(M,V)=>{for(var z in V)s(M,z,{get:V[z],enumerable:!0})},d=(M,V,z,oe)=>{if(V&&typeof V=="object"||typeof V=="function")for(let Ae of a(V))!l.call(M,Ae)&&Ae!==z&&s(M,Ae,{get:()=>V[Ae],enumerable:!(oe=n(V,Ae))||oe.enumerable});return M},b=(M,V,z)=>(z=M!=null?i(o(M)):{},d(V||!M||!M.__esModule?s(z,"default",{value:M,enumerable:!0}):z,M)),E=M=>d(s({},"__esModule",{value:!0}),M),v=c({"umd:@jridgewell/sourcemap-codec"(M,V){V.exports=r}}),A=c({"umd:@jridgewell/resolve-uri"(M,V){V.exports=e}}),I={};u(I,{AnyMap:()=>R,FlattenMap:()=>R,GREATEST_LOWER_BOUND:()=>It,LEAST_UPPER_BOUND:()=>St,TraceMap:()=>H,allGeneratedPositionsFor:()=>kt,decodedMap:()=>Ti,decodedMappings:()=>he,eachMapping:()=>rr,encodedMap:()=>Xi,encodedMappings:()=>pe,generatedPositionFor:()=>Ye,isIgnored:()=>mi,originalPositionFor:()=>Ne,presortedDecodedMap:()=>yi,sourceContentFor:()=>Ji,traceSegment:()=>_e}),t.exports=E(I);var _=b(v()),$=b(A());function X(M){if(!M)return"";let V=M.lastIndexOf("/");return M.slice(0,V+1)}function N(M,V){let z=X(M),oe=V?V+"/":"";return Ae=>(0,$.default)(oe+(Ae||""),z)}var U=0,W=1,ke=2,Ce=3,Ie=4,We=1,ft=2;function f(M,V){let z=ve(M,0);if(z===M.length)return M;V||(M=M.slice());for(let oe=z;oe<M.length;oe=ve(M,oe+1))M[oe]=tt(M[oe],V);return M}function ve(M,V){for(let z=V;z<M.length;z++)if(!Oe(M[z]))return z;return M.length}function Oe(M){for(let V=1;V<M.length;V++)if(M[V][U]<M[V-1][U])return!1;return!0}function tt(M,V){return V||(M=M.slice()),M.sort(Ct)}function Ct(M,V){return M[U]-V[U]}var ne=!1;function ie(M,V,z,oe){for(;z<=oe;){let Ae=z+(oe-z>>1),xe=M[Ae][U]-V;if(xe===0)return ne=!0,Ae;xe<0?z=Ae+1:oe=Ae-1}return ne=!1,z-1}function O(M,V,z){for(let oe=z+1;oe<M.length&&M[oe][U]===V;z=oe++);return z}function F(M,V,z){for(let oe=z-1;oe>=0&&M[oe][U]===V;z=oe--);return z}function D(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ee(M,V,z,oe){let{lastKey:Ae,lastNeedle:xe,lastIndex:Ve}=z,et=0,je=M.length-1;if(oe===Ae){if(V===xe)return ne=Ve!==-1&&M[Ve][U]===V,Ve;V>=xe?et=Ve===-1?0:Ve:je=Ve}return z.lastKey=oe,z.lastNeedle=V,z.lastIndex=ie(M,V,et,je)}function Q(M,V){let z=V.map(j);for(let oe=0;oe<M.length;oe++){let Ae=M[oe];for(let xe=0;xe<Ae.length;xe++){let Ve=Ae[xe];if(Ve.length===1)continue;let et=Ve[W],je=Ve[ke],rt=Ve[Ce],Yt=z[et],lt=Yt[je]||(Yt[je]=[]),Et=V[et],Qt=O(lt,rt,ee(lt,rt,Et,je));Et.lastIndex=++Qt,ae(lt,Qt,[rt,oe,Ve[U]])}}return z}function ae(M,V,z){for(let oe=M.length;oe>V;oe--)M[oe]=M[oe-1];M[V]=z}function j(){return{__proto__:null}}function B(M){return typeof M=="string"?JSON.parse(M):M}var R=function(M,V){let z=B(M);if(!("sections"in z))return new H(z,V);let oe=[],Ae=[],xe=[],Ve=[],et=[];Y(z,V,oe,Ae,xe,Ve,et,0,0,1/0,1/0);let je={version:3,file:z.file,names:Ve,sources:Ae,sourcesContent:xe,mappings:oe,ignoreList:et};return yi(je)};function Y(M,V,z,oe,Ae,xe,Ve,et,je,rt,Yt){let{sections:lt}=M;for(let Et=0;Et<lt.length;Et++){let{map:Qt,offset:Pr}=lt[Et],xi=rt,Hi=Yt;if(Et+1<lt.length){let Gi=lt[Et+1].offset;xi=Math.min(rt,et+Gi.line),xi===rt?Hi=Math.min(Yt,je+Gi.column):xi<rt&&(Hi=je+Gi.column)}te(Qt,V,z,oe,Ae,xe,Ve,et+Pr.line,je+Pr.column,xi,Hi)}}function te(M,V,z,oe,Ae,xe,Ve,et,je,rt,Yt){let lt=B(M);if("sections"in lt)return Y(...arguments);let Et=new H(lt,V),Qt=oe.length,Pr=xe.length,xi=he(Et),{resolvedSources:Hi,sourcesContent:Gi,ignoreList:el}=Et;if(Z(oe,Hi),Z(xe,Et.names),Gi)Z(Ae,Gi);else for(let ir=0;ir<Hi.length;ir++)Ae.push(null);if(el)for(let ir=0;ir<el.length;ir++)Ve.push(el[ir]+Qt);for(let ir=0;ir<xi.length;ir++){let tl=et+ir;if(tl>rt)return;let mh=ue(z,tl),hb=ir===0?je:0,yh=xi[ir];for(let rl=0;rl<yh.length;rl++){let bi=yh[rl],zn=hb+bi[U];if(tl===rt&&zn>=Yt)return;if(bi.length===1){mh.push([zn]);continue}let Th=Qt+bi[W],gh=bi[ke],xh=bi[Ce];mh.push(bi.length===4?[zn,Th,gh,xh]:[zn,Th,gh,xh,Pr+bi[Ie]])}}}function Z(M,V){for(let z=0;z<V.length;z++)M.push(V[z])}function ue(M,V){for(let z=M.length;z<=V;z++)M[z]=[];return M[V]}var ge="`line` must be greater than 0 (lines start at line 1)",ot="`column` must be greater than or equal to 0 (columns start at column 0)",St=-1,It=1,H=class{constructor(M,V){let z=typeof M=="string";if(!z&&M._decodedMemo)return M;let oe=B(M),{version:Ae,file:xe,names:Ve,sourceRoot:et,sources:je,sourcesContent:rt}=oe;this.version=Ae,this.file=xe,this.names=Ve||[],this.sourceRoot=et,this.sources=je,this.sourcesContent=rt,this.ignoreList=oe.ignoreList||oe.x_google_ignoreList||void 0;let Yt=N(V,et);this.resolvedSources=je.map(Yt);let{mappings:lt}=oe;if(typeof lt=="string")this._encoded=lt,this._decoded=void 0;else if(Array.isArray(lt))this._encoded=void 0,this._decoded=f(lt,z);else throw oe.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(oe)}`);this._decodedMemo=D(),this._bySources=void 0,this._bySourceMemos=void 0}};function G(M){return M}function pe(M){var V,z;return(z=(V=M)._encoded)!=null?z:V._encoded=(0,_.encode)(M._decoded)}function he(M){var V;return(V=M)._decoded||(V._decoded=(0,_.decode)(M._encoded))}function _e(M,V,z){let oe=he(M);if(V>=oe.length)return null;let Ae=oe[V],xe=Yn(Ae,M._decodedMemo,V,z,It);return xe===-1?null:Ae[xe]}function Ne(M,V){let{line:z,column:oe,bias:Ae}=V;if(z--,z<0)throw new Error(ge);if(oe<0)throw new Error(ot);let xe=he(M);if(z>=xe.length)return gi(null,null,null,null);let Ve=xe[z],et=Yn(Ve,M._decodedMemo,z,oe,Ae||It);if(et===-1)return gi(null,null,null,null);let je=Ve[et];if(je.length===1)return gi(null,null,null,null);let{names:rt,resolvedSources:Yt}=M;return gi(Yt[je[W]],je[ke]+1,je[Ce],je.length===5?rt[je[Ie]]:null)}function Ye(M,V){let{source:z,line:oe,column:Ae,bias:xe}=V;return dh(M,z,oe,Ae,xe||It,!1)}function kt(M,V){let{source:z,line:oe,column:Ae,bias:xe}=V;return dh(M,z,oe,Ae,xe||St,!0)}function rr(M,V){let z=he(M),{names:oe,resolvedSources:Ae}=M;for(let xe=0;xe<z.length;xe++){let Ve=z[xe];for(let et=0;et<Ve.length;et++){let je=Ve[et],rt=xe+1,Yt=je[0],lt=null,Et=null,Qt=null,Pr=null;je.length!==1&&(lt=Ae[je[1]],Et=je[2]+1,Qt=je[3]),je.length===5&&(Pr=oe[je[4]]),V({generatedLine:rt,generatedColumn:Yt,source:lt,originalLine:Et,originalColumn:Qt,name:Pr})}}}function zi(M,V){let{sources:z,resolvedSources:oe}=M,Ae=z.indexOf(V);return Ae===-1&&(Ae=oe.indexOf(V)),Ae}function Ji(M,V){let{sourcesContent:z}=M;if(z==null)return null;let oe=zi(M,V);return oe===-1?null:z[oe]}function mi(M,V){let{ignoreList:z}=M;if(z==null)return!1;let oe=zi(M,V);return oe===-1?!1:z.includes(oe)}function yi(M,V){let z=new H(Br(M,[]),V);return z._decoded=M.mappings,z}function Ti(M){return Br(M,he(M))}function Xi(M){return Br(M,pe(M))}function Br(M,V){return{version:M.version,file:M.file,names:M.names,sourceRoot:M.sourceRoot,sources:M.sources,sourcesContent:M.sourcesContent,mappings:V,ignoreList:M.ignoreList||M.x_google_ignoreList}}function gi(M,V,z,oe){return{source:M,line:V,column:z,name:oe}}function Ls(M,V){return{line:M,column:V}}function Yn(M,V,z,oe,Ae){let xe=ee(M,oe,V,z);return ne?xe=(Ae===St?O:F)(M,oe,xe):Ae===St&&xe++,xe===-1||xe===M.length?-1:xe}function fb(M,V,z,oe,Ae){let xe=Yn(M,V,z,oe,It);if(!ne&&Ae===St&&xe++,xe===-1||xe===M.length)return[];let Ve=ne?oe:M[xe][U];ne||(xe=F(M,Ve,xe));let et=O(M,Ve,xe),je=[];for(;xe<=et;xe++){let rt=M[xe];je.push(Ls(rt[We]+1,rt[ft]))}return je}function dh(M,V,z,oe,Ae,xe){var Ve;if(z--,z<0)throw new Error(ge);if(oe<0)throw new Error(ot);let{sources:et,resolvedSources:je}=M,rt=et.indexOf(V);if(rt===-1&&(rt=je.indexOf(V)),rt===-1)return xe?[]:Ls(null,null);let lt=((Ve=M)._bySources||(Ve._bySources=Q(he(M),M._bySourceMemos=et.map(D))))[rt][z];if(lt==null)return xe?[]:Ls(null,null);let Et=M._bySourceMemos[rt];if(xe)return fb(lt,Et,z,oe,Ae);let Qt=Yn(lt,Et,z,oe,Ae);if(Qt===-1)return Ls(null,null);let Pr=lt[Qt];return Ls(Pr[We]+1,Pr[ft])}})});var HT=k((Up,Kp)=>{(function(t,e,r){typeof Up=="object"&&typeof Kp<"u"?e(Kp,Fp(),$p()):typeof define=="function"&&define.amd?define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(r={exports:{}},t.sourcemapCodec,t.traceMapping),t.genMapping="default"in r.exports?r.exports.default:r.exports)})(Up,function(t,e,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(H,G)=>function(){return G||(0,H[a(H)[0]])((G={exports:{}}).exports,G),G.exports},u=(H,G)=>{for(var pe in G)s(H,pe,{get:G[pe],enumerable:!0})},d=(H,G,pe,he)=>{if(G&&typeof G=="object"||typeof G=="function")for(let _e of a(G))!l.call(H,_e)&&_e!==pe&&s(H,_e,{get:()=>G[_e],enumerable:!(he=n(G,_e))||he.enumerable});return H},b=(H,G,pe)=>(pe=H!=null?i(o(H)):{},d(G||!H||!H.__esModule?s(pe,"default",{value:H,enumerable:!0}):pe,H)),E=H=>d(s({},"__esModule",{value:!0}),H),v=c({"umd:@jridgewell/sourcemap-codec"(H,G){G.exports=e}}),A=c({"umd:@jridgewell/trace-mapping"(H,G){G.exports=r}}),I={};u(I,{GenMapping:()=>Oe,addMapping:()=>ne,addSegment:()=>Ct,allMappings:()=>j,fromMap:()=>ae,maybeAddMapping:()=>O,maybeAddSegment:()=>ie,setIgnore:()=>D,setSourceContent:()=>F,toDecodedMap:()=>ee,toEncodedMap:()=>Q}),t.exports=E(I);var _=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function $(H){return H}function X(H,G){return H._indexes[G]}function N(H,G){let pe=X(H,G);if(pe!==void 0)return pe;let{array:he,_indexes:_e}=H,Ne=he.push(G);return _e[G]=Ne-1}function U(H,G){let pe=X(H,G);if(pe===void 0)return;let{array:he,_indexes:_e}=H;for(let Ne=pe+1;Ne<he.length;Ne++){let Ye=he[Ne];he[Ne-1]=Ye,_e[Ye]--}_e[G]=void 0,he.pop()}var W=b(v()),ke=b(A()),Ce=0,Ie=1,We=2,ft=3,f=4,ve=-1,Oe=class{constructor({file:H,sourceRoot:G}={}){this._names=new _,this._sources=new _,this._sourcesContent=[],this._mappings=[],this.file=H,this.sourceRoot=G,this._ignoreList=new _}};function tt(H){return H}function Ct(H,G,pe,he,_e,Ne,Ye,kt){return B(!1,H,G,pe,he,_e,Ne,Ye,kt)}function ne(H,G){return It(!1,H,G)}var ie=(H,G,pe,he,_e,Ne,Ye,kt)=>B(!0,H,G,pe,he,_e,Ne,Ye,kt),O=(H,G)=>It(!0,H,G);function F(H,G,pe){let{_sources:he,_sourcesContent:_e}=H,Ne=N(he,G);_e[Ne]=pe}function D(H,G,pe=!0){let{_sources:he,_sourcesContent:_e,_ignoreList:Ne}=H,Ye=N(he,G);Ye===_e.length&&(_e[Ye]=null),pe?N(Ne,Ye):U(Ne,Ye)}function ee(H){let{_mappings:G,_sources:pe,_sourcesContent:he,_names:_e,_ignoreList:Ne}=H;return ue(G),{version:3,file:H.file||void 0,names:_e.array,sourceRoot:H.sourceRoot||void 0,sources:pe.array,sourcesContent:he,mappings:G,ignoreList:Ne.array}}function Q(H){let G=ee(H);return Object.assign({},G,{mappings:(0,W.encode)(G.mappings)})}function ae(H){let G=new ke.TraceMap(H),pe=new Oe({file:G.file,sourceRoot:G.sourceRoot});return ge(pe._names,G.names),ge(pe._sources,G.sources),pe._sourcesContent=G.sourcesContent||G.sources.map(()=>null),pe._mappings=(0,ke.decodedMappings)(G),G.ignoreList&&ge(pe._ignoreList,G.ignoreList),pe}function j(H){let G=[],{_mappings:pe,_sources:he,_names:_e}=H;for(let Ne=0;Ne<pe.length;Ne++){let Ye=pe[Ne];for(let kt=0;kt<Ye.length;kt++){let rr=Ye[kt],zi={line:Ne+1,column:rr[Ce]},Ji,mi,yi;rr.length!==1&&(Ji=he.array[rr[Ie]],mi={line:rr[We]+1,column:rr[ft]},rr.length===5&&(yi=_e.array[rr[f]])),G.push({generated:zi,source:Ji,original:mi,name:yi})}}return G}function B(H,G,pe,he,_e,Ne,Ye,kt,rr){let{_mappings:zi,_sources:Ji,_sourcesContent:mi,_names:yi}=G,Ti=Y(zi,pe),Xi=te(Ti,he);if(!_e)return H&&ot(Ti,Xi)?void 0:Z(Ti,Xi,[he]);let Br=N(Ji,_e),gi=kt?N(yi,kt):ve;if(Br===mi.length&&(mi[Br]=rr??null),!(H&&St(Ti,Xi,Br,Ne,Ye,gi)))return Z(Ti,Xi,kt?[he,Br,Ne,Ye,gi]:[he,Br,Ne,Ye])}function R(H){}function Y(H,G){for(let pe=H.length;pe<=G;pe++)H[pe]=[];return H[G]}function te(H,G){let pe=H.length;for(let he=pe-1;he>=0;pe=he--){let _e=H[he];if(G>=_e[Ce])break}return pe}function Z(H,G,pe){for(let he=H.length;he>G;he--)H[he]=H[he-1];H[G]=pe}function ue(H){let{length:G}=H,pe=G;for(let he=pe-1;he>=0&&!(H[he].length>0);pe=he,he--);pe<G&&(H.length=pe)}function ge(H,G){for(let pe=0;pe<G.length;pe++)N(H,G[pe])}function ot(H,G){return G===0?!0:H[G-1].length===1}function St(H,G,pe,he,_e,Ne){if(G===0)return!1;let Ye=H[G-1];return Ye.length===1?!1:pe===Ye[Ie]&&he===Ye[We]&&_e===Ye[ft]&&Ne===(Ye.length===5?Ye[f]:ve)}function It(H,G,pe){let{generated:he,source:_e,original:Ne,name:Ye,content:kt}=pe;return _e?B(H,G,he.line-1,he.column,_e,Ne.line-1,Ne.column,Ye,kt):B(H,G,he.line-1,he.column,null,null,null,null,null)}})});var GT=k(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var ci=HT(),Wp=$p(),Vp=class{constructor(e,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=void 0;let s=this._map=new ci.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=(i=e.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new Wp.TraceMap(e.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0,ci.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o])}}if(typeof r=="string"&&!e.inputSourceMap)(0,ci.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,ci.setSourceContent)(s,a.replace(/\\/g,"/"),r[a])}get(){return(0,ci.toEncodedMap)(this._map)}getDecoded(){return(0,ci.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,ci.allMappings)(this._map))}mark(e,r,i,s,n,a){var o;this._rawMappings=void 0;let l;if(r!=null)if(this._inputMap){if(l=(0,Wp.originalPositionFor)(this._inputMap,{line:r,column:i}),!l.name&&n){let c=(0,Wp.originalPositionFor)(this._inputMap,n);c.name&&(s=c.name)}}else l={source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0,ci.maybeAddMapping)(this._map,{name:s,generated:e,source:(o=l)==null?void 0:o.source,original:l})}};xo.default=Vp});var QT=k(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var Yp=class{constructor(e,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],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=e,this._indentChar=r;for(let i=0;i<64;i++)this._fastIndentations.push(r.repeat(i));this._allocQueue()}_allocQueue(){let e=this._queue;for(let r=0;r<16;r++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,r,i,s,n){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let o=this._queue[a];o.char=e,o.repeat=r,o.line=i,o.column=s,o.filename=n,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let e=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:e?.getDecoded(),get __mergedMap(){return this.map},get map(){let i=e?e.get():null;return r.map=i,i},set map(i){Object.defineProperty(r,"map",{value:i,writable:!0})},get rawMappings(){let i=e?.getRawMappings();return r.rawMappings=i,i},set rawMappings(i){Object.defineProperty(r,"rawMappings",{value:i,writable:!0})}};return r}append(e,r){this._flush(),this._append(e,this._sourcePosition,r)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(e===10)for(;this._queueCursor!==0;){let i=this._queue[this._queueCursor-1].char;if(i!==32&&i!==9)break;this._queueCursor--}let r=this._sourcePosition;this._pushQueue(e,1,r.line,r.column,r.filename)}queueIndentation(e){e!==0&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){let e=this._queueCursor,r=this._queue;for(let i=0;i<e;i++){let s=r[i];this._appendChar(s.char,s.repeat,s)}this._queueCursor=0}_appendChar(e,r,i){if(this._last=e,e===-1){let s=this._fastIndentations[r];s!==void 0?this._str+=s:this._str+=r>1?this._indentChar.repeat(r):this._indentChar}else this._str+=r>1?String.fromCharCode(e).repeat(r):String.fromCharCode(e);e!==10?(this._mark(i.line,i.column,i.identifierName,i.identifierNamePos,i.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(i.identifierName=void 0,i.identifierNamePos=void 0)}_append(e,r,i){let s=e.length,n=this._position;if(this._last=e.charCodeAt(s-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!i&&!this._map){n.column+=s;return}let{column:a,identifierName:o,identifierNamePos:l,filename:c}=r,u=r.line;(o!=null||l!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let d=e.indexOf(`
22
+ Expected ${r.length+1} quasis but got ${t.quasis.length}`)})}}});Se("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let t=(0,K.assertNodeType)("NumericLiteral","BigIntLiteral"),e=(0,K.assertOneOf)("-"),r=(0,K.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function i(s,n,a){(0,tO.default)("UnaryExpression",a)?(e(a,"operator",a.operator),t(a,"argument",a.argument)):r(s,n,a)}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)(Jt),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)(Jt),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 Hm={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,K.validateType)("Expression"),typeAnnotation:(0,K.validateType)("TSType")}};Se("TSAsExpression",Hm);Se("TSSatisfiesExpression",Hm);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)(Jt),const:(0,K.validateOptional)(Jt),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)(Jt)},{global:(0,K.validateOptional)(Jt)},{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:{argument:(0,K.validateType)("StringLiteral"),qualifier:(0,K.validateOptionalType)("TSEntityName"),typeParameters:(0,K.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,K.assertNodeType)("ObjectExpression"),optional:!0}}});Se("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,K.validate)(Jt)},{id:(0,K.validateType)("Identifier"),moduleReference:(0,K.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,K.assertOneOf)("type","value"),optional:!0}})});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:!0},out:{validate:(0,K.assertValueType)("boolean"),optional:!0},const:{validate:(0,K.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,K.assertNodeType)("TSType"),optional:!0},default:{validate:(0,K.assertNodeType)("TSType"),optional:!0}}})});var Qm=k(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.DEPRECATED_ALIASES=void 0;var eZ=Qa.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var or=k(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Object.defineProperty(Ut,"ALIAS_KEYS",{enumerable:!0,get:function(){return Xt.ALIAS_KEYS}});Object.defineProperty(Ut,"BUILDER_KEYS",{enumerable:!0,get:function(){return Xt.BUILDER_KEYS}});Object.defineProperty(Ut,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return Jc.DEPRECATED_ALIASES}});Object.defineProperty(Ut,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Xt.DEPRECATED_KEYS}});Object.defineProperty(Ut,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Xt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Ut,"NODE_FIELDS",{enumerable:!0,get:function(){return Xt.NODE_FIELDS}});Object.defineProperty(Ut,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Xt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Ut,"PLACEHOLDERS",{enumerable:!0,get:function(){return Xc.PLACEHOLDERS}});Object.defineProperty(Ut,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Xc.PLACEHOLDERS_ALIAS}});Object.defineProperty(Ut,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Xc.PLACEHOLDERS_FLIPPED_ALIAS}});Ut.TYPES=void 0;Object.defineProperty(Ut,"VISITOR_KEYS",{enumerable:!0,get:function(){return Xt.VISITOR_KEYS}});xn();qm();$m();Um();Km();Gm();var Xt=_r(),Xc=Yc(),Jc=Qm();Object.keys(Jc.DEPRECATED_ALIASES).forEach(t=>{Xt.FLIPPED_ALIAS_KEYS[t]=Xt.FLIPPED_ALIAS_KEYS[Jc.DEPRECATED_ALIASES[t]]});for(let{types:t,set:e}of Xt.allExpandedTypes)for(let r of t){let i=Xt.FLIPPED_ALIAS_KEYS[r];i?i.forEach(e.add,e):e.add(r)}var rZ=Ut.TYPES=[].concat(Object.keys(Xt.VISITOR_KEYS),Object.keys(Xt.FLIPPED_ALIAS_KEYS),Object.keys(Xt.DEPRECATED_KEYS))});var Ja=k(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.default=iO;bs.validateChild=ey;bs.validateField=Zm;bs.validateInternal=sO;var bn=or();function iO(t,e,r){if(!t)return;let i=bn.NODE_FIELDS[t.type];if(!i)return;let s=i[e];Zm(t,e,r,s),ey(t,e,r)}function sO(t,e,r,i,s){if(t!=null&&t.validate&&!(t.optional&&i==null)&&(t.validate(e,r,i),s)){var n;let a=i.type;if(a==null)return;(n=bn.NODE_PARENT_VALIDATIONS[a])==null||n.call(bn.NODE_PARENT_VALIDATIONS,e,r,i)}}function Zm(t,e,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(t,e,r))}function ey(t,e,r){var i;let s=r?.type;s!=null&&((i=bn.NODE_PARENT_VALIDATIONS[s])==null||i.call(bn.NODE_PARENT_VALIDATIONS,t,e,r))}});var Hc=k(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.anyTypeAnnotation=j_;m.argumentPlaceholder=h2;m.arrayExpression=lO;m.arrayPattern=i_;m.arrayTypeAnnotation=R_;m.arrowFunctionExpression=s_;m.assignmentExpression=cO;m.assignmentPattern=r_;m.awaitExpression=w_;m.bigIntLiteral=oO;m.binaryExpression=uO;m.bindExpression=d2;m.blockStatement=dO;m.booleanLiteral=LO;m.booleanLiteralTypeAnnotation=$_;m.booleanTypeAnnotation=q_;m.breakStatement=mO;m.callExpression=yO;m.catchClause=TO;m.classAccessorProperty=N_;m.classBody=n_;m.classDeclaration=o_;m.classExpression=a_;m.classImplements=K_;m.classMethod=x_;m.classPrivateMethod=L_;m.classPrivateProperty=D_;m.classProperty=__;m.conditionalExpression=gO;m.continueStatement=xO;m.debuggerStatement=bO;m.decimalLiteral=b2;m.declareClass=W_;m.declareExportAllDeclaration=Z_;m.declareExportDeclaration=Q_;m.declareFunction=V_;m.declareInterface=Y_;m.declareModule=z_;m.declareModuleExports=J_;m.declareOpaqueType=H_;m.declareTypeAlias=X_;m.declareVariable=G_;m.declaredPredicate=eN;m.decorator=m2;m.directive=fO;m.directiveLiteral=hO;m.doExpression=y2;m.doWhileStatement=SO;m.emptyStatement=EO;m.emptyTypeAnnotation=pN;m.enumBooleanBody=RN;m.enumBooleanMember=KN;m.enumDeclaration=jN;m.enumDefaultedMember=YN;m.enumNumberBody=qN;m.enumNumberMember=WN;m.enumStringBody=$N;m.enumStringMember=VN;m.enumSymbolBody=UN;m.existsTypeAnnotation=tN;m.exportAllDeclaration=l_;m.exportDefaultDeclaration=c_;m.exportDefaultSpecifier=T2;m.exportNamedDeclaration=u_;m.exportNamespaceSpecifier=I_;m.exportSpecifier=p_;m.expressionStatement=PO;m.file=vO;m.forInStatement=AO;m.forOfStatement=f_;m.forStatement=wO;m.functionDeclaration=CO;m.functionExpression=IO;m.functionTypeAnnotation=rN;m.functionTypeParam=iN;m.genericTypeAnnotation=sN;m.identifier=kO;m.ifStatement=OO;m.import=C_;m.importAttribute=B_;m.importDeclaration=h_;m.importDefaultSpecifier=d_;m.importExpression=T_;m.importNamespaceSpecifier=m_;m.importSpecifier=y_;m.indexedAccessType=zN;m.inferredPredicate=nN;m.interfaceDeclaration=oN;m.interfaceExtends=aN;m.interfaceTypeAnnotation=lN;m.interpreterDirective=pO;m.intersectionTypeAnnotation=cN;m.jSXAttribute=m.jsxAttribute=XN;m.jSXClosingElement=m.jsxClosingElement=HN;m.jSXClosingFragment=m.jsxClosingFragment=c2;m.jSXElement=m.jsxElement=GN;m.jSXEmptyExpression=m.jsxEmptyExpression=QN;m.jSXExpressionContainer=m.jsxExpressionContainer=ZN;m.jSXFragment=m.jsxFragment=o2;m.jSXIdentifier=m.jsxIdentifier=t2;m.jSXMemberExpression=m.jsxMemberExpression=r2;m.jSXNamespacedName=m.jsxNamespacedName=i2;m.jSXOpeningElement=m.jsxOpeningElement=s2;m.jSXOpeningFragment=m.jsxOpeningFragment=l2;m.jSXSpreadAttribute=m.jsxSpreadAttribute=n2;m.jSXSpreadChild=m.jsxSpreadChild=e2;m.jSXText=m.jsxText=a2;m.labeledStatement=_O;m.logicalExpression=MO;m.memberExpression=FO;m.metaProperty=g_;m.mixedTypeAnnotation=uN;m.moduleExpression=S2;m.newExpression=BO;m.noop=u2;m.nullLiteral=DO;m.nullLiteralTypeAnnotation=U_;m.nullableTypeAnnotation=fN;m.numberLiteral=qD;m.numberLiteralTypeAnnotation=hN;m.numberTypeAnnotation=dN;m.numericLiteral=ty;m.objectExpression=RO;m.objectMethod=qO;m.objectPattern=b_;m.objectProperty=$O;m.objectTypeAnnotation=mN;m.objectTypeCallProperty=TN;m.objectTypeIndexer=gN;m.objectTypeInternalSlot=yN;m.objectTypeProperty=xN;m.objectTypeSpreadProperty=bN;m.opaqueType=SN;m.optionalCallExpression=O_;m.optionalIndexedAccessType=JN;m.optionalMemberExpression=k_;m.parenthesizedExpression=WO;m.pipelineBareFunction=v2;m.pipelinePrimaryTopicReference=A2;m.pipelineTopicExpression=P2;m.placeholder=p2;m.privateName=M_;m.program=jO;m.qualifiedTypeIdentifier=EN;m.recordExpression=g2;m.regExpLiteral=ry;m.regexLiteral=$D;m.restElement=iy;m.restProperty=UD;m.returnStatement=UO;m.sequenceExpression=KO;m.spreadElement=sy;m.spreadProperty=KD;m.staticBlock=F_;m.stringLiteral=NO;m.stringLiteralTypeAnnotation=PN;m.stringTypeAnnotation=vN;m.super=S_;m.switchCase=VO;m.switchStatement=YO;m.symbolTypeAnnotation=AN;m.taggedTemplateExpression=E_;m.templateElement=P_;m.templateLiteral=v_;m.thisExpression=zO;m.thisTypeAnnotation=wN;m.throwStatement=JO;m.topicReference=E2;m.tryStatement=XO;m.tSAnyKeyword=m.tsAnyKeyword=F2;m.tSArrayType=m.tsArrayType=rD;m.tSAsExpression=m.tsAsExpression=ED;m.tSBigIntKeyword=m.tsBigIntKeyword=j2;m.tSBooleanKeyword=m.tsBooleanKeyword=B2;m.tSCallSignatureDeclaration=m.tsCallSignatureDeclaration=_2;m.tSConditionalType=m.tsConditionalType=cD;m.tSConstructSignatureDeclaration=m.tsConstructSignatureDeclaration=N2;m.tSConstructorType=m.tsConstructorType=G2;m.tSDeclareFunction=m.tsDeclareFunction=I2;m.tSDeclareMethod=m.tsDeclareMethod=k2;m.tSEnumBody=m.tsEnumBody=AD;m.tSEnumDeclaration=m.tsEnumDeclaration=wD;m.tSEnumMember=m.tsEnumMember=CD;m.tSExportAssignment=m.tsExportAssignment=LD;m.tSExpressionWithTypeArguments=m.tsExpressionWithTypeArguments=TD;m.tSExternalModuleReference=m.tsExternalModuleReference=ND;m.tSFunctionType=m.tsFunctionType=H2;m.tSImportEqualsDeclaration=m.tsImportEqualsDeclaration=_D;m.tSImportType=m.tsImportType=OD;m.tSIndexSignature=m.tsIndexSignature=M2;m.tSIndexedAccessType=m.tsIndexedAccessType=hD;m.tSInferType=m.tsInferType=uD;m.tSInstantiationExpression=m.tsInstantiationExpression=SD;m.tSInterfaceBody=m.tsInterfaceBody=xD;m.tSInterfaceDeclaration=m.tsInterfaceDeclaration=gD;m.tSIntersectionType=m.tsIntersectionType=lD;m.tSIntrinsicKeyword=m.tsIntrinsicKeyword=R2;m.tSLiteralType=m.tsLiteralType=yD;m.tSMappedType=m.tsMappedType=dD;m.tSMethodSignature=m.tsMethodSignature=L2;m.tSModuleBlock=m.tsModuleBlock=kD;m.tSModuleDeclaration=m.tsModuleDeclaration=ID;m.tSNamedTupleMember=m.tsNamedTupleMember=aD;m.tSNamespaceExportDeclaration=m.tsNamespaceExportDeclaration=MD;m.tSNeverKeyword=m.tsNeverKeyword=q2;m.tSNonNullExpression=m.tsNonNullExpression=DD;m.tSNullKeyword=m.tsNullKeyword=$2;m.tSNumberKeyword=m.tsNumberKeyword=U2;m.tSObjectKeyword=m.tsObjectKeyword=K2;m.tSOptionalType=m.tsOptionalType=sD;m.tSParameterProperty=m.tsParameterProperty=C2;m.tSParenthesizedType=m.tsParenthesizedType=pD;m.tSPropertySignature=m.tsPropertySignature=D2;m.tSQualifiedName=m.tsQualifiedName=O2;m.tSRestType=m.tsRestType=nD;m.tSSatisfiesExpression=m.tsSatisfiesExpression=PD;m.tSStringKeyword=m.tsStringKeyword=W2;m.tSSymbolKeyword=m.tsSymbolKeyword=V2;m.tSTemplateLiteralType=m.tsTemplateLiteralType=mD;m.tSThisType=m.tsThisType=X2;m.tSTupleType=m.tsTupleType=iD;m.tSTypeAliasDeclaration=m.tsTypeAliasDeclaration=bD;m.tSTypeAnnotation=m.tsTypeAnnotation=FD;m.tSTypeAssertion=m.tsTypeAssertion=vD;m.tSTypeLiteral=m.tsTypeLiteral=tD;m.tSTypeOperator=m.tsTypeOperator=fD;m.tSTypeParameter=m.tsTypeParameter=RD;m.tSTypeParameterDeclaration=m.tsTypeParameterDeclaration=jD;m.tSTypeParameterInstantiation=m.tsTypeParameterInstantiation=BD;m.tSTypePredicate=m.tsTypePredicate=Z2;m.tSTypeQuery=m.tsTypeQuery=eD;m.tSTypeReference=m.tsTypeReference=Q2;m.tSUndefinedKeyword=m.tsUndefinedKeyword=Y2;m.tSUnionType=m.tsUnionType=oD;m.tSUnknownKeyword=m.tsUnknownKeyword=z2;m.tSVoidKeyword=m.tsVoidKeyword=J2;m.tupleExpression=x2;m.tupleTypeAnnotation=CN;m.typeAlias=kN;m.typeAnnotation=ON;m.typeCastExpression=_N;m.typeParameter=NN;m.typeParameterDeclaration=DN;m.typeParameterInstantiation=LN;m.typeofTypeAnnotation=IN;m.unaryExpression=HO;m.unionTypeAnnotation=MN;m.updateExpression=GO;m.v8IntrinsicIdentifier=f2;m.variableDeclaration=QO;m.variableDeclarator=ZO;m.variance=FN;m.voidPattern=w2;m.voidTypeAnnotation=BN;m.whileStatement=e_;m.withStatement=t_;m.yieldExpression=A_;var nO=Ja(),Za=hs(),aO=_r(),{validateInternal:f}=nO,{NODE_FIELDS:C}=aO;function oO(t){typeof t=="bigint"&&(t=t.toString());let e={type:"BigIntLiteral",value:t},r=C.BigIntLiteral;return f(r.value,e,"value",t),e}function lO(t=[]){let e={type:"ArrayExpression",elements:t},r=C.ArrayExpression;return f(r.elements,e,"elements",t,1),e}function cO(t,e,r){let i={type:"AssignmentExpression",operator:t,left:e,right:r},s=C.AssignmentExpression;return f(s.operator,i,"operator",t),f(s.left,i,"left",e,1),f(s.right,i,"right",r,1),i}function uO(t,e,r){let i={type:"BinaryExpression",operator:t,left:e,right:r},s=C.BinaryExpression;return f(s.operator,i,"operator",t),f(s.left,i,"left",e,1),f(s.right,i,"right",r,1),i}function pO(t){let e={type:"InterpreterDirective",value:t},r=C.InterpreterDirective;return f(r.value,e,"value",t),e}function fO(t){let e={type:"Directive",value:t},r=C.Directive;return f(r.value,e,"value",t,1),e}function hO(t){let e={type:"DirectiveLiteral",value:t},r=C.DirectiveLiteral;return f(r.value,e,"value",t),e}function dO(t,e=[]){let r={type:"BlockStatement",body:t,directives:e},i=C.BlockStatement;return f(i.body,r,"body",t,1),f(i.directives,r,"directives",e,1),r}function mO(t=null){let e={type:"BreakStatement",label:t},r=C.BreakStatement;return f(r.label,e,"label",t,1),e}function yO(t,e){let r={type:"CallExpression",callee:t,arguments:e},i=C.CallExpression;return f(i.callee,r,"callee",t,1),f(i.arguments,r,"arguments",e,1),r}function TO(t=null,e){let r={type:"CatchClause",param:t,body:e},i=C.CatchClause;return f(i.param,r,"param",t,1),f(i.body,r,"body",e,1),r}function gO(t,e,r){let i={type:"ConditionalExpression",test:t,consequent:e,alternate:r},s=C.ConditionalExpression;return f(s.test,i,"test",t,1),f(s.consequent,i,"consequent",e,1),f(s.alternate,i,"alternate",r,1),i}function xO(t=null){let e={type:"ContinueStatement",label:t},r=C.ContinueStatement;return f(r.label,e,"label",t,1),e}function bO(){return{type:"DebuggerStatement"}}function SO(t,e){let r={type:"DoWhileStatement",test:t,body:e},i=C.DoWhileStatement;return f(i.test,r,"test",t,1),f(i.body,r,"body",e,1),r}function EO(){return{type:"EmptyStatement"}}function PO(t){let e={type:"ExpressionStatement",expression:t},r=C.ExpressionStatement;return f(r.expression,e,"expression",t,1),e}function vO(t,e=null,r=null){let i={type:"File",program:t,comments:e,tokens:r},s=C.File;return f(s.program,i,"program",t,1),f(s.comments,i,"comments",e,1),f(s.tokens,i,"tokens",r),i}function AO(t,e,r){let i={type:"ForInStatement",left:t,right:e,body:r},s=C.ForInStatement;return f(s.left,i,"left",t,1),f(s.right,i,"right",e,1),f(s.body,i,"body",r,1),i}function wO(t=null,e=null,r=null,i){let s={type:"ForStatement",init:t,test:e,update:r,body:i},n=C.ForStatement;return f(n.init,s,"init",t,1),f(n.test,s,"test",e,1),f(n.update,s,"update",r,1),f(n.body,s,"body",i,1),s}function CO(t=null,e,r,i=!1,s=!1){let n={type:"FunctionDeclaration",id:t,params:e,body:r,generator:i,async:s},a=C.FunctionDeclaration;return f(a.id,n,"id",t,1),f(a.params,n,"params",e,1),f(a.body,n,"body",r,1),f(a.generator,n,"generator",i),f(a.async,n,"async",s),n}function IO(t=null,e,r,i=!1,s=!1){let n={type:"FunctionExpression",id:t,params:e,body:r,generator:i,async:s},a=C.FunctionExpression;return f(a.id,n,"id",t,1),f(a.params,n,"params",e,1),f(a.body,n,"body",r,1),f(a.generator,n,"generator",i),f(a.async,n,"async",s),n}function kO(t){let e={type:"Identifier",name:t},r=C.Identifier;return f(r.name,e,"name",t),e}function OO(t,e,r=null){let i={type:"IfStatement",test:t,consequent:e,alternate:r},s=C.IfStatement;return f(s.test,i,"test",t,1),f(s.consequent,i,"consequent",e,1),f(s.alternate,i,"alternate",r,1),i}function _O(t,e){let r={type:"LabeledStatement",label:t,body:e},i=C.LabeledStatement;return f(i.label,r,"label",t,1),f(i.body,r,"body",e,1),r}function NO(t){let e={type:"StringLiteral",value:t},r=C.StringLiteral;return f(r.value,e,"value",t),e}function ty(t){let e={type:"NumericLiteral",value:t},r=C.NumericLiteral;return f(r.value,e,"value",t),e}function DO(){return{type:"NullLiteral"}}function LO(t){let e={type:"BooleanLiteral",value:t},r=C.BooleanLiteral;return f(r.value,e,"value",t),e}function ry(t,e=""){let r={type:"RegExpLiteral",pattern:t,flags:e},i=C.RegExpLiteral;return f(i.pattern,r,"pattern",t),f(i.flags,r,"flags",e),r}function MO(t,e,r){let i={type:"LogicalExpression",operator:t,left:e,right:r},s=C.LogicalExpression;return f(s.operator,i,"operator",t),f(s.left,i,"left",e,1),f(s.right,i,"right",r,1),i}function FO(t,e,r=!1,i=null){let s={type:"MemberExpression",object:t,property:e,computed:r,optional:i},n=C.MemberExpression;return f(n.object,s,"object",t,1),f(n.property,s,"property",e,1),f(n.computed,s,"computed",r),f(n.optional,s,"optional",i),s}function BO(t,e){let r={type:"NewExpression",callee:t,arguments:e},i=C.NewExpression;return f(i.callee,r,"callee",t,1),f(i.arguments,r,"arguments",e,1),r}function jO(t,e=[],r="script",i=null){let s={type:"Program",body:t,directives:e,sourceType:r,interpreter:i},n=C.Program;return f(n.body,s,"body",t,1),f(n.directives,s,"directives",e,1),f(n.sourceType,s,"sourceType",r),f(n.interpreter,s,"interpreter",i,1),s}function RO(t){let e={type:"ObjectExpression",properties:t},r=C.ObjectExpression;return f(r.properties,e,"properties",t,1),e}function qO(t="method",e,r,i,s=!1,n=!1,a=!1){let o={type:"ObjectMethod",kind:t,key:e,params:r,body:i,computed:s,generator:n,async:a},l=C.ObjectMethod;return f(l.kind,o,"kind",t),f(l.key,o,"key",e,1),f(l.params,o,"params",r,1),f(l.body,o,"body",i,1),f(l.computed,o,"computed",s),f(l.generator,o,"generator",n),f(l.async,o,"async",a),o}function $O(t,e,r=!1,i=!1,s=null){let n={type:"ObjectProperty",key:t,value:e,computed:r,shorthand:i,decorators:s},a=C.ObjectProperty;return f(a.key,n,"key",t,1),f(a.value,n,"value",e,1),f(a.computed,n,"computed",r),f(a.shorthand,n,"shorthand",i),f(a.decorators,n,"decorators",s,1),n}function iy(t){let e={type:"RestElement",argument:t},r=C.RestElement;return f(r.argument,e,"argument",t,1),e}function UO(t=null){let e={type:"ReturnStatement",argument:t},r=C.ReturnStatement;return f(r.argument,e,"argument",t,1),e}function KO(t){let e={type:"SequenceExpression",expressions:t},r=C.SequenceExpression;return f(r.expressions,e,"expressions",t,1),e}function WO(t){let e={type:"ParenthesizedExpression",expression:t},r=C.ParenthesizedExpression;return f(r.expression,e,"expression",t,1),e}function VO(t=null,e){let r={type:"SwitchCase",test:t,consequent:e},i=C.SwitchCase;return f(i.test,r,"test",t,1),f(i.consequent,r,"consequent",e,1),r}function YO(t,e){let r={type:"SwitchStatement",discriminant:t,cases:e},i=C.SwitchStatement;return f(i.discriminant,r,"discriminant",t,1),f(i.cases,r,"cases",e,1),r}function zO(){return{type:"ThisExpression"}}function JO(t){let e={type:"ThrowStatement",argument:t},r=C.ThrowStatement;return f(r.argument,e,"argument",t,1),e}function XO(t,e=null,r=null){let i={type:"TryStatement",block:t,handler:e,finalizer:r},s=C.TryStatement;return f(s.block,i,"block",t,1),f(s.handler,i,"handler",e,1),f(s.finalizer,i,"finalizer",r,1),i}function HO(t,e,r=!0){let i={type:"UnaryExpression",operator:t,argument:e,prefix:r},s=C.UnaryExpression;return f(s.operator,i,"operator",t),f(s.argument,i,"argument",e,1),f(s.prefix,i,"prefix",r),i}function GO(t,e,r=!1){let i={type:"UpdateExpression",operator:t,argument:e,prefix:r},s=C.UpdateExpression;return f(s.operator,i,"operator",t),f(s.argument,i,"argument",e,1),f(s.prefix,i,"prefix",r),i}function QO(t,e){let r={type:"VariableDeclaration",kind:t,declarations:e},i=C.VariableDeclaration;return f(i.kind,r,"kind",t),f(i.declarations,r,"declarations",e,1),r}function ZO(t,e=null){let r={type:"VariableDeclarator",id:t,init:e},i=C.VariableDeclarator;return f(i.id,r,"id",t,1),f(i.init,r,"init",e,1),r}function e_(t,e){let r={type:"WhileStatement",test:t,body:e},i=C.WhileStatement;return f(i.test,r,"test",t,1),f(i.body,r,"body",e,1),r}function t_(t,e){let r={type:"WithStatement",object:t,body:e},i=C.WithStatement;return f(i.object,r,"object",t,1),f(i.body,r,"body",e,1),r}function r_(t,e){let r={type:"AssignmentPattern",left:t,right:e},i=C.AssignmentPattern;return f(i.left,r,"left",t,1),f(i.right,r,"right",e,1),r}function i_(t){let e={type:"ArrayPattern",elements:t},r=C.ArrayPattern;return f(r.elements,e,"elements",t,1),e}function s_(t,e,r=!1){let i={type:"ArrowFunctionExpression",params:t,body:e,async:r,expression:null},s=C.ArrowFunctionExpression;return f(s.params,i,"params",t,1),f(s.body,i,"body",e,1),f(s.async,i,"async",r),i}function n_(t){let e={type:"ClassBody",body:t},r=C.ClassBody;return f(r.body,e,"body",t,1),e}function a_(t=null,e=null,r,i=null){let s={type:"ClassExpression",id:t,superClass:e,body:r,decorators:i},n=C.ClassExpression;return f(n.id,s,"id",t,1),f(n.superClass,s,"superClass",e,1),f(n.body,s,"body",r,1),f(n.decorators,s,"decorators",i,1),s}function o_(t=null,e=null,r,i=null){let s={type:"ClassDeclaration",id:t,superClass:e,body:r,decorators:i},n=C.ClassDeclaration;return f(n.id,s,"id",t,1),f(n.superClass,s,"superClass",e,1),f(n.body,s,"body",r,1),f(n.decorators,s,"decorators",i,1),s}function l_(t){let e={type:"ExportAllDeclaration",source:t},r=C.ExportAllDeclaration;return f(r.source,e,"source",t,1),e}function c_(t){let e={type:"ExportDefaultDeclaration",declaration:t},r=C.ExportDefaultDeclaration;return f(r.declaration,e,"declaration",t,1),e}function u_(t=null,e=[],r=null){let i={type:"ExportNamedDeclaration",declaration:t,specifiers:e,source:r},s=C.ExportNamedDeclaration;return f(s.declaration,i,"declaration",t,1),f(s.specifiers,i,"specifiers",e,1),f(s.source,i,"source",r,1),i}function p_(t,e){let r={type:"ExportSpecifier",local:t,exported:e},i=C.ExportSpecifier;return f(i.local,r,"local",t,1),f(i.exported,r,"exported",e,1),r}function f_(t,e,r,i=!1){let s={type:"ForOfStatement",left:t,right:e,body:r,await:i},n=C.ForOfStatement;return f(n.left,s,"left",t,1),f(n.right,s,"right",e,1),f(n.body,s,"body",r,1),f(n.await,s,"await",i),s}function h_(t,e){let r={type:"ImportDeclaration",specifiers:t,source:e},i=C.ImportDeclaration;return f(i.specifiers,r,"specifiers",t,1),f(i.source,r,"source",e,1),r}function d_(t){let e={type:"ImportDefaultSpecifier",local:t},r=C.ImportDefaultSpecifier;return f(r.local,e,"local",t,1),e}function m_(t){let e={type:"ImportNamespaceSpecifier",local:t},r=C.ImportNamespaceSpecifier;return f(r.local,e,"local",t,1),e}function y_(t,e){let r={type:"ImportSpecifier",local:t,imported:e},i=C.ImportSpecifier;return f(i.local,r,"local",t,1),f(i.imported,r,"imported",e,1),r}function T_(t,e=null){let r={type:"ImportExpression",source:t,options:e},i=C.ImportExpression;return f(i.source,r,"source",t,1),f(i.options,r,"options",e,1),r}function g_(t,e){let r={type:"MetaProperty",meta:t,property:e},i=C.MetaProperty;return f(i.meta,r,"meta",t,1),f(i.property,r,"property",e,1),r}function x_(t="method",e,r,i,s=!1,n=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:t,key:e,params:r,body:i,computed:s,static:n,generator:a,async:o},c=C.ClassMethod;return f(c.kind,l,"kind",t),f(c.key,l,"key",e,1),f(c.params,l,"params",r,1),f(c.body,l,"body",i,1),f(c.computed,l,"computed",s),f(c.static,l,"static",n),f(c.generator,l,"generator",a),f(c.async,l,"async",o),l}function b_(t){let e={type:"ObjectPattern",properties:t},r=C.ObjectPattern;return f(r.properties,e,"properties",t,1),e}function sy(t){let e={type:"SpreadElement",argument:t},r=C.SpreadElement;return f(r.argument,e,"argument",t,1),e}function S_(){return{type:"Super"}}function E_(t,e){let r={type:"TaggedTemplateExpression",tag:t,quasi:e},i=C.TaggedTemplateExpression;return f(i.tag,r,"tag",t,1),f(i.quasi,r,"quasi",e,1),r}function P_(t,e=!1){let r={type:"TemplateElement",value:t,tail:e},i=C.TemplateElement;return f(i.value,r,"value",t),f(i.tail,r,"tail",e),r}function v_(t,e){let r={type:"TemplateLiteral",quasis:t,expressions:e},i=C.TemplateLiteral;return f(i.quasis,r,"quasis",t,1),f(i.expressions,r,"expressions",e,1),r}function A_(t=null,e=!1){let r={type:"YieldExpression",argument:t,delegate:e},i=C.YieldExpression;return f(i.argument,r,"argument",t,1),f(i.delegate,r,"delegate",e),r}function w_(t){let e={type:"AwaitExpression",argument:t},r=C.AwaitExpression;return f(r.argument,e,"argument",t,1),e}function C_(){return{type:"Import"}}function I_(t){let e={type:"ExportNamespaceSpecifier",exported:t},r=C.ExportNamespaceSpecifier;return f(r.exported,e,"exported",t,1),e}function k_(t,e,r=!1,i){let s={type:"OptionalMemberExpression",object:t,property:e,computed:r,optional:i},n=C.OptionalMemberExpression;return f(n.object,s,"object",t,1),f(n.property,s,"property",e,1),f(n.computed,s,"computed",r),f(n.optional,s,"optional",i),s}function O_(t,e,r){let i={type:"OptionalCallExpression",callee:t,arguments:e,optional:r},s=C.OptionalCallExpression;return f(s.callee,i,"callee",t,1),f(s.arguments,i,"arguments",e,1),f(s.optional,i,"optional",r),i}function __(t,e=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:n},o=C.ClassProperty;return f(o.key,a,"key",t,1),f(o.value,a,"value",e,1),f(o.typeAnnotation,a,"typeAnnotation",r,1),f(o.decorators,a,"decorators",i,1),f(o.computed,a,"computed",s),f(o.static,a,"static",n),a}function N_(t,e=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassAccessorProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:n},o=C.ClassAccessorProperty;return f(o.key,a,"key",t,1),f(o.value,a,"value",e,1),f(o.typeAnnotation,a,"typeAnnotation",r,1),f(o.decorators,a,"decorators",i,1),f(o.computed,a,"computed",s),f(o.static,a,"static",n),a}function D_(t,e=null,r=null,i=!1){let s={type:"ClassPrivateProperty",key:t,value:e,decorators:r,static:i},n=C.ClassPrivateProperty;return f(n.key,s,"key",t,1),f(n.value,s,"value",e,1),f(n.decorators,s,"decorators",r,1),f(n.static,s,"static",i),s}function L_(t="method",e,r,i,s=!1){let n={type:"ClassPrivateMethod",kind:t,key:e,params:r,body:i,static:s},a=C.ClassPrivateMethod;return f(a.kind,n,"kind",t),f(a.key,n,"key",e,1),f(a.params,n,"params",r,1),f(a.body,n,"body",i,1),f(a.static,n,"static",s),n}function M_(t){let e={type:"PrivateName",id:t},r=C.PrivateName;return f(r.id,e,"id",t,1),e}function F_(t){let e={type:"StaticBlock",body:t},r=C.StaticBlock;return f(r.body,e,"body",t,1),e}function B_(t,e){let r={type:"ImportAttribute",key:t,value:e},i=C.ImportAttribute;return f(i.key,r,"key",t,1),f(i.value,r,"value",e,1),r}function j_(){return{type:"AnyTypeAnnotation"}}function R_(t){let e={type:"ArrayTypeAnnotation",elementType:t},r=C.ArrayTypeAnnotation;return f(r.elementType,e,"elementType",t,1),e}function q_(){return{type:"BooleanTypeAnnotation"}}function $_(t){let e={type:"BooleanLiteralTypeAnnotation",value:t},r=C.BooleanLiteralTypeAnnotation;return f(r.value,e,"value",t),e}function U_(){return{type:"NullLiteralTypeAnnotation"}}function K_(t,e=null){let r={type:"ClassImplements",id:t,typeParameters:e},i=C.ClassImplements;return f(i.id,r,"id",t,1),f(i.typeParameters,r,"typeParameters",e,1),r}function W_(t,e=null,r=null,i){let s={type:"DeclareClass",id:t,typeParameters:e,extends:r,body:i},n=C.DeclareClass;return f(n.id,s,"id",t,1),f(n.typeParameters,s,"typeParameters",e,1),f(n.extends,s,"extends",r,1),f(n.body,s,"body",i,1),s}function V_(t){let e={type:"DeclareFunction",id:t},r=C.DeclareFunction;return f(r.id,e,"id",t,1),e}function Y_(t,e=null,r=null,i){let s={type:"DeclareInterface",id:t,typeParameters:e,extends:r,body:i},n=C.DeclareInterface;return f(n.id,s,"id",t,1),f(n.typeParameters,s,"typeParameters",e,1),f(n.extends,s,"extends",r,1),f(n.body,s,"body",i,1),s}function z_(t,e,r=null){let i={type:"DeclareModule",id:t,body:e,kind:r},s=C.DeclareModule;return f(s.id,i,"id",t,1),f(s.body,i,"body",e,1),f(s.kind,i,"kind",r),i}function J_(t){let e={type:"DeclareModuleExports",typeAnnotation:t},r=C.DeclareModuleExports;return f(r.typeAnnotation,e,"typeAnnotation",t,1),e}function X_(t,e=null,r){let i={type:"DeclareTypeAlias",id:t,typeParameters:e,right:r},s=C.DeclareTypeAlias;return f(s.id,i,"id",t,1),f(s.typeParameters,i,"typeParameters",e,1),f(s.right,i,"right",r,1),i}function H_(t,e=null,r=null){let i={type:"DeclareOpaqueType",id:t,typeParameters:e,supertype:r},s=C.DeclareOpaqueType;return f(s.id,i,"id",t,1),f(s.typeParameters,i,"typeParameters",e,1),f(s.supertype,i,"supertype",r,1),i}function G_(t){let e={type:"DeclareVariable",id:t},r=C.DeclareVariable;return f(r.id,e,"id",t,1),e}function Q_(t=null,e=null,r=null,i=null){let s={type:"DeclareExportDeclaration",declaration:t,specifiers:e,source:r,attributes:i},n=C.DeclareExportDeclaration;return f(n.declaration,s,"declaration",t,1),f(n.specifiers,s,"specifiers",e,1),f(n.source,s,"source",r,1),f(n.attributes,s,"attributes",i,1),s}function Z_(t,e=null){let r={type:"DeclareExportAllDeclaration",source:t,attributes:e},i=C.DeclareExportAllDeclaration;return f(i.source,r,"source",t,1),f(i.attributes,r,"attributes",e,1),r}function eN(t){let e={type:"DeclaredPredicate",value:t},r=C.DeclaredPredicate;return f(r.value,e,"value",t,1),e}function tN(){return{type:"ExistsTypeAnnotation"}}function rN(t=null,e,r=null,i){let s={type:"FunctionTypeAnnotation",typeParameters:t,params:e,rest:r,returnType:i},n=C.FunctionTypeAnnotation;return f(n.typeParameters,s,"typeParameters",t,1),f(n.params,s,"params",e,1),f(n.rest,s,"rest",r,1),f(n.returnType,s,"returnType",i,1),s}function iN(t=null,e){let r={type:"FunctionTypeParam",name:t,typeAnnotation:e},i=C.FunctionTypeParam;return f(i.name,r,"name",t,1),f(i.typeAnnotation,r,"typeAnnotation",e,1),r}function sN(t,e=null){let r={type:"GenericTypeAnnotation",id:t,typeParameters:e},i=C.GenericTypeAnnotation;return f(i.id,r,"id",t,1),f(i.typeParameters,r,"typeParameters",e,1),r}function nN(){return{type:"InferredPredicate"}}function aN(t,e=null){let r={type:"InterfaceExtends",id:t,typeParameters:e},i=C.InterfaceExtends;return f(i.id,r,"id",t,1),f(i.typeParameters,r,"typeParameters",e,1),r}function oN(t,e=null,r=null,i){let s={type:"InterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i},n=C.InterfaceDeclaration;return f(n.id,s,"id",t,1),f(n.typeParameters,s,"typeParameters",e,1),f(n.extends,s,"extends",r,1),f(n.body,s,"body",i,1),s}function lN(t=null,e){let r={type:"InterfaceTypeAnnotation",extends:t,body:e},i=C.InterfaceTypeAnnotation;return f(i.extends,r,"extends",t,1),f(i.body,r,"body",e,1),r}function cN(t){let e={type:"IntersectionTypeAnnotation",types:t},r=C.IntersectionTypeAnnotation;return f(r.types,e,"types",t,1),e}function uN(){return{type:"MixedTypeAnnotation"}}function pN(){return{type:"EmptyTypeAnnotation"}}function fN(t){let e={type:"NullableTypeAnnotation",typeAnnotation:t},r=C.NullableTypeAnnotation;return f(r.typeAnnotation,e,"typeAnnotation",t,1),e}function hN(t){let e={type:"NumberLiteralTypeAnnotation",value:t},r=C.NumberLiteralTypeAnnotation;return f(r.value,e,"value",t),e}function dN(){return{type:"NumberTypeAnnotation"}}function mN(t,e=[],r=[],i=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:t,indexers:e,callProperties:r,internalSlots:i,exact:s},a=C.ObjectTypeAnnotation;return f(a.properties,n,"properties",t,1),f(a.indexers,n,"indexers",e,1),f(a.callProperties,n,"callProperties",r,1),f(a.internalSlots,n,"internalSlots",i,1),f(a.exact,n,"exact",s),n}function yN(t,e,r,i,s){let n={type:"ObjectTypeInternalSlot",id:t,value:e,optional:r,static:i,method:s},a=C.ObjectTypeInternalSlot;return f(a.id,n,"id",t,1),f(a.value,n,"value",e,1),f(a.optional,n,"optional",r),f(a.static,n,"static",i),f(a.method,n,"method",s),n}function TN(t){let e={type:"ObjectTypeCallProperty",value:t,static:null},r=C.ObjectTypeCallProperty;return f(r.value,e,"value",t,1),e}function gN(t=null,e,r,i=null){let s={type:"ObjectTypeIndexer",id:t,key:e,value:r,variance:i,static:null},n=C.ObjectTypeIndexer;return f(n.id,s,"id",t,1),f(n.key,s,"key",e,1),f(n.value,s,"value",r,1),f(n.variance,s,"variance",i,1),s}function xN(t,e,r=null){let i={type:"ObjectTypeProperty",key:t,value:e,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=C.ObjectTypeProperty;return f(s.key,i,"key",t,1),f(s.value,i,"value",e,1),f(s.variance,i,"variance",r,1),i}function bN(t){let e={type:"ObjectTypeSpreadProperty",argument:t},r=C.ObjectTypeSpreadProperty;return f(r.argument,e,"argument",t,1),e}function SN(t,e=null,r=null,i){let s={type:"OpaqueType",id:t,typeParameters:e,supertype:r,impltype:i},n=C.OpaqueType;return f(n.id,s,"id",t,1),f(n.typeParameters,s,"typeParameters",e,1),f(n.supertype,s,"supertype",r,1),f(n.impltype,s,"impltype",i,1),s}function EN(t,e){let r={type:"QualifiedTypeIdentifier",id:t,qualification:e},i=C.QualifiedTypeIdentifier;return f(i.id,r,"id",t,1),f(i.qualification,r,"qualification",e,1),r}function PN(t){let e={type:"StringLiteralTypeAnnotation",value:t},r=C.StringLiteralTypeAnnotation;return f(r.value,e,"value",t),e}function vN(){return{type:"StringTypeAnnotation"}}function AN(){return{type:"SymbolTypeAnnotation"}}function wN(){return{type:"ThisTypeAnnotation"}}function CN(t){let e={type:"TupleTypeAnnotation",types:t},r=C.TupleTypeAnnotation;return f(r.types,e,"types",t,1),e}function IN(t){let e={type:"TypeofTypeAnnotation",argument:t},r=C.TypeofTypeAnnotation;return f(r.argument,e,"argument",t,1),e}function kN(t,e=null,r){let i={type:"TypeAlias",id:t,typeParameters:e,right:r},s=C.TypeAlias;return f(s.id,i,"id",t,1),f(s.typeParameters,i,"typeParameters",e,1),f(s.right,i,"right",r,1),i}function ON(t){let e={type:"TypeAnnotation",typeAnnotation:t},r=C.TypeAnnotation;return f(r.typeAnnotation,e,"typeAnnotation",t,1),e}function _N(t,e){let r={type:"TypeCastExpression",expression:t,typeAnnotation:e},i=C.TypeCastExpression;return f(i.expression,r,"expression",t,1),f(i.typeAnnotation,r,"typeAnnotation",e,1),r}function NN(t=null,e=null,r=null){let i={type:"TypeParameter",bound:t,default:e,variance:r,name:null},s=C.TypeParameter;return f(s.bound,i,"bound",t,1),f(s.default,i,"default",e,1),f(s.variance,i,"variance",r,1),i}function DN(t){let e={type:"TypeParameterDeclaration",params:t},r=C.TypeParameterDeclaration;return f(r.params,e,"params",t,1),e}function LN(t){let e={type:"TypeParameterInstantiation",params:t},r=C.TypeParameterInstantiation;return f(r.params,e,"params",t,1),e}function MN(t){let e={type:"UnionTypeAnnotation",types:t},r=C.UnionTypeAnnotation;return f(r.types,e,"types",t,1),e}function FN(t){let e={type:"Variance",kind:t},r=C.Variance;return f(r.kind,e,"kind",t),e}function BN(){return{type:"VoidTypeAnnotation"}}function jN(t,e){let r={type:"EnumDeclaration",id:t,body:e},i=C.EnumDeclaration;return f(i.id,r,"id",t,1),f(i.body,r,"body",e,1),r}function RN(t){let e={type:"EnumBooleanBody",members:t,explicitType:null,hasUnknownMembers:null},r=C.EnumBooleanBody;return f(r.members,e,"members",t,1),e}function qN(t){let e={type:"EnumNumberBody",members:t,explicitType:null,hasUnknownMembers:null},r=C.EnumNumberBody;return f(r.members,e,"members",t,1),e}function $N(t){let e={type:"EnumStringBody",members:t,explicitType:null,hasUnknownMembers:null},r=C.EnumStringBody;return f(r.members,e,"members",t,1),e}function UN(t){let e={type:"EnumSymbolBody",members:t,hasUnknownMembers:null},r=C.EnumSymbolBody;return f(r.members,e,"members",t,1),e}function KN(t){let e={type:"EnumBooleanMember",id:t,init:null},r=C.EnumBooleanMember;return f(r.id,e,"id",t,1),e}function WN(t,e){let r={type:"EnumNumberMember",id:t,init:e},i=C.EnumNumberMember;return f(i.id,r,"id",t,1),f(i.init,r,"init",e,1),r}function VN(t,e){let r={type:"EnumStringMember",id:t,init:e},i=C.EnumStringMember;return f(i.id,r,"id",t,1),f(i.init,r,"init",e,1),r}function YN(t){let e={type:"EnumDefaultedMember",id:t},r=C.EnumDefaultedMember;return f(r.id,e,"id",t,1),e}function zN(t,e){let r={type:"IndexedAccessType",objectType:t,indexType:e},i=C.IndexedAccessType;return f(i.objectType,r,"objectType",t,1),f(i.indexType,r,"indexType",e,1),r}function JN(t,e){let r={type:"OptionalIndexedAccessType",objectType:t,indexType:e,optional:null},i=C.OptionalIndexedAccessType;return f(i.objectType,r,"objectType",t,1),f(i.indexType,r,"indexType",e,1),r}function XN(t,e=null){let r={type:"JSXAttribute",name:t,value:e},i=C.JSXAttribute;return f(i.name,r,"name",t,1),f(i.value,r,"value",e,1),r}function HN(t){let e={type:"JSXClosingElement",name:t},r=C.JSXClosingElement;return f(r.name,e,"name",t,1),e}function GN(t,e=null,r,i=null){let s={type:"JSXElement",openingElement:t,closingElement:e,children:r,selfClosing:i},n=C.JSXElement;return f(n.openingElement,s,"openingElement",t,1),f(n.closingElement,s,"closingElement",e,1),f(n.children,s,"children",r,1),f(n.selfClosing,s,"selfClosing",i),s}function QN(){return{type:"JSXEmptyExpression"}}function ZN(t){let e={type:"JSXExpressionContainer",expression:t},r=C.JSXExpressionContainer;return f(r.expression,e,"expression",t,1),e}function e2(t){let e={type:"JSXSpreadChild",expression:t},r=C.JSXSpreadChild;return f(r.expression,e,"expression",t,1),e}function t2(t){let e={type:"JSXIdentifier",name:t},r=C.JSXIdentifier;return f(r.name,e,"name",t),e}function r2(t,e){let r={type:"JSXMemberExpression",object:t,property:e},i=C.JSXMemberExpression;return f(i.object,r,"object",t,1),f(i.property,r,"property",e,1),r}function i2(t,e){let r={type:"JSXNamespacedName",namespace:t,name:e},i=C.JSXNamespacedName;return f(i.namespace,r,"namespace",t,1),f(i.name,r,"name",e,1),r}function s2(t,e,r=!1){let i={type:"JSXOpeningElement",name:t,attributes:e,selfClosing:r},s=C.JSXOpeningElement;return f(s.name,i,"name",t,1),f(s.attributes,i,"attributes",e,1),f(s.selfClosing,i,"selfClosing",r),i}function n2(t){let e={type:"JSXSpreadAttribute",argument:t},r=C.JSXSpreadAttribute;return f(r.argument,e,"argument",t,1),e}function a2(t){let e={type:"JSXText",value:t},r=C.JSXText;return f(r.value,e,"value",t),e}function o2(t,e,r){let i={type:"JSXFragment",openingFragment:t,closingFragment:e,children:r},s=C.JSXFragment;return f(s.openingFragment,i,"openingFragment",t,1),f(s.closingFragment,i,"closingFragment",e,1),f(s.children,i,"children",r,1),i}function l2(){return{type:"JSXOpeningFragment"}}function c2(){return{type:"JSXClosingFragment"}}function u2(){return{type:"Noop"}}function p2(t,e){let r={type:"Placeholder",expectedNode:t,name:e},i=C.Placeholder;return f(i.expectedNode,r,"expectedNode",t),f(i.name,r,"name",e,1),r}function f2(t){let e={type:"V8IntrinsicIdentifier",name:t},r=C.V8IntrinsicIdentifier;return f(r.name,e,"name",t),e}function h2(){return{type:"ArgumentPlaceholder"}}function d2(t,e){let r={type:"BindExpression",object:t,callee:e},i=C.BindExpression;return f(i.object,r,"object",t,1),f(i.callee,r,"callee",e,1),r}function m2(t){let e={type:"Decorator",expression:t},r=C.Decorator;return f(r.expression,e,"expression",t,1),e}function y2(t,e=!1){let r={type:"DoExpression",body:t,async:e},i=C.DoExpression;return f(i.body,r,"body",t,1),f(i.async,r,"async",e),r}function T2(t){let e={type:"ExportDefaultSpecifier",exported:t},r=C.ExportDefaultSpecifier;return f(r.exported,e,"exported",t,1),e}function g2(t){let e={type:"RecordExpression",properties:t},r=C.RecordExpression;return f(r.properties,e,"properties",t,1),e}function x2(t=[]){let e={type:"TupleExpression",elements:t},r=C.TupleExpression;return f(r.elements,e,"elements",t,1),e}function b2(t){let e={type:"DecimalLiteral",value:t},r=C.DecimalLiteral;return f(r.value,e,"value",t),e}function S2(t){let e={type:"ModuleExpression",body:t},r=C.ModuleExpression;return f(r.body,e,"body",t,1),e}function E2(){return{type:"TopicReference"}}function P2(t){let e={type:"PipelineTopicExpression",expression:t},r=C.PipelineTopicExpression;return f(r.expression,e,"expression",t,1),e}function v2(t){let e={type:"PipelineBareFunction",callee:t},r=C.PipelineBareFunction;return f(r.callee,e,"callee",t,1),e}function A2(){return{type:"PipelinePrimaryTopicReference"}}function w2(){return{type:"VoidPattern"}}function C2(t){let e={type:"TSParameterProperty",parameter:t},r=C.TSParameterProperty;return f(r.parameter,e,"parameter",t,1),e}function I2(t=null,e=null,r,i=null){let s={type:"TSDeclareFunction",id:t,typeParameters:e,params:r,returnType:i},n=C.TSDeclareFunction;return f(n.id,s,"id",t,1),f(n.typeParameters,s,"typeParameters",e,1),f(n.params,s,"params",r,1),f(n.returnType,s,"returnType",i,1),s}function k2(t=null,e,r=null,i,s=null){let n={type:"TSDeclareMethod",decorators:t,key:e,typeParameters:r,params:i,returnType:s},a=C.TSDeclareMethod;return f(a.decorators,n,"decorators",t,1),f(a.key,n,"key",e,1),f(a.typeParameters,n,"typeParameters",r,1),f(a.params,n,"params",i,1),f(a.returnType,n,"returnType",s,1),n}function O2(t,e){let r={type:"TSQualifiedName",left:t,right:e},i=C.TSQualifiedName;return f(i.left,r,"left",t,1),f(i.right,r,"right",e,1),r}function _2(t=null,e,r=null){let i={type:"TSCallSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r},s=C.TSCallSignatureDeclaration;return f(s.typeParameters,i,"typeParameters",t,1),f(s.parameters,i,"parameters",e,1),f(s.typeAnnotation,i,"typeAnnotation",r,1),i}function N2(t=null,e,r=null){let i={type:"TSConstructSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r},s=C.TSConstructSignatureDeclaration;return f(s.typeParameters,i,"typeParameters",t,1),f(s.parameters,i,"parameters",e,1),f(s.typeAnnotation,i,"typeAnnotation",r,1),i}function D2(t,e=null){let r={type:"TSPropertySignature",key:t,typeAnnotation:e},i=C.TSPropertySignature;return f(i.key,r,"key",t,1),f(i.typeAnnotation,r,"typeAnnotation",e,1),r}function L2(t,e=null,r,i=null){let s={type:"TSMethodSignature",key:t,typeParameters:e,parameters:r,typeAnnotation:i,kind:null},n=C.TSMethodSignature;return f(n.key,s,"key",t,1),f(n.typeParameters,s,"typeParameters",e,1),f(n.parameters,s,"parameters",r,1),f(n.typeAnnotation,s,"typeAnnotation",i,1),s}function M2(t,e=null){let r={type:"TSIndexSignature",parameters:t,typeAnnotation:e},i=C.TSIndexSignature;return f(i.parameters,r,"parameters",t,1),f(i.typeAnnotation,r,"typeAnnotation",e,1),r}function F2(){return{type:"TSAnyKeyword"}}function B2(){return{type:"TSBooleanKeyword"}}function j2(){return{type:"TSBigIntKeyword"}}function R2(){return{type:"TSIntrinsicKeyword"}}function q2(){return{type:"TSNeverKeyword"}}function $2(){return{type:"TSNullKeyword"}}function U2(){return{type:"TSNumberKeyword"}}function K2(){return{type:"TSObjectKeyword"}}function W2(){return{type:"TSStringKeyword"}}function V2(){return{type:"TSSymbolKeyword"}}function Y2(){return{type:"TSUndefinedKeyword"}}function z2(){return{type:"TSUnknownKeyword"}}function J2(){return{type:"TSVoidKeyword"}}function X2(){return{type:"TSThisType"}}function H2(t=null,e,r=null){let i={type:"TSFunctionType",typeParameters:t,parameters:e,typeAnnotation:r},s=C.TSFunctionType;return f(s.typeParameters,i,"typeParameters",t,1),f(s.parameters,i,"parameters",e,1),f(s.typeAnnotation,i,"typeAnnotation",r,1),i}function G2(t=null,e,r=null){let i={type:"TSConstructorType",typeParameters:t,parameters:e,typeAnnotation:r},s=C.TSConstructorType;return f(s.typeParameters,i,"typeParameters",t,1),f(s.parameters,i,"parameters",e,1),f(s.typeAnnotation,i,"typeAnnotation",r,1),i}function Q2(t,e=null){let r={type:"TSTypeReference",typeName:t,typeParameters:e},i=C.TSTypeReference;return f(i.typeName,r,"typeName",t,1),f(i.typeParameters,r,"typeParameters",e,1),r}function Z2(t,e=null,r=null){let i={type:"TSTypePredicate",parameterName:t,typeAnnotation:e,asserts:r},s=C.TSTypePredicate;return f(s.parameterName,i,"parameterName",t,1),f(s.typeAnnotation,i,"typeAnnotation",e,1),f(s.asserts,i,"asserts",r),i}function eD(t,e=null){let r={type:"TSTypeQuery",exprName:t,typeParameters:e},i=C.TSTypeQuery;return f(i.exprName,r,"exprName",t,1),f(i.typeParameters,r,"typeParameters",e,1),r}function tD(t){let e={type:"TSTypeLiteral",members:t},r=C.TSTypeLiteral;return f(r.members,e,"members",t,1),e}function rD(t){let e={type:"TSArrayType",elementType:t},r=C.TSArrayType;return f(r.elementType,e,"elementType",t,1),e}function iD(t){let e={type:"TSTupleType",elementTypes:t},r=C.TSTupleType;return f(r.elementTypes,e,"elementTypes",t,1),e}function sD(t){let e={type:"TSOptionalType",typeAnnotation:t},r=C.TSOptionalType;return f(r.typeAnnotation,e,"typeAnnotation",t,1),e}function nD(t){let e={type:"TSRestType",typeAnnotation:t},r=C.TSRestType;return f(r.typeAnnotation,e,"typeAnnotation",t,1),e}function aD(t,e,r=!1){let i={type:"TSNamedTupleMember",label:t,elementType:e,optional:r},s=C.TSNamedTupleMember;return f(s.label,i,"label",t,1),f(s.elementType,i,"elementType",e,1),f(s.optional,i,"optional",r),i}function oD(t){let e={type:"TSUnionType",types:t},r=C.TSUnionType;return f(r.types,e,"types",t,1),e}function lD(t){let e={type:"TSIntersectionType",types:t},r=C.TSIntersectionType;return f(r.types,e,"types",t,1),e}function cD(t,e,r,i){let s={type:"TSConditionalType",checkType:t,extendsType:e,trueType:r,falseType:i},n=C.TSConditionalType;return f(n.checkType,s,"checkType",t,1),f(n.extendsType,s,"extendsType",e,1),f(n.trueType,s,"trueType",r,1),f(n.falseType,s,"falseType",i,1),s}function uD(t){let e={type:"TSInferType",typeParameter:t},r=C.TSInferType;return f(r.typeParameter,e,"typeParameter",t,1),e}function pD(t){let e={type:"TSParenthesizedType",typeAnnotation:t},r=C.TSParenthesizedType;return f(r.typeAnnotation,e,"typeAnnotation",t,1),e}function fD(t,e){let r={type:"TSTypeOperator",typeAnnotation:t,operator:e},i=C.TSTypeOperator;return f(i.typeAnnotation,r,"typeAnnotation",t,1),f(i.operator,r,"operator",e),r}function hD(t,e){let r={type:"TSIndexedAccessType",objectType:t,indexType:e},i=C.TSIndexedAccessType;return f(i.objectType,r,"objectType",t,1),f(i.indexType,r,"indexType",e,1),r}function dD(t,e=null,r=null){let i={type:"TSMappedType",typeParameter:t,typeAnnotation:e,nameType:r},s=C.TSMappedType;return f(s.typeParameter,i,"typeParameter",t,1),f(s.typeAnnotation,i,"typeAnnotation",e,1),f(s.nameType,i,"nameType",r,1),i}function mD(t,e){let r={type:"TSTemplateLiteralType",quasis:t,types:e},i=C.TSTemplateLiteralType;return f(i.quasis,r,"quasis",t,1),f(i.types,r,"types",e,1),r}function yD(t){let e={type:"TSLiteralType",literal:t},r=C.TSLiteralType;return f(r.literal,e,"literal",t,1),e}function TD(t,e=null){let r={type:"TSExpressionWithTypeArguments",expression:t,typeParameters:e},i=C.TSExpressionWithTypeArguments;return f(i.expression,r,"expression",t,1),f(i.typeParameters,r,"typeParameters",e,1),r}function gD(t,e=null,r=null,i){let s={type:"TSInterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i},n=C.TSInterfaceDeclaration;return f(n.id,s,"id",t,1),f(n.typeParameters,s,"typeParameters",e,1),f(n.extends,s,"extends",r,1),f(n.body,s,"body",i,1),s}function xD(t){let e={type:"TSInterfaceBody",body:t},r=C.TSInterfaceBody;return f(r.body,e,"body",t,1),e}function bD(t,e=null,r){let i={type:"TSTypeAliasDeclaration",id:t,typeParameters:e,typeAnnotation:r},s=C.TSTypeAliasDeclaration;return f(s.id,i,"id",t,1),f(s.typeParameters,i,"typeParameters",e,1),f(s.typeAnnotation,i,"typeAnnotation",r,1),i}function SD(t,e=null){let r={type:"TSInstantiationExpression",expression:t,typeParameters:e},i=C.TSInstantiationExpression;return f(i.expression,r,"expression",t,1),f(i.typeParameters,r,"typeParameters",e,1),r}function ED(t,e){let r={type:"TSAsExpression",expression:t,typeAnnotation:e},i=C.TSAsExpression;return f(i.expression,r,"expression",t,1),f(i.typeAnnotation,r,"typeAnnotation",e,1),r}function PD(t,e){let r={type:"TSSatisfiesExpression",expression:t,typeAnnotation:e},i=C.TSSatisfiesExpression;return f(i.expression,r,"expression",t,1),f(i.typeAnnotation,r,"typeAnnotation",e,1),r}function vD(t,e){let r={type:"TSTypeAssertion",typeAnnotation:t,expression:e},i=C.TSTypeAssertion;return f(i.typeAnnotation,r,"typeAnnotation",t,1),f(i.expression,r,"expression",e,1),r}function AD(t){let e={type:"TSEnumBody",members:t},r=C.TSEnumBody;return f(r.members,e,"members",t,1),e}function wD(t,e){let r={type:"TSEnumDeclaration",id:t,members:e},i=C.TSEnumDeclaration;return f(i.id,r,"id",t,1),f(i.members,r,"members",e,1),r}function CD(t,e=null){let r={type:"TSEnumMember",id:t,initializer:e},i=C.TSEnumMember;return f(i.id,r,"id",t,1),f(i.initializer,r,"initializer",e,1),r}function ID(t,e){let r={type:"TSModuleDeclaration",id:t,body:e,kind:null},i=C.TSModuleDeclaration;return f(i.id,r,"id",t,1),f(i.body,r,"body",e,1),r}function kD(t){let e={type:"TSModuleBlock",body:t},r=C.TSModuleBlock;return f(r.body,e,"body",t,1),e}function OD(t,e=null,r=null){let i={type:"TSImportType",argument:t,qualifier:e,typeParameters:r},s=C.TSImportType;return f(s.argument,i,"argument",t,1),f(s.qualifier,i,"qualifier",e,1),f(s.typeParameters,i,"typeParameters",r,1),i}function _D(t,e){let r={type:"TSImportEqualsDeclaration",id:t,moduleReference:e,isExport:null},i=C.TSImportEqualsDeclaration;return f(i.id,r,"id",t,1),f(i.moduleReference,r,"moduleReference",e,1),r}function ND(t){let e={type:"TSExternalModuleReference",expression:t},r=C.TSExternalModuleReference;return f(r.expression,e,"expression",t,1),e}function DD(t){let e={type:"TSNonNullExpression",expression:t},r=C.TSNonNullExpression;return f(r.expression,e,"expression",t,1),e}function LD(t){let e={type:"TSExportAssignment",expression:t},r=C.TSExportAssignment;return f(r.expression,e,"expression",t,1),e}function MD(t){let e={type:"TSNamespaceExportDeclaration",id:t},r=C.TSNamespaceExportDeclaration;return f(r.id,e,"id",t,1),e}function FD(t){let e={type:"TSTypeAnnotation",typeAnnotation:t},r=C.TSTypeAnnotation;return f(r.typeAnnotation,e,"typeAnnotation",t,1),e}function BD(t){let e={type:"TSTypeParameterInstantiation",params:t},r=C.TSTypeParameterInstantiation;return f(r.params,e,"params",t,1),e}function jD(t){let e={type:"TSTypeParameterDeclaration",params:t},r=C.TSTypeParameterDeclaration;return f(r.params,e,"params",t,1),e}function RD(t=null,e=null,r){let i={type:"TSTypeParameter",constraint:t,default:e,name:r},s=C.TSTypeParameter;return f(s.constraint,i,"constraint",t,1),f(s.default,i,"default",e,1),f(s.name,i,"name",r),i}function qD(t){return(0,Za.default)("NumberLiteral","NumericLiteral","The node type "),ty(t)}function $D(t,e=""){return(0,Za.default)("RegexLiteral","RegExpLiteral","The node type "),ry(t,e)}function UD(t){return(0,Za.default)("RestProperty","RestElement","The node type "),iy(t)}function KD(t){return(0,Za.default)("SpreadProperty","SpreadElement","The node type "),sy(t)}});var ny=k(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.JSXIdentifier=p.JSXFragment=p.JSXExpressionContainer=p.JSXEmptyExpression=p.JSXElement=p.JSXClosingFragment=p.JSXClosingElement=p.JSXAttribute=p.IntersectionTypeAnnotation=p.InterpreterDirective=p.InterfaceTypeAnnotation=p.InterfaceExtends=p.InterfaceDeclaration=p.InferredPredicate=p.IndexedAccessType=p.ImportSpecifier=p.ImportNamespaceSpecifier=p.ImportExpression=p.ImportDefaultSpecifier=p.ImportDeclaration=p.ImportAttribute=p.Import=p.IfStatement=p.Identifier=p.GenericTypeAnnotation=p.FunctionTypeParam=p.FunctionTypeAnnotation=p.FunctionExpression=p.FunctionDeclaration=p.ForStatement=p.ForOfStatement=p.ForInStatement=p.File=p.ExpressionStatement=p.ExportSpecifier=p.ExportNamespaceSpecifier=p.ExportNamedDeclaration=p.ExportDefaultSpecifier=p.ExportDefaultDeclaration=p.ExportAllDeclaration=p.ExistsTypeAnnotation=p.EnumSymbolBody=p.EnumStringMember=p.EnumStringBody=p.EnumNumberMember=p.EnumNumberBody=p.EnumDefaultedMember=p.EnumDeclaration=p.EnumBooleanMember=p.EnumBooleanBody=p.EmptyTypeAnnotation=p.EmptyStatement=p.DoWhileStatement=p.DoExpression=p.DirectiveLiteral=p.Directive=p.Decorator=p.DeclaredPredicate=p.DeclareVariable=p.DeclareTypeAlias=p.DeclareOpaqueType=p.DeclareModuleExports=p.DeclareModule=p.DeclareInterface=p.DeclareFunction=p.DeclareExportDeclaration=p.DeclareExportAllDeclaration=p.DeclareClass=p.DecimalLiteral=p.DebuggerStatement=p.ContinueStatement=p.ConditionalExpression=p.ClassProperty=p.ClassPrivateProperty=p.ClassPrivateMethod=p.ClassMethod=p.ClassImplements=p.ClassExpression=p.ClassDeclaration=p.ClassBody=p.ClassAccessorProperty=p.CatchClause=p.CallExpression=p.BreakStatement=p.BooleanTypeAnnotation=p.BooleanLiteralTypeAnnotation=p.BooleanLiteral=p.BlockStatement=p.BindExpression=p.BinaryExpression=p.BigIntLiteral=p.AwaitExpression=p.AssignmentPattern=p.AssignmentExpression=p.ArrowFunctionExpression=p.ArrayTypeAnnotation=p.ArrayPattern=p.ArrayExpression=p.ArgumentPlaceholder=p.AnyTypeAnnotation=void 0;p.TSNumberKeyword=p.TSNullKeyword=p.TSNonNullExpression=p.TSNeverKeyword=p.TSNamespaceExportDeclaration=p.TSNamedTupleMember=p.TSModuleDeclaration=p.TSModuleBlock=p.TSMethodSignature=p.TSMappedType=p.TSLiteralType=p.TSIntrinsicKeyword=p.TSIntersectionType=p.TSInterfaceDeclaration=p.TSInterfaceBody=p.TSInstantiationExpression=p.TSInferType=p.TSIndexedAccessType=p.TSIndexSignature=p.TSImportType=p.TSImportEqualsDeclaration=p.TSFunctionType=p.TSExternalModuleReference=p.TSExpressionWithTypeArguments=p.TSExportAssignment=p.TSEnumMember=p.TSEnumDeclaration=p.TSEnumBody=p.TSDeclareMethod=p.TSDeclareFunction=p.TSConstructorType=p.TSConstructSignatureDeclaration=p.TSConditionalType=p.TSCallSignatureDeclaration=p.TSBooleanKeyword=p.TSBigIntKeyword=p.TSAsExpression=p.TSArrayType=p.TSAnyKeyword=p.SymbolTypeAnnotation=p.SwitchStatement=p.SwitchCase=p.Super=p.StringTypeAnnotation=p.StringLiteralTypeAnnotation=p.StringLiteral=p.StaticBlock=p.SpreadProperty=p.SpreadElement=p.SequenceExpression=p.ReturnStatement=p.RestProperty=p.RestElement=p.RegexLiteral=p.RegExpLiteral=p.RecordExpression=p.QualifiedTypeIdentifier=p.Program=p.PrivateName=p.Placeholder=p.PipelineTopicExpression=p.PipelinePrimaryTopicReference=p.PipelineBareFunction=p.ParenthesizedExpression=p.OptionalMemberExpression=p.OptionalIndexedAccessType=p.OptionalCallExpression=p.OpaqueType=p.ObjectTypeSpreadProperty=p.ObjectTypeProperty=p.ObjectTypeInternalSlot=p.ObjectTypeIndexer=p.ObjectTypeCallProperty=p.ObjectTypeAnnotation=p.ObjectProperty=p.ObjectPattern=p.ObjectMethod=p.ObjectExpression=p.NumericLiteral=p.NumberTypeAnnotation=p.NumberLiteralTypeAnnotation=p.NumberLiteral=p.NullableTypeAnnotation=p.NullLiteralTypeAnnotation=p.NullLiteral=p.Noop=p.NewExpression=p.ModuleExpression=p.MixedTypeAnnotation=p.MetaProperty=p.MemberExpression=p.LogicalExpression=p.LabeledStatement=p.JSXText=p.JSXSpreadChild=p.JSXSpreadAttribute=p.JSXOpeningFragment=p.JSXOpeningElement=p.JSXNamespacedName=p.JSXMemberExpression=void 0;p.YieldExpression=p.WithStatement=p.WhileStatement=p.VoidTypeAnnotation=p.VoidPattern=p.Variance=p.VariableDeclarator=p.VariableDeclaration=p.V8IntrinsicIdentifier=p.UpdateExpression=p.UnionTypeAnnotation=p.UnaryExpression=p.TypeofTypeAnnotation=p.TypeParameterInstantiation=p.TypeParameterDeclaration=p.TypeParameter=p.TypeCastExpression=p.TypeAnnotation=p.TypeAlias=p.TupleTypeAnnotation=p.TupleExpression=p.TryStatement=p.TopicReference=p.ThrowStatement=p.ThisTypeAnnotation=p.ThisExpression=p.TemplateLiteral=p.TemplateElement=p.TaggedTemplateExpression=p.TSVoidKeyword=p.TSUnknownKeyword=p.TSUnionType=p.TSUndefinedKeyword=p.TSTypeReference=p.TSTypeQuery=p.TSTypePredicate=p.TSTypeParameterInstantiation=p.TSTypeParameterDeclaration=p.TSTypeParameter=p.TSTypeOperator=p.TSTypeLiteral=p.TSTypeAssertion=p.TSTypeAnnotation=p.TSTypeAliasDeclaration=p.TSTupleType=p.TSThisType=p.TSTemplateLiteralType=p.TSSymbolKeyword=p.TSStringKeyword=p.TSSatisfiesExpression=p.TSRestType=p.TSQualifiedName=p.TSPropertySignature=p.TSParenthesizedType=p.TSParameterProperty=p.TSOptionalType=p.TSObjectKeyword=void 0;var Sn=Hc(),aZ=hs();function P(t){return Sn[t]}var oZ=p.ArrayExpression=P("arrayExpression"),lZ=p.AssignmentExpression=P("assignmentExpression"),cZ=p.BinaryExpression=P("binaryExpression"),uZ=p.InterpreterDirective=P("interpreterDirective"),pZ=p.Directive=P("directive"),fZ=p.DirectiveLiteral=P("directiveLiteral"),hZ=p.BlockStatement=P("blockStatement"),dZ=p.BreakStatement=P("breakStatement"),mZ=p.CallExpression=P("callExpression"),yZ=p.CatchClause=P("catchClause"),TZ=p.ConditionalExpression=P("conditionalExpression"),gZ=p.ContinueStatement=P("continueStatement"),xZ=p.DebuggerStatement=P("debuggerStatement"),bZ=p.DoWhileStatement=P("doWhileStatement"),SZ=p.EmptyStatement=P("emptyStatement"),EZ=p.ExpressionStatement=P("expressionStatement"),PZ=p.File=P("file"),vZ=p.ForInStatement=P("forInStatement"),AZ=p.ForStatement=P("forStatement"),wZ=p.FunctionDeclaration=P("functionDeclaration"),CZ=p.FunctionExpression=P("functionExpression"),IZ=p.Identifier=P("identifier"),kZ=p.IfStatement=P("ifStatement"),OZ=p.LabeledStatement=P("labeledStatement"),_Z=p.StringLiteral=P("stringLiteral"),NZ=p.NumericLiteral=P("numericLiteral"),DZ=p.NullLiteral=P("nullLiteral"),LZ=p.BooleanLiteral=P("booleanLiteral"),MZ=p.RegExpLiteral=P("regExpLiteral"),FZ=p.LogicalExpression=P("logicalExpression"),BZ=p.MemberExpression=P("memberExpression"),jZ=p.NewExpression=P("newExpression"),RZ=p.Program=P("program"),qZ=p.ObjectExpression=P("objectExpression"),$Z=p.ObjectMethod=P("objectMethod"),UZ=p.ObjectProperty=P("objectProperty"),KZ=p.RestElement=P("restElement"),WZ=p.ReturnStatement=P("returnStatement"),VZ=p.SequenceExpression=P("sequenceExpression"),YZ=p.ParenthesizedExpression=P("parenthesizedExpression"),zZ=p.SwitchCase=P("switchCase"),JZ=p.SwitchStatement=P("switchStatement"),XZ=p.ThisExpression=P("thisExpression"),HZ=p.ThrowStatement=P("throwStatement"),GZ=p.TryStatement=P("tryStatement"),QZ=p.UnaryExpression=P("unaryExpression"),ZZ=p.UpdateExpression=P("updateExpression"),eee=p.VariableDeclaration=P("variableDeclaration"),tee=p.VariableDeclarator=P("variableDeclarator"),ree=p.WhileStatement=P("whileStatement"),iee=p.WithStatement=P("withStatement"),see=p.AssignmentPattern=P("assignmentPattern"),nee=p.ArrayPattern=P("arrayPattern"),aee=p.ArrowFunctionExpression=P("arrowFunctionExpression"),oee=p.ClassBody=P("classBody"),lee=p.ClassExpression=P("classExpression"),cee=p.ClassDeclaration=P("classDeclaration"),uee=p.ExportAllDeclaration=P("exportAllDeclaration"),pee=p.ExportDefaultDeclaration=P("exportDefaultDeclaration"),fee=p.ExportNamedDeclaration=P("exportNamedDeclaration"),hee=p.ExportSpecifier=P("exportSpecifier"),dee=p.ForOfStatement=P("forOfStatement"),mee=p.ImportDeclaration=P("importDeclaration"),yee=p.ImportDefaultSpecifier=P("importDefaultSpecifier"),Tee=p.ImportNamespaceSpecifier=P("importNamespaceSpecifier"),gee=p.ImportSpecifier=P("importSpecifier"),xee=p.ImportExpression=P("importExpression"),bee=p.MetaProperty=P("metaProperty"),See=p.ClassMethod=P("classMethod"),Eee=p.ObjectPattern=P("objectPattern"),Pee=p.SpreadElement=P("spreadElement"),vee=p.Super=P("super"),Aee=p.TaggedTemplateExpression=P("taggedTemplateExpression"),wee=p.TemplateElement=P("templateElement"),Cee=p.TemplateLiteral=P("templateLiteral"),Iee=p.YieldExpression=P("yieldExpression"),kee=p.AwaitExpression=P("awaitExpression"),Oee=p.Import=P("import"),_ee=p.BigIntLiteral=P("bigIntLiteral"),Nee=p.ExportNamespaceSpecifier=P("exportNamespaceSpecifier"),Dee=p.OptionalMemberExpression=P("optionalMemberExpression"),Lee=p.OptionalCallExpression=P("optionalCallExpression"),Mee=p.ClassProperty=P("classProperty"),Fee=p.ClassAccessorProperty=P("classAccessorProperty"),Bee=p.ClassPrivateProperty=P("classPrivateProperty"),jee=p.ClassPrivateMethod=P("classPrivateMethod"),Ree=p.PrivateName=P("privateName"),qee=p.StaticBlock=P("staticBlock"),$ee=p.ImportAttribute=P("importAttribute"),Uee=p.AnyTypeAnnotation=P("anyTypeAnnotation"),Kee=p.ArrayTypeAnnotation=P("arrayTypeAnnotation"),Wee=p.BooleanTypeAnnotation=P("booleanTypeAnnotation"),Vee=p.BooleanLiteralTypeAnnotation=P("booleanLiteralTypeAnnotation"),Yee=p.NullLiteralTypeAnnotation=P("nullLiteralTypeAnnotation"),zee=p.ClassImplements=P("classImplements"),Jee=p.DeclareClass=P("declareClass"),Xee=p.DeclareFunction=P("declareFunction"),Hee=p.DeclareInterface=P("declareInterface"),Gee=p.DeclareModule=P("declareModule"),Qee=p.DeclareModuleExports=P("declareModuleExports"),Zee=p.DeclareTypeAlias=P("declareTypeAlias"),ete=p.DeclareOpaqueType=P("declareOpaqueType"),tte=p.DeclareVariable=P("declareVariable"),rte=p.DeclareExportDeclaration=P("declareExportDeclaration"),ite=p.DeclareExportAllDeclaration=P("declareExportAllDeclaration"),ste=p.DeclaredPredicate=P("declaredPredicate"),nte=p.ExistsTypeAnnotation=P("existsTypeAnnotation"),ate=p.FunctionTypeAnnotation=P("functionTypeAnnotation"),ote=p.FunctionTypeParam=P("functionTypeParam"),lte=p.GenericTypeAnnotation=P("genericTypeAnnotation"),cte=p.InferredPredicate=P("inferredPredicate"),ute=p.InterfaceExtends=P("interfaceExtends"),pte=p.InterfaceDeclaration=P("interfaceDeclaration"),fte=p.InterfaceTypeAnnotation=P("interfaceTypeAnnotation"),hte=p.IntersectionTypeAnnotation=P("intersectionTypeAnnotation"),dte=p.MixedTypeAnnotation=P("mixedTypeAnnotation"),mte=p.EmptyTypeAnnotation=P("emptyTypeAnnotation"),yte=p.NullableTypeAnnotation=P("nullableTypeAnnotation"),Tte=p.NumberLiteralTypeAnnotation=P("numberLiteralTypeAnnotation"),gte=p.NumberTypeAnnotation=P("numberTypeAnnotation"),xte=p.ObjectTypeAnnotation=P("objectTypeAnnotation"),bte=p.ObjectTypeInternalSlot=P("objectTypeInternalSlot"),Ste=p.ObjectTypeCallProperty=P("objectTypeCallProperty"),Ete=p.ObjectTypeIndexer=P("objectTypeIndexer"),Pte=p.ObjectTypeProperty=P("objectTypeProperty"),vte=p.ObjectTypeSpreadProperty=P("objectTypeSpreadProperty"),Ate=p.OpaqueType=P("opaqueType"),wte=p.QualifiedTypeIdentifier=P("qualifiedTypeIdentifier"),Cte=p.StringLiteralTypeAnnotation=P("stringLiteralTypeAnnotation"),Ite=p.StringTypeAnnotation=P("stringTypeAnnotation"),kte=p.SymbolTypeAnnotation=P("symbolTypeAnnotation"),Ote=p.ThisTypeAnnotation=P("thisTypeAnnotation"),_te=p.TupleTypeAnnotation=P("tupleTypeAnnotation"),Nte=p.TypeofTypeAnnotation=P("typeofTypeAnnotation"),Dte=p.TypeAlias=P("typeAlias"),Lte=p.TypeAnnotation=P("typeAnnotation"),Mte=p.TypeCastExpression=P("typeCastExpression"),Fte=p.TypeParameter=P("typeParameter"),Bte=p.TypeParameterDeclaration=P("typeParameterDeclaration"),jte=p.TypeParameterInstantiation=P("typeParameterInstantiation"),Rte=p.UnionTypeAnnotation=P("unionTypeAnnotation"),qte=p.Variance=P("variance"),$te=p.VoidTypeAnnotation=P("voidTypeAnnotation"),Ute=p.EnumDeclaration=P("enumDeclaration"),Kte=p.EnumBooleanBody=P("enumBooleanBody"),Wte=p.EnumNumberBody=P("enumNumberBody"),Vte=p.EnumStringBody=P("enumStringBody"),Yte=p.EnumSymbolBody=P("enumSymbolBody"),zte=p.EnumBooleanMember=P("enumBooleanMember"),Jte=p.EnumNumberMember=P("enumNumberMember"),Xte=p.EnumStringMember=P("enumStringMember"),Hte=p.EnumDefaultedMember=P("enumDefaultedMember"),Gte=p.IndexedAccessType=P("indexedAccessType"),Qte=p.OptionalIndexedAccessType=P("optionalIndexedAccessType"),Zte=p.JSXAttribute=P("jsxAttribute"),ere=p.JSXClosingElement=P("jsxClosingElement"),tre=p.JSXElement=P("jsxElement"),rre=p.JSXEmptyExpression=P("jsxEmptyExpression"),ire=p.JSXExpressionContainer=P("jsxExpressionContainer"),sre=p.JSXSpreadChild=P("jsxSpreadChild"),nre=p.JSXIdentifier=P("jsxIdentifier"),are=p.JSXMemberExpression=P("jsxMemberExpression"),ore=p.JSXNamespacedName=P("jsxNamespacedName"),lre=p.JSXOpeningElement=P("jsxOpeningElement"),cre=p.JSXSpreadAttribute=P("jsxSpreadAttribute"),ure=p.JSXText=P("jsxText"),pre=p.JSXFragment=P("jsxFragment"),fre=p.JSXOpeningFragment=P("jsxOpeningFragment"),hre=p.JSXClosingFragment=P("jsxClosingFragment"),dre=p.Noop=P("noop"),mre=p.Placeholder=P("placeholder"),yre=p.V8IntrinsicIdentifier=P("v8IntrinsicIdentifier"),Tre=p.ArgumentPlaceholder=P("argumentPlaceholder"),gre=p.BindExpression=P("bindExpression"),xre=p.Decorator=P("decorator"),bre=p.DoExpression=P("doExpression"),Sre=p.ExportDefaultSpecifier=P("exportDefaultSpecifier"),Ere=p.RecordExpression=P("recordExpression"),Pre=p.TupleExpression=P("tupleExpression"),vre=p.DecimalLiteral=P("decimalLiteral"),Are=p.ModuleExpression=P("moduleExpression"),wre=p.TopicReference=P("topicReference"),Cre=p.PipelineTopicExpression=P("pipelineTopicExpression"),Ire=p.PipelineBareFunction=P("pipelineBareFunction"),kre=p.PipelinePrimaryTopicReference=P("pipelinePrimaryTopicReference"),Ore=p.VoidPattern=P("voidPattern"),_re=p.TSParameterProperty=P("tsParameterProperty"),Nre=p.TSDeclareFunction=P("tsDeclareFunction"),Dre=p.TSDeclareMethod=P("tsDeclareMethod"),Lre=p.TSQualifiedName=P("tsQualifiedName"),Mre=p.TSCallSignatureDeclaration=P("tsCallSignatureDeclaration"),Fre=p.TSConstructSignatureDeclaration=P("tsConstructSignatureDeclaration"),Bre=p.TSPropertySignature=P("tsPropertySignature"),jre=p.TSMethodSignature=P("tsMethodSignature"),Rre=p.TSIndexSignature=P("tsIndexSignature"),qre=p.TSAnyKeyword=P("tsAnyKeyword"),$re=p.TSBooleanKeyword=P("tsBooleanKeyword"),Ure=p.TSBigIntKeyword=P("tsBigIntKeyword"),Kre=p.TSIntrinsicKeyword=P("tsIntrinsicKeyword"),Wre=p.TSNeverKeyword=P("tsNeverKeyword"),Vre=p.TSNullKeyword=P("tsNullKeyword"),Yre=p.TSNumberKeyword=P("tsNumberKeyword"),zre=p.TSObjectKeyword=P("tsObjectKeyword"),Jre=p.TSStringKeyword=P("tsStringKeyword"),Xre=p.TSSymbolKeyword=P("tsSymbolKeyword"),Hre=p.TSUndefinedKeyword=P("tsUndefinedKeyword"),Gre=p.TSUnknownKeyword=P("tsUnknownKeyword"),Qre=p.TSVoidKeyword=P("tsVoidKeyword"),Zre=p.TSThisType=P("tsThisType"),eie=p.TSFunctionType=P("tsFunctionType"),tie=p.TSConstructorType=P("tsConstructorType"),rie=p.TSTypeReference=P("tsTypeReference"),iie=p.TSTypePredicate=P("tsTypePredicate"),sie=p.TSTypeQuery=P("tsTypeQuery"),nie=p.TSTypeLiteral=P("tsTypeLiteral"),aie=p.TSArrayType=P("tsArrayType"),oie=p.TSTupleType=P("tsTupleType"),lie=p.TSOptionalType=P("tsOptionalType"),cie=p.TSRestType=P("tsRestType"),uie=p.TSNamedTupleMember=P("tsNamedTupleMember"),pie=p.TSUnionType=P("tsUnionType"),fie=p.TSIntersectionType=P("tsIntersectionType"),hie=p.TSConditionalType=P("tsConditionalType"),die=p.TSInferType=P("tsInferType"),mie=p.TSParenthesizedType=P("tsParenthesizedType"),yie=p.TSTypeOperator=P("tsTypeOperator"),Tie=p.TSIndexedAccessType=P("tsIndexedAccessType"),gie=p.TSMappedType=P("tsMappedType"),xie=p.TSTemplateLiteralType=P("tsTemplateLiteralType"),bie=p.TSLiteralType=P("tsLiteralType"),Sie=p.TSExpressionWithTypeArguments=P("tsExpressionWithTypeArguments"),Eie=p.TSInterfaceDeclaration=P("tsInterfaceDeclaration"),Pie=p.TSInterfaceBody=P("tsInterfaceBody"),vie=p.TSTypeAliasDeclaration=P("tsTypeAliasDeclaration"),Aie=p.TSInstantiationExpression=P("tsInstantiationExpression"),wie=p.TSAsExpression=P("tsAsExpression"),Cie=p.TSSatisfiesExpression=P("tsSatisfiesExpression"),Iie=p.TSTypeAssertion=P("tsTypeAssertion"),kie=p.TSEnumBody=P("tsEnumBody"),Oie=p.TSEnumDeclaration=P("tsEnumDeclaration"),_ie=p.TSEnumMember=P("tsEnumMember"),Nie=p.TSModuleDeclaration=P("tsModuleDeclaration"),Die=p.TSModuleBlock=P("tsModuleBlock"),Lie=p.TSImportType=P("tsImportType"),Mie=p.TSImportEqualsDeclaration=P("tsImportEqualsDeclaration"),Fie=p.TSExternalModuleReference=P("tsExternalModuleReference"),Bie=p.TSNonNullExpression=P("tsNonNullExpression"),jie=p.TSExportAssignment=P("tsExportAssignment"),Rie=p.TSNamespaceExportDeclaration=P("tsNamespaceExportDeclaration"),qie=p.TSTypeAnnotation=P("tsTypeAnnotation"),$ie=p.TSTypeParameterInstantiation=P("tsTypeParameterInstantiation"),Uie=p.TSTypeParameterDeclaration=P("tsTypeParameterDeclaration"),Kie=p.TSTypeParameter=P("tsTypeParameter"),Wie=p.NumberLiteral=Sn.numberLiteral,Vie=p.RegexLiteral=Sn.regexLiteral,Yie=p.RestProperty=Sn.restProperty,zie=p.SpreadProperty=Sn.spreadProperty});var Ht=k(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});var Gc=Hc();Object.keys(Gc).forEach(function(t){t==="default"||t==="__esModule"||t in ai&&ai[t]===Gc[t]||Object.defineProperty(ai,t,{enumerable:!0,get:function(){return Gc[t]}})});var Qc=ny();Object.keys(Qc).forEach(function(t){t==="default"||t==="__esModule"||t in ai&&ai[t]===Qc[t]||Object.defineProperty(ai,t,{enumerable:!0,get:function(){return Qc[t]}})})});var ay=k(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.default=YD;var WD=Ht(),VD=Me();function YD(t,e){let r=t.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,u=a.replace(/\t/g," ");o||(u=u.replace(/^ +/,"")),l||(u=u.replace(/ +$/,"")),u&&(c||(u+=" "),s+=u)}s&&e.push((0,VD.inherits)((0,WD.stringLiteral)(s),t))}});var oy=k(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.default=JD;var eu=ht(),zD=ay();function JD(t){let e=[];for(let r=0;r<t.children.length;r++){let i=t.children[r];if((0,eu.isJSXText)(i)){(0,zD.default)(i,e);continue}(0,eu.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,eu.isJSXEmptyExpression)(i)&&e.push(i)}return e}});var iu=k(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.default=HD;var XD=or();function HD(t){return!!(t&&XD.VISITOR_KEYS[t.type])}});var ly=k(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.default=QD;var GD=iu();function QD(t){if(!(0,GD.default)(t)){var e;let r=(e=t?.type)!=null?e:JSON.stringify(t);throw new TypeError(`Not a valid node of type "${r}"`)}}});var cy=k(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.assertAccessor=gj;T.assertAnyTypeAnnotation=MM;T.assertArgumentPlaceholder=uF;T.assertArrayExpression=eL;T.assertArrayPattern=QL;T.assertArrayTypeAnnotation=FM;T.assertArrowFunctionExpression=ZL;T.assertAssignmentExpression=tL;T.assertAssignmentPattern=GL;T.assertAwaitExpression=EM;T.assertBigIntLiteral=vM;T.assertBinary=RB;T.assertBinaryExpression=rL;T.assertBindExpression=pF;T.assertBlock=UB;T.assertBlockParent=$B;T.assertBlockStatement=aL;T.assertBooleanLiteral=CL;T.assertBooleanLiteralTypeAnnotation=jM;T.assertBooleanTypeAnnotation=BM;T.assertBreakStatement=oL;T.assertCallExpression=lL;T.assertCatchClause=cL;T.assertClass=dj;T.assertClassAccessorProperty=kM;T.assertClassBody=eM;T.assertClassDeclaration=rM;T.assertClassExpression=tM;T.assertClassImplements=qM;T.assertClassMethod=dM;T.assertClassPrivateMethod=_M;T.assertClassPrivateProperty=OM;T.assertClassProperty=IM;T.assertCompletionStatement=VB;T.assertConditional=YB;T.assertConditionalExpression=uL;T.assertContinueStatement=pL;T.assertDebuggerStatement=fL;T.assertDecimalLiteral=TF;T.assertDeclaration=tj;T.assertDeclareClass=$M;T.assertDeclareExportAllDeclaration=HM;T.assertDeclareExportDeclaration=XM;T.assertDeclareFunction=UM;T.assertDeclareInterface=KM;T.assertDeclareModule=WM;T.assertDeclareModuleExports=VM;T.assertDeclareOpaqueType=zM;T.assertDeclareTypeAlias=YM;T.assertDeclareVariable=JM;T.assertDeclaredPredicate=GM;T.assertDecorator=fF;T.assertDirective=sL;T.assertDirectiveLiteral=nL;T.assertDoExpression=hF;T.assertDoWhileStatement=hL;T.assertEmptyStatement=dL;T.assertEmptyTypeAnnotation=l3;T.assertEnumBody=Aj;T.assertEnumBooleanBody=F3;T.assertEnumBooleanMember=q3;T.assertEnumDeclaration=M3;T.assertEnumDefaultedMember=K3;T.assertEnumMember=wj;T.assertEnumNumberBody=B3;T.assertEnumNumberMember=$3;T.assertEnumStringBody=j3;T.assertEnumStringMember=U3;T.assertEnumSymbolBody=R3;T.assertExistsTypeAnnotation=QM;T.assertExportAllDeclaration=iM;T.assertExportDeclaration=yj;T.assertExportDefaultDeclaration=sM;T.assertExportDefaultSpecifier=dF;T.assertExportNamedDeclaration=nM;T.assertExportNamespaceSpecifier=AM;T.assertExportSpecifier=aM;T.assertExpression=jB;T.assertExpressionStatement=mL;T.assertExpressionWrapper=XB;T.assertFile=yL;T.assertFlow=bj;T.assertFlowBaseAnnotation=Ej;T.assertFlowDeclaration=Pj;T.assertFlowPredicate=vj;T.assertFlowType=Sj;T.assertFor=HB;T.assertForInStatement=TL;T.assertForOfStatement=oM;T.assertForStatement=gL;T.assertForXStatement=GB;T.assertFunction=QB;T.assertFunctionDeclaration=xL;T.assertFunctionExpression=bL;T.assertFunctionParameter=rj;T.assertFunctionParent=ZB;T.assertFunctionTypeAnnotation=ZM;T.assertFunctionTypeParam=e3;T.assertGenericTypeAnnotation=t3;T.assertIdentifier=SL;T.assertIfStatement=EL;T.assertImmutable=oj;T.assertImport=PM;T.assertImportAttribute=LM;T.assertImportDeclaration=lM;T.assertImportDefaultSpecifier=cM;T.assertImportExpression=fM;T.assertImportNamespaceSpecifier=uM;T.assertImportOrExportDeclaration=mj;T.assertImportSpecifier=pM;T.assertIndexedAccessType=W3;T.assertInferredPredicate=r3;T.assertInterfaceDeclaration=s3;T.assertInterfaceExtends=i3;T.assertInterfaceTypeAnnotation=n3;T.assertInterpreterDirective=iL;T.assertIntersectionTypeAnnotation=a3;T.assertJSX=Cj;T.assertJSXAttribute=Y3;T.assertJSXClosingElement=z3;T.assertJSXClosingFragment=aF;T.assertJSXElement=J3;T.assertJSXEmptyExpression=X3;T.assertJSXExpressionContainer=H3;T.assertJSXFragment=sF;T.assertJSXIdentifier=Q3;T.assertJSXMemberExpression=Z3;T.assertJSXNamespacedName=eF;T.assertJSXOpeningElement=tF;T.assertJSXOpeningFragment=nF;T.assertJSXSpreadAttribute=rF;T.assertJSXSpreadChild=G3;T.assertJSXText=iF;T.assertLVal=sj;T.assertLabeledStatement=PL;T.assertLiteral=aj;T.assertLogicalExpression=kL;T.assertLoop=zB;T.assertMemberExpression=OL;T.assertMetaProperty=hM;T.assertMethod=cj;T.assertMiscellaneous=Ij;T.assertMixedTypeAnnotation=o3;T.assertModuleDeclaration=Bj;T.assertModuleExpression=gF;T.assertModuleSpecifier=Tj;T.assertNewExpression=_L;T.assertNoop=oF;T.assertNullLiteral=wL;T.assertNullLiteralTypeAnnotation=RM;T.assertNullableTypeAnnotation=c3;T.assertNumberLiteral=Dj;T.assertNumberLiteralTypeAnnotation=u3;T.assertNumberTypeAnnotation=p3;T.assertNumericLiteral=AL;T.assertObjectExpression=DL;T.assertObjectMember=uj;T.assertObjectMethod=LL;T.assertObjectPattern=mM;T.assertObjectProperty=ML;T.assertObjectTypeAnnotation=f3;T.assertObjectTypeCallProperty=d3;T.assertObjectTypeIndexer=m3;T.assertObjectTypeInternalSlot=h3;T.assertObjectTypeProperty=y3;T.assertObjectTypeSpreadProperty=T3;T.assertOpaqueType=g3;T.assertOptionalCallExpression=CM;T.assertOptionalIndexedAccessType=V3;T.assertOptionalMemberExpression=wM;T.assertParenthesizedExpression=RL;T.assertPattern=hj;T.assertPatternLike=ij;T.assertPipelineBareFunction=SF;T.assertPipelinePrimaryTopicReference=EF;T.assertPipelineTopicExpression=bF;T.assertPlaceholder=lF;T.assertPrivate=xj;T.assertPrivateName=NM;T.assertProgram=NL;T.assertProperty=pj;T.assertPureish=ej;T.assertQualifiedTypeIdentifier=x3;T.assertRecordExpression=mF;T.assertRegExpLiteral=IL;T.assertRegexLiteral=Lj;T.assertRestElement=FL;T.assertRestProperty=Mj;T.assertReturnStatement=BL;T.assertScopable=qB;T.assertSequenceExpression=jL;T.assertSpreadElement=yM;T.assertSpreadProperty=Fj;T.assertStandardized=BB;T.assertStatement=KB;T.assertStaticBlock=DM;T.assertStringLiteral=vL;T.assertStringLiteralTypeAnnotation=b3;T.assertStringTypeAnnotation=S3;T.assertSuper=TM;T.assertSwitchCase=qL;T.assertSwitchStatement=$L;T.assertSymbolTypeAnnotation=E3;T.assertTSAnyKeyword=DF;T.assertTSArrayType=ZF;T.assertTSAsExpression=xB;T.assertTSBaseType=Nj;T.assertTSBigIntKeyword=MF;T.assertTSBooleanKeyword=LF;T.assertTSCallSignatureDeclaration=IF;T.assertTSConditionalType=aB;T.assertTSConstructSignatureDeclaration=kF;T.assertTSConstructorType=JF;T.assertTSDeclareFunction=AF;T.assertTSDeclareMethod=wF;T.assertTSEntityName=nj;T.assertTSEnumBody=EB;T.assertTSEnumDeclaration=PB;T.assertTSEnumMember=vB;T.assertTSExportAssignment=_B;T.assertTSExpressionWithTypeArguments=dB;T.assertTSExternalModuleReference=kB;T.assertTSFunctionType=zF;T.assertTSImportEqualsDeclaration=IB;T.assertTSImportType=CB;T.assertTSIndexSignature=NF;T.assertTSIndexedAccessType=uB;T.assertTSInferType=oB;T.assertTSInstantiationExpression=gB;T.assertTSInterfaceBody=yB;T.assertTSInterfaceDeclaration=mB;T.assertTSIntersectionType=nB;T.assertTSIntrinsicKeyword=FF;T.assertTSLiteralType=hB;T.assertTSMappedType=pB;T.assertTSMethodSignature=_F;T.assertTSModuleBlock=wB;T.assertTSModuleDeclaration=AB;T.assertTSNamedTupleMember=iB;T.assertTSNamespaceExportDeclaration=NB;T.assertTSNeverKeyword=BF;T.assertTSNonNullExpression=OB;T.assertTSNullKeyword=jF;T.assertTSNumberKeyword=RF;T.assertTSObjectKeyword=qF;T.assertTSOptionalType=tB;T.assertTSParameterProperty=vF;T.assertTSParenthesizedType=lB;T.assertTSPropertySignature=OF;T.assertTSQualifiedName=CF;T.assertTSRestType=rB;T.assertTSSatisfiesExpression=bB;T.assertTSStringKeyword=$F;T.assertTSSymbolKeyword=UF;T.assertTSTemplateLiteralType=fB;T.assertTSThisType=YF;T.assertTSTupleType=eB;T.assertTSType=_j;T.assertTSTypeAliasDeclaration=TB;T.assertTSTypeAnnotation=DB;T.assertTSTypeAssertion=SB;T.assertTSTypeElement=Oj;T.assertTSTypeLiteral=QF;T.assertTSTypeOperator=cB;T.assertTSTypeParameter=FB;T.assertTSTypeParameterDeclaration=MB;T.assertTSTypeParameterInstantiation=LB;T.assertTSTypePredicate=HF;T.assertTSTypeQuery=GF;T.assertTSTypeReference=XF;T.assertTSUndefinedKeyword=KF;T.assertTSUnionType=sB;T.assertTSUnknownKeyword=WF;T.assertTSVoidKeyword=VF;T.assertTaggedTemplateExpression=gM;T.assertTemplateElement=xM;T.assertTemplateLiteral=bM;T.assertTerminatorless=WB;T.assertThisExpression=UL;T.assertThisTypeAnnotation=P3;T.assertThrowStatement=KL;T.assertTopicReference=xF;T.assertTryStatement=WL;T.assertTupleExpression=yF;T.assertTupleTypeAnnotation=v3;T.assertTypeAlias=w3;T.assertTypeAnnotation=C3;T.assertTypeCastExpression=I3;T.assertTypeParameter=k3;T.assertTypeParameterDeclaration=O3;T.assertTypeParameterInstantiation=_3;T.assertTypeScript=kj;T.assertTypeofTypeAnnotation=A3;T.assertUnaryExpression=VL;T.assertUnaryLike=fj;T.assertUnionTypeAnnotation=N3;T.assertUpdateExpression=YL;T.assertUserWhitespacable=lj;T.assertV8IntrinsicIdentifier=cF;T.assertVariableDeclaration=zL;T.assertVariableDeclarator=JL;T.assertVariance=D3;T.assertVoidPattern=PF;T.assertVoidTypeAnnotation=L3;T.assertWhile=JB;T.assertWhileStatement=XL;T.assertWithStatement=HL;T.assertYieldExpression=SM;var ZD=ds(),En=hs();function g(t,e,r){if(!(0,ZD.default)(t,e,r))throw new Error(`Expected type "${t}" with option ${JSON.stringify(r)}, but instead got "${e.type}".`)}function eL(t,e){g("ArrayExpression",t,e)}function tL(t,e){g("AssignmentExpression",t,e)}function rL(t,e){g("BinaryExpression",t,e)}function iL(t,e){g("InterpreterDirective",t,e)}function sL(t,e){g("Directive",t,e)}function nL(t,e){g("DirectiveLiteral",t,e)}function aL(t,e){g("BlockStatement",t,e)}function oL(t,e){g("BreakStatement",t,e)}function lL(t,e){g("CallExpression",t,e)}function cL(t,e){g("CatchClause",t,e)}function uL(t,e){g("ConditionalExpression",t,e)}function pL(t,e){g("ContinueStatement",t,e)}function fL(t,e){g("DebuggerStatement",t,e)}function hL(t,e){g("DoWhileStatement",t,e)}function dL(t,e){g("EmptyStatement",t,e)}function mL(t,e){g("ExpressionStatement",t,e)}function yL(t,e){g("File",t,e)}function TL(t,e){g("ForInStatement",t,e)}function gL(t,e){g("ForStatement",t,e)}function xL(t,e){g("FunctionDeclaration",t,e)}function bL(t,e){g("FunctionExpression",t,e)}function SL(t,e){g("Identifier",t,e)}function EL(t,e){g("IfStatement",t,e)}function PL(t,e){g("LabeledStatement",t,e)}function vL(t,e){g("StringLiteral",t,e)}function AL(t,e){g("NumericLiteral",t,e)}function wL(t,e){g("NullLiteral",t,e)}function CL(t,e){g("BooleanLiteral",t,e)}function IL(t,e){g("RegExpLiteral",t,e)}function kL(t,e){g("LogicalExpression",t,e)}function OL(t,e){g("MemberExpression",t,e)}function _L(t,e){g("NewExpression",t,e)}function NL(t,e){g("Program",t,e)}function DL(t,e){g("ObjectExpression",t,e)}function LL(t,e){g("ObjectMethod",t,e)}function ML(t,e){g("ObjectProperty",t,e)}function FL(t,e){g("RestElement",t,e)}function BL(t,e){g("ReturnStatement",t,e)}function jL(t,e){g("SequenceExpression",t,e)}function RL(t,e){g("ParenthesizedExpression",t,e)}function qL(t,e){g("SwitchCase",t,e)}function $L(t,e){g("SwitchStatement",t,e)}function UL(t,e){g("ThisExpression",t,e)}function KL(t,e){g("ThrowStatement",t,e)}function WL(t,e){g("TryStatement",t,e)}function VL(t,e){g("UnaryExpression",t,e)}function YL(t,e){g("UpdateExpression",t,e)}function zL(t,e){g("VariableDeclaration",t,e)}function JL(t,e){g("VariableDeclarator",t,e)}function XL(t,e){g("WhileStatement",t,e)}function HL(t,e){g("WithStatement",t,e)}function GL(t,e){g("AssignmentPattern",t,e)}function QL(t,e){g("ArrayPattern",t,e)}function ZL(t,e){g("ArrowFunctionExpression",t,e)}function eM(t,e){g("ClassBody",t,e)}function tM(t,e){g("ClassExpression",t,e)}function rM(t,e){g("ClassDeclaration",t,e)}function iM(t,e){g("ExportAllDeclaration",t,e)}function sM(t,e){g("ExportDefaultDeclaration",t,e)}function nM(t,e){g("ExportNamedDeclaration",t,e)}function aM(t,e){g("ExportSpecifier",t,e)}function oM(t,e){g("ForOfStatement",t,e)}function lM(t,e){g("ImportDeclaration",t,e)}function cM(t,e){g("ImportDefaultSpecifier",t,e)}function uM(t,e){g("ImportNamespaceSpecifier",t,e)}function pM(t,e){g("ImportSpecifier",t,e)}function fM(t,e){g("ImportExpression",t,e)}function hM(t,e){g("MetaProperty",t,e)}function dM(t,e){g("ClassMethod",t,e)}function mM(t,e){g("ObjectPattern",t,e)}function yM(t,e){g("SpreadElement",t,e)}function TM(t,e){g("Super",t,e)}function gM(t,e){g("TaggedTemplateExpression",t,e)}function xM(t,e){g("TemplateElement",t,e)}function bM(t,e){g("TemplateLiteral",t,e)}function SM(t,e){g("YieldExpression",t,e)}function EM(t,e){g("AwaitExpression",t,e)}function PM(t,e){g("Import",t,e)}function vM(t,e){g("BigIntLiteral",t,e)}function AM(t,e){g("ExportNamespaceSpecifier",t,e)}function wM(t,e){g("OptionalMemberExpression",t,e)}function CM(t,e){g("OptionalCallExpression",t,e)}function IM(t,e){g("ClassProperty",t,e)}function kM(t,e){g("ClassAccessorProperty",t,e)}function OM(t,e){g("ClassPrivateProperty",t,e)}function _M(t,e){g("ClassPrivateMethod",t,e)}function NM(t,e){g("PrivateName",t,e)}function DM(t,e){g("StaticBlock",t,e)}function LM(t,e){g("ImportAttribute",t,e)}function MM(t,e){g("AnyTypeAnnotation",t,e)}function FM(t,e){g("ArrayTypeAnnotation",t,e)}function BM(t,e){g("BooleanTypeAnnotation",t,e)}function jM(t,e){g("BooleanLiteralTypeAnnotation",t,e)}function RM(t,e){g("NullLiteralTypeAnnotation",t,e)}function qM(t,e){g("ClassImplements",t,e)}function $M(t,e){g("DeclareClass",t,e)}function UM(t,e){g("DeclareFunction",t,e)}function KM(t,e){g("DeclareInterface",t,e)}function WM(t,e){g("DeclareModule",t,e)}function VM(t,e){g("DeclareModuleExports",t,e)}function YM(t,e){g("DeclareTypeAlias",t,e)}function zM(t,e){g("DeclareOpaqueType",t,e)}function JM(t,e){g("DeclareVariable",t,e)}function XM(t,e){g("DeclareExportDeclaration",t,e)}function HM(t,e){g("DeclareExportAllDeclaration",t,e)}function GM(t,e){g("DeclaredPredicate",t,e)}function QM(t,e){g("ExistsTypeAnnotation",t,e)}function ZM(t,e){g("FunctionTypeAnnotation",t,e)}function e3(t,e){g("FunctionTypeParam",t,e)}function t3(t,e){g("GenericTypeAnnotation",t,e)}function r3(t,e){g("InferredPredicate",t,e)}function i3(t,e){g("InterfaceExtends",t,e)}function s3(t,e){g("InterfaceDeclaration",t,e)}function n3(t,e){g("InterfaceTypeAnnotation",t,e)}function a3(t,e){g("IntersectionTypeAnnotation",t,e)}function o3(t,e){g("MixedTypeAnnotation",t,e)}function l3(t,e){g("EmptyTypeAnnotation",t,e)}function c3(t,e){g("NullableTypeAnnotation",t,e)}function u3(t,e){g("NumberLiteralTypeAnnotation",t,e)}function p3(t,e){g("NumberTypeAnnotation",t,e)}function f3(t,e){g("ObjectTypeAnnotation",t,e)}function h3(t,e){g("ObjectTypeInternalSlot",t,e)}function d3(t,e){g("ObjectTypeCallProperty",t,e)}function m3(t,e){g("ObjectTypeIndexer",t,e)}function y3(t,e){g("ObjectTypeProperty",t,e)}function T3(t,e){g("ObjectTypeSpreadProperty",t,e)}function g3(t,e){g("OpaqueType",t,e)}function x3(t,e){g("QualifiedTypeIdentifier",t,e)}function b3(t,e){g("StringLiteralTypeAnnotation",t,e)}function S3(t,e){g("StringTypeAnnotation",t,e)}function E3(t,e){g("SymbolTypeAnnotation",t,e)}function P3(t,e){g("ThisTypeAnnotation",t,e)}function v3(t,e){g("TupleTypeAnnotation",t,e)}function A3(t,e){g("TypeofTypeAnnotation",t,e)}function w3(t,e){g("TypeAlias",t,e)}function C3(t,e){g("TypeAnnotation",t,e)}function I3(t,e){g("TypeCastExpression",t,e)}function k3(t,e){g("TypeParameter",t,e)}function O3(t,e){g("TypeParameterDeclaration",t,e)}function _3(t,e){g("TypeParameterInstantiation",t,e)}function N3(t,e){g("UnionTypeAnnotation",t,e)}function D3(t,e){g("Variance",t,e)}function L3(t,e){g("VoidTypeAnnotation",t,e)}function M3(t,e){g("EnumDeclaration",t,e)}function F3(t,e){g("EnumBooleanBody",t,e)}function B3(t,e){g("EnumNumberBody",t,e)}function j3(t,e){g("EnumStringBody",t,e)}function R3(t,e){g("EnumSymbolBody",t,e)}function q3(t,e){g("EnumBooleanMember",t,e)}function $3(t,e){g("EnumNumberMember",t,e)}function U3(t,e){g("EnumStringMember",t,e)}function K3(t,e){g("EnumDefaultedMember",t,e)}function W3(t,e){g("IndexedAccessType",t,e)}function V3(t,e){g("OptionalIndexedAccessType",t,e)}function Y3(t,e){g("JSXAttribute",t,e)}function z3(t,e){g("JSXClosingElement",t,e)}function J3(t,e){g("JSXElement",t,e)}function X3(t,e){g("JSXEmptyExpression",t,e)}function H3(t,e){g("JSXExpressionContainer",t,e)}function G3(t,e){g("JSXSpreadChild",t,e)}function Q3(t,e){g("JSXIdentifier",t,e)}function Z3(t,e){g("JSXMemberExpression",t,e)}function eF(t,e){g("JSXNamespacedName",t,e)}function tF(t,e){g("JSXOpeningElement",t,e)}function rF(t,e){g("JSXSpreadAttribute",t,e)}function iF(t,e){g("JSXText",t,e)}function sF(t,e){g("JSXFragment",t,e)}function nF(t,e){g("JSXOpeningFragment",t,e)}function aF(t,e){g("JSXClosingFragment",t,e)}function oF(t,e){g("Noop",t,e)}function lF(t,e){g("Placeholder",t,e)}function cF(t,e){g("V8IntrinsicIdentifier",t,e)}function uF(t,e){g("ArgumentPlaceholder",t,e)}function pF(t,e){g("BindExpression",t,e)}function fF(t,e){g("Decorator",t,e)}function hF(t,e){g("DoExpression",t,e)}function dF(t,e){g("ExportDefaultSpecifier",t,e)}function mF(t,e){g("RecordExpression",t,e)}function yF(t,e){g("TupleExpression",t,e)}function TF(t,e){g("DecimalLiteral",t,e)}function gF(t,e){g("ModuleExpression",t,e)}function xF(t,e){g("TopicReference",t,e)}function bF(t,e){g("PipelineTopicExpression",t,e)}function SF(t,e){g("PipelineBareFunction",t,e)}function EF(t,e){g("PipelinePrimaryTopicReference",t,e)}function PF(t,e){g("VoidPattern",t,e)}function vF(t,e){g("TSParameterProperty",t,e)}function AF(t,e){g("TSDeclareFunction",t,e)}function wF(t,e){g("TSDeclareMethod",t,e)}function CF(t,e){g("TSQualifiedName",t,e)}function IF(t,e){g("TSCallSignatureDeclaration",t,e)}function kF(t,e){g("TSConstructSignatureDeclaration",t,e)}function OF(t,e){g("TSPropertySignature",t,e)}function _F(t,e){g("TSMethodSignature",t,e)}function NF(t,e){g("TSIndexSignature",t,e)}function DF(t,e){g("TSAnyKeyword",t,e)}function LF(t,e){g("TSBooleanKeyword",t,e)}function MF(t,e){g("TSBigIntKeyword",t,e)}function FF(t,e){g("TSIntrinsicKeyword",t,e)}function BF(t,e){g("TSNeverKeyword",t,e)}function jF(t,e){g("TSNullKeyword",t,e)}function RF(t,e){g("TSNumberKeyword",t,e)}function qF(t,e){g("TSObjectKeyword",t,e)}function $F(t,e){g("TSStringKeyword",t,e)}function UF(t,e){g("TSSymbolKeyword",t,e)}function KF(t,e){g("TSUndefinedKeyword",t,e)}function WF(t,e){g("TSUnknownKeyword",t,e)}function VF(t,e){g("TSVoidKeyword",t,e)}function YF(t,e){g("TSThisType",t,e)}function zF(t,e){g("TSFunctionType",t,e)}function JF(t,e){g("TSConstructorType",t,e)}function XF(t,e){g("TSTypeReference",t,e)}function HF(t,e){g("TSTypePredicate",t,e)}function GF(t,e){g("TSTypeQuery",t,e)}function QF(t,e){g("TSTypeLiteral",t,e)}function ZF(t,e){g("TSArrayType",t,e)}function eB(t,e){g("TSTupleType",t,e)}function tB(t,e){g("TSOptionalType",t,e)}function rB(t,e){g("TSRestType",t,e)}function iB(t,e){g("TSNamedTupleMember",t,e)}function sB(t,e){g("TSUnionType",t,e)}function nB(t,e){g("TSIntersectionType",t,e)}function aB(t,e){g("TSConditionalType",t,e)}function oB(t,e){g("TSInferType",t,e)}function lB(t,e){g("TSParenthesizedType",t,e)}function cB(t,e){g("TSTypeOperator",t,e)}function uB(t,e){g("TSIndexedAccessType",t,e)}function pB(t,e){g("TSMappedType",t,e)}function fB(t,e){g("TSTemplateLiteralType",t,e)}function hB(t,e){g("TSLiteralType",t,e)}function dB(t,e){g("TSExpressionWithTypeArguments",t,e)}function mB(t,e){g("TSInterfaceDeclaration",t,e)}function yB(t,e){g("TSInterfaceBody",t,e)}function TB(t,e){g("TSTypeAliasDeclaration",t,e)}function gB(t,e){g("TSInstantiationExpression",t,e)}function xB(t,e){g("TSAsExpression",t,e)}function bB(t,e){g("TSSatisfiesExpression",t,e)}function SB(t,e){g("TSTypeAssertion",t,e)}function EB(t,e){g("TSEnumBody",t,e)}function PB(t,e){g("TSEnumDeclaration",t,e)}function vB(t,e){g("TSEnumMember",t,e)}function AB(t,e){g("TSModuleDeclaration",t,e)}function wB(t,e){g("TSModuleBlock",t,e)}function CB(t,e){g("TSImportType",t,e)}function IB(t,e){g("TSImportEqualsDeclaration",t,e)}function kB(t,e){g("TSExternalModuleReference",t,e)}function OB(t,e){g("TSNonNullExpression",t,e)}function _B(t,e){g("TSExportAssignment",t,e)}function NB(t,e){g("TSNamespaceExportDeclaration",t,e)}function DB(t,e){g("TSTypeAnnotation",t,e)}function LB(t,e){g("TSTypeParameterInstantiation",t,e)}function MB(t,e){g("TSTypeParameterDeclaration",t,e)}function FB(t,e){g("TSTypeParameter",t,e)}function BB(t,e){g("Standardized",t,e)}function jB(t,e){g("Expression",t,e)}function RB(t,e){g("Binary",t,e)}function qB(t,e){g("Scopable",t,e)}function $B(t,e){g("BlockParent",t,e)}function UB(t,e){g("Block",t,e)}function KB(t,e){g("Statement",t,e)}function WB(t,e){g("Terminatorless",t,e)}function VB(t,e){g("CompletionStatement",t,e)}function YB(t,e){g("Conditional",t,e)}function zB(t,e){g("Loop",t,e)}function JB(t,e){g("While",t,e)}function XB(t,e){g("ExpressionWrapper",t,e)}function HB(t,e){g("For",t,e)}function GB(t,e){g("ForXStatement",t,e)}function QB(t,e){g("Function",t,e)}function ZB(t,e){g("FunctionParent",t,e)}function ej(t,e){g("Pureish",t,e)}function tj(t,e){g("Declaration",t,e)}function rj(t,e){g("FunctionParameter",t,e)}function ij(t,e){g("PatternLike",t,e)}function sj(t,e){g("LVal",t,e)}function nj(t,e){g("TSEntityName",t,e)}function aj(t,e){g("Literal",t,e)}function oj(t,e){g("Immutable",t,e)}function lj(t,e){g("UserWhitespacable",t,e)}function cj(t,e){g("Method",t,e)}function uj(t,e){g("ObjectMember",t,e)}function pj(t,e){g("Property",t,e)}function fj(t,e){g("UnaryLike",t,e)}function hj(t,e){g("Pattern",t,e)}function dj(t,e){g("Class",t,e)}function mj(t,e){g("ImportOrExportDeclaration",t,e)}function yj(t,e){g("ExportDeclaration",t,e)}function Tj(t,e){g("ModuleSpecifier",t,e)}function gj(t,e){g("Accessor",t,e)}function xj(t,e){g("Private",t,e)}function bj(t,e){g("Flow",t,e)}function Sj(t,e){g("FlowType",t,e)}function Ej(t,e){g("FlowBaseAnnotation",t,e)}function Pj(t,e){g("FlowDeclaration",t,e)}function vj(t,e){g("FlowPredicate",t,e)}function Aj(t,e){g("EnumBody",t,e)}function wj(t,e){g("EnumMember",t,e)}function Cj(t,e){g("JSX",t,e)}function Ij(t,e){g("Miscellaneous",t,e)}function kj(t,e){g("TypeScript",t,e)}function Oj(t,e){g("TSTypeElement",t,e)}function _j(t,e){g("TSType",t,e)}function Nj(t,e){g("TSBaseType",t,e)}function Dj(t,e){(0,En.default)("assertNumberLiteral","assertNumericLiteral"),g("NumberLiteral",t,e)}function Lj(t,e){(0,En.default)("assertRegexLiteral","assertRegExpLiteral"),g("RegexLiteral",t,e)}function Mj(t,e){(0,En.default)("assertRestProperty","assertRestElement"),g("RestProperty",t,e)}function Fj(t,e){(0,En.default)("assertSpreadProperty","assertSpreadElement"),g("SpreadProperty",t,e)}function Bj(t,e){(0,En.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),g("ModuleDeclaration",t,e)}});var uy=k(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var Tr=Ht(),tse=eo.default=jj;function jj(t){switch(t){case"string":return(0,Tr.stringTypeAnnotation)();case"number":return(0,Tr.numberTypeAnnotation)();case"undefined":return(0,Tr.voidTypeAnnotation)();case"boolean":return(0,Tr.booleanTypeAnnotation)();case"function":return(0,Tr.genericTypeAnnotation)((0,Tr.identifier)("Function"));case"object":return(0,Tr.genericTypeAnnotation)((0,Tr.identifier)("Object"));case"symbol":return(0,Tr.genericTypeAnnotation)((0,Tr.identifier)("Symbol"));case"bigint":return(0,Tr.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+t)}});var au=k(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.default=fy;var Pn=ht();function py(t){return(0,Pn.isIdentifier)(t)?t.name:`${t.id.name}.${py(t.qualification)}`}function fy(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let o=e[a];if(o&&!n.includes(o)){if((0,Pn.isAnyTypeAnnotation)(o))return[o];if((0,Pn.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,Pn.isUnionTypeAnnotation)(o)){s.has(o.types)||(e.push(...o.types),s.add(o.types));continue}if((0,Pn.isGenericTypeAnnotation)(o)){let l=py(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=fy(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 hy=k(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.default=$j;var Rj=Ht(),qj=au();function $j(t){let e=(0,qj.default)(t);return e.length===1?e[0]:(0,Rj.unionTypeAnnotation)(e)}});var yy=k(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.default=my;var Ss=ht();function dy(t){return(0,Ss.isIdentifier)(t)?t.name:(0,Ss.isThisExpression)(t)?"this":`${t.right.name}.${dy(t.left)}`}function my(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let o=e[a];if(!o||n.includes(o))continue;if((0,Ss.isTSAnyKeyword)(o))return[o];if((0,Ss.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,Ss.isTSUnionType)(o)){s.has(o.types)||(e.push(...o.types),s.add(o.types));continue}let l="typeParameters";if((0,Ss.isTSTypeReference)(o)&&o[l]){let c=o[l],u=dy(o.typeName);if(r.has(u)){let d=r.get(u),b=d[l];b?(b.params.push(...c.params),b.params=my(b.params)):d=c}else r.set(u,o);continue}n.push(o)}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var Ty=k(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.default=Vj;var Uj=Ht(),Kj=yy(),Wj=ht();function Vj(t){let e=t.map(i=>(0,Wj.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,Kj.default)(e);return r.length===1?r[0]:(0,Uj.tsUnionType)(r)}});var pu=k(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.buildUndefinedNode=Yj;var gy=Ht();function Yj(){return(0,gy.unaryExpression)("void",(0,gy.numericLiteral)(0),!0)}});var oi=k(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.default=zj;var xy=or(),by=ht(),{hasOwn:Nr}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Sy(t,e,r,i){return t&&typeof t.type=="string"?Ey(t,e,r,i):t}function fu(t,e,r,i){return Array.isArray(t)?t.map(s=>Sy(s,e,r,i)):Sy(t,e,r,i)}function zj(t,e=!0,r=!1){return Ey(t,e,r,new Map)}function Ey(t,e=!0,r=!1,i){if(!t)return t;let{type:s}=t,n={type:t.type};if((0,by.isIdentifier)(t))n.name=t.name,Nr(t,"optional")&&typeof t.optional=="boolean"&&(n.optional=t.optional),Nr(t,"typeAnnotation")&&(n.typeAnnotation=e?fu(t.typeAnnotation,!0,r,i):t.typeAnnotation),Nr(t,"decorators")&&(n.decorators=e?fu(t.decorators,!0,r,i):t.decorators);else if(Nr(xy.NODE_FIELDS,s))for(let a of Object.keys(xy.NODE_FIELDS[s]))Nr(t,a)&&(e?n[a]=(0,by.isFile)(t)&&a==="comments"?to(t.comments,e,r,i):fu(t[a],!0,r,i):n[a]=t[a]);else throw new Error(`Unknown node type: "${s}"`);return Nr(t,"loc")&&(r?n.loc=null:n.loc=t.loc),Nr(t,"leadingComments")&&(n.leadingComments=to(t.leadingComments,e,r,i)),Nr(t,"innerComments")&&(n.innerComments=to(t.innerComments,e,r,i)),Nr(t,"trailingComments")&&(n.trailingComments=to(t.trailingComments,e,r,i)),Nr(t,"extra")&&(n.extra=Object.assign({},t.extra)),n}function to(t,e,r,i){return!t||!e?t:t.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 Py=k(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.default=Xj;var Jj=oi();function Xj(t){return(0,Jj.default)(t,!1)}});var vy=k(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.default=Gj;var Hj=oi();function Gj(t){return(0,Hj.default)(t)}});var Ay=k(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.default=Zj;var Qj=oi();function Zj(t){return(0,Qj.default)(t,!0,!0)}});var wy=k(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.default=t4;var e4=oi();function t4(t){return(0,e4.default)(t,!1,!0)}});var xu=k(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.default=r4;function r4(t,e,r){if(!r||!t)return t;let i=`${e}Comments`;return t[i]?e==="leading"?t[i]=r.concat(t[i]):t[i].push(...r):t[i]=r,t}});var Cy=k(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.default=s4;var i4=xu();function s4(t,e,r,i){return(0,i4.default)(t,e,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var ro=k(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.default=n4;function n4(t,e,r){e&&r&&(e[t]=Array.from(new Set([].concat(e[t],r[t]).filter(Boolean))))}});var Pu=k(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.default=o4;var a4=ro();function o4(t,e){(0,a4.default)("innerComments",t,e)}});var Au=k(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.default=c4;var l4=ro();function c4(t,e){(0,l4.default)("leadingComments",t,e)}});var Cu=k(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.default=p4;var u4=ro();function p4(t,e){(0,u4.default)("trailingComments",t,e)}});var ku=k(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.default=m4;var f4=Cu(),h4=Au(),d4=Pu();function m4(t,e){return(0,f4.default)(t,e),(0,h4.default)(t,e),(0,d4.default)(t,e),t}});var Iy=k(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=T4;var y4=ys();function T4(t){return y4.COMMENT_KEYS.forEach(e=>{t[e]=null}),t}});var ky=k(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.WHILE_TYPES=J.USERWHITESPACABLE_TYPES=J.UNARYLIKE_TYPES=J.TYPESCRIPT_TYPES=J.TSTYPE_TYPES=J.TSTYPEELEMENT_TYPES=J.TSENTITYNAME_TYPES=J.TSBASETYPE_TYPES=J.TERMINATORLESS_TYPES=J.STATEMENT_TYPES=J.STANDARDIZED_TYPES=J.SCOPABLE_TYPES=J.PUREISH_TYPES=J.PROPERTY_TYPES=J.PRIVATE_TYPES=J.PATTERN_TYPES=J.PATTERNLIKE_TYPES=J.OBJECTMEMBER_TYPES=J.MODULESPECIFIER_TYPES=J.MODULEDECLARATION_TYPES=J.MISCELLANEOUS_TYPES=J.METHOD_TYPES=J.LVAL_TYPES=J.LOOP_TYPES=J.LITERAL_TYPES=J.JSX_TYPES=J.IMPORTOREXPORTDECLARATION_TYPES=J.IMMUTABLE_TYPES=J.FUNCTION_TYPES=J.FUNCTIONPARENT_TYPES=J.FUNCTIONPARAMETER_TYPES=J.FOR_TYPES=J.FORXSTATEMENT_TYPES=J.FLOW_TYPES=J.FLOWTYPE_TYPES=J.FLOWPREDICATE_TYPES=J.FLOWDECLARATION_TYPES=J.FLOWBASEANNOTATION_TYPES=J.EXPRESSION_TYPES=J.EXPRESSIONWRAPPER_TYPES=J.EXPORTDECLARATION_TYPES=J.ENUMMEMBER_TYPES=J.ENUMBODY_TYPES=J.DECLARATION_TYPES=J.CONDITIONAL_TYPES=J.COMPLETIONSTATEMENT_TYPES=J.CLASS_TYPES=J.BLOCK_TYPES=J.BLOCKPARENT_TYPES=J.BINARY_TYPES=J.ACCESSOR_TYPES=void 0;var we=or(),Sse=J.STANDARDIZED_TYPES=we.FLIPPED_ALIAS_KEYS.Standardized,Ese=J.EXPRESSION_TYPES=we.FLIPPED_ALIAS_KEYS.Expression,Pse=J.BINARY_TYPES=we.FLIPPED_ALIAS_KEYS.Binary,vse=J.SCOPABLE_TYPES=we.FLIPPED_ALIAS_KEYS.Scopable,Ase=J.BLOCKPARENT_TYPES=we.FLIPPED_ALIAS_KEYS.BlockParent,wse=J.BLOCK_TYPES=we.FLIPPED_ALIAS_KEYS.Block,Cse=J.STATEMENT_TYPES=we.FLIPPED_ALIAS_KEYS.Statement,Ise=J.TERMINATORLESS_TYPES=we.FLIPPED_ALIAS_KEYS.Terminatorless,kse=J.COMPLETIONSTATEMENT_TYPES=we.FLIPPED_ALIAS_KEYS.CompletionStatement,Ose=J.CONDITIONAL_TYPES=we.FLIPPED_ALIAS_KEYS.Conditional,_se=J.LOOP_TYPES=we.FLIPPED_ALIAS_KEYS.Loop,Nse=J.WHILE_TYPES=we.FLIPPED_ALIAS_KEYS.While,Dse=J.EXPRESSIONWRAPPER_TYPES=we.FLIPPED_ALIAS_KEYS.ExpressionWrapper,Lse=J.FOR_TYPES=we.FLIPPED_ALIAS_KEYS.For,Mse=J.FORXSTATEMENT_TYPES=we.FLIPPED_ALIAS_KEYS.ForXStatement,Fse=J.FUNCTION_TYPES=we.FLIPPED_ALIAS_KEYS.Function,Bse=J.FUNCTIONPARENT_TYPES=we.FLIPPED_ALIAS_KEYS.FunctionParent,jse=J.PUREISH_TYPES=we.FLIPPED_ALIAS_KEYS.Pureish,Rse=J.DECLARATION_TYPES=we.FLIPPED_ALIAS_KEYS.Declaration,qse=J.FUNCTIONPARAMETER_TYPES=we.FLIPPED_ALIAS_KEYS.FunctionParameter,$se=J.PATTERNLIKE_TYPES=we.FLIPPED_ALIAS_KEYS.PatternLike,Use=J.LVAL_TYPES=we.FLIPPED_ALIAS_KEYS.LVal,Kse=J.TSENTITYNAME_TYPES=we.FLIPPED_ALIAS_KEYS.TSEntityName,Wse=J.LITERAL_TYPES=we.FLIPPED_ALIAS_KEYS.Literal,Vse=J.IMMUTABLE_TYPES=we.FLIPPED_ALIAS_KEYS.Immutable,Yse=J.USERWHITESPACABLE_TYPES=we.FLIPPED_ALIAS_KEYS.UserWhitespacable,zse=J.METHOD_TYPES=we.FLIPPED_ALIAS_KEYS.Method,Jse=J.OBJECTMEMBER_TYPES=we.FLIPPED_ALIAS_KEYS.ObjectMember,Xse=J.PROPERTY_TYPES=we.FLIPPED_ALIAS_KEYS.Property,Hse=J.UNARYLIKE_TYPES=we.FLIPPED_ALIAS_KEYS.UnaryLike,Gse=J.PATTERN_TYPES=we.FLIPPED_ALIAS_KEYS.Pattern,Qse=J.CLASS_TYPES=we.FLIPPED_ALIAS_KEYS.Class,g4=J.IMPORTOREXPORTDECLARATION_TYPES=we.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,Zse=J.EXPORTDECLARATION_TYPES=we.FLIPPED_ALIAS_KEYS.ExportDeclaration,ene=J.MODULESPECIFIER_TYPES=we.FLIPPED_ALIAS_KEYS.ModuleSpecifier,tne=J.ACCESSOR_TYPES=we.FLIPPED_ALIAS_KEYS.Accessor,rne=J.PRIVATE_TYPES=we.FLIPPED_ALIAS_KEYS.Private,ine=J.FLOW_TYPES=we.FLIPPED_ALIAS_KEYS.Flow,sne=J.FLOWTYPE_TYPES=we.FLIPPED_ALIAS_KEYS.FlowType,nne=J.FLOWBASEANNOTATION_TYPES=we.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,ane=J.FLOWDECLARATION_TYPES=we.FLIPPED_ALIAS_KEYS.FlowDeclaration,one=J.FLOWPREDICATE_TYPES=we.FLIPPED_ALIAS_KEYS.FlowPredicate,lne=J.ENUMBODY_TYPES=we.FLIPPED_ALIAS_KEYS.EnumBody,cne=J.ENUMMEMBER_TYPES=we.FLIPPED_ALIAS_KEYS.EnumMember,une=J.JSX_TYPES=we.FLIPPED_ALIAS_KEYS.JSX,pne=J.MISCELLANEOUS_TYPES=we.FLIPPED_ALIAS_KEYS.Miscellaneous,fne=J.TYPESCRIPT_TYPES=we.FLIPPED_ALIAS_KEYS.TypeScript,hne=J.TSTYPEELEMENT_TYPES=we.FLIPPED_ALIAS_KEYS.TSTypeElement,dne=J.TSTYPE_TYPES=we.FLIPPED_ALIAS_KEYS.TSType,mne=J.TSBASETYPE_TYPES=we.FLIPPED_ALIAS_KEYS.TSBaseType,yne=J.MODULEDECLARATION_TYPES=g4});var Du=k(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.default=x4;var io=ht(),_u=Ht();function x4(t,e){if((0,io.isBlockStatement)(t))return t;let r=[];return(0,io.isEmptyStatement)(t)?r=[]:((0,io.isStatement)(t)||((0,io.isFunction)(e)?t=(0,_u.returnStatement)(t):t=(0,_u.expressionStatement)(t)),r=[t]),(0,_u.blockStatement)(r)}});var Oy=k(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default=S4;var b4=Du();function S4(t,e="body"){let r=(0,b4.default)(t[e],t);return t[e]=r,r}});var Fu=k(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=v4;var E4=ms(),P4=yn();function v4(t){t=t+"";let e="";for(let r of t)e+=(0,P4.isIdentifierChar)(r.codePointAt(0))?r:"-";return e=e.replace(/^[-0-9]+/,""),e=e.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,E4.default)(e)||(e=`_${e}`),e||"_"}});var _y=k(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=w4;var A4=Fu();function w4(t){return t=(0,A4.default)(t),(t==="eval"||t==="arguments")&&(t="_"+t),t}});var Ny=k(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.default=k4;var C4=ht(),I4=Ht();function k4(t,e=t.key||t.property){return!t.computed&&(0,C4.isIdentifier)(e)&&(e=(0,I4.stringLiteral)(e.name)),e}});var Dy=k(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.default=void 0;var vn=ht(),Pne=so.default=O4;function O4(t){if((0,vn.isExpressionStatement)(t)&&(t=t.expression),(0,vn.isExpression)(t))return t;if((0,vn.isClass)(t)?(t.type="ClassExpression",t.abstract=!1):(0,vn.isFunction)(t)&&(t.type="FunctionExpression"),!(0,vn.isExpression)(t))throw new Error(`cannot turn ${t.type} to an expression`);return t}});var qu=k(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default=An;var _4=or(),Ly=Symbol(),My=Symbol();function An(t,e,r){if(!t)return!1;let i=_4.VISITOR_KEYS[t.type];if(!i)return!1;r=r||{};let s=e(t,r);if(s!==void 0)switch(s){case Ly:return!1;case My:return!0}for(let n of i){let a=t[n];if(a){if(Array.isArray(a)){for(let o of a)if(An(o,e,r))return!0}else if(An(a,e,r))return!0}}return!1}An.skip=Ly;An.stop=My});var Uu=k($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.default=L4;var N4=ys(),Fy=["tokens","start","end","loc","raw","rawValue"],D4=[...N4.COMMENT_KEYS,"comments",...Fy];function L4(t,e={}){let r=e.preserveComments?Fy:D4;for(let s of r)t[s]!=null&&(t[s]=void 0);for(let s of Object.keys(t))s[0]==="_"&&t[s]!=null&&(t[s]=void 0);let i=Object.getOwnPropertySymbols(t);for(let s of i)t[s]=null}});var Wu=k(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.default=B4;var M4=qu(),F4=Uu();function B4(t,e){return(0,M4.default)(t,F4.default,e),t}});var jy=k(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=Ni;var By=ht(),j4=oi(),R4=Wu();function Ni(t,e=t.key){let r;return t.kind==="method"?Ni.increment()+"":((0,By.isIdentifier)(e)?r=e.name:(0,By.isStringLiteral)(e)?r=JSON.stringify(e.value):r=JSON.stringify((0,R4.default)((0,j4.default)(e))),t.computed&&(r=`[${r}]`),t.static&&(r=`static:${r}`),r)}Ni.uid=0;Ni.increment=function(){return Ni.uid>=Number.MAX_SAFE_INTEGER?Ni.uid=0:Ni.uid++}});var Ry=k(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var no=ht(),q4=Ht(),kne=ao.default=$4;function $4(t,e){if((0,no.isStatement)(t))return t;let r=!1,i;if((0,no.isClass)(t))r=!0,i="ClassDeclaration";else if((0,no.isFunction)(t))r=!0,i="FunctionDeclaration";else if((0,no.isAssignmentExpression)(t))return(0,q4.expressionStatement)(t);if(r&&!t.id&&(i=!1),!i){if(e)return!1;throw new Error(`cannot turn ${t.type} to a statement`)}return t.type=i,t}});var qy=k(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=void 0;var U4=ms(),gt=Ht(),_ne=oo.default=Yu,K4=Function.call.bind(Object.prototype.toString);function W4(t){return K4(t)==="[object RegExp]"}function V4(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function Yu(t){if(t===void 0)return(0,gt.identifier)("undefined");if(t===!0||t===!1)return(0,gt.booleanLiteral)(t);if(t===null)return(0,gt.nullLiteral)();if(typeof t=="string")return(0,gt.stringLiteral)(t);if(typeof t=="number"){let e;if(Number.isFinite(t))e=(0,gt.numericLiteral)(Math.abs(t));else{let r;Number.isNaN(t)?r=(0,gt.numericLiteral)(0):r=(0,gt.numericLiteral)(1),e=(0,gt.binaryExpression)("/",r,(0,gt.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,gt.unaryExpression)("-",e)),e}if(typeof t=="bigint")return t<0?(0,gt.unaryExpression)("-",(0,gt.bigIntLiteral)(-t)):(0,gt.bigIntLiteral)(t);if(W4(t)){let e=t.source,r=/\/([a-z]*)$/.exec(t.toString())[1];return(0,gt.regExpLiteral)(e,r)}if(Array.isArray(t))return(0,gt.arrayExpression)(t.map(Yu));if(V4(t)){let e=[];for(let r of Object.keys(t)){let i,s=!1;(0,U4.default)(r)?r==="__proto__"?(s=!0,i=(0,gt.stringLiteral)(r)):i=(0,gt.identifier)(r):i=(0,gt.stringLiteral)(r),e.push((0,gt.objectProperty)(i,Yu(t[r]),s))}return(0,gt.objectExpression)(e)}throw new Error("don't know how to turn this value into a node")}});var $y=k(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.default=z4;var Y4=Ht();function z4(t,e,r=!1){return t.object=(0,Y4.memberExpression)(t.object,t.property,t.computed),t.property=e,t.computed=!!r,t}});var Ky=k(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.default=X4;var Uy=ys(),J4=ku();function X4(t,e){if(!t||!e)return t;for(let r of Uy.INHERIT_KEYS.optional)t[r]==null&&(t[r]=e[r]);for(let r of Object.keys(e))r[0]==="_"&&r!=="__clone"&&(t[r]=e[r]);for(let r of Uy.INHERIT_KEYS.force)t[r]=e[r];return(0,J4.default)(t,e),t}});var Wy=k(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.default=Q4;var H4=Ht(),G4=Me();function Q4(t,e){if((0,G4.isSuper)(t.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return t.object=(0,H4.memberExpression)(e,t.object),t}});var Vy=k(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.default=Z4;function Z4(t){let e=[].concat(t),r=Object.create(null);for(;e.length;){let i=e.pop();if(i)switch(i.type){case"ArrayPattern":e.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":e.push(i.left);break;case"ObjectPattern":e.push(...i.properties);break;case"ObjectProperty":e.push(i.value);break;case"RestElement":case"UpdateExpression":e.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&e.push(i.argument);break;case"Identifier":r[i.name]=i;break;default:break}}return r}});var wn=k(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.default=Gu;var Kr=ht();function Gu(t,e,r,i){let s=[].concat(t),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||i&&((0,Kr.isAssignmentExpression)(a)||(0,Kr.isUnaryExpression)(a)||(0,Kr.isUpdateExpression)(a)))continue;if((0,Kr.isIdentifier)(a)){e?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,Kr.isExportDeclaration)(a)&&!(0,Kr.isExportAllDeclaration)(a)){(0,Kr.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0,Kr.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,Kr.isFunctionExpression)(a))continue}let o=Gu.keys[a.type];if(o)for(let l=0;l<o.length;l++){let c=o[l],u=a[c];u&&(Array.isArray(u)?s.push(...u):s.push(u))}}return n}var eR={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"]};Gu.keys=eR});var Yy=k(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var tR=wn(),jne=lo.default=rR;function rR(t,e){return(0,tR.default)(t,e,!0)}});var Jy=k(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.default=sR;var lr=ht();function iR(t){return(0,lr.isNullLiteral)(t)?"null":(0,lr.isRegExpLiteral)(t)?`/${t.pattern}/${t.flags}`:(0,lr.isTemplateLiteral)(t)?t.quasis.map(e=>e.value.raw).join(""):t.value!==void 0?String(t.value):null}function zy(t){if(!t.computed||(0,lr.isLiteral)(t.key))return t.key}function sR(t,e){if("id"in t&&t.id)return{name:t.id.name,originalNode:t.id};let r="",i;if((0,lr.isObjectProperty)(e,{value:t})?i=zy(e):(0,lr.isObjectMethod)(t)||(0,lr.isClassMethod)(t)?(i=zy(t),t.kind==="get"?r="get ":t.kind==="set"&&(r="set ")):(0,lr.isVariableDeclarator)(e,{init:t})?i=e.id:(0,lr.isAssignmentExpression)(e,{operator:"=",right:t})&&(i=e.left),!i)return null;let s=(0,lr.isLiteral)(i)?iR(i):(0,lr.isIdentifier)(i)?i.name:(0,lr.isPrivateName)(i)?i.id.name:null;return s==null?null:{name:r+s,originalNode:i}}});var Xy=k(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.default=aR;var nR=or();function aR(t,e,r){typeof e=="function"&&(e={enter:e});let{enter:i,exit:s}=e;ep(t,i,s,r,[])}function ep(t,e,r,i,s){let n=nR.VISITOR_KEYS[t.type];if(n){e&&e(t,s,i);for(let a of n){let o=t[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let c=o[l];c&&(s.push({node:t,key:a,index:l}),ep(c,e,r,i,s),s.pop())}else o&&(s.push({node:t,key:a}),ep(o,e,r,i,s),s.pop())}r&&r(t,s,i)}}});var Hy=k(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.default=lR;var oR=wn();function lR(t,e,r){if(r&&t.type==="Identifier"&&e.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=oR.default.keys[e.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],a=e[n];if(Array.isArray(a)){if(a.includes(t))return!0}else if(a===t)return!0}return!1}});var sp=k(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.default=uR;var cR=ht();Gy=Symbol.for("var used to be block scoped");var Gy;function uR(t){return(0,cR.isVariableDeclaration)(t)&&(t.kind!=="var"||t[Gy])}});var Zy=k(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.default=fR;var Qy=ht(),pR=sp();function fR(t){return(0,Qy.isFunctionDeclaration)(t)||(0,Qy.isClassDeclaration)(t)||(0,pR.default)(t)}});var eT=k(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.default=mR;var hR=Wa(),dR=ht();function mR(t){return(0,hR.default)(t.type,"Immutable")?!0:(0,dR.isIdentifier)(t)?t.name==="undefined":!1}});var rT=k(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.default=op;var tT=or();function op(t,e){if(typeof t!="object"||typeof e!="object"||t==null||e==null)return t===e;if(t.type!==e.type)return!1;let r=Object.keys(tT.NODE_FIELDS[t.type]||t.type),i=tT.VISITOR_KEYS[t.type];for(let s of r){let n=t[s],a=e[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!op(n[o],a[o]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!op(n,a))return!1}}return!0}});var iT=k(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.default=yR;function yR(t,e,r){switch(e.type){case"MemberExpression":case"OptionalMemberExpression":return e.property===t?!!e.computed:e.object===t;case"JSXMemberExpression":return e.object===t;case"VariableDeclarator":return e.init===t;case"ArrowFunctionExpression":return e.body===t;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return e.key===t?!!e.computed:!1;case"ObjectProperty":return e.key===t?!!e.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return e.key===t?!!e.computed:!0;case"ClassPrivateProperty":return e.key!==t;case"ClassDeclaration":case"ClassExpression":return e.superClass===t;case"AssignmentExpression":return e.right===t;case"AssignmentPattern":return e.right===t;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:e.local===t;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return e.key!==t;case"TSEnumMember":return e.id!==t;case"TSPropertySignature":return e.key===t?!!e.computed:!0}return!0}});var sT=k(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.default=TR;var Di=ht();function TR(t,e){return(0,Di.isBlockStatement)(t)&&((0,Di.isFunction)(e)||(0,Di.isCatchClause)(e))?!1:(0,Di.isPattern)(t)&&((0,Di.isFunction)(e)||(0,Di.isCatchClause)(e))?!0:(0,Di.isScopable)(t)}});var aT=k(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.default=gR;var nT=ht();function gR(t){return(0,nT.isImportDefaultSpecifier)(t)||(0,nT.isIdentifier)(t.imported||t.exported,{name:"default"})}});var oT=k(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.default=SR;var xR=ms(),bR=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 SR(t){return(0,xR.default)(t)&&!bR.has(t)}});var cT=k(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.default=PR;var ER=ht();lT=Symbol.for("var used to be block scoped");var lT;function PR(t){return(0,ER.isVariableDeclaration)(t,{kind:"var"})&&!t[lT]}});var uT=k(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.default=co;var vR=wn(),Li=ht(),dp=Ht(),mp=pu(),AR=oi();function co(t,e){let r=[],i=!0;for(let s of t)if((0,Li.isEmptyStatement)(s)||(i=!1),(0,Li.isExpression)(s))r.push(s);else if((0,Li.isExpressionStatement)(s))r.push(s.expression);else if((0,Li.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,vR.default)(n);for(let o of Object.keys(a))e.push({kind:s.kind,id:(0,AR.default)(a[o])});n.init&&r.push((0,dp.assignmentExpression)("=",n.id,n.init))}i=!0}else if((0,Li.isIfStatement)(s)){let n=s.consequent?co([s.consequent],e):(0,mp.buildUndefinedNode)(),a=s.alternate?co([s.alternate],e):(0,mp.buildUndefinedNode)();if(!n||!a)return;r.push((0,dp.conditionalExpression)(s.test,n,a))}else if((0,Li.isBlockStatement)(s)){let n=co(s.body,e);if(!n)return;r.push(n)}else if((0,Li.isEmptyStatement)(s))t.indexOf(s)===0&&(i=!0);else return;return i&&r.push((0,mp.buildUndefinedNode)()),r.length===1?r[0]:(0,dp.sequenceExpression)(r)}});var pT=k(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.default=CR;var wR=uT();function CR(t,e){if(!(t!=null&&t.length))return;let r=[],i=(0,wR.default)(t,r);if(i){for(let s of r)e.push(s);return i}}});var Me=k(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});var li={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(se,"__internal__deprecationWarning",{enumerable:!0,get:function(){return _6.default}});Object.defineProperty(se,"addComment",{enumerable:!0,get:function(){return RR.default}});Object.defineProperty(se,"addComments",{enumerable:!0,get:function(){return qR.default}});Object.defineProperty(se,"appendToMemberExpression",{enumerable:!0,get:function(){return t6.default}});Object.defineProperty(se,"assertNode",{enumerable:!0,get:function(){return _R.default}});Object.defineProperty(se,"buildMatchMemberExpression",{enumerable:!0,get:function(){return O6.default}});Object.defineProperty(se,"clone",{enumerable:!0,get:function(){return MR.default}});Object.defineProperty(se,"cloneDeep",{enumerable:!0,get:function(){return FR.default}});Object.defineProperty(se,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return BR.default}});Object.defineProperty(se,"cloneNode",{enumerable:!0,get:function(){return LR.default}});Object.defineProperty(se,"cloneWithoutLoc",{enumerable:!0,get:function(){return jR.default}});Object.defineProperty(se,"createFlowUnionType",{enumerable:!0,get:function(){return fT.default}});Object.defineProperty(se,"createTSUnionType",{enumerable:!0,get:function(){return DR.default}});Object.defineProperty(se,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return NR.default}});Object.defineProperty(se,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return fT.default}});Object.defineProperty(se,"ensureBlock",{enumerable:!0,get:function(){return YR.default}});Object.defineProperty(se,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return o6.default}});Object.defineProperty(se,"getBindingIdentifiers",{enumerable:!0,get:function(){return l6.default}});Object.defineProperty(se,"getFunctionName",{enumerable:!0,get:function(){return u6.default}});Object.defineProperty(se,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return c6.default}});Object.defineProperty(se,"inheritInnerComments",{enumerable:!0,get:function(){return $R.default}});Object.defineProperty(se,"inheritLeadingComments",{enumerable:!0,get:function(){return UR.default}});Object.defineProperty(se,"inheritTrailingComments",{enumerable:!0,get:function(){return WR.default}});Object.defineProperty(se,"inherits",{enumerable:!0,get:function(){return r6.default}});Object.defineProperty(se,"inheritsComments",{enumerable:!0,get:function(){return KR.default}});Object.defineProperty(se,"is",{enumerable:!0,get:function(){return h6.default}});Object.defineProperty(se,"isBinding",{enumerable:!0,get:function(){return d6.default}});Object.defineProperty(se,"isBlockScoped",{enumerable:!0,get:function(){return m6.default}});Object.defineProperty(se,"isImmutable",{enumerable:!0,get:function(){return y6.default}});Object.defineProperty(se,"isLet",{enumerable:!0,get:function(){return T6.default}});Object.defineProperty(se,"isNode",{enumerable:!0,get:function(){return g6.default}});Object.defineProperty(se,"isNodesEquivalent",{enumerable:!0,get:function(){return x6.default}});Object.defineProperty(se,"isPlaceholderType",{enumerable:!0,get:function(){return b6.default}});Object.defineProperty(se,"isReferenced",{enumerable:!0,get:function(){return S6.default}});Object.defineProperty(se,"isScope",{enumerable:!0,get:function(){return E6.default}});Object.defineProperty(se,"isSpecifierDefault",{enumerable:!0,get:function(){return P6.default}});Object.defineProperty(se,"isType",{enumerable:!0,get:function(){return v6.default}});Object.defineProperty(se,"isValidES3Identifier",{enumerable:!0,get:function(){return A6.default}});Object.defineProperty(se,"isValidIdentifier",{enumerable:!0,get:function(){return w6.default}});Object.defineProperty(se,"isVar",{enumerable:!0,get:function(){return C6.default}});Object.defineProperty(se,"matchesPattern",{enumerable:!0,get:function(){return I6.default}});Object.defineProperty(se,"prependToMemberExpression",{enumerable:!0,get:function(){return i6.default}});se.react=void 0;Object.defineProperty(se,"removeComments",{enumerable:!0,get:function(){return VR.default}});Object.defineProperty(se,"removeProperties",{enumerable:!0,get:function(){return s6.default}});Object.defineProperty(se,"removePropertiesDeep",{enumerable:!0,get:function(){return n6.default}});Object.defineProperty(se,"removeTypeDuplicates",{enumerable:!0,get:function(){return a6.default}});Object.defineProperty(se,"shallowEqual",{enumerable:!0,get:function(){return f6.default}});Object.defineProperty(se,"toBindingIdentifierName",{enumerable:!0,get:function(){return zR.default}});Object.defineProperty(se,"toBlock",{enumerable:!0,get:function(){return JR.default}});Object.defineProperty(se,"toComputedKey",{enumerable:!0,get:function(){return XR.default}});Object.defineProperty(se,"toExpression",{enumerable:!0,get:function(){return HR.default}});Object.defineProperty(se,"toIdentifier",{enumerable:!0,get:function(){return GR.default}});Object.defineProperty(se,"toKeyAlias",{enumerable:!0,get:function(){return QR.default}});Object.defineProperty(se,"toStatement",{enumerable:!0,get:function(){return ZR.default}});Object.defineProperty(se,"traverse",{enumerable:!0,get:function(){return uo.default}});Object.defineProperty(se,"traverseFast",{enumerable:!0,get:function(){return p6.default}});Object.defineProperty(se,"validate",{enumerable:!0,get:function(){return k6.default}});Object.defineProperty(se,"valueToNode",{enumerable:!0,get:function(){return e6.default}});var IR=dm(),kR=mm(),OR=oy(),_R=ly(),gp=cy();Object.keys(gp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===gp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return gp[t]}})});var NR=uy(),fT=hy(),DR=Ty(),xp=pu();Object.keys(xp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===xp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return xp[t]}})});var bp=Ht();Object.keys(bp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===bp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return bp[t]}})});var LR=oi(),MR=Py(),FR=vy(),BR=Ay(),jR=wy(),RR=Cy(),qR=xu(),$R=Pu(),UR=Au(),KR=ku(),WR=Cu(),VR=Iy(),Sp=ky();Object.keys(Sp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===Sp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return Sp[t]}})});var Ep=ys();Object.keys(Ep).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===Ep[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return Ep[t]}})});var YR=Oy(),zR=_y(),JR=Du(),XR=Ny(),HR=Dy(),GR=Fu(),QR=jy(),ZR=Ry(),e6=qy(),Pp=or();Object.keys(Pp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===Pp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return Pp[t]}})});var t6=$y(),r6=Ky(),i6=Wy(),s6=Uu(),n6=Wu(),a6=au(),o6=Vy(),l6=wn(),c6=Yy(),u6=Jy(),uo=Xy();Object.keys(uo).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===uo[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return uo[t]}})});var p6=qu(),f6=Ua(),h6=ds(),d6=Hy(),m6=Zy(),y6=eT(),T6=sp(),g6=iu(),x6=rT(),b6=Ic(),S6=iT(),E6=sT(),P6=aT(),v6=Wa(),A6=oT(),w6=ms(),C6=cT(),I6=Ec(),k6=Ja(),O6=vc(),vp=ht();Object.keys(vp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(li,t)||t in se&&se[t]===vp[t]||Object.defineProperty(se,t,{enumerable:!0,get:function(){return vp[t]}})});var _6=hs(),N6=pT(),eae=se.react={isReactComponent:IR.default,isCompatTag:kR.default,buildChildren:OR.default};se.toSequenceExpression=N6.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 wp=k(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.isBindingIdentifier=t8;xt.isBlockScoped=a8;xt.isExpression=i8;xt.isFlow=p8;xt.isForAwaitStatement=d8;xt.isGenerated=c8;xt.isPure=u8;xt.isReferenced=n8;xt.isReferencedIdentifier=Z6;xt.isReferencedMemberExpression=e8;xt.isRestProperty=f8;xt.isScope=s8;xt.isSpreadProperty=h8;xt.isStatement=r8;xt.isUser=l8;xt.isVar=o8;var D6=Me(),{isBinding:L6,isBlockScoped:M6,isExportDeclaration:F6,isExpression:B6,isFlow:j6,isForStatement:R6,isForXStatement:q6,isIdentifier:hT,isImportDeclaration:$6,isImportSpecifier:U6,isJSXIdentifier:K6,isJSXMemberExpression:W6,isMemberExpression:V6,isRestElement:dT,isReferenced:Ap,isScope:Y6,isStatement:z6,isVar:J6,isVariableDeclaration:X6,react:H6,isForOfStatement:G6}=D6,{isCompatTag:Q6}=H6;function Z6(t){let{node:e,parent:r}=this;if(!hT(e,t)&&!W6(r,t))if(K6(e,t)){if(Q6(e.name))return!1}else return!1;return Ap(e,r,this.parentPath.parent)}function e8(){let{node:t,parent:e}=this;return V6(t)&&Ap(t,e)}function t8(){let{node:t,parent:e}=this,r=this.parentPath.parent;return hT(t)&&L6(t,e,r)}function r8(){let{node:t,parent:e}=this;return z6(t)?!(X6(t)&&(q6(e,{left:t})||R6(e,{init:t}))):!1}function i8(){return this.isIdentifier()?this.isReferencedIdentifier():B6(this.node)}function s8(){return Y6(this.node,this.parent)}function n8(){return Ap(this.node,this.parent)}function a8(){return M6(this.node)}function o8(){return J6(this.node)}function l8(){return this.node&&!!this.node.loc}function c8(){return!this.isUser()}function u8(t){return this.scope.isPure(this.node,t)}function p8(){let{node:t}=this;return j6(t)?!0:$6(t)?t.importKind==="type"||t.importKind==="typeof":F6(t)?t.exportKind==="type":U6(t)?t.importKind==="type"||t.importKind==="typeof":!1}function f8(){var t;return dT(this.node)&&((t=this.parentPath)==null?void 0:t.isObjectPattern())}function h8(){var t;return dT(this.node)&&((t=this.parentPath)==null?void 0:t.isObjectExpression())}function d8(){return G6(this.node,{await:!0})}xt.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},xt.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var po=k(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.environmentVisitor=E8;Fi.explode=AT;Fi.isExplodedVisitor=vT;Fi.merge=CT;Fi.verify=wT;var PT=yc(),m8=wp(),y8=Me(),mT=gr(),{DEPRECATED_KEYS:yT,DEPRECATED_ALIASES:TT,FLIPPED_ALIAS_KEYS:gT,TYPES:T8,__internal__deprecationWarning:xT}=y8;function g8(t){return t in PT}function vT(t){return t?._exploded}function AT(t){if(vT(t))return t;t._exploded=!0;for(let e of Object.keys(t)){if(Mi(e))continue;let r=e.split("|");if(r.length===1)continue;let i=t[e];delete t[e];for(let s of r)t[s]=i}wT(t),delete t.__esModule,x8(t),ET(t);for(let e of Object.keys(t)){if(Mi(e)||!g8(e))continue;let r=t[e];for(let s of Object.keys(r))r[s]=b8(e,r[s]);delete t[e];let i=PT[e];if(i!==null)for(let s of i)t[s]?Cn(t[s],r):t[s]=r;else Cn(t,r)}for(let e of Object.keys(t)){if(Mi(e))continue;let r=gT[e];if(e in yT){let s=yT[e];xT(e,s,"Visitor "),r=[s]}else if(e in TT){let s=TT[e];xT(e,s,"Visitor "),r=gT[s]}if(!r)continue;let i=t[e];delete t[e];for(let s of r){let n=t[s];n?Cn(n,i):t[s]=Object.assign({},i)}}for(let e of Object.keys(t))Mi(e)||ET(t[e]);return t}function wT(t){if(!t._verified){if(typeof t=="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 e of Object.keys(t)){if((e==="enter"||e==="exit")&&bT(e,t[e]),Mi(e))continue;if(!T8.includes(e))throw new Error(`You gave us a visitor for the node type ${e} but it's not a valid type in @babel/traverse 7.28.0`);let r=t[e];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")bT(`${e}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${e} that has the invalid property ${i}`)}t._verified=!0}}function bT(t,e){let r=[].concat(e);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${t} with type ${typeof i}`)}function CT(t,e=[],r){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let s=0;s<t.length;s++){let n=AT(t[s]),a=e[s],o=n;(a||r)&&(o=ST(o,a,r)),Cn(i,o);for(let l of Object.keys(n)){if(Mi(l))continue;let c=n[l];(a||r)&&(c=ST(c,a,r));let u=i[l]||(i[l]={});Cn(u,c)}}return i}function ST(t,e,r){let i={};for(let s of["enter","exit"]){let n=t[s];Array.isArray(n)&&(n=n.map(function(a){let o=a;return e&&(o=function(l){a.call(e,l,e)}),r&&(o=r(e?.key,s,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[s]=n)}return i}function x8(t){for(let e of Object.keys(t)){if(Mi(e))continue;let r=t[e];typeof r=="function"&&(t[e]={enter:r})}}function ET(t){t.enter&&!Array.isArray(t.enter)&&(t.enter=[t.enter]),t.exit&&!Array.isArray(t.exit)&&(t.exit=[t.exit])}function b8(t,e){let r=`is${t}`,i=m8[r],s=function(n){if(i.call(n))return e.apply(this,arguments)};return s.toString=()=>e.toString(),s}function Mi(t){return t[0]==="_"||t==="enter"||t==="exit"||t==="shouldSkip"||t==="denylist"||t==="noScope"||t==="skipKeys"||t==="blacklist"}function Cn(t,e){for(let r of["enter","exit"])e[r]&&(t[r]=[].concat(t[r]||[],e[r]))}var S8={FunctionParent(t){t.isArrowFunctionExpression()||(t.skip(),t.isMethod()&&(t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():mT.requeueComputedKeyAndDecorators.call(t)))},Property(t){t.isObjectProperty()||(t.skip(),t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():mT.requeueComputedKeyAndDecorators.call(t))}};function E8(t){return CT([S8,t])}});var IT=k(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.default=void 0;var fo=Me(),P8=fo,v8=mo(),A8=po(),w8=gr(),{getAssignmentIdentifiers:C8}=P8,I8={ReferencedIdentifier({node:t},e){t.name===e.oldName&&(t.name=e.newName)},Scope(t,e){t.scope.bindingIdentifierEquals(e.oldName,e.binding.identifier)||(t.skip(),t.isMethod()&&(t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():w8.requeueComputedKeyAndDecorators.call(t)))},ObjectProperty({node:t,scope:e},r){let{name:i}=t.key;if(t.shorthand&&(i===r.oldName||i===r.newName)&&e.getBindingIdentifier(i)===r.binding.identifier){t.shorthand=!1;{var s;(s=t.extra)!=null&&s.shorthand&&(t.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(t,e){if(t.isVariableDeclaration())return;let r=t.isAssignmentExpression()?C8(t.node):t.getOuterBindingIdentifiers();for(let i in r)i===e.oldName&&(r[i].name=e.newName)}},Cp=class{constructor(e,r,i){this.newName=i,this.oldName=r,this.binding=e}maybeConvertFromExportDeclaration(e){let r=e.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if(fo.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:r,newName:i}=this,{scope:s,path:n}=e,a=n.find(c=>c.isDeclaration()||c.isFunctionExpression()||c.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===e.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:!0};fo.isMethod(o)&&(o.computed&&(l.key=!0),fo.isObjectMethod(o)||(l.decorators=!0)),(0,v8.traverseNode)(o,(0,A8.explode)(I8),s,this,s.path,l),arguments[0]||(s.removeOwnBinding(r),s.bindings[i]=e,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};ho.default=Cp});var kT=k(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.default=void 0;var Ip=class{constructor({identifier:e,scope:r,path:i,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&k8(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,!this.constantViolations.includes(e)&&this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}};yo.default=Ip;function k8(t){let e=!t.isVariableDeclarator()||t.node.init;for(let{parentPath:r,key:i}=t;r;{parentPath:r,key:i}=r){if(r.isFunctionParent())return!1;if(i==="left"&&r.isForXStatement()||e&&i==="body"&&r.isLoop())return!0}return!1}});var Bi=k(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.clear=_8;er.clearPath=OT;er.clearScope=_T;er.getCachedPaths=N8;er.getOrCreateCachedPaths=D8;er.scope=er.path=void 0;var To=er.path=new WeakMap,O8=er.scope=new WeakMap;function _8(){OT(),_T()}function OT(){er.path=To=new WeakMap}function _T(){er.scope=O8=new WeakMap}function N8(t){let{parent:e,parentPath:r}=t;return To.get(e)}function D8(t,e){let r=To.get(t);return r||To.set(t,r=new Map),r}});var NT=k((oae,L8)=>{L8.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var DT=k((lae,M8)=>{M8.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 Dp=k(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.default=void 0;var F8=IT(),UT=kn(),B8=kT(),KT=Me(),WT=KT,LT=Bi(),j8=NT(),R8=DT(),{assignmentExpression:q8,callExpression:MT,cloneNode:FT,getBindingIdentifiers:VT,identifier:Ri,isArrayExpression:YT,isBinary:$8,isCallExpression:BT,isClass:U8,isClassBody:K8,isClassDeclaration:W8,isExportAllDeclaration:zT,isExportDefaultDeclaration:V8,isExportNamedDeclaration:kp,isFunctionDeclaration:Y8,isIdentifier:ji,isImportDeclaration:Op,isLiteral:z8,isMemberExpression:J8,isMethod:X8,isModuleSpecifier:H8,isNullLiteral:G8,isObjectExpression:Q8,isProperty:Z8,isPureish:e5,isRegExpLiteral:t5,isSuper:r5,isTaggedTemplateExpression:i5,isTemplateLiteral:JT,isThisExpression:jT,isUnaryExpression:s5,isVariableDeclaration:n5,expressionStatement:a5,matchesPattern:RT,memberExpression:_p,numericLiteral:o5,toIdentifier:l5,variableDeclaration:c5,variableDeclarator:u5,isRecordExpression:p5,isTupleExpression:f5,isObjectProperty:h5,isTopicReference:qT,isMetaProperty:d5,isPrivateName:m5,isExportDeclaration:y5,buildUndefinedNode:T5,sequenceExpression:g5}=KT;function st(t,e){switch(t?.type){default:if(Op(t)||y5(t)){var r;if((zT(t)||kp(t)||Op(t))&&t.source)st(t.source,e);else if((kp(t)||Op(t))&&(r=t.specifiers)!=null&&r.length)for(let i of t.specifiers)st(i,e);else(V8(t)||kp(t))&&t.declaration&&st(t.declaration,e)}else H8(t)?st(t.local,e):z8(t)&&!G8(t)&&!t5(t)&&!JT(t)&&e.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":st(t.object,e),st(t.property,e);break;case"Identifier":case"JSXIdentifier":e.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":st(t.callee,e);break;case"ObjectExpression":case"ObjectPattern":for(let i of t.properties)st(i,e);break;case"SpreadElement":case"RestElement":st(t.argument,e);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":st(t.key,e);break;case"ThisExpression":e.push("this");break;case"Super":e.push("super");break;case"Import":case"ImportExpression":e.push("import");break;case"DoExpression":e.push("do");break;case"YieldExpression":e.push("yield"),st(t.argument,e);break;case"AwaitExpression":e.push("await"),st(t.argument,e);break;case"AssignmentExpression":st(t.left,e);break;case"VariableDeclarator":st(t.id,e);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":st(t.id,e);break;case"PrivateName":st(t.id,e);break;case"ParenthesizedExpression":st(t.expression,e);break;case"UnaryExpression":case"UpdateExpression":st(t.argument,e);break;case"MetaProperty":st(t.meta,e),st(t.property,e);break;case"JSXElement":st(t.openingElement,e);break;case"JSXOpeningElement":st(t.name,e);break;case"JSXFragment":st(t.openingFragment,e);break;case"JSXOpeningFragment":e.push("Fragment");break;case"JSXNamespacedName":st(t.namespace,e),st(t.name,e);break}}function $T(t){t.references=Object.create(null),t.uids=Object.create(null),t.bindings=Object.create(null),t.globals=Object.create(null)}Np=Symbol.for("should not be considered a local binding");var Np,x5={ForStatement(t){let e=t.get("init");if(e.isVar()){let{scope:r}=t;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",e)}},Declaration(t){if(t.isBlockScoped()||t.isImportDeclaration()||t.isExportDeclaration())return;(t.scope.getFunctionParent()||t.scope.getProgramParent()).registerDeclaration(t)},ImportDeclaration(t){t.scope.getBlockParent().registerDeclaration(t)},TSImportEqualsDeclaration(t){t.scope.getBlockParent().registerDeclaration(t)},ReferencedIdentifier(t,e){WT.isTSQualifiedName(t.parent)&&t.parent.right===t.node||t.parentPath.isTSImportEqualsDeclaration()||e.references.push(t)},ForXStatement(t,e){let r=t.get("left");if(r.isPattern()||r.isIdentifier())e.constantViolations.push(t);else if(r.isVar()){let{scope:i}=t;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(t){let{node:e,scope:r}=t;if(zT(e))return;let i=e.declaration;if(W8(i)||Y8(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n?.reference(t)}else if(n5(i))for(let s of i.declarations)for(let n of Object.keys(VT(s))){let a=r.getBinding(n);a?.reference(t)}}},LabeledStatement(t){t.scope.getBlockParent().registerDeclaration(t)},AssignmentExpression(t,e){e.assignments.push(t)},UpdateExpression(t,e){e.constantViolations.push(t)},UnaryExpression(t,e){t.node.operator==="delete"&&e.constantViolations.push(t)},BlockScoped(t){let e=t.scope;if(e.path===t&&(e=e.parent),e.getBlockParent().registerDeclaration(t),t.isClassDeclaration()&&t.node.id){let s=t.node.id.name;t.scope.bindings[s]=t.scope.parent.getBinding(s)}},CatchClause(t){t.scope.registerBinding("let",t)},Function(t){let e=t.get("params");for(let r of e)t.scope.registerBinding("param",r);t.isFunctionExpression()&&t.node.id&&!t.node.id[Np]&&t.scope.registerBinding("local",t.get("id"),t)},ClassExpression(t){t.node.id&&!t.node.id[Np]&&t.scope.registerBinding("local",t.get("id"),t)},TSTypeAnnotation(t){t.skip()}},In,b5=0,xr=class t{constructor(e){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}=e,i=LT.scope.get(r);if(i?.path===e)return i;LT.scope.set(r,this),this.uid=b5++,this.block=r,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;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(e=r)==null?void 0:e.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(e){let r=this.generateUidIdentifier(e);return this.push({id:r}),FT(r)}generateUidIdentifier(e){return Ri(this.generateUid(e))}generateUid(e="temp"){e=l5(e).replace(/^_+/,"").replace(/\d+$/g,"");let r,i=0;do r=`_${e}`,i>=11?r+=i-1:i>=9?r+=i-9:i>=1&&(r+=i+1),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}generateUidBasedOnNode(e,r){let i=[];st(e,i);let s=i.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,r){return Ri(this.generateUidBasedOnNode(e,r))}isStatic(e){if(jT(e)||r5(e)||qT(e))return!0;if(ji(e)){let r=this.getBinding(e.name);return r?r.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,r){if(this.isStatic(e))return null;{let i=this.generateUidIdentifierBasedOnNode(e);return r?i:(this.push({id:i}),FT(i))}}checkBlockScopedCollisions(e,r,i,s){if(r==="param"||e.kind==="local")return;if(r==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&r==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${i}"`,TypeError)}rename(e,r){let i=this.getBinding(e);i&&(r||(r=this.generateUidIdentifier(e).name),new F8.default(i,e,r).rename(arguments[2]))}dump(){let e="-".repeat(60);console.log(e);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(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let r=e.get("declarations"),{kind:i}=e.node;for(let s of r)this.registerBinding(i==="using"||i==="await using"?"const":i,s)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let r=e.node.importKind==="type"||e.node.importKind==="typeof",i=e.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(e.isExportDeclaration()){let r=e.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return T5()}registerConstantViolation(e){let r=e.getAssignmentIdentifiers();for(let s of Object.keys(r)){var i;(i=this.getBinding(s))==null||i.reassign(e)}}registerBinding(e,r,i=r){if(!e)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(e,o);return}let s=this.getProgramParent(),n=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let o of n[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,e,a,o)}l?l.reassign(i):this.bindings[a]=new B8.default({identifier:o,scope:this,path:i,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let r=this;do if(r.uids[e])return!0;while(r=r.parent);return!1}}hasGlobal(e){let r=this;do if(r.globals[e])return!0;while(r=r.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,r){if(ji(e)){let a=this.getBinding(e.name);return a?r?a.constant:!0:!1}else{if(jT(e)||d5(e)||qT(e)||m5(e))return!0;if(U8(e)){var i;return e.superClass&&!this.isPure(e.superClass,r)||((i=e.decorators)==null?void 0:i.length)>0?!1:this.isPure(e.body,r)}else if(K8(e)){for(let a of e.body)if(!this.isPure(a,r))return!1;return!0}else{if($8(e))return this.isPure(e.left,r)&&this.isPure(e.right,r);if(YT(e)||f5(e)){for(let a of e.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(Q8(e)||p5(e)){for(let a of e.properties)if(!this.isPure(a,r))return!1;return!0}else if(X8(e)){var s;return!(e.computed&&!this.isPure(e.key,r)||((s=e.decorators)==null?void 0:s.length)>0)}else if(Z8(e)){var n;return!(e.computed&&!this.isPure(e.key,r)||((n=e.decorators)==null?void 0:n.length)>0||(h5(e)||e.static)&&e.value!==null&&!this.isPure(e.value,r))}else{if(s5(e))return this.isPure(e.argument,r);if(JT(e)){for(let a of e.expressions)if(!this.isPure(a,r))return!1;return!0}else return i5(e)?RT(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,r):J8(e)?!e.computed&&ji(e.object)&&e.object.name==="Symbol"&&ji(e.property)&&e.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):BT(e)?RT(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&e.arguments.length===1&&WT.isStringLiteral(e.arguments[0]):e5(e)}}}}setData(e,r){return this.data[e]=r}getData(e){let r=this;do{let i=r.data[e];if(i!=null)return i}while(r=r.parent)}removeData(e){let r=this;do r.data[e]!=null&&(r.data[e]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let e=this.path;$T(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let i=r,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,In||(In=UT.default.visitors.merge([{Scope(n){$T(n.scope)}},x5])),e.type!=="Program"){for(let a of In.enter)a.call(s,e,s);let n=In[e.type];if(n)for(let a of n.enter)a.call(s,e,s)}e.traverse(In,s),this.crawling=!1;for(let n of s.assignments){let a=n.getAssignmentIdentifiers();for(let o of Object.keys(a))n.scope.getBinding(o)||i.addGlobal(a[o]);n.scope.registerConstantViolation(n)}for(let n of s.references){let a=n.scope.getBinding(n.node.name);a?a.reference(n):i.addGlobal(n.node)}for(let n of s.constantViolations)n.scope.registerConstantViolation(n)}push(e){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}=e;if(!i&&!s&&(n==="var"||n==="let")&&r.isFunction()&&!r.node.name&&BT(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&ji(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=e._blockHoist==null?2:e._blockHoist,l=`declaration:${n}:${o}`,c=!s&&r.getData(l);if(!c){let b=c5(n,[]);b._blockHoist=o,[c]=r.unshiftContainer("body",[b]),s||r.setData(l,c)}let u=u5(a,i),d=c.node.declarations.push(u);r.scope.registerBinding(n,c.get("declarations")[d-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in e||(e[i]=r.bindings[i]);r=r.parent}while(r);return e}bindingIdentifierEquals(e,r){return this.getBindingIdentifier(e)===r}getBinding(e){let r=this,i;do{let n=r.getOwnBinding(e);if(n){var s;if(!((s=i)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&e==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var r;return(r=this.getBinding(e))==null?void 0:r.identifier}getOwnBindingIdentifier(e){let r=this.bindings[e];return r?.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,r){if(!e)return!1;let i,s,n;typeof r=="object"?(i=r.noGlobals,s=r.noUids,n=r.upToScope):typeof r=="boolean"&&(i=r);let a=this;do{if(n===a)break;if(a.hasOwnBinding(e))return!0}while(a=a.parent);return!!(!s&&this.hasUid(e)||!i&&t.globals.includes(e)||!i&&t.contextVariables.includes(e))}parentHasBinding(e,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(e,r)}moveBindingTo(e,r){let i=this.getBinding(e);i&&(i.scope.removeOwnBinding(e),i.scope=r,r.bindings[e]=i)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var r;(r=this.getBinding(e))==null||r.scope.removeOwnBinding(e);{let i=this;do i.uids[e]&&(i.uids[e]=!1);while(i=i.parent)}}hoistVariables(e=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 u of a.declarations){l??(l=u.id),u.init&&c.push(q8("=",u.id,u.init));let d=Object.keys(VT(u,!1,!0,!0));for(let b of d)e(Ri(b),u.init!=null)}if(o.parentPath.isFor({left:a}))o.replaceWith(l);else if(c.length===0)o.remove();else{let u=c.length===1?c[0]:g5(c);o.parentPath.isForStatement({init:a})?o.replaceWith(u):o.replaceWith(a5(u))}}}};go.default=xr;xr.globals=[...j8,...R8];xr.contextVariables=["arguments","undefined","Infinity","NaN"];xr.prototype._renameFromMap=function(e,r,i,s){e[r]&&(e[i]=s,e[r]=null)},xr.prototype.traverse=function(t,e,r){(0,UT.default)(t,e,this,r,this.path)},xr.prototype._generateUid=function(e,r){let i=e;return r>1&&(i+=r),`_${i}`},xr.prototype.toArray=function(e,r,i){if(ji(e)){let a=this.getBinding(e.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return e}if(YT(e))return e;if(ji(e,{name:"arguments"}))return MT(_p(_p(_p(Ri("Array"),Ri("prototype")),Ri("slice")),Ri("call")),[e]);let s,n=[e];return r===!0?s="toConsumableArray":typeof r=="number"?(n.push(o5(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),MT(this.path.hub.addHelper(s),n)},xr.prototype.getAllBindingsOfKind=function(...e){let r=Object.create(null);for(let i of e){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(xr.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Fp=k((Lp,Mp)=>{(function(t,e,r){typeof Lp=="object"&&typeof Mp<"u"?e(Mp):typeof define=="function"&&define.amd?define(["module"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(r={exports:{}}),t.sourcemapCodec="default"in r.exports?r.exports.default:r.exports)})(Lp,function(t){"use strict";var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=(ne,ie)=>{for(var O in ie)e(ne,O,{get:ie[O],enumerable:!0})},a=(ne,ie,O,F)=>{if(ie&&typeof ie=="object"||typeof ie=="function")for(let D of i(ie))!s.call(ne,D)&&D!==O&&e(ne,D,{get:()=>ie[D],enumerable:!(F=r(ie,D))||F.enumerable});return ne},o=ne=>a(e({},"__esModule",{value:!0}),ne),l={};n(l,{decode:()=>ve,decodeGeneratedRanges:()=>Ie,decodeOriginalScopes:()=>W,encode:()=>Ct,encodeGeneratedRanges:()=>We,encodeOriginalScopes:()=>ke}),t.exports=o(l);var c=44,u=59,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=new Uint8Array(64),E=new Uint8Array(128);for(let ne=0;ne<d.length;ne++){let ie=d.charCodeAt(ne);b[ne]=ie,E[ie]=ne}function v(ne,ie){let O=0,F=0,D=0;do{let Q=ne.next();D=E[Q],O|=(D&31)<<F,F+=5}while(D&32);let ee=O&1;return O>>>=1,ee&&(O=-2147483648|-O),ie+O}function A(ne,ie,O){let F=ie-O;F=F<0?-F<<1|1:F<<1;do{let D=F&31;F>>>=5,F>0&&(D|=32),ne.write(b[D])}while(F>0);return ie}function I(ne,ie){return ne.pos>=ie?!1:ne.peek()!==c}var _=1024*16,$=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(ne){return Buffer.from(ne.buffer,ne.byteOffset,ne.byteLength).toString()}}:{decode(ne){let ie="";for(let O=0;O<ne.length;O++)ie+=String.fromCharCode(ne[O]);return ie}},X=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(_)}write(ne){let{buffer:ie}=this;ie[this.pos++]=ne,this.pos===_&&(this.out+=$.decode(ie),this.pos=0)}flush(){let{buffer:ne,out:ie,pos:O}=this;return O>0?ie+$.decode(ne.subarray(0,O)):ie}},N=class{constructor(ne){this.pos=0,this.buffer=ne}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(ne){let{buffer:ie,pos:O}=this,F=ie.indexOf(ne,O);return F===-1?ie.length:F}},U=[];function W(ne){let{length:ie}=ne,O=new N(ne),F=[],D=[],ee=0;for(;O.pos<ie;O.pos++){ee=v(O,ee);let Q=v(O,0);if(!I(O,ie)){let te=D.pop();te[2]=ee,te[3]=Q;continue}let ae=v(O,0),R=v(O,0)&1?[ee,Q,0,0,ae,v(O,0)]:[ee,Q,0,0,ae],Y=U;if(I(O,ie)){Y=[];do{let te=v(O,0);Y.push(te)}while(I(O,ie))}R.vars=Y,F.push(R),D.push(R)}return F}function ke(ne){let ie=new X;for(let O=0;O<ne.length;)O=Ce(ne,O,ie,[0]);return ie.flush()}function Ce(ne,ie,O,F){let D=ne[ie],{0:ee,1:Q,2:ae,3:j,4:B,vars:R}=D;ie>0&&O.write(c),F[0]=A(O,ee,F[0]),A(O,Q,0),A(O,B,0);let Y=D.length===6?1:0;A(O,Y,0),D.length===6&&A(O,D[5],0);for(let te of R)A(O,te,0);for(ie++;ie<ne.length;){let te=ne[ie],{0:Z,1:ue}=te;if(Z>ae||Z===ae&&ue>=j)break;ie=Ce(ne,ie,O,F)}return O.write(c),F[0]=A(O,ae,F[0]),A(O,j,0),ie}function Ie(ne){let{length:ie}=ne,O=new N(ne),F=[],D=[],ee=0,Q=0,ae=0,j=0,B=0,R=0,Y=0,te=0;do{let Z=O.indexOf(";"),ue=0;for(;O.pos<Z;O.pos++){if(ue=v(O,ue),!I(O,Z)){let he=D.pop();he[2]=ee,he[3]=ue;continue}let ge=v(O,0),ot=ge&1,St=ge&2,It=ge&4,H=null,G=U,pe;if(ot){let he=v(O,Q);ae=v(O,Q===he?ae:0),Q=he,pe=[ee,ue,0,0,he,ae]}else pe=[ee,ue,0,0];if(pe.isScope=!!It,St){let he=j,_e=B;j=v(O,j);let Ne=he===j;B=v(O,Ne?B:0),R=v(O,Ne&&_e===B?R:0),H=[j,B,R]}if(pe.callsite=H,I(O,Z)){G=[];do{Y=ee,te=ue;let he=v(O,0),_e;if(he<-1){_e=[[v(O,0)]];for(let Ne=-1;Ne>he;Ne--){let ze=Y;Y=v(O,Y),te=v(O,Y===ze?te:0);let kt=v(O,0);_e.push([kt,Y,te])}}else _e=[[he]];G.push(_e)}while(I(O,Z))}pe.bindings=G,F.push(pe),D.push(pe)}ee++,O.pos=Z+1}while(O.pos<ie);return F}function We(ne){if(ne.length===0)return"";let ie=new X;for(let O=0;O<ne.length;)O=ft(ne,O,ie,[0,0,0,0,0,0,0]);return ie.flush()}function ft(ne,ie,O,F){let D=ne[ie],{0:ee,1:Q,2:ae,3:j,isScope:B,callsite:R,bindings:Y}=D;F[0]<ee?(h(O,F[0],ee),F[0]=ee,F[1]=0):ie>0&&O.write(c),F[1]=A(O,D[1],F[1]);let te=(D.length===6?1:0)|(R?2:0)|(B?4:0);if(A(O,te,0),D.length===6){let{4:Z,5:ue}=D;Z!==F[2]&&(F[3]=0),F[2]=A(O,Z,F[2]),F[3]=A(O,ue,F[3])}if(R){let{0:Z,1:ue,2:ge}=D.callsite;Z!==F[4]?(F[5]=0,F[6]=0):ue!==F[5]&&(F[6]=0),F[4]=A(O,Z,F[4]),F[5]=A(O,ue,F[5]),F[6]=A(O,ge,F[6])}if(Y)for(let Z of Y){Z.length>1&&A(O,-Z.length,0);let ue=Z[0][0];A(O,ue,0);let ge=ee,ot=Q;for(let St=1;St<Z.length;St++){let It=Z[St];ge=A(O,It[1],ge),ot=A(O,It[2],ot),A(O,It[0],0)}}for(ie++;ie<ne.length;){let Z=ne[ie],{0:ue,1:ge}=Z;if(ue>ae||ue===ae&&ge>=j)break;ie=ft(ne,ie,O,F)}return F[0]<ae?(h(O,F[0],ae),F[0]=ae,F[1]=0):O.write(c),F[1]=A(O,j,F[1]),ie}function h(ne,ie,O){do ne.write(u);while(++ie<O)}function ve(ne){let{length:ie}=ne,O=new N(ne),F=[],D=0,ee=0,Q=0,ae=0,j=0;do{let B=O.indexOf(";"),R=[],Y=!0,te=0;for(D=0;O.pos<B;){let Z;D=v(O,D),D<te&&(Y=!1),te=D,I(O,B)?(ee=v(O,ee),Q=v(O,Q),ae=v(O,ae),I(O,B)?(j=v(O,j),Z=[D,ee,Q,ae,j]):Z=[D,ee,Q,ae]):Z=[D],R.push(Z),O.pos++}Y||Oe(R),F.push(R),O.pos=B+1}while(O.pos<=ie);return F}function Oe(ne){ne.sort(tt)}function tt(ne,ie){return ne[0]-ie[0]}function Ct(ne){let ie=new X,O=0,F=0,D=0,ee=0;for(let Q=0;Q<ne.length;Q++){let ae=ne[Q];if(Q>0&&ie.write(u),ae.length===0)continue;let j=0;for(let B=0;B<ae.length;B++){let R=ae[B];B>0&&ie.write(c),j=A(ie,R[0],j),R.length!==1&&(O=A(ie,R[1],O),F=A(ie,R[2],F),D=A(ie,R[3],D),R.length!==4&&(ee=A(ie,R[4],ee)))}}return ie.flush()}})});var XT=k((Bp,jp)=>{(function(t,e){typeof Bp=="object"&&typeof jp<"u"?jp.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.resolveURI=e())})(Bp,function(){"use strict";let t=/^[\w+.-]+:\/\//,e=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(I){return t.test(I)}function s(I){return I.startsWith("//")}function n(I){return I.startsWith("/")}function a(I){return I.startsWith("file:")}function o(I){return/^[.?#]/.test(I)}function l(I){let _=e.exec(I);return u(_[1],_[2]||"",_[3],_[4]||"",_[5]||"/",_[6]||"",_[7]||"")}function c(I){let _=r.exec(I),$=_[2];return u("file:","",_[1]||"","",n($)?$:"/"+$,_[3]||"",_[4]||"")}function u(I,_,$,X,N,U,W){return{scheme:I,user:_,host:$,port:X,path:N,query:U,hash:W,type:7}}function d(I){if(s(I)){let $=l("http:"+I);return $.scheme="",$.type=6,$}if(n(I)){let $=l("http://foo.com"+I);return $.scheme="",$.host="",$.type=5,$}if(a(I))return c(I);if(i(I))return l(I);let _=l("http://foo.com/"+I);return _.scheme="",_.host="",_.type=I?I.startsWith("?")?3:I.startsWith("#")?2:4:1,_}function b(I){if(I.endsWith("/.."))return I;let _=I.lastIndexOf("/");return I.slice(0,_+1)}function E(I,_){v(_,_.type),I.path==="/"?I.path=_.path:I.path=b(_.path)+I.path}function v(I,_){let $=_<=4,X=I.path.split("/"),N=1,U=0,W=!1;for(let Ce=1;Ce<X.length;Ce++){let Ie=X[Ce];if(!Ie){W=!0;continue}if(W=!1,Ie!=="."){if(Ie===".."){U?(W=!0,U--,N--):$&&(X[N++]=Ie);continue}X[N++]=Ie,U++}}let ke="";for(let Ce=1;Ce<N;Ce++)ke+="/"+X[Ce];(!ke||W&&!ke.endsWith("/.."))&&(ke+="/"),I.path=ke}function A(I,_){if(!I&&!_)return"";let $=d(I),X=$.type;if(_&&X!==7){let U=d(_),W=U.type;switch(X){case 1:$.hash=U.hash;case 2:$.query=U.query;case 3:case 4:E($,U);case 5:$.user=U.user,$.host=U.host,$.port=U.port;case 6:$.scheme=U.scheme}W>X&&(X=W)}v($,X);let N=$.query+$.hash;switch(X){case 2:case 3:return N;case 4:{let U=$.path.slice(1);return U?o(_||I)&&!o(U)?"./"+U+N:U+N:N||"."}case 5:return $.path+N;default:return $.scheme+"//"+$.user+$.host+$.port+$.path+N}}return A})});var $p=k((Rp,qp)=>{(function(t,e,r){typeof Rp=="object"&&typeof qp<"u"?e(qp,XT(),Fp()):typeof define=="function"&&define.amd?define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(r={exports:{}},t.resolveURI,t.sourcemapCodec),t.traceMapping="default"in r.exports?r.exports.default:r.exports)})(Rp,function(t,e,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(M,V)=>function(){return V||(0,M[a(M)[0]])((V={exports:{}}).exports,V),V.exports},u=(M,V)=>{for(var z in V)s(M,z,{get:V[z],enumerable:!0})},d=(M,V,z,oe)=>{if(V&&typeof V=="object"||typeof V=="function")for(let Ae of a(V))!l.call(M,Ae)&&Ae!==z&&s(M,Ae,{get:()=>V[Ae],enumerable:!(oe=n(V,Ae))||oe.enumerable});return M},b=(M,V,z)=>(z=M!=null?i(o(M)):{},d(V||!M||!M.__esModule?s(z,"default",{value:M,enumerable:!0}):z,M)),E=M=>d(s({},"__esModule",{value:!0}),M),v=c({"umd:@jridgewell/sourcemap-codec"(M,V){V.exports=r}}),A=c({"umd:@jridgewell/resolve-uri"(M,V){V.exports=e}}),I={};u(I,{AnyMap:()=>R,FlattenMap:()=>R,GREATEST_LOWER_BOUND:()=>It,LEAST_UPPER_BOUND:()=>St,TraceMap:()=>H,allGeneratedPositionsFor:()=>kt,decodedMap:()=>Ti,decodedMappings:()=>he,eachMapping:()=>rr,encodedMap:()=>Xi,encodedMappings:()=>pe,generatedPositionFor:()=>ze,isIgnored:()=>mi,originalPositionFor:()=>Ne,presortedDecodedMap:()=>yi,sourceContentFor:()=>Ji,traceSegment:()=>_e}),t.exports=E(I);var _=b(v()),$=b(A());function X(M){if(!M)return"";let V=M.lastIndexOf("/");return M.slice(0,V+1)}function N(M,V){let z=X(M),oe=V?V+"/":"";return Ae=>(0,$.default)(oe+(Ae||""),z)}var U=0,W=1,ke=2,Ce=3,Ie=4,We=1,ft=2;function h(M,V){let z=ve(M,0);if(z===M.length)return M;V||(M=M.slice());for(let oe=z;oe<M.length;oe=ve(M,oe+1))M[oe]=tt(M[oe],V);return M}function ve(M,V){for(let z=V;z<M.length;z++)if(!Oe(M[z]))return z;return M.length}function Oe(M){for(let V=1;V<M.length;V++)if(M[V][U]<M[V-1][U])return!1;return!0}function tt(M,V){return V||(M=M.slice()),M.sort(Ct)}function Ct(M,V){return M[U]-V[U]}var ne=!1;function ie(M,V,z,oe){for(;z<=oe;){let Ae=z+(oe-z>>1),xe=M[Ae][U]-V;if(xe===0)return ne=!0,Ae;xe<0?z=Ae+1:oe=Ae-1}return ne=!1,z-1}function O(M,V,z){for(let oe=z+1;oe<M.length&&M[oe][U]===V;z=oe++);return z}function F(M,V,z){for(let oe=z-1;oe>=0&&M[oe][U]===V;z=oe--);return z}function D(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ee(M,V,z,oe){let{lastKey:Ae,lastNeedle:xe,lastIndex:Ve}=z,et=0,je=M.length-1;if(oe===Ae){if(V===xe)return ne=Ve!==-1&&M[Ve][U]===V,Ve;V>=xe?et=Ve===-1?0:Ve:je=Ve}return z.lastKey=oe,z.lastNeedle=V,z.lastIndex=ie(M,V,et,je)}function Q(M,V){let z=V.map(j);for(let oe=0;oe<M.length;oe++){let Ae=M[oe];for(let xe=0;xe<Ae.length;xe++){let Ve=Ae[xe];if(Ve.length===1)continue;let et=Ve[W],je=Ve[ke],rt=Ve[Ce],Yt=z[et],lt=Yt[je]||(Yt[je]=[]),Et=V[et],Qt=O(lt,rt,ee(lt,rt,Et,je));Et.lastIndex=++Qt,ae(lt,Qt,[rt,oe,Ve[U]])}}return z}function ae(M,V,z){for(let oe=M.length;oe>V;oe--)M[oe]=M[oe-1];M[V]=z}function j(){return{__proto__:null}}function B(M){return typeof M=="string"?JSON.parse(M):M}var R=function(M,V){let z=B(M);if(!("sections"in z))return new H(z,V);let oe=[],Ae=[],xe=[],Ve=[],et=[];Y(z,V,oe,Ae,xe,Ve,et,0,0,1/0,1/0);let je={version:3,file:z.file,names:Ve,sources:Ae,sourcesContent:xe,mappings:oe,ignoreList:et};return yi(je)};function Y(M,V,z,oe,Ae,xe,Ve,et,je,rt,Yt){let{sections:lt}=M;for(let Et=0;Et<lt.length;Et++){let{map:Qt,offset:Pr}=lt[Et],xi=rt,Hi=Yt;if(Et+1<lt.length){let Gi=lt[Et+1].offset;xi=Math.min(rt,et+Gi.line),xi===rt?Hi=Math.min(Yt,je+Gi.column):xi<rt&&(Hi=je+Gi.column)}te(Qt,V,z,oe,Ae,xe,Ve,et+Pr.line,je+Pr.column,xi,Hi)}}function te(M,V,z,oe,Ae,xe,Ve,et,je,rt,Yt){let lt=B(M);if("sections"in lt)return Y(...arguments);let Et=new H(lt,V),Qt=oe.length,Pr=xe.length,xi=he(Et),{resolvedSources:Hi,sourcesContent:Gi,ignoreList:el}=Et;if(Z(oe,Hi),Z(xe,Et.names),Gi)Z(Ae,Gi);else for(let ir=0;ir<Hi.length;ir++)Ae.push(null);if(el)for(let ir=0;ir<el.length;ir++)Ve.push(el[ir]+Qt);for(let ir=0;ir<xi.length;ir++){let tl=et+ir;if(tl>rt)return;let mh=ue(z,tl),hb=ir===0?je:0,yh=xi[ir];for(let rl=0;rl<yh.length;rl++){let bi=yh[rl],zn=hb+bi[U];if(tl===rt&&zn>=Yt)return;if(bi.length===1){mh.push([zn]);continue}let Th=Qt+bi[W],gh=bi[ke],xh=bi[Ce];mh.push(bi.length===4?[zn,Th,gh,xh]:[zn,Th,gh,xh,Pr+bi[Ie]])}}}function Z(M,V){for(let z=0;z<V.length;z++)M.push(V[z])}function ue(M,V){for(let z=M.length;z<=V;z++)M[z]=[];return M[V]}var ge="`line` must be greater than 0 (lines start at line 1)",ot="`column` must be greater than or equal to 0 (columns start at column 0)",St=-1,It=1,H=class{constructor(M,V){let z=typeof M=="string";if(!z&&M._decodedMemo)return M;let oe=B(M),{version:Ae,file:xe,names:Ve,sourceRoot:et,sources:je,sourcesContent:rt}=oe;this.version=Ae,this.file=xe,this.names=Ve||[],this.sourceRoot=et,this.sources=je,this.sourcesContent=rt,this.ignoreList=oe.ignoreList||oe.x_google_ignoreList||void 0;let Yt=N(V,et);this.resolvedSources=je.map(Yt);let{mappings:lt}=oe;if(typeof lt=="string")this._encoded=lt,this._decoded=void 0;else if(Array.isArray(lt))this._encoded=void 0,this._decoded=h(lt,z);else throw oe.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(oe)}`);this._decodedMemo=D(),this._bySources=void 0,this._bySourceMemos=void 0}};function G(M){return M}function pe(M){var V,z;return(z=(V=M)._encoded)!=null?z:V._encoded=(0,_.encode)(M._decoded)}function he(M){var V;return(V=M)._decoded||(V._decoded=(0,_.decode)(M._encoded))}function _e(M,V,z){let oe=he(M);if(V>=oe.length)return null;let Ae=oe[V],xe=Yn(Ae,M._decodedMemo,V,z,It);return xe===-1?null:Ae[xe]}function Ne(M,V){let{line:z,column:oe,bias:Ae}=V;if(z--,z<0)throw new Error(ge);if(oe<0)throw new Error(ot);let xe=he(M);if(z>=xe.length)return gi(null,null,null,null);let Ve=xe[z],et=Yn(Ve,M._decodedMemo,z,oe,Ae||It);if(et===-1)return gi(null,null,null,null);let je=Ve[et];if(je.length===1)return gi(null,null,null,null);let{names:rt,resolvedSources:Yt}=M;return gi(Yt[je[W]],je[ke]+1,je[Ce],je.length===5?rt[je[Ie]]:null)}function ze(M,V){let{source:z,line:oe,column:Ae,bias:xe}=V;return dh(M,z,oe,Ae,xe||It,!1)}function kt(M,V){let{source:z,line:oe,column:Ae,bias:xe}=V;return dh(M,z,oe,Ae,xe||St,!0)}function rr(M,V){let z=he(M),{names:oe,resolvedSources:Ae}=M;for(let xe=0;xe<z.length;xe++){let Ve=z[xe];for(let et=0;et<Ve.length;et++){let je=Ve[et],rt=xe+1,Yt=je[0],lt=null,Et=null,Qt=null,Pr=null;je.length!==1&&(lt=Ae[je[1]],Et=je[2]+1,Qt=je[3]),je.length===5&&(Pr=oe[je[4]]),V({generatedLine:rt,generatedColumn:Yt,source:lt,originalLine:Et,originalColumn:Qt,name:Pr})}}}function zi(M,V){let{sources:z,resolvedSources:oe}=M,Ae=z.indexOf(V);return Ae===-1&&(Ae=oe.indexOf(V)),Ae}function Ji(M,V){let{sourcesContent:z}=M;if(z==null)return null;let oe=zi(M,V);return oe===-1?null:z[oe]}function mi(M,V){let{ignoreList:z}=M;if(z==null)return!1;let oe=zi(M,V);return oe===-1?!1:z.includes(oe)}function yi(M,V){let z=new H(Br(M,[]),V);return z._decoded=M.mappings,z}function Ti(M){return Br(M,he(M))}function Xi(M){return Br(M,pe(M))}function Br(M,V){return{version:M.version,file:M.file,names:M.names,sourceRoot:M.sourceRoot,sources:M.sources,sourcesContent:M.sourcesContent,mappings:V,ignoreList:M.ignoreList||M.x_google_ignoreList}}function gi(M,V,z,oe){return{source:M,line:V,column:z,name:oe}}function Ls(M,V){return{line:M,column:V}}function Yn(M,V,z,oe,Ae){let xe=ee(M,oe,V,z);return ne?xe=(Ae===St?O:F)(M,oe,xe):Ae===St&&xe++,xe===-1||xe===M.length?-1:xe}function fb(M,V,z,oe,Ae){let xe=Yn(M,V,z,oe,It);if(!ne&&Ae===St&&xe++,xe===-1||xe===M.length)return[];let Ve=ne?oe:M[xe][U];ne||(xe=F(M,Ve,xe));let et=O(M,Ve,xe),je=[];for(;xe<=et;xe++){let rt=M[xe];je.push(Ls(rt[We]+1,rt[ft]))}return je}function dh(M,V,z,oe,Ae,xe){var Ve;if(z--,z<0)throw new Error(ge);if(oe<0)throw new Error(ot);let{sources:et,resolvedSources:je}=M,rt=et.indexOf(V);if(rt===-1&&(rt=je.indexOf(V)),rt===-1)return xe?[]:Ls(null,null);let lt=((Ve=M)._bySources||(Ve._bySources=Q(he(M),M._bySourceMemos=et.map(D))))[rt][z];if(lt==null)return xe?[]:Ls(null,null);let Et=M._bySourceMemos[rt];if(xe)return fb(lt,Et,z,oe,Ae);let Qt=Yn(lt,Et,z,oe,Ae);if(Qt===-1)return Ls(null,null);let Pr=lt[Qt];return Ls(Pr[We]+1,Pr[ft])}})});var HT=k((Up,Kp)=>{(function(t,e,r){typeof Up=="object"&&typeof Kp<"u"?e(Kp,Fp(),$p()):typeof define=="function"&&define.amd?define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(r={exports:{}},t.sourcemapCodec,t.traceMapping),t.genMapping="default"in r.exports?r.exports.default:r.exports)})(Up,function(t,e,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(H,G)=>function(){return G||(0,H[a(H)[0]])((G={exports:{}}).exports,G),G.exports},u=(H,G)=>{for(var pe in G)s(H,pe,{get:G[pe],enumerable:!0})},d=(H,G,pe,he)=>{if(G&&typeof G=="object"||typeof G=="function")for(let _e of a(G))!l.call(H,_e)&&_e!==pe&&s(H,_e,{get:()=>G[_e],enumerable:!(he=n(G,_e))||he.enumerable});return H},b=(H,G,pe)=>(pe=H!=null?i(o(H)):{},d(G||!H||!H.__esModule?s(pe,"default",{value:H,enumerable:!0}):pe,H)),E=H=>d(s({},"__esModule",{value:!0}),H),v=c({"umd:@jridgewell/sourcemap-codec"(H,G){G.exports=e}}),A=c({"umd:@jridgewell/trace-mapping"(H,G){G.exports=r}}),I={};u(I,{GenMapping:()=>Oe,addMapping:()=>ne,addSegment:()=>Ct,allMappings:()=>j,fromMap:()=>ae,maybeAddMapping:()=>O,maybeAddSegment:()=>ie,setIgnore:()=>D,setSourceContent:()=>F,toDecodedMap:()=>ee,toEncodedMap:()=>Q}),t.exports=E(I);var _=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function $(H){return H}function X(H,G){return H._indexes[G]}function N(H,G){let pe=X(H,G);if(pe!==void 0)return pe;let{array:he,_indexes:_e}=H,Ne=he.push(G);return _e[G]=Ne-1}function U(H,G){let pe=X(H,G);if(pe===void 0)return;let{array:he,_indexes:_e}=H;for(let Ne=pe+1;Ne<he.length;Ne++){let ze=he[Ne];he[Ne-1]=ze,_e[ze]--}_e[G]=void 0,he.pop()}var W=b(v()),ke=b(A()),Ce=0,Ie=1,We=2,ft=3,h=4,ve=-1,Oe=class{constructor({file:H,sourceRoot:G}={}){this._names=new _,this._sources=new _,this._sourcesContent=[],this._mappings=[],this.file=H,this.sourceRoot=G,this._ignoreList=new _}};function tt(H){return H}function Ct(H,G,pe,he,_e,Ne,ze,kt){return B(!1,H,G,pe,he,_e,Ne,ze,kt)}function ne(H,G){return It(!1,H,G)}var ie=(H,G,pe,he,_e,Ne,ze,kt)=>B(!0,H,G,pe,he,_e,Ne,ze,kt),O=(H,G)=>It(!0,H,G);function F(H,G,pe){let{_sources:he,_sourcesContent:_e}=H,Ne=N(he,G);_e[Ne]=pe}function D(H,G,pe=!0){let{_sources:he,_sourcesContent:_e,_ignoreList:Ne}=H,ze=N(he,G);ze===_e.length&&(_e[ze]=null),pe?N(Ne,ze):U(Ne,ze)}function ee(H){let{_mappings:G,_sources:pe,_sourcesContent:he,_names:_e,_ignoreList:Ne}=H;return ue(G),{version:3,file:H.file||void 0,names:_e.array,sourceRoot:H.sourceRoot||void 0,sources:pe.array,sourcesContent:he,mappings:G,ignoreList:Ne.array}}function Q(H){let G=ee(H);return Object.assign({},G,{mappings:(0,W.encode)(G.mappings)})}function ae(H){let G=new ke.TraceMap(H),pe=new Oe({file:G.file,sourceRoot:G.sourceRoot});return ge(pe._names,G.names),ge(pe._sources,G.sources),pe._sourcesContent=G.sourcesContent||G.sources.map(()=>null),pe._mappings=(0,ke.decodedMappings)(G),G.ignoreList&&ge(pe._ignoreList,G.ignoreList),pe}function j(H){let G=[],{_mappings:pe,_sources:he,_names:_e}=H;for(let Ne=0;Ne<pe.length;Ne++){let ze=pe[Ne];for(let kt=0;kt<ze.length;kt++){let rr=ze[kt],zi={line:Ne+1,column:rr[Ce]},Ji,mi,yi;rr.length!==1&&(Ji=he.array[rr[Ie]],mi={line:rr[We]+1,column:rr[ft]},rr.length===5&&(yi=_e.array[rr[h]])),G.push({generated:zi,source:Ji,original:mi,name:yi})}}return G}function B(H,G,pe,he,_e,Ne,ze,kt,rr){let{_mappings:zi,_sources:Ji,_sourcesContent:mi,_names:yi}=G,Ti=Y(zi,pe),Xi=te(Ti,he);if(!_e)return H&&ot(Ti,Xi)?void 0:Z(Ti,Xi,[he]);let Br=N(Ji,_e),gi=kt?N(yi,kt):ve;if(Br===mi.length&&(mi[Br]=rr??null),!(H&&St(Ti,Xi,Br,Ne,ze,gi)))return Z(Ti,Xi,kt?[he,Br,Ne,ze,gi]:[he,Br,Ne,ze])}function R(H){}function Y(H,G){for(let pe=H.length;pe<=G;pe++)H[pe]=[];return H[G]}function te(H,G){let pe=H.length;for(let he=pe-1;he>=0;pe=he--){let _e=H[he];if(G>=_e[Ce])break}return pe}function Z(H,G,pe){for(let he=H.length;he>G;he--)H[he]=H[he-1];H[G]=pe}function ue(H){let{length:G}=H,pe=G;for(let he=pe-1;he>=0&&!(H[he].length>0);pe=he,he--);pe<G&&(H.length=pe)}function ge(H,G){for(let pe=0;pe<G.length;pe++)N(H,G[pe])}function ot(H,G){return G===0?!0:H[G-1].length===1}function St(H,G,pe,he,_e,Ne){if(G===0)return!1;let ze=H[G-1];return ze.length===1?!1:pe===ze[Ie]&&he===ze[We]&&_e===ze[ft]&&Ne===(ze.length===5?ze[h]:ve)}function It(H,G,pe){let{generated:he,source:_e,original:Ne,name:ze,content:kt}=pe;return _e?B(H,G,he.line-1,he.column,_e,Ne.line-1,Ne.column,ze,kt):B(H,G,he.line-1,he.column,null,null,null,null,null)}})});var GT=k(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var ci=HT(),Wp=$p(),Vp=class{constructor(e,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=void 0;let s=this._map=new ci.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=(i=e.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new Wp.TraceMap(e.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0,ci.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o])}}if(typeof r=="string"&&!e.inputSourceMap)(0,ci.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,ci.setSourceContent)(s,a.replace(/\\/g,"/"),r[a])}get(){return(0,ci.toEncodedMap)(this._map)}getDecoded(){return(0,ci.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,ci.allMappings)(this._map))}mark(e,r,i,s,n,a){var o;this._rawMappings=void 0;let l;if(r!=null)if(this._inputMap){if(l=(0,Wp.originalPositionFor)(this._inputMap,{line:r,column:i}),!l.name&&n){let c=(0,Wp.originalPositionFor)(this._inputMap,n);c.name&&(s=c.name)}}else l={source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0,ci.maybeAddMapping)(this._map,{name:s,generated:e,source:(o=l)==null?void 0:o.source,original:l})}};xo.default=Vp});var QT=k(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var Yp=class{constructor(e,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],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=e,this._indentChar=r;for(let i=0;i<64;i++)this._fastIndentations.push(r.repeat(i));this._allocQueue()}_allocQueue(){let e=this._queue;for(let r=0;r<16;r++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,r,i,s,n){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let o=this._queue[a];o.char=e,o.repeat=r,o.line=i,o.column=s,o.filename=n,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let e=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:e?.getDecoded(),get __mergedMap(){return this.map},get map(){let i=e?e.get():null;return r.map=i,i},set map(i){Object.defineProperty(r,"map",{value:i,writable:!0})},get rawMappings(){let i=e?.getRawMappings();return r.rawMappings=i,i},set rawMappings(i){Object.defineProperty(r,"rawMappings",{value:i,writable:!0})}};return r}append(e,r){this._flush(),this._append(e,this._sourcePosition,r)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(e===10)for(;this._queueCursor!==0;){let i=this._queue[this._queueCursor-1].char;if(i!==32&&i!==9)break;this._queueCursor--}let r=this._sourcePosition;this._pushQueue(e,1,r.line,r.column,r.filename)}queueIndentation(e){e!==0&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){let e=this._queueCursor,r=this._queue;for(let i=0;i<e;i++){let s=r[i];this._appendChar(s.char,s.repeat,s)}this._queueCursor=0}_appendChar(e,r,i){if(this._last=e,e===-1){let s=this._fastIndentations[r];s!==void 0?this._str+=s:this._str+=r>1?this._indentChar.repeat(r):this._indentChar}else this._str+=r>1?String.fromCharCode(e).repeat(r):String.fromCharCode(e);e!==10?(this._mark(i.line,i.column,i.identifierName,i.identifierNamePos,i.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(i.identifierName=void 0,i.identifierNamePos=void 0)}_append(e,r,i){let s=e.length,n=this._position;if(this._last=e.charCodeAt(s-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!i&&!this._map){n.column+=s;return}let{column:a,identifierName:o,identifierNamePos:l,filename:c}=r,u=r.line;(o!=null||l!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let d=e.indexOf(`
23
23
  `),b=0;for(d!==0&&this._mark(u,a,o,l,c);d!==-1;)n.line++,n.column=0,b=d+1,b<s&&u!==void 0&&this._mark(++u,0,null,null,c),d=e.indexOf(`
24
- `,b);n.column+=s-b}_mark(e,r,i,s,n){var a;(a=this._map)==null||a.mark(this._position,e,r,i,s,n)}removeTrailingNewline(){let e=this._queueCursor;e!==0&&this._queue[e-1].char===10&&this._queueCursor--}removeLastSemicolon(){let e=this._queueCursor;e!==0&&this._queue[e-1].char===59&&this._queueCursor--}getLastChar(){let e=this._queueCursor;return e!==0?this._queue[e-1].char:this._last}getNewlineCount(){let e=this._queueCursor,r=0;if(e===0)return this._last===10?1:0;for(let i=e-1;i>=0&&this._queue[i].char===10;i--)r++;return r===e&&this._last===10?r+1:r}endsWithCharAndNewline(){let e=this._queue,r=this._queueCursor;if(r!==0)return e[r-1].char!==10?void 0:r>1?e[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(e,r){if(!this._map){r();return}this.source("start",e);let i=e.identifierName,s=this._sourcePosition;i&&(this._canMarkIdName=!1,s.identifierName=i),r(),i&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",e)}source(e,r){this._map&&this._normalizePosition(e,r,0)}sourceWithOffset(e,r,i){this._map&&this._normalizePosition(e,r,i)}_normalizePosition(e,r,i){let s=r[e],n=this._sourcePosition;s&&(n.line=s.line,n.column=Math.max(s.column+i,0),n.filename=r.filename)}getCurrentColumn(){let e=this._queue,r=this._queueCursor,i=-1,s=0;for(let n=0;n<r;n++){let a=e[n];a.char===10&&(i=s),s+=a.repeat}return i===-1?this._position.column+s:s-1-i}getCurrentLine(){let e=0,r=this._queue;for(let i=0;i<this._queueCursor;i++)r[i].char===10&&e++;return this._position.line+e}};bo.default=Yp});var i0=k(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.nodes=void 0;var S5=Me(),{FLIPPED_ALIAS_KEYS:E5,isArrayExpression:P5,isAssignmentExpression:e0,isBinary:t0,isBlockStatement:v5,isCallExpression:r0,isFunction:On,isIdentifier:So,isLiteral:A5,isMemberExpression:zp,isObjectExpression:w5,isOptionalCallExpression:C5,isOptionalMemberExpression:I5,isStringLiteral:k5}=S5;function Es(t,e){return t&&(zp(t)||I5(t)?(Es(t.object,e),t.computed&&Es(t.property,e)):t0(t)||e0(t)?(Es(t.left,e),Es(t.right,e)):r0(t)||C5(t)?(e.hasCall=!0,Es(t.callee,e)):On(t)?e.hasFunction=!0:So(t)&&(e.hasHelper=e.hasHelper||t.callee&&Wr(t.callee))),e}function ZT(t){return Es(t,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Wr(t){return t?zp(t)?Wr(t.object)||Wr(t.property):So(t)?t.name==="require"||t.name.charCodeAt(0)===95:r0(t)?Wr(t.callee):t0(t)||e0(t)?So(t.left)&&Wr(t.left)||Wr(t.right):!1:!1}function O5(t){return A5(t)||w5(t)||P5(t)||So(t)||zp(t)}var qi=Eo.nodes={AssignmentExpression(t){let e=ZT(t.right);if(e.hasCall&&e.hasHelper||e.hasFunction)return e.hasFunction?3:2},SwitchCase(t,e){return(t.consequent.length||e.cases[0]===t?1:0)|(!t.consequent.length&&e.cases[e.cases.length-1]===t?2:0)},LogicalExpression(t){if(On(t.left)||On(t.right))return 2},Literal(t){if(k5(t)&&t.value==="use strict")return 2},CallExpression(t){if(On(t.callee)||Wr(t))return 3},OptionalCallExpression(t){if(On(t.callee))return 3},VariableDeclaration(t){for(let e=0;e<t.declarations.length;e++){let r=t.declarations[e],i=Wr(r.id)&&!O5(r.init);if(!i&&r.init){let s=ZT(r.init);i=Wr(r.init)&&s.hasCall||s.hasFunction}if(i)return 3}},IfStatement(t){if(v5(t.consequent))return 3}};qi.ObjectProperty=qi.ObjectTypeProperty=qi.ObjectMethod=function(t,e){if(e.properties[0]===t)return 1};qi.ObjectTypeCallProperty=function(t,e){var r;if(e.callProperties[0]===t&&!((r=e.properties)!=null&&r.length))return 1};qi.ObjectTypeIndexer=function(t,e){var r,i;if(e.indexers[0]===t&&!((r=e.properties)!=null&&r.length)&&!((i=e.callProperties)!=null&&i.length))return 1};qi.ObjectTypeInternalSlot=function(t,e){var r,i,s;if(e.internalSlots[0]===t&&!((r=e.properties)!=null&&r.length)&&!((i=e.callProperties)!=null&&i.length)&&!((s=e.indexers)!=null&&s.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([t,e]){[t].concat(E5[t]||[]).forEach(function(r){let i=e?3:0;qi[r]=()=>i})})});var p0=k(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.AssignmentExpression=l9;qe.Binary=l0;qe.BinaryExpression=r9;qe.ClassExpression=n9;qe.ArrowFunctionExpression=qe.ConditionalExpression=u0;qe.DoExpression=V5;qe.FunctionExpression=a9;qe.FunctionTypeAnnotation=U5;qe.Identifier=u9;qe.LogicalExpression=c9;qe.NullableTypeAnnotation=$5;qe.ObjectExpression=W5;qe.OptionalIndexedAccessType=z5;qe.OptionalCallExpression=qe.OptionalMemberExpression=o9;qe.SequenceExpression=i9;qe.TSSatisfiesExpression=qe.TSAsExpression=J5;qe.TSConditionalType=X5;qe.TSConstructorType=qe.TSFunctionType=t9;qe.TSInferType=Q5;qe.TSInstantiationExpression=e9;qe.TSIntersectionType=G5;qe.UnaryLike=qe.TSTypeAssertion=c0;qe.TSTypeOperator=Z5;qe.TSUnionType=H5;qe.IntersectionTypeAnnotation=qe.UnionTypeAnnotation=Y5;qe.UpdateExpression=K5;qe.AwaitExpression=qe.YieldExpression=s9;var _5=Me(),tr=$i(),{isArrayTypeAnnotation:N5,isBinaryExpression:D5,isCallExpression:L5,isForOfStatement:M5,isIndexedAccessType:F5,isMemberExpression:a0,isObjectPattern:B5,isOptionalMemberExpression:j5,isYieldExpression:R5,isStatement:q5}=_5,s0=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function n0(t,e){if(e==="BinaryExpression"||e==="LogicalExpression")return s0.get(t.operator);if(e==="TSAsExpression"||e==="TSSatisfiesExpression")return s0.get("in")}function Jp(t){return t==="TSAsExpression"||t==="TSSatisfiesExpression"||t==="TSTypeAssertion"}var Po=(t,e)=>{let r=e.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&e.superClass===t},vo=(t,e)=>{let r=e.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&e.object===t||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&e.callee===t||r==="TaggedTemplateExpression"&&e.tag===t||r==="TSNonNullExpression"};function $5(t,e){return N5(e)}function U5(t,e,r){let i=e.type;return i==="UnionTypeAnnotation"||i==="IntersectionTypeAnnotation"||i==="ArrayTypeAnnotation"||!!(r&tr.TokenContext.arrowFlowReturnType)}function K5(t,e){return vo(t,e)||Po(t,e)}function o0(t){return!!(t&(tr.TokenContext.expressionStatement|tr.TokenContext.arrowBody))}function W5(t,e,r){return o0(r)}function V5(t,e,r){return!t.async&&!!(r&tr.TokenContext.expressionStatement)}function l0(t,e){let r=e.type;if(t.type==="BinaryExpression"&&t.operator==="**"&&r==="BinaryExpression"&&e.operator==="**")return e.left===t;if(Po(t,e)||vo(t,e)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression")return!0;let i=n0(e,r);if(i!=null){let s=n0(t,t.type);if(i===s&&r==="BinaryExpression"&&e.right===t||i>s)return!0}}function Y5(t,e){let r=e.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function z5(t,e){return F5(e)&&e.objectType===t}function J5(t,e){return(e.type==="AssignmentExpression"||e.type==="AssignmentPattern")&&e.left===t||e.type==="BinaryExpression"&&(e.operator==="|"||e.operator==="&")&&t===e.left?!0:l0(t,e)}function X5(t,e){let r=e.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"||r==="TSTypeOperator"||r==="TSTypeParameter"||(r==="TSIntersectionType"||r==="TSUnionType")&&e.types[0]===t||r==="TSConditionalType"&&(e.checkType===t||e.extendsType===t)}function H5(t,e){let r=e.type;return r==="TSIntersectionType"||r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"}function G5(t,e){let r=e.type;return r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"}function Q5(t,e){let r=e.type;return!!(r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"||t.typeParameter.constraint&&(r==="TSIntersectionType"||r==="TSUnionType")&&e.types[0]===t)}function Z5(t,e){let r=e.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"}function e9(t,e){let r=e.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!e.typeParameters}function t9(t,e){let r=e.type;return r==="TSIntersectionType"||r==="TSUnionType"||r==="TSTypeOperator"||r==="TSOptionalType"||r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSConditionalType"&&(e.checkType===t||e.extendsType===t)}function r9(t,e,r){return t.operator==="in"&&!!(r&tr.TokenContext.forInOrInitHeadAccumulate)}function i9(t,e){let r=e.type;return r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&e.property===t||r==="OptionalMemberExpression"&&e.property===t||r==="TemplateLiteral"?!1:r==="ClassDeclaration"?!0:r==="ForOfStatement"?e.right===t:r==="ExportDefaultDeclaration"?!0:!q5(e)}function s9(t,e){let r=e.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||vo(t,e)||r==="AwaitExpression"&&R5(t)||r==="ConditionalExpression"&&t===e.test||Po(t,e)||Jp(r)}function n9(t,e,r){return!!(r&(tr.TokenContext.expressionStatement|tr.TokenContext.exportDefault))}function c0(t,e){return vo(t,e)||D5(e)&&e.operator==="**"&&e.left===t||Po(t,e)}function a9(t,e,r){return!!(r&(tr.TokenContext.expressionStatement|tr.TokenContext.exportDefault))}function u0(t,e){let r=e.type;return r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&e.test===t||r==="AwaitExpression"||Jp(r)?!0:c0(t,e)}function o9(t,e){return L5(e)&&e.callee===t||a0(e)&&e.object===t}function l9(t,e,r){return o0(r)&&B5(t.left)?!0:u0(t,e)}function c9(t,e){let r=e.type;if(Jp(r))return!0;if(r!=="LogicalExpression")return!1;switch(t.operator){case"||":return e.operator==="??"||e.operator==="&&";case"&&":return e.operator==="??";case"??":return e.operator!=="??"}}function u9(t,e,r,i){var s;let n=e.type;if((s=t.extra)!=null&&s.parenthesized&&n==="AssignmentExpression"&&e.left===t){let a=e.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&e.right.id==null)return!0}return i&&i(t)!==t.name?!1:t.name==="let"?(a0(e,{object:t,computed:!0})||j5(e,{object:t,computed:!0,optional:!1}))&&r&(tr.TokenContext.expressionStatement|tr.TokenContext.forInitHead|tr.TokenContext.forInHead)?!0:!!(r&tr.TokenContext.forOfHead):t.name==="async"&&M5(e,{left:t,await:!1})}});var $i=k(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.TokenContext=void 0;Vr.isLastChild=w9;Vr.needsParens=A9;Vr.needsWhitespace=Hp;Vr.needsWhitespaceAfter=v9;Vr.needsWhitespaceBefore=P9;var p9=i0(),f9=p0(),h9=Me(),{FLIPPED_ALIAS_KEYS:d9,VISITOR_KEYS:m9,isCallExpression:f0,isDecorator:y9,isExpressionStatement:T9,isMemberExpression:g9,isNewExpression:x9,isParenthesizedExpression:b9}=h9,xae=Vr.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};function h0(t){let e=new Map;function r(i,s){let n=e.get(i);e.set(i,n?function(a,o,l,c){var u;return(u=n(a,o,l,c))!=null?u:s(a,o,l,c)}:s)}for(let i of Object.keys(t)){let s=d9[i];if(s)for(let n of s)r(n,t[i]);else r(i,t[i])}return e}var S9=h0(f9),E9=h0(p9.nodes);function d0(t){return f0(t)?!0:g9(t)&&d0(t.object)}function Hp(t,e,r){var i;if(!t)return!1;T9(t)&&(t=t.expression);let s=(i=E9.get(t.type))==null?void 0:i(t,e);return typeof s=="number"?(s&r)!==0:!1}function P9(t,e){return Hp(t,e,1)}function v9(t,e){return Hp(t,e,2)}function A9(t,e,r,i){var s;return e?x9(e)&&e.callee===t&&d0(t)?!0:y9(e)?!Xp(t)&&!(f0(t)&&Xp(t.callee))&&!b9(t):(s=S9.get(t.type))==null?void 0:s(t,e,r,i):!1}function Xp(t){switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&t.property.type==="Identifier"&&Xp(t.object);default:return!1}}function w9(t,e){let r=m9[t.type];for(let i=r.length-1;i>=0;i--){let s=t[r[i]];if(s===e)return!0;if(Array.isArray(s)){let n=s.length-1;for(;n>=0&&s[n]===null;)n--;return n>=0&&s[n]===e}else if(s)return!1}return!1}});var m0=k(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TokenMap=void 0;var C9=Me(),{traverseFast:I9,VISITOR_KEYS:k9}=C9,Gp=class{constructor(e,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,I9(e,s=>{let n=this._getTokensIndexesOfNode(s);n.length>0&&this._nodesToTokenIndexes.set(s,n)}),this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,r){let i=this._nodesToTokenIndexes.get(e);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(e,r){let i=this._nodesToTokenIndexes.get(e);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(e,r,i=0){let s=this._nodesToTokenIndexes.get(e);if(s){let n=0,a=i;if(a>1){let o=this._nodesOccurrencesCountCache.get(e);o&&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(e,{test:r,count:a,i:n}),o;i--}}}return null}matchesOriginal(e,r){return e.end-e.start!==r.length?!1:e.value!=null?e.value===r:this._source.startsWith(r,e.start)}startMatches(e,r){let i=this._nodesToTokenIndexes.get(e);if(!i)return!1;let s=this._tokens[i[0]];return s.start!==e.start?!1:this.matchesOriginal(s,r)}endMatches(e,r){let i=this._nodesToTokenIndexes.get(e);if(!i)return!1;let s=this._tokens[i[i.length-1]];return s.end!==e.end?!1:this.matchesOriginal(s,r)}_getTokensIndexesOfNode(e){if(e.start==null||e.end==null)return[];let{first:r,last:i}=this._findTokensOfNode(e,0,this._tokens.length-1),s=r,n=O9(e);(e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration")&&e.declaration&&e.declaration.type==="ClassDeclaration"&&n.next();let a=[];for(let o of n){if(o==null||o.start==null||o.end==null)continue;let l=this._findTokensOfNode(o,s,i),c=l.first;for(let u=s;u<c;u++)a.push(u);s=l.last+1}for(let o=s;o<=i;o++)a.push(o);return a}_findTokensOfNode(e,r,i){let s=this._tokensCache.get(e);if(s)return s;let n=this._findFirstTokenOfNode(e.start,r,i),a=this._findLastTokenOfNode(e.end,n,i);return this._tokensCache.set(e,{first:n,last:a}),{first:n,last:a}}_findFirstTokenOfNode(e,r,i){for(;r<=i;){let s=i+r>>1;if(e<this._tokens[s].start)i=s-1;else if(e>this._tokens[s].start)r=s+1;else return s}return r}_findLastTokenOfNode(e,r,i){for(;r<=i;){let s=i+r>>1;if(e<this._tokens[s].end)i=s-1;else if(e>this._tokens[s].end)r=s+1;else return s}return i}};Ao.TokenMap=Gp;function*O9(t){if(t.type==="TemplateLiteral"){yield t.quasis[0];for(let r=1;r<t.quasis.length;r++)yield t.expressions[r-1],yield t.quasis[r];return}let e=k9[t.type];for(let r of e){let i=t[r];i&&(Array.isArray(i)?yield*i:yield i)}}});var y0=k(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.TaggedTemplateExpression=_9;Ps.TemplateElement=N9;Ps.TemplateLiteral=L9;Ps._printTemplate=D9;function _9(t){this.print(t.tag),this.print(t.typeParameters),this.print(t.quasi)}function N9(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function D9(t,e){let r=t.quasis,i="`";for(let s=0;s<r.length-1;s++)if(i+=r[s].value.raw,this.token(i+"${",!0),this.print(e[s]),i="}",this.tokenMap){let n=this.tokenMap.findMatching(t,"}",s);n&&this._catchUpTo(n.loc.start)}i+=r[r.length-1].value.raw,this.token(i+"`",!0)}function L9(t){this._printTemplate(t,t.expressions)}});var g0=k(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.LogicalExpression=He.BinaryExpression=He.AssignmentExpression=a7;He.AssignmentPattern=n7;He.AwaitExpression=t7;He.BindExpression=o7;He.CallExpression=Z9;He.ConditionalExpression=W9;He.Decorator=H9;He.DoExpression=$9;He.EmptyStatement=i7;He.ExpressionStatement=s7;He.Import=e7;He.MemberExpression=l7;He.MetaProperty=c7;He.ModuleExpression=f7;He.NewExpression=V9;He.OptionalCallExpression=Q9;He.OptionalMemberExpression=G9;He.ParenthesizedExpression=U9;He.PrivateName=u7;He.SequenceExpression=Y9;He.Super=J9;He.ThisExpression=z9;He.UnaryExpression=q9;He.UpdateExpression=K9;He.V8IntrinsicIdentifier=p7;He.YieldExpression=r7;He._shouldPrintDecoratorsBeforeExport=X9;var M9=Me(),F9=$i(),{isCallExpression:B9,isLiteral:T0,isMemberExpression:Qp,isNewExpression:j9,isPattern:R9}=M9;function q9(t){let{operator:e}=t;e==="void"||e==="delete"||e==="typeof"||e==="throw"?(this.word(e),this.space()):this.token(e),this.print(t.argument)}function $9(t){t.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(t.body)}function U9(t){this.tokenChar(40);let e=this.enterDelimited();this.print(t.expression),e(),this.rightParens(t)}function K9(t){t.prefix?(this.token(t.operator),this.print(t.argument)):(this.print(t.argument,!0),this.token(t.operator))}function W9(t){this.print(t.test),this.space(),this.tokenChar(63),this.space(),this.print(t.consequent),this.space(),this.tokenChar(58),this.space(),this.print(t.alternate)}function V9(t,e){if(this.word("new"),this.space(),this.print(t.callee),this.format.minified&&t.arguments.length===0&&!t.optional&&!B9(e,{callee:t})&&!Qp(e)&&!j9(e)||(this.print(t.typeArguments),this.print(t.typeParameters),t.optional&&this.token("?."),t.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(t,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(t.arguments,this.shouldPrintTrailingComma(")")),r(),this.rightParens(t)}function Y9(t){this.printList(t.expressions)}function z9(){this.word("this")}function J9(){this.word("super")}function X9(t){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof t.start=="number"&&t.start===t.declaration.start}function H9(t){this.tokenChar(64),this.print(t.expression),this.newline()}function G9(t){let{computed:e}=t,{optional:r,property:i}=t;if(this.print(t.object),!e&&Qp(i))throw new TypeError("Got a MemberExpression for MemberExpression property");T0(i)&&typeof i.value=="number"&&(e=!0),r&&this.token("?."),e?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i))}function Q9(t){this.print(t.callee),this.print(t.typeParameters),t.optional&&this.token("?."),this.print(t.typeArguments),this.tokenChar(40);let e=this.enterDelimited();this.printList(t.arguments),e(),this.rightParens(t)}function Z9(t){this.print(t.callee),this.print(t.typeArguments),this.print(t.typeParameters),this.tokenChar(40);let e=this.enterDelimited();this.printList(t.arguments,this.shouldPrintTrailingComma(")")),e(),this.rightParens(t)}function e7(){this.word("import")}function t7(t){this.word("await"),this.space(),this.print(t.argument)}function r7(t){t.delegate?(this.word("yield",!0),this.tokenChar(42),t.argument&&(this.space(),this.print(t.argument))):t.argument?(this.word("yield",!0),this.space(),this.print(t.argument)):this.word("yield")}function i7(){this.semicolon(!0)}function s7(t){this.tokenContext|=F9.TokenContext.expressionStatement,this.print(t.expression),this.semicolon()}function n7(t){this.print(t.left),(t.left.type==="Identifier"||R9(t.left))&&(t.left.optional&&this.tokenChar(63),this.print(t.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(t.right)}function a7(t){this.print(t.left),this.space(),t.operator==="in"||t.operator==="instanceof"?this.word(t.operator):(this.token(t.operator),this._endsWithDiv=t.operator==="/"),this.space(),this.print(t.right)}function o7(t){this.print(t.object),this.token("::"),this.print(t.callee)}function l7(t){if(this.print(t.object),!t.computed&&Qp(t.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let e=t.computed;if(T0(t.property)&&typeof t.property.value=="number"&&(e=!0),e){let r=this.enterDelimited();this.tokenChar(91),this.print(t.property),this.tokenChar(93),r()}else this.tokenChar(46),this.print(t.property)}function c7(t){this.print(t.meta),this.tokenChar(46),this.print(t.property)}function u7(t){this.tokenChar(35),this.print(t.id)}function p7(t){this.tokenChar(37),this.word(t.name)}function f7(t){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:e}=t;(e.body.length||e.directives.length)&&this.newline(),this.print(e),this.dedent(),this.rightBrace(t)}});var E0=k(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.BreakStatement=E7;pt.CatchClause=I7;pt.ContinueStatement=P7;pt.DebuggerStatement=_7;pt.DoWhileStatement=S7;pt.ForOfStatement=pt.ForInStatement=void 0;pt.ForStatement=x7;pt.IfStatement=g7;pt.LabeledStatement=w7;pt.ReturnStatement=v7;pt.SwitchCase=O7;pt.SwitchStatement=k7;pt.ThrowStatement=A7;pt.TryStatement=C7;pt.VariableDeclaration=N7;pt.VariableDeclarator=D7;pt.WhileStatement=b7;pt.WithStatement=T7;var h7=Me(),{isFor:x0,isForStatement:d7,isIfStatement:m7,isStatement:y7}=h7;function T7(t){this.word("with"),this.space(),this.tokenChar(40),this.print(t.object),this.tokenChar(41),this.printBlock(t)}function g7(t){this.word("if"),this.space(),this.tokenChar(40),this.print(t.test),this.tokenChar(41),this.space();let e=t.alternate&&m7(b0(t.consequent));e&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(t.consequent),e&&(this.dedent(),this.newline(),this.tokenChar(125)),t.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(t.alternate))}function b0(t){let{body:e}=t;return y7(e)===!1?t:b0(e)}function x7(t){this.word("for"),this.space(),this.tokenChar(40);{let e=this.enterForStatementInit();this.print(t.init),e()}this.tokenChar(59),t.test&&(this.space(),this.print(t.test)),this.token(";",!1,1),t.update&&(this.space(),this.print(t.update)),this.tokenChar(41),this.printBlock(t)}function b7(t){this.word("while"),this.space(),this.tokenChar(40),this.print(t.test),this.tokenChar(41),this.printBlock(t)}function S0(t){this.word("for"),this.space();let e=t.type==="ForOfStatement";e&&t.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let r=this.enterForXStatementInit(e);this.print(t.left),r?.()}this.space(),this.word(e?"of":"in"),this.space(),this.print(t.right),this.tokenChar(41),this.printBlock(t)}var vae=pt.ForInStatement=S0,Aae=pt.ForOfStatement=S0;function S7(t){this.word("do"),this.space(),this.print(t.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(t.test),this.tokenChar(41),this.semicolon()}function wo(t,e){e&&(t.space(),t.printTerminatorless(e)),t.semicolon()}function E7(t){this.word("break"),wo(this,t.label)}function P7(t){this.word("continue"),wo(this,t.label)}function v7(t){this.word("return"),wo(this,t.argument)}function A7(t){this.word("throw"),wo(this,t.argument)}function w7(t){this.print(t.label),this.tokenChar(58),this.space(),this.print(t.body)}function C7(t){this.word("try"),this.space(),this.print(t.block),this.space(),t.handlers?this.print(t.handlers[0]):this.print(t.handler),t.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(t.finalizer))}function I7(t){this.word("catch"),this.space(),t.param&&(this.tokenChar(40),this.print(t.param),this.print(t.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(t.body)}function k7(t){this.word("switch"),this.space(),this.tokenChar(40),this.print(t.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(t.cases,!0,void 0,function(r,i){if(!r&&t.cases[t.cases.length-1]===i)return-1}),this.rightBrace(t)}function O7(t){t.test?(this.word("case"),this.space(),this.print(t.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),t.consequent.length&&(this.newline(),this.printSequence(t.consequent,!0))}function _7(){this.word("debugger"),this.semicolon()}function N7(t,e){t.declare&&(this.word("declare"),this.space());let{kind:r}=t;r==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,r==="using"),this.space();let i=!1;if(!x0(e))for(let s of t.declarations)s.init&&(i=!0);if(this.printList(t.declarations,void 0,void 0,t.declarations.length>1,i?function(s){this.token(",",!1,s),this.newline()}:void 0),x0(e)){if(d7(e)){if(e.init===t)return}else if(e.left===t)return}this.semicolon()}function D7(t){this.print(t.id),t.definite&&this.tokenChar(33),this.print(t.id.typeAnnotation),t.init&&(this.space(),this.tokenChar(61),this.space(),this.print(t.init))}});var P0=k(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.ClassAccessorProperty=$7;cr.ClassBody=j7;cr.ClassExpression=cr.ClassDeclaration=B7;cr.ClassMethod=K7;cr.ClassPrivateMethod=W7;cr.ClassPrivateProperty=U7;cr.ClassProperty=q7;cr.StaticBlock=Y7;cr._classMethodHead=V7;var L7=Me(),{isExportDefaultDeclaration:M7,isExportNamedDeclaration:F7}=L7;function B7(t,e){(!(M7(e)||F7(e))||!this._shouldPrintDecoratorsBeforeExport(e))&&this.printJoin(t.decorators),t.declare&&(this.word("declare"),this.space()),t.abstract&&(this.word("abstract"),this.space()),this.word("class"),t.id&&(this.space(),this.print(t.id)),this.print(t.typeParameters),t.superClass&&(this.space(),this.word("extends"),this.space(),this.print(t.superClass),this.print(t.superTypeParameters)),t.implements&&(this.space(),this.word("implements"),this.space(),this.printList(t.implements)),this.space(),this.print(t.body)}function j7(t){if(this.tokenChar(123),t.body.length===0)this.tokenChar(125);else{this.newline();let e=R7(this,t);e?.(-1);let r=this.enterDelimited();this.printJoin(t.body,!0,!0,e,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(t)}}function R7(t,e){if(!t.tokenMap||e.start==null||e.end==null)return null;let r=t.tokenMap.getIndexes(e);if(!r)return null;let i=1,s=0,n=0,a=()=>{for(;n<e.body.length&&e.body[n].start==null;)n++};return a(),o=>{n<=o&&(n=o+1,a());let l=n===e.body.length?e.end:e.body[n].start,c;for(;i<r.length&&t.tokenMap.matchesOriginal(c=t._tokens[r[i]],";")&&c.start<l;)t.token(";",void 0,s++),i++}}function q7(t){if(this.printJoin(t.decorators),!t.static&&!this.format.preserveFormat){var e;let r=(e=t.key.loc)==null||(e=e.end)==null?void 0:e.line;r&&this.catchUp(r)}this.tsPrintClassMemberModifiers(t),t.computed?(this.tokenChar(91),this.print(t.key),this.tokenChar(93)):(this._variance(t),this.print(t.key)),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value)),this.semicolon()}function $7(t){var e;this.printJoin(t.decorators);let r=(e=t.key.loc)==null||(e=e.end)==null?void 0:e.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(t),this.word("accessor",!0),this.space(),t.computed?(this.tokenChar(91),this.print(t.key),this.tokenChar(93)):(this._variance(t),this.print(t.key)),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value)),this.semicolon()}function U7(t){this.printJoin(t.decorators),this.tsPrintClassMemberModifiers(t),this.print(t.key),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value)),this.semicolon()}function K7(t){this._classMethodHead(t),this.space(),this.print(t.body)}function W7(t){this._classMethodHead(t),this.space(),this.print(t.body)}function V7(t){if(this.printJoin(t.decorators),!this.format.preserveFormat){var e;let r=(e=t.key.loc)==null||(e=e.end)==null?void 0:e.line;r&&this.catchUp(r)}this.tsPrintClassMemberModifiers(t),this._methodHead(t)}function Y7(t){this.word("static"),this.space(),this.tokenChar(123),t.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(t.body,!0),this.rightBrace(t))}});var v0=k(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.ArrowFunctionExpression=iq;ur.FunctionDeclaration=ur.FunctionExpression=rq;ur._functionHead=tq;ur._methodHead=Z7;ur._param=Q7;ur._parameters=G7;ur._params=H7;ur._predicate=eq;ur._shouldPrintArrowParamsParens=sq;var z7=Me(),J7=$i(),{isIdentifier:X7}=z7;function H7(t,e,r){this.print(t.typeParameters);let i=nq.call(this,e,r);i&&this.sourceIdentifierName(i.name,i.pos),this.tokenChar(40),this._parameters(t.params,")");let s=t.type==="ArrowFunctionExpression";this.print(t.returnType,s),this._noLineTerminator=s}function G7(t,e){let r=this.enterDelimited(),i=this.shouldPrintTrailingComma(e),s=t.length;for(let n=0;n<s;n++)this._param(t[n]),(i||n<s-1)&&(this.token(",",null,n),this.space());this.token(e),r()}function Q7(t){this.printJoin(t.decorators),this.print(t),t.optional&&this.tokenChar(63),this.print(t.typeAnnotation)}function Z7(t){let e=t.kind,r=t.key;(e==="get"||e==="set")&&(this.word(e),this.space()),t.async&&(this.word("async",!0),this.space()),(e==="method"||e==="init")&&t.generator&&this.tokenChar(42),t.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),t.optional&&this.tokenChar(63),this._params(t,t.computed&&t.key.type!=="StringLiteral"?void 0:t.key,void 0)}function eq(t,e){t.predicate&&(t.returnType||this.tokenChar(58),this.space(),this.print(t.predicate,e))}function tq(t,e){t.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),t.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),t.id&&this.print(t.id),this._params(t,t.id,e),t.type!=="TSDeclareFunction"&&this._predicate(t)}function rq(t,e){this._functionHead(t,e),this.space(),this.print(t.body)}function iq(t,e){t.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(t)?this._params(t,void 0,e):this.print(t.params[0],!0),this._predicate(t,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=J7.TokenContext.arrowBody,this.print(t.body)}function sq(t){var e,r;if(t.params.length!==1||t.typeParameters||t.returnType||t.predicate)return!0;let i=t.params[0];if(!X7(i)||i.typeAnnotation||i.optional||(e=i.leadingComments)!=null&&e.length||(r=i.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(t.loc==null||this.tokenMap.findMatching(t,"(")!==null)return!0;let s=this.tokenMap.findMatching(t,"=>");return s?.loc==null?!0:s.loc.start.line!==t.loc.start.line}return!!this.format.retainLines}function nq(t,e){let r=t;if(!r&&e){let l=e.type;l==="VariableDeclarator"?r=e.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=e.left:l==="ObjectProperty"||l==="ClassProperty"?(!e.computed||e.key.type==="StringLiteral")&&(r=e.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=e.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 Zp=k(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.ExportAllDeclaration=xq;Kt.ExportDefaultDeclaration=Sq;Kt.ExportDefaultSpecifier=mq;Kt.ExportNamedDeclaration=bq;Kt.ExportNamespaceSpecifier=Tq;Kt.ExportSpecifier=yq;Kt.ImportAttribute=Pq;Kt.ImportDeclaration=Eq;Kt.ImportDefaultSpecifier=dq;Kt.ImportExpression=Aq;Kt.ImportNamespaceSpecifier=vq;Kt.ImportSpecifier=hq;Kt._printAttributes=gq;var aq=Me(),oq=$i(),{isClassDeclaration:lq,isExportDefaultSpecifier:cq,isExportNamespaceSpecifier:uq,isImportDefaultSpecifier:pq,isImportNamespaceSpecifier:fq,isStatement:w0}=aq;function hq(t){(t.importKind==="type"||t.importKind==="typeof")&&(this.word(t.importKind),this.space()),this.print(t.imported),t.local&&t.local.name!==t.imported.name&&(this.space(),this.word("as"),this.space(),this.print(t.local))}function dq(t){this.print(t.local)}function mq(t){this.print(t.exported)}function yq(t){t.exportKind==="type"&&(this.word("type"),this.space()),this.print(t.local),t.exported&&t.local.name!==t.exported.name&&(this.space(),this.word("as"),this.space(),this.print(t.exported))}function Tq(t){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(t.exported)}var A0=!1;function gq(t,e){var r;let{importAttributesKeyword:i}=this.format,{attributes:s,assertions:n}=t;s&&!i&&t.extra&&(t.extra.deprecatedAssertSyntax||t.extra.deprecatedWithLegacySyntax)&&!A0&&(A0=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=i==="assert"||!i&&n;if(this.word(a?"assert":"with"),this.space(),!a&&(i==="with-legacy"||!i&&(r=t.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(s||n);return}let o=e?1:0;this.token("{",null,o),this.space(),this.printList(s||n,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,o)}function xq(t){var e,r;this.word("export"),this.space(),t.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(e=t.attributes)!=null&&e.length||(r=t.assertions)!=null&&r.length?(this.print(t.source,!0),this.space(),this._printAttributes(t,!1)):this.print(t.source),this.semicolon()}function C0(t,e){lq(e.declaration)&&t._shouldPrintDecoratorsBeforeExport(e)&&t.printJoin(e.declaration.decorators)}function bq(t){if(C0(this,t),this.word("export"),this.space(),t.declaration){let i=t.declaration;this.print(i),w0(i)||this.semicolon()}else{t.exportKind==="type"&&(this.word("type"),this.space());let i=t.specifiers.slice(0),s=!1;for(;;){let a=i[0];if(cq(a)||uq(a))s=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}let n=!1;if((i.length||!i.length&&!s)&&(n=!0,this.tokenChar(123),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),t.source){var e,r;this.space(),this.word("from"),this.space(),(e=t.attributes)!=null&&e.length||(r=t.assertions)!=null&&r.length?(this.print(t.source,!0),this.space(),this._printAttributes(t,n)):this.print(t.source)}this.semicolon()}}function Sq(t){C0(this,t),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=oq.TokenContext.exportDefault;let e=t.declaration;this.print(e),w0(e)||this.semicolon()}function Eq(t){var e,r;this.word("import"),this.space();let i=t.importKind==="type"||t.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(t.importKind),this.space()):t.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):t.phase&&(this.noIndentInnerCommentsHere(),this.word(t.phase),this.space());let s=t.specifiers.slice(0),n=!!s.length;for(;n;){let o=s[0];if(pq(o)||fq(o))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!n&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(n||i)&&(this.space(),this.word("from"),this.space()),(e=t.attributes)!=null&&e.length||(r=t.assertions)!=null&&r.length?(this.print(t.source,!0),this.space(),this._printAttributes(t,a)):this.print(t.source),this.semicolon()}function Pq(t){this.print(t.key),this.tokenChar(58),this.space(),this.print(t.value)}function vq(t){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(t.local)}function Aq(t){this.word("import"),t.phase&&(this.tokenChar(46),this.word(t.phase)),this.tokenChar(40);let e=this.shouldPrintTrailingComma(")");this.print(t.source),t.options!=null&&(this.tokenChar(44),this.space(),this.print(t.options)),e&&this.tokenChar(44),this.rightParens(t)}});var _0=k((Oae,O0)=>{"use strict";var I0={},wq=I0.hasOwnProperty,k0=(t,e)=>{for(let r in t)wq.call(t,r)&&e(r,t[r])},Cq=(t,e)=>(e&&k0(e,(r,i)=>{t[r]=i}),t),Iq=(t,e)=>{let r=t.length,i=-1;for(;++i<r;)e(t[i])},Co=t=>"\\u"+("0000"+t).slice(-4),_n=(t,e)=>{let r=t.toString(16);return e?r:r.toUpperCase()},Nn=I0.toString,kq=Array.isArray,Oq=t=>typeof Buffer=="function"&&Buffer.isBuffer(t),_q=t=>Nn.call(t)=="[object Object]",Nq=t=>typeof t=="string"||Nn.call(t)=="[object String]",Dq=t=>typeof t=="number"||Nn.call(t)=="[object Number]",ef=t=>typeof t=="bigint",Lq=t=>typeof t=="function",Mq=t=>Nn.call(t)=="[object Map]",Fq=t=>Nn.call(t)=="[object Set]",Bq={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},jq=/[\\\b\f\n\r\t]/,Rq=/[0-9]/,qq=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,$q=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,Uq=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,ui=(t,e)=>{let r=()=>{c=l,++e.indentLevel,l=e.indent.repeat(e.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=e&&e.json;s&&(i.quotes="double",i.wrap=!0),e=Cq(i,e),e.quotes!="single"&&e.quotes!="double"&&e.quotes!="backtick"&&(e.quotes="single");let n=e.quotes=="double"?'"':e.quotes=="backtick"?"`":"'",a=e.compact,o=e.lowercaseHex,l=e.indent.repeat(e.indentLevel),c="",u=e.__inline1__,d=e.__inline2__,b=a?"":`
25
- `,E,v=!0,A=e.numbers=="binary",I=e.numbers=="octal",_=e.numbers=="decimal",$=e.numbers=="hexadecimal";if(s&&t&&Lq(t.toJSON)&&(t=t.toJSON()),!Nq(t)){if(Mq(t))return t.size==0?"new Map()":(a||(e.__inline1__=!0,e.__inline2__=!1),"new Map("+ui(Array.from(t),e)+")");if(Fq(t))return t.size==0?"new Set()":"new Set("+ui(Array.from(t),e)+")";if(Oq(t))return t.length==0?"Buffer.from([])":"Buffer.from("+ui(Array.from(t),e)+")";if(kq(t))return E=[],e.wrap=!0,u&&(e.__inline1__=!1,e.__inline2__=!0),d||r(),Iq(t,N=>{v=!1,d&&(e.__inline2__=!1),E.push((a||d?"":l)+ui(N,e))}),v?"[]":d?"["+E.join(", ")+"]":"["+b+E.join(","+b)+b+(a?"":c)+"]";if(Dq(t)||ef(t)){if(s)return JSON.stringify(Number(t));let N;if(_)N=String(t);else if($){let U=t.toString(16);o||(U=U.toUpperCase()),N="0x"+U}else A?N="0b"+t.toString(2):I&&(N="0o"+t.toString(8));return ef(t)?N+"n":N}else return ef(t)?s?JSON.stringify(Number(t)):t+"n":_q(t)?(E=[],e.wrap=!0,r(),k0(t,(N,U)=>{v=!1,E.push((a?"":l)+ui(N,e)+":"+(a?"":" ")+ui(U,e))}),v?"{}":"{"+b+E.join(","+b)+b+(a?"":c)+"}"):s?JSON.stringify(t)||"null":String(t)}let X=e.escapeEverything?$q:Uq;return E=t.replace(X,(N,U,W,ke,Ce,Ie)=>{if(U){if(e.minimal)return U;let ft=U.charCodeAt(0),f=U.charCodeAt(1);if(e.es6){let ve=(ft-55296)*1024+f-56320+65536;return"\\u{"+_n(ve,o)+"}"}return Co(_n(ft,o))+Co(_n(f,o))}if(W)return Co(_n(W.charCodeAt(0),o));if(N=="\0"&&!s&&!Rq.test(Ie.charAt(Ce+1)))return"\\0";if(ke)return ke==n||e.escapeEverything?"\\"+ke:ke;if(jq.test(N))return Bq[N];if(e.minimal&&!qq.test(N))return N;let We=_n(N.charCodeAt(0),o);return s||We.length>2?Co(We):"\\x"+("00"+We).slice(-2)}),n=="`"&&(E=E.replace(/\$\{/g,"\\${")),e.isScriptContext&&(E=E.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),e.wrap&&(E=n+E+n),E};ui.version="3.0.2";O0.exports=ui});var rf=k(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.ArgumentPlaceholder=zq;nt.ArrayPattern=nt.ArrayExpression=Qq;nt.BigIntLiteral=a$;nt.BooleanLiteral=r$;nt.Identifier=Yq;nt.NullLiteral=i$;nt.NumericLiteral=s$;nt.ObjectPattern=nt.ObjectExpression=Xq;nt.ObjectMethod=Hq;nt.ObjectProperty=Gq;nt.PipelineBareFunction=c$;nt.PipelinePrimaryTopicReference=u$;nt.PipelineTopicExpression=l$;nt.RecordExpression=Zq;nt.RegExpLiteral=t$;nt.SpreadElement=nt.RestElement=Jq;nt.StringLiteral=n$;nt.TopicReference=o$;nt.TupleExpression=e$;nt.VoidPattern=p$;nt._getRawIdentifier=Vq;var Kq=Me(),L0=_0(),{isAssignmentPattern:Wq,isIdentifier:tf}=Kq,N0=null,Io="";function Vq(t){if(t===N0)return Io;N0=t;let{name:e}=t,r=this.tokenMap.find(t,i=>i.value===e);return r?(Io=this._originalCode.slice(r.start,r.end),Io):Io=t.name}function Yq(t){var e;this.sourceIdentifierName(((e=t.loc)==null?void 0:e.identifierName)||t.name),this.word(this.tokenMap?this._getRawIdentifier(t):t.name)}function zq(){this.tokenChar(63)}function Jq(t){this.token("..."),this.print(t.argument)}function Xq(t){let e=t.properties;if(this.tokenChar(123),e.length){let r=this.enterDelimited();this.space(),this.printList(e,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),r()}this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}function Hq(t){this.printJoin(t.decorators),this._methodHead(t),this.space(),this.print(t.body)}function Gq(t){if(this.printJoin(t.decorators),t.computed)this.tokenChar(91),this.print(t.key),this.tokenChar(93);else{if(Wq(t.value)&&tf(t.key)&&t.key.name===t.value.left.name){this.print(t.value);return}if(this.print(t.key),t.shorthand&&tf(t.key)&&tf(t.value)&&t.key.name===t.value.name)return}this.tokenChar(58),this.space(),this.print(t.value)}function Qq(t){let e=t.elements,r=e.length;this.tokenChar(91);let i=this.enterDelimited();for(let s=0;s<e.length;s++){let n=e[s];n?(s>0&&this.space(),this.print(n),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,s)):this.token(",",!1,s)}i(),this.tokenChar(93)}function Zq(t){let e=t.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),e.length&&(this.space(),this.printList(e,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)}function e$(t){let e=t.elements,r=e.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<e.length;n++){let a=e[n];a&&(n>0&&this.space(),this.print(a),(n<r-1||this.shouldPrintTrailingComma(s))&&this.token(",",!1,n))}this.token(s)}function t$(t){this.word(`/${t.pattern}/${t.flags}`)}function r$(t){this.word(t.value?"true":"false")}function i$(){this.word("null")}function s$(t){let e=this.getPossibleRaw(t),r=this.format.jsescOption,i=t.value,s=i+"";r.numbers?this.number(L0(i,r),i):e==null?this.number(s,i):this.format.minified?this.number(e.length<s.length?e:s,i):this.number(e,i)}function n$(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.token(e);return}let r=L0(t.value,this.format.jsescOption);this.token(r)}function a$(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.word(e);return}this.word(t.value+"n")}var D0=new Set(["^^","@@","^","%","#"]);function o$(){let{topicToken:t}=this.format;if(D0.has(t))this.token(t);else{let e=JSON.stringify(t),r=Array.from(D0,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${e} received instead).`)}}function l$(t){this.print(t.expression)}function c$(t){this.print(t.callee)}function u$(){this.tokenChar(35)}function p$(){this.word("void")}});var F0=k(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.AnyTypeAnnotation=y$;fe.ArrayTypeAnnotation=T$;fe.BooleanLiteralTypeAnnotation=x$;fe.BooleanTypeAnnotation=g$;fe.DeclareClass=S$;fe.DeclareExportAllDeclaration=N$;fe.DeclareExportDeclaration=_$;fe.DeclareFunction=E$;fe.DeclareInterface=A$;fe.DeclareModule=w$;fe.DeclareModuleExports=C$;fe.DeclareOpaqueType=k$;fe.DeclareTypeAlias=I$;fe.DeclareVariable=O$;fe.DeclaredPredicate=v$;fe.EmptyTypeAnnotation=eU;fe.EnumBooleanBody=L$;fe.EnumBooleanMember=R$;fe.EnumDeclaration=D$;fe.EnumDefaultedMember=j$;fe.EnumNumberBody=M$;fe.EnumNumberMember=q$;fe.EnumStringBody=F$;fe.EnumStringMember=$$;fe.EnumSymbolBody=B$;fe.ExistsTypeAnnotation=K$;fe.FunctionTypeAnnotation=W$;fe.FunctionTypeParam=V$;fe.IndexedAccessType=AU;fe.InferredPredicate=P$;fe.InterfaceDeclaration=X$;fe.GenericTypeAnnotation=fe.ClassImplements=fe.InterfaceExtends=Y$;fe.InterfaceTypeAnnotation=G$;fe.IntersectionTypeAnnotation=Q$;fe.MixedTypeAnnotation=Z$;fe.NullLiteralTypeAnnotation=b$;fe.NullableTypeAnnotation=tU;Object.defineProperty(fe,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return M0.NumericLiteral}});fe.NumberTypeAnnotation=rU;fe.ObjectTypeAnnotation=fU;fe.ObjectTypeCallProperty=dU;fe.ObjectTypeIndexer=mU;fe.ObjectTypeInternalSlot=hU;fe.ObjectTypeProperty=yU;fe.ObjectTypeSpreadProperty=TU;fe.OpaqueType=pU;fe.OptionalIndexedAccessType=wU;fe.QualifiedTypeIdentifier=gU;Object.defineProperty(fe,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return M0.StringLiteral}});fe.StringTypeAnnotation=iU;fe.SymbolTypeAnnotation=xU;fe.ThisTypeAnnotation=sU;fe.TupleTypeAnnotation=nU;fe.TypeAlias=oU;fe.TypeAnnotation=lU;fe.TypeCastExpression=EU;fe.TypeParameter=uU;fe.TypeParameterDeclaration=fe.TypeParameterInstantiation=cU;fe.TypeofTypeAnnotation=aU;fe.UnionTypeAnnotation=SU;fe.Variance=PU;fe.VoidTypeAnnotation=vU;fe._interfaceish=z$;fe._variance=J$;var f$=Me(),h$=Zp(),d$=$i(),M0=rf(),{isDeclareExportDeclaration:ko,isStatement:m$}=f$;function y$(){this.word("any")}function T$(t){this.print(t.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function g$(){this.word("boolean")}function x$(t){this.word(t.value?"true":"false")}function b$(){this.word("null")}function S$(t,e){ko(e)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(t)}function E$(t,e){ko(e)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(t.id),this.print(t.id.typeAnnotation.typeAnnotation),t.predicate&&(this.space(),this.print(t.predicate)),this.semicolon()}function P$(){this.tokenChar(37),this.word("checks")}function v$(t){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(t.value),this.tokenChar(41)}function A$(t){this.word("declare"),this.space(),this.InterfaceDeclaration(t)}function w$(t){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(t.id),this.space(),this.print(t.body)}function C$(t){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(t.typeAnnotation)}function I$(t){this.word("declare"),this.space(),this.TypeAlias(t)}function k$(t,e){ko(e)||(this.word("declare"),this.space()),this.OpaqueType(t)}function O$(t,e){ko(e)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(t.id),this.print(t.id.typeAnnotation),this.semicolon()}function _$(t){this.word("declare"),this.space(),this.word("export"),this.space(),t.default&&(this.word("default"),this.space()),U$.call(this,t)}function N$(t){this.word("declare"),this.space(),h$.ExportAllDeclaration.call(this,t)}function D$(t){let{id:e,body:r}=t;this.word("enum"),this.space(),this.print(e),this.print(r)}function Oo(t,e,r){r&&(t.space(),t.word("of"),t.space(),t.word(e)),t.space()}function _o(t,e){let{members:r}=e;t.token("{"),t.indent(),t.newline();for(let i of r)t.print(i),t.newline();e.hasUnknownMembers&&(t.token("..."),t.newline()),t.dedent(),t.token("}")}function L$(t){let{explicitType:e}=t;Oo(this,"boolean",e),_o(this,t)}function M$(t){let{explicitType:e}=t;Oo(this,"number",e),_o(this,t)}function F$(t){let{explicitType:e}=t;Oo(this,"string",e),_o(this,t)}function B$(t){Oo(this,"symbol",!0),_o(this,t)}function j$(t){let{id:e}=t;this.print(e),this.tokenChar(44)}function sf(t,e){t.print(e.id),t.space(),t.token("="),t.space(),t.print(e.init),t.token(",")}function R$(t){sf(this,t)}function q$(t){sf(this,t)}function $$(t){sf(this,t)}function U$(t){if(t.declaration){let e=t.declaration;this.print(e),m$(e)||this.semicolon()}else this.tokenChar(123),t.specifiers.length&&(this.space(),this.printList(t.specifiers),this.space()),this.tokenChar(125),t.source&&(this.space(),this.word("from"),this.space(),this.print(t.source)),this.semicolon()}function K$(){this.tokenChar(42)}function W$(t,e){this.print(t.typeParameters),this.tokenChar(40),t.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(t.this.typeAnnotation),(t.params.length||t.rest)&&(this.tokenChar(44),this.space())),this.printList(t.params),t.rest&&(t.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(t.rest)),this.tokenChar(41);let r=e?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&e.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(t.returnType)}function V$(t){this.print(t.name),t.optional&&this.tokenChar(63),t.name&&(this.tokenChar(58),this.space()),this.print(t.typeAnnotation)}function Y$(t){this.print(t.id),this.print(t.typeParameters,!0)}function z$(t){var e;if(this.print(t.id),this.print(t.typeParameters),(e=t.extends)!=null&&e.length&&(this.space(),this.word("extends"),this.space(),this.printList(t.extends)),t.type==="DeclareClass"){var r,i;(r=t.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(t.mixins)),(i=t.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(t.implements))}this.space(),this.print(t.body)}function J$(t){var e;let r=(e=t.variance)==null?void 0:e.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function X$(t){this.word("interface"),this.space(),this._interfaceish(t)}function H$(t){this.space(),this.token("&",!1,t),this.space()}function G$(t){var e;this.word("interface"),(e=t.extends)!=null&&e.length&&(this.space(),this.word("extends"),this.space(),this.printList(t.extends)),this.space(),this.print(t.body)}function Q$(t){this.printJoin(t.types,void 0,void 0,H$)}function Z$(){this.word("mixed")}function eU(){this.word("empty")}function tU(t){this.tokenChar(63),this.print(t.typeAnnotation)}function rU(){this.word("number")}function iU(){this.word("string")}function sU(){this.word("this")}function nU(t){this.tokenChar(91),this.printList(t.types),this.tokenChar(93)}function aU(t){this.word("typeof"),this.space(),this.print(t.argument)}function oU(t){this.word("type"),this.space(),this.print(t.id),this.print(t.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(t.right),this.semicolon()}function lU(t,e){this.tokenChar(58),this.space(),e.type==="ArrowFunctionExpression"?this.tokenContext|=d$.TokenContext.arrowFlowReturnType:t.optional&&this.tokenChar(63),this.print(t.typeAnnotation)}function cU(t){this.tokenChar(60),this.printList(t.params),this.tokenChar(62)}function uU(t){this._variance(t),this.word(t.name),t.bound&&this.print(t.bound),t.default&&(this.space(),this.tokenChar(61),this.space(),this.print(t.default))}function pU(t){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(t.id),this.print(t.typeParameters),t.supertype&&(this.tokenChar(58),this.space(),this.print(t.supertype)),t.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(t.impltype)),this.semicolon()}function fU(t){t.exact?this.token("{|"):this.tokenChar(123);let e=[...t.properties,...t.callProperties||[],...t.indexers||[],...t.internalSlots||[]];e.length&&(this.newline(),this.space(),this.printJoin(e,!0,!0,void 0,void 0,function(i){if(i&&!e[0])return 1},()=>{(e.length!==1||t.inexact)&&(this.tokenChar(44),this.space())}),this.space()),t.inexact&&(this.indent(),this.token("..."),e.length&&this.newline(),this.dedent()),t.exact?this.token("|}"):this.tokenChar(125)}function hU(t){t.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(t.id),this.tokenChar(93),this.tokenChar(93),t.optional&&this.tokenChar(63),t.method||(this.tokenChar(58),this.space()),this.print(t.value)}function dU(t){t.static&&(this.word("static"),this.space()),this.print(t.value)}function mU(t){t.static&&(this.word("static"),this.space()),this._variance(t),this.tokenChar(91),t.id&&(this.print(t.id),this.tokenChar(58),this.space()),this.print(t.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(t.value)}function yU(t){t.proto&&(this.word("proto"),this.space()),t.static&&(this.word("static"),this.space()),(t.kind==="get"||t.kind==="set")&&(this.word(t.kind),this.space()),this._variance(t),this.print(t.key),t.optional&&this.tokenChar(63),t.method||(this.tokenChar(58),this.space()),this.print(t.value)}function TU(t){this.token("..."),this.print(t.argument)}function gU(t){this.print(t.qualification),this.tokenChar(46),this.print(t.id)}function xU(){this.word("symbol")}function bU(t){this.space(),this.token("|",!1,t),this.space()}function SU(t){this.printJoin(t.types,void 0,void 0,bU)}function EU(t){this.tokenChar(40),this.print(t.expression),this.print(t.typeAnnotation),this.tokenChar(41)}function PU(t){t.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function vU(){this.word("void")}function AU(t){this.print(t.objectType,!0),this.tokenChar(91),this.print(t.indexType),this.tokenChar(93)}function wU(t){this.print(t.objectType),t.optional&&this.token("?."),this.tokenChar(91),this.print(t.indexType),this.tokenChar(93)}});var B0=k(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.BlockStatement=kU;Yr.Directive=OU;Yr.DirectiveLiteral=DU;Yr.File=CU;Yr.InterpreterDirective=LU;Yr.Placeholder=MU;Yr.Program=IU;function CU(t){t.program&&this.print(t.program.interpreter),this.print(t.program)}function IU(t){var e;this.noIndentInnerCommentsHere(),this.printInnerComments();let r=(e=t.directives)==null?void 0:e.length;if(r){var i;let s=t.body.length?2:1;this.printSequence(t.directives,void 0,s),(i=t.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(t.body)}function kU(t){var e;this.tokenChar(123);let r=this.enterDelimited(),i=(e=t.directives)==null?void 0:e.length;if(i){var s;let n=t.body.length?2:1;this.printSequence(t.directives,!0,n),(s=t.directives[i-1].trailingComments)!=null&&s.length||this.newline(n)}this.printSequence(t.body,!0),r(),this.rightBrace(t)}function OU(t){this.print(t.value),this.semicolon()}var _U=/(?:^|[^\\])(?:\\\\)*'/,NU=/(?:^|[^\\])(?:\\\\)*"/;function DU(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.token(e);return}let{value:r}=t;if(!NU.test(r))this.token(`"${r}"`);else if(!_U.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 LU(t){this.token(`#!${t.value}`),this.newline(1,!0)}function MU(t){this.token("%%"),this.print(t.name),this.token("%%"),t.expectedNode==="Statement"&&this.semicolon()}});var j0=k(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.JSXAttribute=FU;_t.JSXClosingElement=zU;_t.JSXClosingFragment=GU;_t.JSXElement=WU;_t.JSXEmptyExpression=JU;_t.JSXExpressionContainer=$U;_t.JSXFragment=XU;_t.JSXIdentifier=BU;_t.JSXMemberExpression=RU;_t.JSXNamespacedName=jU;_t.JSXOpeningElement=YU;_t.JSXOpeningFragment=HU;_t.JSXSpreadAttribute=qU;_t.JSXSpreadChild=UU;_t.JSXText=KU;function FU(t){this.print(t.name),t.value&&(this.tokenChar(61),this.print(t.value))}function BU(t){this.word(t.name)}function jU(t){this.print(t.namespace),this.tokenChar(58),this.print(t.name)}function RU(t){this.print(t.object),this.tokenChar(46),this.print(t.property)}function qU(t){this.tokenChar(123),this.token("..."),this.print(t.argument),this.rightBrace(t)}function $U(t){this.tokenChar(123),this.print(t.expression),this.rightBrace(t)}function UU(t){this.tokenChar(123),this.token("..."),this.print(t.expression),this.rightBrace(t)}function KU(t){let e=this.getPossibleRaw(t);e!==void 0?this.token(e,!0):this.token(t.value,!0)}function WU(t){let e=t.openingElement;if(this.print(e),!e.selfClosing){this.indent();for(let r of t.children)this.print(r);this.dedent(),this.print(t.closingElement)}}function VU(){this.space()}function YU(t){this.tokenChar(60),this.print(t.name),t.typeArguments&&this.print(t.typeArguments),this.print(t.typeParameters),t.attributes.length>0&&(this.space(),this.printJoin(t.attributes,void 0,void 0,VU)),t.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function zU(t){this.tokenChar(60),this.tokenChar(47),this.print(t.name),this.tokenChar(62)}function JU(){this.printInnerComments()}function XU(t){this.print(t.openingFragment),this.indent();for(let e of t.children)this.print(e);this.dedent(),this.print(t.closingFragment)}function HU(){this.tokenChar(60),this.tokenChar(62)}function GU(){this.token("</"),this.tokenChar(62)}});var K0=k(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.TSAnyKeyword=pK;ce.TSArrayType=NK;ce.TSSatisfiesExpression=ce.TSAsExpression=GK;ce.TSBigIntKeyword=fK;ce.TSBooleanKeyword=yK;ce.TSCallSignatureDeclaration=nK;ce.TSInterfaceHeritage=ce.TSClassImplements=zK;ce.TSConditionalType=RK;ce.TSConstructSignatureDeclaration=aK;ce.TSConstructorType=wK;ce.TSDeclareFunction=rK;ce.TSDeclareMethod=iK;ce.TSEnumBody=U0;ce.TSEnumDeclaration=eW;ce.TSEnumMember=tW;ce.TSExportAssignment=lW;ce.TSExternalModuleReference=aW;ce.TSFunctionType=AK;ce.TSImportEqualsDeclaration=nW;ce.TSImportType=sW;ce.TSIndexSignature=uK;ce.TSIndexedAccessType=KK;ce.TSInferType=qK;ce.TSInstantiationExpression=ZK;ce.TSInterfaceBody=XK;ce.TSInterfaceDeclaration=JK;ce.TSIntersectionType=jK;ce.TSIntrinsicKeyword=PK;ce.TSLiteralType=YK;ce.TSMappedType=WK;ce.TSMethodSignature=cK;ce.TSModuleBlock=iW;ce.TSModuleDeclaration=rW;ce.TSNamedTupleMember=FK;ce.TSNamespaceExportDeclaration=cW;ce.TSNeverKeyword=EK;ce.TSNonNullExpression=oW;ce.TSNullKeyword=SK;ce.TSNumberKeyword=dK;ce.TSObjectKeyword=mK;ce.TSOptionalType=LK;ce.TSParameterProperty=tK;ce.TSParenthesizedType=$K;ce.TSPropertySignature=oK;ce.TSQualifiedName=sK;ce.TSRestType=MK;ce.TSStringKeyword=TK;ce.TSSymbolKeyword=gK;ce.TSTemplateLiteralType=VK;ce.TSThisType=vK;ce.TSTupleType=DK;ce.TSTypeAliasDeclaration=HK;ce.TSTypeAnnotation=QU;ce.TSTypeAssertion=QK;ce.TSTypeLiteral=_K;ce.TSTypeOperator=UK;ce.TSTypeParameter=eK;ce.TSTypeParameterDeclaration=ce.TSTypeParameterInstantiation=ZU;ce.TSTypePredicate=kK;ce.TSTypeQuery=OK;ce.TSTypeReference=IK;ce.TSUndefinedKeyword=bK;ce.TSUnionType=BK;ce.TSUnknownKeyword=hK;ce.TSVoidKeyword=xK;ce.tsPrintClassMemberModifiers=pW;ce.tsPrintFunctionOrConstructorType=CK;ce.tsPrintPropertyOrMethodName=lK;ce.tsPrintSignatureDeclarationBase=uW;function QU(t,e){this.token((e.type==="TSFunctionType"||e.type==="TSConstructorType")&&e.typeAnnotation===t?"=>":":"),this.space(),t.optional&&this.tokenChar(63),this.print(t.typeAnnotation)}function ZU(t,e){this.tokenChar(60);let r=e.type==="ArrowFunctionExpression"&&t.params.length===1;this.tokenMap&&t.start!=null&&t.end!=null&&(r&&(r=!!this.tokenMap.find(t,i=>this.tokenMap.matchesOriginal(i,","))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(t.params,r),this.tokenChar(62)}function eK(t){t.const&&(this.word("const"),this.space()),t.in&&(this.word("in"),this.space()),t.out&&(this.word("out"),this.space()),this.word(t.name),t.constraint&&(this.space(),this.word("extends"),this.space(),this.print(t.constraint)),t.default&&(this.space(),this.tokenChar(61),this.space(),this.print(t.default))}function tK(t){t.accessibility&&(this.word(t.accessibility),this.space()),t.readonly&&(this.word("readonly"),this.space()),this._param(t.parameter)}function rK(t,e){t.declare&&(this.word("declare"),this.space()),this._functionHead(t,e),this.semicolon()}function iK(t){this._classMethodHead(t),this.semicolon()}function sK(t){this.print(t.left),this.tokenChar(46),this.print(t.right)}function nK(t){this.tsPrintSignatureDeclarationBase(t),Dn(this,t)}function Dn(t,e){if(!t.tokenMap||!e.start||!e.end){t.semicolon();return}t.tokenMap.endMatches(e,",")?t.token(","):t.tokenMap.endMatches(e,";")&&t.semicolon()}function aK(t){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(t),Dn(this,t)}function oK(t){let{readonly:e}=t;e&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(t),this.print(t.typeAnnotation),Dn(this,t)}function lK(t){t.computed&&this.tokenChar(91),this.print(t.key),t.computed&&this.tokenChar(93),t.optional&&this.tokenChar(63)}function cK(t){let{kind:e}=t;(e==="set"||e==="get")&&(this.word(e),this.space()),this.tsPrintPropertyOrMethodName(t),this.tsPrintSignatureDeclarationBase(t),Dn(this,t)}function uK(t){let{readonly:e,static:r}=t;r&&(this.word("static"),this.space()),e&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(t.parameters,"]"),this.print(t.typeAnnotation),Dn(this,t)}function pK(){this.word("any")}function fK(){this.word("bigint")}function hK(){this.word("unknown")}function dK(){this.word("number")}function mK(){this.word("object")}function yK(){this.word("boolean")}function TK(){this.word("string")}function gK(){this.word("symbol")}function xK(){this.word("void")}function bK(){this.word("undefined")}function SK(){this.word("null")}function EK(){this.word("never")}function PK(){this.word("intrinsic")}function vK(){this.word("this")}function AK(t){this.tsPrintFunctionOrConstructorType(t)}function wK(t){t.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(t)}function CK(t){let{typeParameters:e}=t,r=t.parameters;this.print(e),this.tokenChar(40),this._parameters(r,")"),this.space();let i=t.typeAnnotation;this.print(i)}function IK(t){let e=t.typeParameters;this.print(t.typeName,!!e),this.print(e)}function kK(t){t.asserts&&(this.word("asserts"),this.space()),this.print(t.parameterName),t.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(t.typeAnnotation.typeAnnotation))}function OK(t){this.word("typeof"),this.space(),this.print(t.exprName);let e=t.typeParameters;e&&this.print(e)}function _K(t){No(this,t,()=>this.printJoin(t.members,!0,!0))}function NK(t){this.print(t.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function DK(t){this.tokenChar(91),this.printList(t.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function LK(t){this.print(t.typeAnnotation),this.tokenChar(63)}function MK(t){this.token("..."),this.print(t.typeAnnotation)}function FK(t){this.print(t.label),t.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(t.elementType)}function BK(t){$0(this,t,"|")}function jK(t){$0(this,t,"&")}function $0(t,e,r){var i;let s=0;(i=t.tokenMap)!=null&&i.startMatches(e,r)&&(s=1,t.token(r)),t.printJoin(e.types,void 0,void 0,function(n){this.space(),this.token(r,null,n+s),this.space()})}function RK(t){this.print(t.checkType),this.space(),this.word("extends"),this.space(),this.print(t.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(t.trueType),this.space(),this.tokenChar(58),this.space(),this.print(t.falseType)}function qK(t){this.word("infer"),this.print(t.typeParameter)}function $K(t){this.tokenChar(40),this.print(t.typeAnnotation),this.tokenChar(41)}function UK(t){this.word(t.operator),this.space(),this.print(t.typeAnnotation)}function KK(t){this.print(t.objectType,!0),this.tokenChar(91),this.print(t.indexType),this.tokenChar(93)}function WK(t){let{nameType:e,optional:r,readonly:i,typeAnnotation:s}=t;this.tokenChar(123);let n=this.enterDelimited();this.space(),i&&(R0(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(t.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(t.typeParameter.constraint),e&&(this.space(),this.word("as"),this.space(),this.print(e)),this.tokenChar(93),r&&(R0(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),n(),this.tokenChar(125)}function R0(t,e){e!==!0&&t.token(e)}function VK(t){this._printTemplate(t,t.types)}function YK(t){this.print(t.literal)}function zK(t){this.print(t.expression),this.print(t.typeArguments)}function JK(t){let{declare:e,id:r,typeParameters:i,extends:s,body:n}=t;e&&(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 XK(t){No(this,t,()=>this.printJoin(t.body,!0,!0))}function HK(t){let{declare:e,id:r,typeParameters:i,typeAnnotation:s}=t;e&&(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 GK(t){let{type:e,expression:r,typeAnnotation:i}=t;this.print(r,!0),this.space(),this.word(e==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(i)}function QK(t){let{typeAnnotation:e,expression:r}=t;this.tokenChar(60),this.print(e),this.tokenChar(62),this.space(),this.print(r)}function ZK(t){this.print(t.expression),this.print(t.typeParameters)}function eW(t){let{declare:e,const:r,id:i}=t;e&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),U0.call(this,t)}function U0(t){No(this,t,()=>{var e;return this.printList(t.members,(e=this.shouldPrintTrailingComma("}"))!=null?e:!0,!0,!0)})}function tW(t){let{id:e,initializer:r}=t;this.print(e),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))}function rW(t){let{declare:e,id:r,kind:i}=t;e&&(this.word("declare"),this.space());{if(t.global||(this.word(i??(r.type==="Identifier"?"namespace":"module")),this.space()),this.print(r),!t.body){this.semicolon();return}let s=t.body;for(;s.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(s.id),s=s.body;this.space(),this.print(s)}}function iW(t){No(this,t,()=>this.printSequence(t.body,!0))}function sW(t){let{argument:e,qualifier:r,options:i}=t;this.word("import"),this.tokenChar(40),this.print(e),i&&(this.tokenChar(44),this.print(i)),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r));let s=t.typeParameters;s&&this.print(s)}function nW(t){let{id:e,moduleReference:r}=t;t.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(e),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function aW(t){this.token("require("),this.print(t.expression),this.tokenChar(41)}function oW(t){this.print(t.expression),this.tokenChar(33)}function lW(t){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(t.expression),this.semicolon()}function cW(t){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(t.id),this.semicolon()}function uW(t){let{typeParameters:e}=t,r=t.parameters;this.print(e),this.tokenChar(40),this._parameters(r,")");let i=t.typeAnnotation;this.print(i)}function pW(t){let e=t.type==="ClassPrivateProperty",r=t.type==="ClassAccessorProperty"||t.type==="ClassProperty";q0(this,t,[r&&t.declare&&"declare",!e&&t.accessibility]),t.static&&(this.word("static"),this.space()),q0(this,t,[!e&&t.abstract&&"abstract",!e&&t.override&&"override",(r||e)&&t.readonly&&"readonly"])}function No(t,e,r){t.token("{");let i=t.enterDelimited();r(),i(),t.rightBrace(e)}function q0(t,e,r){var i;let s=new Set;for(let n of r)n&&s.add(n);(i=t.tokenMap)==null||i.find(e,n=>{if(s.has(n.value))return t.token(n.value),t.space(),s.delete(n.value),s.size===0});for(let n of s)t.word(n),t.space()}});var W0=k(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});var nf=y0();Object.keys(nf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===nf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return nf[t]}})});var af=g0();Object.keys(af).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===af[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return af[t]}})});var of=E0();Object.keys(of).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===of[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return of[t]}})});var lf=P0();Object.keys(lf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===lf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return lf[t]}})});var cf=v0();Object.keys(cf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===cf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return cf[t]}})});var uf=Zp();Object.keys(uf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===uf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return uf[t]}})});var pf=rf();Object.keys(pf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===pf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return pf[t]}})});var ff=F0();Object.keys(ff).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===ff[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return ff[t]}})});var hf=B0();Object.keys(hf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===hf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return hf[t]}})});var df=j0();Object.keys(df).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===df[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return df[t]}})});var mf=K0();Object.keys(mf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===mf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return mf[t]}})})});var V0=k(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.addDeprecatedGenerators=fW;function fW(t){{let e={Noop(){},TSExpressionWithTypeArguments(r){this.print(r.expression),this.print(r.typeParameters)},DecimalLiteral(r){let i=this.getPossibleRaw(r);if(!this.format.minified&&i!==void 0){this.word(i);return}this.word(r.value+"m")}};Object.assign(t.prototype,e)}}});var X0=k(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.default=void 0;var hW=QT(),Mt=$i(),z0=Mt,dW=Me(),mW=m0(),yW=W0(),TW=V0(),{isExpression:gW,isFunction:xW,isStatement:bW,isClassBody:SW,isTSInterfaceBody:EW,isTSEnumMember:PW}=dW,vW=/e/i,AW=/\.0+$/,J0=/[\n\r\u2028\u2029]/,wW=/[\n\r\u2028\u2029]|\*\//;function Y0(t){return t.type==="CommentLine"||J0.test(t.value)}var{needsParens:CW}=z0,Ln=class{constructor(e,r,i,s){this.tokenContext=Mt.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=i,this._originalCode=s,this._indentRepeat=e.indent.style.length,this._inputMap=r?._inputMap,this._buf=new hW.default(r,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=Mt.TokenContext.forInitHead|Mt.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=Mt.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=Mt.TokenContext.forOfHead,null):(this.tokenContext|=Mt.TokenContext.forInHead|Mt.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=Mt.TokenContext.normal)}enterDelimited(){let e=this.tokenContext,r=this._noLineTerminatorAfterNode;return!(e&Mt.TokenContext.forInOrInitHeadAccumulate)&&r===null?()=>{}:(this._noLineTerminatorAfterNode=null,this.tokenContext=Mt.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=r,this.tokenContext=e})}generate(e){return this.format.preserveFormat&&(this.tokenMap=new mW.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){let{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){let{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e){this._appendChar(59),this._noLineTerminator=!1;return}if(this.tokenMap){let r=this._currentNode;if(r.start!=null&&r.end!=null){if(!this.tokenMap.endMatches(r,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let i=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[i[i.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){let{format:r}=this;if(!(r.compact||r.preserveFormat)){if(e)this._space();else if(this._buf.hasContent()){let i=this.getLastChar();i!==32&&i!==10&&this._space()}}}word(e,r=!1){this.tokenContext&=Mt.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&e.charCodeAt(0)===47)&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=r}number(e,r){function i(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(e),this._endsWithInteger=Number.isInteger(r)&&!i(e)&&!vW.test(e)&&!AW.test(e)&&e.charCodeAt(e.length-1)!==46}token(e,r=!1,i=0){this.tokenContext&=Mt.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,i),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,i);let s=this.getLastChar(),n=e.charCodeAt(0);(s===33&&(e==="--"||n===61)||n===43&&s===43||n===45&&s===45||n===46&&this._endsWithInteger)&&this._space(),this._append(e,r),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=Mt.TokenContext.forInOrInitHeadAccumulatePassThroughMask;let r=String.fromCharCode(e);this._maybePrintInnerComments(r),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(r);let i=this.getLastChar();(e===43&&i===43||e===45&&i===45||e===46&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,r){if(!(e<=0)){if(!r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let i=0;i<e;i++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,r){if(!e){r();return}this._catchUp("start",e),this._buf.exactSource(e,r)}source(e,r){r&&(this._catchUp(e,r),this._buf.source(e,r))}sourceWithOffset(e,r,i){!r||this.format.preserveFormat||(this._catchUp(e,r),this._buf.sourceWithOffset(e,r,i))}sourceIdentifierName(e,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,r=0){let i=this.tokenMap.findMatching(this._currentNode,e,r);i&&this._catchUpTo(i.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,r){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,r),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&e!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&e!==10&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;let r=e-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(e,r){let{format:i}=this;if(!i.preserveFormat){i.retainLines&&r!=null&&r[e]&&this.catchUp(r[e].line);return}let s=r?.[e];s!=null&&this._catchUpTo(s)}_catchUpTo({line:e,column:r,index:i}){let s=e-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,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,r,i){var s,n,a;if(!e)return;this._endsWithInnerRaw=!1;let o=e.type,l=this.format,c=l.concise;e._compact&&(l.concise=!0);let u=this[o];if(u===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(e.constructor.name)}`);let d=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let b=this._insideAux;this._insideAux=e.loc==null,this._maybeAddAuxComment(this._insideAux&&!b);let E=(s=e.extra)==null?void 0:s.parenthesized,v=E&&l.preserveFormat||E&&l.retainFunctionParens&&o==="FunctionExpression"||CW(e,d,this.tokenContext,l.preserveFormat?this._boundGetRawIdentifier:void 0);if(!v&&E&&(n=e.leadingComments)!=null&&n.length&&e.leadingComments[0].type==="CommentBlock")switch(d?.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(d.callee!==e)break;default:v=!0}let A=!1;!v&&this._noLineTerminator&&((a=e.leadingComments)!=null&&a.some(Y0)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(v=!0,A=!0);let I,_;if(!v&&(r||(r=d&&this._noLineTerminatorAfterNode===d&&z0.isLastChild(d,e)),r)){var $;($=e.trailingComments)!=null&&$.some(Y0)?gW(e)&&(v=!0):(I=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e)}v&&(this.tokenChar(40),A&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&Mt.TokenContext.forInOrInitHeadAccumulate&&(_=this.tokenContext,this.tokenContext=Mt.TokenContext.normal),I=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,d);let X=o==="Program"||o==="File"?null:e.loc;this.exactSource(X,u.bind(this,e,d)),v?(this._printTrailingComments(e,d),A&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r,_&&(this.tokenContext=_)):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,d)):this._printTrailingComments(e,d,i),this._currentNode=d,l.concise=c,this._insideAux=b,I!==void 0&&(this._noLineTerminatorAfterNode=I),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let r=e.extra;if(r?.raw!=null&&r.rawValue!=null&&e.value===r.rawValue)return r.raw}printJoin(e,r,i,s,n,a,o,l){if(!(e!=null&&e.length))return;if(i==null&&this.format.retainLines){var c;let A=(c=e[0].loc)==null?void 0:c.start.line;A!=null&&A!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent();let u={addNewlines:a,nextNodeStartLine:0},d=s?.bind(this),b=e.length;for(let A=0;A<b;A++){let I=e[A];if(I&&(r&&this._printNewline(A===0,u),this.print(I,void 0,l||0),o?.(I,A),d!=null&&(A<b-1?d(A,!1):n&&d(A,!0)),r)){var E;if((E=I.trailingComments)!=null&&E.length||(this._lastCommentLine=0),A+1===b)this.newline(1);else{var v;let _=e[A+1];u.nextNodeStartLine=((v=_.loc)==null?void 0:v.start.line)||0,this._printNewline(!0,u)}}}i&&this.dedent()}printAndIndentOnComments(e){let r=e.leadingComments&&e.leadingComments.length>0;r&&this.indent(),this.print(e),r&&this.dedent()}printBlock(e){let r=e.body;r.type!=="EmptyStatement"&&this.space(),this.print(r)}_printTrailingComments(e,r,i){let{innerComments:s,trailingComments:n}=e;s!=null&&s.length&&this._printComments(2,s,e,r,i),n!=null&&n.length&&this._printComments(2,n,e,r,i)}_printLeadingComments(e,r){let i=e.leadingComments;i!=null&&i.length&&this._printComments(0,i,e,r)}_maybePrintInnerComments(e,r){if(this._endsWithInnerRaw){var i;this.printInnerComments((i=this.tokenMap)==null?void 0:i.findMatching(this._currentNode,e,r))}this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){let r=this._currentNode,i=r.innerComments;if(!(i!=null&&i.length))return;let s=this.endsWith(32),n=this._indentInnerComments,a=this._printedComments.size;n&&this.indent(),this._printComments(1,i,r,void 0,void 0,e),s&&a!==this._printedComments.size&&this.space(),n&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,r,i,s){this.printJoin(e,!0,r??!1,void 0,void 0,s,void 0,i)}printList(e,r,i,s,n,a){this.printJoin(e,i,s,n??IW,r,void 0,a)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;let r=this.tokenMap.findLastIndex(this._currentNode,i=>this.tokenMap.matchesOriginal(i,e));return r<=0?null:this.tokenMap.matchesOriginal(this._tokens[r-1],",")}_printNewline(e,r){let i=this.format;if(i.retainLines||i.compact)return;if(i.concise){this.space();return}if(!e)return;let s=r.nextNodeStartLine,n=this._lastCommentLine;if(s>0&&n>0){let a=s-n;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,r){if(e.ignore||this._printedComments.has(e))return 0;if(this._noLineTerminator&&wW.test(e.value))return 2;if(r&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,s=>s.value===e.value);if(i&&i.start>r.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,r){let i=this._noLineTerminator,s=e.type==="CommentBlock",n=s&&r!==1&&!this._noLineTerminator;n&&this._buf.hasContent()&&r!==2&&this.newline(1);let a=this.getLastChar();a!==91&&a!==123&&a!==40&&this.space();let o;if(s){if(o=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var l;let c=(l=e.loc)==null?void 0:l.start.column;if(c){let u=new RegExp("\\n\\s{1,"+c+"}","g");o=o.replace(u,`
24
+ `,b);n.column+=s-b}_mark(e,r,i,s,n){var a;(a=this._map)==null||a.mark(this._position,e,r,i,s,n)}removeTrailingNewline(){let e=this._queueCursor;e!==0&&this._queue[e-1].char===10&&this._queueCursor--}removeLastSemicolon(){let e=this._queueCursor;e!==0&&this._queue[e-1].char===59&&this._queueCursor--}getLastChar(){let e=this._queueCursor;return e!==0?this._queue[e-1].char:this._last}getNewlineCount(){let e=this._queueCursor,r=0;if(e===0)return this._last===10?1:0;for(let i=e-1;i>=0&&this._queue[i].char===10;i--)r++;return r===e&&this._last===10?r+1:r}endsWithCharAndNewline(){let e=this._queue,r=this._queueCursor;if(r!==0)return e[r-1].char!==10?void 0:r>1?e[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(e,r){if(!this._map){r();return}this.source("start",e);let i=e.identifierName,s=this._sourcePosition;i&&(this._canMarkIdName=!1,s.identifierName=i),r(),i&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",e)}source(e,r){this._map&&this._normalizePosition(e,r,0)}sourceWithOffset(e,r,i){this._map&&this._normalizePosition(e,r,i)}_normalizePosition(e,r,i){let s=r[e],n=this._sourcePosition;s&&(n.line=s.line,n.column=Math.max(s.column+i,0),n.filename=r.filename)}getCurrentColumn(){let e=this._queue,r=this._queueCursor,i=-1,s=0;for(let n=0;n<r;n++){let a=e[n];a.char===10&&(i=s),s+=a.repeat}return i===-1?this._position.column+s:s-1-i}getCurrentLine(){let e=0,r=this._queue;for(let i=0;i<this._queueCursor;i++)r[i].char===10&&e++;return this._position.line+e}};bo.default=Yp});var i0=k(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.nodes=void 0;var S5=Me(),{FLIPPED_ALIAS_KEYS:E5,isArrayExpression:P5,isAssignmentExpression:e0,isBinary:t0,isBlockStatement:v5,isCallExpression:r0,isFunction:On,isIdentifier:So,isLiteral:A5,isMemberExpression:zp,isObjectExpression:w5,isOptionalCallExpression:C5,isOptionalMemberExpression:I5,isStringLiteral:k5}=S5;function Es(t,e){return t&&(zp(t)||I5(t)?(Es(t.object,e),t.computed&&Es(t.property,e)):t0(t)||e0(t)?(Es(t.left,e),Es(t.right,e)):r0(t)||C5(t)?(e.hasCall=!0,Es(t.callee,e)):On(t)?e.hasFunction=!0:So(t)&&(e.hasHelper=e.hasHelper||t.callee&&Wr(t.callee))),e}function ZT(t){return Es(t,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Wr(t){return t?zp(t)?Wr(t.object)||Wr(t.property):So(t)?t.name==="require"||t.name.charCodeAt(0)===95:r0(t)?Wr(t.callee):t0(t)||e0(t)?So(t.left)&&Wr(t.left)||Wr(t.right):!1:!1}function O5(t){return A5(t)||w5(t)||P5(t)||So(t)||zp(t)}var qi=Eo.nodes={AssignmentExpression(t){let e=ZT(t.right);if(e.hasCall&&e.hasHelper||e.hasFunction)return e.hasFunction?3:2},SwitchCase(t,e){return(t.consequent.length||e.cases[0]===t?1:0)|(!t.consequent.length&&e.cases[e.cases.length-1]===t?2:0)},LogicalExpression(t){if(On(t.left)||On(t.right))return 2},Literal(t){if(k5(t)&&t.value==="use strict")return 2},CallExpression(t){if(On(t.callee)||Wr(t))return 3},OptionalCallExpression(t){if(On(t.callee))return 3},VariableDeclaration(t){for(let e=0;e<t.declarations.length;e++){let r=t.declarations[e],i=Wr(r.id)&&!O5(r.init);if(!i&&r.init){let s=ZT(r.init);i=Wr(r.init)&&s.hasCall||s.hasFunction}if(i)return 3}},IfStatement(t){if(v5(t.consequent))return 3}};qi.ObjectProperty=qi.ObjectTypeProperty=qi.ObjectMethod=function(t,e){if(e.properties[0]===t)return 1};qi.ObjectTypeCallProperty=function(t,e){var r;if(e.callProperties[0]===t&&!((r=e.properties)!=null&&r.length))return 1};qi.ObjectTypeIndexer=function(t,e){var r,i;if(e.indexers[0]===t&&!((r=e.properties)!=null&&r.length)&&!((i=e.callProperties)!=null&&i.length))return 1};qi.ObjectTypeInternalSlot=function(t,e){var r,i,s;if(e.internalSlots[0]===t&&!((r=e.properties)!=null&&r.length)&&!((i=e.callProperties)!=null&&i.length)&&!((s=e.indexers)!=null&&s.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([t,e]){[t].concat(E5[t]||[]).forEach(function(r){let i=e?3:0;qi[r]=()=>i})})});var p0=k(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.AssignmentExpression=l9;qe.Binary=l0;qe.BinaryExpression=r9;qe.ClassExpression=n9;qe.ArrowFunctionExpression=qe.ConditionalExpression=u0;qe.DoExpression=V5;qe.FunctionExpression=a9;qe.FunctionTypeAnnotation=U5;qe.Identifier=u9;qe.LogicalExpression=c9;qe.NullableTypeAnnotation=$5;qe.ObjectExpression=W5;qe.OptionalIndexedAccessType=z5;qe.OptionalCallExpression=qe.OptionalMemberExpression=o9;qe.SequenceExpression=i9;qe.TSSatisfiesExpression=qe.TSAsExpression=J5;qe.TSConditionalType=X5;qe.TSConstructorType=qe.TSFunctionType=t9;qe.TSInferType=Q5;qe.TSInstantiationExpression=e9;qe.TSIntersectionType=G5;qe.UnaryLike=qe.TSTypeAssertion=c0;qe.TSTypeOperator=Z5;qe.TSUnionType=H5;qe.IntersectionTypeAnnotation=qe.UnionTypeAnnotation=Y5;qe.UpdateExpression=K5;qe.AwaitExpression=qe.YieldExpression=s9;var _5=Me(),tr=$i(),{isArrayTypeAnnotation:N5,isBinaryExpression:D5,isCallExpression:L5,isForOfStatement:M5,isIndexedAccessType:F5,isMemberExpression:a0,isObjectPattern:B5,isOptionalMemberExpression:j5,isYieldExpression:R5,isStatement:q5}=_5,s0=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function n0(t,e){if(e==="BinaryExpression"||e==="LogicalExpression")return s0.get(t.operator);if(e==="TSAsExpression"||e==="TSSatisfiesExpression")return s0.get("in")}function Jp(t){return t==="TSAsExpression"||t==="TSSatisfiesExpression"||t==="TSTypeAssertion"}var Po=(t,e)=>{let r=e.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&e.superClass===t},vo=(t,e)=>{let r=e.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&e.object===t||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&e.callee===t||r==="TaggedTemplateExpression"&&e.tag===t||r==="TSNonNullExpression"};function $5(t,e){return N5(e)}function U5(t,e,r){let i=e.type;return i==="UnionTypeAnnotation"||i==="IntersectionTypeAnnotation"||i==="ArrayTypeAnnotation"||!!(r&tr.TokenContext.arrowFlowReturnType)}function K5(t,e){return vo(t,e)||Po(t,e)}function o0(t){return!!(t&(tr.TokenContext.expressionStatement|tr.TokenContext.arrowBody))}function W5(t,e,r){return o0(r)}function V5(t,e,r){return!t.async&&!!(r&tr.TokenContext.expressionStatement)}function l0(t,e){let r=e.type;if(t.type==="BinaryExpression"&&t.operator==="**"&&r==="BinaryExpression"&&e.operator==="**")return e.left===t;if(Po(t,e)||vo(t,e)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression")return!0;let i=n0(e,r);if(i!=null){let s=n0(t,t.type);if(i===s&&r==="BinaryExpression"&&e.right===t||i>s)return!0}}function Y5(t,e){let r=e.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function z5(t,e){return F5(e)&&e.objectType===t}function J5(t,e){return(e.type==="AssignmentExpression"||e.type==="AssignmentPattern")&&e.left===t||e.type==="BinaryExpression"&&(e.operator==="|"||e.operator==="&")&&t===e.left?!0:l0(t,e)}function X5(t,e){let r=e.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"||r==="TSTypeOperator"||r==="TSTypeParameter"||(r==="TSIntersectionType"||r==="TSUnionType")&&e.types[0]===t||r==="TSConditionalType"&&(e.checkType===t||e.extendsType===t)}function H5(t,e){let r=e.type;return r==="TSIntersectionType"||r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"}function G5(t,e){let r=e.type;return r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"}function Q5(t,e){let r=e.type;return!!(r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"||t.typeParameter.constraint&&(r==="TSIntersectionType"||r==="TSUnionType")&&e.types[0]===t)}function Z5(t,e){let r=e.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSOptionalType"}function e9(t,e){let r=e.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!e.typeParameters}function t9(t,e){let r=e.type;return r==="TSIntersectionType"||r==="TSUnionType"||r==="TSTypeOperator"||r==="TSOptionalType"||r==="TSArrayType"||r==="TSIndexedAccessType"&&e.objectType===t||r==="TSConditionalType"&&(e.checkType===t||e.extendsType===t)}function r9(t,e,r){return t.operator==="in"&&!!(r&tr.TokenContext.forInOrInitHeadAccumulate)}function i9(t,e){let r=e.type;return r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&e.property===t||r==="OptionalMemberExpression"&&e.property===t||r==="TemplateLiteral"?!1:r==="ClassDeclaration"?!0:r==="ForOfStatement"?e.right===t:r==="ExportDefaultDeclaration"?!0:!q5(e)}function s9(t,e){let r=e.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||vo(t,e)||r==="AwaitExpression"&&R5(t)||r==="ConditionalExpression"&&t===e.test||Po(t,e)||Jp(r)}function n9(t,e,r){return!!(r&(tr.TokenContext.expressionStatement|tr.TokenContext.exportDefault))}function c0(t,e){return vo(t,e)||D5(e)&&e.operator==="**"&&e.left===t||Po(t,e)}function a9(t,e,r){return!!(r&(tr.TokenContext.expressionStatement|tr.TokenContext.exportDefault))}function u0(t,e){let r=e.type;return r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&e.test===t||r==="AwaitExpression"||Jp(r)?!0:c0(t,e)}function o9(t,e){return L5(e)&&e.callee===t||a0(e)&&e.object===t}function l9(t,e,r){return o0(r)&&B5(t.left)?!0:u0(t,e)}function c9(t,e){let r=e.type;if(Jp(r))return!0;if(r!=="LogicalExpression")return!1;switch(t.operator){case"||":return e.operator==="??"||e.operator==="&&";case"&&":return e.operator==="??";case"??":return e.operator!=="??"}}function u9(t,e,r,i){var s;let n=e.type;if((s=t.extra)!=null&&s.parenthesized&&n==="AssignmentExpression"&&e.left===t){let a=e.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&e.right.id==null)return!0}return i&&i(t)!==t.name?!1:t.name==="let"?(a0(e,{object:t,computed:!0})||j5(e,{object:t,computed:!0,optional:!1}))&&r&(tr.TokenContext.expressionStatement|tr.TokenContext.forInitHead|tr.TokenContext.forInHead)?!0:!!(r&tr.TokenContext.forOfHead):t.name==="async"&&M5(e,{left:t,await:!1})}});var $i=k(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.TokenContext=void 0;Vr.isLastChild=w9;Vr.needsParens=A9;Vr.needsWhitespace=Hp;Vr.needsWhitespaceAfter=v9;Vr.needsWhitespaceBefore=P9;var p9=i0(),f9=p0(),h9=Me(),{FLIPPED_ALIAS_KEYS:d9,VISITOR_KEYS:m9,isCallExpression:f0,isDecorator:y9,isExpressionStatement:T9,isMemberExpression:g9,isNewExpression:x9,isParenthesizedExpression:b9}=h9,xae=Vr.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};function h0(t){let e=new Map;function r(i,s){let n=e.get(i);e.set(i,n?function(a,o,l,c){var u;return(u=n(a,o,l,c))!=null?u:s(a,o,l,c)}:s)}for(let i of Object.keys(t)){let s=d9[i];if(s)for(let n of s)r(n,t[i]);else r(i,t[i])}return e}var S9=h0(f9),E9=h0(p9.nodes);function d0(t){return f0(t)?!0:g9(t)&&d0(t.object)}function Hp(t,e,r){var i;if(!t)return!1;T9(t)&&(t=t.expression);let s=(i=E9.get(t.type))==null?void 0:i(t,e);return typeof s=="number"?(s&r)!==0:!1}function P9(t,e){return Hp(t,e,1)}function v9(t,e){return Hp(t,e,2)}function A9(t,e,r,i){var s;return e?x9(e)&&e.callee===t&&d0(t)?!0:y9(e)?!Xp(t)&&!(f0(t)&&Xp(t.callee))&&!b9(t):(s=S9.get(t.type))==null?void 0:s(t,e,r,i):!1}function Xp(t){switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&t.property.type==="Identifier"&&Xp(t.object);default:return!1}}function w9(t,e){let r=m9[t.type];for(let i=r.length-1;i>=0;i--){let s=t[r[i]];if(s===e)return!0;if(Array.isArray(s)){let n=s.length-1;for(;n>=0&&s[n]===null;)n--;return n>=0&&s[n]===e}else if(s)return!1}return!1}});var m0=k(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TokenMap=void 0;var C9=Me(),{traverseFast:I9,VISITOR_KEYS:k9}=C9,Gp=class{constructor(e,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,I9(e,s=>{let n=this._getTokensIndexesOfNode(s);n.length>0&&this._nodesToTokenIndexes.set(s,n)}),this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,r){let i=this._nodesToTokenIndexes.get(e);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(e,r){let i=this._nodesToTokenIndexes.get(e);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(e,r,i=0){let s=this._nodesToTokenIndexes.get(e);if(s){let n=0,a=i;if(a>1){let o=this._nodesOccurrencesCountCache.get(e);o&&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(e,{test:r,count:a,i:n}),o;i--}}}return null}matchesOriginal(e,r){return e.end-e.start!==r.length?!1:e.value!=null?e.value===r:this._source.startsWith(r,e.start)}startMatches(e,r){let i=this._nodesToTokenIndexes.get(e);if(!i)return!1;let s=this._tokens[i[0]];return s.start!==e.start?!1:this.matchesOriginal(s,r)}endMatches(e,r){let i=this._nodesToTokenIndexes.get(e);if(!i)return!1;let s=this._tokens[i[i.length-1]];return s.end!==e.end?!1:this.matchesOriginal(s,r)}_getTokensIndexesOfNode(e){if(e.start==null||e.end==null)return[];let{first:r,last:i}=this._findTokensOfNode(e,0,this._tokens.length-1),s=r,n=O9(e);(e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration")&&e.declaration&&e.declaration.type==="ClassDeclaration"&&n.next();let a=[];for(let o of n){if(o==null||o.start==null||o.end==null)continue;let l=this._findTokensOfNode(o,s,i),c=l.first;for(let u=s;u<c;u++)a.push(u);s=l.last+1}for(let o=s;o<=i;o++)a.push(o);return a}_findTokensOfNode(e,r,i){let s=this._tokensCache.get(e);if(s)return s;let n=this._findFirstTokenOfNode(e.start,r,i),a=this._findLastTokenOfNode(e.end,n,i);return this._tokensCache.set(e,{first:n,last:a}),{first:n,last:a}}_findFirstTokenOfNode(e,r,i){for(;r<=i;){let s=i+r>>1;if(e<this._tokens[s].start)i=s-1;else if(e>this._tokens[s].start)r=s+1;else return s}return r}_findLastTokenOfNode(e,r,i){for(;r<=i;){let s=i+r>>1;if(e<this._tokens[s].end)i=s-1;else if(e>this._tokens[s].end)r=s+1;else return s}return i}};Ao.TokenMap=Gp;function*O9(t){if(t.type==="TemplateLiteral"){yield t.quasis[0];for(let r=1;r<t.quasis.length;r++)yield t.expressions[r-1],yield t.quasis[r];return}let e=k9[t.type];for(let r of e){let i=t[r];i&&(Array.isArray(i)?yield*i:yield i)}}});var y0=k(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.TaggedTemplateExpression=_9;Ps.TemplateElement=N9;Ps.TemplateLiteral=L9;Ps._printTemplate=D9;function _9(t){this.print(t.tag),this.print(t.typeParameters),this.print(t.quasi)}function N9(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function D9(t,e){let r=t.quasis,i="`";for(let s=0;s<r.length-1;s++)if(i+=r[s].value.raw,this.token(i+"${",!0),this.print(e[s]),i="}",this.tokenMap){let n=this.tokenMap.findMatching(t,"}",s);n&&this._catchUpTo(n.loc.start)}i+=r[r.length-1].value.raw,this.token(i+"`",!0)}function L9(t){this._printTemplate(t,t.expressions)}});var g0=k(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.LogicalExpression=Ge.BinaryExpression=Ge.AssignmentExpression=a7;Ge.AssignmentPattern=n7;Ge.AwaitExpression=t7;Ge.BindExpression=o7;Ge.CallExpression=Z9;Ge.ConditionalExpression=W9;Ge.Decorator=H9;Ge.DoExpression=$9;Ge.EmptyStatement=i7;Ge.ExpressionStatement=s7;Ge.Import=e7;Ge.MemberExpression=l7;Ge.MetaProperty=c7;Ge.ModuleExpression=f7;Ge.NewExpression=V9;Ge.OptionalCallExpression=Q9;Ge.OptionalMemberExpression=G9;Ge.ParenthesizedExpression=U9;Ge.PrivateName=u7;Ge.SequenceExpression=Y9;Ge.Super=J9;Ge.ThisExpression=z9;Ge.UnaryExpression=q9;Ge.UpdateExpression=K9;Ge.V8IntrinsicIdentifier=p7;Ge.YieldExpression=r7;Ge._shouldPrintDecoratorsBeforeExport=X9;var M9=Me(),F9=$i(),{isCallExpression:B9,isLiteral:T0,isMemberExpression:Qp,isNewExpression:j9,isPattern:R9}=M9;function q9(t){let{operator:e}=t;e==="void"||e==="delete"||e==="typeof"||e==="throw"?(this.word(e),this.space()):this.token(e),this.print(t.argument)}function $9(t){t.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(t.body)}function U9(t){this.tokenChar(40);let e=this.enterDelimited();this.print(t.expression),e(),this.rightParens(t)}function K9(t){t.prefix?(this.token(t.operator),this.print(t.argument)):(this.print(t.argument,!0),this.token(t.operator))}function W9(t){this.print(t.test),this.space(),this.tokenChar(63),this.space(),this.print(t.consequent),this.space(),this.tokenChar(58),this.space(),this.print(t.alternate)}function V9(t,e){if(this.word("new"),this.space(),this.print(t.callee),this.format.minified&&t.arguments.length===0&&!t.optional&&!B9(e,{callee:t})&&!Qp(e)&&!j9(e)||(this.print(t.typeArguments),this.print(t.typeParameters),t.optional&&this.token("?."),t.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(t,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(t.arguments,this.shouldPrintTrailingComma(")")),r(),this.rightParens(t)}function Y9(t){this.printList(t.expressions)}function z9(){this.word("this")}function J9(){this.word("super")}function X9(t){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof t.start=="number"&&t.start===t.declaration.start}function H9(t){this.tokenChar(64),this.print(t.expression),this.newline()}function G9(t){let{computed:e}=t,{optional:r,property:i}=t;if(this.print(t.object),!e&&Qp(i))throw new TypeError("Got a MemberExpression for MemberExpression property");T0(i)&&typeof i.value=="number"&&(e=!0),r&&this.token("?."),e?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i))}function Q9(t){this.print(t.callee),this.print(t.typeParameters),t.optional&&this.token("?."),this.print(t.typeArguments),this.tokenChar(40);let e=this.enterDelimited();this.printList(t.arguments),e(),this.rightParens(t)}function Z9(t){this.print(t.callee),this.print(t.typeArguments),this.print(t.typeParameters),this.tokenChar(40);let e=this.enterDelimited();this.printList(t.arguments,this.shouldPrintTrailingComma(")")),e(),this.rightParens(t)}function e7(){this.word("import")}function t7(t){this.word("await"),this.space(),this.print(t.argument)}function r7(t){t.delegate?(this.word("yield",!0),this.tokenChar(42),t.argument&&(this.space(),this.print(t.argument))):t.argument?(this.word("yield",!0),this.space(),this.print(t.argument)):this.word("yield")}function i7(){this.semicolon(!0)}function s7(t){this.tokenContext|=F9.TokenContext.expressionStatement,this.print(t.expression),this.semicolon()}function n7(t){this.print(t.left),(t.left.type==="Identifier"||R9(t.left))&&(t.left.optional&&this.tokenChar(63),this.print(t.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(t.right)}function a7(t){this.print(t.left),this.space(),t.operator==="in"||t.operator==="instanceof"?this.word(t.operator):(this.token(t.operator),this._endsWithDiv=t.operator==="/"),this.space(),this.print(t.right)}function o7(t){this.print(t.object),this.token("::"),this.print(t.callee)}function l7(t){if(this.print(t.object),!t.computed&&Qp(t.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let e=t.computed;if(T0(t.property)&&typeof t.property.value=="number"&&(e=!0),e){let r=this.enterDelimited();this.tokenChar(91),this.print(t.property),this.tokenChar(93),r()}else this.tokenChar(46),this.print(t.property)}function c7(t){this.print(t.meta),this.tokenChar(46),this.print(t.property)}function u7(t){this.tokenChar(35),this.print(t.id)}function p7(t){this.tokenChar(37),this.word(t.name)}function f7(t){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:e}=t;(e.body.length||e.directives.length)&&this.newline(),this.print(e),this.dedent(),this.rightBrace(t)}});var E0=k(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.BreakStatement=E7;pt.CatchClause=I7;pt.ContinueStatement=P7;pt.DebuggerStatement=_7;pt.DoWhileStatement=S7;pt.ForOfStatement=pt.ForInStatement=void 0;pt.ForStatement=x7;pt.IfStatement=g7;pt.LabeledStatement=w7;pt.ReturnStatement=v7;pt.SwitchCase=O7;pt.SwitchStatement=k7;pt.ThrowStatement=A7;pt.TryStatement=C7;pt.VariableDeclaration=N7;pt.VariableDeclarator=D7;pt.WhileStatement=b7;pt.WithStatement=T7;var h7=Me(),{isFor:x0,isForStatement:d7,isIfStatement:m7,isStatement:y7}=h7;function T7(t){this.word("with"),this.space(),this.tokenChar(40),this.print(t.object),this.tokenChar(41),this.printBlock(t)}function g7(t){this.word("if"),this.space(),this.tokenChar(40),this.print(t.test),this.tokenChar(41),this.space();let e=t.alternate&&m7(b0(t.consequent));e&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(t.consequent),e&&(this.dedent(),this.newline(),this.tokenChar(125)),t.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(t.alternate))}function b0(t){let{body:e}=t;return y7(e)===!1?t:b0(e)}function x7(t){this.word("for"),this.space(),this.tokenChar(40);{let e=this.enterForStatementInit();this.print(t.init),e()}this.tokenChar(59),t.test&&(this.space(),this.print(t.test)),this.token(";",!1,1),t.update&&(this.space(),this.print(t.update)),this.tokenChar(41),this.printBlock(t)}function b7(t){this.word("while"),this.space(),this.tokenChar(40),this.print(t.test),this.tokenChar(41),this.printBlock(t)}function S0(t){this.word("for"),this.space();let e=t.type==="ForOfStatement";e&&t.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let r=this.enterForXStatementInit(e);this.print(t.left),r?.()}this.space(),this.word(e?"of":"in"),this.space(),this.print(t.right),this.tokenChar(41),this.printBlock(t)}var vae=pt.ForInStatement=S0,Aae=pt.ForOfStatement=S0;function S7(t){this.word("do"),this.space(),this.print(t.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(t.test),this.tokenChar(41),this.semicolon()}function wo(t,e){e&&(t.space(),t.printTerminatorless(e)),t.semicolon()}function E7(t){this.word("break"),wo(this,t.label)}function P7(t){this.word("continue"),wo(this,t.label)}function v7(t){this.word("return"),wo(this,t.argument)}function A7(t){this.word("throw"),wo(this,t.argument)}function w7(t){this.print(t.label),this.tokenChar(58),this.space(),this.print(t.body)}function C7(t){this.word("try"),this.space(),this.print(t.block),this.space(),t.handlers?this.print(t.handlers[0]):this.print(t.handler),t.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(t.finalizer))}function I7(t){this.word("catch"),this.space(),t.param&&(this.tokenChar(40),this.print(t.param),this.print(t.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(t.body)}function k7(t){this.word("switch"),this.space(),this.tokenChar(40),this.print(t.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(t.cases,!0,void 0,function(r,i){if(!r&&t.cases[t.cases.length-1]===i)return-1}),this.rightBrace(t)}function O7(t){t.test?(this.word("case"),this.space(),this.print(t.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),t.consequent.length&&(this.newline(),this.printSequence(t.consequent,!0))}function _7(){this.word("debugger"),this.semicolon()}function N7(t,e){t.declare&&(this.word("declare"),this.space());let{kind:r}=t;r==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,r==="using"),this.space();let i=!1;if(!x0(e))for(let s of t.declarations)s.init&&(i=!0);if(this.printList(t.declarations,void 0,void 0,t.declarations.length>1,i?function(s){this.token(",",!1,s),this.newline()}:void 0),x0(e)){if(d7(e)){if(e.init===t)return}else if(e.left===t)return}this.semicolon()}function D7(t){this.print(t.id),t.definite&&this.tokenChar(33),this.print(t.id.typeAnnotation),t.init&&(this.space(),this.tokenChar(61),this.space(),this.print(t.init))}});var P0=k(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.ClassAccessorProperty=$7;cr.ClassBody=j7;cr.ClassExpression=cr.ClassDeclaration=B7;cr.ClassMethod=K7;cr.ClassPrivateMethod=W7;cr.ClassPrivateProperty=U7;cr.ClassProperty=q7;cr.StaticBlock=Y7;cr._classMethodHead=V7;var L7=Me(),{isExportDefaultDeclaration:M7,isExportNamedDeclaration:F7}=L7;function B7(t,e){(!(M7(e)||F7(e))||!this._shouldPrintDecoratorsBeforeExport(e))&&this.printJoin(t.decorators),t.declare&&(this.word("declare"),this.space()),t.abstract&&(this.word("abstract"),this.space()),this.word("class"),t.id&&(this.space(),this.print(t.id)),this.print(t.typeParameters),t.superClass&&(this.space(),this.word("extends"),this.space(),this.print(t.superClass),this.print(t.superTypeParameters)),t.implements&&(this.space(),this.word("implements"),this.space(),this.printList(t.implements)),this.space(),this.print(t.body)}function j7(t){if(this.tokenChar(123),t.body.length===0)this.tokenChar(125);else{this.newline();let e=R7(this,t);e?.(-1);let r=this.enterDelimited();this.printJoin(t.body,!0,!0,e,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(t)}}function R7(t,e){if(!t.tokenMap||e.start==null||e.end==null)return null;let r=t.tokenMap.getIndexes(e);if(!r)return null;let i=1,s=0,n=0,a=()=>{for(;n<e.body.length&&e.body[n].start==null;)n++};return a(),o=>{n<=o&&(n=o+1,a());let l=n===e.body.length?e.end:e.body[n].start,c;for(;i<r.length&&t.tokenMap.matchesOriginal(c=t._tokens[r[i]],";")&&c.start<l;)t.token(";",void 0,s++),i++}}function q7(t){if(this.printJoin(t.decorators),!t.static&&!this.format.preserveFormat){var e;let r=(e=t.key.loc)==null||(e=e.end)==null?void 0:e.line;r&&this.catchUp(r)}this.tsPrintClassMemberModifiers(t),t.computed?(this.tokenChar(91),this.print(t.key),this.tokenChar(93)):(this._variance(t),this.print(t.key)),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value)),this.semicolon()}function $7(t){var e;this.printJoin(t.decorators);let r=(e=t.key.loc)==null||(e=e.end)==null?void 0:e.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(t),this.word("accessor",!0),this.space(),t.computed?(this.tokenChar(91),this.print(t.key),this.tokenChar(93)):(this._variance(t),this.print(t.key)),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value)),this.semicolon()}function U7(t){this.printJoin(t.decorators),this.tsPrintClassMemberModifiers(t),this.print(t.key),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value)),this.semicolon()}function K7(t){this._classMethodHead(t),this.space(),this.print(t.body)}function W7(t){this._classMethodHead(t),this.space(),this.print(t.body)}function V7(t){if(this.printJoin(t.decorators),!this.format.preserveFormat){var e;let r=(e=t.key.loc)==null||(e=e.end)==null?void 0:e.line;r&&this.catchUp(r)}this.tsPrintClassMemberModifiers(t),this._methodHead(t)}function Y7(t){this.word("static"),this.space(),this.tokenChar(123),t.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(t.body,!0),this.rightBrace(t))}});var v0=k(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.ArrowFunctionExpression=iq;ur.FunctionDeclaration=ur.FunctionExpression=rq;ur._functionHead=tq;ur._methodHead=Z7;ur._param=Q7;ur._parameters=G7;ur._params=H7;ur._predicate=eq;ur._shouldPrintArrowParamsParens=sq;var z7=Me(),J7=$i(),{isIdentifier:X7}=z7;function H7(t,e,r){this.print(t.typeParameters);let i=nq.call(this,e,r);i&&this.sourceIdentifierName(i.name,i.pos),this.tokenChar(40),this._parameters(t.params,")");let s=t.type==="ArrowFunctionExpression";this.print(t.returnType,s),this._noLineTerminator=s}function G7(t,e){let r=this.enterDelimited(),i=this.shouldPrintTrailingComma(e),s=t.length;for(let n=0;n<s;n++)this._param(t[n]),(i||n<s-1)&&(this.token(",",null,n),this.space());this.token(e),r()}function Q7(t){this.printJoin(t.decorators),this.print(t),t.optional&&this.tokenChar(63),this.print(t.typeAnnotation)}function Z7(t){let e=t.kind,r=t.key;(e==="get"||e==="set")&&(this.word(e),this.space()),t.async&&(this.word("async",!0),this.space()),(e==="method"||e==="init")&&t.generator&&this.tokenChar(42),t.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),t.optional&&this.tokenChar(63),this._params(t,t.computed&&t.key.type!=="StringLiteral"?void 0:t.key,void 0)}function eq(t,e){t.predicate&&(t.returnType||this.tokenChar(58),this.space(),this.print(t.predicate,e))}function tq(t,e){t.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),t.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),t.id&&this.print(t.id),this._params(t,t.id,e),t.type!=="TSDeclareFunction"&&this._predicate(t)}function rq(t,e){this._functionHead(t,e),this.space(),this.print(t.body)}function iq(t,e){t.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(t)?this._params(t,void 0,e):this.print(t.params[0],!0),this._predicate(t,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=J7.TokenContext.arrowBody,this.print(t.body)}function sq(t){var e,r;if(t.params.length!==1||t.typeParameters||t.returnType||t.predicate)return!0;let i=t.params[0];if(!X7(i)||i.typeAnnotation||i.optional||(e=i.leadingComments)!=null&&e.length||(r=i.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(t.loc==null||this.tokenMap.findMatching(t,"(")!==null)return!0;let s=this.tokenMap.findMatching(t,"=>");return s?.loc==null?!0:s.loc.start.line!==t.loc.start.line}return!!this.format.retainLines}function nq(t,e){let r=t;if(!r&&e){let l=e.type;l==="VariableDeclarator"?r=e.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=e.left:l==="ObjectProperty"||l==="ClassProperty"?(!e.computed||e.key.type==="StringLiteral")&&(r=e.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=e.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 Zp=k(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.ExportAllDeclaration=xq;Kt.ExportDefaultDeclaration=Sq;Kt.ExportDefaultSpecifier=mq;Kt.ExportNamedDeclaration=bq;Kt.ExportNamespaceSpecifier=Tq;Kt.ExportSpecifier=yq;Kt.ImportAttribute=Pq;Kt.ImportDeclaration=Eq;Kt.ImportDefaultSpecifier=dq;Kt.ImportExpression=Aq;Kt.ImportNamespaceSpecifier=vq;Kt.ImportSpecifier=hq;Kt._printAttributes=gq;var aq=Me(),oq=$i(),{isClassDeclaration:lq,isExportDefaultSpecifier:cq,isExportNamespaceSpecifier:uq,isImportDefaultSpecifier:pq,isImportNamespaceSpecifier:fq,isStatement:w0}=aq;function hq(t){(t.importKind==="type"||t.importKind==="typeof")&&(this.word(t.importKind),this.space()),this.print(t.imported),t.local&&t.local.name!==t.imported.name&&(this.space(),this.word("as"),this.space(),this.print(t.local))}function dq(t){this.print(t.local)}function mq(t){this.print(t.exported)}function yq(t){t.exportKind==="type"&&(this.word("type"),this.space()),this.print(t.local),t.exported&&t.local.name!==t.exported.name&&(this.space(),this.word("as"),this.space(),this.print(t.exported))}function Tq(t){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(t.exported)}var A0=!1;function gq(t,e){var r;let{importAttributesKeyword:i}=this.format,{attributes:s,assertions:n}=t;s&&!i&&t.extra&&(t.extra.deprecatedAssertSyntax||t.extra.deprecatedWithLegacySyntax)&&!A0&&(A0=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=i==="assert"||!i&&n;if(this.word(a?"assert":"with"),this.space(),!a&&(i==="with-legacy"||!i&&(r=t.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(s||n);return}let o=e?1:0;this.token("{",null,o),this.space(),this.printList(s||n,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,o)}function xq(t){var e,r;this.word("export"),this.space(),t.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(e=t.attributes)!=null&&e.length||(r=t.assertions)!=null&&r.length?(this.print(t.source,!0),this.space(),this._printAttributes(t,!1)):this.print(t.source),this.semicolon()}function C0(t,e){lq(e.declaration)&&t._shouldPrintDecoratorsBeforeExport(e)&&t.printJoin(e.declaration.decorators)}function bq(t){if(C0(this,t),this.word("export"),this.space(),t.declaration){let i=t.declaration;this.print(i),w0(i)||this.semicolon()}else{t.exportKind==="type"&&(this.word("type"),this.space());let i=t.specifiers.slice(0),s=!1;for(;;){let a=i[0];if(cq(a)||uq(a))s=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}let n=!1;if((i.length||!i.length&&!s)&&(n=!0,this.tokenChar(123),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),t.source){var e,r;this.space(),this.word("from"),this.space(),(e=t.attributes)!=null&&e.length||(r=t.assertions)!=null&&r.length?(this.print(t.source,!0),this.space(),this._printAttributes(t,n)):this.print(t.source)}this.semicolon()}}function Sq(t){C0(this,t),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=oq.TokenContext.exportDefault;let e=t.declaration;this.print(e),w0(e)||this.semicolon()}function Eq(t){var e,r;this.word("import"),this.space();let i=t.importKind==="type"||t.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(t.importKind),this.space()):t.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):t.phase&&(this.noIndentInnerCommentsHere(),this.word(t.phase),this.space());let s=t.specifiers.slice(0),n=!!s.length;for(;n;){let o=s[0];if(pq(o)||fq(o))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!n&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(n||i)&&(this.space(),this.word("from"),this.space()),(e=t.attributes)!=null&&e.length||(r=t.assertions)!=null&&r.length?(this.print(t.source,!0),this.space(),this._printAttributes(t,a)):this.print(t.source),this.semicolon()}function Pq(t){this.print(t.key),this.tokenChar(58),this.space(),this.print(t.value)}function vq(t){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(t.local)}function Aq(t){this.word("import"),t.phase&&(this.tokenChar(46),this.word(t.phase)),this.tokenChar(40);let e=this.shouldPrintTrailingComma(")");this.print(t.source),t.options!=null&&(this.tokenChar(44),this.space(),this.print(t.options)),e&&this.tokenChar(44),this.rightParens(t)}});var _0=k((Oae,O0)=>{"use strict";var I0={},wq=I0.hasOwnProperty,k0=(t,e)=>{for(let r in t)wq.call(t,r)&&e(r,t[r])},Cq=(t,e)=>(e&&k0(e,(r,i)=>{t[r]=i}),t),Iq=(t,e)=>{let r=t.length,i=-1;for(;++i<r;)e(t[i])},Co=t=>"\\u"+("0000"+t).slice(-4),_n=(t,e)=>{let r=t.toString(16);return e?r:r.toUpperCase()},Nn=I0.toString,kq=Array.isArray,Oq=t=>typeof Buffer=="function"&&Buffer.isBuffer(t),_q=t=>Nn.call(t)=="[object Object]",Nq=t=>typeof t=="string"||Nn.call(t)=="[object String]",Dq=t=>typeof t=="number"||Nn.call(t)=="[object Number]",ef=t=>typeof t=="bigint",Lq=t=>typeof t=="function",Mq=t=>Nn.call(t)=="[object Map]",Fq=t=>Nn.call(t)=="[object Set]",Bq={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},jq=/[\\\b\f\n\r\t]/,Rq=/[0-9]/,qq=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,$q=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,Uq=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,ui=(t,e)=>{let r=()=>{c=l,++e.indentLevel,l=e.indent.repeat(e.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=e&&e.json;s&&(i.quotes="double",i.wrap=!0),e=Cq(i,e),e.quotes!="single"&&e.quotes!="double"&&e.quotes!="backtick"&&(e.quotes="single");let n=e.quotes=="double"?'"':e.quotes=="backtick"?"`":"'",a=e.compact,o=e.lowercaseHex,l=e.indent.repeat(e.indentLevel),c="",u=e.__inline1__,d=e.__inline2__,b=a?"":`
25
+ `,E,v=!0,A=e.numbers=="binary",I=e.numbers=="octal",_=e.numbers=="decimal",$=e.numbers=="hexadecimal";if(s&&t&&Lq(t.toJSON)&&(t=t.toJSON()),!Nq(t)){if(Mq(t))return t.size==0?"new Map()":(a||(e.__inline1__=!0,e.__inline2__=!1),"new Map("+ui(Array.from(t),e)+")");if(Fq(t))return t.size==0?"new Set()":"new Set("+ui(Array.from(t),e)+")";if(Oq(t))return t.length==0?"Buffer.from([])":"Buffer.from("+ui(Array.from(t),e)+")";if(kq(t))return E=[],e.wrap=!0,u&&(e.__inline1__=!1,e.__inline2__=!0),d||r(),Iq(t,N=>{v=!1,d&&(e.__inline2__=!1),E.push((a||d?"":l)+ui(N,e))}),v?"[]":d?"["+E.join(", ")+"]":"["+b+E.join(","+b)+b+(a?"":c)+"]";if(Dq(t)||ef(t)){if(s)return JSON.stringify(Number(t));let N;if(_)N=String(t);else if($){let U=t.toString(16);o||(U=U.toUpperCase()),N="0x"+U}else A?N="0b"+t.toString(2):I&&(N="0o"+t.toString(8));return ef(t)?N+"n":N}else return ef(t)?s?JSON.stringify(Number(t)):t+"n":_q(t)?(E=[],e.wrap=!0,r(),k0(t,(N,U)=>{v=!1,E.push((a?"":l)+ui(N,e)+":"+(a?"":" ")+ui(U,e))}),v?"{}":"{"+b+E.join(","+b)+b+(a?"":c)+"}"):s?JSON.stringify(t)||"null":String(t)}let X=e.escapeEverything?$q:Uq;return E=t.replace(X,(N,U,W,ke,Ce,Ie)=>{if(U){if(e.minimal)return U;let ft=U.charCodeAt(0),h=U.charCodeAt(1);if(e.es6){let ve=(ft-55296)*1024+h-56320+65536;return"\\u{"+_n(ve,o)+"}"}return Co(_n(ft,o))+Co(_n(h,o))}if(W)return Co(_n(W.charCodeAt(0),o));if(N=="\0"&&!s&&!Rq.test(Ie.charAt(Ce+1)))return"\\0";if(ke)return ke==n||e.escapeEverything?"\\"+ke:ke;if(jq.test(N))return Bq[N];if(e.minimal&&!qq.test(N))return N;let We=_n(N.charCodeAt(0),o);return s||We.length>2?Co(We):"\\x"+("00"+We).slice(-2)}),n=="`"&&(E=E.replace(/\$\{/g,"\\${")),e.isScriptContext&&(E=E.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),e.wrap&&(E=n+E+n),E};ui.version="3.0.2";O0.exports=ui});var rf=k(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.ArgumentPlaceholder=zq;nt.ArrayPattern=nt.ArrayExpression=Qq;nt.BigIntLiteral=a$;nt.BooleanLiteral=r$;nt.Identifier=Yq;nt.NullLiteral=i$;nt.NumericLiteral=s$;nt.ObjectPattern=nt.ObjectExpression=Xq;nt.ObjectMethod=Hq;nt.ObjectProperty=Gq;nt.PipelineBareFunction=c$;nt.PipelinePrimaryTopicReference=u$;nt.PipelineTopicExpression=l$;nt.RecordExpression=Zq;nt.RegExpLiteral=t$;nt.SpreadElement=nt.RestElement=Jq;nt.StringLiteral=n$;nt.TopicReference=o$;nt.TupleExpression=e$;nt.VoidPattern=p$;nt._getRawIdentifier=Vq;var Kq=Me(),L0=_0(),{isAssignmentPattern:Wq,isIdentifier:tf}=Kq,N0=null,Io="";function Vq(t){if(t===N0)return Io;N0=t;let{name:e}=t,r=this.tokenMap.find(t,i=>i.value===e);return r?(Io=this._originalCode.slice(r.start,r.end),Io):Io=t.name}function Yq(t){var e;this.sourceIdentifierName(((e=t.loc)==null?void 0:e.identifierName)||t.name),this.word(this.tokenMap?this._getRawIdentifier(t):t.name)}function zq(){this.tokenChar(63)}function Jq(t){this.token("..."),this.print(t.argument)}function Xq(t){let e=t.properties;if(this.tokenChar(123),e.length){let r=this.enterDelimited();this.space(),this.printList(e,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),r()}this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}function Hq(t){this.printJoin(t.decorators),this._methodHead(t),this.space(),this.print(t.body)}function Gq(t){if(this.printJoin(t.decorators),t.computed)this.tokenChar(91),this.print(t.key),this.tokenChar(93);else{if(Wq(t.value)&&tf(t.key)&&t.key.name===t.value.left.name){this.print(t.value);return}if(this.print(t.key),t.shorthand&&tf(t.key)&&tf(t.value)&&t.key.name===t.value.name)return}this.tokenChar(58),this.space(),this.print(t.value)}function Qq(t){let e=t.elements,r=e.length;this.tokenChar(91);let i=this.enterDelimited();for(let s=0;s<e.length;s++){let n=e[s];n?(s>0&&this.space(),this.print(n),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,s)):this.token(",",!1,s)}i(),this.tokenChar(93)}function Zq(t){let e=t.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),e.length&&(this.space(),this.printList(e,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)}function e$(t){let e=t.elements,r=e.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<e.length;n++){let a=e[n];a&&(n>0&&this.space(),this.print(a),(n<r-1||this.shouldPrintTrailingComma(s))&&this.token(",",!1,n))}this.token(s)}function t$(t){this.word(`/${t.pattern}/${t.flags}`)}function r$(t){this.word(t.value?"true":"false")}function i$(){this.word("null")}function s$(t){let e=this.getPossibleRaw(t),r=this.format.jsescOption,i=t.value,s=i+"";r.numbers?this.number(L0(i,r),i):e==null?this.number(s,i):this.format.minified?this.number(e.length<s.length?e:s,i):this.number(e,i)}function n$(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.token(e);return}let r=L0(t.value,this.format.jsescOption);this.token(r)}function a$(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.word(e);return}this.word(t.value+"n")}var D0=new Set(["^^","@@","^","%","#"]);function o$(){let{topicToken:t}=this.format;if(D0.has(t))this.token(t);else{let e=JSON.stringify(t),r=Array.from(D0,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${e} received instead).`)}}function l$(t){this.print(t.expression)}function c$(t){this.print(t.callee)}function u$(){this.tokenChar(35)}function p$(){this.word("void")}});var F0=k(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.AnyTypeAnnotation=y$;fe.ArrayTypeAnnotation=T$;fe.BooleanLiteralTypeAnnotation=x$;fe.BooleanTypeAnnotation=g$;fe.DeclareClass=S$;fe.DeclareExportAllDeclaration=N$;fe.DeclareExportDeclaration=_$;fe.DeclareFunction=E$;fe.DeclareInterface=A$;fe.DeclareModule=w$;fe.DeclareModuleExports=C$;fe.DeclareOpaqueType=k$;fe.DeclareTypeAlias=I$;fe.DeclareVariable=O$;fe.DeclaredPredicate=v$;fe.EmptyTypeAnnotation=eU;fe.EnumBooleanBody=L$;fe.EnumBooleanMember=R$;fe.EnumDeclaration=D$;fe.EnumDefaultedMember=j$;fe.EnumNumberBody=M$;fe.EnumNumberMember=q$;fe.EnumStringBody=F$;fe.EnumStringMember=$$;fe.EnumSymbolBody=B$;fe.ExistsTypeAnnotation=K$;fe.FunctionTypeAnnotation=W$;fe.FunctionTypeParam=V$;fe.IndexedAccessType=AU;fe.InferredPredicate=P$;fe.InterfaceDeclaration=X$;fe.GenericTypeAnnotation=fe.ClassImplements=fe.InterfaceExtends=Y$;fe.InterfaceTypeAnnotation=G$;fe.IntersectionTypeAnnotation=Q$;fe.MixedTypeAnnotation=Z$;fe.NullLiteralTypeAnnotation=b$;fe.NullableTypeAnnotation=tU;Object.defineProperty(fe,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return M0.NumericLiteral}});fe.NumberTypeAnnotation=rU;fe.ObjectTypeAnnotation=fU;fe.ObjectTypeCallProperty=dU;fe.ObjectTypeIndexer=mU;fe.ObjectTypeInternalSlot=hU;fe.ObjectTypeProperty=yU;fe.ObjectTypeSpreadProperty=TU;fe.OpaqueType=pU;fe.OptionalIndexedAccessType=wU;fe.QualifiedTypeIdentifier=gU;Object.defineProperty(fe,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return M0.StringLiteral}});fe.StringTypeAnnotation=iU;fe.SymbolTypeAnnotation=xU;fe.ThisTypeAnnotation=sU;fe.TupleTypeAnnotation=nU;fe.TypeAlias=oU;fe.TypeAnnotation=lU;fe.TypeCastExpression=EU;fe.TypeParameter=uU;fe.TypeParameterDeclaration=fe.TypeParameterInstantiation=cU;fe.TypeofTypeAnnotation=aU;fe.UnionTypeAnnotation=SU;fe.Variance=PU;fe.VoidTypeAnnotation=vU;fe._interfaceish=z$;fe._variance=J$;var f$=Me(),h$=Zp(),d$=$i(),M0=rf(),{isDeclareExportDeclaration:ko,isStatement:m$}=f$;function y$(){this.word("any")}function T$(t){this.print(t.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function g$(){this.word("boolean")}function x$(t){this.word(t.value?"true":"false")}function b$(){this.word("null")}function S$(t,e){ko(e)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(t)}function E$(t,e){ko(e)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(t.id),this.print(t.id.typeAnnotation.typeAnnotation),t.predicate&&(this.space(),this.print(t.predicate)),this.semicolon()}function P$(){this.tokenChar(37),this.word("checks")}function v$(t){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(t.value),this.tokenChar(41)}function A$(t){this.word("declare"),this.space(),this.InterfaceDeclaration(t)}function w$(t){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(t.id),this.space(),this.print(t.body)}function C$(t){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(t.typeAnnotation)}function I$(t){this.word("declare"),this.space(),this.TypeAlias(t)}function k$(t,e){ko(e)||(this.word("declare"),this.space()),this.OpaqueType(t)}function O$(t,e){ko(e)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(t.id),this.print(t.id.typeAnnotation),this.semicolon()}function _$(t){this.word("declare"),this.space(),this.word("export"),this.space(),t.default&&(this.word("default"),this.space()),U$.call(this,t)}function N$(t){this.word("declare"),this.space(),h$.ExportAllDeclaration.call(this,t)}function D$(t){let{id:e,body:r}=t;this.word("enum"),this.space(),this.print(e),this.print(r)}function Oo(t,e,r){r&&(t.space(),t.word("of"),t.space(),t.word(e)),t.space()}function _o(t,e){let{members:r}=e;t.token("{"),t.indent(),t.newline();for(let i of r)t.print(i),t.newline();e.hasUnknownMembers&&(t.token("..."),t.newline()),t.dedent(),t.token("}")}function L$(t){let{explicitType:e}=t;Oo(this,"boolean",e),_o(this,t)}function M$(t){let{explicitType:e}=t;Oo(this,"number",e),_o(this,t)}function F$(t){let{explicitType:e}=t;Oo(this,"string",e),_o(this,t)}function B$(t){Oo(this,"symbol",!0),_o(this,t)}function j$(t){let{id:e}=t;this.print(e),this.tokenChar(44)}function sf(t,e){t.print(e.id),t.space(),t.token("="),t.space(),t.print(e.init),t.token(",")}function R$(t){sf(this,t)}function q$(t){sf(this,t)}function $$(t){sf(this,t)}function U$(t){if(t.declaration){let e=t.declaration;this.print(e),m$(e)||this.semicolon()}else this.tokenChar(123),t.specifiers.length&&(this.space(),this.printList(t.specifiers),this.space()),this.tokenChar(125),t.source&&(this.space(),this.word("from"),this.space(),this.print(t.source)),this.semicolon()}function K$(){this.tokenChar(42)}function W$(t,e){this.print(t.typeParameters),this.tokenChar(40),t.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(t.this.typeAnnotation),(t.params.length||t.rest)&&(this.tokenChar(44),this.space())),this.printList(t.params),t.rest&&(t.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(t.rest)),this.tokenChar(41);let r=e?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&e.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(t.returnType)}function V$(t){this.print(t.name),t.optional&&this.tokenChar(63),t.name&&(this.tokenChar(58),this.space()),this.print(t.typeAnnotation)}function Y$(t){this.print(t.id),this.print(t.typeParameters,!0)}function z$(t){var e;if(this.print(t.id),this.print(t.typeParameters),(e=t.extends)!=null&&e.length&&(this.space(),this.word("extends"),this.space(),this.printList(t.extends)),t.type==="DeclareClass"){var r,i;(r=t.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(t.mixins)),(i=t.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(t.implements))}this.space(),this.print(t.body)}function J$(t){var e;let r=(e=t.variance)==null?void 0:e.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function X$(t){this.word("interface"),this.space(),this._interfaceish(t)}function H$(t){this.space(),this.token("&",!1,t),this.space()}function G$(t){var e;this.word("interface"),(e=t.extends)!=null&&e.length&&(this.space(),this.word("extends"),this.space(),this.printList(t.extends)),this.space(),this.print(t.body)}function Q$(t){this.printJoin(t.types,void 0,void 0,H$)}function Z$(){this.word("mixed")}function eU(){this.word("empty")}function tU(t){this.tokenChar(63),this.print(t.typeAnnotation)}function rU(){this.word("number")}function iU(){this.word("string")}function sU(){this.word("this")}function nU(t){this.tokenChar(91),this.printList(t.types),this.tokenChar(93)}function aU(t){this.word("typeof"),this.space(),this.print(t.argument)}function oU(t){this.word("type"),this.space(),this.print(t.id),this.print(t.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(t.right),this.semicolon()}function lU(t,e){this.tokenChar(58),this.space(),e.type==="ArrowFunctionExpression"?this.tokenContext|=d$.TokenContext.arrowFlowReturnType:t.optional&&this.tokenChar(63),this.print(t.typeAnnotation)}function cU(t){this.tokenChar(60),this.printList(t.params),this.tokenChar(62)}function uU(t){this._variance(t),this.word(t.name),t.bound&&this.print(t.bound),t.default&&(this.space(),this.tokenChar(61),this.space(),this.print(t.default))}function pU(t){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(t.id),this.print(t.typeParameters),t.supertype&&(this.tokenChar(58),this.space(),this.print(t.supertype)),t.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(t.impltype)),this.semicolon()}function fU(t){t.exact?this.token("{|"):this.tokenChar(123);let e=[...t.properties,...t.callProperties||[],...t.indexers||[],...t.internalSlots||[]];e.length&&(this.newline(),this.space(),this.printJoin(e,!0,!0,void 0,void 0,function(i){if(i&&!e[0])return 1},()=>{(e.length!==1||t.inexact)&&(this.tokenChar(44),this.space())}),this.space()),t.inexact&&(this.indent(),this.token("..."),e.length&&this.newline(),this.dedent()),t.exact?this.token("|}"):this.tokenChar(125)}function hU(t){t.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(t.id),this.tokenChar(93),this.tokenChar(93),t.optional&&this.tokenChar(63),t.method||(this.tokenChar(58),this.space()),this.print(t.value)}function dU(t){t.static&&(this.word("static"),this.space()),this.print(t.value)}function mU(t){t.static&&(this.word("static"),this.space()),this._variance(t),this.tokenChar(91),t.id&&(this.print(t.id),this.tokenChar(58),this.space()),this.print(t.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(t.value)}function yU(t){t.proto&&(this.word("proto"),this.space()),t.static&&(this.word("static"),this.space()),(t.kind==="get"||t.kind==="set")&&(this.word(t.kind),this.space()),this._variance(t),this.print(t.key),t.optional&&this.tokenChar(63),t.method||(this.tokenChar(58),this.space()),this.print(t.value)}function TU(t){this.token("..."),this.print(t.argument)}function gU(t){this.print(t.qualification),this.tokenChar(46),this.print(t.id)}function xU(){this.word("symbol")}function bU(t){this.space(),this.token("|",!1,t),this.space()}function SU(t){this.printJoin(t.types,void 0,void 0,bU)}function EU(t){this.tokenChar(40),this.print(t.expression),this.print(t.typeAnnotation),this.tokenChar(41)}function PU(t){t.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function vU(){this.word("void")}function AU(t){this.print(t.objectType,!0),this.tokenChar(91),this.print(t.indexType),this.tokenChar(93)}function wU(t){this.print(t.objectType),t.optional&&this.token("?."),this.tokenChar(91),this.print(t.indexType),this.tokenChar(93)}});var B0=k(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.BlockStatement=kU;Yr.Directive=OU;Yr.DirectiveLiteral=DU;Yr.File=CU;Yr.InterpreterDirective=LU;Yr.Placeholder=MU;Yr.Program=IU;function CU(t){t.program&&this.print(t.program.interpreter),this.print(t.program)}function IU(t){var e;this.noIndentInnerCommentsHere(),this.printInnerComments();let r=(e=t.directives)==null?void 0:e.length;if(r){var i;let s=t.body.length?2:1;this.printSequence(t.directives,void 0,s),(i=t.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(t.body)}function kU(t){var e;this.tokenChar(123);let r=this.enterDelimited(),i=(e=t.directives)==null?void 0:e.length;if(i){var s;let n=t.body.length?2:1;this.printSequence(t.directives,!0,n),(s=t.directives[i-1].trailingComments)!=null&&s.length||this.newline(n)}this.printSequence(t.body,!0),r(),this.rightBrace(t)}function OU(t){this.print(t.value),this.semicolon()}var _U=/(?:^|[^\\])(?:\\\\)*'/,NU=/(?:^|[^\\])(?:\\\\)*"/;function DU(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.token(e);return}let{value:r}=t;if(!NU.test(r))this.token(`"${r}"`);else if(!_U.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 LU(t){this.token(`#!${t.value}`),this.newline(1,!0)}function MU(t){this.token("%%"),this.print(t.name),this.token("%%"),t.expectedNode==="Statement"&&this.semicolon()}});var j0=k(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.JSXAttribute=FU;_t.JSXClosingElement=zU;_t.JSXClosingFragment=GU;_t.JSXElement=WU;_t.JSXEmptyExpression=JU;_t.JSXExpressionContainer=$U;_t.JSXFragment=XU;_t.JSXIdentifier=BU;_t.JSXMemberExpression=RU;_t.JSXNamespacedName=jU;_t.JSXOpeningElement=YU;_t.JSXOpeningFragment=HU;_t.JSXSpreadAttribute=qU;_t.JSXSpreadChild=UU;_t.JSXText=KU;function FU(t){this.print(t.name),t.value&&(this.tokenChar(61),this.print(t.value))}function BU(t){this.word(t.name)}function jU(t){this.print(t.namespace),this.tokenChar(58),this.print(t.name)}function RU(t){this.print(t.object),this.tokenChar(46),this.print(t.property)}function qU(t){this.tokenChar(123),this.token("..."),this.print(t.argument),this.rightBrace(t)}function $U(t){this.tokenChar(123),this.print(t.expression),this.rightBrace(t)}function UU(t){this.tokenChar(123),this.token("..."),this.print(t.expression),this.rightBrace(t)}function KU(t){let e=this.getPossibleRaw(t);e!==void 0?this.token(e,!0):this.token(t.value,!0)}function WU(t){let e=t.openingElement;if(this.print(e),!e.selfClosing){this.indent();for(let r of t.children)this.print(r);this.dedent(),this.print(t.closingElement)}}function VU(){this.space()}function YU(t){this.tokenChar(60),this.print(t.name),t.typeArguments&&this.print(t.typeArguments),this.print(t.typeParameters),t.attributes.length>0&&(this.space(),this.printJoin(t.attributes,void 0,void 0,VU)),t.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function zU(t){this.tokenChar(60),this.tokenChar(47),this.print(t.name),this.tokenChar(62)}function JU(){this.printInnerComments()}function XU(t){this.print(t.openingFragment),this.indent();for(let e of t.children)this.print(e);this.dedent(),this.print(t.closingFragment)}function HU(){this.tokenChar(60),this.tokenChar(62)}function GU(){this.token("</"),this.tokenChar(62)}});var K0=k(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.TSAnyKeyword=pK;ce.TSArrayType=NK;ce.TSSatisfiesExpression=ce.TSAsExpression=GK;ce.TSBigIntKeyword=fK;ce.TSBooleanKeyword=yK;ce.TSCallSignatureDeclaration=nK;ce.TSInterfaceHeritage=ce.TSClassImplements=zK;ce.TSConditionalType=RK;ce.TSConstructSignatureDeclaration=aK;ce.TSConstructorType=wK;ce.TSDeclareFunction=rK;ce.TSDeclareMethod=iK;ce.TSEnumBody=U0;ce.TSEnumDeclaration=eW;ce.TSEnumMember=tW;ce.TSExportAssignment=lW;ce.TSExternalModuleReference=aW;ce.TSFunctionType=AK;ce.TSImportEqualsDeclaration=nW;ce.TSImportType=sW;ce.TSIndexSignature=uK;ce.TSIndexedAccessType=KK;ce.TSInferType=qK;ce.TSInstantiationExpression=ZK;ce.TSInterfaceBody=XK;ce.TSInterfaceDeclaration=JK;ce.TSIntersectionType=jK;ce.TSIntrinsicKeyword=PK;ce.TSLiteralType=YK;ce.TSMappedType=WK;ce.TSMethodSignature=cK;ce.TSModuleBlock=iW;ce.TSModuleDeclaration=rW;ce.TSNamedTupleMember=FK;ce.TSNamespaceExportDeclaration=cW;ce.TSNeverKeyword=EK;ce.TSNonNullExpression=oW;ce.TSNullKeyword=SK;ce.TSNumberKeyword=dK;ce.TSObjectKeyword=mK;ce.TSOptionalType=LK;ce.TSParameterProperty=tK;ce.TSParenthesizedType=$K;ce.TSPropertySignature=oK;ce.TSQualifiedName=sK;ce.TSRestType=MK;ce.TSStringKeyword=TK;ce.TSSymbolKeyword=gK;ce.TSTemplateLiteralType=VK;ce.TSThisType=vK;ce.TSTupleType=DK;ce.TSTypeAliasDeclaration=HK;ce.TSTypeAnnotation=QU;ce.TSTypeAssertion=QK;ce.TSTypeLiteral=_K;ce.TSTypeOperator=UK;ce.TSTypeParameter=eK;ce.TSTypeParameterDeclaration=ce.TSTypeParameterInstantiation=ZU;ce.TSTypePredicate=kK;ce.TSTypeQuery=OK;ce.TSTypeReference=IK;ce.TSUndefinedKeyword=bK;ce.TSUnionType=BK;ce.TSUnknownKeyword=hK;ce.TSVoidKeyword=xK;ce.tsPrintClassMemberModifiers=pW;ce.tsPrintFunctionOrConstructorType=CK;ce.tsPrintPropertyOrMethodName=lK;ce.tsPrintSignatureDeclarationBase=uW;function QU(t,e){this.token((e.type==="TSFunctionType"||e.type==="TSConstructorType")&&e.typeAnnotation===t?"=>":":"),this.space(),t.optional&&this.tokenChar(63),this.print(t.typeAnnotation)}function ZU(t,e){this.tokenChar(60);let r=e.type==="ArrowFunctionExpression"&&t.params.length===1;this.tokenMap&&t.start!=null&&t.end!=null&&(r&&(r=!!this.tokenMap.find(t,i=>this.tokenMap.matchesOriginal(i,","))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(t.params,r),this.tokenChar(62)}function eK(t){t.const&&(this.word("const"),this.space()),t.in&&(this.word("in"),this.space()),t.out&&(this.word("out"),this.space()),this.word(t.name),t.constraint&&(this.space(),this.word("extends"),this.space(),this.print(t.constraint)),t.default&&(this.space(),this.tokenChar(61),this.space(),this.print(t.default))}function tK(t){t.accessibility&&(this.word(t.accessibility),this.space()),t.readonly&&(this.word("readonly"),this.space()),this._param(t.parameter)}function rK(t,e){t.declare&&(this.word("declare"),this.space()),this._functionHead(t,e),this.semicolon()}function iK(t){this._classMethodHead(t),this.semicolon()}function sK(t){this.print(t.left),this.tokenChar(46),this.print(t.right)}function nK(t){this.tsPrintSignatureDeclarationBase(t),Dn(this,t)}function Dn(t,e){if(!t.tokenMap||!e.start||!e.end){t.semicolon();return}t.tokenMap.endMatches(e,",")?t.token(","):t.tokenMap.endMatches(e,";")&&t.semicolon()}function aK(t){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(t),Dn(this,t)}function oK(t){let{readonly:e}=t;e&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(t),this.print(t.typeAnnotation),Dn(this,t)}function lK(t){t.computed&&this.tokenChar(91),this.print(t.key),t.computed&&this.tokenChar(93),t.optional&&this.tokenChar(63)}function cK(t){let{kind:e}=t;(e==="set"||e==="get")&&(this.word(e),this.space()),this.tsPrintPropertyOrMethodName(t),this.tsPrintSignatureDeclarationBase(t),Dn(this,t)}function uK(t){let{readonly:e,static:r}=t;r&&(this.word("static"),this.space()),e&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(t.parameters,"]"),this.print(t.typeAnnotation),Dn(this,t)}function pK(){this.word("any")}function fK(){this.word("bigint")}function hK(){this.word("unknown")}function dK(){this.word("number")}function mK(){this.word("object")}function yK(){this.word("boolean")}function TK(){this.word("string")}function gK(){this.word("symbol")}function xK(){this.word("void")}function bK(){this.word("undefined")}function SK(){this.word("null")}function EK(){this.word("never")}function PK(){this.word("intrinsic")}function vK(){this.word("this")}function AK(t){this.tsPrintFunctionOrConstructorType(t)}function wK(t){t.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(t)}function CK(t){let{typeParameters:e}=t,r=t.parameters;this.print(e),this.tokenChar(40),this._parameters(r,")"),this.space();let i=t.typeAnnotation;this.print(i)}function IK(t){let e=t.typeParameters;this.print(t.typeName,!!e),this.print(e)}function kK(t){t.asserts&&(this.word("asserts"),this.space()),this.print(t.parameterName),t.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(t.typeAnnotation.typeAnnotation))}function OK(t){this.word("typeof"),this.space(),this.print(t.exprName);let e=t.typeParameters;e&&this.print(e)}function _K(t){No(this,t,()=>this.printJoin(t.members,!0,!0))}function NK(t){this.print(t.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function DK(t){this.tokenChar(91),this.printList(t.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function LK(t){this.print(t.typeAnnotation),this.tokenChar(63)}function MK(t){this.token("..."),this.print(t.typeAnnotation)}function FK(t){this.print(t.label),t.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(t.elementType)}function BK(t){$0(this,t,"|")}function jK(t){$0(this,t,"&")}function $0(t,e,r){var i;let s=0;(i=t.tokenMap)!=null&&i.startMatches(e,r)&&(s=1,t.token(r)),t.printJoin(e.types,void 0,void 0,function(n){this.space(),this.token(r,null,n+s),this.space()})}function RK(t){this.print(t.checkType),this.space(),this.word("extends"),this.space(),this.print(t.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(t.trueType),this.space(),this.tokenChar(58),this.space(),this.print(t.falseType)}function qK(t){this.word("infer"),this.print(t.typeParameter)}function $K(t){this.tokenChar(40),this.print(t.typeAnnotation),this.tokenChar(41)}function UK(t){this.word(t.operator),this.space(),this.print(t.typeAnnotation)}function KK(t){this.print(t.objectType,!0),this.tokenChar(91),this.print(t.indexType),this.tokenChar(93)}function WK(t){let{nameType:e,optional:r,readonly:i,typeAnnotation:s}=t;this.tokenChar(123);let n=this.enterDelimited();this.space(),i&&(R0(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(t.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(t.typeParameter.constraint),e&&(this.space(),this.word("as"),this.space(),this.print(e)),this.tokenChar(93),r&&(R0(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),n(),this.tokenChar(125)}function R0(t,e){e!==!0&&t.token(e)}function VK(t){this._printTemplate(t,t.types)}function YK(t){this.print(t.literal)}function zK(t){this.print(t.expression),this.print(t.typeArguments)}function JK(t){let{declare:e,id:r,typeParameters:i,extends:s,body:n}=t;e&&(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 XK(t){No(this,t,()=>this.printJoin(t.body,!0,!0))}function HK(t){let{declare:e,id:r,typeParameters:i,typeAnnotation:s}=t;e&&(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 GK(t){let{type:e,expression:r,typeAnnotation:i}=t;this.print(r,!0),this.space(),this.word(e==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(i)}function QK(t){let{typeAnnotation:e,expression:r}=t;this.tokenChar(60),this.print(e),this.tokenChar(62),this.space(),this.print(r)}function ZK(t){this.print(t.expression),this.print(t.typeParameters)}function eW(t){let{declare:e,const:r,id:i}=t;e&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),U0.call(this,t)}function U0(t){No(this,t,()=>{var e;return this.printList(t.members,(e=this.shouldPrintTrailingComma("}"))!=null?e:!0,!0,!0)})}function tW(t){let{id:e,initializer:r}=t;this.print(e),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))}function rW(t){let{declare:e,id:r,kind:i}=t;e&&(this.word("declare"),this.space());{if(t.global||(this.word(i??(r.type==="Identifier"?"namespace":"module")),this.space()),this.print(r),!t.body){this.semicolon();return}let s=t.body;for(;s.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(s.id),s=s.body;this.space(),this.print(s)}}function iW(t){No(this,t,()=>this.printSequence(t.body,!0))}function sW(t){let{argument:e,qualifier:r,options:i}=t;this.word("import"),this.tokenChar(40),this.print(e),i&&(this.tokenChar(44),this.print(i)),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r));let s=t.typeParameters;s&&this.print(s)}function nW(t){let{id:e,moduleReference:r}=t;t.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(e),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function aW(t){this.token("require("),this.print(t.expression),this.tokenChar(41)}function oW(t){this.print(t.expression),this.tokenChar(33)}function lW(t){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(t.expression),this.semicolon()}function cW(t){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(t.id),this.semicolon()}function uW(t){let{typeParameters:e}=t,r=t.parameters;this.print(e),this.tokenChar(40),this._parameters(r,")");let i=t.typeAnnotation;this.print(i)}function pW(t){let e=t.type==="ClassPrivateProperty",r=t.type==="ClassAccessorProperty"||t.type==="ClassProperty";q0(this,t,[r&&t.declare&&"declare",!e&&t.accessibility]),t.static&&(this.word("static"),this.space()),q0(this,t,[!e&&t.abstract&&"abstract",!e&&t.override&&"override",(r||e)&&t.readonly&&"readonly"])}function No(t,e,r){t.token("{");let i=t.enterDelimited();r(),i(),t.rightBrace(e)}function q0(t,e,r){var i;let s=new Set;for(let n of r)n&&s.add(n);(i=t.tokenMap)==null||i.find(e,n=>{if(s.has(n.value))return t.token(n.value),t.space(),s.delete(n.value),s.size===0});for(let n of s)t.word(n),t.space()}});var W0=k(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});var nf=y0();Object.keys(nf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===nf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return nf[t]}})});var af=g0();Object.keys(af).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===af[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return af[t]}})});var of=E0();Object.keys(of).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===of[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return of[t]}})});var lf=P0();Object.keys(lf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===lf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return lf[t]}})});var cf=v0();Object.keys(cf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===cf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return cf[t]}})});var uf=Zp();Object.keys(uf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===uf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return uf[t]}})});var pf=rf();Object.keys(pf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===pf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return pf[t]}})});var ff=F0();Object.keys(ff).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===ff[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return ff[t]}})});var hf=B0();Object.keys(hf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===hf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return hf[t]}})});var df=j0();Object.keys(df).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===df[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return df[t]}})});var mf=K0();Object.keys(mf).forEach(function(t){t==="default"||t==="__esModule"||t in Ke&&Ke[t]===mf[t]||Object.defineProperty(Ke,t,{enumerable:!0,get:function(){return mf[t]}})})});var V0=k(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.addDeprecatedGenerators=fW;function fW(t){{let e={Noop(){},TSExpressionWithTypeArguments(r){this.print(r.expression),this.print(r.typeParameters)},DecimalLiteral(r){let i=this.getPossibleRaw(r);if(!this.format.minified&&i!==void 0){this.word(i);return}this.word(r.value+"m")}};Object.assign(t.prototype,e)}}});var X0=k(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.default=void 0;var hW=QT(),Mt=$i(),z0=Mt,dW=Me(),mW=m0(),yW=W0(),TW=V0(),{isExpression:gW,isFunction:xW,isStatement:bW,isClassBody:SW,isTSInterfaceBody:EW,isTSEnumMember:PW}=dW,vW=/e/i,AW=/\.0+$/,J0=/[\n\r\u2028\u2029]/,wW=/[\n\r\u2028\u2029]|\*\//;function Y0(t){return t.type==="CommentLine"||J0.test(t.value)}var{needsParens:CW}=z0,Ln=class{constructor(e,r,i,s){this.tokenContext=Mt.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=i,this._originalCode=s,this._indentRepeat=e.indent.style.length,this._inputMap=r?._inputMap,this._buf=new hW.default(r,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=Mt.TokenContext.forInitHead|Mt.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=Mt.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=Mt.TokenContext.forOfHead,null):(this.tokenContext|=Mt.TokenContext.forInHead|Mt.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=Mt.TokenContext.normal)}enterDelimited(){let e=this.tokenContext,r=this._noLineTerminatorAfterNode;return!(e&Mt.TokenContext.forInOrInitHeadAccumulate)&&r===null?()=>{}:(this._noLineTerminatorAfterNode=null,this.tokenContext=Mt.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=r,this.tokenContext=e})}generate(e){return this.format.preserveFormat&&(this.tokenMap=new mW.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){let{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){let{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e){this._appendChar(59),this._noLineTerminator=!1;return}if(this.tokenMap){let r=this._currentNode;if(r.start!=null&&r.end!=null){if(!this.tokenMap.endMatches(r,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let i=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[i[i.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){let{format:r}=this;if(!(r.compact||r.preserveFormat)){if(e)this._space();else if(this._buf.hasContent()){let i=this.getLastChar();i!==32&&i!==10&&this._space()}}}word(e,r=!1){this.tokenContext&=Mt.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&e.charCodeAt(0)===47)&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=r}number(e,r){function i(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(e),this._endsWithInteger=Number.isInteger(r)&&!i(e)&&!vW.test(e)&&!AW.test(e)&&e.charCodeAt(e.length-1)!==46}token(e,r=!1,i=0){this.tokenContext&=Mt.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,i),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,i);let s=this.getLastChar(),n=e.charCodeAt(0);(s===33&&(e==="--"||n===61)||n===43&&s===43||n===45&&s===45||n===46&&this._endsWithInteger)&&this._space(),this._append(e,r),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=Mt.TokenContext.forInOrInitHeadAccumulatePassThroughMask;let r=String.fromCharCode(e);this._maybePrintInnerComments(r),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(r);let i=this.getLastChar();(e===43&&i===43||e===45&&i===45||e===46&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,r){if(!(e<=0)){if(!r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let i=0;i<e;i++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,r){if(!e){r();return}this._catchUp("start",e),this._buf.exactSource(e,r)}source(e,r){r&&(this._catchUp(e,r),this._buf.source(e,r))}sourceWithOffset(e,r,i){!r||this.format.preserveFormat||(this._catchUp(e,r),this._buf.sourceWithOffset(e,r,i))}sourceIdentifierName(e,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,r=0){let i=this.tokenMap.findMatching(this._currentNode,e,r);i&&this._catchUpTo(i.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,r){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,r),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&e!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&e!==10&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;let r=e-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(e,r){let{format:i}=this;if(!i.preserveFormat){i.retainLines&&r!=null&&r[e]&&this.catchUp(r[e].line);return}let s=r?.[e];s!=null&&this._catchUpTo(s)}_catchUpTo({line:e,column:r,index:i}){let s=e-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,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,r,i){var s,n,a;if(!e)return;this._endsWithInnerRaw=!1;let o=e.type,l=this.format,c=l.concise;e._compact&&(l.concise=!0);let u=this[o];if(u===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(e.constructor.name)}`);let d=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let b=this._insideAux;this._insideAux=e.loc==null,this._maybeAddAuxComment(this._insideAux&&!b);let E=(s=e.extra)==null?void 0:s.parenthesized,v=E&&l.preserveFormat||E&&l.retainFunctionParens&&o==="FunctionExpression"||CW(e,d,this.tokenContext,l.preserveFormat?this._boundGetRawIdentifier:void 0);if(!v&&E&&(n=e.leadingComments)!=null&&n.length&&e.leadingComments[0].type==="CommentBlock")switch(d?.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(d.callee!==e)break;default:v=!0}let A=!1;!v&&this._noLineTerminator&&((a=e.leadingComments)!=null&&a.some(Y0)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(v=!0,A=!0);let I,_;if(!v&&(r||(r=d&&this._noLineTerminatorAfterNode===d&&z0.isLastChild(d,e)),r)){var $;($=e.trailingComments)!=null&&$.some(Y0)?gW(e)&&(v=!0):(I=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e)}v&&(this.tokenChar(40),A&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&Mt.TokenContext.forInOrInitHeadAccumulate&&(_=this.tokenContext,this.tokenContext=Mt.TokenContext.normal),I=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,d);let X=o==="Program"||o==="File"?null:e.loc;this.exactSource(X,u.bind(this,e,d)),v?(this._printTrailingComments(e,d),A&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r,_&&(this.tokenContext=_)):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,d)):this._printTrailingComments(e,d,i),this._currentNode=d,l.concise=c,this._insideAux=b,I!==void 0&&(this._noLineTerminatorAfterNode=I),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let r=e.extra;if(r?.raw!=null&&r.rawValue!=null&&e.value===r.rawValue)return r.raw}printJoin(e,r,i,s,n,a,o,l){if(!(e!=null&&e.length))return;if(i==null&&this.format.retainLines){var c;let A=(c=e[0].loc)==null?void 0:c.start.line;A!=null&&A!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent();let u={addNewlines:a,nextNodeStartLine:0},d=s?.bind(this),b=e.length;for(let A=0;A<b;A++){let I=e[A];if(I&&(r&&this._printNewline(A===0,u),this.print(I,void 0,l||0),o?.(I,A),d!=null&&(A<b-1?d(A,!1):n&&d(A,!0)),r)){var E;if((E=I.trailingComments)!=null&&E.length||(this._lastCommentLine=0),A+1===b)this.newline(1);else{var v;let _=e[A+1];u.nextNodeStartLine=((v=_.loc)==null?void 0:v.start.line)||0,this._printNewline(!0,u)}}}i&&this.dedent()}printAndIndentOnComments(e){let r=e.leadingComments&&e.leadingComments.length>0;r&&this.indent(),this.print(e),r&&this.dedent()}printBlock(e){let r=e.body;r.type!=="EmptyStatement"&&this.space(),this.print(r)}_printTrailingComments(e,r,i){let{innerComments:s,trailingComments:n}=e;s!=null&&s.length&&this._printComments(2,s,e,r,i),n!=null&&n.length&&this._printComments(2,n,e,r,i)}_printLeadingComments(e,r){let i=e.leadingComments;i!=null&&i.length&&this._printComments(0,i,e,r)}_maybePrintInnerComments(e,r){if(this._endsWithInnerRaw){var i;this.printInnerComments((i=this.tokenMap)==null?void 0:i.findMatching(this._currentNode,e,r))}this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){let r=this._currentNode,i=r.innerComments;if(!(i!=null&&i.length))return;let s=this.endsWith(32),n=this._indentInnerComments,a=this._printedComments.size;n&&this.indent(),this._printComments(1,i,r,void 0,void 0,e),s&&a!==this._printedComments.size&&this.space(),n&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,r,i,s){this.printJoin(e,!0,r??!1,void 0,void 0,s,void 0,i)}printList(e,r,i,s,n,a){this.printJoin(e,i,s,n??IW,r,void 0,a)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;let r=this.tokenMap.findLastIndex(this._currentNode,i=>this.tokenMap.matchesOriginal(i,e));return r<=0?null:this.tokenMap.matchesOriginal(this._tokens[r-1],",")}_printNewline(e,r){let i=this.format;if(i.retainLines||i.compact)return;if(i.concise){this.space();return}if(!e)return;let s=r.nextNodeStartLine,n=this._lastCommentLine;if(s>0&&n>0){let a=s-n;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,r){if(e.ignore||this._printedComments.has(e))return 0;if(this._noLineTerminator&&wW.test(e.value))return 2;if(r&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,s=>s.value===e.value);if(i&&i.start>r.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,r){let i=this._noLineTerminator,s=e.type==="CommentBlock",n=s&&r!==1&&!this._noLineTerminator;n&&this._buf.hasContent()&&r!==2&&this.newline(1);let a=this.getLastChar();a!==91&&a!==123&&a!==40&&this.space();let o;if(s){if(o=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var l;let c=(l=e.loc)==null?void 0:l.start.column;if(c){let u=new RegExp("\\n\\s{1,"+c+"}","g");o=o.replace(u,`
26
26
  `)}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
27
27
  `);else{let u=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(u+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
28
- ${" ".repeat(u)}`)}}}else i?o=`/*${e.value}*/`:o=`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){let{_printSemicolonBeforeNextToken:c,_printSemicolonBeforeNextNode:u}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(o,s),this._printSemicolonBeforeNextNode=u,this._printSemicolonBeforeNextToken=c}else this.source("start",e.loc),this._append(o,s);!s&&!i&&this.newline(1,!0),n&&r!==3&&this.newline(1)}_printComments(e,r,i,s,n=0,a){let o=i.loc,l=r.length,c=!!o,u=c?o.start.line:0,d=c?o.end.line:0,b=0,E=0,v=this._noLineTerminator?function(){}:this.newline.bind(this);for(let A=0;A<l;A++){let I=r[A],_=this._shouldPrintComment(I,a);if(_===2){c=!1;break}if(c&&I.loc&&_===1){let $=I.loc.start.line,X=I.loc.end.line;if(e===0){let N=0;A===0?this._buf.hasContent()&&(I.type==="CommentLine"||$!==X)&&(N=E=1):N=$-b,b=X,v(N),this._printComment(I,1),A+1===l&&(v(Math.max(u-b,E)),b=u)}else if(e===1){let N=$-(A===0?u:b);b=X,v(N),this._printComment(I,1),A+1===l&&(v(Math.min(1,d-b)),b=d)}else{let N=$-(A===0?d-n:b);b=X,v(N),this._printComment(I,1)}}else{if(c=!1,_!==1)continue;if(l===1){let $=I.loc?I.loc.start.line===I.loc.end.line:!J0.test(I.value),X=$&&!bW(i)&&!SW(s)&&!EW(s)&&!PW(i);e===0?this._printComment(I,X&&i.type!=="ObjectExpression"||$&&xW(s,{body:i})?1:0):X&&e===2?this._printComment(I,1):this._printComment(I,0)}else e===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(I,A===0?2:A===l-1?3:0):this._printComment(I,0)}}e===2&&c&&b&&(this._lastCommentLine=b)}};Object.assign(Ln.prototype,yW);(0,TW.addDeprecatedGenerators)(Ln);var jae=Do.default=Ln;function IW(t,e){this.token(",",!1,t),e||this.space()}});var eg=k(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.default=void 0;vs.generate=Z0;var H0=GT(),G0=X0();function Q0(t,e,r){if(e.experimental_preserveFormat){if(typeof t!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!e.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(e.compact&&e.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(e.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(e.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 attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}let i={auxiliaryCommentBefore:e.auxiliaryCommentBefore,auxiliaryCommentAfter:e.auxiliaryCommentAfter,shouldPrintComment:e.shouldPrintComment,preserveFormat:e.experimental_preserveFormat,retainLines:e.retainLines,retainFunctionParens:e.retainFunctionParens,comments:e.comments==null||e.comments,compact:e.compact,minified:e.minified,concise:e.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},e.jsescOption),topicToken:e.topicToken,importAttributesKeyword:e.importAttributesKeyword};{var s;i.decoratorsBeforeExport=e.decoratorsBeforeExport,i.jsescOption.json=e.jsonCompatibleStrings,i.recordAndTupleSyntaxType=(s=e.recordAndTupleSyntaxType)!=null?s:"hash"}i.minified?(i.compact=!0,i.shouldPrintComment=i.shouldPrintComment||(()=>i.comments)):i.shouldPrintComment=i.shouldPrintComment||(l=>i.comments||l.includes("@license")||l.includes("@preserve")),i.compact==="auto"&&(i.compact=typeof t=="string"&&t.length>5e5,i.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${e.filename} as it exceeds the max of 500KB.`)),(i.compact||i.preserveFormat)&&(i.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:n,auxiliaryCommentAfter:a,shouldPrintComment:o}=i;return n&&!o(n)&&(i.auxiliaryCommentBefore=void 0),a&&!o(a)&&(i.auxiliaryCommentAfter=void 0),i}vs.CodeGenerator=class{constructor(e,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=Q0(i,r,e),this._map=r.sourceMaps?new H0.default(r,i):null}generate(){return new G0.default(this._format,this._map).generate(this._ast)}};function Z0(t,e={},r){let i=Q0(r,e,t),s=e.sourceMaps?new H0.default(e,r):null;return new G0.default(i,s,t.tokens,typeof r=="string"?r:null).generate(t)}var $ae=vs.default=Z0});var tg=k(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.find=NW;pr.findParent=_W;pr.getAncestry=BW;pr.getDeepestCommonAncestorFrom=FW;pr.getEarliestCommonAncestorFrom=MW;pr.getFunctionParent=DW;pr.getStatementParent=LW;pr.inType=qW;pr.isAncestor=jW;pr.isDescendant=RW;var kW=Me(),{VISITOR_KEYS:OW}=kW;function _W(t){let e=this;for(;e=e.parentPath;)if(t(e))return e;return null}function NW(t){let e=this;do if(t(e))return e;while(e=e.parentPath);return null}function DW(){return this.findParent(t=>t.isFunction())}function LW(){let t=this;do{if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())break;t=t.parentPath}while(t);if(t&&(t.isProgram()||t.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return t}function MW(t){return this.getDeepestCommonAncestorFrom(t,function(e,r,i){let s,n=OW[e.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 FW(t,e){if(!t.length)return this;if(t.length===1)return t[0];let r=1/0,i,s,n=t.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 e?e(s,i,n):s;throw new Error("Couldn't find intersection")}function BW(){let t=this,e=[];do e.push(t);while(t=t.parentPath);return e}function jW(t){return t.isDescendant(this)}function RW(t){return!!this.findParent(e=>e===t)}function qW(...t){let e=this;for(;e;){if(t.includes(e.node.type))return!0;e=e.parentPath}return!1}});var gf=k(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.createUnionType=VW;var $W=Me(),{createFlowUnionType:rg,createTSUnionType:ig,createUnionTypeAnnotation:UW,isFlowType:KW,isTSType:WW}=$W;function VW(t){{if(t.every(e=>KW(e)))return rg?rg(t):UW(t);if(t.every(e=>WW(e))&&ig)return ig(t)}}});var lg=k(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.default=HW;var YW=Me(),ng=gf(),{BOOLEAN_NUMBER_BINARY_OPERATORS:zW,createTypeAnnotationBasedOnTypeof:JW,numberTypeAnnotation:ag,voidTypeAnnotation:XW}=YW;function HW(t){if(!this.isReferenced())return;let e=this.scope.getBinding(t.name);if(e)return e.identifier.typeAnnotation?e.identifier.typeAnnotation:GW(e,this,t.name);if(t.name==="undefined")return XW();if(t.name==="NaN"||t.name==="Infinity")return ag();t.name}function GW(t,e,r){let i=[],s=[],n=sg(t,e,s),a=og(t,e,r);if(a){let o=sg(t,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,ng.createUnionType)(i)}function sg(t,e,r){let i=t.constantViolations.slice();return i.unshift(t.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(e);return r&&n==="unknown"&&r.push(s),n==="before"})}function QW(t,e){let r=e.node.operator,i=e.get("right").resolve(),s=e.get("left").resolve(),n;if(s.isIdentifier({name:t})?n=i:i.isIdentifier({name:t})&&(n=s),n)return r==="==="?n.getTypeAnnotation():zW.includes(r)?ag():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:t})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return JW(l)}function ZW(t,e,r){let i;for(;i=e.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return e.key==="test"?void 0:i;if(i.isFunction()&&i.parentPath.scope.getBinding(r)!==t)return;e=i}}function og(t,e,r){let i=ZW(t,e,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=QW(r,l);c&&a.push(c)}}return a.length?{typeAnnotation:(0,ng.createUnionType)(a),ifStatement:i}:og(t,i,r)}});var yg=k(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.ArrayExpression=hg;Je.AssignmentExpression=EV;Je.BinaryExpression=TV;Je.BooleanLiteral=wV;Je.CallExpression=MV;Je.ConditionalExpression=xV;Je.ClassDeclaration=Je.ClassExpression=Je.FunctionDeclaration=Je.ArrowFunctionExpression=Je.FunctionExpression=OV;Object.defineProperty(Je,"Identifier",{enumerable:!0,get:function(){return tV.default}});Je.LogicalExpression=gV;Je.NewExpression=dV;Je.NullLiteral=CV;Je.NumericLiteral=AV;Je.ObjectExpression=kV;Je.ParenthesizedExpression=SV;Je.RegExpLiteral=IV;Je.RestElement=dg;Je.SequenceExpression=bV;Je.StringLiteral=vV;Je.TSAsExpression=fg;Je.TSNonNullExpression=hV;Je.TaggedTemplateExpression=FV;Je.TemplateLiteral=mV;Je.TypeCastExpression=pg;Je.UnaryExpression=yV;Je.UpdateExpression=PV;Je.VariableDeclarator=fV;var eV=Me(),tV=lg(),ug=gf(),{BOOLEAN_BINARY_OPERATORS:rV,BOOLEAN_UNARY_OPERATORS:iV,NUMBER_BINARY_OPERATORS:sV,NUMBER_UNARY_OPERATORS:nV,STRING_UNARY_OPERATORS:aV,anyTypeAnnotation:cg,arrayTypeAnnotation:bf,booleanTypeAnnotation:Sf,buildMatchMemberExpression:Lo,genericTypeAnnotation:pi,identifier:Ui,nullLiteralTypeAnnotation:oV,numberTypeAnnotation:As,stringTypeAnnotation:Ki,tupleTypeAnnotation:lV,unionTypeAnnotation:cV,voidTypeAnnotation:uV,isIdentifier:pV}=eV;function fV(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function pg(t){return t.typeAnnotation}pg.validParent=!0;function fg(t){return t.typeAnnotation}fg.validParent=!0;function hV(){return this.get("expression").getTypeAnnotation()}function dV(t){if(t.callee.type==="Identifier")return pi(t.callee)}function mV(){return Ki()}function yV(t){let e=t.operator;if(e==="void")return uV();if(nV.includes(e))return As();if(aV.includes(e))return Ki();if(iV.includes(e))return Sf()}function TV(t){let e=t.operator;if(sV.includes(e))return As();if(rV.includes(e))return Sf();if(e==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?As():i.isBaseType("string")||r.isBaseType("string")?Ki():cV([Ki(),As()])}}function gV(){let t=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,ug.createUnionType)(t)}function xV(){let t=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,ug.createUnionType)(t)}function bV(){return this.get("expressions").pop().getTypeAnnotation()}function SV(){return this.get("expression").getTypeAnnotation()}function EV(){return this.get("right").getTypeAnnotation()}function PV(t){let e=t.operator;if(e==="++"||e==="--")return As()}function vV(){return Ki()}function AV(){return As()}function wV(){return Sf()}function CV(){return oV()}function IV(){return pi(Ui("RegExp"))}function kV(){return pi(Ui("Object"))}function hg(){return pi(Ui("Array"))}function dg(){return hg()}dg.validParent=!0;function OV(){return pi(Ui("Function"))}var _V=Lo("Array.from"),NV=Lo("Object.keys"),DV=Lo("Object.values"),LV=Lo("Object.entries");function MV(){let{callee:t}=this.node;return NV(t)?bf(Ki()):_V(t)||DV(t)||pV(t,{name:"Array"})?bf(cg()):LV(t)?bf(lV([Ki(),cg()])):mg(this.get("callee"))}function FV(){return mg(this.get("tag"))}function mg(t){if(t=t.resolve(),t.isFunction()){let{node:e}=t;if(e.async)return e.generator?pi(Ui("AsyncIterator")):pi(Ui("Promise"));if(e.generator)return pi(Ui("Iterator"));if(t.node.returnType)return t.node.returnType}}});var Sg=k(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi._getTypeAnnotation=bg;fi.baseTypeStrictlyMatches=sY;fi.couldBeBaseType=iY;fi.getTypeAnnotation=tY;fi.isBaseType=rY;fi.isGenericType=nY;var Tg=yg(),BV=Me(),{anyTypeAnnotation:xg,isAnyTypeAnnotation:Mo,isArrayTypeAnnotation:jV,isBooleanTypeAnnotation:RV,isEmptyTypeAnnotation:qV,isFlowBaseAnnotation:$V,isGenericTypeAnnotation:UV,isIdentifier:gg,isMixedTypeAnnotation:KV,isNumberTypeAnnotation:WV,isStringTypeAnnotation:VV,isTSArrayType:YV,isTSTypeAnnotation:zV,isTSTypeReference:JV,isTupleTypeAnnotation:XV,isTypeAnnotation:HV,isUnionTypeAnnotation:GV,isVoidTypeAnnotation:QV,stringTypeAnnotation:ZV,voidTypeAnnotation:eY}=BV;function tY(){let t=this.getData("typeAnnotation");return t!=null||(t=bg.call(this)||xg(),(HV(t)||zV(t))&&(t=t.typeAnnotation),this.setData("typeAnnotation",t)),t}var Ef=new WeakSet;function bg(){let t=this.node;if(!t)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?ZV():r.key==="left"&&i.isForOfStatement()?xg():eY()}else return;if(t.typeAnnotation)return t.typeAnnotation;if(!Ef.has(t)){Ef.add(t);try{var e;let r=Tg[t.type];if(r)return r.call(this,t);if(r=Tg[this.parentPath.type],(e=r)!=null&&e.validParent)return this.parentPath.getTypeAnnotation()}finally{Ef.delete(t)}}}function rY(t,e){return Pf(t,this.getTypeAnnotation(),e)}function Pf(t,e,r){if(t==="string")return VV(e);if(t==="number")return WV(e);if(t==="boolean")return RV(e);if(t==="any")return Mo(e);if(t==="mixed")return KV(e);if(t==="empty")return qV(e);if(t==="void")return QV(e);if(r)return!1;throw new Error(`Unknown base type ${t}`)}function iY(t){let e=this.getTypeAnnotation();if(Mo(e))return!0;if(GV(e)){for(let r of e.types)if(Mo(r)||Pf(t,r,!0))return!0;return!1}else return Pf(t,e,!0)}function sY(t){let e=this.getTypeAnnotation(),r=t.getTypeAnnotation();return!Mo(e)&&$V(e)?r.type===e.type:!1}function nY(t){let e=this.getTypeAnnotation();return t==="Array"&&(YV(e)||jV(e)||XV(e))?!0:UV(e)&&gg(e.id,{name:t})||JV(e)&&gg(e.typeName,{name:t})}});var vg=k((Jae,vf)=>{var Bo=process||{},Eg=Bo.argv||[],Fo=Bo.env||{},aY=!(Fo.NO_COLOR||Eg.includes("--no-color"))&&(!!Fo.FORCE_COLOR||Eg.includes("--color")||Bo.platform==="win32"||(Bo.stdout||{}).isTTY&&Fo.TERM!=="dumb"||!!Fo.CI),oY=(t,e,r=t)=>i=>{let s=""+i,n=s.indexOf(e,t.length);return~n?t+lY(s,e,r,n)+e:t+s+e},lY=(t,e,r,i)=>{let s="",n=0;do s+=t.substring(n,i)+r,n=i+e.length,i=t.indexOf(e,n);while(~i);return s+t.substring(n)},Pg=(t=aY)=>{let e=t?oY:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};vf.exports=Pg();vf.exports.createColors=Pg});var Ag=k(jo=>{Object.defineProperty(jo,"__esModule",{value:!0});jo.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;jo.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!!(t[3]||t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}});var wf=k(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});var Af=vg(),wg=Ag(),Cg=yn();function cY(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:Af.isColorSupported}var Ro=(t,e)=>r=>t(e(r));function Og(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:Ro(Ro(t.white,t.bgRed),t.bold),gutter:t.gray,marker:Ro(t.red,t.bold),message:Ro(t.red,t.bold),reset:t.reset}}var uY=Og(Af.createColors(!0)),pY=Og(Af.createColors(!1));function _g(t){return t?uY:pY}var fY=new Set(["as","async","from","get","of","set"]),hY=/\r\n|[\n\r\u2028\u2029]/,dY=/^[()[\]{}]$/,Ng;{let t=/^[a-z][\w-]*$/i,e=function(r,i,s){if(r.type==="name"){if(Cg.isKeyword(r.value)||Cg.isStrictReservedWord(r.value,!0)||fY.has(r.value))return"keyword";if(t.test(r.value)&&(s[i-1]==="<"||s.slice(i-2,i)==="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&dY.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};Ng=function*(r){let i;for(;i=wg.default.exec(r);){let s=wg.matchToToken(i);yield{type:e(s,i.index,r),value:s.value}}}}function Dg(t){if(t==="")return"";let e=_g(!0),r="";for(let{type:i,value:s}of Ng(t))i in e?r+=s.split(hY).map(n=>e[i](n)).join(`
28
+ ${" ".repeat(u)}`)}}}else i?o=`/*${e.value}*/`:o=`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){let{_printSemicolonBeforeNextToken:c,_printSemicolonBeforeNextNode:u}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(o,s),this._printSemicolonBeforeNextNode=u,this._printSemicolonBeforeNextToken=c}else this.source("start",e.loc),this._append(o,s);!s&&!i&&this.newline(1,!0),n&&r!==3&&this.newline(1)}_printComments(e,r,i,s,n=0,a){let o=i.loc,l=r.length,c=!!o,u=c?o.start.line:0,d=c?o.end.line:0,b=0,E=0,v=this._noLineTerminator?function(){}:this.newline.bind(this);for(let A=0;A<l;A++){let I=r[A],_=this._shouldPrintComment(I,a);if(_===2){c=!1;break}if(c&&I.loc&&_===1){let $=I.loc.start.line,X=I.loc.end.line;if(e===0){let N=0;A===0?this._buf.hasContent()&&(I.type==="CommentLine"||$!==X)&&(N=E=1):N=$-b,b=X,v(N),this._printComment(I,1),A+1===l&&(v(Math.max(u-b,E)),b=u)}else if(e===1){let N=$-(A===0?u:b);b=X,v(N),this._printComment(I,1),A+1===l&&(v(Math.min(1,d-b)),b=d)}else{let N=$-(A===0?d-n:b);b=X,v(N),this._printComment(I,1)}}else{if(c=!1,_!==1)continue;if(l===1){let $=I.loc?I.loc.start.line===I.loc.end.line:!J0.test(I.value),X=$&&!bW(i)&&!SW(s)&&!EW(s)&&!PW(i);e===0?this._printComment(I,X&&i.type!=="ObjectExpression"||$&&xW(s,{body:i})?1:0):X&&e===2?this._printComment(I,1):this._printComment(I,0)}else e===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(I,A===0?2:A===l-1?3:0):this._printComment(I,0)}}e===2&&c&&b&&(this._lastCommentLine=b)}};Object.assign(Ln.prototype,yW);(0,TW.addDeprecatedGenerators)(Ln);var jae=Do.default=Ln;function IW(t,e){this.token(",",!1,t),e||this.space()}});var eg=k(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.default=void 0;vs.generate=Z0;var H0=GT(),G0=X0();function Q0(t,e,r){if(e.experimental_preserveFormat){if(typeof t!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!e.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(e.compact&&e.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(e.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(e.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 attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}let i={auxiliaryCommentBefore:e.auxiliaryCommentBefore,auxiliaryCommentAfter:e.auxiliaryCommentAfter,shouldPrintComment:e.shouldPrintComment,preserveFormat:e.experimental_preserveFormat,retainLines:e.retainLines,retainFunctionParens:e.retainFunctionParens,comments:e.comments==null||e.comments,compact:e.compact,minified:e.minified,concise:e.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},e.jsescOption),topicToken:e.topicToken,importAttributesKeyword:e.importAttributesKeyword};{var s;i.decoratorsBeforeExport=e.decoratorsBeforeExport,i.jsescOption.json=e.jsonCompatibleStrings,i.recordAndTupleSyntaxType=(s=e.recordAndTupleSyntaxType)!=null?s:"hash"}i.minified?(i.compact=!0,i.shouldPrintComment=i.shouldPrintComment||(()=>i.comments)):i.shouldPrintComment=i.shouldPrintComment||(l=>i.comments||l.includes("@license")||l.includes("@preserve")),i.compact==="auto"&&(i.compact=typeof t=="string"&&t.length>5e5,i.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${e.filename} as it exceeds the max of 500KB.`)),(i.compact||i.preserveFormat)&&(i.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:n,auxiliaryCommentAfter:a,shouldPrintComment:o}=i;return n&&!o(n)&&(i.auxiliaryCommentBefore=void 0),a&&!o(a)&&(i.auxiliaryCommentAfter=void 0),i}vs.CodeGenerator=class{constructor(e,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=Q0(i,r,e),this._map=r.sourceMaps?new H0.default(r,i):null}generate(){return new G0.default(this._format,this._map).generate(this._ast)}};function Z0(t,e={},r){let i=Q0(r,e,t),s=e.sourceMaps?new H0.default(e,r):null;return new G0.default(i,s,t.tokens,typeof r=="string"?r:null).generate(t)}var $ae=vs.default=Z0});var tg=k(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.find=NW;pr.findParent=_W;pr.getAncestry=BW;pr.getDeepestCommonAncestorFrom=FW;pr.getEarliestCommonAncestorFrom=MW;pr.getFunctionParent=DW;pr.getStatementParent=LW;pr.inType=qW;pr.isAncestor=jW;pr.isDescendant=RW;var kW=Me(),{VISITOR_KEYS:OW}=kW;function _W(t){let e=this;for(;e=e.parentPath;)if(t(e))return e;return null}function NW(t){let e=this;do if(t(e))return e;while(e=e.parentPath);return null}function DW(){return this.findParent(t=>t.isFunction())}function LW(){let t=this;do{if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())break;t=t.parentPath}while(t);if(t&&(t.isProgram()||t.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return t}function MW(t){return this.getDeepestCommonAncestorFrom(t,function(e,r,i){let s,n=OW[e.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 FW(t,e){if(!t.length)return this;if(t.length===1)return t[0];let r=1/0,i,s,n=t.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 e?e(s,i,n):s;throw new Error("Couldn't find intersection")}function BW(){let t=this,e=[];do e.push(t);while(t=t.parentPath);return e}function jW(t){return t.isDescendant(this)}function RW(t){return!!this.findParent(e=>e===t)}function qW(...t){let e=this;for(;e;){if(t.includes(e.node.type))return!0;e=e.parentPath}return!1}});var gf=k(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.createUnionType=VW;var $W=Me(),{createFlowUnionType:rg,createTSUnionType:ig,createUnionTypeAnnotation:UW,isFlowType:KW,isTSType:WW}=$W;function VW(t){{if(t.every(e=>KW(e)))return rg?rg(t):UW(t);if(t.every(e=>WW(e))&&ig)return ig(t)}}});var lg=k(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.default=HW;var YW=Me(),ng=gf(),{BOOLEAN_NUMBER_BINARY_OPERATORS:zW,createTypeAnnotationBasedOnTypeof:JW,numberTypeAnnotation:ag,voidTypeAnnotation:XW}=YW;function HW(t){if(!this.isReferenced())return;let e=this.scope.getBinding(t.name);if(e)return e.identifier.typeAnnotation?e.identifier.typeAnnotation:GW(e,this,t.name);if(t.name==="undefined")return XW();if(t.name==="NaN"||t.name==="Infinity")return ag();t.name}function GW(t,e,r){let i=[],s=[],n=sg(t,e,s),a=og(t,e,r);if(a){let o=sg(t,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,ng.createUnionType)(i)}function sg(t,e,r){let i=t.constantViolations.slice();return i.unshift(t.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(e);return r&&n==="unknown"&&r.push(s),n==="before"})}function QW(t,e){let r=e.node.operator,i=e.get("right").resolve(),s=e.get("left").resolve(),n;if(s.isIdentifier({name:t})?n=i:i.isIdentifier({name:t})&&(n=s),n)return r==="==="?n.getTypeAnnotation():zW.includes(r)?ag():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:t})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return JW(l)}function ZW(t,e,r){let i;for(;i=e.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return e.key==="test"?void 0:i;if(i.isFunction()&&i.parentPath.scope.getBinding(r)!==t)return;e=i}}function og(t,e,r){let i=ZW(t,e,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=QW(r,l);c&&a.push(c)}}return a.length?{typeAnnotation:(0,ng.createUnionType)(a),ifStatement:i}:og(t,i,r)}});var yg=k(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.ArrayExpression=hg;Xe.AssignmentExpression=EV;Xe.BinaryExpression=TV;Xe.BooleanLiteral=wV;Xe.CallExpression=MV;Xe.ConditionalExpression=xV;Xe.ClassDeclaration=Xe.ClassExpression=Xe.FunctionDeclaration=Xe.ArrowFunctionExpression=Xe.FunctionExpression=OV;Object.defineProperty(Xe,"Identifier",{enumerable:!0,get:function(){return tV.default}});Xe.LogicalExpression=gV;Xe.NewExpression=dV;Xe.NullLiteral=CV;Xe.NumericLiteral=AV;Xe.ObjectExpression=kV;Xe.ParenthesizedExpression=SV;Xe.RegExpLiteral=IV;Xe.RestElement=dg;Xe.SequenceExpression=bV;Xe.StringLiteral=vV;Xe.TSAsExpression=fg;Xe.TSNonNullExpression=hV;Xe.TaggedTemplateExpression=FV;Xe.TemplateLiteral=mV;Xe.TypeCastExpression=pg;Xe.UnaryExpression=yV;Xe.UpdateExpression=PV;Xe.VariableDeclarator=fV;var eV=Me(),tV=lg(),ug=gf(),{BOOLEAN_BINARY_OPERATORS:rV,BOOLEAN_UNARY_OPERATORS:iV,NUMBER_BINARY_OPERATORS:sV,NUMBER_UNARY_OPERATORS:nV,STRING_UNARY_OPERATORS:aV,anyTypeAnnotation:cg,arrayTypeAnnotation:bf,booleanTypeAnnotation:Sf,buildMatchMemberExpression:Lo,genericTypeAnnotation:pi,identifier:Ui,nullLiteralTypeAnnotation:oV,numberTypeAnnotation:As,stringTypeAnnotation:Ki,tupleTypeAnnotation:lV,unionTypeAnnotation:cV,voidTypeAnnotation:uV,isIdentifier:pV}=eV;function fV(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function pg(t){return t.typeAnnotation}pg.validParent=!0;function fg(t){return t.typeAnnotation}fg.validParent=!0;function hV(){return this.get("expression").getTypeAnnotation()}function dV(t){if(t.callee.type==="Identifier")return pi(t.callee)}function mV(){return Ki()}function yV(t){let e=t.operator;if(e==="void")return uV();if(nV.includes(e))return As();if(aV.includes(e))return Ki();if(iV.includes(e))return Sf()}function TV(t){let e=t.operator;if(sV.includes(e))return As();if(rV.includes(e))return Sf();if(e==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?As():i.isBaseType("string")||r.isBaseType("string")?Ki():cV([Ki(),As()])}}function gV(){let t=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,ug.createUnionType)(t)}function xV(){let t=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,ug.createUnionType)(t)}function bV(){return this.get("expressions").pop().getTypeAnnotation()}function SV(){return this.get("expression").getTypeAnnotation()}function EV(){return this.get("right").getTypeAnnotation()}function PV(t){let e=t.operator;if(e==="++"||e==="--")return As()}function vV(){return Ki()}function AV(){return As()}function wV(){return Sf()}function CV(){return oV()}function IV(){return pi(Ui("RegExp"))}function kV(){return pi(Ui("Object"))}function hg(){return pi(Ui("Array"))}function dg(){return hg()}dg.validParent=!0;function OV(){return pi(Ui("Function"))}var _V=Lo("Array.from"),NV=Lo("Object.keys"),DV=Lo("Object.values"),LV=Lo("Object.entries");function MV(){let{callee:t}=this.node;return NV(t)?bf(Ki()):_V(t)||DV(t)||pV(t,{name:"Array"})?bf(cg()):LV(t)?bf(lV([Ki(),cg()])):mg(this.get("callee"))}function FV(){return mg(this.get("tag"))}function mg(t){if(t=t.resolve(),t.isFunction()){let{node:e}=t;if(e.async)return e.generator?pi(Ui("AsyncIterator")):pi(Ui("Promise"));if(e.generator)return pi(Ui("Iterator"));if(t.node.returnType)return t.node.returnType}}});var Sg=k(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi._getTypeAnnotation=bg;fi.baseTypeStrictlyMatches=sY;fi.couldBeBaseType=iY;fi.getTypeAnnotation=tY;fi.isBaseType=rY;fi.isGenericType=nY;var Tg=yg(),BV=Me(),{anyTypeAnnotation:xg,isAnyTypeAnnotation:Mo,isArrayTypeAnnotation:jV,isBooleanTypeAnnotation:RV,isEmptyTypeAnnotation:qV,isFlowBaseAnnotation:$V,isGenericTypeAnnotation:UV,isIdentifier:gg,isMixedTypeAnnotation:KV,isNumberTypeAnnotation:WV,isStringTypeAnnotation:VV,isTSArrayType:YV,isTSTypeAnnotation:zV,isTSTypeReference:JV,isTupleTypeAnnotation:XV,isTypeAnnotation:HV,isUnionTypeAnnotation:GV,isVoidTypeAnnotation:QV,stringTypeAnnotation:ZV,voidTypeAnnotation:eY}=BV;function tY(){let t=this.getData("typeAnnotation");return t!=null||(t=bg.call(this)||xg(),(HV(t)||zV(t))&&(t=t.typeAnnotation),this.setData("typeAnnotation",t)),t}var Ef=new WeakSet;function bg(){let t=this.node;if(!t)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?ZV():r.key==="left"&&i.isForOfStatement()?xg():eY()}else return;if(t.typeAnnotation)return t.typeAnnotation;if(!Ef.has(t)){Ef.add(t);try{var e;let r=Tg[t.type];if(r)return r.call(this,t);if(r=Tg[this.parentPath.type],(e=r)!=null&&e.validParent)return this.parentPath.getTypeAnnotation()}finally{Ef.delete(t)}}}function rY(t,e){return Pf(t,this.getTypeAnnotation(),e)}function Pf(t,e,r){if(t==="string")return VV(e);if(t==="number")return WV(e);if(t==="boolean")return RV(e);if(t==="any")return Mo(e);if(t==="mixed")return KV(e);if(t==="empty")return qV(e);if(t==="void")return QV(e);if(r)return!1;throw new Error(`Unknown base type ${t}`)}function iY(t){let e=this.getTypeAnnotation();if(Mo(e))return!0;if(GV(e)){for(let r of e.types)if(Mo(r)||Pf(t,r,!0))return!0;return!1}else return Pf(t,e,!0)}function sY(t){let e=this.getTypeAnnotation(),r=t.getTypeAnnotation();return!Mo(e)&&$V(e)?r.type===e.type:!1}function nY(t){let e=this.getTypeAnnotation();return t==="Array"&&(YV(e)||jV(e)||XV(e))?!0:UV(e)&&gg(e.id,{name:t})||JV(e)&&gg(e.typeName,{name:t})}});var vg=k((Jae,vf)=>{var Bo=process||{},Eg=Bo.argv||[],Fo=Bo.env||{},aY=!(Fo.NO_COLOR||Eg.includes("--no-color"))&&(!!Fo.FORCE_COLOR||Eg.includes("--color")||Bo.platform==="win32"||(Bo.stdout||{}).isTTY&&Fo.TERM!=="dumb"||!!Fo.CI),oY=(t,e,r=t)=>i=>{let s=""+i,n=s.indexOf(e,t.length);return~n?t+lY(s,e,r,n)+e:t+s+e},lY=(t,e,r,i)=>{let s="",n=0;do s+=t.substring(n,i)+r,n=i+e.length,i=t.indexOf(e,n);while(~i);return s+t.substring(n)},Pg=(t=aY)=>{let e=t?oY:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};vf.exports=Pg();vf.exports.createColors=Pg});var Ag=k(jo=>{Object.defineProperty(jo,"__esModule",{value:!0});jo.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;jo.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!!(t[3]||t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}});var wf=k(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});var Af=vg(),wg=Ag(),Cg=yn();function cY(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:Af.isColorSupported}var Ro=(t,e)=>r=>t(e(r));function Og(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:Ro(Ro(t.white,t.bgRed),t.bold),gutter:t.gray,marker:Ro(t.red,t.bold),message:Ro(t.red,t.bold),reset:t.reset}}var uY=Og(Af.createColors(!0)),pY=Og(Af.createColors(!1));function _g(t){return t?uY:pY}var fY=new Set(["as","async","from","get","of","set"]),hY=/\r\n|[\n\r\u2028\u2029]/,dY=/^[()[\]{}]$/,Ng;{let t=/^[a-z][\w-]*$/i,e=function(r,i,s){if(r.type==="name"){if(Cg.isKeyword(r.value)||Cg.isStrictReservedWord(r.value,!0)||fY.has(r.value))return"keyword";if(t.test(r.value)&&(s[i-1]==="<"||s.slice(i-2,i)==="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&dY.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};Ng=function*(r){let i;for(;i=wg.default.exec(r);){let s=wg.matchToToken(i);yield{type:e(s,i.index,r),value:s.value}}}}function Dg(t){if(t==="")return"";let e=_g(!0),r="";for(let{type:i,value:s}of Ng(t))i in e?r+=s.split(hY).map(n=>e[i](n)).join(`
29
29
  `):r+=s;return r}var Ig=!1,kg=/\r\n|[\n\r\u2028\u2029]/;function mY(t,e,r){let i=Object.assign({column:0,line:-1},t.start),s=Object.assign({},i,t.end),{linesAbove:n=2,linesBelow:a=3}=r||{},o=i.line,l=i.column,c=s.line,u=s.column,d=Math.max(o-(n+1),0),b=Math.min(e.length,c+a);o===-1&&(d=0),c===-1&&(b=e.length);let E=c-o,v={};if(E)for(let A=0;A<=E;A++){let I=A+o;if(!l)v[I]=!0;else if(A===0){let _=e[I-1].length;v[I]=[l,_-l+1]}else if(A===E)v[I]=[0,u];else{let _=e[I-A].length;v[I]=[0,_]}}else l===u?l?v[o]=[l,0]:v[o]=!0:v[o]=[l,u-l];return{start:d,end:b,markerLines:v}}function Lg(t,e,r={}){let i=r.forceColor||cY()&&r.highlightCode,s=_g(i),n=t.split(kg),{start:a,end:o,markerLines:l}=mY(e,n,r),c=e.start&&typeof e.start.column=="number",u=String(o).length,b=(i?Dg(t):t).split(kg,o).slice(a,o).map((E,v)=>{let A=a+1+v,_=` ${` ${A}`.slice(-u)} |`,$=l[A],X=!l[A+1];if($){let N="";if(Array.isArray($)){let U=E.slice(0,Math.max($[0]-1,0)).replace(/[^\t]/g," "),W=$[1]||1;N=[`
30
30
  `,s.gutter(_.replace(/\d/g," "))," ",U,s.marker("^").repeat(W)].join(""),X&&r.message&&(N+=" "+s.message(r.message))}return[s.marker(">"),s.gutter(_),E.length>0?` ${E}`:"",N].join("")}else return` ${s.gutter(_)}${E.length>0?` ${E}`:""}`}).join(`
31
31
  `);return r.message&&!c&&(b=`${" ".repeat(u+1)}${r.message}
@@ -53,7 +53,7 @@ ${e}`,i}}}});var xx=k(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{v
53
53
 
54
54
  return ${Vi(i)};
55
55
  })(${vx(this.node)})
56
- `;return this.replaceWith(c)[0].get("arguments.0")}function dX(t){let e=t.params.findIndex(r=>VJ(r)||YJ(r));return e===-1?t.params.length:e}});var Dx=k(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt._guessExecutionStatusRelativeTo=MX;dt._resolve=Nx;dt.canHaveVariableDeclarationOrExpression=CX;dt.canSwapBetweenExpressionAndStatement=IX;dt.getSource=NX;dt.isCompletionRecord=kX;dt.isConstantExpression=RX;dt.isInStrictMode=qX;dt.isNodeType=wX;dt.isStatementOrBlock=OX;dt.isStatic=AX;dt.matchesPattern=vX;dt.referencesImport=_X;dt.resolve=jX;dt.willIMaybeExecuteBefore=DX;var mX=Me(),{STATEMENT_OR_BLOCK_KEYS:yX,VISITOR_KEYS:TX,isBlockStatement:_x,isExpression:gX,isIdentifier:xX,isLiteral:bX,isStringLiteral:SX,isType:EX,matchesPattern:PX}=mX;function vX(t,e){return PX(this.node,t,e)}dt.has=function(e){var r;let i=(r=this.node)==null?void 0:r[e];return i&&Array.isArray(i)?!!i.length:!!i};function AX(){return this.scope.isStatic(this.node)}dt.is=dt.has,dt.isnt=function(e){return!this.has(e)},dt.equals=function(e,r){return this.node[e]===r};function wX(t){return EX(this.type,t)}function CX(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function IX(t){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?_x(t):this.isBlockStatement()?gX(t):!1}function kX(t){let e=this,r=!0;do{let{type:i,container:s}=e;if(!r&&(e.isFunction()||i==="StaticBlock"))return!!t;if(r=!1,Array.isArray(s)&&e.key!==s.length-1)return!1}while((e=e.parentPath)&&!e.isProgram()&&!e.isDoExpression());return!0}function OX(){return this.parentPath.isLabeledStatement()||_x(this.container)?!1:yX.includes(this.key)}function _X(t,e){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===e||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?SX(this.node.property,{value:e}):this.node.property.name===e)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(t,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===t){if(!e)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&e==="default"||i.isImportNamespaceSpecifier()&&e==="*"||i.isImportSpecifier()&&xX(i.node.imported,{name:e}))}function NX(){let t=this.node;if(t.end){let e=this.hub.getCode();if(e)return e.slice(t.start,t.end)}return""}function DX(t){return this._guessExecutionStatusRelativeTo(t)!=="after"}function Ix(t){return t.isProgram()?t:(t.parentPath.scope.getFunctionParent()||t.parentPath.scope.getProgramParent()).path}function LX(t,e){switch(t){case"LogicalExpression":return e==="right";case"ConditionalExpression":case"IfStatement":return e==="consequent"||e==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return e==="body";case"ForStatement":return e==="body"||e==="update";case"SwitchStatement":return e==="cases";case"TryStatement":return e==="handler";case"AssignmentPattern":return e==="right";case"OptionalMemberExpression":return e==="property";case"OptionalCallExpression":return e==="arguments";default:return!1}}function kx(t,e){for(let r=0;r<e;r++){let i=t[r];if(LX(i.parent.type,i.parentKey))return!0}return!1}var Ox=Symbol();function MX(t){return th(this,t,new Map)}function th(t,e,r){let i={this:Ix(t),target:Ix(e)};if(i.target.node!==i.this.node)return BX(t,i.target,r);let s={target:e.getAncestry(),this:t.getAncestry()};if(s.target.includes(t))return"after";if(s.this.includes(e))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let u=s.this[a.this];a.target=s.target.indexOf(u),a.target>=0?n=u:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(kx(s.this,a.this-1)||kx(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=TX[n.type],c={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return c.target>c.this?"before":"after"}function FX(t,e,r){if(e.isFunctionDeclaration()){if(e.parentPath.isExportDeclaration())return"unknown"}else return th(t,e,r)==="before"?"before":"unknown";let i=e.scope.getBinding(e.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(c=>c.node===e.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=th(t,a,r);if(n&&n!==l)return"unknown";n=l}return n}function BX(t,e,r){let i=r.get(t.node),s;if(!i)r.set(t.node,i=new Map);else if(s=i.get(e.node))return s===Ox?"unknown":s;i.set(e.node,Ox);let n=FX(t,e,r);return i.set(e.node,n),n}function jX(t,e){return Nx.call(this,t,e)||this}function Nx(t,e){var r;if(!((r=e)!=null&&r.includes(this)))if(e=e||[],e.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(t,e)}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(t,e);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(t,e);if(t&&this.isMemberExpression()){let i=this.toComputedKey();if(!bX(i))return;let s=i.value,n=this.get("object").resolve(t,e);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(t,e)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(t,e)}}}}function RX(){if(this.isIdentifier()){let t=this.scope.getBinding(this.node.name);return t?t.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(t=>t.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:t}=this.node;return t!=="in"&&t!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function qX(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0})}});var jx=k(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt._getKey=Fx;Nt._getPattern=Bx;Nt.get=iH;Nt.getAllNextSiblings=tH;Nt.getAllPrevSiblings=rH;Nt.getAssignmentIdentifiers=sH;Nt.getBindingIdentifierPaths=oH;Nt.getBindingIdentifiers=nH;Nt.getCompletionRecords=GX;Nt.getNextSibling=eH;Nt.getOpposite=JX;Nt.getOuterBindingIdentifierPaths=lH;Nt.getOuterBindingIdentifiers=aH;Nt.getPrevSibling=ZX;Nt.getSibling=QX;var ih=zr(),$X=Me(),{getAssignmentIdentifiers:UX,getBindingIdentifiers:Mx,getOuterBindingIdentifiers:KX,numericLiteral:WX,unaryExpression:VX}=$X,sh=0,Un=1;function YX(t){return{type:sh,path:t}}function zX(t){return{type:Un,path:t}}function JX(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Is(t,e,r){return t&&e.push(...ks(t,r)),e}function XX(t,e,r){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=ks(n,r),o=[],l=[];for(let c of a)c.type===sh&&o.push(c),c.type===Un&&l.push(c);o.length&&(i=o),e.push(...l)}return e.push(...i),e}function HX(t){t.forEach(e=>{e.type=Un})}function rh(t,e){t.forEach(r=>{r.path.isBreakStatement({label:null})&&(e?r.path.replaceWith(VX("void",WX(0))):r.path.remove())})}function Lx(t,e){let r=[];if(e.canHaveBreak){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=Object.assign({},e,{inCaseClause:!1});n.isBlockStatement()&&(e.inCaseClause||e.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=ks(n,a);if(o.length>0&&o.every(l=>l.type===Un)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(HX(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),e.shouldPreserveBreak||rh(o,!0)),e.shouldPreserveBreak||rh(o,!1)):(r.push(...o),!e.shouldPopulateBreak&&!e.shouldPreserveBreak&&rh(o,!0));break}if(s===t.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let c=o[l];c.type===Un&&r.push(c),c.type===sh&&i.push(c)}}}}else if(t.length)for(let i=t.length-1;i>=0;i--){let s=ks(t[i],e);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function ks(t,e){let r=[];if(t.isIfStatement())r=Is(t.get("consequent"),r,e),r=Is(t.get("alternate"),r,e);else{if(t.isDoExpression()||t.isFor()||t.isWhile()||t.isLabeledStatement())return Is(t.get("body"),r,e);if(t.isProgram()||t.isBlockStatement())return Lx(t.get("body"),e);if(t.isFunction())return ks(t.get("body"),e);if(t.isTryStatement())r=Is(t.get("block"),r,e),r=Is(t.get("handler"),r,e);else{if(t.isCatchClause())return Is(t.get("body"),r,e);if(t.isSwitchStatement())return XX(t.get("cases"),r,e);if(t.isSwitchCase())return Lx(t.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:e.shouldPreserveBreak});t.isBreakStatement()?r.push(zX(t)):r.push(YX(t))}}return r}function GX(t=!1){return ks(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:t}).map(r=>r.path)}function QX(t){return ih.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:t}).setContext(this.context)}function ZX(){return this.getSibling(this.key-1)}function eH(){return this.getSibling(this.key+1)}function tH(){let t=this.key,e=this.getSibling(++t),r=[];for(;e.node;)r.push(e),e=this.getSibling(++t);return r}function rH(){let t=this.key,e=this.getSibling(--t),r=[];for(;e.node;)r.push(e),e=this.getSibling(--t);return r}function iH(t,e=!0){e===!0&&(e=this.context);let r=t.split(".");return r.length===1?Fx.call(this,t,e):Bx.call(this,r,e)}function Fx(t,e){let r=this.node,i=r[t];return Array.isArray(i)?i.map((s,n)=>ih.default.get({listKey:t,parentPath:this,parent:r,container:i,key:n}).setContext(e)):ih.default.get({parentPath:this,parent:r,container:r,key:t}).setContext(e)}function Bx(t,e){let r=this;for(let i of t)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,e);return r}function sH(){return UX(this.node)}function nH(t){return Mx(this.node,t)}function aH(t){return KX(this.node,t)}function oH(t=!1,e=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=Mx.keys[n.node.type];if(n.isIdentifier()){t?(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(e){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 lH(t=!1){return this.getBindingIdentifierPaths(t,!0)}});var qx=k(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.addComment=hH;Kn.addComments=dH;Kn.shareCommentsWithSiblings=fH;var cH=Me(),{addComment:uH,addComments:pH}=cH;function fH(){if(typeof this.key=="string")return;let t=this.node;if(!t)return;let e=t.trailingComments,r=t.leadingComments;if(!e&&!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",Rx(r,i.node.trailingComments)),e&&!a&&i.addComments("trailing",e)),a&&(e&&s.addComments("leading",Rx(e,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function Rx(t,e){if(!(e!=null&&e.length))return t;let r=new Set(e);return t.filter(i=>!r.has(i))}function hH(t,e,r){uH(this.node,t,e,r)}function dH(t,e){pH(this.node,t,e)}});var zr=k(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.default=Fr.SHOULD_STOP=Fr.SHOULD_SKIP=Fr.REMOVED=void 0;var mH=yc(),yH=um(),TH=kn(),gH=Dp(),Kx=Me(),Ho=Kx,xH=Bi(),bH=eg(),Lr=tg(),Os=Sg(),_s=If(),$x=ax(),Yi=Cx(),Tt=Dx(),Wx=gr(),mt=Wx,Ns=$o(),Mr=Uo(),Vt=jx(),nh=qx(),SH=wp(),{validate:EH}=Kx,Ux=yH("babel"),Soe=Fr.REMOVED=1,Eoe=Fr.SHOULD_STOP=2,Poe=Fr.SHOULD_SKIP=4,Xr=Fr.default=class Vx{constructor(e,r){this.contexts=[],this.state=null,this.opts=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=e,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:e,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!e&&r&&(e=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=xH.getOrCreateCachedPaths(i,r),c=l.get(o);return c||(c=new Vx(e,i),o&&l.set(o,c)),Wx.setup.call(c,r,s,n,a),c}getScope(e){return this.isScope()?new gH.default(this):e}setData(e,r){return this.data==null&&(this.data=Object.create(null)),this.data[e]=r}getData(e,r){this.data==null&&(this.data=Object.create(null));let i=this.data[e];return i===void 0&&r!==void 0&&(i=this.data[e]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(e,r=SyntaxError){return this.hub.buildError(this.node,e,r)}traverse(e,r){(0,TH.default)(this.node,e,this.scope,r,this)}set(e,r){EH(this.node,e,r),this.node[e]=r}getPathLocation(){let e=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),e.unshift(i)}while(r=r.parentPath);return e.join(".")}debug(e){Ux.enabled&&Ux(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,bH.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},PH={findParent:Lr.findParent,find:Lr.find,getFunctionParent:Lr.getFunctionParent,getStatementParent:Lr.getStatementParent,getEarliestCommonAncestorFrom:Lr.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:Lr.getDeepestCommonAncestorFrom,getAncestry:Lr.getAncestry,isAncestor:Lr.isAncestor,isDescendant:Lr.isDescendant,inType:Lr.inType,getTypeAnnotation:Os.getTypeAnnotation,isBaseType:Os.isBaseType,couldBeBaseType:Os.couldBeBaseType,baseTypeStrictlyMatches:Os.baseTypeStrictlyMatches,isGenericType:Os.isGenericType,replaceWithMultiple:_s.replaceWithMultiple,replaceWithSourceString:_s.replaceWithSourceString,replaceWith:_s.replaceWith,replaceExpressionWithStatements:_s.replaceExpressionWithStatements,replaceInline:_s.replaceInline,evaluateTruthy:$x.evaluateTruthy,evaluate:$x.evaluate,toComputedKey:Yi.toComputedKey,ensureBlock:Yi.ensureBlock,unwrapFunctionEnvironment:Yi.unwrapFunctionEnvironment,arrowFunctionToExpression:Yi.arrowFunctionToExpression,splitExportDeclaration:Yi.splitExportDeclaration,ensureFunctionName:Yi.ensureFunctionName,matchesPattern:Tt.matchesPattern,isStatic:Tt.isStatic,isNodeType:Tt.isNodeType,canHaveVariableDeclarationOrExpression:Tt.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:Tt.canSwapBetweenExpressionAndStatement,isCompletionRecord:Tt.isCompletionRecord,isStatementOrBlock:Tt.isStatementOrBlock,referencesImport:Tt.referencesImport,getSource:Tt.getSource,willIMaybeExecuteBefore:Tt.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:Tt._guessExecutionStatusRelativeTo,resolve:Tt.resolve,isConstantExpression:Tt.isConstantExpression,isInStrictMode:Tt.isInStrictMode,isDenylisted:mt.isDenylisted,visit:mt.visit,skip:mt.skip,skipKey:mt.skipKey,stop:mt.stop,setContext:mt.setContext,requeue:mt.requeue,requeueComputedKeyAndDecorators:mt.requeueComputedKeyAndDecorators,remove:Ns.remove,insertBefore:Mr.insertBefore,insertAfter:Mr.insertAfter,unshiftContainer:Mr.unshiftContainer,pushContainer:Mr.pushContainer,getOpposite:Vt.getOpposite,getCompletionRecords:Vt.getCompletionRecords,getSibling:Vt.getSibling,getPrevSibling:Vt.getPrevSibling,getNextSibling:Vt.getNextSibling,getAllNextSiblings:Vt.getAllNextSiblings,getAllPrevSiblings:Vt.getAllPrevSiblings,get:Vt.get,getAssignmentIdentifiers:Vt.getAssignmentIdentifiers,getBindingIdentifiers:Vt.getBindingIdentifiers,getOuterBindingIdentifiers:Vt.getOuterBindingIdentifiers,getBindingIdentifierPaths:Vt.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Vt.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:nh.shareCommentsWithSiblings,addComment:nh.addComment,addComments:nh.addComments};Object.assign(Xr.prototype,PH);Xr.prototype.arrowFunctionToShadowed=Yi.arrowFunctionToShadowed,Object.assign(Xr.prototype,{has:Tt.has,is:Tt.is,isnt:Tt.isnt,equals:Tt.equals,hoist:Mr.hoist,updateSiblingKeys:Mr.updateSiblingKeys,call:mt.call,isBlacklisted:mt.isBlacklisted,setScope:mt.setScope,resync:mt.resync,popContext:mt.popContext,pushContext:mt.pushContext,setup:mt.setup,setKey:mt.setKey});Xr.prototype._guessExecutionStatusRelativeToDifferentFunctions=Tt._guessExecutionStatusRelativeTo,Xr.prototype._guessExecutionStatusRelativeToDifferentFunctions=Tt._guessExecutionStatusRelativeTo,Object.assign(Xr.prototype,{_getTypeAnnotation:Os._getTypeAnnotation,_replaceWith:_s._replaceWith,_resolve:Tt._resolve,_call:mt._call,_resyncParent:mt._resyncParent,_resyncKey:mt._resyncKey,_resyncList:mt._resyncList,_resyncRemoved:mt._resyncRemoved,_getQueueContexts:mt._getQueueContexts,_removeFromScope:Ns._removeFromScope,_callRemovalHooks:Ns._callRemovalHooks,_remove:Ns._remove,_markRemoved:Ns._markRemoved,_assertUnremoved:Ns._assertUnremoved,_containerInsert:Mr._containerInsert,_containerInsertBefore:Mr._containerInsertBefore,_containerInsertAfter:Mr._containerInsertAfter,_verifyNodeList:Mr._verifyNodeList,_getKey:Vt._getKey,_getPattern:Vt._getPattern});for(let t of Ho.TYPES){let e=`is${t}`,r=Ho[e];Xr.prototype[e]=function(i){return r(this.node,i)},Xr.prototype[`assert${t}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${t}`)}}Object.assign(Xr.prototype,SH);for(let t of Object.keys(mH))t[0]!=="_"&&(Ho.TYPES.includes(t)||Ho.TYPES.push(t))});var Yx=k(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.default=void 0;var vH=zr(),AH=Me(),ah=gr(),{VISITOR_KEYS:wH}=AH,oh=class{constructor(e,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=i,this.opts=r}shouldVisit(e){let r=this.opts;if(r.enter||r.exit||r[e.type])return!0;let i=wH[e.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(e[s])return!0;return!1}create(e,r,i,s){return vH.default.get({parentPath:this.parentPath,parent:e,container:r,key:i,listKey:s})}maybeQueue(e,r){this.queue&&(r?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,r,i){if(e.length===0)return!1;let s=[];for(let n=0;n<e.length;n++){let a=e[n];a&&this.shouldVisit(a)&&s.push(this.create(r,e,n,i))}return this.visitQueue(s)}visitSingle(e,r){return this.shouldVisit(e[r])?this.visitQueue([this.create(e,e,r)]):!1}visitQueue(e){this.queue=e,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<e.length;){let n=e[s];if(s++,ah.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&ah.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,i))break}}for(let n=0;n<s;n++)ah.popContext.call(e[n]);return this.queue=null,i}visit(e,r){let i=e[r];return i?Array.isArray(i)?this.visitMultiple(i,e,r):this.visitSingle(e,r):!1}};Go.default=oh});var mo=k(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.traverseNode=OH;var CH=Yx(),woe=zr(),IH=Me(),Coe=gr(),{VISITOR_KEYS:kH}=IH;function OH(t,e,r,i,s,n,a){let o=kH[t.type];if(!o)return!1;let l=new CH.default(r,e,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let c of o)if(!(n!=null&&n[c])&&l.visit(t,c))return!0;return!1}});var gr=k(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut._call=uh;ut._getQueueContexts=YH;ut._resyncKey=Qx;ut._resyncList=Zx;ut._resyncParent=Gx;ut._resyncRemoved=qH;ut.call=ch;ut.isDenylisted=Xx;ut.popContext=$H;ut.pushContext=UH;ut.requeue=WH;ut.requeueComputedKeyAndDecorators=VH;ut.resync=RH;ut.setContext=jH;ut.setKey=Qo;ut.setScope=Hx;ut.setup=KH;ut.skip=MH;ut.skipKey=FH;ut.stop=BH;ut.visit=LH;var _H=mo(),zx=zr(),NH=$o(),DH=Me();function ch(t){let e=this.opts;if(this.debug(t),this.node&&uh.call(this,e[t]))return!0;if(this.node){var r;return uh.call(this,(r=e[this.node.type])==null?void 0:r[t])}return!1}function uh(t){if(!t)return!1;for(let e of t){if(!e)continue;let r=this.node;if(!r)return!0;let i=e.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 ${e}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function Xx(){var t;let e=(t=this.opts.denylist)!=null?t:this.opts.blacklist;return e?.includes(this.node.type)}ut.isBlacklisted=Xx;function Jx(t,e){t.context!==e&&(t.context=e,t.state=e.state,t.opts=e.opts)}function LH(){var t,e;if(!this.node||this.isDenylisted()||(t=(e=this.opts).shouldSkip)!=null&&t.call(e,this))return!1;let r=this.context;return this.shouldSkip||ch.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(Jx(this,r),this.debug("Recursing into..."),this.shouldStop=(0,_H.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),Jx(this,r),ch.call(this,"exit"),this.shouldStop)}function MH(){this.shouldSkip=!0}function FH(t){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[t]=!0}function BH(){this._traverseFlags|=zx.SHOULD_SKIP|zx.SHOULD_STOP}function Hx(){var t,e;if((t=this.opts)!=null&&t.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),(e=this.scope)==null||e.init()}function jH(t){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,t&&(this.context=t,this.state=t.state,this.opts=t.opts),Hx.call(this),this}function RH(){this.removed||(Gx.call(this),Zx.call(this),Qx.call(this))}function Gx(){this.parentPath&&(this.parent=this.parentPath.node)}function Qx(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let t=0;t<this.container.length;t++)if(this.container[t]===this.node){Qo.call(this,t);return}}else for(let t of Object.keys(this.container))if(this.container[t]===this.node){Qo.call(this,t);return}this.key=null}}function Zx(){if(!this.parent||!this.inList)return;let t=this.parent[this.listKey];this.container!==t&&(this.container=t||null)}function qH(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&NH._markRemoved.call(this)}function $H(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function UH(t){this.contexts.push(t),this.setContext(t)}function KH(t,e,r,i){this.listKey=r,this.container=e,this.parentPath=t||this.parentPath,Qo.call(this,i)}function Qo(t){var e;this.key=t,this.node=this.container[this.key],this.type=(e=this.node)==null?void 0:e.type}function WH(t=this){if(t.removed)return;let e=this.contexts;for(let r of e)r.maybeQueue(t)}function VH(){let{context:t,node:e}=this;if(!DH.isPrivate(e)&&e.computed&&t.maybeQueue(this.get("key")),e.decorators)for(let r of this.get("decorators"))t.maybeQueue(r)}function YH(){let t=this,e=this.contexts;for(;!e.length&&(t=t.parentPath,!!t);)e=t.contexts;return e}});var eb=k(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=void 0;var ph=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,r,i=TypeError){return new i(r)}};Zo.default=ph});var kn=k(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Object.defineProperty(Hr,"Hub",{enumerable:!0,get:function(){return GH.default}});Object.defineProperty(Hr,"NodePath",{enumerable:!0,get:function(){return XH.default}});Object.defineProperty(Hr,"Scope",{enumerable:!0,get:function(){return HH.default}});Hr.visitors=Hr.default=void 0;gr();var Vn=po();Hr.visitors=Vn;var zH=Me(),JH=Bi(),tb=mo(),XH=zr(),HH=Dp(),GH=eb(),{VISITOR_KEYS:QH,removeProperties:ZH,traverseFast:Wn}=zH;function Er(t,e={},r,i,s,n){if(t){if(!e.noScope&&!r&&t.type!=="Program"&&t.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 ${t.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");QH[t.type]&&(Vn.explode(e),(0,tb.traverseNode)(t,e,r,i,s,null,n))}}var _oe=Hr.default=Er;Er.visitors=Vn;Er.verify=Vn.verify;Er.explode=Vn.explode;Er.cheap=function(t,e){Wn(t,e)};Er.node=function(t,e,r,i,s,n){(0,tb.traverseNode)(t,e,r,i,s,n)};Er.clearNode=function(t,e){ZH(t,e)};Er.removeProperties=function(t,e){return Wn(t,Er.clearNode,e),t};Er.hasType=function(t,e,r){return r!=null&&r.includes(t.type)?!1:t.type===e?!0:Wn(t,function(i){if(r!=null&&r.includes(i.type))return Wn.skip;if(i.type===e)return Wn.stop})};Er.cache=JH});var ib=k((Doe,rb)=>{var eG=require("fs"),tG=Ba(),rG=kn().default;function iG(t){let e=eG.readFileSync(t,"utf-8"),r=new Set,i,s={};try{i=tG.parse(e,{sourceType:"module",plugins:["jsx","typescript","classProperties","objectRestSpread","optionalChaining","nullishCoalescingOperator"]})}catch{return[]}function n(o){if(o)if(o.type==="StringLiteral"||o.type==="Literal")o.value.split(/\s+/).forEach(l=>r.add(l));else if(o.type==="ArrayExpression")o.elements.forEach(l=>n(l));else if(o.type==="TemplateLiteral")o.quasis.forEach(l=>l.value.cooked.split(/\s+/).forEach(c=>r.add(c))),o.expressions.forEach(l=>n(l));else if(o.type==="Identifier"&&s[o.name])s[o.name].forEach(l=>r.add(l));else if(o.type==="BinaryExpression"&&o.operator==="+")n(o.left),n(o.right);else if(o.type==="ConditionalExpression")n(o.consequent),n(o.alternate);else if(o.type==="LogicalExpression")n(o.left),n(o.right);else if(o.type==="MemberExpression"){if(o.object.type==="Identifier"&&s[o.object.name]&&o.property.type==="Identifier"){let l=s[o.object.name][o.property.name];typeof l=="string"&&l.split(/\s+/).forEach(c=>r.add(c))}}else o.type==="ArrowFunctionExpression"&&(o.body.type==="TemplateLiteral"||o.body.type==="ConditionalExpression"?n(o.body):o.body.type==="BlockStatement"&&o.body.body.forEach(l=>{l.type==="ReturnStatement"&&l.argument&&n(l.argument)}))}function a(o){o&&(o.type==="ObjectExpression"?o.properties.forEach(l=>{l.key&&(l.key.type==="Identifier"&&l.key.name==="className"||l.key.type==="StringLiteral"&&l.key.value==="className")&&l.value.type==="ArrayExpression"&&l.value.elements.forEach(c=>{c&&c.type==="StringLiteral"&&c.value.split(/\s+/).forEach(u=>r.add(u))}),a(l.value)}):o.type==="ArrayExpression"&&o.elements.forEach(l=>a(l)))}return rG(i,{VariableDeclarator(o){if(o.node.init&&o.node.id.type==="Identifier"){if(o.node.init.type==="ObjectExpression"){let l={};o.node.init.properties.forEach(c=>{c.key.type==="Identifier"&&c.value.type==="StringLiteral"&&(l[c.key.name]=c.value.value)}),s[o.node.id.name]=l}else if(o.node.init.type==="ArrayExpression"||o.node.init.type==="StringLiteral"){let l=[];o.node.init.type==="ArrayExpression"?o.node.init.elements.forEach(c=>{c&&c.type==="StringLiteral"&&c.value.split(/\s+/).forEach(u=>l.push(u))}):o.node.init.type==="StringLiteral"&&o.node.init.value.split(/\s+/).forEach(c=>l.push(c)),s[o.node.id.name]=l.filter(Boolean)}(o.node.init.type==="ArrayExpression"||o.node.init.type==="ObjectExpression")&&a(o.node.init)}},JSXAttribute(o){if(typeof o.node.name.name=="string"&&/^(class(Name)?|.*[cC]lass)$/.test(o.node.name.name)){let l=o.node.value;l&&(l.type==="StringLiteral"?l.value.split(/\s+/).forEach(c=>r.add(c)):l.type==="JSXExpressionContainer"&&n(l.expression))}},ObjectProperty(o){o.node.value&&(o.node.value.type==="StringLiteral"||o.node.value.type==="Literal")&&o.node.value.value.split(/\s+/).forEach(l=>r.add(l))},ReturnStatement(o){o.node.argument&&(o.node.argument.type==="StringLiteral"||o.node.argument.type==="Literal")&&o.node.argument.value.split(/\s+/).forEach(l=>r.add(l))},AssignmentExpression(o){o.node.operator==="+="&&o.node.right&&(o.node.right.type==="StringLiteral"||o.node.right.type==="Literal")&&o.node.right.value.split(/\s+/).forEach(l=>r.add(l))}}),a(i),function o(l){l&&(Array.isArray(l)?l.forEach(o):typeof l=="object"&&(l.type==="ObjectExpression"?l.properties.forEach(c=>{c.key&&(c.key.type==="Identifier"&&/class(Name)?$/i.test(c.key.name)||c.key.type==="StringLiteral"&&/class(Name)?$/i.test(c.key.value))&&(c.value.type==="StringLiteral"?c.value.value.split(/\s+/).forEach(u=>r.add(u)):c.value.type==="ArrayExpression"&&c.value.elements.forEach(u=>{u&&u.type==="StringLiteral"&&u.value.split(/\s+/).forEach(d=>r.add(d))})),o(c.value)}):Object.values(l).forEach(o)))}(i),Array.from(r).filter(Boolean)}rb.exports=iG});var hh=require("fs"),pb=require("path"),sG=Sh(),nG=Pd(),aG=Cd(),oG=ib(),lG=(t,e)=>aG(t,e||{},{arrayMerge:(r,i)=>i}),cG=()=>{let t=pb.resolve(process.cwd(),"unicss.config.js");try{return require(t)}catch{return{}}},uG=lG(sG,cG()),at=t=>/\[.*\]/.test(t)?t.replace(/([:\/\.\[\]\(\)\?\=\&\,\'\;\+\"#%\*!])/g,"\\$1"):t.replace(/([:\/\.\[\]\(\)\?\=\&\,\'\"#%\*!])/g,"\\$1").replace(/^([0-9])|\.(\d)/g,"\\$1$2"),q=(t,e)=>{let r=t.replace(/[\[\]]/g,"");return e==="bg-image"||e==="mask-image"||e==="list-image"?/^url\(/i.test(r.trim())?r:r.replace(/_/g," "):e==="list-image"?r:r.replace(/_/g," ")},sb=t=>(hh.readFileSync(t,"utf-8").match(/(?:class|className|\w*[Cc]lass)=["']([\s\S]*?)["']/g)||[]).map(e=>e.replace(/(?:class|className|\w*[Cc]lass)=["']/,"").replace(/["']$/,"").split(/\s+/)).flat().filter(Boolean),fh={first:"first-child",last:"last-child","not-first":"not(:first-child)","not-last":"not(:last-child)",odd:"nth-child(odd)",even:"nth-child(even)",placeholder:":placeholder",file:":file-selector-button",marker:":marker",selection:":selection","first-line":":first-line","first-letter":":first-letter",backdrop:":backdrop","has-checked":"has(:checked)","peer-hover":":hover","peer-focus":":focus","focus-within":"focus-within","peer-active":":active","peer-invalid":":invalid","peer-checked":":checked","peer-disabled":":disabled","peer-required":":required","peer-read-only":":read-only","peer-indeterminate":":indeterminate"},Ds=t=>{if(t.startsWith("group-hover/"))return`is(:where(.group\\/${t.replace("group-hover/","")}):hover *)`;if(t==="group-hover")return"is(:where(.group):hover *)";if(t.startsWith("peer-")&&t.includes("/")){let[e,r]=t.split("/");return`.peer\\/${r}${fh[`peer-${e}`]||`:${e.replace("peer-","")}`} ~ `}return t.startsWith("peer-")?`.peer${fh[t]||`:${t.replace("peer-","")}`} ~ `:fh[t]||`${t}`},Pe=t=>{t=t.replace(/[\[\]]/g,"");let e=t.match(/^rgb\((\d+)_(\d+)_(\d+)(?:_\/(\d+))?\)$/);if(e){let[,i,s,n,a]=e,o=a?parseInt(a,10)/100:1;return`rgba(${i},${s},${n},${o})`}let r=t.match(/^rgb\((\d+),(\d+),(\d+)(?:,(\d*\.?\d+))?\)$/);if(r){let[,i,s,n,a]=r;return`rgba(${i},${s},${n},${a||1})`}if(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{3}$/.test(t))return t;if(t.includes("/")){let[i,s]=t.split("/");if(i.startsWith("#")){let n=i.replace("#","");n.length===3&&(n=n.split("").map(c=>c+c).join(""));let a=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);return`rgba(${a},${o},${l},${parseInt(s,10)/100})`}return`color-mix(in srgb, var(--color-${i}) ${parseInt(s,10)}%, transparent)`}return`var(--color-${t})`},Ee=t=>/^\d+\/\d+$/.test(t)?`${t.replace(/^(\d+)\/(\d+)$/,(e,r,i)=>`${parseInt(r,10)/parseInt(i,10)*100}%`)}`:`var(--${t})`,Ge=t=>/^\d+\/\d+$/.test(t)?`-${t.replace(/^(\d+)\/(\d+)$/,(e,r,i)=>`${parseInt(r,10)/parseInt(i,10)*100}%`)}`:`calc(-1 * var(--${t}))`,pG=t=>{let e=t.split(" ");if(e.length===1){let r=Ee(e[0]);return`${r} ${r}`}return e.map(Ee).join(" ")},fG=t=>{let e=t.split(" ");if(e.length===1){let r=Ge(e[0]);return`${r} ${r}`}return e.map(Ge).join(" ")},nb=["--uni-blur","--uni-drop-shadow","--uni-brightness","--uni-contrast","--uni-grayscale","--uni-hue-rotate","--uni-invert","--uni-saturate","--uni-sepia"],ab=["--uni-backdrop-blur","--uni-backdrop-brightness","--uni-backdrop-contrast","--uni-backdrop-grayscale","--uni-backdrop-hue-rotate","--uni-backdrop-invert","--uni-backdrop-saturate","--uni-backdrop-opacity","--uni-backdrop-sepia"],hG=["--uni-shadow","--uni-shadow-color","--uni-inset-shadow-color","--uni-ring-shadow","--uni-ring-color","--uni-inset-ring-shadow","--uni-ring-inset","--uni-inset-shadow","--uni-inset-ring-shadow"],ob=["--uni-rotate-x","--uni-rotate-y","--uni-rotate-z","--uni-skew-x","--uni-skew-y"],lb=["--uni-scale-x","--uni-scale-y"],cb=["--uni-translate-x","--uni-translate-y","--uni-translate-z"],bt=(t,e,r,i,s=null,n=null,a=!1)=>{let o=at(t),l=a?`.${o} > *`:s&&(s.startsWith("peer-")||s.includes("peer-"))?`${Ds(s)}.${o}`:s?`.${o}:${Ds(s)}`:`.${o}`,c=nb.includes(r),u=ab.includes(r),d=hG.includes(r),b=ob.includes(r),E=lb.includes(r),v=cb.includes(r),A=typeof i=="object"?Object.entries(i).map(([I,_])=>`${I}: ${_}`).join("; "):Array.isArray(r)?r.map(I=>`${I}: ${i}`).join("; "):`${r}: ${i}`;return c?{selector:l,rule:`${l} { ${A}; filter: ${nb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:u?{selector:l,rule:`${l} { ${A}; backdrop-filter: ${ab.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:d?{selector:l,rule:`${l} { ${A}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000); }`,screen:n}:b?{selector:l,rule:`${l} { ${A}; transform: ${ob.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:E?{selector:l,rule:`${l} { ${A}; scale: ${lb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:v?{selector:l,rule:`${l} { ${A}; translate: ${cb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:{selector:l,rule:`${l} { ${A} }`,screen:n}};function ub({skipBase:t=!1}={}){let{sizing:e={},spacing:r={},colors:i={},breakpoints:s={},layout:n={},flexGrid:a={},typography:o={},background:l={},border:c={},effects:u={},filters:d={},table:b={},transition:E={},transforms:v={},interactivity:A={},svg:I={},rootClass:_={}}=uG.theme.extend,$=["html","js","jsx","ts","tsx","vue"].flatMap(f=>nG.sync(`**/*.${f}`,{cwd:process.cwd(),absolute:!0,ignore:["**/node_modules/**","**/dist/**","**/build/**"]})).filter(f=>hh.statSync(f).isFile()),X=Array.from(new Set($.flatMap(f=>{if(!(f.endsWith(".js")||f.endsWith(".jsx")||f.endsWith(".ts")||f.endsWith(".tsx")))return sb(f);try{return oG(f)}catch{return sb(f)}}))),N={main:t?"":`
56
+ `;return this.replaceWith(c)[0].get("arguments.0")}function dX(t){let e=t.params.findIndex(r=>VJ(r)||YJ(r));return e===-1?t.params.length:e}});var Dx=k(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt._guessExecutionStatusRelativeTo=MX;dt._resolve=Nx;dt.canHaveVariableDeclarationOrExpression=CX;dt.canSwapBetweenExpressionAndStatement=IX;dt.getSource=NX;dt.isCompletionRecord=kX;dt.isConstantExpression=RX;dt.isInStrictMode=qX;dt.isNodeType=wX;dt.isStatementOrBlock=OX;dt.isStatic=AX;dt.matchesPattern=vX;dt.referencesImport=_X;dt.resolve=jX;dt.willIMaybeExecuteBefore=DX;var mX=Me(),{STATEMENT_OR_BLOCK_KEYS:yX,VISITOR_KEYS:TX,isBlockStatement:_x,isExpression:gX,isIdentifier:xX,isLiteral:bX,isStringLiteral:SX,isType:EX,matchesPattern:PX}=mX;function vX(t,e){return PX(this.node,t,e)}dt.has=function(e){var r;let i=(r=this.node)==null?void 0:r[e];return i&&Array.isArray(i)?!!i.length:!!i};function AX(){return this.scope.isStatic(this.node)}dt.is=dt.has,dt.isnt=function(e){return!this.has(e)},dt.equals=function(e,r){return this.node[e]===r};function wX(t){return EX(this.type,t)}function CX(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function IX(t){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?_x(t):this.isBlockStatement()?gX(t):!1}function kX(t){let e=this,r=!0;do{let{type:i,container:s}=e;if(!r&&(e.isFunction()||i==="StaticBlock"))return!!t;if(r=!1,Array.isArray(s)&&e.key!==s.length-1)return!1}while((e=e.parentPath)&&!e.isProgram()&&!e.isDoExpression());return!0}function OX(){return this.parentPath.isLabeledStatement()||_x(this.container)?!1:yX.includes(this.key)}function _X(t,e){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===e||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?SX(this.node.property,{value:e}):this.node.property.name===e)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(t,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===t){if(!e)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&e==="default"||i.isImportNamespaceSpecifier()&&e==="*"||i.isImportSpecifier()&&xX(i.node.imported,{name:e}))}function NX(){let t=this.node;if(t.end){let e=this.hub.getCode();if(e)return e.slice(t.start,t.end)}return""}function DX(t){return this._guessExecutionStatusRelativeTo(t)!=="after"}function Ix(t){return t.isProgram()?t:(t.parentPath.scope.getFunctionParent()||t.parentPath.scope.getProgramParent()).path}function LX(t,e){switch(t){case"LogicalExpression":return e==="right";case"ConditionalExpression":case"IfStatement":return e==="consequent"||e==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return e==="body";case"ForStatement":return e==="body"||e==="update";case"SwitchStatement":return e==="cases";case"TryStatement":return e==="handler";case"AssignmentPattern":return e==="right";case"OptionalMemberExpression":return e==="property";case"OptionalCallExpression":return e==="arguments";default:return!1}}function kx(t,e){for(let r=0;r<e;r++){let i=t[r];if(LX(i.parent.type,i.parentKey))return!0}return!1}var Ox=Symbol();function MX(t){return th(this,t,new Map)}function th(t,e,r){let i={this:Ix(t),target:Ix(e)};if(i.target.node!==i.this.node)return BX(t,i.target,r);let s={target:e.getAncestry(),this:t.getAncestry()};if(s.target.includes(t))return"after";if(s.this.includes(e))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let u=s.this[a.this];a.target=s.target.indexOf(u),a.target>=0?n=u:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(kx(s.this,a.this-1)||kx(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=TX[n.type],c={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return c.target>c.this?"before":"after"}function FX(t,e,r){if(e.isFunctionDeclaration()){if(e.parentPath.isExportDeclaration())return"unknown"}else return th(t,e,r)==="before"?"before":"unknown";let i=e.scope.getBinding(e.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(c=>c.node===e.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=th(t,a,r);if(n&&n!==l)return"unknown";n=l}return n}function BX(t,e,r){let i=r.get(t.node),s;if(!i)r.set(t.node,i=new Map);else if(s=i.get(e.node))return s===Ox?"unknown":s;i.set(e.node,Ox);let n=FX(t,e,r);return i.set(e.node,n),n}function jX(t,e){return Nx.call(this,t,e)||this}function Nx(t,e){var r;if(!((r=e)!=null&&r.includes(this)))if(e=e||[],e.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(t,e)}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(t,e);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(t,e);if(t&&this.isMemberExpression()){let i=this.toComputedKey();if(!bX(i))return;let s=i.value,n=this.get("object").resolve(t,e);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(t,e)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(t,e)}}}}function RX(){if(this.isIdentifier()){let t=this.scope.getBinding(this.node.name);return t?t.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(t=>t.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:t}=this.node;return t!=="in"&&t!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function qX(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0})}});var jx=k(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt._getKey=Fx;Nt._getPattern=Bx;Nt.get=iH;Nt.getAllNextSiblings=tH;Nt.getAllPrevSiblings=rH;Nt.getAssignmentIdentifiers=sH;Nt.getBindingIdentifierPaths=oH;Nt.getBindingIdentifiers=nH;Nt.getCompletionRecords=GX;Nt.getNextSibling=eH;Nt.getOpposite=JX;Nt.getOuterBindingIdentifierPaths=lH;Nt.getOuterBindingIdentifiers=aH;Nt.getPrevSibling=ZX;Nt.getSibling=QX;var ih=zr(),$X=Me(),{getAssignmentIdentifiers:UX,getBindingIdentifiers:Mx,getOuterBindingIdentifiers:KX,numericLiteral:WX,unaryExpression:VX}=$X,sh=0,Un=1;function YX(t){return{type:sh,path:t}}function zX(t){return{type:Un,path:t}}function JX(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Is(t,e,r){return t&&e.push(...ks(t,r)),e}function XX(t,e,r){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=ks(n,r),o=[],l=[];for(let c of a)c.type===sh&&o.push(c),c.type===Un&&l.push(c);o.length&&(i=o),e.push(...l)}return e.push(...i),e}function HX(t){t.forEach(e=>{e.type=Un})}function rh(t,e){t.forEach(r=>{r.path.isBreakStatement({label:null})&&(e?r.path.replaceWith(VX("void",WX(0))):r.path.remove())})}function Lx(t,e){let r=[];if(e.canHaveBreak){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=Object.assign({},e,{inCaseClause:!1});n.isBlockStatement()&&(e.inCaseClause||e.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=ks(n,a);if(o.length>0&&o.every(l=>l.type===Un)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(HX(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),e.shouldPreserveBreak||rh(o,!0)),e.shouldPreserveBreak||rh(o,!1)):(r.push(...o),!e.shouldPopulateBreak&&!e.shouldPreserveBreak&&rh(o,!0));break}if(s===t.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let c=o[l];c.type===Un&&r.push(c),c.type===sh&&i.push(c)}}}}else if(t.length)for(let i=t.length-1;i>=0;i--){let s=ks(t[i],e);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function ks(t,e){let r=[];if(t.isIfStatement())r=Is(t.get("consequent"),r,e),r=Is(t.get("alternate"),r,e);else{if(t.isDoExpression()||t.isFor()||t.isWhile()||t.isLabeledStatement())return Is(t.get("body"),r,e);if(t.isProgram()||t.isBlockStatement())return Lx(t.get("body"),e);if(t.isFunction())return ks(t.get("body"),e);if(t.isTryStatement())r=Is(t.get("block"),r,e),r=Is(t.get("handler"),r,e);else{if(t.isCatchClause())return Is(t.get("body"),r,e);if(t.isSwitchStatement())return XX(t.get("cases"),r,e);if(t.isSwitchCase())return Lx(t.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:e.shouldPreserveBreak});t.isBreakStatement()?r.push(zX(t)):r.push(YX(t))}}return r}function GX(t=!1){return ks(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:t}).map(r=>r.path)}function QX(t){return ih.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:t}).setContext(this.context)}function ZX(){return this.getSibling(this.key-1)}function eH(){return this.getSibling(this.key+1)}function tH(){let t=this.key,e=this.getSibling(++t),r=[];for(;e.node;)r.push(e),e=this.getSibling(++t);return r}function rH(){let t=this.key,e=this.getSibling(--t),r=[];for(;e.node;)r.push(e),e=this.getSibling(--t);return r}function iH(t,e=!0){e===!0&&(e=this.context);let r=t.split(".");return r.length===1?Fx.call(this,t,e):Bx.call(this,r,e)}function Fx(t,e){let r=this.node,i=r[t];return Array.isArray(i)?i.map((s,n)=>ih.default.get({listKey:t,parentPath:this,parent:r,container:i,key:n}).setContext(e)):ih.default.get({parentPath:this,parent:r,container:r,key:t}).setContext(e)}function Bx(t,e){let r=this;for(let i of t)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,e);return r}function sH(){return UX(this.node)}function nH(t){return Mx(this.node,t)}function aH(t){return KX(this.node,t)}function oH(t=!1,e=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=Mx.keys[n.node.type];if(n.isIdentifier()){t?(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(e){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 lH(t=!1){return this.getBindingIdentifierPaths(t,!0)}});var qx=k(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.addComment=hH;Kn.addComments=dH;Kn.shareCommentsWithSiblings=fH;var cH=Me(),{addComment:uH,addComments:pH}=cH;function fH(){if(typeof this.key=="string")return;let t=this.node;if(!t)return;let e=t.trailingComments,r=t.leadingComments;if(!e&&!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",Rx(r,i.node.trailingComments)),e&&!a&&i.addComments("trailing",e)),a&&(e&&s.addComments("leading",Rx(e,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function Rx(t,e){if(!(e!=null&&e.length))return t;let r=new Set(e);return t.filter(i=>!r.has(i))}function hH(t,e,r){uH(this.node,t,e,r)}function dH(t,e){pH(this.node,t,e)}});var zr=k(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.default=Fr.SHOULD_STOP=Fr.SHOULD_SKIP=Fr.REMOVED=void 0;var mH=yc(),yH=um(),TH=kn(),gH=Dp(),Kx=Me(),Ho=Kx,xH=Bi(),bH=eg(),Lr=tg(),Os=Sg(),_s=If(),$x=ax(),Yi=Cx(),Tt=Dx(),Wx=gr(),mt=Wx,Ns=$o(),Mr=Uo(),Vt=jx(),nh=qx(),SH=wp(),{validate:EH}=Kx,Ux=yH("babel"),Soe=Fr.REMOVED=1,Eoe=Fr.SHOULD_STOP=2,Poe=Fr.SHOULD_SKIP=4,Xr=Fr.default=class Vx{constructor(e,r){this.contexts=[],this.state=null,this.opts=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=e,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:e,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!e&&r&&(e=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=xH.getOrCreateCachedPaths(i,r),c=l.get(o);return c||(c=new Vx(e,i),o&&l.set(o,c)),Wx.setup.call(c,r,s,n,a),c}getScope(e){return this.isScope()?new gH.default(this):e}setData(e,r){return this.data==null&&(this.data=Object.create(null)),this.data[e]=r}getData(e,r){this.data==null&&(this.data=Object.create(null));let i=this.data[e];return i===void 0&&r!==void 0&&(i=this.data[e]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(e,r=SyntaxError){return this.hub.buildError(this.node,e,r)}traverse(e,r){(0,TH.default)(this.node,e,this.scope,r,this)}set(e,r){EH(this.node,e,r),this.node[e]=r}getPathLocation(){let e=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),e.unshift(i)}while(r=r.parentPath);return e.join(".")}debug(e){Ux.enabled&&Ux(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,bH.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},PH={findParent:Lr.findParent,find:Lr.find,getFunctionParent:Lr.getFunctionParent,getStatementParent:Lr.getStatementParent,getEarliestCommonAncestorFrom:Lr.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:Lr.getDeepestCommonAncestorFrom,getAncestry:Lr.getAncestry,isAncestor:Lr.isAncestor,isDescendant:Lr.isDescendant,inType:Lr.inType,getTypeAnnotation:Os.getTypeAnnotation,isBaseType:Os.isBaseType,couldBeBaseType:Os.couldBeBaseType,baseTypeStrictlyMatches:Os.baseTypeStrictlyMatches,isGenericType:Os.isGenericType,replaceWithMultiple:_s.replaceWithMultiple,replaceWithSourceString:_s.replaceWithSourceString,replaceWith:_s.replaceWith,replaceExpressionWithStatements:_s.replaceExpressionWithStatements,replaceInline:_s.replaceInline,evaluateTruthy:$x.evaluateTruthy,evaluate:$x.evaluate,toComputedKey:Yi.toComputedKey,ensureBlock:Yi.ensureBlock,unwrapFunctionEnvironment:Yi.unwrapFunctionEnvironment,arrowFunctionToExpression:Yi.arrowFunctionToExpression,splitExportDeclaration:Yi.splitExportDeclaration,ensureFunctionName:Yi.ensureFunctionName,matchesPattern:Tt.matchesPattern,isStatic:Tt.isStatic,isNodeType:Tt.isNodeType,canHaveVariableDeclarationOrExpression:Tt.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:Tt.canSwapBetweenExpressionAndStatement,isCompletionRecord:Tt.isCompletionRecord,isStatementOrBlock:Tt.isStatementOrBlock,referencesImport:Tt.referencesImport,getSource:Tt.getSource,willIMaybeExecuteBefore:Tt.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:Tt._guessExecutionStatusRelativeTo,resolve:Tt.resolve,isConstantExpression:Tt.isConstantExpression,isInStrictMode:Tt.isInStrictMode,isDenylisted:mt.isDenylisted,visit:mt.visit,skip:mt.skip,skipKey:mt.skipKey,stop:mt.stop,setContext:mt.setContext,requeue:mt.requeue,requeueComputedKeyAndDecorators:mt.requeueComputedKeyAndDecorators,remove:Ns.remove,insertBefore:Mr.insertBefore,insertAfter:Mr.insertAfter,unshiftContainer:Mr.unshiftContainer,pushContainer:Mr.pushContainer,getOpposite:Vt.getOpposite,getCompletionRecords:Vt.getCompletionRecords,getSibling:Vt.getSibling,getPrevSibling:Vt.getPrevSibling,getNextSibling:Vt.getNextSibling,getAllNextSiblings:Vt.getAllNextSiblings,getAllPrevSiblings:Vt.getAllPrevSiblings,get:Vt.get,getAssignmentIdentifiers:Vt.getAssignmentIdentifiers,getBindingIdentifiers:Vt.getBindingIdentifiers,getOuterBindingIdentifiers:Vt.getOuterBindingIdentifiers,getBindingIdentifierPaths:Vt.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Vt.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:nh.shareCommentsWithSiblings,addComment:nh.addComment,addComments:nh.addComments};Object.assign(Xr.prototype,PH);Xr.prototype.arrowFunctionToShadowed=Yi.arrowFunctionToShadowed,Object.assign(Xr.prototype,{has:Tt.has,is:Tt.is,isnt:Tt.isnt,equals:Tt.equals,hoist:Mr.hoist,updateSiblingKeys:Mr.updateSiblingKeys,call:mt.call,isBlacklisted:mt.isBlacklisted,setScope:mt.setScope,resync:mt.resync,popContext:mt.popContext,pushContext:mt.pushContext,setup:mt.setup,setKey:mt.setKey});Xr.prototype._guessExecutionStatusRelativeToDifferentFunctions=Tt._guessExecutionStatusRelativeTo,Xr.prototype._guessExecutionStatusRelativeToDifferentFunctions=Tt._guessExecutionStatusRelativeTo,Object.assign(Xr.prototype,{_getTypeAnnotation:Os._getTypeAnnotation,_replaceWith:_s._replaceWith,_resolve:Tt._resolve,_call:mt._call,_resyncParent:mt._resyncParent,_resyncKey:mt._resyncKey,_resyncList:mt._resyncList,_resyncRemoved:mt._resyncRemoved,_getQueueContexts:mt._getQueueContexts,_removeFromScope:Ns._removeFromScope,_callRemovalHooks:Ns._callRemovalHooks,_remove:Ns._remove,_markRemoved:Ns._markRemoved,_assertUnremoved:Ns._assertUnremoved,_containerInsert:Mr._containerInsert,_containerInsertBefore:Mr._containerInsertBefore,_containerInsertAfter:Mr._containerInsertAfter,_verifyNodeList:Mr._verifyNodeList,_getKey:Vt._getKey,_getPattern:Vt._getPattern});for(let t of Ho.TYPES){let e=`is${t}`,r=Ho[e];Xr.prototype[e]=function(i){return r(this.node,i)},Xr.prototype[`assert${t}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${t}`)}}Object.assign(Xr.prototype,SH);for(let t of Object.keys(mH))t[0]!=="_"&&(Ho.TYPES.includes(t)||Ho.TYPES.push(t))});var Yx=k(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.default=void 0;var vH=zr(),AH=Me(),ah=gr(),{VISITOR_KEYS:wH}=AH,oh=class{constructor(e,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=i,this.opts=r}shouldVisit(e){let r=this.opts;if(r.enter||r.exit||r[e.type])return!0;let i=wH[e.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(e[s])return!0;return!1}create(e,r,i,s){return vH.default.get({parentPath:this.parentPath,parent:e,container:r,key:i,listKey:s})}maybeQueue(e,r){this.queue&&(r?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,r,i){if(e.length===0)return!1;let s=[];for(let n=0;n<e.length;n++){let a=e[n];a&&this.shouldVisit(a)&&s.push(this.create(r,e,n,i))}return this.visitQueue(s)}visitSingle(e,r){return this.shouldVisit(e[r])?this.visitQueue([this.create(e,e,r)]):!1}visitQueue(e){this.queue=e,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<e.length;){let n=e[s];if(s++,ah.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&ah.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,i))break}}for(let n=0;n<s;n++)ah.popContext.call(e[n]);return this.queue=null,i}visit(e,r){let i=e[r];return i?Array.isArray(i)?this.visitMultiple(i,e,r):this.visitSingle(e,r):!1}};Go.default=oh});var mo=k(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.traverseNode=OH;var CH=Yx(),woe=zr(),IH=Me(),Coe=gr(),{VISITOR_KEYS:kH}=IH;function OH(t,e,r,i,s,n,a){let o=kH[t.type];if(!o)return!1;let l=new CH.default(r,e,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let c of o)if(!(n!=null&&n[c])&&l.visit(t,c))return!0;return!1}});var gr=k(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut._call=uh;ut._getQueueContexts=YH;ut._resyncKey=Qx;ut._resyncList=Zx;ut._resyncParent=Gx;ut._resyncRemoved=qH;ut.call=ch;ut.isDenylisted=Xx;ut.popContext=$H;ut.pushContext=UH;ut.requeue=WH;ut.requeueComputedKeyAndDecorators=VH;ut.resync=RH;ut.setContext=jH;ut.setKey=Qo;ut.setScope=Hx;ut.setup=KH;ut.skip=MH;ut.skipKey=FH;ut.stop=BH;ut.visit=LH;var _H=mo(),zx=zr(),NH=$o(),DH=Me();function ch(t){let e=this.opts;if(this.debug(t),this.node&&uh.call(this,e[t]))return!0;if(this.node){var r;return uh.call(this,(r=e[this.node.type])==null?void 0:r[t])}return!1}function uh(t){if(!t)return!1;for(let e of t){if(!e)continue;let r=this.node;if(!r)return!0;let i=e.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 ${e}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function Xx(){var t;let e=(t=this.opts.denylist)!=null?t:this.opts.blacklist;return e?.includes(this.node.type)}ut.isBlacklisted=Xx;function Jx(t,e){t.context!==e&&(t.context=e,t.state=e.state,t.opts=e.opts)}function LH(){var t,e;if(!this.node||this.isDenylisted()||(t=(e=this.opts).shouldSkip)!=null&&t.call(e,this))return!1;let r=this.context;return this.shouldSkip||ch.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(Jx(this,r),this.debug("Recursing into..."),this.shouldStop=(0,_H.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),Jx(this,r),ch.call(this,"exit"),this.shouldStop)}function MH(){this.shouldSkip=!0}function FH(t){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[t]=!0}function BH(){this._traverseFlags|=zx.SHOULD_SKIP|zx.SHOULD_STOP}function Hx(){var t,e;if((t=this.opts)!=null&&t.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),(e=this.scope)==null||e.init()}function jH(t){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,t&&(this.context=t,this.state=t.state,this.opts=t.opts),Hx.call(this),this}function RH(){this.removed||(Gx.call(this),Zx.call(this),Qx.call(this))}function Gx(){this.parentPath&&(this.parent=this.parentPath.node)}function Qx(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let t=0;t<this.container.length;t++)if(this.container[t]===this.node){Qo.call(this,t);return}}else for(let t of Object.keys(this.container))if(this.container[t]===this.node){Qo.call(this,t);return}this.key=null}}function Zx(){if(!this.parent||!this.inList)return;let t=this.parent[this.listKey];this.container!==t&&(this.container=t||null)}function qH(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&NH._markRemoved.call(this)}function $H(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function UH(t){this.contexts.push(t),this.setContext(t)}function KH(t,e,r,i){this.listKey=r,this.container=e,this.parentPath=t||this.parentPath,Qo.call(this,i)}function Qo(t){var e;this.key=t,this.node=this.container[this.key],this.type=(e=this.node)==null?void 0:e.type}function WH(t=this){if(t.removed)return;let e=this.contexts;for(let r of e)r.maybeQueue(t)}function VH(){let{context:t,node:e}=this;if(!DH.isPrivate(e)&&e.computed&&t.maybeQueue(this.get("key")),e.decorators)for(let r of this.get("decorators"))t.maybeQueue(r)}function YH(){let t=this,e=this.contexts;for(;!e.length&&(t=t.parentPath,!!t);)e=t.contexts;return e}});var eb=k(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=void 0;var ph=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,r,i=TypeError){return new i(r)}};Zo.default=ph});var kn=k(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Object.defineProperty(Hr,"Hub",{enumerable:!0,get:function(){return GH.default}});Object.defineProperty(Hr,"NodePath",{enumerable:!0,get:function(){return XH.default}});Object.defineProperty(Hr,"Scope",{enumerable:!0,get:function(){return HH.default}});Hr.visitors=Hr.default=void 0;gr();var Vn=po();Hr.visitors=Vn;var zH=Me(),JH=Bi(),tb=mo(),XH=zr(),HH=Dp(),GH=eb(),{VISITOR_KEYS:QH,removeProperties:ZH,traverseFast:Wn}=zH;function Er(t,e={},r,i,s,n){if(t){if(!e.noScope&&!r&&t.type!=="Program"&&t.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 ${t.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");QH[t.type]&&(Vn.explode(e),(0,tb.traverseNode)(t,e,r,i,s,null,n))}}var _oe=Hr.default=Er;Er.visitors=Vn;Er.verify=Vn.verify;Er.explode=Vn.explode;Er.cheap=function(t,e){Wn(t,e)};Er.node=function(t,e,r,i,s,n){(0,tb.traverseNode)(t,e,r,i,s,n)};Er.clearNode=function(t,e){ZH(t,e)};Er.removeProperties=function(t,e){return Wn(t,Er.clearNode,e),t};Er.hasType=function(t,e,r){return r!=null&&r.includes(t.type)?!1:t.type===e?!0:Wn(t,function(i){if(r!=null&&r.includes(i.type))return Wn.skip;if(i.type===e)return Wn.stop})};Er.cache=JH});var ib=k((Doe,rb)=>{var eG=require("fs"),tG=Ba(),rG=kn().default;function iG(t){let e=eG.readFileSync(t,"utf-8"),r=new Set,i,s={};try{i=tG.parse(e,{sourceType:"module",plugins:["jsx","typescript","classProperties","objectRestSpread","optionalChaining","nullishCoalescingOperator"]})}catch{return[]}function n(o){if(o)if(o.type==="StringLiteral"||o.type==="Literal")o.value.split(/\s+/).forEach(l=>r.add(l));else if(o.type==="ArrayExpression")o.elements.forEach(l=>n(l));else if(o.type==="TemplateLiteral")o.quasis.forEach(l=>l.value.cooked.split(/\s+/).forEach(c=>r.add(c))),o.expressions.forEach(l=>n(l));else if(o.type==="Identifier"&&s[o.name])s[o.name].forEach(l=>r.add(l));else if(o.type==="BinaryExpression"&&o.operator==="+")n(o.left),n(o.right);else if(o.type==="ConditionalExpression")n(o.consequent),n(o.alternate);else if(o.type==="LogicalExpression")n(o.left),n(o.right);else if(o.type==="MemberExpression"){if(o.object.type==="Identifier"&&s[o.object.name]&&o.property.type==="Identifier"){let l=s[o.object.name][o.property.name];typeof l=="string"&&l.split(/\s+/).forEach(c=>r.add(c))}}else o.type==="ArrowFunctionExpression"&&(o.body.type==="TemplateLiteral"||o.body.type==="ConditionalExpression"?n(o.body):o.body.type==="BlockStatement"&&o.body.body.forEach(l=>{l.type==="ReturnStatement"&&l.argument&&n(l.argument)}))}function a(o){o&&(o.type==="ObjectExpression"?o.properties.forEach(l=>{l.key&&(l.key.type==="Identifier"&&l.key.name==="className"||l.key.type==="StringLiteral"&&l.key.value==="className")&&l.value.type==="ArrayExpression"&&l.value.elements.forEach(c=>{c&&c.type==="StringLiteral"&&c.value.split(/\s+/).forEach(u=>r.add(u))}),a(l.value)}):o.type==="ArrayExpression"&&o.elements.forEach(l=>a(l)))}return rG(i,{VariableDeclarator(o){if(o.node.init&&o.node.id.type==="Identifier"){if(o.node.init.type==="ObjectExpression"){let l={};o.node.init.properties.forEach(c=>{c.key.type==="Identifier"&&c.value.type==="StringLiteral"&&(l[c.key.name]=c.value.value)}),s[o.node.id.name]=l}else if(o.node.init.type==="ArrayExpression"||o.node.init.type==="StringLiteral"){let l=[];o.node.init.type==="ArrayExpression"?o.node.init.elements.forEach(c=>{c&&c.type==="StringLiteral"&&c.value.split(/\s+/).forEach(u=>l.push(u))}):o.node.init.type==="StringLiteral"&&o.node.init.value.split(/\s+/).forEach(c=>l.push(c)),s[o.node.id.name]=l.filter(Boolean)}(o.node.init.type==="ArrayExpression"||o.node.init.type==="ObjectExpression")&&a(o.node.init)}},JSXAttribute(o){if(typeof o.node.name.name=="string"&&/^(class(Name)?|.*[cC]lass)$/.test(o.node.name.name)){let l=o.node.value;l&&(l.type==="StringLiteral"?l.value.split(/\s+/).forEach(c=>r.add(c)):l.type==="JSXExpressionContainer"&&n(l.expression))}},ObjectProperty(o){o.node.value&&(o.node.value.type==="StringLiteral"||o.node.value.type==="Literal")&&o.node.value.value.split(/\s+/).forEach(l=>r.add(l))},ReturnStatement(o){o.node.argument&&(o.node.argument.type==="StringLiteral"||o.node.argument.type==="Literal")&&o.node.argument.value.split(/\s+/).forEach(l=>r.add(l))},AssignmentExpression(o){o.node.operator==="+="&&o.node.right&&(o.node.right.type==="StringLiteral"||o.node.right.type==="Literal")&&o.node.right.value.split(/\s+/).forEach(l=>r.add(l))}}),a(i),function o(l){l&&(Array.isArray(l)?l.forEach(o):typeof l=="object"&&(l.type==="ObjectExpression"?l.properties.forEach(c=>{c.key&&(c.key.type==="Identifier"&&/class(Name)?$/i.test(c.key.name)||c.key.type==="StringLiteral"&&/class(Name)?$/i.test(c.key.value))&&(c.value.type==="StringLiteral"?c.value.value.split(/\s+/).forEach(u=>r.add(u)):c.value.type==="ArrayExpression"&&c.value.elements.forEach(u=>{u&&u.type==="StringLiteral"&&u.value.split(/\s+/).forEach(d=>r.add(d))})),o(c.value)}):Object.values(l).forEach(o)))}(i),Array.from(r).filter(Boolean)}rb.exports=iG});var hh=require("fs"),pb=require("path"),sG=Sh(),nG=Pd(),aG=Cd(),oG=ib(),lG=(t,e)=>aG(t,e||{},{arrayMerge:(r,i)=>i}),cG=()=>{let t=pb.resolve(process.cwd(),"unicss.config.js");try{return require(t)}catch{return{}}},uG=lG(sG,cG()),at=t=>/\[.*\]/.test(t)?t.replace(/([:\/\.\[\]\(\)\?\=\&\,\'\;\+\"#%\*!])/g,"\\$1"):t.replace(/([:\/\.\[\]\(\)\?\=\&\,\'\"#%\*!])/g,"\\$1").replace(/^([0-9])|\.(\d)/g,"\\$1$2"),q=(t,e)=>{let r=t.replace(/[\[\]]/g,"");return e==="bg-image"||e==="mask-image"||e==="list-image"?/^url\(/i.test(r.trim())?r:r.replace(/_/g," "):e==="list-image"?r:r.replace(/_/g," ")},sb=t=>(hh.readFileSync(t,"utf-8").match(/(?:class|className|\w*[Cc]lass)=["']([\s\S]*?)["']/g)||[]).map(e=>e.replace(/(?:class|className|\w*[Cc]lass)=["']/,"").replace(/["']$/,"").split(/\s+/)).flat().filter(Boolean),fh={first:"first-child",last:"last-child","not-first":"not(:first-child)","not-last":"not(:last-child)",odd:"nth-child(odd)",even:"nth-child(even)",placeholder:":placeholder",file:":file-selector-button",marker:":marker",selection:":selection","first-line":":first-line","first-letter":":first-letter",backdrop:":backdrop","has-checked":"has(:checked)","peer-hover":":hover","peer-focus":":focus","focus-within":"focus-within","peer-active":":active","peer-invalid":":invalid","peer-checked":":checked","peer-disabled":":disabled","peer-required":":required","peer-read-only":":read-only","peer-indeterminate":":indeterminate"},Ds=t=>{if(t.startsWith("group-hover/"))return`is(:where(.group\\/${t.replace("group-hover/","")}):hover *)`;if(t==="group-hover")return"is(:where(.group):hover *)";if(t.startsWith("peer-")&&t.includes("/")){let[e,r]=t.split("/");return`.peer\\/${r}${fh[`peer-${e}`]||`:${e.replace("peer-","")}`} ~ `}return t.startsWith("peer-")?`.peer${fh[t]||`:${t.replace("peer-","")}`} ~ `:fh[t]||`${t}`},Pe=t=>{t=t.replace(/[\[\]]/g,"");let e=t.match(/^rgb\((\d+)_(\d+)_(\d+)(?:_\/(\d+))?\)$/);if(e){let[,i,s,n,a]=e,o=a?parseInt(a,10)/100:1;return`rgba(${i},${s},${n},${o})`}let r=t.match(/^rgb\((\d+),(\d+),(\d+)(?:,(\d*\.?\d+))?\)$/);if(r){let[,i,s,n,a]=r;return`rgba(${i},${s},${n},${a||1})`}if(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{3}$/.test(t))return t;if(t.includes("/")){let[i,s]=t.split("/");if(i.startsWith("#")){let n=i.replace("#","");n.length===3&&(n=n.split("").map(c=>c+c).join(""));let a=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);return`rgba(${a},${o},${l},${parseInt(s,10)/100})`}return`color-mix(in srgb, var(--color-${i}) ${parseInt(s,10)}%, transparent)`}return`var(--color-${t})`},Ee=t=>/^\d+\/\d+$/.test(t)?`${t.replace(/^(\d+)\/(\d+)$/,(e,r,i)=>`${parseInt(r,10)/parseInt(i,10)*100}%`)}`:`var(--${t})`,Ye=t=>/^\d+\/\d+$/.test(t)?`-${t.replace(/^(\d+)\/(\d+)$/,(e,r,i)=>`${parseInt(r,10)/parseInt(i,10)*100}%`)}`:`calc(-1 * var(--${t}))`,pG=t=>{let e=t.split(" ");if(e.length===1){let r=Ee(e[0]);return`${r} ${r}`}return e.map(Ee).join(" ")},fG=t=>{let e=t.split(" ");if(e.length===1){let r=Ye(e[0]);return`${r} ${r}`}return e.map(Ye).join(" ")},nb=["--uni-blur","--uni-drop-shadow","--uni-brightness","--uni-contrast","--uni-grayscale","--uni-hue-rotate","--uni-invert","--uni-saturate","--uni-sepia"],ab=["--uni-backdrop-blur","--uni-backdrop-brightness","--uni-backdrop-contrast","--uni-backdrop-grayscale","--uni-backdrop-hue-rotate","--uni-backdrop-invert","--uni-backdrop-saturate","--uni-backdrop-opacity","--uni-backdrop-sepia"],hG=["--uni-shadow","--uni-shadow-color","--uni-inset-shadow-color","--uni-ring-shadow","--uni-ring-color","--uni-inset-ring-shadow","--uni-ring-inset","--uni-inset-shadow","--uni-inset-ring-shadow"],ob=["--uni-rotate-x","--uni-rotate-y","--uni-rotate-z","--uni-skew-x","--uni-skew-y"],lb=["--uni-scale-x","--uni-scale-y"],cb=["--uni-translate-x","--uni-translate-y","--uni-translate-z"],bt=(t,e,r,i,s=null,n=null,a=!1)=>{let o=at(t),l=a?`.${o} > *`:s&&(s.startsWith("peer-")||s.includes("peer-"))?`${Ds(s)}.${o}`:s?`.${o}:${Ds(s)}`:`.${o}`,c=nb.includes(r),u=ab.includes(r),d=hG.includes(r),b=ob.includes(r),E=lb.includes(r),v=cb.includes(r),A=typeof i=="object"?Object.entries(i).map(([I,_])=>`${I}: ${_}`).join("; "):Array.isArray(r)?r.map(I=>`${I}: ${i}`).join("; "):`${r}: ${i}`;return c?{selector:l,rule:`${l} { ${A}; filter: ${nb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:u?{selector:l,rule:`${l} { ${A}; backdrop-filter: ${ab.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:d?{selector:l,rule:`${l} { ${A}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000); }`,screen:n}:b?{selector:l,rule:`${l} { ${A}; transform: ${ob.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:E?{selector:l,rule:`${l} { ${A}; scale: ${lb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:v?{selector:l,rule:`${l} { ${A}; translate: ${cb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:{selector:l,rule:`${l} { ${A} }`,screen:n}};function ub({skipBase:t=!1}={}){let{sizing:e={},spacing:r={},colors:i={},breakpoints:s={},layout:n={},flexGrid:a={},typography:o={},background:l={},border:c={},effects:u={},filters:d={},table:b={},transition:E={},transforms:v={},interactivity:A={},svg:I={},rootClass:_={}}=uG.theme.extend,$=["html","js","jsx","ts","tsx","vue"].flatMap(h=>nG.sync(`**/*.${h}`,{cwd:process.cwd(),absolute:!0,ignore:["**/node_modules/**","**/dist/**","**/build/**"]})).filter(h=>hh.statSync(h).isFile()),X=Array.from(new Set($.flatMap(h=>{if(!(h.endsWith(".js")||h.endsWith(".jsx")||h.endsWith(".ts")||h.endsWith(".tsx")))return sb(h);try{return oG(h)}catch{return sb(h)}}))),N={main:t?"":`
57
57
  *,::after,::before,::backdrop,::file-selector-button {margin: 0; padding: 0; box-sizing: border-box; border: 0 solid; outline: 0 solid;}
58
58
  h1,h2,h3,h4,h5,h6 {font-size: inherit;font-weight: inherit;}
59
59
  ol,ul,menu {list-style: none;}
@@ -61,59 +61,59 @@ ${e}`,i}}}});var xx=k(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{v
61
61
  img,video {max-width: 100%;height: auto;}
62
62
  textarea {resize: vertical;}
63
63
  :root {
64
- ${[...Object.entries({...i,...r,..._}).map(([f,ve])=>` --${f}: ${ve};`)," --uni-blur: blur(0);"," --uni-drop-shadow: drop-shadow(0 0 #0000);"," --uni-drop-shadow-color: rgb(0 0 0 / 0.15);"," --uni-brightness: brightness(100%);"," --uni-contrast: contrast(100%);"," --uni-grayscale: grayscale(0%);"," --uni-hue-rotate: hue-rotate(0deg);"," --uni-invert: invert(0%);"," --uni-saturate: saturate(100%);"," --uni-sepia: sepia(0%);"," --uni-backdrop-blur: blur(0);"," --uni-backdrop-brightness: brightness(100%);"," --uni-backdrop-contrast: contrast(100%);"," --uni-backdrop-grayscale: grayscale(0%);"," --uni-backdrop-hue-rotate: hue-rotate(0deg);"," --uni-backdrop-invert: invert(0%);"," --uni-backdrop-saturate: saturate(100%);"," --uni-backdrop-opacity: opacity(1);"," --uni-backdrop-sepia: sepia(0%);"," --animate-spin: spin 1s linear infinite;"," --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;"," --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;"," --animate-bounce: bounce 1s infinite;"," --uni-rotate-x: rotateX(0deg);"," --uni-rotate-y: rotateY(0deg);"," --uni-rotate-z: rotateZ(0deg);"," --uni-skew-x: skewX(0deg);"," --uni-skew-y: skewY(0deg);"," --uni-scale-x: 100%;"," --uni-scale-y: 100%;"," --uni-translate-x: 0px;"," --uni-translate-y: 0px;"," --uni-translate-z: 0px;"," --uni-border-style: solid;"," --uni-outline-style: solid;"].join(`
64
+ ${[...Object.entries({...i,...r,..._}).map(([h,ve])=>` --${h}: ${ve};`)," --uni-blur: blur(0);"," --uni-drop-shadow: drop-shadow(0 0 #0000);"," --uni-drop-shadow-color: rgb(0 0 0 / 0.15);"," --uni-brightness: brightness(100%);"," --uni-contrast: contrast(100%);"," --uni-grayscale: grayscale(0%);"," --uni-hue-rotate: hue-rotate(0deg);"," --uni-invert: invert(0%);"," --uni-saturate: saturate(100%);"," --uni-sepia: sepia(0%);"," --uni-backdrop-blur: blur(0);"," --uni-backdrop-brightness: brightness(100%);"," --uni-backdrop-contrast: contrast(100%);"," --uni-backdrop-grayscale: grayscale(0%);"," --uni-backdrop-hue-rotate: hue-rotate(0deg);"," --uni-backdrop-invert: invert(0%);"," --uni-backdrop-saturate: saturate(100%);"," --uni-backdrop-opacity: opacity(1);"," --uni-backdrop-sepia: sepia(0%);"," --animate-spin: spin 1s linear infinite;"," --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;"," --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;"," --animate-bounce: bounce 1s infinite;"," --uni-rotate-x: rotateX(0deg);"," --uni-rotate-y: rotateY(0deg);"," --uni-rotate-z: rotateZ(0deg);"," --uni-skew-x: skewX(0deg);"," --uni-skew-y: skewY(0deg);"," --uni-scale-x: 100%;"," --uni-scale-y: 100%;"," --uni-translate-x: 0px;"," --uni-translate-y: 0px;"," --uni-translate-z: 0px;"," --uni-border-style: solid;"," --uni-outline-style: solid;"].join(`
65
65
  `)}
66
66
  }
67
67
 
68
- `,dark:""},U=Object.keys(s).reduce((f,ve)=>({...f,[ve]:[]}),{dark:[]}),W=new Set,ke=["hover","focus","active","first","last","not-first","not-last","odd","even","has-checked","required","group-hover","disabled","invalid","read-only","indeterminate","checked","before","after","empty","placeholder","file","marker","selection","first-line","first-letter","backdrop","print","peer-hover","peer-focus","focus-within","peer-active","peer-invalid","peer-checked","peer-disabled","peer-required","peer-read-only","peer-indeterminate","open",...X.filter(f=>f.includes("group-hover/")||f.startsWith("peer-")&&f.includes("/")).map(f=>f.split(":")[0]).filter((f,ve,Oe)=>Oe.indexOf(f)===ve)],Ce=[{prefix:"scrollbar-[",prop:"scrollbar-color",transform:f=>q(f).replace(/color-([a-zA-Z0-9\-]+)/g,(ve,Oe)=>`var(--color-${Oe})`)},{prefix:"columns-",prop:"columns",transform:q},{prefix:"p-[",prop:"padding",transform:q},{prefix:"pt-[",prop:"padding-top",transform:q},{prefix:"pr-[",prop:"padding-right",transform:q},{prefix:"pb-[",prop:"padding-bottom",transform:q},{prefix:"pl-[",prop:"padding-left",transform:q},{prefix:"px-[",prop:"padding-inline",transform:q},{prefix:"py-[",prop:"padding-block",transform:q},{prefix:"p-",prop:"padding",transform:Ee},{prefix:"pt-",prop:"padding-top",transform:Ee},{prefix:"pr-",prop:"padding-right",transform:Ee},{prefix:"pb-",prop:"padding-bottom",transform:Ee},{prefix:"pl-",prop:"padding-left",transform:Ee},{prefix:"px-",prop:"padding-inline",transform:Ee},{prefix:"py-",prop:"padding-block",transform:Ee},{prefix:"m-[",prop:"margin",transform:q},{prefix:"mt-[",prop:"margin-top",transform:q},{prefix:"mr-[",prop:"margin-right",transform:q},{prefix:"mb-[",prop:"margin-bottom",transform:q},{prefix:"ml-[",prop:"margin-left",transform:q},{prefix:"mx-[",prop:["margin-left","margin-right"],transform:q},{prefix:"my-[",prop:["margin-top","margin-bottom"],transform:q},{prefix:"m-",prop:"margin",transform:Ee},{prefix:"mt-",prop:"margin-top",transform:Ee},{prefix:"mr-",prop:"margin-right",transform:Ee},{prefix:"mb-",prop:"margin-bottom",transform:Ee},{prefix:"ml-",prop:"margin-left",transform:Ee},{prefix:"mx-",prop:["margin-left","margin-right"],transform:Ee},{prefix:"my-",prop:["margin-top","margin-bottom"],transform:Ee},{prefix:"-m-",prop:"margin",transform:Ge},{prefix:"-mt-",prop:"margin-top",transform:Ge},{prefix:"-mr-",prop:"margin-right",transform:Ge},{prefix:"-mb-",prop:"margin-bottom",transform:Ge},{prefix:"-ml-",prop:"margin-left",transform:Ge},{prefix:"-mx-",prop:["margin-left","margin-right"],transform:f=>r[f]?`var(--${f})`:f},{prefix:"-my-",prop:["margin-top","margin-bottom"],transform:f=>r[f]?`var(--${f})`:f},{prefix:"top-[",prop:"top",transform:q},{prefix:"right-[",prop:"right",transform:q},{prefix:"bottom-[",prop:"bottom",transform:q},{prefix:"left-[",prop:"left",transform:q},{prefix:"top-",prop:"top",transform:Ee},{prefix:"right-",prop:"right",transform:Ee},{prefix:"bottom-",prop:"bottom",transform:Ee},{prefix:"left-",prop:"left",transform:Ee},{prefix:"-top-",prop:"top",transform:Ge},{prefix:"-right-",prop:"right",transform:Ge},{prefix:"-bottom-",prop:"bottom",transform:Ge},{prefix:"-left-",prop:"left",transform:Ge},{prefix:"gap-x-[",prop:"gap",transform:q},{prefix:"gap-x-",prop:"column-gap",transform:f=>`var(--${f})`},{prefix:"gap-y-[",prop:"gap",transform:q},{prefix:"gap-y-",prop:"row-gap",transform:f=>`var(--${f})`},{prefix:"gap-[",prop:"gap",transform:q},{prefix:"gap-",prop:"gap",transform:f=>`var(--${f})`},{prefix:"object-[",prop:"object-position",transform:q},{prefix:"inset-[",prop:"inset",transform:q},{prefix:"inset-x-[",prop:"inset-inline",transform:q},{prefix:"inset-y-[",prop:"inset-block",transform:q},{prefix:"inset-x-",prop:"inset-inline",transform:Ee},{prefix:"inset-y-",prop:"inset-block",transform:Ee},{prefix:"-inset-x-",prop:"inset-inline",transform:Ge},{prefix:"-inset-y-",prop:"inset-block",transform:Ge},{prefix:"inset-",prop:"inset",transform:Ee},{prefix:"-inset-",prop:"inset",transform:Ge},{prefix:"z-",prop:"z-index",transform:q},{prefix:"-z-",prop:"z-index",transform:f=>`-${f}`},{prefix:"flex-[",prop:"flex",transform:q},{prefix:"flex-",prop:"flex",transform:q},{prefix:"grow-",prop:"flex-grow",transform:q},{prefix:"shrink-",prop:"flex-shrink",transform:q},{prefix:"basis-[",prop:"flex-basis",transform:q},{prefix:"basis-",prop:"flex-basis",transform:Ee},{prefix:"order-",prop:"order",transform:q},{prefix:"-order-",prop:"order",transform:f=>`-${f}`},{prefix:"w-[",prop:"width",transform:q},{prefix:"min-w-[",prop:"min-width",transform:q},{prefix:"max-w-[",prop:"max-width",transform:q},{prefix:"w-",prop:"width",transform:Ee},{prefix:"min-w-",prop:"min-width",transform:Ee},{prefix:"max-w-",prop:"max-width",transform:Ee},{prefix:"h-[",prop:"height",transform:q},{prefix:"min-h-[",prop:"min-height",transform:q},{prefix:"max-h-[",prop:"max-height",transform:q},{prefix:"h-",prop:"height",transform:Ee},{prefix:"min-h-",prop:"min-height",transform:Ee},{prefix:"max-h-",prop:"max-height",transform:Ee},{prefix:"size-[",prop:["width","height"],transform:q},{prefix:"size-",prop:["width","height"],transform:Ee},{prefix:"size-auto",prop:null,transform:()=>({width:"auto",height:"auto"})},{prefix:"size-px",prop:null,transform:()=>({width:"1px",height:"1px"})},{prefix:"size-full",prop:null,transform:()=>({width:"100%",height:"100%"})},{prefix:"size-dvw",prop:null,transform:()=>({width:"100dvw",height:"100dvw"})},{prefix:"size-dvh",prop:null,transform:()=>({width:"100dvh",height:"100dvh"})},{prefix:"size-lvw",prop:null,transform:()=>({width:"100lvw",height:"100lvw"})},{prefix:"size-lvh",prop:null,transform:()=>({width:"100lvh",height:"100lvh"})},{prefix:"size-svw",prop:null,transform:()=>({width:"100svw",height:"100svw"})},{prefix:"size-svh",prop:null,transform:()=>({width:"100svh",height:"100svh"})},{prefix:"size-min",prop:null,transform:()=>({width:"min-content",height:"min-content"})},{prefix:"size-max",prop:null,transform:()=>({width:"max-content",height:"max-content"})},{prefix:"size-fit",prop:null,transform:()=>({width:"fit-content",height:"fit-content"})},{prefix:"font-[",prop:"font-weight",transform:q},{prefix:"font-family-[",prop:"font-family",transform:q},{prefix:"tracking-[",prop:"letter-spacing",transform:q},{prefix:"leading-",prop:"line-height",transform:f=>`calc(var(--1) * ${q(f)})`},{prefix:"indent-[",prop:"text-indent",transform:q},{prefix:"indent-",prop:"text-indent",transform:f=>`var(--${f})`},{prefix:"-indent-",prop:"text-indent",transform:f=>`calc(-1 * var(--${f}))`},{prefix:"align-[",prop:"vertical-align",transform:q},{prefix:"list-image-[",prop:"list-style-image",transform:f=>q(f,"list-image")},{prefix:"bg-image-[",prop:"background-image",transform:f=>q(f,"bg-image")},{prefix:"mask-size-[",prop:"mask-size",transform:q},{prefix:"mask-position-[",prop:"mask-position",transform:q},{prefix:"mask-image-[",prop:["mask-image","-webkit-mask-image"],transform:f=>q(f,"mask-image")},{prefix:"grid-columns-[",prop:"grid-template-columns",transform:q},{prefix:"grid-columns-",prop:"grid-template-columns",transform:f=>/^\d+$/.test(f)?`repeat(${f}, minmax(0, 1fr))`:f},{prefix:"col-start-",prop:"grid-column-start",transform:q},{prefix:"-col-start-",prop:"grid-column-start",transform:f=>`calc(${q(f)} * -1)`},{prefix:"col-end-",prop:"grid-column-end",transform:q},{prefix:"-col-end-",prop:"grid-column-end",transform:f=>`calc(${q(f)} * -1)`},{prefix:"col-span-",prop:"grid-column",transform:f=>`span ${q(f)} / span ${q(f)}`},{prefix:"col-[",prop:"grid-column",transform:q},{prefix:"col-",prop:"grid-column",transform:f=>`${q(f)}`},{prefix:"-col-",prop:"grid-column",transform:f=>`calc(${q(f)} * -1)`},{prefix:"grid-rows-[",prop:"grid-template-rows",transform:q},{prefix:"grid-rows-",prop:"grid-template-rows",transform:f=>/^\d+$/.test(f)?`repeat(${f}, minmax(0, 1fr))`:f},{prefix:"row-start-",prop:"grid-row-start",transform:q},{prefix:"-row-start-",prop:"grid-row-start",transform:f=>`calc(${q(f)} * -1)`},{prefix:"row-end-",prop:"grid-row-end",transform:q},{prefix:"-row-end-",prop:"grid-row-end",transform:f=>`calc(${q(f)} * -1)`},{prefix:"row-span-",prop:"grid-row",transform:f=>`span ${q(f)} / span ${q(f)}`},{prefix:"row-[",prop:"grid-row",transform:q},{prefix:"row-",prop:"grid-row",transform:f=>`${q(f)}`},{prefix:"-row-",prop:"grid-row",transform:f=>`calc(${q(f)} * -1)`},{prefix:"auto-columns-[",prop:"grid-auto-columns",transform:q},{prefix:"auto-rows-[",prop:"grid-auto-rows",transform:q},{prefix:"row-start-",prop:"grid-row-start",transform:q},{prefix:"row-end-",prop:"grid-row-end",transform:q},{prefix:"bg-position-[",prop:"background-position",transform:q},{prefix:"bg-size-[",prop:"background-size",transform:q},{prefix:"bg-gradient-[",prop:"background-image",transform:f=>q(f).replace(/color-([a-zA-Z0-9\-]+(?:\/[0-9]+)?)/g,(ve,Oe)=>Pe(Oe))},{prefix:"text-shadow-[",prop:"text-shadow",transform:q},{prefix:"text-shadow-color-[",prop:"--uni-text-shadow-color",transform:Pe},{prefix:"text-shadow-color-",prop:"--uni-text-shadow-color",transform:Pe},{prefix:"text-color-[",prop:"color",transform:Pe},{prefix:"text-color-",prop:"color",transform:Pe},{prefix:"text-[",prop:"font-size",transform:q},{prefix:"text-",prop:null,transform(f){if(f.startsWith("color-"))return{color:Pe(f.replace("color-",""))};let ve=f.match(/^([a-z0-9\[\]\-]+)\/([a-z0-9\[\]\-]+)$/i);if(ve){let[Oe,tt,Ct]=ve;if(!tt.startsWith("color-"))return{"font-size":r[tt]?`var(--${tt})`:`var(--text-${tt})`,"line-height":r[Ct]?`var(--${Ct})`:`var(--line-${Ct})`}}return r[f]?{"font-size":`var(--${f})`}:{"font-size":`var(--text-${f})`}}},{prefix:"bg-color-[",prop:"background-color",transform:Pe},{prefix:"bg-color-",prop:"background-color",transform:Pe},{prefix:"decoration-thick-[",prop:"text-decoration-thickness",transform:q},{prefix:"decoration-thick-",prop:"text-decoration-thickness",transform:f=>`${f}px`},{prefix:"decoration-[",prop:"text-decoration-color",transform:Pe},{prefix:"decoration-",prop:"text-decoration-color",transform:Pe},{prefix:"underline-offset-[",prop:"text-underline-offset",transform:q},{prefix:"underline-offset-",prop:"text-underline-offset",transform:f=>`${f}px`},{prefix:"-underline-offset-",prop:"text-underline-offset",transform:f=>`-${f}px`},{prefix:"outline-offset-[",prop:"outline-offset",transform:q},{prefix:"outline-style-",prop:null,transform:f=>({"--uni-outline-style":f,"outline-style":"var(--uni-outline-style)"})},{prefix:"outline-color-[",prop:"outline-color",transform:Pe},{prefix:"outline-color-",prop:"outline-color",transform:Pe},{prefix:"outline-[",prop:"outline-width",transform:q},{prefix:"outline-offset-",prop:"outline-offset",transform:f=>`${f}px`},{prefix:"-outline-offset-",prop:"outline-offset",transform:f=>`-${f}px`},{prefix:"outline-",prop:null,transform:f=>({"outline-width":`${f}px`,"outline-style":"var(--uni-outline-style)"})},{prefix:"border-spacing-x-",prop:null,transform:f=>({"--uni-border-spacing-x":r[f]?`calc(var(--${f}))`:`calc(${q(f)})`,"border-spacing":"var(--uni-border-spacing-x) var(--uni-border-spacing-y, 0)"})},{prefix:"border-spacing-y-",prop:null,transform:f=>({"--uni-border-spacing-y":r[f]?`calc(var(--${f}))`:`calc(${q(f)})`,"border-spacing":"var(--uni-border-spacing-x, 0) var(--uni-border-spacing-y)"})},{prefix:"border-spacing-",prop:null,transform:f=>({"--uni-border-spacing-x":r[f]?`calc(var(--${f}))`:`calc(${q(f)})`,"--uni-border-spacing-y":r[f]?`calc(var(--${f}))`:`calc(${q(f)})`,"border-spacing":"var(--uni-border-spacing-x) var(--uni-border-spacing-y)"})},{prefix:"border-style-",prop:null,transform:f=>({"--uni-border-style":f,"border-style":"var(--uni-border-style)"})},{prefix:"border-color-[",prop:"border-color",transform:Pe},{prefix:"border-color-",prop:"border-color",transform:Pe},{prefix:"border-t-color-[",prop:"border-top-color",transform:Pe},{prefix:"border-r-color-[",prop:"border-right-color",transform:Pe},{prefix:"border-b-color-[",prop:"border-bottom-color",transform:Pe},{prefix:"border-l-color-[",prop:"border-left-color",transform:Pe},{prefix:"border-x-color-[",prop:"border-inline-color",transform:Pe},{prefix:"border-y-color-[",prop:"border-block-color",transform:Pe},{prefix:"border-t-color-",prop:"border-top-color",transform:Pe},{prefix:"border-r-color-",prop:"border-right-color",transform:Pe},{prefix:"border-b-color-",prop:"border-bottom-color",transform:Pe},{prefix:"border-l-color-",prop:"border-left-color",transform:Pe},{prefix:"border-x-color-",prop:"border-inline-color",transform:Pe},{prefix:"border-y-color-",prop:"border-block-color",transform:Pe},{prefix:"border-x-",prop:null,transform:f=>({"border-inline-width":`${f}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-y-",prop:null,transform:f=>({"border-block-width":`${f}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-r-",prop:null,transform:f=>({"border-right-width":`${f}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-t-",prop:null,transform:f=>({"border-top-width":`${f}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-b-",prop:null,transform:f=>({"border-bottom-width":`${f}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-l-",prop:null,transform:f=>({"border-left-width":`${f}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-[",prop:null,transform:f=>({"border-width":q(f),"border-style":"var(--uni-border-style)"})},{prefix:"border-",prop:null,transform:f=>/^\d+$/.test(f)||/^\d+(px|rem|em|%)$/.test(f)?{"border-width":`${f}px`,"border-style":"var(--uni-border-style)"}:{}},{prefix:"line-clamp-",prop:null,transform:f=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":f.replace("/","")})},{prefix:"line-clamp-none",prop:null,transform:()=>({overflow:"visible",display:"block","-webkit-box-orient":"horizontal","-webkit-line-clamp":"unset"})},{prefix:"truncate",prop:null,transform:()=>({overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"})},{prefix:"sr-only",prop:null,transform:()=>({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap","border-width":"0"})},{prefix:"not-sr-only",prop:null,transform:()=>({position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"})},{prefix:"rounded-[",prop:"border-radius",transform:q},...["xs","sm","md","lg","xl","2xl","4xl","none","full"].map(f=>({prefix:`rounded-${f}`,prop:"border-radius",transform:()=>f==="none"?"0":f==="full"?"calc(infinity * 1px)":`var(--radius-${f})`})),...["t","r","b","l","tl","tr","br","bl"].flatMap(f=>["xs","sm","md","lg","xl","2xl","4xl","none","full"].map(ve=>{let Oe=ve==="none"?"0":ve==="full"?"calc(infinity * 1px)":`var(--radius-${ve})`,tt={};return{t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-right","bottom-left"],l:["top-left","bottom-left"],tl:["top-left"],tr:["top-right"],br:["bottom-right"],bl:["bottom-left"]}[f].forEach(Ct=>{tt[`border-${Ct}-radius`]=Oe}),{prefix:`rounded-${f}-${ve}`,prop:null,transform:()=>tt}})),{prefix:"ring-inset-color-[",prop:"--uni-inset-ring-color",transform:Pe},{prefix:"ring-inset-color-",prop:"--uni-inset-ring-color",transform:Pe},{prefix:"ring-color-[",prop:"--uni-ring-color",transform:Pe},{prefix:"ring-color-",prop:"--uni-ring-color",transform:Pe},{prefix:"shadow-inset-color-[",prop:"--uni-inset-shadow-color",transform:Pe},{prefix:"shadow-inset-color-",prop:"--uni-inset-shadow-color",transform:Pe},{prefix:"shadow-color-[",prop:"--uni-shadow-color",transform:Pe},{prefix:"shadow-color-",prop:"--uni-shadow-color",transform:Pe},{prefix:"shadow-[",prop:"--uni-shadow",transform:q},{prefix:"shadow-",prop:"--uni-shadow",transform:f=>u.shadow?.[f]||q(f)},{prefix:"ring-inset-",prop:"--uni-inset-ring-shadow",transform:f=>`inset 0 0 0 ${f}px var(--uni-inset-ring-color, currentcolor)`},{prefix:"ring-inset",prop:"--uni-inset-ring-shadow",transform:f=>"inset 0 0 0 1px var(--uni-inset-ring-color, currentcolor)"},{prefix:"ring-[",prop:"--uni-ring-shadow",transform:f=>`0 0 0 ${q(f)} var(--uni-ring-color, currentColor)`},{prefix:"ring-",prop:"--uni-ring-shadow",transform:f=>`0 0 0 ${f}px var(--uni-ring-color, currentColor)`},{prefix:"ring",prop:"--uni-ring-shadow",transform:f=>"0 0 0 1px var(--uni-ring-color, currentColor)"},{prefix:"drop-shadow-color-[",prop:"--uni-drop-shadow-color",transform:Pe},{prefix:"drop-shadow-color-",prop:"--uni-drop-shadow-color",transform:Pe},{prefix:"drop-shadow-[",prop:null,transform:f=>({filter:`drop-shadow(${q(f)})`})},{prefix:"drop-shadow-",prop:"--uni-drop-shadow",transform:f=>`drop-shadow(${u.dropShadow?.[f]||q(f)})`},{prefix:"blur-[",prop:"--uni-blur",transform:f=>`blur(${q(f)})`},{prefix:"blur-",prop:"--uni-blur",transform:f=>`blur(var(--blur-${f}))`},{prefix:"brightness-",prop:"--uni-brightness",transform:f=>`brightness(${q(f)}%)`},{prefix:"contrast-",prop:"--uni-contrast",transform:f=>`contrast(${q(f)}%)`},{prefix:"grayscale-",prop:"--uni-grayscale",transform:f=>`grayscale(${q(f)}%)`},{prefix:"grayscale",prop:"--uni-grayscale",transform:f=>"grayscale(100%)"},{prefix:"hue-rotate-",prop:"--uni-hue-rotate",transform:f=>`hue-rotate(${q(f)}deg)`},{prefix:"-hue-rotate-",prop:"--uni-hue-rotate",transform:f=>`hue-rotate(calc(${q(f)}deg * -1))`},{prefix:"invert-",prop:"--uni-invert",transform:f=>`invert(${q(f)}%)`},{prefix:"invert",prop:"--uni-invert",transform:f=>"invert(100%)"},{prefix:"saturate-",prop:"--uni-saturate",transform:f=>`saturate(${q(f)}%)`},{prefix:"sepia-",prop:"--uni-sepia",transform:f=>`sepia(${q(f)}%)`},{prefix:"sepia",prop:"--uni-sepia",transform:f=>"sepia(100%)"},{prefix:"backdrop-blur-[",prop:"--uni-backdrop-blur",transform:f=>`blur(${q(f)})`},{prefix:"backdrop-blur-",prop:"--uni-backdrop-blur",transform:f=>`blur(var(--blur-${f}))`},{prefix:"backdrop-brightness-",prop:"--uni-backdrop-brightness",transform:f=>`brightness(${q(f)}%)`},{prefix:"backdrop-contrast-",prop:"--uni-backdrop-contrast",transform:f=>`contrast(${q(f)}%)`},{prefix:"backdrop-grayscale-",prop:"--uni-backdrop-grayscale",transform:f=>`grayscale(${q(f)}%)`},{prefix:"backdrop-grayscale",prop:"--uni-backdrop-grayscale",transform:f=>"grayscale(100%)"},{prefix:"backdrop-hue-rotate-",prop:"--uni-backdrop-hue-rotate",transform:f=>`hue-rotate(${q(f)}deg)`},{prefix:"-backdrop-hue-rotate-",prop:"--uni-backdrop-hue-rotate",transform:f=>`hue-rotate(calc(${q(f)}deg * -1))`},{prefix:"backdrop-invert-",prop:"--uni-backdrop-invert",transform:f=>`invert(${q(f)}%)`},{prefix:"backdrop-invert",prop:"--uni-backdrop-invert",transform:f=>"invert(100%)"},{prefix:"backdrop-opacity-",prop:"--uni-backdrop-opacity",transform:f=>`opacity(${q(f)}%)`},{prefix:"backdrop-saturate-",prop:"--uni-backdrop-saturate",transform:f=>`saturate(${q(f)}%)`},{prefix:"backdrop-sepia-",prop:"--uni-backdrop-sepia",transform:f=>`sepia(${q(f)}%)`},{prefix:"backdrop-sepia",prop:"--uni-backdrop-sepia",transform:f=>"sepia(100%)"},{prefix:"opacity-",prop:"opacity",transform(f){if(/^\d+$/.test(f)){let ve=parseInt(f,10);if(ve>=0&&ve<=100)return(ve/100).toString()}return q(f)}},{prefix:"duration-",prop:null,transform:f=>({"--uni-transition-duration":`${q(f)}ms`,"transition-duration":"var(--uni-transition-duration, 150ms)"})},{prefix:"ease-[",prop:null,transform:f=>({"--uni-transition-timing-function":q(f),"transition-timing-function":"var(--uni-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1))"})},{prefix:"delay-",prop:null,transform:f=>({"--uni-transition-delay":`${q(f)}ms`,"transition-delay":"var(--uni-transition-delay, 0ms)"})},{prefix:"transition-",prop:null,transform:f=>({"--uni-transition-property":`${q(f)}`,"transition-property":"var(--uni-transition-property, all)","transition-duration":"var(--uni-transition-duration, 150ms)"})},{prefix:"animate-[",prop:"animation",transform:f=>q(f)},{prefix:"animate-spin",prop:"animation",transform:()=>"var(--animate-spin)"},{prefix:"animate-ping",prop:"animation",transform:()=>"var(--animate-ping)"},{prefix:"animate-pulse",prop:"animation",transform:()=>"var(--animate-pulse)"},{prefix:"animate-bounce",prop:"animation",transform:()=>"var(--animate-bounce)"},{prefix:"animate-none",prop:"animation",transform:()=>"none"},{prefix:"iteration-",prop:"animation-iteration-count",transform:f=>q(f)},{prefix:"perspective-[",prop:"perspective",transform:f=>q(f)},{prefix:"perspective-origin-[",prop:"perspective-origin",transform:f=>q(f)},{prefix:"rotate-[",prop:"rotate",transform:f=>q(f)},{prefix:"rotate-x-",prop:"--uni-rotate-x",transform:f=>`rotateX(${f}deg)`},{prefix:"rotate-y-",prop:"--uni-rotate-y",transform:f=>`rotateY(${f}deg)`},{prefix:"rotate-z-",prop:"--uni-rotate-z",transform:f=>`rotateZ(${f}deg)`},{prefix:"-rotate-x-",prop:"--uni-rotate-x",transform:f=>`rotateX(calc(${f}deg * -1))`},{prefix:"-rotate-y-",prop:"--uni-rotate-y",transform:f=>`rotateY(calc(${f}deg * -1))`},{prefix:"-rotate-z-",prop:"--uni-rotate-z",transform:f=>`rotateZ(calc(${f}deg * -1))`},{prefix:"rotate-",prop:"rotate",transform:f=>`${q(f)}deg`},{prefix:"-rotate-",prop:"rotate",transform:f=>`calc(${q(f)}deg * -1)`},{prefix:"scale-x-",prop:"--uni-scale-x",transform:f=>`${f}%`},{prefix:"scale-y-",prop:"--uni-scale-y",transform:f=>`${f}%`},{prefix:"-scale-x-",prop:"--uni-scale-x",transform:f=>`calc(${f}% * -1)`},{prefix:"-scale-y-",prop:"--uni-scale-y",transform:f=>`calc(${f}% * -1)`},{prefix:"scale-",prop:"scale",transform:f=>`${q(f)}%`},{prefix:"-scale-",prop:"scale",transform:f=>`calc(${q(f)}% * -1)`},{prefix:"skew-x-",prop:"--uni-skew-x",transform:f=>`skewX(${f}deg)`},{prefix:"skew-y-",prop:"--uni-skew-y",transform:f=>`skewY(${f}deg)`},{prefix:"skew-",prop:"transform",transform:f=>`skewX(${f}deg) skewY(${f}deg)`},{prefix:"-skew-x-",prop:"--uni-skew-x",transform:f=>`skewX(calc(${f}deg * -1))`},{prefix:"-skew-y-",prop:"--uni-skew-y",transform:f=>`skewY(calc(${f}deg * -1))`},{prefix:"-skew-",prop:"transform",transform:f=>`skewX(calc(${f}deg * -1)) skewY(calc(${f}deg * -1))`},{prefix:"origin-[",prop:"transform-origin",transform:q},{prefix:"translate-[",prop:"translate",transform:q},{prefix:"translate-x-[",prop:"--uni-translate-x",transform:q},{prefix:"translate-y-[",prop:"--uni-translate-y",transform:q},{prefix:"translate-x-",prop:"--uni-translate-x",transform:Ee},{prefix:"translate-y-",prop:"--uni-translate-y",transform:Ee},{prefix:"translate-z-",prop:"--uni-translate-z",transform:Ee},{prefix:"-translate-x-",prop:"--uni-translate-x",transform:Ge},{prefix:"-translate-y-",prop:"--uni-translate-y",transform:Ge},{prefix:"-translate-z-",prop:"--uni-translate-z",transform:Ge},{prefix:"translate-",prop:"translate",transform:pG},{prefix:"-translate-",prop:"translate",transform:fG},{prefix:"caret-color-[",prop:"caret-color",transform:Pe},{prefix:"caret-color-",prop:"caret-color",transform:Pe},{prefix:"accent-color-[",prop:"accent-color",transform:Pe},{prefix:"accent-color-",prop:"accent-color",transform:Pe},{prefix:"scroll-m-[",prop:"scroll-margin",transform:q},{prefix:"scroll-mt-[",prop:"scroll-margin-top",transform:q},{prefix:"scroll-mr-[",prop:"scroll-margin-right",transform:q},{prefix:"scroll-mb-[",prop:"scroll-margin-bottom",transform:q},{prefix:"scroll-ml-[",prop:"scroll-margin-left",transform:q},{prefix:"scroll-mx-[",prop:["scroll-margin-left","scroll-margin-right"],transform:q},{prefix:"scroll-my-[",prop:["scroll-margin-top","scroll-margin-bottom"],transform:q},{prefix:"scroll-m-",prop:"scroll-margin",transform:Ee},{prefix:"-scroll-m-",prop:"scroll-margin",transform:Ge},{prefix:"scroll-mx-",prop:"scroll-margin-inline",transform:Ee},{prefix:"-scroll-mx-",prop:"scroll-margin-inline",transform:Ge},{prefix:"scroll-my-",prop:"scroll-margin-block",transform:Ee},{prefix:"-scroll-my-",prop:"scroll-margin-block",transform:Ge},{prefix:"scroll-mt-",prop:"scroll-margin-top",transform:Ee},{prefix:"-scroll-mt-",prop:"scroll-margin-top",transform:Ge},{prefix:"scroll-mr-",prop:"scroll-margin-right",transform:Ee},{prefix:"-scroll-mr-",prop:"scroll-margin-right",transform:Ge},{prefix:"scroll-mb-",prop:"scroll-margin-bottom",transform:Ee},{prefix:"-scroll-mb-",prop:"scroll-margin-bottom",transform:Ge},{prefix:"scroll-ml-",prop:"scroll-margin-left",transform:Ee},{prefix:"-scroll-ml-",prop:"scroll-margin-left",transform:Ge},{prefix:"scroll-pt-[",prop:"scroll-padding-top",transform:Ee},{prefix:"scroll-pr-[",prop:"scroll-padding-right",transform:Ee},{prefix:"scroll-pb-[",prop:"scroll-padding-bottom",transform:Ee},{prefix:"scroll-pl-[",prop:"scroll-padding-left",transform:Ee},{prefix:"scroll-p-[",prop:"scroll-padding",transform:Ee},{prefix:"scroll-py-[",prop:"scroll-padding-block",transform:Ee},{prefix:"scroll-px-[",prop:"scroll-padding-inline",transform:Ee},{prefix:"scroll-p-",prop:"scroll-padding",transform:Ee},{prefix:"-scroll-p-",prop:"scroll-padding",transform:Ge},{prefix:"scroll-px-",prop:"scroll-padding-inline",transform:Ee},{prefix:"-scroll-px-",prop:"scroll-padding-inline",transform:Ge},{prefix:"scroll-py-",prop:"scroll-padding-block",transform:Ee},{prefix:"-scroll-py-",prop:"scroll-padding-block",transform:Ge},{prefix:"scroll-pt-",prop:"scroll-padding-top",transform:Ee},{prefix:"-scroll-pt-",prop:"scroll-padding-top",transform:Ge},{prefix:"scroll-pr-",prop:"scroll-padding-right",transform:Ee},{prefix:"-scroll-pr-",prop:"scroll-padding-right",transform:Ge},{prefix:"scroll-pb-",prop:"scroll-padding-bottom",transform:Ee},{prefix:"-scroll-pb-",prop:"scroll-padding-bottom",transform:Ge},{prefix:"scroll-pl-",prop:"scroll-padding-left",transform:Ee},{prefix:"-scroll-pl-",prop:"scroll-padding-left",transform:Ge},{prefix:"fill-color-[",prop:"fill",transform:Pe},{prefix:"fill-color-",prop:"fill",transform:Pe},{prefix:"stroke-color-[",prop:"stroke",transform:Pe},{prefix:"stroke-color-",prop:"stroke",transform:Pe},{prefix:"stroke-[",prop:"stroke-width",transform:f=>q(f)},{prefix:"stroke-",prop:"stroke-width",transform:f=>`${f}px`}],Ie={layout:n,flexGrid:a,sizing:e,typography:o,background:l,border:c,effects:u,filters:d,table:b,transition:E,transforms:v,interactivity:A,svg:I},We=new Set;X.forEach(f=>{let ve=!1,Oe=f.includes("!"),tt=Oe?f.replace("!",""):f;Ce.forEach(({prefix:O,prop:F,transform:D})=>{ke.forEach(ee=>{if(f.startsWith(`${ee}:`)){let Q=f.slice(ee.length+1),ae=!1;Q.startsWith("!")&&(ae=!0,Q=Q.slice(1));let j=!1;if(Object.entries(Ie).forEach(([B,R])=>{Object.entries(R).forEach(([Y,te])=>{if(typeof te=="object"&&Q in te){let Z=`.${at(f)}:${Ds(ee)}`,ue=`${Z} { ${Y}: ${te[Q]}${ae?" !important":""}; }`;W.has(Z)||(N.main+=`${ue}
69
- `,W.add(Z),We.add(f)),j=!0}})}),j)return;Ce.forEach(({prefix:B,prop:R,transform:Y})=>{if(Q.startsWith(B)){let te=Q.replace(B,""),Z=Y(te);typeof Z=="object"?Object.keys(Z).forEach(ge=>{Z[ge]=`${Z[ge]}${ae?" !important":""}`}):Z=`${Z}${ae?" !important":""}`;let ue=bt(f,B,R,Z,ee);W.has(ue.selector)||(N.main+=`${ue.rule}
70
- `,W.add(ue.selector))}})}})}),f.startsWith("!")&&(Oe=!0,tt=f.slice(1)),Object.entries(Ie).forEach(([O,F])=>Object.entries(F).forEach(([D,ee])=>{typeof ee=="object"&&Object.entries(ee).forEach(([Q,ae])=>{if(tt===Q&&!ve){let j=at(f);W.has(j)||(N.main+=`.${j} { ${D}: ${ae}${Oe?" !important":""}; }
71
- `,W.add(j),We.add(Q)),ve=!0}ke.forEach(j=>{if(f===`${j}:${Q}`&&!ve){let B=bt(f,Q,D,ae,j);W.has(B.selector)||(N.main+=`${B.rule}
72
- `,W.add(B.selector),We.add(f)),ve=!0}})})}));let Ct=f.match(/^nth-(\d+):(.*)$/);if(Ct){let[O,F,D]=Ct,ee=!1;Object.entries(Ie).forEach(([Q,ae])=>Object.entries(ae).forEach(([j,B])=>{if(typeof B=="object"&&B[D]){let R=at(f);W.has(R)||(N.main+=`.${R}:nth-child(${F}) { ${j}: ${B[D]}; }
73
- `,W.add(R)),ee=!0}})),ee||Ce.forEach(({prefix:Q,prop:ae,transform:j})=>{if(D===Q||D.startsWith(Q)){let B=D===Q?"":D.replace(Q,""),R=j(B);typeof R=="object"?Object.keys(R).forEach(te=>{R[te]=`${R[te]}`}):R=`${R}`;let Y=bt(f,Q,ae,R,null,null);W.has(Y.selector)||(N.main+=`${Y.selector}:nth-child(${F}) { ${Y.rule.replace(/^.*?\s*{\s*|\s*}$/g,"")} }
74
- `,W.add(Y.selector))}})}let ne=f.match(/^nth-last-(\d+):(.*)$/);if(ne){let[O,F,D]=ne;Object.entries(Ie).forEach(([ee,Q])=>Object.entries(Q).forEach(([ae,j])=>{if(typeof j=="object"&&j[D]){let B=at(f);W.has(B)||(N.main+=`.${B}:nth-last-child(${F}) { ${ae}: ${j[D]}; }
75
- `,W.add(B))}}))}if(f.startsWith("aspect-")&&!f.includes(":")){let O=f.replace("aspect-",""),F=at(f);n["aspect-ratio"]?.[f]&&!W.has(F)?(N.main+=`.${F} { aspect-ratio: ${n["aspect-ratio"][f]}; }
68
+ `,dark:""},U=Object.keys(s).reduce((h,ve)=>({...h,[ve]:[]}),{dark:[]}),W=new Set,ke=["hover","focus","active","first","last","not-first","not-last","odd","even","has-checked","required","group-hover","disabled","invalid","read-only","indeterminate","checked","before","after","empty","placeholder","file","marker","selection","first-line","first-letter","backdrop","print","peer-hover","peer-focus","focus-within","peer-active","peer-invalid","peer-checked","peer-disabled","peer-required","peer-read-only","peer-indeterminate","open",...X.filter(h=>h.includes("group-hover/")||h.startsWith("peer-")&&h.includes("/")).map(h=>h.split(":")[0]).filter((h,ve,Oe)=>Oe.indexOf(h)===ve)],Ce=[{prefix:"scrollbar-[",prop:"scrollbar-color",transform:h=>q(h).replace(/color-([a-zA-Z0-9\-]+)/g,(ve,Oe)=>`var(--color-${Oe})`)},{prefix:"columns-",prop:"columns",transform:q},{prefix:"p-[",prop:"padding",transform:q},{prefix:"pt-[",prop:"padding-top",transform:q},{prefix:"pr-[",prop:"padding-right",transform:q},{prefix:"pb-[",prop:"padding-bottom",transform:q},{prefix:"pl-[",prop:"padding-left",transform:q},{prefix:"px-[",prop:"padding-inline",transform:q},{prefix:"py-[",prop:"padding-block",transform:q},{prefix:"p-",prop:"padding",transform:Ee},{prefix:"pt-",prop:"padding-top",transform:Ee},{prefix:"pr-",prop:"padding-right",transform:Ee},{prefix:"pb-",prop:"padding-bottom",transform:Ee},{prefix:"pl-",prop:"padding-left",transform:Ee},{prefix:"px-",prop:"padding-inline",transform:Ee},{prefix:"py-",prop:"padding-block",transform:Ee},{prefix:"m-[",prop:"margin",transform:q},{prefix:"mt-[",prop:"margin-top",transform:q},{prefix:"mr-[",prop:"margin-right",transform:q},{prefix:"mb-[",prop:"margin-bottom",transform:q},{prefix:"ml-[",prop:"margin-left",transform:q},{prefix:"mx-[",prop:["margin-left","margin-right"],transform:q},{prefix:"my-[",prop:["margin-top","margin-bottom"],transform:q},{prefix:"m-",prop:"margin",transform:Ee},{prefix:"mt-",prop:"margin-top",transform:Ee},{prefix:"mr-",prop:"margin-right",transform:Ee},{prefix:"mb-",prop:"margin-bottom",transform:Ee},{prefix:"ml-",prop:"margin-left",transform:Ee},{prefix:"mx-",prop:["margin-left","margin-right"],transform:Ee},{prefix:"my-",prop:["margin-top","margin-bottom"],transform:Ee},{prefix:"-m-",prop:"margin",transform:Ye},{prefix:"-mt-",prop:"margin-top",transform:Ye},{prefix:"-mr-",prop:"margin-right",transform:Ye},{prefix:"-mb-",prop:"margin-bottom",transform:Ye},{prefix:"-ml-",prop:"margin-left",transform:Ye},{prefix:"-mx-",prop:["margin-left","margin-right"],transform:Ye},{prefix:"-my-",prop:["margin-top","margin-bottom"],transform:Ye},{prefix:"top-[",prop:"top",transform:q},{prefix:"right-[",prop:"right",transform:q},{prefix:"bottom-[",prop:"bottom",transform:q},{prefix:"left-[",prop:"left",transform:q},{prefix:"top-",prop:"top",transform:Ee},{prefix:"right-",prop:"right",transform:Ee},{prefix:"bottom-",prop:"bottom",transform:Ee},{prefix:"left-",prop:"left",transform:Ee},{prefix:"-top-",prop:"top",transform:Ye},{prefix:"-right-",prop:"right",transform:Ye},{prefix:"-bottom-",prop:"bottom",transform:Ye},{prefix:"-left-",prop:"left",transform:Ye},{prefix:"gap-x-[",prop:"gap",transform:q},{prefix:"gap-x-",prop:"column-gap",transform:h=>`var(--${h})`},{prefix:"gap-y-[",prop:"gap",transform:q},{prefix:"gap-y-",prop:"row-gap",transform:h=>`var(--${h})`},{prefix:"gap-[",prop:"gap",transform:q},{prefix:"gap-",prop:"gap",transform:h=>`var(--${h})`},{prefix:"object-[",prop:"object-position",transform:q},{prefix:"inset-[",prop:"inset",transform:q},{prefix:"inset-x-[",prop:"inset-inline",transform:q},{prefix:"inset-y-[",prop:"inset-block",transform:q},{prefix:"inset-x-",prop:"inset-inline",transform:Ee},{prefix:"inset-y-",prop:"inset-block",transform:Ee},{prefix:"-inset-x-",prop:"inset-inline",transform:Ye},{prefix:"-inset-y-",prop:"inset-block",transform:Ye},{prefix:"inset-",prop:"inset",transform:Ee},{prefix:"-inset-",prop:"inset",transform:Ye},{prefix:"z-",prop:"z-index",transform:q},{prefix:"-z-",prop:"z-index",transform:h=>`-${h}`},{prefix:"flex-[",prop:"flex",transform:q},{prefix:"flex-",prop:"flex",transform:q},{prefix:"grow-",prop:"flex-grow",transform:q},{prefix:"shrink-",prop:"flex-shrink",transform:q},{prefix:"basis-[",prop:"flex-basis",transform:q},{prefix:"basis-",prop:"flex-basis",transform:Ee},{prefix:"order-",prop:"order",transform:q},{prefix:"-order-",prop:"order",transform:h=>`-${h}`},{prefix:"w-[",prop:"width",transform:q},{prefix:"min-w-[",prop:"min-width",transform:q},{prefix:"max-w-[",prop:"max-width",transform:q},{prefix:"w-",prop:"width",transform:Ee},{prefix:"min-w-",prop:"min-width",transform:Ee},{prefix:"max-w-",prop:"max-width",transform:Ee},{prefix:"h-[",prop:"height",transform:q},{prefix:"min-h-[",prop:"min-height",transform:q},{prefix:"max-h-[",prop:"max-height",transform:q},{prefix:"h-",prop:"height",transform:Ee},{prefix:"min-h-",prop:"min-height",transform:Ee},{prefix:"max-h-",prop:"max-height",transform:Ee},{prefix:"size-[",prop:["width","height"],transform:q},{prefix:"size-",prop:["width","height"],transform:Ee},{prefix:"size-auto",prop:null,transform:()=>({width:"auto",height:"auto"})},{prefix:"size-px",prop:null,transform:()=>({width:"1px",height:"1px"})},{prefix:"size-full",prop:null,transform:()=>({width:"100%",height:"100%"})},{prefix:"size-dvw",prop:null,transform:()=>({width:"100dvw",height:"100dvw"})},{prefix:"size-dvh",prop:null,transform:()=>({width:"100dvh",height:"100dvh"})},{prefix:"size-lvw",prop:null,transform:()=>({width:"100lvw",height:"100lvw"})},{prefix:"size-lvh",prop:null,transform:()=>({width:"100lvh",height:"100lvh"})},{prefix:"size-svw",prop:null,transform:()=>({width:"100svw",height:"100svw"})},{prefix:"size-svh",prop:null,transform:()=>({width:"100svh",height:"100svh"})},{prefix:"size-min",prop:null,transform:()=>({width:"min-content",height:"min-content"})},{prefix:"size-max",prop:null,transform:()=>({width:"max-content",height:"max-content"})},{prefix:"size-fit",prop:null,transform:()=>({width:"fit-content",height:"fit-content"})},{prefix:"font-[",prop:"font-weight",transform:q},{prefix:"font-family-[",prop:"font-family",transform:q},{prefix:"tracking-[",prop:"letter-spacing",transform:q},{prefix:"leading-",prop:"line-height",transform:h=>`calc(var(--1) * ${q(h)})`},{prefix:"indent-[",prop:"text-indent",transform:q},{prefix:"indent-",prop:"text-indent",transform:h=>`var(--${h})`},{prefix:"-indent-",prop:"text-indent",transform:h=>`calc(-1 * var(--${h}))`},{prefix:"align-[",prop:"vertical-align",transform:q},{prefix:"list-image-[",prop:"list-style-image",transform:h=>q(h,"list-image")},{prefix:"bg-image-[",prop:"background-image",transform:h=>q(h,"bg-image")},{prefix:"mask-size-[",prop:"mask-size",transform:q},{prefix:"mask-position-[",prop:"mask-position",transform:q},{prefix:"mask-image-[",prop:["mask-image","-webkit-mask-image"],transform:h=>q(h,"mask-image")},{prefix:"grid-columns-[",prop:"grid-template-columns",transform:q},{prefix:"grid-columns-",prop:"grid-template-columns",transform:h=>/^\d+$/.test(h)?`repeat(${h}, minmax(0, 1fr))`:h},{prefix:"col-start-",prop:"grid-column-start",transform:q},{prefix:"-col-start-",prop:"grid-column-start",transform:h=>`calc(${q(h)} * -1)`},{prefix:"col-end-",prop:"grid-column-end",transform:q},{prefix:"-col-end-",prop:"grid-column-end",transform:h=>`calc(${q(h)} * -1)`},{prefix:"col-span-",prop:"grid-column",transform:h=>`span ${q(h)} / span ${q(h)}`},{prefix:"col-[",prop:"grid-column",transform:q},{prefix:"col-",prop:"grid-column",transform:h=>`${q(h)}`},{prefix:"-col-",prop:"grid-column",transform:h=>`calc(${q(h)} * -1)`},{prefix:"grid-rows-[",prop:"grid-template-rows",transform:q},{prefix:"grid-rows-",prop:"grid-template-rows",transform:h=>/^\d+$/.test(h)?`repeat(${h}, minmax(0, 1fr))`:h},{prefix:"row-start-",prop:"grid-row-start",transform:q},{prefix:"-row-start-",prop:"grid-row-start",transform:h=>`calc(${q(h)} * -1)`},{prefix:"row-end-",prop:"grid-row-end",transform:q},{prefix:"-row-end-",prop:"grid-row-end",transform:h=>`calc(${q(h)} * -1)`},{prefix:"row-span-",prop:"grid-row",transform:h=>`span ${q(h)} / span ${q(h)}`},{prefix:"row-[",prop:"grid-row",transform:q},{prefix:"row-",prop:"grid-row",transform:h=>`${q(h)}`},{prefix:"-row-",prop:"grid-row",transform:h=>`calc(${q(h)} * -1)`},{prefix:"auto-columns-[",prop:"grid-auto-columns",transform:q},{prefix:"auto-rows-[",prop:"grid-auto-rows",transform:q},{prefix:"row-start-",prop:"grid-row-start",transform:q},{prefix:"row-end-",prop:"grid-row-end",transform:q},{prefix:"bg-position-[",prop:"background-position",transform:q},{prefix:"bg-size-[",prop:"background-size",transform:q},{prefix:"bg-gradient-[",prop:"background-image",transform:h=>q(h).replace(/color-([a-zA-Z0-9\-]+(?:\/[0-9]+)?)/g,(ve,Oe)=>Pe(Oe))},{prefix:"text-shadow-[",prop:"text-shadow",transform:q},{prefix:"text-shadow-color-[",prop:"--uni-text-shadow-color",transform:Pe},{prefix:"text-shadow-color-",prop:"--uni-text-shadow-color",transform:Pe},{prefix:"text-color-[",prop:"color",transform:Pe},{prefix:"text-color-",prop:"color",transform:Pe},{prefix:"text-[",prop:"font-size",transform:q},{prefix:"text-",prop:null,transform(h){if(h.startsWith("color-"))return{color:Pe(h.replace("color-",""))};let ve=h.match(/^([a-z0-9\[\]\-]+)\/([a-z0-9\[\]\-]+)$/i);if(ve){let[Oe,tt,Ct]=ve;if(!tt.startsWith("color-"))return{"font-size":r[tt]?`var(--${tt})`:`var(--text-${tt})`,"line-height":r[Ct]?`var(--${Ct})`:`var(--line-${Ct})`}}return r[h]?{"font-size":`var(--${h})`}:{"font-size":`var(--text-${h})`}}},{prefix:"bg-color-[",prop:"background-color",transform:Pe},{prefix:"bg-color-",prop:"background-color",transform:Pe},{prefix:"decoration-thick-[",prop:"text-decoration-thickness",transform:q},{prefix:"decoration-thick-",prop:"text-decoration-thickness",transform:h=>`${h}px`},{prefix:"decoration-[",prop:"text-decoration-color",transform:Pe},{prefix:"decoration-",prop:"text-decoration-color",transform:Pe},{prefix:"underline-offset-[",prop:"text-underline-offset",transform:q},{prefix:"underline-offset-",prop:"text-underline-offset",transform:h=>`${h}px`},{prefix:"-underline-offset-",prop:"text-underline-offset",transform:h=>`-${h}px`},{prefix:"outline-offset-[",prop:"outline-offset",transform:q},{prefix:"outline-style-",prop:null,transform:h=>({"--uni-outline-style":h,"outline-style":"var(--uni-outline-style)"})},{prefix:"outline-color-[",prop:"outline-color",transform:Pe},{prefix:"outline-color-",prop:"outline-color",transform:Pe},{prefix:"outline-[",prop:"outline-width",transform:q},{prefix:"outline-offset-",prop:"outline-offset",transform:h=>`${h}px`},{prefix:"-outline-offset-",prop:"outline-offset",transform:h=>`-${h}px`},{prefix:"outline-",prop:null,transform:h=>({"outline-width":`${h}px`,"outline-style":"var(--uni-outline-style)"})},{prefix:"border-spacing-x-",prop:null,transform:h=>({"--uni-border-spacing-x":r[h]?`calc(var(--${h}))`:`calc(${q(h)})`,"border-spacing":"var(--uni-border-spacing-x) var(--uni-border-spacing-y, 0)"})},{prefix:"border-spacing-y-",prop:null,transform:h=>({"--uni-border-spacing-y":r[h]?`calc(var(--${h}))`:`calc(${q(h)})`,"border-spacing":"var(--uni-border-spacing-x, 0) var(--uni-border-spacing-y)"})},{prefix:"border-spacing-",prop:null,transform:h=>({"--uni-border-spacing-x":r[h]?`calc(var(--${h}))`:`calc(${q(h)})`,"--uni-border-spacing-y":r[h]?`calc(var(--${h}))`:`calc(${q(h)})`,"border-spacing":"var(--uni-border-spacing-x) var(--uni-border-spacing-y)"})},{prefix:"border-style-",prop:null,transform:h=>({"--uni-border-style":h,"border-style":"var(--uni-border-style)"})},{prefix:"border-color-[",prop:"border-color",transform:Pe},{prefix:"border-color-",prop:"border-color",transform:Pe},{prefix:"border-t-color-[",prop:"border-top-color",transform:Pe},{prefix:"border-r-color-[",prop:"border-right-color",transform:Pe},{prefix:"border-b-color-[",prop:"border-bottom-color",transform:Pe},{prefix:"border-l-color-[",prop:"border-left-color",transform:Pe},{prefix:"border-x-color-[",prop:"border-inline-color",transform:Pe},{prefix:"border-y-color-[",prop:"border-block-color",transform:Pe},{prefix:"border-t-color-",prop:"border-top-color",transform:Pe},{prefix:"border-r-color-",prop:"border-right-color",transform:Pe},{prefix:"border-b-color-",prop:"border-bottom-color",transform:Pe},{prefix:"border-l-color-",prop:"border-left-color",transform:Pe},{prefix:"border-x-color-",prop:"border-inline-color",transform:Pe},{prefix:"border-y-color-",prop:"border-block-color",transform:Pe},{prefix:"border-x-",prop:null,transform:h=>({"border-inline-width":`${h}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-y-",prop:null,transform:h=>({"border-block-width":`${h}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-r-",prop:null,transform:h=>({"border-right-width":`${h}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-t-",prop:null,transform:h=>({"border-top-width":`${h}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-b-",prop:null,transform:h=>({"border-bottom-width":`${h}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-l-",prop:null,transform:h=>({"border-left-width":`${h}px`,"border-style":"var(--uni-border-style)"})},{prefix:"border-[",prop:null,transform:h=>({"border-width":q(h),"border-style":"var(--uni-border-style)"})},{prefix:"border-",prop:null,transform:h=>/^\d+$/.test(h)||/^\d+(px|rem|em|%)$/.test(h)?{"border-width":`${h}px`,"border-style":"var(--uni-border-style)"}:{}},{prefix:"line-clamp-",prop:null,transform:h=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":h.replace("/","")})},{prefix:"line-clamp-none",prop:null,transform:()=>({overflow:"visible",display:"block","-webkit-box-orient":"horizontal","-webkit-line-clamp":"unset"})},{prefix:"truncate",prop:null,transform:()=>({overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"})},{prefix:"sr-only",prop:null,transform:()=>({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap","border-width":"0"})},{prefix:"not-sr-only",prop:null,transform:()=>({position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"})},{prefix:"rounded-[",prop:"border-radius",transform:q},...["xs","sm","md","lg","xl","2xl","4xl","none","full"].map(h=>({prefix:`rounded-${h}`,prop:"border-radius",transform:()=>h==="none"?"0":h==="full"?"calc(infinity * 1px)":`var(--radius-${h})`})),...["t","r","b","l","tl","tr","br","bl"].flatMap(h=>["xs","sm","md","lg","xl","2xl","4xl","none","full"].map(ve=>{let Oe=ve==="none"?"0":ve==="full"?"calc(infinity * 1px)":`var(--radius-${ve})`,tt={};return{t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-right","bottom-left"],l:["top-left","bottom-left"],tl:["top-left"],tr:["top-right"],br:["bottom-right"],bl:["bottom-left"]}[h].forEach(Ct=>{tt[`border-${Ct}-radius`]=Oe}),{prefix:`rounded-${h}-${ve}`,prop:null,transform:()=>tt}})),{prefix:"ring-inset-color-[",prop:"--uni-inset-ring-color",transform:Pe},{prefix:"ring-inset-color-",prop:"--uni-inset-ring-color",transform:Pe},{prefix:"ring-color-[",prop:"--uni-ring-color",transform:Pe},{prefix:"ring-color-",prop:"--uni-ring-color",transform:Pe},{prefix:"shadow-inset-color-[",prop:"--uni-inset-shadow-color",transform:Pe},{prefix:"shadow-inset-color-",prop:"--uni-inset-shadow-color",transform:Pe},{prefix:"shadow-color-[",prop:"--uni-shadow-color",transform:Pe},{prefix:"shadow-color-",prop:"--uni-shadow-color",transform:Pe},{prefix:"shadow-[",prop:"--uni-shadow",transform:q},{prefix:"shadow-",prop:"--uni-shadow",transform:h=>u.shadow?.[h]||q(h)},{prefix:"ring-inset-",prop:"--uni-inset-ring-shadow",transform:h=>`inset 0 0 0 ${h}px var(--uni-inset-ring-color, currentcolor)`},{prefix:"ring-inset",prop:"--uni-inset-ring-shadow",transform:h=>"inset 0 0 0 1px var(--uni-inset-ring-color, currentcolor)"},{prefix:"ring-[",prop:"--uni-ring-shadow",transform:h=>`0 0 0 ${q(h)} var(--uni-ring-color, currentColor)`},{prefix:"ring-",prop:"--uni-ring-shadow",transform:h=>`0 0 0 ${h}px var(--uni-ring-color, currentColor)`},{prefix:"ring",prop:"--uni-ring-shadow",transform:h=>"0 0 0 1px var(--uni-ring-color, currentColor)"},{prefix:"drop-shadow-color-[",prop:"--uni-drop-shadow-color",transform:Pe},{prefix:"drop-shadow-color-",prop:"--uni-drop-shadow-color",transform:Pe},{prefix:"drop-shadow-[",prop:null,transform:h=>({filter:`drop-shadow(${q(h)})`})},{prefix:"drop-shadow-",prop:"--uni-drop-shadow",transform:h=>`drop-shadow(${u.dropShadow?.[h]||q(h)})`},{prefix:"blur-[",prop:"--uni-blur",transform:h=>`blur(${q(h)})`},{prefix:"blur-",prop:"--uni-blur",transform:h=>`blur(var(--blur-${h}))`},{prefix:"brightness-",prop:"--uni-brightness",transform:h=>`brightness(${q(h)}%)`},{prefix:"contrast-",prop:"--uni-contrast",transform:h=>`contrast(${q(h)}%)`},{prefix:"grayscale-",prop:"--uni-grayscale",transform:h=>`grayscale(${q(h)}%)`},{prefix:"grayscale",prop:"--uni-grayscale",transform:h=>"grayscale(100%)"},{prefix:"hue-rotate-",prop:"--uni-hue-rotate",transform:h=>`hue-rotate(${q(h)}deg)`},{prefix:"-hue-rotate-",prop:"--uni-hue-rotate",transform:h=>`hue-rotate(calc(${q(h)}deg * -1))`},{prefix:"invert-",prop:"--uni-invert",transform:h=>`invert(${q(h)}%)`},{prefix:"invert",prop:"--uni-invert",transform:h=>"invert(100%)"},{prefix:"saturate-",prop:"--uni-saturate",transform:h=>`saturate(${q(h)}%)`},{prefix:"sepia-",prop:"--uni-sepia",transform:h=>`sepia(${q(h)}%)`},{prefix:"sepia",prop:"--uni-sepia",transform:h=>"sepia(100%)"},{prefix:"backdrop-blur-[",prop:"--uni-backdrop-blur",transform:h=>`blur(${q(h)})`},{prefix:"backdrop-blur-",prop:"--uni-backdrop-blur",transform:h=>`blur(var(--blur-${h}))`},{prefix:"backdrop-brightness-",prop:"--uni-backdrop-brightness",transform:h=>`brightness(${q(h)}%)`},{prefix:"backdrop-contrast-",prop:"--uni-backdrop-contrast",transform:h=>`contrast(${q(h)}%)`},{prefix:"backdrop-grayscale-",prop:"--uni-backdrop-grayscale",transform:h=>`grayscale(${q(h)}%)`},{prefix:"backdrop-grayscale",prop:"--uni-backdrop-grayscale",transform:h=>"grayscale(100%)"},{prefix:"backdrop-hue-rotate-",prop:"--uni-backdrop-hue-rotate",transform:h=>`hue-rotate(${q(h)}deg)`},{prefix:"-backdrop-hue-rotate-",prop:"--uni-backdrop-hue-rotate",transform:h=>`hue-rotate(calc(${q(h)}deg * -1))`},{prefix:"backdrop-invert-",prop:"--uni-backdrop-invert",transform:h=>`invert(${q(h)}%)`},{prefix:"backdrop-invert",prop:"--uni-backdrop-invert",transform:h=>"invert(100%)"},{prefix:"backdrop-opacity-",prop:"--uni-backdrop-opacity",transform:h=>`opacity(${q(h)}%)`},{prefix:"backdrop-saturate-",prop:"--uni-backdrop-saturate",transform:h=>`saturate(${q(h)}%)`},{prefix:"backdrop-sepia-",prop:"--uni-backdrop-sepia",transform:h=>`sepia(${q(h)}%)`},{prefix:"backdrop-sepia",prop:"--uni-backdrop-sepia",transform:h=>"sepia(100%)"},{prefix:"opacity-",prop:"opacity",transform(h){if(/^\d+$/.test(h)){let ve=parseInt(h,10);if(ve>=0&&ve<=100)return(ve/100).toString()}return q(h)}},{prefix:"duration-",prop:null,transform:h=>({"--uni-transition-duration":`${q(h)}ms`,"transition-duration":"var(--uni-transition-duration, 150ms)"})},{prefix:"ease-[",prop:null,transform:h=>({"--uni-transition-timing-function":q(h),"transition-timing-function":"var(--uni-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1))"})},{prefix:"delay-",prop:null,transform:h=>({"--uni-transition-delay":`${q(h)}ms`,"transition-delay":"var(--uni-transition-delay, 0ms)"})},{prefix:"transition-",prop:null,transform:h=>({"--uni-transition-property":`${q(h)}`,"transition-property":"var(--uni-transition-property, all)","transition-duration":"var(--uni-transition-duration, 150ms)"})},{prefix:"animate-[",prop:"animation",transform:h=>q(h)},{prefix:"animate-spin",prop:"animation",transform:()=>"var(--animate-spin)"},{prefix:"animate-ping",prop:"animation",transform:()=>"var(--animate-ping)"},{prefix:"animate-pulse",prop:"animation",transform:()=>"var(--animate-pulse)"},{prefix:"animate-bounce",prop:"animation",transform:()=>"var(--animate-bounce)"},{prefix:"animate-none",prop:"animation",transform:()=>"none"},{prefix:"iteration-",prop:"animation-iteration-count",transform:h=>q(h)},{prefix:"perspective-[",prop:"perspective",transform:h=>q(h)},{prefix:"perspective-origin-[",prop:"perspective-origin",transform:h=>q(h)},{prefix:"rotate-[",prop:"rotate",transform:h=>q(h)},{prefix:"rotate-x-",prop:"--uni-rotate-x",transform:h=>`rotateX(${h}deg)`},{prefix:"rotate-y-",prop:"--uni-rotate-y",transform:h=>`rotateY(${h}deg)`},{prefix:"rotate-z-",prop:"--uni-rotate-z",transform:h=>`rotateZ(${h}deg)`},{prefix:"-rotate-x-",prop:"--uni-rotate-x",transform:h=>`rotateX(calc(${h}deg * -1))`},{prefix:"-rotate-y-",prop:"--uni-rotate-y",transform:h=>`rotateY(calc(${h}deg * -1))`},{prefix:"-rotate-z-",prop:"--uni-rotate-z",transform:h=>`rotateZ(calc(${h}deg * -1))`},{prefix:"rotate-",prop:"rotate",transform:h=>`${q(h)}deg`},{prefix:"-rotate-",prop:"rotate",transform:h=>`calc(${q(h)}deg * -1)`},{prefix:"scale-x-",prop:"--uni-scale-x",transform:h=>`${h}%`},{prefix:"scale-y-",prop:"--uni-scale-y",transform:h=>`${h}%`},{prefix:"-scale-x-",prop:"--uni-scale-x",transform:h=>`calc(${h}% * -1)`},{prefix:"-scale-y-",prop:"--uni-scale-y",transform:h=>`calc(${h}% * -1)`},{prefix:"scale-",prop:"scale",transform:h=>`${q(h)}%`},{prefix:"-scale-",prop:"scale",transform:h=>`calc(${q(h)}% * -1)`},{prefix:"skew-x-",prop:"--uni-skew-x",transform:h=>`skewX(${h}deg)`},{prefix:"skew-y-",prop:"--uni-skew-y",transform:h=>`skewY(${h}deg)`},{prefix:"skew-",prop:"transform",transform:h=>`skewX(${h}deg) skewY(${h}deg)`},{prefix:"-skew-x-",prop:"--uni-skew-x",transform:h=>`skewX(calc(${h}deg * -1))`},{prefix:"-skew-y-",prop:"--uni-skew-y",transform:h=>`skewY(calc(${h}deg * -1))`},{prefix:"-skew-",prop:"transform",transform:h=>`skewX(calc(${h}deg * -1)) skewY(calc(${h}deg * -1))`},{prefix:"origin-[",prop:"transform-origin",transform:q},{prefix:"translate-[",prop:"translate",transform:q},{prefix:"translate-x-[",prop:"--uni-translate-x",transform:q},{prefix:"translate-y-[",prop:"--uni-translate-y",transform:q},{prefix:"translate-x-",prop:"--uni-translate-x",transform:Ee},{prefix:"translate-y-",prop:"--uni-translate-y",transform:Ee},{prefix:"translate-z-",prop:"--uni-translate-z",transform:Ee},{prefix:"-translate-x-",prop:"--uni-translate-x",transform:Ye},{prefix:"-translate-y-",prop:"--uni-translate-y",transform:Ye},{prefix:"-translate-z-",prop:"--uni-translate-z",transform:Ye},{prefix:"translate-",prop:"translate",transform:pG},{prefix:"-translate-",prop:"translate",transform:fG},{prefix:"caret-color-[",prop:"caret-color",transform:Pe},{prefix:"caret-color-",prop:"caret-color",transform:Pe},{prefix:"accent-color-[",prop:"accent-color",transform:Pe},{prefix:"accent-color-",prop:"accent-color",transform:Pe},{prefix:"scroll-m-[",prop:"scroll-margin",transform:q},{prefix:"scroll-mt-[",prop:"scroll-margin-top",transform:q},{prefix:"scroll-mr-[",prop:"scroll-margin-right",transform:q},{prefix:"scroll-mb-[",prop:"scroll-margin-bottom",transform:q},{prefix:"scroll-ml-[",prop:"scroll-margin-left",transform:q},{prefix:"scroll-mx-[",prop:["scroll-margin-left","scroll-margin-right"],transform:q},{prefix:"scroll-my-[",prop:["scroll-margin-top","scroll-margin-bottom"],transform:q},{prefix:"scroll-m-",prop:"scroll-margin",transform:Ee},{prefix:"-scroll-m-",prop:"scroll-margin",transform:Ye},{prefix:"scroll-mx-",prop:"scroll-margin-inline",transform:Ee},{prefix:"-scroll-mx-",prop:"scroll-margin-inline",transform:Ye},{prefix:"scroll-my-",prop:"scroll-margin-block",transform:Ee},{prefix:"-scroll-my-",prop:"scroll-margin-block",transform:Ye},{prefix:"scroll-mt-",prop:"scroll-margin-top",transform:Ee},{prefix:"-scroll-mt-",prop:"scroll-margin-top",transform:Ye},{prefix:"scroll-mr-",prop:"scroll-margin-right",transform:Ee},{prefix:"-scroll-mr-",prop:"scroll-margin-right",transform:Ye},{prefix:"scroll-mb-",prop:"scroll-margin-bottom",transform:Ee},{prefix:"-scroll-mb-",prop:"scroll-margin-bottom",transform:Ye},{prefix:"scroll-ml-",prop:"scroll-margin-left",transform:Ee},{prefix:"-scroll-ml-",prop:"scroll-margin-left",transform:Ye},{prefix:"scroll-pt-[",prop:"scroll-padding-top",transform:Ee},{prefix:"scroll-pr-[",prop:"scroll-padding-right",transform:Ee},{prefix:"scroll-pb-[",prop:"scroll-padding-bottom",transform:Ee},{prefix:"scroll-pl-[",prop:"scroll-padding-left",transform:Ee},{prefix:"scroll-p-[",prop:"scroll-padding",transform:Ee},{prefix:"scroll-py-[",prop:"scroll-padding-block",transform:Ee},{prefix:"scroll-px-[",prop:"scroll-padding-inline",transform:Ee},{prefix:"scroll-p-",prop:"scroll-padding",transform:Ee},{prefix:"-scroll-p-",prop:"scroll-padding",transform:Ye},{prefix:"scroll-px-",prop:"scroll-padding-inline",transform:Ee},{prefix:"-scroll-px-",prop:"scroll-padding-inline",transform:Ye},{prefix:"scroll-py-",prop:"scroll-padding-block",transform:Ee},{prefix:"-scroll-py-",prop:"scroll-padding-block",transform:Ye},{prefix:"scroll-pt-",prop:"scroll-padding-top",transform:Ee},{prefix:"-scroll-pt-",prop:"scroll-padding-top",transform:Ye},{prefix:"scroll-pr-",prop:"scroll-padding-right",transform:Ee},{prefix:"-scroll-pr-",prop:"scroll-padding-right",transform:Ye},{prefix:"scroll-pb-",prop:"scroll-padding-bottom",transform:Ee},{prefix:"-scroll-pb-",prop:"scroll-padding-bottom",transform:Ye},{prefix:"scroll-pl-",prop:"scroll-padding-left",transform:Ee},{prefix:"-scroll-pl-",prop:"scroll-padding-left",transform:Ye},{prefix:"fill-color-[",prop:"fill",transform:Pe},{prefix:"fill-color-",prop:"fill",transform:Pe},{prefix:"stroke-color-[",prop:"stroke",transform:Pe},{prefix:"stroke-color-",prop:"stroke",transform:Pe},{prefix:"stroke-[",prop:"stroke-width",transform:h=>q(h)},{prefix:"stroke-",prop:"stroke-width",transform:h=>`${h}px`}],Ie={layout:n,flexGrid:a,sizing:e,typography:o,background:l,border:c,effects:u,filters:d,table:b,transition:E,transforms:v,interactivity:A,svg:I},We=new Set;X.forEach(h=>{let ve=!1,Oe=h.includes("!"),tt=Oe?h.replace("!",""):h;Ce.forEach(({prefix:O,prop:F,transform:D})=>{ke.forEach(ee=>{if(h.startsWith(`${ee}:`)){let Q=h.slice(ee.length+1),ae=!1;Q.startsWith("!")&&(ae=!0,Q=Q.slice(1));let j=!1;if(Object.entries(Ie).forEach(([B,R])=>{Object.entries(R).forEach(([Y,te])=>{if(typeof te=="object"&&Q in te){let Z=`.${at(h)}:${Ds(ee)}`,ue=`${Z} { ${Y}: ${te[Q]}${ae?" !important":""}; }`;W.has(Z)||(N.main+=`${ue}
69
+ `,W.add(Z),We.add(h)),j=!0}})}),j)return;Ce.forEach(({prefix:B,prop:R,transform:Y})=>{if(Q.startsWith(B)){let te=Q.replace(B,""),Z=Y(te);typeof Z=="object"?Object.keys(Z).forEach(ge=>{Z[ge]=`${Z[ge]}${ae?" !important":""}`}):Z=`${Z}${ae?" !important":""}`;let ue=bt(h,B,R,Z,ee);W.has(ue.selector)||(N.main+=`${ue.rule}
70
+ `,W.add(ue.selector))}})}})}),h.startsWith("!")&&(Oe=!0,tt=h.slice(1)),Object.entries(Ie).forEach(([O,F])=>Object.entries(F).forEach(([D,ee])=>{typeof ee=="object"&&Object.entries(ee).forEach(([Q,ae])=>{if(tt===Q&&!ve){let j=at(h);W.has(j)||(N.main+=`.${j} { ${D}: ${ae}${Oe?" !important":""}; }
71
+ `,W.add(j),We.add(Q)),ve=!0}ke.forEach(j=>{if(h===`${j}:${Q}`&&!ve){let B=bt(h,Q,D,ae,j);W.has(B.selector)||(N.main+=`${B.rule}
72
+ `,W.add(B.selector),We.add(h)),ve=!0}})})}));let Ct=h.match(/^nth-(\d+):(.*)$/);if(Ct){let[O,F,D]=Ct,ee=!1;Object.entries(Ie).forEach(([Q,ae])=>Object.entries(ae).forEach(([j,B])=>{if(typeof B=="object"&&B[D]){let R=at(h);W.has(R)||(N.main+=`.${R}:nth-child(${F}) { ${j}: ${B[D]}; }
73
+ `,W.add(R)),ee=!0}})),ee||Ce.forEach(({prefix:Q,prop:ae,transform:j})=>{if(D===Q||D.startsWith(Q)){let B=D===Q?"":D.replace(Q,""),R=j(B);typeof R=="object"?Object.keys(R).forEach(te=>{R[te]=`${R[te]}`}):R=`${R}`;let Y=bt(h,Q,ae,R,null,null);W.has(Y.selector)||(N.main+=`${Y.selector}:nth-child(${F}) { ${Y.rule.replace(/^.*?\s*{\s*|\s*}$/g,"")} }
74
+ `,W.add(Y.selector))}})}let ne=h.match(/^nth-last-(\d+):(.*)$/);if(ne){let[O,F,D]=ne;Object.entries(Ie).forEach(([ee,Q])=>Object.entries(Q).forEach(([ae,j])=>{if(typeof j=="object"&&j[D]){let B=at(h);W.has(B)||(N.main+=`.${B}:nth-last-child(${F}) { ${ae}: ${j[D]}; }
75
+ `,W.add(B))}}))}if(h.startsWith("aspect-")&&!h.includes(":")){let O=h.replace("aspect-",""),F=at(h);n["aspect-ratio"]?.[h]&&!W.has(F)?(N.main+=`.${F} { aspect-ratio: ${n["aspect-ratio"][h]}; }
76
76
  `,W.add(F)):/^\d+\/\d+$/.test(O)&&!W.has(F)&&(N.main+=`.${F} { aspect-ratio: ${O}; }
77
- `,W.add(F))}if(f.startsWith("before:content-[")||f.startsWith("after:content-[")){let O=f.startsWith("before:")?"before":"after",F=f.match(/content-\[(.*)\]/);if(F){let D=F[1].replace(/_/g," "),ee=at(f);W.has(ee)||(N.main+=`.${ee}::${O} { content: "${D}"; }
78
- `,W.add(ee))}}if(f.startsWith("divide-")||f.startsWith("space-")||f.startsWith("-space-")){let O=at(f);if(!W.has(O)){if(f.startsWith("divide-x-")){let F=f.replace("divide-x-","");N.main+=`:where(.${O} > :not(:last-child)) { border-right-width: ${F}px; border-style: solid; }
79
- `}else if(f.startsWith("divide-y-")){let F=f.replace("divide-y-","");N.main+=`:where(.${O} > :not(:last-child)) { border-bottom-width: ${F}px; border-style: solid; }
80
- `}else if(f==="divide-x")N.main+=`:where(.${O} > :not(:last-child)) { border-right-width: 1px; border-style: solid; }
81
- `;else if(f==="divide-y")N.main+=`:where(.${O} > :not(:last-child)) { border-bottom-width: 1px; border-style: solid; }
82
- `;else if(f.startsWith("divide-color-[")||f.startsWith("divide-color-")){let F=f.startsWith("divide-color-[")?f.replace("divide-color-[","").replace("]",""):f.replace("divide-color-","");N.main+=`:where(.${O} > :not(:last-child)) { border-color: ${Pe(F)}; }
83
- `}else if(f.startsWith("divide-style-")){let F=f.replace("divide-style-","");["solid","dashed","dotted","double","none","hidden"].includes(F)&&(N.main+=`:where(.${O} > :not(:last-child)) { border-style: ${F}; }
84
- `)}else if(f.startsWith("space-x-[")){let F=f.replace("space-x-[","").replace("]","");N.main+=`:where(.${O} > :not(:last-child)) { margin-right: ${q(F)}; }
85
- `}else if(f.startsWith("space-y-[")){let F=f.replace("space-y-[","").replace("]","");N.main+=`:where(.${O} > :not(:last-child)) { margin-bottom: ${q(F)}; }
86
- `}else if(f.startsWith("space-x-")){let F=f.replace("space-x-","");N.main+=`:where(.${O} > :not(:last-child)) { margin-right: ${r[F]?`var(--${F})`:F}; }
87
- `}else if(f.startsWith("space-y-")){let F=f.replace("space-y-","");N.main+=`:where(.${O} > :not(:last-child)) { margin-bottom: ${r[F]?`var(--${F})`:F}; }
88
- `}else if(f.startsWith("-space-x-")){let F=f.replace("-space-x-","");N.main+=`:where(.${O} > :not(:last-child)) { margin-right: calc(-1 * ${r[F]?`var(--${F})`:F}); }
89
- `}else if(f.startsWith("-space-y-")){let F=f.replace("-space-y-","");N.main+=`:where(.${O} > :not(:last-child)) { margin-bottom: calc(-1 * ${r[F]?`var(--${F})`:F}); }
90
- `}W.add(O)}}if(f.startsWith("group/")||f.includes(":group/")||f.includes(":group-hover/")||f.startsWith("peer/")||f.includes(":peer-")){let O=f.split(":"),F=O[O.length-1],D="",ee=null;O.slice(0,-1).forEach(j=>{s[j]?ee=j:(j.startsWith("group-hover/")||j==="group-hover"||j.startsWith("peer-"))&&(D=j)});let Q=at(f),ae="";if(["text-color-","bg-color-","decoration-","visible","invisible","block","hidden"].some(j=>F.startsWith(j))){let j=Ce.find(B=>F.startsWith(B.prefix));if(j){let B=F.replace(j.prefix,""),R=j.transform(B);typeof R=="object"?Object.keys(R).forEach(Y=>{R[Y]=`${R[Y]}${Oe?" !important":""}`}):R=`${R}${Oe?" !important":""}`,ae=bt(f,j.prefix,j.prop,R,D,ee).rule}}else Object.entries(Ie).forEach(([j,B])=>Object.entries(B).forEach(([R,Y])=>{typeof Y=="object"&&Y[F]&&(ae=bt(f,F,R,Y[F],D,ee).rule)}));ae&&!W.has(Q)&&(ee?U[ee].push(ae):N.main+=`${ae}
91
- `,W.add(Q))}Ce.forEach(({prefix:O,prop:F,transform:D})=>{if(!ve){if(tt.startsWith(O)&&!We.has(f)){if(O==="ring-color-"||O==="ring-color-["){let j=Pe(tt.replace(/^ring-color-(\[)?/,"").replace(/\]?$/,""));if(j&&j!=="var(--color-)"){let B=`.${at(f)}`,R=`${B} { --uni-ring-color: ${j}${Oe?" !important":""}; }`;W.has(B)||(N.main+=`${R}
92
- `,W.add(B))}return}if(O==="shadow-color-"||O==="shadow-color-["){let j=Pe(tt.replace(/^shadow-color-(\[)?/,"").replace(/\]?$/,""));if(j&&j!=="var(--color-)"){let B=`.${at(f)}`,R=`${B} { --uni-shadow-color: ${j}${Oe?" !important":""}; }`;W.has(B)||(N.main+=`${R}
93
- `,W.add(B))}return}let ee=tt.replace(O,""),Q=D(ee);typeof Q=="object"?Object.keys(Q).forEach(j=>{Q[j]=`${Q[j]}${Oe?" !important":""}`}):Q=`${Q}${Oe?" !important":""}`;let ae=bt(f,O,F,Q);W.has(ae.selector)||(N.main+=`${ae.rule}
94
- `,W.add(ae.selector))}ke.forEach(ee=>{let Q=`${ee}:${O}`;if(f.startsWith(Q)&&!We.has(f)){let ae=f.replace(Q,""),j=D(ae),B=Oe||f.includes("!");B&&(ae=ae.replace(/^!/,"")),typeof j=="object"?Object.keys(j).forEach(Y=>{j[Y]=`${j[Y]}${B?" !important":""}`}):j=`${j}${B?" !important":""}`;let R=bt(f,O,F,j,ee);W.has(R.selector)||(N.main+=`${R.rule}
95
- `,W.add(R.selector))}})}});let ie=f.match(/^(\*|\*[^:]+):(.+)$/);if(ie){let[,O,F]=ie,D=O.startsWith("*")&&O!=="*"?O.replace("*",""):null;Ce.forEach(({prefix:ee,prop:Q,transform:ae})=>{if(F.startsWith(ee)&&!We.has(f)){let j=F.replace(ee,""),B=ae(j);typeof B=="object"?Object.keys(B).forEach(Y=>{B[Y]=`${B[Y]}${Oe?" !important":""}`}):B=`${B}${Oe?" !important":""}`;let R=bt(f,ee,Q,B,null,D,!0);W.has(R.selector)||(D?(U[D]||(U[D]=[]),U[D].push(R.rule)):N.main+=`${R.rule}
96
- `,W.add(R.selector))}}),Object.entries(Ie).forEach(([ee,Q])=>Object.entries(Q).forEach(([ae,j])=>{if(typeof j=="object"&&j[F]){let B=bt(f,F,ae,j[F],null,D,!0);W.has(B.selector)||(D?U[D].push(B.rule):N.main+=`${B.rule}
97
- `,W.add(B.selector))}}))}if(Object.keys(s).forEach(O=>{let F=f.match(new RegExp(`^${O}:nth-(\\d+):(.+)$`));if(F){let[,D,ee]=F,Q=!1;Object.entries(Ie).forEach(([ae,j])=>Object.entries(j).forEach(([B,R])=>{if(typeof R=="object"&&R[ee]){let Y=`.${at(f)}:nth-child(${D})`;W.has(Y)||(U[O].push(`${Y} { ${B}: ${R[ee]}; }`),W.add(Y)),Q=!0}})),Q||Ce.forEach(({prefix:ae,prop:j,transform:B})=>{if(ee.startsWith(ae)){let R=ee.replace(ae,""),Y=B(R),te=`.${at(f)}:nth-child(${D})`,Z=bt(f,ae,j,Y,null,O).rule;W.has(te)||(U[O].push(`${te} { ${Z.replace(/^.*?{\s*|}$/g,"")} }`),W.add(te))}})}else if(f.startsWith(`${O}:`)){let D=f.slice(O.length+1),ee=null,Q=!1;for(let j of ke)if(D.startsWith(`${j}:`)){ee=j,D=D.slice(j.length+1);break}D.startsWith("!")&&(Q=!0,D=D.slice(1));let ae=!1;Object.entries(Ie).forEach(([j,B])=>{Object.entries(B).forEach(([R,Y])=>{if(typeof Y=="object"&&D in Y){let te=`.${at(f)}`;ee&&(te+=`:${Ds(ee)}`);let Z=`${te} { ${R}: ${Y[D]}${Q?" !important":""}; }`;W.has(te)||(U[O].push(Z),W.add(te),We.add(f)),ae=!0}})}),Ce.forEach(({prefix:j,prop:B,transform:R})=>{if(D.startsWith(j)){let Y=D.replace(j,""),te=R(Y);typeof te=="object"?Object.keys(te).forEach(ge=>{te[ge]=`${te[ge]}${Q?" !important":""}`}):te=`${te}${Q?" !important":""}`;let Z=`.${at(f)}`;ee&&(Z+=`:${Ds(ee)}`);let ue=bt(f,j,B,te,ee,O).rule;W.has(Z)||(U[O].push(ue),W.add(Z))}})}else if(f.startsWith(`${s}:`)){let D=f.replace(`${s}:`,""),ee=!1;D.startsWith("!")&&(ee=!0,D=D.slice(1)),Object.entries(Ie).forEach(([j,B])=>Object.entries(B).forEach(([R,Y])=>{if(typeof Y=="object"&&Y[D]){let te=at(f);W.has(te)||(U[s].push(`.${te} { ${R}: ${Y[D]}${ee?" !important":""}; }`),W.add(te),We.add(f))}ke.forEach(te=>{if(f===`${s}:${te}:${D}`){let Z=Y[D];if(Z){let ue=bt(f,D,R,Z,te,s);W.has(ue.selector)||(U[s].push(ue.rule),W.add(ue.selector),We.add(f))}}})})),ke.forEach(j=>{let B=D.match(`^${j}:(.*)$`);if(B){let R=B[1];Object.entries(Ie).forEach(([Y,te])=>Object.entries(te).forEach(([Z,ue])=>{if(typeof ue=="object"&&ue[R]){let ge=bt(f,R,Z,ue[R],j,s);W.has(ge.selector)||(U[s].push(ge.rule),W.add(ge.selector),We.add(f))}}))}});let Q=f.match(RegExp(`^${s}:nth-(\\d+):(.*)$`));if(Q){let[j,B,R]=Q,Y=!1;Object.entries(Ie).forEach(([te,Z])=>Object.entries(Z).forEach(([ue,ge])=>{if(typeof ge=="object"&&ge[R]){let ot=at(f);W.has(ot)||(U[s].push(`.${ot}:nth-child(${B}) { ${ue}: ${ge[R]}; }`),W.add(ot)),Y=!0}})),Y||Ce.forEach(({prefix:te,prop:Z,transform:ue})=>{if(R===te||R.startsWith(te)){let ge=R===te?"":R.replace(te,""),ot=ue(ge);typeof ot=="object"?Object.keys(ot).forEach(It=>{ot[It]=`${ot[It]}`}):ot=`${ot}`;let St=bt(f,te,Z,ot,null,s);W.has(St.selector)||(U[s].push(`${St.selector}:nth-child(${B}) { ${St.rule.replace(/^.*?\s*{\s*|\s*}$/g,"")} }`),W.add(St.selector))}})}let ae=f.match(RegExp(`^${s}:nth-last-(\\d+):(.*)$`));if(ae){let[j,B,R]=ae;Object.entries(Ie).forEach(([Y,te])=>Object.entries(te).forEach(([Z,ue])=>{if(typeof ue=="object"&&ue[R]){let ge=at(f);W.has(ge)||(U[s].push(`.${ge}:nth-last-child(${B}) { ${Z}: ${ue[R]}; }`),W.add(ge))}}))}if(D.startsWith("aspect-")){let j=D.replace("aspect-",""),B=at(f);n["aspect-ratio"]?.[D]&&!W.has(B)?(U[s].push(`.${B} { aspect-ratio: ${n["aspect-ratio"][D]}; }`),W.add(B)):/^\d+\/\d+$/.test(j)&&!W.has(B)&&(U[s].push(`.${B} { aspect-ratio: ${j}; }`),W.add(B))}if(D.startsWith("before:content-[")||D.startsWith("after:content-[")){let j=D.startsWith("before:")?"before":"after",B=D.match(/content-\[(.*)\]/);if(B){let R=B[1].replace(/_/g," "),Y=at(f);W.has(Y)||(U[s].push(`.${Y}::${j} { content: "${R}"; }`),W.add(Y))}}if(D.startsWith("divide-")||D.startsWith("space-")||D.startsWith("-space-")){let j=at(f);if(!W.has(j)){if(D.startsWith("divide-color-[")||D.startsWith("divide-color-")){let B=D.startsWith("divide-color-[")?D.replace("divide-color-[","").replace("]",""):D.replace("divide-color-","");U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-color: ${Pe(B)}; }`)}else if(D.startsWith("divide-x-")){let B=D.replace("divide-x-","");U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-right-width: ${r[B]?`var(--${B})`:B}; border-style: solid; }`)}else if(D.startsWith("divide-y-")){let B=D.replace("divide-y-","");U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-bottom-width: ${r[B]?`var(--${B})`:B}; border-style: solid; }`)}else if(D==="divide-x")U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-right-width: 1px; border-style: solid; }`);else if(D==="divide-y")U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-bottom-width: 1px; border-style: solid; }`);else if(D.startsWith("divide-")){let B=D.replace("divide-","");["solid","dashed","dotted","double","none"].includes(B)&&(U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-style: ${B}; }`),W.add(j))}W.add(j)}}Ce.forEach(({prefix:j,prop:B,transform:R})=>{if(D.startsWith(j)&&!We.has(f)){let Y=D.replace(j,""),te=R(Y);typeof te=="object"?Object.keys(te).forEach(ue=>{te[ue]=`${te[ue]}${Oe?" !important":""}`}):te=`${te}${Oe?" !important":""}`;let Z=bt(f,j,B,te,null,s);W.has(Z.selector)||(U[s].push(Z.rule),W.add(Z.selector))}ke.forEach(Y=>{if(f.startsWith(`${s}:${Y}:${j}`)&&!We.has(f)){let te=f.replace(`${s}:${Y}:${j}`,""),Z=R(te);typeof Z=="object"?Object.keys(Z).forEach(ge=>{Z[ge]=`${Z[ge]}${Oe?" !important":""}`}):Z=`${Z}${Oe?" !important":""}`;let ue=bt(f,j,B,Z,Y,s);W.has(ue.selector)||(U[s].push(ue.rule),W.add(ue.selector))}})})}else if(f.startsWith(`dark:${O}:`)){let D=f.slice(`dark:${O}:`.length),ee=`.dark .${at(f)}`,Q=`html[data-theme="system"] .${at(f)}`,ae="";if(Object.entries(Ie).forEach(([j,B])=>{Object.entries(B).forEach(([R,Y])=>{typeof Y=="object"&&D in Y&&(ae=`${R}: ${Y[D]};`)})}),ae||Ce.forEach(({prefix:j,prop:B,transform:R})=>{if(D.startsWith(j)){let Y=D.replace(j,""),te=R(Y);typeof B=="string"&&(ae=`${B}: ${te};`)}}),ae){let j=`${ee} { ${ae} }`;U[O].includes(j)||U[O].push(j);let B=O+"_darkmedia";U[B]||(U[B]=[]);let R=`${Q} { ${ae} }`;U[B].includes(R)||U[B].push(R)}}}),f.startsWith("dark:")){let O=f.replace(/^dark:/,""),F=f.includes("!"),D=F?O.replace("!",""):O,ee=D.match(/^\*:(.+)$/),Q=null,ae=D.match(/^([a-zA-Z0-9\-]+):(.+)$/);ae&&ke.includes(ae[1])&&(Q=ae[1],D=ae[2]);let j=`.dark .${at(f)}`;if(Q&&(j+=`:${Ds(Q)}`),!N._darkClassSelectors?.has(j)){let B=null;if(D.startsWith("divide-")||D.startsWith("space-")||D.startsWith("-space-")){let R=at(f);if(D.startsWith("divide-color-[")||D.startsWith("divide-color-")){let Y=D.startsWith("divide-color-[")?D.replace("divide-color-[","").replace("]",""):D.replace("divide-color-","");B=`:where(.dark .${R} > :not(:last-child)) { border-color: ${Pe(Y)}${F?" !important":""}; }`}else if(D.startsWith("divide-x-")){let Y=D.replace("divide-x-","");B=`:where(.dark .${R} > :not(:last-child)) { border-right-width: ${r[Y]?`var(--${Y})`:Y}${F?" !important":""}; border-style: solid; }`}else if(D.startsWith("divide-y-")){let Y=D.replace("divide-y-","");B=`:where(.dark .${R} > :not(:last-child)) { border-bottom-width: ${r[Y]?`var(--${Y})`:Y}${F?" !important":""}; border-style: solid; }`}else if(D==="divide-x")B=`:where(.dark .${R} > :not(:last-child)) { border-right-width: 1px${F?" !important":""}; border-style: solid; }`;else if(D==="divide-y")B=`:where(.dark .${R} > :not(:last-child)) { border-bottom-width: 1px${F?" !important":""}; border-style: solid; }`;else if(D.startsWith("divide-")){let Y=D.replace("divide-","");["solid","dashed","dotted","double","none"].includes(Y)&&(B=`:where(.dark .${R} > :not(:last-child)) { border-style: ${Y}${F?" !important":""}; }`)}}if(D.startsWith("border-color-[")||D.startsWith("border-color-")){let R=Pe(D.replace(/^border-color-(\[)?/,"").replace(/\]?$/,""));R&&R!=="var(--color-)"&&(N.dark+=`${j} { border-color: ${R}${F?" !important":""}; }
77
+ `,W.add(F))}if(h.startsWith("before:content-[")||h.startsWith("after:content-[")){let O=h.startsWith("before:")?"before":"after",F=h.match(/content-\[(.*)\]/);if(F){let D=F[1].replace(/_/g," "),ee=at(h);W.has(ee)||(N.main+=`.${ee}::${O} { content: "${D}"; }
78
+ `,W.add(ee))}}if(h.startsWith("divide-")||h.startsWith("space-")||h.startsWith("-space-")){let O=at(h);if(!W.has(O)){if(h.startsWith("divide-x-")){let F=h.replace("divide-x-","");N.main+=`:where(.${O} > :not(:last-child)) { border-right-width: ${F}px; border-style: solid; }
79
+ `}else if(h.startsWith("divide-y-")){let F=h.replace("divide-y-","");N.main+=`:where(.${O} > :not(:last-child)) { border-bottom-width: ${F}px; border-style: solid; }
80
+ `}else if(h==="divide-x")N.main+=`:where(.${O} > :not(:last-child)) { border-right-width: 1px; border-style: solid; }
81
+ `;else if(h==="divide-y")N.main+=`:where(.${O} > :not(:last-child)) { border-bottom-width: 1px; border-style: solid; }
82
+ `;else if(h.startsWith("divide-color-[")||h.startsWith("divide-color-")){let F=h.startsWith("divide-color-[")?h.replace("divide-color-[","").replace("]",""):h.replace("divide-color-","");N.main+=`:where(.${O} > :not(:last-child)) { border-color: ${Pe(F)}; }
83
+ `}else if(h.startsWith("divide-style-")){let F=h.replace("divide-style-","");["solid","dashed","dotted","double","none","hidden"].includes(F)&&(N.main+=`:where(.${O} > :not(:last-child)) { border-style: ${F}; }
84
+ `)}else if(h.startsWith("space-x-[")){let F=h.replace("space-x-[","").replace("]","");N.main+=`:where(.${O} > :not(:last-child)) { margin-right: ${q(F)}; }
85
+ `}else if(h.startsWith("space-y-[")){let F=h.replace("space-y-[","").replace("]","");N.main+=`:where(.${O} > :not(:last-child)) { margin-bottom: ${q(F)}; }
86
+ `}else if(h.startsWith("space-x-")){let F=h.replace("space-x-","");N.main+=`:where(.${O} > :not(:last-child)) { margin-right: ${r[F]?`var(--${F})`:F}; }
87
+ `}else if(h.startsWith("space-y-")){let F=h.replace("space-y-","");N.main+=`:where(.${O} > :not(:last-child)) { margin-bottom: ${r[F]?`var(--${F})`:F}; }
88
+ `}else if(h.startsWith("-space-x-")){let F=h.replace("-space-x-","");N.main+=`:where(.${O} > :not(:last-child)) { margin-right: calc(-1 * ${r[F]?`var(--${F})`:F}); }
89
+ `}else if(h.startsWith("-space-y-")){let F=h.replace("-space-y-","");N.main+=`:where(.${O} > :not(:last-child)) { margin-bottom: calc(-1 * ${r[F]?`var(--${F})`:F}); }
90
+ `}W.add(O)}}if(h.startsWith("group/")||h.includes(":group/")||h.includes(":group-hover/")||h.startsWith("peer/")||h.includes(":peer-")){let O=h.split(":"),F=O[O.length-1],D="",ee=null;O.slice(0,-1).forEach(j=>{s[j]?ee=j:(j.startsWith("group-hover/")||j==="group-hover"||j.startsWith("peer-"))&&(D=j)});let Q=at(h),ae="";if(["text-color-","bg-color-","decoration-","visible","invisible","block","hidden"].some(j=>F.startsWith(j))){let j=Ce.find(B=>F.startsWith(B.prefix));if(j){let B=F.replace(j.prefix,""),R=j.transform(B);typeof R=="object"?Object.keys(R).forEach(Y=>{R[Y]=`${R[Y]}${Oe?" !important":""}`}):R=`${R}${Oe?" !important":""}`,ae=bt(h,j.prefix,j.prop,R,D,ee).rule}}else Object.entries(Ie).forEach(([j,B])=>Object.entries(B).forEach(([R,Y])=>{typeof Y=="object"&&Y[F]&&(ae=bt(h,F,R,Y[F],D,ee).rule)}));ae&&!W.has(Q)&&(ee?U[ee].push(ae):N.main+=`${ae}
91
+ `,W.add(Q))}Ce.forEach(({prefix:O,prop:F,transform:D})=>{if(!ve){if(tt.startsWith(O)&&!We.has(h)){if(O==="ring-color-"||O==="ring-color-["){let j=Pe(tt.replace(/^ring-color-(\[)?/,"").replace(/\]?$/,""));if(j&&j!=="var(--color-)"){let B=`.${at(h)}`,R=`${B} { --uni-ring-color: ${j}${Oe?" !important":""}; }`;W.has(B)||(N.main+=`${R}
92
+ `,W.add(B))}return}if(O==="shadow-color-"||O==="shadow-color-["){let j=Pe(tt.replace(/^shadow-color-(\[)?/,"").replace(/\]?$/,""));if(j&&j!=="var(--color-)"){let B=`.${at(h)}`,R=`${B} { --uni-shadow-color: ${j}${Oe?" !important":""}; }`;W.has(B)||(N.main+=`${R}
93
+ `,W.add(B))}return}let ee=tt.replace(O,""),Q=D(ee);typeof Q=="object"?Object.keys(Q).forEach(j=>{Q[j]=`${Q[j]}${Oe?" !important":""}`}):Q=`${Q}${Oe?" !important":""}`;let ae=bt(h,O,F,Q);W.has(ae.selector)||(N.main+=`${ae.rule}
94
+ `,W.add(ae.selector))}ke.forEach(ee=>{let Q=`${ee}:${O}`;if(h.startsWith(Q)&&!We.has(h)){let ae=h.replace(Q,""),j=D(ae),B=Oe||h.includes("!");B&&(ae=ae.replace(/^!/,"")),typeof j=="object"?Object.keys(j).forEach(Y=>{j[Y]=`${j[Y]}${B?" !important":""}`}):j=`${j}${B?" !important":""}`;let R=bt(h,O,F,j,ee);W.has(R.selector)||(N.main+=`${R.rule}
95
+ `,W.add(R.selector))}})}});let ie=h.match(/^(\*|\*[^:]+):(.+)$/);if(ie){let[,O,F]=ie,D=O.startsWith("*")&&O!=="*"?O.replace("*",""):null;Ce.forEach(({prefix:ee,prop:Q,transform:ae})=>{if(F.startsWith(ee)&&!We.has(h)){let j=F.replace(ee,""),B=ae(j);typeof B=="object"?Object.keys(B).forEach(Y=>{B[Y]=`${B[Y]}${Oe?" !important":""}`}):B=`${B}${Oe?" !important":""}`;let R=bt(h,ee,Q,B,null,D,!0);W.has(R.selector)||(D?(U[D]||(U[D]=[]),U[D].push(R.rule)):N.main+=`${R.rule}
96
+ `,W.add(R.selector))}}),Object.entries(Ie).forEach(([ee,Q])=>Object.entries(Q).forEach(([ae,j])=>{if(typeof j=="object"&&j[F]){let B=bt(h,F,ae,j[F],null,D,!0);W.has(B.selector)||(D?U[D].push(B.rule):N.main+=`${B.rule}
97
+ `,W.add(B.selector))}}))}if(Object.keys(s).forEach(O=>{let F=h.match(new RegExp(`^${O}:nth-(\\d+):(.+)$`));if(F){let[,D,ee]=F,Q=!1;Object.entries(Ie).forEach(([ae,j])=>Object.entries(j).forEach(([B,R])=>{if(typeof R=="object"&&R[ee]){let Y=`.${at(h)}:nth-child(${D})`;W.has(Y)||(U[O].push(`${Y} { ${B}: ${R[ee]}; }`),W.add(Y)),Q=!0}})),Q||Ce.forEach(({prefix:ae,prop:j,transform:B})=>{if(ee.startsWith(ae)){let R=ee.replace(ae,""),Y=B(R),te=`.${at(h)}:nth-child(${D})`,Z=bt(h,ae,j,Y,null,O).rule;W.has(te)||(U[O].push(`${te} { ${Z.replace(/^.*?{\s*|}$/g,"")} }`),W.add(te))}})}else if(h.startsWith(`${O}:`)){let D=h.slice(O.length+1),ee=null,Q=!1;for(let j of ke)if(D.startsWith(`${j}:`)){ee=j,D=D.slice(j.length+1);break}D.startsWith("!")&&(Q=!0,D=D.slice(1));let ae=!1;Object.entries(Ie).forEach(([j,B])=>{Object.entries(B).forEach(([R,Y])=>{if(typeof Y=="object"&&D in Y){let te=`.${at(h)}`;ee&&(te+=`:${Ds(ee)}`);let Z=`${te} { ${R}: ${Y[D]}${Q?" !important":""}; }`;W.has(te)||(U[O].push(Z),W.add(te),We.add(h)),ae=!0}})}),Ce.forEach(({prefix:j,prop:B,transform:R})=>{if(D.startsWith(j)){let Y=D.replace(j,""),te=R(Y);typeof te=="object"?Object.keys(te).forEach(ge=>{te[ge]=`${te[ge]}${Q?" !important":""}`}):te=`${te}${Q?" !important":""}`;let Z=`.${at(h)}`;ee&&(Z+=`:${Ds(ee)}`);let ue=bt(h,j,B,te,ee,O).rule;W.has(Z)||(U[O].push(ue),W.add(Z))}})}else if(h.startsWith(`${s}:`)){let D=h.replace(`${s}:`,""),ee=!1;D.startsWith("!")&&(ee=!0,D=D.slice(1)),Object.entries(Ie).forEach(([j,B])=>Object.entries(B).forEach(([R,Y])=>{if(typeof Y=="object"&&Y[D]){let te=at(h);W.has(te)||(U[s].push(`.${te} { ${R}: ${Y[D]}${ee?" !important":""}; }`),W.add(te),We.add(h))}ke.forEach(te=>{if(h===`${s}:${te}:${D}`){let Z=Y[D];if(Z){let ue=bt(h,D,R,Z,te,s);W.has(ue.selector)||(U[s].push(ue.rule),W.add(ue.selector),We.add(h))}}})})),ke.forEach(j=>{let B=D.match(`^${j}:(.*)$`);if(B){let R=B[1];Object.entries(Ie).forEach(([Y,te])=>Object.entries(te).forEach(([Z,ue])=>{if(typeof ue=="object"&&ue[R]){let ge=bt(h,R,Z,ue[R],j,s);W.has(ge.selector)||(U[s].push(ge.rule),W.add(ge.selector),We.add(h))}}))}});let Q=h.match(RegExp(`^${s}:nth-(\\d+):(.*)$`));if(Q){let[j,B,R]=Q,Y=!1;Object.entries(Ie).forEach(([te,Z])=>Object.entries(Z).forEach(([ue,ge])=>{if(typeof ge=="object"&&ge[R]){let ot=at(h);W.has(ot)||(U[s].push(`.${ot}:nth-child(${B}) { ${ue}: ${ge[R]}; }`),W.add(ot)),Y=!0}})),Y||Ce.forEach(({prefix:te,prop:Z,transform:ue})=>{if(R===te||R.startsWith(te)){let ge=R===te?"":R.replace(te,""),ot=ue(ge);typeof ot=="object"?Object.keys(ot).forEach(It=>{ot[It]=`${ot[It]}`}):ot=`${ot}`;let St=bt(h,te,Z,ot,null,s);W.has(St.selector)||(U[s].push(`${St.selector}:nth-child(${B}) { ${St.rule.replace(/^.*?\s*{\s*|\s*}$/g,"")} }`),W.add(St.selector))}})}let ae=h.match(RegExp(`^${s}:nth-last-(\\d+):(.*)$`));if(ae){let[j,B,R]=ae;Object.entries(Ie).forEach(([Y,te])=>Object.entries(te).forEach(([Z,ue])=>{if(typeof ue=="object"&&ue[R]){let ge=at(h);W.has(ge)||(U[s].push(`.${ge}:nth-last-child(${B}) { ${Z}: ${ue[R]}; }`),W.add(ge))}}))}if(D.startsWith("aspect-")){let j=D.replace("aspect-",""),B=at(h);n["aspect-ratio"]?.[D]&&!W.has(B)?(U[s].push(`.${B} { aspect-ratio: ${n["aspect-ratio"][D]}; }`),W.add(B)):/^\d+\/\d+$/.test(j)&&!W.has(B)&&(U[s].push(`.${B} { aspect-ratio: ${j}; }`),W.add(B))}if(D.startsWith("before:content-[")||D.startsWith("after:content-[")){let j=D.startsWith("before:")?"before":"after",B=D.match(/content-\[(.*)\]/);if(B){let R=B[1].replace(/_/g," "),Y=at(h);W.has(Y)||(U[s].push(`.${Y}::${j} { content: "${R}"; }`),W.add(Y))}}if(D.startsWith("divide-")||D.startsWith("space-")||D.startsWith("-space-")){let j=at(h);if(!W.has(j)){if(D.startsWith("divide-color-[")||D.startsWith("divide-color-")){let B=D.startsWith("divide-color-[")?D.replace("divide-color-[","").replace("]",""):D.replace("divide-color-","");U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-color: ${Pe(B)}; }`)}else if(D.startsWith("divide-x-")){let B=D.replace("divide-x-","");U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-right-width: ${r[B]?`var(--${B})`:B}; border-style: solid; }`)}else if(D.startsWith("divide-y-")){let B=D.replace("divide-y-","");U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-bottom-width: ${r[B]?`var(--${B})`:B}; border-style: solid; }`)}else if(D==="divide-x")U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-right-width: 1px; border-style: solid; }`);else if(D==="divide-y")U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-bottom-width: 1px; border-style: solid; }`);else if(D.startsWith("divide-")){let B=D.replace("divide-","");["solid","dashed","dotted","double","none"].includes(B)&&(U[s].push(`:where(.dark .${j} > :not(:last-child)) { border-style: ${B}; }`),W.add(j))}W.add(j)}}Ce.forEach(({prefix:j,prop:B,transform:R})=>{if(D.startsWith(j)&&!We.has(h)){let Y=D.replace(j,""),te=R(Y);typeof te=="object"?Object.keys(te).forEach(ue=>{te[ue]=`${te[ue]}${Oe?" !important":""}`}):te=`${te}${Oe?" !important":""}`;let Z=bt(h,j,B,te,null,s);W.has(Z.selector)||(U[s].push(Z.rule),W.add(Z.selector))}ke.forEach(Y=>{if(h.startsWith(`${s}:${Y}:${j}`)&&!We.has(h)){let te=h.replace(`${s}:${Y}:${j}`,""),Z=R(te);typeof Z=="object"?Object.keys(Z).forEach(ge=>{Z[ge]=`${Z[ge]}${Oe?" !important":""}`}):Z=`${Z}${Oe?" !important":""}`;let ue=bt(h,j,B,Z,Y,s);W.has(ue.selector)||(U[s].push(ue.rule),W.add(ue.selector))}})})}else if(h.startsWith(`dark:${O}:`)){let D=h.slice(`dark:${O}:`.length),ee=`.dark .${at(h)}`,Q=`html[data-theme="system"] .${at(h)}`,ae="";if(Object.entries(Ie).forEach(([j,B])=>{Object.entries(B).forEach(([R,Y])=>{typeof Y=="object"&&D in Y&&(ae=`${R}: ${Y[D]};`)})}),ae||Ce.forEach(({prefix:j,prop:B,transform:R})=>{if(D.startsWith(j)){let Y=D.replace(j,""),te=R(Y);typeof B=="string"&&(ae=`${B}: ${te};`)}}),ae){let j=`${ee} { ${ae} }`;U[O].includes(j)||U[O].push(j);let B=O+"_darkmedia";U[B]||(U[B]=[]);let R=`${Q} { ${ae} }`;U[B].includes(R)||U[B].push(R)}}}),h.startsWith("dark:")){let O=h.replace(/^dark:/,""),F=h.includes("!"),D=F?O.replace("!",""):O,ee=D.match(/^\*:(.+)$/),Q=null,ae=D.match(/^([a-zA-Z0-9\-]+):(.+)$/);ae&&ke.includes(ae[1])&&(Q=ae[1],D=ae[2]);let j=`.dark .${at(h)}`;if(Q&&(j+=`:${Ds(Q)}`),!N._darkClassSelectors?.has(j)){let B=null;if(D.startsWith("divide-")||D.startsWith("space-")||D.startsWith("-space-")){let R=at(h);if(D.startsWith("divide-color-[")||D.startsWith("divide-color-")){let Y=D.startsWith("divide-color-[")?D.replace("divide-color-[","").replace("]",""):D.replace("divide-color-","");B=`:where(.dark .${R} > :not(:last-child)) { border-color: ${Pe(Y)}${F?" !important":""}; }`}else if(D.startsWith("divide-x-")){let Y=D.replace("divide-x-","");B=`:where(.dark .${R} > :not(:last-child)) { border-right-width: ${r[Y]?`var(--${Y})`:Y}${F?" !important":""}; border-style: solid; }`}else if(D.startsWith("divide-y-")){let Y=D.replace("divide-y-","");B=`:where(.dark .${R} > :not(:last-child)) { border-bottom-width: ${r[Y]?`var(--${Y})`:Y}${F?" !important":""}; border-style: solid; }`}else if(D==="divide-x")B=`:where(.dark .${R} > :not(:last-child)) { border-right-width: 1px${F?" !important":""}; border-style: solid; }`;else if(D==="divide-y")B=`:where(.dark .${R} > :not(:last-child)) { border-bottom-width: 1px${F?" !important":""}; border-style: solid; }`;else if(D.startsWith("divide-")){let Y=D.replace("divide-","");["solid","dashed","dotted","double","none"].includes(Y)&&(B=`:where(.dark .${R} > :not(:last-child)) { border-style: ${Y}${F?" !important":""}; }`)}}if(D.startsWith("border-color-[")||D.startsWith("border-color-")){let R=Pe(D.replace(/^border-color-(\[)?/,"").replace(/\]?$/,""));R&&R!=="var(--color-)"&&(N.dark+=`${j} { border-color: ${R}${F?" !important":""}; }
98
98
  `,N._darkClassSelectors=N._darkClassSelectors||new Set,N._darkClassSelectors.add(j));return}if(D.startsWith("outline-color-[")||D.startsWith("outline-color-")){let R=Pe(D.replace(/^outline-color-(\[)?/,"").replace(/\]?$/,""));R&&R!=="var(--color-)"&&(N.dark+=`${j} { outline-color: ${R}${F?" !important":""}; }
99
99
  `,N._darkClassSelectors=N._darkClassSelectors||new Set,N._darkClassSelectors.add(j));return}if(D.startsWith("ring-color-[")||D.startsWith("ring-color-")){let R=Pe(D.replace(/^ring-color-(\[)?/,"").replace(/\]?$/,""));R&&R!=="var(--color-)"&&(N.dark+=`${j} { --uni-ring-color: ${R}${F?" !important":""}; }
100
100
  `,N._darkClassSelectors=N._darkClassSelectors||new Set,N._darkClassSelectors.add(j));return}if(D.startsWith("shadow-color-[")||D.startsWith("shadow-color-")){let R=Pe(D.replace(/^shadow-color-(\[)?/,"").replace(/\]?$/,""));R&&R!=="var(--color-)"&&(N.dark+=`${j} { --uni-shadow-color: ${R}${F?" !important":""}; }
101
- `,N._darkClassSelectors=N._darkClassSelectors||new Set,N._darkClassSelectors.add(j));return}if(!B)if(ee){let R=ee[1];Ce.forEach(({prefix:Y,prop:te,transform:Z})=>{if(R.startsWith(Y)&&!We.has(f)){let ue=R.replace(Y,""),ge=Z(ue);typeof ge=="object"?Object.keys(ge).forEach(ot=>{ge[ot]=`${ge[ot]}${F?" !important":""}`}):ge=`${ge}${F?" !important":""}`,B=bt(f,Y,te,ge,Q,"dark",!0)}}),Object.entries(Ie).forEach(([Y,te])=>Object.entries(te).forEach(([Z,ue])=>{if(typeof ue=="object"&&ue[R]){let ge=`${ue[R]}${ue?" !important":""}`;B=bt(f,R,Z,ge,Q,"dark",!0)}}))}else Ce.forEach(({prefix:R,prop:Y,transform:te})=>{if(D.startsWith(R)&&!We.has(f)){let Z=D.replace(R,""),ue=te(Z);typeof ue=="object"?Object.keys(ue).forEach(ge=>{ue[ge]=`${ue[ge]}${F?" !important":""}`}):ue=`${ue}${F?" !important":""}`,B=bt(f,R,Y,ue,Q,"dark")}}),Object.entries(Ie).forEach(([R,Y])=>Object.entries(Y).forEach(([te,Z])=>{if(typeof Z=="object"&&Z[D]){let ue=`${Z[D]}${Z?" !important":""}`;B=bt(f,D,te,ue,Q,"dark")}}));if(B){if(D.startsWith("divide-")||D.startsWith("space-")||D.startsWith("-space-"))N.dark+=`${B}
101
+ `,N._darkClassSelectors=N._darkClassSelectors||new Set,N._darkClassSelectors.add(j));return}if(!B)if(ee){let R=ee[1];Ce.forEach(({prefix:Y,prop:te,transform:Z})=>{if(R.startsWith(Y)&&!We.has(h)){let ue=R.replace(Y,""),ge=Z(ue);typeof ge=="object"?Object.keys(ge).forEach(ot=>{ge[ot]=`${ge[ot]}${F?" !important":""}`}):ge=`${ge}${F?" !important":""}`,B=bt(h,Y,te,ge,Q,"dark",!0)}}),Object.entries(Ie).forEach(([Y,te])=>Object.entries(te).forEach(([Z,ue])=>{if(typeof ue=="object"&&ue[R]){let ge=`${ue[R]}${ue?" !important":""}`;B=bt(h,R,Z,ge,Q,"dark",!0)}}))}else Ce.forEach(({prefix:R,prop:Y,transform:te})=>{if(D.startsWith(R)&&!We.has(h)){let Z=D.replace(R,""),ue=te(Z);typeof ue=="object"?Object.keys(ue).forEach(ge=>{ue[ge]=`${ue[ge]}${F?" !important":""}`}):ue=`${ue}${F?" !important":""}`,B=bt(h,R,Y,ue,Q,"dark")}}),Object.entries(Ie).forEach(([R,Y])=>Object.entries(Y).forEach(([te,Z])=>{if(typeof Z=="object"&&Z[D]){let ue=`${Z[D]}${Z?" !important":""}`;B=bt(h,D,te,ue,Q,"dark")}}));if(B){if(D.startsWith("divide-")||D.startsWith("space-")||D.startsWith("-space-"))N.dark+=`${B}
102
102
  `;else{let R=typeof B=="object"&&B.rule?B.rule:B;N.dark+=`${j} { ${R.replace(/^.*?{\s*|}$/g,"")} }
103
- `}N._darkClassSelectors=N._darkClassSelectors||new Set,N._darkClassSelectors.add(j)}}}});let ft=N.main;if(N.dark){ft+=N.dark;let f=N.dark.replace(/\.dark\s+/g,"").split(`
103
+ `}N._darkClassSelectors=N._darkClassSelectors||new Set,N._darkClassSelectors.add(j)}}}});let ft=N.main;if(N.dark){ft+=N.dark;let h=N.dark.replace(/\.dark\s+/g,"").split(`
104
104
  `).map(ve=>ve.trim()&&ve.includes("{")?`html[data-theme="system"] ${ve.trim()}`:ve).join(`
105
105
  `);ft+=`@media (prefers-color-scheme: dark) {
106
- ${f}
107
- }`}return Object.keys(s).sort((f,ve)=>{let Oe=tt=>parseFloat((s[tt]||"").replace(/[^\d.]/g,""))||0;return Oe(f)-Oe(ve)}).forEach(f=>{U[f]&&U[f].length&&(ft+=`@media (min-width: ${s[f]}) {
108
- ${U[f].join(`
106
+ ${h}
107
+ }`}return Object.keys(s).sort((h,ve)=>{let Oe=tt=>parseFloat((s[tt]||"").replace(/[^\d.]/g,""))||0;return Oe(h)-Oe(ve)}).forEach(h=>{U[h]&&U[h].length&&(ft+=`@media (min-width: ${s[h]}) {
108
+ ${U[h].join(`
109
109
  `)}
110
110
  }
111
- `)}),Object.keys(s).sort((f,ve)=>{let Oe=tt=>parseFloat((s[tt]||"").replace(/[^\d.]/g,""))||0;return Oe(f)-Oe(ve)}).forEach(f=>{let ve=f+"_darkmedia";U[ve]&&U[ve].length&&(ft+=`@media (min-width: ${s[f]}) and (prefers-color-scheme: dark) {
111
+ `)}),Object.keys(s).sort((h,ve)=>{let Oe=tt=>parseFloat((s[tt]||"").replace(/[^\d.]/g,""))||0;return Oe(h)-Oe(ve)}).forEach(h=>{let ve=h+"_darkmedia";U[ve]&&U[ve].length&&(ft+=`@media (min-width: ${s[h]}) and (prefers-color-scheme: dark) {
112
112
  ${U[ve].join(`
113
113
  `)}
114
114
  }
115
- `)}),["portrait","landscape"].forEach(f=>{U[f]&&U[f].length&&(ft+=`@media (orientation: ${f}) {
116
- ${U[f].join(`
115
+ `)}),["portrait","landscape"].forEach(h=>{U[h]&&U[h].length&&(ft+=`@media (orientation: ${h}) {
116
+ ${U[h].join(`
117
117
  `)}
118
118
  }
119
119
  `)}),ft+=`