[bot] Update dist directory

This commit is contained in:
bot-githubaction committed 2026-04-03 03:36:46 +00:00
1 parent ff9ae24c39
commit f5dfb43fc8
9 files changed
+595 -617

No files matched your search

+134 -149
View File
@@ -1,114 +1,114 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var n3e=Object.create;var zF=Object.defineProperty;var s3e=Object.getOwnPropertyDescriptor;var i3e=Object.getOwnPropertyNames;var o3e=Object.getPrototypeOf,a3e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ya=(t,e)=>{for(var r in e)zF(t,r,{get:e[r],enumerable:!0})},A3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of i3e(e))!a3e.call(t,s)&&s!==r&&zF(t,s,{get:()=>e[s],enumerable:!(n=s3e(e,s))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?n3e(o3e(t)):{},A3e(e||!t||!t.__esModule?zF(r,"default",{value:t,enumerable:!0}):r,t));var v$=m(fp=>{"use strict";var Iqt=b("net"),f3e=b("tls"),$F=b("http"),R$=b("https"),g3e=b("events"),yqt=b("assert"),p3e=b("util");fp.httpOverHttp=m3e;fp.httpsOverHttp=E3e;fp.httpOverHttps=C3e;fp.httpsOverHttps=I3e;function m3e(t){var e=new tu(t);return e.request=$F.request,e}function E3e(t){var e=new tu(t);return e.request=$F.request,e.createSocket=D$,e.defaultPort=443,e}function C3e(t){var e=new tu(t);return e.request=R$.request,e}function I3e(t){var e=new tu(t);return e.request=R$.request,e.createSocket=D$,e.defaultPort=443,e}function tu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$F.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=k$(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}p3e.inherits(tu,g3e.EventEmitter);tu.prototype.addRequest=function(e,r,n,s){var i=this,o=ZF({request:e},i.options,k$(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};tu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=ZF({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),El("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){El("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){El("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return El("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),El(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};tu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function D$(t,e){var r=this;tu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=ZF({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=f3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function k$(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function ZF(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var El;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?El=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:El=function(){};fp.debug=El});var eM=m((bqt,_$)=>{_$.exports=v$()});var yr=m((Qqt,F$)=>{F$.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=m((wqt,oZ)=>{"use strict";var M$=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[M$]===!0}[M$]=!0},L$=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tM=class extends Br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[L$]===!0}[L$]=!0},U$=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rM=class extends Br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[U$]===!0}[U$]=!0},P$=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nM=class extends Br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[P$]===!0}[P$]=!0},O$=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sM=class extends Br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[O$]===!0}[O$]=!0},H$=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iM=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function M4e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(I4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function L4e(){return"allowed"}function U4e(){return"success"}function P4e(){return"success"}function O4e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function H4e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&KM(t.origin)&&!KM(zC(t))&&(e=null);break;case"same-origin":S1(t,zC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Qp(t,e){return t}function G4e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Qp(t.domainLookupStartTime,r),domainLookupEndTime:Qp(t.domainLookupEndTime,r),connectionStartTime:Qp(t.connectionStartTime,r),connectionEndTime:Qp(t.connectionEndTime,r),secureConnectionStartTime:Qp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function q4e(t){return Qp(w4e.now(),t)}function Y4e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Iee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V4e(t){return{referrerPolicy:t.referrerPolicy}}function W4e(t){let e=t.referrerPolicy;Qh(e);let r=null;if(t.referrer==="client"){let a=fee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=jM(r),s=jM(r,!0);n.toString().length>4096&&(n=s);let i=S1(t,n),o=JC(n)&&!JC(t.url);switch(e){case"origin":return s??jM(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=zC(t);return S1(n,a)?n:JC(n)&&!JC(a)?"no-referrer":s}default:return o?"no-referrer":s}}function jM(t,e){return Qh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function JC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function J4e(t,e){if(w1===void 0)return!0;let r=yee(e);if(r==="no metadata"||r.length===0)return!0;let n=j4e(r),s=K4e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=w1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),X4e(A,a))return!0}return!1}var z4e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function yee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=z4e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();pee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function j4e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function K4e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function X4e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function $4e(t){}function S1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Z4e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function e6e(t){return t.controller.state==="aborted"}function t6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function r6e(t){return T4e[t.toLowerCase()]??t}function n6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Qh(typeof e=="string"),e}var s6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Bee(t,e,r=0,n=1){class s{ Line truncated
`);function _6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function F6e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function M6e(t,e){T1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&x1(t,k6e,i)||i.position===t.length-4&&x1(t,v6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=L6e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",_6e(u)||(u=""),h=new R6e([d],c,{type:u})):h=w6e(Buffer.from(d)),T1(_ee(A)),T1(typeof h=="string"&&_ee(h)||N6e(h)),s.push(T6e(A,h,c))}}function L6e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Sp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=nL(o,!0,!0,a=>a===9||a===32),!S6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Sp(a=>a===32||a===9,t,e),Q6e(o)){case"content-disposition":{if(r=n=null,!x1(t,D6e,e)||(e.position+=17,r=Lee(t,e),r===null))return"failure";if(x1(t,Mee,e)){let a=e.position+Mee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Lee(t,e),n===null))return"failure"}break}case"content-type":{let a=Sp(A=>A!==10&&A!==13,t,e);a=nL(a,!1,!0,A=>A===9||A===32),s=Fee(a);break}case"content-transfer-encoding":{let a=Sp(A=>A!==10&&A!==13,t,e);a=nL(a,!1,!0,A=>A===9||A===32),i=Fee(a);break}default:Sp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Lee(t,e){T1(t[e.position-1]===34);let r=Sp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Sp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function nL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function x1(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}Uee.exports={multipartFormDataParser:M6e,validateBoundary:F6e}});var xp=m((Kqt,jee)=>{"use strict";var XC=dt(),{ReadableStreamFrom:U6e,isBlobLike:Oee,isReadableStreamLike:P6e,readableStreamClose:O6e,createDeferredPromise:H6e,fullyReadBody:G6e,extractMimeType:q6e,utf8DecodeBytes:qee}=Ti(),{FormData:Hee}=KC(),{kState:Tp}=Cl(),{webidl:Y6e}=jn(),{Blob:V6e}=b("node:buffer"),sL=b("node:assert"),{isErrored:Yee,isDisturbed:W6e}=b("node:stream"),{isArrayBuffer:J6e}=b("node:util/types"),{serializeAMimeType:z6e}=$s(),{multipartFormDataParser:j6e}=Pee(),iL;try{let t=b("node:crypto");iL=e=>t.randomInt(0,e)}catch{iL=t=>Math.floor(Math.random(t))}var R1=new TextEncoder;function K6e(){}var Vee=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Wee;Vee&&(Wee=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!W6e(e)&&!Yee(e)&&e.cancel("Response object has been garbage collected").catch(K6e)}));function Jee(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Oee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?R1.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>O6e(A))},start(){},type:"bytes"}),sL(P6e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(J6e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(XC.isFormDataLike(t)){let A=`----formdata-undici-0${`${iL(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
var C3e=Object.create;var eM=Object.defineProperty;var I3e=Object.getOwnPropertyDescriptor;var y3e=Object.getOwnPropertyNames;var B3e=Object.getPrototypeOf,b3e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ya=(t,e)=>{for(var r in e)eM(t,r,{get:e[r],enumerable:!0})},Q3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of y3e(e))!b3e.call(t,s)&&s!==r&&eM(t,s,{get:()=>e[s],enumerable:!(n=I3e(e,s))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?C3e(B3e(t)):{},Q3e(e||!t||!t.__esModule?eM(r,"default",{value:t,enumerable:!0}):r,t));var YX=m(gp=>{"use strict";var Pqt=b("net"),R3e=b("tls"),sM=b("http"),HX=b("https"),D3e=b("events"),Oqt=b("assert"),k3e=b("util");gp.httpOverHttp=v3e;gp.httpsOverHttp=_3e;gp.httpOverHttps=F3e;gp.httpsOverHttps=M3e;function v3e(t){var e=new tu(t);return e.request=sM.request,e}function _3e(t){var e=new tu(t);return e.request=sM.request,e.createSocket=GX,e.defaultPort=443,e}function F3e(t){var e=new tu(t);return e.request=HX.request,e}function M3e(t){var e=new tu(t);return e.request=HX.request,e.createSocket=GX,e.defaultPort=443,e}function tu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||sM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=qX(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}k3e.inherits(tu,D3e.EventEmitter);tu.prototype.addRequest=function(e,r,n,s){var i=this,o=iM({request:e},i.options,qX(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};tu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=iM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Cl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Cl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Cl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Cl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Cl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};tu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function GX(t,e){var r=this;tu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=iM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=R3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function qX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function iM(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Cl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Cl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Cl=function(){};gp.debug=Cl});var oM=m((Gqt,VX)=>{VX.exports=YX()});var Br=m((qqt,WX)=>{WX.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=m((Yqt,mZ)=>{"use strict";var JX=Symbol.for("undici.error.UND_ERR"),br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[JX]===!0}[JX]=!0},zX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),aM=class extends br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[zX]===!0}[zX]=!0},jX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),AM=class extends br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[jX]===!0}[jX]=!0},KX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),cM=class extends br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[KX]===!0}[KX]=!0},$X=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),uM=class extends br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[$X]===!0}[$X]=!0},XX=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),lM=class extends br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function X4e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(M4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function Z4e(){return"allowed"}function e6e(){return"success"}function t6e(){return"success"}function r6e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function n6e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&rL(t.origin)&&!rL(jC(t))&&(e=null);break;case"same-origin":T1(t,jC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function wp(t,e){return t}function s6e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:wp(t.domainLookupStartTime,r),domainLookupEndTime:wp(t.domainLookupEndTime,r),connectionStartTime:wp(t.connectionStartTime,r),connectionEndTime:wp(t.connectionEndTime,r),secureConnectionStartTime:wp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function i6e(t){return wp(H4e.now(),t)}function o6e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Dee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function a6e(t){return{referrerPolicy:t.referrerPolicy}}function A6e(t){let e=t.referrerPolicy;wh(e);let r=null;if(t.referrer==="client"){let a=wee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=tL(r),s=tL(r,!0);n.toString().length>4096&&(n=s);let i=T1(t,n),o=zC(n)&&!zC(t.url);switch(e){case"origin":return s??tL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=jC(t);return T1(n,a)?n:zC(n)&&!zC(a)?"no-referrer":s}default:return o?"no-referrer":s}}function tL(t,e){return wh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function zC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function c6e(t,e){if(N1===void 0)return!0;let r=kee(e);if(r==="no metadata"||r.length===0)return!0;let n=l6e(r),s=d6e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=N1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),h6e(A,a))return!0}return!1}var u6e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=u6e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Nee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function l6e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function d6e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function h6e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function f6e(t){}function T1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function g6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function p6e(t){return t.controller.state==="aborted"}function m6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function E6e(t){return Y4e[t.toLowerCase()]??t}function C6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wh(typeof e=="string"),e}var I6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function vee(t,e,r=0,n=1){class s{ Line truncated
`);function K6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function $6e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function X6e(t,e){R1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&D1(t,z6e,i)||i.position===t.length-4&&D1(t,j6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Z6e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",K6e(u)||(u=""),h=new W6e([d],c,{type:u})):h=H6e(Buffer.from(d)),R1(Vee(A)),R1(typeof h=="string"&&Vee(h)||q6e(h)),s.push(Y6e(A,h,c))}}function Z6e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Np(a=>a!==10&&a!==13&&a!==58,t,e);if(o=cL(o,!0,!0,a=>a===9||a===32),!G6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Np(a=>a===32||a===9,t,e),O6e(o)){case"content-disposition":{if(r=n=null,!D1(t,J6e,e)||(e.position+=17,r=zee(t,e),r===null))return"failure";if(D1(t,Jee,e)){let a=e.position+Jee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=zee(t,e),n===null))return"failure"}break}case"content-type":{let a=Np(A=>A!==10&&A!==13,t,e);a=cL(a,!1,!0,A=>A===9||A===32),s=Wee(a);break}case"content-transfer-encoding":{let a=Np(A=>A!==10&&A!==13,t,e);a=cL(a,!1,!0,A=>A===9||A===32),i=Wee(a);break}default:Np(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function zee(t,e){R1(t[e.position-1]===34);let r=Np(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Np(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function cL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function D1(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}jee.exports={multipartFormDataParser:X6e,validateBoundary:$6e}});var Rp=m((gYt,ote)=>{"use strict";var XC=dt(),{ReadableStreamFrom:e5e,isBlobLike:$ee,isReadableStreamLike:t5e,readableStreamClose:r5e,createDeferredPromise:n5e,fullyReadBody:s5e,extractMimeType:i5e,utf8DecodeBytes:ete}=Ti(),{FormData:Xee}=$C(),{kState:xp}=Il(),{webidl:o5e}=jn(),{Blob:a5e}=b("node:buffer"),uL=b("node:assert"),{isErrored:tte,isDisturbed:A5e}=b("node:stream"),{isArrayBuffer:c5e}=b("node:util/types"),{serializeAMimeType:u5e}=Xs(),{multipartFormDataParser:l5e}=Kee(),lL;try{let t=b("node:crypto");lL=e=>t.randomInt(0,e)}catch{lL=t=>Math.floor(Math.random(t))}var k1=new TextEncoder;function d5e(){}var rte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,nte;rte&&(nte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!A5e(e)&&!tte(e)&&e.cancel("Response object has been garbage collected").catch(d5e)}));function ste(t,e=!1){let r=null;t instanceof ReadableStream?r=t:$ee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?k1.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>r5e(A))},start(){},type:"bytes"}),uL(t5e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(c5e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(XC.isFormDataLike(t)){let A=`----formdata-undici-0${`${lL(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,E]of t)if(typeof E=="string"){let C=R1.encode(c+`; name="${u(l(I))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,E]of t)if(typeof E=="string"){let C=k1.encode(c+`; name="${u(l(I))}"\r
\r
${l(E)}\r
`);d.push(C),i+=C.byteLength}else{let C=R1.encode(`${c}; name="${u(l(I))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
`);d.push(C),i+=C.byteLength}else{let C=k1.encode(`${c}; name="${u(l(I))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);d.push(C,E,h),typeof E.size=="number"?i+=C.byteLength+E.size+h.byteLength:f=!0}let p=R1.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(Oee(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(XC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:U6e(t)}if((typeof s=="string"||XC.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Yee(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function X6e(t,e=!1){return t instanceof ReadableStream&&(sL(!XC.isDisturbed(t),"The body has already been consumed."),sL(!t.locked,"The stream is locked.")),Jee(t,e)}function $6e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function Z6e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function e5e(t){return{blob(){return Np(this,r=>{let n=Gee(this);return n===null?n="":n&&(n=z6e(n)),new V6e([r],{type:n})},t)},arrayBuffer(){return Np(this,r=>new Uint8Array(r).buffer,t)},text(){return Np(this,qee,t)},json(){return Np(this,r5e,t)},formData(){return Np(this,r=>{let n=Gee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=j6e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Hee;return i[Tp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Hee;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Np(this,r=>new Uint8Array(r),t)}}}function t5e(t){Object.assign(t.prototype,e5e(t))}async function Np(t,e,r){if(Y6e.brandCheck(t,r),zee(t))throw new TypeError("Body is unusable: Body has already been read");Z6e(t[Tp]);let n=H6e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Tp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await G6e(t[Tp].body,i,s),n.promise)}function zee(t){let e=t[Tp].body;return e!=null&&(e.stream.locked||XC.isDisturbed(e.stream))}function r5e(t){return JSON.parse(qee(t))}function Gee(t){let e=t[Tp].headersList,r=q6e(e);return r==="failure"?null:r}jee.exports={extractBody:Jee,safelyExtractBody:X6e,cloneBody:$6e,mixinBody:t5e,streamRegistry:Wee,hasFinalizationRegistry:Vee,bodyUnusable:zee}});var ote=m((Xqt,ite)=>{"use strict";var Ge=b("node:assert"),Ze=dt(),{channels:Kee}=pp(),oL=HM(),{RequestContentLengthMismatchError:wh,ResponseContentLengthMismatchError:n5e,RequestAbortedError:rte,HeadersTimeoutError:s5e,HeadersOverflowError:i5e,SocketError:M1,InformationalError:Rp,BodyTimeoutError:o5e,HTTPParserError:a5e,ResponseExceededMaxSizeError:A5e}=Lt(),{kUrl:nte,kReset:Zs,kClient:uL,kParser:Mr,kBlocking:eI,kRunning:is,kPending:c5e,kSize:Xee,kWriting:yl,kQueue:ba,kNoRef:$C,kKeepAliveDefaultTimeout:u5e,kHostHeader:l5e,kPendingIdx:d5e,kRunningIdx:yo,kError:Bo,kPipelining:_1,kSocket:Dp,kKeepAliveTimeoutValue:L1,kMaxHeadersSize:aL,kKeepAliveMaxTimeout:h5e,kKeepAliveTimeoutThreshold:f5e,kHeadersTimeout:g5e,kBodyTimeout:p5e,kStrictContentLength:lL,kMaxRequests:$ee,kCounter:m5e,kMaxResponseSize:E5e,kOnError:C5e,kResume:Il,kHTTPContext:ste}=yr(),EA=WZ(),I5e=Buffer.alloc(0),D1=Buffer[Symbol.species],k1=Ze.addListener,y5e=Ze.removeAllListeners,AL;async function B5e(){let t=process.env.JEST_WORKER_ID?YM():void 0,e;try{e=await WebAssembly.compile(jZ())}catch{e=await WebAssembly.compile(t||YM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onStatus(new D1(CA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onHeaderField(new D1(CA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onHeaderValue(new D1(CA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onBody(new D1(CA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var cL=null,dL=B5e();dL.catch();var fn=null,CA=null,v1=0,IA=null,b5e=0,ZC=1,kp=2|ZC,F1=4|ZC,hL=8|b5e,fL=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[aL])&&e[aL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(EA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this. Line truncated
`);d.push(C,E,h),typeof E.size=="number"?i+=C.byteLength+E.size+h.byteLength:f=!0}let p=k1.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if($ee(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(XC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:e5e(t)}if((typeof s=="string"||XC.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!tte(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function h5e(t,e=!1){return t instanceof ReadableStream&&(uL(!XC.isDisturbed(t),"The body has already been consumed."),uL(!t.locked,"The stream is locked.")),ste(t,e)}function f5e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function g5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function p5e(t){return{blob(){return Tp(this,r=>{let n=Zee(this);return n===null?n="":n&&(n=u5e(n)),new a5e([r],{type:n})},t)},arrayBuffer(){return Tp(this,r=>new Uint8Array(r).buffer,t)},text(){return Tp(this,ete,t)},json(){return Tp(this,E5e,t)},formData(){return Tp(this,r=>{let n=Zee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=l5e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Xee;return i[xp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Xee;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Tp(this,r=>new Uint8Array(r),t)}}}function m5e(t){Object.assign(t.prototype,p5e(t))}async function Tp(t,e,r){if(o5e.brandCheck(t,r),ite(t))throw new TypeError("Body is unusable: Body has already been read");g5e(t[xp]);let n=n5e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[xp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await s5e(t[xp].body,i,s),n.promise)}function ite(t){let e=t[xp].body;return e!=null&&(e.stream.locked||XC.isDisturbed(e.stream))}function E5e(t){return JSON.parse(ete(t))}function Zee(t){let e=t[xp].headersList,r=i5e(e);return r==="failure"?null:r}ote.exports={extractBody:ste,safelyExtractBody:h5e,cloneBody:f5e,mixinBody:m5e,streamRegistry:nte,hasFinalizationRegistry:rte,bodyUnusable:ite}});var mte=m((pYt,pte)=>{"use strict";var Ge=b("node:assert"),Ze=dt(),{channels:ate}=mp(),dL=JM(),{RequestContentLengthMismatchError:Sh,ResponseContentLengthMismatchError:C5e,RequestAbortedError:hte,HeadersTimeoutError:I5e,HeadersOverflowError:y5e,SocketError:U1,InformationalError:Dp,BodyTimeoutError:B5e,HTTPParserError:b5e,ResponseExceededMaxSizeError:Q5e}=Lt(),{kUrl:fte,kReset:Zs,kClient:pL,kParser:Mr,kBlocking:tI,kRunning:is,kPending:w5e,kSize:Ate,kWriting:Bl,kQueue:ba,kNoRef:ZC,kKeepAliveDefaultTimeout:S5e,kHostHeader:N5e,kPendingIdx:T5e,kRunningIdx:yo,kError:Bo,kPipelining:M1,kSocket:kp,kKeepAliveTimeoutValue:P1,kMaxHeadersSize:hL,kKeepAliveMaxTimeout:x5e,kKeepAliveTimeoutThreshold:R5e,kHeadersTimeout:D5e,kBodyTimeout:k5e,kStrictContentLength:mL,kMaxRequests:cte,kCounter:v5e,kMaxResponseSize:_5e,kOnError:F5e,kResume:yl,kHTTPContext:gte}=Br(),EA=nee(),M5e=Buffer.alloc(0),v1=Buffer[Symbol.species],_1=Ze.addListener,L5e=Ze.removeAllListeners,fL;async function U5e(){let t=process.env.JEST_WORKER_ID?KM():void 0,e;try{e=await WebAssembly.compile(oee())}catch{e=await WebAssembly.compile(t||KM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onStatus(new v1(CA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onHeaderField(new v1(CA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onHeaderValue(new v1(CA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-IA+CA.byteOffset;return fn.onBody(new v1(CA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var gL=null,EL=U5e();EL.catch();var fn=null,CA=null,F1=0,IA=null,P5e=0,eI=1,vp=2|eI,L1=4|eI,CL=8|P5e,IL=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[hL])&&e[hL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(EA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[l5e],i?p+=`connection: upgrade\r
`:p+=t[N5e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[_1]&&!h[Zs]?p+=`connection: keep-alive\r
`:t[M1]&&!h[Zs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return Kee.sendHeaders.hasSubscribers&&Kee.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?ete(f,null,t,e,h,u,p,l):Ze.isBuffer(A)?ete(f,A,t,e,h,u,p,l):Ze.isBlobLike(A)?typeof A.stream=="function"?tte(f,A.stream(),t,e,h,u,p,l):x5e(f,A,t,e,h,u,p,l):Ze.isStream(A)?T5e(f,A,t,e,h,u,p,l):Ze.isIterable(A)?tte(f,A,t,e,h,u,p,l):Ge(!1),!0}function T5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"stream body cannot be pipelined");let A=!1,c=new U1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ze.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new rte;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[yl]&&r[is]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ze.destroy(e,f):Ze.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function ete(t,e,r,n,s,i,o,a){try{e?Ze.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`}return ate.sendHeaders.hasSubscribers&&ate.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?lte(f,null,t,e,h,u,p,l):Ze.isBuffer(A)?lte(f,A,t,e,h,u,p,l):Ze.isBlobLike(A)?typeof A.stream=="function"?dte(f,A.stream(),t,e,h,u,p,l):V5e(f,A,t,e,h,u,p,l):Ze.isStream(A)?Y5e(f,A,t,e,h,u,p,l):Ze.isIterable(A)?dte(f,A,t,e,h,u,p,l):Ge(!1),!0}function Y5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"stream body cannot be pipelined");let A=!1,c=new O1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ze.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new hte;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[Bl]&&r[is]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ze.destroy(e,f):Ze.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function lte(t,e,r,n,s,i,o,a){try{e?Ze.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Zs]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Il]()}catch(A){t(A)}}async function x5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new wh;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[yl]()}catch(A){t(A)}}async function V5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Sh;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Zs]=!0),r[Il]()}catch(A){t(A)}}async function tte(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),s[Bo]?h(s[Bo]):A=d});s.on("close",c).on("drain",c);let l=new U1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Bo])throw s[Bo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var U1=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[yl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bo])throw r[Bo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[lL])throw new wh;process.emitWarning(new wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Zs]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Zs]=!0),r[yl]()}catch(A){t(A)}}async function dte(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),s[Bo]?h(s[Bo]):A=d});s.on("close",c).on("drain",c);let l=new O1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Bo])throw s[Bo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var O1=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Bl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bo])throw r[Bo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[mL])throw new Sh;process.emitWarning(new Sh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Zs]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===kp&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[yl]=!1,e[Bo])throw e[Bo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===vp&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Bl]=!1,e[Bo])throw e[Bo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[lL])throw new wh;process.emitWarning(new wh)}e[Mr].timeout&&e[Mr].timeoutType===kp&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Il]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[yl]=!1,e&&(Ge(n[is]<=1,"pipeline should only contain this request"),s(e))}};ite.exports=Q5e});var fte=m(($qt,hte)=>{"use strict";var bo=b("node:assert"),{pipeline:R5e}=b("node:stream"),mt=dt(),{RequestContentLengthMismatchError:gL,RequestAbortedError:ate,SocketError:tI,InformationalError:pL}=Lt(),{kUrl:P1,kReset:H1,kClient:vp,kRunning:G1,kPending:D5e,kQueue:Bl,kPendingIdx:mL,kRunningIdx:Qa,kError:Sa,kSocket:Rn,kStrictContentLength:k5e,kOnError:EL,kMaxConcurrentStreams:dte,kHTTP2Session:wa,kResume:bl,kSize:v5e,kHTTPContext:_5e}=yr(),au=Symbol("open streams"),Ate,cte=!1,O1;try{O1=b("node:http2")}catch{O1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:F5e,HTTP2_HEADER_METHOD:M5e,HTTP2_HEADER_PATH:L5e,HTTP2_HEADER_SCHEME:U5e,HTTP2_HEADER_CONTENT_LENGTH:P5e,HTTP2_HEADER_EXPECT:O5e,HTTP2_HEADER_STATUS:H5e}}=O1;function G5e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function q5e(t,e){t[Rn]=e,cte||(cte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=O1.connect(t[P1],{createConnection:()=>e,peerMaxConcurrentStreams:t[dte]});r[au]=0,r[vp]=t,r[Rn]=e,mt.addListener(r,"error",V5e),mt.addListener(r,"frameError",W5e),mt.addListener(r,"end",J5e),mt.addListener(r,"goaway",z5e),mt.addListener(r,"close",function(){let{[vp]:s}=this,{[Rn]:i}=s,o=this[Rn][Sa]||this[Sa]||new tI("closed",mt.getSocketInfo(i));if(s[wa]=null,s.destroyed){bo(s[D5e]===0);let a=s[Bl].splice(s[Qa]);for(let A=0;A<a.length;A++){let c=a[A];mt.errorRequest(s,c,o)}}}),r.unref(),t[wa]=r,e[wa]=r,mt.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[vp][EL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new tI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Sa]||new tI("closed",mt.getSocketInfo(this));t[Rn]=null,this[wa]!=null&&this[wa].destroy(s),t[mL]=t[Qa],bo(t[G1]===0),t.emit("disconnect",t[P1],[t],s),t[bl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return K5e(t,...s)},resume(){Y5e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Y5e(t){let e=t[Rn];e?.destroyed===!1&&(t[v5e]===0&&t[dte]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function V5e(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn][Sa]=t,this[vp][EL](t)}function W5e(t,e,r){if(r===0){let n=new pL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rn][Sa]=n,this[vp][EL](n)}}function J5e(){let t=new tI("other side closed",mt.getSocketInfo(this[Rn]));this.destroy(t),mt.destroy(this[Rn],t)}function z5e(t){let e=this[Sa]||new tI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[vp];if(r[Rn]=null,r[_5e]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),mt.destroy(this[Rn],e),r[Qa]<r[Bl].length){let n=r[Bl][r[Qa]];r[Bl][r[Qa]++]=null,mt.errorRequest(r,n,e),r[mL]=r[Qa]}bo(r[G1]===0),r.emit("disconnect",r[P1],[r],e),r[bl]()}function j5e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function K5e(t,e){let r=t[wa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let M=c[R+0],Y=c[R+1];if(Array.isArray(Y))for(let v=0;v<Y.length;v++)l[M]?l[M]+=`,${Y[v]}`:l[M]=Y[v];else l[M]=Y}let d,{hostname:h,port:f}=t[P1];l[F5e]=i||`${h}${f?`:${f}`:""}`,l[M5e]=n;let p=R=>{e.aborted||e.completed||(R=R||new ate,mt.errorRequest(t,e,R),d!=null&&mt.destroy(d,R),mt.destroy(u,R),t[Bl][t[Qa]++]=null,t[bl]())};try{e.onConnect(p)}catch(R){mt.errorRequest(t,e,R)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[au],t[Bl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[au],t[Bl][t[Qa]++]=null}),d.once("close",()=>{r[au]-=1,r[au]===0&&r.unref()}),!0;l[L5e]=s,l[U5e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=mt.bodyLength(u);if(mt.isFormDataLike(u)){Ate??=xp().extractBody;let[R,M]=Ate(u);l["content-type"]=M,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!I)&&(E=null),j5e(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[k5e])return mt.errorRequest(t,e,new gL),!1;process.emitWarning(new gL)}E!=null&&(bo(u,"no body must not have content length"),l[P5e]=`${E}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[O5e]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont Line truncated
`,this[BHe]=A??3e5,this[yHe]=s??3e5,this[bHe]=C??!0,this[QHe]=R,this[BL]=Y,this[wl]=null,this[xHe]=P>-1?P:-1,this[DHe]=ee??100,this[Kr]=null,this[Na]=[],this[cu]=0,this[Ta]=0,this[iI]=Ae=>QL(this,Ae),this[RHe]=Ae=>Ste(this,Ae)}get pipelining(){return this[W1]}set pipelining(e){this[W1]=e,this[iI](!0)}get[AI](){return this[Na].length-this[Ta]}get[aI](){return this[Ta]-this[cu]}get[oI](){return this[Na].length-this[cu]}get[fHe](){return!!this[Kr]&&!this[Fp]&&!this[Kr].destroyed}get[yL](){return!!(this[Kr]?.busy(null)||this[oI]>=(wte(this)||1)||this[AI]>0)}[hHe](e){Nte(this),this.once("connect",e)}[THe](e,r){let n=e.origin||this[BA].origin,s=new aHe(n,e,r);return this[Na].push(s),this[Nh]||(Sh.bodyLength(s.body)==null&&Sh.isIterable(s.body)?(this[Nh]=1,queueMicrotask(()=>QL(this))):this[iI](!0)),this[Nh]&&this[Sl]!==2&&this[yL]&&(this[Sl]=2),this[Sl]<2}async[SHe](){return new Promise(e=>{this[oI]?this[wl]=e:e(null)})}async[NHe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];Sh.errorRequest(this,o,e)}let s=()=>{this[wl]&&(this[wl](),this[wl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[iI]()})}},_He=V1();function Ste(t,e){if(t[aI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Au(t[Ta]===t[cu]);let r=t[Na].splice(t[cu]);for(let n=0;n<r.length;n++){let s=r[n];Sh.errorRequest(t,s,e)}Au(t[oI]===0)}}async function Nte(t){Au(!t[Fp]),Au(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[BA];if(r[0]==="["){let i=r.indexOf("]");Au(i!==-1);let o=r.substring(1,i);Au(Qte.isIP(o)),r=o}t[Fp]=!0,_p.beforeConnect.hasSubscribers&&_p.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ql],localAddress:t[sI]},connector:t[nI]});try{let i=await new Promise((o,a)=>{t[nI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ql],localAddress:t[sI]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Sh.destroy(i.on("error",Bte),new uHe);return}Au(i);try{t[Kr]=i.alpnProtocol==="h2"?await vHe(t,i):await kHe(t,i)}catch(o){throw i.destroy().on("error",Bte),o}t[Fp]=!1,i[wHe]=0,i[BL]=t[BL],i[dHe]=t,i[pHe]=null,_p.connected.hasSubscribers&&_p.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ql],localAddress:t[sI]},connector:t[nI],socket:i}),t.emit("connect",t[BA],[t])}catch(i){if(t.destroyed)return;if(t[Fp]=!1,_p.connectError.hasSubscribers&&_p.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ql],localAddress:t[sI]},connector:t[nI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Au(t[aI]===0);t[AI]>0&&t[Na][t[Ta]].servername===t[Ql];){let o=t[Na][t[Ta]++];Sh.errorRequest(t,o,i)}else Ste(t,i);t.emit("connectionError",t[BA],[t],i)}t[iI]()}function bte(t){t[Sl]=0,t.emit("drain",t[BA],[t])}function QL(t,e){t[Nh]!==2&&(t[Nh]=2,FHe(t,e),t[Nh]=0,t[cu]>256&&(t[Na].splice(0,t[cu]),t[Ta]-=t[cu],t[cu]=0))}function FHe(t,e){for(;;){if(t.destroyed){Au(t[AI]===0);return}if(t[wl]&&!t[oI]){t[wl](),t[wl]=null;return}if(t[Kr]&&t[Kr].resume(),t[yL])t[Sl]=2;else if(t[Sl]===2){e?(t[Sl]=1,queueMicrotask(()=>bte(t))):bte(t);continue}if(t[AI]===0||t[aI]>=(wte(t)||1))return;let r=t[Na][t[Ta]];if(t[BA].protocol==="https:"&&t[Ql]!==r.servername){if(t[aI]>0)return;t[Ql]=r.servername,t[Kr]?.destroy(new cHe("servername changed"),()=>{t[Kr]=null,QL(t)})}if(t[Fp])return;if(!t[Kr]){Nte(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}Tte.exports=bL});var wL=m((nYt,xte)=>{"use strict";var J1=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};xte.exports=class{constructor(){this.head=this.tail=new J1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new J1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Dte=m((sYt,Rte)=>{var{kFree:MHe,kConnected:LHe,kPending:UHe,kQueued:PHe,kRunning:OHe,kSize:HHe}=yr(),Th=Symbol("pool"),SL=class{constructor(e){this[Th]=e}get connected(){return this[Th][LHe]}get free(){return this[Th][MHe]}get pending(){return this[Th][UHe]}get queued(){return this[Th][PHe]}get running(){return this[Th][OHe]}get size(){return this[Th][HHe]}};Rte.exports=SL});var kL=m((iYt,Hte)=>{"use strict";var GHe=Ip(),qHe=wL(),{kConnected:NL,kSize:kte,kRunning:vte,kPending:_te,kQueued:cI,kBusy:YHe,kFree:VHe,kUrl:WHe,kClose:JHe,kDestroy:zHe,kDispatch:jHe}=yr(),KHe=Dte(),ei=Symbol("clients"),Ts=Symbol("needDrain"),uI=Symbol("queue"),TL=Symbol("closed resolve"),xL=Symbol("onDrain"),Fte=Symbol("onConnect"),Mte=Symbol("onDisconnect"),Lte=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[mL])throw new Sh;process.emitWarning(new Sh)}e[Mr].timeout&&e[Mr].timeoutType===vp&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[yl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Bl]=!1,e&&(Ge(n[is]<=1,"pipeline should only contain this request"),s(e))}};pte.exports=O5e});var wte=m((mYt,Qte)=>{"use strict";var bo=b("node:assert"),{pipeline:W5e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:yL,RequestAbortedError:Ete,SocketError:rI,InformationalError:BL}=Lt(),{kUrl:H1,kReset:q1,kClient:_p,kRunning:Y1,kPending:J5e,kQueue:bl,kPendingIdx:bL,kRunningIdx:Qa,kError:Sa,kSocket:Rn,kStrictContentLength:z5e,kOnError:QL,kMaxConcurrentStreams:bte,kHTTP2Session:wa,kResume:Ql,kSize:j5e,kHTTPContext:K5e}=Br(),au=Symbol("open streams"),Cte,Ite=!1,G1;try{G1=b("node:http2")}catch{G1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$5e,HTTP2_HEADER_METHOD:X5e,HTTP2_HEADER_PATH:Z5e,HTTP2_HEADER_SCHEME:eHe,HTTP2_HEADER_CONTENT_LENGTH:tHe,HTTP2_HEADER_EXPECT:rHe,HTTP2_HEADER_STATUS:nHe}}=G1;function sHe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function iHe(t,e){t[Rn]=e,Ite||(Ite=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=G1.connect(t[H1],{createConnection:()=>e,peerMaxConcurrentStreams:t[bte]});r[au]=0,r[_p]=t,r[Rn]=e,Et.addListener(r,"error",aHe),Et.addListener(r,"frameError",AHe),Et.addListener(r,"end",cHe),Et.addListener(r,"goaway",uHe),Et.addListener(r,"close",function(){let{[_p]:s}=this,{[Rn]:i}=s,o=this[Rn][Sa]||this[Sa]||new rI("closed",Et.getSocketInfo(i));if(s[wa]=null,s.destroyed){bo(s[J5e]===0);let a=s[bl].splice(s[Qa]);for(let A=0;A<a.length;A++){let c=a[A];Et.errorRequest(s,c,o)}}}),r.unref(),t[wa]=r,e[wa]=r,Et.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[_p][QL](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new rI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[Sa]||new rI("closed",Et.getSocketInfo(this));t[Rn]=null,this[wa]!=null&&this[wa].destroy(s),t[bL]=t[Qa],bo(t[Y1]===0),t.emit("disconnect",t[H1],[t],s),t[Ql]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return dHe(t,...s)},resume(){oHe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function oHe(t){let e=t[Rn];e?.destroyed===!1&&(t[j5e]===0&&t[bte]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function aHe(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn][Sa]=t,this[_p][QL](t)}function AHe(t,e,r){if(r===0){let n=new BL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rn][Sa]=n,this[_p][QL](n)}}function cHe(){let t=new rI("other side closed",Et.getSocketInfo(this[Rn]));this.destroy(t),Et.destroy(this[Rn],t)}function uHe(t){let e=this[Sa]||new rI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[_p];if(r[Rn]=null,r[K5e]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),Et.destroy(this[Rn],e),r[Qa]<r[bl].length){let n=r[bl][r[Qa]];r[bl][r[Qa]++]=null,Et.errorRequest(r,n,e),r[bL]=r[Qa]}bo(r[Y1]===0),r.emit("disconnect",r[H1],[r],e),r[Ql]()}function lHe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function dHe(t,e){let r=t[wa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let M=c[R+0],Y=c[R+1];if(Array.isArray(Y))for(let v=0;v<Y.length;v++)l[M]?l[M]+=`,${Y[v]}`:l[M]=Y[v];else l[M]=Y}let d,{hostname:h,port:f}=t[H1];l[$5e]=i||`${h}${f?`:${f}`:""}`,l[X5e]=n;let p=R=>{e.aborted||e.completed||(R=R||new Ete,Et.errorRequest(t,e,R),d!=null&&Et.destroy(d,R),Et.destroy(u,R),t[bl][t[Qa]++]=null,t[Ql]())};try{e.onConnect(p)}catch(R){Et.errorRequest(t,e,R)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[au],t[bl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[au],t[bl][t[Qa]++]=null}),d.once("close",()=>{r[au]-=1,r[au]===0&&r.unref()}),!0;l[Z5e]=s,l[eHe]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=Et.bodyLength(u);if(Et.isFormDataLike(u)){Cte??=Rp().extractBody;let[R,M]=Cte(u);l["content-type"]=M,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!I)&&(E=null),lHe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[z5e])return Et.errorRequest(t,e,new yL),!1;process.emitWarning(new yL)}E!=null&&(bo(u,"no body must not have content length"),l[tHe]=`${E}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[rHe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont Line truncated
`,this[UHe]=A??3e5,this[LHe]=s??3e5,this[PHe]=C??!0,this[OHe]=R,this[TL]=Y,this[Sl]=null,this[VHe]=P>-1?P:-1,this[JHe]=ee??100,this[Kr]=null,this[Na]=[],this[cu]=0,this[Ta]=0,this[oI]=Ae=>RL(this,Ae),this[WHe]=Ae=>Lte(this,Ae)}get pipelining(){return this[z1]}set pipelining(e){this[z1]=e,this[oI](!0)}get[cI](){return this[Na].length-this[Ta]}get[AI](){return this[Ta]-this[cu]}get[aI](){return this[Na].length-this[cu]}get[RHe](){return!!this[Kr]&&!this[Mp]&&!this[Kr].destroyed}get[NL](){return!!(this[Kr]?.busy(null)||this[aI]>=(Mte(this)||1)||this[cI]>0)}[xHe](e){Ute(this),this.once("connect",e)}[YHe](e,r){let n=e.origin||this[BA].origin,s=new bHe(n,e,r);return this[Na].push(s),this[Th]||(Nh.bodyLength(s.body)==null&&Nh.isIterable(s.body)?(this[Th]=1,queueMicrotask(()=>RL(this))):this[oI](!0)),this[Th]&&this[Nl]!==2&&this[NL]&&(this[Nl]=2),this[Nl]<2}async[GHe](){return new Promise(e=>{this[aI]?this[Sl]=e:e(null)})}async[qHe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];Nh.errorRequest(this,o,e)}let s=()=>{this[Sl]&&(this[Sl](),this[Sl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[oI]()})}},KHe=J1();function Lte(t,e){if(t[AI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Au(t[Ta]===t[cu]);let r=t[Na].splice(t[cu]);for(let n=0;n<r.length;n++){let s=r[n];Nh.errorRequest(t,s,e)}Au(t[aI]===0)}}async function Ute(t){Au(!t[Mp]),Au(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[BA];if(r[0]==="["){let i=r.indexOf("]");Au(i!==-1);let o=r.substring(1,i);Au(Fte.isIP(o)),r=o}t[Mp]=!0,Fp.beforeConnect.hasSubscribers&&Fp.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[wl],localAddress:t[iI]},connector:t[sI]});try{let i=await new Promise((o,a)=>{t[sI]({host:e,hostname:r,protocol:n,port:s,servername:t[wl],localAddress:t[iI]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Nh.destroy(i.on("error",vte),new SHe);return}Au(i);try{t[Kr]=i.alpnProtocol==="h2"?await jHe(t,i):await zHe(t,i)}catch(o){throw i.destroy().on("error",vte),o}t[Mp]=!1,i[HHe]=0,i[TL]=t[TL],i[THe]=t,i[kHe]=null,Fp.connected.hasSubscribers&&Fp.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[wl],localAddress:t[iI]},connector:t[sI],socket:i}),t.emit("connect",t[BA],[t])}catch(i){if(t.destroyed)return;if(t[Mp]=!1,Fp.connectError.hasSubscribers&&Fp.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[wl],localAddress:t[iI]},connector:t[sI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Au(t[AI]===0);t[cI]>0&&t[Na][t[Ta]].servername===t[wl];){let o=t[Na][t[Ta]++];Nh.errorRequest(t,o,i)}else Lte(t,i);t.emit("connectionError",t[BA],[t],i)}t[oI]()}function _te(t){t[Nl]=0,t.emit("drain",t[BA],[t])}function RL(t,e){t[Th]!==2&&(t[Th]=2,$He(t,e),t[Th]=0,t[cu]>256&&(t[Na].splice(0,t[cu]),t[Ta]-=t[cu],t[cu]=0))}function $He(t,e){for(;;){if(t.destroyed){Au(t[cI]===0);return}if(t[Sl]&&!t[aI]){t[Sl](),t[Sl]=null;return}if(t[Kr]&&t[Kr].resume(),t[NL])t[Nl]=2;else if(t[Nl]===2){e?(t[Nl]=1,queueMicrotask(()=>_te(t))):_te(t);continue}if(t[cI]===0||t[AI]>=(Mte(t)||1))return;let r=t[Na][t[Ta]];if(t[BA].protocol==="https:"&&t[wl]!==r.servername){if(t[AI]>0)return;t[wl]=r.servername,t[Kr]?.destroy(new wHe("servername changed"),()=>{t[Kr]=null,RL(t)})}if(t[Mp])return;if(!t[Kr]){Ute(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}Pte.exports=xL});var DL=m((BYt,Ote)=>{"use strict";var j1=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Ote.exports=class{constructor(){this.head=this.tail=new j1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new j1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Gte=m((bYt,Hte)=>{var{kFree:XHe,kConnected:ZHe,kPending:e9e,kQueued:t9e,kRunning:r9e,kSize:n9e}=Br(),xh=Symbol("pool"),kL=class{constructor(e){this[xh]=e}get connected(){return this[xh][ZHe]}get free(){return this[xh][XHe]}get pending(){return this[xh][e9e]}get queued(){return this[xh][t9e]}get running(){return this[xh][r9e]}get size(){return this[xh][n9e]}};Hte.exports=kL});var UL=m((QYt,Xte)=>{"use strict";var s9e=yp(),i9e=DL(),{kConnected:vL,kSize:qte,kRunning:Yte,kPending:Vte,kQueued:uI,kBusy:o9e,kFree:a9e,kUrl:A9e,kClose:c9e,kDestroy:u9e,kDispatch:l9e}=Br(),d9e=Gte(),ei=Symbol("clients"),Ts=Symbol("needDrain"),lI=Symbol("queue"),_L=Symbol("closed resolve"),FL=Symbol("onDrain"),Wte=Symbol("onConnect"),Jte=Symbol("onDisconnect"),zte=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Jne.exports=kU});var lS=m((vYt,$ne)=>{"use strict";var jne=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Bqe}=Lt(),bqe=Up();Xne()===void 0&&Kne(new bqe);function Kne(t){if(!t||typeof t.dispatch!="function")throw new Bqe("Argument agent must implement Agent");Object.defineProperty(globalThis,jne,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Xne(){return globalThis[jne]}$ne.exports={setGlobalDispatcher:Kne,getGlobalDispatcher:Xne}});var dS=m((FYt,Zne)=>{"use strict";Zne.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var tse=m((MYt,ese)=>{"use strict";var Qqe=Y1();ese.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new Qqe(r,o,s,i);return r(a,A)}}});var nse=m((LYt,rse)=>{"use strict";var wqe=tS();rse.exports=t=>e=>function(n,s){return e(n,new wqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var ise=m((UYt,sse)=>{"use strict";var Sqe=dt(),{InvalidArgumentError:Nqe,RequestAbortedError:Tqe}=Lt(),xqe=dS(),vU=class extends xqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Nqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=Sqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Tqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Rqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new vU({maxSize:i},s);return e(n,o)}}sse.exports=Rqe});var Ase=m((PYt,ase)=>{"use strict";var{isIP:Dqe}=b("node:net"),{lookup:kqe}=b("node:dns"),vqe=dS(),{InvalidArgumentError:zp,InformationalError:_qe}=Lt(),ose=Math.pow(2,31)-1,_U=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new _qe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){kqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===ose?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===ose?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new FU(this,e,r)}},FU=class extends vqe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Hoe(i)&&(r[s]=i);break;case"id":Goe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Hoe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Goe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};qoe.exports={EventSourceStream:IP}});var $oe=m((pVt,Xoe)=>{"use strict";var{pipeline:YWe}=b("node:stream"),{fetching:VWe}=bI(),{makeRequest:WWe}=Xp(),{webidl:fu}=jn(),{EventSourceStream:JWe}=Yoe(),{parseMIMEType:zWe}=$s(),{createFastMessageEvent:jWe}=nm(),{isNetworkError:Voe}=yI(),{delay:KWe}=EP(),{kEnumerableProperty:qh}=dt(),{environmentSettingsObject:Woe}=Ti(),Joe=!1,zoe=3e3,MI=0,joe=1,LI=2,XWe="anonymous",$We="use-credentials",Am=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=MI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),fu.util.markAsUncloneable(this);let n="EventSource constructor";fu.argumentLengthCheck(arguments,1,n),Joe||(Joe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fu.converters.USVString(e,n,"url"),r=fu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:zoe};let s=Woe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=XWe;r.withCredentials&&(o=$We,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Woe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=WWe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===LI)return;this.#r=MI;let e={request:this.#s,dispatcher:this.#a},r=n=>{Voe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Voe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?zWe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=joe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new JWe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(jWe(A.type,A.options))}});YWe(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=VWe(e)}async#c(){this.#r!==LI&&(this.#r=MI,this.dispatchEvent(new Event("error")),await KWe(this.#o.reconnectionTime),this.#r===MI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){fu.brandCheck(this,t),this.#r!==LI&&(this.#r=LI,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Koe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:MI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:joe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:LI,writable:!1}};Object.defineProperties(Am,Koe);Object.defineProperties(Am.prototype,Koe);Object.defineProperties(Am.prototype,{close:qh,onerror:qh,onmessage:qh,onopen:qh,readyState:qh,url:qh,withCredentials:qh});fu.converters.EventSourceInitDict=fu.dictionaryConverter([{key:"withCredentials",converter:fu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:fu.converters.any}]);Xoe.exports={EventSource:Am,defaultReconnectionTime:zoe}});var eN=m((mVt,Ye)=>{"use strict";var ZWe=Mp(),Zoe=HC(),eJe=Lp(),tJe=Kte(),rJe=Up(),nJe=VL(),sJe=Ire(),iJe=Sre(),eae=Lt(),ZS=dt(),{InvalidArgumentError:$S}=eae,cm=dne(),oJe=qC(),aJe=SU(),AJe=zne(),cJe=xU(),uJe=hU(),lJe=tS(),{getGlobalDispatcher:tae,setGlobalDispatcher:dJe}=lS(),hJe=dS(),fJe=Y1(),gJe=V1();Object.assign(Zoe.prototype,cm);Ye.exports.Dispatcher=Zoe;Ye.exports.Client=ZWe;Ye.exports.Pool=eJe;Ye.exports.BalancedPool=tJe;Ye.exports.Agent=rJe;Ye.exports.ProxyAgent=nJe;Ye.exports.EnvHttpProxyAgent=sJe;Ye.exports Line truncated
%s`,M,M,C,n);var Y=C.type==="*"?lO:C.type==="?"?uO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Y+"\\("+M}f(),i&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),ne=n.slice(D.reEnd-8,D.reEnd),Ae=n.slice(D.reEnd);ne+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var Ke="";Ae===""&&e!==QN&&(Ke="$");var it=z+ee+Ae+Ke+ne;n=it}if(n!==""&&s&&(n="(?=.)"+n),v&&(n=d+n),e===QN)return[n,s];if(!s)return uKe(t);var Wt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Wt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Ui.makeRe=function(t,e){return new An(t,e||{}).makeRe()};An.prototype.makeRe=cKe;function cKe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?lO:e.dot?tKe:rKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===zh?r:typeof o=="string"?lKe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Ui.match=function(t,e,r){r=r||{};var n=new An(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};An.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;jI.sep!=="/"&&(e=e.split(jI.sep).join("/")),e=e.split(JAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};An.prototype.matchOne=function(t,e,r){return e.indexOf(zh)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};An.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===zh){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===zh){a=i;break}var A=e.slice(s,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],E=I[0],C=0,y=[0],R=0;R<c.length;R++){var M=c[R];M===zh?(y.push(C),E=[[],0],I.push(E)):(E[0].push(M),C++)}for(var Y=I.length-1,v=t.length-d,P=0;P<I.length;P++)I[P][1]=v-(y[Y--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};An.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};An.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===zh)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function uKe(t){return t.replace(/\\(.)/g,"$1")}function lKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ZI=m((dWt,ece)=>{"use strict";var EKe="2.0.0",CKe=Number.MAX_SAFE_INTEGER||9007199254740991,IKe=16,yKe=250,BKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ece.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:IKe,MAX_SAFE_BUILD_LENGTH:yKe,MAX_SAFE_INTEGER:CKe,RELEASE_TYPES:BKe,SEMVER_SPEC_VERSION:EKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ey=m((hWt,tce)=>{"use strict";var bKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};tce.exports=bKe});var Em=m((xA,rce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:hO,MAX_SAFE_BUILD_LENGTH:QKe,MAX_LENGTH:wKe}=ZI(),SKe=ey();xA=rce.exports={};var NKe=xA.re=[],TKe=xA.safeRe=[],me=xA.src=[],xKe=xA.safeSrc=[],Ee=xA.t={},RKe=0,fO="[a-zA-Z0-9-]",DKe=[["\\s",1],["\\d",wKe],[fO,QKe]],kKe=t=>{for(let[e,r]of DKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`.trim())}};sse.exports=UU});var hS=m((XYt,cse)=>{"use strict";var ose=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Uqe}=Lt(),Pqe=Pp();Ase()===void 0&&ase(new Pqe);function ase(t){if(!t||typeof t.dispatch!="function")throw new Uqe("Argument agent must implement Agent");Object.defineProperty(globalThis,ose,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ase(){return globalThis[ose]}cse.exports={setGlobalDispatcher:ase,getGlobalDispatcher:Ase}});var fS=m((eVt,use)=>{"use strict";use.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var dse=m((tVt,lse)=>{"use strict";var Oqe=W1();lse.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new Oqe(r,o,s,i);return r(a,A)}}});var fse=m((rVt,hse)=>{"use strict";var Hqe=nS();hse.exports=t=>e=>function(n,s){return e(n,new Hqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var pse=m((nVt,gse)=>{"use strict";var Gqe=dt(),{InvalidArgumentError:qqe,RequestAbortedError:Yqe}=Lt(),Vqe=fS(),PU=class extends Vqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new qqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=Gqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Yqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Wqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new PU({maxSize:i},s);return e(n,o)}}gse.exports=Wqe});var Cse=m((sVt,Ese)=>{"use strict";var{isIP:Jqe}=b("node:net"),{lookup:zqe}=b("node:dns"),jqe=fS(),{InvalidArgumentError:jp,InformationalError:Kqe}=Lt(),mse=Math.pow(2,31)-1,OU=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Kqe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){zqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===mse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===mse?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new HU(this,e,r)}},HU=class extends jqe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Xoe(i)&&(r[s]=i);break;case"id":Zoe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Xoe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Zoe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};eae.exports={EventSourceStream:SP}});var cae=m((FVt,Aae)=>{"use strict";var{pipeline:oJe}=b("node:stream"),{fetching:aJe}=QI(),{makeRequest:AJe}=Xp(),{webidl:fu}=jn(),{EventSourceStream:cJe}=tae(),{parseMIMEType:uJe}=Xs(),{createFastMessageEvent:lJe}=sm(),{isNetworkError:rae}=BI(),{delay:dJe}=QP(),{kEnumerableProperty:Yh}=dt(),{environmentSettingsObject:nae}=Ti(),sae=!1,iae=3e3,LI=0,oae=1,UI=2,hJe="anonymous",fJe="use-credentials",cm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=LI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),fu.util.markAsUncloneable(this);let n="EventSource constructor";fu.argumentLengthCheck(arguments,1,n),sae||(sae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fu.converters.USVString(e,n,"url"),r=fu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:iae};let s=nae,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=hJe;r.withCredentials&&(o=fJe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=AJe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===UI)return;this.#r=LI;let e={request:this.#s,dispatcher:this.#a},r=n=>{rae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(rae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?uJe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=oae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new cJe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(lJe(A.type,A.options))}});oJe(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=aJe(e)}async#c(){this.#r!==UI&&(this.#r=LI,this.dispatchEvent(new Event("error")),await dJe(this.#o.reconnectionTime),this.#r===LI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){fu.brandCheck(this,t),this.#r!==UI&&(this.#r=UI,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},aae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:LI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:oae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:UI,writable:!1}};Object.defineProperties(cm,aae);Object.defineProperties(cm.prototype,aae);Object.defineProperties(cm.prototype,{close:Yh,onerror:Yh,onmessage:Yh,onopen:Yh,readyState:Yh,url:Yh,withCredentials:Yh});fu.converters.EventSourceInitDict=fu.dictionaryConverter([{key:"withCredentials",converter:fu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:fu.converters.any}]);Aae.exports={EventSource:cm,defaultReconnectionTime:iae}});var rN=m((MVt,Ye)=>{"use strict";var gJe=Lp(),uae=GC(),pJe=Up(),mJe=are(),EJe=Pp(),CJe=$L(),IJe=Dre(),yJe=Lre(),lae=Lt(),tN=dt(),{InvalidArgumentError:eN}=lae,um=bne(),BJe=YC(),bJe=kU(),QJe=ise(),wJe=FU(),SJe=CU(),NJe=nS(),{getGlobalDispatcher:dae,setGlobalDispatcher:TJe}=hS(),xJe=fS(),RJe=W1(),DJe=J1();Object.assign(uae.prototype,um);Ye.exports.Dispatcher=uae;Ye.exports.Client=gJe;Ye.exports.Pool=pJe;Ye.exports.BalancedPool=mJe;Ye.exports.Agent=EJe;Ye.exports.ProxyAgent=CJe;Ye.exports.EnvHttpProxyAgent=IJe;Ye.exports Line truncated
%s`,M,M,C,n);var Y=C.type==="*"?mO:C.type==="?"?pO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Y+"\\("+M}f(),i&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),ne=n.slice(D.reEnd-8,D.reEnd),Ae=n.slice(D.reEnd);ne+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var $e="";Ae===""&&e!==SN&&($e="$");var it=z+ee+Ae+$e+ne;n=it}if(n!==""&&s&&(n="(?=.)"+n),v&&(n=d+n),e===SN)return[n,s];if(!s)return SKe(t);var Wt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Wt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Ui.makeRe=function(t,e){return new An(t,e||{}).makeRe()};An.prototype.makeRe=wKe;function wKe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?mO:e.dot?mKe:EKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===jh?r:typeof o=="string"?NKe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Ui.match=function(t,e,r){r=r||{};var n=new An(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};An.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;KI.sep!=="/"&&(e=e.split(KI.sep).join("/")),e=e.split(sce),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};An.prototype.matchOne=function(t,e,r){return e.indexOf(jh)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};An.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===jh){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===jh){a=i;break}var A=e.slice(s,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],E=I[0],C=0,y=[0],R=0;R<c.length;R++){var M=c[R];M===jh?(y.push(C),E=[[],0],I.push(E)):(E[0].push(M),C++)}for(var Y=I.length-1,v=t.length-d,P=0;P<I.length;P++)I[P][1]=v-(y[Y--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};An.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};An.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===jh)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function SKe(t){return t.replace(/\\(.)/g,"$1")}function NKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ty=m((RWt,pce)=>{"use strict";var FKe="2.0.0",MKe=Number.MAX_SAFE_INTEGER||9007199254740991,LKe=16,UKe=250,PKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];pce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:LKe,MAX_SAFE_BUILD_LENGTH:UKe,MAX_SAFE_INTEGER:MKe,RELEASE_TYPES:PKe,SEMVER_SPEC_VERSION:FKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ry=m((DWt,mce)=>{"use strict";var OKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};mce.exports=OKe});var Cm=m((xA,Ece)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:yO,MAX_SAFE_BUILD_LENGTH:HKe,MAX_LENGTH:GKe}=ty(),qKe=ry();xA=Ece.exports={};var YKe=xA.re=[],VKe=xA.safeRe=[],me=xA.src=[],WKe=xA.safeSrc=[],Ee=xA.t={},JKe=0,BO="[a-zA-Z0-9-]",zKe=[["\\s",1],["\\d",GKe],[BO,HKe]],jKe=t=>{for(let[e,r]of zKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`).join(`
`+i),t.push(s+"m+"+uT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Aet()+e+" "+t[0]}function Aet(){return kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function cet(...t){return process.stderr.write(cT.formatWithOptions(kn.inspectOpts,...t)+`
`)}function uet(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function det(){return process.env.DEBUG}function het(t){t.inspectOpts={};let e=Object.keys(kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=kn.inspectOpts[e[r]]}uT.exports=e3()(kn);var{formatters:kle}=uT.exports;kle.o=function(t){return this.inspectOpts.colors=this.useColors,cT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};kle.O=function(t){return this.inspectOpts.colors=this.useColors,cT.inspect(t,this.inspectOpts)}});var lT=m((Lzt,n3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?n3.exports=Sle():n3.exports=vle()});var Mle=m(ai=>{"use strict";var fet=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),get=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_le=ai&&ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&fet(e,t,r);return get(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var pet=_le(b("http")),met=_le(b("https"));async function Fle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=Fle;async function Eet(t){let r=(await Fle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=Eet;function Cet(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?met:pet).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=Cet});var i3=m(Hi=>{"use strict";var Ule=Hi&&Hi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Iet=Hi&&Hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ple=Hi&&Hi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ule(e,t,r);return Iet(e,t),e},yet=Hi&&Hi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ule(e,t,r)};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Agent=void 0;var Bet=Ple(b("net")),Lle=Ple(b("http")),bet=b("https");yet(Mle(),Hi);var kA=Symbol("AgentBaseInternalState"),s3=class extends Lle.Agent{constructor(e){super(e),this[kA]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Bet.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?bet.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Lle.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[kA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kA].currentSocket;if(this[kA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kA]&&(this[kA].defaultPort=e)}get protocol(){return this[kA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kA]&&(this[kA].protocol=e)}};Hi.Agent=s3});var Ole=m(Nm=>{"use strict";var Qet=Nm&&Nm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nm,"__esModule",{value:!0});Nm.parseProxyResponse=void 0;var wet=Qet(lT()),dT=(0,wet.default)("https-proxy-agent:parse-proxy-response");function Net(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),dT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),dT("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+dT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Net()+e+" "+t[0]}function Net(){return kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Tet(...t){return process.stderr.write(lT.formatWithOptions(kn.inspectOpts,...t)+`
`)}function xet(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Ret(){return process.env.DEBUG}function Det(t){t.inspectOpts={};let e=Object.keys(kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=kn.inspectOpts[e[r]]}dT.exports=A3()(kn);var{formatters:zle}=dT.exports;zle.o=function(t){return this.inspectOpts.colors=this.useColors,lT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};zle.O=function(t){return this.inspectOpts.colors=this.useColors,lT.inspect(t,this.inspectOpts)}});var hT=m((tjt,l3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?l3.exports=Gle():l3.exports=jle()});var Xle=m(ai=>{"use strict";var ket=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),vet=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kle=ai&&ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ket(e,t,r);return vet(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var _et=Kle(b("http")),Fet=Kle(b("https"));async function $le(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=$le;async function Met(t){let r=(await $le(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=Met;function Let(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Fet:_et).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=Let});var h3=m(Hi=>{"use strict";var ede=Hi&&Hi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Uet=Hi&&Hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tde=Hi&&Hi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ede(e,t,r);return Uet(e,t),e},Pet=Hi&&Hi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ede(e,t,r)};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Agent=void 0;var Oet=tde(b("net")),Zle=tde(b("http")),Het=b("https");Pet(Xle(),Hi);var kA=Symbol("AgentBaseInternalState"),d3=class extends Zle.Agent{constructor(e){super(e),this[kA]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Oet.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Het.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Zle.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[kA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kA].currentSocket;if(this[kA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kA]&&(this[kA].defaultPort=e)}get protocol(){return this[kA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kA]&&(this[kA].protocol=e)}};Hi.Agent=d3});var rde=m(Tm=>{"use strict";var Get=Tm&&Tm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tm,"__esModule",{value:!0});Tm.parseProxyResponse=void 0;var qet=Get(hT()),fT=(0,qet.default)("https-proxy-agent:parse-proxy-response");function Yet(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),fT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),fT("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){dT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],E=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let R=y.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,R).toLowerCase(),Y=y.slice(R+1).trimStart(),v=C[M];typeof v=="string"?C[M]=[v,Y]:Array.isArray(v)?v.push(Y):C[M]=Y}dT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Nm.parseProxyResponse=Net});var Wle=m(ko=>{"use strict";var Tet=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),xet=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yle=ko&&ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Tet(e,t,r);return xet(e,t),e},Vle=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var hT=Yle(b("net")),Hle=Yle(b("tls")),Ret=Vle(b("assert")),Det=Vle(lT()),ket=i3(),vet=b("url"),_et=Ole(),gy=(0,Det.default)("https-proxy-agent"),Gle=t=>t.servername===void 0&&t.host&&!hT.isIP(t.host)?{...t,servername:t.host}:t,fT=class extends ket.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new vet.URL(e):e,this.proxyHeaders=r?.headers??{},gy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?qle(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(gy("Creating `tls.Socket`: %o",this.connectOpts),s=Hle.connect(Gle(this.connectOpts))):(gy("Creating `net.Socket`: %o",this.connectOpts),s=hT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=hT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){fT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],E=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let R=y.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,R).toLowerCase(),Y=y.slice(R+1).trimStart(),v=C[M];typeof v=="string"?C[M]=[v,Y]:Array.isArray(v)?v.push(Y):C[M]=Y}fT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Tm.parseProxyResponse=Yet});var Ade=m(ko=>{"use strict";var Vet=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wet=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ode=ko&&ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Vet(e,t,r);return Wet(e,t),e},ade=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var gT=ode(b("net")),nde=ode(b("tls")),Jet=ade(b("assert")),zet=ade(hT()),jet=h3(),Ket=b("url"),$et=rde(),my=(0,zet.default)("https-proxy-agent"),sde=t=>t.servername===void 0&&t.host&&!gT.isIP(t.host)?{...t,servername:t.host}:t,pT=class extends jet.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Ket.URL(e):e,this.proxyHeaders=r?.headers??{},my("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ide(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(my("Creating `tls.Socket`: %o",this.connectOpts),s=nde.connect(sde(this.connectOpts))):(my("Creating `net.Socket`: %o",this.connectOpts),s=gT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=gT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,_et.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Fet),r.secureEndpoint?(gy("Upgrading socket connection to TLS"),Hle.connect({...qle(Gle(r),"host","path","port"),socket:s})):s;s.destroy();let l=new hT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{gy("Replaying proxy buffer for failed request"),(0,Ret.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};fT.protocols=["http","https"];ko.HttpsProxyAgent=fT;function Fet(t){t.resume()}function qle(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var jle=m(vo=>{"use strict";var Met=vo&&vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Let=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zle=vo&&vo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Met(e,t,r);return Let(e,t),e},Uet=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var Pet=zle(b("net")),Oet=zle(b("tls")),Het=Uet(lT()),Get=b("events"),qet=i3(),Jle=b("url"),Tm=(0,Het.default)("http-proxy-agent"),gT=class extends qet.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Jle.URL(e):e,this.proxyHeaders=r?.headers??{},Tm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Yet(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Jle.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Tm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Tm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let A=(0,$et.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Xet),r.secureEndpoint?(my("Upgrading socket connection to TLS"),nde.connect({...ide(sde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new gT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{my("Replaying proxy buffer for failed request"),(0,Jet.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};pT.protocols=["http","https"];ko.HttpsProxyAgent=pT;function Xet(t){t.resume()}function ide(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var lde=m(vo=>{"use strict";var Zet=vo&&vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ett=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ude=vo&&vo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Zet(e,t,r);return ett(e,t),e},ttt=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var rtt=ude(b("net")),ntt=ude(b("tls")),stt=ttt(hT()),itt=b("events"),ott=h3(),cde=b("url"),xm=(0,stt.default)("http-proxy-agent"),mT=class extends ott.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new cde.URL(e):e,this.proxyHeaders=r?.headers??{},xm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?att(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new cde.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;xm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(xm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),Tm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Tm("Creating `tls.Socket`: %o",this.connectOpts),i=Oet.connect(this.connectOpts)):(Tm("Creating `net.Socket`: %o",this.connectOpts),i=Pet.connect(this.connectOpts)),await(0,Get.once)(i,"connect"),i}};gT.protocols=["http","https"];vo.HttpProxyAgent=gT;function Yet(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Nde=m(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});xT.state=void 0;xT.state={instrumenterImplementation:void 0}});var Yde=m(_T=>{"use strict";Object.defineProperty(_T,"__esModule",{value:!0});_T.state=void 0;_T.state={operationRequestMap:new WeakMap}});var nge=m((llr,Pot)=>{Pot.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var ige=m((dlr,sge)=>{var Oot=nge();sge.exports={version:Oot.version}});var sR=m(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.isJsonObject=Km.typeofJsonValue=void 0;function jot(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Km.typeofJsonValue=jot;function Kot(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Km.isJsonObject=Kot});var oR=m(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.base64encode=Xm.base64decode=void 0;var vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),iR=[];for(let t=0;t<vu.length;t++)iR[vu[t].charCodeAt(0)]=t;iR[45]=vu.indexOf("+");iR[95]=vu.indexOf("/");function Xot(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=iR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}Xm.base64decode=Xot;function $ot(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=vu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=vu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=vu[s|n>>6],e+=vu[n&63],r=0;break}return r&&(e+=vu[s],e+="=",r==1&&(e+="=")),e}Xm.base64encode=$ot});var uge=m(aR=>{"use strict";Object.defineProperty(aR,"__esModule",{value:!0});aR.utf8read=void 0;var $5=t=>String.fromCharCode.apply(String,t);function Zot(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push($5(n)),s=0);return r.length?(s&&r.push($5(n.slice(0,s))),r.join("")):$5(n.slice(0,s))}aR.utf8read=Zot});var cB=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.WireType=nc.mergeBinaryOptions=nc.UnknownFieldHandler=void 0;var eat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(eat=nc.UnknownFieldHandler||(nc.UnknownFieldHandler={}));function tat(t,e){return Object.assign(Object.assign({},t),e)}nc.mergeBinaryOptions=tat;var rat;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(rat=nc.WireType||(nc.WireType={}))});var cR=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function nat(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=nat;function sat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}hi.varint64write=sat;var AR=65536*65536;function iat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=AR&&(s=s+(n/AR|0),n=n%AR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=iat;function oat(t,e){if(e>>>0<=2097151)return""+(AR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}hi.int64toString=oat;function aat(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}hi.varint32write=aat;function Aat(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}hi.varint32read=Aat});var nd=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.PbLong=rd.PbULong=rd.detectBi=void 0;var uB=cR(),or;function lge(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}rd.detectBi=lge;lge();function dge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var hge=/^-?[0-9]+$/,lR=4294967296,uR=2147483648,dR=c Line truncated
`)}};MR.RpcError=wH});var NH=m(UR=>{"use strict";Object.defineProperty(UR,"__esModule",{value:!0});UR.mergeRpcOptions=void 0;var qge=ct();function RAt(t,e){if(!e)return t;let r={};LR(t,r),LR(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=qge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=qge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},LR(t.meta,r.meta),LR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}UR.mergeRpcOptions=RAt;function LR(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var xH=m(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.Deferred=Tf.DeferredState=void 0;var oc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oc=Tf.DeferredState||(Tf.DeferredState={}));var TH=class{constructor(e=!0){this._state=oc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==oc.PENDING)throw new Error(`cannot resolve ${oc[this.state].toLowerCase()}`);this._resolve(e),this._state=oc.RESOLVED}reject(e){if(this.state!==oc.PENDING)throw new Error(`cannot reject ${oc[this.state].toLowerCase()}`);this._reject(e),this._state=oc.REJECTED}resolvePending(e){this._state===oc.PENDING&&this.resolve(e)}rejectPending(e){this._state===oc.PENDING&&this.reject(e)}};Tf.Deferred=TH});var DH=m(PR=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0});PR.RpcOutputStreamController=void 0;var Yge=xH(),xf=ct(),RH=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){xf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){xf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){xf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){xf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;xf.assert(e,"bad state"),xf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Yge.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;xf.assert(n.state==Yge.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};PR.RpcOutputStreamController=RH});var vH=m(s0=>{"use strict";var DAt=s0&&s0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(s0,"__esModule",{value:!0});s0.UnaryCall=void 0;var kH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return DAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};s0.UnaryCall=kH});var FH=m(i0=>{"use strict";var kAt=i0&&i0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(i0,"__esModule",{value:!0});i0.ServerStreamingCall=void 0;var _H=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),xm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(xm("Creating `tls.Socket`: %o",this.connectOpts),i=ntt.connect(this.connectOpts)):(xm("Creating `net.Socket`: %o",this.connectOpts),i=rtt.connect(this.connectOpts)),await(0,itt.once)(i,"connect"),i}};mT.protocols=["http","https"];vo.HttpProxyAgent=mT;function att(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var qde=m(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.state=void 0;DT.state={instrumenterImplementation:void 0}});var ohe=m(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.state=void 0;MT.state={operationRequestMap:new WeakMap}});var Cge=m((xlr,rat)=>{rat.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var yge=m((Rlr,Ige)=>{var nat=Cge();Ige.exports={version:nat.version}});var oR=m($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.isJsonObject=$m.typeofJsonValue=void 0;function dat(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}$m.typeofJsonValue=dat;function hat(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}$m.isJsonObject=hat});var AR=m(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.base64encode=Xm.base64decode=void 0;var _u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),aR=[];for(let t=0;t<_u.length;t++)aR[_u[t].charCodeAt(0)]=t;aR[45]=_u.indexOf("+");aR[95]=_u.indexOf("/");function fat(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=aR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}Xm.base64decode=fat;function gat(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=_u[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=_u[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=_u[s|n>>6],e+=_u[n&63],r=0;break}return r&&(e+=_u[s],e+="=",r==1&&(e+="=")),e}Xm.base64encode=gat});var Sge=m(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0});cR.utf8read=void 0;var oH=t=>String.fromCharCode.apply(String,t);function pat(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(oH(n)),s=0);return r.length?(s&&r.push(oH(n.slice(0,s))),r.join("")):oH(n.slice(0,s))}cR.utf8read=pat});var lB=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.WireType=nc.mergeBinaryOptions=nc.UnknownFieldHandler=void 0;var mat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(mat=nc.UnknownFieldHandler||(nc.UnknownFieldHandler={}));function Eat(t,e){return Object.assign(Object.assign({},t),e)}nc.mergeBinaryOptions=Eat;var Cat;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Cat=nc.WireType||(nc.WireType={}))});var lR=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function Iat(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=Iat;function yat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}hi.varint64write=yat;var uR=65536*65536;function Bat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=uR&&(s=s+(n/uR|0),n=n%uR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=Bat;function bat(t,e){if(e>>>0<=2097151)return""+(uR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}hi.int64toString=bat;function Qat(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}hi.varint32write=Qat;function wat(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}hi.varint32read=wat});var sd=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.PbLong=nd.PbULong=nd.detectBi=void 0;var dB=lR(),or;function Nge(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}nd.detectBi=Nge;Nge();function Tge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var xge=/^-?[0-9]+$/,hR=4294967296,dR=2147483648,fR=c Line truncated
`)}};UR.RpcError=vH});var FH=m(OR=>{"use strict";Object.defineProperty(OR,"__esModule",{value:!0});OR.mergeRpcOptions=void 0;var ipe=ct();function JAt(t,e){if(!e)return t;let r={};PR(t,r),PR(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=ipe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=ipe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},PR(t.meta,r.meta),PR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}OR.mergeRpcOptions=JAt;function PR(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var LH=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.Deferred=xf.DeferredState=void 0;var oc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oc=xf.DeferredState||(xf.DeferredState={}));var MH=class{constructor(e=!0){this._state=oc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==oc.PENDING)throw new Error(`cannot resolve ${oc[this.state].toLowerCase()}`);this._resolve(e),this._state=oc.RESOLVED}reject(e){if(this.state!==oc.PENDING)throw new Error(`cannot reject ${oc[this.state].toLowerCase()}`);this._reject(e),this._state=oc.REJECTED}resolvePending(e){this._state===oc.PENDING&&this.resolve(e)}rejectPending(e){this._state===oc.PENDING&&this.reject(e)}};xf.Deferred=MH});var PH=m(HR=>{"use strict";Object.defineProperty(HR,"__esModule",{value:!0});HR.RpcOutputStreamController=void 0;var ope=LH(),Rf=ct(),UH=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Rf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Rf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Rf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Rf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Rf.assert(e,"bad state"),Rf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new ope.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Rf.assert(n.state==ope.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};HR.RpcOutputStreamController=UH});var HH=m(i0=>{"use strict";var zAt=i0&&i0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(i0,"__esModule",{value:!0});i0.UnaryCall=void 0;var OH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return zAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};i0.UnaryCall=OH});var qH=m(o0=>{"use strict";var jAt=o0&&o0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(o0,"__esModule",{value:!0});o0.ServerStreamingCall=void 0;var GH=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var BEe=m(yEe=>{"use strict";var pq=Gu().Buffer;yEe._dbcs=qu;var Kn=-1,IEe=-2,ta=-10,Os=-1e3,_0=new Array(256),eb=-1;for(h2=0;h2<256;h2++)_0[h2]=Kn;var h2;function qu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=_0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(_0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(_0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Os-o[n]],A=48;A<=57;A++){if(a[A]===Kn)a[A]=Os-s;else if(a[A]>Os)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Os-a[A]],u=129;u<=254;u++){if(c[u]===Kn)c[u]=Os-i;else{if(c[u]===Os-i)continue;if(c[u]>Os)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Os-c[u]],d=48;d<=57;d++)l[d]===Kn&&(l[d]=IEe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function p0t(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(t0t.has(s)){r=s;break}}return r}function m0t(t,e){let r=p0t(e);r!==""&&(t.referrerPolicy=r)}function E0t(){return"allowed"}function C0t(){return"success"}function I0t(){return"success"}function y0t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function B0t(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&_Y(t.origin)&&!_Y(Zf(t))&&(e=null);break;case"same-origin":cb(t,Zf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function P0(t,e){return t}function b0t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:P0(t.domainLookupStartTime,r),domainLookupEndTime:P0(t.domainLookupEndTime,r),connectionStartTime:P0(t.connectionStartTime,r),connectionEndTime:P0(t.connectionEndTime,r),secureConnectionStartTime:P0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Q0t(t){return P0(i0t.now(),t)}function w0t(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function $Ie(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function S0t(t){return{referrerPolicy:t.referrerPolicy}}function N0t(t){let e=t.referrerPolicy;ub(e);let r=null;if(t.referrer==="client"){let i=JIe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else bd.is.URL(t.referrer)&&(r=t.referrer);let n=vY(r),s=vY(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??vY(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Zf(t);return $f(n)&&!$f(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Zf(t);return cb(n,i)?n:$f(n)&&!$f(i)?"no-referrer":s}case"same-origin":return cb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return cb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Zf(t);return $f(n)&&!$f(i)?"no-referrer":n}}}function vY(t,e=!1){return ub(bd.is.URL(t)),t=new URL(t),rye(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var T0t=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),x0t=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function ZIe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),x0t(t)):T0t(t)}function R0t(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||ZIe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function $f(t){return bd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:R0t(t.origin):!1}function D0t(t){}function cb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function k0t(t){return t.controller.state==="aborted"}function v0t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function _0t(t){return a0t[t.toLowerCase()]??t}var F0t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function eye(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,F0t),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function M0t(t,e,r,n=0,s=1){let i=eye(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return bd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return bd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=sa(a=>qY(a)&&a!==59,t,e);i=HY.decode(o)}return{name:n,value:i}}function oEt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ii("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=sa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=GY(o,!0,!0,a=>a===9||a===32),!$0t.test(o.toString()))throw Ii("header name does not match the field-name token production");if(t[e.position]!==58)throw Ii("expected :");switch(e.position++,sa(a=>a===32||a===9,t,e),X0t(o)){case"content-disposition":{if(r=n=null,sa(A=>qY(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ii("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=iEt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw Ii("name attribute is required in content-disposition header");break}case"content-type":{let a=sa(A=>A!==10&&A!==13,t,e);a=GY(a,!1,!0,A=>A===9||A===32),s=Aye(a);break}case"content-transfer-encoding":{let a=sa(A=>A!==10&&A!==13,t,e);a=GY(a,!1,!0,A=>A===9||A===32),i=Aye(a);break}default:sa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ii("expected CRLF");e.position+=2}}function sa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function GY(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function aEt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function Ii(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function AEt(t){return t<=31||t===127}function cEt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function qY(t){return t<=127&&t!==32&&t!==9&&!AEt(t)&&!cEt(t)}cye.exports={multipartFormDataParser:sEt,validateBoundary:nEt}});var lb=m((S0r,lye)=>{"use strict";function uEt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}lye.exports={createDeferredPromise:uEt}});var G0=m((N0r,pye)=>{"use strict";var WY=et(),{ReadableStreamFrom:lEt,readableStreamClose:dEt,fullyReadBody:hEt,extractMimeType:fEt}=eo(),{FormData:dye,setFormDataState:gEt}=U2(),{webidl:eA}=Xn(),YY=b("node:assert"),{isErrored:VY,isDisturbed:pEt}=b("node:stream"),{isUint8Array:mEt}=b("node:util/types"),{serializeAMimeType:EEt}=na(),{multipartFormDataParser:CEt}=uye(),{createDeferredPromise:IEt}=lb(),{parseJSONFromBytes:yEt}=Wu(),{utf8DecodeBytes:BEt}=k2(),{runtimeFeatures:bEt}=Ju(),QEt=bEt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),P2=new TextEncoder;function wEt(){}var SEt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!pEt(e)&&!VY(e)&&e.cancel("Response object has been garbage collected").catch(wEt)});function fye(t,e=!1){let r=null,n=null;eA.is.ReadableStream(t)?r=t:eA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),YY(eA.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(eA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(eA.is.BufferSource(t))i=eA.util.getCopyOfBytesHeldByBufferSource(t);else if(eA.is.FormData(t)){let c=`----formdata-undici-0${`${QEt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var UEe=m(LEe=>{"use strict";var Nq=qu().Buffer;LEe._dbcs=Yu;var Kn=-1,MEe=-2,ta=-10,Os=-1e3,F0=new Array(256),rb=-1;for(C2=0;C2<256;C2++)F0[C2]=Kn;var C2;function Yu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=F0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(F0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(F0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Os-o[n]],A=48;A<=57;A++){if(a[A]===Kn)a[A]=Os-s;else if(a[A]>Os)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Os-a[A]],u=129;u<=254;u++){if(c[u]===Kn)c[u]=Os-i;else{if(c[u]===Os-i)continue;if(c[u]>Os)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Os-c[u]],d=48;d<=57;d++)l[d]===Kn&&(l[d]=MEe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function F0t(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(I0t.has(s)){r=s;break}}return r}function M0t(t,e){let r=F0t(e);r!==""&&(t.referrerPolicy=r)}function L0t(){return"allowed"}function U0t(){return"success"}function P0t(){return"success"}function O0t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function H0t(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&VY(t.origin)&&!VY(eg(t))&&(e=null);break;case"same-origin":lb(t,eg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function O0(t,e){return t}function G0t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:O0(t.domainLookupStartTime,r),domainLookupEndTime:O0(t.domainLookupEndTime,r),connectionStartTime:O0(t.connectionStartTime,r),connectionEndTime:O0(t.connectionEndTime,r),secureConnectionStartTime:O0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function q0t(t){return O0(Q0t.now(),t)}function Y0t(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function fye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V0t(t){return{referrerPolicy:t.referrerPolicy}}function W0t(t){let e=t.referrerPolicy;db(e);let r=null;if(t.referrer==="client"){let i=cye();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Qd.is.URL(t.referrer)&&(r=t.referrer);let n=YY(r),s=YY(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??YY(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=eg(t);return Zf(n)&&!Zf(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=eg(t);return lb(n,i)?n:Zf(n)&&!Zf(i)?"no-referrer":s}case"same-origin":return lb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return lb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=eg(t);return Zf(n)&&!Zf(i)?"no-referrer":n}}}function YY(t,e=!1){return db(Qd.is.URL(t)),t=new URL(t),Eye(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var J0t=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),z0t=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function gye(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),z0t(t)):J0t(t)}function j0t(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||gye(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Zf(t){return Qd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:j0t(t.origin):!1}function K0t(t){}function lb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function $0t(t){return t.controller.state==="aborted"}function X0t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Z0t(t){return S0t[t.toLowerCase()]??t}var eEt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function pye(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,eEt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function tEt(t,e,r,n=0,s=1){let i=pye(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Qd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Qd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=sa(a=>eV(a)&&a!==59,t,e);i=XY.decode(o)}return{name:n,value:i}}function wEt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ii("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=sa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=ZY(o,!0,!0,a=>a===9||a===32),!mEt.test(o.toString()))throw Ii("header name does not match the field-name token production");if(t[e.position]!==58)throw Ii("expected :");switch(e.position++,sa(a=>a===32||a===9,t,e),pEt(o)){case"content-disposition":{if(r=n=null,sa(A=>eV(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ii("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=QEt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw Ii("name attribute is required in content-disposition header");break}case"content-type":{let a=sa(A=>A!==10&&A!==13,t,e);a=ZY(a,!1,!0,A=>A===9||A===32),s=Qye(a);break}case"content-transfer-encoding":{let a=sa(A=>A!==10&&A!==13,t,e);a=ZY(a,!1,!0,A=>A===9||A===32),i=Qye(a);break}default:sa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ii("expected CRLF");e.position+=2}}function sa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function ZY(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function SEt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function Ii(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function NEt(t){return t<=31||t===127}function TEt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function eV(t){return t<=127&&t!==32&&t!==9&&!NEt(t)&&!TEt(t)}wye.exports={multipartFormDataParser:bEt,validateBoundary:BEt}});var hb=m((j0r,Nye)=>{"use strict";function xEt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Nye.exports={createDeferredPromise:xEt}});var q0=m((K0r,kye)=>{"use strict";var nV=et(),{ReadableStreamFrom:REt,readableStreamClose:DEt,fullyReadBody:kEt,extractMimeType:vEt}=eo(),{FormData:Tye,setFormDataState:_Et}=Y2(),{webidl:eA}=$n(),tV=b("node:assert"),{isErrored:rV,isDisturbed:FEt}=b("node:stream"),{isUint8Array:MEt}=b("node:util/types"),{serializeAMimeType:LEt}=na(),{multipartFormDataParser:UEt}=Sye(),{createDeferredPromise:PEt}=hb(),{parseJSONFromBytes:OEt}=Ju(),{utf8DecodeBytes:HEt}=U2(),{runtimeFeatures:GEt}=zu(),qEt=GEt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),V2=new TextEncoder;function YEt(){}var VEt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!FEt(e)&&!rV(e)&&e.cancel("Response object has been garbage collected").catch(YEt)});function Rye(t,e=!1){let r=null,n=null;eA.is.ReadableStream(t)?r=t:eA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),tV(eA.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(eA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(eA.is.BufferSource(t))i=eA.util.getCopyOfBytesHeldByBufferSource(t);else if(eA.is.FormData(t)){let c=`----formdata-undici-0${`${qEt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let y=P2.encode(u+`; name="${l(d(E))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let y=V2.encode(u+`; name="${l(d(E))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=P2.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=V2.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=P2.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(eA.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(WY.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=eA.is.ReadableStream(t)?t:lEt(t)}return(typeof i=="string"||mEt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(VY(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!VY(r)&&n.enqueue(typeof c=="string"?P2.encode(c):new Uint8Array(c));queueMicrotask(()=>dEt(n))})(),[{stream:r,source:i,length:o},a]}function NEt(t,e=!1){return eA.is.ReadableStream(t)&&(YY(!WY.isDisturbed(t),"The body has already been consumed."),YY(!t.locked,"The stream is locked.")),fye(t,e)}function TEt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function xEt(t,e){return{blob(){return H0(this,n=>{let s=hye(e(this));return s===null?s="":s&&(s=EEt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return H0(this,n=>new Uint8Array(n).buffer,t,e)},text(){return H0(this,BEt,t,e)},json(){return H0(this,yEt,t,e)},formData(){return H0(this,n=>{let s=hye(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=CEt(n,s),o=new dye;return gEt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new dye;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return H0(this,n=>new Uint8Array(n),t,e)}}}function REt(t,e){Object.assign(t.prototype,xEt(t,e))}function H0(t,e,r,n){try{eA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),gye(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=IEt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(hEt(t.body,o,i),s.promise)}function gye(t){let e=t.body;return e!=null&&(e.stream.locked||WY.isDisturbed(e.stream))}function hye(t){let e=t.headersList,r=fEt(e);return r==="failure"?null:r}pye.exports={extractBody:fye,safelyExtractBody:NEt,cloneBody:TEt,mixinBody:REt,streamRegistry:SEt,bodyUnusable:gye}});var Nye=m((T0r,Sye)=>{"use strict";var Ve=b("node:assert"),We=et(),{channels:mye}=yd(),JY=Tq(),{RequestContentLengthMismatchError:eg,ResponseContentLengthMismatchError:DEt,RequestAbortedError:bye,HeadersTimeoutError:kEt,HeadersOverflowError:vEt,SocketError:fb,InformationalError:q0,BodyTimeoutError:_Et,HTTPParserError:FEt,ResponseExceededMaxSizeError:MEt}=je(),{kUrl:Qye,kReset:yi,kClient:eV,kParser:Wr,kBlocking:gb,kRunning:gs,kPending:LEt,kSize:Eye,kWriting:wd,kQueue:tA,kNoRef:db,kKeepAliveDefaultTimeout:UEt,kHostHeader:PEt,kPendingIdx:OEt,kRunningIdx:ia,kError:oa,kPipelining:G2,kSocket:Y0,kKeepAliveTimeoutValue:Y2,kMaxHeadersSize:HEt,kKeepAliveMaxTimeout:GEt,kKeepAliveTimeoutThreshold:qEt,kHeadersTimeout:YEt,kBodyTimeout:VEt,kStrictContentLength:KY,kMaxRequests:Cye,kCounter:WEt,kMaxResponseSize:JEt,kOnError:zEt,kResume:Qd,kHTTPContext:wye,kClosed:XY}=Xt(),mc=pIe(),jEt=Buffer.alloc(0),O2=Buffer[Symbol.species],KEt=We.removeAllListeners,zY;function XEt(){let t=process.env.JEST_WORKER_ID?IY():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(CIe())}catch{}return e||(e=new WebAssembly.Module(t||IY())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onStatus(new O2(Ec.buffer,o,i))},wasm_on_message_begin:n=>(Ve(Bn.ptr===n),Bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onHeaderField(new O2(Ec.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onHeaderValue(new O2(Ec.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(Bn.ptr===n),Bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onBody(new O2(Ec.buffer,o,i))},wasm_on_message_complete:n=>(Ve(Bn.ptr===n),Bn.onMessageComplete())}})}var jY=null,Bn=null,Ec=null,H2=0,Cc=null,$Et=0,hb=1,V0=2|hb,q2=4|hb,$Y=8|$Et,ZY=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[HEt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[JEt]}setTi Line truncated
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=V2.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(eA.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(nV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=eA.is.ReadableStream(t)?t:REt(t)}return(typeof i=="string"||MEt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(rV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!rV(r)&&n.enqueue(typeof c=="string"?V2.encode(c):new Uint8Array(c));queueMicrotask(()=>DEt(n))})(),[{stream:r,source:i,length:o},a]}function WEt(t,e=!1){return eA.is.ReadableStream(t)&&(tV(!nV.isDisturbed(t),"The body has already been consumed."),tV(!t.locked,"The stream is locked.")),Rye(t,e)}function JEt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function zEt(t,e){return{blob(){return G0(this,n=>{let s=xye(e(this));return s===null?s="":s&&(s=LEt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return G0(this,n=>new Uint8Array(n).buffer,t,e)},text(){return G0(this,HEt,t,e)},json(){return G0(this,OEt,t,e)},formData(){return G0(this,n=>{let s=xye(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=UEt(n,s),o=new Tye;return _Et(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Tye;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return G0(this,n=>new Uint8Array(n),t,e)}}}function jEt(t,e){Object.assign(t.prototype,zEt(t,e))}function G0(t,e,r,n){try{eA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Dye(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=PEt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(kEt(t.body,o,i),s.promise)}function Dye(t){let e=t.body;return e!=null&&(e.stream.locked||nV.isDisturbed(e.stream))}function xye(t){let e=t.headersList,r=vEt(e);return r==="failure"?null:r}kye.exports={extractBody:Rye,safelyExtractBody:WEt,cloneBody:JEt,mixinBody:jEt,streamRegistry:VEt,bodyUnusable:Dye}});var qye=m(($0r,Gye)=>{"use strict";var We=b("node:assert"),Je=et(),{channels:vye}=Bd(),sV=Pq(),{RequestContentLengthMismatchError:tg,ResponseContentLengthMismatchError:KEt,RequestAbortedError:Pye,HeadersTimeoutError:$Et,HeadersOverflowError:XEt,SocketError:pb,InformationalError:Y0,BodyTimeoutError:ZEt,HTTPParserError:eCt,ResponseExceededMaxSizeError:tCt}=Ke(),{kUrl:Oye,kReset:yi,kClient:lV,kParser:Wr,kBlocking:mb,kRunning:gs,kPending:rCt,kSize:_ye,kWriting:Sd,kQueue:tA,kNoRef:fb,kKeepAliveDefaultTimeout:nCt,kHostHeader:sCt,kPendingIdx:iCt,kRunningIdx:ia,kError:oa,kPipelining:z2,kSocket:V0,kKeepAliveTimeoutValue:K2,kMaxHeadersSize:oCt,kKeepAliveMaxTimeout:aCt,kKeepAliveTimeoutThreshold:ACt,kHeadersTimeout:cCt,kBodyTimeout:uCt,kStrictContentLength:aV,kMaxRequests:Fye,kCounter:lCt,kMaxResponseSize:dCt,kOnError:hCt,kResume:wd,kHTTPContext:Hye,kClosed:AV}=$t(),mc=kIe(),fCt=Buffer.alloc(0),W2=Buffer[Symbol.species],gCt=Je.removeAllListeners,iV;function pCt(){let t=process.env.JEST_WORKER_ID?DY():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(FIe())}catch{}return e||(e=new WebAssembly.Module(t||DY())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{We(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onStatus(new W2(Ec.buffer,o,i))},wasm_on_message_begin:n=>(We(Bn.ptr===n),Bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{We(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onHeaderField(new W2(Ec.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{We(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onHeaderValue(new W2(Ec.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(We(Bn.ptr===n),Bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{We(Bn.ptr===n);let o=s-Cc+Ec.byteOffset;return Bn.onBody(new W2(Ec.buffer,o,i))},wasm_on_message_complete:n=>(We(Bn.ptr===n),Bn.onMessageComplete())}})}var oV=null,Bn=null,Ec=null,J2=0,Cc=null,mCt=0,gb=1,W0=2|gb,j2=4|gb,cV=8|mCt,uV=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[oCt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[dCt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[PEt],i?p+=`connection: upgrade\r
`:p+=t[sCt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[G2]&&!h[yi]?p+=`connection: keep-alive\r
`:t[z2]&&!h[yi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return mye.sendHeaders.hasSubscribers&&mye.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?yye(f,null,t,e,h,u,p,l):We.isBuffer(A)?yye(f,A,t,e,h,u,p,l):We.isBlobLike(A)?typeof A.stream=="function"?Bye(f,A.stream(),t,e,h,u,p,l):cCt(f,A,t,e,h,u,p,l):We.isStream(A)?ACt(f,A,t,e,h,u,p,l):We.isIterable(A)?Bye(f,A,t,e,h,u,p,l):Ve(!1),!0}function ACt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let A=!1,c=new V2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){We.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new bye;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[wd]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function yye(t,e,r,n,s,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`}return vye.sendHeaders.hasSubscribers&&vye.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Lye(f,null,t,e,h,u,p,l):Je.isBuffer(A)?Lye(f,A,t,e,h,u,p,l):Je.isBlobLike(A)?typeof A.stream=="function"?Uye(f,A.stream(),t,e,h,u,p,l):TCt(f,A,t,e,h,u,p,l):Je.isStream(A)?NCt(f,A,t,e,h,u,p,l):Je.isIterable(A)?Uye(f,A,t,e,h,u,p,l):We(!1),!0}function NCt(t,e,r,n,s,i,o,a){We(i!==0||r[gs]===0,"stream body cannot be pipelined");let A=!1,c=new $2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Je.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Pye;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,We(s.destroyed||s[Sd]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Lye(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[yi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Qd]()}catch(A){t(A)}}async function cCt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new eg;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[wd]()}catch(A){t(A)}}async function TCt(t,e,r,n,s,i,o,a){We(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new tg;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[yi]=!0),r[Qd]()}catch(A){t(A)}}async function Bye(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[oa]?h(s[oa]):A=d});s.on("close",c).on("drain",c);let l=new V2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[oa])throw s[oa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var V2=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[wd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[oa])throw r[oa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[KY])throw new eg;process.emitWarning(new eg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[yi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[yi]=!0),r[wd]()}catch(A){t(A)}}async function Uye(t,e,r,n,s,i,o,a){We(i!==0||r[gs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{We(A===null),s[oa]?h(s[oa]):A=d});s.on("close",c).on("drain",c);let l=new $2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[oa])throw s[oa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var $2=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Sd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[oa])throw r[oa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[aV])throw new tg;process.emitWarning(new tg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[yi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===V0&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[wd]=!1,e[oa])throw e[oa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===W0&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Sd]=!1,e[oa])throw e[oa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[KY])throw new eg;process.emitWarning(new eg)}e[Wr].timeout&&e[Wr].timeoutType===V0&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Qd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[wd]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};Sye.exports=ZEt});var Mye=m((x0r,Fye)=>{"use strict";var Aa=b("node:assert"),{pipeline:uCt}=b("node:stream"),ut=et(),{RequestContentLengthMismatchError:sV,RequestAbortedError:lCt,SocketError:Cb,InformationalError:Sd,InvalidArgumentError:dCt}=je(),{kUrl:Eb,kReset:j2,kClient:to,kRunning:Ib,kPending:hCt,kQueue:Nd,kPendingIdx:oV,kRunningIdx:rA,kError:ro,kSocket:kr,kStrictContentLength:fCt,kOnError:W0,kMaxConcurrentStreams:J2,kPingInterval:Tye,kHTTP2Session:ju,kHTTP2InitialWindowSize:gCt,kHTTP2ConnectionWindowSize:pCt,kResume:Ic,kSize:mCt,kHTTPContext:aV,kClosed:iV,kBodyTimeout:ECt,kEnableConnectProtocol:pb,kRemoteSettings:mb,kHTTP2Stream:W2,kHTTP2SessionState:AV}=Xt(),{channels:xye}=yd(),aa=Symbol("open streams"),Rye,z2;try{z2=b("node:http2")}catch{z2={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:CCt,HTTP2_HEADER_METHOD:Dye,HTTP2_HEADER_PATH:kye,HTTP2_HEADER_SCHEME:tV,HTTP2_HEADER_CONTENT_LENGTH:ICt,HTTP2_HEADER_EXPECT:yCt,HTTP2_HEADER_STATUS:rV,HTTP2_HEADER_PROTOCOL:BCt,NGHTTP2_REFUSED_STREAM:bCt,NGHTTP2_CANCEL:QCt}}=z2;function nV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function wCt(t,e){t[kr]=e;let r=t[gCt],n=t[pCt],s=z2.connect(t[Eb],{createConnection:()=>e,peerMaxConcurrentStreams:t[J2],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[to]=t,s[kr]=e,s[AV]={ping:{interval:t[Tye]===0?null:setInterval(xCt,t[Tye],s).unref()}},s[pb]=!1,s[mb]=!1,n&&ut.addListener(s,"connect",NCt.bind(s,n)),ut.addListener(s,"error",RCt),ut.addListener(s,"frameError",DCt),ut.addListener(s,"end",kCt),ut.addListener(s,"goaway",vCt),ut.addListener(s,"close",_Ct),ut.addListener(s,"remoteSettings",TCt),s.unref(),t[ju]=s,e[ju]=s,ut.addListener(e,"error",MCt),ut.addListener(e,"end",LCt),ut.addListener(e,"close",FCt),e[iV]=!1,e.on("close",UCt),{version:"h2",defaultPipelining:1/0,write(i){return OCt(t,i)},resume(){SCt(t)},destroy(i,o){e[iV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Ib]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[mb]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[mb]===!1;return!1}}}function SCt(t){let e=t[kr];e?.destroyed===!1&&(t[mCt]===0||t[J2]===0?(e.unref(),t[ju].unref()):(e.ref(),t[ju].ref()))}function NCt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function TCt(t){if(this[to][J2]=t.maxConcurrentStreams??this[to][J2],this[mb]===!0&&this[pb]===!0&&t.enableConnectProtocol===!1){let e=new Sd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][ro]=e,this[to][W0](e);return}this[pb]=t.enableConnectProtocol??this[pb],this[mb]=!0,this[to][Ic]()}function xCt(t){let e=t[AV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[to],o=this[to];if(n!=null){let a=new Sd(`HTTP/2: "PING" errored - type ${n.message}`);o[ro]=a,i[W0](a)}else i.emit("ping",s)}}function RCt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][ro]=t,this[to][W0](t)}function DCt(t,e,r){if(r===0){let n=new Sd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][ro]=n,this[to][W0](n)}}function kCt(){let t=new Cb("other side closed",ut.getSocketInfo(this[kr]));this.destroy(t),ut.destroy(this[kr],t)}function vCt(t){let e=this[ro]||new Cb(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[kr])),r=this[to];if(r[kr]=null,r[aV]=null,this.close(),this[ju]=null,ut.destroy(this[kr],e),r[rA]<r[Nd].length){let n=r[Nd][r[rA]];r[Nd][r[rA]++]=null,ut.errorRequest(r,n,e),r[oV]=r[rA]}Aa(r[Ib]===0),r.emit("disconnect",r[Eb],[r],e),r.emit("connectionError",r[Eb],[r],e),r[Ic]()}function _Ct(){let{[to]:t,[AV]:e}=this,{[kr]:r}=t,n=this[kr][ro]||this[ro]||new Cb("closed",ut.getSocketInfo(r));if(t[kr]=null,t[aV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Aa(t[hCt]===0);let s=t[Nd].splice(t[rA]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function FCt(){let t=this[ro]||new Cb("closed",ut.getSocketInfo(this)),e=this[ju][to];e[kr]=null,e[aV]=null,this[ju]!==null&&this[ju].destroy(t),e[oV]=e[rA],Aa(e[Ib]===0),e.emit("disconnect",e[Eb],[e],t),e[Ic]()}function MCt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ro]=t,this[to][W0](t)}function LCt(){ut.destroy(this,new Cb("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;xye.sendHeaders.publish({request:e,headers:v,socket:n[kr]})}let R=s==="GET"||s==="HEAD"||d===null;A?(h[yCt]="100-continue",f=n.request(h,{endStream:R,signal:c}),f[W2]=!0,f.once("continue",Y)):(f=n.request(h,{endStream:R,signal:c}),f[W2]=!0,Y()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",v=>{let{[rV]:P,...D}=v;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),nV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Nd][t[rA]++]=null,t[Ic]()):(E(new Sd("HTTP/2: stream half-closed (remote)")),t[Nd][t[rA]++]=null,t[oV]=t[rA],t[Ic]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(v){f.removeAllListeners("data"),E(v)}),f.once("frameError",(v,P)=>{f.removeAllListeners("data"),E(new Sd(`HTTP/2: "frameError" received - type ${v}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let v=new Sd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref(),E(v)}),f.once("trailers",v=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(v))}),!0;function Y(){!d||y===0?vye(E,f,null,t,e,t[kr],y,C):ut.isBuffer(d)?vye(E,f,d,t,e,t[kr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?_ye(E,f,d.stream(),t,e,t[kr],y,C):GCt(E,f,d,t,e,t[kr],y,C):ut.isStream(d)?HCt(E,t[kr],C,f,d,t,e,y):ut.isIterable(d)?_ye(E,f,d,t,e,t[kr],y,C):Aa(!1)}}function vye(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(Aa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[j2]=!0),s.onRequestSent(),n[Ic]()}catch(A){t(A)}}function HCt(t,e,r,n,s,i,o,a){Aa(a!==0||i[Ib]===0,"stream body cannot be pipelined");let A=uCt(s,n,u=>{u?(ut.destroy(A,u),t(u)):(ut.removeAllListeners(A),o.onRequestSent(),r||(e[j2]=!0),i[Ic]())});ut.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function GCt(t,e,r,n,s,i,o,a){Aa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new sV;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[j2]=!0),n[Ic]()}catch(A){t(A)}}async function _ye(t,e,r,n,s,i,o,a){Aa(o!==0||n[Ib]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Aa(A===null),i[ro]?d(i[ro]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ro])throw i[ro];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[j2]=!0),n[Ic]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Fye.exports=wCt});var kd=m((R0r,Vye)=>{"use strict";var Ku=b("node:assert"),Hye=b("node:net"),yb=b("node:http"),tg=et(),{ClientStats:qCt}=nY(),{channels:J0}=yd(),YCt=sIe(),VCt=jf(),{InvalidArgumentError:gr,InformationalError:WCt,ClientDestroyedError:JCt}=je(),zCt=Kf(),{kUrl:yc,kServerName:Dd,kClient:jCt,kBusy:cV,kConnect:KCt,kResuming:rg,kRunning:wb,kPending:Sb,kSize:Bb,kQueue:nA,kConnected:XCt,kConnecting:z0,kNeedDrain:xd,kKeepAliveDefaultTimeout:Lye,kHostHeader:$Ct,kPendingIdx:sA,kRunningIdx:Xu,kError:ZCt,kPipelining:K2,kKeepAliveTimeoutValue:eIt,kMaxHeadersSize:tIt,kKeepAliveMaxTimeout:rIt,kKeepAliveTimeoutThreshold:nIt,kHeadersTimeout:sIt,kBodyTimeout:iIt,kStrictContentLength:oIt,kConnector:bb,kMaxRequests:uV,kCounter:aIt,kClose:AIt,kDestroy:cIt,kDispatch:uIt,kLocalAddress:Qb,kMaxResponseSize:lIt,kOnError:dIt,kHTTPContext:nn,kMaxConcurrentStreams:hIt,kHTTP2InitialWindowSize:fIt,kHTTP2ConnectionWindowSize:gIt,kResume:Rd,kPingInterval:pIt}=Xt(),mIt=Nye(),EIt=Mye(),Td=Symbol("kClosedResolve"),CIt=yb&&yb.maxHeaderSize&&Number.isInteger(yb.maxHeaderSize)&&yb.maxHeaderSize>0?()=>yb.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},Uye=()=>{};function Gye(t){return t[K2]??t[nn]?.defaultPipelining??1}var lV=class extends VCt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:E,maxCachedSessions:C,connect:y,maxRequestsPerClient:R,localAddress:M,maxResponseSize:Y,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:ne,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns Line truncated
`,this[iIt]=a??3e5,this[sIt]=n??3e5,this[oIt]=E??!0,this[uV]=R,this[Td]=null,this[lIt]=Y>-1?Y:-1,this[nn]=null,this[hIt]=D??100,this[fIt]=ne??262144,this[gIt]=Ae??524288,this[pIt]=ge??6e4,this[nA]=[],this[Xu]=0,this[sA]=0,this[Rd]=De=>dV(this,De),this[dIt]=De=>qye(this,De)}get pipelining(){return this[K2]}set pipelining(e){this[K2]=e,this[Rd](!0)}get stats(){return new qCt(this)}get[Sb](){return this[nA].length-this[sA]}get[wb](){return this[sA]-this[Xu]}get[Bb](){return this[nA].length-this[Xu]}get[XCt](){return!!this[nn]&&!this[z0]&&!this[nn].destroyed}get[cV](){return!!(this[nn]?.busy(null)||this[Bb]>=(Gye(this)||1)||this[Sb]>0)}[KCt](e){Yye(this),this.once("connect",e)}[uIt](e,r){let n=new YCt(this[yc].origin,e,r);return this[nA].push(n),this[rg]||(tg.bodyLength(n.body)==null&&tg.isIterable(n.body)?(this[rg]=1,queueMicrotask(()=>dV(this))):this[Rd](!0)),this[rg]&&this[xd]!==2&&this[cV]&&(this[xd]=2),this[xd]<2}[AIt](){return new Promise(e=>{this[Bb]?this[Td]=e:e(null)})}[cIt](e){return new Promise(r=>{let n=this[nA].splice(this[sA]);for(let i=0;i<n.length;i++){let o=n[i];tg.errorRequest(this,o,e)}let s=()=>{this[Td]&&(this[Td](),this[Td]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Rd]()})}};function qye(t,e){if(t[wb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ku(t[sA]===t[Xu]);let r=t[nA].splice(t[Xu]);for(let n=0;n<r.length;n++){let s=r[n];tg.errorRequest(t,s,e)}Ku(t[Bb]===0)}}function Yye(t){Ku(!t[z0]),Ku(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");Ku(i!==-1);let o=r.substring(1,i);Ku(Hye.isIPv6(o)),r=o}t[z0]=!0,J0.beforeConnect.hasSubscribers&&J0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Dd],localAddress:t[Qb]},connector:t[bb]}),t[bb]({host:e,hostname:r,protocol:n,port:s,servername:t[Dd],localAddress:t[Qb]},(i,o)=>{if(i){Pye(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Rd]();return}if(t.destroyed){tg.destroy(o.on("error",Uye),new JCt),t[Rd]();return}Ku(o);try{t[nn]=o.alpnProtocol==="h2"?EIt(t,o):mIt(t,o)}catch(a){o.destroy().on("error",Uye),Pye(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Rd]();return}t[z0]=!1,o[aIt]=0,o[uV]=t[uV],o[jCt]=t,o[ZCt]=null,J0.connected.hasSubscribers&&J0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Dd],localAddress:t[Qb]},connector:t[bb],socket:o}),t.emit("connect",t[yc],[t]),t[Rd]()})}function Pye(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[z0]=!1,J0.connectError.hasSubscribers&&J0.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[Dd],localAddress:t[Qb]},connector:t[bb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ku(t[wb]===0);t[Sb]>0&&t[nA][t[sA]].servername===t[Dd];){let o=t[nA][t[sA]++];tg.errorRequest(t,o,e)}else qye(t,e);t.emit("connectionError",t[yc],[t],e)}}function Oye(t){t[xd]=0,t.emit("drain",t[yc],[t])}function dV(t,e){t[rg]!==2&&(t[rg]=2,IIt(t,e),t[rg]=0,t[Xu]>256&&(t[nA].splice(0,t[Xu]),t[sA]-=t[Xu],t[Xu]=0))}function IIt(t,e){for(;;){if(t.destroyed){Ku(t[Sb]===0);return}if(t[Td]&&!t[Bb]){t[Td](),t[Td]=null;return}if(t[nn]&&t[nn].resume(),t[cV])t[xd]=2;else if(t[xd]===2){e?(t[xd]=1,queueMicrotask(()=>Oye(t))):Oye(t);continue}if(t[Sb]===0||t[wb]>=(Gye(t)||1))return;let r=t[nA][t[sA]];if(r===null)return;if(t[yc].protocol==="https:"&&t[Dd]!==r.servername){if(t[wb]>0)return;t[Dd]=r.servername,t[nn]?.destroy(new WCt("servername changed"),()=>{t[nn]=null,dV(t)})}if(t[z0])return;if(!t[nn]){Yye(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[sA]++:t[nA].splice(t[sA],1)}}Vye.exports=lV});var hV=m((k0r,Wye)=>{"use strict";var X2=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Wye.exports=class{constructor(){this.head=this.tail=new X2}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new X2),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var $2=m((v0r,tBe)=>{"use strict";var{PoolStats:yIt}=nY(),BIt=jf(),bIt=hV(),{kConnected:fV,kSize:Jye,kRunning:zye,kPending:jye,kQueued:Nb,kBusy:QIt,kFree:wIt,kUrl:SIt,kClose:NIt,kDestroy:TIt,kDispatch:xIt}=Xt(),Yn=Symbol("clients"),Hs=Symbol("needDrain"),Tb=Symbol("queue"),gV=Symbol("closed resolve"),pV=Symbol("onDrain"),Kye=Symbol("onConnect"),Xye=Symbol("onDisconnect"),$ye=Symbol("onConnectionError"),mV=Symbol("get dispatcher"),Zye=Symbol("add client"),eBe=Symbol("remove client"),EV=class extends BIt{[Tb]=new bIt;[Nb]=0;[Yn]=[];[Hs]=!1;[pV](e,r,n){let s=this[Tb],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[aV])throw new tg;process.emitWarning(new tg)}e[Wr].timeout&&e[Wr].timeoutType===W0&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[wd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Sd]=!1,e&&(We(n[gs]<=1,"pipeline should only contain this request"),s(e))}};Gye.exports=ECt});var Xye=m((X0r,$ye)=>{"use strict";var Aa=b("node:assert"),{pipeline:xCt}=b("node:stream"),ut=et(),{RequestContentLengthMismatchError:gV,RequestAbortedError:RCt,SocketError:yb,InformationalError:Nd,InvalidArgumentError:DCt}=Ke(),{kUrl:Ib,kReset:tk,kClient:to,kRunning:Bb,kPending:kCt,kQueue:Td,kPendingIdx:mV,kRunningIdx:rA,kError:ro,kSocket:kr,kStrictContentLength:vCt,kOnError:J0,kMaxConcurrentStreams:Z2,kPingInterval:Yye,kHTTP2Session:Ku,kHTTP2InitialWindowSize:_Ct,kHTTP2ConnectionWindowSize:FCt,kResume:Ic,kSize:MCt,kHTTPContext:EV,kClosed:pV,kBodyTimeout:LCt,kEnableConnectProtocol:Eb,kRemoteSettings:Cb,kHTTP2Stream:X2,kHTTP2SessionState:CV}=$t(),{channels:Vye}=Bd(),aa=Symbol("open streams"),Wye,ek;try{ek=b("node:http2")}catch{ek={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:UCt,HTTP2_HEADER_METHOD:Jye,HTTP2_HEADER_PATH:zye,HTTP2_HEADER_SCHEME:dV,HTTP2_HEADER_CONTENT_LENGTH:PCt,HTTP2_HEADER_EXPECT:OCt,HTTP2_HEADER_STATUS:hV,HTTP2_HEADER_PROTOCOL:HCt,NGHTTP2_REFUSED_STREAM:GCt,NGHTTP2_CANCEL:qCt}}=ek;function fV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function YCt(t,e){t[kr]=e;let r=t[_Ct],n=t[FCt],s=ek.connect(t[Ib],{createConnection:()=>e,peerMaxConcurrentStreams:t[Z2],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[to]=t,s[kr]=e,s[CV]={ping:{interval:t[Yye]===0?null:setInterval(zCt,t[Yye],s).unref()}},s[Eb]=!1,s[Cb]=!1,n&&ut.addListener(s,"connect",WCt.bind(s,n)),ut.addListener(s,"error",jCt),ut.addListener(s,"frameError",KCt),ut.addListener(s,"end",$Ct),ut.addListener(s,"goaway",XCt),ut.addListener(s,"close",ZCt),ut.addListener(s,"remoteSettings",JCt),s.unref(),t[Ku]=s,e[Ku]=s,ut.addListener(e,"error",tIt),ut.addListener(e,"end",rIt),ut.addListener(e,"close",eIt),e[pV]=!1,e.on("close",nIt),{version:"h2",defaultPipelining:1/0,write(i){return iIt(t,i)},resume(){VCt(t)},destroy(i,o){e[pV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Bb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Cb]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Cb]===!1;return!1}}}function VCt(t){let e=t[kr];e?.destroyed===!1&&(t[MCt]===0||t[Z2]===0?(e.unref(),t[Ku].unref()):(e.ref(),t[Ku].ref()))}function WCt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function JCt(t){if(this[to][Z2]=t.maxConcurrentStreams??this[to][Z2],this[Cb]===!0&&this[Eb]===!0&&t.enableConnectProtocol===!1){let e=new Nd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][ro]=e,this[to][J0](e);return}this[Eb]=t.enableConnectProtocol??this[Eb],this[Cb]=!0,this[to][Ic]()}function zCt(t){let e=t[CV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[to],o=this[to];if(n!=null){let a=new Nd(`HTTP/2: "PING" errored - type ${n.message}`);o[ro]=a,i[J0](a)}else i.emit("ping",s)}}function jCt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][ro]=t,this[to][J0](t)}function KCt(t,e,r){if(r===0){let n=new Nd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][ro]=n,this[to][J0](n)}}function $Ct(){let t=new yb("other side closed",ut.getSocketInfo(this[kr]));this.destroy(t),ut.destroy(this[kr],t)}function XCt(t){let e=this[ro]||new yb(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[kr])),r=this[to];if(r[kr]=null,r[EV]=null,this.close(),this[Ku]=null,ut.destroy(this[kr],e),r[rA]<r[Td].length){let n=r[Td][r[rA]];r[Td][r[rA]++]=null,ut.errorRequest(r,n,e),r[mV]=r[rA]}Aa(r[Bb]===0),r.emit("disconnect",r[Ib],[r],e),r.emit("connectionError",r[Ib],[r],e),r[Ic]()}function ZCt(){let{[to]:t,[CV]:e}=this,{[kr]:r}=t,n=this[kr][ro]||this[ro]||new yb("closed",ut.getSocketInfo(r));if(t[kr]=null,t[EV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Aa(t[kCt]===0);let s=t[Td].splice(t[rA]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function eIt(){let t=this[ro]||new yb("closed",ut.getSocketInfo(this)),e=this[Ku][to];e[kr]=null,e[EV]=null,this[Ku]!==null&&this[Ku].destroy(t),e[mV]=e[rA],Aa(e[Bb]===0),e.emit("disconnect",e[Ib],[e],t),e[Ic]()}function tIt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ro]=t,this[to][J0](t)}function rIt(){ut.destroy(this,new yb("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;Vye.sendHeaders.publish({request:e,headers:v,socket:n[kr]})}let R=s==="GET"||s==="HEAD"||d===null;A?(h[OCt]="100-continue",f=n.request(h,{endStream:R,signal:c}),f[X2]=!0,f.once("continue",Y)):(f=n.request(h,{endStream:R,signal:c}),f[X2]=!0,Y()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",v=>{let{[hV]:P,...D}=v;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),fV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Td][t[rA]++]=null,t[Ic]()):(E(new Nd("HTTP/2: stream half-closed (remote)")),t[Td][t[rA]++]=null,t[mV]=t[rA],t[Ic]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(v){f.removeAllListeners("data"),E(v)}),f.once("frameError",(v,P)=>{f.removeAllListeners("data"),E(new Nd(`HTTP/2: "frameError" received - type ${v}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let v=new Nd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref(),E(v)}),f.once("trailers",v=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(v))}),!0;function Y(){!d||y===0?jye(E,f,null,t,e,t[kr],y,C):ut.isBuffer(d)?jye(E,f,d,t,e,t[kr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Kye(E,f,d.stream(),t,e,t[kr],y,C):aIt(E,f,d,t,e,t[kr],y,C):ut.isStream(d)?oIt(E,t[kr],C,f,d,t,e,y):ut.isIterable(d)?Kye(E,f,d,t,e,t[kr],y,C):Aa(!1)}}function jye(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(Aa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[tk]=!0),s.onRequestSent(),n[Ic]()}catch(A){t(A)}}function oIt(t,e,r,n,s,i,o,a){Aa(a!==0||i[Bb]===0,"stream body cannot be pipelined");let A=xCt(s,n,u=>{u?(ut.destroy(A,u),t(u)):(ut.removeAllListeners(A),o.onRequestSent(),r||(e[tk]=!0),i[Ic]())});ut.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function aIt(t,e,r,n,s,i,o,a){Aa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new gV;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[tk]=!0),n[Ic]()}catch(A){t(A)}}async function Kye(t,e,r,n,s,i,o,a){Aa(o!==0||n[Bb]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Aa(A===null),i[ro]?d(i[ro]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ro])throw i[ro];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[tk]=!0),n[Ic]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}$ye.exports=YCt});var vd=m((Z0r,aBe)=>{"use strict";var $u=b("node:assert"),nBe=b("node:net"),bb=b("node:http"),rg=et(),{ClientStats:AIt}=fY(),{channels:z0}=Bd(),cIt=IIe(),uIt=Kf(),{InvalidArgumentError:pr,InformationalError:lIt,ClientDestroyedError:dIt}=Ke(),hIt=$f(),{kUrl:yc,kServerName:kd,kClient:fIt,kBusy:IV,kConnect:gIt,kResuming:ng,kRunning:Nb,kPending:Tb,kSize:Qb,kQueue:nA,kConnected:pIt,kConnecting:j0,kNeedDrain:Rd,kKeepAliveDefaultTimeout:Zye,kHostHeader:mIt,kPendingIdx:sA,kRunningIdx:Xu,kError:EIt,kPipelining:rk,kKeepAliveTimeoutValue:CIt,kMaxHeadersSize:IIt,kKeepAliveMaxTimeout:yIt,kKeepAliveTimeoutThreshold:BIt,kHeadersTimeout:bIt,kBodyTimeout:QIt,kStrictContentLength:wIt,kConnector:wb,kMaxRequests:yV,kCounter:SIt,kClose:NIt,kDestroy:TIt,kDispatch:xIt,kLocalAddress:Sb,kMaxResponseSize:RIt,kOnError:DIt,kHTTPContext:nn,kMaxConcurrentStreams:kIt,kHTTP2InitialWindowSize:vIt,kHTTP2ConnectionWindowSize:_It,kResume:Dd,kPingInterval:FIt}=$t(),MIt=qye(),LIt=Xye(),xd=Symbol("kClosedResolve"),UIt=bb&&bb.maxHeaderSize&&Number.isInteger(bb.maxHeaderSize)&&bb.maxHeaderSize>0?()=>bb.maxHeaderSize:()=>{throw new pr("http module not available or http.maxHeaderSize invalid")},eBe=()=>{};function sBe(t){return t[rk]??t[nn]?.defaultPipelining??1}var BV=class extends uIt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:E,maxCachedSessions:C,connect:y,maxRequestsPerClient:R,localAddress:M,maxResponseSize:Y,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:ne,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new pr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new pr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new pr("uns Line truncated
`,this[QIt]=a??3e5,this[bIt]=n??3e5,this[wIt]=E??!0,this[yV]=R,this[xd]=null,this[RIt]=Y>-1?Y:-1,this[nn]=null,this[kIt]=D??100,this[vIt]=ne??262144,this[_It]=Ae??524288,this[FIt]=ge??6e4,this[nA]=[],this[Xu]=0,this[sA]=0,this[Dd]=De=>bV(this,De),this[DIt]=De=>iBe(this,De)}get pipelining(){return this[rk]}set pipelining(e){this[rk]=e,this[Dd](!0)}get stats(){return new AIt(this)}get[Tb](){return this[nA].length-this[sA]}get[Nb](){return this[sA]-this[Xu]}get[Qb](){return this[nA].length-this[Xu]}get[pIt](){return!!this[nn]&&!this[j0]&&!this[nn].destroyed}get[IV](){return!!(this[nn]?.busy(null)||this[Qb]>=(sBe(this)||1)||this[Tb]>0)}[gIt](e){oBe(this),this.once("connect",e)}[xIt](e,r){let n=new cIt(this[yc].origin,e,r);return this[nA].push(n),this[ng]||(rg.bodyLength(n.body)==null&&rg.isIterable(n.body)?(this[ng]=1,queueMicrotask(()=>bV(this))):this[Dd](!0)),this[ng]&&this[Rd]!==2&&this[IV]&&(this[Rd]=2),this[Rd]<2}[NIt](){return new Promise(e=>{this[Qb]?this[xd]=e:e(null)})}[TIt](e){return new Promise(r=>{let n=this[nA].splice(this[sA]);for(let i=0;i<n.length;i++){let o=n[i];rg.errorRequest(this,o,e)}let s=()=>{this[xd]&&(this[xd](),this[xd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Dd]()})}};function iBe(t,e){if(t[Nb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){$u(t[sA]===t[Xu]);let r=t[nA].splice(t[Xu]);for(let n=0;n<r.length;n++){let s=r[n];rg.errorRequest(t,s,e)}$u(t[Qb]===0)}}function oBe(t){$u(!t[j0]),$u(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");$u(i!==-1);let o=r.substring(1,i);$u(nBe.isIPv6(o)),r=o}t[j0]=!0,z0.beforeConnect.hasSubscribers&&z0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[kd],localAddress:t[Sb]},connector:t[wb]}),t[wb]({host:e,hostname:r,protocol:n,port:s,servername:t[kd],localAddress:t[Sb]},(i,o)=>{if(i){tBe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Dd]();return}if(t.destroyed){rg.destroy(o.on("error",eBe),new dIt),t[Dd]();return}$u(o);try{t[nn]=o.alpnProtocol==="h2"?LIt(t,o):MIt(t,o)}catch(a){o.destroy().on("error",eBe),tBe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Dd]();return}t[j0]=!1,o[SIt]=0,o[yV]=t[yV],o[fIt]=t,o[EIt]=null,z0.connected.hasSubscribers&&z0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[kd],localAddress:t[Sb]},connector:t[wb],socket:o}),t.emit("connect",t[yc],[t]),t[Dd]()})}function tBe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[j0]=!1,z0.connectError.hasSubscribers&&z0.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[kd],localAddress:t[Sb]},connector:t[wb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for($u(t[Nb]===0);t[Tb]>0&&t[nA][t[sA]].servername===t[kd];){let o=t[nA][t[sA]++];rg.errorRequest(t,o,e)}else iBe(t,e);t.emit("connectionError",t[yc],[t],e)}}function rBe(t){t[Rd]=0,t.emit("drain",t[yc],[t])}function bV(t,e){t[ng]!==2&&(t[ng]=2,PIt(t,e),t[ng]=0,t[Xu]>256&&(t[nA].splice(0,t[Xu]),t[sA]-=t[Xu],t[Xu]=0))}function PIt(t,e){for(;;){if(t.destroyed){$u(t[Tb]===0);return}if(t[xd]&&!t[Qb]){t[xd](),t[xd]=null;return}if(t[nn]&&t[nn].resume(),t[IV])t[Rd]=2;else if(t[Rd]===2){e?(t[Rd]=1,queueMicrotask(()=>rBe(t))):rBe(t);continue}if(t[Tb]===0||t[Nb]>=(sBe(t)||1))return;let r=t[nA][t[sA]];if(r===null)return;if(t[yc].protocol==="https:"&&t[kd]!==r.servername){if(t[Nb]>0)return;t[kd]=r.servername,t[nn]?.destroy(new lIt("servername changed"),()=>{t[nn]=null,bV(t)})}if(t[j0])return;if(!t[nn]){oBe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[sA]++:t[nA].splice(t[sA],1)}}aBe.exports=BV});var QV=m((tEr,ABe)=>{"use strict";var nk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};ABe.exports=class{constructor(){this.head=this.tail=new nk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new nk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var sk=m((rEr,mBe)=>{"use strict";var{PoolStats:OIt}=fY(),HIt=Kf(),GIt=QV(),{kConnected:wV,kSize:cBe,kRunning:uBe,kPending:lBe,kQueued:xb,kBusy:qIt,kFree:YIt,kUrl:VIt,kClose:WIt,kDestroy:JIt,kDispatch:zIt}=$t(),Yn=Symbol("clients"),Hs=Symbol("needDrain"),Rb=Symbol("queue"),SV=Symbol("closed resolve"),NV=Symbol("onDrain"),dBe=Symbol("onConnect"),hBe=Symbol("onDisconnect"),fBe=Symbol("onConnectionError"),TV=Symbol("get dispatcher"),gBe=Symbol("add client"),pBe=Symbol("remove client"),xV=class extends HIt{[Rb]=new GIt;[xb]=0;[Yn]=[];[Hs]=!1;[NV](e,r,n){let s=this[Rb],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};bQe.exports=v7});var F7=m((uEr,NQe)=>{"use strict";var{InvalidArgumentError:Sbt}=je(),{runtimeFeatures:Nbt}=Ju();function Tbt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var QQe=Nbt.has("crypto")?b("node:crypto"):null,xbt=QQe?.hash?t=>QQe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function SQe(t){return Array.isArray(t)&&(t.length&1)===0}function Rbt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Dbt(t){let e={};if(!t)return e;if(SQe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var wQe=["record","playback","update"];function kbt(t){if(!wQe.includes(t))throw new Sbt(`Invalid snapshot mode: ${t}. Must be one of: ${wQe.join(", ")}`)}NQe.exports={createHeaderFilters:Tbt,hashId:xbt,isUndiciHeaders:SQe,normalizeHeaders:Dbt,isUrlExcludedFactory:Rbt,validateSnapshotMode:kbt}});var MQe=m((lEr,FQe)=>{"use strict";var{writeFile:vbt,readFile:_bt,mkdir:Fbt}=b("node:fs/promises"),{dirname:Mbt,resolve:TQe}=b("node:path"),{setTimeout:Lbt,clearTimeout:xQe}=b("node:timers"),{InvalidArgumentError:RQe,UndiciError:Ubt}=je(),{hashId:Pbt,isUrlExcludedFactory:Obt,normalizeHeaders:DQe,createHeaderFilters:kQe}=F7();function Gb(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||DQe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:vQe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function vQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function _Qe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function qb(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Pbt(r)}var M7=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=kQe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Obt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Gb(e,this.#a,this.matchOptions),s=qb(n),i=DQe(r.headers),o={statusCode:r.statusCode,headers:_Qe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Gb(e,this.#a,this.matchOptions),n=qb(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new RQe("Snapshot path is required");try{let n=await _bt(TQe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new Ubt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new RQe("Snapshot path is required");let n=TQe(r);await Fbt(Mbt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await vbt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};PQe.exports=Y7});var W7=m((vEr,qQe)=>{"use strict";var{InvalidArgumentError:Vbt}=Ke(),{runtimeFeatures:Wbt}=zu();function Jbt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var OQe=Wbt.has("crypto")?b("node:crypto"):null,zbt=OQe?.hash?t=>OQe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function GQe(t){return Array.isArray(t)&&(t.length&1)===0}function jbt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Kbt(t){let e={};if(!t)return e;if(GQe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var HQe=["record","playback","update"];function $bt(t){if(!HQe.includes(t))throw new Vbt(`Invalid snapshot mode: ${t}. Must be one of: ${HQe.join(", ")}`)}qQe.exports={createHeaderFilters:Jbt,hashId:zbt,isUndiciHeaders:GQe,normalizeHeaders:Kbt,isUrlExcludedFactory:jbt,validateSnapshotMode:$bt}});var XQe=m((_Er,$Qe)=>{"use strict";var{writeFile:Xbt,readFile:Zbt,mkdir:eQt}=b("node:fs/promises"),{dirname:tQt,resolve:YQe}=b("node:path"),{setTimeout:rQt,clearTimeout:VQe}=b("node:timers"),{InvalidArgumentError:WQe,UndiciError:nQt}=Ke(),{hashId:sQt,isUrlExcludedFactory:iQt,normalizeHeaders:JQe,createHeaderFilters:zQe}=W7();function Yb(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||JQe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:jQe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function jQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function KQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function Vb(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return sQt(r)}var J7=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=zQe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=iQt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Yb(e,this.#a,this.matchOptions),s=Vb(n),i=JQe(r.headers),o={statusCode:r.statusCode,headers:KQe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Yb(e,this.#a,this.matchOptions),n=Vb(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new WQe("Snapshot path is required");try{let n=await Zbt(YQe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new nQt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new WQe("Snapshot path is required");let n=YQe(r);await eQt(tQt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Xbt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
@@ -191,108 +191,93 @@ ${e.format(r)}`.trim())}};bQe.exports=v7});var F7=m((uEr,NQe)=>{"use strict";var
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){sW(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){sW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){sW(e),Swt(r);let n=0,s=[],i=this;return new wwt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Nwt(s[l],u[l])){c=!1;break}}if(c)return A}}};function Nwt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var pg=m((vEr,qwe)=>{"use strict";var{kConstruct:Twt}=Xt(),{kEnumerableProperty:cE}=et(),{iteratorMixin:xwt,isValidHeaderName:Jb,isValidHeaderValue:Uwe}=eo(),{webidl:wt}=Xn(),oW=b("node:assert"),xk=b("node:util");function Lwe(t){return t===10||t===13||t===9||t===32}function Pwe(t){let e=0,r=t.length;for(;r>e&&Lwe(t.charCodeAt(r-1));)--r;for(;r>e&&Lwe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Owe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});aW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)aW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function aW(t,e,r){if(r=Pwe(r),Jb(e)){if(!Uwe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Gwe(t)==="immutable")throw new TypeError("immutable");return Dk(t).append(e,r,!1)}function Rwt(t){let e=Dk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function Hwe(t,e){return t[0]<e[0]?-1:1}var Rk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":KSe(i)&&(r[s]=i);break;case"id":XSe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&KSe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&XSe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};$Se.exports={EventSourceStream:YW}});var aNe=m((sCr,oNe)=>{"use strict";var{pipeline:JTt}=b("node:stream"),{fetching:zTt}=$b(),{makeRequest:jTt}=lE(),{webidl:qs}=Xn(),{EventSourceStream:KTt}=ZSe(),{parseMIMEType:XTt}=na(),{createFastMessageEvent:$Tt}=rv(),{isNetworkError:eNe}=jb(),{kEnumerableProperty:Qg}=et(),{environmentSettingsObject:tNe}=eo(),rNe=!1,nNe=3e3,iQ=0,sNe=1,oQ=2,ZTt="anonymous",ext="use-credentials",yE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=iQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),rNe||(rNe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=tNe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=ZTt;r.withCredentials===!0&&(o=ext,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=tNe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=jTt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===oQ)return;this.#r=iQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!eNe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(eNe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?XTt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=sNe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new KTt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent($Tt(A.type,A.options))}});JTt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=zTt(e)}#c(){this.#r!==oQ&&(this.#r=iQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===iQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==oQ&&(this.#r=oQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},iNe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:iQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:sNe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:oQ,writable:!1}};Object.defineProperties(yE,iNe);Object.defineProperties(yE.prototype,iNe);Object.defineProperties(yE.prototype,{close:Qg,onerror:Qg,onmessage:Qg,onopen:Qg,readyState:Qg,url:Qg,withCredentials:Qg});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>nNe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);oNe.exports={EventSource:yE,defaultReconnectionTime:nNe}});var hNe=m((iCr,pe)=>{"use strict";var txt=kd(),cNe=sb(),rxt=ng(),nxt=cBe(),sxt=hBe(),ixt=og(),oxt=UV(),axt=_V(),Axt=KBe(),cxt=rbe(),uxt=ibe(),uNe=je(),gv=et(),{InvalidArgumentError:fv}=uNe,BE=Obe(),lxt=Kf(),dxt=B7(),{MockCallHistory:hx Line truncated
`)}close(){this.#n.close()}get(e){gW(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){gW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){gW(e),Vwt(r);let n=0,s=[],i=this;return new Ywt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Wwt(s[l],u[l])){c=!1;break}}if(c)return A}}};function Wwt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var mg=m((rCr,i1e)=>{"use strict";var{kConstruct:Jwt}=$t(),{kEnumerableProperty:uE}=et(),{iteratorMixin:zwt,isValidHeaderName:jb,isValidHeaderValue:e1e}=eo(),{webidl:wt}=$n(),mW=b("node:assert"),Fk=b("node:util");function Zwe(t){return t===10||t===13||t===9||t===32}function t1e(t){let e=0,r=t.length;for(;r>e&&Zwe(t.charCodeAt(r-1));)--r;for(;r>e&&Zwe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function r1e(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});EW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)EW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function EW(t,e,r){if(r=t1e(r),jb(e)){if(!e1e(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(s1e(t)==="immutable")throw new TypeError("immutable");return Lk(t).append(e,r,!1)}function jwt(t){let e=Lk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function n1e(t,e){return t[0]<e[0]?-1:1}var Mk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":dNe(i)&&(r[s]=i);break;case"id":hNe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&dNe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&hNe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};fNe.exports={EventSourceStream:tJ}});var bNe=m((NCr,BNe)=>{"use strict";var{pipeline:dxt}=b("node:stream"),{fetching:hxt}=eQ(),{makeRequest:fxt}=dE(),{webidl:qs}=$n(),{EventSourceStream:gxt}=gNe(),{parseMIMEType:pxt}=na(),{createFastMessageEvent:mxt}=Av(),{isNetworkError:pNe}=$b(),{kEnumerableProperty:wg}=et(),{environmentSettingsObject:mNe}=eo(),ENe=!1,CNe=3e3,aQ=0,INe=1,AQ=2,Ext="anonymous",Cxt="use-credentials",BE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=aQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),ENe||(ENe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=mNe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Ext;r.withCredentials===!0&&(o=Cxt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=mNe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=fxt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===AQ)return;this.#r=aQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!pNe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(pNe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?pxt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=INe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new gxt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(mxt(A.type,A.options))}});dxt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=hxt(e)}#c(){this.#r!==AQ&&(this.#r=aQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===aQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==AQ&&(this.#r=AQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},yNe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:aQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:INe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:AQ,writable:!1}};Object.defineProperties(BE,yNe);Object.defineProperties(BE.prototype,yNe);Object.defineProperties(BE.prototype,{close:wg,onerror:wg,onmessage:wg,onopen:wg,readyState:wg,url:wg,withCredentials:wg});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>CNe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);BNe.exports={EventSource:BE,defaultReconnectionTime:CNe}});var xNe=m((TCr,pe)=>{"use strict";var Ixt=vd(),wNe=ob(),yxt=sg(),Bxt=wBe(),bxt=xBe(),Qxt=ag(),wxt=jV(),Sxt=VV(),Nxt=dbe(),Txt=Ebe(),xxt=ybe(),SNe=Ke(),yv=et(),{InvalidArgumentError:Iv}=SNe,bE=rQe(),Rxt=$f(),Dxt=v7(),{MockCallHistory:kx Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Qxt(e,r).catch(n=>{throw ANe?dNe(n,ANe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=pg().Headers;pe.exports.Response=jb().Response;pe.exports.Request=lE().Request;pe.exports.FormData=U2().FormData;var{setGlobalOrigin:wxt,getGlobalOrigin:Sxt}=bY();pe.exports.setGlobalOrigin=wxt;pe.exports.getGlobalOrigin=Sxt;var{CacheStorage:Nxt}=W1e(),{kConstruct:Txt}=Xt();pe.exports.caches=new Nxt(Txt);var{deleteCookie:xxt,getCookies:Rxt,getSetCookies:Dxt,setCookie:kxt,parseCookie:vxt}=iSe();pe.exports.deleteCookie=xxt;pe.exports.getCookies=Rxt;pe.exports.getSetCookies=Dxt;pe.exports.setCookie=kxt;pe.exports.parseCookie=vxt;var{parseMIMEType:_xt,serializeAMimeType:Fxt}=na();pe.exports.parseMIMEType=_xt;pe.exports.serializeAMimeType=Fxt;var{CloseEvent:Mxt,ErrorEvent:Lxt,MessageEvent:Uxt}=rv(),{WebSocket:Pxt,ping:Oxt}=PSe();pe.exports.WebSocket=Pxt;pe.exports.CloseEvent=Mxt;pe.exports.ErrorEvent=Lxt;pe.exports.MessageEvent=Uxt;pe.exports.ping=Oxt;pe.exports.WebSocketStream=JSe().WebSocketStream;pe.exports.WebSocketError=PW().WebSocketError;pe.exports.request=aQ(BE.request);pe.exports.stream=aQ(BE.stream);pe.exports.pipeline=aQ(BE.pipeline);pe.exports.connect=aQ(BE.connect);pe.exports.upgrade=aQ(BE.upgrade);pe.exports.MockClient=dxt;pe.exports.MockCallHistory=hxt;pe.exports.MockCallHistoryLog=fxt;pe.exports.MockPool=pxt;pe.exports.MockAgent=gxt;pe.exports.SnapshotAgent=mxt;pe.exports.mockErrors=Ext;var{EventSource:Hxt}=aNe();pe.exports.EventSource=Hxt;function Gxt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=Gxt});var AQ=m(Vd=>{"use strict";Vd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Vd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Vd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Vd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Vd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Vd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Vd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var gNe=m((ACr,fNe)=>{"use strict";var{asciiLowercase:pv,solelyContainsHTTPTokenCodePoints:qxt,soleyContainsHTTPQuotedStringTokenCodePoints:Yxt}=AQ();fNe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=pv(String(e)),this._map.get(e)}has(e){return e=pv(String(e)),this._map.has(e)}set(e,r){if(e=pv(String(e)),r=String(r),!qxt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Yxt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=pv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var ENe=m((cCr,mNe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Vxt,removeTrailingHTTPWhitespace:pNe,isHTTPWhitespaceChar:Wxt,solelyContainsHTTPTokenCodePoints:VW,soleyContainsHTTPQuotedStringTokenCodePoints:Jxt,asciiLowercase:WW,collectAnHTTPQuotedString:zxt}=AQ();mNe.exports=t=>{t=Vxt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!VW(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=pNe(n),n.length===0||!VW(n))return null;let s={type:WW(r),subtype:WW(n),parameters:new Map};for(;e<t.length;){for(++e;Wxt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=WW(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=zxt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=pNe(o),o==="")continue}i.length>0&&VW(i)&&Jxt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var INe=m((uCr,CNe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:jxt}=AQ();CNe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!jxt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var QNe=m((dCr,bNe)=>{"use strict";var Kxt=gNe(),Xxt=ENe(),$xt=INe(),{asciiLowercase:yNe,solelyContainsHTTPTokenCodePoints:BNe}=AQ();bNe.exports=class{constructor(e){e=String(e);let r=Xxt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Kxt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=yNe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!BNe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=yNe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!BNe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return $xt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var GNe=m(bn=>{"use strict";var ZW=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),yRt=ZW(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i(await(0,r.stat)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i((0,e.statSync)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,A)=>a.isFile()&&o(a,A),o=(a,A)=>{let c=A.uid??process.getuid?.(),u=A.groups??process.getgroups?.()Line truncated
%s`,v,v,f,s);let P=f.type==="*"?zJ:f.type==="?"?XJ:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+v}R(),o&&(s+="\\\\");let M=TDt[s.charAt(0)];for(let v=A.length-1;v>-1;v--){let P=A[v],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+ee,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=ee;for(let it=0;it<ge;it++)De=De.replace(/\)[+*?]?/,"");ee=De;let Ke=ee===""&&r!==jJ?"(?:$|\\/)":"";s=D+z+ee+Ke+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===jJ)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return RDt(e);let Y=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?zJ:r.dot?SDt:NDt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?kDt(a):a===Ys?Ys:a._src).reduce((a,A)=>(a[a.length-1]===Ys&&A===Ys||a.push(A),a),[]),o.forEach((a,A)=>{a!==Ys||o[A-1]===Ys||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=Ys))}),o.filter(a=>a!==Ys).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;KJ.sep!=="/"&&(e=e.split(KJ.sep).join("/")),e=e.split(lxe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return lo.defaults(e).Minimatch}};lo.Minimatch=TE});var Cxe=m((uyr,Exe)=>{Exe.exports=mxe;var ez=b("fs"),{EventEmitter:_Dt}=b("events"),{Minimatch:ZJ}=fxe(),{resolve:FDt}=b("path");function MDt(t,e){return new Promise((r,n)=>{ez.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function gxe(t,e){return new Promise((r,n)=>{(e?ez.stat:ez.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?gxe(t,!1):null):r(null):r(o)})})}async function*pxe(t,e,r,n,s,i){let o=await MDt(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await gxe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*pxe(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*LDt(t,e,r,n){yield*pxe("",t,e,r,n,!0)}function UDt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Dv=class extends _Dt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=UDt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new ZJ(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new ZJ(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new ZJ(i,{dot:!0}))}this.iterator=LDt(FDt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive Line truncated
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function TC(Q){let B=NC(Q.toString()),w=B.match(PF);if(w||(w=B.match(OF)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return qxt(e,r).catch(n=>{throw QNe?TNe(n,QNe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=mg().Headers;pe.exports.Response=$b().Response;pe.exports.Request=dE().Request;pe.exports.FormData=Y2().FormData;var{setGlobalOrigin:Yxt,getGlobalOrigin:Vxt}=_Y();pe.exports.setGlobalOrigin=Yxt;pe.exports.getGlobalOrigin=Vxt;var{CacheStorage:Wxt}=ASe(),{kConstruct:Jxt}=$t();pe.exports.caches=new Wxt(Jxt);var{deleteCookie:zxt,getCookies:jxt,getSetCookies:Kxt,setCookie:$xt,parseCookie:Xxt}=ySe();pe.exports.deleteCookie=zxt;pe.exports.getCookies=jxt;pe.exports.getSetCookies=Kxt;pe.exports.setCookie=$xt;pe.exports.parseCookie=Xxt;var{parseMIMEType:Zxt,serializeAMimeType:eRt}=na();pe.exports.parseMIMEType=Zxt;pe.exports.serializeAMimeType=eRt;var{CloseEvent:tRt,ErrorEvent:rRt,MessageEvent:nRt}=Av(),{WebSocket:sRt,ping:iRt}=tNe();pe.exports.WebSocket=sRt;pe.exports.CloseEvent=tRt;pe.exports.ErrorEvent=rRt;pe.exports.MessageEvent=nRt;pe.exports.ping=iRt;pe.exports.WebSocketStream=cNe().WebSocketStream;pe.exports.WebSocketError=KW().WebSocketError;pe.exports.request=cQ(bE.request);pe.exports.stream=cQ(bE.stream);pe.exports.pipeline=cQ(bE.pipeline);pe.exports.connect=cQ(bE.connect);pe.exports.upgrade=cQ(bE.upgrade);pe.exports.MockClient=Dxt;pe.exports.MockCallHistory=kxt;pe.exports.MockCallHistoryLog=vxt;pe.exports.MockPool=Fxt;pe.exports.MockAgent=_xt;pe.exports.SnapshotAgent=Mxt;pe.exports.mockErrors=Lxt;var{EventSource:oRt}=bNe();pe.exports.EventSource=oRt;function aRt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=aRt});var uQ=m(Wd=>{"use strict";Wd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Wd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Wd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Wd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Wd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Wd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Wd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var DNe=m((DCr,RNe)=>{"use strict";var{asciiLowercase:Bv,solelyContainsHTTPTokenCodePoints:ARt,soleyContainsHTTPQuotedStringTokenCodePoints:cRt}=uQ();RNe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Bv(String(e)),this._map.get(e)}has(e){return e=Bv(String(e)),this._map.has(e)}set(e,r){if(e=Bv(String(e)),r=String(r),!ARt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!cRt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Bv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var _Ne=m((kCr,vNe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:uRt,removeTrailingHTTPWhitespace:kNe,isHTTPWhitespaceChar:lRt,solelyContainsHTTPTokenCodePoints:rJ,soleyContainsHTTPQuotedStringTokenCodePoints:dRt,asciiLowercase:nJ,collectAnHTTPQuotedString:hRt}=uQ();vNe.exports=t=>{t=uRt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!rJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=kNe(n),n.length===0||!rJ(n))return null;let s={type:nJ(r),subtype:nJ(n),parameters:new Map};for(;e<t.length;){for(++e;lRt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=nJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=hRt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=kNe(o),o==="")continue}i.length>0&&rJ(i)&&dRt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var MNe=m((vCr,FNe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:fRt}=uQ();FNe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!fRt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var ONe=m((FCr,PNe)=>{"use strict";var gRt=DNe(),pRt=_Ne(),mRt=MNe(),{asciiLowercase:LNe,solelyContainsHTTPTokenCodePoints:UNe}=uQ();PNe.exports=class{constructor(e){e=String(e);let r=pRt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new gRt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=LNe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!UNe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=LNe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!UNe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return mRt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var sTe=m(bn=>{"use strict";var uJ=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ORt=uJ(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i(await(0,r.stat)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i((0,e.statSync)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,A)=>a.isFile()&&o(a,A),o=(a,A)=>{let c=A.uid??process.getuid?.(),u=A.groups??process.getgroups?.()Line truncated
%s`,v,v,f,s);let P=f.type==="*"?iz:f.type==="?"?Az:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+v}R(),o&&(s+="\\\\");let M=JDt[s.charAt(0)];for(let v=A.length-1;v>-1;v--){let P=A[v],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+ee,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=ee;for(let it=0;it<ge;it++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==oz?"(?:$|\\/)":"";s=D+z+ee+$e+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===oz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return jDt(e);let Y=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?iz:r.dot?VDt:WDt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?$Dt(a):a===Ys?Ys:a._src).reduce((a,A)=>(a[a.length-1]===Ys&&A===Ys||a.push(A),a),[]),o.forEach((a,A)=>{a!==Ys||o[A-1]===Ys||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=Ys))}),o.filter(a=>a!==Ys).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;az.sep!=="/"&&(e=e.split(az.sep).join("/")),e=e.split(Nxe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return lo.defaults(e).Minimatch}};lo.Minimatch=xE});var Fxe=m((vyr,_xe)=>{_xe.exports=vxe;var lz=b("fs"),{EventEmitter:ZDt}=b("events"),{Minimatch:uz}=Rxe(),{resolve:e2t}=b("path");function t2t(t,e){return new Promise((r,n)=>{lz.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Dxe(t,e){return new Promise((r,n)=>{(e?lz.stat:lz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Dxe(t,!1):null):r(null):r(o)})})}async function*kxe(t,e,r,n,s,i){let o=await t2t(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Dxe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*kxe(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*r2t(t,e,r,n){yield*kxe("",t,e,r,n,!0)}function n2t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Lv=class extends ZDt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=n2t(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new uz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new uz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new uz(i,{dot:!0}))}this.iterator=r2t(e2t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive Line truncated
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function xC(Q){let B=TC(Q.toString()),w=B.match(VF);if(w||(w=B.match(WF)),!w)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(vw).map(H=>H.replace(_w,"").trim())}function xC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],V,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))V=[...H],H=V.pop(),w[F]=V.concat(V.length>0?te:H);else if(j)w[F]=H;else{if(V=TC(H),H.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(te)}function te(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(H)(...Ft)}}),SC(w,B)}class RC{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):DC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):DC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function DC(Q,B){Q.length=1,Q.head=Q.tail=B}function cp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,Tn;function Co(Ih,...UC){if(Ih)return Pe?Tn(Ih):Ir();if(UC.length<=1)return Ir(UC[0]);Ir(UC)}var hp=Mt._createTaskItem(Ue,Pe?Co:Nt||Co);if(be?Mt._tasks.unshift(hp):Mt._tasks.push(hp),Ft||(Ft=!0,c(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Ih,UC)=>{Ir=Ih,Tn=UC})}function Eo(Ue){return function(be,...Pe){H-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var Tn=Ue[Nt],Co=V.indexOf(Tn);Co===0?V.shift():Co>0&&V.splice(Co,1),Tn.callback(be,...Pe),be!=null&&Bt("error",be,Tn.data)}H<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function dp(Ue){return Ue.length===0&&Mt.idle()?(c(()=>Bt("drain")),!0):!1}let Ch=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(Ir,Tn)=>{if(Ir)return Nt(Ir);Pe(Tn)})});Se(Ue),j(Ue,be)};var LC=!1,Mt={_tasks:new RC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!LC){for(LC=!0;!Mt.paused&&H<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}H+=1,Mt._tasks.length===0&&Bt("empty"),H===Mt.concurrency&&Bt("saturated");var Tn=ne(Eo(Ue));F(be,Tn)}LC=!1}},length(){return Mt._tasks.length},running(){return H},workersList(){return V},idle(){return Mt._tasks.length+H===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,c(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Ch("saturated")},unsaturated:{writable:!1,value:Ch("unsaturated")},empty:{writable:!1,value:Ch("empty")},drain:{writable:!1,value:Ch("drain")},error:{writable:!1,value:Ch("error")}}),Mt}function kC(Q,B){return cp(Q,1,B)}function up(Q,B,w){return cp(Q,B,w)}function mo(Q,B,w,F){F=Y(F);var H=I(w);return Xs(Q,(V,J,j)=>{H(B,V,(te,Se)=>{B=Se,j(te)})},V=>F(V,B))}var Ia=E(mo,4);function lp(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=eu(),Ia(B,w,(V,J,j)=>{J.apply(F,V.concat((te,...Se)=>{j(te,Se)}))},(V,J)=>H(V,...J)),H[Zc]}}function Fw(...Q){return lp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=E(we,4);function N(Q,B,w,F){var H=I(w);return O(Q,B,(V,J)=>{H(V,(j,...te)=>j?J(j):J(j,te))},(V,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(V,j)})}var G=E(N,4);function K(Q,B,w){return G(Q,1/0,B,w)}var X=E(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[Zn]||(xxe=global[Zn]||[],Dxe(vr,xxe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||Rxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Mv,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),Rxe()}return Object.defineProperty(e,Mv,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Dg(vr[Zn]),b("assert").equal(vr[Zn].length,0)}));var xxe;global[Zn]||Dxe(global,vr[Zn]);sz.exports=rz(JDt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(sz.exports=rz(vr),vr.__patched=!0);function rz(t){VDt(t),t.gracefulify=rz,t.createReadStream=M,t.createWriteStream=Y;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),ne(D,z,ee);function ne(Ae,ge,De,Ke){return e(Ae,ge,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?xE([ne,[Ae,ge,De],it,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,Ke,it,Wt){return n(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,Ke,it,Wt){return i(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=0),Ae(D,z,ee,ne);function Ae(ge,De,Ke,it,Wt){return a(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var ne=u.test(process.version)?function(De,Ke,it,Wt){return c(De,Ae(De,Ke,it,Wt))}:function(De,Ke,it,Wt){return c(De,Ke,Ae(De,Ke,it,Wt))};return ne(D,z,ee);function Ae(ge,De,Ke,it){return function(Wt,vt){Wt&&(Wt.code==="EMFILE"||Wt.code==="ENFILE")?xE([ne,[ge,De,Ke],Wt,it||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Wt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=WDt(t);E=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(E.prototype=Object.create(h.prototype),E.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(D){E=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=E;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function E(D,z){return this instanceof E?(h.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function R(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function Y(D,z){return new t.WriteStream(D,z)}var v=t.open;t.open=P;function P(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,Ke,it,Wt){return v(ge,De,Ke,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return t}function xE(t){Dg("ENQUEUE",t[0].name,t[1]),vr[Zn].push(t),nz()}var Fv;function Rxe(){for(var t=Date.now(),e=0;e<vr[Zn].length;++e)vr[Zn][e].length>2&&(vr[Zn][e][3]=t,vr[Zn][e][4]=t);nz()}function nz(){if(clearTimeout(Fv),Fv=void 0,vr[Zn].length!==0){var t=vr[Zn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Dg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Dg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(Dg("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[Zn].push(t)}Fv===void 0&&(Fv=setTimeout(nz,0))}}});var Lv=m((gyr,kxe)=>{"use strict";var Pc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Pc.writable=t=>Pc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Pc.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};u2e.exports={AggregateError:Oz,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Hz=m((wBr,l2e)=>{"use strict";l2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=m((SBr,f2e)=>{"use strict";var{format:pFt,inspect:r_}=Hz(),{AggregateError:mFt}=xr(),EFt=globalThis.AggregateError||mFt,CFt=Symbol("kIsNodeError"),IFt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],yFt=/^([A-Z][a-z0-9]*)+$/,BFt="__node_internal_",n_={};function _g(t,e){if(!t)throw new n_.ERR_INTERNAL_ASSERTION(e)}function d2e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function bFt(t,e,r){if(typeof e=="function")return _g(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return _g(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:pFt(e,...r)}function ts(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(bFt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[CFt]=!0,n_[t]=n}function h2e(t){let e=BFt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function QFt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new EFt([e,t],e.message);return r.code=e.code,r}return t||e}var Gz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new n_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ts("ERR_ASSERTION","%s",Error);ts("ERR_INVALID_ARG_TYPE",(t,e,r)=>{_g(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)_g(typeof A=="string","All expected entries have to be of type string"),IFt.includes(A)?s.push(A.toLowerCase()):yFt.test(A)?i.push(A):(_g(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=IX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=IX(" "+s+"="+n[s]+`
`);return kt.from(r)};pC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};pC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,lh(e.mode&F9t,6),100),kt.write(r,lh(e.uid,6),108),kt.write(r,lh(e.gid,6),116),G9t(e.size,r,124),kt.write(r,lh(e.mtime.getTime()/1e3|0,11),136),r[156]=DF+O9t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(MUe,r,ww),kt.copy(k9t,r,yX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,lh(e.devmajor||0,6),329),kt.write(r,lh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,lh(UUe(r),6),148),r)};pC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-DF,i=gC(e,0,100,r),o=uh(e,100,8),a=uh(e,108,8),A=uh(e,116,8),c=uh(e,124,12),u=uh(e,136,12),l=P9t(s),d=e[157]===0?null:gC(e,157,100,r),h=gC(e,265,32),f=gC(e,297,32),p=uh(e,329,8),I=uh(e,337,8),E=UUe(e);if(E===256)return null;if(E!==uh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(M9t(e))e[345]&&(i=gC(e,345,155,r)+"/"+i);else if(!L9t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function M9t(t){return kt.equals(MUe,t.subarray(ww,ww+6))}function L9t(t){return kt.equals(v9t,t.subarray(ww,ww+6))&&kt.equals(_9t,t.subarray(yX,yX+2))}function U9t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function P9t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function O9t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function LUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function UUe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function lh(t,e){return t=t.toString(8),t.length>e?D9t.slice(0,e)+" ":R9t.slice(0,e-t.length)+t+" "}function H9t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function G9t(t,e,r){t.toString(8).length>11?H9t(t,e,r):kt.write(e,lh(t,11),r)}function q9t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function uh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return q9t(t);{for(;e<t.length&&t[e]===32;)e++;let n=U9t(LUe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function gC(t,e,r,n){return kt.toString(t.subarray(e,LUe(t,0,e,e+r)),n)}function IX(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var qUe=m(($Qr,GUe)=>{var{Writable:Y9t,Readable:V9t,getStreamError:PUe}=CX(),W9t=sX(),OUe=uC(),mC=BX(),J9t=OUe.alloc(0),QX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new W9t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return J9t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return OUe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},wX=class extends V9t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(PUe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=HUe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},SX=class extends Y9t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function yae(t,e){if(process.env.GITHUB_OUTPUT||"")return PC("OUTPUT",s1(t,e));process.stdout.write(RP.EOL),Ba("set-output",{name:t},fA(e))}function Ol(t){process.exitCode=xP.Failure,TA(t)}function Fa(){return process.env.RUNNER_DEBUG==="1"}function q(t){Ba("debug",{},t)}function TA(t,e={}){Ba("error",t1(e),t instanceof Error?t.toString():t)}function Xe(t,e={}){Ba("warning",t1(e),t instanceof Error?t.toString():t)}function Bae(t,e={}){Ba("notice",t1(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+RP.EOL)}function rze(t){KF("group",t)}function nze(){KF("endgroup")}function cN(t,e){return tze(this,void 0,void 0,function*(){rze(t);let r;try{r=yield e()}finally{nze()}return r})}function um(t,e){if(process.env.GITHUB_STATE||"")return PC("STATE",s1(t,e));Ba("save-state",{name:t},fA(e))}import*as XW from"fs";import*as $W from"path";import*as Cv from"os";import{readFileSync as sze,existsSync as ize}from"fs";import{EOL as oze}from"os";var lm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(ize(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(sze(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${oze}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var FP=ce(Nae(),1),Tae=ce(eN(),1),Cze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function xae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Rae(t){return new FP.HttpClient().getAgent(t)}function Ize(t){return new FP.HttpClient().getAgentDispatcher(t)}function Dae(t){let e=Ize(t);return(n,s)=>Cze(this,void 0,void 0,function*(){return(0,Tae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function kae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function pN(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function mN(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>mN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function vae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function _ae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Fae=Function.bind,Mae=Fae.bind(Fae);function Lae(t,e,r){let n=Mae(_ae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Mae(vae,null).apply(null,i)})}function Bze(){let t=Symbol("Singular"),e={registry:{}},r=mN.bind(null,e,t);return Lae(r,e,t),r}function bze(){let t={registry:{}},e=mN.bind(null,t);return Lae(e,t),e}var Uae={Singular:Bze,Collection:bze};var $P=ce(zP(),1);var uAe=ce(zP(),1);var pje="0.0.0-development Line truncated
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Fw).map(H=>H.replace(Mw,"").trim())}function RC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],V,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))V=[...H],H=V.pop(),w[F]=V.concat(V.length>0?te:H);else if(j)w[F]=H;else{if(V=xC(H),H.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(te)}function te(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(H)(...Ft)}}),NC(w,B)}class DC{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):kC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):kC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function kC(Q,B){Q.length=1,Q.head=Q.tail=B}function up(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var yr,Tn;function Co(yh,...PC){if(yh)return Pe?Tn(yh):yr();if(PC.length<=1)return yr(PC[0]);yr(PC)}var fp=Mt._createTaskItem(Ue,Pe?Co:Nt||Co);if(be?Mt._tasks.unshift(fp):Mt._tasks.push(fp),Ft||(Ft=!0,c(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((yh,PC)=>{yr=yh,Tn=PC})}function Eo(Ue){return function(be,...Pe){H-=1;for(var Nt=0,yr=Ue.length;Nt<yr;Nt++){var Tn=Ue[Nt],Co=V.indexOf(Tn);Co===0?V.shift():Co>0&&V.splice(Co,1),Tn.callback(be,...Pe),be!=null&&Bt("error",be,Tn.data)}H<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function hp(Ue){return Ue.length===0&&Mt.idle()?(c(()=>Bt("drain")),!0):!1}let Ih=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(yr,Tn)=>{if(yr)return Nt(yr);Pe(Tn)})});Se(Ue),j(Ue,be)};var UC=!1,Mt={_tasks:new DC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?hp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?hp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?hp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?hp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!UC){for(UC=!0;!Mt.paused&&H<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var yr=Mt._tasks.shift();Ue.push(yr),V.push(yr),be.push(yr.data)}H+=1,Mt._tasks.length===0&&Bt("empty"),H===Mt.concurrency&&Bt("saturated");var Tn=ne(Eo(Ue));F(be,Tn)}UC=!1}},length(){return Mt._tasks.length},running(){return H},workersList(){return V},idle(){return Mt._tasks.length+H===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,c(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Ih("saturated")},unsaturated:{writable:!1,value:Ih("unsaturated")},empty:{writable:!1,value:Ih("empty")},drain:{writable:!1,value:Ih("drain")},error:{writable:!1,value:Ih("error")}}),Mt}function vC(Q,B){return up(Q,1,B)}function lp(Q,B,w){return up(Q,B,w)}function mo(Q,B,w,F){F=Y(F);var H=I(w);return $s(Q,(V,J,j)=>{H(B,V,(te,Se)=>{B=Se,j(te)})},V=>F(V,B))}var Ia=E(mo,4);function dp(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=eu(),Ia(B,w,(V,J,j)=>{J.apply(F,V.concat((te,...Se)=>{j(te,Se)}))},(V,J)=>H(V,...J)),H[Zc]}}function Lw(...Q){return dp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=E(we,4);function N(Q,B,w,F){var H=I(w);return O(Q,B,(V,J)=>{H(V,(j,...te)=>j?J(j):J(j,te))},(V,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(V,j)})}var q=E(N,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=E(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[Zn]||(Vxe=global[Zn]||[],Jxe(vr,Vxe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||Wxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Gv,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),Wxe()}return Object.defineProperty(e,Gv,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kg(vr[Zn]),b("assert").equal(vr[Zn].length,0)}));var Vxe;global[Zn]||Jxe(global,vr[Zn]);gz.exports=hz(d2t(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(gz.exports=hz(vr),vr.__patched=!0);function hz(t){u2t(t),t.gracefulify=hz,t.createReadStream=M,t.createWriteStream=Y;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),ne(D,z,ee);function ne(Ae,ge,De,$e){return e(Ae,ge,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?RE([ne,[Ae,ge,De],it,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?RE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?RE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=0),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?RE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var ne=u.test(process.version)?function(De,$e,it,Wt){return c(De,Ae(De,$e,it,Wt))}:function(De,$e,it,Wt){return c(De,$e,Ae(De,$e,it,Wt))};return ne(D,z,ee);function Ae(ge,De,$e,it){return function(Wt,vt){Wt&&(Wt.code==="EMFILE"||Wt.code==="ENFILE")?RE([ne,[ge,De,$e],Wt,it||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Wt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=l2t(t);E=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(E.prototype=Object.create(h.prototype),E.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(D){E=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=E;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function E(D,z){return this instanceof E?(h.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function R(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function Y(D,z){return new t.WriteStream(D,z)}var v=t.open;t.open=P;function P(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return v(ge,De,$e,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?RE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return t}function RE(t){kg("ENQUEUE",t[0].name,t[1]),vr[Zn].push(t),fz()}var Hv;function Wxe(){for(var t=Date.now(),e=0;e<vr[Zn].length;++e)vr[Zn][e].length>2&&(vr[Zn][e][3]=t,vr[Zn][e][4]=t);fz()}function fz(){if(clearTimeout(Hv),Hv=void 0,vr[Zn].length!==0){var t=vr[Zn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)kg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){kg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(kg("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[Zn].push(t)}Hv===void 0&&(Hv=setTimeout(fz,0))}}});var qv=m((Uyr,zxe)=>{"use strict";var Pc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Pc.writable=t=>Pc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Pc.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};S2e.exports={AggregateError:$z,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Xz=m((zBr,N2e)=>{"use strict";N2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=m((jBr,R2e)=>{"use strict";var{format:FFt,inspect:A_}=Xz(),{AggregateError:MFt}=xr(),LFt=globalThis.AggregateError||MFt,UFt=Symbol("kIsNodeError"),PFt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],OFt=/^([A-Z][a-z0-9]*)+$/,HFt="__node_internal_",c_={};function Fg(t,e){if(!t)throw new c_.ERR_INTERNAL_ASSERTION(e)}function T2e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function GFt(t,e,r){if(typeof e=="function")return Fg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Fg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:FFt(e,...r)}function ts(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(GFt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[UFt]=!0,c_[t]=n}function x2e(t){let e=HFt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function qFt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new LFt([e,t],e.message);return r.code=e.code,r}return t||e}var Zz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new c_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ts("ERR_ASSERTION","%s",Error);ts("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Fg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)Fg(typeof A=="string","All expected entries have to be of type string"),PFt.includes(A)?s.push(A.toLowerCase()):OFt.test(A)?i.push(A):(Fg(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=D$(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=D$(" "+s+"="+n[s]+`
`);return kt.from(r)};mC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};mC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,dh(e.mode&eGt,6),100),kt.write(r,dh(e.uid,6),108),kt.write(r,dh(e.gid,6),116),aGt(e.size,r,124),kt.write(r,dh(e.mtime.getTime()/1e3|0,11),136),r[156]=LF+iGt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(XUe,r,Nw),kt.copy($9t,r,k$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,dh(e.devmajor||0,6),329),kt.write(r,dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,dh(ePe(r),6),148),r)};mC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-LF,i=pC(e,0,100,r),o=lh(e,100,8),a=lh(e,108,8),A=lh(e,116,8),c=lh(e,124,12),u=lh(e,136,12),l=sGt(s),d=e[157]===0?null:pC(e,157,100,r),h=pC(e,265,32),f=pC(e,297,32),p=lh(e,329,8),I=lh(e,337,8),E=ePe(e);if(E===256)return null;if(E!==lh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(tGt(e))e[345]&&(i=pC(e,345,155,r)+"/"+i);else if(!rGt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function tGt(t){return kt.equals(XUe,t.subarray(Nw,Nw+6))}function rGt(t){return kt.equals(X9t,t.subarray(Nw,Nw+6))&&kt.equals(Z9t,t.subarray(k$,k$+2))}function nGt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function sGt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function iGt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function ZUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function ePe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function dh(t,e){return t=t.toString(8),t.length>e?K9t.slice(0,e)+" ":j9t.slice(0,e-t.length)+t+" "}function oGt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function aGt(t,e,r){t.toString(8).length>11?oGt(t,e,r):kt.write(e,dh(t,11),r)}function AGt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function lh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return AGt(t);{for(;e<t.length&&t[e]===32;)e++;let n=nGt(ZUe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function pC(t,e,r,n){return kt.toString(t.subarray(e,ZUe(t,0,e,e+r)),n)}function D$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var iPe=m((ywr,sPe)=>{var{Writable:cGt,Readable:uGt,getStreamError:tPe}=R$(),lGt=g$(),rPe=lC(),EC=v$(),dGt=rPe.alloc(0),F$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new lGt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return dGt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return rPe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},M$=class extends uGt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(tPe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=nPe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},L$=class extends cGt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function kae(t,e){if(process.env.GITHUB_OUTPUT||"")return OC("OUTPUT",o1(t,e));process.stdout.write(MP.EOL),Ba("set-output",{name:t},fA(e))}function Hl(t){process.exitCode=FP.Failure,TA(t)}function Fa(){return process.env.RUNNER_DEBUG==="1"}function G(t){Ba("debug",{},t)}function TA(t,e={}){Ba("error",n1(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Ba("warning",n1(e),t instanceof Error?t.toString():t)}function vae(t,e={}){Ba("notice",n1(e),t instanceof Error?t.toString():t)}function X(t){process.stdout.write(t+MP.EOL)}function Eze(t){rM("group",t)}function Cze(){rM("endgroup")}function lN(t,e){return mze(this,void 0,void 0,function*(){Eze(t);let r;try{r=yield e()}finally{Cze()}return r})}function mu(t,e){if(process.env.GITHUB_STATE||"")return OC("STATE",o1(t,e));Ba("save-state",{name:t},fA(e))}function lm(t){return process.env[`STATE_${t}`]||""}import*as AJ from"fs";import*as cJ from"path";import*as wv from"os";import{readFileSync as Ize,existsSync as yze}from"fs";import{EOL as Bze}from"os";var dm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(yze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Ize(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Bze}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var HP=ce(Uae(),1),Pae=ce(rN(),1),Fze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Oae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Hae(t){return new HP.HttpClient().getAgent(t)}function Mze(t){return new HP.HttpClient().getAgentDispatcher(t)}function Gae(t){let e=Mze(t);return(n,s)=>Fze(this,void 0,void 0,function*(){return(0,Pae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function qae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function EN(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function CN(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>CN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Yae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Vae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Wae=Function.bind,Jae=Wae.bind(Wae);function zae(t,e,r){let n=Jae(Vae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Jae(Yae,null).apply(null,i)})}function Uze(){let t=Symbol("Singular"),e={registry:{}},r=CN.bind(null,e,t);return zae(r,e,t),r}function Pze(){let t={registry:{}},e=CN.bind(null,t);return zae(e,t),e}var jae={Singular:Uze,Collection:Pze};var sO=ce(e Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var Eje=class extends Error{constructor(t,e,r){super(mje(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Cje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Ije=["query","method","url"],cAe=/\/api\/v3\/?$/;function yje(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(Ije.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>Cje.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return cAe.test(i)&&(s.url=i.replace(cAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new Eje(s,a,o.data)}return o.data.data})}function jP(t,e){let r=t.defaults(e);return Object.assign((s,i)=>yje(r,s,i),{defaults:jP.bind(null,r),endpoint:r.endpoint})}var E7t=jP(uAe.request,{headers:{"user-agent":`octokit-graphql.js/${pje} ${pN()}`},method:"POST",url:"/graphql"});function lAe(t){return jP(t,{method:"POST",url:"/graphql"})}var KP="(?:[a-zA-Z0-9_-]+)",dAe="\\.",hAe=new RegExp(`^${KP}${dAe}${KP}${dAe}${KP}$`),Bje=hAe.test.bind(hAe);async function bje(t){let e=Bje(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function Qje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function wje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Qje(t),e(s)}var fAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(bje.bind(null,e),{hook:wje.bind(null,e)})};var XP="7.0.6";var gAe=()=>{},Sje=console.warn.bind(console),Nje=console.error.bind(console);function Tje(t={}){return typeof t.debug!="function"&&(t.debug=gAe),typeof t.info!="function"&&(t.info=gAe),typeof t.warn!="function"&&(t.warn=Sje),typeof t.error!="function"&&(t.error=Nje),t}var pAe=`octokit-core.js/${XP} ${pN()}`,IN=class{static VERSION=XP;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Uae.Collection,n={baseUrl:$P.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${pAe}`:pAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=$P.request.defaults(n),this.graphql=lAe(this.request).defaults(n),this.log=Tje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=fAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var ZP="17.0.0";var xje={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`)}var _je=class extends Error{constructor(t,e,r){super(vje(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Fje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Mje=["query","method","url"],IAe=/\/api\/v3\/?$/;function Lje(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(Mje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>Fje.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return IAe.test(i)&&(s.url=i.replace(IAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new _je(s,a,o.data)}return o.data.data})}function tO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Lje(r,s,i),{defaults:tO.bind(null,r),endpoint:r.endpoint})}var L7t=tO(yAe.request,{headers:{"user-agent":`octokit-graphql.js/${kje} ${EN()}`},method:"POST",url:"/graphql"});function BAe(t){return tO(t,{method:"POST",url:"/graphql"})}var rO="(?:[a-zA-Z0-9_-]+)",bAe="\\.",QAe=new RegExp(`^${rO}${bAe}${rO}${bAe}${rO}$`),Uje=QAe.test.bind(QAe);async function Pje(t){let e=Uje(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function Oje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Hje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Oje(t),e(s)}var wAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Pje.bind(null,e),{hook:Hje.bind(null,e)})};var nO="7.0.6";var SAe=()=>{},Gje=console.warn.bind(console),qje=console.error.bind(console);function Yje(t={}){return typeof t.debug!="function"&&(t.debug=SAe),typeof t.info!="function"&&(t.info=SAe),typeof t.warn!="function"&&(t.warn=Gje),typeof t.error!="function"&&(t.error=qje),t}var NAe=`octokit-core.js/${nO} ${EN()}`,BN=class{static VERSION=nO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new jae.Collection,n={baseUrl:sO.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${NAe}`:NAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=sO.request.defaults(n),this.graphql=BAe(this.request).defaults(n),this.log=Yje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=wAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var iO="17.0.0";var Vje={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new XI(i));return n.searchPaths.push(...aO(n.patterns)),n})}static stat(e,r,n){return dO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield mm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield mm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield mm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var mKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function TN(t,e){return mKe(this,void 0,void 0,function*(){return yield SN.create(t,e)})}var que=ce(oy(),1);import*as qN from"crypto";import*as Im from"fs";import*as Zh from"path";import*as Yue from"util";var ay;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(ay||(ay={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Pi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Pi||(Pi={}));var HN=2,GN=5e3,kO=5e3,vO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Gue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ay="cache.tar",_O="manifest.txt",rJt=10*Math.pow(1024,3);var Cm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},hZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},fZe="1.0";function cy(){return Cm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Zh.join(n,"actions","temp")}let r=Zh.join(e,qN.randomUUID());return yield Yh(r),r})}function RA(t){return Im.statSync(t).size}function FO(t){return Cm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield TN(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=hZe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=Zh.relative(a,s).replace(new RegExp(`\\${Zh.sep}`,"g"),"/");q(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function uy(t){return Cm(this,void 0,void 0,function*(){return Yue.promisify(Im.unlink)(t)})}function Vue(t){return Cm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),q(`Checking ${e} ${r.join(" ")}`);try{yield _a(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){q(s.message)}return n=n.trim(),q(n),n})}function ly(){return Cm(this,void 0,void 0,function*(){let t=yield Vue("zstd",["--quiet"]),e=que.clean(t);return q(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function Yl(t){return t===vs.Gzip?ay.Gzip:ay.Zstd}function Wue(){return Cm(this,void 0,void 0,function*(){return Im.existsSync(vO)?vO:(yield Vue("tar")).toLowerCase().includes("gnu tar")?Li("tar"):""})}function MO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function ym(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(fZe),qN.createHash("sha256").update(n.join("|")).digest("hex")}function Jue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as jm from"fs";import{URL as Hot}from"url";var DA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as gZe}from"node:os";import pZe from"node:util";import mZe from"node:process";function zue(t,...e){mZe.stderr.write(`${pZe.format(t,...e)}${gZe}`)}var jue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Xue,LO=[],UO=[],VN=[];jue&&PO(jue);var $ue=Object.assign(t=>Zue(t),{enable:PO,enabled:OO,disable:EZe,log:zue});function PO(t){Xue=t,LO=[],UO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?UO.push(r.substring(1)):LO.push(r);for(let r of VN)r.enabled=OO(r.namespace)}function OO(t){if(t.endsWith("*"))return!0;for(let e of UO)if(Kue(t,e))return!1;for(let e of LO)if(Kue(t,e))return!0;return!1}function Kue(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,A=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function EZe(){let t=Xue||"";return PO(""),t}function Zue(t){let e=Object.assign(r,{enabled:OO(t),destroy:CZe,log:$ue.log,namespace:t,extend:IZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return VN.push(e),e}function CZe(){let t=VN.indexOf(this);return t>=0?(VN.splice(t,1),!0):!1}function IZe(t){let e=Zue(`${this.namespace}:${t}`);return e.log=this.log,e}var Bm=$ue;var HO=["verbose","info","warning","error"],ele={verbose:400,info:300,warning:200,error:100};function tle(t,e){e.log=(...r)=>{t.log(...r)}}function rle(t){return HO.includes(t)}function yZe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=Bm(t.namespace);s.log=(...u)=>{Bm.log(...u)};function i(u){if(u&&!rle(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${HO.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Bm.enable(l.join(","))}r&&(rle(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${HO.join(", ")}.`));function o(u){return!!(n&&ele[u.level]<=ele[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(tle(u,d),o(d)){let h=Bm.disable();Bm.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return tle(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:s}}var nle=yZe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),BZe=nle.logger;function dy(t){return nle.createClientLogger(t)}function WN(t){return t.toLowerCase()}function*bZe(t){for(let e of t.values())yield[e.name,e.value]}var GO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(WN(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(WN(e))?.value}has(e){return this._headersMap.has(WN(e))}delete(e){this._headersMap.delete(WN(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]= Line truncated
${NZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function jN(t){return t instanceof _s?!0:tf(t)&&t.name==="RestError"}function ii(t,e){return Buffer.from(t,e)}import WO from"node:http";import JO from"node:https";import ole from"node:zlib";import{Transform as TZe}from"node:stream";var Ro=dy("ts-http-runtime");var xZe={};function hy(t){return t&&typeof t.pipe=="function"}function ale(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Ale(t){return t&&typeof t.byteLength=="number"}var KN=class extends TZe{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},zO=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new DA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Pa;Ro.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=vZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new KN(f);p.on("error",I=>{Ro.error("Error in upload progress",I)}),hy(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=RZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?DZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new KN(h);f.on("error",p=>{Ro.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await kZe(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();hy(a)&&(c=ale(a));let u=Promise.resolve();hy(A)&&(u=ale(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ro.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?WO.request(a,A):JO.request(a,A);u.once("error",l=>{c(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new DA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&hy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Ale(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Ro.error("Unrecognized body type",n),c(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?WO.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new WO.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return JO.globalAgent;let s=e.tlsSettings??xZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ro.info("No cached TLS Agent exist, creating a new Agent"),i=new JO.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function RZe(t){let e=Oi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function DZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ole.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ole.createInflate();return t.pipe(n),n}return t}function kZe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function vZe(t){return t?Buffer.isBuffer(t)?t.length:hy(t)?null:Ale(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function cle(){return new zO}function XN(){return cle()}var jO="logPolicy";function $N(t={}){let e=t.logger??Ro.info,r=new Pa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:jO,async sendRequest(n,s){if(!e. Line truncated
`;return e}function ntt(t){return t instanceof Uint8Array?t.byteLength:IT(t)?t.size===-1?void 0:t.size:void 0}function stt(t){let e=0;for(let r of t){let n=ntt(r);if(n===void 0)return;e+=n}return e}async function itt(t,e,r){let n=[ii(`--${r}`,"utf-8"),...e.flatMap(i=>[ii(`\r
`,"utf-8"),ii(rtt(i.headers),"utf-8"),ii(`\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new XI(i));return n.searchPaths.push(...hO(n.patterns)),n})}static stat(e,r,n){return EO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Em.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Em.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Em.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as CO from"crypto";import*as RN from"fs";import*as uce from"stream";import*as lce from"util";import*as dce from"path";var vKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},_Ke=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function hce(t,e){return vKe(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?X:G,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=CO.createHash("sha256"),f=0;try{for(var p=!0,I=_Ke(r.globGenerator()),E;E=yield I.next(),i=E.done,!i;p=!0){A=E.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${dce.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(RN.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=CO.createHash("sha256");yield lce.promisify(uce.pipeline)(RN.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var fce=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function ey(t,e){return fce(this,void 0,void 0,function*(){return yield TN.create(t,e)})}function gce(t){return fce(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield ey(e,{followSymbolicLinks:i});return hce(o,r,s)})}var ile=ce(Ay(),1);import*as VN from"crypto";import*as ym from"fs";import*as ef from"path";import*as ole from"util";var cy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(cy||(cy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Pi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Pi||(Pi={}));var qN=2,YN=5e3,OO=5e3,HO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,sle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,uy="cache.tar",GO="manifest.txt",IJt=10*Math.pow(1024,3);var Im=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},RZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},DZe="1.0";function ly(){return Im(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=ef.join(n,"actions","temp")}let r=ef.join(e,VN.randomUUID());return yield Vh(r),r})}function RA(t){return ym.statSync(t).size}function qO(t){return Im(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield ey(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=RZe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=ef.relative(a,s).replace(new RegExp(`\\${ef.sep}`,"g"),"/");G(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function dy(t){return Im(this,void 0,void 0,function*(){return ole.promisify(ym.unlink)(t)})}function ale(t){return Im(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield _a(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function hy(){return Im(this,void 0,void 0,function*(){let t=yield ale("zstd",["--quiet"]),e=ile.clean(t);return G(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function Vl(t){return t===vs.Gzip?cy.Gzip:cy.Zstd}function Ale(){return Im(this,void 0,void 0,function*(){return ym.existsSync(HO)?HO:(yield ale("tar")).toLowerCase().includes("gnu tar")?Li("tar"):""})}function YO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Bm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(DZe),VN.createHash("sha256").update(n.join("|")).digest("hex")}function cle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as Km from"fs";import{URL as sat}from"url";var DA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as kZe}from"node:os";import vZe from"node:util";import _Ze from"node:process";function ule(t,...e){_Ze.stderr.write(`${vZe.format(t,...e)}${kZe}`)}var lle=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,hle,VO=[],WO=[],JN=[];lle&&JO(lle);var fle=Object.assign(t=>gle(t),{enable:JO,enabled:zO,disable:FZe,log:ule});function JO(t){hle=t,VO=[],WO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?WO.push(r.substring(1)):VO.push(r);for(let r of JN)r.enabled=zO(r.namespace)}function zO(t){if(t.endsWith("*"))return!0;for(let e of WO)if(dle(t,e))return!1;for(let e of VO)if(dle(t,e))return!0;return!1}function dle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,A=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function FZe(){let t=hle||"";return JO(""),t}function gle(t){let e=Object.assign(r,{enabled:zO(t),destroy:MZe,log:fle.log,namespace:t,extend:LZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return JN.push(e),e}function MZe(){let t=JN.indexOf(this);return t>=0?(JN.splice(t,1),!0):!1}function LZe(t){let e=gle(`${this.namespace}:${t}`);return e.log=this.log,e}var bm=fle;var jO=["verbose","info","warning","error"],ple={verbose:400,info:300,warning:200,error:100};function mle(t,e){e.log=(...r)=>{t.log(...r)}}function Ele(t){return jO.includes(t)}function UZe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=bm(t.namespace);s.log=(...u)=>{bm.log(...u)};function i(u){if(u&&!Ele(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${jO.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);bm.enable(l.join(","))}r&&(Ele(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${jO.join(", ")}.`));function o(u){return!!(n&&ple[u.level]<=ple[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(mle(u,d),o(d)){let h=bm.disable();bm.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return mle(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:s}}var Cle=UZe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),PZe=Cle.logger;function fy(t){return Cle.createClientLogger(t)}function zN(t){return t.toLowerCase()}function*OZe(t){for(let e of t.values())yield[e.name,e.value]}var KO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(zN(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(zN(e))?.value}has(e){return this._headersMap.has(zN(e))}delete(e){this._headersMap.delete(zN(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]= Line truncated
${YZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function $N(t){return t instanceof _s?!0:rf(t)&&t.name==="RestError"}function ii(t,e){return Buffer.from(t,e)}import e3 from"node:http";import t3 from"node:https";import Ble from"node:zlib";import{Transform as VZe}from"node:stream";var Ro=fy("ts-http-runtime");var WZe={};function gy(t){return t&&typeof t.pipe=="function"}function ble(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Qle(t){return t&&typeof t.byteLength=="number"}var XN=class extends VZe{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},r3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new DA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Pa;Ro.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=KZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new XN(f);p.on("error",I=>{Ro.error("Error in upload progress",I)}),gy(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=JZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?zZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new XN(h);f.on("error",p=>{Ro.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await jZe(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();gy(a)&&(c=ble(a));let u=Promise.resolve();gy(A)&&(u=ble(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ro.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?e3.request(a,A):t3.request(a,A);u.once("error",l=>{c(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new DA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&gy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Qle(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Ro.error("Unrecognized body type",n),c(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?e3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new e3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return t3.globalAgent;let s=e.tlsSettings??WZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ro.info("No cached TLS Agent exist, creating a new Agent"),i=new t3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function JZe(t){let e=Oi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function zZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Ble.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Ble.createInflate();return t.pipe(n),n}return t}function jZe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function KZe(t){return t?Buffer.isBuffer(t)?t.length:gy(t)?null:Qle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function wle(){return new r3}function ZN(){return wle()}var n3="logPolicy";function eT(t={}){let e=t.logger??Ro.info,r=new Pa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:n3,async sendRequest(n,s){if(!e. Line truncated
`;return e}function Itt(t){return t instanceof Uint8Array?t.byteLength:BT(t)?t.size===-1?void 0:t.size:void 0}function ytt(t){let e=0;for(let r of t){let n=Itt(r);if(n===void 0)return;e+=n}return e}async function Btt(t,e,r){let n=[ii(`--${r}`,"utf-8"),...e.flatMap(i=>[ii(`\r
`,"utf-8"),ii(Ctt(i.headers),"utf-8"),ii(`\r
`,"utf-8"),i.body,ii(`\r
--${r}`,"utf-8")]),ii(`--\r
\r
`,"utf-8")],s=stt(n);s&&t.headers.set("Content-Length",s),t.body=await ide(n)}var py="multipartPolicy",ott=70,att=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Att(t){if(t.length>ott)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!att.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function yT(){return{name:py,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?Att(r):r=ttt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await itt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function BT(){return zN()}import{EOL as utt}from"node:os";import ltt from"node:util";import*as ode from"node:process";function ade(t,...e){ode.stderr.write(`${ltt.format(t,...e)}${utt}`)}var Ade=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,cde,h3=[],f3=[],bT=[];Ade&&g3(Ade);var ude=Object.assign(t=>lde(t),{enable:g3,enabled:p3,disable:dtt,log:ade});function g3(t){cde=t,h3=[],f3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?f3.push(new RegExp(`^${n.substr(1)}$`)):h3.push(new RegExp(`^${n}$`));for(let n of bT)n.enabled=p3(n.namespace)}function p3(t){if(t.endsWith("*"))return!0;for(let e of f3)if(e.test(t))return!1;for(let e of h3)if(e.test(t))return!0;return!1}function dtt(){let t=cde||"";return g3(""),t}function lde(t){let e=Object.assign(r,{enabled:p3(t),destroy:htt,log:ude.log,namespace:t,extend:ftt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return bT.push(e),e}function htt(){let t=bT.indexOf(this);return t>=0?(bT.splice(t,1),!0):!1}function ftt(t){let e=lde(`${this.namespace}:${t}`);return e.log=this.log,e}var xm=ude;var hde=new Set,QT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,m3,E3=xm("azure");E3.log=(...t)=>{xm.log(...t)};var C3=["verbose","info","warning","error"];QT&&(pde(QT)?gtt(QT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${QT}'; logging is not enabled. Acceptable values: ${C3.join(", ")}.`));function gtt(t){if(t&&!pde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${C3.join(",")}`);m3=t;let e=[];for(let r of hde)gde(r)&&e.push(r.namespace);xm.enable(e.join(","))}var dde={verbose:400,info:300,warning:200,error:100};function _o(t){let e=E3.extend(t);return fde(E3,e),{error:wT(e,"error"),warning:wT(e,"warning"),info:wT(e,"info"),verbose:wT(e,"verbose")}}function fde(t,e){e.log=(...r)=>{t.log(...r)}}function wT(t,e){let r=Object.assign(t.extend(e),{level:e});if(fde(t,r),gde(r)){let n=xm.disable();xm.enable(n+","+r.namespace)}return hde.add(r),r}function gde(t){return!!(m3&&dde[t.level]<=dde[m3])}function pde(t){return C3.includes(t)}var vA=_o("core-rest-pipeline");function I3(t={}){return $N({logger:vA.info,...t})}var y3=ZN;function B3(t={}){return eT(t)}import b3 from"node:os";import Q3 from"node:process";function mde(){return"User-Agent"}async function Ede(t){if(Q3&&Q3.versions){let e=`${b3.type()} ${b3.release()}; ${b3.arch()}`,r=Q3.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var ST="1.22.2";function Btt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Cde(){return mde()}async function NT(t){let e=new Map;e.set("core-rest-pipeline",ST),await Ede(e);let r=Btt(e);return t?`${t} ${r}`:r}var Ide=Cde(),yde="userAgentPolicy";function w3(t={}){let e=NT(t.userAgentPrefix);return{name:yde,async sendRequest(r,n){return r.headers.has(Ide)||r.headers.set(Ide,await e),n(r)}}}var my=class extends Error{constructor(e){super(e),this.name="AbortError"}};function S3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new my(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var Ntt="The delay was aborted.";function Rm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return S3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Ntt})}function Wl(t){if(tf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Bde(t){return tf(t)}function Dm(){return ef()}var Ot=sf;var bde=S Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!Xrt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Zr("InvalidTag",l,Fs(t,i))}let c=Wrt(t,i);if(c===!1)return Zr("InvalidAttr","Attributes for '"+A+"' have open quote.",Fs(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=che(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+A+"' has not been opened.",Fs(t,o));{let l=r.pop();if(A!==l.tagName){let d=Fs(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Fs(t,i));else{let l=che(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Ahe(t,i);continue}else if(t[i+1]==="?"){if(i=ahe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=jrt(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!ohe(t[i]))return Zr("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(ohe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function ohe(t){return t===" "||t===" "||t===`
`||t==="\r"}function ahe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Ahe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Yrt='"',Vrt="'";function Wrt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Yrt||t[e]===Vrt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var Jrt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function che(t,e){let r=PT(t,Jrt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",xy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",xy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",xy(r[s]));let i=r[s][2];if(!Krt(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",xy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",xy(r[s]))}return!0}function zrt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function jrt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,zrt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Krt(t){return Fm(t)}function Xrt(t){return Fm(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function xy(t){return t.startIndex+t[1].length}var uhe=t=>Ty.includes(t)?"__"+t:t,$rt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:uhe};function Zrt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Ty.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(OT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function lhe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:lhe(!0)}var dhe=function(t){let e=Object.assign({},$rt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&Zrt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=uhe),e.processEntities=lhe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var GT;typeof Symbol!="function"?GT="@@xmlMetadata":GT=Symbol("XML Node Metadata");var Ai=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
`);let e=new Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new Dy(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=uf(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=s8(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=i8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Ai(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=uf(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=uf(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=i8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=s8(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},E;E=unt(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=cnt(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let R=new Ai(A);p&&(R[":@"]=p),R.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,R,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=s8(this.options.transformTagName,A,u,this.options));let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new Ai(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}n="",i=d}}else n+=t[i];return e.child};function mnt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Ent(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function u8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=Nnt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Yi(o)):o instanceof Yi&&n.push(o)}let s=new MA;return mhe(t,e,r,s,n)}function mhe(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=c8(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Che(A);if(c===void 0)continue;let u=Tnt(A[":@"],e);n.push(c,u);let l=Rnt(n,s);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=c8(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let I=phe(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=phe(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=Ehe(A[c],e):p=mhe(A[c],e,d,n,s),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,n.pop()}return i}function Tnt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=t[s],n=!0}return n?r:null}function Ehe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Che(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=xnt(s[":@"],e),a=Ehe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function xnt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function Che(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function phe(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=c8(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function Rnt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function c8(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function l8(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var Dnt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function ui(t){if(this.options=Object.assign({},Dnt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Yi(r)):r instanceof Yi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=l8(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=_nt),this.processTextOrObjNode=knt,this.options.format?(this.indentate=vnt,this.tagEndChar=`>
`,"utf-8")],s=ytt(n);s&&t.headers.set("Content-Length",s),t.body=await yde(n)}var Ey="multipartPolicy",btt=70,Qtt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function wtt(t){if(t.length>btt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Qtt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function bT(){return{name:Ey,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?wtt(r):r=Ett(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Btt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function QT(){return KN()}import{EOL as Ntt}from"node:os";import Ttt from"node:util";import*as Bde from"node:process";function bde(t,...e){Bde.stderr.write(`${Ttt.format(t,...e)}${Ntt}`)}var Qde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,wde,y3=[],B3=[],wT=[];Qde&&b3(Qde);var Sde=Object.assign(t=>Nde(t),{enable:b3,enabled:Q3,disable:xtt,log:bde});function b3(t){wde=t,y3=[],B3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?B3.push(new RegExp(`^${n.substr(1)}$`)):y3.push(new RegExp(`^${n}$`));for(let n of wT)n.enabled=Q3(n.namespace)}function Q3(t){if(t.endsWith("*"))return!0;for(let e of B3)if(e.test(t))return!1;for(let e of y3)if(e.test(t))return!0;return!1}function xtt(){let t=wde||"";return b3(""),t}function Nde(t){let e=Object.assign(r,{enabled:Q3(t),destroy:Rtt,log:Sde.log,namespace:t,extend:Dtt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return wT.push(e),e}function Rtt(){let t=wT.indexOf(this);return t>=0?(wT.splice(t,1),!0):!1}function Dtt(t){let e=Nde(`${this.namespace}:${t}`);return e.log=this.log,e}var Rm=Sde;var xde=new Set,ST=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,w3,S3=Rm("azure");S3.log=(...t)=>{Rm.log(...t)};var N3=["verbose","info","warning","error"];ST&&(kde(ST)?ktt(ST):console.error(`AZURE_LOG_LEVEL set to unknown log level '${ST}'; logging is not enabled. Acceptable values: ${N3.join(", ")}.`));function ktt(t){if(t&&!kde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${N3.join(",")}`);w3=t;let e=[];for(let r of xde)Dde(r)&&e.push(r.namespace);Rm.enable(e.join(","))}var Tde={verbose:400,info:300,warning:200,error:100};function _o(t){let e=S3.extend(t);return Rde(S3,e),{error:NT(e,"error"),warning:NT(e,"warning"),info:NT(e,"info"),verbose:NT(e,"verbose")}}function Rde(t,e){e.log=(...r)=>{t.log(...r)}}function NT(t,e){let r=Object.assign(t.extend(e),{level:e});if(Rde(t,r),Dde(r)){let n=Rm.disable();Rm.enable(n+","+r.namespace)}return xde.add(r),r}function Dde(t){return!!(w3&&Tde[t.level]<=Tde[w3])}function kde(t){return N3.includes(t)}var vA=_o("core-rest-pipeline");function T3(t={}){return eT({logger:vA.info,...t})}var x3=tT;function R3(t={}){return rT(t)}import D3 from"node:os";import k3 from"node:process";function vde(){return"User-Agent"}async function _de(t){if(k3&&k3.versions){let e=`${D3.type()} ${D3.release()}; ${D3.arch()}`,r=k3.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var TT="1.22.2";function Ptt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Fde(){return vde()}async function xT(t){let e=new Map;e.set("core-rest-pipeline",TT),await _de(e);let r=Ptt(e);return t?`${t} ${r}`:r}var Mde=Fde(),Lde="userAgentPolicy";function v3(t={}){let e=xT(t.userAgentPrefix);return{name:Lde,async sendRequest(r,n){return r.headers.has(Mde)||r.headers.set(Mde,await e),n(r)}}}var Cy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function _3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Cy(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var Ytt="The delay was aborted.";function Dm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return _3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Ytt})}function Jl(t){if(rf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Ude(t){return rf(t)}function km(){return tf()}var Ot=of;var Pde=S Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!fnt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Zr("InvalidTag",l,Fs(t,i))}let c=cnt(t,i);if(c===!1)return Zr("InvalidAttr","Attributes for '"+A+"' have open quote.",Fs(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=whe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+A+"' has not been opened.",Fs(t,o));{let l=r.pop();if(A!==l.tagName){let d=Fs(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Fs(t,i));else{let l=whe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Qhe(t,i);continue}else if(t[i+1]==="?"){if(i=bhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=dnt(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!Bhe(t[i]))return Zr("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(Bhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Bhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function bhe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Qhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var ant='"',Ant="'";function cnt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===ant||t[e]===Ant)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var unt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function whe(t,e){let r=HT(t,unt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Dy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Dy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Dy(r[s]));let i=r[s][2];if(!hnt(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Dy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",Dy(r[s]))}return!0}function lnt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function dnt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,lnt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function hnt(t){return Mm(t)}function fnt(t){return Mm(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Dy(t){return t.startIndex+t[1].length}var She=t=>Ry.includes(t)?"__"+t:t,gnt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:She};function pnt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Ry.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(GT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Nhe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:Nhe(!0)}var The=function(t){let e=Object.assign({},gnt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&pnt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=She),e.processEntities=Nhe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var YT;typeof Symbol!="function"?YT="@@xmlMetadata":YT=Symbol("XML Node Metadata");var Ai=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
`);let e=new Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new vy(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=lf(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=d8(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=h8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Ai(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=lf(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=lf(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=h8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=d8(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},E;E=Nnt(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=Snt(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let R=new Ai(A);p&&(R[":@"]=p),R.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,R,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=d8(this.options.transformTagName,A,u,this.options));let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new Ai(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}n="",i=d}}else n+=t[i];return e.child};function _nt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Fnt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function E8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=Ynt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Yi(o)):o instanceof Yi&&n.push(o)}let s=new MA;return vhe(t,e,r,s,n)}function vhe(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=m8(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Fhe(A);if(c===void 0)continue;let u=Vnt(A[":@"],e);n.push(c,u);let l=Jnt(n,s);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=m8(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let I=khe(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=khe(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=_he(A[c],e):p=vhe(A[c],e,d,n,s),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,n.pop()}return i}function Vnt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=t[s],n=!0}return n?r:null}function _he(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Fhe(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Wnt(s[":@"],e),a=_he(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Wnt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function Fhe(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function khe(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=m8(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function Jnt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function m8(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function C8(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var znt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function ui(t){if(this.options=Object.assign({},znt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Yi(r)):r instanceof Yi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=C8(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=$nt),this.processTextOrObjNode=jnt,this.options.format?(this.indentate=Knt,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ui.prototype.build=function(t){if(this.options.preserveOrder)return u8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new MA;return this.j2x(t,0,e).val}};ui.prototype.j2x=function(t,e,r){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),s+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function knt(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=n[s],r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=t[n],r=!0)}return r?e:null};ui.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};ui.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length): Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ui.prototype.build=function(t){if(this.options.preserveOrder)return E8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new MA;return this.j2x(t,0,e).val}};ui.prototype.j2x=function(t,e,r){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),s+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function jnt(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=n[s],r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=t[n],r=!0)}return r?e:null};ui.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};ui.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length): Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ze.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((s,i)=>ZT(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=KT(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=XT(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends df{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new My(e,r,this)}computeHMACSHA256(e){return Ynt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var hf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var mn=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var Xl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Vnt=new hf("The operation was aborted."),Ly=class extends LA{retryOptions;constructor(e,r,n=Xl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Xl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Xl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Xl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs):Xl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Xl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=jT(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Kl(s.url,Qu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(mn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(mn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return mn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return mn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return mn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return mn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(ze.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(mn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return mn.info(`RetryPolicy: Delay for ${s}ms`),$T(s,n,Vnt)}};var Uy=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Ly(e,r,this.retryOptions)}};var Wnt="storageBrowserPolicy";function Qhe(){return{name:Wnt,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=Kl(t.url,Qu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var Jnt="StorageCorrectContentLengthPolicy";function whe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Jnt,async sendRequest(e,r){return t(e),r(e)}}}var znt="storageRetryPolicy",Lm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},jnt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Knt=new hf("The operation was aborted.");function She(t={}){let e=t.retryPolicyType??Lm.retryPolicyType,r=t.maxTries??Lm.maxTries,n=t.retryDelayInMs??Lm.retryDelayInMs,s=t.maxRetryDelayInMs??Lm.maxRetryDelayInMs,i=t.secondaryHost??Lm.secondaryHost,o=t.tryTimeoutInMs??Lm.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return mn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of jnt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>tx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=XT(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=ZT(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends hf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Uy(e,r,this)}computeHMACSHA256(e){return ast("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var ff=class extends Error{constructor(e){super(e),this.name="AbortError"}};var mn=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var Xl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Ast=new ff("The operation was aborted."),Py=class extends LA{retryOptions;constructor(e,r,n=Xl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Xl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Xl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Xl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs):Xl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Xl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=$T(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=$l(s.url,wu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(mn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(mn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return mn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return mn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return mn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return mn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(mn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return mn.info(`RetryPolicy: Delay for ${s}ms`),ex(s,n,Ast)}};var Oy=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Py(e,r,this.retryOptions)}};var cst="storageBrowserPolicy";function Ohe(){return{name:cst,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=$l(t.url,wu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var ust="StorageCorrectContentLengthPolicy";function Hhe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:ust,async sendRequest(e,r){return t(e),r(e)}}}var lst="storageRetryPolicy",Um={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},dst=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],hst=new ff("The operation was aborted.");function Ghe(t={}){let e=t.retryPolicyType??Um.retryPolicyType,r=t.maxTries??Um.maxTries,n=t.retryDelayInMs??Um.retryDelayInMs,s=t.maxRetryDelayInMs??Um.maxRetryDelayInMs,i=t.secondaryHost??Um.secondaryHost,o=t.tryTimeoutInMs??Um.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return mn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of dst)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Xnt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>ZT(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=KT(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=XT(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:$nt,async sendRequest(i,o){return e(i),o(i)}}}var Znt="storageRequestFailureDetailsParserPolicy";function Nhe(){return{name:Znt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as est}from"node:crypto";var ex=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return est("sha256",this.key).update(e,"utf8").digest("base64")}};var tx="12.31.0",rx="2026-02-06";var nx="https://storage.azure.com/.default",wu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Oa="",m8="*",tst=1*1024*1024;var rst=4*tst;var The="AES256",xhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Rhe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Dhe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],khe="BlobUsesCustomerSpecifiedEncryption",vhe="BlobDoesNotUseCustomerSpecifiedEncryption",_he=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Su(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Py=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new Sr);let r=new Py([],e);return r._credential=t,r}function nst(t){let e=[sst,Fhe,ist,ost,ast,Ast,ust];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>cst(s));return{wrappedPolicies:e8(r),afterRetry:n}}}}function E8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?t8(e):g8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${tx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=By({...r,loggingOptions:{additionalAllowedHeaderNames:Rhe,additionalAllowedQueryParameters:Dhe,logger:YT.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:qT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:h8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:R3}),s.addPolicy(whe()),s.addPolicy(She(r.retryOptions),{phase:"Retry"}),s.addPolicy(Nhe()),s.addPolicy(Qhe());let a=nst(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=C8(t);Gi(A)?s.addPolicy(vm({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Va(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function sot(t,e){if(t=Bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function iot(t,e){if(t=Bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function oot(t,e){if(t=Bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function aot(t,e){if(t=Bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function Aot(t,e){if(t=Bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function cot(t,e){if(t=Bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function yf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Bf(t){let e=t.version?t.version:rx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Xy=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Dm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Oa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Oa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Oa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Oa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Oa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Oa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Oa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Oa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Jm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var wf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var iB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var kot=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},W5=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function zfe(t,e,r){return kot(this,void 0,void 0,function*(){var n;let s=new Wa(t),i=s.getBlockBlobClient(),o=new W5((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),q(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Xx(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Xe(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Kfe from"buffer";import*as rc from"fs";import*as Xfe from"stream";import*as $fe from"util";var $x=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Zx(t){return t?t>=200&&t<300:!1}function vot(t){return t?t>=500:!0}function _ot(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function Fot(t){return $x(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function jfe(t,e,r){return $x(this,arguments,void 0,function*(n,s,i,o=HN,a=GN,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!vot(d)))return l;if(d&&(h=_ot(d),c=`Cache service responded with ${d}`),q(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){q(`${n} - Error is not retryable`);break}yield Fot(a),u++}throw Error(`${n} failed: ${c}`)})}function oB(t,e){return $x(this,arguments,void 0,function*(r,n,s=HN,i=GN){return yield jfe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof SA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function zm(t,e){return $x(this,arguments,void 0,function*(r,n,s=HN,i=GN){return yield jfe(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Mot(t,e){return Oo(this,void 0,void 0,function*(){yield $fe.promisify(Xfe.pipeline)(t.message,e)})}var eR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,q(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])q(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function K5(t,e,r){return di(this,void 0,void 0,function*(){let n=new Hot(t),s=rge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield ege(t,e,s):s.concurrentBlobDownloads?yield Zfe(t,e,s):yield tR(t,e):yield tR(t,e)})}function cge(t,e,r){return di(this,void 0,void 0,function*(){let n=j5(),s=ym(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield oB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(AB("caches"),i)}))})}function age(t,e){return`bytes ${t}-${e}/*`}function Vot(t,e,r,n,s){return di(this,void 0,void 0,function*(){q(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${age(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":age(n,s)},o=yield zm(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Zx(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Wot(t,e,r,n){return di(this,void 0,void 0,function*(){let s=RA(r),i=AB(`caches/${e.toString()}`),o=jm.openSync(r,"r"),a=J5(n),A=MO("uploadConcurrency",a.uploadConcurrency),c=MO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];q("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield Vot(t,i,()=>jm.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{jm.closeSync(o)}})}function Jot(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield oB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(AB(`caches/${e.toString()}`),n)}))})}function X5(t,e,r,n){return di(this,void 0,void 0,function*(){if(J5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield zfe(r,e,n)}else{let i=j5();q("Upload cache"),yield Wot(i,t,e,n),q("Commiting cache");let o=RA(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Jot(i,t,o);if(!Zx(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var rpe=ce(GH(),1),rn=ce(ct(),1),Ji=ce(ct(),1),Rf=ce(ct(),1),Df=ce(ct(),1),kf=ce(ct(),1);var WH=ce(ct(),1),JH=ce(ct(),1),Zge=ce(ct(),1),epe=ce(ct(),1),tpe=ce(ct(),1);var qH=ce(ct(),1),YH=ce(ct(),1),Kge=ce(ct(),1),Xge=ce(ct(),1),$ge=ce(ct(),1),VH=class extends $ge.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Xge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Kge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?YH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,qH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,qH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?YH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},GR=new VH;var zH=class extends tpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>GR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,epe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Zge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(GR.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?JH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,WH.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)GR.internalBinaryWrite(e.scope[i],r.tag(2,WH.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?JH.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield c9(r,"create");yield u9(n,t)})}var l0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},ji=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},od=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},VR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ope(t){if(!t||t.length===0)throw new ji("Path Validation Error: At least one directory or file path is required")}function h9(t){if(t.length>512)throw new ji(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ji(`Key Validation Error: ${t} cannot contain commas.`)}function ape(){return aB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Ape(t,e,r,n){return l0(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=aB();return q(`Cache service version: ${c}`),ope(s),c==="v2"?yield uct(s,i,o,a,A):yield cct(s,i,o,a,A)})}function cct(t,e,r,n){return l0(this,arguments,void 0,function*(s,i,o,a,A=!1){o=o||[];let c=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)h9(d);let u=yield ly(),l="";try{let d=yield Age(c,s,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),d.cacheKey;l=QB.join(yield cy(),Yl(u)),q(`Archive Path: ${l}`),yield K5(d.archiveLocation,l,a),Fa()&&(yield bB(l,u));let h=RA(l);return Z(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield l9(l,u),Z("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===ji.name)throw d;h instanceof SA&&typeof h.statusCode=="number"&&h.statusCode>=500?TA(`Failed to restore: ${d.message}`):Xe(`Failed to restore: ${d.message}`)}finally{try{yield uy(l)}catch(d){q(`Failed to delete archive: ${d}`)}}})}function uct(t,e,r,n){return l0(this,arguments,void 0,function*(s,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)h9(l);let u="";try{let l=A9(),d=yield ly(),h={key:i,restoreKeys:o,version:ym(s,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){q(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?Z(`Cache hit for restore-key: ${f.matchedKey}`):Z(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),f.matchedKey;u=QB.join(yield cy(),Yl(d)),q(`Archive path: ${u}`),q(`Starting download of archive to: ${u}`),yield K5(f.signedDownloadUrl,u,a);let I=RA(u);return Z(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Fa()&&(yield bB(u,d)),yield l9(u,d),Z("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===ji.name)throw l;d instanceof SA&&typeof d.statusCode=="number"&&d.statusCode>=500?TA(`Failed to restore: ${l.message}`):Xe(`Failed to restore: ${l.message}`)}finally{try{u&&(yield uy(u))}catch(l){q(`Failed to delete archive: ${l}`)}}})}function cpe(t,e,r){return l0(this,arguments,void 0,function*(n,s,i,o=!1){let a=aB();return q(`Cache service version: ${a}`),ope(n),h9(s),a==="v2"?yield dct(n,s,i,o):yield lct(n,s,i,o)})}function lct(t,e,r){return l0(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l;let d=yield ly(),h=-1,f=yield FO(n);if(q("Cache Paths:"),q(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield cy(),I=QB.join(p,Yl(d));q(`Archive Path: ${I}`);try{yield d9(p,f,d),Fa()&&(yield bB(I,d));let E=10*1024*1024*1024,C=RA(I);if(q(`File Size: ${C}`),C>E&&!z5())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);q("Reserving Cache");let y=yield cge(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new od(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);q(`Saving Cache (ID: ${h})`),yield X5(h,I,"",i)}catch(E){let C=E;if(C.name===ji.name)throw E;C.name===od.na Line truncated
See ${r.getDocumentationLink()}`;lpe.push(n),Ol(n)}function hpe(){um("deprecation-collector_deprecations",JSON.stringify(f9)),um("deprecation-collector_errors",JSON.stringify(lpe))}import*as zR from"path";var fpe="GRADLE_ACTION_ID";var ZR=".setup-gradle",jR=class t{getDependencyGraphOption(){let e=Qr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return Ac("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Qr("artifact-retention-days");return mct("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(si.workflow,si.job,pct())}getReportDirectory(){let e=Qr("dependency-graph-report-dir");return zR.resolve(Fu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return vf("dependency-graph-exclude-projects")}getIncludeProjects(){return vf("dependency-graph-include-projects")}getExcludeConfigurations(){return vf("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return vf("dependency-graph-include-configurations")}getPluginRepository(){return new KR}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){q(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var d0=class{isCacheDisabled(){return ape()?Ac("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Ac("cache-read-only")}isCacheWriteOnly(){return Ac("cache-write-only")}isCacheOverwriteExisting(){return Ac("cache-overwrite-existing")}isCacheStrictMatch(){return Ac("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=wB("gradle-home-cache-cleanup");if(e!==void 0)return JR("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Qr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Qr("cache-encryption-key")}getCacheIncludes(){return DP("gradle-home-cache-includes")}getCacheExcludes(){return DP("gradle-home-cache-excludes")}isCacheLicenseAccepted(){let e=new Yo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}};var Yo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ac("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Qr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Qr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Qr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Qr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return wB("develocity-injection-enabled")}getDevelocityUrl(){return Qr("develocity-url")}getDevelocityAllowUntrustedServer(){return wB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return wB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return wB("develocity-enforce-url")}getDevelocityPluginVersion(){return Qr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Qr("develocity-ccud-plugin-version")}getPluginRepository(){return new KR}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Xe("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},KR=class{getUrl(){return vf("gradle-plugin-repository-url")}getUsername(){return vf("gradle-plugin-repository-username")}getPassword(){return vf("gradle-plugin-repository-password")}},XR=class{getGradleVersion(){return Qr("gradle-version")}getBuildRootDirectory(){let e=Fu(),r=Qr("build-root-directory");return r===""?zR.resolve(e):zR.resolve(e,r)}getDependen Line truncated
`+n(i)+s(i),a=fst("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>tx(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=XT(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=ZT(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:gst,async sendRequest(i,o){return e(i),o(i)}}}var pst="storageRequestFailureDetailsParserPolicy";function qhe(){return{name:pst,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as mst}from"node:crypto";var rx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return mst("sha256",this.key).update(e,"utf8").digest("base64")}};var nx="12.31.0",sx="2026-02-06";var ix="https://storage.azure.com/.default",Su={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Oa="",w8="*",Est=1*1024*1024;var Cst=4*Est;var Yhe="AES256",Vhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Whe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Jhe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],zhe="BlobUsesCustomerSpecifiedEncryption",jhe="BlobDoesNotUseCustomerSpecifiedEncryption",Khe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Nu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Hy=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new Sr);let r=new Hy([],e);return r._credential=t,r}function Ist(t){let e=[yst,$he,Bst,bst,Qst,wst,Nst];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Sst(s));return{wrappedPolicies:A8(r),afterRetry:n}}}}function S8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?c8(e):b8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${nx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Qy({...r,loggingOptions:{additionalAllowedHeaderNames:Whe,additionalAllowedQueryParameters:Jhe,logger:WT.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:VT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:y8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:U3}),s.addPolicy(Hhe()),s.addPolicy(Ghe(r.retryOptions),{phase:"Retry"}),s.addPolicy(qhe()),s.addPolicy(Ohe());let a=Ist(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=N8(t);Gi(A)?s.addPolicy(_m({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Va(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function yot(t,e){if(t=bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function Bot(t,e){if(t=bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function bot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function Qot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function wot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Sot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Va(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Bf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function bf(t){let e=t.version?t.version:sx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Zy=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=km()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Oa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Oa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Oa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Oa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Oa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Oa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Oa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Oa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};zm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Sf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Sf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var aB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var jot=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},eH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);X(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function uge(t,e,r){return jot(this,void 0,void 0,function*(){var n;let s=new Wa(t),i=s.getBlockBlobClient(),o=new eH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Zx(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as dge from"buffer";import*as rc from"fs";import*as hge from"stream";import*as fge from"util";var eR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function tR(t){return t?t>=200&&t<300:!1}function Kot(t){return t?t>=500:!0}function $ot(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function Xot(t){return eR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function lge(t,e,r){return eR(this,arguments,void 0,function*(n,s,i,o=qN,a=YN,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!Kot(d)))return l;if(d&&(h=$ot(d),c=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){G(`${n} - Error is not retryable`);break}yield Xot(a),u++}throw Error(`${n} failed: ${c}`)})}function AB(t,e){return eR(this,arguments,void 0,function*(r,n,s=qN,i=YN){return yield lge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof SA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function jm(t,e){return eR(this,arguments,void 0,function*(r,n,s=qN,i=YN){return yield lge(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Zot(t,e){return Oo(this,void 0,void 0,function*(){yield fge.promisify(hge.pipeline)(t.message,e)})}var rR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,G(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);X(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function sH(t,e,r){return di(this,void 0,void 0,function*(){let n=new sat(t),s=Ege(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield pge(t,e,s):s.concurrentBlobDownloads?yield gge(t,e,s):yield nR(t,e):yield nR(t,e)})}function wge(t,e,r){return di(this,void 0,void 0,function*(){let n=nH(),s=Bm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield AB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(uB("caches"),i)}))})}function bge(t,e){return`bytes ${t}-${e}/*`}function Aat(t,e,r,n,s){return di(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${bge(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":bge(n,s)},o=yield jm(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!tR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function cat(t,e,r,n){return di(this,void 0,void 0,function*(){let s=RA(r),i=uB(`caches/${e.toString()}`),o=Km.openSync(r,"r"),a=tH(n),A=YO("uploadConcurrency",a.uploadConcurrency),c=YO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield Aat(t,i,()=>Km.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{Km.closeSync(o)}})}function uat(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield AB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(uB(`caches/${e.toString()}`),n)}))})}function iH(t,e,r,n){return di(this,void 0,void 0,function*(){if(tH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield uge(r,e,n)}else{let i=nH();G("Upload cache"),yield cat(i,t,e,n),G("Commiting cache");let o=RA(e);X(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield uat(i,t,o);if(!tR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);X("Cache saved successfully")}})}var Epe=ce(KH(),1),rn=ce(ct(),1),Ji=ce(ct(),1),Df=ce(ct(),1),kf=ce(ct(),1),vf=ce(ct(),1);var e9=ce(ct(),1),t9=ce(ct(),1),gpe=ce(ct(),1),ppe=ce(ct(),1),mpe=ce(ct(),1);var $H=ce(ct(),1),XH=ce(ct(),1),dpe=ce(ct(),1),hpe=ce(ct(),1),fpe=ce(ct(),1),ZH=class extends fpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,hpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,dpe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?XH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,$H.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,$H.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},YR=new ZH;var r9=class extends mpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>YR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,ppe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,gpe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(YR.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?t9.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,e9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)YR.internalBinaryWrite(e.scope[i],r.tag(2,e9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?t9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield m9(r,"create");yield E9(n,t)})}var d0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},ji=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},ad=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},JR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Bpe(t){if(!t||t.length===0)throw new ji("Path Validation Error: At least one directory or file path is required")}function y9(t){if(t.length>512)throw new ji(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ji(`Key Validation Error: ${t} cannot contain commas.`)}function bpe(){return cB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function zR(t,e,r,n){return d0(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=cB();return G(`Cache service version: ${c}`),Bpe(s),c==="v2"?yield Nct(s,i,o,a,A):yield Sct(s,i,o,a,A)})}function Sct(t,e,r,n){return d0(this,arguments,void 0,function*(s,i,o,a,A=!1){o=o||[];let c=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)y9(d);let u=yield hy(),l="";try{let d=yield Qge(c,s,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return X("Lookup only - skipping download"),d.cacheKey;l=SB.join(yield ly(),Vl(u)),G(`Archive Path: ${l}`),yield sH(d.archiveLocation,l,a),Fa()&&(yield wB(l,u));let h=RA(l);return X(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield C9(l,u),X("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===ji.name)throw d;h instanceof SA&&typeof h.statusCode=="number"&&h.statusCode>=500?TA(`Failed to restore: ${d.message}`):Ve(`Failed to restore: ${d.message}`)}finally{try{yield dy(l)}catch(d){G(`Failed to delete archive: ${d}`)}}})}function Nct(t,e,r,n){return d0(this,arguments,void 0,function*(s,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)y9(l);let u="";try{let l=p9(),d=yield hy(),h={key:i,restoreKeys:o,version:Bm(s,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){G(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?X(`Cache hit for restore-key: ${f.matchedKey}`):X(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return X("Lookup only - skipping download"),f.matchedKey;u=SB.join(yield ly(),Vl(d)),G(`Archive path: ${u}`),G(`Starting download of archive to: ${u}`),yield sH(f.signedDownloadUrl,u,a);let I=RA(u);return X(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Fa()&&(yield wB(u,d)),yield C9(u,d),X("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===ji.name)throw l;d instanceof SA&&typeof d.statusCode=="number"&&d.statusCode>=500?TA(`Failed to restore: ${l.message}`):Ve(`Failed to restore: ${l.message}`)}finally{try{u&&(yield dy(u))}catch(l){G(`Failed to delete archive: ${l}`)}}})}function jR(t,e,r){return d0(this,arguments,void 0,function*(n,s,i,o=!1){let a=cB();return G(`Cache service version: ${a}`),Bpe(n),y9(s),a==="v2"?yield xct(n,s,i,o):yield Tct(n,s,i,o)})}function Tct(t,e,r){return d0(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l;let d=yield hy(),h=-1,f=yield qO(n);if(G("Cache Paths:"),G(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield ly(),I=SB.join(p,Vl(d));G(`Archive Path: ${I}`);try{yield I9(p,f,d),Fa()&&(yield wB(I,d));let E=10*1024*1024*1024,C=RA(I);if(G(`File Size: ${C}`),C>E&&!rH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);G("Reserving Cache");let y=yield wge(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new ad(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);G(`Saving Cache (ID: ${h})`),yield iH(h,I,"",i)}catch(E){let C=E;if(C.name===ji.name)throw E;C.name===ad.name Line truncated
See ${r.getDocumentationLink()}`;Qpe.push(n),Hl(n)}function Spe(){mu("deprecation-collector_deprecations",JSON.stringify(b9)),mu("deprecation-collector_errors",JSON.stringify(Qpe))}import*as XR from"path";var Npe="GRADLE_ACTION_ID";var nD=".setup-gradle",ZR=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return Ac("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return vct("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(si.workflow,si.job,kct())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return XR.resolve(Mu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return _f("dependency-graph-exclude-projects")}getIncludeProjects(){return _f("dependency-graph-include-projects")}getExcludeConfigurations(){return _f("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return _f("dependency-graph-include-configurations")}getPluginRepository(){return new eD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var h0=class{isCacheDisabled(){return bpe()?Ac("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Ac("cache-read-only")}isCacheWriteOnly(){return Ac("cache-write-only")}isCacheOverwriteExisting(){return Ac("cache-overwrite-existing")}isCacheStrictMatch(){return Ac("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=NB("gradle-home-cache-cleanup");if(e!==void 0)return $R("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return LP("gradle-home-cache-includes")}getCacheExcludes(){return LP("gradle-home-cache-excludes")}isCacheLicenseAccepted(){let e=new Yo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var Yo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ac("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return NB("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return NB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return NB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return NB("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new eD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ve("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},eD=class{getUrl(){return _f("gradle-plugin-repository-url")}getUsername(){return _f("gradle-plugin-repository Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${vpe}], make sure you have checked out the target repository`);return`${Uct}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Hct=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,Qct=`
***********************************************************
LICENSING NOTICE
The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
You can suppress this message by accepting the terms in your action configuration: see https://github.com/gradle/actions/blob/main/README.md
***********************************************************
`,wct=`
> [!IMPORTANT]
> #### Licensing notice
>
> The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
> The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
>
> The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
>
> Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
> If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
>
>You can suppress this message by [accepting the terms in your action configuration](https://github.com/gradle/actions/blob/main/README.md).
`,m9=class{async restore(e,r){}async save(e,r,n){return bct}},E9=class{constructor(e){this.delegate=e}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${wct}`}};async function ype(t){if(t.isCacheDisabled())return new m9;let e=await Sct();return t.isCacheLicenseAccepted()?e:(await Tct(),new E9(e))}async function Sct(){let t=Nct();return await import(Bct(t).href)}function Nct(){let t=import.meta.dirname,e=Ipe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Cpe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}async function Tct(){console.info(Qct)}import rD from"fs";import Bpe from"path";var nD=class{constructor(e){this.cacheFile=Bpe.resolve(e,ZR,"valid-wrappers.json")}load(){if(rD.existsSync(this.cacheFile))try{return JSON.parse(rD.readFileSync(this.cacheFile,"utf-8"))}catch(e){Xe(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];rD.mkdirSync(Bpe.dirname(this.cacheFile),{recursive:!0}),rD.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Tpe=ce(Spe(),1);import*as Npe from"util";import*as sD from"path";import*as iD from"fs";var _ct=Npe.promisify(iD.readdir);async function xpe(t){return(await Rpe(t)).filter(r=>(0,Tpe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>sD.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Rpe(t){let e=await _ct(t),r=await Promise.all(e.map(async n=>{let s=sD.resolve(t,n),i=iD.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Rpe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Mct={_useHtmlParser2:!1};function h0(t,e){if(!t)return e??Mct;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var G9={};ya(G9,{contains:()=>ID,extract:()=>Rut,html:()=>Sut,merge:()=>Zpe,parseHTML:()=>Tut,root:()=>xut,text:()=>Pf,xml:()=>Nut});var ld={};ya(ld,{DocumentPosition:()=>Jo,append:()=>Aut,appendChild:()=>aut,compareDocumentPosition:()=>jpe,existsOne:()=>Jpe,filter:()=>E0,find:()=>pD,findAll:()=>dut,findOne:()=>mD,findOneChild:()=>lut,getAttributeValue:()=>nut,getChildren:()=>m0,getElementById:()=>put,getElements:()=>gut,getElementsByClassName:()=>mut,getElementsByTagName:()=>Uf,getElementsByTagType:()=>Eut,getFeed:()=>H9,getInnerHTML:()=>rut,getName:()=>iut,getOuterHTML:()=>Vpe,getParent:()=>Wpe,getSiblings:()=>P9,getText:()=>hD,hasAttrib:()=>sut,hasChildren:()=>rr,innerText:()=>RB,isCDATA:()=>f0,isComment:()=>Lf,isDocument:()=>Wo,isTag:()=>Qe,isText:()=>gi,nextElementSibling:()=>fD,prepend:()=>uut,prependChild:()=>cut,prevElementSibling:()=>gD,removeElement:()=>Uu,removeSubsets:()=>Cut,replaceElement:()=>out,testElement:()=>fut,textContent:()=>Lu,uniqueSort:()=>cd});var Vo={};ya(Vo,{CDATA:()=>N9,Comment:()=>b9,Directive:()=>B9,Doctype:()=>T9,ElementType:()=>bt,Root:()=>I9,Script:()=>Q9,Style:()=>w9,Tag:()=>S9,Text:()=>y9,isTag:()=>C9});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function C9(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var I9=bt.Root,y9=bt.Text,B9=bt.Directive,b9=bt.Comment,Q9=bt.Script,w9=bt.Style,S9=bt.Tag,N9=bt.CDATA,T9=bt.Doctype;var oD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return g0(this,e)}},SB=class extends oD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},uc=class extends SB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},_f=class extends SB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},Ff=class extends SB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},NB=class extends oD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},TB=class extends NB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ki=class extends NB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Mf=class extends NB{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}})}};function Qe(t){return C9(t)}function f0(t){return t. Line truncated
`:hD(t.children):f0(t)?hD(t.children):gi(t)?t.data:""}function Lu(t){return Array.isArray(t)?t.map(Lu).join(""):rr(t)&&!Lf(t)?Lu(t.children):gi(t)?t.data:""}function RB(t){return Array.isArray(t)?t.map(RB).join(""):rr(t)&&(t.type===bt.Tag||f0(t))?RB(t.children):gi(t)?t.data:""}function m0(t){return rr(t)?t.children:[]}function Wpe(t){return t.parent||null}function P9(t){let e=Wpe(t);if(e!=null)return m0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function nut(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function sut(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function iut(t){return t.name}function fD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function gD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Uu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function out(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function aut(t,e){if(Uu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Aut(t,e){Uu(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function cut(t,e){if(Uu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function uut(t,e){Uu(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function E0(t,e,r=!0,n=1/0){return pD(t,Array.isArray(e)?e:[e],r,n)}function pD(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function lut(t,e){return e.find(t)}function mD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=mD(t,i.children,!0);if(o)return o}}return null}function Jpe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&Jpe(t,r.children))}function dut(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var ED={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>gi(e)&&t(e.data):e=>gi(e)&&e.data===t}};function O9(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function hut(t,e){return r=>t(r)||e(r)}function zpe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(ED,r)?ED[r](n):O9(r,n)});return e.length===0?null:e.reduce(hut)}function fut(t,e){let r=zpe(t);return r?r(e):!0}function gut(t,e,r,n=1/0){let s=zpe(t);return s?E0(s,e,r,n):[]}function put(t,e,r=!0){return Array.isArray(e)||(e=[e]),mD(O9("id",t),e,r)}function Uf(t,e,r=!0,n=1/0){return E0(ED.tag_name(t),e,r,n)}function mut(t,e,r=!0,n=1/0){return E0(O9("class",t),e,r,n)}function Eut(t,e,r=!0,n=1/0){return E0(ED.tag_type(t),e,r,n)}function Cut(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Jo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Jo||(Jo={}));function jpe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Jo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Jo.FOLLOWING|Jo.CONTAINED_BY:Jo.FOLLOWING:a===t?Jo.PRECEDING|Jo.CONTAINS:Jo.PRECEDING}function cd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=jpe(e,r);return n&Jo.PRECEDING?-1:n&Jo.FOLLOWING?1:0}),t}function H9(t){let e=CD(Qut,t);return e?e.name==="feed"?Iut(e):yut(e):null}function Iut(t){var e;let r=t.children,n={type:"atom",items:Uf("entry",r).map(o=>{var a;let{children:A}=o,c={media:Kpe(A)};pi(c,"id","id",A),pi(c,"title","title",A);let u=(a=CD("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ud("summary",A)||ud("conten Line truncated
`,Gct="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",qct=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,Yct="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Vct=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,x9=class{async restore(e,r){}async save(e,r,n){return Hct}},aD=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${this.summary}`}};async function Lpe(t){if(t.isCacheDisabled())return T9("Cache is disabled: will not restore state from previous builds."),new x9;if(t.getCacheProvider()==="basic")return T9(Yct),new aD(new oD,Vct);T9(Gct);let e=await Wct();return t.isCacheLicenseAccepted()?e:new aD(e,qct)}async function Wct(){let t=Jct();return await import(Oct(t).href)}function Jct(){let t=import.meta.dirname,e=Mpe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Fpe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function T9(t){console.info(t)}import AD from"fs";import Upe from"path";var cD=class{constructor(e){this.cacheFile=Upe.resolve(e,nD,"valid-wrappers.json")}load(){if(AD.existsSync(this.cacheFile))try{return JSON.parse(AD.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];AD.mkdirSync(Upe.dirname(this.cacheFile),{recursive:!0}),AD.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Ype=ce(Gpe(),1);import*as qpe from"util";import*as uD from"path";import*as lD from"fs";var Zct=qpe.promisify(lD.readdir);async function Vpe(t){return(await Wpe(t)).filter(r=>(0,Ype.default)(r).endsWith("gradle-wrapper.jar")).map(r=>uD.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Wpe(t){let e=await Zct(t),r=await Promise.all(e.map(async n=>{let s=uD.resolve(t,n),i=lD.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Wpe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var tut={_useHtmlParser2:!1};function f0(t,e){if(!t)return e??tut;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Z9={};ya(Z9,{contains:()=>SD,extract:()=>jut,html:()=>Vut,merge:()=>gme,parseHTML:()=>Jut,root:()=>zut,text:()=>Of,xml:()=>Wut});var dd={};ya(dd,{DocumentPosition:()=>Jo,append:()=>Nut,appendChild:()=>Sut,compareDocumentPosition:()=>lme,existsOne:()=>cme,filter:()=>C0,find:()=>BD,findAll:()=>Dut,findOne:()=>bD,findOneChild:()=>Rut,getAttributeValue:()=>But,getChildren:()=>E0,getElementById:()=>Fut,getElements:()=>_ut,getElementsByClassName:()=>Mut,getElementsByTagName:()=>Pf,getElementsByTagType:()=>Lut,getFeed:()=>X9,getInnerHTML:()=>yut,getName:()=>Qut,getOuterHTML:()=>ame,getParent:()=>Ame,getSiblings:()=>K9,getText:()=>CD,hasAttrib:()=>but,hasChildren:()=>rr,innerText:()=>kB,isCDATA:()=>g0,isComment:()=>Uf,isDocument:()=>Wo,isTag:()=>Qe,isText:()=>gi,nextElementSibling:()=>ID,prepend:()=>xut,prependChild:()=>Tut,prevElementSibling:()=>yD,removeElement:()=>Pu,removeSubsets:()=>Uut,replaceElement:()=>wut,testElement:()=>vut,textContent:()=>Uu,uniqueSort:()=>ud});var Vo={};ya(Vo,{CDATA:()=>U9,Comment:()=>_9,Directive:()=>v9,Doctype:()=>P9,ElementType:()=>bt,Root:()=>D9,Script:()=>F9,Style:()=>M9,Tag:()=>L9,Text:()=>k9,isTag:()=>R9});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function R9(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var D9=bt.Root,k9=bt.Text,v9=bt.Directive,_9=bt.Comment,F9=bt.Script,M9=bt.Style,L9=bt.Tag,U9=bt.CDATA,P9=bt.Doctype;var dD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return p0(this,e)}},TB=class extends dD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},uc=class extends TB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ff=class extends TB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},Mf=class extends TB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},xB=class extends dD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},RB=class extends xB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ki=class extends xB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Lf=class extends xB{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void Line truncated
`:CD(t.children):g0(t)?CD(t.children):gi(t)?t.data:""}function Uu(t){return Array.isArray(t)?t.map(Uu).join(""):rr(t)&&!Uf(t)?Uu(t.children):gi(t)?t.data:""}function kB(t){return Array.isArray(t)?t.map(kB).join(""):rr(t)&&(t.type===bt.Tag||g0(t))?kB(t.children):gi(t)?t.data:""}function E0(t){return rr(t)?t.children:[]}function Ame(t){return t.parent||null}function K9(t){let e=Ame(t);if(e!=null)return E0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function But(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function but(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Qut(t){return t.name}function ID(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function yD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Pu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function wut(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Sut(t,e){if(Pu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Nut(t,e){Pu(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Tut(t,e){if(Pu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function xut(t,e){Pu(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function C0(t,e,r=!0,n=1/0){return BD(t,Array.isArray(e)?e:[e],r,n)}function BD(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Rut(t,e){return e.find(t)}function bD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=bD(t,i.children,!0);if(o)return o}}return null}function cme(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&cme(t,r.children))}function Dut(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var QD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>gi(e)&&t(e.data):e=>gi(e)&&e.data===t}};function $9(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function kut(t,e){return r=>t(r)||e(r)}function ume(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(QD,r)?QD[r](n):$9(r,n)});return e.length===0?null:e.reduce(kut)}function vut(t,e){let r=ume(t);return r?r(e):!0}function _ut(t,e,r,n=1/0){let s=ume(t);return s?C0(s,e,r,n):[]}function Fut(t,e,r=!0){return Array.isArray(e)||(e=[e]),bD($9("id",t),e,r)}function Pf(t,e,r=!0,n=1/0){return C0(QD.tag_name(t),e,r,n)}function Mut(t,e,r=!0,n=1/0){return C0($9("class",t),e,r,n)}function Lut(t,e,r=!0,n=1/0){return C0(QD.tag_type(t),e,r,n)}function Uut(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Jo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Jo||(Jo={}));function lme(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Jo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Jo.FOLLOWING|Jo.CONTAINED_BY:Jo.FOLLOWING:a===t?Jo.PRECEDING|Jo.CONTAINS:Jo.PRECEDING}function ud(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=lme(e,r);return n&Jo.PRECEDING?-1:n&Jo.FOLLOWING?1:0}),t}function X9(t){let e=wD(qut,t);return e?e.name==="feed"?Put(e):Out(e):null}function Put(t){var e;let r=t.children,n={type:"atom",items:Pf("entry",r).map(o=>{var a;let{children:A}=o,c={media:dme(A)};pi(c,"id","id",A),pi(c,"title","title",A);let u=(a=wD("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ld("summary",A)||ld("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ko=ce(dd(),1);var sG={};function iG(t,e){return t===Ko.default.falseFunc?Ko.default.falseFunc:r=>e.isTag(r)&&t(r)}function oG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function nG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var rG=(t,e,r,n,s)=>{let i=s(e,nG(r),n);return i===Ko.default.trueFunc?t:i===Ko.default.falseFunc?Ko.default.falseFunc:o=>i(o)&&t(o)},kD={is:rG,matches:rG,where:rG,not(t,e,r,n,s){let i=s(e,nG(r),n);return i===Ko.default.falseFunc?t:i===Ko.default.trueFunc?Ko.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=nG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(LB))?[sG]:void 0,A=s(e,o,a);if(A===Ko.default.falseFunc)return Ko.default.falseFunc;let c=iG(A,i);if(a&&A!==Ko.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...oG(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Ume(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in kD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return kD[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:DD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,Lme.parse)(c);return kD.is(t,u,r,n,s)}if(typeof A=="function")return tG(A,o,a,1),u=>A(u,a)&&t(u);if(o in N0)return N0[o](t,a,r,n);if(o in PB){let u=PB[o];return tG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Xo=ce(w0(),1);function aG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Pme(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Xo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Xo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Xo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),vme[e.action](t,e,r)}case Xo.SelectorType.Pseudo:return Ume(t,e,r,n,s);case Xo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Xo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=aG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=aG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=aG(c,i));return!1};case Xo.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Xo.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Xo.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Xo.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Xo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Ome(t,e,r){let n=vD(t,e,r);return iG(n,e.adapter)}function vD(t,e,r){let n=typeof t=="string"?(0,Ka.parse)(t):t;return _D(n,e,r)}function Hme(t){return t.type===Ka.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Hme)))}var glt={type:Ka.SelectorType.Descendant},plt={type:"_flexibleDescendant"},mlt={type:Ka.SelectorType.Pseudo,name:"scope",data:null};function Elt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===sG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(n0e,`\r
`)}}).toArray()}var bG={};ya(bG,{extract:()=>vdt});function kdt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function vdt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=kdt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var gd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};gd.prototype.cheerio="[cheerio object]";gd.prototype.splice=Array.prototype.splice;gd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(gd.prototype,K9,CG,IG,yG,BG,bG);function s0e(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=h0(s),a=t(n,o,i,null);class A extends gd{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&zo(u))return u;let f=h0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=zo(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let E=typeof u=="string"&&DB(u)?t(u,f,!1,null).children:_dt(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,I,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,R=l?typeof l=="string"?DB(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):zo(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return R?R.find(y):C}return Object.assign(c,G9,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function _dt(t){return!!t.name||t.type===Vo.Root||t.type===Vo.Text||t.type===Vo.Comment}var Fdt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ps={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function OD(t){return t>=55296&&t<=57343}function i0e(t){return t>=56320&&t<=57343}function o0e(t,e){return(t-55296)*1024+9216+e}function HD(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function GD(t){return t>=64976&&t<=65007||Fdt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ko=ce(hd(),1);var gG={};function pG(t,e){return t===Ko.default.falseFunc?Ko.default.falseFunc:r=>e.isTag(r)&&t(r)}function mG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function fG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var hG=(t,e,r,n,s)=>{let i=s(e,fG(r),n);return i===Ko.default.trueFunc?t:i===Ko.default.falseFunc?Ko.default.falseFunc:o=>i(o)&&t(o)},UD={is:hG,matches:hG,where:hG,not(t,e,r,n,s){let i=s(e,fG(r),n);return i===Ko.default.falseFunc?t:i===Ko.default.trueFunc?Ko.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=fG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(PB))?[gG]:void 0,A=s(e,o,a);if(A===Ko.default.falseFunc)return Ko.default.falseFunc;let c=pG(A,i);if(a&&A!==Ko.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...mG(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function e0e(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in UD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return UD[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:LD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,Zme.parse)(c);return UD.is(t,u,r,n,s)}if(typeof A=="function")return dG(A,o,a,1),u=>A(u,a)&&t(u);if(o in T0)return T0[o](t,a,r,n);if(o in HB){let u=HB[o];return dG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var $o=ce(S0(),1);function EG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function t0e(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case $o.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case $o.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case $o.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),jme[e.action](t,e,r)}case $o.SelectorType.Pseudo:return e0e(t,e,r,n,s);case $o.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case $o.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=EG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=EG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=EG(c,i));return!1};case $o.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case $o.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case $o.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case $o.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case $o.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function r0e(t,e,r){let n=PD(t,e,r);return pG(n,e.adapter)}function PD(t,e,r){let n=typeof t=="string"?(0,Ka.parse)(t):t;return OD(n,e,r)}function n0e(t){return t.type===Ka.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(n0e)))}var _lt={type:Ka.SelectorType.Descendant},Flt={type:"_flexibleDescendant"},Mlt={type:Ka.SelectorType.Pseudo,name:"scope",data:null};function Llt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===gG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(C0e,`\r
`)}}).toArray()}var _G={};ya(_G,{extract:()=>Xdt});function $dt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Xdt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=$dt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var pd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};pd.prototype.cheerio="[cheerio object]";pd.prototype.splice=Array.prototype.splice;pd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(pd.prototype,aG,RG,DG,kG,vG,_G);function I0e(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=f0(s),a=t(n,o,i,null);class A extends pd{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&zo(u))return u;let f=f0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=zo(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let E=typeof u=="string"&&vB(u)?t(u,f,!1,null).children:Zdt(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,I,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,R=l?typeof l=="string"?vB(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):zo(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return R?R.find(y):C}return Object.assign(c,Z9,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function Zdt(t){return!!t.name||t.type===Vo.Root||t.type===Vo.Text||t.type===Vo.Comment}var eht=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ps={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function WD(t){return t>=55296&&t<=57343}function y0e(t){return t>=56320&&t<=57343}function B0e(t,e){return(t-55296)*1024+9216+e}function JD(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function zD(t){return t>=64976&&t<=65007||eht.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},Ev=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var wg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function kNe(t){if(t instanceof AggregateError){Ol("Multiple errors returned");for(let e of t.errors)TA(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof wg?(Ol(String(t)),t.stack&&Z(t.stack)):(Ol(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function vNe(t,e,r){if(!t.doValidateWrappers())return;let n=new nD(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await DNe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await cN("All Gradle Wrapper jars are valid",async()=>{q(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new wg(`At least one Gradle Wrapper Jar failed validation!
`)}`}},Qv=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var Sg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function zNe(t){if(t instanceof AggregateError){Hl("Multiple errors returned");for(let e of t.errors)TA(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&X(e.stack)}else t instanceof Sg?(Hl(String(t)),t.stack&&X(t.stack)):(Hl(String(t)),t instanceof Error&&t.stack&&X(t.stack))}async function jNe(t,e,r){if(!t.doValidateWrappers())return;let n=new cD(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await JNe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await lN("All Gradle Wrapper jars are valid",async()=>{G(`Loaded previously validated checksums from cache: ${i.join(", ")}`),X(o.toDisplayString())});else throw X(o.toDisplayString()),new Sg(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import uo from"fs";import Sg from"path";function _Ne(t,e,r){let n=Sg.resolve(e,ZR);uo.mkdirSync(n,{recursive:!0}),lRt(e),dRt(t),Fa()&&hRt(e),r&&gn("GRADLE_ENCRYPTION_KEY",r)}function lRt(t){let e=Sg.resolve(t,"init.d");uo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=fRt("init-scripts",n),i=Sg.resolve(e,n);uo.writeFileSync(i,s)}}function dRt(t){let e=gRt();if(e==null)return;let r=Sg.resolve(t,".m2"),n=Sg.resolve(r,"toolchains.xml");if(!uo.existsSync(n))uo.mkdirSync(r,{recursive:!0}),uo.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=uo.readFileSync(n,"utf8"),i=pRt(s,e);uo.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function hRt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import uo from"fs";import Ng from"path";function KNe(t,e,r){let n=Ng.resolve(e,nD);uo.mkdirSync(n,{recursive:!0}),RRt(e),DRt(t),Fa()&&kRt(e),r&&gn("GRADLE_ENCRYPTION_KEY",r)}function RRt(t){let e=Ng.resolve(t,"init.d");uo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=vRt("init-scripts",n),i=Ng.resolve(e,n);uo.writeFileSync(i,s)}}function DRt(t){let e=_Rt();if(e==null)return;let r=Ng.resolve(t,".m2"),n=Ng.resolve(r,"toolchains.xml");if(!uo.existsSync(n))uo.mkdirSync(r,{recursive:!0}),uo.writeFileSync(n,e),X(`Wrote default JDK locations to ${n}`);else{let s=uo.readFileSync(n,"utf8"),i=FRt(s,e);uo.writeFileSync(n,i),X(`Merged default JDK locations into ${n}`)}}function kRt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Sg.resolve(t,"gradle.properties");if(uo.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=uo.readFileSync(r,"utf-8");uo.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),uo.writeFileSync(r,e)}function fRt(...t){let e=import.meta.dirname,r=Sg.resolve(e,"..","..","..","sources","src","resources",...t);return uo.readFileSync(r,"utf8")}function gRt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`,r=Ng.resolve(t,"gradle.properties");if(uo.existsSync(r)){X(`Merged --info and --stacktrace into existing ${r} file`);let n=uo.readFileSync(r,"utf-8");uo.writeFileSync(r,`${e}
${n}`)}else X(`Created a new ${r} with --info and --stacktrace`),uo.writeFileSync(r,e)}function vRt(...t){let e=import.meta.dirname,r=Ng.resolve(e,"..","..","..","sources","src","resources",...t);return uo.readFileSync(r,"utf8")}function _Rt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -306,55 +291,55 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function pRt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var KW="GRADLE_BUILD_ACTION_SETUP_COMPLETED",mRt="GRADLE_USER_HOME";async function FNe(t,e,r){let n=await MNe(),s=await CRt();return process.env[KW]?(Z("Gradle setup only performed on first gradle/actions step in workflow."),!1):(gn(KW,!0),um(KW,!0),um(mRt,s),_Ne(n,s,t.getCacheEncryptionKey()),await(await ype(t)).restore(s,ERt(t)),await vNe(r,Fu(),s),await Epe(e),!0)}function ERt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function CRt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Fu();return $W.resolve(r,t)}let e=$W.resolve(await MNe(),".gradle");if(XW.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),gn("GRADLE_USER_HOME",e),e;if(Cv.platform()==="win32"&&e.startsWith("C:\\")&&XW.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),gn("GRADLE_USER_HOME",r),r}return gn("GRADLE_USER_HOME",e),e}async function MNe(){let t=await qI("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),Cv.homedir();let n=r[1];return q(`Determined user.home from java -version output: '${n}'`),n}var bTe=ce($Ne(),1),nJ=ce(oy(),1);import*as bE from"fs";import*as gTe from"os";import*as Wd from"path";import*as tJ from"crypto";import*as Tg from"fs";var vRt=ce(oy(),1);import*as cQ from"path";var Bv=ce(oy(),1);import*as eTe from"stream";import*as tTe from"util";import{ok as FRt}from"assert";var ZNe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Iv=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return ZNe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;Z(i.message)}let s=this.getSleepAmount();Z(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return ZNe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ng=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},yv=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},MRt=process.platform==="win32",rIr=process.platform==="darwin",LRt="actions/tool-cache";function rTe(t,e,r,n){return Ng(this,void 0,void 0,function*(){e=e||cQ.join(sTe(),tJ.randomUUID()),yield Yh(cQ.dirname(e)),q(`Downloading ${t}`),q(`Destination ${e}`);let s=3,i=eJ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=eJ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Iv(s,i,o).execute(()=>Ng(this,void 0,void 0,function*(){return yield URt(t,e||"",r,n)}),A=>!(A instanceof yv&&A.httpStatusCode&&A.httpStatusCode<500&&A.httpStatusCode!==408&&A.httpStatusCode!==429))})}function URt(t,e,r,n){return Ng(this,void 0,void 0,function*(){if(Tg.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(LRt,[],{allowRetries:!1});r&&(q("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new yv(i.message.statusCode);throw q(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=tTe.promisify(eTe.pipeline),A=eJ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),c=!1;try{return yield o(A,Tg.createWriteStream(e)),q("download complete"),c=!0,e}finally{if(!c){q("download failed");try{yield lae(e)}catch(u){q(`Failed to delete '${e}'. ${u.message}`)}}}})}function nTe(t,e){return Ng(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield HRt(e),MRt?yield PRt(t,e):yield ORt(t,e),e})}function PRt(t,e){return Ng(this,void 0,void 0,function*(){let r= Line truncated
`," Line feed \\n"]]),MTe=new Map([...qJ,["\\"," Backslash \\"],["/"," Forward slash /"]]);function LTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of MTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function FRt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var aJ="GRADLE_BUILD_ACTION_SETUP_COMPLETED",MRt="GRADLE_USER_HOME";async function $Ne(t,e,r){let n=await XNe(),s=await URt();return process.env[aJ]?(X("Gradle setup only performed on first gradle/actions step in workflow."),!1):(gn(aJ,!0),mu(aJ,!0),mu(MRt,s),KNe(n,s,t.getCacheEncryptionKey()),await(await Lpe(t)).restore(s,LRt(t)),await jNe(r,Mu(),s),await Dpe(e),!0)}function LRt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function URt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Mu();return cJ.resolve(r,t)}let e=cJ.resolve(await XNe(),".gradle");if(AJ.existsSync(e))return X(`Gradle User Home already exists at ${e}`),gn("GRADLE_USER_HOME",e),e;if(wv.platform()==="win32"&&e.startsWith("C:\\")&&AJ.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return X(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),gn("GRADLE_USER_HOME",r),r}return gn("GRADLE_USER_HOME",e),e}async function XNe(){let t=await YI("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return X("Could not determine user.home from java -version output. Using os.homedir()."),wv.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}var PTe=ce(fTe(),1),fJ=ce(Ay(),1);import*as QE from"fs";import*as DTe from"os";import*as Jd from"path";import*as dJ from"crypto";import*as xg from"fs";var XRt=ce(Ay(),1);import*as lQ from"path";var Tv=ce(Ay(),1);import*as pTe from"stream";import*as mTe from"util";import{ok as eDt}from"assert";var gTe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Sv=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return gTe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;X(i.message)}let s=this.getSleepAmount();X(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return gTe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Tg=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Nv=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},tDt=process.platform==="win32",wIr=process.platform==="darwin",rDt="actions/tool-cache";function ETe(t,e,r,n){return Tg(this,void 0,void 0,function*(){e=e||lQ.join(ITe(),dJ.randomUUID()),yield Vh(lQ.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=lJ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=lJ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Sv(s,i,o).execute(()=>Tg(this,void 0,void 0,function*(){return yield nDt(t,e||"",r,n)}),A=>!(A instanceof Nv&&A.httpStatusCode&&A.httpStatusCode<500&&A.httpStatusCode!==408&&A.httpStatusCode!==429))})}function nDt(t,e,r,n){return Tg(this,void 0,void 0,function*(){if(xg.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(rDt,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new Nv(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=mTe.promisify(pTe.pipeline),A=lJ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),c=!1;try{return yield o(A,xg.createWriteStream(e)),G("download complete"),c=!0,e}finally{if(!c){G("download failed");try{yield Bae(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function CTe(t,e){return Tg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield oDt(e),tDt?yield sDt(t,e):yield iDt(t,e),e})}function sDt(t,e){return Tg(this,void 0,void 0,function*(){let r= Line truncated
`," Line feed \\n"]]),XTe=new Map([...ez,["\\"," Backslash \\"],["/"," Forward slash /"]]);function ZTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of XTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(MTe.values()).toString()}
Invalid characters include: ${Array.from(XTe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Z("Artifact name is valid!")}function YJ(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of qJ)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);X("Artifact name is valid!")}function tz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of ez)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(qJ.values()).toString()}
Invalid characters include: ${Array.from(ez.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var HTe=ce(OTe(),1);function Mc(){return`@actions/artifact-${HTe.version}`}var Nv=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},sl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},il=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Jd=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ol=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};ol.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var xg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};xg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Rg=class extends Error{};Rg.prototype.name="InvalidTokenError";function gDt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function pDt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return gDt(e)}catch{return atob(e)}}function GTe(t,e){if(typeof t!="string")throw new Rg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Rg(`Invalid token specified: missing part #${r+1}`);let s;try{s=pDt(n)}catch(i){throw new Rg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Rg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var Tv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Lc(){let t=wv(),e=GTe(t);if(!e.scp)throw Tv;let r=e.scp.split(" ");if(r.length===0)throw Tv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw Tv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return q(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),q(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw Tv}function qTe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(va(r),va(encodeURIComponent(r)))}catch(e){q(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function YTe(t){if(typeof t!="object"||t===null){q("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&qTe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&qTe(t.signed_url)}var xv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},VJ=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=wv();this.baseUrl=wTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new pu(i)])}request(e,r,n,s){return xv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;q(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>xv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return xv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),q(`[Response] - ${a.message.statusCode}`),q(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(YTe(c),q(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(xg.isUsageErrorMessage(c.msg))throw new xg;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&q(`Raw Body: ${s}`),a instanceof xg)throw a;if(ol.isNetworkErrorCode(a?.code))throw new ol(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);Z(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return xv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Uc(t){let e=new VJ(Mc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Sv(e)}import*as NE from"fs";import{normalize as VTe,resolve as WTe}from"path";function JTe(t){if(!NE.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&Xe("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);Z(`Redirecting to blob download url: ${ZPe(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield eOe(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,q(`Computed digest: ${l.sha256Digest}`),q(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function nOe(){return yC(this,arguments,void 0,function*(t=STe()){return(yield YGt(t))?q(`Artifact destination folder already exists: ${t}`):(q(`Artifact destination folder does not exist, creating: ${t}`),yield zPe.mkdir(t,{recursive:!0})),t})}var WGt=5,JGt=[400,401,403,404,422];function BC(t,e=WGt,r=JGt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return q(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var sOe="6.0.0";function ip(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}ip.VERSION=sOe;var aOe=ce(iOe(),1),AOe=ce(YP(),1),zGt="0.0.0-development";async function oOe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function jGt(t,e,r,n){let s=new aOe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(KGt.bind(null,t,e,r),n)}async function KGt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new AOe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return oOe(t,e,i,n)}return s}function op(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",oOe.bind(null,r,t)),t.hook.wrap("request",jGt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}op.VERSION=zGt;var cOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function FF(t,e,r,n,s){return cOe(this,void 0,void 0,function*(){var i;let[o,a]=BC(Wh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},u=yield Ma(s,A,op,ip).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new sl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new il(`Artifact not found for name: ${t}
`)}var nxe=ce(rxe(),1);function Mc(){return`@actions/artifact-${nxe.version}`}var vv=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},il=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ol=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},zd=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},al=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};al.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Rg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Dg=class extends Error{};Dg.prototype.name="InvalidTokenError";function _Dt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function FDt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return _Dt(e)}catch{return atob(e)}}function sxe(t,e){if(typeof t!="string")throw new Dg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Dg(`Invalid token specified: missing part #${r+1}`);let s;try{s=FDt(n)}catch(i){throw new Dg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Dg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var _v=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Lc(){let t=Dv(),e=sxe(t);if(!e.scp)throw _v;let r=e.scp.split(" ");if(r.length===0)throw _v;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw _v;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return G(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),G(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw _v}function ixe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(va(r),va(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function oxe(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ixe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ixe(t.signed_url)}var Fv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},rz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Dv();this.baseUrl=HTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new pu(i)])}request(e,r,n,s){return Fv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>Fv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return Fv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),G(`[Response] - ${a.message.statusCode}`),G(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(oxe(c),G(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(Rg.isUsageErrorMessage(c.msg))throw new Rg;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&G(`Raw Body: ${s}`),a instanceof Rg)throw a;if(al.isNetworkErrorCode(a?.code))throw new al(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);X(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return Fv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Uc(t){let e=new rz(Mc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new kv(e)}import*as TE from"fs";import{normalize as axe,resolve as Axe}from"path";function cxe(t){if(!TE.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&Ve("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);X(`Redirecting to blob download url: ${gOe(u)}`);try{X(`Starting download of artifact to: ${r}`);let l=yield pOe(u,r,e?.skipDecompress);X("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,G(`Computed digest: ${l.sha256Digest}`),G(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function COe(){return BC(this,arguments,void 0,function*(t=GTe()){return(yield cqt(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield uOe.mkdir(t,{recursive:!0})),t})}var lqt=5,dqt=[400,401,403,404,422];function bC(t,e=lqt,r=dqt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return G(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var IOe="6.0.0";function op(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}op.VERSION=IOe;var bOe=ce(yOe(),1),QOe=ce(KP(),1),hqt="0.0.0-development";async function BOe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function fqt(t,e,r,n){let s=new bOe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(gqt.bind(null,t,e,r),n)}async function gqt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new QOe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return BOe(t,e,i,n)}return s}function ap(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",BOe.bind(null,r,t)),t.hook.wrap("request",fqt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}ap.VERSION=hqt;var wOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function HF(t,e,r,n,s){return wOe(this,void 0,void 0,function*(){var i;let[o,a]=bC(Jh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},u=yield Ma(s,A,ap,op).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new il(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new ol(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],q(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function uOe(t){return cOe(this,void 0,void 0,function*(){var e;let r=Uc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Lc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Es.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new il(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],G(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function SOe(t){return wOe(this,void 0,void 0,function*(){var e;let r=Uc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Lc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Es.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ol(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],q(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var lOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function dOe(t,e,r,n,s){return lOe(this,void 0,void 0,function*(){var i;let[o,a]=BC(Wh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},c=Ma(s,A,op,ip),u=yield FF(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new sl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function hOe(t){return lOe(this,void 0,void 0,function*(){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Es.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new il(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],q(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var fOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},MF=xTe(),LF=100,XGt=Math.ceil(MF/LF);function gOe(t,e,r,n){return fOe(this,arguments,void 0,function*(s,i,o,a,A=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=BC(Wh),d={log:void 0,userAgent:Mc(),previews:void 0,retry:u,request:l},h=Ma(a,d,op,ip),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:LF,page:f}),I=Math.ceil(p.total_count/LF),E=p.total_count;E>MF&&(Xe(`Workflow run ${s} has ${E} artifacts, exceeding the limit of ${MF}. Results will be incomplete as only the first ${MF} artifacts will be returned`),I=XGt);for(let C of p.artifacts)c.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){q(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:LF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=mOe(c)),Z(`Found ${c.length} artifact(s)`),{artifacts:c}})}function pOe(){return fOe(this,arguments,void 0,function*(t=!1){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=mOe(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function mOe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var Dw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},$Gt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},ap=class{uploadArtifact(e,r,n,s){return Dw(this,void 0,void 0,function*(){try{if(QE())throw new Jd;return hPe(e,r,n,s)}catch(i){throw Xe(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var NOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function TOe(t,e,r,n,s){return NOe(this,void 0,void 0,function*(){var i;let[o,a]=bC(Jh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},c=Ma(s,A,ap,op),u=yield HF(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new il(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function xOe(t){return NOe(this,void 0,void 0,function*(){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Es.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ol(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return X(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var ROe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},GF=VTe(),qF=100,pqt=Math.ceil(GF/qF);function DOe(t,e,r,n){return ROe(this,arguments,void 0,function*(s,i,o,a,A=!1){X(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=bC(Jh),d={log:void 0,userAgent:Mc(),previews:void 0,retry:u,request:l},h=Ma(a,d,ap,op),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:qF,page:f}),I=Math.ceil(p.total_count/qF),E=p.total_count;E>GF&&(Ve(`Workflow run ${s} has ${E} artifacts, exceeding the limit of ${GF}. Results will be incomplete as only the first ${GF} artifacts will be returned`),I=pqt);for(let C of p.artifacts)c.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){G(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:qF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=vOe(c)),X(`Found ${c.length} artifact(s)`),{artifacts:c}})}function kOe(){return ROe(this,arguments,void 0,function*(t=!1){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=vOe(o)),X(`Found ${o.length} artifact(s)`),{artifacts:o}})}function vOe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var vw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},mqt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},Ap=class{uploadArtifact(e,r,n,s){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;return xPe(e,r,n,s)}catch(i){throw Ve(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return Dw(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=$Gt(r,["findBy"]);return tOe(e,n,s,i,o)}return rOe(e,r)}catch(n){throw Xe(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=mqt(r,["findBy"]);return mOe(e,n,s,i,o)}return EOe(e,r)}catch(n){throw Ve(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return Dw(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return gOe(r,n,s,i,e?.latest)}return pOe(e?.latest)}catch(r){throw Xe(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return DOe(r,n,s,i,e?.latest)}return kOe(e?.latest)}catch(r){throw Ve(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return Dw(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return FF(e,n,s,i,o)}return uOe(e)}catch(n){throw Xe(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return HF(e,n,s,i,o)}return SOe(e)}catch(n){throw Ve(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return Dw(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return dOe(e,i,n,s,o)}return hOe(e)}catch(n){throw Xe(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return vw(this,void 0,void 0,function*(){try{if(wE())throw new zd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return TOe(e,i,n,s,o)}return xOe(e)}catch(n){throw Ve(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var q1r=new ap;import*as UF from"path";import GX from"fs";var COe="dependency-graph_";async function IOe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){gn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await eqt(t);return}Z("Enabling dependency graph generation"),gn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Ks("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_ID",si.runId.toString()),Ks("GITHUB_DEPENDENCY_GRAPH_REF",si.ref),Ks("GITHUB_DEPENDENCY_GRAPH_SHA",cqt()),Ks("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Fu()),Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Ks("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Ks("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Ks("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Ks("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Ks("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ks("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ks("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Ks(t,e){process.env[t]||e!==void 0&&gn(t,e)}async function yOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await EOe(t,!1);return;case"generate-submit-and-upload":await EOe(t,!0);return;case"generate-and-upload":await tqt(t)}}catch(r){bOe(t,e,r)}}async function eqt(t){if(VX()){Z("Dependency graph not supported in the ACT environment.");return}try{await BOe(await rqt(t))}catch(e){bOe(t,"download-and-submit",e)}}async function EOe(t,e){if(VX()){Z("Dependency graph not supported in the ACT environment.");return}let r=await qX();try{await BOe(r)}catch(n){try{await HX(r,t)}catch(s){Z(String(s))}throw n}e&&await HX(r,t)}async function tqt(t){if(VX()){Z("Dependency graph not supported in the ACT environment.");return}await HX(await qX(),t)}async function rqt(t){let e=si.payload.workflow_run?{token:eD(),workflowRunId:si.payload.workflow_run.id,repositoryName:si.repo.repo,repositoryOwner:si.repo.owner}:void 0,r=new ap,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(COe)),s=t.getDownloadArtifactName();s&&(Z(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});Z(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return qX()}async function qX(){let r=(await(await TN(`${iqt()}/**/*.json`)).glob()).filter(n=>!oqt(n));return r.forEach(aqt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function HX(t,e){if(t.length===0){Z("No dependency graph files found to upload.");return}let r=Fu(),n=new ap;for(let s of t){let i=YX(s);Z(`Uploading dependency graph file: ${i}`);let o=`${COe}${UF.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function BOe(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await sqt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=nqt(e,r)),r}}function nqt(t,e){let n=`Dependency submission failed for ${YX(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var dSr=new Ap;import*as YF from"path";import Z$ from"fs";var FOe="dependency-graph_";async function MOe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){gn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await Cqt(t);return}X("Enabling dependency graph generation"),gn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Ks("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_ID",si.runId.toString()),Ks("GITHUB_DEPENDENCY_GRAPH_REF",si.ref),Ks("GITHUB_DEPENDENCY_GRAPH_SHA",Tqt()),Ks("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Mu()),Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Ks("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Ks("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Ks("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Ks("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Ks("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ks("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ks("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Ks(t,e){process.env[t]||e!==void 0&&gn(t,e)}async function LOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await _Oe(t,!1);return;case"generate-submit-and-upload":await _Oe(t,!0);return;case"generate-and-upload":await Iqt(t)}}catch(r){POe(t,e,r)}}async function Cqt(t){if(rX()){X("Dependency graph not supported in the ACT environment.");return}try{await UOe(await yqt(t))}catch(e){POe(t,"download-and-submit",e)}}async function _Oe(t,e){if(rX()){X("Dependency graph not supported in the ACT environment.");return}let r=await eX();try{await UOe(r)}catch(n){try{await X$(r,t)}catch(s){X(String(s))}throw n}e&&await X$(r,t)}async function Iqt(t){if(rX()){X("Dependency graph not supported in the ACT environment.");return}await X$(await eX(),t)}async function yqt(t){let e=si.payload.workflow_run?{token:sD(),workflowRunId:si.payload.workflow_run.id,repositoryName:si.repo.repo,repositoryOwner:si.repo.owner}:void 0,r=new Ap,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(FOe)),s=t.getDownloadArtifactName();s&&(X(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});X(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return eX()}async function eX(){let r=(await(await ey(`${Qqt()}/**/*.json`)).glob()).filter(n=>!wqt(n));return r.forEach(Sqt),X(`Found dependency graph files: ${r.join(", ")}`),r}async function X$(t,e){if(t.length===0){X("No dependency graph files found to upload.");return}let r=Mu(),n=new Ap;for(let s of t){let i=tX(s);X(`Uploading dependency graph file: ${i}`);let o=`${FOe}${YF.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function UOe(t){if(t.length===0){X("No dependency graph files found to submit.");return}for(let e of t)try{await bqt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Bqt(e,r)),r}}function Bqt(t,e){let n=`Dependency submission failed for ${tX(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function sqt(t){let e=Aqt(),r=GX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=si.repo.owner,n.repo=si.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=YX(t);Bae(`Submitted ${i}: ${s.data.message}`)}function iqt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function oqt(t){let e=`${t}.processed`;return GX.existsSync(e)}function aqt(t){let e=`${t}.processed`;GX.writeFileSync(e,"")}function bOe(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new wg(r);Xe(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Aqt(){return Ma(eD())}function YX(t){let e=Fu();return UF.relative(e,t)}function cqt(){let t=si;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function VX(){return process.env.ACT!==void 0}function WX(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(lqt(o[1],o[6],o[0]));while(o!==null);return i}function lqt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function dqt(t=process.platform){return t==="win32"?50:0}async function QOe(t=process.platform){let e=dqt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function hqt(){try{gpe("gradle/actions/dependency-submission"),await FNe(new d0,new Yo,new $R);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new jR;if(await IOe(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new XR,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
`:n}async function bqt(t){let e=Nqt(),r=Z$.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=si.repo.owner,n.repo=si.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=tX(t);vae(`Submitted ${i}: ${s.data.message}`)}function Qqt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function wqt(t){let e=`${t}.processed`;return Z$.existsSync(e)}function Sqt(t){let e=`${t}.processed`;Z$.writeFileSync(e,"")}function POe(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new Sg(r);Ve(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Nqt(){return Ma(sD())}function tX(t){let e=Mu();return YF.relative(e,t)}function Tqt(){let t=si;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function rX(){return process.env.ACT!==void 0}function nX(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(Rqt(o[1],o[6],o[0]));while(o!==null);return i}function Rqt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function Dqt(t=process.platform){return t==="win32"?50:0}async function OOe(t=process.platform){let e=Dqt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function kqt(){try{Tpe("gradle/actions/dependency-submission"),await $Ne(new h0,new Yo,new rD);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new ZR;if(await MOe(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new tD,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
${n}
${s}
`,o=WX(i);await QTe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await yOe(e),gn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),hpe()}catch(t){kNe(t)}await QOe()}hqt();export{hqt as run};
`,o=nX(i);await OTe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await LOe(e),gn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Spe()}catch(t){zNe(t)}await OOe()}kqt();export{kqt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+151 -131
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var ene=Object.create;var BB=Object.defineProperty;var tne=Object.getOwnPropertyDescriptor;var rne=Object.getOwnPropertyNames;var sne=Object.getPrototypeOf,nne=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),an=(t,e)=>{for(var r in e)BB(t,r,{get:e[r],enumerable:!0})},ine=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rne(e))!nne.call(t,n)&&n!==r&&BB(t,n,{get:()=>e[n],enumerable:!(s=tne(e,n))||s.enumerable});return t};var ie=(t,e,r)=>(r=t!=null?ene(sne(t)):{},ine(e||!t||!t.__esModule?BB(r,"default",{value:t,enumerable:!0}):r,t));var yF=m(jA=>{"use strict";var Lqe=Q("net"),lne=Q("tls"),NB=Q("http"),IF=Q("https"),dne=Q("events"),vqe=Q("assert"),gne=Q("util");jA.httpOverHttp=hne;jA.httpsOverHttp=fne;jA.httpOverHttps=mne;jA.httpsOverHttps=pne;function hne(t){var e=new Ci(t);return e.request=NB.request,e}function fne(t){var e=new Ci(t);return e.request=NB.request,e.createSocket=BF,e.defaultPort=443,e}function mne(t){var e=new Ci(t);return e.request=IF.request,e}function pne(t){var e=new Ci(t);return e.request=IF.request,e.createSocket=BF,e.defaultPort=443,e}function Ci(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||NB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=QF(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}gne.inherits(Ci,dne.EventEmitter);Ci.prototype.addRequest=function(e,r,s,n){var i=this,o=SB({request:e},i.options,QF(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Ci.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=SB({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),oo("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(d){d.upgrade=!0}function A(d,g,h){process.nextTick(function(){c(d,g,h)})}function c(d,g,h){if(o.removeAllListeners(),g.removeAllListeners(),d.statusCode!==200){oo("tunneling socket could not be established, statusCode=%d",d.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+d.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){oo("got illegal response body from proxy"),g.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return oo("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(d){o.removeAllListeners(),oo(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var g=new Error("tunneling socket could not be established, cause="+d.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Ci.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function BF(t,e){var r=this;Ci.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=SB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=lne.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function QF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function SB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var oo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?oo=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:oo=function(){};jA.debug=oo});var TB=m((Oqe,bF)=>{bF.exports=yF()});var Ze=m((_qe,wF)=>{wF.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Se=m((Hqe,XF)=>{"use strict";var NF=Symbol.for("undici.error.UND_ERR"),$e=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[NF]===!0}[NF]=!0},SF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),DB=class extends $e{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[SF]===!0}[SF]=!0},TF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),xB=class extends $e{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[TF]===!0}[TF]=!0},DF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),RB=class extends $e{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[DF]===!0}[DF]=!0},xF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),kB=class extends $e{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[xF]===!0}[xF]=!0},RF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),FB=class extends $e{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Foe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(poe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Moe(){return"allowed"}function Uoe(){return"success"}function Loe(){return"success"}function voe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Poe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&bQ(t.origin)&&!bQ(Kl(t))&&(e=null);break;case"same-origin":Mf(t,Kl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function ac(t,e){return t}function Ooe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ac(t.domainLookupStartTime,r),domainLookupEndTime:ac(t.domainLookupEndTime,r),connectionStartTime:ac(t.connectionStartTime,r),connectionEndTime:ac(t.connectionEndTime,r),secureConnectionStartTime:ac(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function _oe(t){return ac(Qoe.now(),t)}function Hoe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function uU(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Goe(t){return{referrerPolicy:t.referrerPolicy}}function Yoe(t){let e=t.referrerPolicy;ya(e);let r=null;if(t.referrer==="client"){let a=nU();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=yQ(r),n=yQ(r,!0);s.toString().length>4096&&(s=n);let i=Mf(t,s),o=zl(s)&&!zl(t.url);switch(e){case"origin":return n??yQ(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=Kl(t);return Mf(s,a)?s:zl(s)&&!zl(a)?"no-referrer":n}default:return o?"no-referrer":n}}function yQ(t,e){return ya(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function zl(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function qoe(t,e){if(Ff===void 0)return!0;let r=lU(e);if(r==="no metadata"||r.length===0)return!0;let s=Joe(r),n=Woe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=Ff.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),zoe(A,a))return!0}return!1}var Voe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function lU(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Voe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();oU.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Joe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function Woe(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function zoe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function Koe(t){}function Mf(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Xoe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function joe(t){return t.controller.state==="aborted"}function Zoe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function $oe(t){return woe[t.toLowerCase()]??t}function eae(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ya(typeof e=="string"),e}var tae=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function dU(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Rae(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function kae(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function Fae(t,e){Lf(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&vf(t,Dae,i)||i.position===t.length-4&&vf(t,xae,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Mae(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:d}=a;i.position+=2;let g;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";g=t.subarray(i.position,f-4),i.position+=g.length,d==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Rae(u)||(u=""),h=new Sae([g],c,{type:u})):h=Qae(Buffer.from(g)),Lf(bU(A)),Lf(typeof h=="string"&&bU(h)||bae(h)),n.push(wae(A,h,c))}}function Mae(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=cc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=RQ(o,!0,!0,a=>a===9||a===32),!yae.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,cc(a=>a===32||a===9,t,e),Bae(o)){case"content-disposition":{if(r=s=null,!vf(t,Tae,e)||(e.position+=17,r=SU(t,e),r===null))return"failure";if(vf(t,NU,e)){let a=e.position+NU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=SU(t,e),s===null))return"failure"}break}case"content-type":{let a=cc(A=>A!==10&&A!==13,t,e);a=RQ(a,!1,!0,A=>A===9||A===32),n=wU(a);break}case"content-transfer-encoding":{let a=cc(A=>A!==10&&A!==13,t,e);a=RQ(a,!1,!0,A=>A===9||A===32),i=wU(a);break}default:cc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function SU(t,e){Lf(t[e.position-1]===34);let r=cc(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function cc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function RQ(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function vf(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}TU.exports={multipartFormDataParser:Fae,validateBoundary:kae}});var dc=m((dVe,OU)=>{"use strict";var Zl=me(),{ReadableStreamFrom:Uae,isBlobLike:xU,isReadableStreamLike:Lae,readableStreamClose:vae,createDeferredPromise:Pae,fullyReadBody:Oae,extractMimeType:_ae,utf8DecodeBytes:FU}=Yr(),{FormData:RU}=jl(),{kState:lc}=ao(),{webidl:Hae}=Yt(),{Blob:Gae}=Q("node:buffer"),kQ=Q("node:assert"),{isErrored:MU,isDisturbed:Yae}=Q("node:stream"),{isArrayBuffer:qae}=Q("node:util/types"),{serializeAMimeType:Vae}=Ir(),{multipartFormDataParser:Jae}=DU(),FQ;try{let t=Q("node:crypto");FQ=e=>t.randomInt(0,e)}catch{FQ=t=>Math.floor(Math.random(t))}var Pf=new TextEncoder;function Wae(){}var UU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,LU;UU&&(LU=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Yae(e)&&!MU(e)&&e.cancel("Response object has been garbage collected").catch(Wae)}));function vU(t,e=!1){let r=null;t instanceof ReadableStream?r=t:xU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?Pf.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>vae(A))},start(){},type:"bytes"}),kQ(Lae(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(qae(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Zl.isFormDataLike(t)){let A=`----formdata-undici-0${`${FQ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=w=>w.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=w=>w.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[w,p]of t)if(typeof p=="string"){let y=Pf.encode(c+`; name="${u(d(w))}"\r
var Zhe=Object.create;var TN=Object.defineProperty;var $he=Object.getOwnPropertyDescriptor;var ege=Object.getOwnPropertyNames;var tge=Object.getPrototypeOf,rge=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),li=(t,e)=>{for(var r in e)TN(t,r,{get:e[r],enumerable:!0})},sge=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ege(e))!rge.call(t,n)&&n!==r&&TN(t,n,{get:()=>e[n],enumerable:!(s=$he(e,n))||s.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?Zhe(tge(t)):{},sge(e||!t||!t.__esModule?TN(r,"default",{value:t,enumerable:!0}):r,t));var X6=m(Wl=>{"use strict";var krt=b("net"),cge=b("tls"),kN=b("http"),W6=b("https"),uge=b("events"),Frt=b("assert"),lge=b("util");Wl.httpOverHttp=dge;Wl.httpsOverHttp=hge;Wl.httpOverHttps=gge;Wl.httpsOverHttps=fge;function dge(t){var e=new aa(t);return e.request=kN.request,e}function hge(t){var e=new aa(t);return e.request=kN.request,e.createSocket=z6,e.defaultPort=443,e}function gge(t){var e=new aa(t);return e.request=W6.request,e}function fge(t){var e=new aa(t);return e.request=W6.request,e.createSocket=z6,e.defaultPort=443,e}function aa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||kN.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=K6(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}lge.inherits(aa,uge.EventEmitter);aa.prototype.addRequest=function(e,r,s,n){var i=this,o=FN({request:e},i.options,K6(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};aa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=FN({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),dA("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,g){process.nextTick(function(){c(l,d,g)})}function c(l,d,g){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){dA("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(g.length>0){dA("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return dA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),dA(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};aa.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function z6(t,e){var r=this;aa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=FN({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=cge.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function K6(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function FN(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var dA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?dA=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:dA=function(){};Wl.debug=dA});var MN=m((Urt,j6)=>{j6.exports=X6()});var pt=m((Lrt,Z6)=>{Z6.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var qe=m((Prt,y_)=>{"use strict";var $6=Symbol.for("undici.error.UND_ERR"),mt=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[$6]===!0}[$6]=!0},e_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),UN=class extends mt{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[e_]===!0}[e_]=!0},t_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),LN=class extends mt{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[t_]===!0}[t_]=!0},r_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),PN=class extends mt{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[r_]===!0}[r_]=!0},s_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),vN=class extends mt{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[s_]===!0}[s_]=!0},n_=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),ON=class extends mt{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Rpe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(fpe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function kpe(){return"allowed"}function Fpe(){return"success"}function Mpe(){return"success"}function Upe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Lpe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&DS(t.origin)&&!DS(uf(t))&&(e=null);break;case"same-origin":J0(t,uf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function sd(t,e){return t}function Ppe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:sd(t.domainLookupStartTime,r),domainLookupEndTime:sd(t.domainLookupEndTime,r),connectionStartTime:sd(t.connectionStartTime,r),connectionEndTime:sd(t.connectionEndTime,r),secureConnectionStartTime:sd(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function vpe(t){return sd(Ipe.now(),t)}function Ope(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function P5(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function _pe(t){return{referrerPolicy:t.referrerPolicy}}function Hpe(t){let e=t.referrerPolicy;Yc(e);let r=null;if(t.referrer==="client"){let a=R5();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=xS(r),n=xS(r,!0);s.toString().length>4096&&(s=n);let i=J0(t,s),o=cf(s)&&!cf(t.url);switch(e){case"origin":return n??xS(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=uf(t);return J0(s,a)?s:cf(s)&&!cf(a)?"no-referrer":n}default:return o?"no-referrer":n}}function xS(t,e){return Yc(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function cf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function Gpe(t,e){if(V0===void 0)return!0;let r=v5(e);if(r==="no metadata"||r.length===0)return!0;let s=qpe(r),n=Vpe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=V0.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),Jpe(A,a))return!0}return!1}var Ype=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function v5(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Ype.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();F5.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function qpe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function Vpe(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function Jpe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function Wpe(t){}function J0(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function zpe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Kpe(t){return t.controller.state==="aborted"}function Xpe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jpe(t){return ype[t.toLowerCase()]??t}function Zpe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yc(typeof e=="string"),e}var $pe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function O5(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function xme(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Dme(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function Rme(t,e){z0(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&K0(t,Sme,i)||i.position===t.length-4&&K0(t,Tme,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=kme(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let g;c!==null?(u??="text/plain",xme(u)||(u=""),g=new wme([d],c,{type:u})):g=Ime(Buffer.from(d)),z0(j5(A)),z0(typeof g=="string"&&j5(g)||Qme(g)),n.push(yme(A,g,c))}}function kme(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=id(a=>a!==10&&a!==13&&a!==58,t,e);if(o=PS(o,!0,!0,a=>a===9||a===32),!Bme.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,id(a=>a===32||a===9,t,e),Cme(o)){case"content-disposition":{if(r=s=null,!K0(t,Nme,e)||(e.position+=17,r=eH(t,e),r===null))return"failure";if(K0(t,$5,e)){let a=e.position+$5.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=eH(t,e),s===null))return"failure"}break}case"content-type":{let a=id(A=>A!==10&&A!==13,t,e);a=PS(a,!1,!0,A=>A===9||A===32),n=Z5(a);break}case"content-transfer-encoding":{let a=id(A=>A!==10&&A!==13,t,e);a=PS(a,!1,!0,A=>A===9||A===32),i=Z5(a);break}default:id(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function eH(t,e){z0(t[e.position-1]===34);let r=id(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function id(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function PS(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function K0(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}tH.exports={multipartFormDataParser:Rme,validateBoundary:Dme}});var Ad=m((Ast,dH)=>{"use strict";var hf=De(),{ReadableStreamFrom:Fme,isBlobLike:sH,isReadableStreamLike:Mme,readableStreamClose:Ume,createDeferredPromise:Lme,fullyReadBody:Pme,extractMimeType:vme,utf8DecodeBytes:oH}=Us(),{FormData:nH}=df(),{kState:ad}=hA(),{webidl:Ome}=Sr(),{Blob:_me}=b("node:buffer"),vS=b("node:assert"),{isErrored:aH,isDisturbed:Hme}=b("node:stream"),{isArrayBuffer:Gme}=b("node:util/types"),{serializeAMimeType:Yme}=as(),{multipartFormDataParser:qme}=rH(),OS;try{let t=b("node:crypto");OS=e=>t.randomInt(0,e)}catch{OS=t=>Math.floor(Math.random(t))}var X0=new TextEncoder;function Vme(){}var AH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,cH;AH&&(cH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Hme(e)&&!aH(e)&&e.cancel("Response object has been garbage collected").catch(Vme)}));function uH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:sH(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?X0.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>Ume(A))},start(){},type:"bytes"}),vS(Mme(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Gme(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(hf.isFormDataLike(t)){let A=`----formdata-undici-0${`${OS(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=B=>B.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=B=>B.replace(/\r?\n|\r/g,`\r
`),d=[],g=new Uint8Array([13,10]);i=0;let f=!1;for(let[B,E]of t)if(typeof E=="string"){let C=X0.encode(c+`; name="${u(l(B))}"\r
\r
${d(p)}\r
`);g.push(y),i+=y.byteLength}else{let y=Pf.encode(`${c}; name="${u(d(w))}"`+(p.name?`; filename="${u(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
${l(E)}\r
`);d.push(C),i+=C.byteLength}else{let C=X0.encode(`${c}; name="${u(l(B))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);g.push(y,p,h),typeof p.size=="number"?i+=y.byteLength+p.size+h.byteLength:f=!0}let E=Pf.encode(`--${A}--\r
`);g.push(E),i+=E.byteLength,f&&(i=null),n=t,s=async function*(){for(let w of g)w.stream?yield*w.stream():yield w},o=`multipart/form-data; boundary=${A}`}else if(xU(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Zl.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Uae(t)}if((typeof n=="string"||Zl.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:d}=await A.next();if(d)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!MU(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function zae(t,e=!1){return t instanceof ReadableStream&&(kQ(!Zl.isDisturbed(t),"The body has already been consumed."),kQ(!t.locked,"The stream is locked.")),vU(t,e)}function Kae(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function Xae(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function jae(t){return{blob(){return uc(this,r=>{let s=kU(this);return s===null?s="":s&&(s=Vae(s)),new Gae([r],{type:s})},t)},arrayBuffer(){return uc(this,r=>new Uint8Array(r).buffer,t)},text(){return uc(this,FU,t)},json(){return uc(this,$ae,t)},formData(){return uc(this,r=>{let s=kU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Jae(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new RU;return i[lc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new RU;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return uc(this,r=>new Uint8Array(r),t)}}}function Zae(t){Object.assign(t.prototype,jae(t))}async function uc(t,e,r){if(Hae.brandCheck(t,r),PU(t))throw new TypeError("Body is unusable: Body has already been read");Xae(t[lc]);let s=Pae(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[lc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Oae(t[lc].body,i,n),s.promise)}function PU(t){let e=t[lc].body;return e!=null&&(e.stream.locked||Zl.isDisturbed(e.stream))}function $ae(t){return JSON.parse(FU(t))}function kU(t){let e=t[lc].headersList,r=_ae(e);return r==="failure"?null:r}OU.exports={extractBody:vU,safelyExtractBody:zae,cloneBody:Kae,mixinBody:Zae,streamRegistry:LU,hasFinalizationRegistry:UU,bodyUnusable:PU}});var XU=m((gVe,KU)=>{"use strict";var ee=Q("node:assert"),Ae=me(),{channels:_U}=$A(),MQ=fQ(),{RequestContentLengthMismatchError:ba,ResponseContentLengthMismatchError:eAe,RequestAbortedError:JU,HeadersTimeoutError:tAe,HeadersOverflowError:rAe,SocketError:qf,InformationalError:gc,BodyTimeoutError:sAe,HTTPParserError:nAe,ResponseExceededMaxSizeError:iAe}=Se(),{kUrl:WU,kReset:Br,kClient:PQ,kParser:it,kBlocking:td,kRunning:zt,kPending:oAe,kSize:HU,kWriting:co,kQueue:An,kNoRef:$l,kKeepAliveDefaultTimeout:aAe,kHostHeader:AAe,kPendingIdx:cAe,kRunningIdx:Is,kError:Bs,kPipelining:Gf,kSocket:hc,kKeepAliveTimeoutValue:Vf,kMaxHeadersSize:UQ,kKeepAliveMaxTimeout:uAe,kKeepAliveTimeoutThreshold:lAe,kHeadersTimeout:dAe,kBodyTimeout:gAe,kStrictContentLength:OQ,kMaxRequests:GU,kCounter:hAe,kMaxResponseSize:fAe,kOnError:mAe,kResume:Ao,kHTTPContext:zU}=Ze(),Ln=LM(),pAe=Buffer.alloc(0),Of=Buffer[Symbol.species],_f=Ae.addListener,EAe=Ae.removeAllListeners,LQ;async function CAe(){let t=process.env.JEST_WORKER_ID?EQ():void 0,e;try{e=await WebAssembly.compile(OM())}catch{e=await WebAssembly.compile(t||EQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ee(St.ptr===r);let i=s-Pn+vn.byteOffset;return St.onStatus(new Of(vn.buffer,i,n))||0},wasm_on_message_begin:r=>(ee(St.ptr===r),St.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ee(St.ptr===r);let i=s-Pn+vn.byteOffset;return St.onHeaderField(new Of(vn.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ee(St.ptr===r);let i=s-Pn+vn.byteOffset;return St.onHeaderValue(new Of(vn.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ee(St.ptr===r),St.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ee(St.ptr===r);let i=s-Pn+vn.byteOffset;return St.onBody(new Of(vn.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(St.ptr===r),St.onMessageComplete()||0)}})}var vQ=null,_Q=CAe();_Q.catch();var St=null,vn=null,Hf=0,Pn=null,IAe=0,ed=1,fc=2|ed,Yf=4|ed,HQ=8|IAe,GQ=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[UQ])&&e[UQ]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Ln.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[AAe],i?E+=`connection: upgrade\r
`);d.push(C,E,g),typeof E.size=="number"?i+=C.byteLength+E.size+g.byteLength:f=!0}let p=X0.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let B of d)B.stream?yield*B.stream():yield B},o=`multipart/form-data; boundary=${A}`}else if(sH(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(hf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Fme(t)}if((typeof n=="string"||hf.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!aH(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function Jme(t,e=!1){return t instanceof ReadableStream&&(vS(!hf.isDisturbed(t),"The body has already been consumed."),vS(!t.locked,"The stream is locked.")),uH(t,e)}function Wme(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function zme(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Kme(t){return{blob(){return od(this,r=>{let s=iH(this);return s===null?s="":s&&(s=Yme(s)),new _me([r],{type:s})},t)},arrayBuffer(){return od(this,r=>new Uint8Array(r).buffer,t)},text(){return od(this,oH,t)},json(){return od(this,jme,t)},formData(){return od(this,r=>{let s=iH(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=qme(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new nH;return i[ad]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new nH;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return od(this,r=>new Uint8Array(r),t)}}}function Xme(t){Object.assign(t.prototype,Kme(t))}async function od(t,e,r){if(Ome.brandCheck(t,r),lH(t))throw new TypeError("Body is unusable: Body has already been read");zme(t[ad]);let s=Lme(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[ad].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Pme(t[ad].body,i,n),s.promise)}function lH(t){let e=t[ad].body;return e!=null&&(e.stream.locked||hf.isDisturbed(e.stream))}function jme(t){return JSON.parse(oH(t))}function iH(t){let e=t[ad].headersList,r=vme(e);return r==="failure"?null:r}dH.exports={extractBody:uH,safelyExtractBody:Jme,cloneBody:Wme,mixinBody:Xme,streamRegistry:cH,hasFinalizationRegistry:AH,bodyUnusable:lH}});var yH=m((cst,QH)=>{"use strict";var ce=b("node:assert"),Ce=De(),{channels:hH}=Kl(),_S=BS(),{RequestContentLengthMismatchError:qc,ResponseContentLengthMismatchError:Zme,RequestAbortedError:CH,HeadersTimeoutError:$me,HeadersOverflowError:eEe,SocketError:rC,InformationalError:cd,BodyTimeoutError:tEe,HTTPParserError:rEe,ResponseExceededMaxSizeError:sEe}=qe(),{kUrl:IH,kReset:As,kClient:qS,kParser:St,kBlocking:pf,kRunning:kr,kPending:nEe,kSize:gH,kWriting:fA,kQueue:di,kNoRef:gf,kKeepAliveDefaultTimeout:iEe,kHostHeader:oEe,kPendingIdx:aEe,kRunningIdx:Cn,kError:In,kPipelining:eC,kSocket:ud,kKeepAliveTimeoutValue:sC,kMaxHeadersSize:HS,kKeepAliveMaxTimeout:AEe,kKeepAliveTimeoutThreshold:cEe,kHeadersTimeout:uEe,kBodyTimeout:lEe,kStrictContentLength:VS,kMaxRequests:fH,kCounter:dEe,kMaxResponseSize:hEe,kOnError:gEe,kResume:gA,kHTTPContext:BH}=pt(),Ki=c5(),fEe=Buffer.alloc(0),j0=Buffer[Symbol.species],Z0=Ce.addListener,pEe=Ce.removeAllListeners,GS;async function mEe(){let t=process.env.JEST_WORKER_ID?bS():void 0,e;try{e=await WebAssembly.compile(d5())}catch{e=await WebAssembly.compile(t||bS())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ce(sr.ptr===r);let i=s-ji+Xi.byteOffset;return sr.onStatus(new j0(Xi.buffer,i,n))||0},wasm_on_message_begin:r=>(ce(sr.ptr===r),sr.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ce(sr.ptr===r);let i=s-ji+Xi.byteOffset;return sr.onHeaderField(new j0(Xi.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ce(sr.ptr===r);let i=s-ji+Xi.byteOffset;return sr.onHeaderValue(new j0(Xi.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ce(sr.ptr===r),sr.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ce(sr.ptr===r);let i=s-ji+Xi.byteOffset;return sr.onBody(new j0(Xi.buffer,i,n))||0},wasm_on_message_complete:r=>(ce(sr.ptr===r),sr.onMessageComplete()||0)}})}var YS=null,JS=mEe();JS.catch();var sr=null,Xi=null,$0=0,ji=null,EEe=0,ff=1,ld=2|ff,tC=4|ff,WS=8|EEe,zS=class{constructor(e,r,{exports:s}){ce(Number.isFinite(e[HS])&&e[HS]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Ki.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[oEe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Gf]&&!h[Br]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return _U.sendHeaders.hasSubscribers&&_U.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?qU(f,null,t,e,h,u,E,d):Ae.isBuffer(A)?qU(f,A,t,e,h,u,E,d):Ae.isBlobLike(A)?typeof A.stream=="function"?VU(f,A.stream(),t,e,h,u,E,d):NAe(f,A,t,e,h,u,E,d):Ae.isStream(A)?wAe(f,A,t,e,h,u,E,d):Ae.isIterable(A)?VU(f,A,t,e,h,u,E,d):ee(!1),!0}function wAe(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===0,"stream body cannot be pipelined");let A=!1,c=new Jf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(E){Ae.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new JU;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ee(n.destroyed||n[co]&&r[zt]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ae.destroy(e,f):Ae.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function qU(t,e,r,s,n,i,o,a){try{e?Ae.isBuffer(e)&&(ee(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`:t[eC]&&!g[As]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let B=0;B<c.length;B+=2){let E=c[B+0],C=c[B+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)p+=`${E}: ${C[w]}\r
`;else p+=`${E}: ${C}\r
`}return hH.sendHeaders.hasSubscribers&&hH.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?mH(f,null,t,e,g,u,p,l):Ce.isBuffer(A)?mH(f,A,t,e,g,u,p,l):Ce.isBlobLike(A)?typeof A.stream=="function"?EH(f,A.stream(),t,e,g,u,p,l):bEe(f,A,t,e,g,u,p,l):Ce.isStream(A)?yEe(f,A,t,e,g,u,p,l):Ce.isIterable(A)?EH(f,A,t,e,g,u,p,l):ce(!1),!0}function yEe(t,e,r,s,n,i,o,a){ce(i!==0||r[kr]===0,"stream body cannot be pipelined");let A=!1,c=new nC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ce.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",g)}),!A){let f=new CH;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,ce(n.destroyed||n[fA]&&r[kr]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ce.destroy(e,f):Ce.destroy(e)}};e.on("data",u).on("end",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(()=>g(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>g(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function mH(t,e,r,s,n,i,o,a){try{e?Ce.isBuffer(e)&&(ce(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Br]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[As]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(ee(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Ao]()}catch(A){t(A)}}async function NAe(t,e,r,s,n,i,o,a){ee(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ba;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(ce(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[gA]()}catch(A){t(A)}}async function bEe(t,e,r,s,n,i,o,a){ce(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new qc;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Br]=!0),r[Ao]()}catch(A){t(A)}}async function VU(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{ee(A===null),n[Bs]?h(n[Bs]):A=g});n.on("close",c).on("drain",c);let d=new Jf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Bs])throw n[Bs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Jf=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[co]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bs])throw r[Bs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[OQ])throw new ba;process.emitWarning(new ba)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Br]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[As]=!0),r[gA]()}catch(A){t(A)}}async function EH(t,e,r,s,n,i,o,a){ce(i!==0||r[kr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{ce(A===null),n[In]?g(n[In]):A=d});n.on("close",c).on("drain",c);let l=new nC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[In])throw n[In];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var nC=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[fA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[In])throw r[In];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[VS])throw new qc;process.emitWarning(new qc)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[As]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[it].timeout&&r[it].timeoutType===fc&&r[it].timeout.refresh&&r[it].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[co]=!1,e[Bs])throw e[Bs];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[St].timeout&&r[St].timeoutType===ld&&r[St].timeout.refresh&&r[St].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[fA]=!1,e[In])throw e[In];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[OQ])throw new ba;process.emitWarning(new ba)}e[it].timeout&&e[it].timeoutType===fc&&e[it].timeout.refresh&&e[it].timeout.refresh(),s[Ao]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[co]=!1,e&&(ee(s[zt]<=1,"pipeline should only contain this request"),n(e))}};KU.exports=BAe});var nL=m((hVe,sL)=>{"use strict";var Qs=Q("node:assert"),{pipeline:SAe}=Q("node:stream"),Ee=me(),{RequestContentLengthMismatchError:YQ,RequestAbortedError:jU,SocketError:rd,InformationalError:qQ}=Se(),{kUrl:Wf,kReset:Kf,kClient:mc,kRunning:Xf,kPending:TAe,kQueue:uo,kPendingIdx:VQ,kRunningIdx:cn,kError:ln,kSocket:kt,kStrictContentLength:DAe,kOnError:JQ,kMaxConcurrentStreams:rL,kHTTP2Session:un,kResume:lo,kSize:xAe,kHTTPContext:RAe}=Ze(),wi=Symbol("open streams"),ZU,$U=!1,zf;try{zf=Q("node:http2")}catch{zf={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:kAe,HTTP2_HEADER_METHOD:FAe,HTTP2_HEADER_PATH:MAe,HTTP2_HEADER_SCHEME:UAe,HTTP2_HEADER_CONTENT_LENGTH:LAe,HTTP2_HEADER_EXPECT:vAe,HTTP2_HEADER_STATUS:PAe}}=zf;function OAe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function _Ae(t,e){t[kt]=e,$U||($U=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zf.connect(t[Wf],{createConnection:()=>e,peerMaxConcurrentStreams:t[rL]});r[wi]=0,r[mc]=t,r[kt]=e,Ee.addListener(r,"error",GAe),Ee.addListener(r,"frameError",YAe),Ee.addListener(r,"end",qAe),Ee.addListener(r,"goaway",VAe),Ee.addListener(r,"close",function(){let{[mc]:n}=this,{[kt]:i}=n,o=this[kt][ln]||this[ln]||new rd("closed",Ee.getSocketInfo(i));if(n[un]=null,n.destroyed){Qs(n[TAe]===0);let a=n[uo].splice(n[cn]);for(let A=0;A<a.length;A++){let c=a[A];Ee.errorRequest(n,c,o)}}}),r.unref(),t[un]=r,e[un]=r,Ee.addListener(e,"error",function(n){Qs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ln]=n,this[mc][JQ](n)}),Ee.addListener(e,"end",function(){Ee.destroy(this,new rd("other side closed",Ee.getSocketInfo(this)))}),Ee.addListener(e,"close",function(){let n=this[ln]||new rd("closed",Ee.getSocketInfo(this));t[kt]=null,this[un]!=null&&this[un].destroy(n),t[VQ]=t[cn],Qs(t[Xf]===0),t.emit("disconnect",t[Wf],[t],n),t[lo]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return WAe(t,...n)},resume(){HAe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function HAe(t){let e=t[kt];e?.destroyed===!1&&(t[xAe]===0&&t[rL]===0?(e.unref(),t[un].unref()):(e.ref(),t[un].ref()))}function GAe(t){Qs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kt][ln]=t,this[mc][JQ](t)}function YAe(t,e,r){if(r===0){let s=new qQ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kt][ln]=s,this[mc][JQ](s)}}function qAe(){let t=new rd("other side closed",Ee.getSocketInfo(this[kt]));this.destroy(t),Ee.destroy(this[kt],t)}function VAe(t){let e=this[ln]||new rd(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ee.getSocketInfo(this)),r=this[mc];if(r[kt]=null,r[RAe]=null,this[un]!=null&&(this[un].destroy(e),this[un]=null),Ee.destroy(this[kt],e),r[cn]<r[uo].length){let s=r[uo][r[cn]];r[uo][r[cn]++]=null,Ee.errorRequest(r,s,e),r[VQ]=r[cn]}Qs(r[Xf]===0),r.emit("disconnect",r[Wf],[r],e),r[lo]()}function JAe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function WAe(t,e){let r=t[un],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ee.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let D=0;D<c.length;D+=2){let U=c[D+0],P=c[D+1];if(Array.isArray(P))for(let k=0;k<P.length;k++)d[U]?d[U]+=`,${P[k]}`:d[U]=P[k];else d[U]=P}let g,{hostname:h,port:f}=t[Wf];d[kAe]=i||`${h}${f?`:${f}`:""}`,d[FAe]=s;let E=D=>{e.aborted||e.completed||(D=D||new jU,Ee.errorRequest(t,e,D),g!=null&&Ee.destroy(g,D),Ee.destroy(u,D),t[uo][t[cn]++]=null,t[lo]())};try{e.onConnect(E)}catch(D){Ee.errorRequest(t,e,D)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(d,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[wi],t[uo][t[cn]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[wi],t[uo][t[cn]++]=null}),g.once("close",()=>{r[wi]-=1,r[wi]===0&&r.unref()}),!0;d[MAe]=n,d[UAe]="https";let w=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let p=Ee.bodyLength(u);if(Ee.isFormDataLike(u)){ZU??=dc().extractBody;let[D,U]=ZU(u);d["content-type"]=U,u=D.stream,p=D.length}if(p==null&&(p=e.contentLength),(p===0||!w)&&(p=null),JAe(s)&&p>0&&e.contentLength!=null&&e.contentLength!==p){if(t[DAe])return Ee.errorRequest(t,e,new YQ),!1;process.emitWarning(new YQ)}p!=null&&(Qs(u,"no body must not have content length"),d[LAe]=`${p}`),r.ref();let y=s==="GET"||s==="HEAD"||u===null;return a?(d[vAe]="100-continue",g=r.request(d,{endStream:y,signal:A}),g.once("continue",N)):(g=r Line truncated
`,this[Cce]=A??3e5,this[Ece]=n??3e5,this[Ice]=y??!0,this[Bce]=D,this[XQ]=P,this[ho]=null,this[Nce]=O>-1?O:-1,this[Tce]=Ye??100,this[ht]=null,this[dn]=[],this[Si]=0,this[gn]=0,this[od]=fe=>ZQ(this,fe),this[Sce]=fe=>mL(this,fe)}get pipelining(){return this[em]}set pipelining(e){this[em]=e,this[od](!0)}get[cd](){return this[dn].length-this[gn]}get[Ad](){return this[gn]-this[Si]}get[ad](){return this[dn].length-this[Si]}get[lce](){return!!this[ht]&&!this[Ec]&&!this[ht].destroyed}get[KQ](){return!!(this[ht]?.busy(null)||this[ad]>=(fL(this)||1)||this[cd]>0)}[uce](e){pL(this),this.once("connect",e)}[wce](e,r){let s=e.origin||this[_n].origin,n=new nce(s,e,r);return this[dn].push(n),this[Na]||(wa.bodyLength(n.body)==null&&wa.isIterable(n.body)?(this[Na]=1,queueMicrotask(()=>ZQ(this))):this[od](!0)),this[Na]&&this[fo]!==2&&this[KQ]&&(this[fo]=2),this[fo]<2}async[yce](){return new Promise(e=>{this[ad]?this[ho]=e:e(null)})}async[bce](e){return new Promise(r=>{let s=this[dn].splice(this[gn]);for(let i=0;i<s.length;i++){let o=s[i];wa.errorRequest(this,o,e)}let n=()=>{this[ho]&&(this[ho](),this[ho]=null),r(null)};this[ht]?(this[ht].destroy(e,n),this[ht]=null):queueMicrotask(n),this[od]()})}},Rce=$f();function mL(t,e){if(t[Ad]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ni(t[gn]===t[Si]);let r=t[dn].splice(t[Si]);for(let s=0;s<r.length;s++){let n=r[s];wa.errorRequest(t,n,e)}Ni(t[ad]===0)}}async function pL(t){Ni(!t[Ec]),Ni(!t[ht]);let{host:e,hostname:r,protocol:s,port:n}=t[_n];if(r[0]==="["){let i=r.indexOf("]");Ni(i!==-1);let o=r.substring(1,i);Ni(hL.isIP(o)),r=o}t[Ec]=!0,pc.beforeConnect.hasSubscribers&&pc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[go],localAddress:t[id]},connector:t[nd]});try{let i=await new Promise((o,a)=>{t[nd]({host:e,hostname:r,protocol:s,port:n,servername:t[go],localAddress:t[id]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){wa.destroy(i.on("error",dL),new ace);return}Ni(i);try{t[ht]=i.alpnProtocol==="h2"?await xce(t,i):await Dce(t,i)}catch(o){throw i.destroy().on("error",dL),o}t[Ec]=!1,i[Qce]=0,i[XQ]=t[XQ],i[cce]=t,i[gce]=null,pc.connected.hasSubscribers&&pc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[go],localAddress:t[id]},connector:t[nd],socket:i}),t.emit("connect",t[_n],[t])}catch(i){if(t.destroyed)return;if(t[Ec]=!1,pc.connectError.hasSubscribers&&pc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[go],localAddress:t[id]},connector:t[nd],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ni(t[Ad]===0);t[cd]>0&&t[dn][t[gn]].servername===t[go];){let o=t[dn][t[gn]++];wa.errorRequest(t,o,i)}else mL(t,i);t.emit("connectionError",t[_n],[t],i)}t[od]()}function gL(t){t[fo]=0,t.emit("drain",t[_n],[t])}function ZQ(t,e){t[Na]!==2&&(t[Na]=2,kce(t,e),t[Na]=0,t[Si]>256&&(t[dn].splice(0,t[Si]),t[gn]-=t[Si],t[Si]=0))}function kce(t,e){for(;;){if(t.destroyed){Ni(t[cd]===0);return}if(t[ho]&&!t[ad]){t[ho](),t[ho]=null;return}if(t[ht]&&t[ht].resume(),t[KQ])t[fo]=2;else if(t[fo]===2){e?(t[fo]=1,queueMicrotask(()=>gL(t))):gL(t);continue}if(t[cd]===0||t[Ad]>=(fL(t)||1))return;let r=t[dn][t[gn]];if(t[_n].protocol==="https:"&&t[go]!==r.servername){if(t[Ad]>0)return;t[go]=r.servername,t[ht]?.destroy(new oce("servername changed"),()=>{t[ht]=null,ZQ(t)})}if(t[Ec])return;if(!t[ht]){pL(t);return}if(t[ht].destroyed||t[ht].busy(r))return;!r.aborted&&t[ht].write(r)?t[gn]++:t[dn].splice(t[gn],1)}}EL.exports=jQ});var $Q=m((CVe,CL)=>{"use strict";var tm=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};CL.exports=class{constructor(){this.head=this.tail=new tm}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tm),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var BL=m((IVe,IL)=>{var{kFree:Fce,kConnected:Mce,kPending:Uce,kQueued:Lce,kRunning:vce,kSize:Pce}=Ze(),Sa=Symbol("pool"),ey=class{constructor(e){this[Sa]=e}get connected(){return this[Sa][Mce]}get free(){return this[Sa][Fce]}get pending(){return this[Sa][Uce]}get queued(){return this[Sa][Lce]}get running(){return this[Sa][vce]}get size(){return this[Sa][Pce]}};IL.exports=ey});var oy=m((BVe,RL)=>{"use strict";var Oce=sc(),_ce=$Q(),{kConnected:ty,kSize:QL,kRunning:yL,kPending:bL,kQueued:ud,kBusy:Hce,kFree:Gce,kUrl:Yce,kClose:qce,kDestroy:Vce,kDispatch:Jce}=Ze(),Wce=BL(),Qr=Symbol("clients"),Ar=Symbol("needDrain"),ld=Symbol("queue"),ry=Symbol("closed resolve"),sy=Symbol("onDrain"),wL=Symbol("onConnect"),NL=Symbol("onDisconnect"),SL=Symbol("onConnectionError"),ny=Symbol(" Line truncated
`,"latin1"),r!==null&&n!==r){if(s[VS])throw new qc;process.emitWarning(new qc)}e[St].timeout&&e[St].timeoutType===ld&&e[St].timeout.refresh&&e[St].timeout.refresh(),s[gA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[fA]=!1,e&&(ce(s[kr]<=1,"pipeline should only contain this request"),n(e))}};QH.exports=CEe});var RH=m((ust,DH)=>{"use strict";var Bn=b("node:assert"),{pipeline:wEe}=b("node:stream"),Fe=De(),{RequestContentLengthMismatchError:KS,RequestAbortedError:bH,SocketError:mf,InformationalError:XS}=qe(),{kUrl:iC,kReset:aC,kClient:dd,kRunning:AC,kPending:NEe,kQueue:pA,kPendingIdx:jS,kRunningIdx:hi,kError:fi,kSocket:dr,kStrictContentLength:SEe,kOnError:ZS,kMaxConcurrentStreams:xH,kHTTP2Session:gi,kResume:mA,kSize:TEe,kHTTPContext:xEe}=pt(),ha=Symbol("open streams"),wH,NH=!1,oC;try{oC=b("node:http2")}catch{oC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:DEe,HTTP2_HEADER_METHOD:REe,HTTP2_HEADER_PATH:kEe,HTTP2_HEADER_SCHEME:FEe,HTTP2_HEADER_CONTENT_LENGTH:MEe,HTTP2_HEADER_EXPECT:UEe,HTTP2_HEADER_STATUS:LEe}}=oC;function PEe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function vEe(t,e){t[dr]=e,NH||(NH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=oC.connect(t[iC],{createConnection:()=>e,peerMaxConcurrentStreams:t[xH]});r[ha]=0,r[dd]=t,r[dr]=e,Fe.addListener(r,"error",_Ee),Fe.addListener(r,"frameError",HEe),Fe.addListener(r,"end",GEe),Fe.addListener(r,"goaway",YEe),Fe.addListener(r,"close",function(){let{[dd]:n}=this,{[dr]:i}=n,o=this[dr][fi]||this[fi]||new mf("closed",Fe.getSocketInfo(i));if(n[gi]=null,n.destroyed){Bn(n[NEe]===0);let a=n[pA].splice(n[hi]);for(let A=0;A<a.length;A++){let c=a[A];Fe.errorRequest(n,c,o)}}}),r.unref(),t[gi]=r,e[gi]=r,Fe.addListener(e,"error",function(n){Bn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fi]=n,this[dd][ZS](n)}),Fe.addListener(e,"end",function(){Fe.destroy(this,new mf("other side closed",Fe.getSocketInfo(this)))}),Fe.addListener(e,"close",function(){let n=this[fi]||new mf("closed",Fe.getSocketInfo(this));t[dr]=null,this[gi]!=null&&this[gi].destroy(n),t[jS]=t[hi],Bn(t[AC]===0),t.emit("disconnect",t[iC],[t],n),t[mA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return VEe(t,...n)},resume(){OEe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function OEe(t){let e=t[dr];e?.destroyed===!1&&(t[TEe]===0&&t[xH]===0?(e.unref(),t[gi].unref()):(e.ref(),t[gi].ref()))}function _Ee(t){Bn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][fi]=t,this[dd][ZS](t)}function HEe(t,e,r){if(r===0){let s=new XS(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[dr][fi]=s,this[dd][ZS](s)}}function GEe(){let t=new mf("other side closed",Fe.getSocketInfo(this[dr]));this.destroy(t),Fe.destroy(this[dr],t)}function YEe(t){let e=this[fi]||new mf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Fe.getSocketInfo(this)),r=this[dd];if(r[dr]=null,r[xEe]=null,this[gi]!=null&&(this[gi].destroy(e),this[gi]=null),Fe.destroy(this[dr],e),r[hi]<r[pA].length){let s=r[pA][r[hi]];r[pA][r[hi]++]=null,Fe.errorRequest(r,s,e),r[jS]=r[hi]}Bn(r[AC]===0),r.emit("disconnect",r[iC],[r],e),r[mA]()}function qEe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function VEe(t,e){let r=t[gi],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let x=0;x<c.length;x+=2){let k=c[x+0],O=c[x+1];if(Array.isArray(O))for(let F=0;F<O.length;F++)l[k]?l[k]+=`,${O[F]}`:l[k]=O[F];else l[k]=O}let d,{hostname:g,port:f}=t[iC];l[DEe]=i||`${g}${f?`:${f}`:""}`,l[REe]=s;let p=x=>{e.aborted||e.completed||(x=x||new bH,Fe.errorRequest(t,e,x),d!=null&&Fe.destroy(d,x),Fe.destroy(u,x),t[pA][t[hi]++]=null,t[mA]())};try{e.onConnect(p)}catch(x){Fe.errorRequest(t,e,x)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ha],t[pA][t[hi]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ha],t[pA][t[hi]++]=null}),d.once("close",()=>{r[ha]-=1,r[ha]===0&&r.unref()}),!0;l[kEe]=n,l[FEe]="https";let B=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=Fe.bodyLength(u);if(Fe.isFormDataLike(u)){wH??=Ad().extractBody;let[x,k]=wH(u);l["content-type"]=k,u=x.stream,E=x.length}if(E==null&&(E=e.contentLength),(E===0||!B)&&(E=null),qEe(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[SEe])return Fe.errorRequest(t,e,new KS),!1;process.emitWarning(new KS)}E!=null&&(Bn(u,"no body must not have content length"),l[MEe]=`${E}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[UEe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",w)):(d=r Line truncated
`,this[m0e]=A??3e5,this[p0e]=n??3e5,this[E0e]=C??!0,this[C0e]=x,this[rT]=O,this[CA]=null,this[b0e]=_>-1?_:-1,this[N0e]=at??100,this[Gt]=null,this[pi]=[],this[fa]=0,this[mi]=0,this[Bf]=xe=>nT(this,xe),this[w0e]=xe=>YH(this,xe)}get pipelining(){return this[dC]}set pipelining(e){this[dC]=e,this[Bf](!0)}get[bf](){return this[pi].length-this[mi]}get[yf](){return this[mi]-this[fa]}get[Qf](){return this[pi].length-this[fa]}get[c0e](){return!!this[Gt]&&!this[gd]&&!this[Gt].destroyed}get[tT](){return!!(this[Gt]?.busy(null)||this[Qf]>=(GH(this)||1)||this[bf]>0)}[A0e](e){qH(this),this.once("connect",e)}[y0e](e,r){let s=e.origin||this[$i].origin,n=new r0e(s,e,r);return this[pi].push(n),this[Jc]||(Vc.bodyLength(n.body)==null&&Vc.isIterable(n.body)?(this[Jc]=1,queueMicrotask(()=>nT(this))):this[Bf](!0)),this[Jc]&&this[IA]!==2&&this[tT]&&(this[IA]=2),this[IA]<2}async[B0e](){return new Promise(e=>{this[Qf]?this[CA]=e:e(null)})}async[Q0e](e){return new Promise(r=>{let s=this[pi].splice(this[mi]);for(let i=0;i<s.length;i++){let o=s[i];Vc.errorRequest(this,o,e)}let n=()=>{this[CA]&&(this[CA](),this[CA]=null),r(null)};this[Gt]?(this[Gt].destroy(e,n),this[Gt]=null):queueMicrotask(n),this[Bf]()})}},x0e=lC();function YH(t,e){if(t[yf]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ga(t[mi]===t[fa]);let r=t[pi].splice(t[fa]);for(let s=0;s<r.length;s++){let n=r[s];Vc.errorRequest(t,n,e)}ga(t[Qf]===0)}}async function qH(t){ga(!t[gd]),ga(!t[Gt]);let{host:e,hostname:r,protocol:s,port:n}=t[$i];if(r[0]==="["){let i=r.indexOf("]");ga(i!==-1);let o=r.substring(1,i);ga(HH.isIP(o)),r=o}t[gd]=!0,hd.beforeConnect.hasSubscribers&&hd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[EA],localAddress:t[If]},connector:t[Cf]});try{let i=await new Promise((o,a)=>{t[Cf]({host:e,hostname:r,protocol:s,port:n,servername:t[EA],localAddress:t[If]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Vc.destroy(i.on("error",OH),new i0e);return}ga(i);try{t[Gt]=i.alpnProtocol==="h2"?await T0e(t,i):await S0e(t,i)}catch(o){throw i.destroy().on("error",OH),o}t[gd]=!1,i[I0e]=0,i[rT]=t[rT],i[a0e]=t,i[l0e]=null,hd.connected.hasSubscribers&&hd.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[EA],localAddress:t[If]},connector:t[Cf],socket:i}),t.emit("connect",t[$i],[t])}catch(i){if(t.destroyed)return;if(t[gd]=!1,hd.connectError.hasSubscribers&&hd.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[EA],localAddress:t[If]},connector:t[Cf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ga(t[yf]===0);t[bf]>0&&t[pi][t[mi]].servername===t[EA];){let o=t[pi][t[mi]++];Vc.errorRequest(t,o,i)}else YH(t,i);t.emit("connectionError",t[$i],[t],i)}t[Bf]()}function _H(t){t[IA]=0,t.emit("drain",t[$i],[t])}function nT(t,e){t[Jc]!==2&&(t[Jc]=2,D0e(t,e),t[Jc]=0,t[fa]>256&&(t[pi].splice(0,t[fa]),t[mi]-=t[fa],t[fa]=0))}function D0e(t,e){for(;;){if(t.destroyed){ga(t[bf]===0);return}if(t[CA]&&!t[Qf]){t[CA](),t[CA]=null;return}if(t[Gt]&&t[Gt].resume(),t[tT])t[IA]=2;else if(t[IA]===2){e?(t[IA]=1,queueMicrotask(()=>_H(t))):_H(t);continue}if(t[bf]===0||t[yf]>=(GH(t)||1))return;let r=t[pi][t[mi]];if(t[$i].protocol==="https:"&&t[EA]!==r.servername){if(t[yf]>0)return;t[EA]=r.servername,t[Gt]?.destroy(new n0e("servername changed"),()=>{t[Gt]=null,nT(t)})}if(t[gd])return;if(!t[Gt]){qH(t);return}if(t[Gt].destroyed||t[Gt].busy(r))return;!r.aborted&&t[Gt].write(r)?t[mi]++:t[pi].splice(t[mi],1)}}VH.exports=sT});var iT=m((fst,JH)=>{"use strict";var hC=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};JH.exports=class{constructor(){this.head=this.tail=new hC}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new hC),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zH=m((pst,WH)=>{var{kFree:R0e,kConnected:k0e,kPending:F0e,kQueued:M0e,kRunning:U0e,kSize:L0e}=pt(),Wc=Symbol("pool"),oT=class{constructor(e){this[Wc]=e}get connected(){return this[Wc][k0e]}get free(){return this[Wc][R0e]}get pending(){return this[Wc][F0e]}get queued(){return this[Wc][M0e]}get running(){return this[Wc][U0e]}get size(){return this[Wc][L0e]}};WH.exports=oT});var dT=m((mst,n9)=>{"use strict";var P0e=$l(),v0e=iT(),{kConnected:aT,kSize:KH,kRunning:XH,kPending:jH,kQueued:wf,kBusy:O0e,kFree:_0e,kUrl:H0e,kClose:G0e,kDestroy:Y0e,kDispatch:q0e}=pt(),V0e=zH(),cs=Symbol("clients"),Vr=Symbol("needDrain"),Nf=Symbol("queue"),AT=Symbol("closed resolve"),cT=Symbol("onDrain"),ZH=Symbol("onConnect"),$H=Symbol("onDisconnect"),e9=Symbol("onConnectionError"),uT=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};vP.exports=ob});var Cm=m((KVe,GP)=>{"use strict";var OP=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Cde}=Se(),Ide=Bc();HP()===void 0&&_P(new Ide);function _P(t){if(!t||typeof t.dispatch!="function")throw new Cde("Argument agent must implement Agent");Object.defineProperty(globalThis,OP,{value:t,writable:!0,enumerable:!1,configurable:!1})}function HP(){return globalThis[OP]}GP.exports={setGlobalDispatcher:_P,getGlobalDispatcher:HP}});var Im=m((jVe,YP)=>{"use strict";YP.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var VP=m((ZVe,qP)=>{"use strict";var Bde=Zf();qP.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new Bde(r,o,n,i);return r(a,A)}}});var WP=m(($Ve,JP)=>{"use strict";var Qde=cm();JP.exports=t=>e=>function(s,n){return e(s,new Qde({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var KP=m((eJe,zP)=>{"use strict";var yde=me(),{InvalidArgumentError:bde,RequestAbortedError:wde}=Se(),Nde=Im(),ab=class extends Nde{#e=1024*1024;#t=null;#r=!1;#s=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new bde("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#s=!0,this.#n=e}onHeaders(e,r,s,n){let o=yde.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new wde(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Sde({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new ab({maxSize:i},n);return e(s,o)}}zP.exports=Sde});var ZP=m((tJe,jP)=>{"use strict";var{isIP:Tde}=Q("node:net"),{lookup:Dde}=Q("node:dns"),xde=Im(),{InvalidArgumentError:Rc,InformationalError:Rde}=Se(),XP=Math.pow(2,31)-1,Ab=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#s,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Rde("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#s(e,r,s){Dde(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===XP?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===XP?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new cb(this,e,r)}},cb=class extends xde{#e=null;#t=null;#r=null;#s=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#s=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#s.onError(r);le Line truncated
${i}`;break;case"retry":R4(i)&&(r[n]=i);break;case"id":k4(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&R4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&k4(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};F4.exports={EventSourceStream:zb}});var G4=m((kJe,H4)=>{"use strict";var{pipeline:Hme}=Q("node:stream"),{fetching:Gme}=bd(),{makeRequest:Yme}=Mc(),{webidl:ki}=Yt(),{EventSourceStream:qme}=M4(),{parseMIMEType:Vme}=Ir(),{createFastMessageEvent:Jme}=_c(),{isNetworkError:U4}=Qd(),{delay:Wme}=Jb(),{kEnumerableProperty:Ga}=me(),{environmentSettingsObject:L4}=Yr(),v4=!1,P4=3e3,vd=0,O4=1,Pd=2,zme="anonymous",Kme="use-credentials",Vc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=vd;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),ki.util.markAsUncloneable(this);let s="EventSource constructor";ki.argumentLengthCheck(arguments,1,s),v4||(v4=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ki.converters.USVString(e,s,"url"),r=ki.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:P4};let n=L4,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=zme;r.withCredentials&&(o=Kme,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=L4.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Yme(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===Pd)return;this.#s=vd;let e={request:this.#i,dispatcher:this.#a},r=s=>{U4(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(U4(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?Vme(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=O4,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new qme({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Jme(A.type,A.options))}});Hme(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Gme(e)}async#c(){this.#s!==Pd&&(this.#s=vd,this.dispatchEvent(new Event("error")),await Wme(this.#o.reconnectionTime),this.#s===vd&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){ki.brandCheck(this,t),this.#s!==Pd&&(this.#s=Pd,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},_4={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:vd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:O4,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Pd,writable:!1}};Object.defineProperties(Vc,_4);Object.defineProperties(Vc.prototype,_4);Object.defineProperties(Vc.prototype,{close:Ga,onerror:Ga,onmessage:Ga,onopen:Ga,readyState:Ga,url:Ga,withCredentials:Ga});ki.converters.EventSourceInitDict=ki.dictionaryConverter([{key:"withCredentials",converter:ki.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:ki.converters.any}]);H4.exports={EventSource:Vc,defaultReconnectionTime:P4}});var Ap=m((FJe,re)=>{"use strict";var Xme=Cc(),Y4=Gl(),jme=Ic(),Zme=_L(),$me=Bc(),epe=Cy(),tpe=uv(),rpe=mv(),q4=Se(),ap=me(),{InvalidArgumentError:op}=q4,Jc=rP(),spe=ql(),npe=eb(),ipe=PP(),ope=sb(),ape=Hy(),Ape=cm(),{getGlobalDispatcher:V4,setGlobalDispatcher:cpe}=Cm(),upe=Im(),lpe=Zf(),dpe=$f();Object.assign(Y4.prototype,Jc);re.exports.Dispatcher=Y4;re.exports.Client=Xme;re.exports.Pool=jme;re.exports.BalancedPool=Zme;re.exports.Agent=$me;re.exports.ProxyAgent=epe;re.exports.EnvHttpProxyAgent=tpe;re.exports.RetryAgent=rpe;re.exports.RetryHandle Line truncated
%s`,U,U,y,s);var P=y.type==="*"?v1:y.type==="?"?L1:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+P+"\\("+U}f(),i&&(s+="\\\\");var k=!1;switch(s.charAt(0)){case"[":case".":case"(":k=!0}for(var O=a.length-1;O>-1;O--){var _=a[O],Ne=s.slice(0,_.reStart),Ye=s.slice(_.reStart,_.reEnd-8),ue=s.slice(_.reEnd-8,_.reEnd),fe=s.slice(_.reEnd);ue+=fe;var Ie=Ne.split("(").length-1,dt=fe;for(E=0;E<Ie;E++)dt=dt.replace(/\)[+*?]?/,"");fe=dt;var Es="";fe===""&&e!==Qp&&(Es="$");var Ea=Ne+Ye+fe+Es+ue;s=Ea}if(s!==""&&n&&(s="(?=.)"+s),k&&(s=g+s),e===Qp)return[s,n];if(!n)return ACe(t);var Ca=r.nocase?"i":"";try{var CB=new RegExp("^"+s+"$",Ca)}catch{return new RegExp("$.")}return CB._glob=t,CB._src=s,CB}Zr.makeRe=function(t,e){return new bt(t,e||{}).makeRe()};bt.prototype.makeRe=aCe;function aCe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?v1:e.dot?$0e:eCe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Va?r:typeof o=="string"?cCe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}Zr.match=function(t,e,r){r=r||{};var s=new bt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};bt.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;Wd.sep!=="/"&&(e=e.split(Wd.sep).join("/")),e=e.split(S6),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};bt.prototype.matchOne=function(t,e,r){return e.indexOf(Va)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bt.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Va){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Va){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var d=t.slice(s,s+A.length);if(!this._matchOne(d,A,r,0,0))return!1;s+=A.length}var g=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))g=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;g=u.length+1}}if(!c.length){var f=!!g;for(i=s;i<t.length-g;i++){var E=String(t[i]);if(f=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return r||f}for(var w=[[[],0]],p=w[0],y=0,N=[0],D=0;D<c.length;D++){var U=c[D];U===Va?(N.push(y),p=[[],0],w.push(p)):(p[0].push(U),y++)}for(var P=w.length-1,k=t.length-g,O=0;O<w.length;O++)w[O][1]=k-(N[P--]+w[O][0].length);return!!this._matchGlobStarBodySections(t,w,s,0,r,0,!!g)};bt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],d=a[1];r<=d;){var g=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(g&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};bt.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===Va)return!1;var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function ACe(t){return t.replace(/\\(.)/g,"$1")}function cCe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var zd=m((qWe,k6)=>{"use strict";var hCe="2.0.0",fCe=Number.MAX_SAFE_INTEGER||9007199254740991,mCe=16,pCe=250,ECe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];k6.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:mCe,MAX_SAFE_BUILD_LENGTH:pCe,MAX_SAFE_INTEGER:fCe,RELEASE_TYPES:ECe,SEMVER_SPEC_VERSION:hCe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Kd=m((VWe,F6)=>{"use strict";var CCe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};F6.exports=CCe});var jc=m((qn,M6)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:P1,MAX_SAFE_BUILD_LENGTH:ICe,MAX_LENGTH:BCe}=zd(),QCe=Kd();qn=M6.exports={};var yCe=qn.re=[],bCe=qn.safeRe=[],G=qn.src=[],wCe=qn.safeSrc=[],Y=qn.t={},NCe=0,O1="[a-zA-Z0-9-]",SCe=[["\\s",1],["\\d",BCe],[O1,ICe]],TCe=t=>{for(let[e,r]of SCe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`.trim())}};uY.exports=dx});var RC=m((Vst,fY)=>{"use strict";var dY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:mBe}=qe(),EBe=md();gY()===void 0&&hY(new EBe);function hY(t){if(!t||typeof t.dispatch!="function")throw new mBe("Argument agent must implement Agent");Object.defineProperty(globalThis,dY,{value:t,writable:!0,enumerable:!1,configurable:!1})}function gY(){return globalThis[dY]}fY.exports={setGlobalDispatcher:hY,getGlobalDispatcher:gY}});var kC=m((Wst,pY)=>{"use strict";pY.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var EY=m((zst,mY)=>{"use strict";var CBe=uC();mY.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new CBe(r,o,n,i);return r(a,A)}}});var IY=m((Kst,CY)=>{"use strict";var IBe=BC();CY.exports=t=>e=>function(s,n){return e(s,new IBe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var QY=m((Xst,BY)=>{"use strict";var BBe=De(),{InvalidArgumentError:QBe,RequestAbortedError:yBe}=qe(),bBe=kC(),hx=class extends bBe{#e=1024*1024;#t=null;#r=!1;#s=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new QBe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#s=!0,this.#n=e}onHeaders(e,r,s,n){let o=BBe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new yBe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function wBe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new hx({maxSize:i},n);return e(s,o)}}BY.exports=wBe});var wY=m((jst,bY)=>{"use strict";var{isIP:NBe}=b("node:net"),{lookup:SBe}=b("node:dns"),TBe=kC(),{InvalidArgumentError:Sd,InformationalError:xBe}=qe(),yY=Math.pow(2,31)-1,gx=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#s,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new xBe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#s(e,r,s){SBe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===yY?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===yY?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new fx(this,e,r)}},fx=class extends TBe{#e=null;#t=null;#r=null;#s=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#s=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#s.onError(r);le Line truncated
${i}`;break;case"retry":nJ(i)&&(r[n]=i);break;case"id":iJ(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&nJ(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&iJ(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};oJ.exports={EventSourceStream:e2}});var fJ=m((Tnt,gJ)=>{"use strict";var{pipeline:O1e}=b("node:stream"),{fetching:_1e}=Of(),{makeRequest:H1e}=Dd(),{webidl:Ia}=Sr(),{EventSourceStream:G1e}=aJ(),{parseMIMEType:Y1e}=as(),{createFastMessageEvent:q1e}=Ld(),{isNetworkError:AJ}=Pf(),{delay:V1e}=Zx(),{kEnumerableProperty:Au}=De(),{environmentSettingsObject:cJ}=Us(),uJ=!1,lJ=3e3,Zf=0,dJ=1,$f=2,J1e="anonymous",W1e="use-credentials",Hd=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=Zf;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ia.util.markAsUncloneable(this);let s="EventSource constructor";Ia.argumentLengthCheck(arguments,1,s),uJ||(uJ=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ia.converters.USVString(e,s,"url"),r=Ia.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lJ};let n=cJ,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=J1e;r.withCredentials&&(o=W1e,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=cJ.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=H1e(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===$f)return;this.#s=Zf;let e={request:this.#i,dispatcher:this.#a},r=s=>{AJ(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(AJ(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?Y1e(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=dJ,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new G1e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(q1e(A.type,A.options))}});O1e(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=_1e(e)}async#c(){this.#s!==$f&&(this.#s=Zf,this.dispatchEvent(new Event("error")),await V1e(this.#o.reconnectionTime),this.#s===Zf&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ia.brandCheck(this,t),this.#s!==$f&&(this.#s=$f,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},hJ={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Zf,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dJ,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:$f,writable:!1}};Object.defineProperties(Hd,hJ);Object.defineProperties(Hd.prototype,hJ);Object.defineProperties(Hd.prototype,{close:Au,onerror:Au,onmessage:Au,onopen:Au,readyState:Au,url:Au,withCredentials:Au});Ia.converters.EventSourceInitDict=Ia.dictionaryConverter([{key:"withCredentials",converter:Ia.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ia.converters.any}]);gJ.exports={EventSource:Hd,defaultReconnectionTime:lJ}});var II=m((xnt,le)=>{"use strict";var z1e=fd(),pJ=rf(),K1e=pd(),X1e=h9(),j1e=md(),Z1e=wT(),$1e=P9(),ewe=Y9(),mJ=qe(),CI=De(),{InvalidArgumentError:EI}=mJ,Gd=xG(),twe=nf(),rwe=ox(),swe=lY(),nwe=cx(),iwe=WT(),owe=BC(),{getGlobalDispatcher:EJ,setGlobalDispatcher:awe}=RC(),Awe=kC(),cwe=uC(),uwe=lC();Object.assign(pJ.prototype,Gd);le.exports.Dispatcher=pJ;le.exports.Client=z1e;le.exports.Pool=K1e;le.exports.BalancedPool=X1e;le.exports.Agent=j1e;le.exports.ProxyAgent=Z1e;le.exports.EnvHttpProxyAgent=$1e;le.exports.RetryAgent=ewe;le.exports.RetryHandle Line truncated
%s`,k,k,C,s);var O=C.type==="*"?z2:C.type==="?"?W2:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+O+"\\("+k}f(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var _=a.length-1;_>-1;_--){var H=a[_],Ye=s.slice(0,H.reStart),at=s.slice(H.reStart,H.reEnd-8),Be=s.slice(H.reEnd-8,H.reEnd),xe=s.slice(H.reEnd);Be+=xe;var Ue=Ye.split("(").length-1,_t=xe;for(p=0;p<Ue;p++)_t=_t.replace(/\)[+*?]?/,"");xe=_t;var mn="";xe===""&&e!==_I&&(mn="$");var vc=Ye+at+xe+mn+Be;s=vc}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=d+s),e===_I)return[s,n];if(!n)return oTe(t);var Oc=r.nocase?"i":"";try{var NN=new RegExp("^"+s+"$",Oc)}catch{return new RegExp("$.")}return NN._glob=t,NN._src=s,NN}Vs.makeRe=function(t,e){return new $t(t,e||{}).makeRe()};$t.prototype.makeRe=iTe;function iTe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?z2:e.dot?jSe:ZSe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===pu?r:typeof o=="string"?aTe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}Vs.match=function(t,e,r){r=r||{};var s=new $t(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};$t.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;up.sep!=="/"&&(e=e.split(up.sep).join("/")),e=e.split(AW),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};$t.prototype.matchOne=function(t,e,r){return e.indexOf(pu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};$t.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===pu){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===pu){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var g=t.length-u.length;if(this._matchOne(t,u,r,g,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(g--,!this._matchOne(t,u,r,g,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=s;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var B=[[[],0]],E=B[0],C=0,w=[0],x=0;x<c.length;x++){var k=c[x];k===pu?(w.push(C),E=[[],0],B.push(E)):(E[0].push(k),C++)}for(var O=B.length-1,F=t.length-d,_=0;_<B.length;_++)B[_][1]=F-(w[O--]+B[_][0].length);return!!this._matchGlobStarBodySections(t,B,s,0,r,0,!!d)};$t.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(d&&i<this.maxGlobstarRecursion){var g=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(g!==!1)return g}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};$t.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===pu)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function oTe(t){return t.replace(/\\(.)/g,"$1")}function aTe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var gp=m((Qot,BW)=>{"use strict";var fTe="2.0.0",pTe=Number.MAX_SAFE_INTEGER||9007199254740991,mTe=16,ETe=250,CTe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];BW.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:mTe,MAX_SAFE_BUILD_LENGTH:ETe,MAX_SAFE_INTEGER:pTe,RELEASE_TYPES:CTe,SEMVER_SPEC_VERSION:fTe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var fp=m((yot,QW)=>{"use strict";var ITe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};QW.exports=ITe});var Xd=m((io,yW)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Z2,MAX_SAFE_BUILD_LENGTH:BTe,MAX_LENGTH:QTe}=gp(),yTe=fp();io=yW.exports={};var bTe=io.re=[],wTe=io.safeRe=[],z=io.src=[],NTe=io.safeSrc=[],K=io.t={},STe=0,$2="[a-zA-Z0-9-]",TTe=[["\\s",1],["\\d",QTe],[$2,BTe]],xTe=t=>{for(let[e,r]of TTe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+i),t.push(n+"m+"+qp.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=qQe()+e+" "+t[0]}function qQe(){return Mt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function VQe(...t){return process.stderr.write(Yp.formatWithOptions(Mt.inspectOpts,...t)+`
`)}function JQe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function WQe(){return process.env.DEBUG}function zQe(t){t.inspectOpts={};let e=Object.keys(Mt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Mt.inspectOpts[e[r]]}qp.exports=fw()(Mt);var{formatters:K5}=qp.exports;K5.o=function(t){return this.inspectOpts.colors=this.useColors,Yp.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};K5.O=function(t){return this.inspectOpts.colors=this.useColors,Yp.inspect(t,this.inspectOpts)}});var Vp=m((CXe,Ew)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ew.exports=Y5():Ew.exports=X5()});var $5=m(Tr=>{"use strict";var KQe=Tr&&Tr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),XQe=Tr&&Tr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),j5=Tr&&Tr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&KQe(e,t,r);return XQe(e,t),e};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.req=Tr.json=Tr.toBuffer=void 0;var jQe=j5(Q("http")),ZQe=j5(Q("https"));async function Z5(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Tr.toBuffer=Z5;async function $Qe(t){let r=(await Z5(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Tr.json=$Qe;function eye(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?ZQe:jQe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Tr.req=eye});var Iw=m($r=>{"use strict";var tH=$r&&$r.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),tye=$r&&$r.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rH=$r&&$r.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&tH(e,t,r);return tye(e,t),e},rye=$r&&$r.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&tH(e,t,r)};Object.defineProperty($r,"__esModule",{value:!0});$r.Agent=void 0;var sye=rH(Q("net")),eH=rH(Q("http")),nye=Q("https");rye($5(),$r);var Vn=Symbol("AgentBaseInternalState"),Cw=class extends eH.Agent{constructor(e){super(e),this[Vn]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new sye.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?nye.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof eH.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[Vn].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Vn].currentSocket;if(this[Vn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Vn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Vn]&&(this[Vn].defaultPort=e)}get protocol(){return this[Vn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Vn]&&(this[Vn].protocol=e)}};$r.Agent=Cw});var sH=m(su=>{"use strict";var iye=su&&su.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(su,"__esModule",{value:!0});su.parseProxyResponse=void 0;var oye=iye(Vp()),Jp=(0,oye.default)("https-proxy-agent:parse-proxy-response");function aye(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),Jp("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),Jp("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let d=Buffer.concat(n,s),g=d.indexOf(`\r
`+i),t.push(n+"m+"+NB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=iRe()+e+" "+t[0]}function iRe(){return gr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function oRe(...t){return process.stderr.write(wB.formatWithOptions(gr.inspectOpts,...t)+`
`)}function aRe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ARe(){return process.env.DEBUG}function cRe(t){t.inspectOpts={};let e=Object.keys(gr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=gr.inspectOpts[e[r]]}NB.exports=OD()(gr);var{formatters:eX}=NB.exports;eX.o=function(t){return this.inspectOpts.colors=this.useColors,wB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};eX.O=function(t){return this.inspectOpts.colors=this.useColors,wB.inspect(t,this.inspectOpts)}});var SB=m((WAt,GD)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?GD.exports=zK():GD.exports=tX()});var nX=m(fs=>{"use strict";var uRe=fs&&fs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),lRe=fs&&fs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rX=fs&&fs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&uRe(e,t,r);return lRe(e,t),e};Object.defineProperty(fs,"__esModule",{value:!0});fs.req=fs.json=fs.toBuffer=void 0;var dRe=rX(b("http")),hRe=rX(b("https"));async function sX(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}fs.toBuffer=sX;async function gRe(t){let r=(await sX(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}fs.json=gRe;function fRe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?hRe:dRe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}fs.req=fRe});var qD=m(zs=>{"use strict";var oX=zs&&zs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),pRe=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aX=zs&&zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&oX(e,t,r);return pRe(e,t),e},mRe=zs&&zs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&oX(e,t,r)};Object.defineProperty(zs,"__esModule",{value:!0});zs.Agent=void 0;var ERe=aX(b("net")),iX=aX(b("http")),CRe=b("https");mRe(nX(),zs);var Ao=Symbol("AgentBaseInternalState"),YD=class extends iX.Agent{constructor(e){super(e),this[Ao]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new ERe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?CRe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof iX.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[Ao].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Ao].currentSocket;if(this[Ao].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ao].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ao]&&(this[Ao].defaultPort=e)}get protocol(){return this[Ao].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ao]&&(this[Ao].protocol=e)}};zs.Agent=YD});var AX=m(ih=>{"use strict";var IRe=ih&&ih.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ih,"__esModule",{value:!0});ih.parseProxyResponse=void 0;var BRe=IRe(SB()),TB=(0,BRe.default)("https-proxy-agent:parse-proxy-response");function QRe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),TB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),TB("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
\r
`);if(g===-1){Jp("have not received end of HTTP headers yet..."),i();return}let h=d.slice(0,g).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=f.split(" "),w=+E[1],p=E.slice(2).join(" "),y={};for(let N of h){if(!N)continue;let D=N.indexOf(":");if(D===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let U=N.slice(0,D).toLowerCase(),P=N.slice(D+1).trimStart(),k=y[U];typeof k=="string"?y[U]=[k,P]:Array.isArray(k)?k.push(P):y[U]=P}Jp("got proxy server response: %o %o",f,y),o(),e({connect:{statusCode:w,statusText:p,headers:y},buffered:d})}t.on("error",A),t.on("end",a),i()})}su.parseProxyResponse=aye});var cH=m(Rs=>{"use strict";var Aye=Rs&&Rs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),cye=Rs&&Rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aH=Rs&&Rs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Aye(e,t,r);return cye(e,t),e},AH=Rs&&Rs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.HttpsProxyAgent=void 0;var Wp=aH(Q("net")),nH=aH(Q("tls")),uye=AH(Q("assert")),lye=AH(Vp()),dye=Iw(),gye=Q("url"),hye=sH(),og=(0,lye.default)("https-proxy-agent"),iH=t=>t.servername===void 0&&t.host&&!Wp.isIP(t.host)?{...t,servername:t.host}:t,zp=class extends dye.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new gye.URL(e):e,this.proxyHeaders=r?.headers??{},og("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?oH(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(og("Creating `tls.Socket`: %o",this.connectOpts),n=nH.connect(iH(this.connectOpts))):(og("Creating `net.Socket`: %o",this.connectOpts),n=Wp.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Wp.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let g=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(i))a+=`${g}: ${i[g]}\r
`;let A=(0,hye.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",fye),r.secureEndpoint?(og("Upgrading socket connection to TLS"),nH.connect({...oH(iH(r),"host","path","port"),socket:n})):n;n.destroy();let d=new Wp.Socket({writable:!1});return d.readable=!0,e.once("socket",g=>{og("Replaying proxy buffer for failed request"),(0,uye.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),d}};zp.protocols=["http","https"];Rs.HttpsProxyAgent=zp;function fye(t){t.resume()}function oH(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var dH=m(ks=>{"use strict";var mye=ks&&ks.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),pye=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lH=ks&&ks.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&mye(e,t,r);return pye(e,t),e},Eye=ks&&ks.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpProxyAgent=void 0;var Cye=lH(Q("net")),Iye=lH(Q("tls")),Bye=Eye(Vp()),Qye=Q("events"),yye=Iw(),uH=Q("url"),nu=(0,Bye.default)("http-proxy-agent"),Kp=class extends yye.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new uH.URL(e):e,this.proxyHeaders=r?.headers??{},nu("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?bye(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new uH.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;nu("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(nu("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`);if(d===-1){TB("have not received end of HTTP headers yet..."),i();return}let g=l.slice(0,d).toString("ascii").split(`\r
`),f=g.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),B=+p[1],E=p.slice(2).join(" "),C={};for(let w of g){if(!w)continue;let x=w.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let k=w.slice(0,x).toLowerCase(),O=w.slice(x+1).trimStart(),F=C[k];typeof F=="string"?C[k]=[F,O]:Array.isArray(F)?F.push(O):C[k]=O}TB("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:B,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}ih.parseProxyResponse=QRe});var gX=m(Dn=>{"use strict";var yRe=Dn&&Dn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),bRe=Dn&&Dn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dX=Dn&&Dn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yRe(e,t,r);return bRe(e,t),e},hX=Dn&&Dn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.HttpsProxyAgent=void 0;var xB=dX(b("net")),cX=dX(b("tls")),wRe=hX(b("assert")),NRe=hX(SB()),SRe=qD(),TRe=b("url"),xRe=AX(),xp=(0,NRe.default)("https-proxy-agent"),uX=t=>t.servername===void 0&&t.host&&!xB.isIP(t.host)?{...t,servername:t.host}:t,DB=class extends SRe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new TRe.URL(e):e,this.proxyHeaders=r?.headers??{},xp("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?lX(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(xp("Creating `tls.Socket`: %o",this.connectOpts),n=cX.connect(uX(this.connectOpts))):(xp("Creating `net.Socket`: %o",this.connectOpts),n=xB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=xB.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,xRe.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",DRe),r.secureEndpoint?(xp("Upgrading socket connection to TLS"),cX.connect({...lX(uX(r),"host","path","port"),socket:n})):n;n.destroy();let l=new xB.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{xp("Replaying proxy buffer for failed request"),(0,wRe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};DB.protocols=["http","https"];Dn.HttpsProxyAgent=DB;function DRe(t){t.resume()}function lX(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var mX=m(Rn=>{"use strict";var RRe=Rn&&Rn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),kRe=Rn&&Rn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pX=Rn&&Rn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&RRe(e,t,r);return kRe(e,t),e},FRe=Rn&&Rn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.HttpProxyAgent=void 0;var MRe=pX(b("net")),URe=pX(b("tls")),LRe=FRe(SB()),PRe=b("events"),vRe=qD(),fX=b("url"),oh=(0,LRe.default)("http-proxy-agent"),RB=class extends vRe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new fX.URL(e):e,this.proxyHeaders=r?.headers??{},oh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?ORe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new fX.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;oh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(oh("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),nu("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(nu("Creating `tls.Socket`: %o",this.connectOpts),i=Iye.connect(this.connectOpts)):(nu("Creating `net.Socket`: %o",this.connectOpts),i=Cye.connect(this.connectOpts)),await(0,Qye.once)(i,"connect"),i}};Kp.protocols=["http","https"];ks.HttpProxyAgent=Kp;function bye(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var GH=m(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.state=void 0;eE.state={instrumenterImplementation:void 0}});var e9=m(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});nE.state=void 0;nE.state={operationRequestMap:new WeakMap}});var Mq=m((lft,$we)=>{$we.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Lq=m((dft,Uq)=>{var eNe=Mq();Uq.exports={version:eNe.version}});var EE=m(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.isJsonObject=fu.typeofJsonValue=void 0;function oNe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}fu.typeofJsonValue=oNe;function aNe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}fu.isJsonObject=aNe});var IE=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.base64encode=mu.base64decode=void 0;var Li="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),CE=[];for(let t=0;t<Li.length;t++)CE[Li[t].charCodeAt(0)]=t;CE[45]=Li.indexOf("+");CE[95]=Li.indexOf("/");function ANe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=CE[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}mu.base64decode=ANe;function cNe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Li[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Li[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Li[n|s>>6],e+=Li[s&63],r=0;break}return r&&(e+=Li[n],e+="=",r==1&&(e+="=")),e}mu.base64encode=cNe});var Pq=m(BE=>{"use strict";Object.defineProperty(BE,"__esModule",{value:!0});BE.utf8read=void 0;var TN=t=>String.fromCharCode.apply(String,t);function uNe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(TN(s)),n=0);return r.length?(n&&r.push(TN(s.slice(0,n))),r.join("")):TN(s.slice(0,n))}BE.utf8read=uNe});var hg=m(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.WireType=Jn.mergeBinaryOptions=Jn.UnknownFieldHandler=void 0;var lNe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(lNe=Jn.UnknownFieldHandler||(Jn.UnknownFieldHandler={}));function dNe(t,e){return Object.assign(Object.assign({},t),e)}Jn.mergeBinaryOptions=dNe;var gNe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(gNe=Jn.WireType||(Jn.WireType={}))});var yE=m(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.varint32read=Dr.varint32write=Dr.int64toString=Dr.int64fromString=Dr.varint64write=Dr.varint64read=void 0;function hNe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Dr.varint64read=hNe;function fNe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Dr.varint64write=fNe;var QE=65536*65536;function mNe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=QE&&(n=n+(s/QE|0),s=s%QE)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Dr.int64fromString=mNe;function pNe(t,e){if(e>>>0<=2097151)return""+(QE*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,d){let g=u?String(u):"";return d?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}Dr.int64toString=pNe;function ENe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}Dr.varint32write=ENe;function CNe(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}Dr.varint32read=CNe});var ko=m(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PbLong=Ro.PbULong=Ro.detectBi=void 0;var fg=yE(),He;function Oq(){let t=new DataView(new ArrayBuffer(8));He=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Ro.detectBi=Oq;Oq();function _q(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Hq=/^-?[0-9]+$/,wE=4294967296,bE=2147483648,NE=class{c Line truncated
`)}};XE.RpcError=tS});var sS=m(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE.mergeRpcOptions=void 0;var pV=Ct();function HSe(t,e){if(!e)return t;let r={};jE(t,r),jE(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=pV.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=pV.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},jE(t.meta,r.meta),jE(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}ZE.mergeRpcOptions=HSe;function jE(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var iS=m(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});eA.Deferred=eA.DeferredState=void 0;var Kn;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Kn=eA.DeferredState||(eA.DeferredState={}));var nS=class{constructor(e=!0){this._state=Kn.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Kn.PENDING)throw new Error(`cannot resolve ${Kn[this.state].toLowerCase()}`);this._resolve(e),this._state=Kn.RESOLVED}reject(e){if(this.state!==Kn.PENDING)throw new Error(`cannot reject ${Kn[this.state].toLowerCase()}`);this._reject(e),this._state=Kn.REJECTED}resolvePending(e){this._state===Kn.PENDING&&this.resolve(e)}rejectPending(e){this._state===Kn.PENDING&&this.reject(e)}};eA.Deferred=nS});var aS=m($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.RpcOutputStreamController=void 0;var EV=iS(),tA=Ct(),oS=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){tA.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){tA.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){tA.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){tA.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;tA.assert(e,"bad state"),tA.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new EV.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;tA.assert(s.state==EV.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};$E.RpcOutputStreamController=oS});var cS=m(yu=>{"use strict";var GSe=yu&&yu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(yu,"__esModule",{value:!0});yu.UnaryCall=void 0;var AS=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return GSe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};yu.UnaryCall=AS});var lS=m(bu=>{"use strict";var YSe=bu&&bu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(bu,"__esModule",{value:!0});bu.ServerStreamingCall=void 0;var uS=class{constructor(e,r,s,n Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),oh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(oh("Creating `tls.Socket`: %o",this.connectOpts),i=URe.connect(this.connectOpts)):(oh("Creating `net.Socket`: %o",this.connectOpts),i=MRe.connect(this.connectOpts)),await(0,PRe.once)(i,"connect"),i}};RB.protocols=["http","https"];Rn.HttpProxyAgent=RB;function ORe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var KX=m(VB=>{"use strict";Object.defineProperty(VB,"__esModule",{value:!0});VB.state=void 0;VB.state={instrumenterImplementation:void 0}});var dj=m(XB=>{"use strict";Object.defineProperty(XB,"__esModule",{value:!0});XB.state=void 0;XB.state={operationRequestMap:new WeakMap}});var w$=m((Cbt,MPe)=>{MPe.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var S$=m((Ibt,N$)=>{var UPe=w$();N$.exports={version:UPe.version}});var Iy=m(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.isJsonObject=Th.typeofJsonValue=void 0;function qPe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Th.typeofJsonValue=qPe;function VPe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Th.isJsonObject=VPe});var Qy=m(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.base64encode=xh.base64decode=void 0;var _a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),By=[];for(let t=0;t<_a.length;t++)By[_a[t].charCodeAt(0)]=t;By[45]=_a.indexOf("+");By[95]=_a.indexOf("/");function JPe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=By[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}xh.base64decode=JPe;function WPe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=_a[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=_a[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=_a[n|s>>6],e+=_a[s&63],r=0;break}return r&&(e+=_a[n],e+="=",r==1&&(e+="=")),e}xh.base64encode=WPe});var k$=m(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.utf8read=void 0;var PU=t=>String.fromCharCode.apply(String,t);function zPe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(PU(s)),n=0);return r.length?(n&&r.push(PU(s.slice(0,n))),r.join("")):PU(s.slice(0,n))}yy.utf8read=zPe});var ym=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.WireType=Mo.mergeBinaryOptions=Mo.UnknownFieldHandler=void 0;var KPe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(KPe=Mo.UnknownFieldHandler||(Mo.UnknownFieldHandler={}));function XPe(t,e){return Object.assign(Object.assign({},t),e)}Mo.mergeBinaryOptions=XPe;var jPe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(jPe=Mo.WireType||(Mo.WireType={}))});var wy=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.varint32read=Bs.varint32write=Bs.int64toString=Bs.int64fromString=Bs.varint64write=Bs.varint64read=void 0;function ZPe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Bs.varint64read=ZPe;function $Pe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Bs.varint64write=$Pe;var by=65536*65536;function eve(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=by&&(n=n+(s/by|0),s=s%by)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Bs.int64fromString=eve;function tve(t,e){if(e>>>0<=2097151)return""+(by*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Bs.int64toString=tve;function rve(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}Bs.varint32write=rve;function sve(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}Bs.varint32read=sve});var jA=m(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.PbLong=XA.PbULong=XA.detectBi=void 0;var bm=wy(),it;function F$(){let t=new DataView(new ArrayBuffer(8));it=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}XA.detectBi=F$;F$();function M$(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var U$=/^-?[0-9]+$/,Sy=4294967296,Ny=2147483648,Ty=class{c Line truncated
`)}};Zy.RpcError=uL});var dL=m(eb=>{"use strict";Object.defineProperty(eb,"__esModule",{value:!0});eb.mergeRpcOptions=void 0;var lee=zt();function w3e(t,e){if(!e)return t;let r={};$y(t,r),$y(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=lee.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=lee.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},$y(t.meta,r.meta),$y(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}eb.mergeRpcOptions=w3e;function $y(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var gL=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Deferred=Ku.DeferredState=void 0;var Po;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Po=Ku.DeferredState||(Ku.DeferredState={}));var hL=class{constructor(e=!0){this._state=Po.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Po.PENDING)throw new Error(`cannot resolve ${Po[this.state].toLowerCase()}`);this._resolve(e),this._state=Po.RESOLVED}reject(e){if(this.state!==Po.PENDING)throw new Error(`cannot reject ${Po[this.state].toLowerCase()}`);this._reject(e),this._state=Po.REJECTED}resolvePending(e){this._state===Po.PENDING&&this.resolve(e)}rejectPending(e){this._state===Po.PENDING&&this.reject(e)}};Ku.Deferred=hL});var pL=m(tb=>{"use strict";Object.defineProperty(tb,"__esModule",{value:!0});tb.RpcOutputStreamController=void 0;var dee=gL(),Xu=zt(),fL=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Xu.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Xu.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Xu.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Xu.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Xu.assert(e,"bad state"),Xu.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new dee.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Xu.assert(s.state==dee.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};tb.RpcOutputStreamController=fL});var EL=m(Lh=>{"use strict";var N3e=Lh&&Lh.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Lh,"__esModule",{value:!0});Lh.UnaryCall=void 0;var mL=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return N3e(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Lh.UnaryCall=mL});var IL=m(Ph=>{"use strict";var S3e=Ph&&Ph.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ph,"__esModule",{value:!0});Ph.ServerStreamingCall=void 0;var CL=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var zW=m(WW=>{"use strict";var LD=qi().Buffer;WW._dbcs=Vi;var Vt=-1,JW=-2,zs=-10,mr=-1e3,ju=new Array(256),sh=-1;for(hC=0;hC<256;hC++)ju[hC]=Vt;var hC;function Vi(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=ju.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(ju.slice(0));var i=this.decodeTables.length;this.decodeTables.push(ju.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[mr-o[s]],A=48;A<=57;A++){if(a[A]===Vt)a[A]=mr-n;else if(a[A]>mr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[mr-a[A]],u=129;u<=254;u++){if(c[u]===Vt)c[u]=mr-i;else{if(c[u]===mr-i)continue;if(c[u]>mr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var d=this.decodeTables[mr-c[u]],g=48;g<=57;g++)d[g]===Vt&&(d[g]=JW)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipVals.lengLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function FLe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(ELe.has(n)){r=n;break}}return r}function MLe(t,e){let r=FLe(e);r!==""&&(t.referrerPolicy=r)}function ULe(){return"allowed"}function LLe(){return"success"}function vLe(){return"success"}function PLe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function OLe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&ex(t.origin)&&!ex(wA(t))&&(e=null);break;case"same-origin":dh(t,wA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function rl(t,e){return t}function _Le(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:rl(t.domainLookupStartTime,r),domainLookupEndTime:rl(t.domainLookupEndTime,r),connectionStartTime:rl(t.connectionStartTime,r),connectionEndTime:rl(t.connectionEndTime,r),secureConnectionStartTime:rl(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function HLe(t){return rl(QLe.now(),t)}function GLe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function bX(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function YLe(t){return{referrerPolicy:t.referrerPolicy}}function qLe(t){let e=t.referrerPolicy;gh(e);let r=null;if(t.referrer==="client"){let i=CX();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Ko.is.URL(t.referrer)&&(r=t.referrer);let s=$2(r),n=$2(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??$2(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=wA(t);return bA(s)&&!bA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=wA(t);return dh(s,i)?s:bA(s)&&!bA(i)?"no-referrer":n}case"same-origin":return dh(t,s)?s:"no-referrer";case"origin-when-cross-origin":return dh(t,s)?s:n;case"no-referrer-when-downgrade":{let i=wA(t);return bA(s)&&!bA(i)?"no-referrer":s}}}function $2(t,e=!1){return gh(Ko.is.URL(t)),t=new URL(t),TX(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var VLe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),JLe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function wX(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),JLe(t)):VLe(t)}function WLe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||wX(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function bA(t){return Ko.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:WLe(t.origin):!1}function zLe(t){}function dh(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function KLe(t){return t.controller.state==="aborted"}function XLe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jLe(t){return bLe[t.toLowerCase()]??t}var ZLe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function NX(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let d;switch(this.#t){case"key":d=c;break;case"value":d=u;break;case"key+value":d=[c,u];break}return{value:d,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,ZLe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function $Le(t,e,r,s=0,n=1){let i=NX(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Ko.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Ko.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=js(a=>cx(a)&&a!==59,t,e);i=ax.decode(o)}return{name:s,value:i}}function yve(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Lr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=js(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Ax(o,!0,!0,a=>a===9||a===32),!fve.test(o.toString()))throw Lr("header name does not match the field-name token production");if(t[e.position]!==58)throw Lr("expected :");switch(e.position++,js(a=>a===32||a===9,t,e),hve(o)){case"content-disposition":{if(r=s=null,js(A=>cx(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Lr("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=Qve(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Lr("name attribute is required in content-disposition header");break}case"content-type":{let a=js(A=>A!==10&&A!==13,t,e);a=Ax(a,!1,!0,A=>A===9||A===32),n=MX(a);break}case"content-transfer-encoding":{let a=js(A=>A!==10&&A!==13,t,e);a=Ax(a,!1,!0,A=>A===9||A===32),i=MX(a);break}default:js(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Lr("expected CRLF");e.position+=2}}function js(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function Ax(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function bve(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Lr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function wve(t){return t<=31||t===127}function Nve(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function cx(t){return t<=127&&t!==32&&t!==9&&!wve(t)&&!Nve(t)}UX.exports={multipartFormDataParser:Bve,validateBoundary:Ive}});var hh=m((ZBt,vX)=>{"use strict";function Sve(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}vX.exports={createDeferredPromise:Sve}});var il=m(($Bt,GX)=>{"use strict";var dx=ce(),{ReadableStreamFrom:Tve,readableStreamClose:Dve,fullyReadBody:xve,extractMimeType:Rve}=As(),{FormData:PX,setFormDataState:kve}=OC(),{webidl:Nn}=Jt(),ux=Q("node:assert"),{isErrored:lx,isDisturbed:Fve}=Q("node:stream"),{isUint8Array:Mve}=Q("node:util/types"),{serializeAMimeType:Uve}=Xs(),{multipartFormDataParser:Lve}=LX(),{createDeferredPromise:vve}=hh(),{parseJSONFromBytes:Pve}=zi(),{utf8DecodeBytes:Ove}=FC(),{runtimeFeatures:_ve}=Ki(),Hve=_ve.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),_C=new TextEncoder;function Gve(){}var Yve=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Fve(e)&&!lx(e)&&e.cancel("Response object has been garbage collected").catch(Gve)});function _X(t,e=!1){let r=null,s=null;Nn.is.ReadableStream(t)?r=t:Nn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),ux(Nn.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Nn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Nn.is.BufferSource(t))i=Nn.util.getCopyOfBytesHeldByBufferSource(t);else if(Nn.is.FormData(t)){let c=`----formdata-undici-0${`${Hve(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let d=p=>p.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=p=>p.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let E=!1;for(let[p,y]of t)if(typeof y=="string"){let N=_C.encode(u+`; name="${d(g(p))}"\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Jse=m(Vse=>{"use strict";var o3=Ka().Buffer;Vse._dbcs=Xa;var xr=-1,qse=-2,$n=-10,ss=-1e3,dg=new Array(256),gE=-1;for(B1=0;B1<256;B1++)dg[B1]=xr;var B1;function Xa(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=dg.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(dg.slice(0));var i=this.decodeTables.length;this.decodeTables.push(dg.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[ss-o[s]],A=48;A<=57;A++){if(a[A]===xr)a[A]=ss-n;else if(a[A]>ss)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[ss-a[A]],u=129;u<=254;u++){if(c[u]===xr)c[u]=ss-i;else{if(c[u]===ss-i)continue;if(c[u]>ss)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ss-c[u]],d=48;d<=57;d++)l[d]===xr&&(l[d]=qse)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var g={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function SYe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(dYe.has(n)){r=n;break}}return r}function TYe(t,e){let r=SYe(e);r!==""&&(t.referrerPolicy=r)}function xYe(){return"allowed"}function DYe(){return"success"}function RYe(){return"success"}function kYe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function FYe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&b8(t.origin)&&!b8(Il(t))&&(e=null);break;case"same-origin":yE(t,Il(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function mg(t,e){return t}function MYe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:mg(t.domainLookupStartTime,r),domainLookupEndTime:mg(t.domainLookupEndTime,r),connectionStartTime:mg(t.connectionStartTime,r),connectionEndTime:mg(t.connectionEndTime,r),secureConnectionStartTime:mg(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function UYe(t){return mg(pYe.now(),t)}function LYe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Qoe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function PYe(t){return{referrerPolicy:t.referrerPolicy}}function vYe(t){let e=t.referrerPolicy;bE(e);let r=null;if(t.referrer==="client"){let i=moe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else fc.is.URL(t.referrer)&&(r=t.referrer);let s=y8(r),n=y8(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??y8(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Il(t);return Cl(s)&&!Cl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Il(t);return yE(s,i)?s:Cl(s)&&!Cl(i)?"no-referrer":n}case"same-origin":return yE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return yE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Il(t);return Cl(s)&&!Cl(i)?"no-referrer":s}}}function y8(t,e=!1){return bE(fc.is.URL(t)),t=new URL(t),Noe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var OYe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),_Ye=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function yoe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),_Ye(t)):OYe(t)}function HYe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||yoe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Cl(t){return fc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:HYe(t.origin):!1}function GYe(t){}function yE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function YYe(t){return t.controller.state==="aborted"}function qYe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function VYe(t){return EYe[t.toLowerCase()]??t}var JYe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function boe(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,JYe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function WYe(t,e,r,s=0,n=1){let i=boe(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return fc.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return fc.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ri(a=>F8(a)&&a!==59,t,e);i=R8.decode(o)}return{name:s,value:i}}function mqe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ts("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=ri(a=>a!==10&&a!==13&&a!==58,t,e);if(o=k8(o,!0,!0,a=>a===9||a===32),!cqe.test(o.toString()))throw Ts("header name does not match the field-name token production");if(t[e.position]!==58)throw Ts("expected :");switch(e.position++,ri(a=>a===32||a===9,t,e),Aqe(o)){case"content-disposition":{if(r=s=null,ri(A=>F8(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ts("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=pqe(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Ts("name attribute is required in content-disposition header");break}case"content-type":{let a=ri(A=>A!==10&&A!==13,t,e);a=k8(a,!1,!0,A=>A===9||A===32),n=koe(a);break}case"content-transfer-encoding":{let a=ri(A=>A!==10&&A!==13,t,e);a=k8(a,!1,!0,A=>A===9||A===32),i=koe(a);break}default:ri(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ts("expected CRLF");e.position+=2}}function ri(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function k8(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Eqe(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Ts(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Cqe(t){return t<=31||t===127}function Iqe(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function F8(t){return t<=127&&t!==32&&t!==9&&!Cqe(t)&&!Iqe(t)}Foe.exports={multipartFormDataParser:fqe,validateBoundary:gqe}});var wE=m((v2t,Uoe)=>{"use strict";function Bqe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}Uoe.exports={createDeferredPromise:Bqe}});var Ig=m((O2t,_oe)=>{"use strict";var L8=Ie(),{ReadableStreamFrom:Qqe,readableStreamClose:yqe,fullyReadBody:bqe,extractMimeType:wqe}=an(),{FormData:Loe,setFormDataState:Nqe}=J1(),{webidl:Oi}=Dr(),M8=b("node:assert"),{isErrored:U8,isDisturbed:Sqe}=b("node:stream"),{isUint8Array:Tqe}=b("node:util/types"),{serializeAMimeType:xqe}=ti(),{multipartFormDataParser:Dqe}=Moe(),{createDeferredPromise:Rqe}=wE(),{parseJSONFromBytes:kqe}=$a(),{utf8DecodeBytes:Fqe}=_1(),{runtimeFeatures:Mqe}=eA(),Uqe=Mqe.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),W1=new TextEncoder;function Lqe(){}var Pqe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Sqe(e)&&!U8(e)&&e.cancel("Response object has been garbage collected").catch(Lqe)});function voe(t,e=!1){let r=null,s=null;Oi.is.ReadableStream(t)?r=t:Oi.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),M8(Oi.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Oi.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Oi.is.BufferSource(t))i=Oi.util.getCopyOfBytesHeldByBufferSource(t);else if(Oi.is.FormData(t)){let c=`----formdata-undici-0${`${Uqe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=E=>E.replace(/\r?\n|\r/g,`\r
`),g=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let w=W1.encode(u+`; name="${l(d(E))}"\r
\r
${g(y)}\r
`);h.push(N),o+=N.byteLength}else{let N=_C.encode(`${u}; name="${d(g(p))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
${d(C)}\r
`);g.push(w),o+=w.byteLength}else{let w=W1.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(N,y,f),typeof y.size=="number"?o+=N.byteLength+y.size+f.byteLength:E=!0}let w=_C.encode(`--${c}--\r
`);h.push(w),o+=w.byteLength,E&&(o=null),i=t,n=async function*(){for(let p of h)p.stream?yield*p.stream():yield p},a=`multipart/form-data; boundary=${c}`}else if(Nn.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(dx.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Nn.is.ReadableStream(t)?t:Tve(t)}return(typeof i=="string"||Mve(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let d of u){if(lx(r))break;d.length&&s.enqueue(new Uint8Array(d))}else c?.length&&!lx(r)&&s.enqueue(typeof c=="string"?_C.encode(c):new Uint8Array(c));queueMicrotask(()=>Dve(s))})(),[{stream:r,source:i,length:o},a]}function qve(t,e=!1){return Nn.is.ReadableStream(t)&&(ux(!dx.isDisturbed(t),"The body has already been consumed."),ux(!t.locked,"The stream is locked.")),_X(t,e)}function Vve(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Jve(t,e){return{blob(){return nl(this,s=>{let n=OX(e(this));return n===null?n="":n&&(n=Uve(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return nl(this,s=>new Uint8Array(s).buffer,t,e)},text(){return nl(this,Ove,t,e)},json(){return nl(this,Pve,t,e)},formData(){return nl(this,s=>{let n=OX(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=Lve(s,n),o=new PX;return kve(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new PX;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return nl(this,s=>new Uint8Array(s),t,e)}}}function Wve(t,e){Object.assign(t.prototype,Jve(t,e))}function nl(t,e,r,s){try{Nn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),HX(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=vve(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(xve(t.body,o,i),n.promise)}function HX(t){let e=t.body;return e!=null&&(e.stream.locked||dx.isDisturbed(e.stream))}function OX(t){let e=t.headersList,r=Rve(e);return r==="failure"?null:r}GX.exports={extractBody:_X,safelyExtractBody:qve,cloneBody:Vve,mixinBody:Wve,streamRegistry:Yve,bodyUnusable:HX}});var $X=m((eQt,ZX)=>{"use strict";var se=Q("node:assert"),ne=ce(),{channels:YX}=Wo(),gx=zD(),{RequestContentLengthMismatchError:NA,ResponseContentLengthMismatchError:zve,RequestAbortedError:KX,HeadersTimeoutError:Kve,HeadersOverflowError:Xve,SocketError:ph,InformationalError:ol,BodyTimeoutError:jve,HTTPParserError:Zve,ResponseExceededMaxSizeError:$ve}=ae(),{kUrl:XX,kReset:vr,kClient:Ix,kParser:ut,kBlocking:Eh,kRunning:ir,kPending:ePe,kSize:qX,kWriting:jo,kQueue:Sn,kNoRef:fh,kKeepAliveDefaultTimeout:tPe,kHostHeader:rPe,kPendingIdx:sPe,kRunningIdx:Zs,kError:$s,kPipelining:YC,kSocket:al,kKeepAliveTimeoutValue:VC,kMaxHeadersSize:nPe,kKeepAliveMaxTimeout:iPe,kKeepAliveTimeoutThreshold:oPe,kHeadersTimeout:aPe,kBodyTimeout:APe,kStrictContentLength:mx,kMaxRequests:VX,kCounter:cPe,kMaxResponseSize:uPe,kOnError:lPe,kResume:Xo,kHTTPContext:jX,kClosed:px}=Me(),ni=GK(),dPe=Buffer.alloc(0),HC=Buffer[Symbol.species],gPe=ne.removeAllListeners,hx;function hPe(){let t=process.env.JEST_WORKER_ID?_2():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(VK())}catch{}return e||(e=new WebAssembly.Module(t||_2())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{se(xt.ptr===s);let o=n-oi+ii.byteOffset;return xt.onStatus(new HC(ii.buffer,o,i))},wasm_on_message_begin:s=>(se(xt.ptr===s),xt.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{se(xt.ptr===s);let o=n-oi+ii.byteOffset;return xt.onHeaderField(new HC(ii.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{se(xt.ptr===s);let o=n-oi+ii.byteOffset;return xt.onHeaderValue(new HC(ii.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(se(xt.ptr===s),xt.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{se(xt.ptr===s);let o=n-oi+ii.byteOffset;return xt.onBody(new HC(ii.buffer,o,i))},wasm_on_message_complete:s=>(se(xt.ptr===s),xt.onMessageComplete())}})}var fx=null,xt=null,ii=null,GC=0,oi=null,fPe=0,mh=1,Al=2|mh,qC=4|mh,Ex=8|fPe,Cx=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(ni.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[nPe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[uPe]}setTimeout(e,r){e!==this.t Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[rPe],i?E+=`connection: upgrade\r
`);g.push(w,C,f),typeof C.size=="number"?o+=w.byteLength+C.size+f.byteLength:p=!0}let B=W1.encode(`--${c}--\r
`);g.push(B),o+=B.byteLength,p&&(o=null),i=t,n=async function*(){for(let E of g)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(Oi.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(L8.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Oi.is.ReadableStream(t)?t:Qqe(t)}return(typeof i=="string"||Tqe(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(U8(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!U8(r)&&s.enqueue(typeof c=="string"?W1.encode(c):new Uint8Array(c));queueMicrotask(()=>yqe(s))})(),[{stream:r,source:i,length:o},a]}function vqe(t,e=!1){return Oi.is.ReadableStream(t)&&(M8(!L8.isDisturbed(t),"The body has already been consumed."),M8(!t.locked,"The stream is locked.")),voe(t,e)}function Oqe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function _qe(t,e){return{blob(){return Cg(this,s=>{let n=Poe(e(this));return n===null?n="":n&&(n=xqe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Cg(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Cg(this,Fqe,t,e)},json(){return Cg(this,kqe,t,e)},formData(){return Cg(this,s=>{let n=Poe(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=Dqe(s,n),o=new Loe;return Nqe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new Loe;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Cg(this,s=>new Uint8Array(s),t,e)}}}function Hqe(t,e){Object.assign(t.prototype,_qe(t,e))}function Cg(t,e,r,s){try{Oi.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Ooe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=Rqe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(bqe(t.body,o,i),n.promise)}function Ooe(t){let e=t.body;return e!=null&&(e.stream.locked||L8.isDisturbed(e.stream))}function Poe(t){let e=t.headersList,r=wqe(e);return r==="failure"?null:r}_oe.exports={extractBody:voe,safelyExtractBody:vqe,cloneBody:Oqe,mixinBody:Hqe,streamRegistry:Pqe,bodyUnusable:Ooe}});var joe=m((_2t,Xoe)=>{"use strict";var de=b("node:assert"),ge=Ie(),{channels:Hoe}=hc(),P8=E3(),{RequestContentLengthMismatchError:Bl,ResponseContentLengthMismatchError:Gqe,RequestAbortedError:Woe,HeadersTimeoutError:Yqe,HeadersOverflowError:qqe,SocketError:TE,InformationalError:Bg,BodyTimeoutError:Vqe,HTTPParserError:Jqe,ResponseExceededMaxSizeError:Wqe}=Ee(),{kUrl:zoe,kReset:xs,kClient:q8,kParser:vt,kBlocking:xE,kRunning:Gr,kPending:zqe,kSize:Goe,kWriting:mc,kQueue:_i,kNoRef:NE,kKeepAliveDefaultTimeout:Kqe,kHostHeader:Xqe,kPendingIdx:jqe,kRunningIdx:si,kError:ni,kPipelining:X1,kSocket:Qg,kKeepAliveTimeoutValue:Z1,kMaxHeadersSize:Zqe,kKeepAliveMaxTimeout:$qe,kKeepAliveTimeoutThreshold:eVe,kHeadersTimeout:tVe,kBodyTimeout:rVe,kStrictContentLength:_8,kMaxRequests:Yoe,kCounter:sVe,kMaxResponseSize:nVe,kOnError:iVe,kResume:pc,kHTTPContext:Koe,kClosed:H8}=$e(),Jo=_ie(),oVe=Buffer.alloc(0),z1=Buffer[Symbol.species],aVe=ge.removeAllListeners,v8;function AVe(){let t=process.env.JEST_WORKER_ID?u8():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(Yie())}catch{}return e||(e=new WebAssembly.Module(t||u8())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{de(ur.ptr===s);let o=n-zo+Wo.byteOffset;return ur.onStatus(new z1(Wo.buffer,o,i))},wasm_on_message_begin:s=>(de(ur.ptr===s),ur.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{de(ur.ptr===s);let o=n-zo+Wo.byteOffset;return ur.onHeaderField(new z1(Wo.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{de(ur.ptr===s);let o=n-zo+Wo.byteOffset;return ur.onHeaderValue(new z1(Wo.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(de(ur.ptr===s),ur.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{de(ur.ptr===s);let o=n-zo+Wo.byteOffset;return ur.onBody(new z1(Wo.buffer,o,i))},wasm_on_message_complete:s=>(de(ur.ptr===s),ur.onMessageComplete())}})}var O8=null,ur=null,Wo=null,K1=0,zo=null,cVe=0,SE=1,yg=2|SE,j1=4|SE,G8=8|cVe,Y8=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Jo.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Zqe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[nVe]}setTi Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[Xqe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[YC]&&!h[vr]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return YX.sendHeaders.hasSubscribers&&YX.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?WX(f,null,t,e,h,u,E,d):ne.isBuffer(A)?WX(f,A,t,e,h,u,E,d):ne.isBlobLike(A)?typeof A.stream=="function"?zX(f,A.stream(),t,e,h,u,E,d):NPe(f,A,t,e,h,u,E,d):ne.isStream(A)?wPe(f,A,t,e,h,u,E,d):ne.isIterable(A)?zX(f,A,t,e,h,u,E,d):se(!1),!0}function wPe(t,e,r,s,n,i,o,a){se(i!==0||r[ir]===0,"stream body cannot be pipelined");let A=!1,c=new JC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(E){ne.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new KX;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,se(n.destroyed||n[jo]&&r[ir]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ne.destroy(e,f):ne.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function WX(t,e,r,s,n,i,o,a){try{e?ne.isBuffer(e)&&(se(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`:t[X1]&&!g[xs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let B=0;B<c.length;B+=2){let E=c[B+0],C=c[B+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)p+=`${E}: ${C[w]}\r
`;else p+=`${E}: ${C}\r
`}return Hoe.sendHeaders.hasSubscribers&&Hoe.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?Voe(f,null,t,e,g,u,p,l):ge.isBuffer(A)?Voe(f,A,t,e,g,u,p,l):ge.isBlobLike(A)?typeof A.stream=="function"?Joe(f,A.stream(),t,e,g,u,p,l):IVe(f,A,t,e,g,u,p,l):ge.isStream(A)?CVe(f,A,t,e,g,u,p,l):ge.isIterable(A)?Joe(f,A,t,e,g,u,p,l):de(!1),!0}function CVe(t,e,r,s,n,i,o,a){de(i!==0||r[Gr]===0,"stream body cannot be pipelined");let A=!1,c=new $1({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){ge.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",g)}),!A){let f=new Woe;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,de(n.destroyed||n[mc]&&r[Gr]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ge.destroy(e,f):ge.destroy(e)}};e.on("data",u).on("end",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(g,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(g,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Voe(t,e,r,s,n,i,o,a){try{e?ge.isBuffer(e)&&(de(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[vr]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[xs]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(se(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Xo]()}catch(A){t(A)}}async function NPe(t,e,r,s,n,i,o,a){se(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new NA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(de(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[pc]()}catch(A){t(A)}}async function IVe(t,e,r,s,n,i,o,a){de(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Bl;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[vr]=!0),r[Xo]()}catch(A){t(A)}}async function zX(t,e,r,s,n,i,o,a){se(i!==0||r[ir]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{se(A===null),n[$s]?h(n[$s]):A=g});n.on("close",c).on("drain",c);let d=new JC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[$s])throw n[$s];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var JC=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[jo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[$s])throw r[$s];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[mx])throw new NA;process.emitWarning(new NA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[vr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[xs]=!0),r[pc]()}catch(A){t(A)}}async function Joe(t,e,r,s,n,i,o,a){de(i!==0||r[Gr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{de(A===null),n[ni]?g(n[ni]):A=d});n.on("close",c).on("drain",c);let l=new $1({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ni])throw n[ni];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var $1=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[mc]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ni])throw r[ni];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[_8])throw new Bl;process.emitWarning(new Bl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[xs]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[ut].timeout&&r[ut].timeoutType===Al&&r[ut].timeout.refresh&&r[ut].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[jo]=!1,e[$s])throw e[$s];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[vt].timeout&&r[vt].timeoutType===yg&&r[vt].timeout.refresh&&r[vt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[mc]=!1,e[ni])throw e[ni];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[mx])throw new NA;process.emitWarning(new NA)}e[ut].timeout&&e[ut].timeoutType===Al&&e[ut].timeout.refresh&&e[ut].timeout.refresh(),s[Xo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[jo]=!1,e&&(se(s[ir]<=1,"pipeline should only contain this request"),n(e))}};ZX.exports=mPe});var Aj=m((tQt,aj)=>{"use strict";var tn=Q("node:assert"),{pipeline:SPe}=Q("node:stream"),he=ce(),{RequestContentLengthMismatchError:bx,RequestAbortedError:TPe,SocketError:Qh,InformationalError:Zo,InvalidArgumentError:DPe}=ae(),{kUrl:Bh,kReset:XC,kClient:cs,kRunning:yh,kPending:xPe,kQueue:$o,kPendingIdx:Nx,kRunningIdx:Tn,kError:us,kSocket:nt,kStrictContentLength:RPe,kOnError:cl,kMaxConcurrentStreams:zC,kPingInterval:ej,kHTTP2Session:ji,kHTTP2InitialWindowSize:kPe,kHTTP2ConnectionWindowSize:FPe,kResume:ai,kSize:MPe,kHTTPContext:Sx,kClosed:wx,kBodyTimeout:UPe,kEnableConnectProtocol:Ch,kRemoteSettings:Ih,kHTTP2Stream:WC,kHTTP2SessionState:Tx}=Me(),{channels:tj}=Wo(),en=Symbol("open streams"),rj,KC;try{KC=Q("node:http2")}catch{KC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:LPe,HTTP2_HEADER_METHOD:sj,HTTP2_HEADER_PATH:nj,HTTP2_HEADER_SCHEME:Bx,HTTP2_HEADER_CONTENT_LENGTH:vPe,HTTP2_HEADER_EXPECT:PPe,HTTP2_HEADER_STATUS:Qx,HTTP2_HEADER_PROTOCOL:OPe,NGHTTP2_REFUSED_STREAM:_Pe,NGHTTP2_CANCEL:HPe}}=KC;function yx(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function GPe(t,e){t[nt]=e;let r=t[kPe],s=t[FPe],n=KC.connect(t[Bh],{createConnection:()=>e,peerMaxConcurrentStreams:t[zC],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[nt]=e,n[en]=0,n[cs]=t,n[nt]=e,n[Tx]={ping:{interval:t[ej]===0?null:setInterval(JPe,t[ej],n).unref()}},n[Ch]=!1,n[Ih]=!1,s&&he.addListener(n,"connect",qPe.bind(n,s)),he.addListener(n,"error",WPe),he.addListener(n,"frameError",zPe),he.addListener(n,"end",KPe),he.addListener(n,"goaway",XPe),he.addListener(n,"close",jPe),he.addListener(n,"remoteSettings",VPe),n.unref(),t[ji]=n,e[ji]=n,he.addListener(e,"error",$Pe),he.addListener(e,"end",e3e),he.addListener(e,"close",ZPe),e[wx]=!1,e.on("close",t3e),{version:"h2",defaultPipelining:1/0,write(i){return s3e(t,i)},resume(){YPe(t)},destroy(i,o){e[wx]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[yh]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ih]===!1||he.bodyLength(i.body)!==0&&(he.isStream(i.body)||he.isAsyncIterable(i.body)||he.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ih]===!1;return!1}}}function YPe(t){let e=t[nt];e?.destroyed===!1&&(t[MPe]===0||t[zC]===0?(e.unref(),t[ji].unref()):(e.ref(),t[ji].ref()))}function qPe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function VPe(t){if(this[cs][zC]=t.maxConcurrentStreams??this[cs][zC],this[Ih]===!0&&this[Ch]===!0&&t.enableConnectProtocol===!1){let e=new Zo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[nt][us]=e,this[cs][cl](e);return}this[Ch]=t.enableConnectProtocol??this[Ch],this[Ih]=!0,this[cs][ai]()}function JPe(t){let e=t[Tx];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[cs],o=this[cs];if(s!=null){let a=new Zo(`HTTP/2: "PING" errored - type ${s.message}`);o[us]=a,i[cl](a)}else i.emit("ping",n)}}function WPe(t){tn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[nt][us]=t,this[cs][cl](t)}function zPe(t,e,r){if(r===0){let s=new Zo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[nt][us]=s,this[cs][cl](s)}}function KPe(){let t=new Qh("other side closed",he.getSocketInfo(this[nt]));this.destroy(t),he.destroy(this[nt],t)}function XPe(t){let e=this[us]||new Qh(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this[nt])),r=this[cs];if(r[nt]=null,r[Sx]=null,this.close(),this[ji]=null,he.destroy(this[nt],e),r[Tn]<r[$o].length){let s=r[$o][r[Tn]];r[$o][r[Tn]++]=null,he.errorRequest(r,s,e),r[Nx]=r[Tn]}tn(r[yh]===0),r.emit("disconnect",r[Bh],[r],e),r.emit("connectionError",r[Bh],[r],e),r[ai]()}function jPe(){let{[cs]:t,[Tx]:e}=this,{[nt]:r}=t,s=this[nt][us]||this[us]||new Qh("closed",he.getSocketInfo(r));if(t[nt]=null,t[Sx]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){tn(t[xPe]===0);let n=t[$o].splice(t[Tn]);for(let i=0;i<n.length;i++){let o=n[i];he.errorRequest(t,o,s)}}}function ZPe(){let t=this[us]||new Qh("closed",he.getSocketInfo(this)),e=this[ji][cs];e[nt]=null,e[Sx]=null,this[ji]!==null&&this[ji].destroy(t),e[Nx]=e[Tn],tn(e[yh]===0),e.emit("disconnect",e[Bh],[e],t),e[ai]()}function $Pe(t){tn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[us]=t,this[cs][cl](t)}function e3e(){he.destroy(this,new Qh("other side closed",he.getSocketInfo(this)))}function t3e() Line truncated
`;tj.sendHeaders.publish({request:e,headers:k,socket:s[nt]})}let D=n==="GET"||n==="HEAD"||g===null;A?(h[PPe]="100-continue",f=s.request(h,{endStream:D,signal:c}),f[WC]=!0,f.once("continue",P)):(f=s.request(h,{endStream:D,signal:c}),f[WC]=!0,P()),++s[en],f.setTimeout(r);let U=!1;return f.once("response",k=>{let{[Qx]:O,..._}=k;if(e.onResponseStarted(),U=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(O),yx(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ne=>{e.aborted||e.completed||e.onData(Ne)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),U?(!e.aborted&&!e.completed&&e.onComplete({}),t[$o][t[Tn]++]=null,t[ai]()):(p(new Zo("HTTP/2: stream half-closed (remote)")),t[$o][t[Tn]++]=null,t[Nx]=t[Tn],t[ai]())}),f.once("close",()=>{f.removeAllListeners("data"),s[en]-=1,s[en]===0&&s.unref()}),f.once("error",function(k){f.removeAllListeners("data"),p(k)}),f.once("frameError",(k,O)=>{f.removeAllListeners("data"),p(new Zo(`HTTP/2: "frameError" received - type ${k}, code ${O}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Zo(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[en]-=1,s[en]===0&&s.unref(),p(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function P(){!g||N===0?ij(p,f,null,t,e,t[nt],N,y):he.isBuffer(g)?ij(p,f,g,t,e,t[nt],N,y):he.isBlobLike(g)?typeof g.stream=="function"?oj(p,f,g.stream(),t,e,t[nt],N,y):i3e(p,f,g,t,e,t[nt],N,y):he.isStream(g)?n3e(p,t[nt],y,f,g,t,e,N):he.isIterable(g)?oj(p,f,g,t,e,t[nt],N,y):tn(!1)}}function ij(t,e,r,s,n,i,o,a){try{r!=null&&he.isBuffer(r)&&(tn(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[XC]=!0),n.onRequestSent(),s[ai]()}catch(A){t(A)}}function n3e(t,e,r,s,n,i,o,a){tn(a!==0||i[yh]===0,"stream body cannot be pipelined");let A=SPe(n,s,u=>{u?(he.destroy(A,u),t(u)):(he.removeAllListeners(A),o.onRequestSent(),r||(e[XC]=!0),i[ai]())});he.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function i3e(t,e,r,s,n,i,o,a){tn(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new bx;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[XC]=!0),s[ai]()}catch(A){t(A)}}async function oj(t,e,r,s,n,i,o,a){tn(o!==0||s[yh]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{tn(A===null),i[us]?g(i[us]):A=d});e.on("close",c).on("drain",c);try{for await(let d of r){if(i[us])throw i[us];let g=e.write(d);n.onBodySent(d),g||await u()}e.end(),n.onRequestSent(),a||(i[XC]=!0),s[ai]()}catch(d){t(d)}finally{e.off("close",c).off("drain",c)}}aj.exports=GPe});var na=m((rQt,pj)=>{"use strict";var Zi=Q("node:assert"),gj=Q("node:net"),bh=Q("node:http"),SA=ce(),{ClientStats:o3e}=y2(),{channels:ul}=Wo(),a3e=xK(),A3e=BA(),{InvalidArgumentError:je,InformationalError:c3e,ClientDestroyedError:u3e}=ae(),l3e=QA(),{kUrl:Ai,kServerName:sa,kClient:d3e,kBusy:Dx,kConnect:g3e,kResuming:TA,kRunning:Th,kPending:Dh,kSize:wh,kQueue:Dn,kConnected:h3e,kConnecting:ll,kNeedDrain:ta,kKeepAliveDefaultTimeout:cj,kHostHeader:f3e,kPendingIdx:xn,kRunningIdx:$i,kError:m3e,kPipelining:jC,kKeepAliveTimeoutValue:p3e,kMaxHeadersSize:E3e,kKeepAliveMaxTimeout:C3e,kKeepAliveTimeoutThreshold:I3e,kHeadersTimeout:B3e,kBodyTimeout:Q3e,kStrictContentLength:y3e,kConnector:Nh,kMaxRequests:xx,kCounter:b3e,kClose:w3e,kDestroy:N3e,kDispatch:S3e,kLocalAddress:Sh,kMaxResponseSize:T3e,kOnError:D3e,kHTTPContext:Bt,kMaxConcurrentStreams:x3e,kHTTP2InitialWindowSize:R3e,kHTTP2ConnectionWindowSize:k3e,kResume:ra,kPingInterval:F3e}=Me(),M3e=$X(),U3e=Aj(),ea=Symbol("kClosedResolve"),L3e=bh&&bh.maxHeaderSize&&Number.isInteger(bh.maxHeaderSize)&&bh.maxHeaderSize>0?()=>bh.maxHeaderSize:()=>{throw new je("http module not available or http.maxHeaderSize invalid")},uj=()=>{};function hj(t){return t[jC]??t[Bt]?.defaultPipelining??1}var Rx=class extends A3e{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:d,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:E,tls:w,strictContentLength:p,maxCachedSessions:y,connect:N,maxRequestsPerClient:D,localAddress:U,maxResponseSize:P,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:O,maxConcurrentStreams:_,allowH2:Ne,useH2c:Ye,initialWindowSize:ue,connectionWindowSize:fe,pingInterval:Ie}={}){if(c!==void 0)throw new je("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new je("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new je("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new je("unsupported idleTimeout, use keepAliveTimeout instead");if(d!==void 0)throw new je("unsupported maxK Line truncated
`,this[Q3e]=a??3e5,this[B3e]=s??3e5,this[y3e]=p??!0,this[xx]=D,this[ea]=null,this[T3e]=P>-1?P:-1,this[Bt]=null,this[x3e]=_??100,this[R3e]=ue??262144,this[k3e]=fe??524288,this[F3e]=Ie??6e4,this[Dn]=[],this[$i]=0,this[xn]=0,this[ra]=dt=>kx(this,dt),this[D3e]=dt=>fj(this,dt)}get pipelining(){return this[jC]}set pipelining(e){this[jC]=e,this[ra](!0)}get stats(){return new o3e(this)}get[Dh](){return this[Dn].length-this[xn]}get[Th](){return this[xn]-this[$i]}get[wh](){return this[Dn].length-this[$i]}get[h3e](){return!!this[Bt]&&!this[ll]&&!this[Bt].destroyed}get[Dx](){return!!(this[Bt]?.busy(null)||this[wh]>=(hj(this)||1)||this[Dh]>0)}[g3e](e){mj(this),this.once("connect",e)}[S3e](e,r){let s=new a3e(this[Ai].origin,e,r);return this[Dn].push(s),this[TA]||(SA.bodyLength(s.body)==null&&SA.isIterable(s.body)?(this[TA]=1,queueMicrotask(()=>kx(this))):this[ra](!0)),this[TA]&&this[ta]!==2&&this[Dx]&&(this[ta]=2),this[ta]<2}[w3e](){return new Promise(e=>{this[wh]?this[ea]=e:e(null)})}[N3e](e){return new Promise(r=>{let s=this[Dn].splice(this[xn]);for(let i=0;i<s.length;i++){let o=s[i];SA.errorRequest(this,o,e)}let n=()=>{this[ea]&&(this[ea](),this[ea]=null),r(null)};this[Bt]?(this[Bt].destroy(e,n),this[Bt]=null):queueMicrotask(n),this[ra]()})}};function fj(t,e){if(t[Th]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Zi(t[xn]===t[$i]);let r=t[Dn].splice(t[$i]);for(let s=0;s<r.length;s++){let n=r[s];SA.errorRequest(t,n,e)}Zi(t[wh]===0)}}function mj(t){Zi(!t[ll]),Zi(!t[Bt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ai];if(r[0]==="["){let i=r.indexOf("]");Zi(i!==-1);let o=r.substring(1,i);Zi(gj.isIPv6(o)),r=o}t[ll]=!0,ul.beforeConnect.hasSubscribers&&ul.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Bt]?.version,servername:t[sa],localAddress:t[Sh]},connector:t[Nh]}),t[Nh]({host:e,hostname:r,protocol:s,port:n,servername:t[sa],localAddress:t[Sh]},(i,o)=>{if(i){lj(t,i,{host:e,hostname:r,protocol:s,port:n}),t[ra]();return}if(t.destroyed){SA.destroy(o.on("error",uj),new u3e),t[ra]();return}Zi(o);try{t[Bt]=o.alpnProtocol==="h2"?U3e(t,o):M3e(t,o)}catch(a){o.destroy().on("error",uj),lj(t,a,{host:e,hostname:r,protocol:s,port:n}),t[ra]();return}t[ll]=!1,o[b3e]=0,o[xx]=t[xx],o[d3e]=t,o[m3e]=null,ul.connected.hasSubscribers&&ul.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Bt]?.version,servername:t[sa],localAddress:t[Sh]},connector:t[Nh],socket:o}),t.emit("connect",t[Ai],[t]),t[ra]()})}function lj(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[ll]=!1,ul.connectError.hasSubscribers&&ul.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Bt]?.version,servername:t[sa],localAddress:t[Sh]},connector:t[Nh],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Zi(t[Th]===0);t[Dh]>0&&t[Dn][t[xn]].servername===t[sa];){let o=t[Dn][t[xn]++];SA.errorRequest(t,o,e)}else fj(t,e);t.emit("connectionError",t[Ai],[t],e)}}function dj(t){t[ta]=0,t.emit("drain",t[Ai],[t])}function kx(t,e){t[TA]!==2&&(t[TA]=2,v3e(t,e),t[TA]=0,t[$i]>256&&(t[Dn].splice(0,t[$i]),t[xn]-=t[$i],t[$i]=0))}function v3e(t,e){for(;;){if(t.destroyed){Zi(t[Dh]===0);return}if(t[ea]&&!t[wh]){t[ea](),t[ea]=null;return}if(t[Bt]&&t[Bt].resume(),t[Dx])t[ta]=2;else if(t[ta]===2){e?(t[ta]=1,queueMicrotask(()=>dj(t))):dj(t);continue}if(t[Dh]===0||t[Th]>=(hj(t)||1))return;let r=t[Dn][t[xn]];if(r===null)return;if(t[Ai].protocol==="https:"&&t[sa]!==r.servername){if(t[Th]>0)return;t[sa]=r.servername,t[Bt]?.destroy(new c3e("servername changed"),()=>{t[Bt]=null,kx(t)})}if(t[ll])return;if(!t[Bt]){mj(t);return}if(t[Bt].destroyed||t[Bt].busy(r))return;!r.aborted&&t[Bt].write(r)?t[xn]++:t[Dn].splice(t[xn],1)}}pj.exports=Rx});var Fx=m((nQt,Ej)=>{"use strict";var ZC=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Ej.exports=class{constructor(){this.head=this.tail=new ZC}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ZC),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var $C=m((iQt,Sj)=>{"use strict";var{PoolStats:P3e}=y2(),O3e=BA(),_3e=Fx(),{kConnected:Mx,kSize:Cj,kRunning:Ij,kPending:Bj,kQueued:xh,kBusy:H3e,kFree:G3e,kUrl:Y3e,kClose:q3e,kDestroy:V3e,kDispatch:J3e}=Me(),Gt=Symbol("clients"),pr=Symbol("needDrain"),Rh=Symbol("queue"),Ux=Symbol("closed resolve"),Lx=Symbol("onDrain"),Qj=Symbol("onConnect"),yj=Symbol("onDisconnect"),bj=Symbol("onConnectionError"),vx=Symbol("get dispatcher"),wj=Symbol("add client"),Nj=Symbol("remove client"),Px=class extends O3e{[Rh]=new _3e;[xh]=0;[Gt]=[];[pr]=!1;[Lx](e,r,s){let n=this[Rh],i=!1;for(;!i;){let o=n.shift();if(!o)break;this[xh]--,i Line truncated
`,"latin1"),r!==null&&n!==r){if(s[_8])throw new Bl;process.emitWarning(new Bl)}e[vt].timeout&&e[vt].timeoutType===yg&&e[vt].timeout.refresh&&e[vt].timeout.refresh(),s[pc]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[mc]=!1,e&&(de(s[Gr]<=1,"pipeline should only contain this request"),n(e))}};Xoe.exports=uVe});var oae=m((H2t,iae)=>{"use strict";var oi=b("node:assert"),{pipeline:BVe}=b("node:stream"),Te=Ie(),{RequestContentLengthMismatchError:z8,RequestAbortedError:QVe,SocketError:FE,InformationalError:Ec,InvalidArgumentError:yVe}=Ee(),{kUrl:kE,kReset:sw,kClient:An,kRunning:ME,kPending:bVe,kQueue:Cc,kPendingIdx:X8,kRunningIdx:Hi,kError:cn,kSocket:Nt,kStrictContentLength:wVe,kOnError:bg,kMaxConcurrentStreams:tw,kPingInterval:Zoe,kHTTP2Session:rA,kHTTP2InitialWindowSize:NVe,kHTTP2ConnectionWindowSize:SVe,kResume:Ko,kSize:TVe,kHTTPContext:j8,kClosed:K8,kBodyTimeout:xVe,kEnableConnectProtocol:DE,kRemoteSettings:RE,kHTTP2Stream:ew,kHTTP2SessionState:Z8}=$e(),{channels:$oe}=hc(),ii=Symbol("open streams"),eae,rw;try{rw=b("node:http2")}catch{rw={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:DVe,HTTP2_HEADER_METHOD:tae,HTTP2_HEADER_PATH:rae,HTTP2_HEADER_SCHEME:V8,HTTP2_HEADER_CONTENT_LENGTH:RVe,HTTP2_HEADER_EXPECT:kVe,HTTP2_HEADER_STATUS:J8,HTTP2_HEADER_PROTOCOL:FVe,NGHTTP2_REFUSED_STREAM:MVe,NGHTTP2_CANCEL:UVe}}=rw;function W8(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function LVe(t,e){t[Nt]=e;let r=t[NVe],s=t[SVe],n=rw.connect(t[kE],{createConnection:()=>e,peerMaxConcurrentStreams:t[tw],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Nt]=e,n[ii]=0,n[An]=t,n[Nt]=e,n[Z8]={ping:{interval:t[Zoe]===0?null:setInterval(_Ve,t[Zoe],n).unref()}},n[DE]=!1,n[RE]=!1,s&&Te.addListener(n,"connect",vVe.bind(n,s)),Te.addListener(n,"error",HVe),Te.addListener(n,"frameError",GVe),Te.addListener(n,"end",YVe),Te.addListener(n,"goaway",qVe),Te.addListener(n,"close",VVe),Te.addListener(n,"remoteSettings",OVe),n.unref(),t[rA]=n,e[rA]=n,Te.addListener(e,"error",WVe),Te.addListener(e,"end",zVe),Te.addListener(e,"close",JVe),e[K8]=!1,e.on("close",KVe),{version:"h2",defaultPipelining:1/0,write(i){return jVe(t,i)},resume(){PVe(t)},destroy(i,o){e[K8]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[ME]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[RE]===!1||Te.bodyLength(i.body)!==0&&(Te.isStream(i.body)||Te.isAsyncIterable(i.body)||Te.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[RE]===!1;return!1}}}function PVe(t){let e=t[Nt];e?.destroyed===!1&&(t[TVe]===0||t[tw]===0?(e.unref(),t[rA].unref()):(e.ref(),t[rA].ref()))}function vVe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function OVe(t){if(this[An][tw]=t.maxConcurrentStreams??this[An][tw],this[RE]===!0&&this[DE]===!0&&t.enableConnectProtocol===!1){let e=new Ec("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Nt][cn]=e,this[An][bg](e);return}this[DE]=t.enableConnectProtocol??this[DE],this[RE]=!0,this[An][Ko]()}function _Ve(t){let e=t[Z8];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[An],o=this[An];if(s!=null){let a=new Ec(`HTTP/2: "PING" errored - type ${s.message}`);o[cn]=a,i[bg](a)}else i.emit("ping",n)}}function HVe(t){oi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Nt][cn]=t,this[An][bg](t)}function GVe(t,e,r){if(r===0){let s=new Ec(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Nt][cn]=s,this[An][bg](s)}}function YVe(){let t=new FE("other side closed",Te.getSocketInfo(this[Nt]));this.destroy(t),Te.destroy(this[Nt],t)}function qVe(t){let e=this[cn]||new FE(`HTTP/2: "GOAWAY" frame received with code ${t}`,Te.getSocketInfo(this[Nt])),r=this[An];if(r[Nt]=null,r[j8]=null,this.close(),this[rA]=null,Te.destroy(this[Nt],e),r[Hi]<r[Cc].length){let s=r[Cc][r[Hi]];r[Cc][r[Hi]++]=null,Te.errorRequest(r,s,e),r[X8]=r[Hi]}oi(r[ME]===0),r.emit("disconnect",r[kE],[r],e),r.emit("connectionError",r[kE],[r],e),r[Ko]()}function VVe(){let{[An]:t,[Z8]:e}=this,{[Nt]:r}=t,s=this[Nt][cn]||this[cn]||new FE("closed",Te.getSocketInfo(r));if(t[Nt]=null,t[j8]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){oi(t[bVe]===0);let n=t[Cc].splice(t[Hi]);for(let i=0;i<n.length;i++){let o=n[i];Te.errorRequest(t,o,s)}}}function JVe(){let t=this[cn]||new FE("closed",Te.getSocketInfo(this)),e=this[rA][An];e[Nt]=null,e[j8]=null,this[rA]!==null&&this[rA].destroy(t),e[X8]=e[Hi],oi(e[ME]===0),e.emit("disconnect",e[kE],[e],t),e[Ko]()}function WVe(t){oi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn]=t,this[An][bg](t)}function zVe(){Te.destroy(this,new FE("other side closed",Te.getSocketInfo(this)))}func Line truncated
`;$oe.sendHeaders.publish({request:e,headers:F,socket:s[Nt]})}let x=n==="GET"||n==="HEAD"||d===null;A?(g[kVe]="100-continue",f=s.request(g,{endStream:x,signal:c}),f[ew]=!0,f.once("continue",O)):(f=s.request(g,{endStream:x,signal:c}),f[ew]=!0,O()),++s[ii],f.setTimeout(r);let k=!1;return f.once("response",F=>{let{[J8]:_,...H}=F;if(e.onResponseStarted(),k=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(_),W8(H),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ye=>{e.aborted||e.completed||e.onData(Ye)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),k?(!e.aborted&&!e.completed&&e.onComplete({}),t[Cc][t[Hi]++]=null,t[Ko]()):(E(new Ec("HTTP/2: stream half-closed (remote)")),t[Cc][t[Hi]++]=null,t[X8]=t[Hi],t[Ko]())}),f.once("close",()=>{f.removeAllListeners("data"),s[ii]-=1,s[ii]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),E(F)}),f.once("frameError",(F,_)=>{f.removeAllListeners("data"),E(new Ec(`HTTP/2: "frameError" received - type ${F}, code ${_}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new Ec(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[ii]-=1,s[ii]===0&&s.unref(),E(F)}),f.once("trailers",F=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(F))}),!0;function O(){!d||w===0?sae(E,f,null,t,e,t[Nt],w,C):Te.isBuffer(d)?sae(E,f,d,t,e,t[Nt],w,C):Te.isBlobLike(d)?typeof d.stream=="function"?nae(E,f,d.stream(),t,e,t[Nt],w,C):$Ve(E,f,d,t,e,t[Nt],w,C):Te.isStream(d)?ZVe(E,t[Nt],C,f,d,t,e,w):Te.isIterable(d)?nae(E,f,d,t,e,t[Nt],w,C):oi(!1)}}function sae(t,e,r,s,n,i,o,a){try{r!=null&&Te.isBuffer(r)&&(oi(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[sw]=!0),n.onRequestSent(),s[Ko]()}catch(A){t(A)}}function ZVe(t,e,r,s,n,i,o,a){oi(a!==0||i[ME]===0,"stream body cannot be pipelined");let A=BVe(n,s,u=>{u?(Te.destroy(A,u),t(u)):(Te.removeAllListeners(A),o.onRequestSent(),r||(e[sw]=!0),i[Ko]())});Te.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function $Ve(t,e,r,s,n,i,o,a){oi(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new z8;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[sw]=!0),s[Ko]()}catch(A){t(A)}}async function nae(t,e,r,s,n,i,o,a){oi(o!==0||s[ME]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{oi(A===null),i[cn]?d(i[cn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[cn])throw i[cn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[sw]=!0),s[Ko]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}iae.exports=LVe});var bc=m((G2t,fae)=>{"use strict";var sA=b("node:assert"),lae=b("node:net"),UE=b("node:http"),Ql=Ie(),{ClientStats:eJe}=W3(),{channels:wg}=hc(),tJe=Tie(),rJe=pl(),{InvalidArgumentError:ft,InformationalError:sJe,ClientDestroyedError:nJe}=Ee(),iJe=ml(),{kUrl:Xo,kServerName:yc,kClient:oJe,kBusy:$8,kConnect:aJe,kResuming:yl,kRunning:OE,kPending:_E,kSize:LE,kQueue:Gi,kConnected:AJe,kConnecting:Ng,kNeedDrain:Bc,kKeepAliveDefaultTimeout:aae,kHostHeader:cJe,kPendingIdx:Yi,kRunningIdx:nA,kError:uJe,kPipelining:nw,kKeepAliveTimeoutValue:lJe,kMaxHeadersSize:dJe,kKeepAliveMaxTimeout:hJe,kKeepAliveTimeoutThreshold:gJe,kHeadersTimeout:fJe,kBodyTimeout:pJe,kStrictContentLength:mJe,kConnector:PE,kMaxRequests:e4,kCounter:EJe,kClose:CJe,kDestroy:IJe,kDispatch:BJe,kLocalAddress:vE,kMaxResponseSize:QJe,kOnError:yJe,kHTTPContext:Xt,kMaxConcurrentStreams:bJe,kHTTP2InitialWindowSize:wJe,kHTTP2ConnectionWindowSize:NJe,kResume:Qc,kPingInterval:SJe}=$e(),TJe=joe(),xJe=oae(),Ic=Symbol("kClosedResolve"),DJe=UE&&UE.maxHeaderSize&&Number.isInteger(UE.maxHeaderSize)&&UE.maxHeaderSize>0?()=>UE.maxHeaderSize:()=>{throw new ft("http module not available or http.maxHeaderSize invalid")},Aae=()=>{};function dae(t){return t[nw]??t[Xt]?.defaultPipelining??1}var t4=class extends rJe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:g,socketPath:f,pipelining:p,tls:B,strictContentLength:E,maxCachedSessions:C,connect:w,maxRequestsPerClient:x,localAddress:k,maxResponseSize:O,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:_,maxConcurrentStreams:H,allowH2:Ye,useH2c:at,initialWindowSize:Be,connectionWindowSize:xe,pingInterval:Ue}={}){if(c!==void 0)throw new ft("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new ft("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new ft("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new ft("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new ft(" Line truncated
`,this[pJe]=a??3e5,this[fJe]=s??3e5,this[mJe]=E??!0,this[e4]=x,this[Ic]=null,this[QJe]=O>-1?O:-1,this[Xt]=null,this[bJe]=H??100,this[wJe]=Be??262144,this[NJe]=xe??524288,this[SJe]=Ue??6e4,this[Gi]=[],this[nA]=0,this[Yi]=0,this[Qc]=_t=>r4(this,_t),this[yJe]=_t=>hae(this,_t)}get pipelining(){return this[nw]}set pipelining(e){this[nw]=e,this[Qc](!0)}get stats(){return new eJe(this)}get[_E](){return this[Gi].length-this[Yi]}get[OE](){return this[Yi]-this[nA]}get[LE](){return this[Gi].length-this[nA]}get[AJe](){return!!this[Xt]&&!this[Ng]&&!this[Xt].destroyed}get[$8](){return!!(this[Xt]?.busy(null)||this[LE]>=(dae(this)||1)||this[_E]>0)}[aJe](e){gae(this),this.once("connect",e)}[BJe](e,r){let s=new tJe(this[Xo].origin,e,r);return this[Gi].push(s),this[yl]||(Ql.bodyLength(s.body)==null&&Ql.isIterable(s.body)?(this[yl]=1,queueMicrotask(()=>r4(this))):this[Qc](!0)),this[yl]&&this[Bc]!==2&&this[$8]&&(this[Bc]=2),this[Bc]<2}[CJe](){return new Promise(e=>{this[LE]?this[Ic]=e:e(null)})}[IJe](e){return new Promise(r=>{let s=this[Gi].splice(this[Yi]);for(let i=0;i<s.length;i++){let o=s[i];Ql.errorRequest(this,o,e)}let n=()=>{this[Ic]&&(this[Ic](),this[Ic]=null),r(null)};this[Xt]?(this[Xt].destroy(e,n),this[Xt]=null):queueMicrotask(n),this[Qc]()})}};function hae(t,e){if(t[OE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){sA(t[Yi]===t[nA]);let r=t[Gi].splice(t[nA]);for(let s=0;s<r.length;s++){let n=r[s];Ql.errorRequest(t,n,e)}sA(t[LE]===0)}}function gae(t){sA(!t[Ng]),sA(!t[Xt]);let{host:e,hostname:r,protocol:s,port:n}=t[Xo];if(r[0]==="["){let i=r.indexOf("]");sA(i!==-1);let o=r.substring(1,i);sA(lae.isIPv6(o)),r=o}t[Ng]=!0,wg.beforeConnect.hasSubscribers&&wg.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Xt]?.version,servername:t[yc],localAddress:t[vE]},connector:t[PE]}),t[PE]({host:e,hostname:r,protocol:s,port:n,servername:t[yc],localAddress:t[vE]},(i,o)=>{if(i){cae(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Qc]();return}if(t.destroyed){Ql.destroy(o.on("error",Aae),new nJe),t[Qc]();return}sA(o);try{t[Xt]=o.alpnProtocol==="h2"?xJe(t,o):TJe(t,o)}catch(a){o.destroy().on("error",Aae),cae(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Qc]();return}t[Ng]=!1,o[EJe]=0,o[e4]=t[e4],o[oJe]=t,o[uJe]=null,wg.connected.hasSubscribers&&wg.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Xt]?.version,servername:t[yc],localAddress:t[vE]},connector:t[PE],socket:o}),t.emit("connect",t[Xo],[t]),t[Qc]()})}function cae(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Ng]=!1,wg.connectError.hasSubscribers&&wg.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Xt]?.version,servername:t[yc],localAddress:t[vE]},connector:t[PE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(sA(t[OE]===0);t[_E]>0&&t[Gi][t[Yi]].servername===t[yc];){let o=t[Gi][t[Yi]++];Ql.errorRequest(t,o,e)}else hae(t,e);t.emit("connectionError",t[Xo],[t],e)}}function uae(t){t[Bc]=0,t.emit("drain",t[Xo],[t])}function r4(t,e){t[yl]!==2&&(t[yl]=2,RJe(t,e),t[yl]=0,t[nA]>256&&(t[Gi].splice(0,t[nA]),t[Yi]-=t[nA],t[nA]=0))}function RJe(t,e){for(;;){if(t.destroyed){sA(t[_E]===0);return}if(t[Ic]&&!t[LE]){t[Ic](),t[Ic]=null;return}if(t[Xt]&&t[Xt].resume(),t[$8])t[Bc]=2;else if(t[Bc]===2){e?(t[Bc]=1,queueMicrotask(()=>uae(t))):uae(t);continue}if(t[_E]===0||t[OE]>=(dae(t)||1))return;let r=t[Gi][t[Yi]];if(r===null)return;if(t[Xo].protocol==="https:"&&t[yc]!==r.servername){if(t[OE]>0)return;t[yc]=r.servername,t[Xt]?.destroy(new sJe("servername changed"),()=>{t[Xt]=null,r4(t)})}if(t[Ng])return;if(!t[Xt]){gae(t);return}if(t[Xt].destroyed||t[Xt].busy(r))return;!r.aborted&&t[Xt].write(r)?t[Yi]++:t[Gi].splice(t[Yi],1)}}fae.exports=t4});var s4=m((q2t,pae)=>{"use strict";var iw=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};pae.exports=class{constructor(){this.head=this.tail=new iw}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new iw),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var ow=m((V2t,wae)=>{"use strict";var{PoolStats:kJe}=W3(),FJe=pl(),MJe=s4(),{kConnected:n4,kSize:mae,kRunning:Eae,kPending:Cae,kQueued:HE,kBusy:UJe,kFree:LJe,kUrl:PJe,kClose:vJe,kDestroy:OJe,kDispatch:_Je}=$e(),Nr=Symbol("clients"),ns=Symbol("needDrain"),GE=Symbol("queue"),i4=Symbol("closed resolve"),o4=Symbol("onDrain"),Iae=Symbol("onConnect"),Bae=Symbol("onDisconnect"),Qae=Symbol("onConnectionError"),a4=Symbol("get dispatcher"),yae=Symbol("add client"),bae=Symbol("remove client"),A4=class extends FJe{[GE]=new MJe;[HE]=0;[Nr]=[];[ns]=!1;[o4](e,r,s){let n=this[GE],i=!1;for(;!i;){let o=n.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};K$.exports=$R});var tk=m((LQt,$$)=>{"use strict";var{InvalidArgumentError:YOe}=ae(),{runtimeFeatures:qOe}=Ki();function VOe(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var X$=qOe.has("crypto")?Q("node:crypto"):null,JOe=X$?.hash?t=>X$.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Z$(t){return Array.isArray(t)&&(t.length&1)===0}function WOe(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function zOe(t){let e={};if(!t)return e;if(Z$(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var j$=["record","playback","update"];function KOe(t){if(!j$.includes(t))throw new YOe(`Invalid snapshot mode: ${t}. Must be one of: ${j$.join(", ")}`)}$$.exports={createHeaderFilters:VOe,hashId:JOe,isUndiciHeaders:Z$,normalizeHeaders:zOe,isUrlExcludedFactory:WOe,validateSnapshotMode:KOe}});var Aee=m((vQt,aee)=>{"use strict";var{writeFile:XOe,readFile:jOe,mkdir:ZOe}=Q("node:fs/promises"),{dirname:$Oe,resolve:eee}=Q("node:path"),{setTimeout:e6e,clearTimeout:tee}=Q("node:timers"),{InvalidArgumentError:ree,UndiciError:t6e}=ae(),{hashId:r6e,isUrlExcludedFactory:s6e,normalizeHeaders:see,createHeaderFilters:nee}=tk();function Vh(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||see(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:iee(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function iee(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function oee(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function Jh(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return r6e(r)}var rk=class{#e;#t;#r=new Map;#s;#i=1/0;#n=!1;#a;constructor(e={}){this.#s=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=nee(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=s6e(e.excludeUrls),this.#n&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=Vh(e,this.#a,this.matchOptions),n=Jh(s),i=see(r.headers),o={statusCode:r.statusCode,headers:oee(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#s&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Vh(e,this.#a,this.matchOptions),s=Jh(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#s;if(!r)throw new ree("Snapshot path is required");try{let s=await jOe(eee(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#r.clear();for(let{hash:i,snapshot:o}of n)this.#r.set(i,o)}else this.#r=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#r.clear();else throw new t6e(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new ree("Snapshot path is required");let s=eee(r);await ZOe($Oe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await XOe(s,JSON.stringify(n,n Line truncated
${e.format(r)}`.trim())}};Wce.exports=yO});var wO=m((QDt,jce)=>{"use strict";var{InvalidArgumentError:Pze}=Ee(),{runtimeFeatures:vze}=eA();function Oze(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var zce=vze.has("crypto")?b("node:crypto"):null,_ze=zce?.hash?t=>zce.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Xce(t){return Array.isArray(t)&&(t.length&1)===0}function Hze(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function Gze(t){let e={};if(!t)return e;if(Xce(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var Kce=["record","playback","update"];function Yze(t){if(!Kce.includes(t))throw new Pze(`Invalid snapshot mode: ${t}. Must be one of: ${Kce.join(", ")}`)}jce.exports={createHeaderFilters:Oze,hashId:_ze,isUndiciHeaders:Xce,normalizeHeaders:Gze,isUrlExcludedFactory:Hze,validateSnapshotMode:Yze}});var oue=m((yDt,iue)=>{"use strict";var{writeFile:qze,readFile:Vze,mkdir:Jze}=b("node:fs/promises"),{dirname:Wze,resolve:Zce}=b("node:path"),{setTimeout:zze,clearTimeout:$ce}=b("node:timers"),{InvalidArgumentError:eue,UndiciError:Kze}=Ee(),{hashId:Xze,isUrlExcludedFactory:jze,normalizeHeaders:tue,createHeaderFilters:rue}=wO();function r0(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||tue(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:sue(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function sue(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function nue(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function s0(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Xze(r)}var NO=class{#e;#t;#r=new Map;#s;#i=1/0;#n=!1;#a;constructor(e={}){this.#s=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=rue(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=jze(e.excludeUrls),this.#n&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=r0(e,this.#a,this.matchOptions),n=s0(s),i=tue(r.headers),o={statusCode:r.statusCode,headers:nue(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#s&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=r0(e,this.#a,this.matchOptions),s=s0(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#s;if(!r)throw new eue("Snapshot path is required");try{let s=await Vze(Zce(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#r.clear();for(let{hash:i,snapshot:o}of n)this.#r.set(i,o)}else this.#r=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#r.clear();else throw new Kze(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new eue("Snapshot path is required");let s=Zce(r);await Jze(Wze(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await qze(s,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${gs} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${dn} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};K$.exports=$R});var tk=m((LQt,$$)=>{"use strict";var{I
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${gs}_getValuesQuery ON cacheInterceptorV${gs}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${gs}_deleteByUrlQuery ON cacheInterceptorV${gs}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${dn}_getValuesQuery ON cacheInterceptorV${dn}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${dn}_deleteByUrlQuery ON cacheInterceptorV${dn}(deleteAt);
`),this.#s=this.#r.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};K$.exports=$R});var tk=m((LQt,$$)=>{"use strict";var{I
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${gs}
FROM cacheInterceptorV${dn}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#i=this.#r.prepare(`
UPDATE cacheInterceptorV${gs} SET
UPDATE cacheInterceptorV${dn} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -168,7 +168,7 @@ ${e.format(r)}`.trim())}};K$.exports=$R});var tk=m((LQt,$$)=>{"use strict";var{I
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${gs} (
INSERT INTO cacheInterceptorV${dn} (
url,
method,
body,
@@ -182,44 +182,79 @@ ${e.format(r)}`.trim())}};K$.exports=$R});var tk=m((LQt,$$)=>{"use strict";var{I
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${gs} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${gs}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${gs} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${gs}
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${dn} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${dn}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${dn} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${dn}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${gs}
FROM cacheInterceptorV${dn}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){bk(e);let r=this.#l(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){bk(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#d(),this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){bk(e),Y_e(r);let s=0,n=[],i=this;return new G_e({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#u(e))}#d(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#s.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let d in u)if(!q_e(n[d],u[d])){c=!1;break}}if(c)return A}}};function q_e(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var GA=m((iyt,fte)=>{"use strict";var{kConstruct:V_e}=Me(),{kEnumerableProperty:Nl}=ce(),{iteratorMixin:J_e,isValidHeaderName:Xh,isValidHeaderValue:ute}=As(),{webidl:ye}=Jt(),Nk=Q("node:assert"),xI=Q("node:util");function cte(t){return t===10||t===13||t===9||t===32}function lte(t){let e=0,r=t.length;for(;r>e&&cte(t.charCodeAt(r-1));)--r;for(;r>e&&cte(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function dte(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw ye.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});Sk(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)Sk(t,r[s],e[r[s]])}else throw ye.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Sk(t,e,r){if(r=lte(r),Xh(e)){if(!ute(r))throw ye.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ye.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(hte(t)==="immutable")throw new TypeError("immutable");return kI(t).append(e,r,!1)}function W_e(t){let e=kI(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function gte(t,e){return t[0]<e[0]?-1:1}var RI=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":Qse(i)&&(r[n]=i);break;case"id":yse(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Qse(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&yse(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};bse.exports={EventSourceStream:uF}});var Fse=m((xyt,kse)=>{"use strict";var{pipeline:uYe}=Q("node:stream"),{fetching:lYe}=tf(),{makeRequest:dYe}=Tl(),{webidl:Cr}=Jt(),{EventSourceStream:gYe}=wse(),{parseMIMEType:hYe}=Xs(),{createFastMessageEvent:fYe}=sB(),{isNetworkError:Nse}=Zh(),{kEnumerableProperty:XA}=ce(),{environmentSettingsObject:Sse}=As(),Tse=!1,Dse=3e3,cf=0,xse=1,uf=2,mYe="anonymous",pYe="use-credentials",Pl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=cf;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Cr.util.markAsUncloneable(this);let s="EventSource constructor";Cr.argumentLengthCheck(arguments,1,s),Tse||(Tse=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Cr.converters.USVString(e),r=Cr.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=Sse,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=mYe;r.withCredentials===!0&&(o=pYe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Sse.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=dYe(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===uf)return;this.#s=cf;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!Nse(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Nse(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?hYe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=xse,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new gYe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(fYe(A.type,A.options))}});uYe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=lYe(e)}#c(){this.#s!==uf&&(this.#s=cf,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===cf&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Cr.brandCheck(this,t),this.#s!==uf&&(this.#s=uf,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Cr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Cr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Cr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Rse={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:cf,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:xse,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:uf,writable:!1}};Object.defineProperties(Pl,Rse);Object.defineProperties(Pl.prototype,Rse);Object.defineProperties(Pl.prototype,{close:XA,onerror:XA,onmessage:XA,onopen:XA,readyState:XA,url:XA,withCredentials:XA});Cr.converters.EventSourceInitDict=Cr.dictionaryConverter([{key:"withCredentials",converter:Cr.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Cr.converters.any},{key:"node",converter:Cr.dictionaryConverter([{key:"reconnectionTime",converter:Cr.converters["unsigned long"],defaultValue:()=>Dse},{key:"dispatcher",converter:Cr.converters.any}]),defaultValue:()=>({})}]);kse.exports={EventSource:Pl,defaultReconnectionTime:Dse}});var Ose=m((Ryt,H)=>{"use strict";var EYe=na(),Use=ah(),CYe=DA(),IYe=Uj(),BYe=Oj(),QYe=kA(),yYe=nR(),bYe=eR(),wYe=QZ(),NYe=TZ(),SYe=RZ(),Lse=ae(),mB=ce(),{InvalidArgumentError:fB}=Lse,Ol=d$(),TYe=QA(),DYe=GR(),{MockCallHistory:xYe,MockC Line truncated
`)}close(){this.#r.close()}get(e){zO(e);let r=this.#l(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){zO(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#d(),this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){zO(e),PXe(r);let s=0,n=[],i=this;return new LXe({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#u(e))}#d(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#s.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!vXe(n[l],u[l])){c=!1;break}}if(c)return A}}};function vXe(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var Pl=m((VDt,hle)=>{"use strict";var{kConstruct:OXe}=$e(),{kEnumerableProperty:Hg}=Ie(),{iteratorMixin:_Xe,isValidHeaderName:a0,isValidHeaderValue:Ale}=an(),{webidl:ve}=Dr(),XO=b("node:assert"),Pw=b("node:util");function ale(t){return t===10||t===13||t===9||t===32}function cle(t){let e=0,r=t.length;for(;r>e&&ale(t.charCodeAt(r-1));)--r;for(;r>e&&ale(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function ule(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw ve.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});jO(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)jO(t,r[s],e[r[s]])}else throw ve.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function jO(t,e,r){if(r=cle(r),a0(e)){if(!Ale(r))throw ve.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ve.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(dle(t)==="immutable")throw new TypeError("immutable");return Ow(t).append(e,r,!1)}function HXe(t){let e=Ow(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function lle(t,e){return t[0]<e[0]?-1:1}var vw=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":Ihe(i)&&(r[n]=i);break;case"id":Bhe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Ihe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Bhe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Qhe.exports={EventSourceStream:M6}});var Rhe=m((pRt,Dhe)=>{"use strict";var{pipeline:ott}=b("node:stream"),{fetching:att}=d0(),{makeRequest:Att}=Yg(),{webidl:os}=Dr(),{EventSourceStream:ctt}=yhe(),{parseMIMEType:utt}=ti(),{createFastMessageEvent:ltt}=uN(),{isNetworkError:bhe}=c0(),{kEnumerableProperty:Vl}=Ie(),{environmentSettingsObject:whe}=an(),Nhe=!1,She=3e3,C0=0,The=1,I0=2,dtt="anonymous",htt="use-credentials",$g=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=C0;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),os.util.markAsUncloneable(this);let s="EventSource constructor";os.argumentLengthCheck(arguments,1,s),Nhe||(Nhe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=os.converters.USVString(e),r=os.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=whe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=dtt;r.withCredentials===!0&&(o=htt,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=whe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Att(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===I0)return;this.#s=C0;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!bhe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(bhe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?utt(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=The,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new ctt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(ltt(A.type,A.options))}});ott(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=att(e)}#c(){this.#s!==I0&&(this.#s=C0,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===C0&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){os.brandCheck(this,t),this.#s!==I0&&(this.#s=I0,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=os.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=os.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=os.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},xhe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:C0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:The,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:I0,writable:!1}};Object.defineProperties($g,xhe);Object.defineProperties($g.prototype,xhe);Object.defineProperties($g.prototype,{close:Vl,onerror:Vl,onmessage:Vl,onopen:Vl,readyState:Vl,url:Vl,withCredentials:Vl});os.converters.EventSourceInitDict=os.dictionaryConverter([{key:"withCredentials",converter:os.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:os.converters.any},{key:"node",converter:os.dictionaryConverter([{key:"reconnectionTime",converter:os.converters["unsigned long"],defaultValue:()=>She},{key:"dispatcher",converter:os.converters.any}]),defaultValue:()=>({})}]);Dhe.exports={EventSource:$g,defaultReconnectionTime:She}});var Phe=m((mRt,W)=>{"use strict";var gtt=bc(),Fhe=EE(),ftt=bl(),ptt=Fae(),mtt=Pae(),Ett=Sl(),Ctt=T4(),Itt=b4(),Btt=IAe(),Qtt=NAe(),ytt=xAe(),Mhe=Ee(),yN=Ie(),{InvalidArgumentError:QN}=Mhe,ef=uce(),btt=ml(),wtt=dO(),{MockCallHistory:Ntt Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:n.stack}H.exports.fetch=function(e,r=void 0){return HYe(e,r).catch(s=>{throw Mse?Pse(s,Mse):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=GA().Headers;H.exports.Response=Zh().Response;H.exports.Request=Tl().Request;H.exports.FormData=OC().FormData;var{setGlobalOrigin:GYe,getGlobalOrigin:YYe}=Y2();H.exports.setGlobalOrigin=GYe;H.exports.getGlobalOrigin=YYe;var{CacheStorage:qYe}=Ere(),{kConstruct:VYe}=Me();H.exports.caches=new qYe(VYe);var{deleteCookie:JYe,getCookies:WYe,getSetCookies:zYe,setCookie:KYe,parseCookie:XYe}=Rre();H.exports.deleteCookie=JYe;H.exports.getCookies=WYe;H.exports.getSetCookies=zYe;H.exports.setCookie=KYe;H.exports.parseCookie=XYe;var{parseMIMEType:jYe,serializeAMimeType:ZYe}=Xs();H.exports.parseMIMEType=jYe;H.exports.serializeAMimeType=ZYe;var{CloseEvent:$Ye,ErrorEvent:eqe,MessageEvent:tqe}=sB(),{WebSocket:rqe,ping:sqe}=lse();H.exports.WebSocket=rqe;H.exports.CloseEvent=$Ye;H.exports.ErrorEvent=eqe;H.exports.MessageEvent=tqe;H.exports.ping=sqe;H.exports.WebSocketStream=Cse().WebSocketStream;H.exports.WebSocketError=iF().WebSocketError;H.exports.request=lf(Ol.request);H.exports.stream=lf(Ol.stream);H.exports.pipeline=lf(Ol.pipeline);H.exports.connect=lf(Ol.connect);H.exports.upgrade=lf(Ol.upgrade);H.exports.MockClient=DYe;H.exports.MockCallHistory=xYe;H.exports.MockCallHistoryLog=RYe;H.exports.MockPool=FYe;H.exports.MockAgent=kYe;H.exports.SnapshotAgent=MYe;H.exports.mockErrors=UYe;var{EventSource:nqe}=Fse();H.exports.EventSource=nqe;function iqe(){globalThis.fetch=H.exports.fetch,globalThis.Headers=H.exports.Headers,globalThis.Response=H.exports.Response,globalThis.Request=H.exports.Request,globalThis.FormData=H.exports.FormData,globalThis.WebSocket=H.exports.WebSocket,globalThis.CloseEvent=H.exports.CloseEvent,globalThis.ErrorEvent=H.exports.ErrorEvent,globalThis.MessageEvent=H.exports.MessageEvent,globalThis.EventSource=H.exports.EventSource}H.exports.install=iqe});var df=m(pa=>{"use strict";pa.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");pa.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");pa.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";pa.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);pa.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);pa.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());pa.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Hse=m((Myt,_se)=>{"use strict";var{asciiLowercase:pB,solelyContainsHTTPTokenCodePoints:oqe,soleyContainsHTTPQuotedStringTokenCodePoints:aqe}=df();_se.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=pB(String(e)),this._map.get(e)}has(e){return e=pB(String(e)),this._map.has(e)}set(e,r){if(e=pB(String(e)),r=String(r),!oqe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!aqe(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=pB(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var qse=m((Uyt,Yse)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Aqe,removeTrailingHTTPWhitespace:Gse,isHTTPWhitespaceChar:cqe,solelyContainsHTTPTokenCodePoints:lF,soleyContainsHTTPQuotedStringTokenCodePoints:uqe,asciiLowercase:dF,collectAnHTTPQuotedString:lqe}=df();Yse.exports=t=>{t=Aqe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!lF(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Gse(s),s.length===0||!lF(s))return null;let n={type:dF(r),subtype:dF(s),parameters:new Map};for(;e<t.length;){for(++e;cqe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=dF(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=lqe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Gse(o),o==="")continue}i.length>0&&lF(i)&&uqe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var Jse=m((Lyt,Vse)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:dqe}=df();Vse.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!dqe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var Xse=m((Pyt,Kse)=>{"use strict";var gqe=Hse(),hqe=qse(),fqe=Jse(),{asciiLowercase:Wse,solelyContainsHTTPTokenCodePoints:zse}=df();Kse.exports=class{constructor(e){e=String(e);let r=hqe(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new gqe(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Wse(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!zse(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Wse(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!zse(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return fqe(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as CF from"os";function _l(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function QB(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function bB(t,e,r){let s=new yB(t,e,r);process.stdout.write(s.toString()+CF.EOL)}var EF="::",yB=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=EF+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnPropertyLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function n1(t){process.exitCode=r1.Failure,i1(t)}function i1(t,e={}){bB("error",QB(e),t instanceof Error?t.toString():t)}function Ns(t,e={}){bB("warning",QB(e),t instanceof Error?t.toString():t)}function _e(t){process.stdout.write(t+eO.EOL)}function up(t){return process.env[`STATE_${t}`]||""}import{readFileSync as tEe,existsSync as rEe}from"fs";import{EOL as sEe}from"os";var Wc=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(rEe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(tEe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${sEe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var c1=ie(iO(),1),oO=ie(Ap(),1),mEe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function aO(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function AO(t){return new c1.HttpClient().getAgent(t)}function pEe(t){return new c1.HttpClient().getAgentDispatcher(t)}function cO(t){let e=pEe(t);return(s,n)=>mEe(this,void 0,void 0,function*(){return(0,oO.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function uO(){return process.env.GITHUB_API_URL||"https://api.github.com"}function pp(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function Ep(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>Ep.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function lO(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function dO(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var gO=Function.bind,hO=gO.bind(gO);function fO(t,e,r){let s=hO(dO,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=hO(lO,null).apply(null,i)})}function CEe(){let t=Symbol("Singular"),e={registry:{}},r=Ep.bind(null,e,t);return fO(r,e,t),r}function IEe(){let t={registry:{}},e=Ep.bind(null,t);return fO(e,t),e}var mO={Singular:CEe,Collection:IEe};var w1=ie(B1(),1);var YO=ie(B1(),1);var g0e="0.0.0-development";function h0e(t){return`Request failed due to following response errors:
${i}`:n.stack}W.exports.fetch=function(e,r=void 0){return Ptt(e,r).catch(s=>{throw khe?Lhe(s,khe):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=Pl().Headers;W.exports.Response=c0().Response;W.exports.Request=Yg().Request;W.exports.FormData=J1().FormData;var{setGlobalOrigin:vtt,getGlobalOrigin:Ott}=h8();W.exports.setGlobalOrigin=vtt;W.exports.getGlobalOrigin=Ott;var{CacheStorage:_tt}=pde(),{kConstruct:Htt}=$e();W.exports.caches=new _tt(Htt);var{deleteCookie:Gtt,getCookies:Ytt,getSetCookies:qtt,setCookie:Vtt,parseCookie:Jtt}=xde();W.exports.deleteCookie=Gtt;W.exports.getCookies=Ytt;W.exports.getSetCookies=qtt;W.exports.setCookie=Vtt;W.exports.parseCookie=Jtt;var{parseMIMEType:Wtt,serializeAMimeType:ztt}=ti();W.exports.parseMIMEType=Wtt;W.exports.serializeAMimeType=ztt;var{CloseEvent:Ktt,ErrorEvent:Xtt,MessageEvent:jtt}=uN(),{WebSocket:Ztt,ping:$tt}=che();W.exports.WebSocket=Ztt;W.exports.CloseEvent=Ktt;W.exports.ErrorEvent=Xtt;W.exports.MessageEvent=jtt;W.exports.ping=$tt;W.exports.WebSocketStream=mhe().WebSocketStream;W.exports.WebSocketError=x6().WebSocketError;W.exports.request=B0(ef.request);W.exports.stream=B0(ef.stream);W.exports.pipeline=B0(ef.pipeline);W.exports.connect=B0(ef.connect);W.exports.upgrade=B0(ef.upgrade);W.exports.MockClient=wtt;W.exports.MockCallHistory=Ntt;W.exports.MockCallHistoryLog=Stt;W.exports.MockPool=xtt;W.exports.MockAgent=Ttt;W.exports.SnapshotAgent=Dtt;W.exports.mockErrors=Rtt;var{EventSource:ert}=Rhe();W.exports.EventSource=ert;function trt(){globalThis.fetch=W.exports.fetch,globalThis.Headers=W.exports.Headers,globalThis.Response=W.exports.Response,globalThis.Request=W.exports.Request,globalThis.FormData=W.exports.FormData,globalThis.WebSocket=W.exports.WebSocket,globalThis.CloseEvent=W.exports.CloseEvent,globalThis.ErrorEvent=W.exports.ErrorEvent,globalThis.MessageEvent=W.exports.MessageEvent,globalThis.EventSource=W.exports.EventSource}W.exports.install=trt});var Q0=m(Pc=>{"use strict";Pc.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Pc.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Pc.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Pc.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Pc.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Pc.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Pc.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Ohe=m((IRt,vhe)=>{"use strict";var{asciiLowercase:bN,solelyContainsHTTPTokenCodePoints:rrt,soleyContainsHTTPQuotedStringTokenCodePoints:srt}=Q0();vhe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=bN(String(e)),this._map.get(e)}has(e){return e=bN(String(e)),this._map.has(e)}set(e,r){if(e=bN(String(e)),r=String(r),!rrt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!srt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=bN(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var Ghe=m((BRt,Hhe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:nrt,removeTrailingHTTPWhitespace:_he,isHTTPWhitespaceChar:irt,solelyContainsHTTPTokenCodePoints:U6,soleyContainsHTTPQuotedStringTokenCodePoints:ort,asciiLowercase:L6,collectAnHTTPQuotedString:art}=Q0();Hhe.exports=t=>{t=nrt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!U6(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=_he(s),s.length===0||!U6(s))return null;let n={type:L6(r),subtype:L6(s),parameters:new Map};for(;e<t.length;){for(++e;irt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=L6(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=art(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=_he(o),o==="")continue}i.length>0&&U6(i)&&ort(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var qhe=m((QRt,Yhe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Art}=Q0();Yhe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!Art(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var zhe=m((bRt,Whe)=>{"use strict";var crt=Ohe(),urt=Ghe(),lrt=qhe(),{asciiLowercase:Vhe,solelyContainsHTTPTokenCodePoints:Jhe}=Q0();Whe.exports=class{constructor(e){e=String(e);let r=urt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new crt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Vhe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Jhe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Vhe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Jhe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return lrt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as Y6 from"os";function lA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function xN(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Jl(t,e,r){let s=new DN(t,e,r);process.stdout.write(s.toString()+Y6.EOL)}var G6="::",DN=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=G6+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnPropertyLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function g2(t){process.exitCode=d2.Failure,hu(t)}function FA(){return process.env.RUNNER_DEBUG==="1"}function P(t){Jl("debug",{},t)}function hu(t,e={}){Jl("error",xN(e),t instanceof Error?t.toString():t)}function yt(t,e={}){Jl("warning",xN(e),t instanceof Error?t.toString():t)}function he(t){process.stdout.write(t+FJ.EOL)}function np(t,e){if(process.env.GITHUB_STATE||"")return V6("STATE",J6(t,e));Jl("save-state",{name:t},lA(e))}function MA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as $we,existsSync as eNe}from"fs";import{EOL as tNe}from"os";var Yd=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(eNe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse($we(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${tNe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var E2=fe(vJ(),1),OJ=fe(II(),1),gNe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function _J(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function HJ(t){return new E2.HttpClient().getAgent(t)}function fNe(t){return new E2.HttpClient().getAgentDispatcher(t)}function GJ(t){let e=fNe(t);return(s,n)=>gNe(this,void 0,void 0,function*(){return(0,OJ.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function YJ(){return process.env.GITHUB_API_URL||"https://api.github.com"}function MI(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function UI(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>UI.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function qJ(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function VJ(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var JJ=Function.bind,WJ=JJ.bind(JJ);function zJ(t,e,r){let s=WJ(VJ,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=WJ(qJ,null).apply(null,i)})}function mNe(){let t=Symbol("Singular"),e={registry:{}},r=UI.bind(null,e,t);return zJ(r,e,t),r}function ENe(){let t={registry:{}},e=UI.bind(null,t);return zJ(e,t),e}var KJ={Singular:mNe,Collection:ENe};var M2=fe(D2(),1);var Q7=fe(D2(),1);var lSe="0.0.0-development";function dSe(t){return`Request failed due to following response errors:
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var f0e=class extends Error{constructor(t,e,r){super(h0e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},m0e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],p0e=["query","method","url"],GO=/\/api\/v3\/?$/;function E0e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(p0e.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>m0e.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return GO.test(i)&&(n.url=i.replace(GO,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new f0e(n,a,o.data)}return o.data.data})}function Q1(t,e){let r=t.defaults(e);return Object.assign((n,i)=>E0e(r,n,i),{defaults:Q1.bind(null,r),endpoint:r.endpoint})}var v7e=Q1(YO.request,{headers:{"user-agent":`octokit-graphql.js/${g0e} ${pp()}`},method:"POST",url:"/graphql"});function qO(t){return Q1(t,{method:"POST",url:"/graphql"})}var y1="(?:[a-zA-Z0-9_-]+)",VO="\\.",JO=new RegExp(`^${y1}${VO}${y1}${VO}${y1}$`),C0e=JO.test.bind(JO);async function I0e(t){let e=C0e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function B0e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Q0e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=B0e(t),e(n)}var WO=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(I0e.bind(null,e),{hook:Q0e.bind(null,e)})};var b1="7.0.6";var zO=()=>{},y0e=console.warn.bind(console),b0e=console.error.bind(console);function w0e(t={}){return typeof t.debug!="function"&&(t.debug=zO),typeof t.info!="function"&&(t.info=zO),typeof t.warn!="function"&&(t.warn=y0e),typeof t.error!="function"&&(t.error=b0e),t}var KO=`octokit-core.js/${b1} ${pp()}`,Bp=class{static VERSION=b1;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new mO.Collection,s={baseUrl:w1.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${KO}`:KO,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=w1.request.defaults(s),this.graphql=qO(this.request).defaults(s),this.log=w0e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=WO(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var N1="17.0.0";var N0e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgV Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};mE.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var pE=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};pE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;function kq(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",s=e.endsWith(".GHE.COM"),n=e.endsWith(".LOCALHOST");return!r&&!s&&!n}function Fq(){return kq()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}var tNe=ie(Lq(),1);var RV=ie(bV(),1),It=ie(Ct(),1),ss=ie(Ct(),1),rA=ie(Ct(),1),sA=ie(Ct(),1),nA=ie(Ct(),1);var BS=ie(Ct(),1),QS=ie(Ct(),1),TV=ie(Ct(),1),DV=ie(Ct(),1),xV=ie(Ct(),1);var ES=ie(Ct(),1),CS=ie(Ct(),1),wV=ie(Ct(),1),NV=ie(Ct(),1),SV=ie(Ct(),1),IS=class extends SV.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,NV.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,wV.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?CS.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,ES.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,ES.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?CS.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},r0=new IS;var yS=class extends xV.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>r0}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,DV.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,TV.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(r0.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?QS.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,BS.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)r0.internalBinaryWrite(e.scope[i],r.tag(2,BS.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?QS.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Xn=new yS;var bS=class extends nA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>Xn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,sA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,rA.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.metadata=Xn.internalBinaryRead(e,e.uint32(),s,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?ss.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&Xn.internalBinaryWrite(e.metadata,r.tag(1,It.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,It.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,It.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?ss.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},kV=new bS,wS=class extends nA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,sA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,rA.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new glo Line truncated
`)}var hSe=class extends Error{constructor(t,e,r){super(dSe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},gSe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],fSe=["query","method","url"],B7=/\/api\/v3\/?$/;function pSe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(fSe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>gSe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return B7.test(i)&&(n.url=i.replace(B7,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new hSe(n,a,o.data)}return o.data.data})}function R2(t,e){let r=t.defaults(e);return Object.assign((n,i)=>pSe(r,n,i),{defaults:R2.bind(null,r),endpoint:r.endpoint})}var xit=R2(Q7.request,{headers:{"user-agent":`octokit-graphql.js/${lSe} ${MI()}`},method:"POST",url:"/graphql"});function y7(t){return R2(t,{method:"POST",url:"/graphql"})}var k2="(?:[a-zA-Z0-9_-]+)",b7="\\.",w7=new RegExp(`^${k2}${b7}${k2}${b7}${k2}$`),mSe=w7.test.bind(w7);async function ESe(t){let e=mSe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function CSe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function ISe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=CSe(t),e(n)}var N7=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(ESe.bind(null,e),{hook:ISe.bind(null,e)})};var F2="7.0.6";var S7=()=>{},BSe=console.warn.bind(console),QSe=console.error.bind(console);function ySe(t={}){return typeof t.debug!="function"&&(t.debug=S7),typeof t.info!="function"&&(t.info=S7),typeof t.warn!="function"&&(t.warn=BSe),typeof t.error!="function"&&(t.error=QSe),t}var T7=`octokit-core.js/${F2} ${MI()}`,vI=class{static VERSION=F2;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new KJ.Collection,s={baseUrl:M2.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${T7}`:T7,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=M2.request.defaults(s),this.graphql=y7(this.request).defaults(s),this.log=ySe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=N7(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var U2="17.0.0";var bSe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgV Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new dp(i));return s.searchPaths.push(...q2(s.patterns)),s})}static stat(e,r,s){return K2(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Kd.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){P(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Kd.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Kd.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){P(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as X2 from"crypto";import*as qI from"fs";import*as gW from"stream";import*as fW from"util";import*as pW from"path";var hTe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},gTe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function mW(t,e){return hTe(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?he:P,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),g=X2.createHash("sha256"),f=0;try{for(var p=!0,B=gTe(r.globGenerator()),E;E=yield B.next(),i=E.done,!i;p=!0){A=E.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${pW.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(qI.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let w=X2.createHash("sha256");yield fW.promisify(gW.pipeline)(qI.createReadStream(C),w),g.write(w.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=B.return)&&(yield a.call(B))}finally{if(o)throw o.error}}return g.end(),l?(u(`Found ${f} files to hash.`),g.digest("hex")):(u("No matches found for glob"),"")})}var EW=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function j2(t,e){return EW(this,void 0,void 0,function*(){return yield GI.create(t,e)})}function CW(t){return EW(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield j2(e,{followSymbolicLinks:i});return mW(o,r,n)})}var lK=fe(cK(),1);import*as iB from"crypto";import*as Zd from"fs";import*as Bu from"path";import*as dK from"util";var Bp;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Bp||(Bp={}));var Xr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Xr||(Xr={}));var Js;(function(t){t.GNU="gnu",t.BSD="bsd"})(Js||(Js={}));var sB=2,nB=5e3,mD=5e3,ED=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uK=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Qp="cache.tar",CD="manifest.txt",dat=10*Math.pow(1024,3);var jd=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},uDe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},lDe="1.0";function yp(){return jd(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Bu.join(s,"actions","temp")}let r=Bu.join(e,iB.randomUUID());return yield bI(r),r})}function oo(t){return Zd.statSync(t).size}function ID(t){return jd(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield j2(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=uDe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let g=Bu.relative(a,n).replace(new RegExp(`\\${Bu.sep}`,"g"),"/");P(`Matched: ${g}`),g===""?o.push("."):o.push(`${g}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function bp(t){return jd(this,void 0,void 0,function*(){return dK.promisify(Zd.unlink)(t)})}function hK(t){return jd(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),P(`Checking ${e} ${r.join(" ")}`);try{yield SI(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){P(n.message)}return s=s.trim(),P(s),s})}function wp(){return jd(this,void 0,void 0,function*(){let t=yield hK("zstd",["--quiet"]),e=lK.clean(t);return P(`zstd version: ${e}`),t===""?Xr.Gzip:Xr.ZstdWithoutLong})}function vA(t){return t===Xr.Gzip?Bp.Gzip:Bp.Zstd}function gK(){return jd(this,void 0,void 0,function*(){return Zd.existsSync(ED)?ED:(yield hK("tar")).toLowerCase().includes("gnu tar")?Qa("tar"):""})}function BD(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function $d(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(lDe),iB.createHash("sha256").update(s.join("|")).digest("hex")}function fK(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as Sh from"fs";import{URL as LPe}from"url";var ao=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as dDe}from"node:os";import hDe from"node:util";import gDe from"node:process";function pK(t,...e){gDe.stderr.write(`${hDe.format(t,...e)}${dDe}`)}var mK=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,CK,QD=[],yD=[],aB=[];mK&&bD(mK);var IK=Object.assign(t=>BK(t),{enable:bD,enabled:wD,disable:fDe,log:pK});function bD(t){CK=t,QD=[],yD=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?yD.push(r.substring(1)):QD.push(r);for(let r of aB)r.enabled=wD(r.namespace)}function wD(t){if(t.endsWith("*"))return!0;for(let e of yD)if(EK(t,e))return!1;for(let e of QD)if(EK(t,e))return!0;return!1}function EK(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],g="";for(let f of e)f==="*"&&g==="*"||(g=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function fDe(){let t=CK||"";return bD(""),t}function BK(t){let e=Object.assign(r,{enabled:wD(t),destroy:pDe,log:IK.log,namespace:t,extend:mDe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return aB.push(e),e}function pDe(){let t=aB.indexOf(this);return t>=0?(aB.splice(t,1),!0):!1}function mDe(t){let e=BK(`${this.namespace}:${t}`);return e.log=this.log,e}var eh=IK;var ND=["verbose","info","warning","error"],QK={verbose:400,info:300,warning:200,error:100};function yK(t,e){e.log=(...r)=>{t.log(...r)}}function bK(t){return ND.includes(t)}function EDe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=eh(t.namespace);n.log=(...u)=>{eh.log(...u)};function i(u){if(u&&!bK(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${ND.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);eh.enable(l.join(","))}r&&(bK(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${ND.join(", ")}.`));function o(u){return!!(s&&QK[u.level]<=QK[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(yK(u,d),o(d)){let g=eh.disable();eh.enable(g+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return yK(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var wK=EDe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),CDe=wK.logger;function Np(t){return wK.createClientLogger(t)}function AB(t){return t.toLowerCase()}function*IDe(t){for(let e of t.values())yield[e.name,e.value]}var SD=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(AB(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(AB(e))?.value}has(e){return this._headersMap.has(AB(e))}delete(e){this._headersMap.delete(AB(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let s of this._headersMap.values())r[s.name]=s.value;else for(let[s,n]of this._he Line truncated
${bDe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function lB(t){return t instanceof jr?!0:yu(t)&&t.name==="RestError"}function hs(t,e){return Buffer.from(t,e)}import RD from"node:http";import kD from"node:https";import TK from"node:zlib";import{Transform as wDe}from"node:stream";var Tn=Np("ts-http-runtime");var NDe={};function Sp(t){return t&&typeof t.pipe=="function"}function xK(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function DK(t){return t&&typeof t.byteLength=="number"}var dB=class extends wDe{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},FD=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new ao("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new bi;Tn.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=DDe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new dB(f);p.on("error",B=>{Tn.error("Error in upload progress",B)}),Sp(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=SDe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?TDe(c,u):c;let g=e.onDownloadProgress;if(g){let f=new dB(g);f.on("error",p=>{Tn.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await xDe(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();Sp(a)&&(c=xK(a));let u=Promise.resolve();Sp(A)&&(u=xK(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{Tn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?RD.request(a,A):kD.request(a,A);u.once("error",l=>{c(new jr(l.message,{code:l.code??jr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ao("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&Sp(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):DK(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Tn.error("Unrecognized body type",s),c(new jr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?RD.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new RD.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return kD.globalAgent;let n=e.tlsSettings??NDe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Tn.info("No cached TLS Agent exist, creating a new Agent"),i=new kD.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function SDe(t){let e=Ws();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function TDe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=TK.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=TK.createInflate();return t.pipe(s),s}return t}function xDe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new jr(`Error reading response as text: ${n.message}`,{code:jr.PARSE_ERROR}))})})}function DDe(t){return t?Buffer.isBuffer(t)?t.length:Sp(t)?null:DK(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function RK(){return new FD}function hB(){return RK()}var MD="logPolicy";function gB(t={}){let e=t.logger??Tn.info,r=new bi({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:MD,async sendRequest(s,n){if(!e.enabled)ret Line truncated
`;return e}function ZRe(t){return t instanceof Uint8Array?t.byteLength:LB(t)?t.size===-1?void 0:t.size:void 0}function $Re(t){let e=0;for(let r of t){let s=ZRe(r);if(s===void 0)return;e+=s}return e}async function eke(t,e,r){let s=[hs(`--${r}`,"utf-8"),...e.flatMap(i=>[hs(`\r
`,"utf-8"),hs(jRe(i.headers),"utf-8"),hs(`\r
`,"utf-8"),i.body,hs(`\r
--${r}`,"utf-8")]),hs(`--\r
\r
`,"utf-8")],n=$Re(s);n&&t.headers.set("Content-Length",n),t.body=await SX(s)}var Dp="multipartPolicy",tke=70,rke=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ske(t){if(t.length>tke)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!rke.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function PB(){return{name:Dp,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?ske(r):r=XRe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await eke(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function vB(){return uB()}import{EOL as ike}from"node:os";import oke from"node:util";import*as TX from"node:process";function xX(t,...e){TX.stderr.write(`${oke.format(t,...e)}${ike}`)}var DX=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,RX,ZD=[],$D=[],OB=[];DX&&eR(DX);var kX=Object.assign(t=>FX(t),{enable:eR,enabled:tR,disable:ake,log:xX});function eR(t){RX=t,ZD=[],$D=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?$D.push(new RegExp(`^${s.substr(1)}$`)):ZD.push(new RegExp(`^${s}$`));for(let s of OB)s.enabled=tR(s.namespace)}function tR(t){if(t.endsWith("*"))return!0;for(let e of $D)if(e.test(t))return!1;for(let e of ZD)if(e.test(t))return!0;return!1}function ake(){let t=RX||"";return eR(""),t}function FX(t){let e=Object.assign(r,{enabled:tR(t),destroy:Ake,log:kX.log,namespace:t,extend:cke});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return OB.push(e),e}function Ake(){let t=OB.indexOf(this);return t>=0?(OB.splice(t,1),!0):!1}function cke(t){let e=FX(`${this.namespace}:${t}`);return e.log=this.log,e}var ah=kX;var UX=new Set,_B=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,rR,sR=ah("azure");sR.log=(...t)=>{ah.log(...t)};var nR=["verbose","info","warning","error"];_B&&(vX(_B)?uke(_B):console.error(`AZURE_LOG_LEVEL set to unknown log level '${_B}'; logging is not enabled. Acceptable values: ${nR.join(", ")}.`));function uke(t){if(t&&!vX(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${nR.join(",")}`);rR=t;let e=[];for(let r of UX)PX(r)&&e.push(r.namespace);ah.enable(e.join(","))}var MX={verbose:400,info:300,warning:200,error:100};function kn(t){let e=sR.extend(t);return LX(sR,e),{error:HB(e,"error"),warning:HB(e,"warning"),info:HB(e,"info"),verbose:HB(e,"verbose")}}function LX(t,e){e.log=(...r)=>{t.log(...r)}}function HB(t,e){let r=Object.assign(t.extend(e),{level:e});if(LX(t,r),PX(r)){let s=ah.disable();ah.enable(s+","+r.namespace)}return UX.add(r),r}function PX(t){return!!(rR&&MX[t.level]<=MX[rR])}function vX(t){return nR.includes(t)}var co=kn("core-rest-pipeline");function iR(t={}){return gB({logger:co.info,...t})}var oR=fB;function aR(t={}){return pB(t)}import AR from"node:os";import cR from"node:process";function OX(){return"User-Agent"}async function _X(t){if(cR&&cR.versions){let e=`${AR.type()} ${AR.release()}; ${AR.arch()}`,r=cR.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var GB="1.22.2";function mke(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function HX(){return OX()}async function YB(t){let e=new Map;e.set("core-rest-pipeline",GB),await _X(e);let r=mke(e);return t?`${t} ${r}`:r}var GX=HX(),YX="userAgentPolicy";function uR(t={}){let e=YB(t.userAgentPrefix);return{name:YX,async sendRequest(r,s){return r.headers.has(GX)||r.headers.set(GX,await e),s(r)}}}var Rp=class extends Error{constructor(e){super(e),this.name="AbortError"}};function lR(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Rp(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var Qke="The delay was aborted.";function Ah(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return lR(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??Qke})}function _A(t){if(yu(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function qX(t){return yu(t)}function ch(){return Qu()}var Je=Nu;var VX=Symbol("rawContent");function hR(t){return typ Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!JFe(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Vt("InvalidTag",l,Zr(t,i))}let c=HFe(t,i);if(c===!1)return Vt("InvalidAttr","Attributes for '"+A+"' have open quote.",Zr(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Rj(u,e);if(d===!0)s=!0;else return Vt(d.err.code,d.err.msg,Zr(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Vt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Zr(t,o));if(r.length===0)return Vt("InvalidTag","Closing tag '"+A+"' has not been opened.",Zr(t,o));{let l=r.pop();if(A!==l.tagName){let d=Zr(t,l.tagStartPos);return Vt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Zr(t,o))}r.length==0&&(n=!0)}}else return Vt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Zr(t,i));else{let l=Rj(u,e);if(l!==!0)return Vt(l.err.code,l.err.msg,Zr(t,i-u.length+l.err.line));if(n===!0)return Vt("InvalidXml","Multiple possible root nodes found.",Zr(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Dj(t,i);continue}else if(t[i+1]==="?"){if(i=xj(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=qFe(t,i);if(l==-1)return Vt("InvalidChar","char '&' is not expected.",Zr(t,i));i=l}else if(n===!0&&!Tj(t[i]))return Vt("InvalidXml","Extra text at the end",Zr(t,i));t[i]==="<"&&i--}}else{if(Tj(t[i]))continue;return Vt("InvalidChar","char '"+t[i]+"' is not expected.",Zr(t,i))}if(s){if(r.length==1)return Vt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Zr(t,r[0].tagStartPos));if(r.length>0)return Vt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Vt("InvalidXml","Start tag expected.",1);return!0}function Tj(t){return t===" "||t===" "||t===`
`||t==="\r"}function xj(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Vt("InvalidXml","XML declaration allowed only at the start of the document.",Zr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Dj(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var OFe='"',_Fe="'";function HFe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===OFe||t[e]===_Fe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var GFe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Rj(t,e){let r=tQ(t,GFe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Vt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Yp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Vt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Yp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Vt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Yp(r[n]));let i=r[n][2];if(!VFe(i))return Vt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Yp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Vt("InvalidAttr","Attribute '"+i+"' is repeated.",Yp(r[n]))}return!0}function YFe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function qFe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,YFe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Vt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function VFe(t){return hh(t)}function JFe(t){return hh(t)}function Zr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Yp(t){return t.startIndex+t[1].length}var kj=t=>Gp.includes(t)?"__"+t:t,WFe={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:kj};function zFe(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Gp.some(s=>r===s.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(rQ.some(s=>r===s.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Fj(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:Fj(!0)}var Mj=function(t){let e=Object.assign({},WFe,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:s,name:n}of r)s&&zFe(s,n);return e.onDangerousProperty===null&&(e.onDangerousProperty=kj),e.processEntities=Fj(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(s=>typeof s=="string"&&s.startsWith("*.")?".."+s.substring(2):s)),e};var nQ;typeof Symbol!="function"?nQ="@@xmlMetadata":nQ=Symbol("XML Node Metadata");var ps=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(eLine truncated
`);let e=new ps("!xml"),r=e,s="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=new Vp(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=Ru(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=YR(this.options.transformTagName,A,"",this.options).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",i=a}else if(t[i+1]==="?"){let a=qR(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new ps(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=Ru(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=n.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=Ru(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=qR(t,i,this.options.removeNSPrefix);if(!a){let w=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${w}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=YR(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let g=r;g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,B={},E;E=iMe(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(B=nMe(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let w="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let k=this.readStopNodeData(t,c,d+1);if(!k)throw new Error(`Unexpected end of ${c}`);i=k.i,w=k.tagContent}let x=new ps(A);p&&(x[":@"]=p),x.add(this.options.textNodeName,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,x,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=YR(this.options.transformTagName,A,u,this.options));let w=new ps(A);p&&(w[":@"]=p),this.addChild(r,w,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let w=new ps(A);p&&(w[":@"]=p),this.addChild(r,w,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let w=new ps(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(w[":@"]=p),this.addChild(r,w,this.readonlyMatcher,C),r=w}s="",i=d}}else s+=t[i];return e.child};function dMe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function hMe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}for(let n of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[n],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,s.maxTotalExpansions&&this.entityExpansionCount>s.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function KR(t,e){let r="";e.format&&e.indentBy.length>0&&(r=QMe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?s.push(new js(o)):o instanceof js&&s.push(o)}let n=new ho;return Oj(t,e,r,n,s)}function Oj(t,e,r,s,n){let i="",o=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=zR(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Hj(A);if(c===void 0)continue;let u=yMe(A[":@"],e);s.push(c,u);let l=wMe(s,n);if(c===e.textNodeName){let B=A[c];l||(B=e.tagValueProcessor(c,B),B=zR(B,e)),o&&(i+=r),i+=B,o=!1,s.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,s.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,s.pop();continue}else if(c[0]==="?"){let B=vj(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${B}?>`,o=!0,s.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let g=vj(A[":@"],e,l),f=r+`<${c}${g}`,p;l?p=_j(A[c],e):p=Oj(A[c],e,d,s,n),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,s.pop()}return i}function yMe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=t[n],s=!0}return s?r:null}function _j(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=Hj(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=bMe(n[":@"],e),a=_j(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function bMe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return r}function Hj(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function vj(t,e,r){let s="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i;r?i=t[n]:(i=e.attributeValueProcessor(n,t[n]),i=zR(i,e)),i===!0&&e.suppressBooleanAttributes?s+=` ${n.substr(e.attributeNamePrefix.length)}`:s+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return s}function wMe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function zR(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function XR(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var NMe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Es(t){if(this.options=Object.assign({},NMe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new js(r)):r instanceof js&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=XR(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=xMe),this.processTextOrObjNode=SMe,this.options.format?(this.indentate=TMe,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Es.prototype.build=function(t){if(this.options.preserveOrder)return KR(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ho;return this.j2x(t,0,e).val}};Es.prototype.j2x=function(t,e,r){let s="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(n+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?n+="":a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)n+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))s+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);n+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?n+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:n+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else n+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let g=this.j2x(d,e+1,r);r.pop(),c+=g.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=g.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let g=this.options.tagValueProcessor(a,d);g=this.replaceEntitiesValue(g),c+=g}else{r.push(a);let g=this.checkStopNode(r);if(r.pop(),g){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),n+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)s+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else n+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:s,val:n}};Es.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function SMe(t,e,r,s){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,s);return s.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,s):this.buildObjectNode(o.val,e,o.attrStr,r)}Es.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=s[n],r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=t[s],r=!0)}return r?e:null};Es.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isArray(s)){for(let n of s)if(typeof n=="string"||typeof n=="number")e+=`<${r}>${n}</${r}>`;else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof s=="object"&&s!==null){let n=this.buildRawContent(s),i=this.buildAttributesForStopNode(s);n===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${n}</${r}>`}else e+=`<${r}>${s}</${r}>`}return e};Es.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let s in r){if(!Object.prototype.hasOwnProperty.call(r,s))continue;let n=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length): Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(me.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===me.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(me.PREFIX_FOR_STORAGE));r.sort((n,i)=>fQ(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=dQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=hQ(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Dt=class extends Fu{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Xp(e,r,this)}computeHMACSHA256(e){return OMe("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Mu=class extends Error{constructor(e){super(e),this.name="AbortError"}};var ir=kn("storage-common");var Fn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fn||(Fn={}));var VA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},_Me=new Mu("The operation was aborted."),jp=class extends go{retryOptions;constructor(e,r,s=VA){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:VA.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):VA.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:VA.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:VA.maxRetryDelayInMs):VA.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:VA.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:VA.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=lQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=qA(n.url,Da.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(ir.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(ir.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return ir.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return ir.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return ir.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return ir.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(me.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(ir.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Fn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return ir.info(`RetryPolicy: Delay for ${n}ms`),gQ(n,s,_Me)}};var Zp=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new jp(e,r,this.retryOptions)}};var HMe="storageBrowserPolicy";function Jj(){return{name:HMe,async sendRequest(t,e){return Je||((t.method==="GET"||t.method==="HEAD")&&(t.url=qA(t.url,Da.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(me.COOKIE),t.headers.delete(me.CONTENT_LENGTH)),e(t)}}}var GMe="StorageCorrectContentLengthPolicy";function Wj(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(me.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:GMe,async sendRequest(e,r){return t(e),r(e)}}}var YMe="storageRetryPolicy",fh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qMe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],VMe=new Mu("The operation was aborted.");function zj(t={}){let e=t.retryPolicyType??fh.retryPolicyType,r=t.maxTries??fh.maxTries,s=t.retryDelayInMs??fh.retryDelayInMs,n=t.maxRetryDelayInMs??fh.maxRetryDelayInMs,i=t.secondaryHost??fh.secondaryHost,o=t.tryTimeoutInMs??fh.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return ir.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let g of qMe)if(d.name.toUpperCase().includes(g)||d.message.toUpperCase().inclu Line truncated
`)+`
`+s(i)+n(i),a=JMe("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(me.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===me.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(me.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>fQ(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function n(i){let o=dQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=hQ(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:WMe,async sendRequest(i,o){return e(i),o(i)}}}var zMe="storageRequestFailureDetailsParserPolicy";function Kj(){return{name:zMe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as KMe}from"node:crypto";var pQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return KMe("sha256",this.key).update(e,"utf8").digest("base64")}};var mQ="12.31.0",EQ="2026-02-06";var CQ="https://storage.azure.com/.default",Ra={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var wi="",rk="*",XMe=1*1024*1024;var jMe=4*XMe;var Xj="AES256",jj="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Zj=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],$j=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],eZ="BlobUsesCustomerSpecifiedEncryption",tZ="BlobDoesNotUseCustomerSpecifiedEncryption",rZ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function ka(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var $p=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Jt(t,e={}){t||(t=new It);let r=new $p([],e);return r._credential=t,r}function ZMe(t){let e=[$Me,sZ,eUe,tUe,rUe,sUe,iUe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>nUe(n));return{wrappedPolicies:OR(r),afterRetry:s}}}}function sk(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?_R(e):ek(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${mQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Lp({...r,loggingOptions:{additionalAllowedHeaderNames:Zj,additionalAllowedQueryParameters:$j,logger:oQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:iQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:ZR,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:fR}),n.addPolicy(Wj()),n.addPolicy(zj(r.retryOptions),{phase:"Retry"}),n.addPolicy(Kj()),n.addPolicy(Jj());let a=ZMe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=nk(t);Ks(A)?n.addPolicy(lh({credential:A,scopes:r.audience??CQ,challengeCa Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Di(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function $Le(t,e){if(t=Yu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function ePe(t,e){if(t=Yu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function tPe(t,e){if(t=Yu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?We(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?We(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function rPe(t,e){if(t=Yu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?We(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?We(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function sPe(t,e){if(t=Yu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?We(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?We(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function nPe(t,e){if(t=Yu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ro.parse(t.permissions.toString()).toString():n=ko.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?We(t.startsOn,!1):"",t.expiresOn?We(t.expiresOn,!1):"",Gu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?We(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?We(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?xi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Di(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Gu(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function Yu(t){let e=t.version?t.version:EQ;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var lm=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=ch()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==wi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==wi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-acquireLease",r,async s=>ne(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==wi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==wi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ne(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==wi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==wi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-releaseLease",e,async r=>ne(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==wi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==wi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortS Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};wh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ju=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ju.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Cm=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var SPe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},RU=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);he(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function p$(t,e,r){return SPe(this,void 0,void 0,function*(){var s;let n=new Oa(t),i=n.getBlockBlobClient(),o=new RU((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),P(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new hy(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw yt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as E$ from"buffer";import*as Fo from"fs";import*as C$ from"stream";import*as I$ from"util";var gy=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function fy(t){return t?t>=200&&t<300:!1}function TPe(t){return t?t>=500:!0}function xPe(t){return t?[Tt.BadGateway,Tt.ServiceUnavailable,Tt.GatewayTimeout].includes(t):!1}function DPe(t){return gy(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function m$(t,e,r){return gy(this,arguments,void 0,function*(s,n,i,o=sB,a=nB,A=void 0){let c="",u=1;for(;u<=o;){let l,d,g=!1;try{l=yield n()}catch(f){A&&(l=A(f)),g=!0,c=f.message}if(l&&(d=i(l),!TPe(d)))return l;if(d&&(g=xPe(d),c=`Cache service responded with ${d}`),P(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!g){P(`${s} - Error is not retryable`);break}yield DPe(a),u++}throw Error(`${s} failed: ${c}`)})}function Im(t,e){return gy(this,arguments,void 0,function*(r,s,n=sB,i=nB){return yield m$(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof so)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Nh(t,e){return gy(this,arguments,void 0,function*(r,s,n=sB,i=nB){return yield m$(r,s,o=>o.message.statusCode,n,i)})}var vn=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function RPe(t,e){return vn(this,void 0,void 0,function*(){yield I$.promisify(C$.pipeline)(t.message,e)})}var py=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,P(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);he(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r= Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])P(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function UU(t,e,r){return Is(this,void 0,void 0,function*(){let s=new LPe(t),n=b$(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Q$(t,e,n):n.concurrentBlobDownloads?yield B$(t,e,n):yield my(t,e):yield my(t,e)})}function R$(t,e,r){return Is(this,void 0,void 0,function*(){let s=MU(),n=$d(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Im("reserveCache",()=>Is(this,void 0,void 0,function*(){return s.postJson(Qm("caches"),i)}))})}function x$(t,e){return`bytes ${t}-${e}/*`}function _Pe(t,e,r,s,n){return Is(this,void 0,void 0,function*(){P(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${x$(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":x$(s,n)},o=yield Nh(`uploadChunk (start: ${s}, end: ${n})`,()=>Is(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!fy(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function HPe(t,e,r,s){return Is(this,void 0,void 0,function*(){let n=oo(r),i=Qm(`caches/${e.toString()}`),o=Sh.openSync(r,"r"),a=kU(s),A=BD("uploadConcurrency",a.uploadConcurrency),c=BD("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];P("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Is(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),g=l,f=l+d-1;l+=c,yield _Pe(t,i,()=>Sh.createReadStream(r,{fd:o,start:g,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),g,f)}})))}finally{Sh.closeSync(o)}})}function GPe(t,e,r){return Is(this,void 0,void 0,function*(){let s={size:r};return yield Im("commitCache",()=>Is(this,void 0,void 0,function*(){return t.postJson(Qm(`caches/${e.toString()}`),s)}))})}function LU(t,e,r,s){return Is(this,void 0,void 0,function*(){if(kU(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield p$(r,e,s)}else{let i=MU();P("Upload cache"),yield HPe(i,t,e,s),P("Commiting cache");let o=oo(e);he(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield GPe(i,t,o);if(!fy(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);he("Cache saved successfully")}})}var wee=fe(Eee(),1),Kt=fe(zt(),1),en=fe(zt(),1),ju=fe(zt(),1),Zu=fe(zt(),1),$u=fe(zt(),1);var DL=fe(zt(),1),RL=fe(zt(),1),Qee=fe(zt(),1),yee=fe(zt(),1),bee=fe(zt(),1);var SL=fe(zt(),1),TL=fe(zt(),1),Cee=fe(zt(),1),Iee=fe(zt(),1),Bee=fe(zt(),1),xL=class extends Bee.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Iee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Cee.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?TL.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,SL.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,SL.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?TL.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},nb=new xL;var kL=class extends bee.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>nb}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,yee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Qee.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(nb.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?RL.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,DL.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)nb.internalBinaryWrite(e.scope[i],r.tag(2,DL.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?RL.UnknownFieldHandler.onWrite:n)(thi Line truncated
`));let s=yield WL(r,"create");yield zL(s,t)})}var qh=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},Fi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yh=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},ab=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function xee(t){if(!t||t.length===0)throw new Fi("Path Validation Error: At least one directory or file path is required")}function jL(t){if(t.length>512)throw new Fi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Fi(`Key Validation Error: ${t} cannot contain commas.`)}function Dee(){return Bm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Ree(t,e,r,s){return qh(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=Bm();return P(`Cache service version: ${c}`),xee(n),c==="v2"?yield i8e(n,i,o,a,A):yield n8e(n,i,o,a,A)})}function n8e(t,e,r,s){return qh(this,arguments,void 0,function*(n,i,o,a,A=!1){o=o||[];let c=[i,...o];if(P("Resolved Keys:"),P(JSON.stringify(c)),c.length>10)throw new Fi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)jL(d);let u=yield wp(),l="";try{let d=yield D$(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return he("Lookup only - skipping download"),d.cacheKey;l=vm.join(yield yp(),vA(u)),P(`Archive Path: ${l}`),yield UU(d.archiveLocation,l,a),FA()&&(yield Pm(l,u));let g=oo(l);return he(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),yield KL(l,u),he("Cache restored successfully"),d.cacheKey}catch(d){let g=d;if(g.name===Fi.name)throw d;g instanceof so&&typeof g.statusCode=="number"&&g.statusCode>=500?hu(`Failed to restore: ${d.message}`):yt(`Failed to restore: ${d.message}`)}finally{try{yield bp(l)}catch(d){P(`Failed to delete archive: ${d}`)}}})}function i8e(t,e,r,s){return qh(this,arguments,void 0,function*(n,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(P("Resolved Keys:"),P(JSON.stringify(c)),c.length>10)throw new Fi("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)jL(l);let u="";try{let l=JL(),d=yield wp(),g={key:i,restoreKeys:o,version:$d(n,d,A)},f=yield l.GetCacheEntryDownloadURL(g);if(!f.ok){P(`Cache not found for version ${g.version} of keys: ${c.join(", ")}`);return}if(g.key!==f.matchedKey?he(`Cache hit for restore-key: ${f.matchedKey}`):he(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return he("Lookup only - skipping download"),f.matchedKey;u=vm.join(yield yp(),vA(d)),P(`Archive path: ${u}`),P(`Starting download of archive to: ${u}`),yield UU(f.signedDownloadUrl,u,a);let B=oo(u);return he(`Cache Size: ~${Math.round(B/(1024*1024))} MB (${B} B)`),FA()&&(yield Pm(u,d)),yield KL(u,d),he("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Fi.name)throw l;d instanceof so&&typeof d.statusCode=="number"&&d.statusCode>=500?hu(`Failed to restore: ${l.message}`):yt(`Failed to restore: ${l.message}`)}finally{try{u&&(yield bp(u))}catch(l){P(`Failed to delete archive: ${l}`)}}})}function kee(t,e,r){return qh(this,arguments,void 0,function*(s,n,i,o=!1){let a=Bm();return P(`Cache service version: ${a}`),xee(s),jL(n),a==="v2"?yield a8e(s,n,i,o):yield o8e(s,n,i,o)})}function o8e(t,e,r){return qh(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield wp(),g=-1,f=yield ID(s);if(P("Cache Paths:"),P(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield yp(),B=vm.join(p,vA(d));P(`Archive Path: ${B}`);try{yield XL(p,f,d),FA()&&(yield Pm(B,d));let E=10*1024*1024*1024,C=oo(B);if(P(`File Size: ${C}`),C>E&&!FU())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);P("Reserving Cache");let w=yield R$(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=w?.result)===null||a===void 0)&&a.cacheId)g=(A=w?.result)===null||A===void 0?void 0:A.cacheId;else throw w?.statusCode===400?new Error((u=(c=w?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Yh(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(l=w?.error)===null||l===void 0?void 0:l.message}`);P(`Saving Cache (ID: ${g})`),yield LU(g,B,"",i)}catch(E){let C=E;if(C.name===Fi.name)throw E;C.name== Line truncated
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,n=HV(),i=a6(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")Ns(yTe(o));else throw o}}function yTe(t){let e=`Failed to generate PR comment.
${t}`,n=Lee(),i=_7(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")yt(g8e(o));else throw o}}function g8e(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function bTe(t){return`${NTe()}
${TTe(t)}`}function wTe(){let t=_V();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function NTe(){let t=OV();return t.length===0?"":`
`:e}function f8e(t){return`${m8e()}
${C8e(t)}`}function p8e(){let t=Uee();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function m8e(){let t=Mee();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${FS()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${tP()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${STe(e)}</li>`).join("")}
${t.map(e=>`<li>${E8e(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function STe(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function TTe(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function E8e(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function C8e(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -227,53 +262,38 @@ This job uses deprecated functionality from the <code>${FS()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>xTe(e)).join("")}
</tr>${t.map(e=>B8e(e)).join("")}
</table>
`}function DTe(t){return t.some(e=>e.buildFailed)}function xTe(t){return`
`}function I8e(t){return t.some(e=>e.buildFailed)}function B8e(t){return`
<tr>
<td>${GV(t.rootProjectName,30)}</td>
<td>${GV(t.requestedTasks,60)}</td>
<td>${Pee(t.rootProjectName,30)}</td>
<td>${Pee(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${RTe(t)}</td>
<td>${kTe(t)}</td>
</tr>`}function RTe(t){return t.buildFailed?":x:":":white_check_mark:"}function kTe(t){return t.buildScanFailed?LS({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?LS({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):LS({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function LS({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function GV(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var qV=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as vs from"fs";import*as vi from"path";function VV(){return WV().map(e=>{let r=vs.readFileSync(e,"utf8"),s=JSON.parse(r);return UTe(e,s),s})}function JV(){WV().forEach(vTe)}function WV(){let t=vi.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return vs.existsSync(t)?vs.readdirSync(t).map(e=>vi.resolve(t,e)).filter(e=>vi.extname(e)===".json"&&!LTe(e)):[]}function UTe(t,e){let r=vi.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!vs.existsSync(r))return;let s=vi.resolve(r,vi.basename(t));if(vs.existsSync(s)){let n=vs.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function LTe(t){let e=`${t}.processed`;return vs.existsSync(e)}function vTe(t){let e=`${t}.processed`;vs.writeFileSync(e,"")}import*as zV from"fs";import*as KV from"path";import{pathToFileURL as PTe}from"url";var OTe=`
<td align='center'>${Q8e(t)}</td>
<td>${y8e(t)}</td>
</tr>`}function Q8e(t){return t.buildFailed?":x:":":white_check_mark:"}function y8e(t){return t.buildScanFailed?nP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?nP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):nP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function nP({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function Pee(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var Oee=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Gn from"fs";import*as Ga from"path";function _ee(){return Gee().map(e=>{let r=Gn.readFileSync(e,"utf8"),s=JSON.parse(r);return N8e(e,s),s})}function Hee(){Gee().forEach(T8e)}function Gee(){let t=Ga.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Gn.existsSync(t)?Gn.readdirSync(t).map(e=>Ga.resolve(t,e)).filter(e=>Ga.extname(e)===".json"&&!S8e(e)):[]}function N8e(t,e){let r=Ga.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Gn.existsSync(r))return;let s=Ga.resolve(r,Ga.basename(t));if(Gn.existsSync(s)){let n=Gn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function S8e(t){let e=`${t}.processed`;return Gn.existsSync(e)}function T8e(t){let e=`${t}.processed`;Gn.writeFileSync(e,"")}import*as Jee from"fs";import*as Wee from"path";import{pathToFileURL as R8e}from"url";import*as oP from"path";var Yee="BASIC_CACHE_PRIMARY_KEY",iP="BASIC_CACHE_RESTORED_KEY",x8e="setup-java",qee=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],db=class{async restore(e,r){let s=Vee(e),n=await D8e();np(Yee,n);try{let i=await Ree(s,n);i?(np(iP,i),he(`Basic caching restored from cache key: ${i}`)):he("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){yt(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){if(s.readOnly){let a=MA(iP);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let n=MA(Yee);if(MA(iP)===n)return he(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),`Basic caching restored entry with key \`${n}\`. Save was skipped.`;let o=Vee(e);try{return await kee(o,n),he(`Basic caching saved entry with key: ${n}`),`Basic caching saved entry with key \`${n}\`.`}catch(a){return yt(`Basic caching failed to save entry with key \`${n}\`: ${a}`),`Basic caching save failed: ${a}`}}};function Vee(t){return[oP.join(t,"caches"),oP.join(t,"wrapper")]}async function D8e(){let t=await CW(qee.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${qee}], make sure you have checked out the target repository`);return`${x8e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var k8e=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,_Te=`
***********************************************************
LICENSING NOTICE
The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
You can suppress this message by accepting the terms in your action configuration: see https://github.com/gradle/actions/blob/main/README.md
***********************************************************
`,HTe=`
> [!IMPORTANT]
> #### Licensing notice
>
> The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
> The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
>
> The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
>
> Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
> If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
>
>You can suppress this message by [accepting the terms in your action configuration](https://github.com/gradle/actions/blob/main/README.md).
`,vS=class{async restore(e,r){}async save(e,r,s){return OTe}},PS=class{constructor(e){this.delegate=e}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,s){return`${await this.delegate.save(e,r,s)}
${HTe}`}};async function XV(t){if(t.isCacheDisabled())return new vS;let e=await GTe();return t.isCacheLicenseAccepted()?e:(await qTe(),new PS(e))}async function GTe(){let t=YTe();return await import(PTe(t).href)}function YTe(){let t=import.meta.dirname,e=KV.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(zV.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}async function qTe(){console.info(_Te)}import*as tJ from"util";var jTe=ie(eJ(),1);import*as OS from"fs";var Dpt=tJ.promisify(OS.readdir);var $Te={_useHtmlParser2:!1};function xu(t,e){if(!t)return e??$Te;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var cT={};an(cT,{contains:()=>B0,extract:()=>WDe,html:()=>YDe,merge:()=>bJ,parseHTML:()=>VDe,root:()=>JDe,text:()=>lA,xml:()=>qDe});var vo={};an(vo,{DocumentPosition:()=>_s,append:()=>wDe,appendChild:()=>bDe,compareDocumentPosition:()=>IJ,existsOne:()=>EJ,filter:()=>Uu,find:()=>p0,findAll:()=>DDe,findOne:()=>E0,findOneChild:()=>TDe,getAttributeValue:()=>IDe,getChildren:()=>Mu,getElementById:()=>FDe,getElements:()=>kDe,getElementsByClassName:()=>MDe,getElementsByTagName:()=>uA,getElementsByTagType:()=>UDe,getFeed:()=>AT,getInnerHTML:()=>CDe,getName:()=>QDe,getOuterHTML:()=>mJ,getParent:()=>pJ,getSiblings:()=>oT,getText:()=>h0,hasAttrib:()=>BDe,hasChildren:()=>Pe,innerText:()=>Fg,isCDATA:()=>Ru,isComment:()=>cA,isDocument:()=>Os,isTag:()=>q,isText:()=>Rr,nextElementSibling:()=>f0,prepend:()=>SDe,prependChild:()=>NDe,prevElementSibling:()=>m0,removeElement:()=>_i,removeSubsets:()=>LDe,replaceElement:()=>yDe,testElement:()=>RDe,textContent:()=>Oi,uniqueSort:()=>Uo});var Ps={};an(Ps,{CDATA:()=>zS,Comment:()=>qS,Directive:()=>YS,Doctype:()=>KS,ElementType:()=>Be,Root:()=>HS,Script:()=>VS,Style:()=>JS,Tag:()=>WS,Text:()=>GS,isTag:()=>_S});var Be;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Be||(Be={}));function _S(t){return t.type===Be.Tag||t.type===Be.Script||t.type===Be.Style}var HS=Be.Root,GS=Be.Text,YS=Be.Directive,qS=Be.Comment,VS=Be.Script,JS=Be.Style,WS=Be.Tag,zS=Be.CDATA,KS=Be.Doctype;var a0=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return ku(this,e)}},Dg=class extends a0{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},jn=class extends Dg{constructor(){super(...arguments),this.type=Be.Text}get nodeType(){return 3}},oA=class extends Dg{constructor(){super(...arguments),this.type=Be.Comment}get nodeType(){return 8}},aA=class extends Dg{constructor(e,r){super(r),this.name=e,this.type=Be.Directive}get nodeType(){return 1}},xg=class extends a0{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},Rg=class extends xg{constructor(){super(...arguments),this.type=Be.CDATA}get nodeType(){return 4}},ns=class extends xg{constructor(){super(...arguments),this.type=Be.Root}get nodeType(){return 9}},AA=class extends xg{constructor(e,r,s=[],n=e==="script"?Be.Script:e==="style"?Be.Style:Be.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}})}};function q(t){return _S(t)}function Ru(t){return t.type===Be.CDATA}function Rr(t){return t.type===Be.Text}function cA(t){return t.type===Be.Comment}function A0(t){return t.type===Be.Directive}function Os(t){return t.type===Be.Root}function Pe(t){return Object.prototype.hasOwnProperty.call(t,"children")}function ku(t,e=!1){let r;if(Rr(t))r=new jn(t.data);else if(cA(t))r=new oA(t.data);else if(q(t)){let s=e?XS(t.children):[],n=new AA(t.name,{...t.attribs},s);s.forEach(i=>i.parent=n),t.namespace!=null&&(n.namespace=t.namespace),t["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=n}else if(Ru(t)){let s=e?XS(t.children):[],n=new Rg(s);s.forEach(i=>i.parent=n),r=n}else if(Os(t)){let s=e?XS(t.children):[],n=new ns(s);s.forEach(i=>i.parent=n),t["x-mode"]&&(n["x-mode"]=t["x-mode"]),r=n}else if(A0(t)){let s=new aA(t.name,t Line truncated
`:h0(t.children):Ru(t)?h0(t.children):Rr(t)?t.data:""}function Oi(t){return Array.isArray(t)?t.map(Oi).join(""):Pe(t)&&!cA(t)?Oi(t.children):Rr(t)?t.data:""}function Fg(t){return Array.isArray(t)?t.map(Fg).join(""):Pe(t)&&(t.type===Be.Tag||Ru(t))?Fg(t.children):Rr(t)?t.data:""}function Mu(t){return Pe(t)?t.children:[]}function pJ(t){return t.parent||null}function oT(t){let e=pJ(t);if(e!=null)return Mu(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function IDe(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function BDe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function QDe(t){return t.name}function f0(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function m0(t){let{prev:e}=t;for(;e!==null&&!q(e);)({prev:e}=e);return e}function _i(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function yDe(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function bDe(t,e){if(_i(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function wDe(t,e){_i(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function NDe(t,e){if(_i(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function SDe(t,e){_i(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function Uu(t,e,r=!0,s=1/0){return p0(t,Array.isArray(e)?e:[e],r,s)}function p0(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&Pe(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function TDe(t,e){return e.find(t)}function E0(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(q(i)&&t(i))return i;if(r&&Pe(i)&&i.children.length>0){let o=E0(t,i.children,!0);if(o)return o}}return null}function EJ(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||Pe(r)&&EJ(t,r.children))}function DDe(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];q(i)&&t(i)&&r.push(i),Pe(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var C0={tag_name(t){return typeof t=="function"?e=>q(e)&&t(e.name):t==="*"?q:e=>q(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Rr(e)&&t(e.data):e=>Rr(e)&&e.data===t}};function aT(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function xDe(t,e){return r=>t(r)||e(r)}function CJ(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(C0,r)?C0[r](s):aT(r,s)});return e.length===0?null:e.reduce(xDe)}function RDe(t,e){let r=CJ(t);return r?r(e):!0}function kDe(t,e,r,s=1/0){let n=CJ(t);return n?Uu(n,e,r,s):[]}function FDe(t,e,r=!0){return Array.isArray(e)||(e=[e]),E0(aT("id",t),e,r)}function uA(t,e,r=!0,s=1/0){return Uu(C0.tag_name(t),e,r,s)}function MDe(t,e,r=!0,s=1/0){return Uu(aT("class",t),e,r,s)}function UDe(t,e,r=!0,s=1/0){return Uu(C0.tag_type(t),e,r,s)}function LDe(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var _s;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(_s||(_s={}));function IJ(t,e){let r=[],s=[];if(t===e)return 0;let n=Pe(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=Pe(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return _s.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?_s.FOLLOWING|_s.CONTAINED_BY:_s.FOLLOWING:a===t?_s.PRECEDING|_s.CONTAINS:_s.PRECEDING}function Uo(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=IJ(e,r);return s&_s.PRECEDING?-1:s&_s.FOLLOWING?1:0}),t}function AT(t){let e=I0(HDe,t);return e?e.name==="feed"?vDe(e):PDe(e):null}function vDe(t){var e;let r=t.children,s={type:"atom",items:uA("entry",r).map(o=>{var a;let{children:A}=o,c={media:BJ(A)};kr(c,"id","id",A),kr(c,"title","title",A);let u=(a=I0("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let d=Lo("summary",A)||Lo("content",A);d&&(c.descript Line truncated
`,F8e="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",M8e=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,U8e="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",L8e=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,AP=class{async restore(e,r){}async save(e,r,s){return k8e}},hb=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,s){return`${await this.delegate.save(e,r,s)}
${this.summary}`}};async function zee(t){if(t.isCacheDisabled())return aP("Cache is disabled: will not restore state from previous builds."),new AP;if(t.getCacheProvider()==="basic")return aP(U8e),new hb(new db,L8e);aP(F8e);let e=await P8e();return t.isCacheLicenseAccepted()?e:new hb(e,M8e)}async function P8e(){let t=v8e();return await import(R8e(t).href)}function v8e(){let t=import.meta.dirname,e=Wee.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Jee.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function aP(t){console.info(t)}import*as $ee from"util";var V8e=fe(Zee(),1);import*as cP from"fs";var fwt=$ee.promisify(cP.readdir);var W8e={_useHtmlParser2:!1};function Vh(t,e){if(!t)return e??W8e;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var FP={};li(FP,{contains:()=>Tb,extract:()=>H4e,html:()=>P4e,merge:()=>Qte,parseHTML:()=>O4e,root:()=>_4e,text:()=>ol,xml:()=>v4e});var sc={};li(sc,{DocumentPosition:()=>Vn,append:()=>C4e,appendChild:()=>E4e,compareDocumentPosition:()=>Ete,existsOne:()=>pte,filter:()=>Xh,find:()=>bb,findAll:()=>y4e,findOne:()=>wb,findOneChild:()=>Q4e,getAttributeValue:()=>g4e,getChildren:()=>Kh,getElementById:()=>S4e,getElements:()=>N4e,getElementsByClassName:()=>T4e,getElementsByTagName:()=>il,getElementsByTagType:()=>x4e,getFeed:()=>kP,getInnerHTML:()=>h4e,getName:()=>p4e,getOuterHTML:()=>gte,getParent:()=>fte,getSiblings:()=>DP,getText:()=>Bb,hasAttrib:()=>f4e,hasChildren:()=>st,innerText:()=>qm,isCDATA:()=>Jh,isComment:()=>nl,isDocument:()=>qn,isTag:()=>Z,isText:()=>ys,nextElementSibling:()=>Qb,prepend:()=>B4e,prependChild:()=>I4e,prevElementSibling:()=>yb,removeElement:()=>Va,removeSubsets:()=>D4e,replaceElement:()=>m4e,testElement:()=>w4e,textContent:()=>qa,uniqueSort:()=>tc});var Yn={};li(Yn,{CDATA:()=>EP,Comment:()=>gP,Directive:()=>hP,Doctype:()=>CP,ElementType:()=>Le,Root:()=>lP,Script:()=>fP,Style:()=>pP,Tag:()=>mP,Text:()=>dP,isTag:()=>uP});var Le;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Le||(Le={}));function uP(t){return t.type===Le.Tag||t.type===Le.Script||t.type===Le.Style}var lP=Le.Root,dP=Le.Text,hP=Le.Directive,gP=Le.Comment,fP=Le.Script,pP=Le.Style,mP=Le.Tag,EP=Le.CDATA,CP=Le.Doctype;var gb=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Wh(this,e)}},_m=class extends gb{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Oo=class extends _m{constructor(){super(...arguments),this.type=Le.Text}get nodeType(){return 3}},tl=class extends _m{constructor(){super(...arguments),this.type=Le.Comment}get nodeType(){return 8}},rl=class extends _m{constructor(e,r){super(r),this.name=e,this.type=Le.Directive}get nodeType(){return 1}},Hm=class extends gb{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},Gm=class extends Hm{constructor(){super(...arguments),this.type=Le.CDATA}get nodeType(){return 4}},rn=class extends Hm{constructor(){super(...arguments),this.type=Le.Root}get nodeType(){return 9}},sl=class extends Hm{constructor(e,r,s=[],n=e==="script"?Le.Script:e==="style"?Le.Style:Le.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}})}};function Z(t){return uP(t)}function Jh(t){return t.type===Le.CDATA}function ys(t){return t.type===Le.Text}function nl(t){return t.type===Le.Comment}function fb(t){return t.type===Le.Directive}function qn(t){return t.type===Le.Root}function st(t){return Object.prototype.hasOwnProperty.call(t,"children")}function Wh(t,e=!1){let r;if(ys(t))r=new Oo(t.data);else if(nl(t))r=new tl(t.data);else if(Z(t)){let s=e?IP(t.children):[],n=new sl(t.name,{...t.attribs},s);s.forEach(i=>i.parent=n),t.namespace!=null&&(n.namespace=t.namespace),t["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=n}else if(Jh(t)){let s=e?IP(t.children):[],n=new Gm(s);s.forEach(i=>i.parent=n),r=n}else if(q Line truncated
`:Bb(t.children):Jh(t)?Bb(t.children):ys(t)?t.data:""}function qa(t){return Array.isArray(t)?t.map(qa).join(""):st(t)&&!nl(t)?qa(t.children):ys(t)?t.data:""}function qm(t){return Array.isArray(t)?t.map(qm).join(""):st(t)&&(t.type===Le.Tag||Jh(t))?qm(t.children):ys(t)?t.data:""}function Kh(t){return st(t)?t.children:[]}function fte(t){return t.parent||null}function DP(t){let e=fte(t);if(e!=null)return Kh(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function g4e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function f4e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function p4e(t){return t.name}function Qb(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function yb(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function Va(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function m4e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function E4e(t,e){if(Va(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function C4e(t,e){Va(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function I4e(t,e){if(Va(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function B4e(t,e){Va(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function Xh(t,e,r=!0,s=1/0){return bb(t,Array.isArray(e)?e:[e],r,s)}function bb(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&st(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Q4e(t,e){return e.find(t)}function wb(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Z(i)&&t(i))return i;if(r&&st(i)&&i.children.length>0){let o=wb(t,i.children,!0);if(o)return o}}return null}function pte(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||st(r)&&pte(t,r.children))}function y4e(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];Z(i)&&t(i)&&r.push(i),st(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var Nb={tag_name(t){return typeof t=="function"?e=>Z(e)&&t(e.name):t==="*"?Z:e=>Z(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>ys(e)&&t(e.data):e=>ys(e)&&e.data===t}};function RP(t,e){return typeof e=="function"?r=>Z(r)&&e(r.attribs[t]):r=>Z(r)&&r.attribs[t]===e}function b4e(t,e){return r=>t(r)||e(r)}function mte(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(Nb,r)?Nb[r](s):RP(r,s)});return e.length===0?null:e.reduce(b4e)}function w4e(t,e){let r=mte(t);return r?r(e):!0}function N4e(t,e,r,s=1/0){let n=mte(t);return n?Xh(n,e,r,s):[]}function S4e(t,e,r=!0){return Array.isArray(e)||(e=[e]),wb(RP("id",t),e,r)}function il(t,e,r=!0,s=1/0){return Xh(Nb.tag_name(t),e,r,s)}function T4e(t,e,r=!0,s=1/0){return Xh(RP("class",t),e,r,s)}function x4e(t,e,r=!0,s=1/0){return Xh(Nb.tag_type(t),e,r,s)}function D4e(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Vn;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Vn||(Vn={}));function Ete(t,e){let r=[],s=[];if(t===e)return 0;let n=st(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=st(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Vn.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Vn.FOLLOWING|Vn.CONTAINED_BY:Vn.FOLLOWING:a===t?Vn.PRECEDING|Vn.CONTAINS:Vn.PRECEDING}function tc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=Ete(e,r);return s&Vn.PRECEDING?-1:s&Vn.FOLLOWING?1:0}),t}function kP(t){let e=Sb(U4e,t);return e?e.name==="feed"?R4e(e):k4e(e):null}function R4e(t){var e;let r=t.children,s={type:"atom",items:il("entry",r).map(o=>{var a;let{children:A}=o,c={media:Cte(A)};bs(c,"id","id",A),bs(c,"title","title",A);let u=(a=Sb("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=rc("summary",A)||rc("content",A);l&&( Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ys=ie(Po(),1);var wT={};function NT(t,e){return t===Ys.default.falseFunc?Ys.default.falseFunc:r=>e.isTag(r)&&t(r)}function ST(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function bT(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var yT=(t,e,r,s,n)=>{let i=n(e,bT(r),s);return i===Ys.default.trueFunc?t:i===Ys.default.falseFunc?Ys.default.falseFunc:o=>i(o)&&t(o)},F0={is:yT,matches:yT,where:yT,not(t,e,r,s,n){let i=n(e,bT(r),s);return i===Ys.default.falseFunc?t:i===Ys.default.trueFunc?Ys.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=bT(r);o.relativeSelector=!0;let a=e.some(u=>u.some(_g))?[wT]:void 0,A=n(e,o,a);if(A===Ys.default.falseFunc)return Ys.default.falseFunc;let c=NT(A,i);if(a&&A!==Ys.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return d=>{if(!t(d))return!1;a[0]=d;let g=i.getChildren(d),h=u?[...g,...ST(d,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function c7(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in F0))throw new Error(`Unknown pseudo-class :${o}(${a})`);return F0[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:k0[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,A7.parse)(c);return F0.is(t,u,r,s,n)}if(typeof A=="function")return QT(A,o,a,1),u=>A(u,a)&&t(u);if(o in qu)return qu[o](t,a,r,s);if(o in Gg){let u=Gg[o];return QT(u,o,a,2),d=>u(d,r,a)&&t(d)}throw new Error(`Unknown pseudo-class :${o}`)}var qs=ie(Gu(),1);function TT(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function u7(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case qs.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case qs.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case qs.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),n7[e.action](t,e,r)}case qs.SelectorType.Pseudo:return c7(t,e,r,s,n);case qs.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case qs.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=TT(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=TT(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=TT(c,i));return!1};case qs.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case qs.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case qs.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let d=c[u];if(o(A,d))break;if(i.isTag(d)&&t(d))return!0}return!1};case qs.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let d=0;d<c.length;d++){let g=c[d];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case qs.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function l7(t,e,r){let s=M0(t,e,r);return NT(s,e.adapter)}function M0(t,e,r){let s=typeof t=="string"?(0,Qn.parse)(t):t;return U0(s,e,r)}function d7(t){return t.type===Qn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(d7)))}var k2e={type:Qn.SelectorType.Descendant},F2e={type:"_flexibleDescendant"},M2e={type:Qn.SelectorType.Pseudo,name:"scope",data:null};function U2e(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===wT||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(T7,`\r
`)}}).toArray()}var qT={};an(qT,{extract:()=>Xxe});function Kxe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Xxe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=Kxe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Ho=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Ho.prototype.cheerio="[cheerio object]";Ho.prototype.splice=Array.prototype.splice;Ho.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ho.prototype,pT,_T,HT,GT,YT,qT);function D7(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=xu(n),a=t(s,o,i,null);class A extends Ho{_make(d,g){let h=c(d,g);return h.prevObject=this,h}_parse(d,g,h,f){return t(d,g,h,f)}_render(d){return e(d,this.options)}}function c(u,d,g=a,h){if(u&&Hs(u))return u;let f=xu(h,o),E=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],w=Hs(E)?E:new A(E,null,f);if(w._root=w,!u)return new A(void 0,w,f);let p=typeof u=="string"&&Mg(u)?t(u,f,!1,null).children:jxe(u)?[u]:Array.isArray(u)?u:void 0,y=new A(p,w,f);if(p)return y;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,D=d?typeof d=="string"?Mg(d)?new A([t(d,f,!1,null)],w,f):(N=`${d} ${N}`,w):Hs(d)?d:new A(Array.isArray(d)?d:[d],w,f):w;return D?D.find(N):y}return Object.assign(c,cT,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function jxe(t){return!!t.name||t.type===Ps.Root||t.type===Ps.Text||t.type===Ps.Comment}var Zxe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),We="\uFFFD",C;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));var fr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function H0(t){return t>=55296&&t<=57343}function x7(t){return t>=56320&&t<=57343}function R7(t,e){return(t-55296)*1024+9216+e}function G0(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Y0(t){return t>=64976&&t<=65007||Zxe.has(t)}var x;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword" Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var zn=fe(nc(),1);var KP={};function XP(t,e){return t===zn.default.falseFunc?zn.default.falseFunc:r=>e.isTag(r)&&t(r)}function jP(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function zP(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var WP=(t,e,r,s,n)=>{let i=n(e,zP(r),s);return i===zn.default.trueFunc?t:i===zn.default.falseFunc?zn.default.falseFunc:o=>i(o)&&t(o)},_b={is:WP,matches:WP,where:WP,not(t,e,r,s,n){let i=n(e,zP(r),s);return i===zn.default.falseFunc?t:i===zn.default.trueFunc?zn.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=zP(r);o.relativeSelector=!0;let a=e.some(u=>u.some(jm))?[KP]:void 0,A=n(e,o,a);if(A===zn.default.falseFunc)return zn.default.falseFunc;let c=XP(A,i);if(a&&A!==zn.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),g=u?[...d,...jP(l,i)]:d;return i.existsOne(c,g)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function are(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in _b))throw new Error(`Unknown pseudo-class :${o}(${a})`);return _b[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:Ob[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,ore.parse)(c);return _b.is(t,u,r,s,n)}if(typeof A=="function")return JP(A,o,a,1),u=>A(u,a)&&t(u);if(o in ig)return ig[o](t,a,r,s);if(o in $m){let u=$m[o];return JP(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Kn=fe(sg(),1);function ZP(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Are(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Kn.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Kn.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Kn.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),rre[e.action](t,e,r)}case Kn.SelectorType.Pseudo:return are(t,e,r,s,n);case Kn.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Kn.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=ZP(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=ZP(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=ZP(c,i));return!1};case Kn.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Kn.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Kn.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Kn.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Kn.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function cre(t,e,r){let s=Hb(t,e,r);return XP(s,e.adapter)}function Hb(t,e,r){let s=typeof t=="string"?(0,Ui.parse)(t):t;return Gb(s,e,r)}function ure(t){return t.type===Ui.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(ure)))}var NOe={type:Ui.SelectorType.Descendant},SOe={type:"_flexibleDescendant"},TOe={type:Ui.SelectorType.Pseudo,name:"scope",data:null};function xOe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===KP||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(Nre,`\r
`)}}).toArray()}var gv={};li(gv,{extract:()=>q6e});function Y6e(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function q6e(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=Y6e(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var ac=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};ac.prototype.cheerio="[cheerio object]";ac.prototype.splice=Array.prototype.splice;ac.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(ac.prototype,HP,uv,lv,dv,hv,gv);function Sre(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Vh(n),a=t(s,o,i,null);class A extends ac{_make(l,d){let g=c(l,d);return g.prevObject=this,g}_parse(l,d,g,f){return t(l,d,g,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,g){if(u&&Jn(u))return u;let f=Vh(g,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],B=Jn(p)?p:new A(p,null,f);if(B._root=B,!u)return new A(void 0,B,f);let E=typeof u=="string"&&Vm(u)?t(u,f,!1,null).children:V6e(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,B,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let w=u,x=l?typeof l=="string"?Vm(l)?new A([t(l,f,!1,null)],B,f):(w=`${l} ${w}`,B):Jn(l)?l:new A(Array.isArray(l)?l:[l],B,f):B;return x?x.find(w):C}return Object.assign(c,FP,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function V6e(t){return!!t.name||t.type===Yn.Root||t.type===Yn.Text||t.type===Yn.Comment}var J6e=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lt="\uFFFD",I;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));var rs={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function zb(t){return t>=55296&&t<=57343}function Tre(t){return t>=56320&&t<=57343}function xre(t,e){return(t-55296)*1024+9216+e}function Kb(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Xb(t){return t>=64976&&t<=65007||J6e.has(t)}var D;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}