massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / prettier / parser-babel.js
1 !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):((t="undefined"!=typeof globalThis?globalThis:t||self).prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.babel=e())}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var s=function(t){return t&&t.Math==Math&&t},r=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof t&&t)||function(){return this}()||Function("return this")(),i={},n=function(t){try{return!!t()}catch(t){return!0}},a=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o=Function.prototype.call,u=o.bind?o.bind(o):function(){return o.apply(o,arguments)},h={},p={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,l=c&&!p.call({1:2},1);h.f=l?function(t){var e=c(this,t);return!!e&&e.enumerable}:p;var d,D,m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f=Function.prototype,y=f.bind,E=f.call,A=y&&y.bind(E),C=y?function(t){return t&&A(E,t)}:function(t){return t&&function(){return E.apply(t,arguments)}},x=C,F=x({}.toString),g=x("".slice),P=function(t){return g(F(t),8,-1)},T=C,b=n,S=P,w=r.Object,B=T("".split),N=b((function(){return!w("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?B(t,""):w(t)}:w,I=r.TypeError,v=function(t){if(null==t)throw I("Can't call method on "+t);return t},k=N,L=v,O=function(t){return k(L(t))},M=function(t){return"function"==typeof t},R=M,j=function(t){return"object"==typeof t?null!==t:R(t)},U=r,_=M,z=function(t){return _(t)?t:void 0},H=function(t,e){return arguments.length<2?z(U[t]):U[t]&&U[t][e]},V=C({}.isPrototypeOf),q=H("navigator","userAgent")||"",W=r,K=q,G=W.process,X=W.Deno,J=G&&G.versions||X&&X.version,$=J&&J.v8;$&&(D=(d=$.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!D&&K&&(!(d=K.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=K.match(/Chrome\/(\d+)/))&&(D=+d[1]);var Y=D,Q=Y,Z=n,tt=!!Object.getOwnPropertySymbols&&!Z((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Q&&Q<41})),et=tt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,st=H,rt=M,it=V,nt=et,at=r.Object,ot=nt?function(t){return"symbol"==typeof t}:function(t){var e=st("Symbol");return rt(e)&&it(e.prototype,at(t))},ut=r.String,ht=function(t){try{return ut(t)}catch(t){return"Object"}},pt=M,ct=ht,lt=r.TypeError,dt=function(t){if(pt(t))return t;throw lt(ct(t)+" is not a function")},Dt=dt,mt=function(t,e){var s=t[e];return null==s?void 0:Dt(s)},ft=u,yt=M,Et=j,At=r.TypeError,Ct={exports:{}},xt=r,Ft=Object.defineProperty,gt=function(t,e){try{Ft(xt,t,{value:e,configurable:!0,writable:!0})}catch(s){xt[t]=e}return e},Pt=gt,Tt="__core-js_shared__",bt=r[Tt]||Pt(Tt,{}),St=bt;(Ct.exports=function(t,e){return St[t]||(St[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var wt=v,Bt=r.Object,Nt=function(t){return Bt(wt(t))},It=Nt,vt=C({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return vt(It(t),e)},Lt=C,Ot=0,Mt=Math.random(),Rt=Lt(1..toString),jt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Rt(++Ot+Mt,36)},Ut=r,_t=Ct.exports,zt=kt,Ht=jt,Vt=tt,qt=et,Wt=_t("wks"),Kt=Ut.Symbol,Gt=Kt&&Kt.for,Xt=qt?Kt:Kt&&Kt.withoutSetter||Ht,Jt=function(t){if(!zt(Wt,t)||!Vt&&"string"!=typeof Wt[t]){var e="Symbol."+t;Vt&&zt(Kt,t)?Wt[t]=Kt[t]:Wt[t]=qt&&Gt?Gt(e):Xt(e)}return Wt[t]},$t=u,Yt=j,Qt=ot,Zt=mt,te=function(t,e){var s,r;if("string"===e&&yt(s=t.toString)&&!Et(r=ft(s,t)))return r;if(yt(s=t.valueOf)&&!Et(r=ft(s,t)))return r;if("string"!==e&&yt(s=t.toString)&&!Et(r=ft(s,t)))return r;throw At("Can't convert object to primitive value")},ee=Jt,se=r.TypeError,re=ee("toPrimitive"),ie=function(t,e){if(!Yt(t)||Qt(t))return t;var s,r=Zt(t,re);if(r){if(void 0===e&&(e="default"),s=$t(r,t,e),!Yt(s)||Qt(s))return s;throw se("Can't convert object to primitive value")}return void 0===e&&(e="number"),te(t,e)},ne=ot,ae=function(t){var e=ie(t,"string");return ne(e)?e:e+""},oe=j,ue=r.document,he=oe(ue)&&oe(ue.createElement),pe=function(t){return he?ue.createElement(t):{}},ce=!a&&!n((function(){return 7!=Object.defineProperty(pe("div"),"a",{get:function(){return 7}}).a})),le=a,de=u,De=h,me=m,fe=O,ye=ae,Ee=kt,Ae=ce,Ce=Object.getOwnPropertyDescriptor;i.f=le?Ce:function(t,e){if(t=fe(t),e=ye(e),Ae)try{return Ce(t,e)}catch(t){}if(Ee(t,e))return me(!de(De.f,t,e),t[e])};var xe={},Fe=r,ge=j,Pe=Fe.String,Te=Fe.TypeError,be=function(t){if(ge(t))return t;throw Te(Pe(t)+" is not an object")},Se=a,we=ce,Be=be,Ne=ae,Ie=r.TypeError,ve=Object.defineProperty;xe.f=Se?ve:function(t,e,s){if(Be(t),e=Ne(e),Be(s),we)try{return ve(t,e,s)}catch(t){}if("get"in s||"set"in s)throw Ie("Accessors not supported");return"value"in s&&(t[e]=s.value),t};var ke=xe,Le=m,Oe=a?function(t,e,s){return ke.f(t,e,Le(1,s))}:function(t,e,s){return t[e]=s,t},Me={exports:{}},Re=M,je=bt,Ue=C(Function.toString);Re(je.inspectSource)||(je.inspectSource=function(t){return Ue(t)});var _e,ze,He,Ve=je.inspectSource,qe=M,We=Ve,Ke=r.WeakMap,Ge=qe(Ke)&&/native code/.test(We(Ke)),Xe=Ct.exports,Je=jt,$e=Xe("keys"),Ye={},Qe=Ge,Ze=r,ts=C,es=j,ss=Oe,rs=kt,is=bt,ns=function(t){return $e[t]||($e[t]=Je(t))},as=Ye,os="Object already initialized",us=Ze.TypeError,hs=Ze.WeakMap;if(Qe||is.state){var ps=is.state||(is.state=new hs),cs=ts(ps.get),ls=ts(ps.has),ds=ts(ps.set);_e=function(t,e){if(ls(ps,t))throw new us(os);return e.facade=t,ds(ps,t,e),e},ze=function(t){return cs(ps,t)||{}},He=function(t){return ls(ps,t)}}else{var Ds=ns("state");as[Ds]=!0,_e=function(t,e){if(rs(t,Ds))throw new us(os);return e.facade=t,ss(t,Ds,e),e},ze=function(t){return rs(t,Ds)?t[Ds]:{}},He=function(t){return rs(t,Ds)}}var ms={set:_e,get:ze,has:He,enforce:function(t){return He(t)?ze(t):_e(t,{})},getterFor:function(t){return function(e){var s;if(!es(e)||(s=ze(e)).type!==t)throw us("Incompatible receiver, "+t+" required");return s}}},fs=a,ys=kt,Es=Function.prototype,As=fs&&Object.getOwnPropertyDescriptor,Cs=ys(Es,"name"),xs=Cs&&"something"===function(){}.name,Fs=Cs&&(!fs||fs&&As(Es,"name").configurable),gs=r,Ps=M,Ts=kt,bs=Oe,Ss=gt,ws=Ve,Bs={EXISTS:Cs,PROPER:xs,CONFIGURABLE:Fs}.CONFIGURABLE,Ns=ms.get,Is=ms.enforce,vs=String(String).split("String");(Me.exports=function(t,e,s,r){var i,n=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,o=!!r&&!!r.noTargetGet,u=r&&void 0!==r.name?r.name:e;Ps(s)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ts(s,"name")||Bs&&s.name!==u)&&bs(s,"name",u),(i=Is(s)).source||(i.source=vs.join("string"==typeof u?u:""))),t!==gs?(n?!o&&t[e]&&(a=!0):delete t[e],a?t[e]=s:bs(t,e,s)):a?t[e]=s:Ss(e,s)})(Function.prototype,"toString",(function(){return Ps(this)&&Ns(this).source||ws(this)}));var ks={},Ls=Math.ceil,Os=Math.floor,Ms=function(t){var e=+t;return e!=e||0===e?0:(e>0?Os:Ls)(e)},Rs=Ms,js=Math.max,Us=Math.min,_s=Ms,zs=Math.min,Hs=function(t){return t>0?zs(_s(t),9007199254740991):0},Vs=function(t){return Hs(t.length)},qs=O,Ws=function(t,e){var s=Rs(t);return s<0?js(s+e,0):Us(s,e)},Ks=Vs,Gs=function(t){return function(e,s,r){var i,n=qs(e),a=Ks(n),o=Ws(r,a);if(t&&s!=s){for(;a>o;)if((i=n[o++])!=i)return!0}else for(;a>o;o++)if((t||o in n)&&n[o]===s)return t||o||0;return!t&&-1}},Xs={includes:Gs(!0),indexOf:Gs(!1)},Js=kt,$s=O,Ys=Xs.indexOf,Qs=Ye,Zs=C([].push),tr=function(t,e){var s,r=$s(t),i=0,n=[];for(s in r)!Js(Qs,s)&&Js(r,s)&&Zs(n,s);for(;e.length>i;)Js(r,s=e[i++])&&(~Ys(n,s)||Zs(n,s));return n},er=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");ks.f=Object.getOwnPropertyNames||function(t){return tr(t,er)};var sr={};sr.f=Object.getOwnPropertySymbols;var rr=H,ir=ks,nr=sr,ar=be,or=C([].concat),ur=rr("Reflect","ownKeys")||function(t){var e=ir.f(ar(t)),s=nr.f;return s?or(e,s(t)):e},hr=kt,pr=ur,cr=i,lr=xe,dr=n,Dr=M,mr=/#|\.prototype\./,fr=function(t,e){var s=Er[yr(t)];return s==Cr||s!=Ar&&(Dr(e)?dr(e):!!e)},yr=fr.normalize=function(t){return String(t).replace(mr,".").toLowerCase()},Er=fr.data={},Ar=fr.NATIVE="N",Cr=fr.POLYFILL="P",xr=fr,Fr=r,gr=i.f,Pr=Oe,Tr=Me.exports,br=gt,Sr=function(t,e){for(var s=pr(e),r=lr.f,i=cr.f,n=0;n<s.length;n++){var a=s[n];hr(t,a)||r(t,a,i(e,a))}},wr=xr,Br=function(t,e){var s,r,i,n,a,o=t.target,u=t.global,h=t.stat;if(s=u?Fr:h?Fr[o]||br(o,{}):(Fr[o]||{}).prototype)for(r in e){if(n=e[r],i=t.noTargetGet?(a=gr(s,r))&&a.value:s[r],!wr(u?r:o+(h?".":"#")+r,t.forced)&&void 0!==i){if(typeof n==typeof i)continue;Sr(n,i)}(t.sham||i&&i.sham)&&Pr(n,"sham",!0),Tr(s,r,n,t)}},Nr=P,Ir=Array.isArray||function(t){return"Array"==Nr(t)},vr=dt,kr=C(C.bind),Lr=function(t,e){return vr(t),void 0===e?t:kr?kr(t,e):function(){return t.apply(e,arguments)}},Or=Ir,Mr=Vs,Rr=Lr,jr=r.TypeError,Ur=function(t,e,s,r,i,n,a,o){for(var u,h,p=i,c=0,l=!!a&&Rr(a,o);c<r;){if(c in s){if(u=l?l(s[c],c,e):s[c],n>0&&Or(u))h=Mr(u),p=Ur(t,e,u,h,p,n-1)-1;else{if(p>=9007199254740991)throw jr("Exceed the acceptable array length");t[p]=u}p++}c++}return p},_r=Ur,zr={};zr[Jt("toStringTag")]="z";var Hr=r,Vr="[object z]"===String(zr),qr=M,Wr=P,Kr=Jt("toStringTag"),Gr=Hr.Object,Xr="Arguments"==Wr(function(){return arguments}()),Jr=Vr?Wr:function(t){var e,s,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=function(t,e){try{return t[e]}catch(t){}}(e=Gr(t),Kr))?s:Xr?Wr(e):"Object"==(r=Wr(e))&&qr(e.callee)?"Arguments":r},$r=C,Yr=n,Qr=M,Zr=Jr,ti=Ve,ei=function(){},si=[],ri=H("Reflect","construct"),ii=/^\s*(?:class|function)\b/,ni=$r(ii.exec),ai=!ii.exec(ei),oi=function(t){if(!Qr(t))return!1;try{return ri(ei,si,t),!0}catch(t){return!1}},ui=!ri||Yr((function(){var t;return oi(oi.call)||!oi(Object)||!oi((function(){t=!0}))||t}))?function(t){if(!Qr(t))return!1;switch(Zr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ai||!!ni(ii,ti(t))}:oi,hi=r,pi=Ir,ci=ui,li=j,di=Jt("species"),Di=hi.Array,mi=function(t){var e;return pi(t)&&(e=t.constructor,(ci(e)&&(e===Di||pi(e.prototype))||li(e)&&null===(e=e[di]))&&(e=void 0)),void 0===e?Di:e},fi=_r,yi=dt,Ei=Nt,Ai=Vs,Ci=function(t,e){return new(mi(t))(0===e?0:e)};Br({target:"Array",proto:!0},{flatMap:function(t){var e,s=Ei(this),r=Ai(s);return yi(t),(e=Ci(s,0)).length=fi(e,s,s,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var xi=function(){let t;for(var e=arguments.length,s=new Array(e),r=0;r<e;r++)s[r]=arguments[r];for(const[e,r]of s.entries())try{return{result:r()}}catch(s){0===e&&(t=s)}return{error:t}},Fi={exports:{}};const gi=function(){let{onlyFirst:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")};var Pi={exports:{}};const Ti=t=>!Number.isNaN(t)&&(t>=4352&&(t<=4447||9001===t||9002===t||11904<=t&&t<=12871&&12351!==t||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141));Pi.exports=Ti,Pi.exports.default=Ti;const bi=t=>"string"==typeof t?t.replace(gi(),""):t,Si=Pi.exports,wi=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},Bi=t=>{if("string"!=typeof t||0===t.length)return 0;if(0===(t=bi(t)).length)return 0;t=t.replace(wi(),"  ");let e=0;for(let s=0;s<t.length;s++){const r=t.codePointAt(s);r<=31||r>=127&&r<=159||(r>=768&&r<=879||(r>65535&&s++,e+=Si(r)?2:1))}return e};Fi.exports=Bi,Fi.exports.default=Bi;var Ni=t=>t[t.length-1];function Ii(t,e){if(null==t)return{};var s,r,i=function(t,e){if(null==t)return{};var s,r,i={},n=Object.keys(t);for(r=0;r<n.length;r++)s=n[r],e.indexOf(s)>=0||(i[s]=t[s]);return i}(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(r=0;r<n.length;r++)s=n[r],e.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(i[s]=t[s])}return i}function vi(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var ki=Jr,Li=r.String,Oi=C([].slice),Mi=Math.floor,Ri=function(t,e){var s=t.length,r=Mi(s/2);return s<8?ji(t,e):Ui(t,Ri(Oi(t,0,r),e),Ri(Oi(t,r),e),e)},ji=function(t,e){for(var s,r,i=t.length,n=1;n<i;){for(r=n,s=t[n];r&&e(t[r-1],s)>0;)t[r]=t[--r];r!==n++&&(t[r]=s)}return t},Ui=function(t,e,s,r){for(var i=e.length,n=s.length,a=0,o=0;a<i||o<n;)t[a+o]=a<i&&o<n?r(e[a],s[o])<=0?e[a++]:s[o++]:a<i?e[a++]:s[o++];return t},_i=Ri,zi=n,Hi=q.match(/firefox\/(\d+)/i),Vi=!!Hi&&+Hi[1],qi=/MSIE|Trident/.test(q),Wi=q.match(/AppleWebKit\/(\d+)\./),Ki=!!Wi&&+Wi[1],Gi=Br,Xi=C,Ji=dt,$i=Nt,Yi=Vs,Qi=function(t){if("Symbol"===ki(t))throw TypeError("Cannot convert a Symbol value to a string");return Li(t)},Zi=n,tn=_i,en=function(t,e){var s=[][t];return!!s&&zi((function(){s.call(null,e||function(){throw 1},1)}))},sn=Vi,rn=qi,nn=Y,an=Ki,on=[],un=Xi(on.sort),hn=Xi(on.push),pn=Zi((function(){on.sort(void 0)})),cn=Zi((function(){on.sort(null)})),ln=en("sort"),dn=!Zi((function(){if(nn)return nn<70;if(!(sn&&sn>3)){if(rn)return!0;if(an)return an<603;var t,e,s,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:s=3;break;case 68:case 71:s=4;break;default:s=2}for(r=0;r<47;r++)on.push({k:e+r,v:s})}for(on.sort((function(t,e){return e.v-t.v})),r=0;r<on.length;r++)e=on[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));Gi({target:"Array",proto:!0,forced:pn||!cn||!ln||!dn},{sort:function(t){void 0!==t&&Ji(t);var e=$i(this);if(dn)return void 0===t?un(e):un(e,t);var s,r,i=[],n=Yi(e);for(r=0;r<n;r++)r in e&&hn(i,e[r]);for(tn(i,function(t){return function(e,s){return void 0===s?-1:void 0===e?1:void 0!==t?+t(e,s)||0:Qi(e)>Qi(s)?1:-1}}(t)),s=i.length,r=0;r<s;)e[r]=i[r++];for(;r<n;)delete e[r++];return e}});var Dn={},mn=Dn,fn=Jt("iterator"),yn=Array.prototype,En=Jr,An=mt,Cn=Dn,xn=Jt("iterator"),Fn=function(t){if(null!=t)return An(t,xn)||An(t,"@@iterator")||Cn[En(t)]},gn=u,Pn=dt,Tn=be,bn=ht,Sn=Fn,wn=r.TypeError,Bn=u,Nn=be,In=mt,vn=Lr,kn=u,Ln=be,On=ht,Mn=function(t){return void 0!==t&&(mn.Array===t||yn[fn]===t)},Rn=Vs,jn=V,Un=function(t,e){var s=arguments.length<2?Sn(t):e;if(Pn(s))return Tn(gn(s,t));throw wn(bn(t)+" is not iterable")},_n=Fn,zn=function(t,e,s){var r,i;Nn(t);try{if(!(r=In(t,"return"))){if("throw"===e)throw s;return s}r=Bn(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw s;if(i)throw r;return Nn(r),s},Hn=r.TypeError,Vn=function(t,e){this.stopped=t,this.result=e},qn=Vn.prototype,Wn=ae,Kn=xe,Gn=m,Xn=function(t,e,s){var r,i,n,a,o,u,h,p=s&&s.that,c=!(!s||!s.AS_ENTRIES),l=!(!s||!s.IS_ITERATOR),d=!(!s||!s.INTERRUPTED),D=vn(e,p),m=function(t){return r&&zn(r,"normal",t),new Vn(!0,t)},f=function(t){return c?(Ln(t),d?D(t[0],t[1],m):D(t[0],t[1])):d?D(t,m):D(t)};if(l)r=t;else{if(!(i=_n(t)))throw Hn(On(t)+" is not iterable");if(Mn(i)){for(n=0,a=Rn(t);a>n;n++)if((o=f(t[n]))&&jn(qn,o))return o;return new Vn(!1)}r=Un(t,i)}for(u=r.next;!(h=kn(u,r)).done;){try{o=f(h.value)}catch(t){zn(r,"throw",t)}if("object"==typeof o&&o&&jn(qn,o))return o}return new Vn(!1)},Jn=function(t,e,s){var r=Wn(e);r in t?Kn.f(t,r,Gn(0,s)):t[r]=s};Br({target:"Object",stat:!0},{fromEntries:function(t){var e={};return Xn(t,(function(t,s){Jn(e,t,s)}),{AS_ENTRIES:!0}),e}});var $n=void 0!==$n?$n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Yn(){throw new Error("setTimeout has not been defined")}function Qn(){throw new Error("clearTimeout has not been defined")}var Zn=Yn,ta=Qn;function ea(t){if(Zn===setTimeout)return setTimeout(t,0);if((Zn===Yn||!Zn)&&setTimeout)return Zn=setTimeout,setTimeout(t,0);try{return Zn(t,0)}catch(e){try{return Zn.call(null,t,0)}catch(e){return Zn.call(this,t,0)}}}"function"==typeof $n.setTimeout&&(Zn=setTimeout),"function"==typeof $n.clearTimeout&&(ta=clearTimeout);var sa,ra=[],ia=!1,na=-1;function aa(){ia&&sa&&(ia=!1,sa.length?ra=sa.concat(ra):na=-1,ra.length&&oa())}function oa(){if(!ia){var t=ea(aa);ia=!0;for(var e=ra.length;e;){for(sa=ra,ra=[];++na<e;)sa&&sa[na].run();na=-1,e=ra.length}sa=null,ia=!1,function(t){if(ta===clearTimeout)return clearTimeout(t);if((ta===Qn||!ta)&&clearTimeout)return ta=clearTimeout,clearTimeout(t);try{ta(t)}catch(e){try{return ta.call(null,t)}catch(e){return ta.call(this,t)}}}(t)}}function ua(t,e){this.fun=t,this.array=e}ua.prototype.run=function(){this.fun.apply(null,this.array)};function ha(){}var pa=ha,ca=ha,la=ha,da=ha,Da=ha,ma=ha,fa=ha;var ya=$n.performance||{},Ea=ya.now||ya.mozNow||ya.msNow||ya.oNow||ya.webkitNow||function(){return(new Date).getTime()};var Aa=new Date;var Ca={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)e[s-1]=arguments[s];ra.push(new ua(t,e)),1!==ra.length||ia||ea(oa)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:pa,addListener:ca,once:la,off:da,removeListener:Da,removeAllListeners:ma,emit:fa,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Ea.call(ya),s=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(s-=t[0],(r-=t[1])<0&&(s--,r+=1e9)),[s,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Aa)/1e3}},xa=Ca;const Fa="object"==typeof xa&&xa.env&&xa.env.NODE_DEBUG&&/\bsemver\b/i.test(xa.env.NODE_DEBUG)?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return console.error("SEMVER",...e)}:()=>{};var ga=Fa;var Pa={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},Ta={exports:{}};!function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:s}=Pa,r=ga,i=(e=t.exports={}).re=[],n=e.src=[],a=e.t={};let o=0;const u=(t,e,s)=>{const u=o++;r(u,e),a[t]=u,n[u]=e,i[u]=new RegExp(e,s?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION","(".concat(n[a.NUMERICIDENTIFIER],")\\.")+"(".concat(n[a.NUMERICIDENTIFIER],")\\.")+"(".concat(n[a.NUMERICIDENTIFIER],")")),u("MAINVERSIONLOOSE","(".concat(n[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(n[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(n[a.NUMERICIDENTIFIERLOOSE],")")),u("PRERELEASEIDENTIFIER","(?:".concat(n[a.NUMERICIDENTIFIER],"|").concat(n[a.NONNUMERICIDENTIFIER],")")),u("PRERELEASEIDENTIFIERLOOSE","(?:".concat(n[a.NUMERICIDENTIFIERLOOSE],"|").concat(n[a.NONNUMERICIDENTIFIER],")")),u("PRERELEASE","(?:-(".concat(n[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(n[a.PRERELEASEIDENTIFIER],")*))")),u("PRERELEASELOOSE","(?:-?(".concat(n[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(n[a.PRERELEASEIDENTIFIERLOOSE],")*))")),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD","(?:\\+(".concat(n[a.BUILDIDENTIFIER],"(?:\\.").concat(n[a.BUILDIDENTIFIER],")*))")),u("FULLPLAIN","v?".concat(n[a.MAINVERSION]).concat(n[a.PRERELEASE],"?").concat(n[a.BUILD],"?")),u("FULL","^".concat(n[a.FULLPLAIN],"$")),u("LOOSEPLAIN","[v=\\s]*".concat(n[a.MAINVERSIONLOOSE]).concat(n[a.PRERELEASELOOSE],"?").concat(n[a.BUILD],"?")),u("LOOSE","^".concat(n[a.LOOSEPLAIN],"$")),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE","".concat(n[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),u("XRANGEIDENTIFIER","".concat(n[a.NUMERICIDENTIFIER],"|x|X|\\*")),u("XRANGEPLAIN","[v=\\s]*(".concat(n[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(n[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(n[a.XRANGEIDENTIFIER],")")+"(?:".concat(n[a.PRERELEASE],")?").concat(n[a.BUILD],"?")+")?)?"),u("XRANGEPLAINLOOSE","[v=\\s]*(".concat(n[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(n[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(n[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(n[a.PRERELEASELOOSE],")?").concat(n[a.BUILD],"?")+")?)?"),u("XRANGE","^".concat(n[a.GTLT],"\\s*").concat(n[a.XRANGEPLAIN],"$")),u("XRANGELOOSE","^".concat(n[a.GTLT],"\\s*").concat(n[a.XRANGEPLAINLOOSE],"$")),u("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(s,"})")+"(?:\\.(\\d{1,".concat(s,"}))?")+"(?:\\.(\\d{1,".concat(s,"}))?")+"(?:$|[^\\d])"),u("COERCERTL",n[a.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM","(\\s*)".concat(n[a.LONETILDE],"\\s+"),!0),e.tildeTrimReplace="$1~",u("TILDE","^".concat(n[a.LONETILDE]).concat(n[a.XRANGEPLAIN],"$")),u("TILDELOOSE","^".concat(n[a.LONETILDE]).concat(n[a.XRANGEPLAINLOOSE],"$")),u("LONECARET","(?:\\^)"),u("CARETTRIM","(\\s*)".concat(n[a.LONECARET],"\\s+"),!0),e.caretTrimReplace="$1^",u("CARET","^".concat(n[a.LONECARET]).concat(n[a.XRANGEPLAIN],"$")),u("CARETLOOSE","^".concat(n[a.LONECARET]).concat(n[a.XRANGEPLAINLOOSE],"$")),u("COMPARATORLOOSE","^".concat(n[a.GTLT],"\\s*(").concat(n[a.LOOSEPLAIN],")$|^$")),u("COMPARATOR","^".concat(n[a.GTLT],"\\s*(").concat(n[a.FULLPLAIN],")$|^$")),u("COMPARATORTRIM","(\\s*)".concat(n[a.GTLT],"\\s*(").concat(n[a.LOOSEPLAIN],"|").concat(n[a.XRANGEPLAIN],")"),!0),e.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE","^\\s*(".concat(n[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(n[a.XRANGEPLAIN],")")+"\\s*$"),u("HYPHENRANGELOOSE","^\\s*(".concat(n[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(n[a.XRANGEPLAINLOOSE],")")+"\\s*$"),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(Ta,Ta.exports);const ba=["includePrerelease","loose","rtl"];var Sa=t=>t?"object"!=typeof t?{loose:!0}:ba.filter((e=>t[e])).reduce(((t,e)=>(t[e]=!0,t)),{}):{};const wa=/^[0-9]+$/,Ba=(t,e)=>{const s=wa.test(t),r=wa.test(e);return s&&r&&(t=+t,e=+e),t===e?0:s&&!r?-1:r&&!s?1:t<e?-1:1};var Na={compareIdentifiers:Ba,rcompareIdentifiers:(t,e)=>Ba(e,t)};const Ia=ga,{MAX_LENGTH:va,MAX_SAFE_INTEGER:ka}=Pa,{re:La,t:Oa}=Ta.exports,Ma=Sa,{compareIdentifiers:Ra}=Na;class ja{constructor(t,e){if(e=Ma(e),t instanceof ja){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: ".concat(t));if(t.length>va)throw new TypeError("version is longer than ".concat(va," characters"));Ia("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const s=t.trim().match(e.loose?La[Oa.LOOSE]:La[Oa.FULL]);if(!s)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>ka||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ka||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ka||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<ka)return e}return t})):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(Ia("SemVer.compare",this.version,this.options,t),!(t instanceof ja)){if("string"==typeof t&&t===this.version)return 0;t=new ja(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ja||(t=new ja(t,this.options)),Ra(this.major,t.major)||Ra(this.minor,t.minor)||Ra(this.patch,t.patch)}comparePre(t){if(t instanceof ja||(t=new ja(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const s=this.prerelease[e],r=t.prerelease[e];if(Ia("prerelease compare",e,s,r),void 0===s&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===s)return-1;if(s!==r)return Ra(s,r)}while(++e)}compareBuild(t){t instanceof ja||(t=new ja(t,this.options));let e=0;do{const s=this.build[e],r=t.build[e];if(Ia("prerelease compare",e,s,r),void 0===s&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===s)return-1;if(s!==r)return Ra(s,r)}while(++e)}inc(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let t=this.prerelease.length;for(;--t>=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: ".concat(t))}return this.format(),this.raw=this.version,this}}const Ua=ja;var _a=(t,e,s)=>new Ua(t,s).compare(new Ua(e,s));const za=_a;var Ha=(t,e,s)=>za(t,e,s)<0;const Va=_a;var qa,Wa,Ka,Ga,Xa,Ja,$a=(t,e,s)=>Va(t,e,s)>=0,Ya={exports:{}};!function(t,e){function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function r(){return"undefined"!=typeof WeakMap?new WeakMap:{add:s,delete:s,get:s,set:s,has:function(t){return!1}}}Object.defineProperty(e,"__esModule",{value:!0}),e.outdent=void 0;var i=Object.prototype.hasOwnProperty,n=function(t,e){return i.call(t,e)};function a(t,e){for(var s in e)n(e,s)&&(t[s]=e[s]);return t}var o=/^[ \t]*(?:\r\n|\r|\n)/,u=/(?:\r\n|\r|\n)[ \t]*$/,h=/^(?:[\r\n]|$)/,p=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,c=/^[ \t]*[\r\n][ \t\r\n]*$/;function l(t,e,s){var r=0,i=t[0].match(p);i&&(r=i[1].length);var n=new RegExp("(\\r\\n|\\r|\\n).{0,"+r+"}","g");e&&(t=t.slice(1));var a=s.newline,h=s.trimLeadingNewline,c=s.trimTrailingNewline,l="string"==typeof a,d=t.length;return t.map((function(t,e){return t=t.replace(n,"$1"),0===e&&h&&(t=t.replace(o,"")),e===d-1&&c&&(t=t.replace(u,"")),l&&(t=t.replace(/\r\n|\n|\r/g,(function(t){return a}))),t}))}function d(t,e){for(var s="",r=0,i=t.length;r<i;r++)s+=t[r],r<i-1&&(s+=e[r]);return s}function D(t){return n(t,"raw")&&n(t,"length")}var m=function t(e){var s=r(),i=r(),n=a((function r(n){for(var o=[],u=1;u<arguments.length;u++)o[u-1]=arguments[u];if(D(n)){var p=n,f=(o[0]===r||o[0]===m)&&c.test(p[0])&&h.test(p[1]),y=f?i:s,E=y.get(p);if(E||(E=l(p,f,e),y.set(p,E)),0===o.length)return E[0];var A=d(E,f?o.slice(1):o);return A}return t(a(a({},e),n||{}))}),{string:function(t){return l([t],!1,e)[0]}});return n}({trimLeadingNewline:!0,trimTrailingNewline:!0});e.outdent=m,e.default=m;try{t.exports=m,Object.defineProperty(m,"__esModule",{value:!0}),m.default=m,m.outdent=m}catch(t){}}(Ya,Ya.exports);const{outdent:Qa}=Ya.exports,Za="Config",to="Editor",eo="Other",so="Global",ro="Special",io={cursorOffset:{since:"1.4.0",category:ro,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:Qa(qa||(qa=vi(["\n      Print (to stderr) where a cursor at the given position would move to after formatting.\n      This option cannot be used with --range-start and --range-end.\n    "]))),cliCategory:to},endOfLine:{since:"1.15.0",category:so,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Qa(Wa||(Wa=vi(["\n          Maintain existing\n          (mixed values within one file are normalised by looking at what's used after the first line)\n        "])))}]},filepath:{since:"1.4.0",category:ro,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:eo,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:ro,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:eo},parser:{since:"0.0.10",category:so,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:t=>"string"==typeof t||"function"==typeof t,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:so,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:t=>"string"==typeof t||"object"==typeof t,cliName:"plugin",cliCategory:Za},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:so,description:Qa(Ka||(Ka=vi(["\n      Custom directory that contains prettier plugins in node_modules subdirectory.\n      Overrides default behavior when plugins are searched relatively to the location of Prettier.\n      Multiple values are accepted.\n    "]))),exception:t=>"string"==typeof t||"object"==typeof t,cliName:"plugin-search-dir",cliCategory:Za},printWidth:{since:"0.0.0",category:so,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:ro,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Qa(Ga||(Ga=vi(["\n      Format code ending at a given character offset (exclusive).\n      The range will extend forwards to the end of the selected statement.\n      This option cannot be used with --cursor-offset.\n    "]))),cliCategory:to},rangeStart:{since:"1.4.0",category:ro,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Qa(Xa||(Xa=vi(["\n      Format code starting at a given character offset.\n      The range will extend backwards to the start of the first line containing the selected statement.\n      This option cannot be used with --cursor-offset.\n    "]))),cliCategory:to},requirePragma:{since:"1.7.0",category:ro,type:"boolean",default:!1,description:Qa(Ja||(Ja=vi(["\n      Require either '@prettier' or '@format' to be present in the file's first docblock comment\n      in order for it to be formatted.\n    "]))),cliCategory:eo},tabWidth:{type:"int",category:so,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:so,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:so,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};const no=["cliName","cliCategory","cliDescription"],ao={compare:_a,lt:Ha,gte:$a},oo=(t,e)=>Object.entries(t).map((t=>{let[s,r]=t;return Object.assign({[e]:s},r)})),uo="2.5.0",ho={CATEGORY_CONFIG:Za,CATEGORY_EDITOR:to,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:eo,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:so,CATEGORY_SPECIAL:ro,options:io}.options;function po(t,e,s){const r=new Set(t.choices.map((t=>t.value)));for(const i of e)if(i.parsers)for(const e of i.parsers)if(!r.has(e)){r.add(e);const n=s.find((t=>t.parsers&&t.parsers[e]));let a=i.name;n&&n.name&&(a+=" (plugin: ".concat(n.name,")")),t.choices.push({value:e,description:a})}}var co={getSupportInfo:function(){let{plugins:t=[],showUnreleased:e=!1,showDeprecated:s=!1,showInternal:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=uo.split("-",1)[0],n=t.flatMap((t=>t.languages||[])).filter(o),a=oo(Object.assign({},...t.map((t=>{let{options:e}=t;return e})),ho),"name").filter((t=>o(t)&&u(t))).sort(((t,e)=>t.name===e.name?0:t.name<e.name?-1:1)).map(h).map((e=>{e=Object.assign({},e),Array.isArray(e.default)&&(e.default=1===e.default.length?e.default[0].value:e.default.filter(o).sort(((t,e)=>ao.compare(e.since,t.since)))[0].value),Array.isArray(e.choices)&&(e.choices=e.choices.filter((t=>o(t)&&u(t))),"parser"===e.name&&po(e,n,t));const s=Object.fromEntries(t.filter((t=>t.defaultOptions&&void 0!==t.defaultOptions[e.name])).map((t=>[t.name,t.defaultOptions[e.name]])));return Object.assign(Object.assign({},e),{},{pluginDefaults:s})}));return{languages:n,options:a};function o(t){return e||!("since"in t)||t.since&&ao.gte(i,t.since)}function u(t){return s||!("deprecated"in t)||t.deprecated&&ao.lt(i,t.deprecated)}function h(t){if(r)return t;return Ii(t,no)}}};const lo=Fi.exports,Do=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},mo=Ni,{getSupportInfo:fo}=co,yo=/[^\x20-\x7F]/;function Eo(t){return(e,s,r)=>{const i=r&&r.backwards;if(!1===s)return!1;const{length:n}=e;let a=s;for(;a>=0&&a<n;){const s=e.charAt(a);if(t instanceof RegExp){if(!t.test(s))return a}else if(!t.includes(s))return a;i?a--:a++}return(-1===a||a===n)&&a}}const Ao=Eo(/\s/),Co=Eo(" \t"),xo=Eo(",; \t"),Fo=Eo(/[^\n\r]/);function go(t,e){if(!1===e)return!1;if("/"===t.charAt(e)&&"*"===t.charAt(e+1))for(let s=e+2;s<t.length;++s)if("*"===t.charAt(s)&&"/"===t.charAt(s+1))return s+2;return e}function Po(t,e){return!1!==e&&("/"===t.charAt(e)&&"/"===t.charAt(e+1)?Fo(t,e):e)}function To(t,e,s){const r=s&&s.backwards;if(!1===e)return!1;const i=t.charAt(e);if(r){if("\r"===t.charAt(e-1)&&"\n"===i)return e-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return e-1}else{if("\r"===i&&"\n"===t.charAt(e+1))return e+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return e+1}return e}function bo(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Co(t,s.backwards?e-1:e,s),i=To(t,r,s);return r!==i}function So(t,e){let s=null,r=e;for(;r!==s;)s=r,r=xo(t,r),r=go(t,r),r=Co(t,r);return r=Po(t,r),r=To(t,r),!1!==r&&bo(t,r)}function wo(t,e){let s=null,r=e;for(;r!==s;)s=r,r=Co(t,r),r=go(t,r),r=Po(t,r),r=To(t,r);return r}function Bo(t,e,s){return wo(t,s(e))}function No(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;for(let i=s;i<t.length;++i)"\t"===t[i]?r=r+e-r%e:r++;return r}function Io(t,e){const s={quote:'"',regex:/"/g,escaped:"&quot;"},r={quote:"'",regex:/'/g,escaped:"&apos;"},i="'"===e?r:s,n=i===r?s:r;let a=i;if(t.includes(i.quote)||t.includes(n.quote)){a=(t.match(i.regex)||[]).length>(t.match(n.regex)||[]).length?n:i}return a}function vo(t,e,s){const r='"'===e?"'":'"',i=t.replace(/\\(.)|(["'])/gs,((t,i,n)=>i===r?i:n===e?"\\"+n:n||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)));return e+i+e}function ko(t,e){(t.comments||(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=function(t){const e=t.type||t.kind||"(unknown type)";let s=String(t.name||t.id&&("object"==typeof t.id?t.id.name:t.id)||t.key&&("object"==typeof t.key?t.key.name:t.key)||t.value&&("object"==typeof t.value?"":String(t.value))||t.operator||"");s.length>20&&(s=s.slice(0,19)+"\u2026");return e+(s?" "+s:"")}(t)}var Lo,Oo={inferParserByLanguage:function(t,e){const{languages:s}=fo({plugins:e.plugins}),r=s.find((e=>{let{name:s}=e;return s.toLowerCase()===t}))||s.find((e=>{let{aliases:s}=e;return Array.isArray(s)&&s.includes(t)}))||s.find((e=>{let{extensions:s}=e;return Array.isArray(s)&&s.includes(".".concat(t))}));return r&&r.parsers[0]},getStringWidth:function(t){return t?yo.test(t)?lo(t):t.length:0},getMaxContinuousCount:function(t,e){const s=t.match(new RegExp("(".concat(Do(e),")+"),"g"));return null===s?0:s.reduce(((t,s)=>Math.max(t,s.length/e.length)),0)},getMinNotPresentContinuousCount:function(t,e){const s=t.match(new RegExp("(".concat(Do(e),")+"),"g"));if(null===s)return 0;const r=new Map;let i=0;for(const t of s){const s=t.length/e.length;r.set(s,!0),s>i&&(i=s)}for(let t=1;t<i;t++)if(!r.get(t))return t;return i+1},getPenultimate:t=>t[t.length-2],getLast:mo,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:wo,getNextNonSpaceNonCommentCharacterIndex:Bo,getNextNonSpaceNonCommentCharacter:function(t,e,s){return t.charAt(Bo(t,e,s))},skip:Eo,skipWhitespace:Ao,skipSpaces:Co,skipToLineEnd:xo,skipEverythingButNewLine:Fo,skipInlineComment:go,skipTrailingComment:Po,skipNewline:To,isNextLineEmptyAfterIndex:So,isNextLineEmpty:function(t,e,s){return So(t,s(e))},isPreviousLineEmpty:function(t,e,s){let r=s(e)-1;return r=Co(t,r,{backwards:!0}),r=To(t,r,{backwards:!0}),r=Co(t,r,{backwards:!0}),r!==To(t,r,{backwards:!0})},hasNewline:bo,hasNewlineInRange:function(t,e,s){for(let r=e;r<s;++r)if("\n"===t.charAt(r))return!0;return!1},hasSpaces:function(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Co(t,s.backwards?e-1:e,s);return r!==e},getAlignmentSize:No,getIndentSize:function(t,e){const s=t.lastIndexOf("\n");return-1===s?0:No(t.slice(s+1).match(/^[\t ]*/)[0],e)},getPreferredQuote:Io,printString:function(t,e){const s=t.slice(1,-1);return vo(s,"json"===e.parser||"json5"===e.parser&&"preserve"===e.quoteProps&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":Io(s,e.singleQuote?"'":'"').quote,!("css"===e.parser||"less"===e.parser||"scss"===e.parser||e.__embeddedInHtml))},printNumber:function(t){return t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:vo,addLeadingComment:function(t,e){e.leading=!0,e.trailing=!1,ko(t,e)},addDanglingComment:function(t,e,s){e.leading=!1,e.trailing=!1,s&&(e.marker=s),ko(t,e)},addTrailingComment:function(t,e){e.leading=!1,e.trailing=!0,ko(t,e)},isFrontMatterNode:function(t){return t&&"front-matter"===t.type},getShebang:function(t){if(!t.startsWith("#!"))return"";const e=t.indexOf("\n");return-1===e?t:t.slice(0,e)},isNonEmptyArray:function(t){return Array.isArray(t)&&t.length>0},createGroupIdMapper:function(t){const e=new WeakMap;return function(s){return e.has(s)||e.set(s,Symbol(t)),e.get(s)}}},Mo={};function Ro(){if(void 0===Lo){var t=new ArrayBuffer(2),e=new Uint8Array(t),s=new Uint16Array(t);if(e[0]=1,e[1]=2,258===s[0])Lo="BE";else{if(513!==s[0])throw new Error("unable to figure out endianess");Lo="LE"}}return Lo}function jo(){return void 0!==$n.location?$n.location.hostname:""}function Uo(){return[]}function _o(){return 0}function zo(){return Number.MAX_VALUE}function Ho(){return Number.MAX_VALUE}function Vo(){return[]}function qo(){return"Browser"}function Wo(){return void 0!==$n.navigator?$n.navigator.appVersion:""}function Ko(){}function Go(){}function Xo(){return"javascript"}function Jo(){return"browser"}function $o(){return"/tmp"}var Yo=$o,Qo={EOL:"\n",arch:Xo,platform:Jo,tmpdir:Yo,tmpDir:$o,networkInterfaces:Ko,getNetworkInterfaces:Go,release:Wo,type:qo,cpus:Vo,totalmem:Ho,freemem:zo,uptime:_o,loadavg:Uo,hostname:jo,endianness:Ro},Zo=e(Object.freeze({__proto__:null,endianness:Ro,hostname:jo,loadavg:Uo,uptime:_o,freemem:zo,totalmem:Ho,cpus:Vo,type:qo,release:Wo,networkInterfaces:Ko,getNetworkInterfaces:Go,arch:Xo,platform:Jo,tmpDir:$o,tmpdir:Yo,EOL:"\n",default:Qo})),tu={exports:{}};const eu=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");const e=t.match(/(?:\r?\n)/g)||[];if(0===e.length)return;const s=e.filter((t=>"\r\n"===t)).length;return s>e.length-s?"\r\n":"\n"};function su(){const t=Zo;return su=function(){return t},t}function ru(){const t=(e=tu.exports)&&e.__esModule?e:{default:e};var e;return ru=function(){return t},t}tu.exports=eu,tu.exports.graceful=t=>"string"==typeof t&&eu(t)||"\n",Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.extract=function(t){const e=t.match(au);return e?e[0].trimLeft():""},Mo.strip=function(t){const e=t.match(au);return e&&e[0]?t.substring(e[0].length):t},Mo.parse=function(t){return du(t).pragmas},Mo.parseWithComments=du,Mo.print=function(t){let{comments:e="",pragmas:s={}}=t;const r=(0,ru().default)(e)||su().EOL,i=" *",n=Object.keys(s),a=n.map((t=>Du(t,s[t]))).reduce(((t,e)=>t.concat(e)),[]).map((t=>" * "+t+r)).join("");if(!e){if(0===n.length)return"";if(1===n.length&&!Array.isArray(s[n[0]])){const t=s[n[0]];return"".concat("/**"," ").concat(Du(n[0],t)[0]).concat(" */")}}const o=e.split(r).map((t=>"".concat(i," ").concat(t))).join(r)+r;return"/**"+r+(e?o:"")+(e&&n.length?i+r:"")+a+" */"};const iu=/\*\/$/,nu=/^\/\*\*/,au=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ou=/(^|\s+)\/\/([^\r\n]*)/g,uu=/^(\r?\n)+/,hu=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,pu=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,cu=/(\r?\n|^) *\* ?/g,lu=[];function du(t){const e=(0,ru().default)(t)||su().EOL;t=t.replace(nu,"").replace(iu,"").replace(cu,"$1");let s="";for(;s!==t;)s=t,t=t.replace(hu,"".concat(e,"$1 $2").concat(e));t=t.replace(uu,"").trimRight();const r=Object.create(null),i=t.replace(pu,"").replace(uu,"").trimRight();let n;for(;n=pu.exec(t);){const t=n[2].replace(ou,"");"string"==typeof r[n[1]]||Array.isArray(r[n[1]])?r[n[1]]=lu.concat(r[n[1]],t):r[n[1]]=t}return{comments:i,pragmas:r}}function Du(t,e){return lu.concat(e).map((e=>"@".concat(t," ").concat(e).trim()))}var mu={guessEndOfLine:function(t){const e=t.indexOf("\r");return e>=0?"\n"===t.charAt(e+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(t){switch(t){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(t,e){let s;if("\n"===e)s=/\n/g;else if("\r"===e)s=/\r/g;else{if("\r\n"!==e)throw new Error('Unexpected "eol" '.concat(JSON.stringify(e),"."));s=/\r\n/g}const r=t.match(s);return r?r.length:0},normalizeEndOfLine:function(t){return t.replace(/\r\n?/g,"\n")}};const{parseWithComments:fu,strip:yu,extract:Eu,print:Au}=Mo,{getShebang:Cu}=Oo,{normalizeEndOfLine:xu}=mu;function Fu(t){const e=Cu(t);e&&(t=t.slice(e.length+1));const s=Eu(t),{pragmas:r,comments:i}=fu(s);return{shebang:e,text:t,pragmas:r,comments:i}}var gu={hasPragma:function(t){const e=Object.keys(Fu(t).pragmas);return e.includes("prettier")||e.includes("format")},insertPragma:function(t){const{shebang:e,text:s,pragmas:r,comments:i}=Fu(t),n=yu(s),a=Au({pragmas:Object.assign({format:""},r),comments:i.trimStart()});return(e?"".concat(e,"\n"):"")+xu(a)+(n.startsWith("\n")?"\n":"\n\n")+n}};const{isNonEmptyArray:Pu}=Oo;function Tu(t,e){const{ignoreDecorators:s}=e||{};if(!s){const e=t.declaration&&t.declaration.decorators||t.decorators;if(Pu(e))return Tu(e[0])}return t.range?t.range[0]:t.start}function bu(t){return t.range?t.range[1]:t.end}function Su(t,e){return Tu(t)===Tu(e)}var wu={locStart:Tu,locEnd:bu,hasSameLocStart:Su,hasSameLoc:function(t,e){return Su(t,e)&&function(t,e){return bu(t)===bu(e)}(t,e)}};const{hasPragma:Bu}=gu,{locStart:Nu,locEnd:Iu}=wu;var vu=function(t){return t="function"==typeof t?{parse:t}:t,Object.assign({astFormat:"estree",hasPragma:Bu,locStart:Nu,locEnd:Iu},t)};var ku=function(t,e){const s=new SyntaxError(t+" ("+e.start.line+":"+e.start.column+")");return s.loc=e,s};const Lu=ku;var Ou=function(t){const{message:e,loc:s}=t;return Lu(e.replace(/ \(.*\)/,""),{start:{line:s?s.line:0,column:s?s.column+1:0}})},Mu={},Ru={exports:{}};!function(){function t(t){if(null==t)return!1;switch(t.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function e(t){switch(t.type){case"IfStatement":return null!=t.alternate?t.alternate:t.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return t.body}return null}Ru.exports={isExpression:function(t){if(null==t)return!1;switch(t.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(t){if(null==t)return!1;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(t){var s;if("IfStatement"!==t.type)return!1;if(null==t.alternate)return!1;s=t.consequent;do{if("IfStatement"===s.type&&null==s.alternate)return!0;s=e(s)}while(s);return!1},trailingStatement:e}}();var ju={exports:{}};!function(){var t,e,s,r,i,n;function a(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(Math.floor((t-65536)/1024)+55296)+String.fromCharCode((t-65536)%1024+56320)}for(e={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},s=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],r=new Array(128),n=0;n<128;++n)r[n]=n>=97&&n<=122||n>=65&&n<=90||36===n||95===n;for(i=new Array(128),n=0;n<128;++n)i[n]=n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||36===n||95===n;ju.exports={isDecimalDigit:function(t){return 48<=t&&t<=57},isHexDigit:function(t){return 48<=t&&t<=57||97<=t&&t<=102||65<=t&&t<=70},isOctalDigit:function(t){return t>=48&&t<=55},isWhiteSpace:function(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&s.indexOf(t)>=0},isLineTerminator:function(t){return 10===t||13===t||8232===t||8233===t},isIdentifierStartES5:function(t){return t<128?r[t]:e.NonAsciiIdentifierStart.test(a(t))},isIdentifierPartES5:function(t){return t<128?i[t]:e.NonAsciiIdentifierPart.test(a(t))},isIdentifierStartES6:function(e){return e<128?r[e]:t.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(a(e))}}}();var Uu={exports:{}};!function(){var t=ju.exports;function e(t,e){return!(!e&&"yield"===t)&&s(t,e)}function s(t,e){if(e&&function(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(t))return!0;switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}}function r(t,s){return"null"===t||"true"===t||"false"===t||e(t,s)}function i(t,e){return"null"===t||"true"===t||"false"===t||s(t,e)}function n(e){var s,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(s=1,r=e.length;s<r;++s)if(i=e.charCodeAt(s),!t.isIdentifierPartES5(i))return!1;return!0}function a(e){var s,r,i,n,a;if(0===e.length)return!1;for(a=t.isIdentifierStartES6,s=0,r=e.length;s<r;++s){if(55296<=(i=e.charCodeAt(s))&&i<=56319){if(++s>=r)return!1;if(!(56320<=(n=e.charCodeAt(s))&&n<=57343))return!1;i=1024*(i-55296)+(n-56320)+65536}if(!a(i))return!1;a=t.isIdentifierPartES6}return!0}Uu.exports={isKeywordES5:e,isKeywordES6:s,isReservedWordES5:r,isReservedWordES6:i,isRestrictedWord:function(t){return"eval"===t||"arguments"===t},isIdentifierNameES5:n,isIdentifierNameES6:a,isIdentifierES5:function(t,e){return n(t)&&!r(t,e)},isIdentifierES6:function(t,e){return a(t)&&!i(t,e)}}}(),Mu.ast=Ru.exports,Mu.code=ju.exports,Mu.keyword=Uu.exports;const _u=Mu.keyword.isIdentifierNameES5,{getLast:zu,hasNewline:Hu,skipWhitespace:Vu,isNonEmptyArray:qu,isNextLineEmptyAfterIndex:Wu,getStringWidth:Ku}=Oo,{locStart:Gu,locEnd:Xu,hasSameLocStart:Ju}=wu,$u="(?:(?=.)\\s)",Yu=new RegExp("^".concat($u,"*:")),Qu=new RegExp("^".concat($u,"*::"));function Zu(t){return"Block"===t.type||"CommentBlock"===t.type||"MultiLine"===t.type}function th(t){return"Line"===t.type||"CommentLine"===t.type||"SingleLine"===t.type||"HashbangComment"===t.type||"HTMLOpen"===t.type||"HTMLClose"===t.type}const eh=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function sh(t){return t&&eh.has(t.type)}function rh(t){return"NumericLiteral"===t.type||"Literal"===t.type&&"number"==typeof t.value}function ih(t){return"StringLiteral"===t.type||"Literal"===t.type&&"string"==typeof t.value}function nh(t){return"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}function ah(t){return dh(t)&&"Identifier"===t.callee.type&&("async"===t.callee.name||"inject"===t.callee.name||"fakeAsync"===t.callee.name)}function oh(t){return"JSXElement"===t.type||"JSXFragment"===t.type}function uh(t){return"get"===t.kind||"set"===t.kind}function hh(t){return uh(t)||Ju(t,t.value)}const ph=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]);const ch=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);const lh=/^(?:skip|[fx]?(?:it|describe|test))$/;function dh(t){return t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)}function Dh(t){return t&&("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)}function mh(t){return/^(?:\d+|\d+\.\d+)$/.test(t)}function fh(t){return t.quasis.some((t=>t.value.raw.includes("\n")))}function yh(t){return t.extra?t.extra.raw:t.raw}const Eh={"==":!0,"!=":!0,"===":!0,"!==":!0},Ah={"*":!0,"/":!0,"%":!0},Ch={">>":!0,">>>":!0,"<<":!0};const xh={};for(const[t,e]of[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries())for(const s of e)xh[s]=t;function Fh(t){return xh[t]}const gh=new WeakMap;function Ph(t){if(gh.has(t))return gh.get(t);const e=[];return t.this&&e.push(t.this),Array.isArray(t.parameters)?e.push(...t.parameters):Array.isArray(t.params)&&e.push(...t.params),t.rest&&e.push(t.rest),gh.set(t,e),e}const Th=new WeakMap;function bh(t){if(Th.has(t))return Th.get(t);let e=t.arguments;return"ImportExpression"===t.type&&(e=[t.source],t.attributes&&e.push(t.attributes)),Th.set(t,e),e}function Sh(t){return"prettier-ignore"===t.value.trim()&&!t.unignore}function wh(t){return t&&(t.prettierIgnore||Ih(t,Bh.PrettierIgnore))}const Bh={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Nh=(t,e)=>{if("function"==typeof t&&(e=t,t=0),t||e)return(s,r,i)=>!(t&Bh.Leading&&!s.leading||t&Bh.Trailing&&!s.trailing||t&Bh.Dangling&&(s.leading||s.trailing)||t&Bh.Block&&!Zu(s)||t&Bh.Line&&!th(s)||t&Bh.First&&0!==r||t&Bh.Last&&r!==i.length-1||t&Bh.PrettierIgnore&&!Sh(s)||e&&!e(s))};function Ih(t,e,s){if(!t||!qu(t.comments))return!1;const r=Nh(e,s);return!r||t.comments.some(r)}function vh(t,e,s){if(!t||!Array.isArray(t.comments))return[];const r=Nh(e,s);return r?t.comments.filter(r):t.comments}function kh(t){return dh(t)||"NewExpression"===t.type||"ImportExpression"===t.type}var Lh={getFunctionParameters:Ph,iterateFunctionParametersPath:function(t,e){const s=t.getValue();let r=0;const i=t=>e(t,r++);s.this&&t.call(i,"this"),Array.isArray(s.parameters)?t.each(i,"parameters"):Array.isArray(s.params)&&t.each(i,"params"),s.rest&&t.call(i,"rest")},getCallArguments:bh,iterateCallArgumentsPath:function(t,e){const s=t.getValue();"ImportExpression"===s.type?(t.call((t=>e(t,0)),"source"),s.attributes&&t.call((t=>e(t,1)),"attributes")):t.each(e,"arguments")},hasRestParameter:function(t){if(t.rest)return!0;const e=Ph(t);return e.length>0&&"RestElement"===zu(e).type},getLeftSide:function(t){return t.expressions?t.expressions[0]:t.left||t.test||t.callee||t.object||t.tag||t.argument||t.expression},getLeftSidePathName:function(t,e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(t){const e=t.getParentNode();return"declaration"===t.getName()&&sh(e)?e:null},getTypeScriptMappedTypeModifier:function(t,e){return"+"===t?"+"+e:"-"===t?"-"+e:e},hasFlowAnnotationComment:function(t){return qu(t)&&Zu(t[0])&&Qu.test(t[0].value)},hasFlowShorthandAnnotationComment:function(t){return t.extra&&t.extra.parenthesized&&qu(t.trailingComments)&&Zu(t.trailingComments[0])&&Yu.test(t.trailingComments[0].value)},hasLeadingOwnLineComment:function(t,e){return oh(e)?wh(e):Ih(e,Bh.Leading,(e=>Hu(t,Xu(e))))},hasNakedLeftSide:function(t){return"AssignmentExpression"===t.type||"BinaryExpression"===t.type||"LogicalExpression"===t.type||"NGPipeExpression"===t.type||"ConditionalExpression"===t.type||dh(t)||Dh(t)||"SequenceExpression"===t.type||"TaggedTemplateExpression"===t.type||"BindExpression"===t.type||"UpdateExpression"===t.type&&!t.prefix||"TSAsExpression"===t.type||"TSNonNullExpression"===t.type},hasNode:function t(e,s){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some((e=>t(e,s)));const r=s(e);return"boolean"==typeof r?r:Object.values(e).some((e=>t(e,s)))},hasIgnoreComment:function(t){return wh(t.getValue())},hasNodeIgnoreComment:wh,identity:function(t){return t},isBinaryish:function(t){return ph.has(t.type)},isBlockComment:Zu,isCallLikeExpression:kh,isEnabledHackPipeline:function(t){return Boolean(t.__isUsingHackPipeline)},isLineComment:th,isPrettierIgnoreComment:Sh,isCallExpression:dh,isMemberExpression:Dh,isExportDeclaration:sh,isFlowAnnotationComment:function(t,e){const s=Gu(e),r=Vu(t,Xu(e));return!1!==r&&"/*"===t.slice(s,s+2)&&"*/"===t.slice(r,r+2)},isFunctionCompositionArgs:function(t){if(t.length<=1)return!1;let e=0;for(const s of t)if(nh(s)){if(e+=1,e>1)return!0}else if(dh(s))for(const t of s.arguments)if(nh(t))return!0;return!1},isFunctionNotation:hh,isFunctionOrArrowExpression:nh,isGetterOrSetter:uh,isJestEachTemplateLiteral:function(t,e){const s=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===e.type&&e.quasi===t&&"MemberExpression"===e.tag.type&&"Identifier"===e.tag.property.type&&"each"===e.tag.property.name&&("Identifier"===e.tag.object.type&&s.test(e.tag.object.name)||"MemberExpression"===e.tag.object.type&&"Identifier"===e.tag.object.property.type&&("only"===e.tag.object.property.name||"skip"===e.tag.object.property.name)&&"Identifier"===e.tag.object.object.type&&s.test(e.tag.object.object.name))},isJsxNode:oh,isLiteral:function(t){return"BooleanLiteral"===t.type||"DirectiveLiteral"===t.type||"Literal"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"TemplateLiteral"===t.type||"TSTypeLiteral"===t.type||"JSXText"===t.type},isLongCurriedCallExpression:function(t){const e=t.getValue(),s=t.getParentNode();return dh(e)&&dh(s)&&s.callee===e&&e.arguments.length>s.arguments.length&&s.arguments.length>0},isSimpleCallArgument:function t(e,s){if(s>=2)return!1;const r=e=>t(e,s+1),i="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return!(i&&Ku(i)>5)&&("Literal"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"BooleanLiteral"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"Identifier"===e.type||"ThisExpression"===e.type||"Super"===e.type||"PrivateName"===e.type||"PrivateIdentifier"===e.type||"ArgumentPlaceholder"===e.type||"Import"===e.type||("TemplateLiteral"===e.type?e.quasis.every((t=>!t.value.raw.includes("\n")))&&e.expressions.every(r):"ObjectExpression"===e.type?e.properties.every((t=>!t.computed&&(t.shorthand||t.value&&r(t.value)))):"ArrayExpression"===e.type?e.elements.every((t=>null===t||r(t))):kh(e)?("ImportExpression"===e.type||t(e.callee,s))&&bh(e).every(r):Dh(e)?t(e.object,s)&&t(e.property,s):"UnaryExpression"!==e.type||"!"!==e.operator&&"-"!==e.operator?"TSNonNullExpression"===e.type&&t(e.expression,s):t(e.argument,s)))},isMemberish:function(t){return Dh(t)||"BindExpression"===t.type&&Boolean(t.object)},isNumericLiteral:rh,isSignedNumericLiteral:function(t){return"UnaryExpression"===t.type&&("+"===t.operator||"-"===t.operator)&&rh(t.argument)},isObjectProperty:function(t){return t&&("ObjectProperty"===t.type||"Property"===t.type&&!t.method&&"init"===t.kind)},isObjectType:function(t){return"ObjectTypeAnnotation"===t.type||"TSTypeLiteral"===t.type||"TSMappedType"===t.type},isObjectTypePropertyAFunction:function(t){return!("ObjectTypeProperty"!==t.type&&"ObjectTypeInternalSlot"!==t.type||"FunctionTypeAnnotation"!==t.value.type||t.static||hh(t))},isSimpleType:function(t){return!!t&&(!("GenericTypeAnnotation"!==t.type&&"TSTypeReference"!==t.type||t.typeParameters)||!!ch.has(t.type))},isSimpleNumber:mh,isSimpleTemplateLiteral:function(t){let e="expressions";"TSTemplateLiteralType"===t.type&&(e="types");const s=t[e];return 0!==s.length&&s.every((t=>{if(Ih(t))return!1;if("Identifier"===t.type||"ThisExpression"===t.type)return!0;if(Dh(t)){let e=t;for(;Dh(e);){if("Identifier"!==e.property.type&&"Literal"!==e.property.type&&"StringLiteral"!==e.property.type&&"NumericLiteral"!==e.property.type)return!1;if(e=e.object,Ih(e))return!1}return"Identifier"===e.type||"ThisExpression"===e.type}return!1}))},isStringLiteral:ih,isStringPropSafeToUnquote:function(t,e){return"json"!==e.parser&&ih(t.key)&&yh(t.key).slice(1,-1)===t.key.value&&(_u(t.key.value)&&!("babel-ts"===e.parser&&"ClassProperty"===t.type||"typescript"===e.parser&&"PropertyDefinition"===t.type)||mh(t.key.value)&&String(Number(t.key.value))===t.key.value&&("babel"===e.parser||"espree"===e.parser||"meriyah"===e.parser||"__babel_estree"===e.parser))},isTemplateOnItsOwnLine:function(t,e){return("TemplateLiteral"===t.type&&fh(t)||"TaggedTemplateExpression"===t.type&&fh(t.quasi))&&!Hu(e,Gu(t),{backwards:!0})},isTestCall:function t(e,s){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(ah(e)&&s&&t(s))return nh(e.arguments[0]);if(function(t){return"Identifier"===t.callee.type&&/^(?:before|after)(?:Each|All)$/.test(t.callee.name)&&1===t.arguments.length}(e))return ah(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("Identifier"===e.callee.type&&lh.test(e.callee.name)||function(t){return Dh(t.callee)&&"Identifier"===t.callee.object.type&&"Identifier"===t.callee.property.type&&lh.test(t.callee.object.name)&&("only"===t.callee.property.name||"skip"===t.callee.property.name)}(e))&&(function(t){return"TemplateLiteral"===t.type}(e.arguments[0])||ih(e.arguments[0])))return!(e.arguments[2]&&!rh(e.arguments[2]))&&((2===e.arguments.length?nh(e.arguments[1]):function(t){return"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type}(e.arguments[1])&&Ph(e.arguments[1]).length<=1)||ah(e.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(t,e){if("markdown"!==t.parentParser&&"mdx"!==t.parentParser)return!1;const s=e.getNode();if(!s.expression||!oh(s.expression))return!1;const r=e.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(t){return t.filepath&&/\.tsx$/i.test(t.filepath)},isTypeAnnotationAFunction:function(t){return!("TypeAnnotation"!==t.type&&"TSTypeAnnotation"!==t.type||"FunctionTypeAnnotation"!==t.typeAnnotation.type||t.static||Ju(t,t.typeAnnotation))},isNextLineEmpty:(t,e)=>{let{originalText:s}=e;return Wu(s,Xu(t))},needsHardlineAfterDanglingComment:function(t){if(!Ih(t))return!1;const e=zu(vh(t,Bh.Dangling));return e&&!Zu(e)},rawText:yh,shouldPrintComma:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===t.trailingComma&&"es5"===e||"all"===t.trailingComma&&("all"===e||"es5"===e)},isBitwiseOperator:function(t){return Boolean(Ch[t])||"|"===t||"^"===t||"&"===t},shouldFlatten:function(t,e){return Fh(e)===Fh(t)&&("**"!==t&&((!Eh[t]||!Eh[e])&&(!("%"===e&&Ah[t]||"%"===t&&Ah[e])&&((e===t||!Ah[e]||!Ah[t])&&(!Ch[t]||!Ch[e])))))},startsWithNoLookaheadToken:function t(e,s){switch((e=function(t){for(;t.left;)t=t.left;return t}(e)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return s;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return t(e.object,s);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&t(e.tag,s);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&t(e.callee,s);case"ConditionalExpression":return t(e.test,s);case"UpdateExpression":return!e.prefix&&t(e.argument,s);case"BindExpression":return e.object&&t(e.object,s);case"SequenceExpression":return t(e.expressions[0],s);case"TSAsExpression":case"TSNonNullExpression":return t(e.expression,s);default:return!1}},getPrecedence:Fh,hasComment:Ih,getComments:vh,CommentCheckFlags:Bh};const{getLast:Oh,hasNewline:Mh,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Rh,getNextNonSpaceNonCommentCharacter:jh,hasNewlineInRange:Uh,addLeadingComment:_h,addTrailingComment:zh,addDanglingComment:Hh,getNextNonSpaceNonCommentCharacterIndex:Vh,isNonEmptyArray:qh}=Oo,{isBlockComment:Wh,getFunctionParameters:Kh,isPrettierIgnoreComment:Gh,isJsxNode:Xh,hasFlowShorthandAnnotationComment:Jh,hasFlowAnnotationComment:$h,hasIgnoreComment:Yh,isCallLikeExpression:Qh,getCallArguments:Zh,isCallExpression:tp,isMemberExpression:ep,isObjectProperty:sp,getComments:rp,CommentCheckFlags:ip}=Lh,{locStart:np,locEnd:ap}=wu;function op(t,e){const s=(t.body||t.properties).find((t=>{let{type:e}=t;return"EmptyStatement"!==e}));s?_h(s,e):Hh(t,e)}function up(t,e){"BlockStatement"===t.type?op(t,e):_h(t,e)}function hp(t){let{comment:e,followingNode:s}=t;return!(!s||!jp(e))&&(_h(s,e),!0)}function pp(t){let{comment:e,precedingNode:s,enclosingNode:r,followingNode:i,text:n}=t;if(!r||"IfStatement"!==r.type||!i)return!1;return")"===jh(n,e,ap)?(zh(s,e),!0):s===r.consequent&&i===r.alternate?("BlockStatement"===s.type?zh(s,e):Hh(r,e),!0):"BlockStatement"===i.type?(op(i,e),!0):"IfStatement"===i.type?(up(i.consequent,e),!0):r.consequent===i&&(_h(i,e),!0)}function cp(t){let{comment:e,precedingNode:s,enclosingNode:r,followingNode:i,text:n}=t;if(!r||"WhileStatement"!==r.type||!i)return!1;return")"===jh(n,e,ap)?(zh(s,e),!0):"BlockStatement"===i.type?(op(i,e),!0):r.body===i&&(_h(i,e),!0)}function lp(t){let{comment:e,precedingNode:s,enclosingNode:r,followingNode:i}=t;return!(!r||"TryStatement"!==r.type&&"CatchClause"!==r.type||!i)&&("CatchClause"===r.type&&s?(zh(s,e),!0):"BlockStatement"===i.type?(op(i,e),!0):"TryStatement"===i.type?(up(i.finalizer,e),!0):"CatchClause"===i.type&&(up(i.body,e),!0))}function dp(t){let{comment:e,enclosingNode:s,followingNode:r}=t;return!(!ep(s)||!r||"Identifier"!==r.type)&&(_h(s,e),!0)}function Dp(t){let{comment:e,precedingNode:s,enclosingNode:r,followingNode:i,text:n}=t;const a=s&&!Uh(n,ap(s),np(e));return!(s&&a||!r||"ConditionalExpression"!==r.type&&"TSConditionalType"!==r.type||!i)&&(_h(i,e),!0)}function mp(t){let{comment:e,precedingNode:s,enclosingNode:r}=t;return!(!sp(r)||!r.shorthand||r.key!==s||"AssignmentPattern"!==r.value.type)&&(zh(r.value.left,e),!0)}function fp(t){let{comment:e,precedingNode:s,enclosingNode:r,followingNode:i}=t;if(r&&("ClassDeclaration"===r.type||"ClassExpression"===r.type||"DeclareClass"===r.type||"DeclareInterface"===r.type||"InterfaceDeclaration"===r.type||"TSInterfaceDeclaration"===r.type)){if(qh(r.decorators)&&(!i||"Decorator"!==i.type))return zh(Oh(r.decorators),e),!0;if(r.body&&i===r.body)return op(r.body,e),!0;if(i)for(const t of["implements","extends","mixins"])if(r[t]&&i===r[t][0])return!s||s!==r.id&&s!==r.typeParameters&&s!==r.superClass?Hh(r,e,t):zh(s,e),!0}return!1}function yp(t){let{comment:e,precedingNode:s,enclosingNode:r,text:i}=t;return(r&&s&&("Property"===r.type||"TSDeclareMethod"===r.type||"TSAbstractMethodDefinition"===r.type)&&"Identifier"===s.type&&r.key===s&&":"!==jh(i,s,ap)||!(!s||!r||"Decorator"!==s.type||"ClassMethod"!==r.type&&"ClassProperty"!==r.type&&"PropertyDefinition"!==r.type&&"TSAbstractPropertyDefinition"!==r.type&&"TSAbstractMethodDefinition"!==r.type&&"TSDeclareMethod"!==r.type&&"MethodDefinition"!==r.type))&&(zh(s,e),!0)}function Ep(t){let{comment:e,precedingNode:s,enclosingNode:r,text:i}=t;return"("===jh(i,e,ap)&&(!(!s||!r||"FunctionDeclaration"!==r.type&&"FunctionExpression"!==r.type&&"ClassMethod"!==r.type&&"MethodDefinition"!==r.type&&"ObjectMethod"!==r.type)&&(zh(s,e),!0))}function Ap(t){let{comment:e,enclosingNode:s,text:r}=t;if(!s||"ArrowFunctionExpression"!==s.type)return!1;const i=Vh(r,e,ap);return!1!==i&&"=>"===r.slice(i,i+2)&&(Hh(s,e),!0)}function Cp(t){let{comment:e,enclosingNode:s,text:r}=t;return")"===jh(r,e,ap)&&(s&&(Rp(s)&&0===Kh(s).length||Qh(s)&&0===Zh(s).length)?(Hh(s,e),!0):!(!s||"MethodDefinition"!==s.type&&"TSAbstractMethodDefinition"!==s.type||0!==Kh(s.value).length)&&(Hh(s.value,e),!0))}function xp(t){let{comment:e,precedingNode:s,enclosingNode:r,followingNode:i,text:n}=t;if(s&&"FunctionTypeParam"===s.type&&r&&"FunctionTypeAnnotation"===r.type&&i&&"FunctionTypeParam"!==i.type)return zh(s,e),!0;if(s&&("Identifier"===s.type||"AssignmentPattern"===s.type)&&r&&Rp(r)&&")"===jh(n,e,ap))return zh(s,e),!0;if(r&&"FunctionDeclaration"===r.type&&i&&"BlockStatement"===i.type){const t=(()=>{const t=Kh(r);if(t.length>0)return Rh(n,ap(Oh(t)));const e=Rh(n,ap(r.id));return!1!==e&&Rh(n,e+1)})();if(np(e)>t)return op(i,e),!0}return!1}function Fp(t){let{comment:e,enclosingNode:s}=t;return!(!s||"ImportSpecifier"!==s.type)&&(_h(s,e),!0)}function gp(t){let{comment:e,enclosingNode:s}=t;return!(!s||"LabeledStatement"!==s.type)&&(_h(s,e),!0)}function Pp(t){let{comment:e,enclosingNode:s}=t;return!(!s||"ContinueStatement"!==s.type&&"BreakStatement"!==s.type||s.label)&&(zh(s,e),!0)}function Tp(t){let{comment:e,precedingNode:s,enclosingNode:r}=t;return!!(tp(r)&&s&&r.callee===s&&r.arguments.length>0)&&(_h(r.arguments[0],e),!0)}function bp(t){let{comment:e,precedingNode:s,enclosingNode:r,followingNode:i}=t;return!r||"UnionTypeAnnotation"!==r.type&&"TSUnionType"!==r.type?(i&&("UnionTypeAnnotation"===i.type||"TSUnionType"===i.type)&&Gh(e)&&(i.types[0].prettierIgnore=!0,e.unignore=!0),!1):(Gh(e)&&(i.prettierIgnore=!0,e.unignore=!0),!!s&&(zh(s,e),!0))}function Sp(t){let{comment:e,enclosingNode:s}=t;return!!sp(s)&&(_h(s,e),!0)}function wp(t){let{comment:e,enclosingNode:s,followingNode:r,ast:i,isLastComment:n}=t;return i&&i.body&&0===i.body.length?(n?Hh(i,e):_h(i,e),!0):s&&"Program"===s.type&&0===s.body.length&&!qh(s.directives)?(n?Hh(s,e):_h(s,e),!0):!(!r||"Program"!==r.type||0!==r.body.length||!s||"ModuleExpression"!==s.type)&&(Hh(r,e),!0)}function Bp(t){let{comment:e,enclosingNode:s}=t;return!(!s||"ForInStatement"!==s.type&&"ForOfStatement"!==s.type)&&(_h(s,e),!0)}function Np(t){let{comment:e,precedingNode:s,enclosingNode:r,text:i}=t;return!!(s&&"ImportSpecifier"===s.type&&r&&"ImportDeclaration"===r.type&&Mh(i,ap(e)))&&(zh(s,e),!0)}function Ip(t){let{comment:e,enclosingNode:s}=t;return!(!s||"AssignmentPattern"!==s.type)&&(_h(s,e),!0)}function vp(t){let{comment:e,enclosingNode:s}=t;return!(!s||"TypeAlias"!==s.type)&&(_h(s,e),!0)}function kp(t){let{comment:e,enclosingNode:s,followingNode:r}=t;return!(!s||"VariableDeclarator"!==s.type&&"AssignmentExpression"!==s.type||!r||"ObjectExpression"!==r.type&&"ArrayExpression"!==r.type&&"TemplateLiteral"!==r.type&&"TaggedTemplateExpression"!==r.type&&!Wh(e))&&(_h(r,e),!0)}function Lp(t){let{comment:e,enclosingNode:s,followingNode:r,text:i}=t;return!(r||!s||"TSMethodSignature"!==s.type&&"TSDeclareFunction"!==s.type&&"TSAbstractMethodDefinition"!==s.type||";"!==jh(i,e,ap))&&(zh(s,e),!0)}function Op(t){let{comment:e,enclosingNode:s,followingNode:r}=t;if(Gh(e)&&s&&"TSMappedType"===s.type&&r&&"TSTypeParameter"===r.type&&r.constraint)return s.prettierIgnore=!0,e.unignore=!0,!0}function Mp(t){let{comment:e,precedingNode:s,enclosingNode:r,followingNode:i}=t;return!(!r||"TSMappedType"!==r.type)&&(i&&"TSTypeParameter"===i.type&&i.name?(_h(i.name,e),!0):!(!s||"TSTypeParameter"!==s.type||!s.constraint)&&(zh(s.constraint,e),!0))}function Rp(t){return"ArrowFunctionExpression"===t.type||"FunctionExpression"===t.type||"FunctionDeclaration"===t.type||"ObjectMethod"===t.type||"ClassMethod"===t.type||"TSDeclareFunction"===t.type||"TSCallSignatureDeclaration"===t.type||"TSConstructSignatureDeclaration"===t.type||"TSMethodSignature"===t.type||"TSConstructorType"===t.type||"TSFunctionType"===t.type||"TSDeclareMethod"===t.type}function jp(t){return Wh(t)&&"*"===t.value[0]&&/@type\b/.test(t.value)}var Up={handleOwnLineComment:function(t){return[Op,xp,dp,pp,cp,lp,fp,Fp,Bp,bp,wp,Np,Ip,yp,gp].some((e=>e(t)))},handleEndOfLineComment:function(t){return[hp,xp,Dp,Fp,pp,cp,lp,fp,gp,Tp,Sp,wp,vp,kp].some((e=>e(t)))},handleRemainingComment:function(t){return[Op,pp,cp,mp,Cp,yp,wp,Ap,Ep,Mp,Pp,Lp].some((e=>e(t)))},isTypeCastComment:jp,getCommentChildNodes:function(t,e){if(("typescript"===e.parser||"flow"===e.parser||"espree"===e.parser||"meriyah"===e.parser||"__babel_estree"===e.parser)&&"MethodDefinition"===t.type&&t.value&&"FunctionExpression"===t.value.type&&0===Kh(t.value).length&&!t.value.returnType&&!qh(t.value.typeParameters)&&t.value.body)return[...t.decorators||[],t.key,t.value.body]},willPrintOwnComments:function(t){const e=t.getValue(),s=t.getParentNode();return(e&&(Xh(e)||Jh(e)||tp(s)&&(t=>$h(rp(t,ip.Leading))||$h(rp(t,ip.Trailing)))(e))||s&&("JSXSpreadAttribute"===s.type||"JSXSpreadChild"===s.type||"UnionTypeAnnotation"===s.type||"TSUnionType"===s.type||("ClassDeclaration"===s.type||"ClassExpression"===s.type)&&s.superClass===e))&&(!Yh(t)||"UnionTypeAnnotation"===s.type||"TSUnionType"===s.type)}};var _p=function t(e,s){let r;if(Array.isArray(e))r=e.entries();else{if(!e||"object"!=typeof e||"string"!=typeof e.type)return e;r=Object.entries(e)}for(const[i,n]of r)e[i]=t(n,s);return Array.isArray(e)?e:s(e)||e};const zp=ku,Hp=_p;function Vp(t,e){const{start:s,end:r}=t.loc;throw zp(e,{start:{line:s.line,column:s.column+1},end:{line:r.line,column:r.column+1}})}var qp={throwErrorForInvalidNodes:function(t,e){const{esTreeNodeToTSNodeMap:s,tsNodeToESTreeNodeMap:r}=e.tsParseResult;t=Hp(t,(t=>{const e=s.get(t);if(!e)return;const i=r.get(e);i===t&&(function(t,e,s){const r=t.decorators;if(!Array.isArray(r))return;const i=e.decorators;Array.isArray(i)&&i.length===r.length&&!r.some((t=>{const e=s.get(t);return!e||!i.includes(e)}))||Vp(e,"Leading decorators must be attached to a class declaration")}(e,i,r),function(t,e){166!==t.kind||t.modifiers&&!t.modifiers.some((t=>126===t.kind))||t.initializer&&null===e.value&&Vp(e,"Abstract property cannot have an initializer")}(e,i))}))}};const{getLast:Wp}=Oo,{locStart:Kp,locEnd:Gp}=wu,{isTypeCastComment:Xp}=Up,Jp=_p,{throwErrorForInvalidNodes:$p}=qp;function Yp(t){return"CallExpression"===t.type?(t.type="OptionalCallExpression",t.callee=Yp(t.callee)):"MemberExpression"===t.type?(t.type="OptionalMemberExpression",t.object=Yp(t.object)):"TSNonNullExpression"===t.type&&(t.expression=Yp(t.expression)),t}function Qp(t){return"LogicalExpression"===t.type&&"LogicalExpression"===t.right.type&&t.operator===t.right.operator}function Zp(t){return Qp(t)?Zp({type:"LogicalExpression",operator:t.operator,left:Zp({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:[Kp(t.left),Gp(t.right.left)]}),right:t.right.right,range:[Kp(t),Gp(t)]}):t}var tc=function(t,e){if("typescript"===e.parser&&/@|abstract/.test(e.originalText)&&$p(t,e),"typescript"!==e.parser&&"flow"!==e.parser&&"espree"!==e.parser&&"meriyah"!==e.parser){const e=new Set;t=Jp(t,(t=>{t.leadingComments&&t.leadingComments.some(Xp)&&e.add(Kp(t))})),t=Jp(t,(t=>{if("ParenthesizedExpression"===t.type){const{expression:s}=t;if("TypeCastExpression"===s.type)return s.range=t.range,s;const r=Kp(t);if(!e.has(r))return s.extra=Object.assign(Object.assign({},s.extra),{},{parenthesized:!0}),s}}))}return t=Jp(t,(t=>{switch(t.type){case"ChainExpression":return Yp(t.expression);case"LogicalExpression":if(Qp(t))return Zp(t);break;case"VariableDeclaration":{const s=Wp(t.declarations);s&&s.init&&function(t,s){if(";"===e.originalText[Gp(s)])return;t.range=[Kp(t),Gp(s)]}(t,s);break}case"TSParenthesizedType":return t.typeAnnotation.range=[Kp(t),Gp(t)],t.typeAnnotation;case"TSTypeParameter":if("string"==typeof t.name){const e=Kp(t);t.name={type:"Identifier",name:t.name,range:[e,e+t.name.length]}}break;case"SequenceExpression":{const e=Wp(t.expressions);t.range=[Kp(t),Math.min(Gp(e),Gp(t))];break}case"TopicReference":e.__isUsingHackPipeline=!0}}))},ec={};Object.defineProperty(ec,"__esModule",{value:!0});const sc=/\r\n?|[\n\u2028\u2029]/,rc=new RegExp(sc.source,"g");function ic(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const nc=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ac=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function oc(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}}class uc{constructor(t,e){this.line=void 0,this.column=void 0,this.line=t,this.column=e}}class hc{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}}function pc(t,e){void 0===t.trailingComments?t.trailingComments=e:t.trailingComments.unshift(...e)}function cc(t,e){void 0===t.innerComments?t.innerComments=e:t.innerComments.unshift(...e)}function lc(t,e,s){let r=null,i=e.length;for(;null===r&&i>0;)r=e[--i];null===r||r.start>s.start?cc(t,s.comments):pc(r,s.comments)}const dc=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),Dc=yc({AccessorIsGenerator:"A %0ter 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.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accesor must not have any formal parameters.",BadSetterArity:"A 'set' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accesor 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:"'%0' require an initialization value.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",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:"`%0` 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:"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '%0' as '%1' } from 'some-module'`?",ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:"'%0' loop variable declaration may not have an initializer.",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:"Unsyntactic %0.",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:'A string literal cannot be used as an imported binding.\n- Did you mean `import { "%0" as foo }`?',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:"`import()` requires exactly %0.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidDecimal:"Invalid decimal.",InvalidDigit:"Expected number in radix %0.",InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:"Escape sequence in keyword %0.",InvalidIdentifier:"Invalid identifier %0.",InvalidLhs:"Invalid left-hand side in %0.",InvalidLhsBinding:"Binding invalid left-hand side in %0.",InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:"Unexpected character '%0'.",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:"Private name #%0 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:"Label '%0' is already declared.",LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",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.",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:'Duplicate key "%0" is not allowed in module attributes.',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found '\\u%0'.",ModuleExportUndefined:"Export '%0' 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.",PipeBodyIsTighter:"Unexpected %0 after pipeline body; any %0 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:'Invalid topic token %0. In order to use %0 as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "%0" }.',PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:"Hack-style pipe body cannot be an unparenthesized %0 expression; 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.',PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`).",PrivateNameRedeclaration:"Duplicate private name #%0.",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, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:"Assigning to '%0' in strict mode.",StrictEvalArgumentsBinding:"Binding '%0' 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.",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:"Unexpected keyword '%0'.",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:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word '%0'.",UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:"Unexpected token '%0'.",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",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:"The only valid meta property for %0 is %0.%1.",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.",VarRedeclaration:"Identifier '%0' has already been declared.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},dc.SyntaxError),mc=yc({ImportMetaOutsideModule:"import.meta may appear only with 'sourceType: \"module\"'",ImportOutsideModule:"'import' and 'export' may appear only with 'sourceType: \"module\"'"},dc.SourceTypeModuleError);function fc(t,e){return"flow"===e&&"PatternIsOptional"===t?"OptionalBindingPattern":t}function yc(t,e,s){const r={};return Object.keys(t).forEach((i=>{r[i]=Object.freeze({code:e,reasonCode:fc(i,s),template:t[i]})})),Object.freeze(r)}class Ec{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}}const Ac={brace:new Ec("{"),template:new Ec("`",!0)},Cc=!0,xc=!0,Fc=!0,gc=!0,Pc=!0;class Tc{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=null!=e.binop?e.binop:null,this.updateContext=null}}const bc=new Map;function Sc(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.keyword=t;const s=Mc(t,e);return bc.set(t,s),s}function wc(t,e){return Mc(t,{beforeExpr:Cc,binop:e})}let Bc=-1;const Nc=[],Ic=[],vc=[],kc=[],Lc=[],Oc=[];function Mc(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var s,r,i,n;return++Bc,Ic.push(t),vc.push(null!=(s=e.binop)?s:-1),kc.push(null!=(r=e.beforeExpr)&&r),Lc.push(null!=(i=e.startsExpr)&&i),Oc.push(null!=(n=e.prefix)&&n),Nc.push(new Tc(t,e)),Bc}function Rc(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var s,r,i,n;return++Bc,bc.set(t,Bc),Ic.push(t),vc.push(null!=(s=e.binop)?s:-1),kc.push(null!=(r=e.beforeExpr)&&r),Lc.push(null!=(i=e.startsExpr)&&i),Oc.push(null!=(n=e.prefix)&&n),Nc.push(new Tc("name",e)),Bc}const jc={bracketL:Mc("[",{beforeExpr:Cc,startsExpr:xc}),bracketHashL:Mc("#[",{beforeExpr:Cc,startsExpr:xc}),bracketBarL:Mc("[|",{beforeExpr:Cc,startsExpr:xc}),bracketR:Mc("]"),bracketBarR:Mc("|]"),braceL:Mc("{",{beforeExpr:Cc,startsExpr:xc}),braceBarL:Mc("{|",{beforeExpr:Cc,startsExpr:xc}),braceHashL:Mc("#{",{beforeExpr:Cc,startsExpr:xc}),braceR:Mc("}",{beforeExpr:Cc}),braceBarR:Mc("|}"),parenL:Mc("(",{beforeExpr:Cc,startsExpr:xc}),parenR:Mc(")"),comma:Mc(",",{beforeExpr:Cc}),semi:Mc(";",{beforeExpr:Cc}),colon:Mc(":",{beforeExpr:Cc}),doubleColon:Mc("::",{beforeExpr:Cc}),dot:Mc("."),question:Mc("?",{beforeExpr:Cc}),questionDot:Mc("?."),arrow:Mc("=>",{beforeExpr:Cc}),template:Mc("template"),ellipsis:Mc("...",{beforeExpr:Cc}),backQuote:Mc("`",{startsExpr:xc}),dollarBraceL:Mc("${",{beforeExpr:Cc,startsExpr:xc}),at:Mc("@"),hash:Mc("#",{startsExpr:xc}),interpreterDirective:Mc("#!..."),eq:Mc("=",{beforeExpr:Cc,isAssign:gc}),assign:Mc("_=",{beforeExpr:Cc,isAssign:gc}),slashAssign:Mc("_=",{beforeExpr:Cc,isAssign:gc}),xorAssign:Mc("_=",{beforeExpr:Cc,isAssign:gc}),moduloAssign:Mc("_=",{beforeExpr:Cc,isAssign:gc}),incDec:Mc("++/--",{prefix:Pc,postfix:!0,startsExpr:xc}),bang:Mc("!",{beforeExpr:Cc,prefix:Pc,startsExpr:xc}),tilde:Mc("~",{beforeExpr:Cc,prefix:Pc,startsExpr:xc}),pipeline:wc("|>",0),nullishCoalescing:wc("??",1),logicalOR:wc("||",1),logicalAND:wc("&&",2),bitwiseOR:wc("|",3),bitwiseXOR:wc("^",4),bitwiseAND:wc("&",5),equality:wc("==/!=/===/!==",6),lt:wc("</>/<=/>=",7),gt:wc("</>/<=/>=",7),relational:wc("</>/<=/>=",7),bitShift:wc("<</>>/>>>",8),plusMin:Mc("+/-",{beforeExpr:Cc,binop:9,prefix:Pc,startsExpr:xc}),modulo:Mc("%",{binop:10,startsExpr:xc}),star:Mc("*",{binop:10}),slash:wc("/",10),exponent:Mc("**",{beforeExpr:Cc,binop:11,rightAssociative:!0}),_in:Sc("in",{beforeExpr:Cc,binop:7}),_instanceof:Sc("instanceof",{beforeExpr:Cc,binop:7}),_break:Sc("break"),_case:Sc("case",{beforeExpr:Cc}),_catch:Sc("catch"),_continue:Sc("continue"),_debugger:Sc("debugger"),_default:Sc("default",{beforeExpr:Cc}),_else:Sc("else",{beforeExpr:Cc}),_finally:Sc("finally"),_function:Sc("function",{startsExpr:xc}),_if:Sc("if"),_return:Sc("return",{beforeExpr:Cc}),_switch:Sc("switch"),_throw:Sc("throw",{beforeExpr:Cc,prefix:Pc,startsExpr:xc}),_try:Sc("try"),_var:Sc("var"),_const:Sc("const"),_with:Sc("with"),_new:Sc("new",{beforeExpr:Cc,startsExpr:xc}),_this:Sc("this",{startsExpr:xc}),_super:Sc("super",{startsExpr:xc}),_class:Sc("class",{startsExpr:xc}),_extends:Sc("extends",{beforeExpr:Cc}),_export:Sc("export"),_import:Sc("import",{startsExpr:xc}),_null:Sc("null",{startsExpr:xc}),_true:Sc("true",{startsExpr:xc}),_false:Sc("false",{startsExpr:xc}),_typeof:Sc("typeof",{beforeExpr:Cc,prefix:Pc,startsExpr:xc}),_void:Sc("void",{beforeExpr:Cc,prefix:Pc,startsExpr:xc}),_delete:Sc("delete",{beforeExpr:Cc,prefix:Pc,startsExpr:xc}),_do:Sc("do",{isLoop:Fc,beforeExpr:Cc}),_for:Sc("for",{isLoop:Fc}),_while:Sc("while",{isLoop:Fc}),_as:Rc("as",{startsExpr:xc}),_assert:Rc("assert",{startsExpr:xc}),_async:Rc("async",{startsExpr:xc}),_await:Rc("await",{startsExpr:xc}),_from:Rc("from",{startsExpr:xc}),_get:Rc("get",{startsExpr:xc}),_let:Rc("let",{startsExpr:xc}),_meta:Rc("meta",{startsExpr:xc}),_of:Rc("of",{startsExpr:xc}),_sent:Rc("sent",{startsExpr:xc}),_set:Rc("set",{startsExpr:xc}),_static:Rc("static",{startsExpr:xc}),_yield:Rc("yield",{startsExpr:xc}),_asserts:Rc("asserts",{startsExpr:xc}),_checks:Rc("checks",{startsExpr:xc}),_exports:Rc("exports",{startsExpr:xc}),_global:Rc("global",{startsExpr:xc}),_implements:Rc("implements",{startsExpr:xc}),_intrinsic:Rc("intrinsic",{startsExpr:xc}),_infer:Rc("infer",{startsExpr:xc}),_is:Rc("is",{startsExpr:xc}),_mixins:Rc("mixins",{startsExpr:xc}),_proto:Rc("proto",{startsExpr:xc}),_require:Rc("require",{startsExpr:xc}),_keyof:Rc("keyof",{startsExpr:xc}),_readonly:Rc("readonly",{startsExpr:xc}),_unique:Rc("unique",{startsExpr:xc}),_abstract:Rc("abstract",{startsExpr:xc}),_declare:Rc("declare",{startsExpr:xc}),_enum:Rc("enum",{startsExpr:xc}),_module:Rc("module",{startsExpr:xc}),_namespace:Rc("namespace",{startsExpr:xc}),_interface:Rc("interface",{startsExpr:xc}),_type:Rc("type",{startsExpr:xc}),_opaque:Rc("opaque",{startsExpr:xc}),name:Mc("name",{startsExpr:xc}),string:Mc("string",{startsExpr:xc}),num:Mc("num",{startsExpr:xc}),bigint:Mc("bigint",{startsExpr:xc}),decimal:Mc("decimal",{startsExpr:xc}),regexp:Mc("regexp",{startsExpr:xc}),privateName:Mc("#name",{startsExpr:xc}),eof:Mc("eof"),jsxName:Mc("jsxName"),jsxText:Mc("jsxText",{beforeExpr:!0}),jsxTagStart:Mc("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Mc("jsxTagEnd"),placeholder:Mc("%%",{startsExpr:!0})};function Uc(t){return t>=87&&t<=122}function _c(t){return t>=52&&t<=122}function zc(t){return t>=52&&t<=126}function Hc(t){return Lc[t]}function Vc(t){return t>=119&&t<=121}function qc(t){return t>=52&&t<=86}function Wc(t){return Ic[t]}function Kc(t){return vc[t]}function Gc(t){return Nc[t]}Nc[8].updateContext=t=>{t.pop()},Nc[5].updateContext=Nc[7].updateContext=Nc[23].updateContext=t=>{t.push(Ac.brace)},Nc[22].updateContext=t=>{t[t.length-1]===Ac.template?t.pop():t.push(Ac.template)},Nc[132].updateContext=t=>{t.push(Ac.j_expr,Ac.j_oTag)};let Xc="\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-\u1c88\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-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\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",Jc="\u200c\u200d\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\u0898-\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\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-\u0ecd\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\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\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";const $c=new RegExp("["+Xc+"]"),Yc=new RegExp("["+Xc+Jc+"]");Xc=Jc=null;const Qc=[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,68,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,349,41,7,1,79,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,85,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,159,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,264,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,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,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938],Zc=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,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,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function tl(t,e){let s=65536;for(let r=0,i=e.length;r<i;r+=2){if(s+=e[r],s>t)return!1;if(s+=e[r+1],s>=t)return!0}return!1}function el(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&$c.test(String.fromCharCode(t)):tl(t,Qc)))}function sl(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&Yc.test(String.fromCharCode(t)):tl(t,Qc)||tl(t,Zc))))}const rl=["implements","interface","let","package","private","protected","public","static","yield"],il=["eval","arguments"],nl=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"]),al=new Set(rl),ol=new Set(il);function ul(t,e){return e&&"await"===t||"enum"===t}function hl(t,e){return ul(t,e)||al.has(t)}function pl(t){return ol.has(t)}function cl(t,e){return hl(t,e)||pl(t)}const ll=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"]);const dl=64,Dl=256,ml=259,fl=128,yl=1024,El=2048;class Al{constructor(t){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t}}class Cl{constructor(t,e){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=t,this.inModule=e}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(this.currentThisScopeFlags()&dl)>0}get inClassAndNotInNonArrowFunction(){const t=this.currentThisScopeFlags();return(t&dl)>0&&0==(2&t)}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(128&e)return!0;if(323&e)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Al(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(t){return!!(2&t.flags||!this.inModule&&1&t.flags)}declareName(t,e,s){let r=this.currentScope();if(8&e||16&e)this.checkRedeclarationInScope(r,t,e,s),16&e?r.functions.add(t):r.lexical.add(t),8&e&&this.maybeExportDefined(r,t);else if(4&e)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,t,e,s),r.var.add(t),this.maybeExportDefined(r,t),!(r.flags&ml));--i);this.inModule&&1&r.flags&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.inModule&&1&t.flags&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,r){this.isRedeclaredInScope(t,e,s)&&this.raise(r,Dc.VarRedeclaration,e)}isRedeclaredInScope(t,e,s){return!!(1&s)&&(8&s?t.lexical.has(e)||t.functions.has(e)||t.var.has(e):16&s?t.lexical.has(e)||!this.treatFunctionsAsVarInScope(t)&&t.var.has(e):t.lexical.has(e)&&!(8&t.flags&&t.lexical.values().next().value===e)||!this.treatFunctionsAsVarInScope(t)&&t.functions.has(e))}checkLocalExport(t){const{name:e}=t,s=this.scopeStack[0];s.lexical.has(e)||s.var.has(e)||s.functions.has(e)||this.undefinedExports.set(e,t.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(e&ml)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(323&e&&!(4&e))return e}}}class xl extends Al{constructor(){super(...arguments),this.declareFunctions=new Set}}class Fl extends Cl{createScope(t){return new xl(t)}declareName(t,e,s){const r=this.currentScope();if(e&El)return this.checkRedeclarationInScope(r,t,e,s),this.maybeExportDefined(r,t),void r.declareFunctions.add(t);super.declareName(...arguments)}isRedeclaredInScope(t,e,s){return!!super.isRedeclaredInScope(...arguments)||!!(s&El)&&(!t.declareFunctions.has(e)&&(t.lexical.has(e)||t.functions.has(e)))}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}class gl{constructor(){this.strict=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.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.commentStack=[],this.pos=0,this.type=129,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[Ac.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.strictErrors=new Map,this.tokensLength=0}init(t){let{strictMode:e,sourceType:s,startLine:r,startColumn:i}=t;this.strict=!1!==e&&(!0===e||"module"===s),this.curLine=r,this.lineStart=-i,this.startLoc=this.endLoc=new uc(r,i)}curPosition(){return new uc(this.curLine,this.pos-this.lineStart)}clone(t){const e=new gl,s=Object.keys(this);for(let r=0,i=s.length;r<i;r++){const i=s[r];let n=this[i];!t&&Array.isArray(n)&&(n=n.slice()),e[i]=n}return e}}var Pl=function(t){return t>=48&&t<=57};const Tl=new Set([103,109,115,105,121,117,100]),bl={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},Sl={bin:[48,49]};Sl.oct=[...Sl.bin,50,51,52,53,54,55],Sl.dec=[...Sl.oct,56,57],Sl.hex=[...Sl.dec,65,66,67,68,69,70,97,98,99,100,101,102];class wl{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new hc(t.startLoc,t.endLoc)}}class Bl{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Nl{constructor(t){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Bl)}exit(){const t=this.stack.pop(),e=this.current();for(const[s,r]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,r):this.raise(r,Dc.InvalidPrivateFieldResolution,s)}declarePrivateName(t,e,s){const r=this.current();let i=r.privateNames.has(t);if(3&e){const s=i&&r.loneAccessors.get(t);if(s){const n=4&s,a=4&e;i=(3&s)===(3&e)||n!==a,i||r.loneAccessors.delete(t)}else i||r.loneAccessors.set(t,e)}i&&this.raise(s,Dc.PrivateNameRedeclaration,t),r.privateNames.add(t),r.undefinedPrivateNames.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.raise(e,Dc.InvalidPrivateFieldResolution,t)}}class Il{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.type=void 0,this.type=t}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class vl extends Il{constructor(t){super(t),this.errors=new Map}recordDeclarationError(t,e){this.errors.set(t,e)}clearDeclarationError(t){this.errors.delete(t)}iterateErrors(t){this.errors.forEach(t)}}class kl{constructor(t){this.stack=[new Il],this.raise=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){const{stack:s}=this;let r=s.length-1,i=s[r];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(t,e),i=s[--r]}this.raise(t,e)}recordParenthesizedIdentifierError(t,e){const{stack:s}=this,r=s[s.length-1];if(r.isCertainlyParameterDeclaration())this.raise(t,e);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(t,e)}}recordAsyncArrowParametersError(t,e){const{stack:s}=this;let r=s.length-1,i=s[r];for(;i.canBeArrowParameterDeclaration();)2===i.type&&i.recordDeclarationError(t,e),i=s[--r]}validateAsPattern(){const{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(((e,s)=>{this.raise(s,e);let r=t.length-2,i=t[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(s),i=t[--r]}))}}function Ll(){return new Il}class Ol{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Ml(t,e){return(t?2:0)|(e?1:0)}class Rl{constructor(){this.shorthandAssign=-1,this.doubleProto=-1,this.optionalParameters=-1}}class jl{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new hc(s),null!=t&&t.options.ranges&&(this.range=[e,0]),null!=t&&t.filename&&(this.loc.filename=t.filename)}}const Ul=jl.prototype;function _l(t){const{type:e,start:s,end:r,loc:i,range:n,extra:a,name:o}=t,u=Object.create(Ul);return u.type=e,u.start=s,u.end=r,u.loc=i,u.range=n,u.extra=a,u.name=o,"Placeholder"===e&&(u.expectedNode=t.expectedNode),u}function zl(t){const{type:e,start:s,end:r,loc:i,range:n,extra:a}=t;if("Placeholder"===e)return function(t){return _l(t)}(t);const o=Object.create(Ul);return o.type="StringLiteral",o.start=s,o.end=r,o.loc=i,o.range=n,o.extra=a,o.value=t.value,o}Ul.__clone=function(){const t=new jl,e=Object.keys(this);for(let s=0,r=e.length;s<r;s++){const r=e[s];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(t[r]=this[r])}return t};const Hl=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Vl=yc({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:"Cannot overwrite reserved type %0.",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:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",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:"A binding pattern parameter cannot be optional in an implementation signature.",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:"Unexpected reserved type %0.",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:"`declare export %0` is not supported. Use `%1` instead.",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},dc.SyntaxError,"flow");function ql(t){return"type"===t.importKind||"typeof"===t.importKind}function Wl(t){return _c(t)&&91!==t}const Kl={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const Gl=/\*?\s*@((?:no)?flow)\b/;const Xl={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"},Jl=/^[\da-fA-F]+$/,$l=/^\d+$/,Yl=yc({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>.",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",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 <>...</>?"},dc.SyntaxError,"jsx");function Ql(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function Zl(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return Zl(t.object)+"."+Zl(t.property);throw new Error("Node had unexpected type: "+t.type)}Ac.j_oTag=new Ec("<tag"),Ac.j_cTag=new Ec("</tag"),Ac.j_expr=new Ec("<tag>...</tag>",!0);class td extends Al{constructor(){super(...arguments),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}}class ed extends Cl{createScope(t){return new td(t)}declareName(t,e,s){const r=this.currentScope();if(e&yl)return this.maybeExportDefined(r,t),void r.exportOnlyBindings.add(t);super.declareName(...arguments),2&e&&(1&e||(this.checkRedeclarationInScope(r,t,e,s),this.maybeExportDefined(r,t)),r.types.add(t)),256&e&&r.enums.add(t),512&e&&r.constEnums.add(t),e&fl&&r.classes.add(t)}isRedeclaredInScope(t,e,s){if(t.enums.has(e)){if(256&s){return!!(512&s)!==t.constEnums.has(e)}return!0}return s&fl&&t.classes.has(e)?!!t.lexical.has(e)&&!!(1&s):!!(2&s&&t.types.has(e))||super.isRedeclaredInScope(...arguments)}checkLocalExport(t){const e=this.scopeStack[0],{name:s}=t;e.types.has(s)||e.exportOnlyBindings.has(s)||super.checkLocalExport(t)}}function sd(t){if(!t)throw new Error("Assert fail")}const rd=yc({AbstractMethodHasImplementation:"Method '%0' cannot have an implementation because it is marked abstract.",AbstractPropertyHasInitializer:"Property '%0' cannot have an initializer because it is marked abstract.",AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:"'declare' is not allowed in %0ters.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:"Accessibility modifier already seen.",DuplicateModifier:"Duplicate modifier: '%0'.",EmptyHeritageClauseType:"'%0' 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'.",IncompatibleModifiers:"'%0' modifier cannot be used with '%1' modifier.",IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier ('%0').",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.",InvalidModifierOnTypeMember:"'%0' modifier cannot appear on a type member.",InvalidModifiersOrder:"'%0' modifier must precede '%1' modifier.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'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:"Private elements cannot have an accessibility modifier ('%0').",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.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",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:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0."},dc.SyntaxError,"typescript");function id(t){return"private"===t||"public"===t||"protected"===t}const nd=yc({ClassNameIsRequired:"A class name is required."},dc.SyntaxError);function ad(t,e){return t.some((t=>Array.isArray(t)?t[0]===e:t===e))}function od(t,e,s){const r=t.find((t=>Array.isArray(t)?t[0]===e:t===e));return r&&Array.isArray(r)?r[1][s]:null}const ud=["minimal","fsharp","hack","smart"],hd=["^","%","#"],pd=["hash","bar"];const cd={estree:t=>class extends t{parseRegExpLiteral(t){let{pattern:e,flags:s}=t,r=null;try{r=new RegExp(e,s)}catch(t){}const i=this.estreeParseLiteral(r);return i.regex={pattern:e,flags:s},i}parseBigIntLiteral(t){let e;try{e=BigInt(t)}catch(t){e=null}const s=this.estreeParseLiteral(e);return s.bigint=String(s.value||t),s}parseDecimalLiteral(t){const e=this.estreeParseLiteral(null);return e.decimal=String(e.value||t),e}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}directiveToStmt(t){const e=t.value,s=this.startNodeAt(t.start,t.loc.start),r=this.startNodeAt(e.start,e.loc.start);return r.value=e.extra.expressionValue,r.raw=e.extra.raw,s.expression=this.finishNodeAt(r,"Literal",e.end,e.loc.end),s.directive=e.extra.raw.slice(1,-1),this.finishNodeAt(s,"ExpressionStatement",t.end,t.loc.end)}initFunction(t,e){super.initFunction(t,e),t.expression=!1}checkDeclaration(t){null!=t&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var e;return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&!(null!=(e=t.expression.extra)&&e.parenthesized)}parseBlockBody(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),r=1;r<e;r++)s[r-1]=arguments[r];super.parseBlockBody(t,...s);const i=t.directives.map((t=>this.directiveToStmt(t)));t.body=i.concat(t.body),delete t.directives}pushClassMethod(t,e,s,r,i,n){this.parseMethod(e,s,r,i,n,"ClassMethod",!0),e.typeParameters&&(e.value.typeParameters=e.typeParameters,delete e.typeParameters),t.body.push(e)}parsePrivateName(){const t=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(t):t}convertPrivateNameToPrivateIdentifier(t){const e=super.getPrivateNameSV(t);return delete(t=t).id,t.name=e,t.type="PrivateIdentifier",t}isPrivateName(t){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===t.type:super.isPrivateName(t)}getPrivateNameSV(t){return this.getPluginOption("estree","classFeatures")?t.name:super.getPrivateNameSV(t)}parseLiteral(t,e){const s=super.parseLiteral(t,e);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(t,e){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(t,e,s),t.expression="BlockStatement"!==t.body.type}parseMethod(t,e,s,r,i,n){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=this.startNode();return o.kind=t.kind,o=super.parseMethod(o,e,s,r,i,n,a),o.type="FunctionExpression",delete o.kind,t.value=o,"ClassPrivateMethod"===n&&(t.computed=!1),n="MethodDefinition",this.finishNode(t,n)}parseClassProperty(){const t=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(t.type="PropertyDefinition",t):t}parseClassPrivateProperty(){const t=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(t.type="PropertyDefinition",t.computed=!1,t):t}parseObjectMethod(t,e,s,r,i){const n=super.parseObjectMethod(t,e,s,r,i);return n&&(n.type="Property","method"===n.kind&&(n.kind="init"),n.shorthand=!1),n}parseObjectProperty(t,e,s,r,i){const n=super.parseObjectProperty(t,e,s,r,i);return n&&(n.kind="init",n.type="Property"),n}isAssignable(t,e){return null!=t&&this.isObjectProperty(t)?this.isAssignable(t.value,e):super.isAssignable(t,e)}toAssignable(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null!=t&&this.isObjectProperty(t)?(this.toAssignable(t.value,e),t):super.toAssignable(t,e)}toAssignableObjectExpressionProp(t){if("get"===t.kind||"set"===t.kind)this.raise(t.key.start,Dc.PatternHasAccessor);else if(t.method)this.raise(t.key.start,Dc.PatternHasMethod);else{for(var e=arguments.length,s=new Array(e>1?e-1:0),r=1;r<e;r++)s[r-1]=arguments[r];super.toAssignableObjectExpressionProp(t,...s)}}finishCallExpression(t,e){if(super.finishCallExpression(t,e),"Import"===t.callee.type){var s;if(t.type="ImportExpression",t.source=t.arguments[0],this.hasPlugin("importAssertions"))t.attributes=null!=(s=t.arguments[1])?s:null;delete t.arguments,delete t.callee}return t}toReferencedArguments(t){"ImportExpression"!==t.type&&super.toReferencedArguments(t)}parseExport(t){switch(super.parseExport(t),t.type){case"ExportAllDeclaration":t.exported=null;break;case"ExportNamedDeclaration":1===t.specifiers.length&&"ExportNamespaceSpecifier"===t.specifiers[0].type&&(t.type="ExportAllDeclaration",t.exported=t.specifiers[0].exported,delete t.specifiers)}return t}parseSubscript(t,e,s,r,i){const n=super.parseSubscript(t,e,s,r,i);if(i.optionalChainMember){if("OptionalMemberExpression"!==n.type&&"OptionalCallExpression"!==n.type||(n.type=n.type.substring(8)),i.stop){const t=this.startNodeAtNode(n);return t.expression=n,this.finishNode(t,"ChainExpression")}}else"MemberExpression"!==n.type&&"CallExpression"!==n.type||(n.optional=!1);return n}hasPropertyAsPrivateName(t){return"ChainExpression"===t.type&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isOptionalChain(t){return"ChainExpression"===t.type}isObjectProperty(t){return"Property"===t.type&&"init"===t.kind&&!t.method}isObjectMethod(t){return t.method||"get"===t.kind||"set"===t.kind}},jsx:t=>class extends t{jsxReadToken(){let t="",e=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,Yl.UnterminatedJsxContent);const s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:return this.state.pos===this.state.start?60===s&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(132)):super.getTokenFromCode(s):(t+=this.input.slice(e,this.state.pos),this.finishToken(131,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:ic(s)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){const e=this.input.charCodeAt(this.state.pos);let s;return++this.state.pos,13===e&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,s=t?"\n":"\r\n"):s=String.fromCharCode(e),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(t){let e="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,Dc.UnterminatedString);const r=this.input.charCodeAt(this.state.pos);if(r===t)break;38===r?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos):ic(r)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}return e+=this.input.slice(s,this.state.pos++),this.finishToken(123,e)}jsxReadEntity(){let t,e="",s=0,r=this.input[this.state.pos];const i=++this.state.pos;for(;this.state.pos<this.length&&s++<10;){if(r=this.input[this.state.pos++],";"===r){"#"===e[0]?"x"===e[1]?(e=e.substr(2),Jl.test(e)&&(t=String.fromCodePoint(parseInt(e,16)))):(e=e.substr(1),$l.test(e)&&(t=String.fromCodePoint(parseInt(e,10)))):t=Xl[e];break}e+=r}return t||(this.state.pos=i,"&")}jsxReadWord(){let t;const e=this.state.pos;do{t=this.input.charCodeAt(++this.state.pos)}while(sl(t)||45===t);return this.finishToken(130,this.input.slice(e,this.state.pos))}jsxParseIdentifier(){const t=this.startNode();return this.match(130)?t.name=this.state.value:qc(this.state.type)?t.name=Wc(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){const t=this.state.start,e=this.state.startLoc,s=this.jsxParseIdentifier();if(!this.eat(14))return s;const r=this.startNodeAt(t,e);return r.namespace=s,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const t=this.state.start,e=this.state.startLoc;let s=this.jsxParseNamespacedName();if("JSXNamespacedName"===s.type)return s;for(;this.eat(16);){const r=this.startNodeAt(t,e);r.object=s,r.property=this.jsxParseIdentifier(),s=this.finishNode(r,"JSXMemberExpression")}return s}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.next(),t=this.jsxParseExpressionContainer(t),"JSXEmptyExpression"===t.expression.type&&this.raise(t.start,Yl.AttributeIsEmpty),t;case 132:case 123:return this.parseExprAtom();default:throw this.raise(this.state.start,Yl.UnsupportedJsxValue)}}jsxParseEmptyExpression(){const t=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.start,this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t){if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{const e=this.parseExpression();t.expression=e}return this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){const t=this.startNode();return this.eat(5)?(this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(27)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t,e){const s=this.startNodeAt(t,e);return this.match(133)?(this.expect(133),this.finishNode(s,"JSXOpeningFragment")):(s.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(s))}jsxParseOpeningElementAfterName(t){const e=[];for(;!this.match(50)&&!this.match(133);)e.push(this.jsxParseAttribute());return t.attributes=e,t.selfClosing=this.eat(50),this.expect(133),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t,e){const s=this.startNodeAt(t,e);return this.match(133)?(this.expect(133),this.finishNode(s,"JSXClosingFragment")):(s.name=this.jsxParseElementName(),this.expect(133),this.finishNode(s,"JSXClosingElement"))}jsxParseElementAt(t,e){const s=this.startNodeAt(t,e),r=[],i=this.jsxParseOpeningElementAt(t,e);let n=null;if(!i.selfClosing){t:for(;;)switch(this.state.type){case 132:if(t=this.state.start,e=this.state.startLoc,this.next(),this.eat(50)){n=this.jsxParseClosingElementAt(t,e);break t}r.push(this.jsxParseElementAt(t,e));break;case 131:r.push(this.parseExprAtom());break;case 5:{const t=this.startNode();this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(t)):r.push(this.jsxParseExpressionContainer(t));break}default:throw this.unexpected()}Ql(i)&&!Ql(n)?this.raise(n.start,Yl.MissingClosingTagFragment):!Ql(i)&&Ql(n)?this.raise(n.start,Yl.MissingClosingTagElement,Zl(i.name)):Ql(i)||Ql(n)||Zl(n.name)!==Zl(i.name)&&this.raise(n.start,Yl.MissingClosingTagElement,Zl(i.name))}if(Ql(i)?(s.openingFragment=i,s.closingFragment=n):(s.openingElement=i,s.closingElement=n),s.children=r,this.match(43))throw this.raise(this.state.start,Yl.UnwrappedAdjacentJSXElements);return Ql(i)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"JSXElement")}jsxParseElement(){const t=this.state.start,e=this.state.startLoc;return this.next(),this.jsxParseElementAt(t,e)}parseExprAtom(t){return this.match(131)?this.parseLiteral(this.state.value,"JSXText"):this.match(132)?this.jsxParseElement():this.match(43)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(132),this.jsxParseElement()):super.parseExprAtom(t)}getTokenFromCode(t){const e=this.curContext();if(e===Ac.j_expr)return this.jsxReadToken();if(e===Ac.j_oTag||e===Ac.j_cTag){if(el(t))return this.jsxReadWord();if(62===t)return++this.state.pos,this.finishToken(133);if((34===t||39===t)&&e===Ac.j_oTag)return this.jsxReadString(t)}return 60===t&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(132)):super.getTokenFromCode(t)}updateContext(t){super.updateContext(t);const{context:e,type:s}=this.state;if(50===s&&132===t)e.splice(-2,2,Ac.j_cTag),this.state.canStartJSXElement=!1;else if(132===s)e.push(Ac.j_expr,Ac.j_oTag);else if(133===s){const s=e.pop();s===Ac.j_oTag&&50===t||s===Ac.j_cTag?(e.pop(),this.state.canStartJSXElement=e[e.length-1]===Ac.j_expr):this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=kc[s]}},flow:t=>class extends t{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return Fl}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(t,e){return 123!==t&&13!==t&&26!==t&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(t,e)}addComment(t){if(void 0===this.flowPragma){const e=Gl.exec(t.value);if(e)if("flow"===e[1])this.flowPragma="flow";else{if("noflow"!==e[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}return super.addComment(t)}flowParseTypeInitialiser(t){const e=this.state.inType;this.state.inType=!0,this.expect(t||14);const s=this.flowParseType();return this.state.inType=e,s}flowParsePredicate(){const t=this.startNode(),e=this.state.start;return this.next(),this.expectContextual(101),this.state.lastTokStart>e+1&&this.raise(e,Vl.UnexpectedSpaceBetweenModuloChecks),this.eat(10)?(t.value=this.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const t=this.state.inType;this.state.inType=!0,this.expect(14);let e=null,s=null;return this.match(48)?(this.state.inType=t,s=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(48)&&(s=this.flowParsePredicate())),[e,s]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();const e=t.id=this.parseIdentifier(),s=this.startNode(),r=this.startNode();this.match(43)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return s.params=i.params,s.rest=i.rest,s.this=i._this,this.expect(11),[s.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(e),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,e){if(this.match(74))return this.flowParseDeclareClass(t);if(this.match(62))return this.flowParseDeclareFunction(t);if(this.match(68))return this.flowParseDeclareVariable(t);if(this.eatContextual(117))return this.match(16)?this.flowParseDeclareModuleExports(t):(e&&this.raise(this.state.lastTokStart,Vl.NestedDeclareModule),this.flowParseDeclareModule(t));if(this.isContextual(120))return this.flowParseDeclareTypeAlias(t);if(this.isContextual(121))return this.flowParseDeclareOpaqueType(t);if(this.isContextual(119))return this.flowParseDeclareInterface(t);if(this.match(76))return this.flowParseDeclareExportDeclaration(t,e);throw this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(123)?t.id=this.parseExprAtom():t.id=this.parseIdentifier();const e=t.body=this.startNode(),s=e.body=[];for(this.expect(5);!this.match(8);){let t=this.startNode();this.match(77)?(this.next(),this.isContextual(120)||this.match(81)||this.raise(this.state.lastTokStart,Vl.InvalidNonTypeImportInDeclareModule),this.parseImport(t)):(this.expectContextual(115,Vl.UnsupportedStatementInDeclareModule),t=this.flowParseDeclare(t,!0)),s.push(t)}this.scope.exit(),this.expect(8),this.finishNode(e,"BlockStatement");let r=null,i=!1;return s.forEach((t=>{!function(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}(t)?"DeclareModuleExports"===t.type&&(i&&this.raise(t.start,Vl.DuplicateDeclareModuleExports),"ES"===r&&this.raise(t.start,Vl.AmbiguousDeclareModuleKind),r="CommonJS",i=!0):("CommonJS"===r&&this.raise(t.start,Vl.AmbiguousDeclareModuleKind),r="ES")})),t.kind=r||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,e){if(this.expect(76),this.eat(59))return this.match(62)||this.match(74)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(69)||this.isLet()||(this.isContextual(120)||this.isContextual(119))&&!e){const t=this.state.value,e=Kl[t];throw this.raise(this.state.start,Vl.UnsupportedDeclareExportKind,t,e)}if(this.match(68)||this.match(62)||this.match(74)||this.isContextual(121))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(49)||this.match(5)||this.isContextual(119)||this.isContextual(120)||this.isContextual(121))return"ExportNamedDeclaration"===(t=this.parseExport(t)).type&&(t.type="ExportDeclaration",t.default=!1,delete t.exportKind),t.type="Declare"+t.type,t;throw this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(102),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){return this.next(),this.flowParseTypeAlias(t),t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(t){return this.next(),this.flowParseOpaqueType(t,!0),t.type="DeclareOpaqueType",t}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.id=this.flowParseRestrictedIdentifier(!e,!0),this.scope.declareName(t.id.name,e?17:9,t.id.start),this.match(43)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],t.implements=[],t.mixins=[],this.eat(75))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(12));if(this.isContextual(108)){this.next();do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12))}if(this.isContextual(104)){this.next();do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:e,allowExact:!1,allowSpread:!1,allowProto:e,allowInexact:!1})}flowParseInterfaceExtends(){const t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(43)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){"_"===t&&this.raise(this.state.start,Vl.UnexpectedReservedUnderscore)}checkReservedType(t,e,s){Hl.has(t)&&this.raise(e,s?Vl.AssignReservedType:Vl.UnexpectedReservedType,t)}flowParseRestrictedIdentifier(t,e){return this.checkReservedType(this.state.value,this.state.start,e),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,9,t.id.start),this.match(43)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(27),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,e){return this.expectContextual(120),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,9,t.id.start),this.match(43)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(27)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=this.state.start,s=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return s.name=i.name,s.variance=r,s.bound=i.typeAnnotation,this.match(27)?(this.eat(27),s.default=this.flowParseType()):t&&this.raise(e,Vl.MissingTypeParamDefault),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){const t=this.state.inType,e=this.startNode();e.params=[],this.state.inType=!0,this.match(43)||this.match(132)?this.next():this.unexpected();let s=!1;do{const t=this.flowParseTypeParameter(s);e.params.push(t),t.default&&(s=!0),this.match(44)||this.expect(12)}while(!this.match(44));return this.expect(44),this.state.inType=t,this.finishNode(e,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const t=this.startNode(),e=this.state.inType;t.params=[],this.state.inType=!0,this.expect(43);const s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(44);)t.params.push(this.flowParseType()),this.match(44)||this.expect(12);return this.state.noAnonFunctionType=s,this.expect(44),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const t=this.startNode(),e=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(43);!this.match(44);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(44)||this.expect(12);return this.expect(44),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){const t=this.startNode();if(this.expectContextual(119),t.extends=[],this.eat(75))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(124)||this.match(123)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,e,s){return t.static=e,14===this.lookahead().type?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=s,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(43)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(43)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(72)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,e){const s=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(s),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType(t){let{allowStatic:e,allowExact:s,allowSpread:r,allowProto:i,allowInexact:n}=t;const a=this.state.inType;this.state.inType=!0;const o=this.startNode();let u,h;o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let p=!1;for(s&&this.match(6)?(this.expect(6),u=9,h=!0):(this.expect(5),u=8,h=!1),o.exact=h;!this.match(u);){let t=!1,s=null,a=null;const u=this.startNode();if(i&&this.isContextual(109)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),s=this.state.start,e=!1)}if(e&&this.isContextual(98)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}const c=this.flowParseVariance();if(this.eat(0))null!=s&&this.unexpected(s),this.eat(0)?(c&&this.unexpected(c.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,c));else if(this.match(10)||this.match(43))null!=s&&this.unexpected(s),c&&this.unexpected(c.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e="init";if(this.isContextual(92)||this.isContextual(97)){zc(this.lookahead().type)&&(e=this.state.value,this.next())}const i=this.flowParseObjectTypeProperty(u,t,s,c,e,r,null!=n?n:!h);null===i?(p=!0,a=this.state.lastTokStart):o.properties.push(i)}this.flowObjectTypeSemicolon(),!a||this.match(8)||this.match(9)||this.raise(a,Vl.UnexpectedExplicitInexactInObject)}this.expect(u),r&&(o.inexact=p);const c=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=a,c}flowParseObjectTypeProperty(t,e,s,r,i,n,a){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(n?a||this.raise(this.state.lastTokStart,Vl.InexactInsideExact):this.raise(this.state.lastTokStart,Vl.InexactInsideNonObject),r&&this.raise(r.start,Vl.InexactVariance),null):(n||this.raise(this.state.lastTokStart,Vl.UnexpectedSpreadType),null!=s&&this.unexpected(s),r&&this.raise(r.start,Vl.SpreadVariance),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"))}{t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=s,t.kind=i;let a=!1;return this.match(43)||this.match(10)?(t.method=!0,null!=s&&this.unexpected(s),r&&this.unexpected(r.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(t),!n&&"constructor"===t.key.name&&t.value.this&&this.raise(t.value.this.start,Vl.ThisParamBannedInConstructor)):("init"!==i&&this.unexpected(),t.method=!1,this.eat(17)&&(a=!0),t.value=this.flowParseTypeInitialiser(),t.variance=r),t.optional=a,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){const e="get"===t.kind?0:1,s=t.start,r=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise(t.value.this.start,"get"===t.kind?Vl.GetterMayNotHaveThisParam:Vl.SetterMayNotHaveThisParam),r!==e&&("get"===t.kind?this.raise(s,Dc.BadGetterArity):this.raise(s,Dc.BadSetterArity)),"set"===t.kind&&t.value.rest&&this.raise(s,Dc.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(t,e,s){t=t||this.state.start,e=e||this.state.startLoc;let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const s=this.startNodeAt(t,e);s.qualification=r,s.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(s,"QualifiedTypeIdentifier")}return r}flowParseGenericType(t,e,s){const r=this.startNodeAt(t,e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(t,e,s),this.match(43)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const t=this.startNode();return this.expect(81),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){const t=this.startNode();for(t.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(t.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(t,"TupleTypeAnnotation")}flowParseFunctionTypeParam(t){let e=null,s=!1,r=null;const i=this.startNode(),n=this.lookahead(),a=72===this.state.type;return 14===n.type||17===n.type?(a&&!t&&this.raise(i.start,Vl.ThisParamMustBeFirst),e=this.parseIdentifier(a),this.eat(17)&&(s=!0,a&&this.raise(i.start,Vl.ThisParamMayNotBeOptional)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=e,i.optional=s,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(t){const e=this.startNodeAt(t.start,t.loc.start);return e.name=null,e.optional=!1,e.typeAnnotation=t,this.finishNode(e,"FunctionTypeParam")}flowParseFunctionTypeParams(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=null,s=null;for(this.match(72)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e=this.flowParseFunctionTypeParam(!1)),{params:t,rest:e,_this:s}}flowIdentToTypeAnnotation(t,e,s,r){switch(r.name){case"any":return this.finishNode(s,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(s,"BooleanTypeAnnotation");case"mixed":return this.finishNode(s,"MixedTypeAnnotation");case"empty":return this.finishNode(s,"EmptyTypeAnnotation");case"number":return this.finishNode(s,"NumberTypeAnnotation");case"string":return this.finishNode(s,"StringTypeAnnotation");case"symbol":return this.finishNode(s,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(t,e,r)}}flowParsePrimaryType(){const t=this.state.start,e=this.state.startLoc,s=this.startNode();let r,i,n=!1;const a=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,i=this.flowParseTupleType(),this.state.noAnonFunctionType=a,i;case 43:return s.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),s.params=r.params,s.rest=r.rest,s.this=r._this,this.expect(11),this.expect(19),s.returnType=this.flowParseType(),this.finishNode(s,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(Uc(this.state.type)||this.match(72)){const t=this.lookahead().type;n=17!==t&&14!==t}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),i;this.eat(12)}return r=i?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]):this.flowParseFunctionTypeParams(),s.params=r.params,s.rest=r.rest,s.this=r._this,this.expect(11),this.expect(19),s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation");case 123:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 79:case 80:return s.value=this.match(79),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case 47:if("-"===this.state.value){if(this.next(),this.match(124))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s);if(this.match(125))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s);throw this.raise(this.state.start,Vl.UnexpectedSubtractionOperand)}throw this.unexpected();case 124:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 125:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 82:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case 78:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case 72:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case 49:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");case 81:return this.flowParseTypeofType();default:if(qc(this.state.type)){const t=Wc(this.state.type);return this.next(),super.createIdentifier(s,t)}if(Uc(this.state.type))return this.isContextual(119)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(t,e,s,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const t=this.state.start,e=this.state.startLoc;let s=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const i=this.startNodeAt(t,e),n=this.eat(18);r=r||n,this.expect(0),!n&&this.match(3)?(i.elementType=s,this.next(),s=this.finishNode(i,"ArrayTypeAnnotation")):(i.objectType=s,i.indexType=this.flowParseType(),this.expect(3),r?(i.optional=n,s=this.finishNode(i,"OptionalIndexedAccessType")):s=this.finishNode(i,"IndexedAccessType"))}return s}flowParsePrefixType(){const t=this.startNode();return this.eat(17)?(t.typeAnnotation=this.flowParsePrefixType(),this.finishNode(t,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const t=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const e=this.startNodeAt(t.start,t.loc.start);return e.params=[this.reinterpretTypeAsFunctionTypeParam(t)],e.rest=null,e.this=null,e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}return t}flowParseIntersectionType(){const t=this.startNode();this.eat(41);const e=this.flowParseAnonFunctionWithoutParens();for(t.types=[e];this.eat(41);)t.types.push(this.flowParseAnonFunctionWithoutParens());return 1===t.types.length?e:this.finishNode(t,"IntersectionTypeAnnotation")}flowParseUnionType(){const t=this.startNode();this.eat(39);const e=this.flowParseIntersectionType();for(t.types=[e];this.eat(39);)t.types.push(this.flowParseIntersectionType());return 1===t.types.length?e:this.finishNode(t,"UnionTypeAnnotation")}flowParseType(){const t=this.state.inType;this.state.inType=!0;const e=this.flowParseUnionType();return this.state.inType=t,e}flowParseTypeOrImplicitInstantiation(){if(122===this.state.type&&"_"===this.state.value){const t=this.state.start,e=this.state.startLoc,s=this.parseIdentifier();return this.flowParseGenericType(t,e,s)}return this.flowParseType()}flowParseTypeAnnotation(){const t=this.startNode();return t.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(t,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(t){const e=t?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e)),e}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.end,t.typeAnnotation.loc.end),t.expression}flowParseVariance(){let t=null;return this.match(47)&&(t=this.startNode(),"+"===this.state.value?t.kind="plus":t.kind="minus",this.next(),this.finishNode(t,"Variance")),t}parseFunctionBody(t,e){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e?this.forwardNoArrowParamsConversionAt(t,(()=>super.parseFunctionBody(t,!0,s))):super.parseFunctionBody(t,!1,s)}parseFunctionBodyAndFinish(t,e){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){const e=this.startNode();[e.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=e.typeAnnotation?this.finishNode(e,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(t,e,s)}parseStatement(t,e){if(this.state.strict&&this.isContextual(119)){if(_c(this.lookahead().type)){const t=this.startNode();return this.next(),this.flowParseInterface(t)}}else if(this.shouldParseEnums()&&this.isContextual(116)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}const s=super.parseStatement(t,e);return void 0!==this.flowPragma||this.isValidDirective(s)||(this.flowPragma=null),s}parseExpressionStatement(t,e){if("Identifier"===e.type)if("declare"===e.name){if(this.match(74)||Uc(this.state.type)||this.match(62)||this.match(68)||this.match(76))return this.flowParseDeclare(t)}else if(Uc(this.state.type)){if("interface"===e.name)return this.flowParseInterface(t);if("type"===e.name)return this.flowParseTypeAlias(t);if("opaque"===e.name)return this.flowParseOpaqueType(t,!1)}return super.parseExpressionStatement(t,e)}shouldParseExportDeclaration(){const{type:t}=this.state;return Vc(t)||this.shouldParseEnums()&&116===t?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:t}=this.state;return Vc(t)||this.shouldParseEnums()&&116===t?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(116)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,e,s,r){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){const e=this.lookaheadCharCode();if(44===e||61===e||58===e||41===e)return this.setOptionalParametersError(r),t}this.expect(17);const i=this.state.clone(),n=this.state.noArrowAt,a=this.startNodeAt(e,s);let{consequent:o,failed:u}=this.tryParseConditionalConsequent(),[h,p]=this.getArrowLikeExpressions(o);if(u||p.length>0){const t=[...n];if(p.length>0){this.state=i,this.state.noArrowAt=t;for(let e=0;e<p.length;e++)t.push(p[e].start);({consequent:o,failed:u}=this.tryParseConditionalConsequent()),[h,p]=this.getArrowLikeExpressions(o)}u&&h.length>1&&this.raise(i.start,Vl.AmbiguousConditionalArrow),u&&1===h.length&&(this.state=i,t.push(h[0].start),this.state.noArrowAt=t,({consequent:o,failed:u}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=n,this.expect(14),a.test=t,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const t=this.parseMaybeAssignAllowIn(),e=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}}getArrowLikeExpressions(t,e){const s=[t],r=[];for(;0!==s.length;){const t=s.pop();"ArrowFunctionExpression"===t.type?(t.typeParameters||!t.returnType?this.finishArrowValidation(t):r.push(t),s.push(t.body)):"ConditionalExpression"===t.type&&(s.push(t.consequent),s.push(t.alternate))}return e?(r.forEach((t=>this.finishArrowValidation(t))),[r,[]]):function(t,e){const s=[],r=[];for(let i=0;i<t.length;i++)(e(t[i],i,t)?s:r).push(t[i]);return[s,r]}(r,(t=>t.params.every((t=>this.isAssignable(t,!0)))))}finishArrowValidation(t){var e;this.toAssignableList(t.params,null==(e=t.extra)?void 0:e.trailingComma,!1),this.scope.enter(6),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,e){let s;return-1!==this.state.noArrowParamsConversionAt.indexOf(t.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),s=e(),this.state.noArrowParamsConversionAt.pop()):s=e(),s}parseParenItem(t,e,s){if(t=super.parseParenItem(t,e,s),this.eat(17)&&(t.optional=!0,this.resetEndLocation(t)),this.match(14)){const r=this.startNodeAt(e,s);return r.expression=t,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return t}assertModuleNodeAllowed(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||super.assertModuleNodeAllowed(t)}parseExport(t){const e=super.parseExport(t);return"ExportNamedDeclaration"!==e.type&&"ExportAllDeclaration"!==e.type||(e.exportKind=e.exportKind||"value"),e}parseExportDeclaration(t){if(this.isContextual(120)){t.exportKind="type";const e=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),this.parseExportFrom(t),null):this.flowParseTypeAlias(e)}if(this.isContextual(121)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseOpaqueType(e,!1)}if(this.isContextual(119)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseInterface(e)}if(this.shouldParseEnums()&&this.isContextual(116)){t.exportKind="value";const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDeclaration(t)}eatExportStar(t){return!!super.eatExportStar(...arguments)||!(!this.isContextual(120)||49!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(t){const e=this.state.start,s=super.maybeParseExportNamespaceSpecifier(t);return s&&"type"===t.exportKind&&this.unexpected(e),s}parseClassId(t,e,s){super.parseClassId(t,e,s),this.match(43)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,e,s){const r=this.state.start;if(this.isContextual(115)){if(this.parseClassMemberFromModifier(t,e))return;e.declare=!0}super.parseClassMember(t,e,s),e.declare&&("ClassProperty"!==e.type&&"ClassPrivateProperty"!==e.type&&"PropertyDefinition"!==e.type?this.raise(r,Vl.DeclareClassElement):e.value&&this.raise(e.value.start,Vl.DeclareClassFieldInitializer))}isIterator(t){return"iterator"===t||"asyncIterator"===t}readIterator(){const t=super.readWord1(),e="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(this.state.pos,Dc.InvalidIdentifier,e),this.finishToken(122,e)}getTokenFromCode(t){const e=this.input.charCodeAt(this.state.pos+1);return 123===t&&124===e?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===e?this.finishOp(18,2):this.finishOp(17,1):function(t,e){return 64===t&&64===e}(t,e)?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t):this.finishOp(62===t?44:43,1)}isAssignable(t,e){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,e):super.isAssignable(t,e)}toAssignable(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"TypeCastExpression"===t.type?super.toAssignable(this.typeCastToParameter(t),e):super.toAssignable(t,e)}toAssignableList(t,e,s){for(let e=0;e<t.length;e++){const s=t[e];"TypeCastExpression"===(null==s?void 0:s.type)&&(t[e]=this.typeCastToParameter(s))}return super.toAssignableList(t,e,s)}toReferencedList(t,e){for(let r=0;r<t.length;r++){var s;const i=t[r];!i||"TypeCastExpression"!==i.type||null!=(s=i.extra)&&s.parenthesized||!(t.length>1)&&e||this.raise(i.typeAnnotation.start,Vl.TypeCastInPattern)}return t}parseArrayLike(t,e,s,r){const i=super.parseArrayLike(t,e,s,r);return e&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}checkLVal(t){if("TypeCastExpression"!==t.type){for(var e=arguments.length,s=new Array(e>1?e-1:0),r=1;r<e;r++)s[r-1]=arguments[r];return super.checkLVal(t,...s)}}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,e,s,r,i,n){if(e.variance&&this.unexpected(e.variance.start),delete e.variance,this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,e,s,r,i,n),e.params&&i){const t=e.params;t.length>0&&this.isThisParam(t[0])&&this.raise(e.start,Vl.ThisParamBannedInConstructor)}else if("MethodDefinition"===e.type&&i&&e.value.params){const t=e.value.params;t.length>0&&this.isThisParam(t[0])&&this.raise(e.start,Vl.ThisParamBannedInConstructor)}}pushClassPrivateMethod(t,e,s,r){e.variance&&this.unexpected(e.variance.start),delete e.variance,this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,e,s,r)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&this.match(43)&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(104)){this.next();const e=t.implements=[];do{const t=this.startNode();t.id=this.flowParseRestrictedIdentifier(!0),this.match(43)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,e.push(this.finishNode(t,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);const e=this.getObjectOrClassMethodParams(t);if(e.length>0){const s=e[0];this.isThisParam(s)&&"get"===t.kind?this.raise(s.start,Vl.GetterMayNotHaveThisParam):this.isThisParam(s)&&this.raise(s.start,Vl.SetterMayNotHaveThisParam)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,e,s,r,i,n,a,o){let u;t.variance&&this.unexpected(t.variance.start),delete t.variance,this.match(43)&&!a&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected()),super.parseObjPropValue(t,e,s,r,i,n,a,o),u&&((t.value||t).typeParameters=u)}parseAssignableListItemTypes(t){return this.eat(17)&&("Identifier"!==t.type&&this.raise(t.start,Vl.PatternIsOptional),this.isThisParam(t)&&this.raise(t.start,Vl.ThisParamMayNotBeOptional),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(t.start,Vl.ThisParamAnnotationRequired),this.match(27)&&this.isThisParam(t)&&this.raise(t.start,Vl.ThisParamNoDefault),this.resetEndLocation(t),t}parseMaybeDefault(t,e,s){const r=super.parseMaybeDefault(t,e,s);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(r.typeAnnotation.start,Vl.TypeBeforeInitializer),r}shouldParseDefaultImport(t){return ql(t)?Wl(this.state.type):super.shouldParseDefaultImport(t)}parseImportSpecifierLocal(t,e,s,r){e.local=ql(t)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(e.local,r,9),t.specifiers.push(this.finishNode(e,s))}maybeParseDefaultImportSpecifier(t){t.importKind="value";let e=null;if(this.match(81)?e="typeof":this.isContextual(120)&&(e="type"),e){const s=this.lookahead(),{type:r}=s;"type"===e&&49===r&&this.unexpected(s.start),(Wl(r)||5===r||49===r)&&(this.next(),t.importKind=e)}return super.maybeParseDefaultImportSpecifier(t)}parseImportSpecifier(t,e,s,r){const i=t.imported;let n=null;"Identifier"===i.type&&("type"===i.name?n="type":"typeof"===i.name&&(n="typeof"));let a=!1;if(this.isContextual(87)&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===n||_c(this.state.type)?(t.imported=i,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=n,t.local=_l(e))}else{if(null!==n&&_c(this.state.type))t.imported=this.parseIdentifier(!0),t.importKind=n;else{if(e)throw this.raise(t.start,Dc.ImportBindingIsString,i.value);t.imported=i,t.importKind=null}this.eatContextual(87)?t.local=this.parseIdentifier():(a=!0,t.local=_l(t.imported))}const o=ql(t);return s&&o&&this.raise(t.start,Vl.ImportTypeShorthandOnlyInPureImport),(s||o)&&this.checkReservedType(t.local.name,t.local.start,!0),!a||s||o||this.checkReservedWord(t.local.name,t.start,!0,!0),this.checkLVal(t.local,"import specifier",9),this.finishNode(t,"ImportSpecifier")}parseBindingAtom(){return 72===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(t,e){const s=t.kind;"get"!==s&&"set"!==s&&this.match(43)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),this.match(14)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){if(this.match(14)){const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=e}return super.parseAsyncArrowFromCallExpression(t,e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(t,e){var s;let r,i=null;if(this.hasPlugin("jsx")&&(this.match(132)||this.match(43))){if(i=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(t,e)),i),!r.error)return r.node;const{context:s}=this.state,n=s[s.length-1];n===Ac.j_oTag?s.length-=2:n===Ac.j_expr&&(s.length-=1)}if(null!=(s=r)&&s.error||this.match(43)){var n,a;let s;i=i||this.state.clone();const o=this.tryParse((r=>{var i;s=this.flowParseTypeParameterDeclaration();const n=this.forwardNoArrowParamsConversionAt(s,(()=>{const r=super.parseMaybeAssign(t,e);return this.resetStartLocationFromNode(r,s),r}));null!=(i=n.extra)&&i.parenthesized&&r();const a=this.maybeUnwrapTypeCastExpression(n);return"ArrowFunctionExpression"!==a.type&&r(),a.typeParameters=s,this.resetStartLocationFromNode(a,s),n}),i);let u=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(s.start,Vl.UnexpectedTypeParameterBeforeAsyncArrowFunction),o.node;u=o.node}if(null!=(n=r)&&n.node)return this.state=r.failState,r.node;if(u)return this.state=o.failState,u;if(null!=(a=r)&&a.thrown)throw r.error;if(o.thrown)throw o.error;throw this.raise(s.start,Vl.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(t,e)}parseArrow(t){if(this.match(14)){const e=this.tryParse((()=>{const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const s=this.startNode();return[s.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=e,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s}));if(e.thrown)return null;e.error&&(this.state=e.failState),t.returnType=e.node.typeAnnotation?this.finishNode(e.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,e){-1!==this.state.noArrowParamsConversionAt.indexOf(t.start)?t.params=e:super.setArrowFunctionParameters(t,e)}checkParams(t,e,s){if(!s||-1===this.state.noArrowParamsConversionAt.indexOf(t.start)){for(let e=0;e<t.params.length;e++)this.isThisParam(t.params[e])&&e>0&&this.raise(t.params[e].start,Vl.ThisParamMustBeFirst);return super.checkParams(...arguments)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(t,e,s,r){if("Identifier"===t.type&&"async"===t.name&&-1!==this.state.noArrowAt.indexOf(e)){this.next();const r=this.startNodeAt(e,s);r.callee=t,r.arguments=this.parseCallExpressionArguments(11,!1),t=this.finishNode(r,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(43)){const i=this.state.clone(),n=this.tryParse((t=>this.parseAsyncArrowWithTypeParameters(e,s)||t()),i);if(!n.error&&!n.aborted)return n.node;const a=this.tryParse((()=>super.parseSubscripts(t,e,s,r)),i);if(a.node&&!a.error)return a.node;if(n.node)return this.state=n.failState,n.node;if(a.node)return this.state=a.failState,a.node;throw n.error||a.error}return super.parseSubscripts(t,e,s,r)}parseSubscript(t,e,s,r,i){if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,r)return i.stop=!0,t;this.next();const n=this.startNodeAt(e,s);return n.callee=t,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}if(!r&&this.shouldParseTypes()&&this.match(43)){const r=this.startNodeAt(e,s);r.callee=t;const n=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=this.parseCallExpressionArguments(11,!1),i.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,i.optionalChainMember))));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(t,e,s,r,i)}parseNewArguments(t){let e=null;this.shouldParseTypes()&&this.match(43)&&(e=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),t.typeArguments=e,super.parseNewArguments(t)}parseAsyncArrowWithTypeParameters(t,e){const s=this.startNodeAt(t,e);if(this.parseFunctionParams(s),this.parseArrow(s))return this.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(t){const e=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===e&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(t)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);124!==t||125!==e?super.readToken_pipe_amp(t):this.finishOp(9,2)}parseTopLevel(t,e){const s=super.parseTopLevel(t,e);return this.state.hasFlowComment&&this.raise(this.state.pos,Vl.UnterminatedFlowComment),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,Vl.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(!this.state.hasFlowComment)return super.skipBlockComment();{const t=this.input.indexOf("*-/",this.state.pos+=2);if(-1===t)throw this.raise(this.state.pos-2,Dc.UnterminatedComment);this.state.pos=t+3}}skipFlowComment(){const{pos:t}=this.state;let e=2;for(;[32,9].includes(this.input.charCodeAt(t+e));)e++;const s=this.input.charCodeAt(e+t),r=this.input.charCodeAt(e+t+1);return 58===s&&58===r?e+2:"flow-include"===this.input.slice(e+t,e+t+12)?e+12:58===s&&58!==r&&e}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,Dc.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(t,e){let{enumName:s,memberName:r}=e;this.raise(t,Vl.EnumBooleanMemberNotInitialized,r,s)}flowEnumErrorInvalidMemberName(t,e){let{enumName:s,memberName:r}=e;const i=r[0].toUpperCase()+r.slice(1);this.raise(t,Vl.EnumInvalidMemberName,r,i,s)}flowEnumErrorDuplicateMemberName(t,e){let{enumName:s,memberName:r}=e;this.raise(t,Vl.EnumDuplicateMemberName,r,s)}flowEnumErrorInconsistentMemberValues(t,e){let{enumName:s}=e;this.raise(t,Vl.EnumInconsistentMemberValues,s)}flowEnumErrorInvalidExplicitType(t,e){let{enumName:s,suppliedType:r}=e;return this.raise(t,null===r?Vl.EnumInvalidExplicitTypeUnknownSupplied:Vl.EnumInvalidExplicitType,s,r)}flowEnumErrorInvalidMemberInitializer(t,e){let{enumName:s,explicitType:r,memberName:i}=e,n=null;switch(r){case"boolean":case"number":case"string":n=Vl.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":n=Vl.EnumInvalidMemberInitializerSymbolType;break;default:n=Vl.EnumInvalidMemberInitializerUnknownType}return this.raise(t,n,s,i,r)}flowEnumErrorNumberMemberNotInitialized(t,e){let{enumName:s,memberName:r}=e;this.raise(t,Vl.EnumNumberMemberNotInitialized,s,r)}flowEnumErrorStringMemberInconsistentlyInitailized(t,e){let{enumName:s}=e;this.raise(t,Vl.EnumStringMemberInconsistentlyInitailized,s)}flowEnumMemberInit(){const t=this.state.start,e=()=>this.match(12)||this.match(8);switch(this.state.type){case 124:{const s=this.parseNumericLiteral(this.state.value);return e()?{type:"number",pos:s.start,value:s}:{type:"invalid",pos:t}}case 123:{const s=this.parseStringLiteral(this.state.value);return e()?{type:"string",pos:s.start,value:s}:{type:"invalid",pos:t}}case 79:case 80:{const s=this.parseBooleanLiteral(this.match(79));return e()?{type:"boolean",pos:s.start,value:s}:{type:"invalid",pos:t}}default:return{type:"invalid",pos:t}}}flowEnumMemberRaw(){const t=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(27)?this.flowEnumMemberInit():{type:"none",pos:t}}}flowEnumCheckExplicitTypeMismatch(t,e,s){const{explicitType:r}=e;null!==r&&r!==s&&this.flowEnumErrorInvalidMemberInitializer(t,e)}flowEnumMembers(t){let{enumName:e,explicitType:s}=t;const r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}const t=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),u=a.name;if(""===u)continue;/^[a-z]/.test(u)&&this.flowEnumErrorInvalidMemberName(a.start,{enumName:e,memberName:u}),r.has(u)&&this.flowEnumErrorDuplicateMemberName(a.start,{enumName:e,memberName:u}),r.add(u);const h={enumName:e,explicitType:s,memberName:u};switch(t.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.pos,h,"boolean"),t.init=o.value,i.booleanMembers.push(this.finishNode(t,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.pos,h,"number"),t.init=o.value,i.numberMembers.push(this.finishNode(t,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.pos,h,"string"),t.init=o.value,i.stringMembers.push(this.finishNode(t,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.pos,h);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.pos,h);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.pos,h);break;default:i.defaultedMembers.push(this.finishNode(t,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:n}}flowEnumStringMembers(t,e,s){let{enumName:r}=s;if(0===t.length)return e;if(0===e.length)return t;if(e.length>t.length){for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitailized(e.start,{enumName:r});return e}for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitailized(t.start,{enumName:r});return t}flowEnumParseExplicitType(t){let{enumName:e}=t;if(this.eatContextual(95)){if(!Uc(this.state.type))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:null});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:t}),t}return null}flowEnumBody(t,e){let{enumName:s,nameLoc:r}=e;const i=this.flowEnumParseExplicitType({enumName:s});this.expect(5);const{members:n,hasUnknownMembers:a}=this.flowEnumMembers({enumName:s,explicitType:i});switch(t.hasUnknownMembers=a,i){case"boolean":return t.explicitType=!0,t.members=n.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=n.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=n.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{const e=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;const i=n.booleanMembers.length,a=n.numberMembers.length,o=n.stringMembers.length,u=n.defaultedMembers.length;if(i||a||o||u){if(i||a){if(!a&&!o&&i>=u){for(const t of n.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(t.start,{enumName:s,memberName:t.id.name});return t.members=n.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}if(!i&&!o&&a>=u){for(const t of n.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(t.start,{enumName:s,memberName:t.id.name});return t.members=n.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(r,{enumName:s}),e()}return t.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(t,"EnumStringBody")}return e()}}}flowParseEnumDeclaration(t){const e=this.parseIdentifier();return t.id=e,t.body=this.flowEnumBody(this.startNode(),{enumName:e.name,nameLoc:e.start}),this.finishNode(t,"EnumDeclaration")}isLookaheadToken_lt(){const t=this.nextTokenStart();if(60===this.input.charCodeAt(t)){const e=this.input.charCodeAt(t+1);return 60!==e&&61!==e}return!1}maybeUnwrapTypeCastExpression(t){return"TypeCastExpression"===t.type?t.expression:t}},typescript:t=>class extends t{getScopeHandler(){return ed}tsIsIdentifier(){return Uc(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(49)||this.match(21)||this.match(128)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(t,e){if(!Uc(this.state.type))return;const s=this.state.value;if(-1!==t.indexOf(s)){if(e&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers(t,e,s,r,i){const n=(e,s,r,i)=>{s===r&&t[i]&&this.raise(e,rd.InvalidModifiersOrder,r,i)},a=(e,s,r,i)=>{(t[r]&&s===i||t[i]&&s===r)&&this.raise(e,rd.IncompatibleModifiers,r,i)};for(;;){const o=this.state.start,u=this.tsParseModifier(e.concat(null!=s?s:[]),i);if(!u)break;id(u)?t.accessibility?this.raise(o,rd.DuplicateAccessibilityModifier):(n(o,u,u,"override"),n(o,u,u,"static"),n(o,u,u,"readonly"),t.accessibility=u):(Object.hasOwnProperty.call(t,u)?this.raise(o,rd.DuplicateModifier,u):(n(o,u,"static","readonly"),n(o,u,"static","override"),n(o,u,"override","readonly"),n(o,u,"abstract","override"),a(o,u,"declare","override"),a(o,u,"static","abstract")),t[u]=!0),null!=s&&s.includes(u)&&this.raise(o,r,u)}}tsIsListTerminator(t){switch(t){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(44)}throw new Error("Unreachable")}tsParseList(t,e){const s=[];for(;!this.tsIsListTerminator(t);)s.push(e());return s}tsParseDelimitedList(t,e,s){return function(t){if(null==t)throw new Error("Unexpected ".concat(t," value."));return t}(this.tsParseDelimitedListWorker(t,e,!0,s))}tsParseDelimitedListWorker(t,e,s,r){const i=[];let n=-1;for(;!this.tsIsListTerminator(t);){n=-1;const r=e();if(null==r)return;if(i.push(r),!this.eat(12)){if(this.tsIsListTerminator(t))break;return void(s&&this.expect(12))}n=this.state.lastTokStart}return r&&(r.value=n),i}tsParseBracketedList(t,e,s,r,i){r||(s?this.expect(0):this.expect(43));const n=this.tsParseDelimitedList(t,e,i);return s?this.expect(3):this.expect(44),n}tsParseImportType(){const t=this.startNode();return this.expect(77),this.expect(10),this.match(123)||this.raise(this.state.start,rd.UnsupportedImportTypeArgument),t.argument=this.parseExprAtom(),this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName(!0)),this.match(43)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseEntityName(t){let e=this.parseIdentifier();for(;this.eat(16);){const s=this.startNodeAtNode(e);s.left=e,s.right=this.parseIdentifier(t),e=this.finishNode(s,"TSQualifiedName")}return e}tsParseTypeReference(){const t=this.startNode();return t.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.match(43)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();const e=this.startNodeAtNode(t);return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),e.asserts=!1,this.finishNode(e,"TSTypePredicate")}tsParseThisTypeNode(){const t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){const t=this.startNode();return this.expect(81),this.match(77)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(!0),this.finishNode(t,"TSTypeQuery")}tsParseTypeParameter(){const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(75),t.default=this.tsEatThenParseType(27),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.match(43))return this.tsParseTypeParameters()}tsParseTypeParameters(){const t=this.startNode();this.match(43)||this.match(132)?this.next():this.unexpected();const e={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0,e),0===t.params.length&&this.raise(t.start,rd.EmptyTypeParameters),-1!==e.value&&this.addExtra(t,"trailingComma",e.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return 69===this.lookahead().type?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(t,e){const s=19===t;e.typeParameters=this.tsTryParseTypeParameters(),this.expect(10),e.parameters=this.tsParseBindingListForSignature(),(s||this.match(t))&&(e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){return this.parseBindingList(11,41).map((t=>("Identifier"!==t.type&&"RestElement"!==t.type&&"ObjectPattern"!==t.type&&"ArrayPattern"!==t.type&&this.raise(t.start,rd.UnsupportedSignatureParameterKind,t.type),t)))}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(t,e){return this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!Uc(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(t){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const e=this.parseIdentifier();e.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(e),this.expect(3),t.parameters=[e];const s=this.tsTryParseTypeAnnotation();return s&&(t.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,e){this.eat(17)&&(t.optional=!0);const s=t;if(this.match(10)||this.match(43)){e&&this.raise(t.start,rd.ReadonlyForMethodSignature);const r=s;if(r.kind&&this.match(43)&&this.raise(this.state.pos,rd.AccesorCannotHaveTypeParameters),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),"get"===r.kind)r.parameters.length>0&&(this.raise(this.state.pos,Dc.BadGetterArity),this.isThisParam(r.parameters[0])&&this.raise(this.state.pos,rd.AccesorCannotDeclareThisParameter));else if("set"===r.kind){if(1!==r.parameters.length)this.raise(this.state.pos,Dc.BadSetterArity);else{const t=r.parameters[0];this.isThisParam(t)&&this.raise(this.state.pos,rd.AccesorCannotDeclareThisParameter),"Identifier"===t.type&&t.optional&&this.raise(this.state.pos,rd.SetAccesorCannotHaveOptionalParameter),"RestElement"===t.type&&this.raise(this.state.pos,rd.SetAccesorCannotHaveRestParameter)}r.typeAnnotation&&this.raise(r.typeAnnotation.start,rd.SetAccesorCannotHaveReturnType)}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const t=s;e&&(t.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSPropertySignature")}}tsParseTypeMember(){const t=this.startNode();if(this.match(10)||this.match(43))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(71)){const e=this.startNode();return this.next(),this.match(10)||this.match(43)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(e,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers(t,["readonly"],["declare","abstract","private","protected","public","static","override"],rd.InvalidModifierOnTypeMember);const e=this.tsTryParseIndexSignature(t);return e||(this.parsePropertyName(t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,this.parsePropertyName(t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){const t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(47)?this.isContextual(112):(this.isContextual(112)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(52))))}tsParseMappedTypeParameter(){const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(52),this.finishNode(t,"TSTypeParameter")}tsParseMappedType(){const t=this.startNode();return this.expect(5),this.match(47)?(t.readonly=this.state.value,this.next(),this.expectContextual(112)):this.eatContextual(112)&&(t.readonly=!0),this.expect(0),t.typeParameter=this.tsParseMappedTypeParameter(),t.nameType=this.eatContextual(87)?this.tsParseType():null,this.expect(3),this.match(47)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){const t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let e=!1,s=null;return t.elementTypes.forEach((t=>{var r;let{type:i}=t;!e||"TSRestType"===i||"TSOptionalType"===i||"TSNamedTupleMember"===i&&t.optional||this.raise(t.start,rd.OptionalTypeBeforeRequired),e=e||"TSNamedTupleMember"===i&&t.optional||"TSOptionalType"===i,"TSRestType"===i&&(i=(t=t.typeAnnotation).type);const n="TSNamedTupleMember"===i;s=null!=(r=s)?r:n,s!==n&&this.raise(t.start,rd.MixedLabeledAndUnlabeledElements)})),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){const{start:t,startLoc:e}=this.state,s=this.eat(21);let r=this.tsParseType();const i=this.eat(17);if(this.eat(14)){const t=this.startNodeAtNode(r);t.optional=i,"TSTypeReference"!==r.type||r.typeParameters||"Identifier"!==r.typeName.type?(this.raise(r.start,rd.InvalidTupleMemberLabel),t.label=r):t.label=r.typeName,t.elementType=this.tsParseType(),r=this.finishNode(t,"TSNamedTupleMember")}else if(i){const t=this.startNodeAtNode(r);t.typeAnnotation=r,r=this.finishNode(t,"TSOptionalType")}if(s){const s=this.startNodeAt(t,e);s.typeAnnotation=r,r=this.finishNode(s,"TSRestType")}return r}tsParseParenthesizedType(){const t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,e){const s=this.startNode();return"TSConstructorType"===t&&(s.abstract=!!e,e&&this.next(),this.next()),this.tsFillSignature(19,s),this.finishNode(s,t)}tsParseLiteralTypeNode(){const t=this.startNode();return t.literal=(()=>{switch(this.state.type){case 124:case 125:case 123:case 79:case 80:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){const t=this.startNode();return t.literal=this.parseTemplate(!1),this.finishNode(t,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const t=this.tsParseThisTypeNode();return this.isContextual(107)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 123:case 124:case 125:case 79:case 80:return this.tsParseLiteralTypeNode();case 47:if("-"===this.state.value){const t=this.startNode(),e=this.lookahead();if(124!==e.type&&125!==e.type)throw this.unexpected();return t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case 72:return this.tsParseThisTypeOrThisTypePredicate();case 81:return this.tsParseTypeQuery();case 77: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 22:return this.tsParseTemplateLiteralType();default:{const{type:t}=this.state;if(Uc(t)||82===t||78===t){const e=82===t?"TSVoidKeyword":78===t?"TSNullKeyword":function(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}}(this.state.value);if(void 0!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const e=this.startNodeAtNode(t);e.elementType=t,this.expect(3),t=this.finishNode(e,"TSArrayType")}else{const e=this.startNodeAtNode(t);e.objectType=t,e.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(e,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const t=this.startNode(),e=this.state.value;return this.next(),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(t.start,rd.UnexpectedReadonly)}}tsParseInferType(){const t=this.startNode();this.expectContextual(106);const e=this.startNode();return e.name=this.tsParseTypeParameterName(),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseTypeOperatorOrHigher(){var t;return(t=this.state.type)>=111&&t<=113&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(106)?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(t,e,s){const r=this.startNode(),i=this.eat(s),n=[];do{n.push(e())}while(this.eat(s));return 1!==n.length||i?(r.types=n,this.finishNode(r,t)):n[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),41)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),39)}tsIsStartOfFunctionType(){return!!this.match(43)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Uc(this.state.type)||this.match(72))return this.next(),!0;if(this.match(5)){let t=1;for(this.next();t>0;)this.match(5)?++t:this.match(8)&&--t,this.next();return!0}if(this.match(0)){let t=1;for(this.next();t>0;)this.match(0)?++t:this.match(3)&&--t,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(27))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType((()=>{const e=this.startNode();this.expect(t);const s=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(72)){let t=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===t.type?(s.parameterName=t,s.asserts=!0,s.typeAnnotation=null,t=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(t,s),t.asserts=!0),e.typeAnnotation=t,this.finishNode(e,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(s.parameterName=this.parseIdentifier(),s.asserts=r,s.typeAnnotation=null,e.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,e);const n=this.tsParseTypeAnnotation(!1);return s.parameterName=i,s.typeAnnotation=n,s.asserts=r,e.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const t=this.parseIdentifier();if(this.isContextual(107)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(100!==this.state.type)return!1;const t=this.state.containsEsc;return this.next(),!(!Uc(this.state.type)&&!this.match(72))&&(t&&this.raise(this.state.lastTokStart,Dc.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((()=>{t&&this.expect(14),e.typeAnnotation=this.tsParseType()})),this.finishNode(e,"TSTypeAnnotation")}tsParseType(){sd(this.state.inType);const t=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(75))return t;const e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsParseNonConditionalType(),this.expect(17),e.trueType=this.tsParseType(),this.expect(14),e.falseType=this.tsParseType(),this.finishNode(e,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(114)&&71===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(71)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(this.state.start,rd.ReservedTypeAssertion);const t=this.startNode(),e=this.tsTryNextParseConstantContext();return t.typeAnnotation=e||this.tsNextThenParseType(),this.expect(44),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){const e=this.state.start,s=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return s.length||this.raise(e,rd.EmptyHeritageClauseType,t),s}tsParseExpressionWithTypeArguments(){const t=this.startNode();return t.expression=this.tsParseEntityName(!1),this.match(43)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(t){Uc(this.state.type)?(t.id=this.parseIdentifier(),this.checkLVal(t.id,"typescript interface declaration",130)):(t.id=null,this.raise(this.state.start,rd.MissingInterfaceName)),t.typeParameters=this.tsTryParseTypeParameters(),this.eat(75)&&(t.extends=this.tsParseHeritageClause("extends"));const e=this.startNode();return e.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(e,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkLVal(t.id,"typescript type alias",2),t.typeParameters=this.tsTryParseTypeParameters(),t.typeAnnotation=this.tsInType((()=>{if(this.expect(27),this.isContextual(105)&&16!==this.lookahead().type){const t=this.startNode();return this.next(),this.finishNode(t,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInNoContext(t){const e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}}tsInType(t){const e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}}tsEatThenParseType(t){return this.match(t)?this.tsNextThenParseType():void 0}tsExpectThenParseType(t){return this.tsDoThenParseType((()=>this.expect(t)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(t){return this.tsInType((()=>(t(),this.tsParseType())))}tsParseEnumMember(){const t=this.startNode();return t.id=this.match(123)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(27)&&(t.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,e){return e&&(t.const=!0),t.id=this.parseIdentifier(),this.checkLVal(t.id,"typescript enum declaration",e?779:267),this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumDeclaration")}tsParseModuleBlock(){const t=this.startNode();return this.scope.enter(0),this.expect(5),this.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.id=this.parseIdentifier(),e||this.checkLVal(t.id,"module or namespace declaration",1024),this.eat(16)){const e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e,!0),t.body=e}else this.scope.enter(Dl),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(103)?(t.global=!0,t.id=this.parseIdentifier()):this.match(123)?t.id=this.parseExprAtom():this.unexpected(),this.match(5)?(this.scope.enter(Dl),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,e){t.isExport=e||!1,t.id=this.parseIdentifier(),this.checkLVal(t.id,"import equals declaration",9),this.expect(27);const s=this.tsParseModuleReference();return"type"===t.importKind&&"TSExternalModuleReference"!==s.type&&this.raise(s.start,rd.ImportAliasHasImportType),t.moduleReference=s,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(110)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const t=this.startNode();if(this.expectContextual(110),this.expect(10),!this.match(123))throw this.unexpected();return t.expression=this.parseExprAtom(),this.expect(11),this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){const e=this.state.clone(),s=t();return this.state=e,s}tsTryParseAndCatch(t){const e=this.tryParse((e=>t()||e()));if(!e.aborted&&e.node)return e.error&&(this.state=e.failState),e.node}tsTryParse(t){const e=this.state.clone(),s=t();return void 0!==s&&!1!==s?s:void(this.state=e)}tsTryParseDeclare(t){if(this.isLineTerminator())return;let e,s=this.state.type;return this.isContextual(93)&&(s=68,e="let"),this.tsInAmbientContext((()=>{switch(s){case 62:return t.declare=!0,this.parseFunctionStatement(t,!1,!0);case 74:return t.declare=!0,this.parseClass(t,!0,!1);case 69:if(this.match(69)&&this.isLookaheadContextual("enum"))return this.expect(69),this.expectContextual(116),this.tsParseEnumDeclaration(t,!0);case 68:return e=e||this.state.value,this.parseVarStatement(t,e);case 103:return this.tsParseAmbientExternalModuleDeclaration(t);default:if(Uc(s))return this.tsParseDeclaration(t,this.state.value,!0)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(t,e){switch(e.name){case"declare":{const e=this.tsTryParseDeclare(t);if(e)return e.declare=!0,e;break}case"global":if(this.match(5)){this.scope.enter(Dl),this.prodParam.enter(0);const s=t;return s.global=!0,s.id=e,s.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,e.name,!1)}}tsParseDeclaration(t,e,s){switch(e){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(74)||Uc(this.state.type)))return this.tsParseAbstractDeclaration(t);break;case"enum":if(s||Uc(this.state.type))return s&&this.next(),this.tsParseEnumDeclaration(t,!1);break;case"interface":if(this.tsCheckLineTerminator(s)&&Uc(this.state.type))return this.tsParseInterfaceDeclaration(t);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(123))return this.tsParseAmbientExternalModuleDeclaration(t);if(Uc(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&Uc(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminator(s)&&Uc(this.state.type))return this.tsParseTypeAliasDeclaration(t)}}tsCheckLineTerminator(t){return t?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t,e){if(!this.match(43))return;const s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const r=this.tsTryParseAndCatch((()=>{const s=this.startNodeAt(t,e);return s.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s}));return this.state.maybeInArrowParameters=s,r?this.parseArrowExpression(r,null,!0):void 0}tsParseTypeArguments(){const t=this.startNode();return t.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(43),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===t.params.length&&this.raise(t.start,rd.EmptyTypeArguments),this.expect(44),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(t=this.state.type)>=114&&t<=120;var t}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(t,e){const s=this.state.start,r=this.state.startLoc;let i,n=!1,a=!1;if(void 0!==t){const e={};this.tsParseModifiers(e,["public","private","protected","override","readonly"]),i=e.accessibility,a=e.override,n=e.readonly,!1===t&&(i||n||a)&&this.raise(s,rd.UnexpectedParameterModifier)}const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o);const u=this.parseMaybeDefault(o.start,o.loc.start,o);if(i||n||a){const t=this.startNodeAt(s,r);return e.length&&(t.decorators=e),i&&(t.accessibility=i),n&&(t.readonly=n),a&&(t.override=a),"Identifier"!==u.type&&"AssignmentPattern"!==u.type&&this.raise(t.start,rd.UnsupportedParameterPropertyKind),t.parameter=u,this.finishNode(t,"TSParameterProperty")}return e.length&&(o.decorators=e),u}parseFunctionBodyAndFinish(t,e){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const r="FunctionDeclaration"===e?"TSDeclareFunction":"ClassMethod"===e||"ClassPrivateMethod"===e?"TSDeclareMethod":void 0;r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(t.start,rd.DeclareFunctionHasImplementation),t.declare)?super.parseFunctionBodyAndFinish(t,r,s):super.parseFunctionBodyAndFinish(t,e,s)}registerFunctionStatementId(t){!t.body&&t.id?this.checkLVal(t.id,"function name",1024):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(t){t.forEach((t=>{"TSTypeCastExpression"===(null==t?void 0:t.type)&&this.raise(t.typeAnnotation.start,rd.UnexpectedTypeAnnotation)}))}toReferencedList(t,e){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(){const t=super.parseArrayLike(...arguments);return"ArrayExpression"===t.type&&this.tsCheckForInvalidTypeCasts(t.elements),t}parseSubscript(t,e,s,r,i){if(!this.hasPrecedingLineBreak()&&this.match(33)){this.state.canStartJSXElement=!1,this.next();const r=this.startNodeAt(e,s);return r.expression=t,this.finishNode(r,"TSNonNullExpression")}let n=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(this.match(43)){let a;const o=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(t)){const t=this.tsTryParseGenericAsyncArrowFunction(e,s);if(t)return t}const o=this.startNodeAt(e,s);o.callee=t;const u=this.tsParseTypeArguments();if(u){if(n&&!this.match(10)&&(a=this.state.pos,this.unexpected()),!r&&this.eat(10))return o.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(o.arguments),o.typeParameters=u,i.optionalChainMember&&(o.optional=n),this.finishCallExpression(o,i.optionalChainMember);if(this.match(22)){const r=this.parseTaggedTemplateExpression(t,e,s,i);return r.typeParameters=u,r}}this.unexpected()}));if(a&&this.unexpected(a,10),o)return o}return super.parseSubscript(t,e,s,r,i)}parseNewArguments(t){if(this.match(43)){const e=this.tsTryParseAndCatch((()=>{const t=this.tsParseTypeArguments();return this.match(10)||this.unexpected(),t}));e&&(t.typeParameters=e)}super.parseNewArguments(t)}parseExprOp(t,e,s,r){if(Kc(52)>r&&!this.hasPrecedingLineBreak()&&this.isContextual(87)){const i=this.startNodeAt(e,s);i.expression=t;const n=this.tsTryNextParseConstantContext();return i.typeAnnotation=n||this.tsNextThenParseType(),this.finishNode(i,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,e,s,r)}return super.parseExprOp(t,e,s,r)}checkReservedWord(t,e,s,r){}checkDuplicateExports(){}parseImport(t){if(t.importKind="value",Uc(this.state.type)||this.match(49)||this.match(5)){let e=this.lookahead();if(this.isContextual(120)&&12!==e.type&&91!==e.type&&27!==e.type&&(t.importKind="type",this.next(),e=this.lookahead()),Uc(this.state.type)&&27===e.type)return this.tsParseImportEqualsDeclaration(t)}const e=super.parseImport(t);return"type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(e.start,rd.TypeImportCannotSpecifyDefaultAndNamed),e}parseExport(t){if(this.match(77))return this.next(),this.isContextual(120)&&61!==this.lookaheadCharCode()?(t.importKind="type",this.next()):t.importKind="value",this.tsParseImportEqualsDeclaration(t,!0);if(this.eat(27)){const e=t;return e.expression=this.parseExpression(),this.semicolon(),this.finishNode(e,"TSExportAssignment")}if(this.eatContextual(87)){const e=t;return this.expectContextual(118),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration")}return this.isContextual(120)&&5===this.lookahead().type?(this.next(),t.exportKind="type"):t.exportKind="value",super.parseExport(t)}isAbstractClass(){return this.isContextual(114)&&74===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0),t}if(this.match(119)){const t=this.startNode();this.next();const e=this.tsParseInterfaceDeclaration(t);if(e)return e}return super.parseExportDefaultExpression()}parseStatementContent(t,e){if(69===this.state.type){if(116===this.lookahead().type){const t=this.startNode();return this.next(),this.expectContextual(116),this.tsParseEnumDeclaration(t,!0)}}return super.parseStatementContent(t,e)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,e){return e.some((e=>id(e)?t.accessibility===e:!!t[e]))}tsIsStartOfStaticBlocks(){return this.isContextual(98)&&123===this.lookaheadCharCode()}parseClassMember(t,e,s){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers(e,r,void 0,void 0,!0);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(e,r)&&this.raise(this.state.pos,rd.StaticBlockCannotHaveModifier),this.parseClassStaticBlock(t,e)):this.parseClassMemberWithIsStatic(t,e,s,!!e.static)};e.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(t,e,s,r){const i=this.tsTryParseIndexSignature(e);if(i)return t.body.push(i),e.abstract&&this.raise(e.start,rd.IndexSignatureHasAbstract),e.accessibility&&this.raise(e.start,rd.IndexSignatureHasAccessibility,e.accessibility),e.declare&&this.raise(e.start,rd.IndexSignatureHasDeclare),void(e.override&&this.raise(e.start,rd.IndexSignatureHasOverride));!this.state.inAbstractClass&&e.abstract&&this.raise(e.start,rd.NonAbstractClassHasAbstractMethod),e.override&&(s.hadSuperClass||this.raise(e.start,rd.OverrideNotInSubClass)),super.parseClassMemberWithIsStatic(t,e,s,r)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(t.start,rd.ClassMethodHasReadonly),t.declare&&this.match(10)&&this.raise(t.start,rd.ClassMethodHasDeclare)}parseExpressionStatement(t,e){return("Identifier"===e.type?this.tsParseExpressionStatement(t,e):void 0)||super.parseExpressionStatement(t,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(t,e,s,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(t,e,s,r);const i=this.tryParse((()=>super.parseConditional(t,e,s)));return i.node?(i.error&&(this.state=i.failState),i.node):(i.error&&super.setOptionalParametersError(r,i.error),t)}parseParenItem(t,e,s){if(t=super.parseParenItem(t,e,s),this.eat(17)&&(t.optional=!0,this.resetEndLocation(t)),this.match(14)){const r=this.startNodeAt(e,s);return r.expression=t,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return t}parseExportDeclaration(t){const e=this.state.start,s=this.state.startLoc,r=this.eatContextual(115);if(r&&(this.isContextual(115)||!this.shouldParseExportDeclaration()))throw this.raise(this.state.start,rd.ExpectedAmbientAfterExportDeclare);let i;return Uc(this.state.type)&&(i=this.tsTryParseExportDeclaration()),i||(i=super.parseExportDeclaration(t)),i&&("TSInterfaceDeclaration"===i.type||"TSTypeAliasDeclaration"===i.type||r)&&(t.exportKind="type"),i&&r&&(this.resetStartLocation(i,e,s),i.declare=!0),i}parseClassId(t,e,s){if((!e||s)&&this.isContextual(104))return;super.parseClassId(t,e,s,t.declare?1024:139);const r=this.tsTryParseTypeParameters();r&&(t.typeParameters=r)}parseClassPropertyAnnotation(t){!t.optional&&this.eat(33)&&(t.definite=!0);const e=this.tsTryParseTypeAnnotation();e&&(t.typeAnnotation=e)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&this.match(27)&&this.raise(this.state.start,rd.DeclareClassFieldHasInitializer),t.abstract&&this.match(27)){const{key:e}=t;this.raise(this.state.start,rd.AbstractPropertyHasInitializer,"Identifier"!==e.type||t.computed?"[".concat(this.input.slice(e.start,e.end),"]"):e.name)}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(t.start,rd.PrivateElementHasAbstract),t.accessibility&&this.raise(t.start,rd.PrivateElementHasAccessibility,t.accessibility),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}pushClassMethod(t,e,s,r,i,n){const a=this.tsTryParseTypeParameters();a&&i&&this.raise(a.start,rd.ConstructorHasTypeParameters),!e.declare||"get"!==e.kind&&"set"!==e.kind||this.raise(e.start,rd.DeclareAccessor,e.kind),a&&(e.typeParameters=a),super.pushClassMethod(t,e,s,r,i,n)}pushClassPrivateMethod(t,e,s,r){const i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i),super.pushClassPrivateMethod(t,e,s,r)}declareClassPrivateMethodInScope(t,e){"TSDeclareMethod"!==t.type&&("MethodDefinition"!==t.type||t.value.body)&&super.declareClassPrivateMethodInScope(t,e)}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&this.match(43)&&(t.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual(104)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t){const e=this.tsTryParseTypeParameters();e&&(t.typeParameters=e);for(var s=arguments.length,r=new Array(s>1?s-1:0),i=1;i<s;i++)r[i-1]=arguments[i];super.parseObjPropValue(t,...r)}parseFunctionParams(t,e){const s=this.tsTryParseTypeParameters();s&&(t.typeParameters=s),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),"Identifier"===t.id.type&&this.eat(33)&&(t.definite=!0);const s=this.tsTryParseTypeAnnotation();s&&(t.id.typeAnnotation=s,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,e)}parseMaybeAssign(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];var r,i,n,a,o,u,h;let p,c,l,d;if(this.hasPlugin("jsx")&&(this.match(132)||this.match(43))){if(p=this.state.clone(),c=this.tryParse((()=>super.parseMaybeAssign(...e)),p),!c.error)return c.node;const{context:t}=this.state;t[t.length-1]===Ac.j_oTag?t.length-=2:t[t.length-1]===Ac.j_expr&&(t.length-=1)}if(!(null!=(r=c)&&r.error||this.match(43)))return super.parseMaybeAssign(...e);p=p||this.state.clone();const D=this.tryParse((t=>{var s,r;d=this.tsParseTypeParameters();const i=super.parseMaybeAssign(...e);return("ArrowFunctionExpression"!==i.type||null!=(s=i.extra)&&s.parenthesized)&&t(),0!==(null==(r=d)?void 0:r.params.length)&&this.resetStartLocationFromNode(i,d),i.typeParameters=d,i}),p);if(!D.error&&!D.aborted)return d&&this.reportReservedArrowTypeParam(d),D.node;if(!c&&(sd(!this.hasPlugin("jsx")),l=this.tryParse((()=>super.parseMaybeAssign(...e)),p),!l.error))return l.node;if(null!=(i=c)&&i.node)return this.state=c.failState,c.node;if(D.node)return this.state=D.failState,d&&this.reportReservedArrowTypeParam(d),D.node;if(null!=(n=l)&&n.node)return this.state=l.failState,l.node;if(null!=(a=c)&&a.thrown)throw c.error;if(D.thrown)throw D.error;if(null!=(o=l)&&o.thrown)throw l.error;throw(null==(u=c)?void 0:u.error)||D.error||(null==(h=l)?void 0:h.error)}reportReservedArrowTypeParam(t){var e;1!==t.params.length||null!=(e=t.extra)&&e.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(t.start,rd.ReservedArrowTypeParam)}parseMaybeUnary(t){return!this.hasPlugin("jsx")&&this.match(43)?this.tsParseTypeAssertion():super.parseMaybeUnary(t)}parseArrow(t){if(this.match(14)){const e=this.tryParse((t=>{const e=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||t(),e}));if(e.aborted)return;e.thrown||(e.error&&(this.state=e.failState),t.returnType=e.node)}return super.parseArrow(t)}parseAssignableListItemTypes(t){this.eat(17)&&("Identifier"===t.type||this.state.isAmbientContext||this.state.inType||this.raise(t.start,rd.PatternIsOptional),t.optional=!0);const e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e),this.resetEndLocation(t),t}isAssignable(t,e){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,e);case"TSParameterProperty":return!0;default:return super.isAssignable(t,e)}}toAssignable(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(t.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(t),e);case"TSParameterProperty":default:return super.toAssignable(t,e);case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(t,e);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return t.expression=this.toAssignable(t.expression,e),t}}toAssignableParenthesizedExpression(t,e){switch(t.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return t.expression=this.toAssignable(t.expression,e),t;default:return super.toAssignable(t,e)}}checkLVal(t,e){for(var s,r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];switch(t.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(t.parameter,"parameter property",...i);case"TSAsExpression":case"TSTypeAssertion":if(!(i[0]||"parenthesized expression"===e||null!=(s=t.extra)&&s.parenthesized)){this.raise(t.start,Dc.InvalidLhs,e);break}return void this.checkLVal(t.expression,"parenthesized expression",...i);case"TSNonNullExpression":return void this.checkLVal(t.expression,e,...i);default:return void super.checkLVal(t,e,...i)}}parseBindingAtom(){return 72===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t){if(this.match(43)){const e=this.tsParseTypeArguments();if(this.match(10)){const s=super.parseMaybeDecoratorArguments(t);return s.typeParameters=e,s}this.unexpected(this.state.start,10)}return super.parseMaybeDecoratorArguments(t)}checkCommaAfterRest(t){this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?this.next():super.checkCommaAfterRest(t)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(33)||this.match(14)||super.isClassProperty()}parseMaybeDefault(){const t=super.parseMaybeDefault(...arguments);return"AssignmentPattern"===t.type&&t.typeAnnotation&&t.right.start<t.typeAnnotation.start&&this.raise(t.typeAnnotation.start,rd.TypeAnnotationAfterAssign),t}getTokenFromCode(t){if(this.state.inType){if(62===t)return this.finishOp(44,1);if(60===t)return this.finishOp(43,1)}return super.getTokenFromCode(t)}reScan_lt_gt(){const{type:t}=this.state;43===t?(this.state.pos-=1,this.readToken_lt()):44===t&&(this.state.pos-=1,this.readToken_gt())}toAssignableList(t){for(let e=0;e<t.length;e++){const s=t[e];if(s)switch(s.type){case"TSTypeCastExpression":t[e]=this.typeCastToParameter(s);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(s.start,rd.UnexpectedTypeCastInParameter):t[e]=this.typeCastToParameter(s)}}return super.toAssignableList(...arguments)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.end,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(t){return this.match(14)?t.every((t=>this.isAssignable(t,!0))):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(43)){const e=this.tsTryParseAndCatch((()=>this.tsParseTypeArguments()));e&&(t.typeParameters=e)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){const e=super.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t)[0];return s&&this.isThisParam(s)?e+1:e}parseCatchClauseParam(){const t=super.parseCatchClauseParam(),e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e,this.resetEndLocation(t)),t}tsInAmbientContext(t){const e=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return t()}finally{this.state.isAmbientContext=e}}parseClass(t){const e=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{for(var s=arguments.length,r=new Array(s>1?s-1:0),i=1;i<s;i++)r[i-1]=arguments[i];return super.parseClass(t,...r)}finally{this.state.inAbstractClass=e}}tsParseAbstractDeclaration(t){if(this.match(74))return t.abstract=!0,this.parseClass(t,!0,!1);if(this.isContextual(119)){if(!this.hasFollowingLineBreak())return t.abstract=!0,this.raise(t.start,rd.NonClassMethodPropertyHasAbstractModifer),this.next(),this.tsParseInterfaceDeclaration(t)}else this.unexpected(null,74)}parseMethod(){const t=super.parseMethod(...arguments);if(t.abstract){if(this.hasPlugin("estree")?!!t.value.body:!!t.body){const{key:e}=t;this.raise(t.start,rd.AbstractMethodHasImplementation,"Identifier"!==e.type||t.computed?"[".concat(this.input.slice(e.start,e.end),"]"):e.name)}}return t}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(t,e,s,r){return!e&&r?(this.parseTypeOnlyImportExportSpecifier(t,!1,s),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,e,s,r))}parseImportSpecifier(t,e,s,r){return!e&&r?(this.parseTypeOnlyImportExportSpecifier(t,!0,s),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,e,s,r))}parseTypeOnlyImportExportSpecifier(t,e,s){const r=e?"imported":"local",i=e?"local":"exported";let n,a=t[r],o=!1,u=!0;const h=a.start;if(this.isContextual(87)){const t=this.parseIdentifier();if(this.isContextual(87)){const e=this.parseIdentifier();_c(this.state.type)?(o=!0,a=t,n=this.parseIdentifier(),u=!1):(n=e,u=!1)}else _c(this.state.type)?(u=!1,n=this.parseIdentifier()):(o=!0,a=t)}else _c(this.state.type)&&(o=!0,a=this.parseIdentifier());o&&s&&this.raise(h,e?rd.TypeModifierIsUsedInTypeImports:rd.TypeModifierIsUsedInTypeExports),t[r]=a,t[i]=n;t[e?"importKind":"exportKind"]=o?"type":"value",u&&this.eatContextual(87)&&(t[i]=e?this.parseIdentifier():this.parseModuleExportName()),t[i]||(t[i]=_l(t[r])),e&&this.checkLVal(t[i],"import specifier",9)}},v8intrinsic:t=>class extends t{parseV8Intrinsic(){if(this.match(48)){const t=this.state.start,e=this.startNode();if(this.next(),Uc(this.state.type)){const t=this.parseIdentifierName(this.state.start),s=this.createIdentifier(e,t);if(s.type="V8IntrinsicIdentifier",this.match(10))return s}this.unexpected(t)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:t=>class extends t{parsePlaceholder(t){if(this.match(134)){const e=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),e.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(134),this.finishPlaceholder(e,t)}}finishPlaceholder(t,e){const s=!(!t.expectedNode||"Placeholder"!==t.type);return t.expectedNode=e,s?t:this.finishNode(t,"Placeholder")}getTokenFromCode(t){return 37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(134,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(t){void 0!==t&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(t){"Placeholder"!==t.type&&super.checkLVal(...arguments)}toAssignable(t){return t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?(t.expectedNode="Pattern",t):super.toAssignable(...arguments)}isLet(t){if(super.isLet(t))return!0;if(!this.isContextual(93))return!1;if(t)return!1;return 134===this.lookahead().type}verifyBreakContinue(t){t.label&&"Placeholder"===t.label.type||super.verifyBreakContinue(...arguments)}parseExpressionStatement(t,e){if("Placeholder"!==e.type||e.extra&&e.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(14)){const s=t;return s.label=this.finishPlaceholder(e,"Identifier"),this.next(),s.body=this.parseStatement("label"),this.finishNode(s,"LabeledStatement")}return this.semicolon(),t.name=e.name,this.finishPlaceholder(t,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(t,e,s){const r=e?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(t);const i=this.state.strict,n=this.parsePlaceholder("Identifier");if(n)if(this.match(75)||this.match(134)||this.match(5))t.id=n;else{if(s||!e)return t.id=null,t.body=this.finishPlaceholder(n,"ClassBody"),this.finishNode(t,r);this.unexpected(null,nd.ClassNameIsRequired)}else this.parseClassId(t,e,s);return this.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!t.superClass,i),this.finishNode(t,r)}parseExport(t){const e=this.parsePlaceholder("Identifier");if(!e)return super.parseExport(...arguments);if(!this.isContextual(91)&&!this.match(12))return t.specifiers=[],t.source=null,t.declaration=this.finishPlaceholder(e,"Declaration"),this.finishNode(t,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const s=this.startNode();return s.exported=e,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(t)}isExportDefaultSpecifier(){if(this.match(59)){const t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(Wc(134),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t){return!!(t.specifiers&&t.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(t){const{specifiers:e}=t;null!=e&&e.length&&(t.specifiers=e.filter((t=>"Placeholder"===t.exported.type))),super.checkExport(t),t.specifiers=e}parseImport(t){const e=this.parsePlaceholder("Identifier");if(!e)return super.parseImport(...arguments);if(t.specifiers=[],!this.isContextual(91)&&!this.match(12))return t.source=this.finishPlaceholder(e,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");const s=this.startNodeAtNode(e);if(s.local=e,this.finishNode(s,"ImportDefaultSpecifier"),t.specifiers.push(s),this.eat(12)){this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)}return this.expectContextual(91),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}}},ld=Object.keys(cd),dd={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0};const Dd=t=>"ParenthesizedExpression"===t.type?Dd(t.expression):t;const md=new Map([["ArrowFunctionExpression","arrow function"],["AssignmentExpression","assignment"],["ConditionalExpression","conditional"],["YieldExpression","yield"]]);const fd={kind:"loop"},yd={kind:"switch"},Ed=/[\uD800-\uDFFF]/u,Ad=/in(?:stanceof)?/y;class Cd extends class extends class extends class extends class extends class extends class extends class extends class extends class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){return this.plugins.has(t)}getPluginOption(t,e){if(this.hasPlugin(t))return this.plugins.get(t)[e]}}{addComment(t){this.filename&&(t.loc.filename=this.filename),this.state.comments.push(t)}processComment(t){const{commentStack:e}=this.state,s=e.length;if(0===s)return;let r=s-1;const i=e[r];i.start===t.end&&(i.leadingNode=t,r--);const{start:n}=t;for(;r>=0;r--){const s=e[r],i=s.end;if(!(i>n)){i===n&&(s.trailingNode=t);break}s.containingNode=t,this.finalizeComment(s),e.splice(r,1)}}finalizeComment(t){const{comments:e}=t;if(null!==t.leadingNode||null!==t.trailingNode)null!==t.leadingNode&&pc(t.leadingNode,e),null!==t.trailingNode&&function(t,e){void 0===t.leadingComments?t.leadingComments=e:t.leadingComments.unshift(...e)}(t.trailingNode,e);else{const{containingNode:s,start:r}=t;if(44===this.input.charCodeAt(r-1))switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":lc(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":lc(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":lc(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":lc(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":lc(s,s.specifiers,t);break;default:cc(s,e)}else cc(s,e)}}finalizeRemainingComments(){const{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){const{commentStack:e}=this.state,{length:s}=e;if(0===s)return;const r=e[s-1];r.leadingNode===t&&(r.leadingNode=null)}takeSurroundingComments(t,e,s){const{commentStack:r}=this.state,i=r.length;if(0===i)return;let n=i-1;for(;n>=0;n--){const i=r[n],a=i.end;if(i.start===s)i.leadingNode=t;else if(a===e)i.trailingNode=t;else if(a<e)break}}}{getLocationForPosition(t){let e;return e=t===this.state.start?this.state.startLoc:t===this.state.lastTokStart?this.state.lastTokStartLoc:t===this.state.end?this.state.endLoc:t===this.state.lastTokEnd?this.state.lastTokEndLoc:function(t,e){let s,r=1,i=0;for(rc.lastIndex=0;(s=rc.exec(t))&&s.index<e;)r++,i=rc.lastIndex;return new uc(r,e-i)}(this.input,t),e}raise(t,e){let{code:s,reasonCode:r,template:i}=e;for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];return this.raiseWithData(t,{code:s,reasonCode:r},i,...a)}raiseOverwrite(t,e){let{code:s,template:r}=e;for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];const o=this.getLocationForPosition(t),u=r.replace(/%(\d+)/g,((t,e)=>n[e]))+" (".concat(o.line,":").concat(o.column,")");if(this.options.errorRecovery){const e=this.state.errors;for(let s=e.length-1;s>=0;s--){const r=e[s];if(r.pos===t)return Object.assign(r,{message:u});if(r.pos<t)break}}return this._raise({code:s,loc:o,pos:t},u)}raiseWithData(t,e,s){for(var r=arguments.length,i=new Array(r>3?r-3:0),n=3;n<r;n++)i[n-3]=arguments[n];const a=this.getLocationForPosition(t),o=s.replace(/%(\d+)/g,((t,e)=>i[e]))+" (".concat(a.line,":").concat(a.column,")");return this._raise(Object.assign({loc:a,pos:t},e),o)}_raise(t,e){const s=new SyntaxError(e);if(Object.assign(s,t),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(s),s;throw s}}{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.state=new gl,this.state.init(t),this.input=e,this.length=e.length,this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new wl(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return!!this.match(t)&&(this.next(),!0)}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,lastTokEnd:t.end,context:[this.curContext()],inType:t.inType}}lookahead(){const t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return nc.lastIndex=t,nc.test(this.input)?nc.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if(55296==(64512&e)&&++t<this.input.length){const s=this.input.charCodeAt(t);56320==(64512&s)&&(e=65536+((1023&e)<<10)+(1023&s))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(((t,e)=>this.raise(e,t))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const t=this.curContext();t.preserveSpace||this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(129):t===Ac.template?this.readTmplToken():this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(){let t;this.isLookahead||(t=this.state.curPosition());const e=this.state.pos,s=this.input.indexOf("*/",e+2);if(-1===s)throw this.raise(e,Dc.UnterminatedComment);for(this.state.pos=s+2,rc.lastIndex=e+2;rc.test(this.input)&&rc.lastIndex<=s;)++this.state.curLine,this.state.lineStart=rc.lastIndex;if(this.isLookahead)return;const r={type:"CommentBlock",value:this.input.slice(e+2,s),start:e,end:s+2,loc:new hc(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){const e=this.state.pos;let s;this.isLookahead||(s=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!ic(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const i=this.state.pos,n={type:"CommentLine",value:this.input.slice(e+t,i),start:e,end:i,loc:new hc(s,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}skipSpace(){const t=this.state.pos,e=[];t:for(;this.state.pos<this.length;){const s=this.input.charCodeAt(this.state.pos);switch(s){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++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:{const t=this.skipBlockComment();void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t));break}case 47:{const t=this.skipLineComment(2);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t));break}default:break t}break;default:if(oc(s))++this.state.pos;else if(45!==s||this.inModule){if(60!==s||this.inModule)break t;{const t=this.state.pos;if(33!==this.input.charCodeAt(t+1)||45!==this.input.charCodeAt(t+2)||45!==this.input.charCodeAt(t+3))break t;{const t=this.skipLineComment(4);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t))}}}else{const s=this.state.pos;if(45!==this.input.charCodeAt(s+1)||62!==this.input.charCodeAt(s+2)||!(0===t||this.state.lineStart>t))break t;{const t=this.skipLineComment(3);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t))}}}}if(e.length>0){const s={start:t,end:this.state.pos,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,e){this.state.end=this.state.pos;const s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||(this.state.endLoc=this.state.curPosition(),this.updateContext(s))}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(this.state.pos,Dc.UnexpectedDigitAfterHash);if(123===e||91===e&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,123===e?Dc.RecordExpressionHashIncorrectStartSyntaxType:Dc.TupleExpressionHashIncorrectStartSyntaxType);this.state.pos+=2,123===e?this.finishToken(7):this.finishToken(1)}else el(e)?(++this.state.pos,this.finishToken(128,this.readWord1(e))):92===e?(++this.state.pos,this.finishToken(128,this.readWord1())):this.finishOp(25,1)}readToken_dot(){const t=this.input.charCodeAt(this.state.pos+1);t>=48&&t<=57?this.readNumber(!0):46===t&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(29,2):this.finishOp(50,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(33!==t)return!1;const e=this.state.pos;for(this.state.pos+=1;!ic(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);const s=this.input.slice(e+2,this.state.pos);return this.finishToken(26,s),!0}readToken_mult_modulo(t){let e=42===t?49:48,s=1,r=this.input.charCodeAt(this.state.pos+1);42===t&&42===r&&(s++,r=this.input.charCodeAt(this.state.pos+2),e=51),61!==r||this.state.inType||(s++,e=37===t?31:28),this.finishOp(e,s)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);if(e!==t){if(124===t){if(62===e)return void this.finishOp(35,2);if(this.hasPlugin("recordAndTuple")&&125===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,Dc.RecordExpressionBarIncorrectEndSyntaxType);return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,Dc.TupleExpressionBarIncorrectEndSyntaxType);return this.state.pos+=2,void this.finishToken(4)}}61!==e?this.finishOp(124===t?39:41,1):this.finishOp(28,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(28,3):this.finishOp(124===t?37:38,2)}readToken_caret(){61!==this.input.charCodeAt(this.state.pos+1)||this.state.inType?this.finishOp(40,1):this.finishOp(30,2)}readToken_plus_min(t){const e=this.input.charCodeAt(this.state.pos+1);e!==t?61===e?this.finishOp(28,2):this.finishOp(47,1):this.finishOp(32,2)}readToken_lt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(60===e)return 61===this.input.charCodeAt(t+2)?void this.finishOp(28,3):void this.finishOp(46,2);61!==e?this.finishOp(43,1):this.finishOp(45,2)}readToken_gt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(62===e){const e=62===this.input.charCodeAt(t+2)?3:2;return 61===this.input.charCodeAt(t+e)?void this.finishOp(28,e+1):void this.finishOp(46,e)}61!==e?this.finishOp(44,1):this.finishOp(45,2)}readToken_eq_excl(t){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e)return 61===t&&62===e?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===t?27:33,1);this.finishOp(42,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);63===t?61===e?this.finishOp(28,3):this.finishOp(36,2):46!==t||e>=48&&e<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(t){switch(t){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,Dc.TupleExpressionBarIncorrectStartSyntaxType);this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,Dc.RecordExpressionBarIncorrectStartSyntaxType);this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(22);case 48:{const t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(34,1);case 64:return++this.state.pos,void this.finishToken(24);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(el(t))return void this.readWord(t)}throw this.raise(this.state.pos,Dc.InvalidOrUnexpectedToken,String.fromCodePoint(t))}finishOp(t,e){const s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){const t=this.state.start+1;let e,s,{pos:r}=this.state;for(;;++r){if(r>=this.length)throw this.raise(t,Dc.UnterminatedRegExp);const i=this.input.charCodeAt(r);if(ic(i))throw this.raise(t,Dc.UnterminatedRegExp);if(e)e=!1;else{if(91===i)s=!0;else if(93===i&&s)s=!1;else if(47===i&&!s)break;e=92===i}}const i=this.input.slice(t,r);++r;let n="";for(;r<this.length;){const t=this.codePointAtPos(r),e=String.fromCharCode(t);if(Tl.has(t))n.includes(e)&&this.raise(r+1,Dc.DuplicateRegExpFlags);else{if(!sl(t)&&92!==t)break;this.raise(r+1,Dc.MalformedRegExpFlags)}++r,n+=e}this.state.pos=r,this.finishToken(127,{pattern:i,flags:n})}readInt(t,e,s){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=this.state.pos,n=16===t?bl.hex:bl.decBinOct,a=16===t?Sl.hex:10===t?Sl.dec:8===t?Sl.oct:Sl.bin;let o=!1,u=0;for(let i=0,h=null==e?1/0:e;i<h;++i){const e=this.input.charCodeAt(this.state.pos);let h;if(95!==e){if(h=e>=97?e-97+10:e>=65?e-65+10:Pl(e)?e-48:1/0,h>=t)if(this.options.errorRecovery&&h<=9)h=0,this.raise(this.state.start+i+2,Dc.InvalidDigit,t);else{if(!s)break;h=0,o=!0}++this.state.pos,u=u*t+h}else{const t=this.input.charCodeAt(this.state.pos-1),e=this.input.charCodeAt(this.state.pos+1);(-1===a.indexOf(e)||n.indexOf(t)>-1||n.indexOf(e)>-1||Number.isNaN(e))&&this.raise(this.state.pos,Dc.UnexpectedNumericSeparator),r||this.raise(this.state.pos,Dc.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===i||null!=e&&this.state.pos-i!==e||o?null:u}readRadixNumber(t){const e=this.state.pos;let s=!1;this.state.pos+=2;const r=this.readInt(t);null==r&&this.raise(this.state.start+2,Dc.InvalidDigit,t);const i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,s=!0;else if(109===i)throw this.raise(e,Dc.InvalidDecimal);if(el(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,Dc.NumberIdentifier);if(s){const t=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(125,t)}else this.finishToken(124,r)}readNumber(t){const e=this.state.pos;let s=!1,r=!1,i=!1,n=!1,a=!1;t||null!==this.readInt(10)||this.raise(e,Dc.InvalidNumber);const o=this.state.pos-e>=2&&48===this.input.charCodeAt(e);if(o){const t=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(e,Dc.StrictOctalLiteral),!this.state.strict){const s=t.indexOf("_");s>0&&this.raise(s+e,Dc.ZeroDigitNumericSeparator)}a=o&&!/[89]/.test(t)}let u=this.input.charCodeAt(this.state.pos);if(46!==u||a||(++this.state.pos,this.readInt(10),s=!0,u=this.input.charCodeAt(this.state.pos)),69!==u&&101!==u||a||(u=this.input.charCodeAt(++this.state.pos),43!==u&&45!==u||++this.state.pos,null===this.readInt(10)&&this.raise(e,Dc.InvalidOrMissingExponent),s=!0,n=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((s||o)&&this.raise(e,Dc.InvalidBigIntLiteral),++this.state.pos,r=!0),109===u&&(this.expectPlugin("decimal",this.state.pos),(n||o)&&this.raise(e,Dc.InvalidDecimal),++this.state.pos,i=!0),el(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,Dc.NumberIdentifier);const h=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r)return void this.finishToken(125,h);if(i)return void this.finishToken(126,h);const p=a?parseInt(h,8):parseFloat(h);this.finishToken(124,p)}readCodePoint(t){let e;if(123===this.input.charCodeAt(this.state.pos)){const s=++this.state.pos;if(e=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,t),++this.state.pos,null!==e&&e>1114111){if(!t)return null;this.raise(s,Dc.InvalidCodePoint)}}else e=this.readHexChar(4,!1,t);return e}readString(t){let e="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,Dc.UnterminatedString);const r=this.input.charCodeAt(this.state.pos);if(r===t)break;if(92===r)e+=this.input.slice(s,this.state.pos),e+=this.readEscapedChar(!1),s=this.state.pos;else if(8232===r||8233===r)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(ic(r))throw this.raise(this.state.start,Dc.UnterminatedString);++this.state.pos}}e+=this.input.slice(s,this.state.pos++),this.finishToken(123,e)}readTmplToken(){let t="",e=this.state.pos,s=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,Dc.UnterminatedTemplate);const r=this.input.charCodeAt(this.state.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(20)?36===r?(this.state.pos+=2,void this.finishToken(23)):(++this.state.pos,void this.finishToken(22)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(20,s?null:t));if(92===r){t+=this.input.slice(e,this.state.pos);const r=this.readEscapedChar(!0);null===r?s=!0:t+=r,e=this.state.pos}else if(ic(r)){switch(t+=this.input.slice(e,this.state.pos),++this.state.pos,r){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(r)}++this.state.curLine,this.state.lineStart=this.state.pos,e=this.state.pos}else++this.state.pos}}recordStrictModeErrors(t,e){this.state.strict&&!this.state.strictErrors.has(t)?this.raise(t,e):this.state.strictErrors.set(t,e)}readEscapedChar(t){const e=!t,s=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,s){case 110:return"\n";case 114:return"\r";case 120:{const t=this.readHexChar(2,!1,e);return null===t?null:String.fromCharCode(t)}case 117:{const t=this.readCodePoint(e);return null===t?null:String.fromCodePoint(t)}case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(t)return null;this.recordStrictModeErrors(this.state.pos-1,Dc.StrictNumericEscape);default:if(s>=48&&s<=55){const e=this.state.pos-1;let s=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.state.pos+=s.length-1;const i=this.input.charCodeAt(this.state.pos);if("0"!==s||56===i||57===i){if(t)return null;this.recordStrictModeErrors(e,Dc.StrictNumericEscape)}return String.fromCharCode(r)}return String.fromCharCode(s)}}readHexChar(t,e,s){const r=this.state.pos,i=this.readInt(16,t,e,!1);return null===i&&(s?this.raise(r,Dc.InvalidEscapeSequence):this.state.pos=r-1),i}readWord1(t){this.state.containsEsc=!1;let e="";const s=this.state.pos;let r=this.state.pos;for(void 0!==t&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){const t=this.codePointAtPos(this.state.pos);if(sl(t))this.state.pos+=t<=65535?1:2;else{if(92!==t)break;{this.state.containsEsc=!0,e+=this.input.slice(r,this.state.pos);const t=this.state.pos,i=this.state.pos===s?el:sl;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(this.state.pos,Dc.MissingUnicodeEscape),r=this.state.pos-1;continue}++this.state.pos;const n=this.readCodePoint(!0);null!==n&&(i(n)||this.raise(t,Dc.EscapedCharNotAnIdentifier),e+=String.fromCodePoint(n)),r=this.state.pos}}}return e+this.input.slice(r,this.state.pos)}readWord(t){const e=this.readWord1(t),s=bc.get(e);void 0!==s?this.finishToken(s,Wc(s)):this.finishToken(122,e)}checkKeywordEscapes(){const{type:t}=this.state;qc(t)&&this.state.containsEsc&&this.raise(this.state.start,Dc.InvalidEscapedReservedWord,Wc(t))}updateContext(t){const{context:e,type:s}=this.state;switch(s){case 8:e.pop();break;case 5:case 7:case 23:e.push(Ac.brace);break;case 22:e[e.length-1]===Ac.template?e.pop():e.push(Ac.template)}}}{addExtra(t,e,s){if(!t)return;(t.extra=t.extra||{})[e]=s}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){const s=t+e.length;if(this.input.slice(t,s)===e){const t=this.input.charCodeAt(s);return!(sl(t)||55296==(64512&t))}return!1}isLookaheadContextual(t){const e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return!!this.isContextual(t)&&(this.next(),!0)}expectContextual(t,e){this.eatContextual(t)||this.unexpected(null,e)}canInsertSemicolon(){return this.match(129)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return sc.test(this.input.slice(this.state.lastTokEnd,this.state.start))}hasFollowingLineBreak(){return ac.lastIndex=this.state.end,ac.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isLineTerminator():this.eat(13))||this.raise(this.state.lastTokEnd,Dc.MissingSemicolon)}expect(t,e){this.eat(t)||this.unexpected(e,t)}assertNoSpace(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected space.";this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,{code:dc.SyntaxError,reasonCode:"UnexpectedSpace",template:t})}unexpected(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{code:dc.SyntaxError,reasonCode:"UnexpectedToken",template:"Unexpected token"};throw"number"==typeof e&&(e={code:dc.SyntaxError,reasonCode:"UnexpectedToken",template:'Unexpected token, expected "'.concat(Wc(e),'"')}),this.raise(null!=t?t:this.state.start,e)}expectPlugin(t,e){if(!this.hasPlugin(t))throw this.raiseWithData(null!=e?e:this.state.start,{missingPlugin:[t]},"This experimental syntax requires enabling the parser plugin: '".concat(t,"'"));return!0}expectOnePlugin(t,e){if(!t.some((t=>this.hasPlugin(t))))throw this.raiseWithData(null!=e?e:this.state.start,{missingPlugin:t},"This experimental syntax requires enabling one of the following parser plugin(s): '".concat(t.join(", "),"'"))}tryParse(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone();const s={node:null};try{const r=t((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw s.node=t,s}));if(this.state.errors.length>e.errors.length){const t=this.state;return this.state=e,this.state.tokensLength=t.tokensLength,{node:r,error:t.errors[e.errors.length],thrown:!1,aborted:!1,failState:t}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(t){const r=this.state;if(this.state=e,t instanceof SyntaxError)return{node:null,error:t,thrown:!0,aborted:!1,failState:r};if(t===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw t}}checkExpressionErrors(t,e){if(!t)return!1;const{shorthandAssign:s,doubleProto:r,optionalParameters:i}=t,n=s+r+i>-3;if(!e)return n;n&&(s>=0&&this.unexpected(s),r>=0&&this.raise(r,Dc.DuplicateProto),i>=0&&this.unexpected(i))}isLiteralPropertyName(){return zc(this.state.type)}isPrivateName(t){return"PrivateName"===t.type}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&this.isPrivateName(t.property)}isOptionalChain(t){return"OptionalMemberExpression"===t.type||"OptionalCallExpression"===t.type}isObjectProperty(t){return"ObjectProperty"===t.type}isObjectMethod(t){return"ObjectMethod"===t.type}initializeScopes(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType;const e=this.state.labels;this.state.labels=[];const s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=t;const i=this.scope,n=this.getScopeHandler();this.scope=new n(this.raise.bind(this),this.inModule);const a=this.prodParam;this.prodParam=new Ol;const o=this.classScope;this.classScope=new Nl(this.raise.bind(this));const u=this.expressionScope;return this.expressionScope=new kl(this.raise.bind(this)),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=r,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=u}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}}{startNode(){return new jl(this,this.state.start,this.state.startLoc)}startNodeAt(t,e){return new jl(this,t,e)}startNodeAtNode(t){return this.startNodeAt(t.start,t.loc.start)}finishNode(t,e){return this.finishNodeAt(t,e,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(t,e,s,r){return t.type=e,t.end=s,t.loc.end=r,this.options.ranges&&(t.range[1]=s),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,e,s){t.start=e,t.loc.start=s,this.options.ranges&&(t.range[0]=e)}resetEndLocation(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEnd,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.state.lastTokEndLoc;t.end=e,t.loc.end=s,this.options.ranges&&(t.range[1]=e)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.start,e.loc.start)}}{toAssignable(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var s,r;let i;switch(("ParenthesizedExpression"===t.type||null!=(s=t.extra)&&s.parenthesized)&&(i=Dd(t),e?"Identifier"===i.type?this.expressionScope.recordParenthesizedIdentifierError(t.start,Dc.InvalidParenthesizedAssignment):"MemberExpression"!==i.type&&this.raise(t.start,Dc.InvalidParenthesizedAssignment):this.raise(t.start,Dc.InvalidParenthesizedAssignment)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let s=0,r=t.properties.length,i=r-1;s<r;s++){var n;const r=t.properties[s],a=s===i;this.toAssignableObjectExpressionProp(r,a,e),a&&"RestElement"===r.type&&null!=(n=t.extra)&&n.trailingComma&&this.raiseRestNotLast(t.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(t.value,e);break;case"SpreadElement":{this.checkToRestConversion(t),t.type="RestElement";const s=t.argument;this.toAssignable(s,e);break}case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,null==(r=t.extra)?void 0:r.trailingComma,e);break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,Dc.MissingEqInAssignment),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(i,e)}return t}toAssignableObjectExpressionProp(t,e,s){if("ObjectMethod"===t.type){const e="get"===t.kind||"set"===t.kind?Dc.PatternHasAccessor:Dc.PatternHasMethod;this.raise(t.key.start,e)}else"SpreadElement"!==t.type||e?this.toAssignable(t,s):this.raiseRestNotLast(t.start)}toAssignableList(t,e,s){let r=t.length;if(r){const i=t[r-1];if("RestElement"===(null==i?void 0:i.type))--r;else if("SpreadElement"===(null==i?void 0:i.type)){i.type="RestElement";let t=i.argument;this.toAssignable(t,s),t=Dd(t),"Identifier"!==t.type&&"MemberExpression"!==t.type&&"ArrayPattern"!==t.type&&"ObjectPattern"!==t.type&&this.unexpected(t.start),e&&this.raiseTrailingCommaAfterRest(e),--r}}for(let e=0;e<r;e++){const r=t[e];r&&(this.toAssignable(r,s),"RestElement"===r.type&&this.raiseRestNotLast(r.start))}return t}isAssignable(t,e){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const e=t.properties.length-1;return t.properties.every(((t,s)=>"ObjectMethod"!==t.type&&(s===e||"SpreadElement"!==t.type)&&this.isAssignable(t)))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every((t=>null===t||this.isAssignable(t)));case"AssignmentExpression":return"="===t.operator;case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(const e of t)"ArrayExpression"===(null==e?void 0:e.type)&&this.toReferencedListDeep(e.elements)}parseSpread(t,e){const s=this.startNode();return this.next(),s.argument=this.parseMaybeAssignAllowIn(t,void 0,e),this.finishNode(s,"SpreadElement")}parseRestBinding(){const t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,!0),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s,r){const i=[];let n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),s&&this.match(12))i.push(null);else{if(this.eat(t))break;if(this.match(21)){i.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(e),this.expect(t);break}{const t=[];for(this.match(24)&&this.hasPlugin("decorators")&&this.raise(this.state.start,Dc.UnsupportedParameterDecorator);this.match(24);)t.push(this.parseDecorator());i.push(this.parseAssignableListItem(r,t))}}return i}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){const t=this.startNode(),{type:e,start:s,startLoc:r}=this.state;return 21===e?this.parseBindingRestProperty(t):(this.parsePropertyName(t),t.method=!1,this.parseObjPropValue(t,s,r,!1,!1,!0,!1),t)}parseAssignableListItem(t,e){const s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s);const r=this.parseMaybeDefault(s.start,s.loc.start,s);return e.length&&(s.decorators=e),r}parseAssignableListItemTypes(t){return t}parseMaybeDefault(t,e,s){var r,i,n;if(e=null!=(r=e)?r:this.state.startLoc,t=null!=(i=t)?i:this.state.start,s=null!=(n=s)?n:this.parseBindingAtom(),!this.eat(27))return s;const a=this.startNodeAt(t,e);return a.left=s,a.right=this.parseMaybeAssignAllowIn(),this.finishNode(a,"AssignmentPattern")}checkLVal(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,n=arguments.length>5&&void 0!==arguments[5]&&arguments[5];switch(t.type){case"Identifier":{const{name:e}=t;this.state.strict&&(n?cl(e,this.inModule):pl(e))&&this.raise(t.start,64===s?Dc.StrictEvalArguments:Dc.StrictEvalArgumentsBinding,e),r&&(r.has(e)?this.raise(t.start,Dc.ParamDupe):r.add(e)),i&&"let"===e&&this.raise(t.start,Dc.LetInLexicalBinding),64&s||this.scope.declareName(e,s,t.start);break}case"MemberExpression":64!==s&&this.raise(t.start,Dc.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let e of t.properties){if(this.isObjectProperty(e))e=e.value;else if(this.isObjectMethod(e))continue;this.checkLVal(e,"object destructuring pattern",s,r,i)}break;case"ArrayPattern":for(const e of t.elements)e&&this.checkLVal(e,"array destructuring pattern",s,r,i);break;case"AssignmentPattern":this.checkLVal(t.left,"assignment pattern",s,r);break;case"RestElement":this.checkLVal(t.argument,"rest element",s,r);break;case"ParenthesizedExpression":this.checkLVal(t.expression,"parenthesized expression",s,r);break;default:this.raise(t.start,64===s?Dc.InvalidLhs:Dc.InvalidLhsBinding,e)}}checkToRestConversion(t){"Identifier"!==t.argument.type&&"MemberExpression"!==t.argument.type&&this.raise(t.argument.start,Dc.InvalidRestAssignmentPattern)}checkCommaAfterRest(t){this.match(12)&&(this.lookaheadCharCode()===t?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(t){throw this.raise(t,Dc.ElementAfterRest)}raiseTrailingCommaAfterRest(t){this.raise(t,Dc.RestTrailingComma)}}{checkProto(t,e,s,r){if("SpreadElement"===t.type||this.isObjectMethod(t)||t.computed||t.shorthand)return;const i=t.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(e)return void this.raise(i.start,Dc.RecordNoProto);s.used&&(r?-1===r.doubleProto&&(r.doubleProto=i.start):this.raise(i.start,Dc.DuplicateProto)),s.used=!0}}shouldExitDescending(t,e){return"ArrowFunctionExpression"===t.type&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();const t=this.parseExpression();return this.match(129)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd((()=>this.parseExpressionBase(e))):this.allowInAnd((()=>this.parseExpressionBase(e)))}parseExpressionBase(t){const e=this.state.start,s=this.state.startLoc,r=this.parseMaybeAssign(t);if(this.match(12)){const i=this.startNodeAt(e,s);for(i.expressions=[r];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd((()=>this.parseMaybeAssign(t,e)))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd((()=>this.parseMaybeAssign(t,e)))}setOptionalParametersError(t,e){var s;t.optionalParameters=null!=(s=null==e?void 0:e.pos)?s:this.state.start}parseMaybeAssign(t,e){const s=this.state.start,r=this.state.startLoc;if(this.isContextual(99)&&this.prodParam.hasYield){let t=this.parseYield();return e&&(t=e.call(this,t,s,r)),t}let i;t?i=!1:(t=new Rl,i=!0);const{type:n}=this.state;(10===n||Uc(n))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(t);if(e&&(a=e.call(this,a,s,r)),(o=this.state.type)>=27&&o<=31){const e=this.startNodeAt(s,r),i=this.state.value;return e.operator=i,this.match(27)?(e.left=this.toAssignable(a,!0),t.doubleProto>=s&&(t.doubleProto=-1),t.shorthandAssign>=s&&(t.shorthandAssign=-1)):e.left=a,this.checkLVal(a,"assignment expression"),this.next(),e.right=this.parseMaybeAssign(),this.finishNode(e,"AssignmentExpression")}var o;return i&&this.checkExpressionErrors(t,!0),a}parseMaybeConditional(t){const e=this.state.start,s=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,r)?i:this.parseConditional(i,e,s,t)}parseConditional(t,e,s,r){if(this.eat(17)){const r=this.startNodeAt(e,s);return r.test=t,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(128)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){const e=this.state.start,s=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,r)?i:this.parseExprOp(i,e,s,-1)}parseExprOp(t,e,s,r){if(this.isPrivateName(t)){const e=this.getPrivateNameSV(t),{start:s}=t;(r>=Kc(52)||!this.prodParam.hasIn||!this.match(52))&&this.raise(s,Dc.PrivateInExpectedIn,e),this.classScope.usePrivateName(e,s)}const i=this.state.type;if((n=i)>=35&&n<=53&&(this.prodParam.hasIn||!this.match(52))){let n=Kc(i);if(n>r){if(35===i){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}const a=this.startNodeAt(e,s);a.left=t,a.operator=this.state.value;const o=37===i||38===i,u=36===i;if(u&&(n=Kc(38)),this.next(),35===i&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&90===this.state.type&&this.prodParam.hasAwait)throw this.raise(this.state.start,Dc.UnexpectedAwaitAfterPipelineBody);a.right=this.parseExprOpRightExpr(i,n),this.finishNode(a,o||u?"LogicalExpression":"BinaryExpression");const h=this.state.type;if(u&&(37===h||38===h)||o&&36===h)throw this.raise(this.state.start,Dc.MixingCoalesceWithLogical);return this.parseExprOp(a,e,s,r)}}var n;return t}parseExprOpRightExpr(t,e){const s=this.state.start,r=this.state.startLoc;if(35===t)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(99))throw this.raise(this.state.start,Dc.PipeBodyIsTighter,this.state.value);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s,r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(e)))}return this.parseExprOpBaseRightExpr(t,e)}parseExprOpBaseRightExpr(t,e){const s=this.state.start,r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,r,51===t?e-1:e)}parseHackPipeBody(){var t;const{start:e}=this.state,s=this.parseMaybeAssign();return!md.has(s.type)||null!=(t=s.extra)&&t.parenthesized||this.raise(e,Dc.PipeUnparenthesizedBody,md.get(s.type)),this.topicReferenceWasUsedInCurrentContext()||this.raise(e,Dc.PipeTopicUnused),s}checkExponentialAfterUnary(t){this.match(51)&&this.raise(t.argument.start,Dc.UnexpectedTokenUnaryExponentiation)}parseMaybeUnary(t,e){const s=this.state.start,r=this.state.startLoc,i=this.isContextual(90);if(i&&this.isAwaitAllowed()){this.next();const t=this.parseAwait(s,r);return e||this.checkExponentialAfterUnary(t),t}const n=this.match(32),a=this.startNode();if(o=this.state.type,Oc[o]){a.operator=this.state.value,a.prefix=!0,this.match(66)&&this.expectPlugin("throwExpressions");const s=this.match(83);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&s){const t=a.argument;"Identifier"===t.type?this.raise(a.start,Dc.StrictDelete):this.hasPropertyAsPrivateName(t)&&this.raise(a.start,Dc.DeletePrivateField)}if(!n)return e||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}var o;const u=this.parseUpdate(a,n,t);if(i){const{type:t}=this.state;if((this.hasPlugin("v8intrinsic")?Hc(t):Hc(t)&&!this.match(48))&&!this.isAmbiguousAwait())return this.raiseOverwrite(s,Dc.AwaitNotInAsyncContext),this.parseAwait(s,r)}return u}parseUpdate(t,e,s){if(e)return this.checkLVal(t.argument,"prefix operation"),this.finishNode(t,"UpdateExpression");const r=this.state.start,i=this.state.startLoc;let n=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return n;for(;32===this.state.type&&!this.canInsertSemicolon();){const t=this.startNodeAt(r,i);t.operator=this.state.value,t.prefix=!1,t.argument=n,this.checkLVal(n,"postfix operation"),this.next(),n=this.finishNode(t,"UpdateExpression")}return n}parseExprSubscripts(t){const e=this.state.start,s=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,r)?i:this.parseSubscripts(i,e,s)}parseSubscripts(t,e,s,r){const i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do{t=this.parseSubscript(t,e,s,r,i),i.maybeAsyncArrow=!1}while(!i.stop);return t}parseSubscript(t,e,s,r,i){if(!r&&this.eat(15))return this.parseBind(t,e,s,r,i);if(this.match(22))return this.parseTaggedTemplateExpression(t,e,s,i);let n=!1;if(this.match(18)){if(r&&40===this.lookaheadCharCode())return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,s,i,n);{const r=this.eat(0);return r||n||this.eat(16)?this.parseMember(t,e,s,i,r,n):(i.stop=!0,t)}}parseMember(t,e,s,r,i,n){const a=this.startNodeAt(e,s);a.object=t,a.computed=i;const o=!i&&this.match(128)&&this.state.value,u=i?this.parseExpression():o?this.parsePrivateName():this.parseIdentifier(!0);return!1!==o&&("Super"===a.object.type&&this.raise(e,Dc.SuperPrivateField),this.classScope.usePrivateName(o,u.start)),a.property=u,i&&this.expect(3),r.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,e,s,r,i){const n=this.startNodeAt(e,s);return n.object=t,n.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),e,s,r)}parseCoverCallAndAsyncArrowHead(t,e,s,r,i){const n=this.state.maybeInArrowParameters;let a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e,s);return o.callee=t,r.maybeAsyncArrow&&(this.expressionScope.enter(new vl(2)),a=new Rl),r.optionalChainMember&&(o.optional=i),o.arguments=i?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===t.type,"Super"!==t.type,o,a),this.finishCallExpression(o,r.optionalChainMember),r.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!i?(r.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),o=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e,s),o)):(r.maybeAsyncArrow&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(o)),this.state.maybeInArrowParameters=n,o}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s,r){const i=this.startNodeAt(e,s);return i.tag=t,i.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(e,Dc.OptionalChainingNoTemplate),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return"Identifier"===t.type&&"async"===t.name&&this.state.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&t.start===this.state.potentialArrowAt}finishCallExpression(t,e){if("Import"===t.callee.type)if(2===t.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===t.arguments.length||t.arguments.length>2)this.raise(t.start,Dc.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(const e of t.arguments)"SpreadElement"===e.type&&this.raise(e.start,Dc.ImportCallSpreadArgument);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,r,i){const n=[];let a=!0;const o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){!e||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,Dc.ImportCallArgumentTrailingComma),r&&this.addExtra(r,"trailingComma",this.state.lastTokStart),this.next();break}n.push(this.parseExprListItem(!1,i,s))}return this.state.inFSharpPipelineDirectBody=o,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,null==(s=e.extra)?void 0:s.trailingComma),e.innerComments&&cc(t,e.innerComments),e.callee.trailingComments&&cc(t,e.callee.trailingComments),t}parseNoCallExpr(){const t=this.state.start,e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,e,!0)}parseExprAtom(t){let e;const{type:s}=this.state;switch(s){case 73:return this.parseSuper();case 77:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):(this.match(10)||this.raise(this.state.lastTokStart,Dc.UnsupportedImport),this.finishNode(e,"Import"));case 72:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 84:return this.parseDo(this.startNode(),!1);case 50:case 29:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 124:return this.parseNumericLiteral(this.state.value);case 125:return this.parseBigIntLiteral(this.state.value);case 126:return this.parseDecimalLiteral(this.state.value);case 123:return this.parseStringLiteral(this.state.value);case 78:return this.parseNullLiteral();case 79:return this.parseBooleanLiteral(!0);case 80:return this.parseBooleanLiteral(!1);case 10:{const t=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(t)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 62:return this.parseFunctionOrFunctionSent();case 24:this.parseDecorators();case 74:return e=this.startNode(),this.takeDecorators(e),this.parseClass(e,!1);case 71:return this.parseNewOrNewTarget();case 22:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;const t=e.callee=this.parseNoCallExpr();if("MemberExpression"===t.type)return this.finishNode(e,"BindExpression");throw this.raise(t.start,Dc.UnsupportedBind)}case 128:return this.raise(this.state.start,Dc.PrivateInExpectedIn,this.state.value),this.parsePrivateName();case 31:return this.parseTopicReferenceThenEqualsSign(48,"%");case 30:return this.parseTopicReferenceThenEqualsSign(40,"^");case 40:case 48:case 25:{const t=this.getPluginOption("pipelineOperator","proposal");if(t)return this.parseTopicReference(t);throw this.unexpected()}case 43:{const t=this.input.codePointAt(this.nextTokenStart());if(el(t)||62===t){this.expectOnePlugin(["jsx","flow","typescript"]);break}throw this.unexpected()}default:if(Uc(s)){if(this.isContextual(117)&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();const t=this.state.potentialArrowAt===this.state.start,e=this.state.containsEsc,s=this.parseIdentifier();if(!e&&"async"===s.name&&!this.canInsertSemicolon()){const{type:t}=this.state;if(62===t)return this.resetPreviousNodeTrailingComments(s),this.next(),this.parseFunction(this.startNodeAtNode(s),void 0,!0);if(Uc(t))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(s)):s;if(84===t)return this.resetPreviousNodeTrailingComments(s),this.parseDo(this.startNodeAtNode(s),!0)}return t&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(s),[s],!1)):s}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){const s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc.column--,this.parseTopicReference(s);throw this.unexpected()}parseTopicReference(t){const e=this.startNode(),s=this.state.start,r=this.state.type;return this.next(),this.finishTopicReference(e,s,t,r)}finishTopicReference(t,e,s,r){if(this.testTopicReferenceConfiguration(s,e,r)){let r;return r="smart"===s?"PipelinePrimaryTopicReference":"TopicReference",this.topicReferenceIsAllowedInCurrentContext()||("smart"===s?this.raise(e,Dc.PrimaryTopicNotAllowed):this.raise(e,Dc.PipeTopicUnbound)),this.registerTopicReference(),this.finishNode(t,r)}throw this.raise(e,Dc.PipeTopicUnconfiguredToken,Wc(r))}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":{const t=this.getPluginOption("pipelineOperator","topicToken");return Wc(s)===t}case"smart":return 25===s;default:throw this.raise(e,Dc.PipeTopicRequiresHackPipes)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Ml(!0,this.prodParam.hasYield));const e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,Dc.LineTerminatorBeforeArrow),this.expect(19),this.parseArrowExpression(t,e,!0),t}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();const s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(t.start,Dc.UnexpectedSuper):this.raise(t.start,Dc.SuperNotAllowed),this.match(10)||this.match(0)||this.match(16)||this.raise(t.start,Dc.UnsupportedSuper),this.finishNode(t,"Super")}parsePrivateName(){const t=this.startNode(),e=this.startNodeAt(this.state.start+1,new uc(this.state.curLine,this.state.start+1-this.state.lineStart)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(96)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;const r=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||r)&&this.raise(t.property.start,Dc.UnsupportedMetaProperty,e.name,s),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){const e=this.createIdentifier(this.startNodeAtNode(t),"import");return this.next(),this.isContextual(94)&&(this.inModule||this.raise(e.start,mc.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){const s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){const e=this.parseLiteral(t.value,"RegExpLiteral");return e.pattern=t.pattern,e.flags=t.flags,e}parseBooleanLiteral(t){const e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){const t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){const e=this.state.start,s=this.state.startLoc;let r;this.next(),this.expressionScope.enter(new vl(1));const i=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const a=this.state.start,o=this.state.startLoc,u=[],h=new Rl;let p,c,l=!0;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,-1===h.optionalParameters?null:h.optionalParameters),this.match(11)){c=this.state.start;break}if(this.match(21)){const t=this.state.start,e=this.state.startLoc;p=this.state.start,u.push(this.parseParenItem(this.parseRestBinding(),t,e)),this.checkCommaAfterRest(41);break}u.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}const d=this.state.lastTokEnd,D=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=n;let m=this.startNodeAt(e,s);if(t&&this.shouldParseArrow(u)&&(m=this.parseArrow(m)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(m,u,!1),m;if(this.expressionScope.exit(),u.length||this.unexpected(this.state.lastTokStart),c&&this.unexpected(c),p&&this.unexpected(p),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(u,!0),u.length>1?(r=this.startNodeAt(a,o),r.expressions=u,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,d,D)):r=u[0],!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e),this.takeSurroundingComments(r,e,this.state.lastTokEnd),r;const f=this.startNodeAt(e,s);return f.expression=r,this.finishNode(f,"ParenthesizedExpression"),f}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e,s){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const s=this.parseMetaProperty(t,e,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.raise(s.start,Dc.UnexpectedNewTarget),s}return this.parseNew(t)}parseNew(t){return t.callee=this.parseNoCallExpr(),"Import"===t.callee.type?this.raise(t.callee.start,Dc.ImportCallNotNewExpression):this.isOptionalChain(t.callee)?this.raise(this.state.lastTokEnd,Dc.OptionalChainingNoNew):this.eat(18)&&this.raise(this.state.start,Dc.OptionalChainingNoNew),this.parseNewArguments(t),this.finishNode(t,"NewExpression")}parseNewArguments(t){if(this.eat(10)){const e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[]}parseTemplateElement(t){const e=this.startNode();return null===this.state.value&&(t||this.raise(this.state.start+1,Dc.InvalidEscapeSequenceTemplate)),e.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),e.tail=this.match(22),this.finishNode(e,"TemplateElement")}parseTemplate(t){const e=this.startNode();this.next(),e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)this.expect(23),e.expressions.push(this.parseTemplateSubstitution()),this.expect(8),e.quasis.push(s=this.parseTemplateElement(t));return this.next(),this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const n=Object.create(null);let a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){this.addExtra(o,"trailingComma",this.state.lastTokStart);break}let i;e?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,s,n,r)),s&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(i.start,Dc.InvalidRecordProperty),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let u="ObjectExpression";return e?u="ObjectPattern":s&&(u="RecordExpression"),this.finishNode(o,u)}maybeAsyncOrAccessorProp(t){return!t.computed&&"Identifier"===t.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(49))}parsePropertyDefinition(t){let e=[];if(this.match(24))for(this.hasPlugin("decorators")&&this.raise(this.state.start,Dc.UnsupportedPropertyDecorator);this.match(24);)e.push(this.parseDecorator());const s=this.startNode();let r,i,n=!1,a=!1;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(r=this.state.start,i=this.state.startLoc);let o=this.eat(49);this.parsePropertyNamePrefixOperator(s);const u=this.state.containsEsc,h=this.parsePropertyName(s);if(!o&&!u&&this.maybeAsyncOrAccessorProp(s)){const t=h.name;"async"!==t||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(h),o=this.eat(49),this.parsePropertyName(s)),"get"!==t&&"set"!==t||(a=!0,this.resetPreviousNodeTrailingComments(h),s.kind=t,this.match(49)&&(o=!0,this.raise(this.state.pos,Dc.AccessorIsGenerator,t),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,r,i,o,n,!1,a,t),s}getGetterSetterExpectedParamCount(t){return"get"===t.kind?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;const s=this.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t),i=t.start;r.length!==s&&("get"===t.kind?this.raise(i,Dc.BadGetterArity):this.raise(i,Dc.BadSetterArity)),"set"===t.kind&&"RestElement"===(null==(e=r[r.length-1])?void 0:e.type)&&this.raise(i,Dc.BadSetterRestParameter)}parseObjectMethod(t,e,s,r,i){return i?(this.parseMethod(t,e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t):s||e||this.match(10)?(r&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(t,e,s,r,i){return t.shorthand=!1,this.eat(14)?(t.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty")):t.computed||"Identifier"!==t.key.type?void 0:(this.checkReservedWord(t.key.name,t.key.start,!0,!1),r?t.value=this.parseMaybeDefault(e,s,_l(t.key)):this.match(27)&&i?(-1===i.shorthandAssign&&(i.shorthandAssign=this.state.start),t.value=this.parseMaybeDefault(e,s,_l(t.key))):t.value=_l(t.key),t.shorthand=!0,this.finishNode(t,"ObjectProperty"))}parseObjPropValue(t,e,s,r,i,n,a,o){const u=this.parseObjectMethod(t,r,i,n,a)||this.parseObjectProperty(t,e,s,n,o);return u||this.unexpected(),u}parsePropertyName(t){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:e,value:s}=this.state;let r;if(_c(e))r=this.parseIdentifier(!0);else switch(e){case 124:r=this.parseNumericLiteral(s);break;case 123:r=this.parseStringLiteral(s);break;case 125:r=this.parseBigIntLiteral(s);break;case 126:r=this.parseDecimalLiteral(s);break;case 128:{const t=this.state.start+1;this.raise(t,Dc.UnexpectedPrivateField),r=this.parsePrivateName();break}default:throw this.unexpected()}t.key=r,128!==e&&(t.computed=!1)}return t.key}initFunction(t,e){t.id=null,t.generator=!1,t.async=!!e}parseMethod(t,e,s,r,i,n){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(t,s),t.generator=!!e;const o=r;return this.scope.enter(18|(a?dl:0)|(i?32:0)),this.prodParam.enter(Ml(s,t.generator)),this.parseFunctionParams(t,o),this.parseFunctionBodyAndFinish(t,n,!0),this.prodParam.exit(),this.scope.exit(),t}parseArrayLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,r,n),this.state.inFSharpPipelineDirectBody=i,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,r){this.scope.enter(6);let i=Ml(s,!1);!this.match(0)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(t,s);const n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){t.params=this.toAssignableList(e,s,!1)}parseFunctionBodyAndFinish(t,e){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e&&!this.match(5);if(this.expressionScope.enter(Ll()),r)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),t.body=this.parseBlock(!0,!1,(i=>{const n=!this.isSimpleParamList(t.params);if(i&&n){const e="method"!==t.kind&&"constructor"!==t.kind||!t.key?t.start:t.key.end;this.raise(e,Dc.IllegalLanguageModeDirective)}const a=!r&&this.state.strict;this.checkParams(t,!(this.state.strict||e||s||n),e,a),this.state.strict&&t.id&&this.checkLVal(t.id,"function name",65,void 0,void 0,a)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParamList(t){for(let e=0,s=t.length;e<s;e++)if("Identifier"!==t[e].type)return!1;return!0}checkParams(t,e,s){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=new Set;for(const s of t.params)this.checkLVal(s,"function parameter list",5,e?null:i,void 0,r)}parseExprList(t,e,s,r){const i=[];let n=!0;for(;!this.eat(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){r&&this.addExtra(r,"trailingComma",this.state.lastTokStart),this.next();break}i.push(this.parseExprListItem(e,s))}return i}parseExprListItem(t,e,s){let r;if(this.match(12))t||this.raise(this.state.pos,Dc.UnexpectedToken,","),r=null;else if(this.match(21)){const t=this.state.start,s=this.state.startLoc;r=this.parseParenItem(this.parseSpread(e),t,s)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(this.state.start,Dc.UnexpectedArgumentPlaceholder);const t=this.startNode();this.next(),r=this.finishNode(t,"ArgumentPlaceholder")}else r=this.parseMaybeAssignAllowIn(e,this.parseParenItem);return r}parseIdentifier(t){const e=this.startNode(),s=this.parseIdentifierName(e.start,t);return this.createIdentifier(e,s)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}parseIdentifierName(t,e){let s;const{start:r,type:i}=this.state;if(!_c(i))throw this.unexpected();s=this.state.value;const n=i<=86;return e?n&&this.replaceToken(122):this.checkReservedWord(s,r,n,!1),this.next(),s}checkReservedWord(t,e,s,r){if(t.length>10)return;if(!function(t){return ll.has(t)}(t))return;if("yield"===t){if(this.prodParam.hasYield)return void this.raise(e,Dc.YieldBindingIdentifier)}else if("await"===t){if(this.prodParam.hasAwait)return void this.raise(e,Dc.AwaitBindingIdentifier);if(this.scope.inStaticBlock)return void this.raise(e,Dc.AwaitBindingIdentifierInStaticBlock);this.expressionScope.recordAsyncArrowParametersError(e,Dc.AwaitBindingIdentifier)}else if("arguments"===t&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(e,Dc.ArgumentsInClass);if(s&&function(t){return nl.has(t)}(t))return void this.raise(e,Dc.UnexpectedKeyword,t);(this.state.strict?r?cl:hl:ul)(t,this.inModule)&&this.raise(e,Dc.UnexpectedReservedWord,t)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(t,e){const s=this.startNodeAt(t,e);return this.expressionScope.recordParameterInitializerError(s.start,Dc.AwaitExpressionFormalParameter),this.eat(49)&&this.raise(s.start,Dc.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(s.argument=this.parseMaybeUnary(null,!0)),this.finishNode(s,"AwaitExpression")}isAmbiguousAwait(){return this.hasPrecedingLineBreak()||this.match(47)||this.match(10)||this.match(0)||this.match(22)||this.match(127)||this.match(50)||this.hasPlugin("v8intrinsic")&&this.match(48)}parseYield(){const t=this.startNode();this.expressionScope.recordParameterInitializerError(t.start,Dc.YieldInParameter),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(49),this.state.type){case 13:case 129:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}checkPipelineAtInfixOperator(t,e){"smart"===this.getPluginOption("pipelineOperator","proposal")&&"SequenceExpression"===t.type&&this.raise(e,Dc.PipelineHeadSequenceExpression)}checkHackPipeBodyEarlyErrors(t){this.topicReferenceWasUsedInCurrentContext()||this.raise(t,Dc.PipeTopicUnused)}parseSmartPipelineBodyInStyle(t,e,s){const r=this.startNodeAt(e,s);return this.isSimpleReference(t)?(r.callee=t,this.finishNode(r,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(e),r.expression=t,this.finishNode(r,"PipelineTopicExpression"))}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(this.state.start,Dc.PipelineBodyNoArrow);this.topicReferenceWasUsedInCurrentContext()||this.raise(t,Dc.PipelineTopicUnused)}withTopicBindingContext(t){const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if("smart"!==this.getPluginOption("pipelineOperator","proposal"))return t();{const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}}withSoloAwaitPermittingContext(t){const e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){const e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(8|e);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(-9&e);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const e=this.state.start,s=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,s,t);return this.state.inFSharpPipelineDirectBody=r,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");const t=this.startNode();this.next(),this.eat(5);const e=this.initializeScopes(!0);this.enterInitialScopes();const s=this.startNode();try{t.body=this.parseProgram(s,8,"module")}finally{e()}return this.eat(8),this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}}{parseTopLevel(t,e){return t.program=this.parseProgram(e),t.comments=this.state.comments,this.options.tokens&&(t.tokens=function(t){for(let e=0;e<t.length;e++){const s=t[e],{type:r}=s;if(128!==r)"number"==typeof r&&(s.type=Gc(r));else{const{loc:r,start:i,value:n,end:a}=s,o=i+1,u=new uc(r.start.line,r.start.column+1);t.splice(e,1,new wl({type:Gc(25),value:"#",start:i,end:o,startLoc:r.start,endLoc:u}),new wl({type:Gc(122),value:n,start:o,end:a,startLoc:u,endLoc:r.end})),e++}}return t}(this.tokens)),this.finishNode(t,"File")}parseProgram(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:129,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(t.sourceType=s,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[t]of Array.from(this.scope.undefinedExports)){const e=this.scope.undefinedExports.get(t);this.raise(e,Dc.ModuleExportUndefined,t)}return this.finishNode(t,"Program")}stmtToDirective(t){const e=t;e.type="Directive",e.value=e.expression,delete e.expression;const s=e.value,r=s.value,i=this.input.slice(s.start,s.end),n=s.value=i.slice(1,-1);return this.addExtra(s,"raw",i),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",r),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(26))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(t){return!!this.isContextual(93)&&this.isLetKeyword(t)}isLetKeyword(t){const e=this.nextTokenStart(),s=this.codePointAtPos(e);if(92===s||91===s)return!0;if(t)return!1;if(123===s)return!0;if(el(s)){if(Ad.lastIndex=e,Ad.test(this.input)){const t=this.codePointAtPos(Ad.lastIndex);if(!sl(t)&&92!==t)return!1}return!0}return!1}parseStatement(t,e){return this.match(24)&&this.parseDecorators(!0),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type;const r=this.startNode();let i;switch(this.isLet(t)&&(s=68,i="let"),s){case 54:return this.parseBreakContinueStatement(r,!0);case 57:return this.parseBreakContinueStatement(r,!1);case 58:return this.parseDebuggerStatement(r);case 84:return this.parseDoStatement(r);case 85:return this.parseForStatement(r);case 62:if(46===this.lookaheadCharCode())break;return t&&(this.state.strict?this.raise(this.state.start,Dc.StrictFunction):"if"!==t&&"label"!==t&&this.raise(this.state.start,Dc.SloppyFunction)),this.parseFunctionStatement(r,!1,!t);case 74:return t&&this.unexpected(),this.parseClass(r,!0);case 63:return this.parseIfStatement(r);case 64:return this.parseReturnStatement(r);case 65:return this.parseSwitchStatement(r);case 66:return this.parseThrowStatement(r);case 67:return this.parseTryStatement(r);case 69:case 68:return i=i||this.state.value,t&&"var"!==i&&this.raise(this.state.start,Dc.UnexpectedLexicalDeclaration),this.parseVarStatement(r,i);case 86:return this.parseWhileStatement(r);case 70:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 77:{const t=this.lookaheadCharCode();if(40===t||46===t)break}case 76:{let t;return this.options.allowImportExportEverywhere||e||this.raise(this.state.start,Dc.UnexpectedImportExport),this.next(),77===s?(t=this.parseImport(r),"ImportDeclaration"!==t.type||t.importKind&&"value"!==t.importKind||(this.sawUnambiguousESM=!0)):(t=this.parseExport(r),("ExportNamedDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&("ExportAllDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&"ExportDefaultDeclaration"!==t.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(r),t}default:if(this.isAsyncFunction())return t&&this.raise(this.state.start,Dc.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(r,!0,!t)}const n=this.state.value,a=this.parseExpression();return Uc(s)&&"Identifier"===a.type&&this.eat(14)?this.parseLabeledStatement(r,n,a,t):this.parseExpressionStatement(r,a)}assertModuleNodeAllowed(t){this.options.allowImportExportEverywhere||this.inModule||this.raise(t.start,mc.ImportOutsideModule)}takeDecorators(t){const e=this.state.decoratorStack[this.state.decoratorStack.length-1];e.length&&(t.decorators=e,this.resetStartLocationFromNode(t,e[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(74)}parseDecorators(t){const e=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(24);){const t=this.parseDecorator();e.push(t)}if(this.match(76))t||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,Dc.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,Dc.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const e=this.state.start,s=this.state.startLoc;let r;if(this.eat(10))r=this.parseExpression(),this.expect(11);else for(r=this.parseIdentifier(!1);this.eat(16);){const t=this.startNodeAt(e,s);t.object=r,t.property=this.parseIdentifier(!0),t.computed=!1,r=this.finishNode(t,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(r),this.state.decoratorStack.pop()}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){const e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;s<this.state.labels.length;++s){const r=this.state.labels[s];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(e||"loop"===r.kind))break;if(t.label&&e)break}}s===this.state.labels.length&&this.raise(t.start,Dc.IllegalBreakContinue,e?"break":"continue")}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const t=this.parseExpression();return this.expect(11),t}parseDoStatement(t){return this.next(),this.state.labels.push(fd),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("do"))),this.state.labels.pop(),this.expect(86),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(fd);let e=-1;if(this.isAwaitAllowed()&&this.eatContextual(90)&&(e=this.state.lastTokStart),this.scope.enter(0),this.expect(10),this.match(13))return e>-1&&this.unexpected(e),this.parseFor(t,null);const s=this.isContextual(93),r=s&&this.isLetKeyword();if(this.match(68)||this.match(69)||r){const s=this.startNode(),i=r?"let":this.state.value;return this.next(),this.parseVar(s,!0,i),this.finishNode(s,"VariableDeclaration"),(this.match(52)||this.isContextual(95))&&1===s.declarations.length?this.parseForIn(t,s,e):(e>-1&&this.unexpected(e),this.parseFor(t,s))}const i=this.isContextual(89),n=new Rl,a=this.parseExpression(!0,n),o=this.isContextual(95);if(o&&(s?this.raise(a.start,Dc.ForOfLet):-1===e&&i&&"Identifier"===a.type&&this.raise(a.start,Dc.ForOfAsync)),o||this.match(52)){this.toAssignable(a,!0);const s=o?"for-of statement":"for-in statement";return this.checkLVal(a,s),this.parseForIn(t,a,e)}return this.checkExpressionErrors(n,!0),e>-1&&this.unexpected(e),this.parseFor(t,a)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?0:2),e)}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(60)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,Dc.IllegalReturn),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const e=t.cases=[];let s,r;for(this.expect(5),this.state.labels.push(yd),this.scope.enter(0);!this.match(8);)if(this.match(55)||this.match(59)){const t=this.match(55);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),t?s.test=this.parseExpression():(r&&this.raise(this.state.lastTokStart,Dc.MultipleDefaultsInSwitch),r=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(this.state.lastTokEnd,Dc.NewlineAfterThrow),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom(),e="Identifier"===t.type;return this.scope.enter(e?8:0),this.checkLVal(t,"catch clause",9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(56)){const e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(61)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,Dc.NoCatchOrFinally),this.finishNode(t,"TryStatement")}parseVarStatement(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(fd),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(this.state.start,Dc.StrictWith),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,r){for(const t of this.state.labels)t.name===e&&this.raise(s.start,Dc.LabelRedeclaration,e);const i=(n=this.state.type)>=84&&n<=86?"loop":this.match(65)?"switch":null;var n;for(let e=this.state.labels.length-1;e>=0;e--){const s=this.state.labels[e];if(s.statementStart!==t.start)break;s.statementStart=this.state.start,s.kind=i}return this.state.labels.push({name:e,kind:i,statementStart:this.state.start}),t.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2?arguments[2]:void 0;const r=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(r,t,!1,8,s),e&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,r,i){const n=t.body=[],a=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?a:void 0,s,r,i)}parseBlockOrModuleBlockBody(t,e,s,r,i){const n=this.state.strict;let a=!1,o=!1;for(;!this.match(r);){const r=this.parseStatement(null,s);if(e&&!o){if(this.isValidDirective(r)){const t=this.stmtToDirective(r);e.push(t),a||"use strict"!==t.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}t.push(r)}i&&i.call(this,a),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){const r=this.match(52);return this.next(),r?s>-1&&this.unexpected(s):t.await=s>-1,"VariableDeclaration"!==e.type||null==e.declarations[0].init||r&&!this.state.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type?"AssignmentPattern"===e.type&&this.raise(e.start,Dc.InvalidLhs,"for-loop"):this.raise(e.start,Dc.ForInOfLoopInitializer,r?"for-in":"for-of"),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")}parseVar(t,e,s){const r=t.declarations=[],i=this.hasPlugin("typescript");for(t.kind=s;;){const t=this.startNode();if(this.parseVarId(t,s),this.eat(27)?t.init=e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==s||this.match(52)||this.isContextual(95)?"Identifier"===t.id.type||e&&(this.match(52)||this.isContextual(95))||this.raise(this.state.lastTokEnd,Dc.DeclarationMissingInitializer,"Complex binding patterns"):i||this.raise(this.state.lastTokEnd,Dc.DeclarationMissingInitializer,"Const declarations"),t.init=null),r.push(this.finishNode(t,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,"variable declaration","var"===e?5:9,void 0,"var"!==e)}parseFunction(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=1&e,i=2&e,n=!(!r||4&e);this.initFunction(t,s),this.match(49)&&i&&this.raise(this.state.start,Dc.GeneratorInSingleStatementContext),t.generator=this.eat(49),r&&(t.id=this.parseFunctionId(n));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Ml(s,t.generator)),r||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(t,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=a,t}parseFunctionId(t){return t||Uc(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(new Il(3)),t.params=this.parseBindingList(11,41,!1,e),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:9:17,t.id.start)}parseClass(t,e,s){this.next(),this.takeDecorators(t);const r=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,r),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(27)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(t){return!(t.computed||t.static||"constructor"!==t.key.name&&"constructor"!==t.key.value)}parseClassBody(t,e){this.classScope.enter();const s={hadConstructor:!1,hadSuperClass:t};let r=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(this.state.lastTokEnd,Dc.DecoratorSemicolon);continue}if(this.match(24)){r.push(this.parseDecorator());continue}const t=this.startNode();r.length&&(t.decorators=r,this.resetStartLocationFromNode(t,r[0]),r=[]),this.parseClassMember(i,t,s),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&this.raise(t.start,Dc.DecoratorConstructor)}})),this.state.strict=e,this.next(),r.length)throw this.raise(this.state.start,Dc.TrailingDecorator);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(t,e){const s=this.parseIdentifier(!0);if(this.isClassMethod()){const r=e;return r.kind="method",r.computed=!1,r.key=s,r.static=!1,this.pushClassMethod(t,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=e;return r.computed=!1,r.key=s,r.static=!1,t.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){const r=this.isContextual(98);if(r){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5))return void this.parseClassStaticBlock(t,e)}this.parseClassMemberWithIsStatic(t,e,s,r)}parseClassMemberWithIsStatic(t,e,s,r){const i=e,n=e,a=e,o=e,u=i,h=i;if(e.static=r,this.parsePropertyNamePrefixOperator(e),this.eat(49)){u.kind="method";const e=this.match(128);return this.parseClassElementName(u),e?void this.pushClassPrivateMethod(t,n,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,Dc.ConstructorIsGenerator),void this.pushClassMethod(t,i,!0,!1,!1,!1))}const p=Uc(this.state.type)&&!this.state.containsEsc,c=this.match(128),l=this.parseClassElementName(e),d=this.state.start;if(this.parsePostMemberNameModifiers(h),this.isClassMethod()){if(u.kind="method",c)return void this.pushClassPrivateMethod(t,n,!1,!1);const r=this.isNonstaticConstructor(i);let a=!1;r&&(i.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(l.start,Dc.DuplicateConstructor),r&&this.hasPlugin("typescript")&&e.override&&this.raise(l.start,Dc.OverrideOnConstructor),s.hadConstructor=!0,a=s.hadSuperClass),this.pushClassMethod(t,i,!1,!1,r,a)}else if(this.isClassProperty())c?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,a);else if(p&&"async"===l.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(l);const e=this.eat(49);h.optional&&this.unexpected(d),u.kind="method";const s=this.match(128);this.parseClassElementName(u),this.parsePostMemberNameModifiers(h),s?this.pushClassPrivateMethod(t,n,e,!0):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,Dc.ConstructorIsAsync),this.pushClassMethod(t,i,e,!0,!1,!1))}else if(!p||"get"!==l.name&&"set"!==l.name||this.match(49)&&this.isLineTerminator())this.isLineTerminator()?c?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,a):this.unexpected();else{this.resetPreviousNodeTrailingComments(l),u.kind=l.name;const e=this.match(128);this.parseClassElementName(i),e?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,Dc.ConstructorIsAccessor),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}}parseClassElementName(t){const{type:e,value:s,start:r}=this.state;if(122!==e&&123!==e||!t.static||"prototype"!==s||this.raise(r,Dc.StaticPrototype),128===e){"constructor"===s&&this.raise(r,Dc.ConstructorClassPrivateField);const e=this.parsePrivateName();return t.key=e,e}return this.parsePropertyName(t)}parseClassStaticBlock(t,e){var s;this.scope.enter(208);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=e.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,t.body.push(this.finishNode(e,"StaticBlock")),null!=(s=e.decorators)&&s.length&&this.raise(e.start,Dc.DecoratorStaticBlock)}pushClassProperty(t,e){e.computed||"constructor"!==e.key.name&&"constructor"!==e.key.value||this.raise(e.key.start,Dc.ConstructorClassField),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){const s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.start)}pushClassMethod(t,e,s,r,i,n){t.body.push(this.parseMethod(e,s,r,i,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,r){const i=this.parseMethod(e,s,r,!1,!1,"ClassPrivateMethod",!0);t.body.push(i);const n="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(Ll()),this.prodParam.enter(0),t.value=this.eat(27)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:139;Uc(this.state.type)?(t.id=this.parseIdentifier(),e&&this.checkLVal(t.id,"class name",r)):s||!e?t.id=null:this.unexpected(null,Dc.MissingClassName)}parseClassSuper(t){t.superClass=this.eat(75)?this.parseExprSubscripts():null}parseExport(t){const e=this.maybeParseExportDefaultSpecifier(t),s=!e||this.eat(12),r=s&&this.eatExportStar(t),i=r&&this.maybeParseExportNamespaceSpecifier(t),n=s&&(!i||this.eat(12)),a=e||r;if(r&&!i)return e&&this.unexpected(),this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration");const o=this.maybeParseExportNamedSpecifiers(t);if(e&&s&&!r&&!o||i&&n&&!o)throw this.unexpected(null,5);let u;if(a||o?(u=!1,this.parseExportFrom(t,a)):u=this.maybeParseExportDeclaration(t),a||o||u)return this.checkExport(t,!0,!1,!!t.source),this.finishNode(t,"ExportNamedDeclaration");if(this.eat(59))return t.declaration=this.parseExportDefaultExpression(),this.checkExport(t,!0,!0),this.finishNode(t,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(t){return this.eat(49)}maybeParseExportDefaultSpecifier(t){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const e=this.startNode();return e.exported=this.parseIdentifier(!0),t.specifiers=[this.finishNode(e,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(87)){t.specifiers||(t.specifiers=[]);const e=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);const e="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(e)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return!!this.shouldParseExportDeclaration()&&(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0)}isAsyncFunction(){if(!this.isContextual(89))return!1;const t=this.nextTokenStart();return!sc.test(this.input.slice(this.state.pos,t))&&this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode(),e=this.isAsyncFunction();if(this.match(62)||e)return this.next(),e&&this.next(),this.parseFunction(t,5,e);if(this.match(74))return this.parseClass(t,!0,!0);if(this.match(24))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,Dc.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(t,!0,!0);if(this.match(69)||this.match(68)||this.isLet())throw this.raise(this.state.start,Dc.UnsupportedDefaultExport);{const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}}parseExportDeclaration(t){return this.parseStatement(null)}isExportDefaultSpecifier(){const{type:t}=this.state;if(Uc(t)){if(89===t&&!this.state.containsEsc||93===t)return!1;if((120===t||119===t)&&!this.state.containsEsc){const{type:t}=this.lookahead();if(Uc(t)&&91!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(59))return!1;const e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||Uc(this.state.type)&&s)return!0;if(this.match(59)&&s){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(t,e){if(this.eatContextual(91)){t.source=this.parseImportSource(),this.checkExport(t);const e=this.maybeParseImportAssertions();e&&(t.assertions=e)}else e&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){const{type:t}=this.state;if(24===t&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,Dc.DecoratorBeforeExport)}return 68===t||69===t||62===t||74===t||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,r){if(e)if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var i;const e=t.declaration;"Identifier"!==e.type||"from"!==e.name||e.end-e.start!=4||null!=(i=e.extra)&&i.parenthesized||this.raise(e.start,Dc.ExportDefaultFromAsIdentifier)}}else if(t.specifiers&&t.specifiers.length)for(const e of t.specifiers){const{exported:t}=e,s="Identifier"===t.type?t.name:t.value;if(this.checkDuplicateExports(e,s),!r&&e.local){const{local:t}=e;"Identifier"!==t.type?this.raise(e.start,Dc.ExportBindingIsString,t.value,s):(this.checkReservedWord(t.name,t.start,!0,!1),this.scope.checkLocalExport(t))}}else if(t.declaration)if("FunctionDeclaration"===t.declaration.type||"ClassDeclaration"===t.declaration.type){const e=t.declaration.id;if(!e)throw new Error("Assertion failure");this.checkDuplicateExports(t,e.name)}else if("VariableDeclaration"===t.declaration.type)for(const e of t.declaration.declarations)this.checkDeclaration(e.id);if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(t.start,Dc.UnsupportedDecoratorExport)}checkDeclaration(t){if("Identifier"===t.type)this.checkDuplicateExports(t,t.name);else if("ObjectPattern"===t.type)for(const e of t.properties)this.checkDeclaration(e);else if("ArrayPattern"===t.type)for(const e of t.elements)e&&this.checkDeclaration(e);else"ObjectProperty"===t.type?this.checkDeclaration(t.value):"RestElement"===t.type?this.checkDeclaration(t.argument):"AssignmentPattern"===t.type&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&this.raise(t.start,"default"===e?Dc.DuplicateDefaultExport:Dc.DuplicateExport,e),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){const e=[];let s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(120),i=this.match(123),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,i,t,r))}return e}parseExportSpecifier(t,e,s,r){return this.eatContextual(87)?t.exported=this.parseModuleExportName():e?t.exported=zl(t.local):t.exported||(t.exported=_l(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(123)){const t=this.parseStringLiteral(this.state.value),e=t.value.match(Ed);return e&&this.raise(t.start,Dc.ModuleExportNameHasLoneSurrogate,e[0].charCodeAt(0).toString(16)),t}return this.parseIdentifier(!0)}parseImport(t){if(t.specifiers=[],!this.match(123)){const e=!this.maybeParseDefaultImportSpecifier(t)||this.eat(12),s=e&&this.maybeParseStarImportSpecifier(t);e&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(91)}t.source=this.parseImportSource();const e=this.maybeParseImportAssertions();if(e)t.assertions=e;else{const e=this.maybeParseModuleAttributes();e&&(t.attributes=e)}return this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(123)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(t){return Uc(this.state.type)}parseImportSpecifierLocal(t,e,s,r){e.local=this.parseIdentifier(),this.checkLVal(e.local,r,9),t.specifiers.push(this.finishNode(e,s))}parseAssertEntries(){const t=[],e=new Set;do{if(this.match(8))break;const s=this.startNode(),r=this.state.value;if(e.has(r)&&this.raise(this.state.start,Dc.ModuleAttributesWithDuplicateKeys,r),e.add(r),this.match(123)?s.key=this.parseStringLiteral(r):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(123))throw this.unexpected(this.state.start,Dc.ModuleAttributeInvalidValue);s.value=this.parseStringLiteral(this.state.value),this.finishNode(s,"ImportAttribute"),t.push(s)}while(this.eat(12));return t}maybeParseModuleAttributes(){if(!this.match(70)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const t=[],e=new Set;do{const s=this.startNode();if(s.key=this.parseIdentifier(!0),"type"!==s.key.name&&this.raise(s.key.start,Dc.ModuleAttributeDifferentFromType,s.key.name),e.has(s.key.name)&&this.raise(s.key.start,Dc.ModuleAttributesWithDuplicateKeys,s.key.name),e.add(s.key.name),this.expect(14),!this.match(123))throw this.unexpected(this.state.start,Dc.ModuleAttributeInvalidValue);s.value=this.parseStringLiteral(this.state.value),this.finishNode(s,"ImportAttribute"),t.push(s)}while(this.eat(12));return t}maybeParseImportAssertions(){if(!this.isContextual(88)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(5);const t=this.parseAssertEntries();return this.eat(8),t}maybeParseDefaultImportSpecifier(t){return!!this.shouldParseDefaultImport(t)&&(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(t){if(this.match(49)){const e=this.startNode();return this.next(),this.expectContextual(87),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(this.state.start,Dc.DestructureNamedImport);if(this.expect(12),this.eat(8))break}const s=this.startNode(),r=this.match(123),i=this.isContextual(120);s.imported=this.parseModuleExportName();const n=this.parseImportSpecifier(s,r,"type"===t.importKind||"typeof"===t.importKind,i);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,r){if(this.eatContextual(87))t.local=this.parseIdentifier();else{const{imported:s}=t;if(e)throw this.raise(t.start,Dc.ImportBindingIsString,s.value);this.checkReservedWord(s.name,t.start,!0,!0),t.local||(t.local=_l(s))}return this.checkLVal(t.local,"import specifier",9),this.finishNode(t,"ImportSpecifier")}isThisParam(t){return"Identifier"===t.type&&"this"===t.name}}{constructor(t,e){t=function(t){const e={};for(const s of Object.keys(dd))e[s]=t&&null!=t[s]?t[s]:dd[s];return e}(t),super(t,e),this.options=t,this.initializeScopes(),this.plugins=function(t){const e=new Map;for(const s of t){const[t,r]=Array.isArray(s)?s:[s,{}];e.has(t)||e.set(t,r||{})}return e}(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return Cl}parse(){this.enterInitialScopes();const t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t}}const xd=function(t){const e={};for(const s of Object.keys(t))e[s]=Gc(t[s]);return e}(jc);function Fd(t,e){let s=Cd;return null!=t&&t.plugins&&(!function(t){if(ad(t,"decorators")){if(ad(t,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const e=od(t,"decorators","decoratorsBeforeExport");if(null==e)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if("boolean"!=typeof e)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(ad(t,"flow")&&ad(t,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(ad(t,"placeholders")&&ad(t,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(ad(t,"pipelineOperator")){const e=od(t,"pipelineOperator","proposal");if(!ud.includes(e)){const t=ud.map((t=>'"'.concat(t,'"'))).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '.concat(t,"."))}const s=ad(t,"recordAndTuple")&&"hash"===od(t,"recordAndTuple","syntaxType");if("hack"===e){if(ad(t,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(ad(t,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const e=od(t,"pipelineOperator","topicToken");if(!hd.includes(e)){const t=hd.map((t=>'"'.concat(t,'"'))).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '.concat(t,"."))}if("#"===e&&s)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===e&&s)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(ad(t,"moduleAttributes")){if(ad(t,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==od(t,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(ad(t,"recordAndTuple")&&!pd.includes(od(t,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+pd.map((t=>"'".concat(t,"'"))).join(", "));if(ad(t,"asyncDoExpressions")&&!ad(t,"doExpressions")){const t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}}(t.plugins),s=function(t){const e=ld.filter((e=>ad(t,e))),s=e.join("/");let r=gd[s];if(!r){r=Cd;for(const t of e)r=cd[t](r);gd[s]=r}return r}(t.plugins)),new s(t,e)}const gd={};ec.parse=function(t,e){var s;if("unambiguous"!==(null==(s=e)?void 0:s.sourceType))return Fd(e,t).parse();e=Object.assign({},e);try{e.sourceType="module";const s=Fd(e,t),r=s.parse();if(s.sawUnambiguousESM)return r;if(s.ambiguousScriptDifferentAst)try{return e.sourceType="script",Fd(e,t).parse()}catch(t){}else r.program.sourceType="script";return r}catch(s){try{return e.sourceType="script",Fd(e,t).parse()}catch(t){}throw s}},ec.parseExpression=function(t,e){const s=Fd(e,t);return s.options.strictMode&&(s.state.strict=!0),s.getExpression()},ec.tokTypes=xd;const{isNonEmptyArray:Pd}=Oo,Td=ku,bd=vu,Sd=Ou;function wd(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{allowComments:e=!0}=t;return function(t){const{parseExpression:s}=ec;let r;try{r=s(t,{tokens:!0,ranges:!0})}catch(t){throw Sd(t)}if(!e&&Pd(r.comments))throw Bd(r.comments[0],"Comment");return Nd(r),r}}function Bd(t,e){const[s,r]=[t.loc.start,t.loc.end].map((t=>{let{line:e,column:s}=t;return{line:e,column:s+1}}));return Td("".concat(e," is not allowed in JSON."),{start:s,end:r})}function Nd(t){switch(t.type){case"ArrayExpression":for(const e of t.elements)null!==e&&Nd(e);return;case"ObjectExpression":for(const e of t.properties)Nd(e);return;case"ObjectProperty":if(t.computed)throw Bd(t.key,"Computed key");if(t.shorthand)throw Bd(t.key,"Shorthand property");return"Identifier"!==t.key.type&&Nd(t.key),void Nd(t.value);case"UnaryExpression":{const{operator:e,argument:s}=t;if("+"!==e&&"-"!==e)throw Bd(t,"Operator '".concat(t.operator,"'"));if("NumericLiteral"===s.type||"Identifier"===s.type&&("Infinity"===s.name||"NaN"===s.name))return;throw Bd(s,"Operator '".concat(e,"' before '").concat(s.type,"'"))}case"Identifier":if("Infinity"!==t.name&&"NaN"!==t.name&&"undefined"!==t.name)throw Bd(t,"Identifier '".concat(t.name,"'"));return;case"TemplateLiteral":if(Pd(t.expressions))throw Bd(t.expressions[0],"'TemplateLiteral' with expression");for(const e of t.quasis)Nd(e);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw Bd(t,"'".concat(t.type,"'"))}}const Id=wd();var vd={json:bd({parse:Id,hasPragma:()=>!0}),json5:bd(Id),"json-stringify":bd({parse:wd({allowComments:!1}),astFormat:"estree-json"})};const kd=xi,{getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ld,getShebang:Od}=Oo,Md=vu,Rd=Ou,jd=tc,Ud=vd,_d={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions"],tokens:!0,ranges:!0},zd=["recordAndTuple",{syntaxType:"hash"}],Hd="v8intrinsic",Vd=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],qd=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_d;return Object.assign(Object.assign({},e),{},{plugins:[...e.plugins,...t]})},Wd=/@(?:no)?flow\b/;function Kd(t,e){if(e.filepath&&e.filepath.endsWith(".js.flow"))return!0;const s=Od(t);s&&(t=t.slice(s.length));const r=Ld(t,0);return!1!==r&&(t=t.slice(0,r)),Wd.test(t)}function Gd(t,e,s){const r=(0,ec[t])(e,s),i=r.errors.find((t=>!tD.has(t.reasonCode)));if(i)throw i;return r}function Xd(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),r=1;r<e;r++)s[r-1]=arguments[r];return function(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(("babel"===i.parser||"__babel_estree"===i.parser)&&Kd(e,i))return i.parser="babel-flow",$d(e,r,i);let n=s;"script"===i.__babelSourceType&&(n=n.map((t=>Object.assign(Object.assign({},t),{},{sourceType:"script"})))),/#[[{]/.test(e)&&(n=n.map((t=>qd([zd],t))));const a=/%[A-Z]/.test(e);if(e.includes("|>")){const t=a?[...Vd,Hd]:Vd;n=t.flatMap((t=>n.map((e=>qd([t],e)))))}else a&&(n=n.map((t=>qd([Hd],t))));const{result:o,error:u}=kd(...n.map((s=>()=>Gd(t,e,s))));if(!o)throw Rd(u);return i.originalText=e,jd(o,i)}}const Jd=Xd("parse",qd(["jsx","flow"])),$d=Xd("parse",qd(["jsx",["flow",{all:!0,enums:!0}]])),Yd=Xd("parse",qd(["jsx","typescript"]),qd(["typescript"])),Qd=Xd("parse",qd(["jsx","flow","estree"])),Zd=Xd("parseExpression",qd(["jsx"])),tD=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),eD=Md(Jd),sD=Md(Zd);return{parsers:Object.assign(Object.assign({babel:eD,"babel-flow":Md($d),"babel-ts":Md(Yd)},Ud),{},{__js_expression:sD,__vue_expression:sD,__vue_event_binding:eD,__babel_estree:Md(Qd)})}}));