UNPKG

prettier

Version:

Prettier is an opinionated code formatter

24 lines (23 loc) 321 kB
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.babel=e()}})(function(){"use strict";var C=(l,u)=>()=>(u||l((u={exports:{}}).exports,u),u.exports);var W=C((Hd,si)=>{var vt=function(l){return l&&l.Math==Math&&l};si.exports=vt(typeof globalThis=="object"&&globalThis)||vt(typeof window=="object"&&window)||vt(typeof self=="object"&&self)||vt(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var ge=C(($d,ri)=>{ri.exports=function(l){try{return!!l()}catch{return!0}}});var De=C((zd,ii)=>{var uh=ge();ii.exports=!uh(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Et=C((Vd,ai)=>{var ch=ge();ai.exports=!ch(function(){var l=function(){}.bind();return typeof l!="function"||l.hasOwnProperty("prototype")})});var bt=C((Kd,ni)=>{var ph=Et(),Ct=Function.prototype.call;ni.exports=ph?Ct.bind(Ct):function(){return Ct.apply(Ct,arguments)}});var ui=C(hi=>{"use strict";var oi={}.propertyIsEnumerable,li=Object.getOwnPropertyDescriptor,dh=li&&!oi.call({1:2},1);hi.f=dh?function(u){var d=li(this,u);return!!d&&d.enumerable}:oi});var xs=C((Gd,ci)=>{ci.exports=function(l,u){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:u}}});var ne=C((Jd,fi)=>{var pi=Et(),di=Function.prototype,fh=di.bind,gs=di.call,mh=pi&&fh.bind(gs,gs);fi.exports=pi?function(l){return l&&mh(l)}:function(l){return l&&function(){return gs.apply(l,arguments)}}});var St=C((Xd,yi)=>{var mi=ne(),yh=mi({}.toString),xh=mi("".slice);yi.exports=function(l){return xh(yh(l),8,-1)}});var gi=C((Yd,xi)=>{var gh=W(),Ph=ne(),Ah=ge(),Th=St(),Ps=gh.Object,vh=Ph("".split);xi.exports=Ah(function(){return!Ps("z").propertyIsEnumerable(0)})?function(l){return Th(l)=="String"?vh(l,""):Ps(l)}:Ps});var As=C((Qd,Pi)=>{var Eh=W(),Ch=Eh.TypeError;Pi.exports=function(l){if(l==null)throw Ch("Can't call method on "+l);return l}});var wt=C((Zd,Ai)=>{var bh=gi(),Sh=As();Ai.exports=function(l){return bh(Sh(l))}});var oe=C((ef,Ti)=>{Ti.exports=function(l){return typeof l=="function"}});var Fe=C((tf,vi)=>{var wh=oe();vi.exports=function(l){return typeof l=="object"?l!==null:wh(l)}});var tt=C((sf,Ei)=>{var Ts=W(),Ih=oe(),Nh=function(l){return Ih(l)?l:void 0};Ei.exports=function(l,u){return arguments.length<2?Nh(Ts[l]):Ts[l]&&Ts[l][u]}});var bi=C((rf,Ci)=>{var kh=ne();Ci.exports=kh({}.isPrototypeOf)});var wi=C((af,Si)=>{var Dh=tt();Si.exports=Dh("navigator","userAgent")||""});var Oi=C((nf,Li)=>{var Fi=W(),vs=wi(),Ii=Fi.process,Ni=Fi.Deno,ki=Ii&&Ii.versions||Ni&&Ni.version,Di=ki&&ki.v8,le,It;Di&&(le=Di.split("."),It=le[0]>0&&le[0]<4?1:+(le[0]+le[1]));!It&&vs&&(le=vs.match(/Edge\/(\d+)/),(!le||le[1]>=74)&&(le=vs.match(/Chrome\/(\d+)/),le&&(It=+le[1])));Li.exports=It});var Es=C((of,Bi)=>{var Mi=Oi(),Fh=ge();Bi.exports=!!Object.getOwnPropertySymbols&&!Fh(function(){var l=Symbol();return!String(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&Mi&&Mi<41})});var Cs=C((lf,_i)=>{var Lh=Es();_i.exports=Lh&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var bs=C((hf,Ri)=>{var Oh=W(),Mh=tt(),Bh=oe(),_h=bi(),Rh=Cs(),jh=Oh.Object;Ri.exports=Rh?function(l){return typeof l=="symbol"}:function(l){var u=Mh("Symbol");return Bh(u)&&_h(u.prototype,jh(l))}});var qi=C((uf,ji)=>{var qh=W(),Uh=qh.String;ji.exports=function(l){try{return Uh(l)}catch{return"Object"}}});var Nt=C((cf,Ui)=>{var Hh=W(),$h=oe(),zh=qi(),Vh=Hh.TypeError;Ui.exports=function(l){if($h(l))return l;throw Vh(zh(l)+" is not a function")}});var $i=C((pf,Hi)=>{var Kh=Nt();Hi.exports=function(l,u){var d=l[u];return d==null?void 0:Kh(d)}});var Vi=C((df,zi)=>{var Wh=W(),Ss=bt(),ws=oe(),Is=Fe(),Gh=Wh.TypeError;zi.exports=function(l,u){var d,f;if(u==="string"&&ws(d=l.toString)&&!Is(f=Ss(d,l))||ws(d=l.valueOf)&&!Is(f=Ss(d,l))||u!=="string"&&ws(d=l.toString)&&!Is(f=Ss(d,l)))return f;throw Gh("Can't convert object to primitive value")}});var Wi=C((ff,Ki)=>{Ki.exports=!1});var kt=C((mf,Ji)=>{var Gi=W(),Jh=Object.defineProperty;Ji.exports=function(l,u){try{Jh(Gi,l,{value:u,configurable:!0,writable:!0})}catch{Gi[l]=u}return u}});var Dt=C((yf,Yi)=>{var Xh=W(),Yh=kt(),Xi="__core-js_shared__",Qh=Xh[Xi]||Yh(Xi,{});Yi.exports=Qh});var Ns=C((xf,Zi)=>{var Zh=Wi(),Qi=Dt();(Zi.exports=function(l,u){return Qi[l]||(Qi[l]=u!==void 0?u:{})})("versions",[]).push({version:"3.22.2",mode:Zh?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"})});var ks=C((gf,ea)=>{var eu=W(),tu=As(),su=eu.Object;ea.exports=function(l){return su(tu(l))}});var Ce=C((Pf,ta)=>{var ru=ne(),iu=ks(),au=ru({}.hasOwnProperty);ta.exports=Object.hasOwn||function(u,d){return au(iu(u),d)}});var Ds=C((Af,sa)=>{var nu=ne(),ou=0,lu=Math.random(),hu=nu(1 .toString);sa.exports=function(l){return"Symbol("+(l===void 0?"":l)+")_"+hu(++ou+lu,36)}});var st=C((Tf,oa)=>{var uu=W(),cu=Ns(),ra=Ce(),pu=Ds(),ia=Es(),na=Cs(),ze=cu("wks"),Le=uu.Symbol,aa=Le&&Le.for,du=na?Le:Le&&Le.withoutSetter||pu;oa.exports=function(l){if(!ra(ze,l)||!(ia||typeof ze[l]=="string")){var u="Symbol."+l;ia&&ra(Le,l)?ze[l]=Le[l]:na&&aa?ze[l]=aa(u):ze[l]=du(u)}return ze[l]}});var ca=C((vf,ua)=>{var fu=W(),mu=bt(),la=Fe(),ha=bs(),yu=$i(),xu=Vi(),gu=st(),Pu=fu.TypeError,Au=gu("toPrimitive");ua.exports=function(l,u){if(!la(l)||ha(l))return l;var d=yu(l,Au),f;if(d){if(u===void 0&&(u="default"),f=mu(d,l,u),!la(f)||ha(f))return f;throw Pu("Can't convert object to primitive value")}return u===void 0&&(u="number"),xu(l,u)}});var Fs=C((Ef,pa)=>{var Tu=ca(),vu=bs();pa.exports=function(l){var u=Tu(l,"string");return vu(u)?u:u+""}});var ma=C((Cf,fa)=>{var Eu=W(),da=Fe(),Ls=Eu.document,Cu=da(Ls)&&da(Ls.createElement);fa.exports=function(l){return Cu?Ls.createElement(l):{}}});var Os=C((bf,ya)=>{var bu=De(),Su=ge(),wu=ma();ya.exports=!bu&&!Su(function(){return Object.defineProperty(wu("div"),"a",{get:function(){return 7}}).a!=7})});var Ms=C(ga=>{var Iu=De(),Nu=bt(),ku=ui(),Du=xs(),Fu=wt(),Lu=Fs(),Ou=Ce(),Mu=Os(),xa=Object.getOwnPropertyDescriptor;ga.f=Iu?xa:function(u,d){if(u=Fu(u),d=Lu(d),Mu)try{return xa(u,d)}catch{}if(Ou(u,d))return Du(!Nu(ku.f,u,d),u[d])}});var Aa=C((wf,Pa)=>{var Bu=De(),_u=ge();Pa.exports=Bu&&_u(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var Bs=C((If,va)=>{var Ta=W(),Ru=Fe(),ju=Ta.String,qu=Ta.TypeError;va.exports=function(l){if(Ru(l))return l;throw qu(ju(l)+" is not an object")}});var Us=C(Ca=>{var Uu=W(),Hu=De(),$u=Os(),zu=Aa(),Ft=Bs(),Ea=Fs(),Vu=Uu.TypeError,_s=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,Rs="enumerable",js="configurable",qs="writable";Ca.f=Hu?zu?function(u,d,f){if(Ft(u),d=Ea(d),Ft(f),typeof u=="function"&&d==="prototype"&&"value"in f&&qs in f&&!f[qs]){var y=Ku(u,d);y&&y[qs]&&(u[d]=f.value,f={configurable:js in f?f[js]:y[js],enumerable:Rs in f?f[Rs]:y[Rs],writable:!1})}return _s(u,d,f)}:_s:function(u,d,f){if(Ft(u),d=Ea(d),Ft(f),$u)try{return _s(u,d,f)}catch{}if("get"in f||"set"in f)throw Vu("Accessors not supported");return"value"in f&&(u[d]=f.value),u}});var Lt=C((kf,ba)=>{var Wu=De(),Gu=Us(),Ju=xs();ba.exports=Wu?function(l,u,d){return Gu.f(l,u,Ju(1,d))}:function(l,u,d){return l[u]=d,l}});var Ot=C((Df,Sa)=>{var Xu=ne(),Yu=oe(),Hs=Dt(),Qu=Xu(Function.toString);Yu(Hs.inspectSource)||(Hs.inspectSource=function(l){return Qu(l)});Sa.exports=Hs.inspectSource});var Na=C((Ff,Ia)=>{var Zu=W(),ec=oe(),tc=Ot(),wa=Zu.WeakMap;Ia.exports=ec(wa)&&/native code/.test(tc(wa))});var Fa=C((Lf,Da)=>{var sc=Ns(),rc=Ds(),ka=sc("keys");Da.exports=function(l){return ka[l]||(ka[l]=rc(l))}});var $s=C((Of,La)=>{La.exports={}});var ja=C((Mf,Ra)=>{var ic=Na(),_a=W(),zs=ne(),ac=Fe(),nc=Lt(),Vs=Ce(),Ks=Dt(),oc=Fa(),lc=$s(),Oa="Object already initialized",Gs=_a.TypeError,hc=_a.WeakMap,Mt,rt,Bt,uc=function(l){return Bt(l)?rt(l):Mt(l,{})},cc=function(l){return function(u){var d;if(!ac(u)||(d=rt(u)).type!==l)throw Gs("Incompatible receiver, "+l+" required");return d}};ic||Ks.state?(be=Ks.state||(Ks.state=new hc),Ma=zs(be.get),Ws=zs(be.has),Ba=zs(be.set),Mt=function(l,u){if(Ws(be,l))throw new Gs(Oa);return u.facade=l,Ba(be,l,u),u},rt=function(l){return Ma(be,l)||{}},Bt=function(l){return Ws(be,l)}):(Oe=oc("state"),lc[Oe]=!0,Mt=function(l,u){if(Vs(l,Oe))throw new Gs(Oa);return u.facade=l,nc(l,Oe,u),u},rt=function(l){return Vs(l,Oe)?l[Oe]:{}},Bt=function(l){return Vs(l,Oe)});var be,Ma,Ws,Ba,Oe;Ra.exports={set:Mt,get:rt,has:Bt,enforce:uc,getterFor:cc}});var Ha=C((Bf,Ua)=>{var Js=De(),pc=Ce(),qa=Function.prototype,dc=Js&&Object.getOwnPropertyDescriptor,Xs=pc(qa,"name"),fc=Xs&&function(){}.name==="something",mc=Xs&&(!Js||Js&&dc(qa,"name").configurable);Ua.exports={EXISTS:Xs,PROPER:fc,CONFIGURABLE:mc}});var Wa=C((_f,Ka)=>{var yc=W(),$a=oe(),xc=Ce(),za=Lt(),gc=kt(),Pc=Ot(),Va=ja(),Ac=Ha().CONFIGURABLE,Tc=Va.get,vc=Va.enforce,Ec=String(String).split("String");(Ka.exports=function(l,u,d,f){var y=f?!!f.unsafe:!1,A=f?!!f.enumerable:!1,g=f?!!f.noTargetGet:!1,T=f&&f.name!==void 0?f.name:u,S;if($a(d)&&(String(T).slice(0,7)==="Symbol("&&(T="["+String(T).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xc(d,"name")||Ac&&d.name!==T)&&za(d,"name",T),S=vc(d),S.source||(S.source=Ec.join(typeof T=="string"?T:""))),l===yc){A?l[u]=d:gc(u,d);return}else y?!g&&l[u]&&(A=!0):delete l[u];A?l[u]=d:za(l,u,d)})(Function.prototype,"toString",function(){return $a(this)&&Tc(this).source||Pc(this)})});var Ys=C((Rf,Ga)=>{var Cc=Math.ceil,bc=Math.floor;Ga.exports=function(l){var u=+l;return u!==u||u===0?0:(u>0?bc:Cc)(u)}});var Xa=C((jf,Ja)=>{var Sc=Ys(),wc=Math.max,Ic=Math.min;Ja.exports=function(l,u){var d=Sc(l);return d<0?wc(d+u,0):Ic(d,u)}});var Qa=C((qf,Ya)=>{var Nc=Ys(),kc=Math.min;Ya.exports=function(l){return l>0?kc(Nc(l),9007199254740991):0}});var _t=C((Uf,Za)=>{var Dc=Qa();Za.exports=function(l){return Dc(l.length)}});var sn=C((Hf,tn)=>{var Fc=wt(),Lc=Xa(),Oc=_t(),en=function(l){return function(u,d,f){var y=Fc(u),A=Oc(y),g=Lc(f,A),T;if(l&&d!=d){for(;A>g;)if(T=y[g++],T!=T)return!0}else for(;A>g;g++)if((l||g in y)&&y[g]===d)return l||g||0;return!l&&-1}};tn.exports={includes:en(!0),indexOf:en(!1)}});var nn=C(($f,an)=>{var Mc=ne(),Qs=Ce(),Bc=wt(),_c=sn().indexOf,Rc=$s(),rn=Mc([].push);an.exports=function(l,u){var d=Bc(l),f=0,y=[],A;for(A in d)!Qs(Rc,A)&&Qs(d,A)&&rn(y,A);for(;u.length>f;)Qs(d,A=u[f++])&&(~_c(y,A)||rn(y,A));return y}});var ln=C((zf,on)=>{on.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var un=C(hn=>{var jc=nn(),qc=ln(),Uc=qc.concat("length","prototype");hn.f=Object.getOwnPropertyNames||function(u){return jc(u,Uc)}});var pn=C(cn=>{cn.f=Object.getOwnPropertySymbols});var fn=C((Wf,dn)=>{var Hc=tt(),$c=ne(),zc=un(),Vc=pn(),Kc=Bs(),Wc=$c([].concat);dn.exports=Hc("Reflect","ownKeys")||function(u){var d=zc.f(Kc(u)),f=Vc.f;return f?Wc(d,f(u)):d}});var xn=C((Gf,yn)=>{var mn=Ce(),Gc=fn(),Jc=Ms(),Xc=Us();yn.exports=function(l,u,d){for(var f=Gc(u),y=Xc.f,A=Jc.f,g=0;g<f.length;g++){var T=f[g];!mn(l,T)&&!(d&&mn(d,T))&&y(l,T,A(u,T))}}});var Pn=C((Jf,gn)=>{var Yc=ge(),Qc=oe(),Zc=/#|\.prototype\./,it=function(l,u){var d=tp[ep(l)];return d==rp?!0:d==sp?!1:Qc(u)?Yc(u):!!u},ep=it.normalize=function(l){return String(l).replace(Zc,".").toLowerCase()},tp=it.data={},sp=it.NATIVE="N",rp=it.POLYFILL="P";gn.exports=it});var er=C((Xf,An)=>{var Zs=W(),ip=Ms().f,ap=Lt(),np=Wa(),op=kt(),lp=xn(),hp=Pn();An.exports=function(l,u){var d=l.target,f=l.global,y=l.stat,A,g,T,S,F,I;if(f?g=Zs:y?g=Zs[d]||op(d,{}):g=(Zs[d]||{}).prototype,g)for(T in u){if(F=u[T],l.noTargetGet?(I=ip(g,T),S=I&&I.value):S=g[T],A=hp(f?T:d+(y?".":"#")+T,l.forced),!A&&S!==void 0){if(typeof F==typeof S)continue;lp(F,S)}(l.sham||S&&S.sham)&&ap(F,"sham",!0),np(g,T,F,l)}}});var Tn=C(()=>{var up=er(),cp=W();up({global:!0},{globalThis:cp})});var vn=C(()=>{Tn()});var tr=C((tm,En)=>{var pp=St();En.exports=Array.isArray||function(u){return pp(u)=="Array"}});var Sn=C((sm,bn)=>{var Cn=ne(),dp=Nt(),fp=Et(),mp=Cn(Cn.bind);bn.exports=function(l,u){return dp(l),u===void 0?l:fp?mp(l,u):function(){return l.apply(u,arguments)}}});var Nn=C((rm,In)=>{"use strict";var yp=W(),xp=tr(),gp=_t(),Pp=Sn(),Ap=yp.TypeError,wn=function(l,u,d,f,y,A,g,T){for(var S=y,F=0,I=g?Pp(g,T):!1,E,L;F<f;){if(F in d){if(E=I?I(d[F],F,u):d[F],A>0&&xp(E))L=gp(E),S=wn(l,u,E,L,S,A-1)-1;else{if(S>=9007199254740991)throw Ap("Exceed the acceptable array length");l[S]=E}S++}F++}return S};In.exports=wn});var Fn=C((im,Dn)=>{var Tp=st(),vp=Tp("toStringTag"),kn={};kn[vp]="z";Dn.exports=String(kn)==="[object z]"});var On=C((am,Ln)=>{var Ep=W(),Cp=Fn(),bp=oe(),Rt=St(),Sp=st(),wp=Sp("toStringTag"),Ip=Ep.Object,Np=Rt(function(){return arguments}())=="Arguments",kp=function(l,u){try{return l[u]}catch{}};Ln.exports=Cp?Rt:function(l){var u,d,f;return l===void 0?"Undefined":l===null?"Null":typeof(d=kp(u=Ip(l),wp))=="string"?d:Np?Rt(u):(f=Rt(u))=="Object"&&bp(u.callee)?"Arguments":f}});var qn=C((nm,jn)=>{var Dp=ne(),Fp=ge(),Mn=oe(),Lp=On(),Op=tt(),Mp=Ot(),Bn=function(){},Bp=[],_n=Op("Reflect","construct"),sr=/^\s*(?:class|function)\b/,_p=Dp(sr.exec),Rp=!sr.exec(Bn),at=function(u){if(!Mn(u))return!1;try{return _n(Bn,Bp,u),!0}catch{return!1}},Rn=function(u){if(!Mn(u))return!1;switch(Lp(u)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Rp||!!_p(sr,Mp(u))}catch{return!0}};Rn.sham=!0;jn.exports=!_n||Fp(function(){var l;return at(at.call)||!at(Object)||!at(function(){l=!0})||l})?Rn:at});var zn=C((om,$n)=>{var jp=W(),Un=tr(),qp=qn(),Up=Fe(),Hp=st(),$p=Hp("species"),Hn=jp.Array;$n.exports=function(l){var u;return Un(l)&&(u=l.constructor,qp(u)&&(u===Hn||Un(u.prototype))?u=void 0:Up(u)&&(u=u[$p],u===null&&(u=void 0))),u===void 0?Hn:u}});var Kn=C((lm,Vn)=>{var zp=zn();Vn.exports=function(l,u){return new(zp(l))(u===0?0:u)}});var Wn=C(()=>{"use strict";var Vp=er(),Kp=Nn(),Wp=Nt(),Gp=ks(),Jp=_t(),Xp=Kn();Vp({target:"Array",proto:!0},{flatMap:function(u){var d=Gp(this),f=Jp(d),y;return Wp(u),y=Xp(d,0),y.length=Kp(y,d,d,f,0,1,u,arguments.length>1?arguments[1]:void 0),y}})});var qd=C((xm,Eo)=>{vn();Wn();var nr=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyNames,Qp=Object.prototype.hasOwnProperty,Zn=(l,u)=>function(){return l&&(u=(0,l[or(l)[0]])(l=0)),u},K=(l,u)=>function(){return u||(0,l[or(l)[0]])((u={exports:{}}).exports,u),u.exports},Zp=(l,u)=>{for(var d in u)nr(l,d,{get:u[d],enumerable:!0})},ed=(l,u,d,f)=>{if(u&&typeof u=="object"||typeof u=="function")for(let y of or(u))!Qp.call(l,y)&&y!==d&&nr(l,y,{get:()=>u[y],enumerable:!(f=Yp(u,y))||f.enumerable});return l},td=l=>ed(nr({},"__esModule",{value:!0}),l),V=Zn({"<define:process>"(){}}),sd=K({"src/utils/try-combinations.js"(l,u){"use strict";V();function d(){let f;for(var y=arguments.length,A=new Array(y),g=0;g<y;g++)A[g]=arguments[g];for(let[T,S]of A.entries())try{return{result:S()}}catch(F){T===0&&(f=F)}return{error:f}}u.exports=d}}),eo=K({"src/language-js/utils/get-shebang.js"(l,u){"use strict";V();function d(f){if(!f.startsWith("#!"))return"";let y=f.indexOf(` `);return y===-1?f:f.slice(0,y)}u.exports=d}}),rd=K({"src/utils/text/skip-inline-comment.js"(l,u){"use strict";V();function d(f,y){if(y===!1)return!1;if(f.charAt(y)==="/"&&f.charAt(y+1)==="*"){for(let A=y+2;A<f.length;++A)if(f.charAt(A)==="*"&&f.charAt(A+1)==="/")return A+2}return y}u.exports=d}}),id=K({"src/utils/text/skip-newline.js"(l,u){"use strict";V();function d(f,y,A){let g=A&&A.backwards;if(y===!1)return!1;let T=f.charAt(y);if(g){if(f.charAt(y-1)==="\r"&&T===` `)return y-2;if(T===` `||T==="\r"||T==="\u2028"||T==="\u2029")return y-1}else{if(T==="\r"&&f.charAt(y+1)===` `)return y+2;if(T===` `||T==="\r"||T==="\u2028"||T==="\u2029")return y+1}return y}u.exports=d}}),to=K({"src/utils/text/skip.js"(l,u){"use strict";V();function d(T){return(S,F,I)=>{let E=I&&I.backwards;if(F===!1)return!1;let{length:L}=S,j=F;for(;j>=0&&j<L;){let k=S.charAt(j);if(T instanceof RegExp){if(!T.test(k))return j}else if(!T.includes(k))return j;E?j--:j++}return j===-1||j===L?j:!1}}var f=d(/\s/),y=d(" "),A=d(",; "),g=d(/[^\n\r]/);u.exports={skipWhitespace:f,skipSpaces:y,skipToLineEnd:A,skipEverythingButNewLine:g}}}),ad=K({"src/utils/text/skip-trailing-comment.js"(l,u){"use strict";V();var{skipEverythingButNewLine:d}=to();function f(y,A){return A===!1?!1:y.charAt(A)==="/"&&y.charAt(A+1)==="/"?d(y,A):A}u.exports=f}}),nd=K({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(l,u){"use strict";V();var d=rd(),f=id(),y=ad(),{skipSpaces:A}=to();function g(T,S){let F=null,I=S;for(;I!==F;)F=I,I=A(T,I),I=d(T,I),I=y(T,I),I=f(T,I);return I}u.exports=g}}),so={};Zp(so,{EOL:()=>ar,arch:()=>od,cpus:()=>ho,default:()=>mo,endianness:()=>ro,freemem:()=>oo,getNetworkInterfaces:()=>fo,hostname:()=>io,loadavg:()=>ao,networkInterfaces:()=>po,platform:()=>ld,release:()=>co,tmpDir:()=>rr,tmpdir:()=>ir,totalmem:()=>lo,type:()=>uo,uptime:()=>no});function ro(){if(typeof jt>"u"){var l=new ArrayBuffer(2),u=new Uint8Array(l),d=new Uint16Array(l);if(u[0]=1,u[1]=2,d[0]===258)jt="BE";else if(d[0]===513)jt="LE";else throw new Error("unable to figure out endianess")}return jt}function io(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function ao(){return[]}function no(){return 0}function oo(){return Number.MAX_VALUE}function lo(){return Number.MAX_VALUE}function ho(){return[]}function uo(){return"Browser"}function co(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function po(){}function fo(){}function od(){return"javascript"}function ld(){return"browser"}function rr(){return"/tmp"}var jt,ir,ar,mo,hd=Zn({"node-modules-polyfills:os"(){V(),ir=rr,ar=` `,mo={EOL:ar,tmpdir:ir,tmpDir:rr,networkInterfaces:po,getNetworkInterfaces:fo,release:co,type:uo,cpus:ho,totalmem:lo,freemem:oo,uptime:no,loadavg:ao,hostname:io,endianness:ro}}}),ud=K({"node-modules-polyfills-commonjs:os"(l,u){V();var d=(hd(),td(so));if(d&&d.default){u.exports=d.default;for(let f in d)u.exports[f]=d[f]}else d&&(u.exports=d)}}),cd=K({"node_modules/detect-newline/index.js"(l,u){"use strict";V();var d=f=>{if(typeof f!="string")throw new TypeError("Expected a string");let y=f.match(/(?:\r?\n)/g)||[];if(y.length===0)return;let A=y.filter(T=>T===`\r `).length,g=y.length-A;return A>g?`\r `:` `};u.exports=d,u.exports.graceful=f=>typeof f=="string"&&d(f)||` `}}),pd=K({"node_modules/jest-docblock/build/index.js"(l){"use strict";V(),Object.defineProperty(l,"__esModule",{value:!0}),l.extract=j,l.parse=z,l.parseWithComments=G,l.print=B,l.strip=k;function u(){let h=ud();return u=function(){return h},h}function d(){let h=f(cd());return d=function(){return h},h}function f(h){return h&&h.__esModule?h:{default:h}}var y=/\*\/$/,A=/^\/\*\*?/,g=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,T=/(^|\s+)\/\/([^\r\n]*)/g,S=/^(\r?\n)+/,F=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,I=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,E=/(\r?\n|^) *\* ?/g,L=[];function j(h){let J=h.match(g);return J?J[0].trimLeft():""}function k(h){let J=h.match(g);return J&&J[0]?h.substring(J[0].length):h}function z(h){return G(h).pragmas}function G(h){let J=(0,d().default)(h)||u().EOL;h=h.replace(A,"").replace(y,"").replace(E,"$1");let ae="";for(;ae!==h;)ae=h,h=h.replace(F,`${J}$1 $2${J}`);h=h.replace(S,"").trimRight();let Y=Object.create(null),Me=h.replace(I,"").replace(S,"").trimRight(),ee;for(;ee=I.exec(h);){let H=ee[2].replace(T,"");typeof Y[ee[1]]=="string"||Array.isArray(Y[ee[1]])?Y[ee[1]]=L.concat(Y[ee[1]],H):Y[ee[1]]=H}return{comments:Me,pragmas:Y}}function B(h){let{comments:J="",pragmas:ae={}}=h,Y=(0,d().default)(J)||u().EOL,Me="/**",ee=" *",H=" */",M=Object.keys(ae),v=M.map(te=>_(te,ae[te])).reduce((te,he)=>te.concat(he),[]).map(te=>`${ee} ${te}${Y}`).join("");if(!J){if(M.length===0)return"";if(M.length===1&&!Array.isArray(ae[M[0]])){let te=ae[M[0]];return`${Me} ${_(M[0],te)[0]}${H}`}}let We=J.split(Y).map(te=>`${ee} ${te}`).join(Y)+Y;return Me+Y+(J?We:"")+(J&&M.length?ee+Y:"")+v+H}function _(h,J){return L.concat(J).map(ae=>`@${h} ${ae}`.trim())}}}),dd=K({"src/common/end-of-line.js"(l,u){"use strict";V();function d(g){let T=g.indexOf("\r");return T>=0?g.charAt(T+1)===` `?"crlf":"cr":"lf"}function f(g){switch(g){case"cr":return"\r";case"crlf":return`\r `;default:return` `}}function y(g,T){let S;switch(T){case` `:S=/\n/g;break;case"\r":S=/\r/g;break;case`\r `:S=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(T)}.`)}let F=g.match(S);return F?F.length:0}function A(g){return g.replace(/\r\n?/g,` `)}u.exports={guessEndOfLine:d,convertEndOfLineToChars:f,countEndOfLineChars:y,normalizeEndOfLine:A}}}),fd=K({"src/language-js/pragma.js"(l,u){"use strict";V();var{parseWithComments:d,strip:f,extract:y,print:A}=pd(),{normalizeEndOfLine:g}=dd(),T=eo();function S(E){let L=T(E);L&&(E=E.slice(L.length+1));let j=y(E),{pragmas:k,comments:z}=d(j);return{shebang:L,text:E,pragmas:k,comments:z}}function F(E){let L=Object.keys(S(E).pragmas);return L.includes("prettier")||L.includes("format")}function I(E){let{shebang:L,text:j,pragmas:k,comments:z}=S(E),G=f(j),B=A({pragmas:Object.assign({format:""},k),comments:z.trimStart()});return(L?`${L} `:"")+g(B)+(G.startsWith(` `)?` `:` `)+G}u.exports={hasPragma:F,insertPragma:I}}}),lr=K({"src/utils/is-non-empty-array.js"(l,u){"use strict";V();function d(f){return Array.isArray(f)&&f.length>0}u.exports=d}}),yo=K({"src/language-js/loc.js"(l,u){"use strict";V();var d=lr();function f(S){var F,I;let E=S.range?S.range[0]:S.start,L=(F=(I=S.declaration)===null||I===void 0?void 0:I.decorators)!==null&&F!==void 0?F:S.decorators;return d(L)?Math.min(f(L[0]),E):E}function y(S){return S.range?S.range[1]:S.end}function A(S,F){let I=f(S);return Number.isInteger(I)&&I===f(F)}function g(S,F){let I=y(S);return Number.isInteger(I)&&I===y(F)}function T(S,F){return A(S,F)&&g(S,F)}u.exports={locStart:f,locEnd:y,hasSameLocStart:A,hasSameLoc:T}}}),xo=K({"src/language-js/parse/utils/create-parser.js"(l,u){"use strict";V();var{hasPragma:d}=fd(),{locStart:f,locEnd:y}=yo();function A(g){return g=typeof g=="function"?{parse:g}:g,Object.assign({astFormat:"estree",hasPragma:d,locStart:f,locEnd:y},g)}u.exports=A}}),hr=K({"src/common/parser-create-error.js"(l,u){"use strict";V();function d(f,y){let A=new SyntaxError(f+" ("+y.start.line+":"+y.start.column+")");return A.loc=y,A}u.exports=d}}),go=K({"src/language-js/parse/utils/create-babel-parse-error.js"(l,u){"use strict";V();var d=hr();function f(y){let{message:A,loc:g}=y;return d(A.replace(/ \(.*\)/,""),{start:{line:g?g.line:0,column:g?g.column+1:0}})}u.exports=f}}),md=K({"src/language-js/utils/is-ts-keyword-type.js"(l,u){"use strict";V();function d(f){let{type:y}=f;return y.startsWith("TS")&&y.endsWith("Keyword")}u.exports=d}}),yd=K({"src/language-js/utils/is-block-comment.js"(l,u){"use strict";V();var d=new Set(["Block","CommentBlock","MultiLine"]),f=y=>d.has(y==null?void 0:y.type);u.exports=f}}),xd=K({"src/language-js/utils/is-type-cast-comment.js"(l,u){"use strict";V();var d=yd();function f(y){return d(y)&&y.value[0]==="*"&&/@type\b/.test(y.value)}u.exports=f}}),gd=K({"src/utils/get-last.js"(l,u){"use strict";V();var d=f=>f[f.length-1];u.exports=d}}),Po=K({"src/language-js/parse/postprocess/visit-node.js"(l,u){"use strict";V();function d(f,y){if(Array.isArray(f)){for(let A=0;A<f.length;A++)f[A]=d(f[A],y);return f}if(f&&typeof f=="object"&&typeof f.type=="string"){let A=Object.keys(f);for(let g=0;g<A.length;g++)f[A[g]]=d(f[A[g]],y);return y(f)||f}return f}u.exports=d}}),Ao=K({"src/language-js/parse/postprocess/throw-syntax-error.js"(l,u){"use strict";V();var d=hr();function f(y,A){let{start:g,end:T}=y.loc;throw d(A,{start:{line:g.line,column:g.column+1},end:{line:T.line,column:T.column+1}})}u.exports=f}}),Pd=K({"src/language-js/parse/postprocess/typescript.js"(l,u){"use strict";V();var d=lr(),f=Po(),y=Ao(),A={AbstractKeyword:126,SourceFile:308,PropertyDeclaration:169};function g(I){for(;I&&I.kind!==A.SourceFile;)I=I.parent;return I}function T(I){let{illegalDecorators:E}=I;if(!d(E))return;let[{expression:L}]=E,j=g(L),[k,z]=[L.pos,L.end].map(G=>{let{line:B,character:_}=j.getLineAndCharacterOfPosition(G);return{line:B+1,column:_}});y({loc:{start:k,end:z}},"Decorators are not valid here.")}function S(I,E){I.kind!==A.PropertyDeclaration||I.modifiers&&!I.modifiers.some(L=>L.kind===A.AbstractKeyword)||I.initializer&&E.value===null&&y(E,"Abstract property cannot have an initializer")}function F(I,E){let{esTreeNodeToTSNodeMap:L,tsNodeToESTreeNodeMap:j}=E.tsParseResult;f(I,k=>{let z=L.get(k);if(!z)return;let G=j.get(z);G===k&&(T(z),S(z,G))})}u.exports={throwErrorForInvalidNodes:F}}}),Ad=K({"src/language-js/parse/postprocess/index.js"(l,u){"use strict";V();var{locStart:d,locEnd:f}=yo(),y=md(),A=xd(),g=gd(),T=Po(),{throwErrorForInvalidNodes:S}=Pd(),F=Ao();function I(k,z){if(z.parser==="typescript"&&/@|abstract/.test(z.originalText)&&S(k,z),z.parser!=="typescript"&&z.parser!=="flow"&&z.parser!=="acorn"&&z.parser!=="espree"&&z.parser!=="meriyah"){let B=new Set;k=T(k,_=>{_.leadingComments&&_.leadingComments.some(A)&&B.add(d(_))}),k=T(k,_=>{if(_.type==="ParenthesizedExpression"){let{expression:h}=_;if(h.type==="TypeCastExpression")return h.range=_.range,h;let J=d(_);if(!B.has(J))return h.extra=Object.assign(Object.assign({},h.extra),{},{parenthesized:!0}),h}})}return k=T(k,B=>{switch(B.type){case"ChainExpression":return E(B.expression);case"LogicalExpression":{if(L(B))return j(B);break}case"VariableDeclaration":{let _=g(B.declarations);_&&_.init&&G(B,_);break}case"TSParenthesizedType":return y(B.typeAnnotation)||B.typeAnnotation.type==="TSThisType"||(B.typeAnnotation.range=[d(B),f(B)]),B.typeAnnotation;case"TSTypeParameter":if(typeof B.name=="string"){let _=d(B);B.name={type:"Identifier",name:B.name,range:[_,_+B.name.length]}}break;case"ObjectExpression":if(z.parser==="typescript"){let _=B.properties.find(h=>h.type==="Property"&&h.value.type==="TSEmptyBodyFunctionExpression");_&&F(_.value,"Unexpected token.")}break;case"SequenceExpression":{let _=g(B.expressions);B.range=[d(B),Math.min(f(_),f(B))];break}case"TopicReference":z.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:_}=B;if(z.parser==="meriyah"&&_&&_.type==="Identifier"){let h=z.originalText.slice(d(_),f(_));(h.startsWith('"')||h.startsWith("'"))&&(B.exported=Object.assign(Object.assign({},B.exported),{},{type:"Literal",value:B.exported.name,raw:h}))}break}}}),k;function G(B,_){z.originalText[f(_)]!==";"&&(B.range=[d(B),f(_)])}}function E(k){switch(k.type){case"CallExpression":k.type="OptionalCallExpression",k.callee=E(k.callee);break;case"MemberExpression":k.type="OptionalMemberExpression",k.object=E(k.object);break;case"TSNonNullExpression":k.expression=E(k.expression);break}return k}function L(k){return k.type==="LogicalExpression"&&k.right.type==="LogicalExpression"&&k.operator===k.right.operator}function j(k){return L(k)?j({type:"LogicalExpression",operator:k.operator,left:j({type:"LogicalExpression",operator:k.operator,left:k.left,right:k.right.left,range:[d(k.left),f(k.right.left)]}),right:k.right.right,range:[d(k),f(k)]}):k}u.exports=I}}),To=K({"node_modules/@babel/parser/lib/index.js"(l){"use strict";V(),Object.defineProperty(l,"__esModule",{value:!0});function u(t,r){if(t==null)return{};var e={},s=Object.keys(t),i,a;for(a=0;a<s.length;a++)i=s[a],!(r.indexOf(i)>=0)&&(e[i]=t[i]);return e}var d=class{constructor(t,r,e){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=e}},f=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function y(t,r){let{line:e,column:s,index:i}=t;return new d(e,s+r,i+r)}var A={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},g=function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.length-1;return{get(){return t.reduce((e,s)=>e[s],this)},set(e){t.reduce((s,i,a)=>a===r?s[i]=e:s[i],this)}}},T=(t,r,e)=>Object.keys(e).map(s=>[s,e[s]]).filter(s=>{let[,i]=s;return!!i}).map(s=>{let[i,a]=s;return[i,typeof a=="function"?{value:a,enumerable:!1}:typeof a.reflect=="string"?Object.assign({},a,g(a.reflect.split("."))):a]}).reduce((s,i)=>{let[a,n]=i;return Object.defineProperty(s,a,Object.assign({configurable:!0},n))},Object.assign(new t,r)),S={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:A.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:A.SourceTypeModuleError}},F={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},I=t=>{let{type:r,prefix:e}=t;return r==="UpdateExpression"?F.UpdateExpression[String(e)]:F[r]},E={AccessorIsGenerator:t=>{let{kind:r}=t;return`A ${r}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",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:t=>{let{kind:r}=t;return`Missing initializer in ${r} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. 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:t=>{let{exportName:r}=t;return`\`${r}\` 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:t=>{let{localName:r,exportName:e}=t;return`A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${r}' as '${e}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:t=>{let{type:r}=t;return`'${r==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:t=>{let{type:r}=t;return`Unsyntactic ${r==="BreakStatement"?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:t=>{let{importName:r}=t;return`A string literal cannot be used as an imported binding. - Did you mean \`import { "${r}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:t=>{let{maxArgumentCount:r}=t;return`\`import()\` requires exactly ${r===1?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:t=>{let{radix:r}=t;return`Expected number in radix ${r}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:t=>{let{reservedWord:r}=t;return`Escape sequence in keyword ${r}.`},InvalidIdentifier:t=>{let{identifierName:r}=t;return`Invalid identifier ${r}.`},InvalidLhs:t=>{let{ancestor:r}=t;return`Invalid left-hand side in ${I(r)}.`},InvalidLhsBinding:t=>{let{ancestor:r}=t;return`Binding invalid left-hand side in ${I(r)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:t=>{let{unexpected:r}=t;return`Unexpected character '${r}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:t=>{let{identifierName:r}=t;return`Private name #${r} 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:t=>{let{labelName:r}=t;return`Label '${r}' 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.",MissingPlugin:t=>{let{missingPlugin:r}=t;return`This experimental syntax requires enabling the parser plugin: ${r.map(e=>JSON.stringify(e)).join(", ")}.`},MissingOneOfPlugins:t=>{let{missingPlugin:r}=t;return`This experimental syntax requires enabling one of the following parser plugin(s): ${r.map(e=>JSON.stringify(e)).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:t=>{let{key:r}=t;return`Duplicate key "${r}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:t=>{let{surrogateCharCode:r}=t;return`An export name cannot include a lone surrogate, found '\\u${r.toString(16)}'.`},ModuleExportUndefined:t=>{let{localName:r}=t;return`Export '${r}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:t=>{let{identifierName:r}=t;return`Private names are only allowed in property accesses (\`obj.#${r}\`) or in \`in\` expressions (\`#${r} in obj\`).`},PrivateNameRedeclaration:t=>{let{identifierName:r}=t;return`Duplicate private name #${r}.`},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.",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:t=>{let{keyword:r}=t;return`Unexpected keyword '${r}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:t=>{let{reservedWord:r}=t;return`Unexpected reserved word '${r}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:t=>{let{expected:r,unexpected:e}=t;return`Unexpected token${e?` '${e}'.`:""}${r?`, expected "${r}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",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:t=>{let{target:r,onlyValidPropertyName:e}=t;return`The only valid meta property for ${r} is ${r}.${e}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:t=>{let{identifierName:r}=t;return`Identifier '${r}' 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."},L={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:t=>{let{referenceName:r}=t;return`Assigning to '${r}' in strict mode.`},StrictEvalArgumentsBinding:t=>{let{bindingName:r}=t;return`Binding '${r}' 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."},j=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),k={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:t=>{let{token:r}=t;return`Invalid topic token ${r}. In order to use ${r} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${r}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:t=>{let{type:r}=t;return`Hack-style pipe body cannot be an unparenthesized ${I({type:r})}; 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.'},z=["toMessage"],G=["message"];function B(t){let{toMessage:r}=t,e=u(t,z);return function s(i){let{loc:a,details:n}=i;return T(SyntaxError,Object.assign({},e,{loc:a}),{clone(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.loc||{};return s({loc:new d("line"in c?c.line:this.loc.line,"column"in c?c.column:this.loc.column,"index"in c?c.index:this.loc.index),details:Object.assign({},this.details,o.details)})},details:{value:n,enumerable:!1},message:{get(){return`${r(this.details)} (${this.loc.line}:${this.loc.column})`},set(o){Object.defineProperty(this,"message",{value:o})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in n&&{reflect:"details.missingPlugin",enumerable:!0}})}}function _(t,r){if(Array.isArray(t))return s=>_(s,t[0]);let e={};for(let s of Object.keys(t)){let i=t[s],a=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=a,o=u(a,G),c=typeof n=="string"?()=>n:n;e[s]=B(Object.assign({code:A.SyntaxError,reasonCode:s,toMessage:c},r?{syntaxPlugin:r}:{},o))}return e}var h=Object.assign({},_(S),_(E),_(L),_`pipelineOperator`(k)),{defineProperty:J}=Object,ae=(t,r)=>J(t,r,{enumerable:!1,value:t[r]});function Y(t){return t.loc.start&&ae(t.loc.start,"index"),t.loc.end&&ae(t.loc.end,"index"),t}var Me=t=>class extends t{parse(){let e=Y(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(Y)),e}parseRegExpLiteral(e){let{pattern:s,flags:i}=e,a=null;try{a=new RegExp(s,i)}catch{}let n=this.estreeParseLiteral(a);return n.regex={pattern:s,flags:i},n}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,a,n){super.parseBlockBody(e,s,i,a,n);let o=e.directives.map(c=>this.directiveToStmt(c));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,a,n,o){this.parseMethod(s,i,a,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,a,n,o){let c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,p=this.startNode();return p.kind=e.kind,p=super.parseMethod(p,s,i,a,n,o,c),p.type="FunctionExpression",delete p.kind,e.value=p,o==="ClassPrivateMethod"&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(){let e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition"),e}parseClassPrivateProperty(){let e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition",e.computed=!1),e}parseObjectMethod(e,s,i,a,n){let o=super.parseObjectMethod(e,s,i,a,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,s,i,a){let n=super.parseObjectProperty(e,s,i,a);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e!=null&&this.isObjectProperty(e)){let{key:i,value:a}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameS