UNPKG

prettier

Version:

Prettier is an opinionated code formatter

22 lines (21 loc) 317 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 b=(h,l)=>()=>(l||h((l={exports:{}}).exports,l),l.exports);var G=b((zf,Jr)=>{var Tt=function(h){return h&&h.Math==Math&&h};Jr.exports=Tt(typeof globalThis=="object"&&globalThis)||Tt(typeof window=="object"&&window)||Tt(typeof self=="object"&&self)||Tt(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Ae=b((Kf,Yr)=>{Yr.exports=function(h){try{return!!h()}catch{return!0}}});var ke=b((Vf,$r)=>{var hl=Ae();$r.exports=!hl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Et=b((Hf,Qr)=>{var ll=Ae();Qr.exports=!ll(function(){var h=function(){}.bind();return typeof h!="function"||h.hasOwnProperty("prototype")})});var bt=b((Wf,Zr)=>{var ul=Et(),Ct=Function.prototype.call;Zr.exports=ul?Ct.bind(Ct):function(){return Ct.apply(Ct,arguments)}});var ri=b(si=>{"use strict";var ei={}.propertyIsEnumerable,ti=Object.getOwnPropertyDescriptor,cl=ti&&!ei.call({1:2},1);si.f=cl?function(l){var p=ti(this,l);return!!p&&p.enumerable}:ei});var ms=b((Xf,ii)=>{ii.exports=function(h,l){return{enumerable:!(h&1),configurable:!(h&2),writable:!(h&4),value:l}}});var ie=b((Jf,oi)=>{var ai=Et(),ni=Function.prototype,pl=ni.bind,ys=ni.call,fl=ai&&pl.bind(ys,ys);oi.exports=ai?function(h){return h&&fl(h)}:function(h){return h&&function(){return ys.apply(h,arguments)}}});var vt=b((Yf,li)=>{var hi=ie(),dl=hi({}.toString),ml=hi("".slice);li.exports=function(h){return ml(dl(h),8,-1)}});var ci=b(($f,ui)=>{var yl=G(),xl=ie(),gl=Ae(),Al=vt(),xs=yl.Object,Pl=xl("".split);ui.exports=gl(function(){return!xs("z").propertyIsEnumerable(0)})?function(h){return Al(h)=="String"?Pl(h,""):xs(h)}:xs});var gs=b((Qf,pi)=>{var Tl=G(),El=Tl.TypeError;pi.exports=function(h){if(h==null)throw El("Can't call method on "+h);return h}});var St=b((Zf,fi)=>{var Cl=ci(),bl=gs();fi.exports=function(h){return Cl(bl(h))}});var ae=b((ed,di)=>{di.exports=function(h){return typeof h=="function"}});var De=b((td,mi)=>{var vl=ae();mi.exports=function(h){return typeof h=="object"?h!==null:vl(h)}});var Qe=b((sd,yi)=>{var As=G(),Sl=ae(),wl=function(h){return Sl(h)?h:void 0};yi.exports=function(h,l){return arguments.length<2?wl(As[h]):As[h]&&As[h][l]}});var gi=b((rd,xi)=>{var Nl=ie();xi.exports=Nl({}.isPrototypeOf)});var Pi=b((id,Ai)=>{var Il=Qe();Ai.exports=Il("navigator","userAgent")||""});var wi=b((ad,Si)=>{var vi=G(),Ps=Pi(),Ti=vi.process,Ei=vi.Deno,Ci=Ti&&Ti.versions||Ei&&Ei.version,bi=Ci&&Ci.v8,oe,wt;bi&&(oe=bi.split("."),wt=oe[0]>0&&oe[0]<4?1:+(oe[0]+oe[1]));!wt&&Ps&&(oe=Ps.match(/Edge\/(\d+)/),(!oe||oe[1]>=74)&&(oe=Ps.match(/Chrome\/(\d+)/),oe&&(wt=+oe[1])));Si.exports=wt});var Ts=b((nd,Ii)=>{var Ni=wi(),kl=Ae();Ii.exports=!!Object.getOwnPropertySymbols&&!kl(function(){var h=Symbol();return!String(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&Ni&&Ni<41})});var Es=b((od,ki)=>{var Dl=Ts();ki.exports=Dl&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Cs=b((hd,Di)=>{var Fl=G(),Ll=Qe(),Ol=ae(),Bl=gi(),Ml=Es(),Rl=Fl.Object;Di.exports=Ml?function(h){return typeof h=="symbol"}:function(h){var l=Ll("Symbol");return Ol(l)&&Bl(l.prototype,Rl(h))}});var Li=b((ld,Fi)=>{var jl=G(),ql=jl.String;Fi.exports=function(h){try{return ql(h)}catch{return"Object"}}});var Nt=b((ud,Oi)=>{var Ul=G(),_l=ae(),zl=Li(),Kl=Ul.TypeError;Oi.exports=function(h){if(_l(h))return h;throw Kl(zl(h)+" is not a function")}});var Mi=b((cd,Bi)=>{var Vl=Nt();Bi.exports=function(h,l){var p=h[l];return p==null?void 0:Vl(p)}});var ji=b((pd,Ri)=>{var Hl=G(),bs=bt(),vs=ae(),Ss=De(),Wl=Hl.TypeError;Ri.exports=function(h,l){var p,d;if(l==="string"&&vs(p=h.toString)&&!Ss(d=bs(p,h))||vs(p=h.valueOf)&&!Ss(d=bs(p,h))||l!=="string"&&vs(p=h.toString)&&!Ss(d=bs(p,h)))return d;throw Wl("Can't convert object to primitive value")}});var Ui=b((fd,qi)=>{qi.exports=!1});var It=b((dd,zi)=>{var _i=G(),Gl=Object.defineProperty;zi.exports=function(h,l){try{Gl(_i,h,{value:l,configurable:!0,writable:!0})}catch{_i[h]=l}return l}});var kt=b((md,Vi)=>{var Xl=G(),Jl=It(),Ki="__core-js_shared__",Yl=Xl[Ki]||Jl(Ki,{});Vi.exports=Yl});var ws=b((yd,Wi)=>{var $l=Ui(),Hi=kt();(Wi.exports=function(h,l){return Hi[h]||(Hi[h]=l!==void 0?l:{})})("versions",[]).push({version:"3.22.2",mode:$l?"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 Ns=b((xd,Gi)=>{var Ql=G(),Zl=gs(),eu=Ql.Object;Gi.exports=function(h){return eu(Zl(h))}});var be=b((gd,Xi)=>{var tu=ie(),su=Ns(),ru=tu({}.hasOwnProperty);Xi.exports=Object.hasOwn||function(l,p){return ru(su(l),p)}});var Is=b((Ad,Ji)=>{var iu=ie(),au=0,nu=Math.random(),ou=iu(1 .toString);Ji.exports=function(h){return"Symbol("+(h===void 0?"":h)+")_"+ou(++au+nu,36)}});var Ze=b((Pd,ea)=>{var hu=G(),lu=ws(),Yi=be(),uu=Is(),$i=Ts(),Zi=Es(),_e=lu("wks"),Fe=hu.Symbol,Qi=Fe&&Fe.for,cu=Zi?Fe:Fe&&Fe.withoutSetter||uu;ea.exports=function(h){if(!Yi(_e,h)||!($i||typeof _e[h]=="string")){var l="Symbol."+h;$i&&Yi(Fe,h)?_e[h]=Fe[h]:Zi&&Qi?_e[h]=Qi(l):_e[h]=cu(l)}return _e[h]}});var ia=b((Td,ra)=>{var pu=G(),fu=bt(),ta=De(),sa=Cs(),du=Mi(),mu=ji(),yu=Ze(),xu=pu.TypeError,gu=yu("toPrimitive");ra.exports=function(h,l){if(!ta(h)||sa(h))return h;var p=du(h,gu),d;if(p){if(l===void 0&&(l="default"),d=fu(p,h,l),!ta(d)||sa(d))return d;throw xu("Can't convert object to primitive value")}return l===void 0&&(l="number"),mu(h,l)}});var ks=b((Ed,aa)=>{var Au=ia(),Pu=Cs();aa.exports=function(h){var l=Au(h,"string");return Pu(l)?l:l+""}});var ha=b((Cd,oa)=>{var Tu=G(),na=De(),Ds=Tu.document,Eu=na(Ds)&&na(Ds.createElement);oa.exports=function(h){return Eu?Ds.createElement(h):{}}});var Fs=b((bd,la)=>{var Cu=ke(),bu=Ae(),vu=ha();la.exports=!Cu&&!bu(function(){return Object.defineProperty(vu("div"),"a",{get:function(){return 7}}).a!=7})});var Ls=b(ca=>{var Su=ke(),wu=bt(),Nu=ri(),Iu=ms(),ku=St(),Du=ks(),Fu=be(),Lu=Fs(),ua=Object.getOwnPropertyDescriptor;ca.f=Su?ua:function(l,p){if(l=ku(l),p=Du(p),Lu)try{return ua(l,p)}catch{}if(Fu(l,p))return Iu(!wu(Nu.f,l,p),l[p])}});var fa=b((Sd,pa)=>{var Ou=ke(),Bu=Ae();pa.exports=Ou&&Bu(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var Os=b((wd,ma)=>{var da=G(),Mu=De(),Ru=da.String,ju=da.TypeError;ma.exports=function(h){if(Mu(h))return h;throw ju(Ru(h)+" is not an object")}});var qs=b(xa=>{var qu=G(),Uu=ke(),_u=Fs(),zu=fa(),Dt=Os(),ya=ks(),Ku=qu.TypeError,Bs=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Ms="enumerable",Rs="configurable",js="writable";xa.f=Uu?zu?function(l,p,d){if(Dt(l),p=ya(p),Dt(d),typeof l=="function"&&p==="prototype"&&"value"in d&&js in d&&!d[js]){var m=Vu(l,p);m&&m[js]&&(l[p]=d.value,d={configurable:Rs in d?d[Rs]:m[Rs],enumerable:Ms in d?d[Ms]:m[Ms],writable:!1})}return Bs(l,p,d)}:Bs:function(l,p,d){if(Dt(l),p=ya(p),Dt(d),_u)try{return Bs(l,p,d)}catch{}if("get"in d||"set"in d)throw Ku("Accessors not supported");return"value"in d&&(l[p]=d.value),l}});var Ft=b((Id,ga)=>{var Hu=ke(),Wu=qs(),Gu=ms();ga.exports=Hu?function(h,l,p){return Wu.f(h,l,Gu(1,p))}:function(h,l,p){return h[l]=p,h}});var Lt=b((kd,Aa)=>{var Xu=ie(),Ju=ae(),Us=kt(),Yu=Xu(Function.toString);Ju(Us.inspectSource)||(Us.inspectSource=function(h){return Yu(h)});Aa.exports=Us.inspectSource});var Ea=b((Dd,Ta)=>{var $u=G(),Qu=ae(),Zu=Lt(),Pa=$u.WeakMap;Ta.exports=Qu(Pa)&&/native code/.test(Zu(Pa))});var va=b((Fd,ba)=>{var ec=ws(),tc=Is(),Ca=ec("keys");ba.exports=function(h){return Ca[h]||(Ca[h]=tc(h))}});var _s=b((Ld,Sa)=>{Sa.exports={}});var Fa=b((Od,Da)=>{var sc=Ea(),ka=G(),zs=ie(),rc=De(),ic=Ft(),Ks=be(),Vs=kt(),ac=va(),nc=_s(),wa="Object already initialized",Ws=ka.TypeError,oc=ka.WeakMap,Ot,et,Bt,hc=function(h){return Bt(h)?et(h):Ot(h,{})},lc=function(h){return function(l){var p;if(!rc(l)||(p=et(l)).type!==h)throw Ws("Incompatible receiver, "+h+" required");return p}};sc||Vs.state?(ve=Vs.state||(Vs.state=new oc),Na=zs(ve.get),Hs=zs(ve.has),Ia=zs(ve.set),Ot=function(h,l){if(Hs(ve,h))throw new Ws(wa);return l.facade=h,Ia(ve,h,l),l},et=function(h){return Na(ve,h)||{}},Bt=function(h){return Hs(ve,h)}):(Le=ac("state"),nc[Le]=!0,Ot=function(h,l){if(Ks(h,Le))throw new Ws(wa);return l.facade=h,ic(h,Le,l),l},et=function(h){return Ks(h,Le)?h[Le]:{}},Bt=function(h){return Ks(h,Le)});var ve,Na,Hs,Ia,Le;Da.exports={set:Ot,get:et,has:Bt,enforce:hc,getterFor:lc}});var Ba=b((Bd,Oa)=>{var Gs=ke(),uc=be(),La=Function.prototype,cc=Gs&&Object.getOwnPropertyDescriptor,Xs=uc(La,"name"),pc=Xs&&function(){}.name==="something",fc=Xs&&(!Gs||Gs&&cc(La,"name").configurable);Oa.exports={EXISTS:Xs,PROPER:pc,CONFIGURABLE:fc}});var Ua=b((Md,qa)=>{var dc=G(),Ma=ae(),mc=be(),Ra=Ft(),yc=It(),xc=Lt(),ja=Fa(),gc=Ba().CONFIGURABLE,Ac=ja.get,Pc=ja.enforce,Tc=String(String).split("String");(qa.exports=function(h,l,p,d){var m=d?!!d.unsafe:!1,A=d?!!d.enumerable:!1,g=d?!!d.noTargetGet:!1,x=d&&d.name!==void 0?d.name:l,T;if(Ma(p)&&(String(x).slice(0,7)==="Symbol("&&(x="["+String(x).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mc(p,"name")||gc&&p.name!==x)&&Ra(p,"name",x),T=Pc(p),T.source||(T.source=Tc.join(typeof x=="string"?x:""))),h===dc){A?h[l]=p:yc(l,p);return}else m?!g&&h[l]&&(A=!0):delete h[l];A?h[l]=p:Ra(h,l,p)})(Function.prototype,"toString",function(){return Ma(this)&&Ac(this).source||xc(this)})});var Js=b((Rd,_a)=>{var Ec=Math.ceil,Cc=Math.floor;_a.exports=function(h){var l=+h;return l!==l||l===0?0:(l>0?Cc:Ec)(l)}});var Ka=b((jd,za)=>{var bc=Js(),vc=Math.max,Sc=Math.min;za.exports=function(h,l){var p=bc(h);return p<0?vc(p+l,0):Sc(p,l)}});var Ha=b((qd,Va)=>{var wc=Js(),Nc=Math.min;Va.exports=function(h){return h>0?Nc(wc(h),9007199254740991):0}});var Mt=b((Ud,Wa)=>{var Ic=Ha();Wa.exports=function(h){return Ic(h.length)}});var Ja=b((_d,Xa)=>{var kc=St(),Dc=Ka(),Fc=Mt(),Ga=function(h){return function(l,p,d){var m=kc(l),A=Fc(m),g=Dc(d,A),x;if(h&&p!=p){for(;A>g;)if(x=m[g++],x!=x)return!0}else for(;A>g;g++)if((h||g in m)&&m[g]===p)return h||g||0;return!h&&-1}};Xa.exports={includes:Ga(!0),indexOf:Ga(!1)}});var Qa=b((zd,$a)=>{var Lc=ie(),Ys=be(),Oc=St(),Bc=Ja().indexOf,Mc=_s(),Ya=Lc([].push);$a.exports=function(h,l){var p=Oc(h),d=0,m=[],A;for(A in p)!Ys(Mc,A)&&Ys(p,A)&&Ya(m,A);for(;l.length>d;)Ys(p,A=l[d++])&&(~Bc(m,A)||Ya(m,A));return m}});var en=b((Kd,Za)=>{Za.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var sn=b(tn=>{var Rc=Qa(),jc=en(),qc=jc.concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(l){return Rc(l,qc)}});var an=b(rn=>{rn.f=Object.getOwnPropertySymbols});var on=b((Wd,nn)=>{var Uc=Qe(),_c=ie(),zc=sn(),Kc=an(),Vc=Os(),Hc=_c([].concat);nn.exports=Uc("Reflect","ownKeys")||function(l){var p=zc.f(Vc(l)),d=Kc.f;return d?Hc(p,d(l)):p}});var un=b((Gd,ln)=>{var hn=be(),Wc=on(),Gc=Ls(),Xc=qs();ln.exports=function(h,l,p){for(var d=Wc(l),m=Xc.f,A=Gc.f,g=0;g<d.length;g++){var x=d[g];!hn(h,x)&&!(p&&hn(p,x))&&m(h,x,A(l,x))}}});var pn=b((Xd,cn)=>{var Jc=Ae(),Yc=ae(),$c=/#|\.prototype\./,tt=function(h,l){var p=Zc[Qc(h)];return p==tp?!0:p==ep?!1:Yc(l)?Jc(l):!!l},Qc=tt.normalize=function(h){return String(h).replace($c,".").toLowerCase()},Zc=tt.data={},ep=tt.NATIVE="N",tp=tt.POLYFILL="P";cn.exports=tt});var Qs=b((Jd,fn)=>{var $s=G(),sp=Ls().f,rp=Ft(),ip=Ua(),ap=It(),np=un(),op=pn();fn.exports=function(h,l){var p=h.target,d=h.global,m=h.stat,A,g,x,T,k,D;if(d?g=$s:m?g=$s[p]||ap(p,{}):g=($s[p]||{}).prototype,g)for(x in l){if(k=l[x],h.noTargetGet?(D=sp(g,x),T=D&&D.value):T=g[x],A=op(d?x:p+(m?".":"#")+x,h.forced),!A&&T!==void 0){if(typeof k==typeof T)continue;np(k,T)}(h.sham||T&&T.sham)&&rp(k,"sham",!0),ip(g,x,k,h)}}});var dn=b(()=>{var hp=Qs(),lp=G();hp({global:!0},{globalThis:lp})});var mn=b(()=>{dn()});var Zs=b((em,yn)=>{var up=vt();yn.exports=Array.isArray||function(l){return up(l)=="Array"}});var An=b((tm,gn)=>{var xn=ie(),cp=Nt(),pp=Et(),fp=xn(xn.bind);gn.exports=function(h,l){return cp(h),l===void 0?h:pp?fp(h,l):function(){return h.apply(l,arguments)}}});var En=b((sm,Tn)=>{"use strict";var dp=G(),mp=Zs(),yp=Mt(),xp=An(),gp=dp.TypeError,Pn=function(h,l,p,d,m,A,g,x){for(var T=m,k=0,D=g?xp(g,x):!1,E,L;k<d;){if(k in p){if(E=D?D(p[k],k,l):p[k],A>0&&mp(E))L=yp(E),T=Pn(h,l,E,L,T,A-1)-1;else{if(T>=9007199254740991)throw gp("Exceed the acceptable array length");h[T]=E}T++}k++}return T};Tn.exports=Pn});var vn=b((rm,bn)=>{var Ap=Ze(),Pp=Ap("toStringTag"),Cn={};Cn[Pp]="z";bn.exports=String(Cn)==="[object z]"});var wn=b((im,Sn)=>{var Tp=G(),Ep=vn(),Cp=ae(),Rt=vt(),bp=Ze(),vp=bp("toStringTag"),Sp=Tp.Object,wp=Rt(function(){return arguments}())=="Arguments",Np=function(h,l){try{return h[l]}catch{}};Sn.exports=Ep?Rt:function(h){var l,p,d;return h===void 0?"Undefined":h===null?"Null":typeof(p=Np(l=Sp(h),vp))=="string"?p:wp?Rt(l):(d=Rt(l))=="Object"&&Cp(l.callee)?"Arguments":d}});var Ln=b((am,Fn)=>{var Ip=ie(),kp=Ae(),Nn=ae(),Dp=wn(),Fp=Qe(),Lp=Lt(),In=function(){},Op=[],kn=Fp("Reflect","construct"),er=/^\s*(?:class|function)\b/,Bp=Ip(er.exec),Mp=!er.exec(In),st=function(l){if(!Nn(l))return!1;try{return kn(In,Op,l),!0}catch{return!1}},Dn=function(l){if(!Nn(l))return!1;switch(Dp(l)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Mp||!!Bp(er,Lp(l))}catch{return!0}};Dn.sham=!0;Fn.exports=!kn||kp(function(){var h;return st(st.call)||!st(Object)||!st(function(){h=!0})||h})?Dn:st});var Rn=b((nm,Mn)=>{var Rp=G(),On=Zs(),jp=Ln(),qp=De(),Up=Ze(),_p=Up("species"),Bn=Rp.Array;Mn.exports=function(h){var l;return On(h)&&(l=h.constructor,jp(l)&&(l===Bn||On(l.prototype))?l=void 0:qp(l)&&(l=l[_p],l===null&&(l=void 0))),l===void 0?Bn:l}});var qn=b((om,jn)=>{var zp=Rn();jn.exports=function(h,l){return new(zp(h))(l===0?0:l)}});var Un=b(()=>{"use strict";var Kp=Qs(),Vp=En(),Hp=Nt(),Wp=Ns(),Gp=Mt(),Xp=qn();Kp({target:"Array",proto:!0},{flatMap:function(l){var p=Wp(this),d=Gp(p),m;return Hp(l),m=Xp(p,0),m.length=Vp(m,p,p,d,0,1,l,arguments.length>1?arguments[1]:void 0),m}})});var qf=b((um,Eo)=>{var _n,zn,Kn,Vn,Hn;function rt(h,l){return l||(l=h.slice(0)),Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(l)}}))}mn();Un();var ir=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,ar=Object.getOwnPropertyNames,Yp=Object.prototype.hasOwnProperty,$n=(h,l)=>function(){return h&&(l=(0,h[ar(h)[0]])(h=0)),l},H=(h,l)=>function(){return l||(0,h[ar(h)[0]])((l={exports:{}}).exports,l),l.exports},$p=(h,l)=>{for(var p in l)ir(h,p,{get:l[p],enumerable:!0})},Qp=(h,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let m of ar(l))!Yp.call(h,m)&&m!==p&&ir(h,m,{get:()=>l[m],enumerable:!(d=Jp(l,m))||d.enumerable});return h},Zp=h=>Qp(ir({},"__esModule",{value:!0}),h),V=$n({"<define:process>"(){}}),ef=H({"src/utils/try-combinations.js"(h,l){"use strict";V();function p(){let d;for(var m=arguments.length,A=new Array(m),g=0;g<m;g++)A[g]=arguments[g];for(let[x,T]of A.entries())try{return{result:T()}}catch(k){x===0&&(d=k)}return{error:d}}l.exports=p}}),Qn=H({"src/language-js/utils/get-shebang.js"(h,l){"use strict";V();function p(d){if(!d.startsWith("#!"))return"";let m=d.indexOf(` `);return m===-1?d:d.slice(0,m)}l.exports=p}}),tf=H({"src/utils/text/skip-inline-comment.js"(h,l){"use strict";V();function p(d,m){if(m===!1)return!1;if(d.charAt(m)==="/"&&d.charAt(m+1)==="*"){for(let A=m+2;A<d.length;++A)if(d.charAt(A)==="*"&&d.charAt(A+1)==="/")return A+2}return m}l.exports=p}}),sf=H({"src/utils/text/skip-newline.js"(h,l){"use strict";V();function p(d,m,A){let g=A&&A.backwards;if(m===!1)return!1;let x=d.charAt(m);if(g){if(d.charAt(m-1)==="\r"&&x===` `)return m-2;if(x===` `||x==="\r"||x==="\u2028"||x==="\u2029")return m-1}else{if(x==="\r"&&d.charAt(m+1)===` `)return m+2;if(x===` `||x==="\r"||x==="\u2028"||x==="\u2029")return m+1}return m}l.exports=p}}),Zn=H({"src/utils/text/skip.js"(h,l){"use strict";V();function p(x){return(T,k,D)=>{let E=D&&D.backwards;if(k===!1)return!1;let{length:L}=T,R=k;for(;R>=0&&R<L;){let F=T.charAt(R);if(x instanceof RegExp){if(!x.test(F))return R}else if(!x.includes(F))return R;E?R--:R++}return R===-1||R===L?R:!1}}var d=p(/\s/),m=p(" "),A=p(",; "),g=p(/[^\n\r]/);l.exports={skipWhitespace:d,skipSpaces:m,skipToLineEnd:A,skipEverythingButNewLine:g}}}),rf=H({"src/utils/text/skip-trailing-comment.js"(h,l){"use strict";V();var{skipEverythingButNewLine:p}=Zn();function d(m,A){return A===!1?!1:m.charAt(A)==="/"&&m.charAt(A+1)==="/"?p(m,A):A}l.exports=d}}),af=H({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(h,l){"use strict";V();var p=tf(),d=sf(),m=rf(),{skipSpaces:A}=Zn();function g(x,T){let k=null,D=T;for(;D!==k;)k=D,D=A(x,D),D=p(x,D),D=m(x,D),D=d(x,D);return D}l.exports=g}}),eo={};$p(eo,{EOL:()=>rr,arch:()=>nf,cpus:()=>oo,default:()=>po,endianness:()=>to,freemem:()=>ao,getNetworkInterfaces:()=>co,hostname:()=>so,loadavg:()=>ro,networkInterfaces:()=>uo,platform:()=>of,release:()=>lo,tmpDir:()=>tr,tmpdir:()=>sr,totalmem:()=>no,type:()=>ho,uptime:()=>io});function to(){if(typeof jt>"u"){var h=new ArrayBuffer(2),l=new Uint8Array(h),p=new Uint16Array(h);if(l[0]=1,l[1]=2,p[0]===258)jt="BE";else if(p[0]===513)jt="LE";else throw new Error("unable to figure out endianess")}return jt}function so(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function ro(){return[]}function io(){return 0}function ao(){return Number.MAX_VALUE}function no(){return Number.MAX_VALUE}function oo(){return[]}function ho(){return"Browser"}function lo(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function uo(){}function co(){}function nf(){return"javascript"}function of(){return"browser"}function tr(){return"/tmp"}var jt,sr,rr,po,hf=$n({"node-modules-polyfills:os"(){V(),sr=tr,rr=` `,po={EOL:rr,tmpdir:sr,tmpDir:tr,networkInterfaces:uo,getNetworkInterfaces:co,release:lo,type:ho,cpus:oo,totalmem:no,freemem:ao,uptime:io,loadavg:ro,hostname:so,endianness:to}}}),lf=H({"node-modules-polyfills-commonjs:os"(h,l){V();var p=(hf(),Zp(eo));if(p&&p.default){l.exports=p.default;for(let d in p)l.exports[d]=p[d]}else p&&(l.exports=p)}}),uf=H({"node_modules/detect-newline/index.js"(h,l){"use strict";V();var p=d=>{if(typeof d!="string")throw new TypeError("Expected a string");let m=d.match(/(?:\r?\n)/g)||[];if(m.length===0)return;let A=m.filter(x=>x===`\r `).length,g=m.length-A;return A>g?`\r `:` `};l.exports=p,l.exports.graceful=d=>typeof d=="string"&&p(d)||` `}}),cf=H({"node_modules/jest-docblock/build/index.js"(h){"use strict";V(),Object.defineProperty(h,"__esModule",{value:!0}),h.extract=R,h.parse=W,h.parseWithComments=Y,h.print=M,h.strip=F;function l(){let u=lf();return l=function(){return u},u}function p(){let u=d(uf());return p=function(){return u},u}function d(u){return u&&u.__esModule?u:{default:u}}var m=/\*\/$/,A=/^\/\*\*/,g=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,x=/(^|\s+)\/\/([^\r\n]*)/g,T=/^(\r?\n)+/,k=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,D=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,E=/(\r?\n|^) *\* ?/g,L=[];function R(u){let X=u.match(g);return X?X[0].trimLeft():""}function F(u){let X=u.match(g);return X&&X[0]?u.substring(X[0].length):u}function W(u){return Y(u).pragmas}function Y(u){let X=(0,p().default)(u)||l().EOL;u=u.replace(A,"").replace(m,"").replace(E,"$1");let se="";for(;se!==u;)se=u,u=u.replace(k,"".concat(X,"$1 $2").concat(X));u=u.replace(T,"").trimRight();let J=Object.create(null),Oe=u.replace(D,"").replace(T,"").trimRight(),$;for(;$=D.exec(u);){let z=$[2].replace(x,"");typeof J[$[1]]=="string"||Array.isArray(J[$[1]])?J[$[1]]=L.concat(J[$[1]],z):J[$[1]]=z}return{comments:Oe,pragmas:J}}function M(u){let{comments:X="",pragmas:se={}}=u,J=(0,p().default)(X)||l().EOL,Oe="/**",$=" *",z=" */",O=Object.keys(se),C=O.map(Z=>j(Z,se[Z])).reduce((Z,he)=>Z.concat(he),[]).map(Z=>$+" "+Z+J).join("");if(!X){if(O.length===0)return"";if(O.length===1&&!Array.isArray(se[O[0]])){let Z=se[O[0]];return"".concat(Oe," ").concat(j(O[0],Z)[0]).concat(z)}}let Ve=X.split(J).map(Z=>"".concat($," ").concat(Z)).join(J)+J;return Oe+J+(X?Ve:"")+(X&&O.length?$+J:"")+C+z}function j(u,X){return L.concat(X).map(se=>"@".concat(u," ").concat(se).trim())}}}),pf=H({"src/common/end-of-line.js"(h,l){"use strict";V();function p(g){let x=g.indexOf("\r");return x>=0?g.charAt(x+1)===` `?"crlf":"cr":"lf"}function d(g){switch(g){case"cr":return"\r";case"crlf":return`\r `;default:return` `}}function m(g,x){let T;switch(x){case` `:T=/\n/g;break;case"\r":T=/\r/g;break;case`\r `:T=/\r\n/g;break;default:throw new Error('Unexpected "eol" '.concat(JSON.stringify(x),"."))}let k=g.match(T);return k?k.length:0}function A(g){return g.replace(/\r\n?/g,` `)}l.exports={guessEndOfLine:p,convertEndOfLineToChars:d,countEndOfLineChars:m,normalizeEndOfLine:A}}}),ff=H({"src/language-js/pragma.js"(h,l){"use strict";V();var{parseWithComments:p,strip:d,extract:m,print:A}=cf(),{normalizeEndOfLine:g}=pf(),x=Qn();function T(E){let L=x(E);L&&(E=E.slice(L.length+1));let R=m(E),{pragmas:F,comments:W}=p(R);return{shebang:L,text:E,pragmas:F,comments:W}}function k(E){let L=Object.keys(T(E).pragmas);return L.includes("prettier")||L.includes("format")}function D(E){let{shebang:L,text:R,pragmas:F,comments:W}=T(E),Y=d(R),M=A({pragmas:Object.assign({format:""},F),comments:W.trimStart()});return(L?"".concat(L,` `):"")+g(M)+(Y.startsWith(` `)?` `:` `)+Y}l.exports={hasPragma:k,insertPragma:D}}}),fo=H({"src/utils/is-non-empty-array.js"(h,l){"use strict";V();function p(d){return Array.isArray(d)&&d.length>0}l.exports=p}}),mo=H({"src/language-js/loc.js"(h,l){"use strict";V();var p=fo();function d(T,k){let{ignoreDecorators:D}=k||{};if(!D){let E=T.declaration&&T.declaration.decorators||T.decorators;if(p(E))return d(E[0])}return T.range?T.range[0]:T.start}function m(T){return T.range?T.range[1]:T.end}function A(T,k){let D=d(T);return Number.isInteger(D)&&D===d(k)}function g(T,k){let D=m(T);return Number.isInteger(D)&&D===m(k)}function x(T,k){return A(T,k)&&g(T,k)}l.exports={locStart:d,locEnd:m,hasSameLocStart:A,hasSameLoc:x}}}),yo=H({"src/language-js/parse/utils/create-parser.js"(h,l){"use strict";V();var{hasPragma:p}=ff(),{locStart:d,locEnd:m}=mo();function A(g){return g=typeof g=="function"?{parse:g}:g,Object.assign({astFormat:"estree",hasPragma:p,locStart:d,locEnd:m},g)}l.exports=A}}),nr=H({"src/common/parser-create-error.js"(h,l){"use strict";V();function p(d,m){let A=new SyntaxError(d+" ("+m.start.line+":"+m.start.column+")");return A.loc=m,A}l.exports=p}}),xo=H({"src/language-js/parse/utils/create-babel-parse-error.js"(h,l){"use strict";V();var p=nr();function d(m){let{message:A,loc:g}=m;return p(A.replace(/ \(.*\)/,""),{start:{line:g?g.line:0,column:g?g.column+1:0}})}l.exports=d}}),df=H({"src/language-js/utils/is-ts-keyword-type.js"(h,l){"use strict";V();function p(d){let{type:m}=d;return m.startsWith("TS")&&m.endsWith("Keyword")}l.exports=p}}),mf=H({"src/language-js/utils/is-block-comment.js"(h,l){"use strict";V();var p=new Set(["Block","CommentBlock","MultiLine"]),d=m=>p.has(m==null?void 0:m.type);l.exports=d}}),yf=H({"src/language-js/utils/is-type-cast-comment.js"(h,l){"use strict";V();var p=mf();function d(m){return p(m)&&m.value[0]==="*"&&/@type\b/.test(m.value)}l.exports=d}}),xf=H({"src/utils/get-last.js"(h,l){"use strict";V();var p=d=>d[d.length-1];l.exports=p}}),go=H({"src/language-js/parse/postprocess/visit-node.js"(h,l){"use strict";V();function p(d,m){if(Array.isArray(d)){for(let A=0;A<d.length;A++)d[A]=p(d[A],m);return d}if(d&&typeof d=="object"&&typeof d.type=="string"){let A=Object.keys(d);for(let g=0;g<A.length;g++)d[A[g]]=p(d[A[g]],m);return m(d)||d}return d}l.exports=p}}),Ao=H({"src/language-js/parse/postprocess/throw-syntax-error.js"(h,l){"use strict";V();var p=nr();function d(m,A){let{start:g,end:x}=m.loc;throw p(A,{start:{line:g.line,column:g.column+1},end:{line:x.line,column:x.column+1}})}l.exports=d}}),gf=H({"src/language-js/parse/postprocess/typescript.js"(h,l){"use strict";V();var p=go(),d=Ao();function m(x,T,k){let D=x.decorators;if(!Array.isArray(D))return;let E=T.decorators;(!Array.isArray(E)||E.length!==D.length||D.some(L=>{let R=k.get(L);return!R||!E.includes(R)}))&&d(T,"Leading decorators must be attached to a class declaration")}function A(x,T){x.kind!==167||x.modifiers&&!x.modifiers.some(E=>E.kind===126)||x.initializer&&T.value===null&&d(T,"Abstract property cannot have an initializer")}function g(x,T){let{esTreeNodeToTSNodeMap:k,tsNodeToESTreeNodeMap:D}=T.tsParseResult;p(x,E=>{let L=k.get(E);if(!L)return;let R=D.get(L);R===E&&(m(L,R,D),A(L,R))})}l.exports={throwErrorForInvalidNodes:g}}}),Af=H({"src/language-js/parse/postprocess/index.js"(h,l){"use strict";V();var{locStart:p,locEnd:d}=mo(),m=df(),A=yf(),g=xf(),x=go(),{throwErrorForInvalidNodes:T}=gf(),k=Ao();function D(F,W){if(W.parser==="typescript"&&/@|abstract/.test(W.originalText)&&T(F,W),W.parser!=="typescript"&&W.parser!=="flow"&&W.parser!=="acorn"&&W.parser!=="espree"&&W.parser!=="meriyah"){let M=new Set;F=x(F,j=>{j.leadingComments&&j.leadingComments.some(A)&&M.add(p(j))}),F=x(F,j=>{if(j.type==="ParenthesizedExpression"){let{expression:u}=j;if(u.type==="TypeCastExpression")return u.range=j.range,u;let X=p(j);if(!M.has(X))return u.extra=Object.assign(Object.assign({},u.extra),{},{parenthesized:!0}),u}})}return F=x(F,M=>{switch(M.type){case"ChainExpression":return E(M.expression);case"LogicalExpression":{if(L(M))return R(M);break}case"VariableDeclaration":{let j=g(M.declarations);j&&j.init&&Y(M,j);break}case"TSParenthesizedType":return m(M.typeAnnotation)||M.typeAnnotation.type==="TSThisType"||(M.typeAnnotation.range=[p(M),d(M)]),M.typeAnnotation;case"TSTypeParameter":if(typeof M.name=="string"){let j=p(M);M.name={type:"Identifier",name:M.name,range:[j,j+M.name.length]}}break;case"ObjectExpression":if(W.parser==="typescript"){let j=M.properties.find(u=>u.type==="Property"&&u.value.type==="TSEmptyBodyFunctionExpression");j&&k(j.value,"Unexpected token.")}break;case"SequenceExpression":{let j=g(M.expressions);M.range=[p(M),Math.min(d(j),d(M))];break}case"TopicReference":W.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:j}=M;if(W.parser==="meriyah"&&j&&j.type==="Identifier"){let u=W.originalText.slice(p(j),d(j));(u.startsWith('"')||u.startsWith("'"))&&(M.exported=Object.assign(Object.assign({},M.exported),{},{type:"Literal",value:M.exported.name,raw:u}))}break}}}),F;function Y(M,j){W.originalText[d(j)]!==";"&&(M.range=[p(M),d(j)])}}function E(F){switch(F.type){case"CallExpression":F.type="OptionalCallExpression",F.callee=E(F.callee);break;case"MemberExpression":F.type="OptionalMemberExpression",F.object=E(F.object);break;case"TSNonNullExpression":F.expression=E(F.expression);break}return F}function L(F){return F.type==="LogicalExpression"&&F.right.type==="LogicalExpression"&&F.operator===F.right.operator}function R(F){return L(F)?R({type:"LogicalExpression",operator:F.operator,left:R({type:"LogicalExpression",operator:F.operator,left:F.left,right:F.right.left,range:[p(F.left),d(F.right.left)]}),right:F.right.right,range:[p(F),d(F)]}):F}l.exports=D}}),Po=H({"node_modules/@babel/parser/lib/index.js"(h){"use strict";V(),Object.defineProperty(h,"__esModule",{value:!0});function l(t,e){if(t==null)return{};var s={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(s[i]=t[i]);return s}var p=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},d=class{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 m(t,e){let{line:s,column:r,index:i}=t;return new p(s,r+e,i+e)}var A=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),g=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.length-1;return{get(){return t.reduce((s,r)=>s[r],this)},set(s){t.reduce((r,i,a)=>a===e?r[i]=s:r[i],this)}}},x=(t,e,s)=>Object.keys(s).map(r=>[r,s[r]]).filter(r=>{let[,i]=r;return!!i}).map(r=>{let[i,a]=r;return[i,typeof a=="function"?{value:a,enumerable:!1}:typeof a.reflect=="string"?Object.assign({},a,g(a.reflect.split("."))):a]}).reduce((r,i)=>{let[a,n]=i;return Object.defineProperty(r,a,Object.assign({configurable:!0},n))},Object.assign(new t,e)),T=t=>({ImportMetaOutsideModule:t(`import.meta may appear only with 'sourceType: "module"'`,{code:A.SourceTypeModuleError}),ImportOutsideModule:t(`'import' and 'export' may appear only with 'sourceType: "module"'`,{code:A.SourceTypeModuleError})}),k={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},D=t=>{let{type:e,prefix:s}=t;return e==="UpdateExpression"?k.UpdateExpression[String(s)]:k[e]},E=t=>({AccessorIsGenerator:t(e=>{let{kind:s}=e;return"A ".concat(s,"ter cannot be a generator.")}),ArgumentsInClass:t("'arguments' is only allowed in functions and class methods."),AsyncFunctionInSingleStatementContext:t("Async functions can only be declared at the top level or inside a block."),AwaitBindingIdentifier:t("Can not use 'await' as identifier inside an async function."),AwaitBindingIdentifierInStaticBlock:t("Can not use 'await' as identifier inside a static block."),AwaitExpressionFormalParameter:t("'await' is not allowed in async function parameters."),AwaitNotInAsyncContext:t("'await' is only allowed within async functions and at the top levels of modules."),AwaitNotInAsyncFunction:t("'await' is only allowed within async functions."),BadGetterArity:t("A 'get' accesor must not have any formal parameters."),BadSetterArity:t("A 'set' accesor must have exactly one formal parameter."),BadSetterRestParameter:t("A 'set' accesor function argument must not be a rest parameter."),ConstructorClassField:t("Classes may not have a field named 'constructor'."),ConstructorClassPrivateField:t("Classes may not have a private field named '#constructor'."),ConstructorIsAccessor:t("Class constructor may not be an accessor."),ConstructorIsAsync:t("Constructor can't be an async function."),ConstructorIsGenerator:t("Constructor can't be a generator."),DeclarationMissingInitializer:t(e=>{let{kind:s}=e;return"Missing initializer in ".concat(s," declaration.")}),DecoratorBeforeExport:t("Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax."),DecoratorConstructor:t("Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?"),DecoratorExportClass:t("Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead."),DecoratorSemicolon:t("Decorators must not be followed by a semicolon."),DecoratorStaticBlock:t("Decorators can't be used with a static block."),DeletePrivateField:t("Deleting a private field is not allowed."),DestructureNamedImport:t("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),DuplicateConstructor:t("Duplicate constructor in the same class."),DuplicateDefaultExport:t("Only one default export allowed per module."),DuplicateExport:t(e=>{let{exportName:s}=e;return"`".concat(s,"` has already been exported. Exported identifiers must be unique.")}),DuplicateProto:t("Redefinition of __proto__ property."),DuplicateRegExpFlags:t("Duplicate regular expression flag."),ElementAfterRest:t("Rest element must be last element."),EscapedCharNotAnIdentifier:t("Invalid Unicode escape."),ExportBindingIsString:t(e=>{let{localName:s,exportName:r}=e;return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '".concat(s,"' as '").concat(r,"' } from 'some-module'`?")}),ExportDefaultFromAsIdentifier:t("'from' is not allowed as an identifier after 'export default'."),ForInOfLoopInitializer:t(e=>{let{type:s}=e;return"'".concat(s==="ForInStatement"?"for-in":"for-of","' loop variable declaration may not have an initializer.")}),ForOfAsync:t("The left-hand side of a for-of loop may not be 'async'."),ForOfLet:t("The left-hand side of a for-of loop may not start with 'let'."),GeneratorInSingleStatementContext:t("Generators can only be declared at the top level or inside a block."),IllegalBreakContinue:t(e=>{let{type:s}=e;return"Unsyntactic ".concat(s==="BreakStatement"?"break":"continue",".")}),IllegalLanguageModeDirective:t("Illegal 'use strict' directive in function with non-simple parameter list."),IllegalReturn:t("'return' outside of function."),ImportBindingIsString:t(e=>{let{importName:s}=e;return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'.concat(s,'" as foo }`?')}),ImportCallArgumentTrailingComma:t("Trailing comma is disallowed inside import(...) arguments."),ImportCallArity:t(e=>{let{maxArgumentCount:s}=e;return"`import()` requires exactly ".concat(s===1?"one argument":"one or two arguments",".")}),ImportCallNotNewExpression:t("Cannot use new with import(...)."),ImportCallSpreadArgument:t("`...` is not allowed in `import()`."),IncompatibleRegExpUVFlags:t("The 'u' and 'v' regular expression flags cannot be enabled at the same time."),InvalidBigIntLiteral:t("Invalid BigIntLiteral."),InvalidCodePoint:t("Code point out of bounds."),InvalidCoverInitializedName:t("Invalid shorthand property initializer."),InvalidDecimal:t("Invalid decimal."),InvalidDigit:t(e=>{let{radix:s}=e;return"Expected number in radix ".concat(s,".")}),InvalidEscapeSequence:t("Bad character escape sequence."),InvalidEscapeSequenceTemplate:t("Invalid escape sequence in template."),InvalidEscapedReservedWord:t(e=>{let{reservedWord:s}=e;return"Escape sequence in keyword ".concat(s,".")}),InvalidIdentifier:t(e=>{let{identifierName:s}=e;return"Invalid identifier ".concat(s,".")}),InvalidLhs:t(e=>{let{ancestor:s}=e;return"Invalid left-hand side in ".concat(D(s),".")}),InvalidLhsBinding:t(e=>{let{ancestor:s}=e;return"Binding invalid left-hand side in ".concat(D(s),".")}),InvalidNumber:t("Invalid number."),InvalidOrMissingExponent:t("Floating-point numbers require a valid exponent after the 'e'."),InvalidOrUnexpectedToken:t(e=>{let{unexpected:s}=e;return"Unexpected character '".concat(s,"'.")}),InvalidParenthesizedAssignment:t("Invalid parenthesized assignment pattern."),InvalidPrivateFieldResolution:t(e=>{let{identifierName:s}=e;return"Private name #".concat(s," is not defined.")}),InvalidPropertyBindingPattern:t("Binding member expression."),InvalidRecordProperty:t("Only properties and spread elements are allowed in record definitions."),InvalidRestAssignmentPattern:t("Invalid rest operator's argument."),LabelRedeclaration:t(e=>{let{labelName:s}=e;return"Label '".concat(s,"' is already declared.")}),LetInLexicalBinding:t("'let' is not allowed to be used as a name in 'let' or 'const' declarations."),LineTerminatorBeforeArrow:t("No line break is allowed before '=>'."),MalformedRegExpFlags:t("Invalid regular expression flag."),MissingClassName:t("A class name is required."),MissingEqInAssignment:t("Only '=' operator can be used for specifying default value."),MissingSemicolon:t("Missing semicolon."),MissingPlugin:t(e=>{let{missingPlugin:s}=e;return"This experimental syntax requires enabling the parser plugin: ".concat(s.map(r=>JSON.stringify(r)).join(", "),".")}),MissingOneOfPlugins:t(e=>{let{missingPlugin:s}=e;return"This experimental syntax requires enabling one of the following parser plugin(s): ".concat(s.map(r=>JSON.stringify(r)).join(", "),".")}),MissingUnicodeEscape:t("Expecting Unicode escape sequence \\uXXXX."),MixingCoalesceWithLogical:t("Nullish coalescing operator(??) requires parens when mixing with logical operators."),ModuleAttributeDifferentFromType:t("The only accepted module attribute is `type`."),ModuleAttributeInvalidValue:t("Only string literals are allowed as module attribute values."),ModuleAttributesWithDuplicateKeys:t(e=>{let{key:s}=e;return'Duplicate key "'.concat(s,'" is not allowed in module attributes.')}),ModuleExportNameHasLoneSurrogate:t(e=>{let{surrogateCharCode:s}=e;return"An export name cannot include a lone surrogate, found '\\u".concat(s.toString(16),"'.")}),ModuleExportUndefined:t(e=>{let{localName:s}=e;return"Export '".concat(s,"' is not defined.")}),MultipleDefaultsInSwitch:t("Multiple default clauses."),NewlineAfterThrow:t("Illegal newline after throw."),NoCatchOrFinally:t("Missing catch or finally clause."),NumberIdentifier:t("Identifier directly after number."),NumericSeparatorInEscapeSequence:t("Numeric separators are not allowed inside unicode escape sequences or hex escape sequences."),ObsoleteAwaitStar:t("'await*' has been removed from the async functions proposal. Use Promise.all() instead."),OptionalChainingNoNew:t("Constructors in/after an Optional Chain are not allowed."),OptionalChainingNoTemplate:t("Tagged Template Literals are not allowed in optionalChain."),OverrideOnConstructor:t("'override' modifier cannot appear on a constructor declaration."),ParamDupe:t("Argument name clash."),PatternHasAccessor:t("Object pattern can't contain getter or setter."),PatternHasMethod:t("Object pattern can't contain methods."),PrivateInExpectedIn:t(e=>{let{identifierName:s}=e;return"Private names are only allowed in property accesses (`obj.#".concat(s,"`) or in `in` expressions (`#").concat(s," in obj`).")}),PrivateNameRedeclaration:t(e=>{let{identifierName:s}=e;return"Duplicate private name #".concat(s,".")}),RecordExpressionBarIncorrectEndSyntaxType:t("Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),RecordExpressionBarIncorrectStartSyntaxType:t("Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),RecordExpressionHashIncorrectStartSyntaxType:t("Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'."),RecordNoProto:t("'__proto__' is not allowed in Record expressions."),RestTrailingComma:t("Unexpected trailing comma after rest element."),SloppyFunction:t("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:t("Classes may not have static property named prototype."),SuperNotAllowed:t("`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:t("Private fields can't be accessed on super."),TrailingDecorator:t("Decorators must be attached to a class element."),TupleExpressionBarIncorrectEndSyntaxType:t("Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),TupleExpressionBarIncorrectStartSyntaxType:t("Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),TupleExpressionHashIncorrectStartSyntaxType:t("Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'."),UnexpectedArgumentPlaceholder:t("Unexpected argument placeholder."),UnexpectedAwaitAfterPipelineBody:t('Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.'),UnexpectedDigitAfterHash:t("Unexpected digit after hash token."),UnexpectedImportExport:t("'import' and 'export' may only appear at the top level."),UnexpectedKeyword:t(e=>{let{keyword:s}=e;return"Unexpected keyword '".concat(s,"'.")}),UnexpectedLeadingDecorator:t("Leading decorators must be attached to a class declaration."),UnexpectedLexicalDeclaration:t("Lexical declaration cannot appear in a single-statement context."),UnexpectedNewTarget:t("`new.target` can only be used in functions or class properties."),UnexpectedNumericSeparator:t("A numeric separator is only allowed between two digits."),UnexpectedPrivateField:t("Unexpected private name."),UnexpectedReservedWord:t(e=>{let{reservedWord:s}=e;return"Unexpected reserved word '".concat(s,"'.")}),UnexpectedSuper:t("'super' is only allowed in object methods and classes."),UnexpectedToken:t(e=>{let{expected:s,unexpected:r}=e;return"Unexpected token".concat(r?" '".concat(r,"'."):"").concat(s?', expected "'.concat(s,'"'):"")}),UnexpectedTokenUnaryExponentiation:t("Illegal expression. Wrap left hand side or entire exponentiation in parentheses."),UnsupportedBind:t("Binding should be performed on object property."),UnsupportedDecoratorExport:t("A decorated export must export a class declaration."),UnsupportedDefaultExport:t("Only expressions, functions or classes are allowed as the `default` export."),UnsupportedImport:t("`import` can only be used in `import()` or `import.meta`."),UnsupportedMetaProperty:t(e=>{let{target:s,onlyValidPropertyName:r}=e;return"The only valid meta property for ".concat(s," is ").concat(s,".").concat(r,".")}),UnsupportedParameterDecorator:t("Decorators cannot be used to decorate parameters."),UnsupportedPropertyDecorator:t("Decorators cannot be used to decorate object literal properties."),UnsupportedSuper:t("'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop])."),UnterminatedComment:t("Unterminated comment."),UnterminatedRegExp:t("Unterminated regular expression."),UnterminatedString:t("Unterminated string constant."),UnterminatedTemplate:t("Unterminated template."),VarRedeclaration:t(e=>{let{identifierName:s}=e;return"Identifier '".concat(s,"' has already been declared.")}),YieldBindingIdentifier:t("Can not use 'yield' as identifier inside a generator."),YieldInParameter:t("Yield expression is not allowed in formal parameters."),ZeroDigitNumericSeparator:t("Numeric separator can not be used after leading 0.")}),L=t=>({StrictDelete:t("Deleting local variable in strict mode."),StrictEvalArguments:t(e=>{let{referenceName:s}=e;return"Assigning to '".concat(s,"' in strict mode.")}),StrictEvalArgumentsBinding:t(e=>{let{bindingName:s}=e;return"Binding '".concat(s,"' in strict mode.")}),StrictFunction:t("In strict mode code, functions can only be declared at top level or inside a block."),StrictNumericEscape:t("The only valid numeric escape in strict mode is '\\0'."),StrictOctalLiteral:t("Legacy octal literals are not allowed in strict mode."),StrictWith:t("'with' in strict mode.")}),R=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),F=t=>({PipeBodyIsTighter:t("Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence."),PipeTopicRequiresHackPipes:t('Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'),PipeTopicUnbound:t("Topic reference is unbound; it must be inside a pipe body."),PipeTopicUnconfiguredToken:t(e=>{let{token:s}=e;return"Invalid topic token ".concat(s,". In order to use ").concat(s,' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "').concat(s,'" }.')}),PipeTopicUnused:t("Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once."),PipeUnparenthesizedBody:t(e=>{let{type:s}=e;return"Hack-style pipe body cannot be an unparenthesized ".concat(D({type:s}),"; please wrap it in parentheses.")}),PipelineBodyNoArrow:t('Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.'),PipelineBodySequenceExpression:t("Pipeline body may not be a comma-separated sequence expression."),PipelineHeadSequenceExpression:t("Pipeline head should not be a comma-separated sequence expression."),PipelineTopicUnused:t("Pipeline is in topic style but does not use topic reference."),PrimaryTopicNotAllowed:t("Topic reference was used in a lexical context without topic binding."),PrimaryTopicRequiresSmartPipeline:t('Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.')}),W=["toMessage"];function Y(t){let{toMessage:e}=t,s=l(t,W);return function r(i){let{loc:a,details:n}=i;return x(SyntaxError,Object.assign({},s,{loc:a}),{clone(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.loc||{};return r({loc:new p("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"".concat(e(this.details)," (").concat(this.loc.line,":").concat(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 M(t,e){return Object.assign({toMessage:typeof t=="string"?()=>t:t},e)}function j(t,e){if(Array.isArray(t))return i=>j(i,t[0]);let s=t(M),r={};for(let i of Object.keys(s))r[i]=Y(Object.assign({code:A.SyntaxError,reasonCode:i},e?{syntaxPlugin:e}:{},s[i]));return r}var u=Object.assign({},j(T),j(E),j(L),j(_n||(_n=rt(["pipelineOperator"])))(F)),{defineProperty:X}=Object,se=(t,e)=>X(t,e,{enumerable:!1,value:t[e]});function J(t){return se(t.loc.start,"index"),se(t.loc.end,"index"),t}var Oe=t=>class extends t{parse(){let e=J(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(J)),e}parseRegExpLiteral(e){let{pattern:s,flags:r}=e,i=null;try{i=new RegExp(s,r)}catch{}let a=this.estreeParseLiteral(i);return a.regex={pattern:s,flags:r},a}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let r=this.estreeParseLiteral(s);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||e),r}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,r=this.startNodeAt(e.start,e.loc.start),i=this.startNodeAt(s.start,s.loc.start);return i.value=s.extra.expressionValue,i.raw=s.extra.raw,r.expression=this.finishNodeAt(i,"Literal",s.loc.end),r.directive=s.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.loc.end)}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){for(var s=arguments.length,r=new Array(s>1?s-1:0),i=1;i<s;i++)r[i-1]=arguments[i];super.parseBlockBody(e,...r);let a=e.directives.map(n=>this.directiveToStmt(n));e.body=a.concat(e.body),delete e.directives}pushClassMethod(e,s,r,i,a,n){this.parseMethod(s,r,i,a,n,"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 r=super.parseLiteral(e,s);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,s){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;super.parseFunctionBody(e,s,r),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,r,i,a,n){let o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,c=this.startNode();return c.kind=e.kind,c=super.parseMethod(c,s,r,i,a,n,o),c.type="FunctionExpression",delete c.kind,e.value=c,n==="ClassPrivateMethod"&&(e.computed=!1),n="MethodDefinition",this.finishNode(e,n)}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,r,i,a){let n=super.parseObjectMethod(e,s,r,i,a);return n&&(n.type="Property",n.kind==="method"&&(n.kind="init"),n.shorthand=!1),n}parseObjectProperty(e,s,r,i,a){let n=super.parseObjectProperty(e,s,r,i,a);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e){for(var s=arguments.length,r=new Array(s>1?s-1:0),i=1;i<s;i++)r[i-1]=arguments[i];return e==="Property"?"value":super.isValidLVal(e,...r)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAs