UNPKG

react-carousel-query

Version:

A infinite carousel component made with react that handles the pagination for you.

20 lines (19 loc) 1.26 MB
(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.typescript=e()}})(function(){"use strict";var dt=(a,_)=>()=>(_||a((_={exports:{}}).exports,_),_.exports);var Mi=dt((dH,J7)=>{var Yh=function(a){return a&&a.Math==Math&&a};J7.exports=Yh(typeof globalThis=="object"&&globalThis)||Yh(typeof window=="object"&&window)||Yh(typeof self=="object"&&self)||Yh(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Ha=dt((mH,F7)=>{F7.exports=function(a){try{return!!a()}catch{return!0}}});var As=dt((hH,B7)=>{var tq=Ha();B7.exports=!tq(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var p6=dt((gH,q7)=>{var rq=Ha();q7.exports=!rq(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})});var Zh=dt((yH,U7)=>{var nq=p6(),Qh=Function.prototype.call;U7.exports=nq?Qh.bind(Qh):function(){return Qh.apply(Qh,arguments)}});var H7=dt(V7=>{"use strict";var z7={}.propertyIsEnumerable,W7=Object.getOwnPropertyDescriptor,iq=W7&&!z7.call({1:2},1);V7.f=iq?function(_){var v=W7(this,_);return!!v&&v.enumerable}:z7});var f6=dt((bH,G7)=>{G7.exports=function(a,_){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:_}}});var Ps=dt((TH,X7)=>{var $7=p6(),K7=Function.prototype,d6=K7.call,aq=$7&&K7.bind.bind(d6,d6);X7.exports=$7?aq:function(a){return function(){return d6.apply(a,arguments)}}});var Z7=dt((SH,Q7)=>{var Y7=Ps(),sq=Y7({}.toString),oq=Y7("".slice);Q7.exports=function(a){return oq(sq(a),8,-1)}});var tw=dt((xH,ew)=>{var _q=Ps(),cq=Ha(),lq=Z7(),m6=Object,uq=_q("".split);ew.exports=cq(function(){return!m6("z").propertyIsEnumerable(0)})?function(a){return lq(a)=="String"?uq(a,""):m6(a)}:m6});var h6=dt((EH,rw)=>{rw.exports=function(a){return a==null}});var g6=dt((wH,nw)=>{var pq=h6(),fq=TypeError;nw.exports=function(a){if(pq(a))throw fq("Can't call method on "+a);return a}});var e1=dt((CH,iw)=>{var dq=tw(),mq=g6();iw.exports=function(a){return dq(mq(a))}});var v6=dt((AH,aw)=>{var y6=typeof document=="object"&&document.all,hq=typeof y6>"u"&&y6!==void 0;aw.exports={all:y6,IS_HTMLDDA:hq}});var aa=dt((PH,ow)=>{var sw=v6(),gq=sw.all;ow.exports=sw.IS_HTMLDDA?function(a){return typeof a=="function"||a===gq}:function(a){return typeof a=="function"}});var Jc=dt((DH,lw)=>{var _w=aa(),cw=v6(),yq=cw.all;lw.exports=cw.IS_HTMLDDA?function(a){return typeof a=="object"?a!==null:_w(a)||a===yq}:function(a){return typeof a=="object"?a!==null:_w(a)}});var t1=dt((kH,uw)=>{var b6=Mi(),vq=aa(),bq=function(a){return vq(a)?a:void 0};uw.exports=function(a,_){return arguments.length<2?bq(b6[a]):b6[a]&&b6[a][_]}});var fw=dt((IH,pw)=>{var Tq=Ps();pw.exports=Tq({}.isPrototypeOf)});var mw=dt((NH,dw)=>{var Sq=t1();dw.exports=Sq("navigator","userAgent")||""});var Sw=dt((OH,Tw)=>{var bw=Mi(),T6=mw(),hw=bw.process,gw=bw.Deno,yw=hw&&hw.versions||gw&&gw.version,vw=yw&&yw.v8,sa,r1;vw&&(sa=vw.split("."),r1=sa[0]>0&&sa[0]<4?1:+(sa[0]+sa[1]));!r1&&T6&&(sa=T6.match(/Edge\/(\d+)/),(!sa||sa[1]>=74)&&(sa=T6.match(/Chrome\/(\d+)/),sa&&(r1=+sa[1])));Tw.exports=r1});var S6=dt((MH,Ew)=>{var xw=Sw(),xq=Ha();Ew.exports=!!Object.getOwnPropertySymbols&&!xq(function(){var a=Symbol();return!String(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&xw&&xw<41})});var x6=dt((LH,ww)=>{var Eq=S6();ww.exports=Eq&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var E6=dt((RH,Cw)=>{var wq=t1(),Cq=aa(),Aq=fw(),Pq=x6(),Dq=Object;Cw.exports=Pq?function(a){return typeof a=="symbol"}:function(a){var _=wq("Symbol");return Cq(_)&&Aq(_.prototype,Dq(a))}});var Pw=dt((jH,Aw)=>{var kq=String;Aw.exports=function(a){try{return kq(a)}catch{return"Object"}}});var kw=dt((JH,Dw)=>{var Iq=aa(),Nq=Pw(),Oq=TypeError;Dw.exports=function(a){if(Iq(a))return a;throw Oq(Nq(a)+" is not a function")}});var Nw=dt((FH,Iw)=>{var Mq=kw(),Lq=h6();Iw.exports=function(a,_){var v=a[_];return Lq(v)?void 0:Mq(v)}});var Mw=dt((BH,Ow)=>{var w6=Zh(),C6=aa(),A6=Jc(),Rq=TypeError;Ow.exports=function(a,_){var v,h;if(_==="string"&&C6(v=a.toString)&&!A6(h=w6(v,a))||C6(v=a.valueOf)&&!A6(h=w6(v,a))||_!=="string"&&C6(v=a.toString)&&!A6(h=w6(v,a)))return h;throw Rq("Can't convert object to primitive value")}});var Rw=dt((qH,Lw)=>{Lw.exports=!1});var n1=dt((UH,Jw)=>{var jw=Mi(),jq=Object.defineProperty;Jw.exports=function(a,_){try{jq(jw,a,{value:_,configurable:!0,writable:!0})}catch{jw[a]=_}return _}});var i1=dt((zH,Bw)=>{var Jq=Mi(),Fq=n1(),Fw="__core-js_shared__",Bq=Jq[Fw]||Fq(Fw,{});Bw.exports=Bq});var P6=dt((WH,Uw)=>{var qq=Rw(),qw=i1();(Uw.exports=function(a,_){return qw[a]||(qw[a]=_!==void 0?_:{})})("versions",[]).push({version:"3.26.1",mode:qq?"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 Ww=dt((VH,zw)=>{var Uq=g6(),zq=Object;zw.exports=function(a){return zq(Uq(a))}});var oo=dt((HH,Vw)=>{var Wq=Ps(),Vq=Ww(),Hq=Wq({}.hasOwnProperty);Vw.exports=Object.hasOwn||function(_,v){return Hq(Vq(_),v)}});var D6=dt((GH,Hw)=>{var Gq=Ps(),$q=0,Kq=Math.random(),Xq=Gq(1 .toString);Hw.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+Xq(++$q+Kq,36)}});var Qw=dt(($H,Yw)=>{var Yq=Mi(),Qq=P6(),Gw=oo(),Zq=D6(),$w=S6(),Xw=x6(),Fc=Qq("wks"),p_=Yq.Symbol,Kw=p_&&p_.for,eU=Xw?p_:p_&&p_.withoutSetter||Zq;Yw.exports=function(a){if(!Gw(Fc,a)||!($w||typeof Fc[a]=="string")){var _="Symbol."+a;$w&&Gw(p_,a)?Fc[a]=p_[a]:Xw&&Kw?Fc[a]=Kw(_):Fc[a]=eU(_)}return Fc[a]}});var rC=dt((KH,tC)=>{var tU=Zh(),Zw=Jc(),eC=E6(),rU=Nw(),nU=Mw(),iU=Qw(),aU=TypeError,sU=iU("toPrimitive");tC.exports=function(a,_){if(!Zw(a)||eC(a))return a;var v=rU(a,sU),h;if(v){if(_===void 0&&(_="default"),h=tU(v,a,_),!Zw(h)||eC(h))return h;throw aU("Can't convert object to primitive value")}return _===void 0&&(_="number"),nU(a,_)}});var k6=dt((XH,nC)=>{var oU=rC(),_U=E6();nC.exports=function(a){var _=oU(a,"string");return _U(_)?_:_+""}});var sC=dt((YH,aC)=>{var cU=Mi(),iC=Jc(),I6=cU.document,lU=iC(I6)&&iC(I6.createElement);aC.exports=function(a){return lU?I6.createElement(a):{}}});var N6=dt((QH,oC)=>{var uU=As(),pU=Ha(),fU=sC();oC.exports=!uU&&!pU(function(){return Object.defineProperty(fU("div"),"a",{get:function(){return 7}}).a!=7})});var O6=dt(cC=>{var dU=As(),mU=Zh(),hU=H7(),gU=f6(),yU=e1(),vU=k6(),bU=oo(),TU=N6(),_C=Object.getOwnPropertyDescriptor;cC.f=dU?_C:function(_,v){if(_=yU(_),v=vU(v),TU)try{return _C(_,v)}catch{}if(bU(_,v))return gU(!mU(hU.f,_,v),_[v])}});var uC=dt((eG,lC)=>{var SU=As(),xU=Ha();lC.exports=SU&&xU(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var a1=dt((tG,pC)=>{var EU=Jc(),wU=String,CU=TypeError;pC.exports=function(a){if(EU(a))return a;throw CU(wU(a)+" is not an object")}});var dp=dt(dC=>{var AU=As(),PU=N6(),DU=uC(),s1=a1(),fC=k6(),kU=TypeError,M6=Object.defineProperty,IU=Object.getOwnPropertyDescriptor,L6="enumerable",R6="configurable",j6="writable";dC.f=AU?DU?function(_,v,h){if(s1(_),v=fC(v),s1(h),typeof _=="function"&&v==="prototype"&&"value"in h&&j6 in h&&!h[j6]){var D=IU(_,v);D&&D[j6]&&(_[v]=h.value,h={configurable:R6 in h?h[R6]:D[R6],enumerable:L6 in h?h[L6]:D[L6],writable:!1})}return M6(_,v,h)}:M6:function(_,v,h){if(s1(_),v=fC(v),s1(h),PU)try{return M6(_,v,h)}catch{}if("get"in h||"set"in h)throw kU("Accessors not supported");return"value"in h&&(_[v]=h.value),_}});var J6=dt((nG,mC)=>{var NU=As(),OU=dp(),MU=f6();mC.exports=NU?function(a,_,v){return OU.f(a,_,MU(1,v))}:function(a,_,v){return a[_]=v,a}});var yC=dt((iG,gC)=>{var F6=As(),LU=oo(),hC=Function.prototype,RU=F6&&Object.getOwnPropertyDescriptor,B6=LU(hC,"name"),jU=B6&&function(){}.name==="something",JU=B6&&(!F6||F6&&RU(hC,"name").configurable);gC.exports={EXISTS:B6,PROPER:jU,CONFIGURABLE:JU}});var bC=dt((aG,vC)=>{var FU=Ps(),BU=aa(),q6=i1(),qU=FU(Function.toString);BU(q6.inspectSource)||(q6.inspectSource=function(a){return qU(a)});vC.exports=q6.inspectSource});var xC=dt((sG,SC)=>{var UU=Mi(),zU=aa(),TC=UU.WeakMap;SC.exports=zU(TC)&&/native code/.test(String(TC))});var CC=dt((oG,wC)=>{var WU=P6(),VU=D6(),EC=WU("keys");wC.exports=function(a){return EC[a]||(EC[a]=VU(a))}});var U6=dt((_G,AC)=>{AC.exports={}});var IC=dt((cG,kC)=>{var HU=xC(),DC=Mi(),GU=Jc(),$U=J6(),z6=oo(),W6=i1(),KU=CC(),XU=U6(),PC="Object already initialized",V6=DC.TypeError,YU=DC.WeakMap,o1,mp,_1,QU=function(a){return _1(a)?mp(a):o1(a,{})},ZU=function(a){return function(_){var v;if(!GU(_)||(v=mp(_)).type!==a)throw V6("Incompatible receiver, "+a+" required");return v}};HU||W6.state?(oa=W6.state||(W6.state=new YU),oa.get=oa.get,oa.has=oa.has,oa.set=oa.set,o1=function(a,_){if(oa.has(a))throw V6(PC);return _.facade=a,oa.set(a,_),_},mp=function(a){return oa.get(a)||{}},_1=function(a){return oa.has(a)}):(f_=KU("state"),XU[f_]=!0,o1=function(a,_){if(z6(a,f_))throw V6(PC);return _.facade=a,$U(a,f_,_),_},mp=function(a){return z6(a,f_)?a[f_]:{}},_1=function(a){return z6(a,f_)});var oa,f_;kC.exports={set:o1,get:mp,has:_1,enforce:QU,getterFor:ZU}});var G6=dt((lG,OC)=>{var ez=Ha(),tz=aa(),c1=oo(),H6=As(),rz=yC().CONFIGURABLE,nz=bC(),NC=IC(),iz=NC.enforce,az=NC.get,l1=Object.defineProperty,sz=H6&&!ez(function(){return l1(function(){},"length",{value:8}).length!==8}),oz=String(String).split("String"),_z=OC.exports=function(a,_,v){String(_).slice(0,7)==="Symbol("&&(_="["+String(_).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),v&&v.getter&&(_="get "+_),v&&v.setter&&(_="set "+_),(!c1(a,"name")||rz&&a.name!==_)&&(H6?l1(a,"name",{value:_,configurable:!0}):a.name=_),sz&&v&&c1(v,"arity")&&a.length!==v.arity&&l1(a,"length",{value:v.arity});try{v&&c1(v,"constructor")&&v.constructor?H6&&l1(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var h=iz(a);return c1(h,"source")||(h.source=oz.join(typeof _=="string"?_:"")),a};Function.prototype.toString=_z(function(){return tz(this)&&az(this).source||nz(this)},"toString")});var LC=dt((uG,MC)=>{var cz=aa(),lz=dp(),uz=G6(),pz=n1();MC.exports=function(a,_,v,h){h||(h={});var D=h.enumerable,P=h.name!==void 0?h.name:_;if(cz(v)&&uz(v,P,h),h.global)D?a[_]=v:pz(_,v);else{try{h.unsafe?a[_]&&(D=!0):delete a[_]}catch{}D?a[_]=v:lz.f(a,_,{value:v,enumerable:!1,configurable:!h.nonConfigurable,writable:!h.nonWritable})}return a}});var jC=dt((pG,RC)=>{var fz=Math.ceil,dz=Math.floor;RC.exports=Math.trunc||function(_){var v=+_;return(v>0?dz:fz)(v)}});var $6=dt((fG,JC)=>{var mz=jC();JC.exports=function(a){var _=+a;return _!==_||_===0?0:mz(_)}});var BC=dt((dG,FC)=>{var hz=$6(),gz=Math.max,yz=Math.min;FC.exports=function(a,_){var v=hz(a);return v<0?gz(v+_,0):yz(v,_)}});var UC=dt((mG,qC)=>{var vz=$6(),bz=Math.min;qC.exports=function(a){return a>0?bz(vz(a),9007199254740991):0}});var WC=dt((hG,zC)=>{var Tz=UC();zC.exports=function(a){return Tz(a.length)}});var GC=dt((gG,HC)=>{var Sz=e1(),xz=BC(),Ez=WC(),VC=function(a){return function(_,v,h){var D=Sz(_),P=Ez(D),y=xz(h,P),m;if(a&&v!=v){for(;P>y;)if(m=D[y++],m!=m)return!0}else for(;P>y;y++)if((a||y in D)&&D[y]===v)return a||y||0;return!a&&-1}};HC.exports={includes:VC(!0),indexOf:VC(!1)}});var XC=dt((yG,KC)=>{var wz=Ps(),K6=oo(),Cz=e1(),Az=GC().indexOf,Pz=U6(),$C=wz([].push);KC.exports=function(a,_){var v=Cz(a),h=0,D=[],P;for(P in v)!K6(Pz,P)&&K6(v,P)&&$C(D,P);for(;_.length>h;)K6(v,P=_[h++])&&(~Az(D,P)||$C(D,P));return D}});var QC=dt((vG,YC)=>{YC.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var e9=dt(ZC=>{var Dz=XC(),kz=QC(),Iz=kz.concat("length","prototype");ZC.f=Object.getOwnPropertyNames||function(_){return Dz(_,Iz)}});var r9=dt(t9=>{t9.f=Object.getOwnPropertySymbols});var i9=dt((SG,n9)=>{var Nz=t1(),Oz=Ps(),Mz=e9(),Lz=r9(),Rz=a1(),jz=Oz([].concat);n9.exports=Nz("Reflect","ownKeys")||function(_){var v=Mz.f(Rz(_)),h=Lz.f;return h?jz(v,h(_)):v}});var o9=dt((xG,s9)=>{var a9=oo(),Jz=i9(),Fz=O6(),Bz=dp();s9.exports=function(a,_,v){for(var h=Jz(_),D=Bz.f,P=Fz.f,y=0;y<h.length;y++){var m=h[y];!a9(a,m)&&!(v&&a9(v,m))&&D(a,m,P(_,m))}}});var c9=dt((EG,_9)=>{var qz=Ha(),Uz=aa(),zz=/#|\.prototype\./,hp=function(a,_){var v=Vz[Wz(a)];return v==Gz?!0:v==Hz?!1:Uz(_)?qz(_):!!_},Wz=hp.normalize=function(a){return String(a).replace(zz,".").toLowerCase()},Vz=hp.data={},Hz=hp.NATIVE="N",Gz=hp.POLYFILL="P";_9.exports=hp});var u9=dt((wG,l9)=>{var X6=Mi(),$z=O6().f,Kz=J6(),Xz=LC(),Yz=n1(),Qz=o9(),Zz=c9();l9.exports=function(a,_){var v=a.target,h=a.global,D=a.stat,P,y,m,C,d,E;if(h?y=X6:D?y=X6[v]||Yz(v,{}):y=(X6[v]||{}).prototype,y)for(m in _){if(d=_[m],a.dontCallGetSet?(E=$z(y,m),C=E&&E.value):C=y[m],P=Zz(h?m:v+(D?".":"#")+m,a.forced),!P&&C!==void 0){if(typeof d==typeof C)continue;Qz(d,C)}(a.sham||C&&C.sham)&&Kz(d,"sham",!0),Xz(y,m,d,a)}}});var p9=dt(()=>{var eW=u9(),Y6=Mi();eW({global:!0,forced:Y6.globalThis!==Y6},{globalThis:Y6})});var f9=dt(()=>{p9()});var h9=dt((kG,m9)=>{var d9=G6(),tW=dp();m9.exports=function(a,_,v){return v.get&&d9(v.get,_,{getter:!0}),v.set&&d9(v.set,_,{setter:!0}),tW.f(a,_,v)}});var y9=dt((IG,g9)=>{"use strict";var rW=a1();g9.exports=function(){var a=rW(this),_="";return a.hasIndices&&(_+="d"),a.global&&(_+="g"),a.ignoreCase&&(_+="i"),a.multiline&&(_+="m"),a.dotAll&&(_+="s"),a.unicode&&(_+="u"),a.unicodeSets&&(_+="v"),a.sticky&&(_+="y"),_}});var T9=dt(()=>{var nW=Mi(),iW=As(),aW=h9(),sW=y9(),oW=Ha(),v9=nW.RegExp,b9=v9.prototype,_W=iW&&oW(function(){var a=!0;try{v9(".","d")}catch{a=!1}var _={},v="",h=a?"dgimsy":"gimsy",D=function(C,d){Object.defineProperty(_,C,{get:function(){return v+=d,!0}})},P={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};a&&(P.hasIndices="d");for(var y in P)D(y,P[y]);var m=Object.getOwnPropertyDescriptor(b9,"flags").get.call(_);return m!==h||v!==h});_W&&aW(b9,"flags",{configurable:!0,get:sW})});var uH=dt((MG,v5)=>{f9();T9();var iT=Object.defineProperty,cW=Object.getOwnPropertyDescriptor,aT=Object.getOwnPropertyNames,lW=Object.prototype.hasOwnProperty,yp=(a,_)=>function(){return a&&(_=(0,a[aT(a)[0]])(a=0)),_},Oe=(a,_)=>function(){return _||(0,a[aT(a)[0]])((_={exports:{}}).exports,_),_.exports},m1=(a,_)=>{for(var v in _)iT(a,v,{get:_[v],enumerable:!0})},uW=(a,_,v,h)=>{if(_&&typeof _=="object"||typeof _=="function")for(let D of aT(_))!lW.call(a,D)&&D!==v&&iT(a,D,{get:()=>_[D],enumerable:!(h=cW(_,D))||h.enumerable});return a},Li=a=>uW(iT({},"__esModule",{value:!0}),a),cn,De=yp({"<define:process>"(){cn={env:{},argv:[]}}}),w9=Oe({"src/common/parser-create-error.js"(a,_){"use strict";De();function v(h,D){let P=new SyntaxError(h+" ("+D.start.line+":"+D.start.column+")");return P.loc=D,P}_.exports=v}}),pW=Oe({"src/utils/try-combinations.js"(a,_){"use strict";De();function v(){let h;for(var D=arguments.length,P=new Array(D),y=0;y<D;y++)P[y]=arguments[y];for(let[m,C]of P.entries())try{return{result:C()}}catch(d){m===0&&(h=d)}return{error:h}}_.exports=v}}),C9={};m1(C9,{EOL:()=>eT,arch:()=>fW,cpus:()=>O9,default:()=>J9,endianness:()=>A9,freemem:()=>I9,getNetworkInterfaces:()=>j9,hostname:()=>P9,loadavg:()=>D9,networkInterfaces:()=>R9,platform:()=>dW,release:()=>L9,tmpDir:()=>Q6,tmpdir:()=>Z6,totalmem:()=>N9,type:()=>M9,uptime:()=>k9});function A9(){if(typeof u1>"u"){var a=new ArrayBuffer(2),_=new Uint8Array(a),v=new Uint16Array(a);if(_[0]=1,_[1]=2,v[0]===258)u1="BE";else if(v[0]===513)u1="LE";else throw new Error("unable to figure out endianess")}return u1}function P9(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function D9(){return[]}function k9(){return 0}function I9(){return Number.MAX_VALUE}function N9(){return Number.MAX_VALUE}function O9(){return[]}function M9(){return"Browser"}function L9(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function R9(){}function j9(){}function fW(){return"javascript"}function dW(){return"browser"}function Q6(){return"/tmp"}var u1,Z6,eT,J9,mW=yp({"node-modules-polyfills:os"(){De(),Z6=Q6,eT=` `,J9={EOL:eT,tmpdir:Z6,tmpDir:Q6,networkInterfaces:R9,getNetworkInterfaces:j9,release:L9,type:M9,cpus:O9,totalmem:N9,freemem:I9,uptime:k9,loadavg:D9,hostname:P9,endianness:A9}}}),hW=Oe({"node-modules-polyfills-commonjs:os"(a,_){De();var v=(mW(),Li(C9));if(v&&v.default){_.exports=v.default;for(let h in v)_.exports[h]=v[h]}else v&&(_.exports=v)}}),gW=Oe({"node_modules/detect-newline/index.js"(a,_){"use strict";De();var v=h=>{if(typeof h!="string")throw new TypeError("Expected a string");let D=h.match(/(?:\r?\n)/g)||[];if(D.length===0)return;let P=D.filter(m=>m===`\r `).length,y=D.length-P;return P>y?`\r `:` `};_.exports=v,_.exports.graceful=h=>typeof h=="string"&&v(h)||` `}}),yW=Oe({"node_modules/jest-docblock/build/index.js"(a){"use strict";De(),Object.defineProperty(a,"__esModule",{value:!0}),a.extract=M,a.parse=W,a.parseWithComments=K,a.print=ce,a.strip=q;function _(){let me=hW();return _=function(){return me},me}function v(){let me=h(gW());return v=function(){return me},me}function h(me){return me&&me.__esModule?me:{default:me}}var D=/\*\/$/,P=/^\/\*\*?/,y=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,m=/(^|\s+)\/\/([^\r\n]*)/g,C=/^(\r?\n)+/,d=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,E=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,I=/(\r?\n|^) *\* ?/g,c=[];function M(me){let Ae=me.match(y);return Ae?Ae[0].trimLeft():""}function q(me){let Ae=me.match(y);return Ae&&Ae[0]?me.substring(Ae[0].length):me}function W(me){return K(me).pragmas}function K(me){let Ae=(0,v().default)(me)||_().EOL;me=me.replace(P,"").replace(D,"").replace(I,"$1");let te="";for(;te!==me;)te=me,me=me.replace(d,`${Ae}$1 $2${Ae}`);me=me.replace(C,"").trimRight();let he=Object.create(null),Pe=me.replace(E,"").replace(C,"").trimRight(),R;for(;R=E.exec(me);){let pe=R[2].replace(m,"");typeof he[R[1]]=="string"||Array.isArray(he[R[1]])?he[R[1]]=c.concat(he[R[1]],pe):he[R[1]]=pe}return{comments:Pe,pragmas:he}}function ce(me){let{comments:Ae="",pragmas:te={}}=me,he=(0,v().default)(Ae)||_().EOL,Pe="/**",R=" *",pe=" */",ke=Object.keys(te),Je=ke.map(ee=>Ie(ee,te[ee])).reduce((ee,je)=>ee.concat(je),[]).map(ee=>`${R} ${ee}${he}`).join("");if(!Ae){if(ke.length===0)return"";if(ke.length===1&&!Array.isArray(te[ke[0]])){let ee=te[ke[0]];return`${Pe} ${Ie(ke[0],ee)[0]}${pe}`}}let Xe=Ae.split(he).map(ee=>`${R} ${ee}`).join(he)+he;return Pe+he+(Ae?Xe:"")+(Ae&&ke.length?R+he:"")+Je+pe}function Ie(me,Ae){return c.concat(Ae).map(te=>`@${me} ${te}`.trim())}}}),vW=Oe({"src/common/end-of-line.js"(a,_){"use strict";De();function v(y){let m=y.indexOf("\r");return m>=0?y.charAt(m+1)===` `?"crlf":"cr":"lf"}function h(y){switch(y){case"cr":return"\r";case"crlf":return`\r `;default:return` `}}function D(y,m){let C;switch(m){case` `:C=/\n/g;break;case"\r":C=/\r/g;break;case`\r `:C=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(m)}.`)}let d=y.match(C);return d?d.length:0}function P(y){return y.replace(/\r\n?/g,` `)}_.exports={guessEndOfLine:v,convertEndOfLineToChars:h,countEndOfLineChars:D,normalizeEndOfLine:P}}}),bW=Oe({"src/language-js/utils/get-shebang.js"(a,_){"use strict";De();function v(h){if(!h.startsWith("#!"))return"";let D=h.indexOf(` `);return D===-1?h:h.slice(0,D)}_.exports=v}}),TW=Oe({"src/language-js/pragma.js"(a,_){"use strict";De();var{parseWithComments:v,strip:h,extract:D,print:P}=yW(),{normalizeEndOfLine:y}=vW(),m=bW();function C(I){let c=m(I);c&&(I=I.slice(c.length+1));let M=D(I),{pragmas:q,comments:W}=v(M);return{shebang:c,text:I,pragmas:q,comments:W}}function d(I){let c=Object.keys(C(I).pragmas);return c.includes("prettier")||c.includes("format")}function E(I){let{shebang:c,text:M,pragmas:q,comments:W}=C(I),K=h(M),ce=P({pragmas:Object.assign({format:""},q),comments:W.trimStart()});return(c?`${c} `:"")+y(ce)+(K.startsWith(` `)?` `:` `)+K}_.exports={hasPragma:d,insertPragma:E}}}),F9=Oe({"src/utils/is-non-empty-array.js"(a,_){"use strict";De();function v(h){return Array.isArray(h)&&h.length>0}_.exports=v}}),B9=Oe({"src/language-js/loc.js"(a,_){"use strict";De();var v=F9();function h(C){var d,E;let I=C.range?C.range[0]:C.start,c=(d=(E=C.declaration)===null||E===void 0?void 0:E.decorators)!==null&&d!==void 0?d:C.decorators;return v(c)?Math.min(h(c[0]),I):I}function D(C){return C.range?C.range[1]:C.end}function P(C,d){let E=h(C);return Number.isInteger(E)&&E===h(d)}function y(C,d){let E=D(C);return Number.isInteger(E)&&E===D(d)}function m(C,d){return P(C,d)&&y(C,d)}_.exports={locStart:h,locEnd:D,hasSameLocStart:P,hasSameLoc:m}}}),SW=Oe({"src/language-js/parse/utils/create-parser.js"(a,_){"use strict";De();var{hasPragma:v}=TW(),{locStart:h,locEnd:D}=B9();function P(y){return y=typeof y=="function"?{parse:y}:y,Object.assign({astFormat:"estree",hasPragma:v,locStart:h,locEnd:D},y)}_.exports=P}}),xW=Oe({"src/language-js/parse/utils/replace-hashbang.js"(a,_){"use strict";De();function v(h){return h.charAt(0)==="#"&&h.charAt(1)==="!"?"//"+h.slice(2):h}_.exports=v}}),EW=Oe({"src/language-js/utils/is-ts-keyword-type.js"(a,_){"use strict";De();function v(h){let{type:D}=h;return D.startsWith("TS")&&D.endsWith("Keyword")}_.exports=v}}),wW=Oe({"src/language-js/utils/is-block-comment.js"(a,_){"use strict";De();var v=new Set(["Block","CommentBlock","MultiLine"]),h=D=>v.has(D==null?void 0:D.type);_.exports=h}}),CW=Oe({"src/language-js/utils/is-type-cast-comment.js"(a,_){"use strict";De();var v=wW();function h(D){return v(D)&&D.value[0]==="*"&&/@(?:type|satisfies)\b/.test(D.value)}_.exports=h}}),AW=Oe({"src/utils/get-last.js"(a,_){"use strict";De();var v=h=>h[h.length-1];_.exports=v}}),q9=Oe({"src/language-js/parse/postprocess/visit-node.js"(a,_){"use strict";De();function v(h,D){if(Array.isArray(h)){for(let P=0;P<h.length;P++)h[P]=v(h[P],D);return h}if(h&&typeof h=="object"&&typeof h.type=="string"){let P=Object.keys(h);for(let y=0;y<P.length;y++)h[P[y]]=v(h[P[y]],D);return D(h)||h}return h}_.exports=v}}),U9=Oe({"src/language-js/parse/postprocess/throw-syntax-error.js"(a,_){"use strict";De();var v=w9();function h(D,P){let{start:y,end:m}=D.loc;throw v(P,{start:{line:y.line,column:y.column+1},end:{line:m.line,column:m.column+1}})}_.exports=h}}),PW=Oe({"src/language-js/parse/postprocess/index.js"(a,_){"use strict";De();var{locStart:v,locEnd:h}=B9(),D=EW(),P=CW(),y=AW(),m=q9(),C=U9();function d(M,q){if(q.parser!=="typescript"&&q.parser!=="flow"&&q.parser!=="acorn"&&q.parser!=="espree"&&q.parser!=="meriyah"){let K=new Set;M=m(M,ce=>{ce.leadingComments&&ce.leadingComments.some(P)&&K.add(v(ce))}),M=m(M,ce=>{if(ce.type==="ParenthesizedExpression"){let{expression:Ie}=ce;if(Ie.type==="TypeCastExpression")return Ie.range=ce.range,Ie;let me=v(ce);if(!K.has(me))return Ie.extra=Object.assign(Object.assign({},Ie.extra),{},{parenthesized:!0}),Ie}})}return M=m(M,K=>{switch(K.type){case"ChainExpression":return E(K.expression);case"LogicalExpression":{if(I(K))return c(K);break}case"VariableDeclaration":{let ce=y(K.declarations);ce&&ce.init&&W(K,ce);break}case"TSParenthesizedType":return D(K.typeAnnotation)||K.typeAnnotation.type==="TSThisType"||(K.typeAnnotation.range=[v(K),h(K)]),K.typeAnnotation;case"TSTypeParameter":if(typeof K.name=="string"){let ce=v(K);K.name={type:"Identifier",name:K.name,range:[ce,ce+K.name.length]}}break;case"ObjectExpression":if(q.parser==="typescript"){let ce=K.properties.find(Ie=>Ie.type==="Property"&&Ie.value.type==="TSEmptyBodyFunctionExpression");ce&&C(ce.value,"Unexpected token.")}break;case"SequenceExpression":{let ce=y(K.expressions);K.range=[v(K),Math.min(h(ce),h(K))];break}case"TopicReference":q.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:ce}=K;if(q.parser==="meriyah"&&ce&&ce.type==="Identifier"){let Ie=q.originalText.slice(v(ce),h(ce));(Ie.startsWith('"')||Ie.startsWith("'"))&&(K.exported=Object.assign(Object.assign({},K.exported),{},{type:"Literal",value:K.exported.name,raw:Ie}))}break}case"PropertyDefinition":if(q.parser==="meriyah"&&K.static&&!K.computed&&!K.key){let ce="static",Ie=v(K);Object.assign(K,{static:!1,key:{type:"Identifier",name:ce,range:[Ie,Ie+ce.length]}})}break}}),M;function W(K,ce){q.originalText[h(ce)]!==";"&&(K.range=[v(K),h(ce)])}}function E(M){switch(M.type){case"CallExpression":M.type="OptionalCallExpression",M.callee=E(M.callee);break;case"MemberExpression":M.type="OptionalMemberExpression",M.object=E(M.object);break;case"TSNonNullExpression":M.expression=E(M.expression);break}return M}function I(M){return M.type==="LogicalExpression"&&M.right.type==="LogicalExpression"&&M.operator===M.right.operator}function c(M){return I(M)?c({type:"LogicalExpression",operator:M.operator,left:c({type:"LogicalExpression",operator:M.operator,left:M.left,right:M.right.left,range:[v(M.left),h(M.right.left)]}),right:M.right.right,range:[v(M),h(M)]}):M}_.exports=d}}),vr=Oe({"node_modules/typescript/lib/typescript.js"(a,_){De();var v=Object.defineProperty,h=Object.getOwnPropertyNames,D=(e,t)=>function(){return e&&(t=(0,e[h(e)[0]])(e=0)),t},P=(e,t)=>function(){return t||(0,e[h(e)[0]])((t={exports:{}}).exports,t),t.exports},y=(e,t)=>{for(var r in t)v(e,r,{get:t[r],enumerable:!0})},m,C,d,E=D({"src/compiler/corePublic.ts"(){"use strict";m="5.0",C="5.0.2",d=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(d||{})}});function I(e){return e?e.length:0}function c(e,t){if(e)for(let r=0;r<e.length;r++){let s=t(e[r],r);if(s)return s}}function M(e,t){if(e)for(let r=e.length-1;r>=0;r--){let s=t(e[r],r);if(s)return s}}function q(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let s=t(e[r],r);if(s!==void 0)return s}}function W(e,t){for(let r of e){let s=t(r);if(s!==void 0)return s}}function K(e,t,r){let s=r;if(e){let f=0;for(let x of e)s=t(s,x,f),f++}return s}function ce(e,t,r){let s=[];Y.assertEqual(e.length,t.length);for(let f=0;f<e.length;f++)s.push(r(e[f],t[f],f));return s}function Ie(e,t){if(e.length<=1)return e;let r=[];for(let s=0,f=e.length;s<f;s++)s&&r.push(t),r.push(e[s]);return r}function me(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function Ae(e,t,r){if(e!==void 0)for(let s=r!=null?r:0;s<e.length;s++){let f=e[s];if(t(f,s))return f}}function te(e,t,r){if(e!==void 0)for(let s=r!=null?r:e.length-1;s>=0;s--){let f=e[s];if(t(f,s))return f}}function he(e,t,r){if(e===void 0)return-1;for(let s=r!=null?r:0;s<e.length;s++)if(t(e[s],s))return s;return-1}function Pe(e,t,r){if(e===void 0)return-1;for(let s=r!=null?r:e.length-1;s>=0;s--)if(t(e[s],s))return s;return-1}function R(e,t){for(let r=0;r<e.length;r++){let s=t(e[r],r);if(s)return s}return Y.fail()}function pe(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fa;if(e){for(let s of e)if(r(s,t))return!0}return!1}function ke(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fa;return e.length===t.length&&e.every((s,f)=>r(s,t[f]))}function Je(e,t,r){for(let s=r||0;s<e.length;s++)if(pe(t,e.charCodeAt(s)))return s;return-1}function Xe(e,t){let r=0;if(e)for(let s=0;s<e.length;s++){let f=e[s];t(f,s)&&r++}return r}function ee(e,t){if(e){let r=e.length,s=0;for(;s<r&&t(e[s]);)s++;if(s<r){let f=e.slice(0,s);for(s++;s<r;){let x=e[s];t(x)&&f.push(x),s++}return f}}return e}function je(e,t){let r=0;for(let s=0;s<e.length;s++)t(e[s],s,e)&&(e[r]=e[s],r++);e.length=r}function nt(e){e.length=0}function Ze(e,t){let r;if(e){r=[];for(let s=0;s<e.length;s++)r.push(t(e[s],s))}return r}function*st(e,t){for(let r of e)yield t(r)}function tt(e,t){if(e)for(let r=0;r<e.length;r++){let s=e[r],f=t(s,r);if(s!==f){let x=e.slice(0,r);for(x.push(f),r++;r<e.length;r++)x.push(t(e[r],r));return x}}return e}function ct(e){let t=[];for(let r of e)r&&(ir(r)?jr(t,r):t.push(r));return t}function ne(e,t){let r;if(e)for(let s=0;s<e.length;s++){let f=t(e[s],s);f&&(ir(f)?r=jr(r,f):r=tr(r,f))}return r||Bt}function ge(e,t){let r=[];if(e)for(let s=0;s<e.length;s++){let f=t(e[s],s);f&&(ir(f)?jr(r,f):r.push(f))}return r}function*Fe(e,t){for(let r of e){let s=t(r);s&&(yield*s)}}function at(e,t){let r;if(e)for(let s=0;s<e.length;s++){let f=e[s],x=t(f,s);(r||f!==x||ir(x))&&(r||(r=e.slice(0,s)),ir(x)?jr(r,x):r.push(x))}return r||e}function Pt(e,t){let r=[];for(let s=0;s<e.length;s++){let f=t(e[s],s);if(f===void 0)return;r.push(f)}return r}function qt(e,t){let r=[];if(e)for(let s=0;s<e.length;s++){let f=t(e[s],s);f!==void 0&&r.push(f)}return r}function*Zr(e,t){for(let r of e){let s=t(r);s!==void 0&&(yield s)}}function Ri(e,t){if(!e)return;let r=new Map;return e.forEach((s,f)=>{let x=t(f,s);if(x!==void 0){let[w,A]=x;w!==void 0&&A!==void 0&&r.set(w,A)}}),r}function la(e,t,r){if(e.has(t))return e.get(t);let s=r();return e.set(t,s),s}function ua(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Ka(e){yield e}function co(e,t,r){let s;if(e){s=[];let f=e.length,x,w,A=0,g=0;for(;A<f;){for(;g<f;){let B=e[g];if(w=t(B,g),g===0)x=w;else if(w!==x)break;g++}if(A<g){let B=r(e.slice(A,g),x,A,g);B&&s.push(B),A=g}x=w,g++}}return s}function be(e,t){if(!e)return;let r=new Map;return e.forEach((s,f)=>{let[x,w]=t(f,s);r.set(x,w)}),r}function Ke(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function Et(e,t,r){let s;for(let f=0;f<e.length;f++)t(e[f])?s=s===void 0?f:s:s!==void 0&&(r(s,f),s=void 0);s!==void 0&&r(s,e.length)}function Ft(e,t){return Ke(t)?Ke(e)?[...e,...t]:t:e}function or(e,t){return t}function Wr(e){return e.map(or)}function m_(e,t,r){let s=Wr(e);ks(e,s,r);let f=e[s[0]],x=[s[0]];for(let w=1;w<s.length;w++){let A=s[w],g=e[A];t(f,g)||(x.push(A),f=g)}return x.sort(),x.map(w=>e[w])}function Uc(e,t){let r=[];for(let s of e)qn(r,s,t);return r}function ji(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?m_(e,t,r):Uc(e,t)}function lo(e,t){if(e.length===0)return Bt;let r=e[0],s=[r];for(let f=1;f<e.length;f++){let x=e[f];switch(t(x,r)){case!0:case 0:continue;case-1:return Y.fail("Array is unsorted.")}s.push(r=x)}return s}function zc(){return[]}function Qn(e,t,r,s){if(e.length===0)return e.push(t),!0;let f=Ya(e,t,rr,r);return f<0?(e.splice(~f,0,t),!0):s?(e.splice(f,0,t),!0):!1}function uo(e,t,r){return lo(Is(e,t),r||t||ri)}function Wc(e,t){if(e.length<2)return!0;for(let r=1,s=e.length;r<s;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function Vc(e,t,r,s){let f=3;if(e.length<2)return f;let x=t(e[0]);for(let w=1,A=e.length;w<A&&f!==0;w++){let g=t(e[w]);f&1&&r(x,g)>0&&(f&=-2),f&2&&s(x,g)>0&&(f&=-3),x=g}return f}function Hc(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fa;if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!r(e[s],t[s],s))return!1;return!0}function Gc(e){let t;if(e)for(let r=0;r<e.length;r++){let s=e[r];(t||!s)&&(t||(t=e.slice(0,r)),s&&t.push(s))}return t||e}function h_(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;let s=[];e:for(let f=0,x=0;x<t.length;x++){x>0&&Y.assertGreaterThanOrEqual(r(t[x],t[x-1]),0);t:for(let w=f;f<e.length;f++)switch(f>w&&Y.assertGreaterThanOrEqual(r(e[f],e[f-1]),0),r(t[x],e[f])){case-1:s.push(t[x]);continue e;case 0:continue e;case 1:continue t}}return s}function tr(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function $c(e,t){return e===void 0?t:t===void 0?e:ir(e)?ir(t)?Ft(e,t):tr(e,t):ir(t)?tr(t,e):[e,t]}function po(e,t){return t<0?e.length+t:t}function jr(e,t,r,s){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,s);r=r===void 0?0:po(t,r),s=s===void 0?t.length:po(t,s);for(let f=r;f<s&&f<t.length;f++)t[f]!==void 0&&e.push(t[f]);return e}function qn(e,t,r){return pe(e,t,r)?!1:(e.push(t),!0)}function g_(e,t,r){return e?(qn(e,t,r),e):[t]}function ks(e,t,r){t.sort((s,f)=>r(e[s],e[f])||Vr(s,f))}function Is(e,t){return e.length===0?e:e.slice().sort(t)}function*y_(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Ns(e,t){let r=Wr(e);return ks(e,r,t),r.map(s=>e[s])}function Kc(e,t,r,s){for(;r<s;){if(e[r]!==t[r])return!1;r++}return!0}function pa(e){return e===void 0||e.length===0?void 0:e[0]}function Xc(e){if(e)for(let t of e)return t}function fo(e){return Y.assert(e.length!==0),e[0]}function v_(e){for(let t of e)return t;Y.fail("iterator is empty")}function Cn(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Zn(e){return Y.assert(e.length!==0),e[e.length-1]}function Xa(e){return e&&e.length===1?e[0]:void 0}function Yc(e){return Y.checkDefined(Xa(e))}function mo(e){return e&&e.length===1?e[0]:e}function ei(e,t,r){let s=e.slice(0);return s[t]=r,s}function Ya(e,t,r,s,f){return b_(e,r(t),r,s,f)}function b_(e,t,r,s,f){if(!Ke(e))return-1;let x=f||0,w=e.length-1;for(;x<=w;){let A=x+(w-x>>1),g=r(e[A],A);switch(s(g,t)){case-1:x=A+1;break;case 0:return A;case 1:w=A-1;break}}return~x}function Qa(e,t,r,s,f){if(e&&e.length>0){let x=e.length;if(x>0){let w=s===void 0||s<0?0:s,A=f===void 0||w+f>x-1?x-1:w+f,g;for(arguments.length<=2?(g=e[w],w++):g=r;w<=A;)g=t(g,e[w],w),w++;return g}}return r}function Jr(e,t){return ni.call(e,t)}function Qc(e,t){return ni.call(e,t)?e[t]:void 0}function ho(e){let t=[];for(let r in e)ni.call(e,r)&&t.push(r);return t}function T_(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let s of r)qn(t,s)}while(e=Object.getPrototypeOf(e));return t}function go(e){let t=[];for(let r in e)ni.call(e,r)&&t.push(e[r]);return t}function yo(e,t){let r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s);return r}function Za(e,t){let r=[];for(let s of e)r.push(t?t(s):s);return r}function vo(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];for(let f of r)if(f!==void 0)for(let x in f)Jr(f,x)&&(e[x]=f[x]);return e}function S_(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fa;if(e===t)return!0;if(!e||!t)return!1;for(let s in e)if(ni.call(e,s)&&(!ni.call(t,s)||!r(e[s],t[s])))return!1;for(let s in t)if(ni.call(t,s)&&!ni.call(e,s))return!1;return!0}function Zc(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rr,s=new Map;for(let f of e){let x=t(f);x!==void 0&&s.set(x,r(f))}return s}function Os(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rr,s=[];for(let f of e)s[t(f)]=r(f);return s}function bo(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rr,s=Be();for(let f of e)s.add(t(f),r(f));return s}function el(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rr;return Za(bo(e,t).values(),r)}function x_(e,t){var r;let s={};if(e)for(let f of e){let x=`${t(f)}`;((r=s[x])!=null?r:s[x]=[]).push(f)}return s}function E_(e){let t={};for(let r in e)ni.call(e,r)&&(t[r]=e[r]);return t}function S(e,t){let r={};for(let s in t)ni.call(t,s)&&(r[s]=t[s]);for(let s in e)ni.call(e,s)&&(r[s]=e[s]);return r}function H(e,t){for(let r in t)ni.call(t,r)&&(e[r]=t[r])}function le(e,t){return t?t.bind(e):void 0}function Be(){let e=new Map;return e.add=rt,e.remove=ut,e}function rt(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function ut(e,t){let r=this.get(e);r&&(bT(r,t),r.length||this.delete(e))}function Ht(){return Be()}function Fr(e){let t=(e==null?void 0:e.slice())||[],r=0;function s(){return r===t.length}function f(){t.push(...arguments)}function x(){if(s())throw new Error("Queue is empty");let w=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){let A=t.length-r;t.copyWithin(0,r),t.length=A,r=0}return w}return{enqueue:f,dequeue:x,isEmpty:s}}function Cr(e,t){let r=new Map,s=0;function*f(){for(let w of r.values())ir(w)?yield*w:yield w}let x={has(w){let A=e(w);if(!r.has(A))return!1;let g=r.get(A);if(!ir(g))return t(g,w);for(let B of g)if(t(B,w))return!0;return!1},add(w){let A=e(w);if(r.has(A)){let g=r.get(A);if(ir(g))pe(g,w,t)||(g.push(w),s++);else{let B=g;t(B,w)||(r.set(A,[B,w]),s++)}}else r.set(A,w),s++;return this},delete(w){let A=e(w);if(!r.has(A))return!1;let g=r.get(A);if(ir(g)){for(let B=0;B<g.length;B++)if(t(g[B],w))return g.length===1?r.delete(A):g.length===2?r.set(A,g[1-B]):U1(g,B),s--,!0}else if(t(g,w))return r.delete(A),s--,!0;return!1},clear(){r.clear(),s=0},get size(){return s},forEach(w){for(let A of Za(r.values()))if(ir(A))for(let g of A)w(g,g,x);else{let g=A;w(g,g,x)}},keys(){return f()},values(){return f()},*entries(){for(let w of f())yield[w,w]},[Symbol.iterator]:()=>f(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return x}function ir(e){return Array.isArray(e)}function en(e){return ir(e)?e:[e]}function Ji(e){return typeof e=="string"}function gi(e){return typeof e=="number"}function ln(e,t){return e!==void 0&&t(e)?e:void 0}function ti(e,t){return e!==void 0&&t(e)?e:Y.fail(`Invalid cast. The supplied value ${e} did not pass the test '${Y.getFunctionName(t)}'.`)}function yn(e){}function w_(){return!1}function vp(){return!0}function C1(){}function rr(e){return e}function bp(e){return e.toLowerCase()}function Tp(e){return G1.test(e)?e.replace(G1,bp):e}function A1(){throw new Error("Not implemented")}function tl(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function An(e){let t=new Map;return r=>{let s=`${typeof r}:${r}`,f=t.get(s);return f===void 0&&!t.has(s)&&(f=e(r),t.set(s,f)),f}}function P1(e){let t=new WeakMap;return r=>{let s=t.get(r);return s===void 0&&!t.has(r)&&(s=e(r),t.set(r,s)),s}}function D1(e,t){return function(){for(var r=arguments.length,s=new Array(r),f=0;f<r;f++)s[f]=arguments[f];let x=t.get(s);return x===void 0&&!t.has(s)&&(x=e(...s),t.set(s,x)),x}}function k1(e,t,r,s,f){if(f){let x=[];for(let w=0;w<arguments.length;w++)x[w]=arguments[w];return w=>Qa(x,(A,g)=>g(A),w)}else return s?x=>s(r(t(e(x)))):r?x=>r(t(e(x))):t?x=>t(e(x)):e?x=>e(x):x=>x}function fa(e,t){return e===t}function Ms(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function To(e,t){return fa(e,t)}function Sp(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Vr(e,t){return Sp(e,t)}function I1(e,t){return Vr(e==null?void 0:e.start,t==null?void 0:t.start)||Vr(e==null?void 0:e.length,t==null?void 0:t.length)}function N1(e,t){return Qa(e,(r,s)=>t(r,s)===-1?r:s)}function C_(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function O1(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function ri(e,t){return Sp(e,t)}function rl(e){return e?C_:ri}function M1(){return Ap}function xp(e){Ap!==e&&(Ap=e,K1=void 0)}function L1(e,t){return(K1||(K1=AT(Ap)))(e,t)}function R1(e,t,r,s){return e===t?0:e===void 0?-1:t===void 0?1:s(e[r],t[r])}function j1(e,t){return Vr(e?1:0,t?1:0)}function Ep(e,t,r){let s=Math.max(2,Math.floor(e.length*.34)),f=Math.floor(e.length*.4)+1,x;for(let w of t){let A=r(w);if(A!==void 0&&Math.abs(A.length-e.length)<=s){if(A===e||A.length<3&&A.toLowerCase()!==e.toLowerCase())continue;let g=J1(e,A,f-.1);if(g===void 0)continue;Y.assert(g<f),f=g,x=w}}return x}function J1(e,t,r){let s=new Array(t.length+1),f=new Array(t.length+1),x=r+.01;for(let A=0;A<=t.length;A++)s[A]=A;for(let A=1;A<=e.length;A++){let g=e.charCodeAt(A-1),B=Math.ceil(A>r?A-r:1),N=Math.floor(t.length>r+A?r+A:t.length);f[0]=A;let X=A;for(let $=1;$<B;$++)f[$]=x;for(let $=B;$<=N;$++){let ae=e[A-1].toLowerCase()===t[$-1].toLowerCase()?s[$-1]+.1:s[$-1]+2,Te=g===t.charCodeAt($-1)?s[$-1]:Math.min(s[$]+1,f[$-1]+1,ae);f[$]=Te,X=Math.min(X,Te)}for(let $=N+1;$<=t.length;$++)f[$]=x;if(X>r)return;let F=s;s=f,f=F}let w=s[t.length];return w>r?void 0:w}function es(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function F1(e,t){return es(e,t)?e.slice(0,e.length-t.length):e}function B1(e,t){return es(e,t)?e.slice(0,e.length-t.length):void 0}function Fi(e,t){return e.indexOf(t)!==-1}function q1(e){let t=e.length;for(let r=t-1;r>0;r--){let s=e.charCodeAt(r);if(s>=48&&s<=57)do--r,s=e.charCodeAt(r);while(r>0&&s>=48&&s<=57);else if(r>4&&(s===110||s===78)){if(--r,s=e.charCodeAt(r),s!==105&&s!==73||(--r,s=e.charCodeAt(r),s!==109&&s!==77))break;--r,s=e.charCodeAt(r)}else break;if(s!==45&&s!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function J(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return vT(e,r),!0;return!1}function vT(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function U1(e,t){e[t]=e[e.length-1],e.pop()}function bT(e,t){return b5(e,r=>r===t)}function b5(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return U1(e,r),!0;return!1}function wp(e){return e?rr:Tp}function T5(e){let{prefix:t,suffix:r}=e;return`${t}*${r}`}function S5(e,t){return Y.assert(z1(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function TT(e,t,r){let s,f=-1;for(let x of e){let w=t(x);z1(w,r)&&w.prefix.length>f&&(f=w.prefix.length,s=x)}return s}function Pn(e,t){return e.lastIndexOf(t,0)===0}function x5(e,t){return Pn(e,t)?e.substr(t.length):e}function ST(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rr;return Pn(r(e),r(t))?e.substring(t.length):void 0}function z1(e,t){let{prefix:r,suffix:s}=e;return t.length>=r.length+s.length&&Pn(t,r)&&es(t,s)}function E5(e,t){return r=>e(r)&&t(r)}function W1(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){let s;for(let f of t)if(s=f(...arguments),s)return s;return s}}function w5(e){return function(){return!e(...arguments)}}function C5(e){}function Cp(e){return e===void 0?void 0:[e]}function A5(e,t,r,s,f,x){x=x||yn;let w=0,A=0,g=e.length,B=t.length,N=!1;for(;w<g&&A<B;){let X=e[w],F=t[A],$=r(X,F);$===-1?(s(X),w++,N=!0):$===1?(f(F),A++,N=!0):(x(F,X),w++,A++)}for(;w<g;)s(e[w++]),N=!0;for(;A<B;)f(t[A++]),N=!0;return N}function P5(e){let t=[];return xT(e,t,void 0,0),t}function xT(e,t,r,s){for(let f of e[s]){let x;r?(x=r.slice(),x.push(f)):x=[f],s===e.length-1?t.push(x):xT(e,t,x,s+1)}}function D5(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:" ";return t<=e.length?e:r.repeat(t-e.length)+e}function k5(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:" ";return t<=e.length?e:e+r.repeat(t-e.length)}function I5(e,t){if(e){let r=e.length,s=0;for(;s<r&&t(e[s]);)s++;return e.slice(0,s)}}function N5(e,t){if(e){let r=e.length,s=0;for(;s<r&&t(e[s]);)s++;return e.slice(s)}}function O5(e){let t=e.length-1;for(;t>=0&&os(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function M5(){return typeof cn<"u"&&cn.nextTick&&!cn.browser&&typeof _=="object"}var Bt,V1,ET,H1,wT,ni,CT,G1,$1,AT,K1,Ap,Pp,X1,nl,L5=D({"src/compiler/core.ts"(){"use strict";nn(),Bt=[],V1=new Map,ET=new Set,H1=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(H1||{}),wT=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=po(e,t),t<e.length))return e[t]},ni=Object.prototype.hasOwnProperty,CT={push:yn,length:0},G1=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g,$1=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))($1||{}),AT=(()=>{let e,t,r=A();return g;function s(B,N,X){if(B===N)return 0;if(B===void 0)return-1;if(N===void 0)return 1;let F=X(B,N);return F<0?-1:F>0?1:0}function f(B){let N=new Intl.Collator(B,{usage:"sort",sensitivity:"variant"}).compare;return(X,F)=>s(X,F,N)}function x(B){if(B!==void 0)return w();return(X,F)=>s(X,F,N);function N(X,F){return X.localeCompare(F)}}function w(){return(X,F)=>s(X,F,B);function B(X,F){return N(X.toUpperCase(),F.toUpperCase())||N(X,F)}function N(X,F){return X<F?-1:X>F?1:0}}function A(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?f:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?x:w}function g(B){return B===void 0?e||(e=r(B)):B==="en-US"?t||(t=r(B)):r(B)}})(),Pp=String.prototype.trim?e=>e.trim():e=>X1(nl(e)),X1=String.prototype.trimEnd?e=>e.trimEnd():O5,nl=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),Y1,Y,PT=D({"src/compiler/debug.ts"(){"use strict";nn(),nn(),Y1=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(Y1||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(ue){return e.currentLogLevel<=ue}e.shouldLog=r;function s(ue,He){e.loggingHost&&r(ue)&&e.loggingHost.log(ue,He)}function f(ue){s(3,ue)}e.log=f,(ue=>{function He(zt){s(1,zt)}ue.error=He;function _t(zt){s(2,zt)}ue.warn=_t;function ft(zt){s(3,zt)}ue.log=ft;function Kt(zt){s(4,zt)}ue.trace=Kt})(f=e.log||(e.log={}));let x={};function w(){return t}e.getAssertionLevel=w;function A(ue){let He=t;if(t=ue,ue>He)for(let _t of ho(x)){let ft=x[_t];ft!==void 0&&e[_t]!==ft.assertion&&ue>=ft.level&&(e[_t]=ft,x[_t]=void 0)}}e.setAssertionLevel=A;function g(ue){return t>=ue}e.shouldAssert=g;function B(ue,He){return g(ue)?!0:(x[He]={level:ue,assertion:e[He]},e[He]=yn,!1)}function N(ue,He){debugger;let _t=new Error(ue?`Debug Failure. ${ue}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(_t,He||N),_t}e.fail=N;function X(ue,He,_t){return N(`${He||"Unexpected node."}\r Node ${mr(ue.kind)} was unexpected.`,_t||X)}e.failBadSyntaxKind=X;function F(ue,He,_t,ft){ue||(He=He?`False expression: ${He}`:"False expression.",_t&&(He+=`\r Verbose Debug Information: `+(typeof _t=="string"?_t:_t())),N(He,ft||F))}e.assert=F;function $(ue,He,_t,ft,Kt){if(ue!==He){let zt=_t?ft?`${_t} ${ft}`:_t:"";N(`Expected ${ue} === ${He}. ${zt}`,Kt||$)}}e.assertEqual=$;function ae(ue,He,_t,ft){ue>=He&&N(`Expected ${ue} < ${He}. ${_t||""}`,ft||ae)}e.assertLessThan=ae;function Te(ue,He,_t){ue>He&&N(`Expected ${ue} <= ${He}`,_t||Te)}e.assertLessThanOrEqual=Te;function Se(ue,He,_t){ue<He&&N(`Expected ${ue} >= ${He}`,_t||Se)}e.assertGreaterThanOrEqual=Se;function Ye(ue,He,_t){ue==null&&N(He,_t||Ye)}e.assertIsDefined=Ye;function Ne(ue,He,_t){return Ye(ue,He,_t||Ne),ue}e.checkDefined=Ne;function oe(ue,He,_t){for(let ft of ue)Ye(ft,He,_t||oe)}e.assertEachIsDefined=oe;function Ve(ue,He,_t){return oe(ue,He,_t||Ve),ue}e.checkEachDefined=Ve;function pt(ue){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Illegal value:",_t=arguments.length>2?arguments[2]:void 0,ft=typeof ue=="object"&&Jr(ue,"kind")&&Jr(ue,"pos")?"SyntaxKind: "+mr(ue.kind):JSON.stringify(ue);return N(`${He} ${ft}`,_t||pt)}e.assertNever=pt;function Gt(ue,He,_t,ft){B(1,"assertEachNode")&&F(He===void 0||me(ue,He),_t||"Unexpected node.",()=>`Node array did not pass test '${pn(He)}'.`,ft||Gt)}e.assertEachNode=Gt;function Nt(ue,He,_t,ft){B(1,"assertNode")&&F(ue!==void 0&&(He===void 0||He(ue)),_t||"Unexpected node.",()=>`Node ${mr(ue==null?void 0:ue.kind)} did not pass test '${pn(He)}'.`,ft||Nt)}e.assertNode=Nt;function Xt(ue,He,_t,ft){B(1,"assertNotNode")&&F(ue===void 0||He===void 0||!He(ue),_t||"Unexpected node.",()=>`Node ${mr(ue.kind)} should not have passed test '${pn(He)}'.`,ft||Xt)}e.assertNotNode=Xt;function er(ue,He,_t,ft){B(1,"assertOptionalNode")&&F(He===void 0||ue===void 0||He(ue),_t||"Unexpected node.",()=>`Node ${mr(ue==null?void 0:ue.kind)} did not pass test '${pn(He)}'.`,ft||er)}e.assertOptionalNode=er;function Tn(ue,He,_t,ft){B(1,"assertOptionalToken")&&F(He===void 0||ue===void 0||ue.kind===He,_t||"Unexpected node.",()=>`Node ${mr(ue==null?void 0:ue.kind)} was not a '${mr(He)}' token.`,ft||Tn)}e.assertOptionalToken=Tn;function Hr(ue,He,_t){B(1,"assertMissingNode")&&F(ue===void 0,He||"Unexpected node.",()=>`Node ${mr(ue.kind)} was unexpected'.`,_t||Hr)}e.assertMissingNode=Hr;function Gi(ue){}e.type=Gi;function pn(ue){if(typeof ue!="function")return"";if(Jr(ue,"name"))return ue.name;{let He=Function.prototype.toString.call(ue),_t=/^function\s+([\w\$]+)\s*\(/.exec(He);return _t?_t[1]:""}}e.getFunctionName=pn;function fn(ue){return`{ name: ${dl(ue.escapedName)}; flags: ${Sn(ue.flags)}; declarations: ${Ze(ue.declarations,He=>mr(He.kind))} }`}e.formatSymbol=fn;function Ut(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,He=arguments.length>1?arguments[1]:void 0,_t=arguments.length>2?arguments[2]:void 0,ft=an(He);if(ue===0)return ft.length>0&&ft[0][0]===0?ft[0][1]:"0";if(_t){let Kt=[],zt=ue;for(let[xe,Le]of ft){if(xe>ue)break;xe!==0&&xe&ue&&(Kt.push(Le),zt&=~xe)}if(zt===0)return Kt.join("|")}else for(let[Kt,zt]of ft)if(Kt===ue)return zt;return ue.toString()}e.formatEnum=Ut;let kn=new Map;function an(ue){let He=kn.get(ue);if(He)return He;let _t=[];for(let Kt in ue){let zt=ue[Kt];typeof zt=="number"&&_t.push([zt,Kt])}let ft=Ns(_t,(Kt,zt)=>Vr(Kt[0],zt[0]));return kn.set(ue,ft),ft}function mr(ue){return Ut(ue,Np,!1)}e.formatSyntaxKind=mr;function $i(ue){return Ut(ue,zp,!1)}e.formatSnippetKind=$i;function dn(ue){return Ut(ue,Op,!0)}e.formatNodeFlags=dn;function Ur(ue){return Ut(ue,Mp,!0)}e.formatModifierFlags=Ur;function Gr(ue){return Ut(ue,Up,!0)}e.formatTransformFlags=Gr;function _r(ue){return Ut(ue,Wp,!0)}e.formatEmitFlags=_r;function Sn(ue){return Ut(ue,jp,!0)}e.formatSymbolFlags=Sn;function In(ue){return Ut(ue,Jp,!0)}e.formatTypeFlags=In;function pr(ue){return Ut(ue,Bp,!0)}e.formatSignatureFlags=pr;function Zt(ue){return Ut(ue,Fp,!0)}e.formatObjectFlags=Zt;function Or(ue){return Ut(ue,il,!0)}e.formatFlowFlags=Or;function Nn(ue){return Ut(ue,Lp,!0)}e.formatRelationComparisonResult=Nn;function ar(ue){return Ut(ue,CheckMode,!0)}e.formatCheckMode=ar;function oi(ue){return Ut(ue,SignatureCheckMode,!0)}e.formatSignatureCheckMode=oi;function cr(ue){return Ut(ue,TypeFacts,!0)}e.formatTypeFacts=cr;let $r=!1,hr;function On(ue){"__debugFlowFlags"in ue||Object.defineProperties(ue,{__tsDebuggerDisplay:{value(){let He=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",_t=this.flags&~(2048-1);return`${He}${_t?` (${Or(_t)})`:""}`}},__debugFlowFlags:{get(){return Ut(this.flags,il,!0)}},__debugToString:{value(){return St(this)}}})}function nr(ue){$r&&(typeof Object.setPrototypeOf=="function"?(hr||(hr=Object.create(Object.prototype),On(hr)),Object.setPrototypeOf(ue,hr)):On(ue))}e.attachFlowNodeDebugInfo=nr;let br;function Kr(ue){"__tsDebuggerDisplay"in ue||