diff --git a/dist/index.js b/dist/index.js index 5c619816..7cbaaa73 100644 --- a/dist/index.js +++ b/dist/index.js @@ -43,7 +43,7 @@ ${r.count} ${r.noun} ${r.is} pending: ${A.format(t)} `.trim())}};sh.exports=rg});var ai=B((Qv,ch)=>{"use strict";var ih=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:QS}=v(),ES=cr();ah()===void 0&&oh(new ES);function oh(e){if(!e||typeof e.dispatch!="function")throw new QS("Argument agent must implement Agent");Object.defineProperty(globalThis,ih,{value:e,writable:!0,enumerable:!1,configurable:!1})}function ah(){return globalThis[ih]}ch.exports={setGlobalDispatcher:oh,getGlobalDispatcher:ah}});var ci=B((lv,gh)=>{"use strict";gh.exports=class{#A;constructor(A){if(typeof A!="object"||A===null)throw new TypeError("handler must be an object");this.#A=A}onConnect(...A){return this.#A.onConnect?.(...A)}onError(...A){return this.#A.onError?.(...A)}onUpgrade(...A){return this.#A.onUpgrade?.(...A)}onResponseStarted(...A){return this.#A.onResponseStarted?.(...A)}onHeaders(...A){return this.#A.onHeaders?.(...A)}onData(...A){return this.#A.onData?.(...A)}onComplete(...A){return this.#A.onComplete?.(...A)}onBodySent(...A){return this.#A.onBodySent?.(...A)}}});var Eh=B((Bv,Qh)=>{"use strict";var lS=Hn();Qh.exports=e=>{let A=e?.maxRedirections;return t=>function(s,n){let{maxRedirections:i=A,...o}=s;if(!i)return t(s,n);let a=new lS(t,i,s,n);return t(o,a)}}});var Bh=B((Iv,lh)=>{"use strict";var BS=$n();lh.exports=e=>A=>function(r,s){return A(r,new BS({...r,retryOptions:{...e,...r.retryOptions}},{handler:s,dispatch:A}))}});var uh=B((uv,Ih)=>{"use strict";var IS=x(),{InvalidArgumentError:uS,RequestAbortedError:hS}=v(),CS=ci(),sg=class extends CS{#A=1024*1024;#e=null;#s=!1;#r=!1;#t=0;#n=null;#i=null;constructor({maxSize:A},t){if(super(t),A!=null&&(!Number.isFinite(A)||A<1))throw new uS("maxSize must be a number greater than 0");this.#A=A??this.#A,this.#i=t}onConnect(A){this.#e=A,this.#i.onConnect(this.#o.bind(this))}#o(A){this.#r=!0,this.#n=A}onHeaders(A,t,r,s){let i=IS.parseHeaders(t)["content-length"];if(i!=null&&i>this.#A)throw new hS(`Response size (${i}) larger than maxSize (${this.#A})`);return this.#r?!0:this.#i.onHeaders(A,t,r,s)}onError(A){this.#s||(A=this.#n??A,this.#i.onError(A))}onData(A){return this.#t=this.#t+A.length,this.#t>=this.#A&&(this.#s=!0,this.#r?this.#i.onError(this.#n):this.#i.onComplete([])),!0}onComplete(A){if(!this.#s){if(this.#r){this.#i.onError(this.reason);return}this.#i.onComplete(A)}}};function fS({maxSize:e}={maxSize:1024*1024}){return A=>function(r,s){let{dumpMaxSize:n=e}=r,i=new sg({maxSize:n},s);return A(r,i)}}Ih.exports=fS});var fh=B((hv,Ch)=>{"use strict";var{isIP:dS}=require("net"),{lookup:wS}=require("dns"),pS=ci(),{InvalidArgumentError:fr,InformationalError:yS}=v(),hh=Math.pow(2,31)-1,ng=class{#A=0;#e=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(A){this.#A=A.maxTTL,this.#e=A.maxItems,this.dualStack=A.dualStack,this.affinity=A.affinity,this.lookup=A.lookup??this.#r,this.pick=A.pick??this.#t}get full(){return this.#s.size===this.#e}runLookup(A,t,r){let s=this.#s.get(A.hostname);if(s==null&&this.full){r(null,A.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#A,maxItems:this.#e};if(s==null)this.lookup(A,n,(i,o)=>{if(i||o==null||o.length===0){r(i??new yS("No DNS entries found"));return}this.setRecords(A,o);let a=this.#s.get(A.hostname),c=this.pick(A,a,n.affinity),g;typeof c.port=="number"?g=`:${c.port}`:A.port!==""?g=`:${A.port}`:g="",r(null,`${A.protocol}//${c.family===6?`[${c.address}]`:c.address}${g}`)});else{let i=this.pick(A,s,n.affinity);if(i==null){this.#s.delete(A.hostname),this.runLookup(A,t,r);return}let o;typeof i.port=="number"?o=`:${i.port}`:A.port!==""?o=`:${A.port}`:o="",r(null,`${A.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#r(A,t,r){wS(A.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return r(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);r(null,i.values())})}#t(A,t,r){let s=null,{records:n,offset:i}=t,o;if(this.dualStack?(r==null&&(i==null||i===hh?(t.offset=0,r=4):(t.offset++,r=(t.offset&1)===1?6:4)),n[r]!=null&&n[r].ips.length>0?o=n[r]:o=n[r===4?6:4]):o=n[r],o==null||o.ips.length===0)return s;o.offset==null||o.offset===hh?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(A,t,r)):s}setRecords(A,t){let r=Date.now(),s={records:{4:null,6:null}};for(let n of t){n.timestamp=r,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#A):n.ttl=this.#A;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#s.set(A.hostname,s)}getHandler(A,t){return new ig(this,A,t)}},ig=class extends pS{#A=null;#e=null;#s=null;#r=null;#t=null;constructor(A,{origin:t,handler:r,dispatch:s},n){super(r),this.#t=t,this.#r=r,this.#e={...n},this.#A=A,this.#s=s}onError(A){switch(A.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#A.dualStack){this.#A.runLookup(this.#t,this.#e,(t,r)=>{if(t)return this.#r.onError(t);let s={...this.#e,origin:r};this.#s(s,this)});return}this.#r.onError(A);return}case"ENOTFOUND":this.#A.deleteRecord(this.#t);default:this.#r.onError(A);break}}};Ch.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!="number"||e?.maxTTL<0))throw new fr("Invalid maxTTL. Must be a positive number");if(e?.maxItems!=null&&(typeof e?.maxItems!="number"||e?.maxItems<1))throw new fr("Invalid maxItems. Must be a positive number and greater than zero");if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new fr("Invalid affinity. Must be either 4 or 6");if(e?.dualStack!=null&&typeof e?.dualStack!="boolean")throw new fr("Invalid dualStack. Must be a boolean");if(e?.lookup!=null&&typeof e?.lookup!="function")throw new fr("Invalid lookup. Must be a function");if(e?.pick!=null&&typeof e?.pick!="function")throw new fr("Invalid pick. Must be a function");let A=e?.dualStack??!0,t;A?t=e?.affinity??null:t=e?.affinity??4;let r={maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:A,affinity:t,maxItems:e?.maxItems??1/0},s=new ng(r);return n=>function(o,a){let c=o.origin.constructor===URL?o.origin:new URL(o.origin);return dS(c.hostname)!==0?n(o,a):(s.runLookup(c,o,(g,Q)=>{if(g)return a.onError(g);let E=null;E={...o,servername:c.hostname,origin:Q,headers:{host:c.hostname,...o.headers}},n(E,s.getHandler({origin:c,dispatch:n,handler:a},o))}),!0)}}});var mt=B((Cv,Rh)=>{"use strict";var{kConstruct:DS}=$(),{kEnumerableProperty:dr}=x(),{iteratorMixin:mS,isValidHeaderName:us,isValidHeaderValue:wh}=bA(),{webidl:J}=EA(),og=require("assert"),gi=require("util"),oA=Symbol("headers map"),LA=Symbol("headers map sorted");function dh(e){return e===10||e===13||e===9||e===32}function ph(e){let A=0,t=e.length;for(;t>A&&dh(e.charCodeAt(t-1));)--t;for(;t>A&&dh(e.charCodeAt(A));)++A;return A===0&&t===e.length?e:e.substring(A,t)}function yh(e,A){if(Array.isArray(A))for(let t=0;t>","record"]})}function ag(e,A,t){if(t=ph(t),us(A)){if(!wh(t))throw J.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header value"})}else throw J.errors.invalidArgument({prefix:"Headers.append",value:A,type:"header name"});if(mh(e)==="immutable")throw new TypeError("immutable");return cg(e).append(A,t,!1)}function Dh(e,A){return e[0]>1),t[c][0]<=g[0]?a=c+1:o=c;if(n!==c){for(i=n;i>a;)t[i]=t[--i];t[a]=g}}if(!r.next().done)throw new TypeError("Unreachable");return t}else{let r=0;for(let{0:s,1:{value:n}}of this[oA])t[r++]=[s,n],og(n!==null);return t.sort(Dh)}}},ne=class e{#A;#e;constructor(A=void 0){J.util.markAsUncloneable(this),A!==DS&&(this.#e=new Qi,this.#A="none",A!==void 0&&(A=J.converters.HeadersInit(A,"Headers contructor","init"),yh(this,A)))}append(A,t){J.brandCheck(this,e),J.argumentLengthCheck(arguments,2,"Headers.append");let r="Headers.append";return A=J.converters.ByteString(A,r,"name"),t=J.converters.ByteString(t,r,"value"),ag(this,A,t)}delete(A){if(J.brandCheck(this,e),J.argumentLengthCheck(arguments,1,"Headers.delete"),A=J.converters.ByteString(A,"Headers.delete","name"),!us(A))throw J.errors.invalidArgument({prefix:"Headers.delete",value:A,type:"header name"});if(this.#A==="immutable")throw new TypeError("immutable");this.#e.contains(A,!1)&&this.#e.delete(A,!1)}get(A){J.brandCheck(this,e),J.argumentLengthCheck(arguments,1,"Headers.get");let t="Headers.get";if(A=J.converters.ByteString(A,t,"name"),!us(A))throw J.errors.invalidArgument({prefix:t,value:A,type:"header name"});return this.#e.get(A,!1)}has(A){J.brandCheck(this,e),J.argumentLengthCheck(arguments,1,"Headers.has");let t="Headers.has";if(A=J.converters.ByteString(A,t,"name"),!us(A))throw J.errors.invalidArgument({prefix:t,value:A,type:"header name"});return this.#e.contains(A,!1)}set(A,t){J.brandCheck(this,e),J.argumentLengthCheck(arguments,2,"Headers.set");let r="Headers.set";if(A=J.converters.ByteString(A,r,"name"),t=J.converters.ByteString(t,r,"value"),t=ph(t),us(A)){if(!wh(t))throw J.errors.invalidArgument({prefix:r,value:t,type:"header value"})}else throw J.errors.invalidArgument({prefix:r,value:A,type:"header name"});if(this.#A==="immutable")throw new TypeError("immutable");this.#e.set(A,t,!1)}getSetCookie(){J.brandCheck(this,e);let A=this.#e.cookies;return A?[...A]:[]}get[LA](){if(this.#e[LA])return this.#e[LA];let A=[],t=this.#e.toSortedArray(),r=this.#e.cookies;if(r===null||r.length===1)return this.#e[LA]=t;for(let s=0;s>"](e,A,t,r.bind(e)):J.converters["record"](e,A,t)}throw J.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};Rh.exports={fill:yh,compareHeaderName:Dh,Headers:ne,HeadersList:Qi,getHeadersGuard:mh,setHeadersGuard:RS,setHeadersList:FS,getHeadersList:cg}});var Cs=B((fv,Yh)=>{"use strict";var{Headers:Uh,HeadersList:Fh,fill:kS,getHeadersGuard:NS,setHeadersGuard:Mh,setHeadersList:Lh}=mt(),{extractBody:kh,cloneBody:SS,mixinBody:bS,hasFinalizationRegistry:Th,streamRegistry:xh,bodyUnusable:US}=Ar(),gg=x(),Nh=require("util"),{kEnumerableProperty:TA}=gg,{isValidReasonPhrase:MS,isCancelled:LS,isAborted:TS,isBlobLike:xS,serializeJavascriptValueToJSONString:GS,isErrorLike:YS,isomorphicEncode:JS,environmentSettingsObject:vS}=bA(),{redirectStatusSet:HS,nullBodyStatus:VS}=Hr(),{kState:AA,kHeaders:Te}=qe(),{webidl:T}=EA(),{FormData:qS}=_r(),{URLSerializer:Sh}=mA(),{kConstruct:li}=$(),Qg=require("assert"),{types:OS}=require("util"),WS=new TextEncoder("utf-8"),Rt=class e{static error(){return hs(Bi(),"immutable")}static json(A,t={}){T.argumentLengthCheck(arguments,1,"Response.json"),t!==null&&(t=T.converters.ResponseInit(t));let r=WS.encode(GS(A)),s=kh(r),n=hs(wr({}),"response");return bh(n,t,{body:s[0],type:"application/json"}),n}static redirect(A,t=302){T.argumentLengthCheck(arguments,1,"Response.redirect"),A=T.converters.USVString(A),t=T.converters["unsigned short"](t);let r;try{r=new URL(A,vS.settingsObject.baseUrl)}catch(i){throw new TypeError(`Failed to parse URL from ${A}`,{cause:i})}if(!HS.has(t))throw new RangeError(`Invalid status code ${t}`);let s=hs(wr({}),"immutable");s[AA].status=t;let n=JS(Sh(r));return s[AA].headersList.append("location",n,!0),s}constructor(A=null,t={}){if(T.util.markAsUncloneable(this),A===li)return;A!==null&&(A=T.converters.BodyInit(A)),t=T.converters.ResponseInit(t),this[AA]=wr({}),this[Te]=new Uh(li),Mh(this[Te],"response"),Lh(this[Te],this[AA].headersList);let r=null;if(A!=null){let[s,n]=kh(A);r={body:s,type:n}}bh(this,t,r)}get type(){return T.brandCheck(this,e),this[AA].type}get url(){T.brandCheck(this,e);let A=this[AA].urlList,t=A[A.length-1]??null;return t===null?"":Sh(t,!0)}get redirected(){return T.brandCheck(this,e),this[AA].urlList.length>1}get status(){return T.brandCheck(this,e),this[AA].status}get ok(){return T.brandCheck(this,e),this[AA].status>=200&&this[AA].status<=299}get statusText(){return T.brandCheck(this,e),this[AA].statusText}get headers(){return T.brandCheck(this,e),this[Te]}get body(){return T.brandCheck(this,e),this[AA].body?this[AA].body.stream:null}get bodyUsed(){return T.brandCheck(this,e),!!this[AA].body&&gg.isDisturbed(this[AA].body.stream)}clone(){if(T.brandCheck(this,e),US(this))throw T.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let A=Eg(this[AA]);return Th&&this[AA].body?.stream&&xh.register(this,new WeakRef(this[AA].body.stream)),hs(A,NS(this[Te]))}[Nh.inspect.custom](A,t){t.depth===null&&(t.depth=2),t.colors??=!0;let r={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${Nh.formatWithOptions(t,r)}`}};bS(Rt);Object.defineProperties(Rt.prototype,{type:TA,url:TA,status:TA,ok:TA,redirected:TA,statusText:TA,headers:TA,clone:TA,body:TA,bodyUsed:TA,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(Rt,{json:TA,redirect:TA,error:TA});function Eg(e){if(e.internalResponse)return Gh(Eg(e.internalResponse),e.type);let A=wr({...e,body:null});return e.body!=null&&(A.body=SS(A,e.body)),A}function wr(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e?.headersList?new Fh(e?.headersList):new Fh,urlList:e?.urlList?[...e.urlList]:[]}}function Bi(e){let A=YS(e);return wr({type:"error",status:0,error:A?e:new Error(e&&String(e)),aborted:e&&e.name==="AbortError"})}function PS(e){return e.type==="error"&&e.status===0}function Ei(e,A){return A={internalResponse:e,...A},new Proxy(e,{get(t,r){return r in A?A[r]:t[r]},set(t,r,s){return Qg(!(r in A)),t[r]=s,!0}})}function Gh(e,A){if(A==="basic")return Ei(e,{type:"basic",headersList:e.headersList});if(A==="cors")return Ei(e,{type:"cors",headersList:e.headersList});if(A==="opaque")return Ei(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(A==="opaqueredirect")return Ei(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});Qg(!1)}function _S(e,A=null){return Qg(LS(e)),TS(e)?Bi(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:A})):Bi(Object.assign(new DOMException("Request was cancelled."),{cause:A}))}function bh(e,A,t){if(A.status!==null&&(A.status<200||A.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in A&&A.statusText!=null&&!MS(String(A.statusText)))throw new TypeError("Invalid statusText");if("status"in A&&A.status!=null&&(e[AA].status=A.status),"statusText"in A&&A.statusText!=null&&(e[AA].statusText=A.statusText),"headers"in A&&A.headers!=null&&kS(e[Te],A.headers),t){if(VS.includes(e.status))throw T.errors.exception({header:"Response constructor",message:`Invalid response status code ${e.status}`});e[AA].body=t.body,t.type!=null&&!e[AA].headersList.contains("content-type",!0)&&e[AA].headersList.append("content-type",t.type,!0)}}function hs(e,A){let t=new Rt(li);return t[AA]=e,t[Te]=new Uh(li),Lh(t[Te],e.headersList),Mh(t[Te],A),Th&&e.body?.stream&&xh.register(t,new WeakRef(e.body.stream)),t}T.converters.ReadableStream=T.interfaceConverter(ReadableStream);T.converters.FormData=T.interfaceConverter(qS);T.converters.URLSearchParams=T.interfaceConverter(URLSearchParams);T.converters.XMLHttpRequestBodyInit=function(e,A,t){return typeof e=="string"?T.converters.USVString(e,A,t):xS(e)?T.converters.Blob(e,A,t,{strict:!1}):ArrayBuffer.isView(e)||OS.isArrayBuffer(e)?T.converters.BufferSource(e,A,t):gg.isFormDataLike(e)?T.converters.FormData(e,A,t,{strict:!1}):e instanceof URLSearchParams?T.converters.URLSearchParams(e,A,t):T.converters.DOMString(e,A,t)};T.converters.BodyInit=function(e,A,t){return e instanceof ReadableStream?T.converters.ReadableStream(e,A,t):e?.[Symbol.asyncIterator]?e:T.converters.XMLHttpRequestBodyInit(e,A,t)};T.converters.ResponseInit=T.dictionaryConverter([{key:"status",converter:T.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:T.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:T.converters.HeadersInit}]);Yh.exports={isNetworkError:PS,makeNetworkError:Bi,makeResponse:wr,makeAppropriateNetworkError:_S,filterResponse:Gh,Response:Rt,cloneResponse:Eg,fromInnerResponse:hs}});var Vh=B((dv,Hh)=>{"use strict";var{kConnected:Jh,kSize:vh}=$(),lg=class{constructor(A){this.value=A}deref(){return this.value[Jh]===0&&this.value[vh]===0?void 0:this.value}},Bg=class{constructor(A){this.finalizer=A}register(A,t){A.on&&A.on("disconnect",()=>{A[Jh]===0&&A[vh]===0&&this.finalizer(t)})}unregister(A){}};Hh.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:lg,FinalizationRegistry:Bg}):{WeakRef,FinalizationRegistry}}});var pr=B((wv,rC)=>{"use strict";var{extractBody:ZS,mixinBody:XS,cloneBody:zS,bodyUnusable:qh}=Ar(),{Headers:$h,fill:KS,HeadersList:Ci,setHeadersGuard:ug,getHeadersGuard:$S,setHeadersList:jh,getHeadersList:Oh}=mt(),{FinalizationRegistry:jS}=Vh()(),ui=x(),Wh=require("util"),{isValidHTTPToken:Ab,sameOrigin:Ph,environmentSettingsObject:Ii}=bA(),{forbiddenMethodsSet:eb,corsSafeListedMethodsSet:tb,referrerPolicy:rb,requestRedirect:sb,requestMode:nb,requestCredentials:ib,requestCache:ob,requestDuplex:ab}=Hr(),{kEnumerableProperty:aA,normalizedMethodRecordsBase:cb,normalizedMethodRecords:gb}=ui,{kHeaders:xA,kSignal:hi,kState:z,kDispatcher:Ig}=qe(),{webidl:S}=EA(),{URLSerializer:Qb}=mA(),{kConstruct:fi}=$(),Eb=require("assert"),{getMaxListeners:_h,setMaxListeners:Zh,getEventListeners:lb,defaultMaxListeners:Xh}=require("events"),Bb=Symbol("abortController"),AC=new jS(({signal:e,abort:A})=>{e.removeEventListener("abort",A)}),di=new WeakMap;function zh(e){return A;function A(){let t=e.deref();if(t!==void 0){AC.unregister(A),this.removeEventListener("abort",A),t.abort(this.reason);let r=di.get(t.signal);if(r!==void 0){if(r.size!==0){for(let s of r){let n=s.deref();n!==void 0&&n.abort(this.reason)}r.clear()}di.delete(t.signal)}}}}var Kh=!1,et=class e{constructor(A,t={}){if(S.util.markAsUncloneable(this),A===fi)return;let r="Request constructor";S.argumentLengthCheck(arguments,1,r),A=S.converters.RequestInfo(A,r,"input"),t=S.converters.RequestInit(t,r,"init");let s=null,n=null,i=Ii.settingsObject.baseUrl,o=null;if(typeof A=="string"){this[Ig]=t.dispatcher;let I;try{I=new URL(A,i)}catch(d){throw new TypeError("Failed to parse URL from "+A,{cause:d})}if(I.username||I.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+A);s=wi({urlList:[I]}),n="cors"}else this[Ig]=t.dispatcher||A[Ig],Eb(A instanceof e),s=A[z],o=A[hi];let a=Ii.settingsObject.origin,c="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&Ph(s.window,a)&&(c=s.window),t.window!=null)throw new TypeError(`'window' option '${c}' must be null`);"window"in t&&(c="no-window"),s=wi({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:Ii.settingsObject,window:c,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});let g=Object.keys(t).length!==0;if(g&&(s.mode==="navigate"&&(s.mode="same-origin"),s.reloadNavigation=!1,s.historyNavigation=!1,s.origin="client",s.referrer="client",s.referrerPolicy="",s.url=s.urlList[s.urlList.length-1],s.urlList=[s.url]),t.referrer!==void 0){let I=t.referrer;if(I==="")s.referrer="no-referrer";else{let d;try{d=new URL(I,i)}catch(R){throw new TypeError(`Referrer "${I}" is not a valid URL.`,{cause:R})}d.protocol==="about:"&&d.hostname==="client"||a&&!Ph(d,Ii.settingsObject.baseUrl)?s.referrer="client":s.referrer=d}}t.referrerPolicy!==void 0&&(s.referrerPolicy=t.referrerPolicy);let Q;if(t.mode!==void 0?Q=t.mode:Q=n,Q==="navigate")throw S.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(Q!=null&&(s.mode=Q),t.credentials!==void 0&&(s.credentials=t.credentials),t.cache!==void 0&&(s.cache=t.cache),s.cache==="only-if-cached"&&s.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(t.redirect!==void 0&&(s.redirect=t.redirect),t.integrity!=null&&(s.integrity=String(t.integrity)),t.keepalive!==void 0&&(s.keepalive=!!t.keepalive),t.method!==void 0){let I=t.method,d=gb[I];if(d!==void 0)s.method=d;else{if(!Ab(I))throw new TypeError(`'${I}' is not a valid HTTP method.`);let R=I.toUpperCase();if(eb.has(R))throw new TypeError(`'${I}' HTTP method is unsupported.`);I=cb[R]??I,s.method=I}!Kh&&s.method==="patch"&&(process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),Kh=!0)}t.signal!==void 0&&(o=t.signal),this[z]=s;let E=new AbortController;if(this[hi]=E.signal,o!=null){if(!o||typeof o.aborted!="boolean"||typeof o.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(o.aborted)E.abort(o.reason);else{this[Bb]=E;let I=new WeakRef(E),d=zh(I);try{(typeof _h=="function"&&_h(o)===Xh||lb(o,"abort").length>=Xh)&&Zh(1500,o)}catch{}ui.addAbortListener(o,d),AC.register(E,{signal:o,abort:d},d)}}if(this[xA]=new $h(fi),jh(this[xA],s.headersList),ug(this[xA],"request"),Q==="no-cors"){if(!tb.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);ug(this[xA],"request-no-cors")}if(g){let I=Oh(this[xA]),d=t.headers!==void 0?t.headers:new Ci(I);if(I.clear(),d instanceof Ci){for(let{name:R,value:F}of d.rawValues())I.append(R,F,!1);I.cookies=d.cookies}else KS(this[xA],d)}let l=A instanceof e?A[z].body:null;if((t.body!=null||l!=null)&&(s.method==="GET"||s.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let u=null;if(t.body!=null){let[I,d]=ZS(t.body,s.keepalive);u=I,d&&!Oh(this[xA]).contains("content-type",!0)&&this[xA].append("content-type",d)}let h=u??l;if(h!=null&&h.source==null){if(u!=null&&t.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(s.mode!=="same-origin"&&s.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');s.useCORSPreflightFlag=!0}let w=h;if(u==null&&l!=null){if(qh(A))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let I=new TransformStream;l.stream.pipeThrough(I),w={source:l.source,length:l.length,stream:I.readable}}this[z].body=w}get method(){return S.brandCheck(this,e),this[z].method}get url(){return S.brandCheck(this,e),Qb(this[z].url)}get headers(){return S.brandCheck(this,e),this[xA]}get destination(){return S.brandCheck(this,e),this[z].destination}get referrer(){return S.brandCheck(this,e),this[z].referrer==="no-referrer"?"":this[z].referrer==="client"?"about:client":this[z].referrer.toString()}get referrerPolicy(){return S.brandCheck(this,e),this[z].referrerPolicy}get mode(){return S.brandCheck(this,e),this[z].mode}get credentials(){return this[z].credentials}get cache(){return S.brandCheck(this,e),this[z].cache}get redirect(){return S.brandCheck(this,e),this[z].redirect}get integrity(){return S.brandCheck(this,e),this[z].integrity}get keepalive(){return S.brandCheck(this,e),this[z].keepalive}get isReloadNavigation(){return S.brandCheck(this,e),this[z].reloadNavigation}get isHistoryNavigation(){return S.brandCheck(this,e),this[z].historyNavigation}get signal(){return S.brandCheck(this,e),this[hi]}get body(){return S.brandCheck(this,e),this[z].body?this[z].body.stream:null}get bodyUsed(){return S.brandCheck(this,e),!!this[z].body&&ui.isDisturbed(this[z].body.stream)}get duplex(){return S.brandCheck(this,e),"half"}clone(){if(S.brandCheck(this,e),qh(this))throw new TypeError("unusable");let A=eC(this[z]),t=new AbortController;if(this.signal.aborted)t.abort(this.signal.reason);else{let r=di.get(this.signal);r===void 0&&(r=new Set,di.set(this.signal,r));let s=new WeakRef(t);r.add(s),ui.addAbortListener(t.signal,zh(s))}return tC(A,t.signal,$S(this[xA]))}[Wh.inspect.custom](A,t){t.depth===null&&(t.depth=2),t.colors??=!0;let r={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${Wh.formatWithOptions(t,r)}`}};XS(et);function wi(e){return{method:e.method??"GET",localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??"",window:e.window??"client",keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??"all",initiator:e.initiator??"",destination:e.destination??"",priority:e.priority??null,origin:e.origin??"client",policyContainer:e.policyContainer??"client",referrer:e.referrer??"client",referrerPolicy:e.referrerPolicy??"",mode:e.mode??"no-cors",useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??"same-origin",useCredentials:e.useCredentials??!1,cache:e.cache??"default",redirect:e.redirect??"follow",integrity:e.integrity??"",cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??"",parserMetadata:e.parserMetadata??"",reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new Ci(e.headersList):new Ci}}function eC(e){let A=wi({...e,body:null});return e.body!=null&&(A.body=zS(A,e.body)),A}function tC(e,A,t){let r=new et(fi);return r[z]=e,r[hi]=A,r[xA]=new $h(fi),jh(r[xA],e.headersList),ug(r[xA],t),r}Object.defineProperties(et.prototype,{method:aA,url:aA,headers:aA,redirect:aA,clone:aA,signal:aA,duplex:aA,destination:aA,body:aA,bodyUsed:aA,isHistoryNavigation:aA,isReloadNavigation:aA,keepalive:aA,integrity:aA,cache:aA,credentials:aA,attribute:aA,referrerPolicy:aA,referrer:aA,mode:aA,[Symbol.toStringTag]:{value:"Request",configurable:!0}});S.converters.Request=S.interfaceConverter(et);S.converters.RequestInfo=function(e,A,t){return typeof e=="string"?S.converters.USVString(e,A,t):e instanceof et?S.converters.Request(e,A,t):S.converters.USVString(e,A,t)};S.converters.AbortSignal=S.interfaceConverter(AbortSignal);S.converters.RequestInit=S.dictionaryConverter([{key:"method",converter:S.converters.ByteString},{key:"headers",converter:S.converters.HeadersInit},{key:"body",converter:S.nullableConverter(S.converters.BodyInit)},{key:"referrer",converter:S.converters.USVString},{key:"referrerPolicy",converter:S.converters.DOMString,allowedValues:rb},{key:"mode",converter:S.converters.DOMString,allowedValues:nb},{key:"credentials",converter:S.converters.DOMString,allowedValues:ib},{key:"cache",converter:S.converters.DOMString,allowedValues:ob},{key:"redirect",converter:S.converters.DOMString,allowedValues:sb},{key:"integrity",converter:S.converters.DOMString},{key:"keepalive",converter:S.converters.boolean},{key:"signal",converter:S.nullableConverter(e=>S.converters.AbortSignal(e,"RequestInit","signal",{strict:!1}))},{key:"window",converter:S.converters.any},{key:"duplex",converter:S.converters.DOMString,allowedValues:ab},{key:"dispatcher",converter:S.converters.any}]);rC.exports={Request:et,makeRequest:wi,fromInnerRequest:tC,cloneRequest:eC}});var ds=B((pv,CC)=>{"use strict";var{makeNetworkError:q,makeAppropriateNetworkError:pi,filterResponse:hg,makeResponse:yi,fromInnerResponse:Ib}=Cs(),{HeadersList:sC}=mt(),{Request:ub,cloneRequest:hb}=pr(),tt=require("zlib"),{bytesMatch:Cb,makePolicyContainer:fb,clonePolicyContainer:db,requestBadPort:wb,TAOCheck:pb,appendRequestOriginHeader:yb,responseLocationURL:Db,requestCurrentURL:de,setRequestReferrerPolicyOnRedirect:mb,tryUpgradeRequestToAPotentiallyTrustworthyURL:Rb,createOpaqueTimingInfo:pg,appendFetchMetadata:Fb,corsCheck:kb,crossOriginResourcePolicyCheck:Nb,determineRequestsReferrer:Sb,coarsenedSharedCurrentTime:fs,createDeferredPromise:bb,isBlobLike:Ub,sameOrigin:wg,isCancelled:Ft,isAborted:nC,isErrorLike:Mb,fullyReadBody:Lb,readableStreamClose:Tb,isomorphicEncode:Di,urlIsLocal:xb,urlIsHttpHttpsScheme:yg,urlHasHttpsScheme:Gb,clampAndCoarsenConnectionTimingInfo:Yb,simpleRangeHeaderValue:Jb,buildContentRange:vb,createInflate:Hb,extractMimeType:Vb}=bA(),{kState:cC,kDispatcher:qb}=qe(),kt=require("assert"),{safelyExtractBody:Dg,extractBody:iC}=Ar(),{redirectStatusSet:gC,nullBodyStatus:QC,safeMethodsSet:Ob,requestBodyHeader:Wb,subresourceSet:Pb}=Hr(),_b=require("events"),{Readable:Zb,pipeline:Xb,finished:zb}=require("stream"),{addAbortListener:Kb,isErrored:$b,isReadable:mi,bufferToLowerCasedHeaderName:oC}=x(),{dataURLProcessor:jb,serializeAMimeType:AU,minimizeSupportedMimeType:eU}=mA(),{getGlobalDispatcher:tU}=ai(),{webidl:rU}=EA(),{STATUS_CODES:sU}=require("http"),nU=["GET","HEAD"],iU=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",Cg,Ri=class extends _b{constructor(A){super(),this.dispatcher=A,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(A){this.state==="ongoing"&&(this.state="terminated",this.connection?.destroy(A),this.emit("terminated",A))}abort(A){this.state==="ongoing"&&(this.state="aborted",A||(A=new DOMException("The operation was aborted.","AbortError")),this.serializedAbortReason=A,this.connection?.destroy(A),this.emit("terminated",A))}};function oU(e){EC(e,"fetch")}function aU(e,A=void 0){rU.argumentLengthCheck(arguments,1,"globalThis.fetch");let t=bb(),r;try{r=new ub(e,A)}catch(g){return t.reject(g),t.promise}let s=r[cC];if(r.signal.aborted)return fg(t,s,null,r.signal.reason),t.promise;s.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(s.serviceWorkers="none");let i=null,o=!1,a=null;return Kb(r.signal,()=>{o=!0,kt(a!=null),a.abort(r.signal.reason);let g=i?.deref();fg(t,s,g,r.signal.reason)}),a=BC({request:s,processResponseEndOfBody:oU,processResponse:g=>{if(!o){if(g.aborted){fg(t,s,i,a.serializedAbortReason);return}if(g.type==="error"){t.reject(new TypeError("fetch failed",{cause:g.error}));return}i=new WeakRef(Ib(g,"immutable")),t.resolve(i.deref()),t=null}},dispatcher:r[qb]}),t.promise}function EC(e,A="other"){if(e.type==="error"&&e.aborted||!e.urlList?.length)return;let t=e.urlList[0],r=e.timingInfo,s=e.cacheState;yg(t)&&r!==null&&(e.timingAllowPassed||(r=pg({startTime:r.startTime}),s=""),r.endTime=fs(),e.timingInfo=r,lC(r,t.href,A,globalThis,s))}var lC=performance.markResourceTiming;function fg(e,A,t,r){if(e&&e.reject(r),A.body!=null&&mi(A.body?.stream)&&A.body.stream.cancel(r).catch(n=>{if(n.code!=="ERR_INVALID_STATE")throw n}),t==null)return;let s=t[cC];s.body!=null&&mi(s.body?.stream)&&s.body.stream.cancel(r).catch(n=>{if(n.code!=="ERR_INVALID_STATE")throw n})}function BC({request:e,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseEndOfBody:s,processResponseConsumeBody:n,useParallelQueue:i=!1,dispatcher:o=tU()}){kt(o);let a=null,c=!1;e.client!=null&&(a=e.client.globalObject,c=e.client.crossOriginIsolatedCapability);let g=fs(c),Q=pg({startTime:g}),E={controller:new Ri(o),request:e,timingInfo:Q,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseConsumeBody:n,processResponseEndOfBody:s,taskDestination:a,crossOriginIsolatedCapability:c};return kt(!e.body||e.body.stream),e.window==="client"&&(e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"),e.origin==="client"&&(e.origin=e.client.origin),e.policyContainer==="client"&&(e.client!=null?e.policyContainer=db(e.client.policyContainer):e.policyContainer=fb()),e.headersList.contains("accept",!0)||e.headersList.append("accept","*/*",!0),e.headersList.contains("accept-language",!0)||e.headersList.append("accept-language","*",!0),e.priority,Pb.has(e.destination),IC(E).catch(l=>{E.controller.terminate(l)}),E.controller}async function IC(e,A=!1){let t=e.request,r=null;if(t.localURLsOnly&&!xb(de(t))&&(r=q("local URLs only")),Rb(t),wb(t)==="blocked"&&(r=q("bad port")),t.referrerPolicy===""&&(t.referrerPolicy=t.policyContainer.referrerPolicy),t.referrer!=="no-referrer"&&(t.referrer=Sb(t)),r===null&&(r=await(async()=>{let n=de(t);return wg(n,t.url)&&t.responseTainting==="basic"||n.protocol==="data:"||t.mode==="navigate"||t.mode==="websocket"?(t.responseTainting="basic",await aC(e)):t.mode==="same-origin"?q('request mode cannot be "same-origin"'):t.mode==="no-cors"?t.redirect!=="follow"?q('redirect mode cannot be "follow" for "no-cors" request'):(t.responseTainting="opaque",await aC(e)):yg(de(t))?(t.responseTainting="cors",await uC(e)):q("URL scheme must be a HTTP(S) scheme")})()),A)return r;r.status!==0&&!r.internalResponse&&(t.responseTainting,t.responseTainting==="basic"?r=hg(r,"basic"):t.responseTainting==="cors"?r=hg(r,"cors"):t.responseTainting==="opaque"?r=hg(r,"opaque"):kt(!1));let s=r.status===0?r:r.internalResponse;if(s.urlList.length===0&&s.urlList.push(...t.urlList),t.timingAllowFailed||(r.timingAllowPassed=!0),r.type==="opaque"&&s.status===206&&s.rangeRequested&&!t.headers.contains("range",!0)&&(r=s=q()),r.status!==0&&(t.method==="HEAD"||t.method==="CONNECT"||QC.includes(s.status))&&(s.body=null,e.controller.dump=!0),t.integrity){let n=o=>dg(e,q(o));if(t.responseTainting==="opaque"||r.body==null){n(r.error);return}let i=o=>{if(!Cb(o,t.integrity)){n("integrity mismatch");return}r.body=Dg(o)[0],dg(e,r)};await Lb(r.body,i,n)}else dg(e,r)}function aC(e){if(Ft(e)&&e.request.redirectCount===0)return Promise.resolve(pi(e));let{request:A}=e,{protocol:t}=de(A);switch(t){case"about:":return Promise.resolve(q("about scheme is not supported"));case"blob:":{Cg||(Cg=require("buffer").resolveObjectURL);let r=de(A);if(r.search.length!==0)return Promise.resolve(q("NetworkError when attempting to fetch resource."));let s=Cg(r.toString());if(A.method!=="GET"||!Ub(s))return Promise.resolve(q("invalid method"));let n=yi(),i=s.size,o=Di(`${i}`),a=s.type;if(A.headersList.contains("range",!0)){n.rangeRequested=!0;let c=A.headersList.get("range",!0),g=Jb(c,!0);if(g==="failure")return Promise.resolve(q("failed to fetch the data URL"));let{rangeStartValue:Q,rangeEndValue:E}=g;if(Q===null)Q=i-E,E=Q+E-1;else{if(Q>=i)return Promise.resolve(q("Range start is greater than the blob's size."));(E===null||E>=i)&&(E=i-1)}let l=s.slice(Q,E,a),u=iC(l);n.body=u[0];let h=Di(`${l.size}`),w=vb(Q,E,i);n.status=206,n.statusText="Partial Content",n.headersList.set("content-length",h,!0),n.headersList.set("content-type",a,!0),n.headersList.set("content-range",w,!0)}else{let c=iC(s);n.statusText="OK",n.body=c[0],n.headersList.set("content-length",o,!0),n.headersList.set("content-type",a,!0)}return Promise.resolve(n)}case"data:":{let r=de(A),s=jb(r);if(s==="failure")return Promise.resolve(q("failed to fetch the data URL"));let n=AU(s.mimeType);return Promise.resolve(yi({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Dg(s.body)[0]}))}case"file:":return Promise.resolve(q("not implemented... yet..."));case"http:":case"https:":return uC(e).catch(r=>q(r));default:return Promise.resolve(q("unknown scheme"))}}function cU(e,A){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(A))}function dg(e,A){let t=e.timingInfo,r=()=>{let n=Date.now();e.request.destination==="document"&&(e.controller.fullTimingInfo=t),e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!=="https:")return;t.endTime=n;let o=A.cacheState,a=A.bodyInfo;A.timingAllowPassed||(t=pg(t),o="");let c=0;if(e.request.mode!=="navigator"||!A.hasCrossOriginRedirects){c=A.status;let g=Vb(A.headersList);g!=="failure"&&(a.contentType=eU(g))}e.request.initiatorType!=null&&lC(t,e.request.url.href,e.request.initiatorType,globalThis,o,a,c)};let i=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(A)),e.request.initiatorType!=null&&e.controller.reportTimingSteps()};queueMicrotask(()=>i())};e.processResponse!=null&&queueMicrotask(()=>{e.processResponse(A),e.processResponse=null});let s=A.type==="error"?A:A.internalResponse??A;s.body==null?r():zb(s.body.stream,()=>{r()})}async function uC(e){let A=e.request,t=null,r=null,s=e.timingInfo;if(A.serviceWorkers,t===null){if(A.redirect==="follow"&&(A.serviceWorkers="none"),r=t=await hC(e),A.responseTainting==="cors"&&kb(A,t)==="failure")return q("cors failure");pb(A,t)==="failure"&&(A.timingAllowFailed=!0)}return(A.responseTainting==="opaque"||t.type==="opaque")&&Nb(A.origin,A.client,A.destination,r)==="blocked"?q("blocked"):(gC.has(r.status)&&(A.redirect!=="manual"&&e.controller.connection.destroy(void 0,!1),A.redirect==="error"?t=q("unexpected redirect"):A.redirect==="manual"?t=r:A.redirect==="follow"?t=await gU(e,t):kt(!1)),t.timingInfo=s,t)}function gU(e,A){let t=e.request,r=A.internalResponse?A.internalResponse:A,s;try{if(s=Db(r,de(t).hash),s==null)return A}catch(i){return Promise.resolve(q(i))}if(!yg(s))return Promise.resolve(q("URL scheme must be a HTTP(S) scheme"));if(t.redirectCount===20)return Promise.resolve(q("redirect count exceeded"));if(t.redirectCount+=1,t.mode==="cors"&&(s.username||s.password)&&!wg(t,s))return Promise.resolve(q('cross origin not allowed for request mode "cors"'));if(t.responseTainting==="cors"&&(s.username||s.password))return Promise.resolve(q('URL cannot contain credentials for request mode "cors"'));if(r.status!==303&&t.body!=null&&t.body.source==null)return Promise.resolve(q());if([301,302].includes(r.status)&&t.method==="POST"||r.status===303&&!nU.includes(t.method)){t.method="GET",t.body=null;for(let i of Wb)t.headersList.delete(i)}wg(de(t),s)||(t.headersList.delete("authorization",!0),t.headersList.delete("proxy-authorization",!0),t.headersList.delete("cookie",!0),t.headersList.delete("host",!0)),t.body!=null&&(kt(t.body.source!=null),t.body=Dg(t.body.source)[0]);let n=e.timingInfo;return n.redirectEndTime=n.postRedirectStartTime=fs(e.crossOriginIsolatedCapability),n.redirectStartTime===0&&(n.redirectStartTime=n.startTime),t.urlList.push(s),mb(t,r),IC(e,!0)}async function hC(e,A=!1,t=!1){let r=e.request,s=null,n=null,i=null,o=null,a=!1;r.window==="no-window"&&r.redirect==="error"?(s=e,n=r):(n=hb(r),s={...e},s.request=n);let c=r.credentials==="include"||r.credentials==="same-origin"&&r.responseTainting==="basic",g=n.body?n.body.length:null,Q=null;if(n.body==null&&["POST","PUT"].includes(n.method)&&(Q="0"),g!=null&&(Q=Di(`${g}`)),Q!=null&&n.headersList.append("content-length",Q,!0),g!=null&&n.keepalive,n.referrer instanceof URL&&n.headersList.append("referer",Di(n.referrer.href),!0),yb(n),Fb(n),n.headersList.contains("user-agent",!0)||n.headersList.append("user-agent",iU),n.cache==="default"&&(n.headersList.contains("if-modified-since",!0)||n.headersList.contains("if-none-match",!0)||n.headersList.contains("if-unmodified-since",!0)||n.headersList.contains("if-match",!0)||n.headersList.contains("if-range",!0))&&(n.cache="no-store"),n.cache==="no-cache"&&!n.preventNoCacheCacheControlHeaderModification&&!n.headersList.contains("cache-control",!0)&&n.headersList.append("cache-control","max-age=0",!0),(n.cache==="no-store"||n.cache==="reload")&&(n.headersList.contains("pragma",!0)||n.headersList.append("pragma","no-cache",!0),n.headersList.contains("cache-control",!0)||n.headersList.append("cache-control","no-cache",!0)),n.headersList.contains("range",!0)&&n.headersList.append("accept-encoding","identity",!0),n.headersList.contains("accept-encoding",!0)||(Gb(de(n))?n.headersList.append("accept-encoding","br, gzip, deflate",!0):n.headersList.append("accept-encoding","gzip, deflate",!0)),n.headersList.delete("host",!0),o==null&&(n.cache="no-store"),n.cache!=="no-store"&&n.cache,i==null){if(n.cache==="only-if-cached")return q("only if cached");let E=await QU(s,c,t);!Ob.has(n.method)&&E.status>=200&&E.status<=399,a&&E.status,i==null&&(i=E)}if(i.urlList=[...n.urlList],n.headersList.contains("range",!0)&&(i.rangeRequested=!0),i.requestIncludesCredentials=c,i.status===407)return r.window==="no-window"?q():Ft(e)?pi(e):q("proxy authentication required");if(i.status===421&&!t&&(r.body==null||r.body.source!=null)){if(Ft(e))return pi(e);e.controller.connection.destroy(),i=await hC(e,A,!0)}return i}async function QU(e,A=!1,t=!1){kt(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(u,h=!0){this.destroyed||(this.destroyed=!0,h&&this.abort?.(u??new DOMException("The operation was aborted.","AbortError")))}};let r=e.request,s=null,n=e.timingInfo;null==null&&(r.cache="no-store");let o=t?"yes":"no";r.mode;let a=null;if(r.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(r.body!=null){let u=async function*(I){Ft(e)||(yield I,e.processRequestBodyChunkLength?.(I.byteLength))},h=()=>{Ft(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},w=I=>{Ft(e)||(I.name==="AbortError"?e.controller.abort():e.controller.terminate(I))};a=(async function*(){try{for await(let I of r.body.stream)yield*u(I);h()}catch(I){w(I)}})()}try{let{body:u,status:h,statusText:w,headersList:I,socket:d}=await l({body:a});if(d)s=yi({status:h,statusText:w,headersList:I,socket:d});else{let R=u[Symbol.asyncIterator]();e.controller.next=()=>R.next(),s=yi({status:h,statusText:w,headersList:I})}}catch(u){return u.name==="AbortError"?(e.controller.connection.destroy(),pi(e,u)):q(u)}let c=async()=>{await e.controller.resume()},g=u=>{Ft(e)||e.controller.abort(u)},Q=new ReadableStream({async start(u){e.controller.controller=u},async pull(u){await c(u)},async cancel(u){await g(u)},type:"bytes"});s.body={stream:Q,source:null,length:null},e.controller.onAborted=E,e.controller.on("terminated",E),e.controller.resume=async()=>{for(;;){let u,h;try{let{done:I,value:d}=await e.controller.next();if(nC(e))break;u=I?void 0:d}catch(I){e.controller.ended&&!n.encodedBodySize?u=void 0:(u=I,h=!0)}if(u===void 0){Tb(e.controller.controller),cU(e,s);return}if(n.decodedBodySize+=u?.byteLength??0,h){e.controller.terminate(u);return}let w=new Uint8Array(u);if(w.byteLength&&e.controller.controller.enqueue(w),$b(Q)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function E(u){nC(e)?(s.aborted=!0,mi(Q)&&e.controller.controller.error(e.controller.serializedAbortReason)):mi(Q)&&e.controller.controller.error(new TypeError("terminated",{cause:Mb(u)?u:void 0})),e.controller.connection.destroy()}return s;function l({body:u}){let h=de(r),w=e.controller.dispatcher;return new Promise((I,d)=>w.dispatch({path:h.pathname+h.search,origin:h.origin,method:r.method,body:w.isMockActive?r.body&&(r.body.source||r.body.stream):u,headers:r.headersList.entries,maxRedirections:0,upgrade:r.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(R){let{connection:F}=e.controller;n.finalConnectionTimingInfo=Yb(void 0,n.postRedirectStartTime,e.crossOriginIsolatedCapability),F.destroyed?R(new DOMException("The operation was aborted.","AbortError")):(e.controller.on("terminated",R),this.abort=F.abort=R),n.finalNetworkRequestStartTime=fs(e.crossOriginIsolatedCapability)},onResponseStarted(){n.finalNetworkResponseStartTime=fs(e.crossOriginIsolatedCapability)},onHeaders(R,F,P,rA){if(R<200)return;let eA="",ce=new sC;for(let DA=0;DAMQ)return d(new Error(`too many content-encodings in response: ${He.length}, maximum allowed is ${MQ}`)),!0;for(let wo=He.length-1;wo>=0;--wo){let Ks=He[wo].trim();if(Ks==="x-gzip"||Ks==="gzip")De.push(tt.createGunzip({flush:tt.constants.Z_SYNC_FLUSH,finishFlush:tt.constants.Z_SYNC_FLUSH}));else if(Ks==="deflate")De.push(Hb({flush:tt.constants.Z_SYNC_FLUSH,finishFlush:tt.constants.Z_SYNC_FLUSH}));else if(Ks==="br")De.push(tt.createBrotliDecompress({flush:tt.constants.BROTLI_OPERATION_FLUSH,finishFlush:tt.constants.BROTLI_OPERATION_FLUSH}));else{De.length=0;break}}}let ve=this.onError.bind(this);return I({status:R,statusText:rA,headersList:ce,body:De.length?Xb(this.body,...De,DA=>{DA&&this.onError(DA)}).on("error",ve):this.body.on("error",ve)}),!0},onData(R){if(e.controller.dump)return;let F=R;return n.encodedBodySize+=F.byteLength,this.body.push(F)},onComplete(){this.abort&&e.controller.off("terminated",this.abort),e.controller.onAborted&&e.controller.off("terminated",e.controller.onAborted),e.controller.ended=!0,this.body.push(null)},onError(R){this.abort&&e.controller.off("terminated",this.abort),this.body?.destroy(R),e.controller.terminate(R),d(R)},onUpgrade(R,F,P){if(R!==101)return;let rA=new sC;for(let eA=0;eA{"use strict";fC.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var wC=B((Dv,dC)=>{"use strict";var{webidl:GA}=EA(),Fi=Symbol("ProgressEvent state"),Rg=class e extends Event{constructor(A,t={}){A=GA.converters.DOMString(A,"ProgressEvent constructor","type"),t=GA.converters.ProgressEventInit(t??{}),super(A,t),this[Fi]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return GA.brandCheck(this,e),this[Fi].lengthComputable}get loaded(){return GA.brandCheck(this,e),this[Fi].loaded}get total(){return GA.brandCheck(this,e),this[Fi].total}};GA.converters.ProgressEventInit=GA.dictionaryConverter([{key:"lengthComputable",converter:GA.converters.boolean,defaultValue:()=>!1},{key:"loaded",converter:GA.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:GA.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:GA.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:GA.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:GA.converters.boolean,defaultValue:()=>!1}]);dC.exports={ProgressEvent:Rg}});var yC=B((mv,pC)=>{"use strict";function EU(e){if(!e)return"failure";switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}pC.exports={getEncoding:EU}});var bC=B((Rv,SC)=>{"use strict";var{kState:yr,kError:Fg,kResult:DC,kAborted:ws,kLastProgressEventFired:kg}=mg(),{ProgressEvent:lU}=wC(),{getEncoding:mC}=yC(),{serializeAMimeType:BU,parseMIMEType:RC}=mA(),{types:IU}=require("util"),{StringDecoder:FC}=require("string_decoder"),{btoa:kC}=require("buffer"),uU={enumerable:!0,writable:!1,configurable:!1};function hU(e,A,t,r){if(e[yr]==="loading")throw new DOMException("Invalid state","InvalidStateError");e[yr]="loading",e[DC]=null,e[Fg]=null;let n=A.stream().getReader(),i=[],o=n.read(),a=!0;(async()=>{for(;!e[ws];)try{let{done:c,value:g}=await o;if(a&&!e[ws]&&queueMicrotask(()=>{rt("loadstart",e)}),a=!1,!c&&IU.isUint8Array(g))i.push(g),(e[kg]===void 0||Date.now()-e[kg]>=50)&&!e[ws]&&(e[kg]=Date.now(),queueMicrotask(()=>{rt("progress",e)})),o=n.read();else if(c){queueMicrotask(()=>{e[yr]="done";try{let Q=CU(i,t,A.type,r);if(e[ws])return;e[DC]=Q,rt("load",e)}catch(Q){e[Fg]=Q,rt("error",e)}e[yr]!=="loading"&&rt("loadend",e)});break}}catch(c){if(e[ws])return;queueMicrotask(()=>{e[yr]="done",e[Fg]=c,rt("error",e),e[yr]!=="loading"&&rt("loadend",e)});break}})()}function rt(e,A){let t=new lU(e,{bubbles:!1,cancelable:!1});A.dispatchEvent(t)}function CU(e,A,t,r){switch(A){case"DataURL":{let s="data:",n=RC(t||"application/octet-stream");n!=="failure"&&(s+=BU(n)),s+=";base64,";let i=new FC("latin1");for(let o of e)s+=kC(i.write(o));return s+=kC(i.end()),s}case"Text":{let s="failure";if(r&&(s=mC(r)),s==="failure"&&t){let n=RC(t);n!=="failure"&&(s=mC(n.parameters.get("charset")))}return s==="failure"&&(s="UTF-8"),fU(e,s)}case"ArrayBuffer":return NC(e).buffer;case"BinaryString":{let s="",n=new FC("latin1");for(let i of e)s+=n.write(i);return s+=n.end(),s}}}function fU(e,A){let t=NC(e),r=dU(t),s=0;r!==null&&(A=r,s=r==="UTF-8"?3:2);let n=t.slice(s);return new TextDecoder(A).decode(n)}function dU(e){let[A,t,r]=e;return A===239&&t===187&&r===191?"UTF-8":A===254&&t===255?"UTF-16BE":A===255&&t===254?"UTF-16LE":null}function NC(e){let A=e.reduce((r,s)=>r+s.byteLength,0),t=0;return e.reduce((r,s)=>(r.set(s,t),t+=s.byteLength,r),new Uint8Array(A))}SC.exports={staticPropertyDescriptors:uU,readOperation:hU,fireAProgressEvent:rt}});var TC=B((Fv,LC)=>{"use strict";var{staticPropertyDescriptors:Dr,readOperation:ki,fireAProgressEvent:UC}=bC(),{kState:Nt,kError:MC,kResult:Ni,kEvents:H,kAborted:wU}=mg(),{webidl:O}=EA(),{kEnumerableProperty:kA}=x(),ie=class e extends EventTarget{constructor(){super(),this[Nt]="empty",this[Ni]=null,this[MC]=null,this[H]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(A){O.brandCheck(this,e),O.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),A=O.converters.Blob(A,{strict:!1}),ki(this,A,"ArrayBuffer")}readAsBinaryString(A){O.brandCheck(this,e),O.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),A=O.converters.Blob(A,{strict:!1}),ki(this,A,"BinaryString")}readAsText(A,t=void 0){O.brandCheck(this,e),O.argumentLengthCheck(arguments,1,"FileReader.readAsText"),A=O.converters.Blob(A,{strict:!1}),t!==void 0&&(t=O.converters.DOMString(t,"FileReader.readAsText","encoding")),ki(this,A,"Text",t)}readAsDataURL(A){O.brandCheck(this,e),O.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),A=O.converters.Blob(A,{strict:!1}),ki(this,A,"DataURL")}abort(){if(this[Nt]==="empty"||this[Nt]==="done"){this[Ni]=null;return}this[Nt]==="loading"&&(this[Nt]="done",this[Ni]=null),this[wU]=!0,UC("abort",this),this[Nt]!=="loading"&&UC("loadend",this)}get readyState(){switch(O.brandCheck(this,e),this[Nt]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return O.brandCheck(this,e),this[Ni]}get error(){return O.brandCheck(this,e),this[MC]}get onloadend(){return O.brandCheck(this,e),this[H].loadend}set onloadend(A){O.brandCheck(this,e),this[H].loadend&&this.removeEventListener("loadend",this[H].loadend),typeof A=="function"?(this[H].loadend=A,this.addEventListener("loadend",A)):this[H].loadend=null}get onerror(){return O.brandCheck(this,e),this[H].error}set onerror(A){O.brandCheck(this,e),this[H].error&&this.removeEventListener("error",this[H].error),typeof A=="function"?(this[H].error=A,this.addEventListener("error",A)):this[H].error=null}get onloadstart(){return O.brandCheck(this,e),this[H].loadstart}set onloadstart(A){O.brandCheck(this,e),this[H].loadstart&&this.removeEventListener("loadstart",this[H].loadstart),typeof A=="function"?(this[H].loadstart=A,this.addEventListener("loadstart",A)):this[H].loadstart=null}get onprogress(){return O.brandCheck(this,e),this[H].progress}set onprogress(A){O.brandCheck(this,e),this[H].progress&&this.removeEventListener("progress",this[H].progress),typeof A=="function"?(this[H].progress=A,this.addEventListener("progress",A)):this[H].progress=null}get onload(){return O.brandCheck(this,e),this[H].load}set onload(A){O.brandCheck(this,e),this[H].load&&this.removeEventListener("load",this[H].load),typeof A=="function"?(this[H].load=A,this.addEventListener("load",A)):this[H].load=null}get onabort(){return O.brandCheck(this,e),this[H].abort}set onabort(A){O.brandCheck(this,e),this[H].abort&&this.removeEventListener("abort",this[H].abort),typeof A=="function"?(this[H].abort=A,this.addEventListener("abort",A)):this[H].abort=null}};ie.EMPTY=ie.prototype.EMPTY=0;ie.LOADING=ie.prototype.LOADING=1;ie.DONE=ie.prototype.DONE=2;Object.defineProperties(ie.prototype,{EMPTY:Dr,LOADING:Dr,DONE:Dr,readAsArrayBuffer:kA,readAsBinaryString:kA,readAsText:kA,readAsDataURL:kA,abort:kA,readyState:kA,result:kA,error:kA,onloadstart:kA,onprogress:kA,onload:kA,onabort:kA,onerror:kA,onloadend:kA,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(ie,{EMPTY:Dr,LOADING:Dr,DONE:Dr});LC.exports={FileReader:ie}});var Si=B((kv,xC)=>{"use strict";xC.exports={kConstruct:$().kConstruct}});var JC=B((Nv,YC)=>{"use strict";var pU=require("assert"),{URLSerializer:GC}=mA(),{isValidHeaderName:yU}=bA();function DU(e,A,t=!1){let r=GC(e,t),s=GC(A,t);return r===s}function mU(e){pU(e!==null);let A=[];for(let t of e.split(","))t=t.trim(),yU(t)&&A.push(t);return A}YC.exports={urlEquals:DU,getFieldValues:mU}});var VC=B((Sv,HC)=>{"use strict";var{kConstruct:RU}=Si(),{urlEquals:FU,getFieldValues:Ng}=JC(),{kEnumerableProperty:St,isDisturbed:kU}=x(),{webidl:m}=EA(),{Response:NU,cloneResponse:SU,fromInnerResponse:bU}=Cs(),{Request:xe,fromInnerRequest:UU}=pr(),{kState:oe}=qe(),{fetching:MU}=ds(),{urlIsHttpHttpsScheme:bi,createDeferredPromise:mr,readAllBytes:LU}=bA(),Sg=require("assert"),Ui=class e{#A;constructor(){arguments[0]!==RU&&m.illegalConstructor(),m.util.markAsUncloneable(this),this.#A=arguments[1]}async match(A,t={}){m.brandCheck(this,e);let r="Cache.match";m.argumentLengthCheck(arguments,1,r),A=m.converters.RequestInfo(A,r,"request"),t=m.converters.CacheQueryOptions(t,r,"options");let s=this.#t(A,t,1);if(s.length!==0)return s[0]}async matchAll(A=void 0,t={}){m.brandCheck(this,e);let r="Cache.matchAll";return A!==void 0&&(A=m.converters.RequestInfo(A,r,"request")),t=m.converters.CacheQueryOptions(t,r,"options"),this.#t(A,t)}async add(A){m.brandCheck(this,e);let t="Cache.add";m.argumentLengthCheck(arguments,1,t),A=m.converters.RequestInfo(A,t,"request");let r=[A];return await this.addAll(r)}async addAll(A){m.brandCheck(this,e);let t="Cache.addAll";m.argumentLengthCheck(arguments,1,t);let r=[],s=[];for(let E of A){if(E===void 0)throw m.errors.conversionFailed({prefix:t,argument:"Argument 1",types:["undefined is not allowed"]});if(E=m.converters.RequestInfo(E),typeof E=="string")continue;let l=E[oe];if(!bi(l.url)||l.method!=="GET")throw m.errors.exception({header:t,message:"Expected http/s scheme when method is not GET."})}let n=[];for(let E of A){let l=new xe(E)[oe];if(!bi(l.url))throw m.errors.exception({header:t,message:"Expected http/s scheme."});l.initiator="fetch",l.destination="subresource",s.push(l);let u=mr();n.push(MU({request:l,processResponse(h){if(h.type==="error"||h.status===206||h.status<200||h.status>299)u.reject(m.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(h.headersList.contains("vary")){let w=Ng(h.headersList.get("vary"));for(let I of w)if(I==="*"){u.reject(m.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let d of n)d.abort();return}}},processResponseEndOfBody(h){if(h.aborted){u.reject(new DOMException("aborted","AbortError"));return}u.resolve(h)}})),r.push(u.promise)}let o=await Promise.all(r),a=[],c=0;for(let E of o){let l={type:"put",request:s[c],response:E};a.push(l),c++}let g=mr(),Q=null;try{this.#e(a)}catch(E){Q=E}return queueMicrotask(()=>{Q===null?g.resolve(void 0):g.reject(Q)}),g.promise}async put(A,t){m.brandCheck(this,e);let r="Cache.put";m.argumentLengthCheck(arguments,2,r),A=m.converters.RequestInfo(A,r,"request"),t=m.converters.Response(t,r,"response");let s=null;if(A instanceof xe?s=A[oe]:s=new xe(A)[oe],!bi(s.url)||s.method!=="GET")throw m.errors.exception({header:r,message:"Expected an http/s scheme when method is not GET"});let n=t[oe];if(n.status===206)throw m.errors.exception({header:r,message:"Got 206 status"});if(n.headersList.contains("vary")){let l=Ng(n.headersList.get("vary"));for(let u of l)if(u==="*")throw m.errors.exception({header:r,message:"Got * vary field value"})}if(n.body&&(kU(n.body.stream)||n.body.stream.locked))throw m.errors.exception({header:r,message:"Response body is locked or disturbed"});let i=SU(n),o=mr();if(n.body!=null){let u=n.body.stream.getReader();LU(u).then(o.resolve,o.reject)}else o.resolve(void 0);let a=[],c={type:"put",request:s,response:i};a.push(c);let g=await o.promise;i.body!=null&&(i.body.source=g);let Q=mr(),E=null;try{this.#e(a)}catch(l){E=l}return queueMicrotask(()=>{E===null?Q.resolve():Q.reject(E)}),Q.promise}async delete(A,t={}){m.brandCheck(this,e);let r="Cache.delete";m.argumentLengthCheck(arguments,1,r),A=m.converters.RequestInfo(A,r,"request"),t=m.converters.CacheQueryOptions(t,r,"options");let s=null;if(A instanceof xe){if(s=A[oe],s.method!=="GET"&&!t.ignoreMethod)return!1}else Sg(typeof A=="string"),s=new xe(A)[oe];let n=[],i={type:"delete",request:s,options:t};n.push(i);let o=mr(),a=null,c;try{c=this.#e(n)}catch(g){a=g}return queueMicrotask(()=>{a===null?o.resolve(!!c?.length):o.reject(a)}),o.promise}async keys(A=void 0,t={}){m.brandCheck(this,e);let r="Cache.keys";A!==void 0&&(A=m.converters.RequestInfo(A,r,"request")),t=m.converters.CacheQueryOptions(t,r,"options");let s=null;if(A!==void 0)if(A instanceof xe){if(s=A[oe],s.method!=="GET"&&!t.ignoreMethod)return[]}else typeof A=="string"&&(s=new xe(A)[oe]);let n=mr(),i=[];if(A===void 0)for(let o of this.#A)i.push(o[0]);else{let o=this.#s(s,t);for(let a of o)i.push(a[0])}return queueMicrotask(()=>{let o=[];for(let a of i){let c=UU(a,new AbortController().signal,"immutable");o.push(c)}n.resolve(Object.freeze(o))}),n.promise}#e(A){let t=this.#A,r=[...t],s=[],n=[];try{for(let i of A){if(i.type!=="delete"&&i.type!=="put")throw m.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(i.type==="delete"&&i.response!=null)throw m.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#s(i.request,i.options,s).length)throw new DOMException("???","InvalidStateError");let o;if(i.type==="delete"){if(o=this.#s(i.request,i.options),o.length===0)return[];for(let a of o){let c=t.indexOf(a);Sg(c!==-1),t.splice(c,1)}}else if(i.type==="put"){if(i.response==null)throw m.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let a=i.request;if(!bi(a.url))throw m.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(a.method!=="GET")throw m.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(i.options!=null)throw m.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});o=this.#s(i.request);for(let c of o){let g=t.indexOf(c);Sg(g!==-1),t.splice(g,1)}t.push([i.request,i.response]),s.push([i.request,i.response])}n.push([i.request,i.response])}return n}catch(i){throw this.#A.length=0,this.#A=r,i}}#s(A,t,r){let s=[],n=r??this.#A;for(let i of n){let[o,a]=i;this.#r(A,o,a,t)&&s.push(i)}return s}#r(A,t,r=null,s){let n=new URL(A.url),i=new URL(t.url);if(s?.ignoreSearch&&(i.search="",n.search=""),!FU(n,i,!0))return!1;if(r==null||s?.ignoreVary||!r.headersList.contains("vary"))return!0;let o=Ng(r.headersList.get("vary"));for(let a of o){if(a==="*")return!1;let c=t.headersList.get(a),g=A.headersList.get(a);if(c!==g)return!1}return!0}#t(A,t,r=1/0){let s=null;if(A!==void 0)if(A instanceof xe){if(s=A[oe],s.method!=="GET"&&!t.ignoreMethod)return[]}else typeof A=="string"&&(s=new xe(A)[oe]);let n=[];if(A===void 0)for(let o of this.#A)n.push(o[1]);else{let o=this.#s(s,t);for(let a of o)n.push(a[1])}let i=[];for(let o of n){let a=bU(o,"immutable");if(i.push(a.clone()),i.length>=r)break}return Object.freeze(i)}};Object.defineProperties(Ui.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:St,matchAll:St,add:St,addAll:St,put:St,delete:St,keys:St});var vC=[{key:"ignoreSearch",converter:m.converters.boolean,defaultValue:()=>!1},{key:"ignoreMethod",converter:m.converters.boolean,defaultValue:()=>!1},{key:"ignoreVary",converter:m.converters.boolean,defaultValue:()=>!1}];m.converters.CacheQueryOptions=m.dictionaryConverter(vC);m.converters.MultiCacheQueryOptions=m.dictionaryConverter([...vC,{key:"cacheName",converter:m.converters.DOMString}]);m.converters.Response=m.interfaceConverter(NU);m.converters["sequence"]=m.sequenceConverter(m.converters.RequestInfo);HC.exports={Cache:Ui}});var OC=B((bv,qC)=>{"use strict";var{kConstruct:ps}=Si(),{Cache:Mi}=VC(),{webidl:IA}=EA(),{kEnumerableProperty:ys}=x(),Li=class e{#A=new Map;constructor(){arguments[0]!==ps&&IA.illegalConstructor(),IA.util.markAsUncloneable(this)}async match(A,t={}){if(IA.brandCheck(this,e),IA.argumentLengthCheck(arguments,1,"CacheStorage.match"),A=IA.converters.RequestInfo(A),t=IA.converters.MultiCacheQueryOptions(t),t.cacheName!=null){if(this.#A.has(t.cacheName)){let r=this.#A.get(t.cacheName);return await new Mi(ps,r).match(A,t)}}else for(let r of this.#A.values()){let n=await new Mi(ps,r).match(A,t);if(n!==void 0)return n}}async has(A){IA.brandCheck(this,e);let t="CacheStorage.has";return IA.argumentLengthCheck(arguments,1,t),A=IA.converters.DOMString(A,t,"cacheName"),this.#A.has(A)}async open(A){IA.brandCheck(this,e);let t="CacheStorage.open";if(IA.argumentLengthCheck(arguments,1,t),A=IA.converters.DOMString(A,t,"cacheName"),this.#A.has(A)){let s=this.#A.get(A);return new Mi(ps,s)}let r=[];return this.#A.set(A,r),new Mi(ps,r)}async delete(A){IA.brandCheck(this,e);let t="CacheStorage.delete";return IA.argumentLengthCheck(arguments,1,t),A=IA.converters.DOMString(A,t,"cacheName"),this.#A.delete(A)}async keys(){return IA.brandCheck(this,e),[...this.#A.keys()]}};Object.defineProperties(Li.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:ys,has:ys,open:ys,delete:ys,keys:ys});qC.exports={CacheStorage:Li}});var PC=B((Uv,WC)=>{"use strict";WC.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var bg=B((Mv,KC)=>{"use strict";function TU(e){for(let A=0;A=0&&t<=8||t>=10&&t<=31||t===127)return!0}return!1}function _C(e){for(let A=0;A126||t===34||t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===47||t===91||t===93||t===63||t===61||t===123||t===125)throw new Error("Invalid cookie name")}}function ZC(e){let A=e.length,t=0;if(e[0]==='"'){if(A===1||e[A-1]!=='"')throw new Error("Invalid cookie value");--A,++t}for(;t126||r===34||r===44||r===59||r===92)throw new Error("Invalid cookie value")}}function XC(e){for(let A=0;AA.toString().padStart(2,"0"));function zC(e){return typeof e=="number"&&(e=new Date(e)),`${GU[e.getUTCDay()]}, ${Ti[e.getUTCDate()]} ${YU[e.getUTCMonth()]} ${e.getUTCFullYear()} ${Ti[e.getUTCHours()]}:${Ti[e.getUTCMinutes()]}:${Ti[e.getUTCSeconds()]} GMT`}function JU(e){if(e<0)throw new Error("Invalid cookie max-age")}function vU(e){if(e.name.length===0)return null;_C(e.name),ZC(e.value);let A=[`${e.name}=${e.value}`];e.name.startsWith("__Secure-")&&(e.secure=!0),e.name.startsWith("__Host-")&&(e.secure=!0,e.domain=null,e.path="/"),e.secure&&A.push("Secure"),e.httpOnly&&A.push("HttpOnly"),typeof e.maxAge=="number"&&(JU(e.maxAge),A.push(`Max-Age=${e.maxAge}`)),e.domain&&(xU(e.domain),A.push(`Domain=${e.domain}`)),e.path&&(XC(e.path),A.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!=="Invalid Date"&&A.push(`Expires=${zC(e.expires)}`),e.sameSite&&A.push(`SameSite=${e.sameSite}`);for(let t of e.unparsed){if(!t.includes("="))throw new Error("Invalid unparsed");let[r,...s]=t.split("=");A.push(`${r.trim()}=${s.join("=")}`)}return A.join("; ")}KC.exports={isCTLExcludingHtab:TU,validateCookieName:_C,validateCookiePath:XC,validateCookieValue:ZC,toIMFDate:zC,stringify:vU}});var jC=B((Lv,$C)=>{"use strict";var{maxNameValuePairSize:HU,maxAttributeValueSize:VU}=PC(),{isCTLExcludingHtab:qU}=bg(),{collectASequenceOfCodePointsFast:xi}=mA(),OU=require("assert");function WU(e){if(qU(e))return null;let A="",t="",r="",s="";if(e.includes(";")){let n={position:0};A=xi(";",e,n),t=e.slice(n.position)}else A=e;if(!A.includes("="))s=A;else{let n={position:0};r=xi("=",A,n),s=A.slice(n.position+1)}return r=r.trim(),s=s.trim(),r.length+s.length>HU?null:{name:r,value:s,...Rr(t)}}function Rr(e,A={}){if(e.length===0)return A;OU(e[0]===";"),e=e.slice(1);let t="";e.includes(";")?(t=xi(";",e,{position:0}),e=e.slice(t.length)):(t=e,e="");let r="",s="";if(t.includes("=")){let i={position:0};r=xi("=",t,i),s=t.slice(i.position+1)}else r=t;if(r=r.trim(),s=s.trim(),s.length>VU)return Rr(e,A);let n=r.toLowerCase();if(n==="expires"){let i=new Date(s);A.expires=i}else if(n==="max-age"){let i=s.charCodeAt(0);if((i<48||i>57)&&s[0]!=="-"||!/^\d+$/.test(s))return Rr(e,A);let o=Number(s);A.maxAge=o}else if(n==="domain"){let i=s;i[0]==="."&&(i=i.slice(1)),i=i.toLowerCase(),A.domain=i}else if(n==="path"){let i="";s.length===0||s[0]!=="/"?i="/":i=s,A.path=i}else if(n==="secure")A.secure=!0;else if(n==="httponly")A.httpOnly=!0;else if(n==="samesite"){let i="Default",o=s.toLowerCase();o.includes("none")&&(i="None"),o.includes("strict")&&(i="Strict"),o.includes("lax")&&(i="Lax"),A.sameSite=i}else A.unparsed??=[],A.unparsed.push(`${r}=${s}`);return Rr(e,A)}$C.exports={parseSetCookie:WU,parseUnparsedAttributes:Rr}});var tf=B((Tv,ef)=>{"use strict";var{parseSetCookie:PU}=jC(),{stringify:_U}=bg(),{webidl:Y}=EA(),{Headers:Gi}=mt();function ZU(e){Y.argumentLengthCheck(arguments,1,"getCookies"),Y.brandCheck(e,Gi,{strict:!1});let A=e.get("cookie"),t={};if(!A)return t;for(let r of A.split(";")){let[s,...n]=r.split("=");t[s.trim()]=n.join("=")}return t}function XU(e,A,t){Y.brandCheck(e,Gi,{strict:!1});let r="deleteCookie";Y.argumentLengthCheck(arguments,2,r),A=Y.converters.DOMString(A,r,"name"),t=Y.converters.DeleteCookieAttributes(t),Af(e,{name:A,value:"",expires:new Date(0),...t})}function zU(e){Y.argumentLengthCheck(arguments,1,"getSetCookies"),Y.brandCheck(e,Gi,{strict:!1});let A=e.getSetCookie();return A?A.map(t=>PU(t)):[]}function Af(e,A){Y.argumentLengthCheck(arguments,2,"setCookie"),Y.brandCheck(e,Gi,{strict:!1}),A=Y.converters.Cookie(A);let t=_U(A);t&&e.append("Set-Cookie",t)}Y.converters.DeleteCookieAttributes=Y.dictionaryConverter([{converter:Y.nullableConverter(Y.converters.DOMString),key:"path",defaultValue:()=>null},{converter:Y.nullableConverter(Y.converters.DOMString),key:"domain",defaultValue:()=>null}]);Y.converters.Cookie=Y.dictionaryConverter([{converter:Y.converters.DOMString,key:"name"},{converter:Y.converters.DOMString,key:"value"},{converter:Y.nullableConverter(e=>typeof e=="number"?Y.converters["unsigned long long"](e):new Date(e)),key:"expires",defaultValue:()=>null},{converter:Y.nullableConverter(Y.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:Y.nullableConverter(Y.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:Y.nullableConverter(Y.converters.DOMString),key:"path",defaultValue:()=>null},{converter:Y.nullableConverter(Y.converters.boolean),key:"secure",defaultValue:()=>null},{converter:Y.nullableConverter(Y.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:Y.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:Y.sequenceConverter(Y.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);ef.exports={getCookies:ZU,deleteCookie:XU,getSetCookies:zU,setCookie:Af}});var kr=B((xv,sf)=>{"use strict";var{webidl:D}=EA(),{kEnumerableProperty:NA}=x(),{kConstruct:rf}=$(),{MessagePort:KU}=require("worker_threads"),Fr=class e extends Event{#A;constructor(A,t={}){if(A===rf){super(arguments[1],arguments[2]),D.util.markAsUncloneable(this);return}let r="MessageEvent constructor";D.argumentLengthCheck(arguments,1,r),A=D.converters.DOMString(A,r,"type"),t=D.converters.MessageEventInit(t,r,"eventInitDict"),super(A,t),this.#A=t,D.util.markAsUncloneable(this)}get data(){return D.brandCheck(this,e),this.#A.data}get origin(){return D.brandCheck(this,e),this.#A.origin}get lastEventId(){return D.brandCheck(this,e),this.#A.lastEventId}get source(){return D.brandCheck(this,e),this.#A.source}get ports(){return D.brandCheck(this,e),Object.isFrozen(this.#A.ports)||Object.freeze(this.#A.ports),this.#A.ports}initMessageEvent(A,t=!1,r=!1,s=null,n="",i="",o=null,a=[]){return D.brandCheck(this,e),D.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new e(A,{bubbles:t,cancelable:r,data:s,origin:n,lastEventId:i,source:o,ports:a})}static createFastMessageEvent(A,t){let r=new e(rf,A,t);return r.#A=t,r.#A.data??=null,r.#A.origin??="",r.#A.lastEventId??="",r.#A.source??=null,r.#A.ports??=[],r}},{createFastMessageEvent:$U}=Fr;delete Fr.createFastMessageEvent;var Yi=class e extends Event{#A;constructor(A,t={}){let r="CloseEvent constructor";D.argumentLengthCheck(arguments,1,r),A=D.converters.DOMString(A,r,"type"),t=D.converters.CloseEventInit(t),super(A,t),this.#A=t,D.util.markAsUncloneable(this)}get wasClean(){return D.brandCheck(this,e),this.#A.wasClean}get code(){return D.brandCheck(this,e),this.#A.code}get reason(){return D.brandCheck(this,e),this.#A.reason}},Ji=class e extends Event{#A;constructor(A,t){let r="ErrorEvent constructor";D.argumentLengthCheck(arguments,1,r),super(A,t),D.util.markAsUncloneable(this),A=D.converters.DOMString(A,r,"type"),t=D.converters.ErrorEventInit(t??{}),this.#A=t}get message(){return D.brandCheck(this,e),this.#A.message}get filename(){return D.brandCheck(this,e),this.#A.filename}get lineno(){return D.brandCheck(this,e),this.#A.lineno}get colno(){return D.brandCheck(this,e),this.#A.colno}get error(){return D.brandCheck(this,e),this.#A.error}};Object.defineProperties(Fr.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:NA,origin:NA,lastEventId:NA,source:NA,ports:NA,initMessageEvent:NA});Object.defineProperties(Yi.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:NA,code:NA,wasClean:NA});Object.defineProperties(Ji.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:NA,filename:NA,lineno:NA,colno:NA,error:NA});D.converters.MessagePort=D.interfaceConverter(KU);D.converters["sequence"]=D.sequenceConverter(D.converters.MessagePort);var Ug=[{key:"bubbles",converter:D.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:D.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:D.converters.boolean,defaultValue:()=>!1}];D.converters.MessageEventInit=D.dictionaryConverter([...Ug,{key:"data",converter:D.converters.any,defaultValue:()=>null},{key:"origin",converter:D.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:D.converters.DOMString,defaultValue:()=>""},{key:"source",converter:D.nullableConverter(D.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:D.converters["sequence"],defaultValue:()=>new Array(0)}]);D.converters.CloseEventInit=D.dictionaryConverter([...Ug,{key:"wasClean",converter:D.converters.boolean,defaultValue:()=>!1},{key:"code",converter:D.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:D.converters.USVString,defaultValue:()=>""}]);D.converters.ErrorEventInit=D.dictionaryConverter([...Ug,{key:"message",converter:D.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:D.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:D.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:D.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:D.converters.any}]);sf.exports={MessageEvent:Fr,CloseEvent:Yi,ErrorEvent:Ji,createFastMessageEvent:$U}});var bt=B((Gv,nf)=>{"use strict";var jU="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",AM={enumerable:!0,writable:!1,configurable:!1},eM={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},tM={NOT_SENT:0,PROCESSING:1,SENT:2},rM={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},sM=2**16-1,nM={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},iM=Buffer.allocUnsafe(0),oM={string:1,typedArray:2,arrayBuffer:3,blob:4};nf.exports={uid:jU,sentCloseFrameState:tM,staticPropertyDescriptors:AM,states:eM,opcodes:rM,maxUnsigned16Bit:sM,parserStates:nM,emptyBuffer:iM,sendHints:oM}});var Ds=B((Yv,of)=>{"use strict";of.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var Fs=B((Jv,uf)=>{"use strict";var{kReadyState:ms,kController:aM,kResponse:cM,kBinaryType:gM,kWebSocketURL:QM}=Ds(),{states:Rs,opcodes:st}=bt(),{ErrorEvent:EM,createFastMessageEvent:lM}=kr(),{isUtf8:BM}=require("buffer"),{collectASequenceOfCodePointsFast:IM,removeHTTPWhitespace:af}=mA();function uM(e){return e[ms]===Rs.CONNECTING}function hM(e){return e[ms]===Rs.OPEN}function CM(e){return e[ms]===Rs.CLOSING}function fM(e){return e[ms]===Rs.CLOSED}function Mg(e,A,t=(s,n)=>new Event(s,n),r={}){let s=t(e,r);A.dispatchEvent(s)}function dM(e,A,t){if(e[ms]!==Rs.OPEN)return;let r;if(A===st.TEXT)try{r=If(t)}catch{gf(e,"Received invalid UTF-8 in text frame.");return}else A===st.BINARY&&(e[gM]==="blob"?r=new Blob([t]):r=wM(t));Mg("message",e,lM,{origin:e[QM].origin,data:r})}function wM(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function pM(e){if(e.length===0)return!1;for(let A=0;A126||t===34||t===40||t===41||t===44||t===47||t===58||t===59||t===60||t===61||t===62||t===63||t===64||t===91||t===92||t===93||t===123||t===125)return!1}return!0}function yM(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function gf(e,A){let{[aM]:t,[cM]:r}=e;t.abort(),r?.socket&&!r.socket.destroyed&&r.socket.destroy(),A&&Mg("error",e,(s,n)=>new EM(s,n),{error:new Error(A),message:A})}function Qf(e){return e===st.CLOSE||e===st.PING||e===st.PONG}function Ef(e){return e===st.CONTINUATION}function lf(e){return e===st.TEXT||e===st.BINARY}function DM(e){return lf(e)||Ef(e)||Qf(e)}function mM(e){let A={position:0},t=new Map;for(;A.position57)return!1}let A=Number.parseInt(e,10);return A>=8&&A<=15}var Bf=typeof process.versions.icu=="string",cf=Bf?new TextDecoder("utf-8",{fatal:!0}):void 0,If=Bf?cf.decode.bind(cf):function(e){if(BM(e))return e.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};uf.exports={isConnecting:uM,isEstablished:hM,isClosing:CM,isClosed:fM,fireEvent:Mg,isValidSubprotocol:pM,isValidStatusCode:yM,failWebsocketConnection:gf,websocketMessageReceived:dM,utf8Decode:If,isControlFrame:Qf,isContinuationFrame:Ef,isTextBinaryFrame:lf,isValidOpcode:DM,parseExtensions:mM,isValidClientWindowBits:RM}});var Hi=B((vv,hf)=>{"use strict";var{maxUnsigned16Bit:FM}=bt(),vi=16386,Lg,ks=null,Nr=vi;try{Lg=require("crypto")}catch{Lg={randomFillSync:function(A,t,r){for(let s=0;sFM?(i+=8,n=127):s>125&&(i+=2,n=126);let o=Buffer.allocUnsafe(s+i);o[0]=o[1]=0,o[0]|=128,o[0]=(o[0]&240)+A;o[i-4]=r[0],o[i-3]=r[1],o[i-2]=r[2],o[i-1]=r[3],o[1]=n,n===126?o.writeUInt16BE(s,2):n===127&&(o[2]=o[3]=0,o.writeUIntBE(s,4,6)),o[1]|=128;for(let a=0;a{"use strict";var{uid:NM,states:Ns,sentCloseFrameState:Vi,emptyBuffer:SM,opcodes:bM}=bt(),{kReadyState:Ss,kSentClose:qi,kByteParser:ff,kReceivedClose:Cf,kResponse:df}=Ds(),{fireEvent:UM,failWebsocketConnection:nt,isClosing:MM,isClosed:LM,isEstablished:TM,parseExtensions:xM}=Fs(),{channels:Sr}=Ht(),{CloseEvent:GM}=kr(),{makeRequest:YM}=pr(),{fetching:JM}=ds(),{Headers:vM,getHeadersList:HM}=mt(),{getDecodeSplit:VM}=bA(),{WebsocketFrameSend:qM}=Hi(),xg;try{xg=require("crypto")}catch{}function OM(e,A,t,r,s,n){let i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";let o=YM({urlList:[i],client:t,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(n.headers){let Q=HM(new vM(n.headers));o.headersList=Q}let a=xg.randomBytes(16).toString("base64");o.headersList.append("sec-websocket-key",a),o.headersList.append("sec-websocket-version","13");for(let Q of A)o.headersList.append("sec-websocket-protocol",Q);return o.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),JM({request:o,useParallelQueue:!0,dispatcher:n.dispatcher,processResponse(Q){if(Q.type==="error"||Q.status!==101){nt(r,"Received network error or non-101 status code.");return}if(A.length!==0&&!Q.headersList.get("Sec-WebSocket-Protocol")){nt(r,"Server did not respond with sent protocols.");return}if(Q.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){nt(r,'Server did not set Upgrade header to "websocket".');return}if(Q.headersList.get("Connection")?.toLowerCase()!=="upgrade"){nt(r,'Server did not set Connection header to "upgrade".');return}let E=Q.headersList.get("Sec-WebSocket-Accept"),l=xg.createHash("sha1").update(a+NM).digest("base64");if(E!==l){nt(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let u=Q.headersList.get("Sec-WebSocket-Extensions"),h;if(u!==null&&(h=xM(u),!h.has("permessage-deflate"))){nt(r,"Sec-WebSocket-Extensions header does not match.");return}let w=Q.headersList.get("Sec-WebSocket-Protocol");if(w!==null&&!VM("sec-websocket-protocol",o.headersList).includes(w)){nt(r,"Protocol was not set in the opening handshake.");return}Q.socket.on("data",wf),Q.socket.on("close",pf),Q.socket.on("error",yf),Sr.open.hasSubscribers&&Sr.open.publish({address:Q.socket.address(),protocol:w,extensions:u}),s(Q,h)}})}function WM(e,A,t,r){if(!(MM(e)||LM(e)))if(!TM(e))nt(e,"Connection was closed before it was established."),e[Ss]=Ns.CLOSING;else if(e[qi]===Vi.NOT_SENT){e[qi]=Vi.PROCESSING;let s=new qM;A!==void 0&&t===void 0?(s.frameData=Buffer.allocUnsafe(2),s.frameData.writeUInt16BE(A,0)):A!==void 0&&t!==void 0?(s.frameData=Buffer.allocUnsafe(2+r),s.frameData.writeUInt16BE(A,0),s.frameData.write(t,2,"utf-8")):s.frameData=SM,e[df].socket.write(s.createFrame(bM.CLOSE)),e[qi]=Vi.SENT,e[Ss]=Ns.CLOSING}else e[Ss]=Ns.CLOSING}function wf(e){this.ws[ff].write(e)||this.pause()}function pf(){let{ws:e}=this,{[df]:A}=e;A.socket.off("data",wf),A.socket.off("close",pf),A.socket.off("error",yf);let t=e[qi]===Vi.SENT&&e[Cf],r=1005,s="",n=e[ff].closingInfo;n&&!n.error?(r=n.code??1005,s=n.reason):e[Cf]||(r=1006),e[Ss]=Ns.CLOSED,UM("close",e,(i,o)=>new GM(i,o),{wasClean:t,code:r,reason:s}),Sr.close.hasSubscribers&&Sr.close.publish({websocket:e,code:r,reason:s})}function yf(e){let{ws:A}=this;A[Ss]=Ns.CLOSING,Sr.socketError.hasSubscribers&&Sr.socketError.publish(e),this.destroy()}Df.exports={establishWebSocketConnection:OM,closeWebSocketConnection:WM}});var Ff=B((Vv,Rf)=>{"use strict";var{createInflateRaw:PM,Z_DEFAULT_WINDOWBITS:_M}=require("zlib"),{isValidClientWindowBits:ZM}=Fs(),{MessageSizeExceededError:mf}=v(),XM=Buffer.from([0,0,255,255]),Oi=Symbol("kBuffer"),bs=Symbol("kLength"),zM=4*1024*1024,Yg=class{#A;#e={};#s=!1;#r=null;constructor(A){this.#e.serverNoContextTakeover=A.has("server_no_context_takeover"),this.#e.serverMaxWindowBits=A.get("server_max_window_bits")}decompress(A,t,r){if(this.#s){r(new mf);return}if(!this.#A){let s=_M;if(this.#e.serverMaxWindowBits){if(!ZM(this.#e.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}s=Number.parseInt(this.#e.serverMaxWindowBits)}try{this.#A=PM({windowBits:s})}catch(n){r(n);return}this.#A[Oi]=[],this.#A[bs]=0,this.#A.on("data",n=>{if(!this.#s){if(this.#A[bs]+=n.length,this.#A[bs]>zM){if(this.#s=!0,this.#A.removeAllListeners(),this.#A.destroy(),this.#A=null,this.#r){let i=this.#r;this.#r=null,i(new mf)}return}this.#A[Oi].push(n)}}),this.#A.on("error",n=>{this.#A=null,r(n)})}this.#r=r,this.#A.write(A),t&&this.#A.write(XM),this.#A.flush(()=>{if(this.#s||!this.#A)return;let s=Buffer.concat(this.#A[Oi],this.#A[bs]);this.#A[Oi].length=0,this.#A[bs]=0,this.#r=null,r(null,s)})}};Rf.exports={PerMessageDeflate:Yg}});var Gf=B((qv,xf)=>{"use strict";var{Writable:KM}=require("stream"),$M=require("assert"),{parserStates:SA,opcodes:br,states:jM,emptyBuffer:kf,sentCloseFrameState:Nf}=bt(),{kReadyState:AL,kSentClose:Sf,kResponse:bf,kReceivedClose:Uf}=Ds(),{channels:Wi}=Ht(),{isValidStatusCode:eL,isValidOpcode:tL,failWebsocketConnection:YA,websocketMessageReceived:Mf,utf8Decode:rL,isControlFrame:Lf,isTextBinaryFrame:Jg,isContinuationFrame:sL}=Fs(),{WebsocketFrameSend:Tf}=Hi(),{closeWebSocketConnection:nL}=Gg(),{PerMessageDeflate:iL}=Ff(),vg=class extends KM{#A=[];#e=0;#s=!1;#r=SA.INFO;#t={};#n=[];#i;constructor(A,t){super(),this.ws=A,this.#i=t??new Map,this.#i.has("permessage-deflate")&&this.#i.set("permessage-deflate",new iL(t))}_write(A,t,r){this.#A.push(A),this.#e+=A.length,this.#s=!0,this.run(r)}run(A){for(;this.#s;)if(this.#r===SA.INFO){if(this.#e<2)return A();let t=this.consume(2),r=(t[0]&128)!==0,s=t[0]&15,n=(t[1]&128)===128,i=!r&&s!==br.CONTINUATION,o=t[1]&127,a=t[0]&64,c=t[0]&32,g=t[0]&16;if(!tL(s))return YA(this.ws,"Invalid opcode received"),A();if(n)return YA(this.ws,"Frame cannot be masked"),A();if(a!==0&&!this.#i.has("permessage-deflate")){YA(this.ws,"Expected RSV1 to be clear.");return}if(c!==0||g!==0){YA(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(i&&!Jg(s)){YA(this.ws,"Invalid frame type was fragmented.");return}if(Jg(s)&&this.#n.length>0){YA(this.ws,"Expected continuation frame");return}if(this.#t.fragmented&&i){YA(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((o>125||i)&&Lf(s)){YA(this.ws,"Control frame either too large or fragmented");return}if(sL(s)&&this.#n.length===0&&!this.#t.compressed){YA(this.ws,"Unexpected continuation frame");return}o<=125?(this.#t.payloadLength=o,this.#r=SA.READ_DATA):o===126?this.#r=SA.PAYLOADLENGTH_16:o===127&&(this.#r=SA.PAYLOADLENGTH_64),Jg(s)&&(this.#t.binaryType=s,this.#t.compressed=a!==0),this.#t.opcode=s,this.#t.masked=n,this.#t.fin=r,this.#t.fragmented=i}else if(this.#r===SA.PAYLOADLENGTH_16){if(this.#e<2)return A();let t=this.consume(2);this.#t.payloadLength=t.readUInt16BE(0),this.#r=SA.READ_DATA}else if(this.#r===SA.PAYLOADLENGTH_64){if(this.#e<8)return A();let t=this.consume(8),r=t.readUInt32BE(0),s=t.readUInt32BE(4);if(r!==0||s>2**31-1){YA(this.ws,"Received payload length > 2^31 bytes.");return}this.#t.payloadLength=s,this.#r=SA.READ_DATA}else if(this.#r===SA.READ_DATA){if(this.#e{if(r){YA(this.ws,r.message);return}if(this.#n.push(s),!this.#t.fin){this.#r=SA.INFO,this.#s=!0,this.run(A);return}Mf(this.ws,this.#t.binaryType,Buffer.concat(this.#n)),this.#s=!0,this.#r=SA.INFO,this.#n.length=0,this.run(A)}),this.#s=!1;break}else{if(this.#n.push(t),!this.#t.fragmented&&this.#t.fin){let r=Buffer.concat(this.#n);Mf(this.ws,this.#t.binaryType,r),this.#n.length=0}this.#r=SA.INFO}}}consume(A){if(A>this.#e)throw new Error("Called consume() before buffers satiated.");if(A===0)return kf;if(this.#A[0].length===A)return this.#e-=this.#A[0].length,this.#A.shift();let t=Buffer.allocUnsafe(A),r=0;for(;r!==A;){let s=this.#A[0],{length:n}=s;if(n+r===A){t.set(this.#A.shift(),r);break}else if(n+r>A){t.set(s.subarray(0,A-r),r),this.#A[0]=s.subarray(A-r);break}else t.set(this.#A.shift(),r),r+=s.length}return this.#e-=A,t}parseCloseBody(A){$M(A.length!==1);let t;if(A.length>=2&&(t=A.readUInt16BE(0)),t!==void 0&&!eL(t))return{code:1002,reason:"Invalid status code",error:!0};let r=A.subarray(2);r[0]===239&&r[1]===187&&r[2]===191&&(r=r.subarray(3));try{r=rL(r)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:t,reason:r,error:!1}}parseControlFrame(A){let{opcode:t,payloadLength:r}=this.#t;if(t===br.CLOSE){if(r===1)return YA(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#t.closeInfo=this.parseCloseBody(A),this.#t.closeInfo.error){let{code:s,reason:n}=this.#t.closeInfo;return nL(this.ws,s,n,n.length),YA(this.ws,n),!1}if(this.ws[Sf]!==Nf.SENT){let s=kf;this.#t.closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(this.#t.closeInfo.code,0));let n=new Tf(s);this.ws[bf].socket.write(n.createFrame(br.CLOSE),i=>{i||(this.ws[Sf]=Nf.SENT)})}return this.ws[AL]=jM.CLOSING,this.ws[Uf]=!0,!1}else if(t===br.PING){if(!this.ws[Uf]){let s=new Tf(A);this.ws[bf].socket.write(s.createFrame(br.PONG)),Wi.ping.hasSubscribers&&Wi.ping.publish({payload:A})}}else t===br.PONG&&Wi.pong.hasSubscribers&&Wi.pong.publish({payload:A});return!0}get closingInfo(){return this.#t.closeInfo}};xf.exports={ByteParser:vg}});var Vf=B((Ov,Hf)=>{"use strict";var{WebsocketFrameSend:oL}=Hi(),{opcodes:Yf,sendHints:Ur}=bt(),aL=za(),Jf=Buffer[Symbol.species],Hg=class{#A=new aL;#e=!1;#s;constructor(A){this.#s=A}add(A,t,r){if(r!==Ur.blob){let n=vf(A,r);if(!this.#e)this.#s.write(n,t);else{let i={promise:null,callback:t,frame:n};this.#A.push(i)}return}let s={promise:A.arrayBuffer().then(n=>{s.promise=null,s.frame=vf(n,r)}),callback:t,frame:null};this.#A.push(s),this.#e||this.#r()}async#r(){this.#e=!0;let A=this.#A;for(;!A.isEmpty();){let t=A.shift();t.promise!==null&&await t.promise,this.#s.write(t.frame,t.callback),t.callback=t.frame=null}this.#e=!1}};function vf(e,A){return new oL(cL(e,A)).createFrame(A===Ur.string?Yf.TEXT:Yf.BINARY)}function cL(e,A){switch(A){case Ur.string:return Buffer.from(e);case Ur.arrayBuffer:case Ur.blob:return new Jf(e);case Ur.typedArray:return new Jf(e.buffer,e.byteOffset,e.byteLength)}}Hf.exports={SendQueue:Hg}});var Kf=B((Wv,zf)=>{"use strict";var{webidl:U}=EA(),{URLSerializer:gL}=mA(),{environmentSettingsObject:qf}=bA(),{staticPropertyDescriptors:it,states:Us,sentCloseFrameState:QL,sendHints:Pi}=bt(),{kWebSocketURL:Of,kReadyState:Vg,kController:EL,kBinaryType:_i,kResponse:Wf,kSentClose:lL,kByteParser:BL}=Ds(),{isConnecting:IL,isEstablished:uL,isClosing:hL,isValidSubprotocol:CL,fireEvent:Pf}=Fs(),{establishWebSocketConnection:fL,closeWebSocketConnection:_f}=Gg(),{ByteParser:dL}=Gf(),{kEnumerableProperty:_A,isBlobLike:Zf}=x(),{getGlobalDispatcher:wL}=ai(),{types:Xf}=require("util"),{ErrorEvent:pL,CloseEvent:yL}=kr(),{SendQueue:DL}=Vf(),JA=class e extends EventTarget{#A={open:null,error:null,close:null,message:null};#e=0;#s="";#r="";#t;constructor(A,t=[]){super(),U.util.markAsUncloneable(this);let r="WebSocket constructor";U.argumentLengthCheck(arguments,1,r);let s=U.converters["DOMString or sequence or WebSocketInit"](t,r,"options");A=U.converters.USVString(A,r,"url"),t=s.protocols;let n=qf.settingsObject.baseUrl,i;try{i=new URL(A,n)}catch(a){throw new DOMException(a,"SyntaxError")}if(i.protocol==="http:"?i.protocol="ws:":i.protocol==="https:"&&(i.protocol="wss:"),i.protocol!=="ws:"&&i.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${i.protocol}`,"SyntaxError");if(i.hash||i.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof t=="string"&&(t=[t]),t.length!==new Set(t.map(a=>a.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(t.length>0&&!t.every(a=>CL(a)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[Of]=new URL(i.href);let o=qf.settingsObject;this[EL]=fL(i,t,o,this,(a,c)=>this.#n(a,c),s),this[Vg]=e.CONNECTING,this[lL]=QL.NOT_SENT,this[_i]="blob"}close(A=void 0,t=void 0){U.brandCheck(this,e);let r="WebSocket.close";if(A!==void 0&&(A=U.converters["unsigned short"](A,r,"code",{clamp:!0})),t!==void 0&&(t=U.converters.USVString(t,r,"reason")),A!==void 0&&A!==1e3&&(A<3e3||A>4999))throw new DOMException("invalid code","InvalidAccessError");let s=0;if(t!==void 0&&(s=Buffer.byteLength(t),s>123))throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError");_f(this,A,t,s)}send(A){U.brandCheck(this,e);let t="WebSocket.send";if(U.argumentLengthCheck(arguments,1,t),A=U.converters.WebSocketSendData(A,t,"data"),IL(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!uL(this)||hL(this)))if(typeof A=="string"){let r=Buffer.byteLength(A);this.#e+=r,this.#t.add(A,()=>{this.#e-=r},Pi.string)}else Xf.isArrayBuffer(A)?(this.#e+=A.byteLength,this.#t.add(A,()=>{this.#e-=A.byteLength},Pi.arrayBuffer)):ArrayBuffer.isView(A)?(this.#e+=A.byteLength,this.#t.add(A,()=>{this.#e-=A.byteLength},Pi.typedArray)):Zf(A)&&(this.#e+=A.size,this.#t.add(A,()=>{this.#e-=A.size},Pi.blob))}get readyState(){return U.brandCheck(this,e),this[Vg]}get bufferedAmount(){return U.brandCheck(this,e),this.#e}get url(){return U.brandCheck(this,e),gL(this[Of])}get extensions(){return U.brandCheck(this,e),this.#r}get protocol(){return U.brandCheck(this,e),this.#s}get onopen(){return U.brandCheck(this,e),this.#A.open}set onopen(A){U.brandCheck(this,e),this.#A.open&&this.removeEventListener("open",this.#A.open),typeof A=="function"?(this.#A.open=A,this.addEventListener("open",A)):this.#A.open=null}get onerror(){return U.brandCheck(this,e),this.#A.error}set onerror(A){U.brandCheck(this,e),this.#A.error&&this.removeEventListener("error",this.#A.error),typeof A=="function"?(this.#A.error=A,this.addEventListener("error",A)):this.#A.error=null}get onclose(){return U.brandCheck(this,e),this.#A.close}set onclose(A){U.brandCheck(this,e),this.#A.close&&this.removeEventListener("close",this.#A.close),typeof A=="function"?(this.#A.close=A,this.addEventListener("close",A)):this.#A.close=null}get onmessage(){return U.brandCheck(this,e),this.#A.message}set onmessage(A){U.brandCheck(this,e),this.#A.message&&this.removeEventListener("message",this.#A.message),typeof A=="function"?(this.#A.message=A,this.addEventListener("message",A)):this.#A.message=null}get binaryType(){return U.brandCheck(this,e),this[_i]}set binaryType(A){U.brandCheck(this,e),A!=="blob"&&A!=="arraybuffer"?this[_i]="blob":this[_i]=A}#n(A,t){this[Wf]=A;let r=new dL(this,t);r.on("drain",mL),r.on("error",RL.bind(this)),A.socket.ws=this,this[BL]=r,this.#t=new DL(A.socket),this[Vg]=Us.OPEN;let s=A.headersList.get("sec-websocket-extensions");s!==null&&(this.#r=s);let n=A.headersList.get("sec-websocket-protocol");n!==null&&(this.#s=n),Pf("open",this)}};JA.CONNECTING=JA.prototype.CONNECTING=Us.CONNECTING;JA.OPEN=JA.prototype.OPEN=Us.OPEN;JA.CLOSING=JA.prototype.CLOSING=Us.CLOSING;JA.CLOSED=JA.prototype.CLOSED=Us.CLOSED;Object.defineProperties(JA.prototype,{CONNECTING:it,OPEN:it,CLOSING:it,CLOSED:it,url:_A,readyState:_A,bufferedAmount:_A,onopen:_A,onerror:_A,onclose:_A,close:_A,onmessage:_A,binaryType:_A,send:_A,extensions:_A,protocol:_A,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(JA,{CONNECTING:it,OPEN:it,CLOSING:it,CLOSED:it});U.converters["sequence"]=U.sequenceConverter(U.converters.DOMString);U.converters["DOMString or sequence"]=function(e,A,t){return U.util.Type(e)==="Object"&&Symbol.iterator in e?U.converters["sequence"](e):U.converters.DOMString(e,A,t)};U.converters.WebSocketInit=U.dictionaryConverter([{key:"protocols",converter:U.converters["DOMString or sequence"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:U.converters.any,defaultValue:()=>wL()},{key:"headers",converter:U.nullableConverter(U.converters.HeadersInit)}]);U.converters["DOMString or sequence or WebSocketInit"]=function(e){return U.util.Type(e)==="Object"&&!(Symbol.iterator in e)?U.converters.WebSocketInit(e):{protocols:U.converters["DOMString or sequence"](e)}};U.converters.WebSocketSendData=function(e){if(U.util.Type(e)==="Object"){if(Zf(e))return U.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||Xf.isArrayBuffer(e))return U.converters.BufferSource(e)}return U.converters.USVString(e)};function mL(){this.ws[Wf].socket.resume()}function RL(e){let A,t;e instanceof yL?(A=e.reason,t=e.code):A=e.message,Pf("error",this,()=>new pL("error",{error:e,message:A})),_f(this,t)}zf.exports={WebSocket:JA}});var qg=B((Pv,$f)=>{"use strict";function FL(e){return e.indexOf("\0")===-1}function kL(e){if(e.length===0)return!1;for(let A=0;A57)return!1;return!0}function NL(e){return new Promise(A=>{setTimeout(A,e).unref()})}$f.exports={isValidLastEventId:FL,isASCIINumber:kL,delay:NL}});var td=B((_v,ed)=>{"use strict";var{Transform:SL}=require("stream"),{isASCIINumber:jf,isValidLastEventId:Ad}=qg(),Ge=[239,187,191],Og=10,Zi=13,bL=58,UL=32,Wg=class extends SL{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(A={}){A.readableObjectMode=!0,super(A),this.state=A.eventSourceSettings||{},A.push&&(this.push=A.push)}_transform(A,t,r){if(A.length===0){r();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,A]):this.buffer=A,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===Ge[0]){r();return}this.checkBOM=!1,r();return;case 2:if(this.buffer[0]===Ge[0]&&this.buffer[1]===Ge[1]){r();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===Ge[0]&&this.buffer[1]===Ge[1]&&this.buffer[2]===Ge[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,r();return}this.checkBOM=!1;break;default:this.buffer[0]===Ge[0]&&this.buffer[1]===Ge[1]&&this.buffer[2]===Ge[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(t[s]=n);break}}processEvent(A){A.retry&&jf(A.retry)&&(this.state.reconnectionTime=parseInt(A.retry,10)),A.id&&Ad(A.id)&&(this.state.lastEventId=A.id),A.data!==void 0&&this.push({type:A.event||"message",options:{data:A.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};ed.exports={EventSourceStream:Wg}});var gd=B((Zv,cd)=>{"use strict";var{pipeline:ML}=require("stream"),{fetching:LL}=ds(),{makeRequest:TL}=pr(),{webidl:Ye}=EA(),{EventSourceStream:xL}=td(),{parseMIMEType:GL}=mA(),{createFastMessageEvent:YL}=kr(),{isNetworkError:rd}=Cs(),{delay:JL}=qg(),{kEnumerableProperty:Ut}=x(),{environmentSettingsObject:sd}=bA(),nd=!1,id=3e3,Ms=0,od=1,Ls=2,vL="anonymous",HL="use-credentials",Mr=class e extends EventTarget{#A={open:null,error:null,message:null};#e=null;#s=!1;#r=Ms;#t=null;#n=null;#i;#o;constructor(A,t={}){super(),Ye.util.markAsUncloneable(this);let r="EventSource constructor";Ye.argumentLengthCheck(arguments,1,r),nd||(nd=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),A=Ye.converters.USVString(A,r,"url"),t=Ye.converters.EventSourceInitDict(t,r,"eventSourceInitDict"),this.#i=t.dispatcher,this.#o={lastEventId:"",reconnectionTime:id};let s=sd,n;try{n=new URL(A,s.settingsObject.baseUrl),this.#o.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#e=n.href;let i=vL;t.withCredentials&&(i=HL,this.#s=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=sd.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#e)],this.#t=TL(o),this.#a()}get readyState(){return this.#r}get url(){return this.#e}get withCredentials(){return this.#s}#a(){if(this.#r===Ls)return;this.#r=Ms;let A={request:this.#t,dispatcher:this.#i},t=r=>{rd(r)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};A.processResponseEndOfBody=t,A.processResponse=r=>{if(rd(r))if(r.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=r.headersList.get("content-type",!0),n=s!==null?GL(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(r.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=od,this.dispatchEvent(new Event("open")),this.#o.origin=r.urlList[r.urlList.length-1].origin;let o=new xL({eventSourceSettings:this.#o,push:a=>{this.dispatchEvent(YL(a.type,a.options))}});ML(r.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=LL(A)}async#c(){this.#r!==Ls&&(this.#r=Ms,this.dispatchEvent(new Event("error")),await JL(this.#o.reconnectionTime),this.#r===Ms&&(this.#o.lastEventId.length&&this.#t.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){Ye.brandCheck(this,e),this.#r!==Ls&&(this.#r=Ls,this.#n.abort(),this.#t=null)}get onopen(){return this.#A.open}set onopen(A){this.#A.open&&this.removeEventListener("open",this.#A.open),typeof A=="function"?(this.#A.open=A,this.addEventListener("open",A)):this.#A.open=null}get onmessage(){return this.#A.message}set onmessage(A){this.#A.message&&this.removeEventListener("message",this.#A.message),typeof A=="function"?(this.#A.message=A,this.addEventListener("message",A)):this.#A.message=null}get onerror(){return this.#A.error}set onerror(A){this.#A.error&&this.removeEventListener("error",this.#A.error),typeof A=="function"?(this.#A.error=A,this.addEventListener("error",A)):this.#A.error=null}},ad={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ms,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:od,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Ls,writable:!1}};Object.defineProperties(Mr,ad);Object.defineProperties(Mr.prototype,ad);Object.defineProperties(Mr.prototype,{close:Ut,onerror:Ut,onmessage:Ut,onopen:Ut,readyState:Ut,url:Ut,withCredentials:Ut});Ye.converters.EventSourceInitDict=Ye.dictionaryConverter([{key:"withCredentials",converter:Ye.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ye.converters.any}]);cd.exports={EventSource:Mr,defaultReconnectionTime:id}});var Bd=B((Xv,b)=>{"use strict";var VL=or(),Qd=Yr(),qL=ar(),OL=oI(),WL=cr(),PL=uc(),_L=bI(),ZL=GI(),Ed=v(),zi=x(),{InvalidArgumentError:Xi}=Ed,Lr=yu(),XL=vr(),zL=Kc(),KL=nh(),$L=Ag(),jL=Yc(),AT=$n(),{getGlobalDispatcher:ld,setGlobalDispatcher:eT}=ai(),tT=ci(),rT=Hn(),sT=Vn();Object.assign(Qd.prototype,Lr);b.exports.Dispatcher=Qd;b.exports.Client=VL;b.exports.Pool=qL;b.exports.BalancedPool=OL;b.exports.Agent=WL;b.exports.ProxyAgent=PL;b.exports.EnvHttpProxyAgent=_L;b.exports.RetryAgent=ZL;b.exports.RetryHandler=AT;b.exports.DecoratorHandler=tT;b.exports.RedirectHandler=rT;b.exports.createRedirectInterceptor=sT;b.exports.interceptors={redirect:Eh(),retry:Bh(),dump:uh(),dns:fh()};b.exports.buildConnector=XL;b.exports.errors=Ed;b.exports.util={parseHeaders:zi.parseHeaders,headerNameToString:zi.headerNameToString};function Ts(e){return(A,t,r)=>{if(typeof t=="function"&&(r=t,t=null),!A||typeof A!="string"&&typeof A!="object"&&!(A instanceof URL))throw new Xi("invalid url");if(t!=null&&typeof t!="object")throw new Xi("invalid opts");if(t&&t.path!=null){if(typeof t.path!="string")throw new Xi("invalid opts.path");let i=t.path;t.path.startsWith("/")||(i=`/${i}`),A=new URL(zi.parseOrigin(A).origin+i)}else t||(t=typeof A=="object"?A:{}),A=zi.parseURL(A);let{agent:s,dispatcher:n=ld()}=t;if(s)throw new Xi("unsupported opts.agent. Did you mean opts.client?");return e.call(n,{...t,origin:A.origin,path:A.search?`${A.pathname}${A.search}`:A.pathname,method:t.method||(t.body?"PUT":"GET")},r)}}b.exports.setGlobalDispatcher=eT;b.exports.getGlobalDispatcher=ld;var nT=ds().fetch;b.exports.fetch=async function(A,t=void 0){try{return await nT(A,t)}catch(r){throw r&&typeof r=="object"&&Error.captureStackTrace(r),r}};b.exports.Headers=mt().Headers;b.exports.Response=Cs().Response;b.exports.Request=pr().Request;b.exports.FormData=_r().FormData;b.exports.File=globalThis.File??require("buffer").File;b.exports.FileReader=TC().FileReader;var{setGlobalOrigin:iT,getGlobalOrigin:oT}=ha();b.exports.setGlobalOrigin=iT;b.exports.getGlobalOrigin=oT;var{CacheStorage:aT}=OC(),{kConstruct:cT}=Si();b.exports.caches=new aT(cT);var{deleteCookie:gT,getCookies:QT,getSetCookies:ET,setCookie:lT}=tf();b.exports.deleteCookie=gT;b.exports.getCookies=QT;b.exports.getSetCookies=ET;b.exports.setCookie=lT;var{parseMIMEType:BT,serializeAMimeType:IT}=mA();b.exports.parseMIMEType=BT;b.exports.serializeAMimeType=IT;var{CloseEvent:uT,ErrorEvent:hT,MessageEvent:CT}=kr();b.exports.WebSocket=Kf().WebSocket;b.exports.CloseEvent=uT;b.exports.ErrorEvent=hT;b.exports.MessageEvent=CT;b.exports.request=Ts(Lr.request);b.exports.stream=Ts(Lr.stream);b.exports.pipeline=Ts(Lr.pipeline);b.exports.connect=Ts(Lr.connect);b.exports.upgrade=Ts(Lr.upgrade);b.exports.MockClient=zL;b.exports.MockPool=$L;b.exports.MockAgent=KL;b.exports.mockErrors=jL;var{EventSource:fT}=gd();b.exports.EventSource=fT});var qs=B((k2,vd)=>{"use strict";var YT="2.0.0",JT=Number.MAX_SAFE_INTEGER||9007199254740991,vT=16,HT=250,VT=["major","premajor","minor","preminor","patch","prepatch","prerelease"];vd.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:vT,MAX_SAFE_BUILD_LENGTH:HT,MAX_SAFE_INTEGER:JT,RELEASE_TYPES:VT,SEMVER_SPEC_VERSION:YT,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Os=B((N2,Hd)=>{"use strict";var qT=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Hd.exports=qT});var xr=B((pe,Vd)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:cQ,MAX_SAFE_BUILD_LENGTH:OT,MAX_LENGTH:WT}=qs(),PT=Os();pe=Vd.exports={};var _T=pe.re=[],ZT=pe.safeRe=[],p=pe.src=[],XT=pe.safeSrc=[],y=pe.t={},zT=0,gQ="[a-zA-Z0-9-]",KT=[["\\s",1],["\\d",WT],[gQ,OT]],$T=e=>{for(let[A,t]of KT)e=e.split(`${A}*`).join(`${A}{0,${t}}`).split(`${A}+`).join(`${A}{1,${t}}`);return e},L=(e,A,t)=>{let r=$T(A),s=zT++;PT(e,s,A),y[e]=s,p[s]=A,XT[s]=r,_T[s]=new RegExp(A,t?"g":void 0),ZT[s]=new RegExp(r,t?"g":void 0)};L("NUMERICIDENTIFIER","0|[1-9]\\d*");L("NUMERICIDENTIFIERLOOSE","\\d+");L("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${gQ}*`);L("MAINVERSION",`(${p[y.NUMERICIDENTIFIER]})\\.(${p[y.NUMERICIDENTIFIER]})\\.(${p[y.NUMERICIDENTIFIER]})`);L("MAINVERSIONLOOSE",`(${p[y.NUMERICIDENTIFIERLOOSE]})\\.(${p[y.NUMERICIDENTIFIERLOOSE]})\\.(${p[y.NUMERICIDENTIFIERLOOSE]})`);L("PRERELEASEIDENTIFIER",`(?:${p[y.NONNUMERICIDENTIFIER]}|${p[y.NUMERICIDENTIFIER]})`);L("PRERELEASEIDENTIFIERLOOSE",`(?:${p[y.NONNUMERICIDENTIFIER]}|${p[y.NUMERICIDENTIFIERLOOSE]})`);L("PRERELEASE",`(?:-(${p[y.PRERELEASEIDENTIFIER]}(?:\\.${p[y.PRERELEASEIDENTIFIER]})*))`);L("PRERELEASELOOSE",`(?:-?(${p[y.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[y.PRERELEASEIDENTIFIERLOOSE]})*))`);L("BUILDIDENTIFIER",`${gQ}+`);L("BUILD",`(?:\\+(${p[y.BUILDIDENTIFIER]}(?:\\.${p[y.BUILDIDENTIFIER]})*))`);L("FULLPLAIN",`v?${p[y.MAINVERSION]}${p[y.PRERELEASE]}?${p[y.BUILD]}?`);L("FULL",`^${p[y.FULLPLAIN]}$`);L("LOOSEPLAIN",`[v=\\s]*${p[y.MAINVERSIONLOOSE]}${p[y.PRERELEASELOOSE]}?${p[y.BUILD]}?`);L("LOOSE",`^${p[y.LOOSEPLAIN]}$`);L("GTLT","((?:<|>)?=?)");L("XRANGEIDENTIFIERLOOSE",`${p[y.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);L("XRANGEIDENTIFIER",`${p[y.NUMERICIDENTIFIER]}|x|X|\\*`);L("XRANGEPLAIN",`[v=\\s]*(${p[y.XRANGEIDENTIFIER]})(?:\\.(${p[y.XRANGEIDENTIFIER]})(?:\\.(${p[y.XRANGEIDENTIFIER]})(?:${p[y.PRERELEASE]})?${p[y.BUILD]}?)?)?`);L("XRANGEPLAINLOOSE",`[v=\\s]*(${p[y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[y.XRANGEIDENTIFIERLOOSE]})(?:${p[y.PRERELEASELOOSE]})?${p[y.BUILD]}?)?)?`);L("XRANGE",`^${p[y.GTLT]}\\s*${p[y.XRANGEPLAIN]}$`);L("XRANGELOOSE",`^${p[y.GTLT]}\\s*${p[y.XRANGEPLAINLOOSE]}$`);L("COERCEPLAIN",`(^|[^\\d])(\\d{1,${cQ}})(?:\\.(\\d{1,${cQ}}))?(?:\\.(\\d{1,${cQ}}))?`);L("COERCE",`${p[y.COERCEPLAIN]}(?:$|[^\\d])`);L("COERCEFULL",p[y.COERCEPLAIN]+`(?:${p[y.PRERELEASE]})?(?:${p[y.BUILD]})?(?:$|[^\\d])`);L("COERCERTL",p[y.COERCE],!0);L("COERCERTLFULL",p[y.COERCEFULL],!0);L("LONETILDE","(?:~>?)");L("TILDETRIM",`(\\s*)${p[y.LONETILDE]}\\s+`,!0);pe.tildeTrimReplace="$1~";L("TILDE",`^${p[y.LONETILDE]}${p[y.XRANGEPLAIN]}$`);L("TILDELOOSE",`^${p[y.LONETILDE]}${p[y.XRANGEPLAINLOOSE]}$`);L("LONECARET","(?:\\^)");L("CARETTRIM",`(\\s*)${p[y.LONECARET]}\\s+`,!0);pe.caretTrimReplace="$1^";L("CARET",`^${p[y.LONECARET]}${p[y.XRANGEPLAIN]}$`);L("CARETLOOSE",`^${p[y.LONECARET]}${p[y.XRANGEPLAINLOOSE]}$`);L("COMPARATORLOOSE",`^${p[y.GTLT]}\\s*(${p[y.LOOSEPLAIN]})$|^$`);L("COMPARATOR",`^${p[y.GTLT]}\\s*(${p[y.FULLPLAIN]})$|^$`);L("COMPARATORTRIM",`(\\s*)${p[y.GTLT]}\\s*(${p[y.LOOSEPLAIN]}|${p[y.XRANGEPLAIN]})`,!0);pe.comparatorTrimReplace="$1$2$3";L("HYPHENRANGE",`^\\s*(${p[y.XRANGEPLAIN]})\\s+-\\s+(${p[y.XRANGEPLAIN]})\\s*$`);L("HYPHENRANGELOOSE",`^\\s*(${p[y.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[y.XRANGEPLAINLOOSE]})\\s*$`);L("STAR","(<|>)?=?\\s*\\*");L("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");L("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var to=B((S2,qd)=>{"use strict";var jT=Object.freeze({loose:!0}),Ax=Object.freeze({}),ex=e=>e?typeof e!="object"?jT:e:Ax;qd.exports=ex});var QQ=B((b2,Pd)=>{"use strict";var Od=/^[0-9]+$/,Wd=(e,A)=>{if(typeof e=="number"&&typeof A=="number")return e===A?0:eWd(A,e);Pd.exports={compareIdentifiers:Wd,rcompareIdentifiers:tx}});var uA=B((U2,Zd)=>{"use strict";var ro=Os(),{MAX_LENGTH:_d,MAX_SAFE_INTEGER:so}=qs(),{safeRe:no,t:io}=xr(),rx=to(),{compareIdentifiers:EQ}=QQ(),lQ=class e{constructor(A,t){if(t=rx(t),A instanceof e){if(A.loose===!!t.loose&&A.includePrerelease===!!t.includePrerelease)return A;A=A.version}else if(typeof A!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof A}".`);if(A.length>_d)throw new TypeError(`version is longer than ${_d} characters`);ro("SemVer",A,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=A.trim().match(t.loose?no[io.LOOSE]:no[io.FULL]);if(!r)throw new TypeError(`Invalid Version: ${A}`);if(this.raw=A,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>so||this.major<0)throw new TypeError("Invalid major version");if(this.minor>so||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>so||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let n=+s;if(n>=0&&nA.major?1:this.minorA.minor?1:this.patchA.patch?1:0}comparePre(A){if(A instanceof e||(A=new e(A,this.options)),this.prerelease.length&&!A.prerelease.length)return-1;if(!this.prerelease.length&&A.prerelease.length)return 1;if(!this.prerelease.length&&!A.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],s=A.prerelease[t];if(ro("prerelease compare",t,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return EQ(r,s)}while(++t)}compareBuild(A){A instanceof e||(A=new e(A,this.options));let t=0;do{let r=this.build[t],s=A.build[t];if(ro("build compare",t,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return EQ(r,s)}while(++t)}inc(A,t,r){if(A.startsWith("pre")){if(!t&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=`-${t}`.match(this.options.loose?no[io.PRERELEASELOOSE]:no[io.PRERELEASE]);if(!s||s[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(A){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(t===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let n=[t,s];r===!1&&(n=[t]),EQ(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${A}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Zd.exports=lQ});var xt=B((M2,zd)=>{"use strict";var Xd=uA(),sx=(e,A,t=!1)=>{if(e instanceof Xd)return e;try{return new Xd(e,A)}catch(r){if(!t)return null;throw r}};zd.exports=sx});var $d=B((L2,Kd)=>{"use strict";var nx=xt(),ix=(e,A)=>{let t=nx(e,A);return t?t.version:null};Kd.exports=ix});var Aw=B((T2,jd)=>{"use strict";var ox=xt(),ax=(e,A)=>{let t=ox(e.trim().replace(/^[=v]+/,""),A);return t?t.version:null};jd.exports=ax});var rw=B((x2,tw)=>{"use strict";var ew=uA(),cx=(e,A,t,r,s)=>{typeof t=="string"&&(s=r,r=t,t=void 0);try{return new ew(e instanceof ew?e.version:e,t).inc(A,r,s).version}catch{return null}};tw.exports=cx});var iw=B((G2,nw)=>{"use strict";var sw=xt(),gx=(e,A)=>{let t=sw(e,null,!0),r=sw(A,null,!0),s=t.compare(r);if(s===0)return null;let n=s>0,i=n?t:r,o=n?r:t,a=!!i.prerelease.length;if(!!o.prerelease.length&&!a){if(!o.patch&&!o.minor)return"major";if(o.compareMain(i)===0)return o.minor&&!o.patch?"minor":"patch"}let g=a?"pre":"";return t.major!==r.major?g+"major":t.minor!==r.minor?g+"minor":t.patch!==r.patch?g+"patch":"prerelease"};nw.exports=gx});var aw=B((Y2,ow)=>{"use strict";var Qx=uA(),Ex=(e,A)=>new Qx(e,A).major;ow.exports=Ex});var gw=B((J2,cw)=>{"use strict";var lx=uA(),Bx=(e,A)=>new lx(e,A).minor;cw.exports=Bx});var Ew=B((v2,Qw)=>{"use strict";var Ix=uA(),ux=(e,A)=>new Ix(e,A).patch;Qw.exports=ux});var Bw=B((H2,lw)=>{"use strict";var hx=xt(),Cx=(e,A)=>{let t=hx(e,A);return t&&t.prerelease.length?t.prerelease:null};lw.exports=Cx});var XA=B((V2,uw)=>{"use strict";var Iw=uA(),fx=(e,A,t)=>new Iw(e,t).compare(new Iw(A,t));uw.exports=fx});var Cw=B((q2,hw)=>{"use strict";var dx=XA(),wx=(e,A,t)=>dx(A,e,t);hw.exports=wx});var dw=B((O2,fw)=>{"use strict";var px=XA(),yx=(e,A)=>px(e,A,!0);fw.exports=yx});var oo=B((W2,pw)=>{"use strict";var ww=uA(),Dx=(e,A,t)=>{let r=new ww(e,t),s=new ww(A,t);return r.compare(s)||r.compareBuild(s)};pw.exports=Dx});var Dw=B((P2,yw)=>{"use strict";var mx=oo(),Rx=(e,A)=>e.sort((t,r)=>mx(t,r,A));yw.exports=Rx});var Rw=B((_2,mw)=>{"use strict";var Fx=oo(),kx=(e,A)=>e.sort((t,r)=>Fx(r,t,A));mw.exports=kx});var Ws=B((Z2,Fw)=>{"use strict";var Nx=XA(),Sx=(e,A,t)=>Nx(e,A,t)>0;Fw.exports=Sx});var ao=B((X2,kw)=>{"use strict";var bx=XA(),Ux=(e,A,t)=>bx(e,A,t)<0;kw.exports=Ux});var BQ=B((z2,Nw)=>{"use strict";var Mx=XA(),Lx=(e,A,t)=>Mx(e,A,t)===0;Nw.exports=Lx});var IQ=B((K2,Sw)=>{"use strict";var Tx=XA(),xx=(e,A,t)=>Tx(e,A,t)!==0;Sw.exports=xx});var co=B(($2,bw)=>{"use strict";var Gx=XA(),Yx=(e,A,t)=>Gx(e,A,t)>=0;bw.exports=Yx});var go=B((j2,Uw)=>{"use strict";var Jx=XA(),vx=(e,A,t)=>Jx(e,A,t)<=0;Uw.exports=vx});var uQ=B((AH,Mw)=>{"use strict";var Hx=BQ(),Vx=IQ(),qx=Ws(),Ox=co(),Wx=ao(),Px=go(),_x=(e,A,t,r)=>{switch(A){case"===":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e===t;case"!==":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e!==t;case"":case"=":case"==":return Hx(e,t,r);case"!=":return Vx(e,t,r);case">":return qx(e,t,r);case">=":return Ox(e,t,r);case"<":return Wx(e,t,r);case"<=":return Px(e,t,r);default:throw new TypeError(`Invalid operator: ${A}`)}};Mw.exports=_x});var Tw=B((eH,Lw)=>{"use strict";var Zx=uA(),Xx=xt(),{safeRe:Qo,t:Eo}=xr(),zx=(e,A)=>{if(e instanceof Zx)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;A=A||{};let t=null;if(!A.rtl)t=e.match(A.includePrerelease?Qo[Eo.COERCEFULL]:Qo[Eo.COERCE]);else{let a=A.includePrerelease?Qo[Eo.COERCERTLFULL]:Qo[Eo.COERCERTL],c;for(;(c=a.exec(e))&&(!t||t.index+t[0].length!==e.length);)(!t||c.index+c[0].length!==t.index+t[0].length)&&(t=c),a.lastIndex=c.index+c[1].length+c[2].length;a.lastIndex=-1}if(t===null)return null;let r=t[2],s=t[3]||"0",n=t[4]||"0",i=A.includePrerelease&&t[5]?`-${t[5]}`:"",o=A.includePrerelease&&t[6]?`+${t[6]}`:"";return Xx(`${r}.${s}.${n}${i}${o}`,A)};Lw.exports=zx});var Gw=B((tH,xw)=>{"use strict";var hQ=class{constructor(){this.max=1e3,this.map=new Map}get(A){let t=this.map.get(A);if(t!==void 0)return this.map.delete(A),this.map.set(A,t),t}delete(A){return this.map.delete(A)}set(A,t){if(!this.delete(A)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(A,t)}return this}};xw.exports=hQ});var zA=B((rH,Hw)=>{"use strict";var Kx=/\s+/g,CQ=class e{constructor(A,t){if(t=jx(t),A instanceof e)return A.loose===!!t.loose&&A.includePrerelease===!!t.includePrerelease?A:new e(A.raw,t);if(A instanceof fQ)return this.raw=A.value,this.set=[[A]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=A.trim().replace(Kx," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(s=>!Jw(s[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&iG(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let A=0;A0&&(this.formatted+="||");let t=this.set[A];for(let r=0;r0&&(this.formatted+=" "),this.formatted+=t[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(A){let r=((this.options.includePrerelease&&sG)|(this.options.loose&&nG))+":"+A,s=Yw.get(r);if(s)return s;let n=this.options.loose,i=n?wA[hA.HYPHENRANGELOOSE]:wA[hA.HYPHENRANGE];A=A.replace(i,uG(this.options.includePrerelease)),K("hyphen replace",A),A=A.replace(wA[hA.COMPARATORTRIM],eG),K("comparator trim",A),A=A.replace(wA[hA.TILDETRIM],tG),K("tilde trim",A),A=A.replace(wA[hA.CARETTRIM],rG),K("caret trim",A);let o=A.split(" ").map(Q=>oG(Q,this.options)).join(" ").split(/\s+/).map(Q=>IG(Q,this.options));n&&(o=o.filter(Q=>(K("loose invalid filter",Q,this.options),!!Q.match(wA[hA.COMPARATORLOOSE])))),K("range list",o);let a=new Map,c=o.map(Q=>new fQ(Q,this.options));for(let Q of c){if(Jw(Q))return[Q];a.set(Q.value,Q)}a.size>1&&a.has("")&&a.delete("");let g=[...a.values()];return Yw.set(r,g),g}intersects(A,t){if(!(A instanceof e))throw new TypeError("a Range is required");return this.set.some(r=>vw(r,t)&&A.set.some(s=>vw(s,t)&&r.every(n=>s.every(i=>n.intersects(i,t)))))}test(A){if(!A)return!1;if(typeof A=="string")try{A=new AG(A,this.options)}catch{return!1}for(let t=0;te.value==="<0.0.0-0",iG=e=>e.value==="",vw=(e,A)=>{let t=!0,r=e.slice(),s=r.pop();for(;t&&r.length;)t=r.every(n=>s.intersects(n,A)),s=r.pop();return t},oG=(e,A)=>(e=e.replace(wA[hA.BUILD],""),K("comp",e,A),e=gG(e,A),K("caret",e),e=aG(e,A),K("tildes",e),e=EG(e,A),K("xrange",e),e=BG(e,A),K("stars",e),e),pA=e=>!e||e.toLowerCase()==="x"||e==="*",aG=(e,A)=>e.trim().split(/\s+/).map(t=>cG(t,A)).join(" "),cG=(e,A)=>{let t=A.loose?wA[hA.TILDELOOSE]:wA[hA.TILDE];return e.replace(t,(r,s,n,i,o)=>{K("tilde",e,r,s,n,i,o);let a;return pA(s)?a="":pA(n)?a=`>=${s}.0.0 <${+s+1}.0.0-0`:pA(i)?a=`>=${s}.${n}.0 <${s}.${+n+1}.0-0`:o?(K("replaceTilde pr",o),a=`>=${s}.${n}.${i}-${o} <${s}.${+n+1}.0-0`):a=`>=${s}.${n}.${i} <${s}.${+n+1}.0-0`,K("tilde return",a),a})},gG=(e,A)=>e.trim().split(/\s+/).map(t=>QG(t,A)).join(" "),QG=(e,A)=>{K("caret",e,A);let t=A.loose?wA[hA.CARETLOOSE]:wA[hA.CARET],r=A.includePrerelease?"-0":"";return e.replace(t,(s,n,i,o,a)=>{K("caret",e,s,n,i,o,a);let c;return pA(n)?c="":pA(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:pA(o)?n==="0"?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:c=`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(K("replaceCaret pr",a),n==="0"?i==="0"?c=`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:c=`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:c=`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(K("no pr"),n==="0"?i==="0"?c=`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:c=`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:c=`>=${n}.${i}.${o} <${+n+1}.0.0-0`),K("caret return",c),c})},EG=(e,A)=>(K("replaceXRanges",e,A),e.split(/\s+/).map(t=>lG(t,A)).join(" ")),lG=(e,A)=>{e=e.trim();let t=A.loose?wA[hA.XRANGELOOSE]:wA[hA.XRANGE];return e.replace(t,(r,s,n,i,o,a)=>{K("xRange",e,r,s,n,i,o,a);let c=pA(n),g=c||pA(i),Q=g||pA(o),E=Q;return s==="="&&E&&(s=""),a=A.includePrerelease?"-0":"",c?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&E?(g&&(i=0),o=0,s===">"?(s=">=",g?(n=+n+1,i=0,o=0):(i=+i+1,o=0)):s==="<="&&(s="<",g?n=+n+1:i=+i+1),s==="<"&&(a="-0"),r=`${s+n}.${i}.${o}${a}`):g?r=`>=${n}.0.0${a} <${+n+1}.0.0-0`:Q&&(r=`>=${n}.${i}.0${a} <${n}.${+i+1}.0-0`),K("xRange return",r),r})},BG=(e,A)=>(K("replaceStars",e,A),e.trim().replace(wA[hA.STAR],"")),IG=(e,A)=>(K("replaceGTE0",e,A),e.trim().replace(wA[A.includePrerelease?hA.GTE0PRE:hA.GTE0],"")),uG=e=>(A,t,r,s,n,i,o,a,c,g,Q,E)=>(pA(r)?t="":pA(s)?t=`>=${r}.0.0${e?"-0":""}`:pA(n)?t=`>=${r}.${s}.0${e?"-0":""}`:i?t=`>=${t}`:t=`>=${t}${e?"-0":""}`,pA(c)?a="":pA(g)?a=`<${+c+1}.0.0-0`:pA(Q)?a=`<${c}.${+g+1}.0-0`:E?a=`<=${c}.${g}.${Q}-${E}`:e?a=`<${c}.${g}.${+Q+1}-0`:a=`<=${a}`,`${t} ${a}`.trim()),hG=(e,A,t)=>{for(let r=0;r0){let s=e[r].semver;if(s.major===A.major&&s.minor===A.minor&&s.patch===A.patch)return!0}return!1}return!0}});var Ps=B((sH,_w)=>{"use strict";var _s=Symbol("SemVer ANY"),pQ=class e{static get ANY(){return _s}constructor(A,t){if(t=Vw(t),A instanceof e){if(A.loose===!!t.loose)return A;A=A.value}A=A.trim().split(/\s+/).join(" "),wQ("comparator",A,t),this.options=t,this.loose=!!t.loose,this.parse(A),this.semver===_s?this.value="":this.value=this.operator+this.semver.version,wQ("comp",this)}parse(A){let t=this.options.loose?qw[Ow.COMPARATORLOOSE]:qw[Ow.COMPARATOR],r=A.match(t);if(!r)throw new TypeError(`Invalid comparator: ${A}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new Ww(r[2],this.options.loose):this.semver=_s}toString(){return this.value}test(A){if(wQ("Comparator.test",A,this.options.loose),this.semver===_s||A===_s)return!0;if(typeof A=="string")try{A=new Ww(A,this.options)}catch{return!1}return dQ(A,this.operator,this.semver,this.options)}intersects(A,t){if(!(A instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Pw(A.value,t).test(this.value):A.operator===""?A.value===""?!0:new Pw(this.value,t).test(A.semver):(t=Vw(t),t.includePrerelease&&(this.value==="<0.0.0-0"||A.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&A.operator.startsWith(">")||this.operator.startsWith("<")&&A.operator.startsWith("<")||this.semver.version===A.semver.version&&this.operator.includes("=")&&A.operator.includes("=")||dQ(this.semver,"<",A.semver,t)&&this.operator.startsWith(">")&&A.operator.startsWith("<")||dQ(this.semver,">",A.semver,t)&&this.operator.startsWith("<")&&A.operator.startsWith(">")))}};_w.exports=pQ;var Vw=to(),{safeRe:qw,t:Ow}=xr(),dQ=uQ(),wQ=Os(),Ww=uA(),Pw=zA()});var Zs=B((nH,Zw)=>{"use strict";var CG=zA(),fG=(e,A,t)=>{try{A=new CG(A,t)}catch{return!1}return A.test(e)};Zw.exports=fG});var zw=B((iH,Xw)=>{"use strict";var dG=zA(),wG=(e,A)=>new dG(e,A).set.map(t=>t.map(r=>r.value).join(" ").trim().split(" "));Xw.exports=wG});var $w=B((oH,Kw)=>{"use strict";var pG=uA(),yG=zA(),DG=(e,A,t)=>{let r=null,s=null,n=null;try{n=new yG(A,t)}catch{return null}return e.forEach(i=>{n.test(i)&&(!r||s.compare(i)===-1)&&(r=i,s=new pG(r,t))}),r};Kw.exports=DG});var Ap=B((aH,jw)=>{"use strict";var mG=uA(),RG=zA(),FG=(e,A,t)=>{let r=null,s=null,n=null;try{n=new RG(A,t)}catch{return null}return e.forEach(i=>{n.test(i)&&(!r||s.compare(i)===1)&&(r=i,s=new mG(r,t))}),r};jw.exports=FG});var rp=B((cH,tp)=>{"use strict";var yQ=uA(),kG=zA(),ep=Ws(),NG=(e,A)=>{e=new kG(e,A);let t=new yQ("0.0.0");if(e.test(t)||(t=new yQ("0.0.0-0"),e.test(t)))return t;t=null;for(let r=0;r{let o=new yQ(i.semver.version);switch(i.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!n||ep(o,n))&&(n=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),n&&(!t||ep(t,n))&&(t=n)}return t&&e.test(t)?t:null};tp.exports=NG});var np=B((gH,sp)=>{"use strict";var SG=zA(),bG=(e,A)=>{try{return new SG(e,A).range||"*"}catch{return null}};sp.exports=bG});var lo=B((QH,cp)=>{"use strict";var UG=uA(),ap=Ps(),{ANY:MG}=ap,LG=zA(),TG=Zs(),ip=Ws(),op=ao(),xG=go(),GG=co(),YG=(e,A,t,r)=>{e=new UG(e,r),A=new LG(A,r);let s,n,i,o,a;switch(t){case">":s=ip,n=xG,i=op,o=">",a=">=";break;case"<":s=op,n=GG,i=ip,o="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(TG(e,A,r))return!1;for(let c=0;c{l.semver===MG&&(l=new ap(">=0.0.0")),Q=Q||l,E=E||l,s(l.semver,Q.semver,r)?Q=l:i(l.semver,E.semver,r)&&(E=l)}),Q.operator===o||Q.operator===a||(!E.operator||E.operator===o)&&n(e,E.semver))return!1;if(E.operator===a&&i(e,E.semver))return!1}return!0};cp.exports=YG});var Qp=B((EH,gp)=>{"use strict";var JG=lo(),vG=(e,A,t)=>JG(e,A,">",t);gp.exports=vG});var lp=B((lH,Ep)=>{"use strict";var HG=lo(),VG=(e,A,t)=>HG(e,A,"<",t);Ep.exports=VG});var up=B((BH,Ip)=>{"use strict";var Bp=zA(),qG=(e,A,t)=>(e=new Bp(e,t),A=new Bp(A,t),e.intersects(A,t));Ip.exports=qG});var Cp=B((IH,hp)=>{"use strict";var OG=Zs(),WG=XA();hp.exports=(e,A,t)=>{let r=[],s=null,n=null,i=e.sort((g,Q)=>WG(g,Q,t));for(let g of i)OG(g,A,t)?(n=g,s||(s=g)):(n&&r.push([s,n]),n=null,s=null);s&&r.push([s,null]);let o=[];for(let[g,Q]of r)g===Q?o.push(g):!Q&&g===i[0]?o.push("*"):Q?g===i[0]?o.push(`<=${Q}`):o.push(`${g} - ${Q}`):o.push(`>=${g}`);let a=o.join(" || "),c=typeof A.raw=="string"?A.raw:String(A);return a.length{"use strict";var fp=zA(),mQ=Ps(),{ANY:DQ}=mQ,Xs=Zs(),RQ=XA(),PG=(e,A,t={})=>{if(e===A)return!0;e=new fp(e,t),A=new fp(A,t);let r=!1;A:for(let s of e.set){for(let n of A.set){let i=ZG(s,n,t);if(r=r||i!==null,i)continue A}if(r)return!1}return!0},_G=[new mQ(">=0.0.0-0")],dp=[new mQ(">=0.0.0")],ZG=(e,A,t)=>{if(e===A)return!0;if(e.length===1&&e[0].semver===DQ){if(A.length===1&&A[0].semver===DQ)return!0;t.includePrerelease?e=_G:e=dp}if(A.length===1&&A[0].semver===DQ){if(t.includePrerelease)return!0;A=dp}let r=new Set,s,n;for(let l of e)l.operator===">"||l.operator===">="?s=wp(s,l,t):l.operator==="<"||l.operator==="<="?n=pp(n,l,t):r.add(l.semver);if(r.size>1)return null;let i;if(s&&n){if(i=RQ(s.semver,n.semver,t),i>0)return null;if(i===0&&(s.operator!==">="||n.operator!=="<="))return null}for(let l of r){if(s&&!Xs(l,String(s),t)||n&&!Xs(l,String(n),t))return null;for(let u of A)if(!Xs(l,String(u),t))return!1;return!0}let o,a,c,g,Q=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,E=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;Q&&Q.prerelease.length===1&&n.operator==="<"&&Q.prerelease[0]===0&&(Q=!1);for(let l of A){if(g=g||l.operator===">"||l.operator===">=",c=c||l.operator==="<"||l.operator==="<=",s){if(E&&l.semver.prerelease&&l.semver.prerelease.length&&l.semver.major===E.major&&l.semver.minor===E.minor&&l.semver.patch===E.patch&&(E=!1),l.operator===">"||l.operator===">="){if(o=wp(s,l,t),o===l&&o!==s)return!1}else if(s.operator===">="&&!Xs(s.semver,String(l),t))return!1}if(n){if(Q&&l.semver.prerelease&&l.semver.prerelease.length&&l.semver.major===Q.major&&l.semver.minor===Q.minor&&l.semver.patch===Q.patch&&(Q=!1),l.operator==="<"||l.operator==="<="){if(a=pp(n,l,t),a===l&&a!==n)return!1}else if(n.operator==="<="&&!Xs(n.semver,String(l),t))return!1}if(!l.operator&&(n||s)&&i!==0)return!1}return!(s&&c&&!n&&i!==0||n&&g&&!s&&i!==0||E||Q)},wp=(e,A,t)=>{if(!e)return A;let r=RQ(e.semver,A.semver,t);return r>0?e:r<0||A.operator===">"&&e.operator===">="?A:e},pp=(e,A,t)=>{if(!e)return A;let r=RQ(e.semver,A.semver,t);return r<0?e:r>0||A.operator==="<"&&e.operator==="<="?A:e};yp.exports=PG});var kQ=B((hH,Fp)=>{"use strict";var FQ=xr(),mp=qs(),XG=uA(),Rp=QQ(),zG=xt(),KG=$d(),$G=Aw(),jG=rw(),AY=iw(),eY=aw(),tY=gw(),rY=Ew(),sY=Bw(),nY=XA(),iY=Cw(),oY=dw(),aY=oo(),cY=Dw(),gY=Rw(),QY=Ws(),EY=ao(),lY=BQ(),BY=IQ(),IY=co(),uY=go(),hY=uQ(),CY=Tw(),fY=Ps(),dY=zA(),wY=Zs(),pY=zw(),yY=$w(),DY=Ap(),mY=rp(),RY=np(),FY=lo(),kY=Qp(),NY=lp(),SY=up(),bY=Cp(),UY=Dp();Fp.exports={parse:zG,valid:KG,clean:$G,inc:jG,diff:AY,major:eY,minor:tY,patch:rY,prerelease:sY,compare:nY,rcompare:iY,compareLoose:oY,compareBuild:aY,sort:cY,rsort:gY,gt:QY,lt:EY,eq:lY,neq:BY,gte:IY,lte:uY,cmp:hY,coerce:CY,Comparator:fY,Range:dY,satisfies:wY,toComparators:pY,maxSatisfying:yY,minSatisfying:DY,minVersion:mY,validRange:RY,outside:FY,gtr:kY,ltr:NY,intersects:SY,simplifyRange:bY,subset:UY,SemVer:XG,re:FQ.re,src:FQ.src,tokens:FQ.t,SEMVER_SPEC_VERSION:mp.SEMVER_SPEC_VERSION,RELEASE_TYPES:mp.RELEASE_TYPES,compareIdentifiers:Rp.compareIdentifiers,rcompareIdentifiers:Rp.rcompareIdentifiers}});var WY={};zp(WY,{run:()=>Op});module.exports=Kp(WY);var fo=require("path");var GQ=X(require("os"),1);function Yt(e){return e==null?"":typeof e=="string"||e instanceof String?e:JSON.stringify(e)}function TQ(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}function js(e,A,t){let r=new po(e,A,t);process.stdout.write(r.toString()+GQ.EOL)}var xQ="::",po=class{constructor(A,t,r){A||(A="missing.command"),this.command=A,this.properties=t,this.message=r}toString(){let A=xQ+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let t=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let s=this.properties[r];s&&(t?t=!1:A+=",",A+=`${r}=${jp(s)}`)}}return A+=`${xQ}${$p(this.message)}`,A}};function $p(e){return Yt(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function jp(e){return Yt(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var An=X(require("fs"),1),YQ=X(require("os"),1);function JQ(e,A){let t=process.env[`GITHUB_${e}`];if(!t)throw new Error(`Unable to find environment variable for file command ${e}`);if(!An.existsSync(t))throw new Error(`Missing file at path: ${t}`);An.appendFileSync(t,`${Yt(A)}${YQ.EOL}`,{encoding:"utf8"})}var Td=X(require("os"),1),xd=X(require("path"),1);var Ys=X(require("http"),1),Zg=X(require("https"),1);function yo(e){let A=e.protocol==="https:";if(Ay(e))return;let t=A?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(t)try{return new en(t)}catch{if(!t.startsWith("http://")&&!t.startsWith("https://"))return new en(`http://${t}`)}else return}function Ay(e){if(!e.hostname)return!1;let A=e.hostname;if(ey(A))return!0;let t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=Number(e.port):e.protocol==="http:"?r=80:e.protocol==="https:"&&(r=443);let s=[e.hostname.toUpperCase()];typeof r=="number"&&s.push(`${s[0]}:${r}`);for(let n of t.split(",").map(i=>i.trim().toUpperCase()).filter(i=>i))if(n==="*"||s.some(i=>i===n||i.endsWith(`.${n}`)||n.startsWith(".")&&i.endsWith(`${n}`)))return!0;return!1}function ey(e){let A=e.toLowerCase();return A==="localhost"||A.startsWith("127.")||A.startsWith("[::1]")||A.startsWith("[0:0:0:0:0:0:0:1]")}var en=class extends URL{constructor(A,t){super(A,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var ot=X(WQ(),1),Id=X(Bd(),1),iA=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},ZA;(function(e){e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"})(ZA||(ZA={}));var dA;(function(e){e.Accept="accept",e.ContentType="content-type"})(dA||(dA={}));var Je;(function(e){e.ApplicationJson="application/json"})(Je||(Je={}));var dT=[ZA.MovedPermanently,ZA.ResourceMoved,ZA.SeeOther,ZA.TemporaryRedirect,ZA.PermanentRedirect],wT=[ZA.BadGateway,ZA.ServiceUnavailable,ZA.GatewayTimeout],pT=["OPTIONS","GET","DELETE","HEAD"],yT=10,DT=5,Pg=class e extends Error{constructor(A,t){super(A),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,e.prototype)}},_g=class{constructor(A){this.message=A}readBody(){return iA(this,void 0,void 0,function*(){return new Promise(A=>iA(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",r=>{t=Buffer.concat([t,r])}),this.message.on("end",()=>{A(t.toString())})}))})}readBodyBuffer(){return iA(this,void 0,void 0,function*(){return new Promise(A=>iA(this,void 0,void 0,function*(){let t=[];this.message.on("data",r=>{t.push(r)}),this.message.on("end",()=>{A(Buffer.concat(t))})}))})}};var Gs=class{constructor(A,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(A),this.handlers=t||[],this.requestOptions=r,r&&(r.ignoreSslError!=null&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,r.allowRedirects!=null&&(this._allowRedirects=r.allowRedirects),r.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),r.maxRedirects!=null&&(this._maxRedirects=Math.max(r.maxRedirects,0)),r.keepAlive!=null&&(this._keepAlive=r.keepAlive),r.allowRetries!=null&&(this._allowRetries=r.allowRetries),r.maxRetries!=null&&(this._maxRetries=r.maxRetries))}options(A,t){return iA(this,void 0,void 0,function*(){return this.request("OPTIONS",A,null,t||{})})}get(A,t){return iA(this,void 0,void 0,function*(){return this.request("GET",A,null,t||{})})}del(A,t){return iA(this,void 0,void 0,function*(){return this.request("DELETE",A,null,t||{})})}post(A,t,r){return iA(this,void 0,void 0,function*(){return this.request("POST",A,t,r||{})})}patch(A,t,r){return iA(this,void 0,void 0,function*(){return this.request("PATCH",A,t,r||{})})}put(A,t,r){return iA(this,void 0,void 0,function*(){return this.request("PUT",A,t,r||{})})}head(A,t){return iA(this,void 0,void 0,function*(){return this.request("HEAD",A,null,t||{})})}sendStream(A,t,r,s){return iA(this,void 0,void 0,function*(){return this.request(A,t,r,s)})}getJson(A){return iA(this,arguments,void 0,function*(t,r={}){r[dA.Accept]=this._getExistingOrDefaultHeader(r,dA.Accept,Je.ApplicationJson);let s=yield this.get(t,r);return this._processResponse(s,this.requestOptions)})}postJson(A,t){return iA(this,arguments,void 0,function*(r,s,n={}){let i=JSON.stringify(s,null,2);n[dA.Accept]=this._getExistingOrDefaultHeader(n,dA.Accept,Je.ApplicationJson),n[dA.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Je.ApplicationJson);let o=yield this.post(r,i,n);return this._processResponse(o,this.requestOptions)})}putJson(A,t){return iA(this,arguments,void 0,function*(r,s,n={}){let i=JSON.stringify(s,null,2);n[dA.Accept]=this._getExistingOrDefaultHeader(n,dA.Accept,Je.ApplicationJson),n[dA.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Je.ApplicationJson);let o=yield this.put(r,i,n);return this._processResponse(o,this.requestOptions)})}patchJson(A,t){return iA(this,arguments,void 0,function*(r,s,n={}){let i=JSON.stringify(s,null,2);n[dA.Accept]=this._getExistingOrDefaultHeader(n,dA.Accept,Je.ApplicationJson),n[dA.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Je.ApplicationJson);let o=yield this.patch(r,i,n);return this._processResponse(o,this.requestOptions)})}request(A,t,r,s){return iA(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let n=new URL(t),i=this._prepareRequest(A,n,s),o=this._allowRetries&&pT.includes(A)?this._maxRetries+1:1,a=0,c;do{if(c=yield this.requestRaw(i,r),c&&c.message&&c.message.statusCode===ZA.Unauthorized){let Q;for(let E of this.handlers)if(E.canHandleAuthentication(c)){Q=E;break}return Q?Q.handleAuthentication(this,i,r):c}let g=this._maxRedirects;for(;c.message.statusCode&&dT.includes(c.message.statusCode)&&this._allowRedirects&&g>0;){let Q=c.message.headers.location;if(!Q)break;let E=new URL(Q);if(n.protocol==="https:"&&n.protocol!==E.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield c.readBody(),E.hostname!==n.hostname)for(let l in s)l.toLowerCase()==="authorization"&&delete s[l];i=this._prepareRequest(A,E,s),c=yield this.requestRaw(i,r),g--}if(!c.message.statusCode||!wT.includes(c.message.statusCode))return c;a+=1,a{function n(i,o){i?s(i):o?r(o):s(new Error("Unknown error"))}this.requestRawWithCallback(A,t,n)})})}requestRawWithCallback(A,t,r){typeof t=="string"&&(A.options.headers||(A.options.headers={}),A.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let s=!1;function n(a,c){s||(s=!0,r(a,c))}let i=A.httpModule.request(A.options,a=>{let c=new _g(a);n(void 0,c)}),o;i.on("socket",a=>{o=a}),i.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),n(new Error(`Request timeout: ${A.options.path}`))}),i.on("error",function(a){n(a)}),t&&typeof t=="string"&&i.write(t,"utf8"),t&&typeof t!="string"?(t.on("close",function(){i.end()}),t.pipe(i)):i.end()}getAgent(A){let t=new URL(A);return this._getAgent(t)}getAgentDispatcher(A){let t=new URL(A),r=yo(t);if(r&&r.hostname)return this._getProxyAgentDispatcher(t,r)}_prepareRequest(A,t,r){let s={};s.parsedUrl=t;let n=s.parsedUrl.protocol==="https:";s.httpModule=n?Zg:Ys;let i=n?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):i,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=A,s.options.headers=this._mergeHeaders(r),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let o of this.handlers)o.prepareRequest(s.options);return s}_mergeHeaders(A){return this.requestOptions&&this.requestOptions.headers?Object.assign({},xs(this.requestOptions.headers),xs(A||{})):xs(A||{})}_getExistingOrDefaultHeader(A,t,r){let s;if(this.requestOptions&&this.requestOptions.headers){let i=xs(this.requestOptions.headers)[t];i&&(s=typeof i=="number"?i.toString():i)}let n=A[t];return n!==void 0?typeof n=="number"?n.toString():n:s!==void 0?s:r}_getExistingOrDefaultContentTypeHeader(A,t){let r;if(this.requestOptions&&this.requestOptions.headers){let n=xs(this.requestOptions.headers)[dA.ContentType];n&&(typeof n=="number"?r=String(n):Array.isArray(n)?r=n.join(", "):r=n)}let s=A[dA.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:r!==void 0?r:t}_getAgent(A){let t,r=yo(A),s=r&&r.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),s||(t=this._agent),t)return t;let n=A.protocol==="https:",i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||Ys.globalAgent.maxSockets),r&&r.hostname){let o={maxSockets:i,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},a,c=r.protocol==="https:";n?a=c?ot.httpsOverHttps:ot.httpsOverHttp:a=c?ot.httpOverHttps:ot.httpOverHttp,t=a(o),this._proxyAgent=t}if(!t){let o={keepAlive:this._keepAlive,maxSockets:i};t=n?new Zg.Agent(o):new Ys.Agent(o),this._agent=t}return n&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(A,t){let r;if(this._keepAlive&&(r=this._proxyAgentDispatcher),r)return r;let s=A.protocol==="https:";return r=new Id.ProxyAgent(Object.assign({uri:t.href,pipelining:this._keepAlive?1:0},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`})),this._proxyAgentDispatcher=r,s&&this._ignoreSslError&&(r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:!1})),r}_getUserAgentWithOrchestrationId(A){let t=A||"actions/http-client",r=process.env.ACTIONS_ORCHESTRATION_ID;if(r){let s=r.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${s}`}return t}_performExponentialBackoff(A){return iA(this,void 0,void 0,function*(){A=Math.min(yT,A);let t=DT*Math.pow(2,A);return new Promise(r=>setTimeout(()=>r(),t))})}_processResponse(A,t){return iA(this,void 0,void 0,function*(){return new Promise((r,s)=>iA(this,void 0,void 0,function*(){let n=A.message.statusCode||0,i={statusCode:n,result:null,headers:{}};n===ZA.NotFound&&r(i);function o(g,Q){if(typeof Q=="string"){let E=new Date(Q);if(!isNaN(E.valueOf()))return E}return Q}let a,c;try{c=yield A.readBody(),c&&c.length>0&&(t&&t.deserializeDates?a=JSON.parse(c,o):a=JSON.parse(c),i.result=a),i.headers=A.message.headers}catch{}if(n>299){let g;a&&a.message?g=a.message:c&&c.length>0?g=c:g=`Failed request: (${n})`;let Q=new Pg(g,n);Q.result=i.result,s(Q)}else r(i)}))})}},xs=e=>Object.keys(e).reduce((A,t)=>(A[t.toLowerCase()]=e[t],A),{});var hd=require("os"),Js=require("fs"),Xg=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},{access:RT,appendFile:FT,writeFile:kT}=Js.promises,ud="GITHUB_STEP_SUMMARY";var zg=class{constructor(){this._buffer=""}filePath(){return Xg(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[ud];if(!A)throw new Error(`Unable to find environment variable for $${ud}. Check if your runtime environment supports job summaries.`);try{yield RT(A,Js.constants.R_OK|Js.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`)}return this._filePath=A,this._filePath})}wrap(A,t,r={}){let s=Object.entries(r).map(([n,i])=>` ${n}="${i}"`).join("");return t?`<${A}${s}>${t}`:`<${A}${s}>`}write(A){return Xg(this,void 0,void 0,function*(){let t=!!A?.overwrite,r=yield this.filePath();return yield(t?kT:FT)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Xg(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(A,t=!1){return this._buffer+=A,t?this.addEOL():this}addEOL(){return this.addRaw(hd.EOL)}addCodeBlock(A,t){let r=Object.assign({},t&&{lang:t}),s=this.wrap("pre",this.wrap("code",A),r);return this.addRaw(s).addEOL()}addList(A,t=!1){let r=t?"ol":"ul",s=A.map(i=>this.wrap("li",i)).join(""),n=this.wrap(r,s);return this.addRaw(n).addEOL()}addTable(A){let t=A.map(s=>{let n=s.map(i=>{if(typeof i=="string")return this.wrap("td",i);let{header:o,data:a,colspan:c,rowspan:g}=i,Q=o?"th":"td",E=Object.assign(Object.assign({},c&&{colspan:c}),g&&{rowspan:g});return this.wrap(Q,a,E)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(A,t){let r=this.wrap("details",this.wrap("summary",A)+t);return this.addRaw(r).addEOL()}addImage(A,t,r){let{width:s,height:n}=r||{},i=Object.assign(Object.assign({},s&&{width:s}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:A,alt:t},i));return this.addRaw(o).addEOL()}addHeading(A,t){let r=`h${t}`,s=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(s,A);return this.addRaw(n).addEOL()}addSeparator(){let A=this.wrap("hr",null);return this.addRaw(A).addEOL()}addBreak(){let A=this.wrap("br",null);return this.addRaw(A).addEOL()}addQuote(A,t){let r=Object.assign({},t&&{cite:t}),s=this.wrap("blockquote",A,r);return this.addRaw(s).addEOL()}addLink(A,t){let r=this.wrap("a",A,{href:t});return this.addRaw(r).addEOL()}},r2=new zg;var sQ=X(require("os"),1);var Vs=X(require("os"),1),rQ=X(require("events"),1),bd=X(require("child_process"),1),Ud=X(require("path"),1);var md=require("assert"),vA=X(require("path"),1);var vs=X(require("fs"),1),at=X(require("path"),1),Kg=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},{chmod:$g,copyFile:fd,lstat:Ki,mkdir:dd,open:i2,readdir:jg,rename:NT,rm:wd,rmdir:o2,stat:Mt,symlink:pd,unlink:AQ}=vs.promises,we=process.platform==="win32";function yd(e){return Kg(this,void 0,void 0,function*(){let A=yield vs.promises.readlink(e);return we&&!A.endsWith("\\")?`${A}\\`:A})}var a2=vs.constants.O_RDONLY;function Tr(e){return Kg(this,void 0,void 0,function*(){try{yield Mt(e)}catch(A){if(A.code==="ENOENT")return!1;throw A}return!0})}function $i(e){if(e=ST(e),!e)throw new Error('isRooted() parameter "p" cannot be empty');return we?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")}function eQ(e,A){return Kg(this,void 0,void 0,function*(){let t;try{t=yield Mt(e)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${s}`)}if(t&&t.isFile()){if(we){let s=at.extname(e).toUpperCase();if(A.some(n=>n.toUpperCase()===s))return e}else if(Cd(t))return e}let r=e;for(let s of A){e=r+s,t=void 0;try{t=yield Mt(e)}catch(n){n.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${n}`)}if(t&&t.isFile()){if(we){try{let n=at.dirname(e),i=at.basename(e).toUpperCase();for(let o of yield jg(n))if(i===o.toUpperCase()){e=at.join(n,o);break}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${n}`)}return e}else if(Cd(t))return e}}return""})}function ST(e){return e=e||"",we?(e=e.replace(/\//g,"\\"),e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function Cd(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var Lt=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})};function Rd(e,A){return Lt(this,arguments,void 0,function*(t,r,s={}){let{force:n,recursive:i,copySourceDirectory:o}=UT(s),a=(yield Tr(r))?yield Mt(r):null;if(a&&a.isFile()&&!n)return;let c=a&&a.isDirectory()&&o?vA.join(r,vA.basename(t)):r;if(!(yield Tr(t)))throw new Error(`no such file or directory: ${t}`);if((yield Mt(t)).isDirectory())if(i)yield Fd(t,c,0,n);else throw new Error(`Failed to copy. ${t} is a directory, but tried to copy without recursive flag.`);else{if(vA.relative(t,c)==="")throw new Error(`'${c}' and '${t}' are the same file`);yield kd(t,c,n)}})}function ji(e){return Lt(this,void 0,void 0,function*(){if(we&&/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield wd(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(A){throw new Error(`File was unable to be removed ${A}`)}})}function Hs(e){return Lt(this,void 0,void 0,function*(){(0,md.ok)(e,"a path argument must be provided"),yield dd(e,{recursive:!0})})}function Tt(e,A){return Lt(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");if(A){let r=yield Tt(e,!1);if(!r)throw we?new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return r}let t=yield bT(e);return t&&t.length>0?t[0]:""})}function bT(e){return Lt(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");let A=[];if(we&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(vA.delimiter))s&&A.push(s);if($i(e)){let s=yield eQ(e,A);return s?[s]:[]}if(e.includes(vA.sep))return[];let t=[];if(process.env.PATH)for(let s of process.env.PATH.split(vA.delimiter))s&&t.push(s);let r=[];for(let s of t){let n=yield eQ(vA.join(s,e),A);n&&r.push(n)}return r})}function UT(e){let A=e.force==null?!0:e.force,t=!!e.recursive,r=e.copySourceDirectory==null?!0:!!e.copySourceDirectory;return{force:A,recursive:t,copySourceDirectory:r}}function Fd(e,A,t,r){return Lt(this,void 0,void 0,function*(){if(t>=255)return;t++,yield Hs(A);let s=yield jg(e);for(let n of s){let i=`${e}/${n}`,o=`${A}/${n}`;(yield Ki(i)).isDirectory()?yield Fd(i,o,t,r):yield kd(i,o,r)}yield $g(A,(yield Mt(e)).mode)})}function kd(e,A,t){return Lt(this,void 0,void 0,function*(){if((yield Ki(e)).isSymbolicLink()){try{yield Ki(A),yield AQ(A)}catch(s){s.code==="EPERM"&&(yield $g(A,"0666"),yield AQ(A))}let r=yield yd(e);yield pd(r,A,we?"junction":null)}else(!(yield Tr(A))||t)&&(yield fd(e,A))})}var Md=require("timers"),Sd=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},Ao=process.platform==="win32",eo=class extends rQ.EventEmitter{constructor(A,t,r){if(super(),!A)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=A,this.args=t||[],this.options=r||{}}_debug(A){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(A)}_getCommandString(A,t){let r=this._getSpawnFileName(),s=this._getSpawnArgs(A),n=t?"":"[command]";if(Ao)if(this._isCmdFile()){n+=r;for(let i of s)n+=` ${i}`}else if(A.windowsVerbatimArguments){n+=`"${r}"`;for(let i of s)n+=` ${i}`}else{n+=this._windowsQuoteCmdArg(r);for(let i of s)n+=` ${this._windowsQuoteCmdArg(i)}`}else{n+=r;for(let i of s)n+=` ${i}`}return n}_processLineBuffer(A,t,r){try{let s=t+A.toString(),n=s.indexOf(Vs.EOL);for(;n>-1;){let i=s.substring(0,n);r(i),s=s.substring(n+Vs.EOL.length),n=s.indexOf(Vs.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return Ao&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(A){if(Ao&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let r of this.args)t+=" ",t+=A.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(A,t){return A.endsWith(t)}_isCmdFile(){let A=this.toolPath.toUpperCase();return this._endsWith(A,".CMD")||this._endsWith(A,".BAT")}_windowsQuoteCmdArg(A){if(!this._isCmdFile())return this._uvQuoteCmdArg(A);if(!A)return'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let i of A)if(t.some(o=>o===i)){r=!0;break}if(!r)return A;let s='"',n=!0;for(let i=A.length;i>0;i--)s+=A[i-1],n&&A[i-1]==="\\"?s+="\\":A[i-1]==='"'?(n=!0,s+='"'):n=!1;return s+='"',s.split("").reverse().join("")}_uvQuoteCmdArg(A){if(!A)return'""';if(!A.includes(" ")&&!A.includes(" ")&&!A.includes('"'))return A;if(!A.includes('"')&&!A.includes("\\"))return`"${A}"`;let t='"',r=!0;for(let s=A.length;s>0;s--)t+=A[s-1],r&&A[s-1]==="\\"?t+="\\":A[s-1]==='"'?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(A){A=A||{};let t={cwd:A.cwd||process.cwd(),env:A.env||process.env,silent:A.silent||!1,windowsVerbatimArguments:A.windowsVerbatimArguments||!1,failOnStdErr:A.failOnStdErr||!1,ignoreReturnCode:A.ignoreReturnCode||!1,delay:A.delay||1e4};return t.outStream=A.outStream||process.stdout,t.errStream=A.errStream||process.stderr,t}_getSpawnOptions(A,t){A=A||{};let r={};return r.cwd=A.cwd,r.env=A.env,r.windowsVerbatimArguments=A.windowsVerbatimArguments||this._isCmdFile(),A.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return Sd(this,void 0,void 0,function*(){return!$i(this.toolPath)&&(this.toolPath.includes("/")||Ao&&this.toolPath.includes("\\"))&&(this.toolPath=Ud.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Tt(this.toolPath,!0),new Promise((A,t)=>Sd(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let c of this.args)this._debug(` ${c}`);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+Vs.EOL);let s=new tQ(r,this.toolPath);if(s.on("debug",c=>{this._debug(c)}),this.options.cwd&&!(yield Tr(this.options.cwd)))return t(new Error(`The cwd: ${this.options.cwd} does not exist!`));let n=this._getSpawnFileName(),i=bd.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n)),o="";i.stdout&&i.stdout.on("data",c=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(c),!r.silent&&r.outStream&&r.outStream.write(c),o=this._processLineBuffer(c,o,g=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(g)})});let a="";if(i.stderr&&i.stderr.on("data",c=>{s.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(c),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(c),a=this._processLineBuffer(c,a,g=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(g)})}),i.on("error",c=>{s.processError=c.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()}),i.on("exit",c=>{s.processExitCode=c,s.processExited=!0,this._debug(`Exit code ${c} received from tool '${this.toolPath}'`),s.CheckComplete()}),i.on("close",c=>{s.processExitCode=c,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()}),s.on("done",(c,g)=>{o.length>0&&this.emit("stdline",o),a.length>0&&this.emit("errline",a),i.removeAllListeners(),c?t(c):A(g)}),this.options.input){if(!i.stdin)throw new Error("child process missing stdin");i.stdin.end(this.options.input)}}))})}};function Ld(e){let A=[],t=!1,r=!1,s="";function n(i){r&&i!=='"'&&(s+="\\"),s+=i,r=!1}for(let i=0;i0&&(A.push(s),s="");continue}n(o)}return s.length>0&&A.push(s.trim()),A}var tQ=class e extends rQ.EventEmitter{constructor(A,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=A,this.toolPath=t,A.delay&&(this.delay=A.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,Md.setTimeout)(e.HandleTimeout,this.delay,this)))}_debug(A){this.emit("debug",A)}_setResult(){let A;this.processExited&&(this.processError?A=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?A=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(A=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",A,this.processExitCode)}static HandleTimeout(A){if(!A.done){if(!A.processClosed&&A.processExited){let t=`The STDIO streams did not close within ${A.delay/1e3} seconds of the exit event from process '${A.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;A._debug(t)}A._setResult()}}};var LT=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})};function ct(e,A,t){return LT(this,void 0,void 0,function*(){let r=Ld(e);if(r.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let s=r[0];return A=r.slice(1).concat(A||[]),new eo(s,A,t).exec()})}var Q2=sQ.default.platform(),E2=sQ.default.arch();var nQ;(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(nQ||(nQ={}));function Gd(e){process.env.GITHUB_PATH||""?JQ("PATH",e):js("add-path",{},e),process.env.PATH=`${e}${xd.delimiter}${process.env.PATH}`}function iQ(e,A){let t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(A&&A.required&&!t)throw new Error(`Input required and not supplied: ${e}`);return A&&A.trimWhitespace===!1?t:t.trim()}function Yd(e){process.exitCode=nQ.Failure,GT(e)}function oQ(){return process.env.RUNNER_DEBUG==="1"}function W(e){js("debug",{},e)}function GT(e,A={}){js("error",TQ(A),e instanceof Error?e.toString():e)}function aQ(e){process.stdout.write(e+Td.EOL)}var SQ=X(require("crypto"),1),yA=X(require("fs"),1);var MY=X(kQ(),1);var uo=X(require("os"),1),ae=X(require("path"),1);var KA=X(kQ(),1),Np=X(require("stream"),1),Sp=X(require("util"),1),bQ=require("assert");var kp=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},Bo=class{constructor(A,t,r){if(A<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=A,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(A,t){return kp(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,A*1e3))})}};var ye=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},Io=class extends Error{constructor(A){super(`Unexpected HTTP response: ${A}`),this.httpStatusCode=A,Object.setPrototypeOf(this,new.target.prototype)}},bp=process.platform==="win32",yH=process.platform==="darwin",TY="actions/tool-cache";function Up(e,A,t,r){return ye(this,void 0,void 0,function*(){A=A||ae.join(Jp(),SQ.randomUUID()),yield Hs(ae.dirname(A)),W(`Downloading ${e}`),W(`Destination ${A}`);let s=3,n=NQ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=NQ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Bo(s,n,i).execute(()=>ye(this,void 0,void 0,function*(){return yield xY(e,A||"",t,r)}),a=>!(a instanceof Io&&a.httpStatusCode&&a.httpStatusCode<500&&a.httpStatusCode!==408&&a.httpStatusCode!==429))})}function xY(e,A,t,r){return ye(this,void 0,void 0,function*(){if(yA.existsSync(A))throw new Error(`Destination file path ${A} already exists`);let s=new Gs(TY,[],{allowRetries:!1});t&&(W("set auth"),r===void 0&&(r={}),r.authorization=t);let n=yield s.get(e,r);if(n.message.statusCode!==200){let g=new Io(n.message.statusCode);throw W(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),g}let i=Sp.promisify(Np.pipeline),a=NQ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),c=!1;try{return yield i(a,yA.createWriteStream(A)),W("download complete"),c=!0,A}finally{if(!c){W("download failed");try{yield ji(A)}catch(g){W(`Failed to delete '${A}'. ${g.message}`)}}}})}function Mp(e,A){return ye(this,arguments,void 0,function*(t,r,s="xz"){if(!t)throw new Error("parameter 'file' is required");r=yield Gp(r),W("Checking tar --version");let n="";yield ct("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:g=>n+=g.toString(),stderr:g=>n+=g.toString()}}),W(n.trim());let i=n.toUpperCase().includes("GNU TAR"),o;s instanceof Array?o=s:o=[s],oQ()&&!s.includes("v")&&o.push("-v");let a=r,c=t;return bp&&i&&(o.push("--force-local"),a=r.replace(/\\/g,"/"),c=t.replace(/\\/g,"/")),i&&(o.push("--warning=no-unknown-keyword"),o.push("--overwrite")),o.push("-C",a,"-f",c),yield ct("tar",o),r})}function Lp(e,A){return ye(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'file' is required");return A=yield Gp(A),bp?yield GY(e,A):yield YY(e,A),A})}function GY(e,A){return ye(this,void 0,void 0,function*(){let t=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=yield Tt("pwsh",!1);if(s){let i=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${t}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`].join(" ")];W(`Using pwsh at path: ${s}`),yield ct(`"${s}"`,i)}else{let i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${t}' -DestinationPath '${r}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) }`].join(" ")],o=yield Tt("powershell",!0);W(`Using powershell at path: ${o}`),yield ct(`"${o}"`,i)}})}function YY(e,A){return ye(this,void 0,void 0,function*(){let t=yield Tt("unzip",!0),r=[e];oQ()||r.unshift("-q"),r.unshift("-o"),yield ct(`"${t}"`,r,{cwd:A})})}function Tp(e,A,t,r,s){return ye(this,void 0,void 0,function*(){if(r=KA.clean(r)||r,s=s||uo.arch(),W(`Caching tool ${t} ${r} ${s}`),W(`source file: ${e}`),!yA.statSync(e).isFile())throw new Error("sourceFile is not a file");let n=yield vY(t,r,s),i=ae.join(n,A);return W(`destination file ${i}`),yield Rd(e,i),HY(t,r,s),n})}function xp(e,A,t){if(!e)throw new Error("toolName parameter is required");if(!A)throw new Error("versionSpec parameter is required");if(t=t||uo.arch(),!Yp(A)){let s=JY(e,t);A=VY(s,A)}let r="";if(A){A=KA.clean(A)||"";let s=ae.join(ho(),e,A,t);W(`checking cache: ${s}`),yA.existsSync(s)&&yA.existsSync(`${s}.complete`)?(W(`Found tool in cache ${e} ${A} ${t}`),r=s):W("not found")}return r}function JY(e,A){let t=[];A=A||uo.arch();let r=ae.join(ho(),e);if(yA.existsSync(r)){let s=yA.readdirSync(r);for(let n of s)if(Yp(n)){let i=ae.join(r,n,A||"");yA.existsSync(i)&&yA.existsSync(`${i}.complete`)&&t.push(n)}}return t}function Gp(e){return ye(this,void 0,void 0,function*(){return e||(e=ae.join(Jp(),SQ.randomUUID())),yield Hs(e),e})}function vY(e,A,t){return ye(this,void 0,void 0,function*(){let r=ae.join(ho(),e,KA.clean(A)||A,t||"");W(`destination ${r}`);let s=`${r}.complete`;return yield ji(r),yield ji(s),yield Hs(r),r})}function HY(e,A,t){let s=`${ae.join(ho(),e,KA.clean(A)||A,t||"")}.complete`;yA.writeFileSync(s,""),W("finished caching tool")}function Yp(e){let A=KA.clean(e)||"";W(`isExplicit: ${A}`);let t=KA.valid(A)!=null;return W(`explicit? ${t}`),t}function VY(e,A){let t="";W(`evaluating ${e.length} versions`),e=e.sort((r,s)=>KA.gt(r,s)?1:-1);for(let r=e.length-1;r>=0;r--){let s=e[r];if(KA.satisfies(s,A)){t=s;break}}return t?W(`matched: ${t}`):W("match not found"),t}function ho(){let e=process.env.RUNNER_TOOL_CACHE||"";return(0,bQ.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function Jp(){let e=process.env.RUNNER_TEMP||"";return(0,bQ.ok)(e,"Expected RUNNER_TEMP to be defined"),e}function NQ(e,A){let t=global[e];return t!==void 0?t:A}var zs=require("os"),UQ=require("path"),vp=(s=>(s.arm="arm",s.arm64="arm64",s.x32="386",s.x64="amd64",s))(vp||{});function qY(e){return vp[e]||e}var Hp=(r=>(r.darwin="macOS",r.linux="linux",r.win32="windows",r))(Hp||{});function OY(e){return Hp[e]||e}function Vp(e){let A=(0,zs.platform)(),t=(0,zs.arch)(),r=`gh_${e}_${OY(A)}_${qY(t)}`,s=A==="win32"?"zip":"tar.gz";return{binaryDirectory:A==="win32"?"bin":(0,UQ.join)(r,"bin"),url:`https://github.com/cli/cli/releases/download/v${e}/${r}.${s}`}}function Co(e,A){return(0,UQ.join)(e,A+((0,zs.platform)()==="win32"?".exe":""))}var qp="gh";async function Op(){try{let e=iQ("version"),A=iQ("name"),t=Co("",A),r=xp(A,e),s=!!r;if(!s){let n=Vp(e),i=await Up(n.url),a=await(n.url.endsWith(".zip")?Lp:Mp)(i),c=(0,fo.join)(a,n.binaryDirectory);r=Co(c,A),A!==qp&&await ct("mv",[Co(c,qp),r])}Gd((0,fo.dirname)(r)),s||await Tp(r,t,A,e)}catch(e){e instanceof Error&&Yd(e.message)}}Op();0&&(module.exports={run}); +${n}`;break;case"retry":jf(n)&&(t[s]=n);break;case"id":Ad(n)&&(t[s]=n);break;case"event":n.length>0&&(t[s]=n);break}}processEvent(A){A.retry&&jf(A.retry)&&(this.state.reconnectionTime=parseInt(A.retry,10)),A.id&&Ad(A.id)&&(this.state.lastEventId=A.id),A.data!==void 0&&this.push({type:A.event||"message",options:{data:A.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};ed.exports={EventSourceStream:Wg}});var gd=B((Zv,cd)=>{"use strict";var{pipeline:ML}=require("stream"),{fetching:LL}=ds(),{makeRequest:TL}=pr(),{webidl:Ye}=EA(),{EventSourceStream:xL}=td(),{parseMIMEType:GL}=mA(),{createFastMessageEvent:YL}=kr(),{isNetworkError:rd}=Cs(),{delay:JL}=qg(),{kEnumerableProperty:Ut}=x(),{environmentSettingsObject:sd}=bA(),nd=!1,id=3e3,Ms=0,od=1,Ls=2,vL="anonymous",HL="use-credentials",Mr=class e extends EventTarget{#A={open:null,error:null,message:null};#e=null;#s=!1;#r=Ms;#t=null;#n=null;#i;#o;constructor(A,t={}){super(),Ye.util.markAsUncloneable(this);let r="EventSource constructor";Ye.argumentLengthCheck(arguments,1,r),nd||(nd=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),A=Ye.converters.USVString(A,r,"url"),t=Ye.converters.EventSourceInitDict(t,r,"eventSourceInitDict"),this.#i=t.dispatcher,this.#o={lastEventId:"",reconnectionTime:id};let s=sd,n;try{n=new URL(A,s.settingsObject.baseUrl),this.#o.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#e=n.href;let i=vL;t.withCredentials&&(i=HL,this.#s=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=sd.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#e)],this.#t=TL(o),this.#a()}get readyState(){return this.#r}get url(){return this.#e}get withCredentials(){return this.#s}#a(){if(this.#r===Ls)return;this.#r=Ms;let A={request:this.#t,dispatcher:this.#i},t=r=>{rd(r)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};A.processResponseEndOfBody=t,A.processResponse=r=>{if(rd(r))if(r.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=r.headersList.get("content-type",!0),n=s!==null?GL(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(r.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=od,this.dispatchEvent(new Event("open")),this.#o.origin=r.urlList[r.urlList.length-1].origin;let o=new xL({eventSourceSettings:this.#o,push:a=>{this.dispatchEvent(YL(a.type,a.options))}});ML(r.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=LL(A)}async#c(){this.#r!==Ls&&(this.#r=Ms,this.dispatchEvent(new Event("error")),await JL(this.#o.reconnectionTime),this.#r===Ms&&(this.#o.lastEventId.length&&this.#t.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){Ye.brandCheck(this,e),this.#r!==Ls&&(this.#r=Ls,this.#n.abort(),this.#t=null)}get onopen(){return this.#A.open}set onopen(A){this.#A.open&&this.removeEventListener("open",this.#A.open),typeof A=="function"?(this.#A.open=A,this.addEventListener("open",A)):this.#A.open=null}get onmessage(){return this.#A.message}set onmessage(A){this.#A.message&&this.removeEventListener("message",this.#A.message),typeof A=="function"?(this.#A.message=A,this.addEventListener("message",A)):this.#A.message=null}get onerror(){return this.#A.error}set onerror(A){this.#A.error&&this.removeEventListener("error",this.#A.error),typeof A=="function"?(this.#A.error=A,this.addEventListener("error",A)):this.#A.error=null}},ad={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ms,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:od,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Ls,writable:!1}};Object.defineProperties(Mr,ad);Object.defineProperties(Mr.prototype,ad);Object.defineProperties(Mr.prototype,{close:Ut,onerror:Ut,onmessage:Ut,onopen:Ut,readyState:Ut,url:Ut,withCredentials:Ut});Ye.converters.EventSourceInitDict=Ye.dictionaryConverter([{key:"withCredentials",converter:Ye.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ye.converters.any}]);cd.exports={EventSource:Mr,defaultReconnectionTime:id}});var Bd=B((Xv,b)=>{"use strict";var VL=or(),Qd=Yr(),qL=ar(),OL=oI(),WL=cr(),PL=uc(),_L=bI(),ZL=GI(),Ed=v(),zi=x(),{InvalidArgumentError:Xi}=Ed,Lr=yu(),XL=vr(),zL=Kc(),KL=nh(),$L=Ag(),jL=Yc(),AT=$n(),{getGlobalDispatcher:ld,setGlobalDispatcher:eT}=ai(),tT=ci(),rT=Hn(),sT=Vn();Object.assign(Qd.prototype,Lr);b.exports.Dispatcher=Qd;b.exports.Client=VL;b.exports.Pool=qL;b.exports.BalancedPool=OL;b.exports.Agent=WL;b.exports.ProxyAgent=PL;b.exports.EnvHttpProxyAgent=_L;b.exports.RetryAgent=ZL;b.exports.RetryHandler=AT;b.exports.DecoratorHandler=tT;b.exports.RedirectHandler=rT;b.exports.createRedirectInterceptor=sT;b.exports.interceptors={redirect:Eh(),retry:Bh(),dump:uh(),dns:fh()};b.exports.buildConnector=XL;b.exports.errors=Ed;b.exports.util={parseHeaders:zi.parseHeaders,headerNameToString:zi.headerNameToString};function Ts(e){return(A,t,r)=>{if(typeof t=="function"&&(r=t,t=null),!A||typeof A!="string"&&typeof A!="object"&&!(A instanceof URL))throw new Xi("invalid url");if(t!=null&&typeof t!="object")throw new Xi("invalid opts");if(t&&t.path!=null){if(typeof t.path!="string")throw new Xi("invalid opts.path");let i=t.path;t.path.startsWith("/")||(i=`/${i}`),A=new URL(zi.parseOrigin(A).origin+i)}else t||(t=typeof A=="object"?A:{}),A=zi.parseURL(A);let{agent:s,dispatcher:n=ld()}=t;if(s)throw new Xi("unsupported opts.agent. Did you mean opts.client?");return e.call(n,{...t,origin:A.origin,path:A.search?`${A.pathname}${A.search}`:A.pathname,method:t.method||(t.body?"PUT":"GET")},r)}}b.exports.setGlobalDispatcher=eT;b.exports.getGlobalDispatcher=ld;var nT=ds().fetch;b.exports.fetch=async function(A,t=void 0){try{return await nT(A,t)}catch(r){throw r&&typeof r=="object"&&Error.captureStackTrace(r),r}};b.exports.Headers=mt().Headers;b.exports.Response=Cs().Response;b.exports.Request=pr().Request;b.exports.FormData=_r().FormData;b.exports.File=globalThis.File??require("buffer").File;b.exports.FileReader=TC().FileReader;var{setGlobalOrigin:iT,getGlobalOrigin:oT}=ha();b.exports.setGlobalOrigin=iT;b.exports.getGlobalOrigin=oT;var{CacheStorage:aT}=OC(),{kConstruct:cT}=Si();b.exports.caches=new aT(cT);var{deleteCookie:gT,getCookies:QT,getSetCookies:ET,setCookie:lT}=tf();b.exports.deleteCookie=gT;b.exports.getCookies=QT;b.exports.getSetCookies=ET;b.exports.setCookie=lT;var{parseMIMEType:BT,serializeAMimeType:IT}=mA();b.exports.parseMIMEType=BT;b.exports.serializeAMimeType=IT;var{CloseEvent:uT,ErrorEvent:hT,MessageEvent:CT}=kr();b.exports.WebSocket=Kf().WebSocket;b.exports.CloseEvent=uT;b.exports.ErrorEvent=hT;b.exports.MessageEvent=CT;b.exports.request=Ts(Lr.request);b.exports.stream=Ts(Lr.stream);b.exports.pipeline=Ts(Lr.pipeline);b.exports.connect=Ts(Lr.connect);b.exports.upgrade=Ts(Lr.upgrade);b.exports.MockClient=zL;b.exports.MockPool=$L;b.exports.MockAgent=KL;b.exports.mockErrors=jL;var{EventSource:fT}=gd();b.exports.EventSource=fT});var qs=B((k2,vd)=>{"use strict";var YT="2.0.0",JT=Number.MAX_SAFE_INTEGER||9007199254740991,vT=16,HT=250,VT=["major","premajor","minor","preminor","patch","prepatch","prerelease"];vd.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:vT,MAX_SAFE_BUILD_LENGTH:HT,MAX_SAFE_INTEGER:JT,RELEASE_TYPES:VT,SEMVER_SPEC_VERSION:YT,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Os=B((N2,Hd)=>{"use strict";var qT=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Hd.exports=qT});var xr=B((pe,Vd)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:cQ,MAX_SAFE_BUILD_LENGTH:OT,MAX_LENGTH:WT}=qs(),PT=Os();pe=Vd.exports={};var _T=pe.re=[],ZT=pe.safeRe=[],p=pe.src=[],XT=pe.safeSrc=[],y=pe.t={},zT=0,gQ="[a-zA-Z0-9-]",KT=[["\\s",1],["\\d",WT],[gQ,OT]],$T=e=>{for(let[A,t]of KT)e=e.split(`${A}*`).join(`${A}{0,${t}}`).split(`${A}+`).join(`${A}{1,${t}}`);return e},L=(e,A,t)=>{let r=$T(A),s=zT++;PT(e,s,A),y[e]=s,p[s]=A,XT[s]=r,_T[s]=new RegExp(A,t?"g":void 0),ZT[s]=new RegExp(r,t?"g":void 0)};L("NUMERICIDENTIFIER","0|[1-9]\\d*");L("NUMERICIDENTIFIERLOOSE","\\d+");L("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${gQ}*`);L("MAINVERSION",`(${p[y.NUMERICIDENTIFIER]})\\.(${p[y.NUMERICIDENTIFIER]})\\.(${p[y.NUMERICIDENTIFIER]})`);L("MAINVERSIONLOOSE",`(${p[y.NUMERICIDENTIFIERLOOSE]})\\.(${p[y.NUMERICIDENTIFIERLOOSE]})\\.(${p[y.NUMERICIDENTIFIERLOOSE]})`);L("PRERELEASEIDENTIFIER",`(?:${p[y.NONNUMERICIDENTIFIER]}|${p[y.NUMERICIDENTIFIER]})`);L("PRERELEASEIDENTIFIERLOOSE",`(?:${p[y.NONNUMERICIDENTIFIER]}|${p[y.NUMERICIDENTIFIERLOOSE]})`);L("PRERELEASE",`(?:-(${p[y.PRERELEASEIDENTIFIER]}(?:\\.${p[y.PRERELEASEIDENTIFIER]})*))`);L("PRERELEASELOOSE",`(?:-?(${p[y.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[y.PRERELEASEIDENTIFIERLOOSE]})*))`);L("BUILDIDENTIFIER",`${gQ}+`);L("BUILD",`(?:\\+(${p[y.BUILDIDENTIFIER]}(?:\\.${p[y.BUILDIDENTIFIER]})*))`);L("FULLPLAIN",`v?${p[y.MAINVERSION]}${p[y.PRERELEASE]}?${p[y.BUILD]}?`);L("FULL",`^${p[y.FULLPLAIN]}$`);L("LOOSEPLAIN",`[v=\\s]*${p[y.MAINVERSIONLOOSE]}${p[y.PRERELEASELOOSE]}?${p[y.BUILD]}?`);L("LOOSE",`^${p[y.LOOSEPLAIN]}$`);L("GTLT","((?:<|>)?=?)");L("XRANGEIDENTIFIERLOOSE",`${p[y.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);L("XRANGEIDENTIFIER",`${p[y.NUMERICIDENTIFIER]}|x|X|\\*`);L("XRANGEPLAIN",`[v=\\s]*(${p[y.XRANGEIDENTIFIER]})(?:\\.(${p[y.XRANGEIDENTIFIER]})(?:\\.(${p[y.XRANGEIDENTIFIER]})(?:${p[y.PRERELEASE]})?${p[y.BUILD]}?)?)?`);L("XRANGEPLAINLOOSE",`[v=\\s]*(${p[y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[y.XRANGEIDENTIFIERLOOSE]})(?:${p[y.PRERELEASELOOSE]})?${p[y.BUILD]}?)?)?`);L("XRANGE",`^${p[y.GTLT]}\\s*${p[y.XRANGEPLAIN]}$`);L("XRANGELOOSE",`^${p[y.GTLT]}\\s*${p[y.XRANGEPLAINLOOSE]}$`);L("COERCEPLAIN",`(^|[^\\d])(\\d{1,${cQ}})(?:\\.(\\d{1,${cQ}}))?(?:\\.(\\d{1,${cQ}}))?`);L("COERCE",`${p[y.COERCEPLAIN]}(?:$|[^\\d])`);L("COERCEFULL",p[y.COERCEPLAIN]+`(?:${p[y.PRERELEASE]})?(?:${p[y.BUILD]})?(?:$|[^\\d])`);L("COERCERTL",p[y.COERCE],!0);L("COERCERTLFULL",p[y.COERCEFULL],!0);L("LONETILDE","(?:~>?)");L("TILDETRIM",`(\\s*)${p[y.LONETILDE]}\\s+`,!0);pe.tildeTrimReplace="$1~";L("TILDE",`^${p[y.LONETILDE]}${p[y.XRANGEPLAIN]}$`);L("TILDELOOSE",`^${p[y.LONETILDE]}${p[y.XRANGEPLAINLOOSE]}$`);L("LONECARET","(?:\\^)");L("CARETTRIM",`(\\s*)${p[y.LONECARET]}\\s+`,!0);pe.caretTrimReplace="$1^";L("CARET",`^${p[y.LONECARET]}${p[y.XRANGEPLAIN]}$`);L("CARETLOOSE",`^${p[y.LONECARET]}${p[y.XRANGEPLAINLOOSE]}$`);L("COMPARATORLOOSE",`^${p[y.GTLT]}\\s*(${p[y.LOOSEPLAIN]})$|^$`);L("COMPARATOR",`^${p[y.GTLT]}\\s*(${p[y.FULLPLAIN]})$|^$`);L("COMPARATORTRIM",`(\\s*)${p[y.GTLT]}\\s*(${p[y.LOOSEPLAIN]}|${p[y.XRANGEPLAIN]})`,!0);pe.comparatorTrimReplace="$1$2$3";L("HYPHENRANGE",`^\\s*(${p[y.XRANGEPLAIN]})\\s+-\\s+(${p[y.XRANGEPLAIN]})\\s*$`);L("HYPHENRANGELOOSE",`^\\s*(${p[y.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[y.XRANGEPLAINLOOSE]})\\s*$`);L("STAR","(<|>)?=?\\s*\\*");L("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");L("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var to=B((S2,qd)=>{"use strict";var jT=Object.freeze({loose:!0}),Ax=Object.freeze({}),ex=e=>e?typeof e!="object"?jT:e:Ax;qd.exports=ex});var QQ=B((b2,Pd)=>{"use strict";var Od=/^[0-9]+$/,Wd=(e,A)=>{if(typeof e=="number"&&typeof A=="number")return e===A?0:eWd(A,e);Pd.exports={compareIdentifiers:Wd,rcompareIdentifiers:tx}});var uA=B((U2,Zd)=>{"use strict";var ro=Os(),{MAX_LENGTH:_d,MAX_SAFE_INTEGER:so}=qs(),{safeRe:no,t:io}=xr(),rx=to(),{compareIdentifiers:EQ}=QQ(),lQ=class e{constructor(A,t){if(t=rx(t),A instanceof e){if(A.loose===!!t.loose&&A.includePrerelease===!!t.includePrerelease)return A;A=A.version}else if(typeof A!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof A}".`);if(A.length>_d)throw new TypeError(`version is longer than ${_d} characters`);ro("SemVer",A,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=A.trim().match(t.loose?no[io.LOOSE]:no[io.FULL]);if(!r)throw new TypeError(`Invalid Version: ${A}`);if(this.raw=A,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>so||this.major<0)throw new TypeError("Invalid major version");if(this.minor>so||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>so||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let n=+s;if(n>=0&&nA.major?1:this.minorA.minor?1:this.patchA.patch?1:0}comparePre(A){if(A instanceof e||(A=new e(A,this.options)),this.prerelease.length&&!A.prerelease.length)return-1;if(!this.prerelease.length&&A.prerelease.length)return 1;if(!this.prerelease.length&&!A.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],s=A.prerelease[t];if(ro("prerelease compare",t,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return EQ(r,s)}while(++t)}compareBuild(A){A instanceof e||(A=new e(A,this.options));let t=0;do{let r=this.build[t],s=A.build[t];if(ro("build compare",t,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return EQ(r,s)}while(++t)}inc(A,t,r){if(A.startsWith("pre")){if(!t&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=`-${t}`.match(this.options.loose?no[io.PRERELEASELOOSE]:no[io.PRERELEASE]);if(!s||s[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(A){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(t===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let n=[t,s];r===!1&&(n=[t]),EQ(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${A}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Zd.exports=lQ});var xt=B((M2,zd)=>{"use strict";var Xd=uA(),sx=(e,A,t=!1)=>{if(e instanceof Xd)return e;try{return new Xd(e,A)}catch(r){if(!t)return null;throw r}};zd.exports=sx});var $d=B((L2,Kd)=>{"use strict";var nx=xt(),ix=(e,A)=>{let t=nx(e,A);return t?t.version:null};Kd.exports=ix});var Aw=B((T2,jd)=>{"use strict";var ox=xt(),ax=(e,A)=>{let t=ox(e.trim().replace(/^[=v]+/,""),A);return t?t.version:null};jd.exports=ax});var rw=B((x2,tw)=>{"use strict";var ew=uA(),cx=(e,A,t,r,s)=>{typeof t=="string"&&(s=r,r=t,t=void 0);try{return new ew(e instanceof ew?e.version:e,t).inc(A,r,s).version}catch{return null}};tw.exports=cx});var iw=B((G2,nw)=>{"use strict";var sw=xt(),gx=(e,A)=>{let t=sw(e,null,!0),r=sw(A,null,!0),s=t.compare(r);if(s===0)return null;let n=s>0,i=n?t:r,o=n?r:t,a=!!i.prerelease.length;if(!!o.prerelease.length&&!a){if(!o.patch&&!o.minor)return"major";if(o.compareMain(i)===0)return o.minor&&!o.patch?"minor":"patch"}let g=a?"pre":"";return t.major!==r.major?g+"major":t.minor!==r.minor?g+"minor":t.patch!==r.patch?g+"patch":"prerelease"};nw.exports=gx});var aw=B((Y2,ow)=>{"use strict";var Qx=uA(),Ex=(e,A)=>new Qx(e,A).major;ow.exports=Ex});var gw=B((J2,cw)=>{"use strict";var lx=uA(),Bx=(e,A)=>new lx(e,A).minor;cw.exports=Bx});var Ew=B((v2,Qw)=>{"use strict";var Ix=uA(),ux=(e,A)=>new Ix(e,A).patch;Qw.exports=ux});var Bw=B((H2,lw)=>{"use strict";var hx=xt(),Cx=(e,A)=>{let t=hx(e,A);return t&&t.prerelease.length?t.prerelease:null};lw.exports=Cx});var XA=B((V2,uw)=>{"use strict";var Iw=uA(),fx=(e,A,t)=>new Iw(e,t).compare(new Iw(A,t));uw.exports=fx});var Cw=B((q2,hw)=>{"use strict";var dx=XA(),wx=(e,A,t)=>dx(A,e,t);hw.exports=wx});var dw=B((O2,fw)=>{"use strict";var px=XA(),yx=(e,A)=>px(e,A,!0);fw.exports=yx});var oo=B((W2,pw)=>{"use strict";var ww=uA(),Dx=(e,A,t)=>{let r=new ww(e,t),s=new ww(A,t);return r.compare(s)||r.compareBuild(s)};pw.exports=Dx});var Dw=B((P2,yw)=>{"use strict";var mx=oo(),Rx=(e,A)=>e.sort((t,r)=>mx(t,r,A));yw.exports=Rx});var Rw=B((_2,mw)=>{"use strict";var Fx=oo(),kx=(e,A)=>e.sort((t,r)=>Fx(r,t,A));mw.exports=kx});var Ws=B((Z2,Fw)=>{"use strict";var Nx=XA(),Sx=(e,A,t)=>Nx(e,A,t)>0;Fw.exports=Sx});var ao=B((X2,kw)=>{"use strict";var bx=XA(),Ux=(e,A,t)=>bx(e,A,t)<0;kw.exports=Ux});var BQ=B((z2,Nw)=>{"use strict";var Mx=XA(),Lx=(e,A,t)=>Mx(e,A,t)===0;Nw.exports=Lx});var IQ=B((K2,Sw)=>{"use strict";var Tx=XA(),xx=(e,A,t)=>Tx(e,A,t)!==0;Sw.exports=xx});var co=B(($2,bw)=>{"use strict";var Gx=XA(),Yx=(e,A,t)=>Gx(e,A,t)>=0;bw.exports=Yx});var go=B((j2,Uw)=>{"use strict";var Jx=XA(),vx=(e,A,t)=>Jx(e,A,t)<=0;Uw.exports=vx});var uQ=B((AH,Mw)=>{"use strict";var Hx=BQ(),Vx=IQ(),qx=Ws(),Ox=co(),Wx=ao(),Px=go(),_x=(e,A,t,r)=>{switch(A){case"===":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e===t;case"!==":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e!==t;case"":case"=":case"==":return Hx(e,t,r);case"!=":return Vx(e,t,r);case">":return qx(e,t,r);case">=":return Ox(e,t,r);case"<":return Wx(e,t,r);case"<=":return Px(e,t,r);default:throw new TypeError(`Invalid operator: ${A}`)}};Mw.exports=_x});var Tw=B((eH,Lw)=>{"use strict";var Zx=uA(),Xx=xt(),{safeRe:Qo,t:Eo}=xr(),zx=(e,A)=>{if(e instanceof Zx)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;A=A||{};let t=null;if(!A.rtl)t=e.match(A.includePrerelease?Qo[Eo.COERCEFULL]:Qo[Eo.COERCE]);else{let a=A.includePrerelease?Qo[Eo.COERCERTLFULL]:Qo[Eo.COERCERTL],c;for(;(c=a.exec(e))&&(!t||t.index+t[0].length!==e.length);)(!t||c.index+c[0].length!==t.index+t[0].length)&&(t=c),a.lastIndex=c.index+c[1].length+c[2].length;a.lastIndex=-1}if(t===null)return null;let r=t[2],s=t[3]||"0",n=t[4]||"0",i=A.includePrerelease&&t[5]?`-${t[5]}`:"",o=A.includePrerelease&&t[6]?`+${t[6]}`:"";return Xx(`${r}.${s}.${n}${i}${o}`,A)};Lw.exports=zx});var Gw=B((tH,xw)=>{"use strict";var hQ=class{constructor(){this.max=1e3,this.map=new Map}get(A){let t=this.map.get(A);if(t!==void 0)return this.map.delete(A),this.map.set(A,t),t}delete(A){return this.map.delete(A)}set(A,t){if(!this.delete(A)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(A,t)}return this}};xw.exports=hQ});var zA=B((rH,Hw)=>{"use strict";var Kx=/\s+/g,CQ=class e{constructor(A,t){if(t=jx(t),A instanceof e)return A.loose===!!t.loose&&A.includePrerelease===!!t.includePrerelease?A:new e(A.raw,t);if(A instanceof fQ)return this.raw=A.value,this.set=[[A]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=A.trim().replace(Kx," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(s=>!Jw(s[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&iG(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let A=0;A0&&(this.formatted+="||");let t=this.set[A];for(let r=0;r0&&(this.formatted+=" "),this.formatted+=t[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(A){let r=((this.options.includePrerelease&&sG)|(this.options.loose&&nG))+":"+A,s=Yw.get(r);if(s)return s;let n=this.options.loose,i=n?wA[hA.HYPHENRANGELOOSE]:wA[hA.HYPHENRANGE];A=A.replace(i,uG(this.options.includePrerelease)),K("hyphen replace",A),A=A.replace(wA[hA.COMPARATORTRIM],eG),K("comparator trim",A),A=A.replace(wA[hA.TILDETRIM],tG),K("tilde trim",A),A=A.replace(wA[hA.CARETTRIM],rG),K("caret trim",A);let o=A.split(" ").map(Q=>oG(Q,this.options)).join(" ").split(/\s+/).map(Q=>IG(Q,this.options));n&&(o=o.filter(Q=>(K("loose invalid filter",Q,this.options),!!Q.match(wA[hA.COMPARATORLOOSE])))),K("range list",o);let a=new Map,c=o.map(Q=>new fQ(Q,this.options));for(let Q of c){if(Jw(Q))return[Q];a.set(Q.value,Q)}a.size>1&&a.has("")&&a.delete("");let g=[...a.values()];return Yw.set(r,g),g}intersects(A,t){if(!(A instanceof e))throw new TypeError("a Range is required");return this.set.some(r=>vw(r,t)&&A.set.some(s=>vw(s,t)&&r.every(n=>s.every(i=>n.intersects(i,t)))))}test(A){if(!A)return!1;if(typeof A=="string")try{A=new AG(A,this.options)}catch{return!1}for(let t=0;te.value==="<0.0.0-0",iG=e=>e.value==="",vw=(e,A)=>{let t=!0,r=e.slice(),s=r.pop();for(;t&&r.length;)t=r.every(n=>s.intersects(n,A)),s=r.pop();return t},oG=(e,A)=>(e=e.replace(wA[hA.BUILD],""),K("comp",e,A),e=gG(e,A),K("caret",e),e=aG(e,A),K("tildes",e),e=EG(e,A),K("xrange",e),e=BG(e,A),K("stars",e),e),pA=e=>!e||e.toLowerCase()==="x"||e==="*",aG=(e,A)=>e.trim().split(/\s+/).map(t=>cG(t,A)).join(" "),cG=(e,A)=>{let t=A.loose?wA[hA.TILDELOOSE]:wA[hA.TILDE];return e.replace(t,(r,s,n,i,o)=>{K("tilde",e,r,s,n,i,o);let a;return pA(s)?a="":pA(n)?a=`>=${s}.0.0 <${+s+1}.0.0-0`:pA(i)?a=`>=${s}.${n}.0 <${s}.${+n+1}.0-0`:o?(K("replaceTilde pr",o),a=`>=${s}.${n}.${i}-${o} <${s}.${+n+1}.0-0`):a=`>=${s}.${n}.${i} <${s}.${+n+1}.0-0`,K("tilde return",a),a})},gG=(e,A)=>e.trim().split(/\s+/).map(t=>QG(t,A)).join(" "),QG=(e,A)=>{K("caret",e,A);let t=A.loose?wA[hA.CARETLOOSE]:wA[hA.CARET],r=A.includePrerelease?"-0":"";return e.replace(t,(s,n,i,o,a)=>{K("caret",e,s,n,i,o,a);let c;return pA(n)?c="":pA(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:pA(o)?n==="0"?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:c=`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(K("replaceCaret pr",a),n==="0"?i==="0"?c=`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:c=`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:c=`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(K("no pr"),n==="0"?i==="0"?c=`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:c=`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:c=`>=${n}.${i}.${o} <${+n+1}.0.0-0`),K("caret return",c),c})},EG=(e,A)=>(K("replaceXRanges",e,A),e.split(/\s+/).map(t=>lG(t,A)).join(" ")),lG=(e,A)=>{e=e.trim();let t=A.loose?wA[hA.XRANGELOOSE]:wA[hA.XRANGE];return e.replace(t,(r,s,n,i,o,a)=>{K("xRange",e,r,s,n,i,o,a);let c=pA(n),g=c||pA(i),Q=g||pA(o),E=Q;return s==="="&&E&&(s=""),a=A.includePrerelease?"-0":"",c?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&E?(g&&(i=0),o=0,s===">"?(s=">=",g?(n=+n+1,i=0,o=0):(i=+i+1,o=0)):s==="<="&&(s="<",g?n=+n+1:i=+i+1),s==="<"&&(a="-0"),r=`${s+n}.${i}.${o}${a}`):g?r=`>=${n}.0.0${a} <${+n+1}.0.0-0`:Q&&(r=`>=${n}.${i}.0${a} <${n}.${+i+1}.0-0`),K("xRange return",r),r})},BG=(e,A)=>(K("replaceStars",e,A),e.trim().replace(wA[hA.STAR],"")),IG=(e,A)=>(K("replaceGTE0",e,A),e.trim().replace(wA[A.includePrerelease?hA.GTE0PRE:hA.GTE0],"")),uG=e=>(A,t,r,s,n,i,o,a,c,g,Q,E)=>(pA(r)?t="":pA(s)?t=`>=${r}.0.0${e?"-0":""}`:pA(n)?t=`>=${r}.${s}.0${e?"-0":""}`:i?t=`>=${t}`:t=`>=${t}${e?"-0":""}`,pA(c)?a="":pA(g)?a=`<${+c+1}.0.0-0`:pA(Q)?a=`<${c}.${+g+1}.0-0`:E?a=`<=${c}.${g}.${Q}-${E}`:e?a=`<${c}.${g}.${+Q+1}-0`:a=`<=${a}`,`${t} ${a}`.trim()),hG=(e,A,t)=>{for(let r=0;r0){let s=e[r].semver;if(s.major===A.major&&s.minor===A.minor&&s.patch===A.patch)return!0}return!1}return!0}});var Ps=B((sH,_w)=>{"use strict";var _s=Symbol("SemVer ANY"),pQ=class e{static get ANY(){return _s}constructor(A,t){if(t=Vw(t),A instanceof e){if(A.loose===!!t.loose)return A;A=A.value}A=A.trim().split(/\s+/).join(" "),wQ("comparator",A,t),this.options=t,this.loose=!!t.loose,this.parse(A),this.semver===_s?this.value="":this.value=this.operator+this.semver.version,wQ("comp",this)}parse(A){let t=this.options.loose?qw[Ow.COMPARATORLOOSE]:qw[Ow.COMPARATOR],r=A.match(t);if(!r)throw new TypeError(`Invalid comparator: ${A}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new Ww(r[2],this.options.loose):this.semver=_s}toString(){return this.value}test(A){if(wQ("Comparator.test",A,this.options.loose),this.semver===_s||A===_s)return!0;if(typeof A=="string")try{A=new Ww(A,this.options)}catch{return!1}return dQ(A,this.operator,this.semver,this.options)}intersects(A,t){if(!(A instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Pw(A.value,t).test(this.value):A.operator===""?A.value===""?!0:new Pw(this.value,t).test(A.semver):(t=Vw(t),t.includePrerelease&&(this.value==="<0.0.0-0"||A.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&A.operator.startsWith(">")||this.operator.startsWith("<")&&A.operator.startsWith("<")||this.semver.version===A.semver.version&&this.operator.includes("=")&&A.operator.includes("=")||dQ(this.semver,"<",A.semver,t)&&this.operator.startsWith(">")&&A.operator.startsWith("<")||dQ(this.semver,">",A.semver,t)&&this.operator.startsWith("<")&&A.operator.startsWith(">")))}};_w.exports=pQ;var Vw=to(),{safeRe:qw,t:Ow}=xr(),dQ=uQ(),wQ=Os(),Ww=uA(),Pw=zA()});var Zs=B((nH,Zw)=>{"use strict";var CG=zA(),fG=(e,A,t)=>{try{A=new CG(A,t)}catch{return!1}return A.test(e)};Zw.exports=fG});var zw=B((iH,Xw)=>{"use strict";var dG=zA(),wG=(e,A)=>new dG(e,A).set.map(t=>t.map(r=>r.value).join(" ").trim().split(" "));Xw.exports=wG});var $w=B((oH,Kw)=>{"use strict";var pG=uA(),yG=zA(),DG=(e,A,t)=>{let r=null,s=null,n=null;try{n=new yG(A,t)}catch{return null}return e.forEach(i=>{n.test(i)&&(!r||s.compare(i)===-1)&&(r=i,s=new pG(r,t))}),r};Kw.exports=DG});var Ap=B((aH,jw)=>{"use strict";var mG=uA(),RG=zA(),FG=(e,A,t)=>{let r=null,s=null,n=null;try{n=new RG(A,t)}catch{return null}return e.forEach(i=>{n.test(i)&&(!r||s.compare(i)===1)&&(r=i,s=new mG(r,t))}),r};jw.exports=FG});var rp=B((cH,tp)=>{"use strict";var yQ=uA(),kG=zA(),ep=Ws(),NG=(e,A)=>{e=new kG(e,A);let t=new yQ("0.0.0");if(e.test(t)||(t=new yQ("0.0.0-0"),e.test(t)))return t;t=null;for(let r=0;r{let o=new yQ(i.semver.version);switch(i.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!n||ep(o,n))&&(n=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),n&&(!t||ep(t,n))&&(t=n)}return t&&e.test(t)?t:null};tp.exports=NG});var np=B((gH,sp)=>{"use strict";var SG=zA(),bG=(e,A)=>{try{return new SG(e,A).range||"*"}catch{return null}};sp.exports=bG});var lo=B((QH,cp)=>{"use strict";var UG=uA(),ap=Ps(),{ANY:MG}=ap,LG=zA(),TG=Zs(),ip=Ws(),op=ao(),xG=go(),GG=co(),YG=(e,A,t,r)=>{e=new UG(e,r),A=new LG(A,r);let s,n,i,o,a;switch(t){case">":s=ip,n=xG,i=op,o=">",a=">=";break;case"<":s=op,n=GG,i=ip,o="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(TG(e,A,r))return!1;for(let c=0;c{l.semver===MG&&(l=new ap(">=0.0.0")),Q=Q||l,E=E||l,s(l.semver,Q.semver,r)?Q=l:i(l.semver,E.semver,r)&&(E=l)}),Q.operator===o||Q.operator===a||(!E.operator||E.operator===o)&&n(e,E.semver))return!1;if(E.operator===a&&i(e,E.semver))return!1}return!0};cp.exports=YG});var Qp=B((EH,gp)=>{"use strict";var JG=lo(),vG=(e,A,t)=>JG(e,A,">",t);gp.exports=vG});var lp=B((lH,Ep)=>{"use strict";var HG=lo(),VG=(e,A,t)=>HG(e,A,"<",t);Ep.exports=VG});var up=B((BH,Ip)=>{"use strict";var Bp=zA(),qG=(e,A,t)=>(e=new Bp(e,t),A=new Bp(A,t),e.intersects(A,t));Ip.exports=qG});var Cp=B((IH,hp)=>{"use strict";var OG=Zs(),WG=XA();hp.exports=(e,A,t)=>{let r=[],s=null,n=null,i=e.sort((g,Q)=>WG(g,Q,t));for(let g of i)OG(g,A,t)?(n=g,s||(s=g)):(n&&r.push([s,n]),n=null,s=null);s&&r.push([s,null]);let o=[];for(let[g,Q]of r)g===Q?o.push(g):!Q&&g===i[0]?o.push("*"):Q?g===i[0]?o.push(`<=${Q}`):o.push(`${g} - ${Q}`):o.push(`>=${g}`);let a=o.join(" || "),c=typeof A.raw=="string"?A.raw:String(A);return a.length{"use strict";var fp=zA(),mQ=Ps(),{ANY:DQ}=mQ,Xs=Zs(),RQ=XA(),PG=(e,A,t={})=>{if(e===A)return!0;e=new fp(e,t),A=new fp(A,t);let r=!1;A:for(let s of e.set){for(let n of A.set){let i=ZG(s,n,t);if(r=r||i!==null,i)continue A}if(r)return!1}return!0},_G=[new mQ(">=0.0.0-0")],dp=[new mQ(">=0.0.0")],ZG=(e,A,t)=>{if(e===A)return!0;if(e.length===1&&e[0].semver===DQ){if(A.length===1&&A[0].semver===DQ)return!0;t.includePrerelease?e=_G:e=dp}if(A.length===1&&A[0].semver===DQ){if(t.includePrerelease)return!0;A=dp}let r=new Set,s,n;for(let l of e)l.operator===">"||l.operator===">="?s=wp(s,l,t):l.operator==="<"||l.operator==="<="?n=pp(n,l,t):r.add(l.semver);if(r.size>1)return null;let i;if(s&&n){if(i=RQ(s.semver,n.semver,t),i>0)return null;if(i===0&&(s.operator!==">="||n.operator!=="<="))return null}for(let l of r){if(s&&!Xs(l,String(s),t)||n&&!Xs(l,String(n),t))return null;for(let u of A)if(!Xs(l,String(u),t))return!1;return!0}let o,a,c,g,Q=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,E=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;Q&&Q.prerelease.length===1&&n.operator==="<"&&Q.prerelease[0]===0&&(Q=!1);for(let l of A){if(g=g||l.operator===">"||l.operator===">=",c=c||l.operator==="<"||l.operator==="<=",s){if(E&&l.semver.prerelease&&l.semver.prerelease.length&&l.semver.major===E.major&&l.semver.minor===E.minor&&l.semver.patch===E.patch&&(E=!1),l.operator===">"||l.operator===">="){if(o=wp(s,l,t),o===l&&o!==s)return!1}else if(s.operator===">="&&!Xs(s.semver,String(l),t))return!1}if(n){if(Q&&l.semver.prerelease&&l.semver.prerelease.length&&l.semver.major===Q.major&&l.semver.minor===Q.minor&&l.semver.patch===Q.patch&&(Q=!1),l.operator==="<"||l.operator==="<="){if(a=pp(n,l,t),a===l&&a!==n)return!1}else if(n.operator==="<="&&!Xs(n.semver,String(l),t))return!1}if(!l.operator&&(n||s)&&i!==0)return!1}return!(s&&c&&!n&&i!==0||n&&g&&!s&&i!==0||E||Q)},wp=(e,A,t)=>{if(!e)return A;let r=RQ(e.semver,A.semver,t);return r>0?e:r<0||A.operator===">"&&e.operator===">="?A:e},pp=(e,A,t)=>{if(!e)return A;let r=RQ(e.semver,A.semver,t);return r<0?e:r>0||A.operator==="<"&&e.operator==="<="?A:e};yp.exports=PG});var kQ=B((hH,Fp)=>{"use strict";var FQ=xr(),mp=qs(),XG=uA(),Rp=QQ(),zG=xt(),KG=$d(),$G=Aw(),jG=rw(),AY=iw(),eY=aw(),tY=gw(),rY=Ew(),sY=Bw(),nY=XA(),iY=Cw(),oY=dw(),aY=oo(),cY=Dw(),gY=Rw(),QY=Ws(),EY=ao(),lY=BQ(),BY=IQ(),IY=co(),uY=go(),hY=uQ(),CY=Tw(),fY=Ps(),dY=zA(),wY=Zs(),pY=zw(),yY=$w(),DY=Ap(),mY=rp(),RY=np(),FY=lo(),kY=Qp(),NY=lp(),SY=up(),bY=Cp(),UY=Dp();Fp.exports={parse:zG,valid:KG,clean:$G,inc:jG,diff:AY,major:eY,minor:tY,patch:rY,prerelease:sY,compare:nY,rcompare:iY,compareLoose:oY,compareBuild:aY,sort:cY,rsort:gY,gt:QY,lt:EY,eq:lY,neq:BY,gte:IY,lte:uY,cmp:hY,coerce:CY,Comparator:fY,Range:dY,satisfies:wY,toComparators:pY,maxSatisfying:yY,minSatisfying:DY,minVersion:mY,validRange:RY,outside:FY,gtr:kY,ltr:NY,intersects:SY,simplifyRange:bY,subset:UY,SemVer:XG,re:FQ.re,src:FQ.src,tokens:FQ.t,SEMVER_SPEC_VERSION:mp.SEMVER_SPEC_VERSION,RELEASE_TYPES:mp.RELEASE_TYPES,compareIdentifiers:Rp.compareIdentifiers,rcompareIdentifiers:Rp.rcompareIdentifiers}});var WY={};zp(WY,{run:()=>Op});module.exports=Kp(WY);var fo=require("path");var GQ=X(require("os"),1);function Yt(e){return e==null?"":typeof e=="string"||e instanceof String?e:JSON.stringify(e)}function TQ(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}function js(e,A,t){let r=new po(e,A,t);process.stdout.write(r.toString()+GQ.EOL)}var xQ="::",po=class{constructor(A,t,r){A||(A="missing.command"),this.command=A,this.properties=t,this.message=r}toString(){let A=xQ+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let t=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let s=this.properties[r];s&&(t?t=!1:A+=",",A+=`${r}=${jp(s)}`)}}return A+=`${xQ}${$p(this.message)}`,A}};function $p(e){return Yt(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function jp(e){return Yt(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var An=X(require("fs"),1),YQ=X(require("os"),1);function JQ(e,A){let t=process.env[`GITHUB_${e}`];if(!t)throw new Error(`Unable to find environment variable for file command ${e}`);if(!An.existsSync(t))throw new Error(`Missing file at path: ${t}`);An.appendFileSync(t,`${Yt(A)}${YQ.EOL}`,{encoding:"utf8"})}var Td=X(require("os"),1),xd=X(require("path"),1);var Ys=X(require("http"),1),Zg=X(require("https"),1);function yo(e){let A=e.protocol==="https:";if(Ay(e))return;let t=A?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(t)try{return new en(t)}catch{if(!t.startsWith("http://")&&!t.startsWith("https://"))return new en(`http://${t}`)}else return}function Ay(e){if(!e.hostname)return!1;let A=e.hostname;if(ey(A))return!0;let t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=Number(e.port):e.protocol==="http:"?r=80:e.protocol==="https:"&&(r=443);let s=[e.hostname.toUpperCase()];typeof r=="number"&&s.push(`${s[0]}:${r}`);for(let n of t.split(",").map(i=>i.trim().toUpperCase()).filter(i=>i))if(n==="*"||s.some(i=>i===n||i.endsWith(`.${n}`)||n.startsWith(".")&&i.endsWith(`${n}`)))return!0;return!1}function ey(e){let A=e.toLowerCase();return A==="localhost"||A.startsWith("127.")||A.startsWith("[::1]")||A.startsWith("[0:0:0:0:0:0:0:1]")}var en=class extends URL{constructor(A,t){super(A,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var ot=X(WQ(),1),Id=X(Bd(),1),iA=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},ZA;(function(e){e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"})(ZA||(ZA={}));var dA;(function(e){e.Accept="accept",e.ContentType="content-type"})(dA||(dA={}));var Je;(function(e){e.ApplicationJson="application/json"})(Je||(Je={}));var dT=[ZA.MovedPermanently,ZA.ResourceMoved,ZA.SeeOther,ZA.TemporaryRedirect,ZA.PermanentRedirect],wT=[ZA.BadGateway,ZA.ServiceUnavailable,ZA.GatewayTimeout],pT=["OPTIONS","GET","DELETE","HEAD"],yT=10,DT=5,Pg=class e extends Error{constructor(A,t){super(A),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,e.prototype)}},_g=class{constructor(A){this.message=A}readBody(){return iA(this,void 0,void 0,function*(){return new Promise(A=>iA(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",r=>{t=Buffer.concat([t,r])}),this.message.on("end",()=>{A(t.toString())})}))})}readBodyBuffer(){return iA(this,void 0,void 0,function*(){return new Promise(A=>iA(this,void 0,void 0,function*(){let t=[];this.message.on("data",r=>{t.push(r)}),this.message.on("end",()=>{A(Buffer.concat(t))})}))})}};var Gs=class{constructor(A,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(A),this.handlers=t||[],this.requestOptions=r,r&&(r.ignoreSslError!=null&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,r.allowRedirects!=null&&(this._allowRedirects=r.allowRedirects),r.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),r.maxRedirects!=null&&(this._maxRedirects=Math.max(r.maxRedirects,0)),r.keepAlive!=null&&(this._keepAlive=r.keepAlive),r.allowRetries!=null&&(this._allowRetries=r.allowRetries),r.maxRetries!=null&&(this._maxRetries=r.maxRetries))}options(A,t){return iA(this,void 0,void 0,function*(){return this.request("OPTIONS",A,null,t||{})})}get(A,t){return iA(this,void 0,void 0,function*(){return this.request("GET",A,null,t||{})})}del(A,t){return iA(this,void 0,void 0,function*(){return this.request("DELETE",A,null,t||{})})}post(A,t,r){return iA(this,void 0,void 0,function*(){return this.request("POST",A,t,r||{})})}patch(A,t,r){return iA(this,void 0,void 0,function*(){return this.request("PATCH",A,t,r||{})})}put(A,t,r){return iA(this,void 0,void 0,function*(){return this.request("PUT",A,t,r||{})})}head(A,t){return iA(this,void 0,void 0,function*(){return this.request("HEAD",A,null,t||{})})}sendStream(A,t,r,s){return iA(this,void 0,void 0,function*(){return this.request(A,t,r,s)})}getJson(A){return iA(this,arguments,void 0,function*(t,r={}){r[dA.Accept]=this._getExistingOrDefaultHeader(r,dA.Accept,Je.ApplicationJson);let s=yield this.get(t,r);return this._processResponse(s,this.requestOptions)})}postJson(A,t){return iA(this,arguments,void 0,function*(r,s,n={}){let i=JSON.stringify(s,null,2);n[dA.Accept]=this._getExistingOrDefaultHeader(n,dA.Accept,Je.ApplicationJson),n[dA.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Je.ApplicationJson);let o=yield this.post(r,i,n);return this._processResponse(o,this.requestOptions)})}putJson(A,t){return iA(this,arguments,void 0,function*(r,s,n={}){let i=JSON.stringify(s,null,2);n[dA.Accept]=this._getExistingOrDefaultHeader(n,dA.Accept,Je.ApplicationJson),n[dA.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Je.ApplicationJson);let o=yield this.put(r,i,n);return this._processResponse(o,this.requestOptions)})}patchJson(A,t){return iA(this,arguments,void 0,function*(r,s,n={}){let i=JSON.stringify(s,null,2);n[dA.Accept]=this._getExistingOrDefaultHeader(n,dA.Accept,Je.ApplicationJson),n[dA.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Je.ApplicationJson);let o=yield this.patch(r,i,n);return this._processResponse(o,this.requestOptions)})}request(A,t,r,s){return iA(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let n=new URL(t),i=this._prepareRequest(A,n,s),o=this._allowRetries&&pT.includes(A)?this._maxRetries+1:1,a=0,c;do{if(c=yield this.requestRaw(i,r),c&&c.message&&c.message.statusCode===ZA.Unauthorized){let Q;for(let E of this.handlers)if(E.canHandleAuthentication(c)){Q=E;break}return Q?Q.handleAuthentication(this,i,r):c}let g=this._maxRedirects;for(;c.message.statusCode&&dT.includes(c.message.statusCode)&&this._allowRedirects&&g>0;){let Q=c.message.headers.location;if(!Q)break;let E=new URL(Q);if(n.protocol==="https:"&&n.protocol!==E.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield c.readBody(),E.hostname!==n.hostname)for(let l in s)l.toLowerCase()==="authorization"&&delete s[l];i=this._prepareRequest(A,E,s),c=yield this.requestRaw(i,r),g--}if(!c.message.statusCode||!wT.includes(c.message.statusCode))return c;a+=1,a{function n(i,o){i?s(i):o?r(o):s(new Error("Unknown error"))}this.requestRawWithCallback(A,t,n)})})}requestRawWithCallback(A,t,r){typeof t=="string"&&(A.options.headers||(A.options.headers={}),A.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let s=!1;function n(a,c){s||(s=!0,r(a,c))}let i=A.httpModule.request(A.options,a=>{let c=new _g(a);n(void 0,c)}),o;i.on("socket",a=>{o=a}),i.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),n(new Error(`Request timeout: ${A.options.path}`))}),i.on("error",function(a){n(a)}),t&&typeof t=="string"&&i.write(t,"utf8"),t&&typeof t!="string"?(t.on("close",function(){i.end()}),t.pipe(i)):i.end()}getAgent(A){let t=new URL(A);return this._getAgent(t)}getAgentDispatcher(A){let t=new URL(A),r=yo(t);if(r&&r.hostname)return this._getProxyAgentDispatcher(t,r)}_prepareRequest(A,t,r){let s={};s.parsedUrl=t;let n=s.parsedUrl.protocol==="https:";s.httpModule=n?Zg:Ys;let i=n?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):i,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=A,s.options.headers=this._mergeHeaders(r),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let o of this.handlers)o.prepareRequest(s.options);return s}_mergeHeaders(A){return this.requestOptions&&this.requestOptions.headers?Object.assign({},xs(this.requestOptions.headers),xs(A||{})):xs(A||{})}_getExistingOrDefaultHeader(A,t,r){let s;if(this.requestOptions&&this.requestOptions.headers){let i=xs(this.requestOptions.headers)[t];i&&(s=typeof i=="number"?i.toString():i)}let n=A[t];return n!==void 0?typeof n=="number"?n.toString():n:s!==void 0?s:r}_getExistingOrDefaultContentTypeHeader(A,t){let r;if(this.requestOptions&&this.requestOptions.headers){let n=xs(this.requestOptions.headers)[dA.ContentType];n&&(typeof n=="number"?r=String(n):Array.isArray(n)?r=n.join(", "):r=n)}let s=A[dA.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:r!==void 0?r:t}_getAgent(A){let t,r=yo(A),s=r&&r.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),s||(t=this._agent),t)return t;let n=A.protocol==="https:",i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||Ys.globalAgent.maxSockets),r&&r.hostname){let o={maxSockets:i,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},a,c=r.protocol==="https:";n?a=c?ot.httpsOverHttps:ot.httpsOverHttp:a=c?ot.httpOverHttps:ot.httpOverHttp,t=a(o),this._proxyAgent=t}if(!t){let o={keepAlive:this._keepAlive,maxSockets:i};t=n?new Zg.Agent(o):new Ys.Agent(o),this._agent=t}return n&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(A,t){let r;if(this._keepAlive&&(r=this._proxyAgentDispatcher),r)return r;let s=A.protocol==="https:";return r=new Id.ProxyAgent(Object.assign({uri:t.href,pipelining:this._keepAlive?1:0},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`})),this._proxyAgentDispatcher=r,s&&this._ignoreSslError&&(r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:!1})),r}_getUserAgentWithOrchestrationId(A){let t=A||"actions/http-client",r=process.env.ACTIONS_ORCHESTRATION_ID;if(r){let s=r.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${s}`}return t}_performExponentialBackoff(A){return iA(this,void 0,void 0,function*(){A=Math.min(yT,A);let t=DT*Math.pow(2,A);return new Promise(r=>setTimeout(()=>r(),t))})}_processResponse(A,t){return iA(this,void 0,void 0,function*(){return new Promise((r,s)=>iA(this,void 0,void 0,function*(){let n=A.message.statusCode||0,i={statusCode:n,result:null,headers:{}};n===ZA.NotFound&&r(i);function o(g,Q){if(typeof Q=="string"){let E=new Date(Q);if(!isNaN(E.valueOf()))return E}return Q}let a,c;try{c=yield A.readBody(),c&&c.length>0&&(t&&t.deserializeDates?a=JSON.parse(c,o):a=JSON.parse(c),i.result=a),i.headers=A.message.headers}catch{}if(n>299){let g;a&&a.message?g=a.message:c&&c.length>0?g=c:g=`Failed request: (${n})`;let Q=new Pg(g,n);Q.result=i.result,s(Q)}else r(i)}))})}},xs=e=>Object.keys(e).reduce((A,t)=>(A[t.toLowerCase()]=e[t],A),{});var hd=require("os"),Js=require("fs"),Xg=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},{access:RT,appendFile:FT,writeFile:kT}=Js.promises,ud="GITHUB_STEP_SUMMARY";var zg=class{constructor(){this._buffer=""}filePath(){return Xg(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[ud];if(!A)throw new Error(`Unable to find environment variable for $${ud}. Check if your runtime environment supports job summaries.`);try{yield RT(A,Js.constants.R_OK|Js.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`)}return this._filePath=A,this._filePath})}wrap(A,t,r={}){let s=Object.entries(r).map(([n,i])=>` ${n}="${i}"`).join("");return t?`<${A}${s}>${t}`:`<${A}${s}>`}write(A){return Xg(this,void 0,void 0,function*(){let t=!!A?.overwrite,r=yield this.filePath();return yield(t?kT:FT)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Xg(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(A,t=!1){return this._buffer+=A,t?this.addEOL():this}addEOL(){return this.addRaw(hd.EOL)}addCodeBlock(A,t){let r=Object.assign({},t&&{lang:t}),s=this.wrap("pre",this.wrap("code",A),r);return this.addRaw(s).addEOL()}addList(A,t=!1){let r=t?"ol":"ul",s=A.map(i=>this.wrap("li",i)).join(""),n=this.wrap(r,s);return this.addRaw(n).addEOL()}addTable(A){let t=A.map(s=>{let n=s.map(i=>{if(typeof i=="string")return this.wrap("td",i);let{header:o,data:a,colspan:c,rowspan:g}=i,Q=o?"th":"td",E=Object.assign(Object.assign({},c&&{colspan:c}),g&&{rowspan:g});return this.wrap(Q,a,E)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(A,t){let r=this.wrap("details",this.wrap("summary",A)+t);return this.addRaw(r).addEOL()}addImage(A,t,r){let{width:s,height:n}=r||{},i=Object.assign(Object.assign({},s&&{width:s}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:A,alt:t},i));return this.addRaw(o).addEOL()}addHeading(A,t){let r=`h${t}`,s=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(s,A);return this.addRaw(n).addEOL()}addSeparator(){let A=this.wrap("hr",null);return this.addRaw(A).addEOL()}addBreak(){let A=this.wrap("br",null);return this.addRaw(A).addEOL()}addQuote(A,t){let r=Object.assign({},t&&{cite:t}),s=this.wrap("blockquote",A,r);return this.addRaw(s).addEOL()}addLink(A,t){let r=this.wrap("a",A,{href:t});return this.addRaw(r).addEOL()}},r2=new zg;var sQ=X(require("os"),1);var Vs=X(require("os"),1),rQ=X(require("events"),1),bd=X(require("child_process"),1),Ud=X(require("path"),1);var md=require("assert"),vA=X(require("path"),1);var vs=X(require("fs"),1),at=X(require("path"),1),Kg=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},{chmod:$g,copyFile:fd,lstat:Ki,mkdir:dd,open:i2,readdir:jg,rename:NT,rm:wd,rmdir:o2,stat:Mt,symlink:pd,unlink:AQ}=vs.promises,we=process.platform==="win32";function yd(e){return Kg(this,void 0,void 0,function*(){let A=yield vs.promises.readlink(e);return we&&!A.endsWith("\\")?`${A}\\`:A})}var a2=vs.constants.O_RDONLY;function Tr(e){return Kg(this,void 0,void 0,function*(){try{yield Mt(e)}catch(A){if(A.code==="ENOENT")return!1;throw A}return!0})}function $i(e){if(e=ST(e),!e)throw new Error('isRooted() parameter "p" cannot be empty');return we?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")}function eQ(e,A){return Kg(this,void 0,void 0,function*(){let t;try{t=yield Mt(e)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${s}`)}if(t&&t.isFile()){if(we){let s=at.extname(e).toUpperCase();if(A.some(n=>n.toUpperCase()===s))return e}else if(Cd(t))return e}let r=e;for(let s of A){e=r+s,t=void 0;try{t=yield Mt(e)}catch(n){n.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${n}`)}if(t&&t.isFile()){if(we){try{let n=at.dirname(e),i=at.basename(e).toUpperCase();for(let o of yield jg(n))if(i===o.toUpperCase()){e=at.join(n,o);break}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${n}`)}return e}else if(Cd(t))return e}}return""})}function ST(e){return e=e||"",we?(e=e.replace(/\//g,"\\"),e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function Cd(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var Lt=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})};function Rd(e,A){return Lt(this,arguments,void 0,function*(t,r,s={}){let{force:n,recursive:i,copySourceDirectory:o}=UT(s),a=(yield Tr(r))?yield Mt(r):null;if(a&&a.isFile()&&!n)return;let c=a&&a.isDirectory()&&o?vA.join(r,vA.basename(t)):r;if(!(yield Tr(t)))throw new Error(`no such file or directory: ${t}`);if((yield Mt(t)).isDirectory())if(i)yield Fd(t,c,0,n);else throw new Error(`Failed to copy. ${t} is a directory, but tried to copy without recursive flag.`);else{if(vA.relative(t,c)==="")throw new Error(`'${c}' and '${t}' are the same file`);yield kd(t,c,n)}})}function ji(e){return Lt(this,void 0,void 0,function*(){if(we&&/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield wd(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(A){throw new Error(`File was unable to be removed ${A}`)}})}function Hs(e){return Lt(this,void 0,void 0,function*(){(0,md.ok)(e,"a path argument must be provided"),yield dd(e,{recursive:!0})})}function Tt(e,A){return Lt(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");if(A){let r=yield Tt(e,!1);if(!r)throw we?new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return r}let t=yield bT(e);return t&&t.length>0?t[0]:""})}function bT(e){return Lt(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");let A=[];if(we&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(vA.delimiter))s&&A.push(s);if($i(e)){let s=yield eQ(e,A);return s?[s]:[]}if(e.includes(vA.sep))return[];let t=[];if(process.env.PATH)for(let s of process.env.PATH.split(vA.delimiter))s&&t.push(s);let r=[];for(let s of t){let n=yield eQ(vA.join(s,e),A);n&&r.push(n)}return r})}function UT(e){let A=e.force==null?!0:e.force,t=!!e.recursive,r=e.copySourceDirectory==null?!0:!!e.copySourceDirectory;return{force:A,recursive:t,copySourceDirectory:r}}function Fd(e,A,t,r){return Lt(this,void 0,void 0,function*(){if(t>=255)return;t++,yield Hs(A);let s=yield jg(e);for(let n of s){let i=`${e}/${n}`,o=`${A}/${n}`;(yield Ki(i)).isDirectory()?yield Fd(i,o,t,r):yield kd(i,o,r)}yield $g(A,(yield Mt(e)).mode)})}function kd(e,A,t){return Lt(this,void 0,void 0,function*(){if((yield Ki(e)).isSymbolicLink()){try{yield Ki(A),yield AQ(A)}catch(s){s.code==="EPERM"&&(yield $g(A,"0666"),yield AQ(A))}let r=yield yd(e);yield pd(r,A,we?"junction":null)}else(!(yield Tr(A))||t)&&(yield fd(e,A))})}var Md=require("timers"),Sd=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},Ao=process.platform==="win32",eo=class extends rQ.EventEmitter{constructor(A,t,r){if(super(),!A)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=A,this.args=t||[],this.options=r||{}}_debug(A){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(A)}_getCommandString(A,t){let r=this._getSpawnFileName(),s=this._getSpawnArgs(A),n=t?"":"[command]";if(Ao)if(this._isCmdFile()){n+=r;for(let i of s)n+=` ${i}`}else if(A.windowsVerbatimArguments){n+=`"${r}"`;for(let i of s)n+=` ${i}`}else{n+=this._windowsQuoteCmdArg(r);for(let i of s)n+=` ${this._windowsQuoteCmdArg(i)}`}else{n+=r;for(let i of s)n+=` ${i}`}return n}_processLineBuffer(A,t,r){try{let s=t+A.toString(),n=s.indexOf(Vs.EOL);for(;n>-1;){let i=s.substring(0,n);r(i),s=s.substring(n+Vs.EOL.length),n=s.indexOf(Vs.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return Ao&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(A){if(Ao&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let r of this.args)t+=" ",t+=A.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(A,t){return A.endsWith(t)}_isCmdFile(){let A=this.toolPath.toUpperCase();return this._endsWith(A,".CMD")||this._endsWith(A,".BAT")}_windowsQuoteCmdArg(A){if(!this._isCmdFile())return this._uvQuoteCmdArg(A);if(!A)return'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let i of A)if(t.some(o=>o===i)){r=!0;break}if(!r)return A;let s='"',n=!0;for(let i=A.length;i>0;i--)s+=A[i-1],n&&A[i-1]==="\\"?s+="\\":A[i-1]==='"'?(n=!0,s+='"'):n=!1;return s+='"',s.split("").reverse().join("")}_uvQuoteCmdArg(A){if(!A)return'""';if(!A.includes(" ")&&!A.includes(" ")&&!A.includes('"'))return A;if(!A.includes('"')&&!A.includes("\\"))return`"${A}"`;let t='"',r=!0;for(let s=A.length;s>0;s--)t+=A[s-1],r&&A[s-1]==="\\"?t+="\\":A[s-1]==='"'?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(A){A=A||{};let t={cwd:A.cwd||process.cwd(),env:A.env||process.env,silent:A.silent||!1,windowsVerbatimArguments:A.windowsVerbatimArguments||!1,failOnStdErr:A.failOnStdErr||!1,ignoreReturnCode:A.ignoreReturnCode||!1,delay:A.delay||1e4};return t.outStream=A.outStream||process.stdout,t.errStream=A.errStream||process.stderr,t}_getSpawnOptions(A,t){A=A||{};let r={};return r.cwd=A.cwd,r.env=A.env,r.windowsVerbatimArguments=A.windowsVerbatimArguments||this._isCmdFile(),A.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return Sd(this,void 0,void 0,function*(){return!$i(this.toolPath)&&(this.toolPath.includes("/")||Ao&&this.toolPath.includes("\\"))&&(this.toolPath=Ud.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Tt(this.toolPath,!0),new Promise((A,t)=>Sd(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let c of this.args)this._debug(` ${c}`);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+Vs.EOL);let s=new tQ(r,this.toolPath);if(s.on("debug",c=>{this._debug(c)}),this.options.cwd&&!(yield Tr(this.options.cwd)))return t(new Error(`The cwd: ${this.options.cwd} does not exist!`));let n=this._getSpawnFileName(),i=bd.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n)),o="";i.stdout&&i.stdout.on("data",c=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(c),!r.silent&&r.outStream&&r.outStream.write(c),o=this._processLineBuffer(c,o,g=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(g)})});let a="";if(i.stderr&&i.stderr.on("data",c=>{s.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(c),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(c),a=this._processLineBuffer(c,a,g=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(g)})}),i.on("error",c=>{s.processError=c.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()}),i.on("exit",c=>{s.processExitCode=c,s.processExited=!0,this._debug(`Exit code ${c} received from tool '${this.toolPath}'`),s.CheckComplete()}),i.on("close",c=>{s.processExitCode=c,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()}),s.on("done",(c,g)=>{o.length>0&&this.emit("stdline",o),a.length>0&&this.emit("errline",a),i.removeAllListeners(),c?t(c):A(g)}),this.options.input){if(!i.stdin)throw new Error("child process missing stdin");i.stdin.end(this.options.input)}}))})}};function Ld(e){let A=[],t=!1,r=!1,s="";function n(i){r&&i!=='"'&&(s+="\\"),s+=i,r=!1}for(let i=0;i0&&(A.push(s),s="");continue}n(o)}return s.length>0&&A.push(s.trim()),A}var tQ=class e extends rQ.EventEmitter{constructor(A,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=A,this.toolPath=t,A.delay&&(this.delay=A.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,Md.setTimeout)(e.HandleTimeout,this.delay,this)))}_debug(A){this.emit("debug",A)}_setResult(){let A;this.processExited&&(this.processError?A=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?A=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(A=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",A,this.processExitCode)}static HandleTimeout(A){if(!A.done){if(!A.processClosed&&A.processExited){let t=`The STDIO streams did not close within ${A.delay/1e3} seconds of the exit event from process '${A.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;A._debug(t)}A._setResult()}}};var LT=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})};function ct(e,A,t){return LT(this,void 0,void 0,function*(){let r=Ld(e);if(r.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let s=r[0];return A=r.slice(1).concat(A||[]),new eo(s,A,t).exec()})}var Q2=sQ.default.platform(),E2=sQ.default.arch();var nQ;(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(nQ||(nQ={}));function Gd(e){process.env.GITHUB_PATH||""?JQ("PATH",e):js("add-path",{},e),process.env.PATH=`${e}${xd.delimiter}${process.env.PATH}`}function iQ(e,A){let t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(A&&A.required&&!t)throw new Error(`Input required and not supplied: ${e}`);return A&&A.trimWhitespace===!1?t:t.trim()}function Yd(e){process.exitCode=nQ.Failure,GT(e)}function oQ(){return process.env.RUNNER_DEBUG==="1"}function W(e){js("debug",{},e)}function GT(e,A={}){js("error",TQ(A),e instanceof Error?e.toString():e)}function aQ(e){process.stdout.write(e+Td.EOL)}var SQ=X(require("crypto"),1),yA=X(require("fs"),1);var MY=X(kQ(),1);var uo=X(require("os"),1),ae=X(require("path"),1);var KA=X(kQ(),1),Np=X(require("stream"),1),Sp=X(require("util"),1),bQ=require("assert");var kp=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},Bo=class{constructor(A,t,r){if(A<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=A,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(A,t){return kp(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,A*1e3))})}};var ye=function(e,A,t,r){function s(n){return n instanceof t?n:new t(function(i){i(n)})}return new(t||(t=Promise))(function(n,i){function o(g){try{c(r.next(g))}catch(Q){i(Q)}}function a(g){try{c(r.throw(g))}catch(Q){i(Q)}}function c(g){g.done?n(g.value):s(g.value).then(o,a)}c((r=r.apply(e,A||[])).next())})},Io=class extends Error{constructor(A){super(`Unexpected HTTP response: ${A}`),this.httpStatusCode=A,Object.setPrototypeOf(this,new.target.prototype)}},bp=process.platform==="win32",yH=process.platform==="darwin",TY="actions/tool-cache";function Up(e,A,t,r){return ye(this,void 0,void 0,function*(){A=A||ae.join(Jp(),SQ.randomUUID()),yield Hs(ae.dirname(A)),W(`Downloading ${e}`),W(`Destination ${A}`);let s=3,n=NQ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=NQ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Bo(s,n,i).execute(()=>ye(this,void 0,void 0,function*(){return yield xY(e,A||"",t,r)}),a=>!(a instanceof Io&&a.httpStatusCode&&a.httpStatusCode<500&&a.httpStatusCode!==408&&a.httpStatusCode!==429))})}function xY(e,A,t,r){return ye(this,void 0,void 0,function*(){if(yA.existsSync(A))throw new Error(`Destination file path ${A} already exists`);let s=new Gs(TY,[],{allowRetries:!1});t&&(W("set auth"),r===void 0&&(r={}),r.authorization=t);let n=yield s.get(e,r);if(n.message.statusCode!==200){let g=new Io(n.message.statusCode);throw W(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),g}let i=Sp.promisify(Np.pipeline),a=NQ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),c=!1;try{return yield i(a,yA.createWriteStream(A)),W("download complete"),c=!0,A}finally{if(!c){W("download failed");try{yield ji(A)}catch(g){W(`Failed to delete '${A}'. ${g.message}`)}}}})}function Mp(e,A){return ye(this,arguments,void 0,function*(t,r,s="xz"){if(!t)throw new Error("parameter 'file' is required");r=yield Gp(r),W("Checking tar --version");let n="";yield ct("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:g=>n+=g.toString(),stderr:g=>n+=g.toString()}}),W(n.trim());let i=n.toUpperCase().includes("GNU TAR"),o;s instanceof Array?o=s:o=[s],oQ()&&!s.includes("v")&&o.push("-v");let a=r,c=t;return bp&&i&&(o.push("--force-local"),a=r.replace(/\\/g,"/"),c=t.replace(/\\/g,"/")),i&&(o.push("--warning=no-unknown-keyword"),o.push("--overwrite")),o.push("-C",a,"-f",c),yield ct("tar",o),r})}function Lp(e,A){return ye(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'file' is required");return A=yield Gp(A),bp?yield GY(e,A):yield YY(e,A),A})}function GY(e,A){return ye(this,void 0,void 0,function*(){let t=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=yield Tt("pwsh",!1);if(s){let i=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${t}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`].join(" ")];W(`Using pwsh at path: ${s}`),yield ct(`"${s}"`,i)}else{let i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${t}' -DestinationPath '${r}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) }`].join(" ")],o=yield Tt("powershell",!0);W(`Using powershell at path: ${o}`),yield ct(`"${o}"`,i)}})}function YY(e,A){return ye(this,void 0,void 0,function*(){let t=yield Tt("unzip",!0),r=[e];oQ()||r.unshift("-q"),r.unshift("-o"),yield ct(`"${t}"`,r,{cwd:A})})}function Tp(e,A,t,r,s){return ye(this,void 0,void 0,function*(){if(r=KA.clean(r)||r,s=s||uo.arch(),W(`Caching tool ${t} ${r} ${s}`),W(`source file: ${e}`),!yA.statSync(e).isFile())throw new Error("sourceFile is not a file");let n=yield vY(t,r,s),i=ae.join(n,A);return W(`destination file ${i}`),yield Rd(e,i),HY(t,r,s),n})}function xp(e,A,t){if(!e)throw new Error("toolName parameter is required");if(!A)throw new Error("versionSpec parameter is required");if(t=t||uo.arch(),!Yp(A)){let s=JY(e,t);A=VY(s,A)}let r="";if(A){A=KA.clean(A)||"";let s=ae.join(ho(),e,A,t);W(`checking cache: ${s}`),yA.existsSync(s)&&yA.existsSync(`${s}.complete`)?(W(`Found tool in cache ${e} ${A} ${t}`),r=s):W("not found")}return r}function JY(e,A){let t=[];A=A||uo.arch();let r=ae.join(ho(),e);if(yA.existsSync(r)){let s=yA.readdirSync(r);for(let n of s)if(Yp(n)){let i=ae.join(r,n,A||"");yA.existsSync(i)&&yA.existsSync(`${i}.complete`)&&t.push(n)}}return t}function Gp(e){return ye(this,void 0,void 0,function*(){return e||(e=ae.join(Jp(),SQ.randomUUID())),yield Hs(e),e})}function vY(e,A,t){return ye(this,void 0,void 0,function*(){let r=ae.join(ho(),e,KA.clean(A)||A,t||"");W(`destination ${r}`);let s=`${r}.complete`;return yield ji(r),yield ji(s),yield Hs(r),r})}function HY(e,A,t){let s=`${ae.join(ho(),e,KA.clean(A)||A,t||"")}.complete`;yA.writeFileSync(s,""),W("finished caching tool")}function Yp(e){let A=KA.clean(e)||"";W(`isExplicit: ${A}`);let t=KA.valid(A)!=null;return W(`explicit? ${t}`),t}function VY(e,A){let t="";W(`evaluating ${e.length} versions`),e=e.sort((r,s)=>KA.gt(r,s)?1:-1);for(let r=e.length-1;r>=0;r--){let s=e[r];if(KA.satisfies(s,A)){t=s;break}}return t?W(`matched: ${t}`):W("match not found"),t}function ho(){let e=process.env.RUNNER_TOOL_CACHE||"";return(0,bQ.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function Jp(){let e=process.env.RUNNER_TEMP||"";return(0,bQ.ok)(e,"Expected RUNNER_TEMP to be defined"),e}function NQ(e,A){let t=global[e];return t!==void 0?t:A}var zs=require("os"),UQ=require("path"),vp=(s=>(s.arm="arm",s.arm64="arm64",s.x32="386",s.x64="amd64",s))(vp||{});function qY(e){return vp[e]}var Hp=(r=>(r.darwin="macOS",r.linux="linux",r.win32="windows",r))(Hp||{});function OY(e){return Hp[e]}function Vp(e){let A=(0,zs.platform)(),t=(0,zs.arch)(),r=`gh_${e}_${OY(A)}_${qY(t)}`,s=A==="win32"?"zip":"tar.gz";return{binaryDirectory:A==="win32"?"bin":(0,UQ.join)(r,"bin"),url:`https://github.com/cli/cli/releases/download/v${e}/${r}.${s}`}}function Co(e,A){return(0,UQ.join)(e,A+((0,zs.platform)()==="win32"?".exe":""))}var qp="gh";async function Op(){try{let e=iQ("version"),A=iQ("name"),t=Co("",A),r=xp(A,e),s=!!r;if(!s){let n=Vp(e),i=await Up(n.url),a=await(n.url.endsWith(".zip")?Lp:Mp)(i),c=(0,fo.join)(a,n.binaryDirectory);r=Co(c,A),A!==qp&&await ct("mv",[Co(c,qp),r])}Gd((0,fo.dirname)(r)),s||await Tp(r,t,A,e)}catch(e){e instanceof Error&&Yd(e.message)}}Op();0&&(module.exports={run}); /*! Bundled license information: undici/lib/web/fetch/body.js: diff --git a/eslint.config.mjs b/eslint.config.mts similarity index 67% rename from eslint.config.mjs rename to eslint.config.mts index b11ca686..60269684 100644 --- a/eslint.config.mjs +++ b/eslint.config.mts @@ -1,8 +1,7 @@ import { fileURLToPath } from 'node:url'; -import { includeIgnoreFile } from '@eslint/compat'; -import eslint from '@eslint/js'; -import { defineConfig } from 'eslint/config'; +import js from '@eslint/js'; +import { defineConfig, includeIgnoreFile } from 'eslint/config'; import prettier from 'eslint-plugin-prettier'; import simpleImportSort from 'eslint-plugin-simple-import-sort'; import tsdoc from 'eslint-plugin-tsdoc'; @@ -23,17 +22,27 @@ export default defineConfig([ plugins: { 'simple-import-sort': simpleImportSort, - eslint, + js, prettier, tsdoc, }, - extends: [eslint.configs.recommended, tseslint.configs.recommended], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + tseslint.configs.recommendedTypeChecked, + tseslint.configs.strictTypeChecked, + tseslint.configs.stylisticTypeChecked, + ], languageOptions: { globals: { ...globals.node, - ...globals.jest, + ...globals.vitest, + }, + parserOptions: { + project: ['tsconfig.eslint.json'], + tsconfigRootDir: import.meta.dirname, }, }, diff --git a/package-lock.json b/package-lock.json index 1d0d2ad9..2c8c83ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,11 +16,10 @@ "devDependencies": { "@commitlint/cli": "21.0.2", "@commitlint/config-conventional": "21.0.2", - "@eslint/compat": "2.1.0", "@eslint/eslintrc": "3.3.5", "@eslint/js": "10.0.1", "@types/node": "25.9.1", - "@vitest/coverage-v8": "3.2.4", + "@vitest/coverage-v8": "4.1.8", "eslint": "10.4.1", "eslint-plugin-prettier": "5.5.6", "eslint-plugin-simple-import-sort": "13.0.0", @@ -32,7 +31,7 @@ "tsup": "8.5.1", "typescript": "6.0.3", "typescript-eslint": "8.60.1", - "vitest": "3.2.4" + "vitest": "4.1.8" } }, "node_modules/@actions/core": { @@ -83,20 +82,6 @@ "semver": "^7.7.3" } }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@babel/code-frame": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", @@ -113,9 +98,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", "dev": true, "license": "MIT", "engines": { @@ -133,13 +118,13 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", - "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", + "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.29.0" + "@babel/types": "^7.29.7" }, "bin": { "parser": "bin/babel-parser.js" @@ -149,14 +134,14 @@ } }, "node_modules/@babel/types": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", - "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", + "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5" + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { "node": ">=6.9.0" @@ -439,6 +424,40 @@ } } }, + "node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.27.4", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.4.tgz", @@ -923,27 +942,6 @@ "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/@eslint/compat": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-2.1.0.tgz", - "integrity": "sha512-LgaSCymEpw7tF53xvDw9SNsraPb1IBHxpdABIOM0hW8UAlP8znrjYtuxfR58FSJ3L9BhwD+FaPRFQpZq84Nh6g==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^1.2.1" - }, - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "peerDependencies": { - "eslint": "^8.40 || 9 || 10" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, "node_modules/@eslint/config-array": { "version": "0.23.5", "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", @@ -1182,34 +1180,6 @@ "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -1269,15 +1239,33 @@ "resolve": "~1.22.2" } }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", + "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", "dev": true, "license": "MIT", "optional": true, - "engines": { - "node": ">=14" + "dependencies": { + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.133.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.133.0.tgz", + "integrity": "sha512-KzkdCd6Uxqnf6l3HOw1xfatAlUURA0g14cvBYFyJ5SaNOQbOUvBr9PKArcPcrNIeRsBdgcUzOGrhKveVpvOIGA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" } }, "node_modules/@pkgr/core": { @@ -1293,24 +1281,10 @@ "url": "https://opencollective.com/pkgr" } }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", - "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz", - "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==", + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.3.tgz", + "integrity": "sha512-454rs7jHngixp/NMxd5srYD57OnzSlZ/eFTETjORQHLwJG1lRtmNOJcBerZlfu4GjKqeq8aCCIQrMdHyhI51Hw==", "cpu": [ "arm64" ], @@ -1319,12 +1293,15 @@ "optional": true, "os": [ "android" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz", - "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==", + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.3.tgz", + "integrity": "sha512-PcAhP+ynjURNyy8SKGl5DQP94aGuB/7JrXJb/t7P+hanXvQVMWzUvRRhBAcg/lNRadBhoUPqSoP4xw5tR/KBEA==", "cpu": [ "arm64" ], @@ -1333,12 +1310,15 @@ "optional": true, "os": [ "darwin" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz", - "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==", + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.3.tgz", + "integrity": "sha512-9YpfeUvSE2RS7wysJ81uOZkXJz7f7Q55H2Gvp3VEw/EsahqDtrphrZ0EwDLK5vvKOzaCrBsjF8JmnMLcUt78Gg==", "cpu": [ "x64" ], @@ -1347,26 +1327,15 @@ "optional": true, "os": [ "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz", - "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==", - "cpu": [ - "arm64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz", - "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==", + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.3.tgz", + "integrity": "sha512-yB1IlAsSNHncV6SCTL27/MVGR5htvQsoGxIv5KMGXALp+Ll1wYsn+x98M9MW7qa+NdSbvrrY7ANI4wLJ0n1e6g==", "cpu": [ "x64" ], @@ -1375,26 +1344,15 @@ "optional": true, "os": [ "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz", - "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==", - "cpu": [ - "arm" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz", - "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==", + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.3.tgz", + "integrity": "sha512-Yi30IVAAfLUCy2MseFjbB1jAMDl1VMCAas5StnYp8da9+CKvMd2H2cbEjWcw5NPaPqzvYkVIaF1nNUG+b7u/sw==", "cpu": [ "arm" ], @@ -1403,12 +1361,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz", - "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==", + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.3.tgz", + "integrity": "sha512-jsO7R8To+AdlYgUmN5sHSCZbfhtMBkO0WUx8iORQnPcMMdgr7qM2DQmMwgabs3GhNztdmoKkMKQFHD6DTMCIQw==", "cpu": [ "arm64" ], @@ -1417,12 +1378,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz", - "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==", + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.3.tgz", + "integrity": "sha512-VWkUHwWriDciit80wleYwKILoR/KMvxh/IdwS/paX+ZgpuRpCrKLUdadJbc0NpBEiyhpYawsJ73j9aCvOH+f7Q==", "cpu": [ "arm64" ], @@ -1431,105 +1395,393 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz", - "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==", + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.3.tgz", + "integrity": "sha512-5f1laC0SlIR0yDbFCd8acUhvJIag6N3zC5P7oUPN6wX0aOma+uKJ0wBDH5aq7I1PVI2ttTlhJwzwRIBnLiSGEg==", "cpu": [ - "loong64" + "ppc64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz", - "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==", + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.3.tgz", + "integrity": "sha512-Iq4ko0r4XsgbrF/LunNgHtAGLRRVE2kXonAXQ/MV0mC6jQpMOhW1SvtZja2EhC/kd05++bP78dsqBeIQyYJ6Yg==", "cpu": [ - "loong64" + "s390x" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz", - "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==", + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.3.tgz", + "integrity": "sha512-B8m6tD5+/N5FeNQFbKlLA/2yVq9ycQP1SeedyEYYKWBNR3ZQbkvIUcNnDNM03lO1l5F2roiiFJGgvoLLyZXtSg==", "cpu": [ - "ppc64" + "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz", - "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==", + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.3.tgz", + "integrity": "sha512-pSdpdUJHkuCxun9LE7jvgUB9qsRgaiyNNCX7m/AvHTcq67AiT/Yhoxvw5zPfhrM8k/BfP8ce/hMOpthKDpEUow==", "cpu": [ - "ppc64" + "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz", - "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==", + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.3.tgz", + "integrity": "sha512-OXXS3RKJgX2uLwM+gYyuH5omcH8fL1LJs96pZGgtetVCahON57+d4SJHzTgZiOjxgGkSnpXpOsWuPDGAKAigEg==", "cpu": [ - "riscv64" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "linux" - ] + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz", - "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==", + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.3.tgz", + "integrity": "sha512-JTtb8BWFynicNSoPrehsCzBtOKjZ6jhMiPFEmOiuXg1Fl8dn2KHQob+GuPSGR0dryQa1PQJbzjF3dqO/whhjLg==", "cpu": [ - "riscv64" + "wasm32" ], "dev": true, "license": "MIT", "optional": true, - "os": [ - "linux" - ] + "dependencies": { + "@emnapi/core": "1.10.0", + "@emnapi/runtime": "1.10.0", + "@napi-rs/wasm-runtime": "^1.1.4" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz", - "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==", + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.3.tgz", + "integrity": "sha512-gEdFFEN70A/jxb2svrWsN3aDL7OUtmvlOy+6fa2jxG8K0wQ1ZbdeLGnidov6Yu5/733dI5ySfzFlQ/cb0bSz1g==", "cpu": [ - "s390x" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "linux" - ] + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.3.tgz", + "integrity": "sha512-eXB7CHuaQdqmJcc3koCNtNPmT/bj2gc999kUFgBxG8Ac0NdgXc4rkCHhqrgrhN3zddvvvrgzj1e90SuSfmyIXA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", + "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz", + "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz", + "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz", + "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz", + "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz", + "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz", + "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz", + "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz", + "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz", + "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz", + "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz", + "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz", + "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz", + "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz", + "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz", + "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz", + "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { "version": "4.59.0", @@ -1672,6 +1924,24 @@ "url": "https://ko-fi.com/dangreen" } }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", + "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@types/chai": { "version": "5.2.3", "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", @@ -2201,32 +2471,29 @@ } }, "node_modules/@vitest/coverage-v8": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-3.2.4.tgz", - "integrity": "sha512-EyF9SXU6kS5Ku/U82E259WSnvg6c8KTjppUncuNdm5QHpe17mwREHnjDzozC8x9MZ0xfBUFSaLkRv4TMA75ALQ==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-4.1.8.tgz", + "integrity": "sha512-lt3kovsyHwYe00wq4D1ti0Z974fWj4NLp6siqiyEufUpyFwK9Yhi7rBhac9JL5aA0zoMrJqc4vYPZRUnI7l7nw==", "dev": true, "license": "MIT", "dependencies": { - "@ampproject/remapping": "^2.3.0", "@bcoe/v8-coverage": "^1.0.2", - "ast-v8-to-istanbul": "^0.3.3", - "debug": "^4.4.1", + "@vitest/utils": "4.1.8", + "ast-v8-to-istanbul": "^1.0.0", "istanbul-lib-coverage": "^3.2.2", "istanbul-lib-report": "^3.0.1", - "istanbul-lib-source-maps": "^5.0.6", - "istanbul-reports": "^3.1.7", - "magic-string": "^0.30.17", - "magicast": "^0.3.5", - "std-env": "^3.9.0", - "test-exclude": "^7.0.1", - "tinyrainbow": "^2.0.0" + "istanbul-reports": "^3.2.0", + "magicast": "^0.5.2", + "obug": "^2.1.1", + "std-env": "^4.0.0-rc.1", + "tinyrainbow": "^3.1.0" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { - "@vitest/browser": "3.2.4", - "vitest": "3.2.4" + "@vitest/browser": "4.1.8", + "vitest": "4.1.8" }, "peerDependenciesMeta": { "@vitest/browser": { @@ -2244,94 +2511,41 @@ "node": ">=18" } }, - "node_modules/@vitest/coverage-v8/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@vitest/coverage-v8/node_modules/brace-expansion": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.4.tgz", - "integrity": "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@vitest/coverage-v8/node_modules/minimatch": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", - "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.2" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@vitest/coverage-v8/node_modules/test-exclude": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.2.tgz", - "integrity": "sha512-u9E6A+ZDYdp7a4WnarkXPZOx8Ilz46+kby6p1yZ8zsGTz9gYa6FIS7lj2oezzNKmtdyyJNNmmXDppga5GB7kSw==", - "dev": true, - "license": "ISC", - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^10.4.1", - "minimatch": "^10.2.2" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/@vitest/expect": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz", - "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.8.tgz", + "integrity": "sha512-h3nDO677RDLEGlBxyQ5CW8RlMThSKSRLUePLOx09gNIWRL40edgA1GCZSZgf1W55MFAG6/Sw14KeaAnqv0NKdQ==", "dev": true, "license": "MIT", "dependencies": { + "@standard-schema/spec": "^1.1.0", "@types/chai": "^5.2.2", - "@vitest/spy": "3.2.4", - "@vitest/utils": "3.2.4", - "chai": "^5.2.0", - "tinyrainbow": "^2.0.0" + "@vitest/spy": "4.1.8", + "@vitest/utils": "4.1.8", + "chai": "^6.2.2", + "tinyrainbow": "^3.1.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/mocker": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz", - "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.8.tgz", + "integrity": "sha512-LEiN/xe4OSIbKe9HQIp5OC24agGD9J5CnmMgsLohVVoOPWL9a2sBoR6VBx43jQZb7Kr1l4RCuyCJzcAa0+dojw==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/spy": "3.2.4", + "@vitest/spy": "4.1.8", "estree-walker": "^3.0.3", - "magic-string": "^0.30.17" + "magic-string": "^0.30.21" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "msw": "^2.4.9", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "msw": { @@ -2343,42 +2557,42 @@ } }, "node_modules/@vitest/pretty-format": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz", - "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.8.tgz", + "integrity": "sha512-9GasEBxpZ1VYIpqHf/0+YGg121uSNwCKOJqIrTwWP/TB7DmFCiaBpNl3aPZzoLWfWkuqhbH8vJIVobZkvdo2cA==", "dev": true, "license": "MIT", "dependencies": { - "tinyrainbow": "^2.0.0" + "tinyrainbow": "^3.1.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/runner": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz", - "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.8.tgz", + "integrity": "sha512-EmVxeBAfMJvycdjd6Hm+RbFBbA9fKvo0Kx37hNpBYoYeavH3RNsBXWDooR1mgD52dCrxIIuP7UotpfiwOikvcg==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/utils": "3.2.4", - "pathe": "^2.0.3", - "strip-literal": "^3.0.0" + "@vitest/utils": "4.1.8", + "pathe": "^2.0.3" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/snapshot": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz", - "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.8.tgz", + "integrity": "sha512-acfZboRmAIf05DEKcBQy33VXojFJjtUdLyo7oOmV9kebb2xdU01UknNiPuPZoJZQyO7DF0gZdTGTpeAzET9QPQ==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "3.2.4", - "magic-string": "^0.30.17", + "@vitest/pretty-format": "4.1.8", + "@vitest/utils": "4.1.8", + "magic-string": "^0.30.21", "pathe": "^2.0.3" }, "funding": { @@ -2386,28 +2600,25 @@ } }, "node_modules/@vitest/spy": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", - "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.8.tgz", + "integrity": "sha512-6EevtBp6OZOPF7bmz36HrGMeP3txgVSrgebWxHOafDXGkhIzfXK14f8KF6MuFfgXXUeHxmpD3BQxkV00/3s5mA==", "dev": true, "license": "MIT", - "dependencies": { - "tinyspy": "^4.0.3" - }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/utils": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz", - "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.8.tgz", + "integrity": "sha512-uOJamYALNhfJ6iolExyQM40yIQwDqYnkKtQ5VCiSe17E33H0aQ/u+1GlRuz4LZBk6Mm3sg90G9hEbmEt37C1Zg==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "3.2.4", - "loupe": "^3.1.4", - "tinyrainbow": "^2.0.0" + "@vitest/pretty-format": "4.1.8", + "convert-source-map": "^2.0.0", + "tinyrainbow": "^3.1.0" }, "funding": { "url": "https://opencollective.com/vitest" @@ -2482,22 +2693,6 @@ "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", @@ -2530,9 +2725,9 @@ } }, "node_modules/ast-v8-to-istanbul": { - "version": "0.3.12", - "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-0.3.12.tgz", - "integrity": "sha512-BRRC8VRZY2R4Z4lFIL35MwNXmwVqBityvOIwETtsCSwvjl0IdgFsy9NhdaA6j74nUdtJJlIypeRhpDam19Wq3g==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-1.0.3.tgz", + "integrity": "sha512-jCMQ6ZylLPudp0CDfBmQBZUsrh1/8psbmu9ibeVWKuHWD0YrH9YABwlKu5kVEFoT0GCQQW9Z/SxfuEbbkGQCRg==", "dev": true, "license": "MIT", "dependencies": { @@ -2603,32 +2798,15 @@ } }, "node_modules/chai": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz", - "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", + "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", "dev": true, "license": "MIT", - "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, "engines": { "node": ">=18" } }, - "node_modules/check-error": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz", - "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 16" - } - }, "node_modules/chokidar": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", @@ -2766,26 +2944,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, "node_modules/compare-func": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", @@ -2864,6 +3022,13 @@ "node": ">=18" } }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, "node_modules/cosmiconfig": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.1.tgz", @@ -2942,16 +3107,6 @@ } } }, - "node_modules/deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -2959,6 +3114,16 @@ "dev": true, "license": "MIT" }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, "node_modules/dot-prop": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", @@ -2972,20 +3137,6 @@ "node": ">=8" } }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, - "license": "MIT" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" - }, "node_modules/env-paths": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", @@ -3020,9 +3171,9 @@ } }, "node_modules/es-module-lexer": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", - "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.1.0.tgz", + "integrity": "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==", "dev": true, "license": "MIT" }, @@ -3699,23 +3850,6 @@ "dev": true, "license": "ISC" }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -3781,28 +3915,6 @@ "node": ">=18" } }, - "node_modules/glob": { - "version": "10.5.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", - "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", - "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", - "dev": true, - "license": "ISC", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -3816,32 +3928,6 @@ "node": ">=10.13.0" } }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", - "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.2" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/global-directory": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-5.0.0.tgz", @@ -4091,21 +4177,6 @@ "node": ">=10" } }, - "node_modules/istanbul-lib-source-maps": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz", - "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.23", - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/istanbul-reports": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", @@ -4120,22 +4191,6 @@ "node": ">=8" } }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, "node_modules/jiti": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", @@ -4235,6 +4290,267 @@ "node": ">= 0.8.0" } }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, "node_modules/lilconfig": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", @@ -4464,13 +4780,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/loupe": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", - "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==", - "dev": true, - "license": "MIT" - }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", @@ -4482,15 +4791,15 @@ } }, "node_modules/magicast": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.5.tgz", - "integrity": "sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==", + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.5.3.tgz", + "integrity": "sha512-pVKE4UdSQ7DvHzivsCIFx2BJn1mHG6KsyrFcaxFx6tONdneEuThrDx0Cj3AMg58KyN4pzYT+LHOotxDQDjNvkw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/parser": "^7.25.4", - "@babel/types": "^7.25.4", - "source-map-js": "^1.2.0" + "@babel/parser": "^7.29.3", + "@babel/types": "^7.29.0", + "source-map-js": "^1.2.1" } }, "node_modules/make-dir": { @@ -4541,21 +4850,11 @@ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", "dev": true, "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minipass": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", - "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", - "dev": true, - "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^1.1.7" + }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "*" } }, "node_modules/mlly": { @@ -4626,6 +4925,17 @@ "node": ">=0.10.0" } }, + "node_modules/obug": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz", + "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT" + }, "node_modules/onetime": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", @@ -4692,13 +5002,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, - "license": "BlueOak-1.0.0" - }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -4758,30 +5061,6 @@ "dev": true, "license": "MIT" }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" - }, "node_modules/pathe": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", @@ -4789,16 +5068,6 @@ "dev": true, "license": "MIT" }, - "node_modules/pathval": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", - "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.16" - } - }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -5041,6 +5310,40 @@ "dev": true, "license": "MIT" }, + "node_modules/rolldown": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.3.tgz", + "integrity": "sha512-i00lAJ2ks1BYr7rjNjKC7BcqAS7nVfiT3QX1SI5aY+AFHblCmaUf9OE9dbdzDvW6dJxbi2ZCZiy9v3CcwOiX3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.133.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.3", + "@rolldown/binding-darwin-arm64": "1.0.3", + "@rolldown/binding-darwin-x64": "1.0.3", + "@rolldown/binding-freebsd-x64": "1.0.3", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.3", + "@rolldown/binding-linux-arm64-gnu": "1.0.3", + "@rolldown/binding-linux-arm64-musl": "1.0.3", + "@rolldown/binding-linux-ppc64-gnu": "1.0.3", + "@rolldown/binding-linux-s390x-gnu": "1.0.3", + "@rolldown/binding-linux-x64-gnu": "1.0.3", + "@rolldown/binding-linux-x64-musl": "1.0.3", + "@rolldown/binding-openharmony-arm64": "1.0.3", + "@rolldown/binding-wasm32-wasi": "1.0.3", + "@rolldown/binding-win32-arm64-msvc": "1.0.3", + "@rolldown/binding-win32-x64-msvc": "1.0.3" + } + }, "node_modules/rollup": { "version": "4.59.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz", @@ -5189,9 +5492,9 @@ "license": "MIT" }, "node_modules/std-env": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", - "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.1.0.tgz", + "integrity": "sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==", "dev": true, "license": "MIT" }, @@ -5205,80 +5508,6 @@ "node": ">=0.6.19" } }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/strip-ansi": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", @@ -5295,30 +5524,6 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -5332,26 +5537,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/strip-literal": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz", - "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^9.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/strip-literal/node_modules/js-tokens": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", - "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", - "dev": true, - "license": "MIT" - }, "node_modules/sucrase": { "version": "3.35.1", "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", @@ -5468,14 +5653,14 @@ } }, "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "dev": true, "license": "MIT", "dependencies": { "fdir": "^6.5.0", - "picomatch": "^4.0.3" + "picomatch": "^4.0.4" }, "engines": { "node": ">=12.0.0" @@ -5484,30 +5669,10 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/tinypool": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", - "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.0.0 || >=20.0.0" - } - }, "node_modules/tinyrainbow": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", - "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.4.tgz", - "integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz", + "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==", "dev": true, "license": "MIT", "engines": { @@ -5544,6 +5709,14 @@ "dev": true, "license": "Apache-2.0" }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, "node_modules/tsup": { "version": "8.5.1", "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.5.1.tgz", @@ -5708,18 +5881,17 @@ } }, "node_modules/vite": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.2.tgz", - "integrity": "sha512-Bby3NOsna2jsjfLVOHKes8sGwgl4TT0E6vvpYgnAYDIF/tie7MRaFthmKuHx1NSXjiTueXH3do80FMQgvEktRg==", + "version": "8.0.16", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.16.tgz", + "integrity": "sha512-h9bXPmJichP5fLmVQo3PyaGSDE2n3aPuomeAlVRm0JLmt4rY6zmPKd59HYI4LNW8oTK7tlTsuC7l/m7awx9Jcw==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.27.0", - "fdir": "^6.5.0", - "picomatch": "^4.0.3", - "postcss": "^8.5.6", - "rollup": "^4.43.0", - "tinyglobby": "^0.2.15" + "lightningcss": "^1.32.0", + "picomatch": "^4.0.4", + "postcss": "^8.5.15", + "rolldown": "1.0.3", + "tinyglobby": "^0.2.17" }, "bin": { "vite": "bin/vite.js" @@ -5735,9 +5907,10 @@ }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.1.18", + "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", - "lightningcss": "^1.21.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", @@ -5750,13 +5923,16 @@ "@types/node": { "optional": true }, - "jiti": { + "@vitejs/devtools": { "optional": true }, - "less": { + "esbuild": { + "optional": true + }, + "jiti": { "optional": true }, - "lightningcss": { + "less": { "optional": true }, "sass": { @@ -5782,89 +5958,80 @@ } } }, - "node_modules/vite-node": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", - "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", - "dev": true, - "license": "MIT", - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.4.1", - "es-module-lexer": "^1.7.0", - "pathe": "^2.0.3", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/vitest": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz", - "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/chai": "^5.2.2", - "@vitest/expect": "3.2.4", - "@vitest/mocker": "3.2.4", - "@vitest/pretty-format": "^3.2.4", - "@vitest/runner": "3.2.4", - "@vitest/snapshot": "3.2.4", - "@vitest/spy": "3.2.4", - "@vitest/utils": "3.2.4", - "chai": "^5.2.0", - "debug": "^4.4.1", - "expect-type": "^1.2.1", - "magic-string": "^0.30.17", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.8.tgz", + "integrity": "sha512-flY6ScbCIt9HThs+C5HS7jvGOB560DJtk/Z15IQROTA6zEy49Nh8T/dofWTQL+n3vswqn87sbJNiuqw1SDp5Ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/expect": "4.1.8", + "@vitest/mocker": "4.1.8", + "@vitest/pretty-format": "4.1.8", + "@vitest/runner": "4.1.8", + "@vitest/snapshot": "4.1.8", + "@vitest/spy": "4.1.8", + "@vitest/utils": "4.1.8", + "es-module-lexer": "^2.0.0", + "expect-type": "^1.3.0", + "magic-string": "^0.30.21", + "obug": "^2.1.1", "pathe": "^2.0.3", - "picomatch": "^4.0.2", - "std-env": "^3.9.0", + "picomatch": "^4.0.3", + "std-env": "^4.0.0-rc.1", "tinybench": "^2.9.0", - "tinyexec": "^0.3.2", - "tinyglobby": "^0.2.14", - "tinypool": "^1.1.1", - "tinyrainbow": "^2.0.0", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", - "vite-node": "3.2.4", + "tinyexec": "^1.0.2", + "tinyglobby": "^0.2.15", + "tinyrainbow": "^3.1.0", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0", "why-is-node-running": "^2.3.0" }, "bin": { "vitest": "vitest.mjs" }, "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": "^20.0.0 || ^22.0.0 || >=24.0.0" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "@edge-runtime/vm": "*", - "@types/debug": "^4.1.12", - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", - "@vitest/browser": "3.2.4", - "@vitest/ui": "3.2.4", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "4.1.8", + "@vitest/browser-preview": "4.1.8", + "@vitest/browser-webdriverio": "4.1.8", + "@vitest/coverage-istanbul": "4.1.8", + "@vitest/coverage-v8": "4.1.8", + "@vitest/ui": "4.1.8", "happy-dom": "*", - "jsdom": "*" + "jsdom": "*", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "@edge-runtime/vm": { "optional": true }, - "@types/debug": { + "@opentelemetry/api": { "optional": true }, "@types/node": { "optional": true }, - "@vitest/browser": { + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { "optional": true }, "@vitest/ui": { @@ -5875,16 +6042,12 @@ }, "jsdom": { "optional": true + }, + "vite": { + "optional": false } } }, - "node_modules/vitest/node_modules/tinyexec": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", - "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", - "dev": true, - "license": "MIT" - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -5928,111 +6091,6 @@ "node": ">=0.10.0" } }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index c9510866..cecba89b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "clean": "rm -rf coverage dist", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", - "lint:tsc": "tsc --noEmit", + "lint:tsc": "tsc -p tsconfig.eslint.json", "prepare": "husky", "test": "vitest run", "test:ci": "CI=true npm test -- --color --coverage", @@ -24,11 +24,10 @@ "devDependencies": { "@commitlint/cli": "21.0.2", "@commitlint/config-conventional": "21.0.2", - "@eslint/compat": "2.1.0", "@eslint/eslintrc": "3.3.5", "@eslint/js": "10.0.1", "@types/node": "25.9.1", - "@vitest/coverage-v8": "3.2.4", + "@vitest/coverage-v8": "4.1.8", "eslint": "10.4.1", "eslint-plugin-prettier": "5.5.6", "eslint-plugin-simple-import-sort": "13.0.0", @@ -40,7 +39,7 @@ "tsup": "8.5.1", "typescript": "6.0.3", "typescript-eslint": "8.60.1", - "vitest": "3.2.4" + "vitest": "4.1.8" }, "private": true, "license": "MIT" diff --git a/src/__snapshots__/utils.test.ts.snap b/src/__snapshots__/utils.test.ts.snap index 84f06d5e..228a19d2 100644 --- a/src/__snapshots__/utils.test.ts.snap +++ b/src/__snapshots__/utils.test.ts.snap @@ -1,68 +1,68 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`getBinaryPath > when platform is %p darwin > returns CLI filepath 1`] = `"directory/name"`; +exports[`getBinaryPath > when platform is darwin > returns CLI filepath 1`] = `"directory/name"`; -exports[`getBinaryPath > when platform is %p linux > returns CLI filepath 1`] = `"directory/name"`; +exports[`getBinaryPath > when platform is linux > returns CLI filepath 1`] = `"directory/name"`; -exports[`getBinaryPath > when platform is %p win32 > returns CLI filepath 1`] = `"directory/name.exe"`; +exports[`getBinaryPath > when platform is win32 > returns CLI filepath 1`] = `"directory/name.exe"`; -exports[`getDownloadObject > when OS is %p and arch is %p darwin arm > gets download object 1`] = ` +exports[`getDownloadObject > when OS is darwin and arch is arm > gets download object 1`] = ` { "binaryDirectory": "gh_2.27.0_macOS_arm/bin", "url": "https://github.com/cli/cli/releases/download/v2.27.0/gh_2.27.0_macOS_arm.tar.gz", } `; -exports[`getDownloadObject > when OS is %p and arch is %p darwin x32 > gets download object 1`] = ` +exports[`getDownloadObject > when OS is darwin and arch is x32 > gets download object 1`] = ` { "binaryDirectory": "gh_2.27.0_macOS_386/bin", "url": "https://github.com/cli/cli/releases/download/v2.27.0/gh_2.27.0_macOS_386.tar.gz", } `; -exports[`getDownloadObject > when OS is %p and arch is %p darwin x64 > gets download object 1`] = ` +exports[`getDownloadObject > when OS is darwin and arch is x64 > gets download object 1`] = ` { "binaryDirectory": "gh_2.27.0_macOS_amd64/bin", "url": "https://github.com/cli/cli/releases/download/v2.27.0/gh_2.27.0_macOS_amd64.tar.gz", } `; -exports[`getDownloadObject > when OS is %p and arch is %p linux arm > gets download object 1`] = ` +exports[`getDownloadObject > when OS is linux and arch is arm > gets download object 1`] = ` { "binaryDirectory": "gh_2.27.0_linux_arm/bin", "url": "https://github.com/cli/cli/releases/download/v2.27.0/gh_2.27.0_linux_arm.tar.gz", } `; -exports[`getDownloadObject > when OS is %p and arch is %p linux x32 > gets download object 1`] = ` +exports[`getDownloadObject > when OS is linux and arch is x32 > gets download object 1`] = ` { "binaryDirectory": "gh_2.27.0_linux_386/bin", "url": "https://github.com/cli/cli/releases/download/v2.27.0/gh_2.27.0_linux_386.tar.gz", } `; -exports[`getDownloadObject > when OS is %p and arch is %p linux x64 > gets download object 1`] = ` +exports[`getDownloadObject > when OS is linux and arch is x64 > gets download object 1`] = ` { "binaryDirectory": "gh_2.27.0_linux_amd64/bin", "url": "https://github.com/cli/cli/releases/download/v2.27.0/gh_2.27.0_linux_amd64.tar.gz", } `; -exports[`getDownloadObject > when OS is %p and arch is %p win32 arm > gets download object 1`] = ` +exports[`getDownloadObject > when OS is win32 and arch is arm > gets download object 1`] = ` { "binaryDirectory": "bin", "url": "https://github.com/cli/cli/releases/download/v2.27.0/gh_2.27.0_windows_arm.zip", } `; -exports[`getDownloadObject > when OS is %p and arch is %p win32 x32 > gets download object 1`] = ` +exports[`getDownloadObject > when OS is win32 and arch is x32 > gets download object 1`] = ` { "binaryDirectory": "bin", "url": "https://github.com/cli/cli/releases/download/v2.27.0/gh_2.27.0_windows_386.zip", } `; -exports[`getDownloadObject > when OS is %p and arch is %p win32 x64 > gets download object 1`] = ` +exports[`getDownloadObject > when OS is win32 and arch is x64 > gets download object 1`] = ` { "binaryDirectory": "bin", "url": "https://github.com/cli/cli/releases/download/v2.27.0/gh_2.27.0_windows_amd64.zip", diff --git a/src/index.test.ts b/src/index.test.ts index bb473ac2..fa5686c7 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -29,10 +29,10 @@ const pathToTarball = 'path/to/tarball'; const pathToCLI = 'path/to/cli'; const platforms = ['darwin', 'win32', 'linux']; -describe.each(platforms)('when platform is %p', (platform) => { +describe.each(platforms)('when platform is %s', (platform) => { beforeEach(() => { mockedOs.platform.mockReturnValue(platform as NodeJS.Platform); - mockedOs.arch.mockReturnValue('arm64' as NodeJS.Architecture); + mockedOs.arch.mockReturnValue('arm64'); mockedCore.getInput.mockImplementation((input) => { switch (input) { @@ -89,4 +89,13 @@ describe('error', () => { await run(); expect(mockedCore.setFailed).toHaveBeenCalledWith(message); }); + + it('throws non-error', async () => { + mockedCore.getInput.mockImplementationOnce(() => { + // eslint-disable-next-line @typescript-eslint/only-throw-error + throw 'string error'; + }); + await run(); + expect(mockedCore.setFailed).not.toHaveBeenCalled(); + }); }); diff --git a/src/index.ts b/src/index.ts index 5d38dba6..1d7d7c18 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,4 +64,4 @@ export async function run() { } } -run(); +void run(); diff --git a/src/utils.test.ts b/src/utils.test.ts index ce188b2d..3dc5359d 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -10,18 +10,18 @@ import { getBinaryPath, getDownloadObject } from './utils.js'; const platforms: NodeJS.Platform[] = ['darwin', 'linux', 'win32']; const architectures = ['arm', 'x32', 'x64'] as NodeJS.Architecture[]; -const table = platforms.reduce( +const table = platforms.reduce<[NodeJS.Platform, NodeJS.Architecture][]>( (testSuites, platform) => [ ...testSuites, ...architectures.map( (arch) => [platform, arch] as [NodeJS.Platform, NodeJS.Architecture], ), ], - [] as [NodeJS.Platform, NodeJS.Architecture][], + [], ); describe('getDownloadObject', () => { - describe.each(table)('when OS is %p and arch is %p', (os, arch) => { + describe.each(table)('when OS is %s and arch is %s', (os, arch) => { const version = '2.27.0'; beforeEach(() => { @@ -37,7 +37,7 @@ describe('getDownloadObject', () => { }); describe('getBinaryPath', () => { - describe.each(platforms)('when platform is %p', (platform) => { + describe.each(platforms)('when platform is %s', (platform) => { beforeEach(() => { vi.resetAllMocks(); mockedOs.platform.mockReturnValueOnce(platform); diff --git a/src/utils.ts b/src/utils.ts index 44bf7726..c96429c7 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -17,7 +17,7 @@ enum Architecture { * @returns - Return value in [arm, arm64, 386, amd64] */ function getArch(arch: NodeJS.Architecture) { - return Architecture[arch as keyof typeof Architecture] || arch; + return Architecture[arch as keyof typeof Architecture]; } enum Platform { @@ -35,7 +35,7 @@ enum Platform { * @returns - Return value in [macOS, linux, windows] */ function getOS(os: NodeJS.Platform) { - return Platform[os as keyof typeof Platform] || os; + return Platform[os as keyof typeof Platform]; } /** @@ -48,7 +48,7 @@ function getOS(os: NodeJS.Platform) { */ export function getDownloadObject(version: string) { const os = platform(); - const architecture = arch() as NodeJS.Architecture; + const architecture = arch(); const filename = `gh_${version}_${getOS(os)}_${getArch(architecture)}`; const extension = os === 'win32' ? 'zip' : 'tar.gz'; diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 00000000..57c9871f --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "skipLibCheck": true, + "noEmit": true + }, + "include": ["src", "*.config.ts", "*.config.mts", "eslint.config.mts"] +} diff --git a/tsconfig.json b/tsconfig.json index 2e960157..f7b9e4e3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "target": "es2022", - "module": "es2022", + "target": "es2024", + "module": "esnext", "moduleResolution": "bundler", "esModuleInterop": true, - "strict": true + "strict": true, + "types": ["node"] }, "include": ["src"] }