UNPKG

prettier

Version:

Prettier is an opinionated code formatter

24 lines (23 loc) 324 kB
var v=(l,h)=>()=>(h||l((h={exports:{}}).exports,h),h.exports);var de=v((Rf,ai)=>{var Dt=function(l){return l&&l.Math==Math&&l};ai.exports=Dt(typeof globalThis=="object"&&globalThis)||Dt(typeof window=="object"&&window)||Dt(typeof self=="object"&&self)||Dt(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var me=v((jf,ni)=>{ni.exports=function(l){try{return!!l()}catch{return!0}}});var Se=v((qf,oi)=>{var yh=me();oi.exports=!yh(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Ft=v((Uf,li)=>{var xh=me();li.exports=!xh(function(){var l=function(){}.bind();return typeof l!="function"||l.hasOwnProperty("prototype")})});var Ot=v(($f,hi)=>{var gh=Ft(),Lt=Function.prototype.call;hi.exports=gh?Lt.bind(Lt):function(){return Lt.apply(Lt,arguments)}});var fi=v(pi=>{"use strict";var ui={}.propertyIsEnumerable,ci=Object.getOwnPropertyDescriptor,Ph=ci&&!ui.call({1:2},1);pi.f=Ph?function(h){var f=ci(this,h);return!!f&&f.enumerable}:ui});var Ps=v((zf,di)=>{di.exports=function(l,h){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:h}}});var ye=v((Vf,xi)=>{var mi=Ft(),yi=Function.prototype,As=yi.call,Ah=mi&&yi.bind.bind(As,As);xi.exports=mi?Ah:function(l){return function(){return As.apply(l,arguments)}}});var lt=v((Kf,Pi)=>{var gi=ye(),Th=gi({}.toString),vh=gi("".slice);Pi.exports=function(l){return vh(Th(l),8,-1)}});var Ti=v((Wf,Ai)=>{var Eh=ye(),bh=me(),Ch=lt(),Ts=Object,Sh=Eh("".split);Ai.exports=bh(function(){return!Ts("z").propertyIsEnumerable(0)})?function(l){return Ch(l)=="String"?Sh(l,""):Ts(l)}:Ts});var vs=v((Gf,vi)=>{vi.exports=function(l){return l==null}});var Es=v((Jf,Ei)=>{var wh=vs(),Ih=TypeError;Ei.exports=function(l){if(wh(l))throw Ih("Can't call method on "+l);return l}});var Bt=v((Xf,bi)=>{var Nh=Ti(),kh=Es();bi.exports=function(l){return Nh(kh(l))}});var Cs=v((Yf,Ci)=>{var bs=typeof document=="object"&&document.all,Dh=typeof bs>"u"&&bs!==void 0;Ci.exports={all:bs,IS_HTMLDDA:Dh}});var ue=v((Qf,wi)=>{var Si=Cs(),Fh=Si.all;wi.exports=Si.IS_HTMLDDA?function(l){return typeof l=="function"||l===Fh}:function(l){return typeof l=="function"}});var qe=v((Zf,ki)=>{var Ii=ue(),Ni=Cs(),Lh=Ni.all;ki.exports=Ni.IS_HTMLDDA?function(l){return typeof l=="object"?l!==null:Ii(l)||l===Lh}:function(l){return typeof l=="object"?l!==null:Ii(l)}});var ht=v((ed,Di)=>{var Ss=de(),Oh=ue(),Bh=function(l){return Oh(l)?l:void 0};Di.exports=function(l,h){return arguments.length<2?Bh(Ss[l]):Ss[l]&&Ss[l][h]}});var Li=v((td,Fi)=>{var Mh=ye();Fi.exports=Mh({}.isPrototypeOf)});var Bi=v((sd,Oi)=>{var _h=ht();Oi.exports=_h("navigator","userAgent")||""});var $i=v((rd,Ui)=>{var qi=de(),ws=Bi(),Mi=qi.process,_i=qi.Deno,Ri=Mi&&Mi.versions||_i&&_i.version,ji=Ri&&Ri.v8,xe,Mt;ji&&(xe=ji.split("."),Mt=xe[0]>0&&xe[0]<4?1:+(xe[0]+xe[1]));!Mt&&ws&&(xe=ws.match(/Edge\/(\d+)/),(!xe||xe[1]>=74)&&(xe=ws.match(/Chrome\/(\d+)/),xe&&(Mt=+xe[1])));Ui.exports=Mt});var Is=v((id,zi)=>{var Hi=$i(),Rh=me();zi.exports=!!Object.getOwnPropertySymbols&&!Rh(function(){var l=Symbol();return!String(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&Hi&&Hi<41})});var Ns=v((ad,Vi)=>{var jh=Is();Vi.exports=jh&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ks=v((nd,Ki)=>{var qh=ht(),Uh=ue(),$h=Li(),Hh=Ns(),zh=Object;Ki.exports=Hh?function(l){return typeof l=="symbol"}:function(l){var h=qh("Symbol");return Uh(h)&&$h(h.prototype,zh(l))}});var Gi=v((od,Wi)=>{var Vh=String;Wi.exports=function(l){try{return Vh(l)}catch{return"Object"}}});var _t=v((ld,Ji)=>{var Kh=ue(),Wh=Gi(),Gh=TypeError;Ji.exports=function(l){if(Kh(l))return l;throw Gh(Wh(l)+" is not a function")}});var Yi=v((hd,Xi)=>{var Jh=_t(),Xh=vs();Xi.exports=function(l,h){var f=l[h];return Xh(f)?void 0:Jh(f)}});var Zi=v((ud,Qi)=>{var Ds=Ot(),Fs=ue(),Ls=qe(),Yh=TypeError;Qi.exports=function(l,h){var f,d;if(h==="string"&&Fs(f=l.toString)&&!Ls(d=Ds(f,l))||Fs(f=l.valueOf)&&!Ls(d=Ds(f,l))||h!=="string"&&Fs(f=l.toString)&&!Ls(d=Ds(f,l)))return d;throw Yh("Can't convert object to primitive value")}});var ta=v((cd,ea)=>{ea.exports=!1});var Rt=v((pd,ra)=>{var sa=de(),Qh=Object.defineProperty;ra.exports=function(l,h){try{Qh(sa,l,{value:h,configurable:!0,writable:!0})}catch{sa[l]=h}return h}});var jt=v((fd,aa)=>{var Zh=de(),eu=Rt(),ia="__core-js_shared__",tu=Zh[ia]||eu(ia,{});aa.exports=tu});var Os=v((dd,oa)=>{var su=ta(),na=jt();(oa.exports=function(l,h){return na[l]||(na[l]=h!==void 0?h:{})})("versions",[]).push({version:"3.26.1",mode:su?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var Bs=v((md,la)=>{var ru=Es(),iu=Object;la.exports=function(l){return iu(ru(l))}});var Le=v((yd,ha)=>{var au=ye(),nu=Bs(),ou=au({}.hasOwnProperty);ha.exports=Object.hasOwn||function(h,f){return ou(nu(h),f)}});var Ms=v((xd,ua)=>{var lu=ye(),hu=0,uu=Math.random(),cu=lu(1 .toString);ua.exports=function(l){return"Symbol("+(l===void 0?"":l)+")_"+cu(++hu+uu,36)}});var ut=v((gd,ma)=>{var pu=de(),fu=Os(),ca=Le(),du=Ms(),pa=Is(),da=Ns(),Qe=fu("wks"),Ue=pu.Symbol,fa=Ue&&Ue.for,mu=da?Ue:Ue&&Ue.withoutSetter||du;ma.exports=function(l){if(!ca(Qe,l)||!(pa||typeof Qe[l]=="string")){var h="Symbol."+l;pa&&ca(Ue,l)?Qe[l]=Ue[l]:da&&fa?Qe[l]=fa(h):Qe[l]=mu(h)}return Qe[l]}});var Pa=v((Pd,ga)=>{var yu=Ot(),ya=qe(),xa=ks(),xu=Yi(),gu=Zi(),Pu=ut(),Au=TypeError,Tu=Pu("toPrimitive");ga.exports=function(l,h){if(!ya(l)||xa(l))return l;var f=xu(l,Tu),d;if(f){if(h===void 0&&(h="default"),d=yu(f,l,h),!ya(d)||xa(d))return d;throw Au("Can't convert object to primitive value")}return h===void 0&&(h="number"),gu(l,h)}});var _s=v((Ad,Aa)=>{var vu=Pa(),Eu=ks();Aa.exports=function(l){var h=vu(l,"string");return Eu(h)?h:h+""}});var Ea=v((Td,va)=>{var bu=de(),Ta=qe(),Rs=bu.document,Cu=Ta(Rs)&&Ta(Rs.createElement);va.exports=function(l){return Cu?Rs.createElement(l):{}}});var js=v((vd,ba)=>{var Su=Se(),wu=me(),Iu=Ea();ba.exports=!Su&&!wu(function(){return Object.defineProperty(Iu("div"),"a",{get:function(){return 7}}).a!=7})});var qs=v(Sa=>{var Nu=Se(),ku=Ot(),Du=fi(),Fu=Ps(),Lu=Bt(),Ou=_s(),Bu=Le(),Mu=js(),Ca=Object.getOwnPropertyDescriptor;Sa.f=Nu?Ca:function(h,f){if(h=Lu(h),f=Ou(f),Mu)try{return Ca(h,f)}catch{}if(Bu(h,f))return Fu(!ku(Du.f,h,f),h[f])}});var Ia=v((bd,wa)=>{var _u=Se(),Ru=me();wa.exports=_u&&Ru(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var qt=v((Cd,Na)=>{var ju=qe(),qu=String,Uu=TypeError;Na.exports=function(l){if(ju(l))return l;throw Uu(qu(l)+" is not an object")}});var ct=v(Da=>{var $u=Se(),Hu=js(),zu=Ia(),Ut=qt(),ka=_s(),Vu=TypeError,Us=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,$s="enumerable",Hs="configurable",zs="writable";Da.f=$u?zu?function(h,f,d){if(Ut(h),f=ka(f),Ut(d),typeof h=="function"&&f==="prototype"&&"value"in d&&zs in d&&!d[zs]){var y=Ku(h,f);y&&y[zs]&&(h[f]=d.value,d={configurable:Hs in d?d[Hs]:y[Hs],enumerable:$s in d?d[$s]:y[$s],writable:!1})}return Us(h,f,d)}:Us:function(h,f,d){if(Ut(h),f=ka(f),Ut(d),Hu)try{return Us(h,f,d)}catch{}if("get"in d||"set"in d)throw Vu("Accessors not supported");return"value"in d&&(h[f]=d.value),h}});var Vs=v((wd,Fa)=>{var Wu=Se(),Gu=ct(),Ju=Ps();Fa.exports=Wu?function(l,h,f){return Gu.f(l,h,Ju(1,f))}:function(l,h,f){return l[h]=f,l}});var Ba=v((Id,Oa)=>{var Ks=Se(),Xu=Le(),La=Function.prototype,Yu=Ks&&Object.getOwnPropertyDescriptor,Ws=Xu(La,"name"),Qu=Ws&&function(){}.name==="something",Zu=Ws&&(!Ks||Ks&&Yu(La,"name").configurable);Oa.exports={EXISTS:Ws,PROPER:Qu,CONFIGURABLE:Zu}});var Js=v((Nd,Ma)=>{var ec=ye(),tc=ue(),Gs=jt(),sc=ec(Function.toString);tc(Gs.inspectSource)||(Gs.inspectSource=function(l){return sc(l)});Ma.exports=Gs.inspectSource});var ja=v((kd,Ra)=>{var rc=de(),ic=ue(),_a=rc.WeakMap;Ra.exports=ic(_a)&&/native code/.test(String(_a))});var $a=v((Dd,Ua)=>{var ac=Os(),nc=Ms(),qa=ac("keys");Ua.exports=function(l){return qa[l]||(qa[l]=nc(l))}});var Xs=v((Fd,Ha)=>{Ha.exports={}});var Wa=v((Ld,Ka)=>{var oc=ja(),Va=de(),lc=qe(),hc=Vs(),Ys=Le(),Qs=jt(),uc=$a(),cc=Xs(),za="Object already initialized",Zs=Va.TypeError,pc=Va.WeakMap,$t,pt,Ht,fc=function(l){return Ht(l)?pt(l):$t(l,{})},dc=function(l){return function(h){var f;if(!lc(h)||(f=pt(h)).type!==l)throw Zs("Incompatible receiver, "+l+" required");return f}};oc||Qs.state?(ge=Qs.state||(Qs.state=new pc),ge.get=ge.get,ge.has=ge.has,ge.set=ge.set,$t=function(l,h){if(ge.has(l))throw Zs(za);return h.facade=l,ge.set(l,h),h},pt=function(l){return ge.get(l)||{}},Ht=function(l){return ge.has(l)}):($e=uc("state"),cc[$e]=!0,$t=function(l,h){if(Ys(l,$e))throw Zs(za);return h.facade=l,hc(l,$e,h),h},pt=function(l){return Ys(l,$e)?l[$e]:{}},Ht=function(l){return Ys(l,$e)});var ge,$e;Ka.exports={set:$t,get:pt,has:Ht,enforce:fc,getterFor:dc}});var tr=v((Od,Ja)=>{var mc=me(),yc=ue(),zt=Le(),er=Se(),xc=Ba().CONFIGURABLE,gc=Js(),Ga=Wa(),Pc=Ga.enforce,Ac=Ga.get,Vt=Object.defineProperty,Tc=er&&!mc(function(){return Vt(function(){},"length",{value:8}).length!==8}),vc=String(String).split("String"),Ec=Ja.exports=function(l,h,f){String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),f&&f.getter&&(h="get "+h),f&&f.setter&&(h="set "+h),(!zt(l,"name")||xc&&l.name!==h)&&(er?Vt(l,"name",{value:h,configurable:!0}):l.name=h),Tc&&f&&zt(f,"arity")&&l.length!==f.arity&&Vt(l,"length",{value:f.arity});try{f&&zt(f,"constructor")&&f.constructor?er&&Vt(l,"prototype",{writable:!1}):l.prototype&&(l.prototype=void 0)}catch{}var d=Pc(l);return zt(d,"source")||(d.source=vc.join(typeof h=="string"?h:"")),l};Function.prototype.toString=Ec(function(){return yc(this)&&Ac(this).source||gc(this)},"toString")});var Ya=v((Bd,Xa)=>{var bc=ue(),Cc=ct(),Sc=tr(),wc=Rt();Xa.exports=function(l,h,f,d){d||(d={});var y=d.enumerable,g=d.name!==void 0?d.name:h;if(bc(f)&&Sc(f,g,d),d.global)y?l[h]=f:wc(h,f);else{try{d.unsafe?l[h]&&(y=!0):delete l[h]}catch{}y?l[h]=f:Cc.f(l,h,{value:f,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return l}});var Za=v((Md,Qa)=>{var Ic=Math.ceil,Nc=Math.floor;Qa.exports=Math.trunc||function(h){var f=+h;return(f>0?Nc:Ic)(f)}});var sr=v((_d,en)=>{var kc=Za();en.exports=function(l){var h=+l;return h!==h||h===0?0:kc(h)}});var sn=v((Rd,tn)=>{var Dc=sr(),Fc=Math.max,Lc=Math.min;tn.exports=function(l,h){var f=Dc(l);return f<0?Fc(f+h,0):Lc(f,h)}});var an=v((jd,rn)=>{var Oc=sr(),Bc=Math.min;rn.exports=function(l){return l>0?Bc(Oc(l),9007199254740991):0}});var Kt=v((qd,nn)=>{var Mc=an();nn.exports=function(l){return Mc(l.length)}});var hn=v((Ud,ln)=>{var _c=Bt(),Rc=sn(),jc=Kt(),on=function(l){return function(h,f,d){var y=_c(h),g=jc(y),A=Rc(d,g),E;if(l&&f!=f){for(;g>A;)if(E=y[A++],E!=E)return!0}else for(;g>A;A++)if((l||A in y)&&y[A]===f)return l||A||0;return!l&&-1}};ln.exports={includes:on(!0),indexOf:on(!1)}});var pn=v(($d,cn)=>{var qc=ye(),rr=Le(),Uc=Bt(),$c=hn().indexOf,Hc=Xs(),un=qc([].push);cn.exports=function(l,h){var f=Uc(l),d=0,y=[],g;for(g in f)!rr(Hc,g)&&rr(f,g)&&un(y,g);for(;h.length>d;)rr(f,g=h[d++])&&(~$c(y,g)||un(y,g));return y}});var dn=v((Hd,fn)=>{fn.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var yn=v(mn=>{var zc=pn(),Vc=dn(),Kc=Vc.concat("length","prototype");mn.f=Object.getOwnPropertyNames||function(h){return zc(h,Kc)}});var gn=v(xn=>{xn.f=Object.getOwnPropertySymbols});var An=v((Kd,Pn)=>{var Wc=ht(),Gc=ye(),Jc=yn(),Xc=gn(),Yc=qt(),Qc=Gc([].concat);Pn.exports=Wc("Reflect","ownKeys")||function(h){var f=Jc.f(Yc(h)),d=Xc.f;return d?Qc(f,d(h)):f}});var En=v((Wd,vn)=>{var Tn=Le(),Zc=An(),ep=qs(),tp=ct();vn.exports=function(l,h,f){for(var d=Zc(h),y=tp.f,g=ep.f,A=0;A<d.length;A++){var E=d[A];!Tn(l,E)&&!(f&&Tn(f,E))&&y(l,E,g(h,E))}}});var Cn=v((Gd,bn)=>{var sp=me(),rp=ue(),ip=/#|\.prototype\./,ft=function(l,h){var f=np[ap(l)];return f==lp?!0:f==op?!1:rp(h)?sp(h):!!h},ap=ft.normalize=function(l){return String(l).replace(ip,".").toLowerCase()},np=ft.data={},op=ft.NATIVE="N",lp=ft.POLYFILL="P";bn.exports=ft});var ar=v((Jd,Sn)=>{var ir=de(),hp=qs().f,up=Vs(),cp=Ya(),pp=Rt(),fp=En(),dp=Cn();Sn.exports=function(l,h){var f=l.target,d=l.global,y=l.stat,g,A,E,S,L,I;if(d?A=ir:y?A=ir[f]||pp(f,{}):A=(ir[f]||{}).prototype,A)for(E in h){if(L=h[E],l.dontCallGetSet?(I=hp(A,E),S=I&&I.value):S=A[E],g=dp(d?E:f+(y?".":"#")+E,l.forced),!g&&S!==void 0){if(typeof L==typeof S)continue;fp(L,S)}(l.sham||S&&S.sham)&&up(L,"sham",!0),cp(A,E,L,l)}}});var wn=v(()=>{var mp=ar(),nr=de();mp({global:!0,forced:nr.globalThis!==nr},{globalThis:nr})});var kn=v((Qd,Nn)=>{var In=tr(),yp=ct();Nn.exports=function(l,h,f){return f.get&&In(f.get,h,{getter:!0}),f.set&&In(f.set,h,{setter:!0}),yp.f(l,h,f)}});var Fn=v((Zd,Dn)=>{"use strict";var xp=qt();Dn.exports=function(){var l=xp(this),h="";return l.hasIndices&&(h+="d"),l.global&&(h+="g"),l.ignoreCase&&(h+="i"),l.multiline&&(h+="m"),l.dotAll&&(h+="s"),l.unicode&&(h+="u"),l.unicodeSets&&(h+="v"),l.sticky&&(h+="y"),h}});var or=v((em,Bn)=>{var bp=lt();Bn.exports=Array.isArray||function(h){return bp(h)=="Array"}});var _n=v((tm,Mn)=>{var Cp=TypeError,Sp=9007199254740991;Mn.exports=function(l){if(l>Sp)throw Cp("Maximum allowed index exceeded");return l}});var jn=v((sm,Rn)=>{var wp=lt(),Ip=ye();Rn.exports=function(l){if(wp(l)==="Function")return Ip(l)}});var $n=v((rm,Un)=>{var qn=jn(),Np=_t(),kp=Ft(),Dp=qn(qn.bind);Un.exports=function(l,h){return Np(l),h===void 0?l:kp?Dp(l,h):function(){return l.apply(h,arguments)}}});var Vn=v((im,zn)=>{"use strict";var Fp=or(),Lp=Kt(),Op=_n(),Bp=$n(),Hn=function(l,h,f,d,y,g,A,E){for(var S=y,L=0,I=A?Bp(A,E):!1,C,O;L<d;)L in f&&(C=I?I(f[L],L,h):f[L],g>0&&Fp(C)?(O=Lp(C),S=Hn(l,h,C,O,S,g-1)-1):(Op(S+1),l[S]=C),S++),L++;return S};zn.exports=Hn});var Gn=v((am,Wn)=>{var Mp=ut(),_p=Mp("toStringTag"),Kn={};Kn[_p]="z";Wn.exports=String(Kn)==="[object z]"});var Xn=v((nm,Jn)=>{var Rp=Gn(),jp=ue(),Wt=lt(),qp=ut(),Up=qp("toStringTag"),$p=Object,Hp=Wt(function(){return arguments}())=="Arguments",zp=function(l,h){try{return l[h]}catch{}};Jn.exports=Rp?Wt:function(l){var h,f,d;return l===void 0?"Undefined":l===null?"Null":typeof(f=zp(h=$p(l),Up))=="string"?f:Hp?Wt(h):(d=Wt(h))=="Object"&&jp(h.callee)?"Arguments":d}});var so=v((om,to)=>{var Vp=ye(),Kp=me(),Yn=ue(),Wp=Xn(),Gp=ht(),Jp=Js(),Qn=function(){},Xp=[],Zn=Gp("Reflect","construct"),lr=/^\s*(?:class|function)\b/,Yp=Vp(lr.exec),Qp=!lr.exec(Qn),dt=function(h){if(!Yn(h))return!1;try{return Zn(Qn,Xp,h),!0}catch{return!1}},eo=function(h){if(!Yn(h))return!1;switch(Wp(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qp||!!Yp(lr,Jp(h))}catch{return!0}};eo.sham=!0;to.exports=!Zn||Kp(function(){var l;return dt(dt.call)||!dt(Object)||!dt(function(){l=!0})||l})?eo:dt});var no=v((lm,ao)=>{var ro=or(),Zp=so(),ef=qe(),tf=ut(),sf=tf("species"),io=Array;ao.exports=function(l){var h;return ro(l)&&(h=l.constructor,Zp(h)&&(h===io||ro(h.prototype))?h=void 0:ef(h)&&(h=h[sf],h===null&&(h=void 0))),h===void 0?io:h}});var lo=v((hm,oo)=>{var rf=no();oo.exports=function(l,h){return new(rf(l))(h===0?0:h)}});wn();var gp=de(),Pp=Se(),Ap=kn(),Tp=Fn(),vp=me(),Ln=gp.RegExp,On=Ln.prototype,Ep=Pp&&vp(function(){var l=!0;try{Ln(".","d")}catch{l=!1}var h={},f="",d=l?"dgimsy":"gimsy",y=function(S,L){Object.defineProperty(h,S,{get:function(){return f+=L,!0}})},g={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};l&&(g.hasIndices="d");for(var A in g)y(A,g[A]);var E=Object.getOwnPropertyDescriptor(On,"flags").get.call(h);return E!==d||f!==d});Ep&&Ap(On,"flags",{configurable:!0,get:Tp});var af=ar(),nf=Vn(),of=_t(),lf=Bs(),hf=Kt(),uf=lo();af({target:"Array",proto:!0},{flatMap:function(h){var f=lf(this),d=hf(f),y;return of(h),y=uf(f,0),y.length=nf(y,f,f,d,0,1,h,arguments.length>1?arguments[1]:void 0),y}});var pr=Object.defineProperty,cf=Object.getOwnPropertyDescriptor,fr=Object.getOwnPropertyNames,pf=Object.prototype.hasOwnProperty,ho=(l,h)=>function(){return l&&(h=(0,l[fr(l)[0]])(l=0)),h},W=(l,h)=>function(){return h||(0,l[fr(l)[0]])((h={exports:{}}).exports,h),h.exports},ff=(l,h)=>{for(var f in h)pr(l,f,{get:h[f],enumerable:!0})},df=(l,h,f,d)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of fr(h))!pf.call(l,y)&&y!==f&&pr(l,y,{get:()=>h[y],enumerable:!(d=cf(h,y))||d.enumerable});return l},mf=l=>df(pr({},"__esModule",{value:!0}),l),K=ho({"<define:process>"(){}}),yf=W({"src/utils/try-combinations.js"(l,h){"use strict";K();function f(){let d;for(var y=arguments.length,g=new Array(y),A=0;A<y;A++)g[A]=arguments[A];for(let[E,S]of g.entries())try{return{result:S()}}catch(L){E===0&&(d=L)}return{error:d}}h.exports=f}}),uo=W({"src/language-js/utils/get-shebang.js"(l,h){"use strict";K();function f(d){if(!d.startsWith("#!"))return"";let y=d.indexOf(` `);return y===-1?d:d.slice(0,y)}h.exports=f}}),xf=W({"src/utils/text/skip-inline-comment.js"(l,h){"use strict";K();function f(d,y){if(y===!1)return!1;if(d.charAt(y)==="/"&&d.charAt(y+1)==="*"){for(let g=y+2;g<d.length;++g)if(d.charAt(g)==="*"&&d.charAt(g+1)==="/")return g+2}return y}h.exports=f}}),gf=W({"src/utils/text/skip-newline.js"(l,h){"use strict";K();function f(d,y,g){let A=g&&g.backwards;if(y===!1)return!1;let E=d.charAt(y);if(A){if(d.charAt(y-1)==="\r"&&E===` `)return y-2;if(E===` `||E==="\r"||E==="\u2028"||E==="\u2029")return y-1}else{if(E==="\r"&&d.charAt(y+1)===` `)return y+2;if(E===` `||E==="\r"||E==="\u2028"||E==="\u2029")return y+1}return y}h.exports=f}}),co=W({"src/utils/text/skip.js"(l,h){"use strict";K();function f(E){return(S,L,I)=>{let C=I&&I.backwards;if(L===!1)return!1;let{length:O}=S,R=L;for(;R>=0&&R<O;){let N=S.charAt(R);if(E instanceof RegExp){if(!E.test(N))return R}else if(!E.includes(N))return R;C?R--:R++}return R===-1||R===O?R:!1}}var d=f(/\s/),y=f(" "),g=f(",; "),A=f(/[^\n\r]/);h.exports={skipWhitespace:d,skipSpaces:y,skipToLineEnd:g,skipEverythingButNewLine:A}}}),Pf=W({"src/utils/text/skip-trailing-comment.js"(l,h){"use strict";K();var{skipEverythingButNewLine:f}=co();function d(y,g){return g===!1?!1:y.charAt(g)==="/"&&y.charAt(g+1)==="/"?f(y,g):g}h.exports=d}}),Af=W({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(l,h){"use strict";K();var f=xf(),d=gf(),y=Pf(),{skipSpaces:g}=co();function A(E,S){let L=null,I=S;for(;I!==L;)L=I,I=g(E,I),I=f(E,I),I=y(E,I),I=d(E,I);return I}h.exports=A}}),po={};ff(po,{EOL:()=>cr,arch:()=>Tf,cpus:()=>Ao,default:()=>Co,endianness:()=>fo,freemem:()=>go,getNetworkInterfaces:()=>bo,hostname:()=>mo,loadavg:()=>yo,networkInterfaces:()=>Eo,platform:()=>vf,release:()=>vo,tmpDir:()=>hr,tmpdir:()=>ur,totalmem:()=>Po,type:()=>To,uptime:()=>xo});function fo(){if(typeof Gt>"u"){var l=new ArrayBuffer(2),h=new Uint8Array(l),f=new Uint16Array(l);if(h[0]=1,h[1]=2,f[0]===258)Gt="BE";else if(f[0]===513)Gt="LE";else throw new Error("unable to figure out endianess")}return Gt}function mo(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function yo(){return[]}function xo(){return 0}function go(){return Number.MAX_VALUE}function Po(){return Number.MAX_VALUE}function Ao(){return[]}function To(){return"Browser"}function vo(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function Eo(){}function bo(){}function Tf(){return"javascript"}function vf(){return"browser"}function hr(){return"/tmp"}var Gt,ur,cr,Co,Ef=ho({"node-modules-polyfills:os"(){K(),ur=hr,cr=` `,Co={EOL:cr,tmpdir:ur,tmpDir:hr,networkInterfaces:Eo,getNetworkInterfaces:bo,release:vo,type:To,cpus:Ao,totalmem:Po,freemem:go,uptime:xo,loadavg:yo,hostname:mo,endianness:fo}}}),bf=W({"node-modules-polyfills-commonjs:os"(l,h){K();var f=(Ef(),mf(po));if(f&&f.default){h.exports=f.default;for(let d in f)h.exports[d]=f[d]}else f&&(h.exports=f)}}),Cf=W({"node_modules/detect-newline/index.js"(l,h){"use strict";K();var f=d=>{if(typeof d!="string")throw new TypeError("Expected a string");let y=d.match(/(?:\r?\n)/g)||[];if(y.length===0)return;let g=y.filter(E=>E===`\r `).length,A=y.length-g;return g>A?`\r `:` `};h.exports=f,h.exports.graceful=d=>typeof d=="string"&&f(d)||` `}}),Sf=W({"node_modules/jest-docblock/build/index.js"(l){"use strict";K(),Object.defineProperty(l,"__esModule",{value:!0}),l.extract=R,l.parse=H,l.parseWithComments=J,l.print=D,l.strip=N;function h(){let u=bf();return h=function(){return u},u}function f(){let u=d(Cf());return f=function(){return u},u}function d(u){return u&&u.__esModule?u:{default:u}}var y=/\*\/$/,g=/^\/\*\*?/,A=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,E=/(^|\s+)\/\/([^\r\n]*)/g,S=/^(\r?\n)+/,L=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,I=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,C=/(\r?\n|^) *\* ?/g,O=[];function R(u){let X=u.match(A);return X?X[0].trimLeft():""}function N(u){let X=u.match(A);return X&&X[0]?u.substring(X[0].length):u}function H(u){return J(u).pragmas}function J(u){let X=(0,f().default)(u)||h().EOL;u=u.replace(g,"").replace(y,"").replace(C,"$1");let ne="";for(;ne!==u;)ne=u,u=u.replace(L,`${X}$1 $2${X}`);u=u.replace(S,"").trimRight();let Q=Object.create(null),we=u.replace(I,"").replace(S,"").trimRight(),ee;for(;ee=I.exec(u);){let U=ee[2].replace(E,"");typeof Q[ee[1]]=="string"||Array.isArray(Q[ee[1]])?Q[ee[1]]=O.concat(Q[ee[1]],U):Q[ee[1]]=U}return{comments:we,pragmas:Q}}function D(u){let{comments:X="",pragmas:ne={}}=u,Q=(0,f().default)(X)||h().EOL,we="/**",ee=" *",U=" */",B=Object.keys(ne),T=B.map(V=>_(V,ne[V])).reduce((V,Y)=>V.concat(Y),[]).map(V=>`${ee} ${V}${Q}`).join("");if(!X){if(B.length===0)return"";if(B.length===1&&!Array.isArray(ne[B[0]])){let V=ne[B[0]];return`${we} ${_(B[0],V)[0]}${U}`}}let Oe=X.split(Q).map(V=>`${ee} ${V}`).join(Q)+Q;return we+Q+(X?Oe:"")+(X&&B.length?ee+Q:"")+T+U}function _(u,X){return O.concat(X).map(ne=>`@${u} ${ne}`.trim())}}}),wf=W({"src/common/end-of-line.js"(l,h){"use strict";K();function f(A){let E=A.indexOf("\r");return E>=0?A.charAt(E+1)===` `?"crlf":"cr":"lf"}function d(A){switch(A){case"cr":return"\r";case"crlf":return`\r `;default:return` `}}function y(A,E){let S;switch(E){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(E)}.`)}let L=A.match(S);return L?L.length:0}function g(A){return A.replace(/\r\n?/g,` `)}h.exports={guessEndOfLine:f,convertEndOfLineToChars:d,countEndOfLineChars:y,normalizeEndOfLine:g}}}),If=W({"src/language-js/pragma.js"(l,h){"use strict";K();var{parseWithComments:f,strip:d,extract:y,print:g}=Sf(),{normalizeEndOfLine:A}=wf(),E=uo();function S(C){let O=E(C);O&&(C=C.slice(O.length+1));let R=y(C),{pragmas:N,comments:H}=f(R);return{shebang:O,text:C,pragmas:N,comments:H}}function L(C){let O=Object.keys(S(C).pragmas);return O.includes("prettier")||O.includes("format")}function I(C){let{shebang:O,text:R,pragmas:N,comments:H}=S(C),J=d(R),D=g({pragmas:Object.assign({format:""},N),comments:H.trimStart()});return(O?`${O} `:"")+A(D)+(J.startsWith(` `)?` `:` `)+J}h.exports={hasPragma:L,insertPragma:I}}}),dr=W({"src/utils/is-non-empty-array.js"(l,h){"use strict";K();function f(d){return Array.isArray(d)&&d.length>0}h.exports=f}}),So=W({"src/language-js/loc.js"(l,h){"use strict";K();var f=dr();function d(S){var L,I;let C=S.range?S.range[0]:S.start,O=(L=(I=S.declaration)===null||I===void 0?void 0:I.decorators)!==null&&L!==void 0?L:S.decorators;return f(O)?Math.min(d(O[0]),C):C}function y(S){return S.range?S.range[1]:S.end}function g(S,L){let I=d(S);return Number.isInteger(I)&&I===d(L)}function A(S,L){let I=y(S);return Number.isInteger(I)&&I===y(L)}function E(S,L){return g(S,L)&&A(S,L)}h.exports={locStart:d,locEnd:y,hasSameLocStart:g,hasSameLoc:E}}}),wo=W({"src/language-js/parse/utils/create-parser.js"(l,h){"use strict";K();var{hasPragma:f}=If(),{locStart:d,locEnd:y}=So();function g(A){return A=typeof A=="function"?{parse:A}:A,Object.assign({astFormat:"estree",hasPragma:f,locStart:d,locEnd:y},A)}h.exports=g}}),mr=W({"src/common/parser-create-error.js"(l,h){"use strict";K();function f(d,y){let g=new SyntaxError(d+" ("+y.start.line+":"+y.start.column+")");return g.loc=y,g}h.exports=f}}),Io=W({"src/language-js/parse/utils/create-babel-parse-error.js"(l,h){"use strict";K();var f=mr();function d(y){let{message:g,loc:A}=y;return f(g.replace(/ \(.*\)/,""),{start:{line:A?A.line:0,column:A?A.column+1:0}})}h.exports=d}}),Nf=W({"src/language-js/utils/is-ts-keyword-type.js"(l,h){"use strict";K();function f(d){let{type:y}=d;return y.startsWith("TS")&&y.endsWith("Keyword")}h.exports=f}}),kf=W({"src/language-js/utils/is-block-comment.js"(l,h){"use strict";K();var f=new Set(["Block","CommentBlock","MultiLine"]),d=y=>f.has(y==null?void 0:y.type);h.exports=d}}),Df=W({"src/language-js/utils/is-type-cast-comment.js"(l,h){"use strict";K();var f=kf();function d(y){return f(y)&&y.value[0]==="*"&&/@type\b/.test(y.value)}h.exports=d}}),Ff=W({"src/utils/get-last.js"(l,h){"use strict";K();var f=d=>d[d.length-1];h.exports=f}}),No=W({"src/language-js/parse/postprocess/visit-node.js"(l,h){"use strict";K();function f(d,y){if(Array.isArray(d)){for(let g=0;g<d.length;g++)d[g]=f(d[g],y);return d}if(d&&typeof d=="object"&&typeof d.type=="string"){let g=Object.keys(d);for(let A=0;A<g.length;A++)d[g[A]]=f(d[g[A]],y);return y(d)||d}return d}h.exports=f}}),ko=W({"src/language-js/parse/postprocess/throw-syntax-error.js"(l,h){"use strict";K();var f=mr();function d(y,g){let{start:A,end:E}=y.loc;throw f(g,{start:{line:A.line,column:A.column+1},end:{line:E.line,column:E.column+1}})}h.exports=d}}),Lf=W({"src/language-js/parse/postprocess/typescript.js"(l,h){"use strict";K();var f=dr(),d=No(),y=ko(),g={AbstractKeyword:126,SourceFile:308,PropertyDeclaration:169};function A(I){for(;I&&I.kind!==g.SourceFile;)I=I.parent;return I}function E(I){let{illegalDecorators:C}=I;if(!f(C))return;let[{expression:O}]=C,R=A(O),[N,H]=[O.pos,O.end].map(J=>{let{line:D,character:_}=R.getLineAndCharacterOfPosition(J);return{line:D+1,column:_}});y({loc:{start:N,end:H}},"Decorators are not valid here.")}function S(I,C){I.kind!==g.PropertyDeclaration||I.modifiers&&!I.modifiers.some(O=>O.kind===g.AbstractKeyword)||I.initializer&&C.value===null&&y(C,"Abstract property cannot have an initializer")}function L(I,C){let{esTreeNodeToTSNodeMap:O,tsNodeToESTreeNodeMap:R}=C.tsParseResult;d(I,N=>{let H=O.get(N);if(!H)return;let J=R.get(H);J===N&&(E(H),S(H,J))})}h.exports={throwErrorForInvalidNodes:L}}}),Of=W({"src/language-js/parse/postprocess/index.js"(l,h){"use strict";K();var{locStart:f,locEnd:d}=So(),y=Nf(),g=Df(),A=Ff(),E=No(),{throwErrorForInvalidNodes:S}=Lf(),L=ko();function I(N,H){if(H.parser==="typescript"&&/@|abstract/.test(H.originalText)&&S(N,H),H.parser!=="typescript"&&H.parser!=="flow"&&H.parser!=="acorn"&&H.parser!=="espree"&&H.parser!=="meriyah"){let D=new Set;N=E(N,_=>{_.leadingComments&&_.leadingComments.some(g)&&D.add(f(_))}),N=E(N,_=>{if(_.type==="ParenthesizedExpression"){let{expression:u}=_;if(u.type==="TypeCastExpression")return u.range=_.range,u;let X=f(_);if(!D.has(X))return u.extra=Object.assign(Object.assign({},u.extra),{},{parenthesized:!0}),u}})}return N=E(N,D=>{switch(D.type){case"ChainExpression":return C(D.expression);case"LogicalExpression":{if(O(D))return R(D);break}case"VariableDeclaration":{let _=A(D.declarations);_&&_.init&&J(D,_);break}case"TSParenthesizedType":return y(D.typeAnnotation)||D.typeAnnotation.type==="TSThisType"||(D.typeAnnotation.range=[f(D),d(D)]),D.typeAnnotation;case"TSTypeParameter":if(typeof D.name=="string"){let _=f(D);D.name={type:"Identifier",name:D.name,range:[_,_+D.name.length]}}break;case"ObjectExpression":if(H.parser==="typescript"){let _=D.properties.find(u=>u.type==="Property"&&u.value.type==="TSEmptyBodyFunctionExpression");_&&L(_.value,"Unexpected token.")}break;case"SequenceExpression":{let _=A(D.expressions);D.range=[f(D),Math.min(d(_),d(D))];break}case"TopicReference":H.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:_}=D;if(H.parser==="meriyah"&&_&&_.type==="Identifier"){let u=H.originalText.slice(f(_),d(_));(u.startsWith('"')||u.startsWith("'"))&&(D.exported=Object.assign(Object.assign({},D.exported),{},{type:"Literal",value:D.exported.name,raw:u}))}break}case"PropertyDefinition":if(H.parser==="meriyah"&&D.static&&!D.computed&&!D.key){let _="static",u=f(D);Object.assign(D,{static:!1,key:{type:"Identifier",name:_,range:[u,u+_.length]}})}break}}),N;function J(D,_){H.originalText[d(_)]!==";"&&(D.range=[f(D),d(_)])}}function C(N){switch(N.type){case"CallExpression":N.type="OptionalCallExpression",N.callee=C(N.callee);break;case"MemberExpression":N.type="OptionalMemberExpression",N.object=C(N.object);break;case"TSNonNullExpression":N.expression=C(N.expression);break}return N}function O(N){return N.type==="LogicalExpression"&&N.right.type==="LogicalExpression"&&N.operator===N.right.operator}function R(N){return O(N)?R({type:"LogicalExpression",operator:N.operator,left:R({type:"LogicalExpression",operator:N.operator,left:N.left,right:N.right.left,range:[f(N.left),d(N.right.left)]}),right:N.right.right,range:[f(N),d(N)]}):N}h.exports=I}}),Do=W({"node_modules/@babel/parser/lib/index.js"(l){"use strict";K(),Object.defineProperty(l,"__esModule",{value:!0});function h(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 f=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}},d=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 f(e,s+r,i+r)}var g={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},A=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)}}},E=(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,A(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:g.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:g.SourceTypeModuleError}},L={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"?L.UpdateExpression[String(e)]:L[r]},C={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' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer: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."},O={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."},R=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),N={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.'},H=["toMessage"],J=["message"];function D(t){let{toMessage:r}=t,e=h(t,H);return function s(i){let{loc:a,details:n}=i;return E(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 f("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=h(a,J),c=typeof n=="string"?()=>n:n;e[s]=D(Object.assign({code:g.SyntaxError,reasonCode:s,toMessage:c},r?{syntaxPlugin:r}:{},o))}return e}var u=Object.assign({},_(S),_(C),_(O),_`pipelineOperator`(N)),{defineProperty:X}=Object,ne=(t,r)=>X(t,r,{enumerable:!1,value:t[r]});function Q(t){return t.loc.start&&ne(t.loc.start,"index"),t.loc.end&&ne(t.loc.end,"index"),t}var we=t=>class extends t{parse(){let e=Q(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(Q)),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","classFea