[bot] Update dist directory

This commit is contained in:
bot-githubaction committed 2026-03-18 20:58:30 +00:00
1 parent a0ee12f71e
commit 73536630a5
10 files changed
+896 -1608

No files matched your search

+197 -319
View File
@@ -1,269 +1,166 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var wMt=Object.create;var vP=Object.defineProperty;var NMt=Object.getOwnPropertyDescriptor;var SMt=Object.getOwnPropertyNames;var RMt=Object.getPrototypeOf,DMt=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 xMt=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xu=(t,e)=>{for(var r in e)vP(t,r,{get:e[r],enumerable:!0})},hTe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of SMt(e))!DMt.call(t,s)&&s!==r&&vP(t,s,{get:()=>e[s],enumerable:!(n=NMt(e,s))||n.enumerable});return t};var Xe=(t,e,r)=>(r=t!=null?wMt(RMt(t)):{},hTe(e||!t||!t.__esModule?vP(r,"default",{value:t,enumerable:!0}):r,t)),$n=t=>hTe(vP({},"__esModule",{value:!0}),t);var ITe=f(eb=>{"use strict";var Uyn=B("net"),LMt=B("tls"),$K=B("http"),mTe=B("https"),UMt=B("events"),Pyn=B("assert"),PMt=B("util");eb.httpOverHttp=_Mt;eb.httpsOverHttp=OMt;eb.httpOverHttps=HMt;eb.httpsOverHttps=qMt;function _Mt(t){var e=new _f(t);return e.request=$K.request,e}function OMt(t){var e=new _f(t);return e.request=$K.request,e.createSocket=ETe,e.defaultPort=443,e}function HMt(t){var e=new _f(t);return e.request=mTe.request,e}function qMt(t){var e=new _f(t);return e.request=mTe.request,e.createSocket=ETe,e.defaultPort=443,e}function _f(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$K.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=CTe(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)})}PMt.inherits(_f,UMt.EventEmitter);_f.prototype.addRequest=function(e,r,n,s){var i=this,o=eX({request:e},i.options,CTe(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)}})};_f.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eX({},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")),Ym("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){Ym("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var g=new Error("tunneling socket could not be established, statusCode="+l.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(h.length>0){Ym("got illegal response body from proxy"),d.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Ym("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Ym(`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)}};_f.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 ETe(t,e){var r=this;_f.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eX({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=LMt.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function CTe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eX(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 Ym;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ym=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)}:Ym=function(){};eb.debug=Ym});var HP=f((Oyn,BTe)=>{BTe.exports=ITe()});var ps=f((Hyn,QTe)=>{QTe.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 tn=f((qyn,VTe)=>{"use strict";var yTe=Symbol.for("undici.error.UND_ERR"),Ts=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[yTe]===!0}[yTe]=!0},bTe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tX=class extends Ts{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[bTe]===!0}[bTe]=!0},wTe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rX=class extends Ts{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[wTe]===!0}[wTe]=!0},NTe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nX=class extends Ts{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[NTe]===!0}[NTe]=!0},STe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sX=class extends Ts{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[STe]===!0}[STe]=!0},RTe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iX=class extends Ts{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function sUt(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(qLt.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function iUt(){return"allowed"}function oUt(){return"success"}function aUt(){return"success"}function AUt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function cUt(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&&zX(t.origin)&&!zX(PT(t))&&(e=null);break;case"same-origin":A_(t,PT(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function ub(t,e){return t}function uUt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ub(t.domainLookupStartTime,r),domainLookupEndTime:ub(t.domainLookupEndTime,r),connectionStartTime:ub(t.connectionStartTime,r),connectionEndTime:ub(t.connectionEndTime,r),secureConnectionStartTime:ub(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function lUt(t){return ub(WLt.now(),t)}function dUt(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 ake(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function hUt(t){return{referrerPolicy:t.referrerPolicy}}function gUt(t){let e=t.referrerPolicy;aB(e);let r=null;if(t.referrer==="client"){let a=tke();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=WX(r),s=WX(r,!0);n.toString().length>4096&&(n=s);let i=A_(t,n),o=UT(n)&&!UT(t.url);switch(e){case"origin":return s??WX(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=PT(t);return A_(n,a)?n:UT(n)&&!UT(a)?"no-referrer":s}default:return o?"no-referrer":s}}function WX(t,e){return aB(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 UT(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 fUt(t,e){if(a_===void 0)return!0;let r=Ake(e);if(r==="no metadata"||r.length===0)return!0;let n=mUt(r),s=EUt(r,n);for(let i of s){let o=i.algo,a=i.hash,A=a_.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)),CUt(A,a))return!0}return!1}var pUt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ake(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=pUt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();nke.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function mUt(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 EUt(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 CUt(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 IUt(t){}function A_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function BUt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function QUt(t){return t.controller.state==="aborted"}function yUt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function bUt(t){return KLt[t.toLowerCase()]??t}function wUt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return aB(typeof e=="string"),e}var NUt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function cke(t,e,r=0,n=1){class s{ Line truncated
`);function rPt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function nPt(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 sPt(t,e){u_(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&&l_(t,ePt,i)||i.position===t.length-4&&l_(t,tPt,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=iPt(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-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",rPt(u)||(u=""),h=new ZUt([d],c,{type:u})):h=WUt(Buffer.from(d)),u_(Bke(A)),u_(typeof h=="string"&&Bke(h)||jUt(h)),s.push(KUt(A,h,c))}}function iPt(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=db(a=>a!==10&&a!==13&&a!==58,t,e);if(o=tZ(o,!0,!0,a=>a===9||a===32),!zUt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,db(a=>a===32||a===9,t,e),VUt(o)){case"content-disposition":{if(r=n=null,!l_(t,$Ut,e)||(e.position+=17,r=bke(t,e),r===null))return"failure";if(l_(t,yke,e)){let a=e.position+yke.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=bke(t,e),n===null))return"failure"}break}case"content-type":{let a=db(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),s=Qke(a);break}case"content-transfer-encoding":{let a=db(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),i=Qke(a);break}default:db(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function bke(t,e){u_(t[e.position-1]===34);let r=db(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 db(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function tZ(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 l_(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}wke.exports={multipartFormDataParser:sPt,validateBoundary:nPt}});var fb=f((hbn,Lke)=>{"use strict";var HT=mr(),{ReadableStreamFrom:oPt,isBlobLike:Ske,isReadableStreamLike:aPt,readableStreamClose:APt,createDeferredPromise:cPt,fullyReadBody:uPt,extractMimeType:lPt,utf8DecodeBytes:xke}=Qc(),{FormData:Rke}=OT(),{kState:gb}=Jm(),{webidl:dPt}=Oo(),{Blob:hPt}=B("node:buffer"),rZ=B("node:assert"),{isErrored:Tke,isDisturbed:gPt}=B("node:stream"),{isArrayBuffer:fPt}=B("node:util/types"),{serializeAMimeType:pPt}=yA(),{multipartFormDataParser:mPt}=Nke(),nZ;try{let t=B("node:crypto");nZ=e=>t.randomInt(0,e)}catch{nZ=t=>Math.floor(Math.random(t))}var d_=new TextEncoder;function EPt(){}var kke=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Fke;kke&&(Fke=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!gPt(e)&&!Tke(e)&&e.cancel("Response object has been garbage collected").catch(EPt)}));function Mke(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ske(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?d_.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>APt(A))},start(){},type:"bytes"}),rZ(aPt(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(fPt(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(HT.isFormDataLike(t)){let A=`----formdata-undici-0${`${nZ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
var $Ke=Object.create;var P3=Object.defineProperty;var eZe=Object.getOwnPropertyDescriptor;var tZe=Object.getOwnPropertyNames;var rZe=Object.getPrototypeOf,sZe=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 E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),QA=(t,e)=>{for(var r in e)P3(t,r,{get:e[r],enumerable:!0})},nZe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tZe(e))!sZe.call(t,n)&&n!==r&&P3(t,n,{get:()=>e[n],enumerable:!(s=eZe(e,n))||s.enumerable});return t};var le=(t,e,r)=>(r=t!=null?$Ke(rZe(t)):{},nZe(e||!t||!t.__esModule?P3(r,"default",{value:t,enumerable:!0}):r,t));var Tae=E(Qm=>{"use strict";var YEr=B("net"),uZe=B("tls"),Y3=B("http"),Nae=B("https"),lZe=B("events"),qEr=B("assert"),dZe=B("util");Qm.httpOverHttp=hZe;Qm.httpsOverHttp=fZe;Qm.httpOverHttps=gZe;Qm.httpsOverHttps=pZe;function hZe(t){var e=new yl(t);return e.request=Y3.request,e}function fZe(t){var e=new yl(t);return e.request=Y3.request,e.createSocket=Dae,e.defaultPort=443,e}function gZe(t){var e=new yl(t);return e.request=Nae.request,e}function pZe(t){var e=new yl(t);return e.request=Nae.request,e.createSocket=Dae,e.defaultPort=443,e}function yl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Y3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=Rae(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)})}dZe.inherits(yl,lZe.EventEmitter);yl.prototype.addRequest=function(e,r,s,n){var i=this,o=q3({request:e},i.options,Rae(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)}})};yl.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=q3({},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")),Zd("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,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Zd("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(h.length>0){Zd("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 Zd("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),Zd(`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)}};yl.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 Dae(t,e){var r=this;yl.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=q3({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=uZe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function Rae(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function q3(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 Zd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Zd=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)}:Zd=function(){};Qm.debug=Zd});var V3=E((JEr,xae)=>{xae.exports=Tae()});var Hr=E((WEr,kae)=>{kae.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 $t=E((zEr,rAe)=>{"use strict";var Fae=Symbol.for("undici.error.UND_ERR"),Zr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Fae]===!0}[Fae]=!0},Mae=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),J3=class extends Zr{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[Mae]===!0}[Mae]=!0},Uae=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),W3=class extends Zr{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[Uae]===!0}[Uae]=!0},vae=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),z3=class extends Zr{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[vae]===!0}[vae]=!0},Lae=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),j3=class extends Zr{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[Lae]===!0}[Lae]=!0},_ae=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),K3=class extends Zr{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function k$e(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(p$e.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function F$e(){return"allowed"}function M$e(){return"success"}function U$e(){return"success"}function v$e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function L$e(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&&P8(t.origin)&&!P8(XQ(t))&&(e=null);break;case"same-origin":bR(t,XQ(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function km(t,e){return t}function _$e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:km(t.domainLookupStartTime,r),domainLookupEndTime:km(t.domainLookupEndTime,r),connectionStartTime:km(t.connectionStartTime,r),connectionEndTime:km(t.connectionEndTime,r),secureConnectionStartTime:km(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function P$e(t){return km(B$e.now(),t)}function O$e(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 Ece(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function H$e(t){return{referrerPolicy:t.referrerPolicy}}function G$e(t){let e=t.referrerPolicy;mg(e);let r=null;if(t.referrer==="client"){let a=lce();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=_8(r),n=_8(r,!0);s.toString().length>4096&&(s=n);let i=bR(t,s),o=ZQ(s)&&!ZQ(t.url);switch(e){case"origin":return n??_8(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=XQ(t);return bR(s,a)?s:ZQ(s)&&!ZQ(a)?"no-referrer":n}default:return o?"no-referrer":n}}function _8(t,e){return mg(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 ZQ(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 Y$e(t,e){if(yR===void 0)return!0;let r=mce(e);if(r==="no metadata"||r.length===0)return!0;let s=V$e(r),n=J$e(r,s);for(let i of n){let o=i.algo,a=i.hash,A=yR.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)),W$e(A,a))return!0}return!1}var q$e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function mce(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=q$e.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();hce.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function V$e(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 J$e(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 W$e(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 z$e(t){}function bR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function j$e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function K$e(t){return t.controller.state==="aborted"}function Z$e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function X$e(t){return b$e[t.toLowerCase()]??t}function $$e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return mg(typeof e=="string"),e}var eet=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Cce(t,e,r=0,s=1){class n{ Line truncated
`);function ket(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Fet(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 Met(t,e){SR(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&&NR(t,Tet,i)||i.position===t.length-4&&NR(t,xet,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Uet(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 h;c!==null?(u??="text/plain",ket(u)||(u=""),h=new Det([d],c,{type:u})):h=Qet(Buffer.from(d)),SR(xce(A)),SR(typeof h=="string"&&xce(h)||bet(h)),n.push(wet(A,h,c))}}function Uet(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=Mm(a=>a!==10&&a!==13&&a!==58,t,e);if(o=J8(o,!0,!0,a=>a===9||a===32),!yet.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Mm(a=>a===32||a===9,t,e),Bet(o)){case"content-disposition":{if(r=s=null,!NR(t,Ret,e)||(e.position+=17,r=Mce(t,e),r===null))return"failure";if(NR(t,Fce,e)){let a=e.position+Fce.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=Mce(t,e),s===null))return"failure"}break}case"content-type":{let a=Mm(A=>A!==10&&A!==13,t,e);a=J8(a,!1,!0,A=>A===9||A===32),n=kce(a);break}case"content-transfer-encoding":{let a=Mm(A=>A!==10&&A!==13,t,e);a=J8(a,!1,!0,A=>A===9||A===32),i=kce(a);break}default:Mm(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Mce(t,e){SR(t[e.position-1]===34);let r=Mm(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 Mm(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function J8(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 NR(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}Uce.exports={multipartFormDataParser:Met,validateBoundary:Fet}});var Lm=E((Cmr,Jce)=>{"use strict";var ty=Qt(),{ReadableStreamFrom:vet,isBlobLike:Lce,isReadableStreamLike:Let,readableStreamClose:_et,createDeferredPromise:Pet,fullyReadBody:Oet,extractMimeType:Het,utf8DecodeBytes:Oce}=go(),{FormData:_ce}=ey(),{kState:vm}=Xd(),{webidl:Get}=Dn(),{Blob:Yet}=B("node:buffer"),W8=B("node:assert"),{isErrored:Hce,isDisturbed:qet}=B("node:stream"),{isArrayBuffer:Vet}=B("node:util/types"),{serializeAMimeType:Jet}=Li(),{multipartFormDataParser:Wet}=vce(),z8;try{let t=B("node:crypto");z8=e=>t.randomInt(0,e)}catch{z8=t=>Math.floor(Math.random(t))}var DR=new TextEncoder;function zet(){}var Gce=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Yce;Gce&&(Yce=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!qet(e)&&!Hce(e)&&e.cancel("Response object has been garbage collected").catch(zet)}));function qce(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Lce(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?DR.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>_et(A))},start(){},type:"bytes"}),W8(Let(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(Vet(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(ty.isFormDataLike(t)){let A=`----formdata-undici-0${`${z8(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=d_.encode(c+`; name="${u(l(C))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[C,m]of t)if(typeof m=="string"){let I=DR.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=d_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=DR.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=d_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(Ske(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(HT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:oPt(t)}if((typeof s=="string"||HT.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(!Tke(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 CPt(t,e=!1){return t instanceof ReadableStream&&(rZ(!HT.isDisturbed(t),"The body has already been consumed."),rZ(!t.locked,"The stream is locked.")),Mke(t,e)}function IPt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function BPt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function QPt(t){return{blob(){return hb(this,r=>{let n=Dke(this);return n===null?n="":n&&(n=pPt(n)),new hPt([r],{type:n})},t)},arrayBuffer(){return hb(this,r=>new Uint8Array(r).buffer,t)},text(){return hb(this,xke,t)},json(){return hb(this,bPt,t)},formData(){return hb(this,r=>{let n=Dke(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=mPt(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Rke;return i[gb]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Rke;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 hb(this,r=>new Uint8Array(r),t)}}}function yPt(t){Object.assign(t.prototype,QPt(t))}async function hb(t,e,r){if(dPt.brandCheck(t,r),vke(t))throw new TypeError("Body is unusable: Body has already been read");BPt(t[gb]);let n=cPt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[gb].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await uPt(t[gb].body,i,s),n.promise)}function vke(t){let e=t[gb].body;return e!=null&&(e.stream.locked||HT.isDisturbed(e.stream))}function bPt(t){return JSON.parse(xke(t))}function Dke(t){let e=t[gb].headersList,r=lPt(e);return r==="failure"?null:r}Lke.exports={extractBody:Mke,safelyExtractBody:CPt,cloneBody:IPt,mixinBody:yPt,streamRegistry:Fke,hasFinalizationRegistry:kke,bodyUnusable:vke}});var Wke=f((gbn,Vke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:Uke}=rb(),sZ=_X(),{RequestContentLengthMismatchError:AB,ResponseContentLengthMismatchError:wPt,RequestAbortedError:Gke,HeadersTimeoutError:NPt,HeadersOverflowError:SPt,SocketError:E_,InformationalError:pb,BodyTimeoutError:RPt,HTTPParserError:DPt,ResponseExceededMaxSizeError:xPt}=tn(),{kUrl:Yke,kReset:bA,kClient:AZ,kParser:Js,kBlocking:YT,kRunning:sa,kPending:TPt,kSize:Pke,kWriting:Wm,kQueue:Ad,kNoRef:qT,kKeepAliveDefaultTimeout:kPt,kHostHeader:FPt,kPendingIdx:MPt,kRunningIdx:ku,kError:Fu,kPipelining:p_,kSocket:mb,kKeepAliveTimeoutValue:C_,kMaxHeadersSize:iZ,kKeepAliveMaxTimeout:vPt,kKeepAliveTimeoutThreshold:LPt,kHeadersTimeout:UPt,kBodyTimeout:PPt,kStrictContentLength:cZ,kMaxRequests:_ke,kCounter:_Pt,kMaxResponseSize:OPt,kOnError:HPt,kResume:Vm,kHTTPContext:Jke}=ps(),Qh=F1e(),qPt=Buffer.alloc(0),h_=Buffer[Symbol.species],g_=Yt.addListener,GPt=Yt.removeAllListeners,oZ;async function YPt(){let t=process.env.JEST_WORKER_ID?qX():void 0,e;try{e=await WebAssembly.compile(L1e())}catch{e=await WebAssembly.compile(t||qX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onStatus(new h_(yh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(qi.ptr===r),qi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onHeaderField(new h_(yh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onHeaderValue(new h_(yh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(qi.ptr===r),qi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onBody(new h_(yh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(qi.ptr===r),qi.onMessageComplete()||0)}})}var aZ=null,uZ=YPt();uZ.catch();var qi=null,yh=null,f_=0,bh=null,JPt=0,GT=1,Eb=2|GT,m_=4|GT,lZ=8|JPt,dZ=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[iZ])&&e[iZ]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Qh.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[FPt],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let p=DR.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(Lce(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(ty.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:vet(t)}if((typeof n=="string"||ty.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(!Hce(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 jet(t,e=!1){return t instanceof ReadableStream&&(W8(!ty.isDisturbed(t),"The body has already been consumed."),W8(!t.locked,"The stream is locked.")),qce(t,e)}function Ket(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function Zet(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Xet(t){return{blob(){return Um(this,r=>{let s=Pce(this);return s===null?s="":s&&(s=Jet(s)),new Yet([r],{type:s})},t)},arrayBuffer(){return Um(this,r=>new Uint8Array(r).buffer,t)},text(){return Um(this,Oce,t)},json(){return Um(this,ett,t)},formData(){return Um(this,r=>{let s=Pce(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Wet(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new _ce;return i[vm]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new _ce;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 Um(this,r=>new Uint8Array(r),t)}}}function $et(t){Object.assign(t.prototype,Xet(t))}async function Um(t,e,r){if(Get.brandCheck(t,r),Vce(t))throw new TypeError("Body is unusable: Body has already been read");Zet(t[vm]);let s=Pet(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[vm].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Oet(t[vm].body,i,n),s.promise)}function Vce(t){let e=t[vm].body;return e!=null&&(e.stream.locked||ty.isDisturbed(e.stream))}function ett(t){return JSON.parse(Oce(t))}function Pce(t){let e=t[vm].headersList,r=Het(e);return r==="failure"?null:r}Jce.exports={extractBody:qce,safelyExtractBody:jet,cloneBody:Ket,mixinBody:$et,streamRegistry:Yce,hasFinalizationRegistry:Gce,bodyUnusable:Vce}});var sue=E((Imr,rue)=>{"use strict";var ze=B("node:assert"),at=Qt(),{channels:Wce}=bm(),j8=T8(),{RequestContentLengthMismatchError:Cg,ResponseContentLengthMismatchError:ttt,RequestAbortedError:$ce,HeadersTimeoutError:rtt,HeadersOverflowError:stt,SocketError:MR,InformationalError:_m,BodyTimeoutError:ntt,HTTPParserError:itt,ResponseExceededMaxSizeError:ott}=$t(),{kUrl:eue,kReset:_i,kClient:$8,kParser:As,kBlocking:ny,kRunning:On,kPending:att,kSize:zce,kWriting:eh,kQueue:bA,kNoRef:ry,kKeepAliveDefaultTimeout:Att,kHostHeader:ctt,kPendingIdx:utt,kRunningIdx:fa,kError:ga,kPipelining:kR,kSocket:Pm,kKeepAliveTimeoutValue:UR,kMaxHeadersSize:K8,kKeepAliveMaxTimeout:ltt,kKeepAliveTimeoutThreshold:dtt,kHeadersTimeout:htt,kBodyTimeout:ftt,kStrictContentLength:e4,kMaxRequests:jce,kCounter:gtt,kMaxResponseSize:ptt,kOnError:Ett,kResume:$d,kHTTPContext:tue}=Hr(),kc=YAe(),mtt=Buffer.alloc(0),RR=Buffer[Symbol.species],TR=at.addListener,Ctt=at.removeAllListeners,Z8;async function Itt(){let t=process.env.JEST_WORKER_ID?F8():void 0,e;try{e=await WebAssembly.compile(JAe())}catch{e=await WebAssembly.compile(t||F8())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ze(Ys.ptr===r);let i=s-Mc+Fc.byteOffset;return Ys.onStatus(new RR(Fc.buffer,i,n))||0},wasm_on_message_begin:r=>(ze(Ys.ptr===r),Ys.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ze(Ys.ptr===r);let i=s-Mc+Fc.byteOffset;return Ys.onHeaderField(new RR(Fc.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ze(Ys.ptr===r);let i=s-Mc+Fc.byteOffset;return Ys.onHeaderValue(new RR(Fc.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ze(Ys.ptr===r),Ys.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ze(Ys.ptr===r);let i=s-Mc+Fc.byteOffset;return Ys.onBody(new RR(Fc.buffer,i,n))||0},wasm_on_message_complete:r=>(ze(Ys.ptr===r),Ys.onMessageComplete()||0)}})}var X8=null,t4=Itt();t4.catch();var Ys=null,Fc=null,xR=0,Mc=null,Btt=0,sy=1,Om=2|sy,FR=4|sy,r4=8|Btt,s4=class{constructor(e,r,{exports:s}){ze(Number.isFinite(e[K8])&&e[K8]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(kc.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 n=="string"?p+=`host: ${n}\r
`:p+=t[ctt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[p_]&&!h[bA]?p+=`connection: keep-alive\r
`:t[kR]&&!h[_i]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let Q=0;Q<I.length;Q++)p+=`${m}: ${I[Q]}\r
`;else p+=`${m}: ${I}\r
`}return Uke.sendHeaders.hasSubscribers&&Uke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Hke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?Hke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?qke(g,A.stream(),t,e,h,u,p,l):XPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?KPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?qke(g,A,t,e,h,u,p,l):xt(!1),!0}function KPt(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"stream body cannot be pipelined");let A=!1,c=new I_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Gke;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[Wm]&&r[sa]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.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 Hke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`}return Wce.sendHeaders.hasSubscribers&&Wce.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Zce(f,null,t,e,h,u,p,l):at.isBuffer(A)?Zce(f,A,t,e,h,u,p,l):at.isBlobLike(A)?typeof A.stream=="function"?Xce(f,A.stream(),t,e,h,u,p,l):Ntt(f,A,t,e,h,u,p,l):at.isStream(A)?Stt(f,A,t,e,h,u,p,l):at.isIterable(A)?Xce(f,A,t,e,h,u,p,l):ze(!1),!0}function Stt(t,e,r,s,n,i,o,a){ze(i!==0||r[On]===0,"stream body cannot be pipelined");let A=!1,c=new vR({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){at.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new $ce;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ze(n.destroyed||n[eh]&&r[On]<=1),n.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")?at.destroy(e,f):at.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.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 Zce(t,e,r,s,n,i,o,a){try{e?at.isBuffer(e)&&(ze(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bA]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[_i]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Vm]()}catch(A){t(A)}}async function XPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new AB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(ze(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[$d]()}catch(A){t(A)}}async function Ntt(t,e,r,s,n,i,o,a){ze(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Cg;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[bA]=!0),r[Vm]()}catch(A){t(A)}}async function qke(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===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)=>{xt(A===null),s[Fu]?h(s[Fu]):A=d});s.on("close",c).on("drain",c);let l=new I_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Fu])throw s[Fu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var I_=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[Wm]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Fu])throw r[Fu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[cZ])throw new AB;process.emitWarning(new AB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[_i]=!0),r[$d]()}catch(A){t(A)}}async function Xce(t,e,r,s,n,i,o,a){ze(i!==0||r[On]===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)=>{ze(A===null),n[ga]?h(n[ga]):A=d});n.on("close",c).on("drain",c);let l=new vR({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ga])throw n[ga];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var vR=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[eh]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ga])throw r[ga];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[e4])throw new Cg;process.emitWarning(new Cg)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[_i]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===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[Js].timeout&&r[Js].timeoutType===Eb&&r[Js].timeout.refresh&&r[Js].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Wm]=!1,e[Fu])throw e[Fu];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(),s.onBodySent(e),u||r[As].timeout&&r[As].timeoutType===Om&&r[As].timeout.refresh&&r[As].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[eh]=!1,e[ga])throw e[ga];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&&s!==r){if(n[cZ])throw new AB;process.emitWarning(new AB)}e[Js].timeout&&e[Js].timeoutType===Eb&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),n[Vm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wm]=!1,e&&(xt(n[sa]<=1,"pipeline should only contain this request"),s(e))}};Vke.exports=VPt});var t2e=f((fbn,e2e)=>{"use strict";var Mu=B("node:assert"),{pipeline:ZPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:hZ,RequestAbortedError:zke,SocketError:JT,InformationalError:gZ}=tn(),{kUrl:B_,kReset:y_,kClient:Cb,kRunning:b_,kPending:$Pt,kQueue:zm,kPendingIdx:fZ,kRunningIdx:cd,kError:ld,kSocket:oo,kStrictContentLength:e_t,kOnError:pZ,kMaxConcurrentStreams:$ke,kHTTP2Session:ud,kResume:jm,kSize:t_t,kHTTPContext:r_t}=ps(),Jf=Symbol("open streams"),jke,Kke=!1,Q_;try{Q_=B("node:http2")}catch{Q_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:n_t,HTTP2_HEADER_METHOD:s_t,HTTP2_HEADER_PATH:i_t,HTTP2_HEADER_SCHEME:o_t,HTTP2_HEADER_CONTENT_LENGTH:a_t,HTTP2_HEADER_EXPECT:A_t,HTTP2_HEADER_STATUS:c_t}}=Q_;function u_t(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 l_t(t,e){t[oo]=e,Kke||(Kke=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Q_.connect(t[B_],{createConnection:()=>e,peerMaxConcurrentStreams:t[$ke]});r[Jf]=0,r[Cb]=t,r[oo]=e,wr.addListener(r,"error",h_t),wr.addListener(r,"frameError",g_t),wr.addListener(r,"end",f_t),wr.addListener(r,"goaway",p_t),wr.addListener(r,"close",function(){let{[Cb]:s}=this,{[oo]:i}=s,o=this[oo][ld]||this[ld]||new JT("closed",wr.getSocketInfo(i));if(s[ud]=null,s.destroyed){Mu(s[$Pt]===0);let a=s[zm].splice(s[cd]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[ud]=r,e[ud]=r,wr.addListener(e,"error",function(s){Mu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ld]=s,this[Cb][pZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new JT("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ld]||new JT("closed",wr.getSocketInfo(this));t[oo]=null,this[ud]!=null&&this[ud].destroy(s),t[fZ]=t[cd],Mu(t[b_]===0),t.emit("disconnect",t[B_],[t],s),t[jm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return E_t(t,...s)},resume(){d_t(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function d_t(t){let e=t[oo];e?.destroyed===!1&&(t[t_t]===0&&t[$ke]===0?(e.unref(),t[ud].unref()):(e.ref(),t[ud].ref()))}function h_t(t){Mu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oo][ld]=t,this[Cb][pZ](t)}function g_t(t,e,r){if(r===0){let n=new gZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[oo][ld]=n,this[Cb][pZ](n)}}function f_t(){let t=new JT("other side closed",wr.getSocketInfo(this[oo]));this.destroy(t),wr.destroy(this[oo],t)}function p_t(t){let e=this[ld]||new JT(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[Cb];if(r[oo]=null,r[r_t]=null,this[ud]!=null&&(this[ud].destroy(e),this[ud]=null),wr.destroy(this[oo],e),r[cd]<r[zm].length){let n=r[zm][r[cd]];r[zm][r[cd]++]=null,wr.errorRequest(r,n,e),r[fZ]=r[cd]}Mu(r[b_]===0),r.emit("disconnect",r[B_],[r],e),r[jm]()}function m_t(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function E_t(t,e){let r=t[ud],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[B_];l[n_t]=i||`${h}${g?`:${g}`:""}`,l[s_t]=n;let p=w=>{e.aborted||e.completed||(w=w||new zke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[zm][t[cd]++]=null,t[jm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}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[Jf],t[zm][t[cd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Jf],t[zm][t[cd]++]=null}),d.once("close",()=>{r[Jf]-=1,r[Jf]===0&&r.unref()}),!0;l[i_t]=s,l[o_t]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){jke??=fb().extractBody;let[w,H]=jke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),m_t(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[e_t])return wr.errorRequest(t,e,new hZ),!1;process.emitWarning(new hZ)}m!=null&&(Mu(u,"no body must not have content length"),l[a_t]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[A_t]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[Y_t]=A??3e5,this[G_t]=s??3e5,this[J_t]=I??!0,this[V_t]=w,this[IZ]=z,this[Xm]=null,this[X_t]=W>-1?W:-1,this[$_t]=oe??100,this[fi]=null,this[dd]=[],this[Wf]=0,this[hd]=0,this[jT]=he=>QZ(this,he),this[Z_t]=he=>h2e(this,he)}get pipelining(){return this[R_]}set pipelining(e){this[R_]=e,this[jT](!0)}get[ZT](){return this[dd].length-this[hd]}get[XT](){return this[hd]-this[Wf]}get[KT](){return this[dd].length-this[Wf]}get[L_t](){return!!this[fi]&&!this[Bb]&&!this[fi].destroyed}get[CZ](){return!!(this[fi]?.busy(null)||this[KT]>=(d2e(this)||1)||this[ZT]>0)}[v_t](e){g2e(this),this.once("connect",e)}[K_t](e,r){let n=e.origin||this[Nh].origin,s=new D_t(n,e,r);return this[dd].push(s),this[uB]||(cB.bodyLength(s.body)==null&&cB.isIterable(s.body)?(this[uB]=1,queueMicrotask(()=>QZ(this))):this[jT](!0)),this[uB]&&this[Zm]!==2&&this[CZ]&&(this[Zm]=2),this[Zm]<2}async[z_t](){return new Promise(e=>{this[KT]?this[Xm]=e:e(null)})}async[j_t](e){return new Promise(r=>{let n=this[dd].splice(this[hd]);for(let i=0;i<n.length;i++){let o=n[i];cB.errorRequest(this,o,e)}let s=()=>{this[Xm]&&(this[Xm](),this[Xm]=null),r(null)};this[fi]?(this[fi].destroy(e,s),this[fi]=null):queueMicrotask(s),this[jT]()})}},rOt=S_();function h2e(t,e){if(t[XT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Vf(t[hd]===t[Wf]);let r=t[dd].splice(t[Wf]);for(let n=0;n<r.length;n++){let s=r[n];cB.errorRequest(t,s,e)}Vf(t[KT]===0)}}async function g2e(t){Vf(!t[Bb]),Vf(!t[fi]);let{host:e,hostname:r,protocol:n,port:s}=t[Nh];if(r[0]==="["){let i=r.indexOf("]");Vf(i!==-1);let o=r.substring(1,i);Vf(l2e.isIP(o)),r=o}t[Bb]=!0,Ib.beforeConnect.hasSubscribers&&Ib.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT]});try{let i=await new Promise((o,a)=>{t[WT]({host:e,hostname:r,protocol:n,port:s,servername:t[Km],localAddress:t[zT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){cB.destroy(i.on("error",c2e),new k_t);return}Vf(i);try{t[fi]=i.alpnProtocol==="h2"?await tOt(t,i):await eOt(t,i)}catch(o){throw i.destroy().on("error",c2e),o}t[Bb]=!1,i[W_t]=0,i[IZ]=t[IZ],i[M_t]=t,i[P_t]=null,Ib.connected.hasSubscribers&&Ib.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT],socket:i}),t.emit("connect",t[Nh],[t])}catch(i){if(t.destroyed)return;if(t[Bb]=!1,Ib.connectError.hasSubscribers&&Ib.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Vf(t[XT]===0);t[ZT]>0&&t[dd][t[hd]].servername===t[Km];){let o=t[dd][t[hd]++];cB.errorRequest(t,o,i)}else h2e(t,i);t.emit("connectionError",t[Nh],[t],i)}t[jT]()}function u2e(t){t[Zm]=0,t.emit("drain",t[Nh],[t])}function QZ(t,e){t[uB]!==2&&(t[uB]=2,nOt(t,e),t[uB]=0,t[Wf]>256&&(t[dd].splice(0,t[Wf]),t[hd]-=t[Wf],t[Wf]=0))}function nOt(t,e){for(;;){if(t.destroyed){Vf(t[ZT]===0);return}if(t[Xm]&&!t[KT]){t[Xm](),t[Xm]=null;return}if(t[fi]&&t[fi].resume(),t[CZ])t[Zm]=2;else if(t[Zm]===2){e?(t[Zm]=1,queueMicrotask(()=>u2e(t))):u2e(t);continue}if(t[ZT]===0||t[XT]>=(d2e(t)||1))return;let r=t[dd][t[hd]];if(t[Nh].protocol==="https:"&&t[Km]!==r.servername){if(t[XT]>0)return;t[Km]=r.servername,t[fi]?.destroy(new T_t("servername changed"),()=>{t[fi]=null,QZ(t)})}if(t[Bb])return;if(!t[fi]){g2e(t);return}if(t[fi].destroyed||t[fi].busy(r))return;!r.aborted&&t[fi].write(r)?t[hd]++:t[dd].splice(t[hd],1)}}f2e.exports=BZ});var yZ=f((Ibn,p2e)=>{"use strict";var D_=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)}};p2e.exports=class{constructor(){this.head=this.tail=new D_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new D_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var E2e=f((Bbn,m2e)=>{var{kFree:sOt,kConnected:iOt,kPending:oOt,kQueued:aOt,kRunning:AOt,kSize:cOt}=ps(),lB=Symbol("pool"),bZ=class{constructor(e){this[lB]=e}get connected(){return this[lB][iOt]}get free(){return this[lB][sOt]}get pending(){return this[lB][oOt]}get queued(){return this[lB][aOt]}get running(){return this[lB][AOt]}get size(){return this[lB][cOt]}};m2e.exports=bZ});var xZ=f((Qbn,R2e)=>{"use strict";var uOt=ob(),lOt=yZ(),{kConnected:wZ,kSize:C2e,kRunning:I2e,kPending:B2e,kQueued:$T,kBusy:dOt,kFree:hOt,kUrl:gOt,kClose:fOt,kDestroy:pOt,kDispatch:mOt}=ps(),EOt=E2e(),wA=Symbol("clients"),Ha=Symbol("needDrain"),e1=Symbol("queue"),NZ=Symbol("closed resolve"),SZ=Symbol("onDrain"),Q2e=Symbol("onConnect"),y2e=Symbol("onDisconnect"),b2e=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
`,"latin1"),r!==null&&n!==r){if(s[e4])throw new Cg;process.emitWarning(new Cg)}e[As].timeout&&e[As].timeoutType===Om&&e[As].timeout.refresh&&e[As].timeout.refresh(),s[$d]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[eh]=!1,e&&(ze(s[On]<=1,"pipeline should only contain this request"),n(e))}};rue.exports=Qtt});var lue=E((Bmr,uue)=>{"use strict";var pa=B("node:assert"),{pipeline:Dtt}=B("node:stream"),Dt=Qt(),{RequestContentLengthMismatchError:n4,RequestAbortedError:nue,SocketError:iy,InformationalError:i4}=$t(),{kUrl:LR,kReset:PR,kClient:Hm,kRunning:OR,kPending:Rtt,kQueue:th,kPendingIdx:o4,kRunningIdx:wA,kError:NA,kSocket:an,kStrictContentLength:Ttt,kOnError:a4,kMaxConcurrentStreams:cue,kHTTP2Session:SA,kResume:rh,kSize:xtt,kHTTPContext:ktt}=Hr(),Rl=Symbol("open streams"),iue,oue=!1,_R;try{_R=B("node:http2")}catch{_R={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Ftt,HTTP2_HEADER_METHOD:Mtt,HTTP2_HEADER_PATH:Utt,HTTP2_HEADER_SCHEME:vtt,HTTP2_HEADER_CONTENT_LENGTH:Ltt,HTTP2_HEADER_EXPECT:_tt,HTTP2_HEADER_STATUS:Ptt}}=_R;function Ott(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 Htt(t,e){t[an]=e,oue||(oue=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=_R.connect(t[LR],{createConnection:()=>e,peerMaxConcurrentStreams:t[cue]});r[Rl]=0,r[Hm]=t,r[an]=e,Dt.addListener(r,"error",Ytt),Dt.addListener(r,"frameError",qtt),Dt.addListener(r,"end",Vtt),Dt.addListener(r,"goaway",Jtt),Dt.addListener(r,"close",function(){let{[Hm]:n}=this,{[an]:i}=n,o=this[an][NA]||this[NA]||new iy("closed",Dt.getSocketInfo(i));if(n[SA]=null,n.destroyed){pa(n[Rtt]===0);let a=n[th].splice(n[wA]);for(let A=0;A<a.length;A++){let c=a[A];Dt.errorRequest(n,c,o)}}}),r.unref(),t[SA]=r,e[SA]=r,Dt.addListener(e,"error",function(n){pa(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[NA]=n,this[Hm][a4](n)}),Dt.addListener(e,"end",function(){Dt.destroy(this,new iy("other side closed",Dt.getSocketInfo(this)))}),Dt.addListener(e,"close",function(){let n=this[NA]||new iy("closed",Dt.getSocketInfo(this));t[an]=null,this[SA]!=null&&this[SA].destroy(n),t[o4]=t[wA],pa(t[OR]===0),t.emit("disconnect",t[LR],[t],n),t[rh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return ztt(t,...n)},resume(){Gtt(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Gtt(t){let e=t[an];e?.destroyed===!1&&(t[xtt]===0&&t[cue]===0?(e.unref(),t[SA].unref()):(e.ref(),t[SA].ref()))}function Ytt(t){pa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[an][NA]=t,this[Hm][a4](t)}function qtt(t,e,r){if(r===0){let s=new i4(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[an][NA]=s,this[Hm][a4](s)}}function Vtt(){let t=new iy("other side closed",Dt.getSocketInfo(this[an]));this.destroy(t),Dt.destroy(this[an],t)}function Jtt(t){let e=this[NA]||new iy(`HTTP/2: "GOAWAY" frame received with code ${t}`,Dt.getSocketInfo(this)),r=this[Hm];if(r[an]=null,r[ktt]=null,this[SA]!=null&&(this[SA].destroy(e),this[SA]=null),Dt.destroy(this[an],e),r[wA]<r[th].length){let s=r[th][r[wA]];r[th][r[wA]++]=null,Dt.errorRequest(r,s,e),r[o4]=r[wA]}pa(r[OR]===0),r.emit("disconnect",r[LR],[r],e),r[rh]()}function Wtt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function ztt(t,e){let r=t[SA],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Dt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let b=0;b<c.length;b+=2){let U=c[b+0],q=c[b+1];if(Array.isArray(q))for(let x=0;x<q.length;x++)l[U]?l[U]+=`,${q[x]}`:l[U]=q[x];else l[U]=q}let d,{hostname:h,port:f}=t[LR];l[Ftt]=i||`${h}${f?`:${f}`:""}`,l[Mtt]=s;let p=b=>{e.aborted||e.completed||(b=b||new nue,Dt.errorRequest(t,e,b),d!=null&&Dt.destroy(d,b),Dt.destroy(u,b),t[th][t[wA]++]=null,t[rh]())};try{e.onConnect(p)}catch(b){Dt.errorRequest(t,e,b)}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[Rl],t[th][t[wA]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Rl],t[th][t[wA]++]=null}),d.once("close",()=>{r[Rl]-=1,r[Rl]===0&&r.unref()}),!0;l[Utt]=n,l[vtt]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Dt.bodyLength(u);if(Dt.isFormDataLike(u)){iue??=Lm().extractBody;let[b,U]=iue(u);l["content-type"]=U,u=b.stream,m=b.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),Wtt(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[Ttt])return Dt.errorRequest(t,e,new n4),!1;process.emitWarning(new n4)}m!=null&&(pa(u,"no body must not have content length"),l[Ltt]=`${m}`),r.ref();let I=s==="GET"||s==="HEAD"||u===null;return a?(l[_tt]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[Irt]=A??3e5,this[Crt]=n??3e5,this[Brt]=I??!0,this[Qrt]=b,this[l4]=q,this[nh]=null,this[Nrt]=P>-1?P:-1,this[Rrt]=$??100,this[ys]=null,this[DA]=[],this[xl]=0,this[RA]=0,this[cy]=ae=>h4(this,ae),this[Drt]=ae=>yue(this,ae)}get pipelining(){return this[qR]}set pipelining(e){this[qR]=e,this[cy](!0)}get[dy](){return this[DA].length-this[RA]}get[ly](){return this[RA]-this[xl]}get[uy](){return this[DA].length-this[xl]}get[drt](){return!!this[ys]&&!this[Ym]&&!this[ys].destroyed}get[u4](){return!!(this[ys]?.busy(null)||this[uy]>=(Que(this)||1)||this[dy]>0)}[lrt](e){bue(this),this.once("connect",e)}[Srt](e,r){let s=e.origin||this[vc].origin,n=new irt(s,e,r);return this[DA].push(n),this[Bg]||(Ig.bodyLength(n.body)==null&&Ig.isIterable(n.body)?(this[Bg]=1,queueMicrotask(()=>h4(this))):this[cy](!0)),this[Bg]&&this[ih]!==2&&this[u4]&&(this[ih]=2),this[ih]<2}async[brt](){return new Promise(e=>{this[uy]?this[nh]=e:e(null)})}async[wrt](e){return new Promise(r=>{let s=this[DA].splice(this[RA]);for(let i=0;i<s.length;i++){let o=s[i];Ig.errorRequest(this,o,e)}let n=()=>{this[nh]&&(this[nh](),this[nh]=null),r(null)};this[ys]?(this[ys].destroy(e,n),this[ys]=null):queueMicrotask(n),this[cy]()})}},krt=YR();function yue(t,e){if(t[ly]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Tl(t[RA]===t[xl]);let r=t[DA].splice(t[xl]);for(let s=0;s<r.length;s++){let n=r[s];Ig.errorRequest(t,n,e)}Tl(t[uy]===0)}}async function bue(t){Tl(!t[Ym]),Tl(!t[ys]);let{host:e,hostname:r,protocol:s,port:n}=t[vc];if(r[0]==="["){let i=r.indexOf("]");Tl(i!==-1);let o=r.substring(1,i);Tl(Bue.isIP(o)),r=o}t[Ym]=!0,Gm.beforeConnect.hasSubscribers&&Gm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ys]?.version,servername:t[sh],localAddress:t[Ay]},connector:t[ay]});try{let i=await new Promise((o,a)=>{t[ay]({host:e,hostname:r,protocol:s,port:n,servername:t[sh],localAddress:t[Ay]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Ig.destroy(i.on("error",Cue),new Art);return}Tl(i);try{t[ys]=i.alpnProtocol==="h2"?await xrt(t,i):await Trt(t,i)}catch(o){throw i.destroy().on("error",Cue),o}t[Ym]=!1,i[yrt]=0,i[l4]=t[l4],i[urt]=t,i[frt]=null,Gm.connected.hasSubscribers&&Gm.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ys]?.version,servername:t[sh],localAddress:t[Ay]},connector:t[ay],socket:i}),t.emit("connect",t[vc],[t])}catch(i){if(t.destroyed)return;if(t[Ym]=!1,Gm.connectError.hasSubscribers&&Gm.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ys]?.version,servername:t[sh],localAddress:t[Ay]},connector:t[ay],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Tl(t[ly]===0);t[dy]>0&&t[DA][t[RA]].servername===t[sh];){let o=t[DA][t[RA]++];Ig.errorRequest(t,o,i)}else yue(t,i);t.emit("connectionError",t[vc],[t],i)}t[cy]()}function Iue(t){t[ih]=0,t.emit("drain",t[vc],[t])}function h4(t,e){t[Bg]!==2&&(t[Bg]=2,Frt(t,e),t[Bg]=0,t[xl]>256&&(t[DA].splice(0,t[xl]),t[RA]-=t[xl],t[xl]=0))}function Frt(t,e){for(;;){if(t.destroyed){Tl(t[dy]===0);return}if(t[nh]&&!t[uy]){t[nh](),t[nh]=null;return}if(t[ys]&&t[ys].resume(),t[u4])t[ih]=2;else if(t[ih]===2){e?(t[ih]=1,queueMicrotask(()=>Iue(t))):Iue(t);continue}if(t[dy]===0||t[ly]>=(Que(t)||1))return;let r=t[DA][t[RA]];if(t[vc].protocol==="https:"&&t[sh]!==r.servername){if(t[ly]>0)return;t[sh]=r.servername,t[ys]?.destroy(new art("servername changed"),()=>{t[ys]=null,h4(t)})}if(t[Ym])return;if(!t[ys]){bue(t);return}if(t[ys].destroyed||t[ys].busy(r))return;!r.aborted&&t[ys].write(r)?t[RA]++:t[DA].splice(t[RA],1)}}wue.exports=d4});var f4=E((Smr,Sue)=>{"use strict";var VR=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)}};Sue.exports=class{constructor(){this.head=this.tail=new VR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new VR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Due=E((Nmr,Nue)=>{var{kFree:Mrt,kConnected:Urt,kPending:vrt,kQueued:Lrt,kRunning:_rt,kSize:Prt}=Hr(),Qg=Symbol("pool"),g4=class{constructor(e){this[Qg]=e}get connected(){return this[Qg][Urt]}get free(){return this[Qg][Mrt]}get pending(){return this[Qg][vrt]}get queued(){return this[Qg][Lrt]}get running(){return this[Qg][_rt]}get size(){return this[Qg][Prt]}};Nue.exports=g4});var B4=E((Dmr,_ue)=>{"use strict";var Ort=Dm(),Hrt=f4(),{kConnected:p4,kSize:Rue,kRunning:Tue,kPending:xue,kQueued:hy,kBusy:Grt,kFree:Yrt,kUrl:qrt,kClose:Vrt,kDestroy:Jrt,kDispatch:Wrt}=Hr(),zrt=Due(),Pi=Symbol("clients"),di=Symbol("needDrain"),fy=Symbol("queue"),E4=Symbol("closed resolve"),m4=Symbol("onDrain"),kue=Symbol("onConnect"),Fue=Symbol("onDisconnect"),Mue=Symbol("onCo Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};MMe.exports=x$});var W_=f((Kbn,_Me)=>{"use strict";var LMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Yqt}=tn(),Jqt=bb();PMe()===void 0&&UMe(new Jqt);function UMe(t){if(!t||typeof t.dispatch!="function")throw new Yqt("Argument agent must implement Agent");Object.defineProperty(globalThis,LMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function PMe(){return globalThis[LMe]}_Me.exports={setGlobalDispatcher:UMe,getGlobalDispatcher:PMe}});var z_=f((Zbn,OMe)=>{"use strict";OMe.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 qMe=f(($bn,HMe)=>{"use strict";var Vqt=N_();HMe.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 Vqt(r,o,s,i);return r(a,A)}}});var YMe=f((ewn,GMe)=>{"use strict";var Wqt=U_();GMe.exports=t=>e=>function(n,s){return e(n,new Wqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var VMe=f((twn,JMe)=>{"use strict";var zqt=mr(),{InvalidArgumentError:jqt,RequestAbortedError:Kqt}=tn(),Xqt=z_(),T$=class extends Xqt{#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 jqt("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=zqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Kqt(`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 Zqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new T$({maxSize:i},s);return e(n,o)}}JMe.exports=Zqt});var jMe=f((rwn,zMe)=>{"use strict";var{isIP:$qt}=B("node:net"),{lookup:eGt}=B("node:dns"),tGt=z_(),{InvalidArgumentError:Mb,InformationalError:rGt}=tn(),WMe=Math.pow(2,31)-1,k$=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 rGt("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){eGt(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===WMe?(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===WMe?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 F$(this,e,r)}},F$=class extends tGt{#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":RUe(i)&&(r[s]=i);break;case"id":DUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&RUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&DUe(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}}};xUe.exports={EventSourceStream:Eee}});var _Ue=f((Fwn,PUe)=>{"use strict";var{pipeline:uYt}=B("node:stream"),{fetching:lYt}=h1(),{makeRequest:dYt}=Ub(),{webidl:Zf}=Oo(),{EventSourceStream:hYt}=TUe(),{parseMIMEType:gYt}=yA(),{createFastMessageEvent:fYt}=Gb(),{isNetworkError:kUe}=l1(),{delay:pYt}=pee(),{kEnumerableProperty:NB}=mr(),{environmentSettingsObject:FUe}=Qc(),MUe=!1,vUe=3e3,w1=0,LUe=1,N1=2,mYt="anonymous",EYt="use-credentials",zb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=w1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Zf.util.markAsUncloneable(this);let n="EventSource constructor";Zf.argumentLengthCheck(arguments,1,n),MUe||(MUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Zf.converters.USVString(e,n,"url"),r=Zf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:vUe};let s=FUe,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=mYt;r.withCredentials&&(o=EYt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=FUe.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=dYt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===N1)return;this.#r=w1;let e={request:this.#s,dispatcher:this.#a},r=n=>{kUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kUe(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?gYt(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=LUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new hYt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(fYt(A.type,A.options))}});uYt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=lYt(e)}async#c(){this.#r!==N1&&(this.#r=w1,this.dispatchEvent(new Event("error")),await pYt(this.#o.reconnectionTime),this.#r===w1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Zf.brandCheck(this,t),this.#r!==N1&&(this.#r=N1,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}},UUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:w1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:LUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:N1,writable:!1}};Object.defineProperties(zb,UUe);Object.defineProperties(zb.prototype,UUe);Object.defineProperties(zb.prototype,{close:NB,onerror:NB,onmessage:NB,onopen:NB,readyState:NB,url:NB,withCredentials:NB});Zf.converters.EventSourceInitDict=Zf.dictionaryConverter([{key:"withCredentials",converter:Zf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Zf.converters.any}]);PUe.exports={EventSource:zb,defaultReconnectionTime:vUe}});var GUe=f((Mwn,Mt)=>{"use strict";var CYt=Qb(),OUe=TT(),IYt=yb(),BYt=U2e(),QYt=bb(),yYt=GZ(),bYt=aFe(),wYt=hFe(),HUe=tn(),LO=mr(),{InvalidArgumentError:vO}=HUe,jb=$Fe(),NYt=FT(),SYt=b$(),RYt=vMe(),DYt=S$(),xYt=l$(),TYt=U_(),{getGlobalDispatcher:qUe,setGlobalDispatcher:kYt}=W_(),FYt=z_(),MYt=N_(),vYt=S_();Object.assign(OUe.prototype,jb);Mt.exports.Dispatcher=OUe;Mt.exports.Client=CYt;Mt.exports.Pool=IYt;Mt.exports.BalancedPool=BYt;Mt.exports.Agent=QYt;Mt.exports.ProxyAgent=yYt;Mt.exports.EnvHttpProxyAgent=bYt;Mt.expo Line truncated
\r
`),S6t=/\r\n/g,R6t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function ew(t){qPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=HPe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=HPe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new w6t(N6t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}b6t(ew,qPe);ew.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};ew.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};ew.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};ew.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(S6t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=R6t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};GPe.exports=ew});var ate=f((NNn,VPe)=>{"use strict";var ote=B("node:stream").Writable,D6t=B("node:util").inherits,x6t=ste(),JPe=_Pe(),T6t=YPe(),k6t=45,F6t=Buffer.from("-"),M6t=Buffer.from(`\r
`),v6t=function(){};function Ed(t){if(!(this instanceof Ed))return new Ed(t);if(ote.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new T6t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}D6t(Ed,ote);Ed.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else ote.prototype.emit.apply(this,arguments)};Ed.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new JPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(M6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Ed.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ed.prototype.setBoundary=function(t){let e=this;this._bparser=new x6t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};Ed.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",v6t),this._part.resume())};Ed.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===k6t)++o,++this._dashes;else{this._dashes&&(s=F6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new JPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ed.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};VPe.exports=Ed});var jO=f((Ate,jPe)=>{"use strict";var WPe=new TextDecoder("utf-8"),zPe=new Map([["utf-8",WPe],["utf8",WPe]]);function L6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return v1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return v1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return v1.utf16le;case"base64":return v1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return v1.other.bind(t)}}var v1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),zPe.has(Ate.toString()))try{return zPe.get(Ate).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function U6t(t,e,r){return t&&L6t(r)(t,e)}jPe.exports=U6t});var ute=f((SNn,e_e)=>{"use strict";var KO=jO(),KPe=/%[a-fA-F0-9][a-fA-F0-9]/g,P6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function U9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(y9t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function P9t(){return"allowed"}function _9t(){return"success"}function O9t(){return"success"}function H9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function q9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&Ete(t.origin)&&!Ete(P1(t))&&(e=null);break;case"same-origin":tH(t,P1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function G9t(t){return N9t.now()}function Y9t(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 J9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V9t(t){return{referrerPolicy:t.referrerPolicy}}function W9t(t){let e=t.referrerPolicy;iw(e);let r=null;if(t.referrer==="client"){let a=w9t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=pte(r),s=pte(r,!0);n.toString().length>4096&&(n=s);let i=tH(t,n),o=U1(n)&&!U1(t.url);switch(e){case"origin":return s??pte(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=P1(t);return tH(n,a)?n:U1(n)&&!U1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function pte(t,e){return iw(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function U1(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 z9t(t,e){if(eH===void 0)return!0;let r=S_e(e);if(r==="no metadata"||r.length===0)return!0;let n=K9t(r),s=X9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=eH.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)),Z9t(A,a))return!0}return!1}var j9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function S_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=j9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();y_e.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function K9t(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 X9t(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 Z9t(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 $9t(t){}function tH(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function eJt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function tJt(t){return t.controller.state==="aborted"}function rJt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var Cte={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(Cte,null);function nJt(t){return Cte[t.toLowerCase()]??t}function sJt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return iw(typeof e=="string"),e}var iJt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oJt(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,aJt(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,iJt),Object.setPrototypeOf({},s)}function aJt(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function Ite(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&M_e(t[n]);n++);if(r)for(;s>0&&M_e(t[s]);s--);return t.slice(n,s+1)}function v_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function NJt(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&v_e(t[n]);n++);if(r)for(;s>0&&v_e(t[s]);s--);return t.slice(n,s+1)}__e.exports={dataURLProcessor:QJt,URLSerializer:L_e,collectASequenceOfCodePoints:sH,collectASequenceOfCodePointsFast:ow,stringPercentDecode:U_e,parseMIMEType:Bte,collectAnHTTPQuotedString:P_e,serializeAMimeType:wJt}});var iH=f((_Nn,Y_e)=>{"use strict";var{Blob:q_e,File:O_e}=B("buffer"),{types:Qte}=B("util"),{kState:xc}=np(),{isBlobLike:G_e}=Hu(),{webidl:fn}=Ya(),{parseMIMEType:SJt,serializeAMimeType:RJt}=Cd(),{kEnumerableProperty:H_e}=Gr(),DJt=new TextEncoder,_1=class t extends q_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=SJt(i),i==="failure"){i="";break e}i=RJt(i).toLowerCase()}o=n.lastModified}super(xJt(e,n),{type:i}),this[xc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get type(){return fn.brandCheck(this,t),this[xc].type}},yte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[xc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[xc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[xc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[xc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[xc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[xc].blobLike.size}get type(){return fn.brandCheck(this,t),this[xc].blobLike.type}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(_1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:H_e,lastModified:H_e});fn.converters.Blob=fn.interfaceConverter(q_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(G_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Qte.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function xJt(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=TJt(s)),r.push(DJt.encode(s))}else Qte.isAnyArrayBuffer(n)||Qte.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):G_e(n)&&r.push(n);return r}function TJt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function kJt(t){return O_e&&t instanceof O_e||t instanceof _1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}Y_e.exports={File:_1,FileLike:yte,isFileLike:kJt}});var aH=f((ONn,j_e)=>{"use strict";var{isBlobLike:oH,toUSVString:FJt,makeIterator:bte}=Hu(),{kState:aa}=np(),{File:z_e,FileLike:J_e,isFileLike:MJt}=iH(),{webidl:wn}=Ya(),{Blob:vJt,File:wte}=B("buffer"),V_e=wte??z_e,aw=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[aa]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!oH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=oH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=W_e(e,r,n);this[aa].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[aa]=this[aa].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[aa].findIndex(n=>n.name===e);return r===-1?null:this[aa][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[aa].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[aa].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!oH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=oH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?FJt(n):void 0;let s=W_e(e,r,n),i=this[aa].findIndex(o=>o.name===e);i!==-1?this[aa]=[...this[aa].slice(0,i),s,...this[aa].slice(i+1).filter(o=>o.name!==e)]:this[aa].push(s)}entries(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};aw.prototype[Symbol.iterator]=aw.prototype.entries;Object.defineProperties(aw.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function W_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(MJt(e)||(e=e instanceof vJt?new V_e([e],"blob",{type:e.type}):new J_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=wte&&e instanceof wte||e instanceof z_e?new V_e([e],r,n):new J_e(e,r,n)}return{name:t,value:e}}j_e.exports={FormData:aw}});var O1=f((HNn,sOe)=>{"use strict";var LJt=h_e(),Aw=Gr(),{ReadableStreamFrom:UJt,isBlobLike:K_e,isReadableStreamLike:PJt,readableStreamClose:_Jt,createDeferredPromise:OJt,fullyReadBody:HJt}=Hu(),{FormData:X_e}=aH(),{kState:ip}=np(),{webidl:Nte}=Ya(),{DOMException:eOe,structuredClone:qJt}=gE(),{Blob:GJt,File:YJt}=B("buffer"),{kBodyUsed:JJt}=ts(),Ste=B("assert"),{isErrored:VJt}=Gr(),{isUint8Array:tOe,isArrayBuffer:WJt}=B("util/types"),{File:zJt}=iH(),{parseMIMEType:jJt,serializeAMimeType:KJt}=Cd(),Rte;try{let t=B("node:crypto");Rte=e=>t.randomInt(0,e)}catch{Rte=t=>Math.floor(Math.random(t))}var sp=globalThis.ReadableStream,Z_e=YJt??zJt,AH=new TextEncoder,XJt=new TextDecoder;function rOe(t,e=!1){sp||(sp=B("stream/web").ReadableStream);let r=null;t instanceof sp?r=t:K_e(t)?r=t.stream():r=new sp({async pull(A){A.enqueue(typeof s=="string"?AH.encode(s):s),queueMicrotask(()=>_Jt(A))},start(){},type:void 0}),Ste(PJt(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(WJt(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(Aw.isFormDataLike(t)){let A=`----formdata-undici-0${`${Rte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
`.trim())}};qde.exports=BH});var cT=E((r0r,jde)=>{"use strict";var Jde=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Iit}=$t(),Bit=Jm();zde()===void 0&&Wde(new Bit);function Wde(t){if(!t||typeof t.dispatch!="function")throw new Iit("Argument agent must implement Agent");Object.defineProperty(globalThis,Jde,{value:t,writable:!0,enumerable:!1,configurable:!1})}function zde(){return globalThis[Jde]}jde.exports={setGlobalDispatcher:Wde,getGlobalDispatcher:zde}});var uT=E((n0r,Kde)=>{"use strict";Kde.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 Xde=E((i0r,Zde)=>{"use strict";var Qit=GR();Zde.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 Qit(r,o,n,i);return r(a,A)}}});var ehe=E((o0r,$de)=>{"use strict";var yit=$R();$de.exports=t=>e=>function(s,n){return e(s,new yit({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var rhe=E((a0r,the)=>{"use strict";var bit=Qt(),{InvalidArgumentError:wit,RequestAbortedError:Sit}=$t(),Nit=uT(),QH=class extends Nit{#e=1024*1024;#t=null;#r=!1;#s=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new wit("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.#i=e}onHeaders(e,r,s,n){let o=bit.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Sit(`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.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Dit({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new QH({maxSize:i},n);return e(s,o)}}the.exports=Dit});var ihe=E((A0r,nhe)=>{"use strict";var{isIP:Rit}=B("node:net"),{lookup:Tit}=B("node:dns"),xit=uT(),{InvalidArgumentError:r0,InformationalError:kit}=$t(),she=Math.pow(2,31)-1,yH=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.#n}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 kit("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){Tit(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())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===she?(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===she?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 bH(this,e,r)}},bH=class extends xit{#e=null;#t=null;#r=null;#s=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=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.#n,this.#t,(r,s)=>{if(r) Line truncated
${i}`;break;case"retry":_ge(i)&&(r[n]=i);break;case"id":Pge(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&_ge(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Pge(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}}};Oge.exports={EventSourceStream:cG}});var jge=E((P0r,zge)=>{"use strict";var{pipeline:Oct}=B("node:stream"),{fetching:Hct}=Ny(),{makeRequest:Gct}=i0(),{webidl:vl}=Dn(),{EventSourceStream:Yct}=Hge(),{parseMIMEType:qct}=Li(),{createFastMessageEvent:Vct}=l0(),{isNetworkError:Gge}=wy(),{delay:Jct}=aG(),{kEnumerableProperty:Lg}=Qt(),{environmentSettingsObject:Yge}=go(),qge=!1,Vge=3e3,Py=0,Jge=1,Oy=2,Wct="anonymous",zct="use-credentials",p0=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=Py;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),vl.util.markAsUncloneable(this);let s="EventSource constructor";vl.argumentLengthCheck(arguments,1,s),qge||(qge=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=vl.converters.USVString(e,s,"url"),r=vl.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Vge};let n=Yge,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=Wct;r.withCredentials&&(o=zct,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Yge.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=Gct(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===Oy)return;this.#s=Py;let e={request:this.#n,dispatcher:this.#a},r=s=>{Gge(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Gge(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?qct(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=Jge,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new Yct({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Vct(A.type,A.options))}});Oct(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Hct(e)}async#c(){this.#s!==Oy&&(this.#s=Py,this.dispatchEvent(new Event("error")),await Jct(this.#o.reconnectionTime),this.#s===Py&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){vl.brandCheck(this,t),this.#s!==Oy&&(this.#s=Oy,this.#i.abort(),this.#n=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}},Wge={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Py,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Jge,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Oy,writable:!1}};Object.defineProperties(p0,Wge);Object.defineProperties(p0.prototype,Wge);Object.defineProperties(p0.prototype,{close:Lg,onerror:Lg,onmessage:Lg,onopen:Lg,readyState:Lg,url:Lg,withCredentials:Lg});vl.converters.EventSourceInitDict=vl.dictionaryConverter([{key:"withCredentials",converter:vl.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:vl.converters.any}]);zge.exports={EventSource:p0,defaultReconnectionTime:Vge}});var $ge=E((O0r,Xe)=>{"use strict";var jct=qm(),Kge=VQ(),Kct=Vm(),Zct=Wue(),Xct=Jm(),$ct=M4(),eut=Ele(),tut=yle(),Zge=$t(),XT=Qt(),{InvalidArgumentError:ZT}=Zge,E0=cde(),rut=WQ(),sut=gH(),nut=Vde(),iut=mH(),out=rH(),aut=$R(),{getGlobalDispatcher:Xge,setGlobalDispatcher:Aut}=cT(),cut=uT(),uut=GR(),lut=YR();Object.assign(Kge.prototype,E0);Xe.exports.Dispatcher=Kge;Xe.exports.Client=jct;Xe.exports.Pool=Kct;Xe.exports.BalancedPool=Zct;Xe.exports.Agent=Xct;Xe.exports.ProxyAgent=$ct;Xe.exports.EnvHttpProxyAgent=eut;Xe.export Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Iht(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(nht.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Bht(){return"allowed"}function Qht(){return"success"}function yht(){return"success"}function bht(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function wht(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&&f6(t.origin)&&!f6(tb(t))&&(e=null);break;case"same-origin":Tx(t,tb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function R0(t,e){return t}function Sht(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:R0(t.domainLookupStartTime,r),domainLookupEndTime:R0(t.domainLookupEndTime,r),connectionStartTime:R0(t.connectionStartTime,r),connectionEndTime:R0(t.connectionEndTime,r),secureConnectionStartTime:R0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Nht(t){return R0(cht.now(),t)}function Dht(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 cme(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Rht(t){return{referrerPolicy:t.referrerPolicy}}function Tht(t){let e=t.referrerPolicy;Gg(e);let r=null;if(t.referrer==="client"){let a=sme();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=h6(r),n=h6(r,!0);s.toString().length>4096&&(s=n);let i=Tx(t,s),o=eb(s)&&!eb(t.url);switch(e){case"origin":return n??h6(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=tb(t);return Tx(s,a)?s:eb(s)&&!eb(a)?"no-referrer":n}default:return o?"no-referrer":n}}function h6(t,e){return Gg(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 eb(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 xht(t,e){if(Rx===void 0)return!0;let r=ume(e);if(r==="no metadata"||r.length===0)return!0;let s=Fht(r),n=Mht(r,s);for(let i of n){let o=i.algo,a=i.hash,A=Rx.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)),Uht(A,a))return!0}return!1}var kht=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function ume(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=kht.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();ime.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Fht(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 Mht(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 Uht(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 vht(t){}function Tx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Lht(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function _ht(t){return t.controller.state==="aborted"}function Pht(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Oht(t){return dht[t.toLowerCase()]??t}function Hht(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Gg(typeof e=="string"),e}var Ght=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function lme(t,e,r=0,s=1){class n{ Line truncated
`);function mft(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Cft(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 Ift(t,e){kx(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&&Fx(t,pft,i)||i.position===t.length-4&&Fx(t,Eft,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Bft(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 h;c!==null?(u??="text/plain",mft(u)||(u=""),h=new fft([d],c,{type:u})):h=cft(Buffer.from(d)),kx(yme(A)),kx(typeof h=="string"&&yme(h)||lft(h)),n.push(dft(A,h,c))}}function Bft(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=x0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=B6(o,!0,!0,a=>a===9||a===32),!uft.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,x0(a=>a===32||a===9,t,e),Aft(o)){case"content-disposition":{if(r=s=null,!Fx(t,gft,e)||(e.position+=17,r=Sme(t,e),r===null))return"failure";if(Fx(t,wme,e)){let a=e.position+wme.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=Sme(t,e),s===null))return"failure"}break}case"content-type":{let a=x0(A=>A!==10&&A!==13,t,e);a=B6(a,!1,!0,A=>A===9||A===32),n=bme(a);break}case"content-transfer-encoding":{let a=x0(A=>A!==10&&A!==13,t,e);a=B6(a,!1,!0,A=>A===9||A===32),i=bme(a);break}default:x0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Sme(t,e){kx(t[e.position-1]===34);let r=x0(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 x0(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function B6(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 Fx(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}Nme.exports={multipartFormDataParser:Ift,validateBoundary:Cft}});var M0=E((jCr,_me)=>{"use strict";var nb=yt(),{ReadableStreamFrom:Qft,isBlobLike:Rme,isReadableStreamLike:yft,readableStreamClose:bft,createDeferredPromise:wft,fullyReadBody:Sft,extractMimeType:Nft,utf8DecodeBytes:kme}=bo(),{FormData:Tme}=sb(),{kState:F0}=Ih(),{webidl:Dft}=Rn(),{Blob:Rft}=B("node:buffer"),Q6=B("node:assert"),{isErrored:Fme,isDisturbed:Tft}=B("node:stream"),{isArrayBuffer:xft}=B("node:util/types"),{serializeAMimeType:kft}=Yi(),{multipartFormDataParser:Fft}=Dme(),y6;try{let t=B("node:crypto");y6=e=>t.randomInt(0,e)}catch{y6=t=>Math.floor(Math.random(t))}var Mx=new TextEncoder;function Mft(){}var Mme=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Ume;Mme&&(Ume=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Tft(e)&&!Fme(e)&&e.cancel("Response object has been garbage collected").catch(Mft)}));function vme(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Rme(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?Mx.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>bft(A))},start(){},type:"bytes"}),Q6(yft(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(xft(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(nb.isFormDataLike(t)){let A=`----formdata-undici-0${`${y6(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=AH.encode(c+`; name="${u(l(C))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[C,m]of t)if(typeof m=="string"){let I=Mx.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=AH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=Mx.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=AH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(K_e(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(Aw.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof sp?t:UJt(t)}if((typeof s=="string"||Aw.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new sp({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):VJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function ZJt(t,e=!1){return sp||(sp=B("stream/web").ReadableStream),t instanceof sp&&(Ste(!Aw.isDisturbed(t),"The body has already been consumed."),Ste(!t.locked,"The stream is locked.")),rOe(t,e)}function $Jt(t){let[e,r]=t.stream.tee(),n=qJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*$_e(t){if(t)if(tOe(t))yield t;else{let e=t.stream;if(Aw.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[JJt]=!0,yield*e}}function Dte(t){if(t.aborted)throw new eOe("The operation was aborted.","AbortError")}function eVt(t){return{blob(){return cH(this,r=>{let n=sVt(this);return n==="failure"?n="":n&&(n=KJt(n)),new GJt([r],{type:n})},t)},arrayBuffer(){return cH(this,r=>new Uint8Array(r).buffer,t)},text(){return cH(this,nOe,t)},json(){return cH(this,nVt,t)},async formData(){Nte.brandCheck(this,t),Dte(this[ip]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new X_e,i;try{i=new LJt({headers:n,preservePath:!0})}catch(a){throw new eOe(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new Z_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new Z_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of $_e(this[ip].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of $_e(this[ip].body)){if(!tOe(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new X_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),Dte(this[ip]),Nte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function tVt(t){Object.assign(t.prototype,eVt(t))}async function cH(t,e,r){if(Nte.brandCheck(t,r),Dte(t[ip]),rVt(t[ip].body))throw new TypeError("Body is unusable");let n=OJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ip].body==null?(i(new Uint8Array),n.promise):(await HJt(t[ip].body,i,s),n.promise)}function rVt(t){return t!=null&&(t.stream.locked||Aw.isDisturbed(t.stream))}function nOe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),XJt.decode(t))}function nVt(t){return JSON.parse(nOe(t))}function sVt(t){let{headersList:e}=t[ip],r=e.get("content-type");return r===null?"failure":jJt(r)}sOe.exports={extractBody:rOe,safelyExtractBody:ZJt,cloneBody:$Jt,mixinBody:tVt}});var AOe=f((qNn,aOe)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:iVt}=Un(),op=B("assert"),{kHTTP2BuildRequest:oVt,kHTTP2CopyHeaders:aVt,kHTTP1BuildRequest:AVt}=ts(),xA=Gr(),iOe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,oOe=/[^\t\x20-\x7e\x80-\xff]/,cVt=/[^\u0021-\u00ff]/,Id=Symbol("handler"),Ti={},xte;try{let t=B("diagnostics_channel");Ti.create=t.channel("undici:request:create"),Ti.bodySent=t.channel("undici:request:bodySent"),Ti.headers=t.channel("undici:request:headers"),Ti.trailers=t.channel("undici:request:trailers"),Ti.error=t.channel("undici:request:error")}catch{Ti.create={hasSubscribers:!1},Ti.bodySent={hasSubscribers:!1},Ti.headers={hasSubscribers:!1},Ti.trailers={hasSubscribers:!1},Ti.error={hasSubscribers:!1}}var Tte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else xA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);xA.validateHandler(p,n,c),this.servername=xA.getServerName(this.host),this[Id]=p,Ti.create.hasSubscribers&&Ti.create.publish({request:this})}onBodySent(e){if(this[Id].onBodySent)try{return this[Id].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(Ti.bodySent.hasSubscribers&&Ti.bodySent.publish({request:this}),this[Id].onRequestSent)try{return this[Id].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(op(!this.aborted),op(!this.completed),this.error)e(this.error);else return this.abort=e,this[Id].onConnect(e)}onHeaders(e,r,n,s){op(!this.aborted),op(!this.completed),Ti.headers.hasSubscribers&&Ti.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Id].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){op(!this.aborted),op(!this.completed);try{return this[Id].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return op(!this.aborted),op(!this.completed),this[Id].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),op(!this.aborted),this.completed=!0,Ti.trailers.hasSubscribers&&Ti.trailers.publish({request:this,trailers:e});try{return this[Id].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),Ti.error.hasSubscribers&&Ti.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Id].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return H1(this,e,r),this}static[AVt](e,r,n){return new t(e,r,n)}static[oVt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)H1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];H1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[aVt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function FB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",oOe.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function H1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(oOe.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new iVt("expect header not supported");if(iOe.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${FB(e,r[s],n)}`:t.headers[e]=FB(e,r[s],n):t.headers+=FB(e,r[s]);else n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r)}}}aOe.exports=Tte});var uH=f((GNn,cOe)=>{"use strict";var uVt=B("events"),kte=class extends uVt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};cOe.exports=kte});var G1=f((YNn,uOe)=>{"use strict";var lVt=uH(),{ClientDestroyedError:Fte,ClientClosedError:dVt,InvalidArgumentError:cw}=Un(),{kDestroy:hVt,kClose:gVt,kDispatch:Mte,kInterceptors:MB}=ts(),uw=Symbol("destroyed"),q1=Symbol("closed"),ap=Symbol("onDestroyed"),lw=Symbol("onClosed"),lH=Symbol("Intercepted Dispatch"),vte=class extends lVt{constructor(){super(),this[uw]=!1,this[ap]=null,this[q1]=!1,this[lw]=[]}get destroyed(){return this[uw]}get closed(){return this[q1]}get interceptors(){return this[MB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[MB][r]!="function")throw new cw("interceptor must be an function")}this[MB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new cw("invalid callback");if(this[uw]){queueMicrotask(()=>e(new Fte,null));return}if(this[q1]){this[lw]?this[lw].push(e):queueMicrotask(()=>e(null,null));return}this[q1]=!0,this[lw].push(e);let r=()=>{let n=this[lw];this[lw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[gVt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new cw("invalid callback");if(this[uw]){this[ap]?this[ap].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Fte),this[uw]=!0,this[ap]=this[ap]||[],this[ap].push(r);let n=()=>{let s=this[ap];this[ap]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[hVt](e).then(()=>{queueMicrotask(n)})}[lH](e,r){if(!this[MB]||this[MB].length===0)return this[lH]=this[Mte],this[Mte](e,r);let n=this[Mte].bind(this);for(let s=this[MB].length-1;s>=0;s--)n=this[MB][s](n);return this[lH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new cw("handler must be an object");try{if(!e||typeof e!="object")throw new cw("opts must be an object.");if(this[uw]||this[ap])throw new Fte;if(this[q1])throw new dVt;return this[lH](e,r)}catch(n){if(typeof r.onError!="function")throw new cw("invalid onError method");return r.onError(n),!1}}};uOe.exports=vte});var Y1=f((WNn,hOe)=>{"use strict";var fVt=B("net"),lOe=B("assert"),dOe=Gr(),{InvalidArgumentError:pVt,ConnectTimeoutError:mVt}=Un(),Lte,Ute;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function EVt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new pVt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new Ute(e??100);return n=n??1e4,t Line truncated
`,this[xOe]=A??3e5,this[DOe]=s??3e5,this[K1]=I??!0,this[zVt]=w,this[X1]=z,this[pE]=null,this[kOe]=W>-1?W:-1,this[Ph]="h1",this[kc]=null,this[CH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[FOe]=`${this[qo].hostname}${this[qo].port?`:${this[qo].port}`:""}`,this[rs]=[],this[ns]=0,this[Tc]=0}get pipelining(){return this[EE]}set pipelining(e){this[EE]=e,Fc(this,!0)}get[UB](){return this[rs].length-this[Tc]}get[Fs](){return this[Tc]-this[ns]}get[LB](){return this[rs].length-this[ns]}get[WVt](){return!!this[Ws]&&!this[hw]&&!this[Ws].destroyed}get[Jte](){let e=this[Ws];return e&&(e[Ja]||e[up]||e[fw])||this[LB]>=(this[EE]||1)||this[UB]>0}[VVt](e){UOe(this),this.once("connect",e)}[XVt](e,r){let n=e.origin||this[qo].origin,s=this[Ph]==="h2"?Yte[$Vt](n,e,r):Yte[tWt](n,e,r);return this[rs].push(s),this[vB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[vB]=1,process.nextTick(Fc,this)):Fc(this,!0)),this[vB]&&this[mE]!==2&&this[Jte]&&(this[mE]=2),this[mE]<2}async[jVt](){return new Promise(e=>{this[LB]?this[pE]=e:e(null)})}async[KVt](e){return new Promise(r=>{let n=this[rs].splice(this[Tc]);for(let i=0;i<n.length;i++){let o=n[i];Va(this,o,e)}let s=()=>{this[pE]&&(this[pE](),this[pE]=null),r()};this[kc]!=null&&(ft.destroy(this[kc],e),this[kc]=null,this[CH]=null),this[Ws]?ft.destroy(this[Ws].on("close",s),e):queueMicrotask(s),Fc(this)})}};function cWt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ws][Go]=t,yH(this[Uh],t)}function uWt(t,e,r){let n=new Lh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Ws][Go]=n,yH(this[Uh],n))}function lWt(){ft.destroy(this,new gw("other side closed")),ft.destroy(this[Ws],new gw("other side closed"))}function dWt(t){let e=this[Uh],r=new Lh(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Ws]=null,e[kc]=null,e.destroyed){Ve(this[UB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Va(this,i,r)}}else if(e[Fs]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Va(e,n,r)}e[Tc]=e[ns],Ve(e[Fs]===0),e.emit("disconnect",e[qo],[e],r),Fc(e)}var Fh=fOe(),hWt=gH(),gWt=Buffer.alloc(0);async function fWt(){let t=process.env.JEST_WORKER_ID?Hte():void 0,e;try{e=await WebAssembly.compile(Buffer.from(QOe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Hte(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onStatus(new fH(Mh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onHeaderField(new fH(Mh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onHeaderValue(new fH(Mh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(Gi.ptr,r),Gi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onBody(new fH(Mh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageComplete()||0)}})}var Gte=null,zte=fWt();zte.catch();var Gi=null,Mh=null,pH=0,vh=null,pw=1,EH=2,jte=3,Kte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[mH])&&e[mH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Fh.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.headersMaxSize=e[mH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[kOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(qte.clearTimeout(this.timeout),e?(this.timeout=qte.setTimeout(pWt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(Gi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===EH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||gWt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(Gi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>pH&&(vh&&n.free(vh),pH=Math.ceil(e.length/4096)*4096,vh=n.malloc(pH)),new Uint8Array(n.memory.buffer,vh,pH).set(e);try{let s;try{Mh=e,Gi=this,s=n.llhttp_execute(this.ptr,vh,e.length)}catch(o){throw o}finally{Gi=null,Mh=null}let i=n.llhttp_get_error_pos(this.ptr)-vh;if(s===Fh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===Fh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==Fh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[NOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[EE]&&!h[Ja]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),Aa.sendHeaders.hasSubscribers&&Aa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let p=Mx.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(Rme(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(nb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Qft(t)}if((typeof n=="string"||nb.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(!Fme(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 Uft(t,e=!1){return t instanceof ReadableStream&&(Q6(!nb.isDisturbed(t),"The body has already been consumed."),Q6(!t.locked,"The stream is locked.")),vme(t,e)}function vft(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function Lft(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _ft(t){return{blob(){return k0(this,r=>{let s=xme(this);return s===null?s="":s&&(s=kft(s)),new Rft([r],{type:s})},t)},arrayBuffer(){return k0(this,r=>new Uint8Array(r).buffer,t)},text(){return k0(this,kme,t)},json(){return k0(this,Oft,t)},formData(){return k0(this,r=>{let s=xme(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Fft(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Tme;return i[F0]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new Tme;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 k0(this,r=>new Uint8Array(r),t)}}}function Pft(t){Object.assign(t.prototype,_ft(t))}async function k0(t,e,r){if(Dft.brandCheck(t,r),Lme(t))throw new TypeError("Body is unusable: Body has already been read");Lft(t[F0]);let s=wft(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[F0].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Sft(t[F0].body,i,n),s.promise)}function Lme(t){let e=t[F0].body;return e!=null&&(e.stream.locked||nb.isDisturbed(e.stream))}function Oft(t){return JSON.parse(kme(t))}function xme(t){let e=t[F0].headersList,r=Nft(e);return r==="failure"?null:r}_me.exports={extractBody:vme,safelyExtractBody:Uft,cloneBody:vft,mixinBody:Pft,streamRegistry:Ume,hasFinalizationRegistry:Mme,bodyUnusable:Lme}});var jme=E((KCr,zme)=>{"use strict";var Ke=B("node:assert"),At=yt(),{channels:Pme}=B0(),b6=i6(),{RequestContentLengthMismatchError:Yg,ResponseContentLengthMismatchError:Hft,RequestAbortedError:Vme,HeadersTimeoutError:Gft,HeadersOverflowError:Yft,SocketError:Ox,InformationalError:U0,BodyTimeoutError:qft,HTTPParserError:Vft,ResponseExceededMaxSizeError:Jft}=tr(),{kUrl:Jme,kReset:qi,kClient:D6,kParser:us,kBlocking:ab,kRunning:Yn,kPending:Wft,kSize:Ome,kWriting:Qh,kQueue:LA,kNoRef:ib,kKeepAliveDefaultTimeout:zft,kHostHeader:jft,kPendingIdx:Kft,kRunningIdx:Qa,kError:ya,kPipelining:_x,kSocket:v0,kKeepAliveTimeoutValue:Hx,kMaxHeadersSize:w6,kKeepAliveMaxTimeout:Zft,kKeepAliveTimeoutThreshold:Xft,kHeadersTimeout:$ft,kBodyTimeout:egt,kStrictContentLength:R6,kMaxRequests:Hme,kCounter:tgt,kMaxResponseSize:rgt,kOnError:sgt,kResume:Bh,kHTTPContext:Wme}=qr(),Jc=UEe(),ngt=Buffer.alloc(0),Ux=Buffer[Symbol.species],vx=At.addListener,igt=At.removeAllListeners,S6;async function ogt(){let t=process.env.JEST_WORKER_ID?A6():void 0,e;try{e=await WebAssembly.compile(_Ee())}catch{e=await WebAssembly.compile(t||A6())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{Ke(Vs.ptr===r);let i=s-zc+Wc.byteOffset;return Vs.onStatus(new Ux(Wc.buffer,i,n))||0},wasm_on_message_begin:r=>(Ke(Vs.ptr===r),Vs.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{Ke(Vs.ptr===r);let i=s-zc+Wc.byteOffset;return Vs.onHeaderField(new Ux(Wc.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{Ke(Vs.ptr===r);let i=s-zc+Wc.byteOffset;return Vs.onHeaderValue(new Ux(Wc.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(Ke(Vs.ptr===r),Vs.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{Ke(Vs.ptr===r);let i=s-zc+Wc.byteOffset;return Vs.onBody(new Ux(Wc.buffer,i,n))||0},wasm_on_message_complete:r=>(Ke(Vs.ptr===r),Vs.onMessageComplete()||0)}})}var N6=null,T6=ogt();T6.catch();var Vs=null,Wc=null,Lx=0,zc=null,agt=0,ob=1,L0=2|ob,Px=4|ob,x6=8|agt,k6=class{constructor(e,r,{exports:s}){Ke(Number.isFinite(e[w6])&&e[w6]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Jc.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 n=="string"?p+=`host: ${n}\r
`:p+=t[jft],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[_x]&&!h[qi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let Q=0;Q<I.length;Q++)p+=`${m}: ${I[Q]}\r
`;else p+=`${m}: ${I}\r
`}return Pme.sendHeaders.hasSubscribers&&Pme.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Yme(f,null,t,e,h,u,p,l):At.isBuffer(A)?Yme(f,A,t,e,h,u,p,l):At.isBlobLike(A)?typeof A.stream=="function"?qme(f,A.stream(),t,e,h,u,p,l):hgt(f,A,t,e,h,u,p,l):At.isStream(A)?dgt(f,A,t,e,h,u,p,l):At.isIterable(A)?qme(f,A,t,e,h,u,p,l):Ke(!1),!0}function dgt(t,e,r,s,n,i,o,a){Ke(i!==0||r[Yn]===0,"stream body cannot be pipelined");let A=!1,c=new Gx({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){At.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Vme;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ke(n.destroyed||n[Qh]&&r[Yn]<=1),n.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")?At.destroy(e,f):At.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.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 Yme(t,e,r,s,n,i,o,a){try{e?At.isBuffer(e)&&(Ke(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[qi]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[Ja]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?BH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):OOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?_Oe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?BH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function CWt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=Yte[eWt](u.trim()):l=u,a)return Va(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Va(t,r,I||new Zte)})}catch(I){Va(t,r,I)}if(r.aborted)return!1;let d,h=t[CH];if(l[rWt]=o||t[FOe],l[nWt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[sWt]=i,l[iWt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),POe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[K1])return Va(t,r,new cp),!1;process.emitWarning(new cp)}p!=null&&(Ve(n,"no body must not have content length"),l[oWt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[aWt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[AWt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new Lh(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Va(t,r,w),t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?BH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Ws],header:""}):OOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Ws]}):ft.isStream(n)?_Oe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Ws],h2stream:d,header:""}):ft.isIterable(n)?BH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Ws]}):Ve(!1):r.onRequestSent()}}function _Oe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[Fs]===0,"stream body cannot be pipelined"),r[Ph]==="h2"){let p=function(C){n.onBodySent(C)},g=LVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new QH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Zte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[up]&&r[Fs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.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)}async function OOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Ph]==="h2";try{if(i!=null&&i!==e.size)throw new cp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Ke(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Bh]()}catch(A){t(A)}}async function hgt(t,e,r,s,n,i,o,a){Ke(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Yg;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork()),n.onBodySent(c),n.onRequestSent(),a||(s[Ja]=!0),Fc(r)}catch(c){ft.destroy(A?t:s,c)}}async function BH({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i!==0||r[Fs]===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[Go]?h(s[Go]):A=d});if(r[Ph]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(s[Go])throw s[Go];let h=t.write(d);n.onBodySent(d),h||await u()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new QH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Go])throw s[Go];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var QH=class{constructor({socket:e,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[up]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Go])throw r[Go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[K1])throw new cp;process.emitWarning(new cp)}r.cork(),o===0&&(a||(r[Ja]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[qi]=!0),r[Bh]()}catch(A){t(A)}}async function qme(t,e,r,s,n,i,o,a){Ke(i!==0||r[Yn]===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)=>{Ke(A===null),n[ya]?h(n[ya]):A=d});n.on("close",c).on("drain",c);let l=new Gx({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ya])throw n[ya];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var Gx=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[Qh]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ya])throw r[ya];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[R6])throw new Yg;process.emitWarning(new Yg)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[qi]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===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[Vs].timeout&&r[Vs].timeoutType===pw&&r[Vs].timeout.refresh&&r[Vs].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[up]=!1,e[Go])throw e[Go];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(),s.onBodySent(e),u||r[us].timeout&&r[us].timeoutType===L0&&r[us].timeout.refresh&&r[us].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Qh]=!1,e[ya])throw e[ya];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&&s!==r){if(n[K1])throw new cp;process.emitWarning(new cp)}e[Vs].timeout&&e[Vs].timeoutType===pw&&e[Vs].timeout.refresh&&e[Vs].timeout.refresh(),Fc(n)}}destroy(e){let{socket:r,client:n}=this;r[up]=!1,e&&(Ve(n[Fs]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Va(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}HOe.exports=Wte});var GOe=f((rSn,qOe)=>{"use strict";var bH=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)}};qOe.exports=class{constructor(){this.head=this.tail=new bH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var JOe=f((nSn,YOe)=>{var{kFree:IWt,kConnected:BWt,kPending:QWt,kQueued:yWt,kRunning:bWt,kSize:wWt}=ts(),PB=Symbol("pool"),$te=class{constructor(e){this[PB]=e}get connected(){return this[PB][BWt]}get free(){return this[PB][IWt]}get pending(){return this[PB][QWt]}get queued(){return this[PB][yWt]}get running(){return this[PB][bWt]}get size(){return this[PB][wWt]}};YOe.exports=$te});var ire=f((sSn,tHe)=>{"use strict";var NWt=G1(),SWt=GOe(),{kConnected:ere,kSize:VOe,kRunning:WOe,kPending:zOe,kQueued:$1,kBusy:RWt,kFree:DWt,kUrl:xWt,kClose:TWt,kDestroy:kWt,kDispatch:FWt}=ts(),MWt=JOe(),TA=Symbol("clients"),Wa=Symbol("needDrain"),ek=Symbol("queue"),tre=Symbol("closed resolve"),rre=Symbol("onDrain"),jOe=Symbol("onConnect"),KOe=Symbol("onDisconnect"),XOe=Symbol("onConnectionError"),nre=Symbol("get dispatcher"),$Oe=Symbol("add client"),eHe=Symbol("remove client"),ZOe=Symbol("stats"),sre=class extends NWt{constructor(){super(),this[ek]=new SWt,this[TA]=[],this[$1]=0;let e=this;this[rre]=function(n,s){let i=e[ek],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[$1]--,o=!this.dispatch(a.opts,a.handler)}this[Wa]=o,!this[Wa]&&e[Wa]&&(e[Wa]=!1,e.emit("drain",n,[e,...s])),e[tre]&&i.isEmpty()&&Promise.all(e[TA].map(a=>a.close())).then(e[tre])},this[jOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[KOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[XOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[ZOe]=new MWt(this)}get[RWt](){return this[Wa]}get[ere](){return this[TA].filter(e=>e[ere]).length}get[DWt](){return this[TA].filter(e=>e[ere]&&!e[Wa]).length}get[zOe](){let e=this[$1];for(let{[zOe]:r}of this[TA])e+=r;return e}get[WOe](){let e=0;for(let{[WOe]:r}of this[TA])e+=r;return e}get[VOe](){let e=this[$1];for(let{[VOe]:r}of this[TA])e+=r;return e}get stats(){return this[ZOe]}async[TWt](){return this[ek].isEmpty()?Promise.all(this[TA].map(e=>e.close())):new Promise(e=>{this[tre]=e})}async[kWt](e){for(;;){let r=this[ek].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[TA].map(r=>r.destroy(e)))}[FWt](e,r){let n=this[nre]();return n?n.dispatch(e,r)||(n[Wa]=!0,this[Wa]=!this[nre]()):(this[Wa]=!0,this[ek].push({opts:e,handler:r}),this[$1]++),!this[Wa]}[$Oe](e){return e.on("drain",this[rre]).on("connect",this[jOe]).on("disconnect",this[KOe]).on("connectionError",this[XOe]),this[TA].push(e),this[Wa]&&process.nextTick(()=>{this[Wa]&&this[rre](e[xWt],[this,e])}),this}[eHe](e){e.close(()=>{let r=this[TA].indexOf(e);r!==-1&&this[TA].splice(r,1)}),this[Wa]=this[TA].some(r=>!r[Wa]&&r.closed!==!0&&r.destroyed!==!0)}};tHe.exports={PoolBase:sre,kClients:TA,kNeedDrain:Wa,kAddClient:$Oe,kRemoveClient:eHe,kGetDispatcher:nre}});var mw=f((iSn,sHe)=>{"use strict";var{PoolBase:vWt,kClients:wH,kNeedDrain:LWt,kAddClient:UWt,kGetDispatcher:PWt}=ire(),_Wt=Z1(),{InvalidArgumentError:ore}=Un(),are=Gr(),{kUrl:rHe,kInterceptors:OWt}=ts(),HWt=Y1(),Are=Symbol("options"),cre=Symbol("connections"),nHe=Symbol("factory");function qWt(t,e){return new _Wt(t,e)}var ure=class extends vWt{constructor(e,{connections:r,factory:n=qWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new ore("invalid connections");if(typeof n!="function")throw new ore("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new ore("connect must be a function or an object");typeof s!="function"&&(s=HWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...are.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[OWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[cre]=r||null,this[rHe]=are.parseOrigin(e),this[Are]={...are.deepClone(d),connect:s,allowH2:l},this[Are].interceptors=d.interceptors?{...d.interceptors}:void 0,this[nHe]=n,this.on("con Line truncated
${n.count} ${n.noun} ${n.is} pending:
`,"latin1"),r!==null&&n!==r){if(s[R6])throw new Yg;process.emitWarning(new Yg)}e[us].timeout&&e[us].timeoutType===L0&&e[us].timeout.refresh&&e[us].timeout.refresh(),s[Bh]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Qh]=!1,e&&(Ke(s[Yn]<=1,"pipeline should only contain this request"),n(e))}};zme.exports=Agt});var s0e=E((ZCr,r0e)=>{"use strict";var ba=B("node:assert"),{pipeline:fgt}=B("node:stream"),xt=yt(),{RequestContentLengthMismatchError:F6,RequestAbortedError:Kme,SocketError:Ab,InformationalError:M6}=tr(),{kUrl:Yx,kReset:Vx,kClient:_0,kRunning:Jx,kPending:ggt,kQueue:yh,kPendingIdx:U6,kRunningIdx:_A,kError:OA,kSocket:cn,kStrictContentLength:pgt,kOnError:v6,kMaxConcurrentStreams:t0e,kHTTP2Session:PA,kResume:bh,kSize:Egt,kHTTPContext:mgt}=qr(),ql=Symbol("open streams"),Zme,Xme=!1,qx;try{qx=B("node:http2")}catch{qx={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Cgt,HTTP2_HEADER_METHOD:Igt,HTTP2_HEADER_PATH:Bgt,HTTP2_HEADER_SCHEME:Qgt,HTTP2_HEADER_CONTENT_LENGTH:ygt,HTTP2_HEADER_EXPECT:bgt,HTTP2_HEADER_STATUS:wgt}}=qx;function Sgt(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 Ngt(t,e){t[cn]=e,Xme||(Xme=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=qx.connect(t[Yx],{createConnection:()=>e,peerMaxConcurrentStreams:t[t0e]});r[ql]=0,r[_0]=t,r[cn]=e,xt.addListener(r,"error",Rgt),xt.addListener(r,"frameError",Tgt),xt.addListener(r,"end",xgt),xt.addListener(r,"goaway",kgt),xt.addListener(r,"close",function(){let{[_0]:n}=this,{[cn]:i}=n,o=this[cn][OA]||this[OA]||new Ab("closed",xt.getSocketInfo(i));if(n[PA]=null,n.destroyed){ba(n[ggt]===0);let a=n[yh].splice(n[_A]);for(let A=0;A<a.length;A++){let c=a[A];xt.errorRequest(n,c,o)}}}),r.unref(),t[PA]=r,e[PA]=r,xt.addListener(e,"error",function(n){ba(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[OA]=n,this[_0][v6](n)}),xt.addListener(e,"end",function(){xt.destroy(this,new Ab("other side closed",xt.getSocketInfo(this)))}),xt.addListener(e,"close",function(){let n=this[OA]||new Ab("closed",xt.getSocketInfo(this));t[cn]=null,this[PA]!=null&&this[PA].destroy(n),t[U6]=t[_A],ba(t[Jx]===0),t.emit("disconnect",t[Yx],[t],n),t[bh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Mgt(t,...n)},resume(){Dgt(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Dgt(t){let e=t[cn];e?.destroyed===!1&&(t[Egt]===0&&t[t0e]===0?(e.unref(),t[PA].unref()):(e.ref(),t[PA].ref()))}function Rgt(t){ba(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn][OA]=t,this[_0][v6](t)}function Tgt(t,e,r){if(r===0){let s=new M6(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[cn][OA]=s,this[_0][v6](s)}}function xgt(){let t=new Ab("other side closed",xt.getSocketInfo(this[cn]));this.destroy(t),xt.destroy(this[cn],t)}function kgt(t){let e=this[OA]||new Ab(`HTTP/2: "GOAWAY" frame received with code ${t}`,xt.getSocketInfo(this)),r=this[_0];if(r[cn]=null,r[mgt]=null,this[PA]!=null&&(this[PA].destroy(e),this[PA]=null),xt.destroy(this[cn],e),r[_A]<r[yh].length){let s=r[yh][r[_A]];r[yh][r[_A]++]=null,xt.errorRequest(r,s,e),r[U6]=r[_A]}ba(r[Jx]===0),r.emit("disconnect",r[Yx],[r],e),r[bh]()}function Fgt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Mgt(t,e){let r=t[PA],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return xt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let b=0;b<c.length;b+=2){let U=c[b+0],q=c[b+1];if(Array.isArray(q))for(let x=0;x<q.length;x++)l[U]?l[U]+=`,${q[x]}`:l[U]=q[x];else l[U]=q}let d,{hostname:h,port:f}=t[Yx];l[Cgt]=i||`${h}${f?`:${f}`:""}`,l[Igt]=s;let p=b=>{e.aborted||e.completed||(b=b||new Kme,xt.errorRequest(t,e,b),d!=null&&xt.destroy(d,b),xt.destroy(u,b),t[yh][t[_A]++]=null,t[bh]())};try{e.onConnect(p)}catch(b){xt.errorRequest(t,e,b)}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[ql],t[yh][t[_A]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ql],t[yh][t[_A]++]=null}),d.once("close",()=>{r[ql]-=1,r[ql]===0&&r.unref()}),!0;l[Bgt]=n,l[Qgt]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=xt.bodyLength(u);if(xt.isFormDataLike(u)){Zme??=M0().extractBody;let[b,U]=Zme(u);l["content-type"]=U,u=b.stream,m=b.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),Fgt(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[pgt])return xt.errorRequest(t,e,new F6),!1;process.emitWarning(new F6)}m!=null&&(ba(u,"no body must not have content length"),l[ygt]=`${m}`),r.ref();let I=s==="GET"||s==="HEAD"||u===null;return a?(l[bgt]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[opt]=A??3e5,this[ipt]=n??3e5,this[apt]=I??!0,this[Apt]=b,this[O6]=q,this[Sh]=null,this[hpt]=P>-1?P:-1,this[gpt]=$??100,this[Ss]=null,this[HA]=[],this[Jl]=0,this[GA]=0,this[db]=ae=>G6(this,ae),this[fpt]=ae=>g0e(this,ae)}get pipelining(){return this[Kx]}set pipelining(e){this[Kx]=e,this[db](!0)}get[gb](){return this[HA].length-this[GA]}get[fb](){return this[GA]-this[Jl]}get[hb](){return this[HA].length-this[Jl]}get[Xgt](){return!!this[Ss]&&!this[O0]&&!this[Ss].destroyed}get[P6](){return!!(this[Ss]?.busy(null)||this[hb]>=(f0e(this)||1)||this[gb]>0)}[Zgt](e){p0e(this),this.once("connect",e)}[dpt](e,r){let s=e.origin||this[Kc].origin,n=new Vgt(s,e,r);return this[HA].push(n),this[Vg]||(qg.bodyLength(n.body)==null&&qg.isIterable(n.body)?(this[Vg]=1,queueMicrotask(()=>G6(this))):this[db](!0)),this[Vg]&&this[Nh]!==2&&this[P6]&&(this[Nh]=2),this[Nh]<2}async[upt](){return new Promise(e=>{this[hb]?this[Sh]=e:e(null)})}async[lpt](e){return new Promise(r=>{let s=this[HA].splice(this[GA]);for(let i=0;i<s.length;i++){let o=s[i];qg.errorRequest(this,o,e)}let n=()=>{this[Sh]&&(this[Sh](),this[Sh]=null),r(null)};this[Ss]?(this[Ss].destroy(e,n),this[Ss]=null):queueMicrotask(n),this[db]()})}},mpt=jx();function g0e(t,e){if(t[fb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Vl(t[GA]===t[Jl]);let r=t[HA].splice(t[Jl]);for(let s=0;s<r.length;s++){let n=r[s];qg.errorRequest(t,n,e)}Vl(t[hb]===0)}}async function p0e(t){Vl(!t[O0]),Vl(!t[Ss]);let{host:e,hostname:r,protocol:s,port:n}=t[Kc];if(r[0]==="["){let i=r.indexOf("]");Vl(i!==-1);let o=r.substring(1,i);Vl(h0e.isIP(o)),r=o}t[O0]=!0,P0.beforeConnect.hasSubscribers&&P0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Ss]?.version,servername:t[wh],localAddress:t[lb]},connector:t[ub]});try{let i=await new Promise((o,a)=>{t[ub]({host:e,hostname:r,protocol:s,port:n,servername:t[wh],localAddress:t[lb]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){qg.destroy(i.on("error",l0e),new zgt);return}Vl(i);try{t[Ss]=i.alpnProtocol==="h2"?await Ept(t,i):await ppt(t,i)}catch(o){throw i.destroy().on("error",l0e),o}t[O0]=!1,i[cpt]=0,i[O6]=t[O6],i[Kgt]=t,i[ept]=null,P0.connected.hasSubscribers&&P0.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Ss]?.version,servername:t[wh],localAddress:t[lb]},connector:t[ub],socket:i}),t.emit("connect",t[Kc],[t])}catch(i){if(t.destroyed)return;if(t[O0]=!1,P0.connectError.hasSubscribers&&P0.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Ss]?.version,servername:t[wh],localAddress:t[lb]},connector:t[ub],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Vl(t[fb]===0);t[gb]>0&&t[HA][t[GA]].servername===t[wh];){let o=t[HA][t[GA]++];qg.errorRequest(t,o,i)}else g0e(t,i);t.emit("connectionError",t[Kc],[t],i)}t[db]()}function d0e(t){t[Nh]=0,t.emit("drain",t[Kc],[t])}function G6(t,e){t[Vg]!==2&&(t[Vg]=2,Cpt(t,e),t[Vg]=0,t[Jl]>256&&(t[HA].splice(0,t[Jl]),t[GA]-=t[Jl],t[Jl]=0))}function Cpt(t,e){for(;;){if(t.destroyed){Vl(t[gb]===0);return}if(t[Sh]&&!t[hb]){t[Sh](),t[Sh]=null;return}if(t[Ss]&&t[Ss].resume(),t[P6])t[Nh]=2;else if(t[Nh]===2){e?(t[Nh]=1,queueMicrotask(()=>d0e(t))):d0e(t);continue}if(t[gb]===0||t[fb]>=(f0e(t)||1))return;let r=t[HA][t[GA]];if(t[Kc].protocol==="https:"&&t[wh]!==r.servername){if(t[fb]>0)return;t[wh]=r.servername,t[Ss]?.destroy(new Wgt("servername changed"),()=>{t[Ss]=null,G6(t)})}if(t[O0])return;if(!t[Ss]){p0e(t);return}if(t[Ss].destroyed||t[Ss].busy(r))return;!r.aborted&&t[Ss].write(r)?t[GA]++:t[HA].splice(t[GA],1)}}E0e.exports=H6});var Y6=E((rIr,m0e)=>{"use strict";var Zx=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)}};m0e.exports=class{constructor(){this.head=this.tail=new Zx}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Zx),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var I0e=E((sIr,C0e)=>{var{kFree:Ipt,kConnected:Bpt,kPending:Qpt,kQueued:ypt,kRunning:bpt,kSize:wpt}=qr(),Jg=Symbol("pool"),q6=class{constructor(e){this[Jg]=e}get connected(){return this[Jg][Bpt]}get free(){return this[Jg][Ipt]}get pending(){return this[Jg][Qpt]}get queued(){return this[Jg][ypt]}get running(){return this[Jg][bpt]}get size(){return this[Jg][wpt]}};C0e.exports=q6});var K6=E((nIr,T0e)=>{"use strict";var Spt=w0(),Npt=Y6(),{kConnected:V6,kSize:B0e,kRunning:Q0e,kPending:y0e,kQueued:pb,kBusy:Dpt,kFree:Rpt,kUrl:Tpt,kClose:xpt,kDestroy:kpt,kDispatch:Fpt}=qr(),Mpt=I0e(),Vi=Symbol("clients"),gi=Symbol("needDrain"),Eb=Symbol("queue"),J6=Symbol("closed resolve"),W6=Symbol("onDrain"),b0e=Symbol("onConnect"),w0e=Symbol("onDisconnect"),S0e=Symbol("onCo Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};Lqe.exports=zre});var Gqe=f((xSn,qqe)=>{"use strict";var{kProxy:Gjt,kClose:Yjt,kDestroy:Jjt,kInterceptors:Vjt}=ts(),{URL:Pqe}=B("url"),_qe=rk(),Wjt=mw(),zjt=G1(),{InvalidArgumentError:ak,RequestAbortedError:jjt}=Un(),Oqe=Y1(),ik=Symbol("proxy agent"),VH=Symbol("proxy client"),ok=Symbol("proxy headers"),jre=Symbol("request tls settings"),Kjt=Symbol("proxy tls settings"),Hqe=Symbol("connect endpoint function");function Xjt(t){return t==="https:"?443:80}function Zjt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new ak("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function $jt(t,e){return new Wjt(t,e)}var Kre=class extends zjt{constructor(e){if(super(e),this[Gjt]=Zjt(e),this[ik]=new _qe(e),this[Vjt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new ak("Proxy opts.uri is mandatory");let{clientFactory:r=$jt}=e;if(typeof r!="function")throw new ak("Proxy opts.clientFactory must be a function.");this[jre]=e.requestTls,this[Kjt]=e.proxyTls,this[ok]=e.headers||{};let n=new Pqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new ak("opts.auth cannot be used in combination with opts.token");e.auth?this[ok]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ok]["proxy-authorization"]=e.token:a&&A&&(this[ok]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=Oqe({...e.proxyTls});this[Hqe]=Oqe({...e.requestTls}),this[VH]=r(n,{connect:c}),this[ik]=new _qe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Xjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[VH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ok],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new jjt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[jre]?p=this[jre].servername:p=u.servername,this[Hqe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new Pqe(e.origin),s=e7t(e.headers);return t7t(s),this[ik].dispatch({...e,headers:{...s,host:n}},r)}async[Yjt](){await this[ik].close(),await this[VH].close()}async[Jjt](){await this[ik].destroy(),await this[VH].destroy()}};function e7t(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function t7t(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new ak("Proxy-Authorization should be sent in ProxyAgent constructor")}qqe.exports=Kre});var zqe=f((TSn,Wqe)=>{var YB=B("assert"),{kRetryHandlerDefaultRetry:Yqe}=ts(),{RequestRetryError:WH}=Un(),{isDisturbed:Jqe,parseHeaders:r7t,parseRangeHeader:Vqe}=Gr();function n7t(t){let e=Date.now();return new Date(t).getTime()-e}var Xre=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[Yqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Yqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?n7t(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=r7t(r);if(this.retryCount+=1,e>=300)return this.abort(new WH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Vqe(i["content-range"]);if(!a)return this.abort(new WH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new WH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return n3e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,s3e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,s3e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};qw.OidcClient=One});var Yne=f(LA=>{"use strict";var Hne=LA&&LA.__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(LA,"__esModule",{value:!0});LA.summary=LA.markdownSummary=LA.SUMMARY_DOCS_URL=LA.SUMMARY_ENV_VAR=void 0;var WZt=B("os"),qne=B("fs"),{access:zZt,appendFile:jZt,writeFile:KZt}=qne.promises;LA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";LA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Gne=class{constructor(){this._buffer=""}filePath(){return Hne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[LA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${LA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield zZt(e,qne.constants.R_OK|qne.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Hne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?KZt:jZt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Hne(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(WZt.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},o3e=new Gne;LA.markdownSummary=o3e;LA.summary=o3e});var a3e=f(UA=>{"use strict";var XZt=UA&&UA.__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]})),ZZt=UA&&UA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$Zt=UA&&UA.__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)&&XZt(e,t,r);return ZZt(e,t),e};Object.defineProperty(UA,"__esModule",{value:!0});UA.toPlatformPath=UA.toWin32Path=UA.toPosixPath=void 0;var e$t=$Zt(B("path"));function t$t(t){return t.replace(/[\\]/g,"/")}UA.toPosixPath=t$t;function r$t(t){return t.replace(/[/]/g,"\\")}UA.toWin32Path=r$t;function n$t(t){return t.replace(/[/\\]/g,e$t.sep)}UA.toPlatformPath=n$t});var Vne=f(Ze=>{"use strict";var s$t=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Yr.platform=w3e.default.platform();Yr.arch=w3e.default.arch();Yr.isWindows=Yr.platform==="win32";Yr.isMacOS=Yr.platform==="darwin";Yr.isLinux=Yr.platform==="linux";function L$t(){return Gq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Yr.isWindows?F$t():Yr.isMacOS?M$t():v$t()),{platform:Yr.platform,arch:Yr.arch,isWindows:Yr.isWindows,isMacOS:Yr.isMacOS,isLinux:Yr.isLinux})})}Yr.getDetails=L$t});var Oc=f(We=>{"use strict";var U$t=We&&We.__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]})),P$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xne=We&&We.__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)&&U$t(e,t,r);return P$t(e,t),e},S3e=We&&We.__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(We,"__esModule",{value:!0});We.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var zu=dPe(),ZB=fPe(),Yw=qO(),R3e=Xne(B("os")),_$t=Xne(B("path")),O$t=i3e(),Kne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Kne||(We.ExitCode=Kne={}));function H$t(t,e){let r=(0,Yw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,ZB.issueFileCommand)("ENV",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("set-env",{name:t},r)}We.exportVariable=H$t;function q$t(t){(0,zu.issueCommand)("add-mask",{},t)}We.setSecret=q$t;function G$t(t){process.env.GITHUB_PATH||""?(0,ZB.issueFileCommand)("PATH",t):(0,zu.issueCommand)("add-path",{},t),process.env.PATH=`${t}${_$t.delimiter}${process.env.PATH}`}We.addPath=G$t;function Zne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Zne;function Y$t(t,e){let r=Zne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=Y$t;function J$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Zne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=J$t;function V$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,ZB.issueFileCommand)("OUTPUT",(0,ZB.prepareKeyValueMessage)(t,e));process.stdout.write(R3e.EOL),(0,zu.issueCommand)("set-output",{name:t},(0,Yw.toCommandValue)(e))}We.setOutput=V$t;function W$t(t){(0,zu.issue)("echo",t?"on":"off")}We.setCommandEcho=W$t;function z$t(t){process.exitCode=Kne.Failure,D3e(t)}We.setFailed=z$t;function j$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=j$t;function K$t(t){(0,zu.issueCommand)("debug",{},t)}We.debug=K$t;function D3e(t,e={}){(0,zu.issueCommand)("error",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=D3e;function X$t(t,e={}){(0,zu.issueCommand)("warning",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=X$t;function Z$t(t,e={}){(0,zu.issueCommand)("notice",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=Z$t;function $$t(t){process.stdout.write(t+R3e.EOL)}We.info=$$t;function x3e(t){(0,zu.issue)("group",t)}We.startGroup=x3e;function T3e(){(0,zu.issue)("endgroup")}We.endGroup=T3e;function eer(t,e){return S3e(this,void 0,void 0,function*(){x3e(t);let r;try{r=yield e()}finally{T3e()}return r})}We.group=eer;function ter(t,e){if(process.env.GITHUB_STATE||"")return(0,ZB.issueFileCommand)("STATE",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("save-state",{name:t},(0,Yw.toCommandValue)(e))}We.saveState=ter;function rer(t){return process.env[`STATE_${t}`]||""}We.getState=rer;function ner(t){return S3e(this,void 0,void 0,function*(){return yield O$t.OidcClient.getIDToken(t)})}We.getIDToken=ner;var ser=Yne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return ser.summary}});var ier=Yne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return ier.markdownSummary}});var $ne=a3e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return $ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return $ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return $ne.toPlatformPath}});We.platform=Xne(N3e())});var k3e=f(Vh=>{"use strict";var oer=Vh&&Vh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),aer=Vh&&Vh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Aer=Vh&&Vh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&oer(e,t,r);return aer(e,t),e};Object.defineProperty(Vh,"__esModule",{value:!0});Vh.getOptions=void 0;var ese=Aer(Oc());function cer(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,ese.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,ese.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,ese.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Vh.getOptions=cer});var Jq=f(js=>{"use strict";var uer=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ler=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),der=js&&js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&uer(e,t,r);return ler(e,t),e},her=js&&js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(js,"__esModule",{value:!0});js.safeTrimTrailingSeparator=js.normalizeSeparators=js.hasRoot=js.hasAbsoluteRoot=js.ensureAbsoluteRoot=js.dirname=void 0;var Yq=der(B("path")),$B=her(B("assert")),NE=process.platform==="win32";function ger(t){if(t=rse(t),NE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Yq.dirname(t);return NE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=rse(e)),e}js.dirname=ger;function fer(t,e){if($B.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),$B.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),tse(e))return e;if(NE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return $B.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?ose:I.type==="?"?ise:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==zq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===zq)return[n,s];if(!s)return Yer(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Hc.makeRe=function(t,e){return new Jo(t,e||{}).makeRe()};Jo.prototype.makeRe=Ger;function Ger(){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?ose:e.dot?ver:Ler,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ase?r:typeof o=="string"?Jer(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}Hc.match=function(t,e,r){r=r||{};var n=new Jo(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Jo.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;yk.sep!=="/"&&(e=e.split(yk.sep).join("/")),e=e.split(Z3e),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};Jo.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===ase){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function Yer(t){return t.replace(/\\(.)/g,"$1")}function Jer(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var r4e=f(ju=>{"use strict";var Ver=ju&&ju.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wer=ju&&ju.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),t4e=ju&&ju.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ver(e,t,r);return Wer(e,t),e},zer=ju&&ju.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ju,"__esModule",{value:!0});ju.Path=void 0;var bk=t4e(B("path")),RE=t4e(Jq()),wk=zer(B("assert")),jer=process.platform==="win32",cse=class{constructor(e){if(this.segments=[],typeof e=="string")if(wk.default(e,"Parameter 'itemPath' must not be empty"),e=RE.safeTrimTrailingSeparator(e),!RE.hasRoot(e))this.segments=e.split(bk.sep);else{let r=e,n=RE.dirname(r);for(;n!==r;){let s=bk.basename(r);this.segments.unshift(s),r=n,n=RE.dirname(r)}this.segments.unshift(r)}else{wk.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];wk.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=RE.normalizeSeparators(e[r]),r===0&&RE.hasRoot(n)?(n=RE.safeTrimTrailingSeparator(n),wk.default(n===RE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(wk.default(!n.includes(bk.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(bk.sep)||jer&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=bk.sep,e+=this.segments[n];return e}};ju.Path=cse});var n4e=f(Ku=>{"use strict";var Ker=Ku&&Ku.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Xer=Ku&&Ku.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dse=Ku&&Ku.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ker(e,t,r);return Xer(e,t),e},Zer=Ku&&Ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Pattern=void 0;var $er=dse(B("os")),Nk=dse(B("path")),qA=dse(Jq()),e0=Zer(B("assert")),etr=Ase(),use=Vq(),Kq=r4e(),fp=process.platform==="win32",lse=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],e0.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);e0.default(c&&qA.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Kq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Kq.Path(i).segments,this.trailingSeparator=qA.normalizeSeparators(i).endsWith(Nk.sep),i=qA.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Kq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),fp?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:fp,nocomment:!0,noext:!0,nonegate:!0};i=fp?i.replace(/\\/g,"/"):i,this.minimatch=new etr.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=qA.normalizeSeparators(e),!e.endsWith(Nk.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Nk.sep}`)):e=qA.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?use.MatchKind.Directory:use.MatchKind.All:use.MatchKind.None}partialMatch(e){return e=qA.safeTrimTrailingSeparator(e),qA.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(fp?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(fp?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){e0.default(e,"pattern cannot be empty");let n=new Kq.Path(e).segments.map(s=>t.getLiteral(s));if(e0.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),e0.default(!qA.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=qA.normalizeSeparators(e),e==="."||e.startsWith(`.${Nk.sep}`))e=t.globEscap 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 a4e.Pattern(i));return n.searchPaths.push(...Zq.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return gse(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Sk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){fse.debug(`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 Sk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Sk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){fse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};co.DefaultGlobber=pse});var u4e=f(Vw=>{"use strict";var atr=Vw&&Vw.__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(Vw,"__esModule",{value:!0});Vw.create=void 0;var Atr=c4e();function ctr(t,e){return atr(this,void 0,void 0,function*(){return yield Atr.DefaultGlobber.create(t,e)})}Vw.create=ctr});var p4e=f((Ot,f4e)=>{Ot=f4e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var Dk=256,$q=Number.MAX_SAFE_INTEGER||9007199254740991,mse=16,utr=Dk-6,Ww=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},h4e=0;function Er(t){ie[t]=h4e++}var Cse="[a-zA-Z0-9-]",Ese=[["\\s",1],["\\d",Dk],[Cse,utr]];function Tk(t){for(var e=0;e<Ese.length;e++){var r=Ese[e][0],n=Ese[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Cse+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=Cse+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+mse+"})(?:\\.(\\d{1,"+mse+"}))?(?:\\.(\\d{1,"+mse+"}))?(?:$|[^\\d])";Er("COERCERTL");Ww[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(Tk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Ww[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(Tk(me[ie.TILDETRIM]),"g");var ltr="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=jtr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=nG.relative(a,d).replace(new RegExp(`\\${nG.sep}`,"g"),"/");kk.debug(`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})}Zr.resolvePaths=nrr;function srr(t){return Kw(this,void 0,void 0,function*(){return $tr.promisify(bse.unlink)(t)})}Zr.unlinkFile=srr;function Q4e(t,e=[]){return Kw(this,void 0,void 0,function*(){let r="";e.push("--version"),kk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Ktr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){kk.debug(n.message)}return r=r.trim(),kk.debug(r),r})}function irr(){return Kw(this,void 0,void 0,function*(){let t=yield Q4e("zstd",["--quiet"]),e=Ztr.clean(t);return kk.debug(`zstd version: ${e}`),t===""?n0.CompressionMethod.Gzip:n0.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=irr;function orr(t){return t===n0.CompressionMethod.Gzip?n0.CacheFilename.Gzip:n0.CacheFilename.Zstd}Zr.getCacheFileName=orr;function arr(){return Kw(this,void 0,void 0,function*(){return bse.existsSync(n0.GnuTarPathOnWindows)?n0.GnuTarPathOnWindows:(yield Q4e("tar")).toLowerCase().includes("gnu tar")?I4e.which("tar"):""})}Zr.getGnuTarPathOnWindows=arr;function Arr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=Arr;function crr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(err),B4e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=crr;function urr(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=urr});var Vn={};xu(Vn,{__addDisposableResource:()=>W4e,__assign:()=>sG,__asyncDelegator:()=>_4e,__asyncGenerator:()=>P4e,__asyncValues:()=>O4e,__await:()=>Zw,__awaiter:()=>k4e,__classPrivateFieldGet:()=>Y4e,__classPrivateFieldIn:()=>V4e,__classPrivateFieldSet:()=>J4e,__createBinding:()=>oG,__decorate:()=>w4e,__disposeResources:()=>z4e,__esDecorate:()=>S4e,__exportStar:()=>M4e,__extends:()=>y4e,__generator:()=>F4e,__importDefault:()=>G4e,__importStar:()=>q4e,__makeTemplateObject:()=>H4e,__metadata:()=>T4e,__param:()=>N4e,__propKey:()=>D4e,__read:()=>Sse,__rest:()=>b4e,__rewriteRelativeImportExtension:()=>j4e,__runInitializers:()=>R4e,__setFunctionName:()=>x4e,__spread:()=>v4e,__spreadArray:()=>U4e,__spreadArrays:()=>L4e,__values:()=>iG,default:()=>hrr});function y4e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function b4e(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}function w4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function N4e(t,e){return function(r,n){e(r,n,t)}}function S4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function R4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function D4e(t){return typeof t=="symbol"?t:"".concat(t)}function x4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function T4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function k4e(t,e,r,n){function s(i){re Line truncated
${Grr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};Lk.RestError=pG;function Yrr(t){return t instanceof pG?!0:(0,Orr.isError)(t)&&t.name==="RestError"}});var s0=f(mG=>{"use strict";Object.defineProperty(mG,"__esModule",{value:!0});mG.uint8ArrayToString=Jrr;mG.stringToUint8Array=Vrr;function Jrr(t,e){return Buffer.from(t).toString(e)}function Vrr(t,e){return Buffer.from(t,e)}});var Uk=f(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.logger=void 0;var Wrr=uG();EG.logger=(0,Wrr.createClientLogger)("ts-http-runtime")});var CYe=f(IG=>{"use strict";Object.defineProperty(IG,"__esModule",{value:!0});IG.getBodyLength=EYe;IG.createNodeHttpClient=tnr;var $se=(Wn(),$n(Vn)),Kse=$se.__importDefault(B("node:http")),Xse=$se.__importDefault(B("node:https")),gYe=$se.__importDefault(B("node:zlib")),zrr=B("node:stream"),fYe=Fk(),jrr=TE(),_k=$w(),eN=Uk(),Krr=vk(),Xrr={};function Pk(t){return t&&typeof t.pipe=="function"}function pYe(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 mYe(t){return t&&typeof t.byteLength=="number"}var CG=class extends zrr.Transform{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}},Zse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new fYe.AbortError("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 Krr.Sanitizer;eN.logger.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=EYe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new CG(g);p.on("error",C=>{eN.logger.error("Error in upload progress",C)}),Pk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Zrr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?$rr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new CG(h);g.on("error",p=>{eN.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await enr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();Pk(a)&&(c=pYe(a));let u=Promise.resolve();Pk(A)&&(u=pYe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{eN.logger.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?Kse.default.request(a,A):Xse.default.request(a,A);u.once("error",l=>{c(new _k.RestError(l.message,{code:l.code??_k.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new fYe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&Pk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):mYe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(eN.logger.error("Unrecognized body type",n),c(new _k.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Kse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Kse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Xse.default.globalAgent;let s=e.tlsSettings??Xrr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(eN.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Xse.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Zrr(t){let e=(0,jrr.createHttpHeaders)();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 $rr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=gYe.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=gYe.default.createInflate Line truncated
`.trim())}};vIe.exports=K5});var g2=E((kIr,HIe)=>{"use strict";var _Ie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:o0t}=tr(),a0t=Y0();OIe()===void 0&&PIe(new a0t);function PIe(t){if(!t||typeof t.dispatch!="function")throw new o0t("Argument agent must implement Agent");Object.defineProperty(globalThis,_Ie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function OIe(){return globalThis[_Ie]}HIe.exports={setGlobalDispatcher:PIe,getGlobalDispatcher:OIe}});var p2=E((MIr,GIe)=>{"use strict";GIe.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 qIe=E((UIr,YIe)=>{"use strict";var A0t=zx();YIe.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 A0t(r,o,n,i);return r(a,A)}}});var JIe=E((vIr,VIe)=>{"use strict";var c0t=i2();VIe.exports=t=>e=>function(s,n){return e(s,new c0t({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var zIe=E((LIr,WIe)=>{"use strict";var u0t=yt(),{InvalidArgumentError:l0t,RequestAbortedError:d0t}=tr(),h0t=p2(),Z5=class extends h0t{#e=1024*1024;#t=null;#r=!1;#s=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new l0t("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.#i=e}onHeaders(e,r,s,n){let o=u0t.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new d0t(`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.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function f0t({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new Z5({maxSize:i},n);return e(s,o)}}WIe.exports=f0t});var ZIe=E((_Ir,KIe)=>{"use strict";var{isIP:g0t}=B("node:net"),{lookup:p0t}=B("node:dns"),E0t=p2(),{InvalidArgumentError:$0,InformationalError:m0t}=tr(),jIe=Math.pow(2,31)-1,X5=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.#n}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 m0t("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){p0t(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())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===jIe?(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===jIe?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 $5(this,e,r)}},$5=class extends E0t{#e=null;#t=null;#r=null;#s=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=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.#n,this.#t,(r,s)=>{if(r) Line truncated
${i}`;break;case"retry":Tye(i)&&(r[n]=i);break;case"id":xye(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Tye(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&xye(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}}};kye.exports={EventSourceStream:_9}});var Hye=E((gBr,Oye)=>{"use strict";var{pipeline:SQt}=B("node:stream"),{fetching:NQt}=Tb(),{makeRequest:DQt}=rC(),{webidl:Zl}=Rn(),{EventSourceStream:RQt}=Fye(),{parseMIMEType:TQt}=Yi(),{createFastMessageEvent:xQt}=AC(),{isNetworkError:Mye}=Db(),{delay:kQt}=v9(),{kEnumerableProperty:ap}=yt(),{environmentSettingsObject:Uye}=bo(),vye=!1,Lye=3e3,Gb=0,_ye=1,Yb=2,FQt="anonymous",MQt="use-credentials",hC=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=Gb;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Zl.util.markAsUncloneable(this);let s="EventSource constructor";Zl.argumentLengthCheck(arguments,1,s),vye||(vye=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Zl.converters.USVString(e,s,"url"),r=Zl.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Lye};let n=Uye,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=FQt;r.withCredentials&&(o=MQt,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Uye.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=DQt(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===Yb)return;this.#s=Gb;let e={request:this.#n,dispatcher:this.#a},r=s=>{Mye(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Mye(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?TQt(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=_ye,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new RQt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(xQt(A.type,A.options))}});SQt(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=NQt(e)}async#c(){this.#s!==Yb&&(this.#s=Gb,this.dispatchEvent(new Event("error")),await kQt(this.#o.reconnectionTime),this.#s===Gb&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Zl.brandCheck(this,t),this.#s!==Yb&&(this.#s=Yb,this.#i.abort(),this.#n=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}},Pye={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Gb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:_ye,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Yb,writable:!1}};Object.defineProperties(hC,Pye);Object.defineProperties(hC.prototype,Pye);Object.defineProperties(hC.prototype,{close:ap,onerror:ap,onmessage:ap,onopen:ap,readyState:ap,url:ap,withCredentials:ap});Zl.converters.EventSourceInitDict=Zl.dictionaryConverter([{key:"withCredentials",converter:Zl.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Zl.converters.any}]);Oye.exports={EventSource:hC,defaultReconnectionTime:Lye}});var P9=E((pBr,$e)=>{"use strict";var UQt=H0(),Gye=zy(),vQt=G0(),LQt=P0e(),_Qt=Y0(),PQt=c5(),OQt=cCe(),HQt=gCe(),Yye=tr(),nk=yt(),{InvalidArgumentError:sk}=Yye,fC=tIe(),GQt=Ky(),YQt=q5(),qQt=LIe(),VQt=W5(),JQt=x5(),WQt=i2(),{getGlobalDispatcher:qye,setGlobalDispatcher:zQt}=g2(),jQt=p2(),KQt=zx(),ZQt=jx();Object.assign(Gye.prototype,fC);$e.exports.Dispatcher=Gye;$e.exports.Client=UQt;$e.exports.Pool=vQt;$e.exports.BalancedPool=LQt;$e.exports.Agent=_Qt;$e.exports.ProxyAgent=PQt;$e.exports.EnvHttpProxyAgent=OQt;$e.exports Line truncated
%s`,U,U,I,s);var q=I.type==="*"?CY:I.type==="?"?mY:"\\"+I.type;n=!0,s=s.slice(0,I.reStart)+q+"\\("+U}f(),i&&(s+="\\\\");var x=!1;switch(s.charAt(0)){case"[":case".":case"(":x=!0}for(var P=a.length-1;P>-1;P--){var F=a[P],W=s.slice(0,F.reStart),$=s.slice(F.reStart,F.reEnd-8),ee=s.slice(F.reEnd-8,F.reEnd),ae=s.slice(F.reEnd);ee+=ae;var Be=W.split("(").length-1,Me=ae;for(p=0;p<Be;p++)Me=Me.replace(/\)[+*?]?/,"");ae=Me;var Pe="";ae===""&&e!==Ek&&(Pe="$");var Ut=W+$+ae+Pe+ee;s=Ut}if(s!==""&&n&&(s="(?=.)"+s),x&&(s=d+s),e===Ek)return[s,n];if(!n)return fwt(t);var Pr=r.nocase?"i":"";try{var zt=new RegExp("^"+s+"$",Pr)}catch{return new RegExp("$.")}return zt._glob=t,zt._src=s,zt}ko.makeRe=function(t,e){return new Tn(t,e||{}).makeRe()};Tn.prototype.makeRe=hwt;function hwt(){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?CY:e.dot?iwt:owt,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===IY?r:typeof o=="string"?gwt(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}ko.match=function(t,e,r){r=r||{};var s=new Tn(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Tn.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;Kb.sep!=="/"&&(e=e.split(Kb.sep).join("/")),e=e.split(dwe),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};Tn.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,o=t.length,a=e.length;n<o&&i<a;n++,i++){this.debug("matchOne loop");var A=e[i],c=t[n];if(this.debug(e,A,c),A===!1)return!1;if(A===IY){this.debug("GLOBSTAR",[e,A,c]);var u=n,l=i+1;if(l===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(n===o&&i===a)return!0;if(n===o)return r;if(i===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function fwt(t){return t.replace(/\\(.)/g,"$1")}function gwt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ew=E((RQr,Cwe)=>{"use strict";var Qwt="2.0.0",ywt=Number.MAX_SAFE_INTEGER||9007199254740991,bwt=16,wwt=250,Swt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Cwe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:bwt,MAX_SAFE_BUILD_LENGTH:wwt,MAX_SAFE_INTEGER:ywt,RELEASE_TYPES:Swt,SEMVER_SPEC_VERSION:Qwt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var tw=E((TQr,Iwe)=>{"use strict";var Nwt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Iwe.exports=Nwt});var BC=E((eu,Bwe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:QY,MAX_SAFE_BUILD_LENGTH:Dwt,MAX_LENGTH:Rwt}=ew(),Twt=tw();eu=Bwe.exports={};var xwt=eu.re=[],kwt=eu.safeRe=[],me=eu.src=[],Fwt=eu.safeSrc=[],Ce=eu.t={},Mwt=0,yY="[a-zA-Z0-9-]",Uwt=[["\\s",1],["\\d",Rwt],[yY,Dwt]],vwt=t=>{for(let[e,r]of Uwt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ut=(t,e,r)=>{let s=vwt(e),n=Mwt++;Twt(t,n,e),Ce[t]=n,me[n]=e,Fwt[n]=s,xwt[n]=new RegExp(e,r?"g":void 0),kwt[n]=new RegExp(s,r?"g":void 0)};ut("NUMERICIDENTIFIER","0|[1-9]\\d*");ut("NUMERICIDENTIFIERLOOSE","\\d+");ut("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${yY}*`);ut("MAINVERSION",`(${me[Ce.NUMERICIDENTIFIER]})\\.(${me[Ce.NUMERICIDENTIFIER]})\\.(${me[Ce.NUMERICIDENTIFIER]})`);ut("MAINVERSIONLOOSE",`(${me[Ce.NUMERICIDENTIFIERLOOSE]})\\.(${me[Ce.NUMERICIDENTIFIERLOOSE]})\\.(${me[Ce.NUMERICIDENTIFIERLOOSE]})`);ut("PRERELEASEIDENTIFIER",`(?:${me[Ce.NONNUMERICIDENTIFIER]}|${me[Ce.NUMERICIDENTIFIER]})`);ut("PRERELEASEIDENTIFIERLOOSE",`(?:${me[Ce.NONNUMERICIDENTIFIER]}|${me[Ce.NUMERICIDENTIFIERLOOSE]})`);ut("PRERELEASE",`(?:-(${me[Ce.PRERELEASEIDENTIFIER]}(?:\\.${me[Ce.PRERELEASEIDENTIFIER]})*))`);ut("PRERELEASELOOSE",`(?:-?(${me[Ce.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${me[Ce.PRERELEASEIDENTIFIERLOOSE]})*))`);ut("BUILDIDENTIFIER",`${yY}+`);ut("BUILD",`(?:\\+(${me[Ce.BUILDIDENTIFIER]}(?:\\.${me[Ce.BUILDIDENTIFIER]})*))`);ut("FULLPLAIN",`v?${me[Ce.MAINVERSION]}${me[Ce.PRERELEASE]}?${me[Ce.BUILD]}?`);ut("FULL",`^${me[Ce.FULLPLAIN]}$`);ut("LOOSEPLAIN",`[v=\\s]*${me[Ce.MAINVERSIONLOOSE]}${me[Ce.PRERELEASELOOSE]}?${me[Ce.BUILD]}?`);ut("LOOSE",`^${me[Ce.LOOSEPLAIN]}$`);ut("GTLT","((?:<|>)?=?)");ut("XRANGEIDENTIFIERLOOSE",`${me[Ce.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ut("XRANGEIDENTIFIER",`${me[Ce.NUMERICIDENTIFIER]}|x|X|\\*`);ut("XRANGEPLAIN",`[v=\\s]*(${me[Ce.XRANGEIDENTIFIER]})(?:\\.(${me[Ce.XRANGEIDENTIFIER]})(?:\\.(${me[Ce.XRANGEIDENTIFIER]})(?:${me[Ce.PRERELEASE]})?${me[Ce.BUILD]}?)?)?`);ut("XRANGEPLAINLOOSE",`[v=\\s]*(${me[Ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${me[Ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${me[Ce.XRANGEIDENTIFIERLOOSE]})(?:${me[Ce.PRERELEASELOOSE]})?${me[Ce.BUILD]}?)?)?`);ut("XRANGE",`^${me[Ce.GTLT]}\\s*${me[Ce.XRANGEPLAIN]}$`);ut("XRANGELOOSE",`^${me[Ce.GTLT]}\\s*${me[Ce.XRANGEPLAINLOOSE]}$`);ut("COERCEPLAIN",`(^|[^\\d])(\\d{1,${QY}})(?:\\.(\\d{1,${QY}}))?(?:\\.(\\d{1,${QY}}))?`);ut("COERCE",`${me[Ce.COERCEPLAIN]}(?:$|[^\\d])`);ut("COERCEFULL",me[Ce.COERCEPLAIN]+`(?:${me[Ce.PRERELEASE]})?(?:${me[Ce.BUILD]})?(?:$|[^\\d])`);ut("COERCERTL",me[Ce.COERCE],!0);ut("COERCERTLFULL",me[Ce.COERCEFULL],!0);ut("LONETILDE","(?:~>?)");ut("TILDETRIM",`(\\s*)${me[Ce.LONETILDE]}\\s+`,!0);eu.tildeTrimReplace="$1~";ut("TILDE",`^${me[Ce.LONETILDE]}${me[Ce.XRANGEPLAIN]}$`);ut("TILDELOOSE",`^${me[Ce.LONETILDE]}${me[Ce.XRANGEPLAINLOOSE]}$`);ut("LONECARET","(?:\\^)");ut("CARETTRIM",`(\\s*)${me[Ce.LONECARET]}\\s+`,!0);eu.caretTrimReplace="$1^";ut("CARET",`^${me[Ce.LONECARET]}${me[Ce.XRANGEPLAIN]}$`);ut("CARETLOOSE",`^${me[Ce.LONECARET]}${me[Ce.XRANGEPLAINLOOSE]}$`);ut("COMPARATORLOOSE",`^${me[Ce.GTLT]}\\s*(${me[Ce.LOOSEPLAIN]})$|^$`);ut("COMPARATOR",`^${me[Ce.GTLT]}\\s*(${me[Ce.FULLPLAIN]})$|^$`);ut("COMPARATORTRIM",`(\\s*)${me[Ce.GTLT]}\\s*(${me[Ce.LOOSEPLAIN]}|${me[Ce.XRANGEPLAIN]})`,!0);eu.comparatorTrimReplace="$1$2$3";ut("HYPHENRANGE",`^\\s*(${me[Ce.XRANGEPLAIN]})\\s+-\\s+(${me[Ce.XRANGEPLAIN]})\\s*$`);ut("HYPHENRANGELOOSE",`^\\s*(${me[Ce.XRANGEPLAINLOOSE]})\\s+-\\s+(${me[Ce.XRANGEPLAINLOOSE]})\\s*$`);ut("STAR","(<|>)?=?\\s*\\*");ut("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ut("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Qk=E((xQr,Qwe)=>{"use strict";var Lwt=Object.freeze({loose:!0}),_wt=Object.freeze({}),Pwt=t=>t?typeof t!="object"?Lwt:t:_wt;Qwe.exports=Pwt});var bY=E((kQr,wwe)=>{"use strict";var ywe=/^[0-9]+$/,bwe=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=ywe.test(t),s=ywe.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},Owt=(t,e)=>bwe(e Line truncated
`).join(`
`+i),t.push(s+"m+"+xG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=dsr()+e+" "+t[0]}function dsr(){return lo.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hsr(...t){return process.stderr.write(DG.formatWithOptions(lo.inspectOpts,...t)+`
`)}function gsr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function fsr(){return process.env.DEBUG}function psr(t){t.inspectOpts={};let e=Object.keys(lo.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lo.inspectOpts[e[r]]}xG.exports=mie()(lo);var{formatters:qYe}=xG.exports;qYe.o=function(t){return this.inspectOpts.colors=this.useColors,DG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qYe.O=function(t){return this.inspectOpts.colors=this.useColors,DG.inspect(t,this.inspectOpts)}});var TG=f((EDn,Iie)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Iie.exports=LYe():Iie.exports=GYe()});var VYe=f(YA=>{"use strict";var msr=YA&&YA.__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]})),Esr=YA&&YA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YYe=YA&&YA.__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)&&msr(e,t,r);return Esr(e,t),e};Object.defineProperty(YA,"__esModule",{value:!0});YA.req=YA.json=YA.toBuffer=void 0;var Csr=YYe(B("http")),Isr=YYe(B("https"));async function JYe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}YA.toBuffer=JYe;async function Bsr(t){let r=(await JYe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}YA.json=Bsr;function Qsr(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Isr:Csr).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}YA.req=Qsr});var Qie=f(qc=>{"use strict";var zYe=qc&&qc.__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]})),ysr=qc&&qc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jYe=qc&&qc.__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)&&zYe(e,t,r);return ysr(e,t),e},bsr=qc&&qc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zYe(e,t,r)};Object.defineProperty(qc,"__esModule",{value:!0});qc.Agent=void 0;var wsr=jYe(B("net")),WYe=jYe(B("http")),Nsr=B("https");bsr(VYe(),qc);var zh=Symbol("AgentBaseInternalState"),Bie=class extends WYe.Agent{constructor(e){super(e),this[zh]={}}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 wsr.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)?Nsr.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 WYe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[zh].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[zh].currentSocket;if(this[zh].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[zh].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[zh]&&(this[zh].defaultPort=e)}get protocol(){return this[zh].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[zh]&&(this[zh].protocol=e)}};qc.Agent=Bie});var KYe=f(dN=>{"use strict";var Ssr=dN&&dN.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dN,"__esModule",{value:!0});dN.parseProxyResponse=void 0;var Rsr=Ssr(TG()),kG=(0,Rsr.default)("https-proxy-agent:parse-proxy-response");function Dsr(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(),kG("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),kG("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(n+"m+"+sF.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=dDt()+e+" "+t[0]}function dDt(){return ln.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hDt(...t){return process.stderr.write(rF.formatWithOptions(ln.inspectOpts,...t)+`
`)}function fDt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function gDt(){return process.env.DEBUG}function pDt(t){t.inspectOpts={};let e=Object.keys(ln.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ln.inspectOpts[e[r]]}sF.exports=cq()(ln);var{formatters:ZNe}=sF.exports;ZNe.o=function(t){return this.inspectOpts.colors=this.useColors,rF.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};ZNe.O=function(t){return this.inspectOpts.colors=this.useColors,rF.inspect(t,this.inspectOpts)}});var nF=E((ewr,dq)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?dq.exports=VNe():dq.exports=XNe()});var t1e=E(Xi=>{"use strict";var EDt=Xi&&Xi.__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]})),mDt=Xi&&Xi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$Ne=Xi&&Xi.__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)&&EDt(e,t,r);return mDt(e,t),e};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.req=Xi.json=Xi.toBuffer=void 0;var CDt=$Ne(B("http")),IDt=$Ne(B("https"));async function e1e(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Xi.toBuffer=e1e;async function BDt(t){let r=(await e1e(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Xi.json=BDt;function QDt(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?IDt:CDt).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Xi.req=QDt});var fq=E(Uo=>{"use strict";var s1e=Uo&&Uo.__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]})),yDt=Uo&&Uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),n1e=Uo&&Uo.__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)&&s1e(e,t,r);return yDt(e,t),e},bDt=Uo&&Uo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&s1e(e,t,r)};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.Agent=void 0;var wDt=n1e(B("net")),r1e=n1e(B("http")),SDt=B("https");bDt(t1e(),Uo);var su=Symbol("AgentBaseInternalState"),hq=class extends r1e.Agent{constructor(e){super(e),this[su]={}}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 wDt.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)?SDt.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 r1e.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[su].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[su].currentSocket;if(this[su].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[su].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[su]&&(this[su].defaultPort=e)}get protocol(){return this[su].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[su]&&(this[su].protocol=e)}};Uo.Agent=hq});var i1e=E(TC=>{"use strict";var NDt=TC&&TC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(TC,"__esModule",{value:!0});TC.parseProxyResponse=void 0;var DDt=NDt(nF()),iF=(0,DDt.default)("https-proxy-agent:parse-proxy-response");function RDt(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(),iF("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),iF("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(d===-1){kG("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),g=h.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=g.split(" "),C=+p[1],m=p.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let w=y.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let H=y.slice(0,w).toLowerCase(),z=y.slice(w+1).trimStart(),F=I[H];typeof F=="string"?I[H]=[F,z]:Array.isArray(F)?F.push(z):I[H]=z}kG("got proxy server response: %o %o",g,I),o(),e({connect:{statusCode:C,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}dN.parseProxyResponse=Dsr});var yie=f($u=>{"use strict";var xsr=$u&&$u.__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]})),Tsr=$u&&$u.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),e5e=$u&&$u.__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)&&xsr(e,t,r);return Tsr(e,t),e},t5e=$u&&$u.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($u,"__esModule",{value:!0});$u.HttpsProxyAgent=void 0;var FG=e5e(B("net")),XYe=e5e(B("tls")),ksr=t5e(B("assert")),Fsr=t5e(TG()),Msr=Qie(),vsr=B("url"),Lsr=KYe(),qk=(0,Fsr.default)("https-proxy-agent"),ZYe=t=>t.servername===void 0&&t.host&&!FG.isIP(t.host)?{...t,servername:t.host}:t,MG=class extends Msr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new vsr.URL(e):e,this.proxyHeaders=r?.headers??{},qk("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?$Ye(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:"?(qk("Creating `tls.Socket`: %o",this.connectOpts),s=XYe.connect(ZYe(this.connectOpts))):(qk("Creating `net.Socket`: %o",this.connectOpts),s=FG.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=FG.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,Lsr.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",Usr),r.secureEndpoint?(qk("Upgrading socket connection to TLS"),XYe.connect({...$Ye(ZYe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new FG.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{qk("Replaying proxy buffer for failed request"),(0,ksr.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};MG.protocols=["http","https"];$u.HttpsProxyAgent=MG;function Usr(t){t.resume()}function $Ye(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var bie=f(el=>{"use strict";var Psr=el&&el.__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]})),_sr=el&&el.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),n5e=el&&el.__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)&&Psr(e,t,r);return _sr(e,t),e},Osr=el&&el.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(el,"__esModule",{value:!0});el.HttpProxyAgent=void 0;var Hsr=n5e(B("net")),qsr=n5e(B("tls")),Gsr=Osr(TG()),Ysr=B("events"),Jsr=Qie(),r5e=B("url"),hN=(0,Gsr.default)("http-proxy-agent"),vG=class extends Jsr.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new r5e.URL(e):e,this.proxyHeaders=r?.headers??{},hN("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?Vsr(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 r5e.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;hN("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hN("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`);if(d===-1){iF("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(" "),C=+p[1],m=p.slice(2).join(" "),I={};for(let Q of h){if(!Q)continue;let b=Q.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${Q}"`));let U=Q.slice(0,b).toLowerCase(),q=Q.slice(b+1).trimStart(),x=I[U];typeof x=="string"?I[U]=[x,q]:Array.isArray(x)?x.push(q):I[U]=q}iF("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:C,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}TC.parseProxyResponse=RDt});var l1e=E(Ma=>{"use strict";var TDt=Ma&&Ma.__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]})),xDt=Ma&&Ma.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),c1e=Ma&&Ma.__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)&&TDt(e,t,r);return xDt(e,t),e},u1e=Ma&&Ma.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ma,"__esModule",{value:!0});Ma.HttpsProxyAgent=void 0;var oF=c1e(B("net")),o1e=c1e(B("tls")),kDt=u1e(B("assert")),FDt=u1e(nF()),MDt=fq(),UDt=B("url"),vDt=i1e(),pw=(0,FDt.default)("https-proxy-agent"),a1e=t=>t.servername===void 0&&t.host&&!oF.isIP(t.host)?{...t,servername:t.host}:t,aF=class extends MDt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new UDt.URL(e):e,this.proxyHeaders=r?.headers??{},pw("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?A1e(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:"?(pw("Creating `tls.Socket`: %o",this.connectOpts),n=o1e.connect(a1e(this.connectOpts))):(pw("Creating `net.Socket`: %o",this.connectOpts),n=oF.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=oF.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,vDt.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",LDt),r.secureEndpoint?(pw("Upgrading socket connection to TLS"),o1e.connect({...A1e(a1e(r),"host","path","port"),socket:n})):n;n.destroy();let l=new oF.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{pw("Replaying proxy buffer for failed request"),(0,kDt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};aF.protocols=["http","https"];Ma.HttpsProxyAgent=aF;function LDt(t){t.resume()}function A1e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var f1e=E(Ua=>{"use strict";var _Dt=Ua&&Ua.__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]})),PDt=Ua&&Ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),h1e=Ua&&Ua.__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)&&_Dt(e,t,r);return PDt(e,t),e},ODt=Ua&&Ua.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.HttpProxyAgent=void 0;var HDt=h1e(B("net")),GDt=h1e(B("tls")),YDt=ODt(nF()),qDt=B("events"),VDt=fq(),d1e=B("url"),xC=(0,YDt.default)("http-proxy-agent"),AF=class extends VDt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new d1e.URL(e):e,this.proxyHeaders=r?.headers??{},xC("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?JDt(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 d1e.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;xC("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(xC("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+n.substring(s),hN("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(hN("Creating `tls.Socket`: %o",this.connectOpts),i=qsr.connect(this.connectOpts)):(hN("Creating `net.Socket`: %o",this.connectOpts),i=Hsr.connect(this.connectOpts)),await(0,Ysr.once)(i,"connect"),i}};vG.protocols=["http","https"];el.HttpProxyAgent=vG;function Vsr(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var wie=f(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.globalNoProxyList=tl.proxyPolicyName=void 0;tl.loadNoProxy=A5e;tl.getDefaultProxySettings=rir;tl.proxyPolicy=sir;var Wsr=yie(),zsr=bie(),jsr=Uk(),Ksr="HTTPS_PROXY",Xsr="HTTP_PROXY",Zsr="ALL_PROXY",$sr="NO_PROXY";tl.proxyPolicyName="proxyPolicy";tl.globalNoProxyList=[];var o5e=!1,eir=new Map;function LG(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function a5e(){if(!process)return;let t=LG(Ksr),e=LG(Zsr),r=LG(Xsr);return t||e||r}function tir(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let i of e)i[0]==="."?(n.endsWith(i)||n.length===i.length-1&&n===i.slice(1))&&(s=!0):n===i&&(s=!0);return r?.set(n,s),s}function A5e(){let t=LG($sr);return o5e=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function rir(t){if(!t&&(t=a5e(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function nir(){let t=a5e();return t?new URL(t):void 0}function s5e(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function i5e(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&jsr.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let i=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new zsr.HttpProxyAgent(r,{headers:i})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Wsr.HttpsProxyAgent(r,{headers:i})),t.agent=e.httpsProxyAgent)}function sir(t,e){o5e||tl.globalNoProxyList.push(...A5e());let r=t?s5e(t):nir(),n={};return{name:tl.proxyPolicyName,async sendRequest(s,i){return!s.proxySettings&&r&&!tir(s.url,e?.customNoProxyList??tl.globalNoProxyList,e?.customNoProxyList?void 0:eir)?i5e(s,n,r):s.proxySettings&&i5e(s,n,s5e(s.proxySettings)),i(s)}}}});var Nie=f(gN=>{"use strict";Object.defineProperty(gN,"__esModule",{value:!0});gN.agentPolicyName=void 0;gN.agentPolicy=iir;gN.agentPolicyName="agentPolicy";function iir(t){return{name:gN.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var Sie=f(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0});fN.tlsPolicyName=void 0;fN.tlsPolicy=oir;fN.tlsPolicyName="tlsPolicy";function oir(t){return{name:fN.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var Gk=f(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.isNodeReadableStream=c5e;a0.isWebReadableStream=u5e;a0.isBinaryBody=air;a0.isReadableStream=l5e;a0.isBlob=Air;function c5e(t){return!!(t&&typeof t.pipe=="function")}function u5e(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function air(t){return t!==void 0&&(t instanceof Uint8Array||l5e(t)||typeof t=="function"||t instanceof Blob)}function l5e(t){return c5e(t)||u5e(t)}function Air(t){return typeof t.stream=="function"}});var g5e=f(Die=>{"use strict";Object.defineProperty(Die,"__esModule",{value:!0});Die.concat=dir;var Rie=B("stream"),cir=Gk();async function*d5e(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function uir(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=d5e.bind(t)),t.values||(t.values=d5e.bind(t))}function h5e(t){return t instanceof ReadableStream?(uir(t),Rie.Readable.fromWeb(t)):t}function lir(t){return t instanceof Uint8Array?Rie.Readable.from(Buffer.from(t)):(0,cir.isBlob)(t)?h5e(t.stream()):h5e(t)}async function dir(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(lir);return Rie.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}});var xie=f(mN=>{"use strict";Object.defineProperty(mN,"__esModule",{value:!0});mN.multipartPolicyName=void 0;mN.multipartPolicy=bir;var pN=s0(),hir=Gk(),gir=dG(),fir=g5e();function pir(){return`----AzSDKFormBoundary${(0,gir.randomUUID)()}`}function mir(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
`;return e}function Eir(t){return t instanceof Uint8Array?t.byteLength:(0,hir.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function Cir(t){let e=0;for(let r of t){let n=Eir(r);if(n===void 0)return;e+=n}return e}async function Iir(t,e,r){let n=[(0,pN.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(i=>[(0,pN.stringToUint8Array)(`\r
`,"utf-8"),(0,pN.stringToUint8Array)(mir(i.headers),"utf-8"),(0,pN.stringToUint8Array)(`\r
`,"utf-8"),i.body,(0,pN.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,pN.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=Cir(n);s&&t.headers.set("Content-Length",s),t.body=await(0,fir.concat)(n)}mN.multipartPolicyName="multipartPolicy";var Bir=70,Qir=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function yir(t){if(t.length>Bir)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Qir.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function bir(){return{name:mN.multipartPolicyName,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?yir(r):r=pir(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Iir(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var m5e=f(Tie=>{"use strict";Object.defineProperty(Tie,"__esModule",{value:!0});Tie.createPipelineFromOptions=vir;var wir=rie(),Nir=Yse(),Sir=nie(),Rir=oie(),Dir=aie(),xir=fie(),Tir=pie(),f5e=Hk(),kir=wie(),Fir=Nie(),Mir=Sie(),p5e=xie();function vir(t){let e=(0,Nir.createEmptyPipeline)();return f5e.isNodeLike&&(t.agent&&e.addPolicy((0,Fir.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,Mir.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,kir.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,Dir.decompressResponsePolicy)())),e.addPolicy((0,Tir.formDataPolicy)(),{beforePolicies:[p5e.multipartPolicyName]}),e.addPolicy((0,Rir.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,p5e.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,xir.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),f5e.isNodeLike&&e.addPolicy((0,Sir.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,wir.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var E5e=f(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0});EN.apiVersionPolicyName=void 0;EN.apiVersionPolicy=Lir;EN.apiVersionPolicyName="ApiVersionPolicy";function Lir(t){return{name:EN.apiVersionPolicyName,sendRequest:(e,r)=>{let n=new URL(e.url);return!n.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(n.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var C5e=f(CN=>{"use strict";Object.defineProperty(CN,"__esModule",{value:!0});CN.isOAuth2TokenCredential=Uir;CN.isBearerTokenCredential=Pir;CN.isBasicCredential=_ir;CN.isApiKeyCredential=Oir;function Uir(t){return"getOAuth2Token"in t}function Pir(t){return"getBearerToken"in t}function _ir(t){return"username"in t&&"password"in t}function Oir(t){return"key"in t}});var Yk=f(kie=>{"use strict";Object.defineProperty(kie,"__esModule",{value:!0});kie.ensureSecureConnection=Yir;var Hir=Uk(),I5e=!1;function qir(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function Gir(){let t="Sending token over insecure transport. Assume any token issued is compromised.";Hir.logger.warning(t),typeof process?.emitWarning=="function"&&!I5e&&(I5e=!0,process.emitWarning(t))}function Yir(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(qir(t,e))Gir();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var B5e=f(IN=>{"use strict";Object.defineProperty(IN,"__esModule",{value:!0});IN.apiKeyAuthenticationPolicyName=void 0;IN.apiKeyAuthenticationPolicy=Vir;var Jir=Yk();IN.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function Vir(t){return{name:IN.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,Jir.ensureSecureConnection)(e,t);let n=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!n)return r(e);if(n.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`);return e.headers.set(n.name,t.credential.key),r(e)}}}});var y5e=f(BN=>{"use strict";Object.defineProperty(BN,"__esModule",{value:!0});BN.basicAuthenticationPolicyName=void 0;BN.basicAuthenticationPolicy=zir;var Q5e=s0(),Wir=Yk();BN.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function zir(t){return{name:BN.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,Wir.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(a=>a.kind==="http"&&a.scheme==="basic"))return r(e);let{username:s,password:i}=t.credential,o=(0,Q5e.uint8ArrayToString)((0,Q5e.stringToUint8Array)(`${s}:${i}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${o}`),r(e)}}}});var b5e=f(QN=>{"use strict";Object.defineProperty(QN,"__esModule",{value:!0});QN.bearerAuthenticationPolicyName= Line truncated
`).join(""))}return e(t)}}}});var m9e=f(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.auxiliaryAuthenticationHeaderPolicyName=void 0;l0.auxiliaryAuthenticationHeaderPolicy=Fcr;var xcr=voe(),Tcr=Wk();l0.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var p9e="x-ms-authorization-auxiliary";async function kcr(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(e,s))?.token??""}function Fcr(t){let{credentials:e,scopes:r}=t,n=t.logger||Tcr.logger,s=new WeakMap;return{name:l0.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(i,o){if(!i.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return n.info(`${l0.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),o(i);let a=[];for(let c of e){let u=s.get(c);u||(u=(0,xcr.createTokenCycler)(c),s.set(c,u)),a.push(kcr({scopes:Array.isArray(r)?r:[r],request:i,getAccessToken:u,logger:n}))}let A=(await Promise.all(a)).filter(c=>!!c);return A.length===0?(n.warning(`None of the auxiliary tokens are valid. ${p9e} header will not be set.`),o(i)):(i.headers.set(p9e,A.map(c=>`Bearer ${c}`).join(", ")),o(i))}}}});var Ji=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createFileFromStream=ye.createFile=ye.agentPolicyName=ye.agentPolicy=ye.auxiliaryAuthenticationHeaderPolicyName=ye.auxiliaryAuthenticationHeaderPolicy=ye.ndJsonPolicyName=ye.ndJsonPolicy=ye.bearerTokenAuthenticationPolicyName=ye.bearerTokenAuthenticationPolicy=ye.formDataPolicyName=ye.formDataPolicy=ye.tlsPolicyName=ye.tlsPolicy=ye.userAgentPolicyName=ye.userAgentPolicy=ye.defaultRetryPolicy=ye.tracingPolicyName=ye.tracingPolicy=ye.retryPolicy=ye.throttlingRetryPolicyName=ye.throttlingRetryPolicy=ye.systemErrorRetryPolicyName=ye.systemErrorRetryPolicy=ye.redirectPolicyName=ye.redirectPolicy=ye.getDefaultProxySettings=ye.proxyPolicyName=ye.proxyPolicy=ye.multipartPolicyName=ye.multipartPolicy=ye.logPolicyName=ye.logPolicy=ye.setClientRequestIdPolicyName=ye.setClientRequestIdPolicy=ye.exponentialRetryPolicyName=ye.exponentialRetryPolicy=ye.decompressResponsePolicyName=ye.decompressResponsePolicy=ye.isRestError=ye.RestError=ye.createPipelineRequest=ye.createHttpHeaders=ye.createDefaultHttpClient=ye.createPipelineFromOptions=ye.createEmptyPipeline=void 0;var Mcr=Gie();Object.defineProperty(ye,"createEmptyPipeline",{enumerable:!0,get:function(){return Mcr.createEmptyPipeline}});var vcr=$6e();Object.defineProperty(ye,"createPipelineFromOptions",{enumerable:!0,get:function(){return vcr.createPipelineFromOptions}});var Lcr=e9e();Object.defineProperty(ye,"createDefaultHttpClient",{enumerable:!0,get:function(){return Lcr.createDefaultHttpClient}});var Ucr=t9e();Object.defineProperty(ye,"createHttpHeaders",{enumerable:!0,get:function(){return Ucr.createHttpHeaders}});var Pcr=r9e();Object.defineProperty(ye,"createPipelineRequest",{enumerable:!0,get:function(){return Pcr.createPipelineRequest}});var E9e=s8();Object.defineProperty(ye,"RestError",{enumerable:!0,get:function(){return E9e.RestError}});Object.defineProperty(ye,"isRestError",{enumerable:!0,get:function(){return E9e.isRestError}});var C9e=hoe();Object.defineProperty(ye,"decompressResponsePolicy",{enumerable:!0,get:function(){return C9e.decompressResponsePolicy}});Object.defineProperty(ye,"decompressResponsePolicyName",{enumerable:!0,get:function(){return C9e.decompressResponsePolicyName}});var I9e=s9e();Object.defineProperty(ye,"exponentialRetryPolicy",{enumerable:!0,get:function(){return I9e.exponentialRetryPolicy}});Object.defineProperty(ye,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return I9e.exponentialRetryPolicyName}});var B9e=Eoe();Object.defineProperty(ye,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return B9e.setClientRequestIdPolicy}});Object.defineProperty(ye,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return B9e.setClientRequestIdPolicyName}});var Q9e=Zie();Object.defineProperty(ye,"logPolicy",{enumerable:!0,get:function(){return Q9e.logPolicy}});Object.defineProperty(ye,"logPolicyName",{enumerable:!0,get:function(){return Q9e.logPolicyName}});var y9e=doe();Object.defineProperty(ye,"multipartPolicy",{enumerable:!0,get:function(){return y9e.multipartPolicy}});Object.defineProperty(ye,"multipartPolicyName",{enumerable:!0,get:function(){return y9e.multipartPolicyName}});var Loe=moe();Object.defineProperty(ye,"proxyPolicy",{enumerable:!0,get:function(){return Loe.proxyPolicy}});Object.defineProperty(ye,"proxyPolicyName",{enumerable:!0,get:function(){return Loe.proxyPolicyName}});Object.defineProperty(ye,"getDefaultProxySettings",{enumerable:!0,get:function(){return Loe.getDefaultProxySettings}});var b9e=$ie();Object.defineProperty(ye,"redirectPolicy",{enumerable:!0,get:function(){return b9e.re Line truncated
`&&Q[J]!=="\r";J++)Ee+=Q[J];if(Ee=Ee.trim(),Ee[Ee.length-1]==="/"&&(Ee=Ee.substring(0,Ee.length-1),J--),!i(Ee)){let bt;return bt=Ee.trim().length===0?"Invalid space after '<'.":"Tag '"+Ee+"' is an invalid name.",m("InvalidTag",bt,y(Q,J))}let Me=h(Q,J);if(Me===!1)return m("InvalidAttr","Attributes for '"+Ee+"' have open quote.",y(Q,J));let zt=Me.value;if(J=Me.index,zt[zt.length-1]==="/"){let bt=J-zt.length;zt=zt.substring(0,zt.length-1);let pr=p(zt,b);if(pr!==!0)return m(pr.err.code,pr.err.msg,y(Q,bt+pr.err.line));j=!0}else if(ae){if(!Me.tagClosed)return m("InvalidTag","Closing tag '"+Ee+"' doesn't have proper closing.",y(Q,J));if(zt.trim().length>0)return m("InvalidTag","Closing tag '"+Ee+"' can't have attributes or invalid starting.",y(Q,ue));if(P.length===0)return m("InvalidTag","Closing tag '"+Ee+"' has not been opened.",y(Q,ue));{let bt=P.pop();if(Ee!==bt.tagName){let pr=y(Q,bt.tagStartPos);return m("InvalidTag","Expected closing tag '"+bt.tagName+"' (opened in line "+pr.line+", col "+pr.col+") instead of closing tag '"+Ee+"'.",y(Q,ue))}P.length==0&&(q=!0)}}else{let bt=p(zt,b);if(bt!==!0)return m(bt.err.code,bt.err.msg,y(Q,J-zt.length+bt.err.line));if(q===!0)return m("InvalidXml","Multiple possible root nodes found.",y(Q,J));b.unpairedTags.indexOf(Ee)!==-1||P.push({tagName:Ee,tagStartPos:ue}),j=!0}for(J++;J<Q.length;J++)if(Q[J]==="<"){if(Q[J+1]==="!"){J++,J=u(Q,J);continue}if(Q[J+1]!=="?")break;if(J=c(Q,++J),J.err)return J}else if(Q[J]==="&"){let bt=C(Q,J);if(bt==-1)return m("InvalidChar","char '&' is not expected.",y(Q,J));J=bt}else if(q===!0&&!A(Q[J]))return m("InvalidXml","Extra text at the end",y(Q,J));Q[J]==="<"&&J--}}}return j?P.length==1?m("InvalidTag","Unclosed tag '"+P[0].tagName+"'.",y(Q,P[0].tagStartPos)):!(P.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(P.map((J=>J.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)}function A(Q){return Q===" "||Q===" "||Q===`
`||Q==="\r"}function c(Q,b){let P=b;for(;b<Q.length;b++)if(!(Q[b]!="?"&&Q[b]!=" ")){let j=Q.substr(P,b-P);if(b>5&&j==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",y(Q,b));if(Q[b]=="?"&&Q[b+1]==">"){b++;break}}return b}function u(Q,b){if(Q.length>b+5&&Q[b+1]==="-"&&Q[b+2]==="-"){for(b+=3;b<Q.length;b++)if(Q[b]==="-"&&Q[b+1]==="-"&&Q[b+2]===">"){b+=2;break}}else if(Q.length>b+8&&Q[b+1]==="D"&&Q[b+2]==="O"&&Q[b+3]==="C"&&Q[b+4]==="T"&&Q[b+5]==="Y"&&Q[b+6]==="P"&&Q[b+7]==="E"){let P=1;for(b+=8;b<Q.length;b++)if(Q[b]==="<")P++;else if(Q[b]===">"&&(P--,P===0))break}else if(Q.length>b+9&&Q[b+1]==="["&&Q[b+2]==="C"&&Q[b+3]==="D"&&Q[b+4]==="A"&&Q[b+5]==="T"&&Q[b+6]==="A"&&Q[b+7]==="["){for(b+=8;b<Q.length;b++)if(Q[b]==="]"&&Q[b+1]==="]"&&Q[b+2]===">"){b+=2;break}}return b}let l='"',d="'";function h(Q,b){let P="",j="",q=!1;for(;b<Q.length;b++){if(Q[b]===l||Q[b]===d)j===""?j=Q[b]:j!==Q[b]||(j="");else if(Q[b]===">"&&j===""){q=!0;break}P+=Q[b]}return j===""&&{value:P,index:b,tagClosed:q}}let g=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function p(Q,b){let P=s(Q,g),j={};for(let q=0;q<P.length;q++){if(P[q][1].length===0)return m("InvalidAttr","Attribute '"+P[q][2]+"' has no space in starting.",w(P[q]));if(P[q][3]!==void 0&&P[q][4]===void 0)return m("InvalidAttr","Attribute '"+P[q][2]+"' is without value.",w(P[q]));if(P[q][3]===void 0&&!b.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+P[q][2]+"' is not allowed.",w(P[q]));let J=P[q][2];if(!I(J))return m("InvalidAttr","Attribute '"+J+"' is an invalid name.",w(P[q]));if(j.hasOwnProperty(J))return m("InvalidAttr","Attribute '"+J+"' is repeated.",w(P[q]));j[J]=1}return!0}function C(Q,b){if(Q[++b]===";")return-1;if(Q[b]==="#")return(function(j,q){let J=/\d/;for(j[q]==="x"&&(q++,J=/[\da-fA-F]/);q<j.length;q++){if(j[q]===";")return q;if(!j[q].match(J))break}return-1})(Q,++b);let P=0;for(;b<Q.length;b++,P++)if(!(Q[b].match(/\w/)&&P<20)){if(Q[b]===";")break;return-1}return b}function m(Q,b,P){return{err:{code:Q,msg:b,line:P.line||P,col:P.col}}}function I(Q){return i(Q)}function y(Q,b){let P=Q.substring(0,b).split(/\r?\n/);return{line:P.length,col:P[P.length-1].length+1}}function w(Q){return Q.startIndex+Q[1].length}let H={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(Q,b){return b},attributeValueProcessor:function(Q,b){return b},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Q,b,P){return Q},captureMetaData:!1},z;z=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class F{constructor(b){this.tagname=b,this.child=[],this[":@"]={}}add(b,P){b==="__proto__"&&(b="#__proto__"),this.child.push({[b]:P})}addChild(b,P){b.tagname==="__proto__"&&(b.tagname="#__proto__"),b[":@"]&&Object.keys(b[":@"]).length>0?this.child.push({[b.tagname]:b.child,":@":b[":@"]}):this.child.push({[b.tagname]:b.child}),P!==void 0&&(this.child[this.child.length-1][z]={startIndex:P})}static getMetaDataSymbol(){return z}}function W(Q,b){let P={};if(Q[b+3]!=="O"||Q[b+4]!=="C"||Q[b+5]!=="T"||Q[b+6]!=="Y"||Q[b+7]!=="P"||Q[b+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{b+=9;let j=1,q=!1,J=!1,ue="";for(;b<Q.length;b++)if(Q[b]!=="<"||J)if(Q[b]===">"){if(J?Q[b-1]==="-"&&Q[b-2]==="-"&&(J=!1,j--):j--,j===0)break}else Q[b]==="["?q=!0:ue+=Q[b];else{if(q&&oe(Q,b)){let ae,Ee;b+=7,[ae,Ee,b]=U(Q,b+1),Ee.indexOf("&")===-1&&(P[Je(ae)]={regx:RegExp(`&${ae};`,"g"),val:Ee})}else if(q&&Z(Q,b))b+=8;else if(q&&he(Q,b))b+=8;else if(q&&Se(Q,b))b+=9;else{if(!ee)throw new Error("Invalid DOCTYPE");J=!0}j++,ue=""}if(j!==0)throw new Error("Unclosed DOCTYPE")}return{entities:P,i:b}}function U(Q,b){let P="";for(;b<Q.length&&Q[b]!=="'"&&Q[b]!=='"';b++)P+=Q[b];if(P=P.trim(),P.indexOf(" ")!==-1)throw new Error("External entites are not supported");let j=Q[b++],q="";for(;b<Q.length&&Q[b]!==j;b++)q+=Q[b];return[P,q,b]}function ee(Q,b){return Q[b+1]==="!"&&Q[b+2]==="-"&&Q[b+3]==="-"}function oe(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="N"&&Q[b+4]==="T"&&Q[b+5]==="I"&&Q[b+6]==="T"&&Q[b+7]==="Y"}function Z(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="L"&&Q[b+4]==="E"&&Q[b+5]==="M"&&Q[b+6]==="E"&&Q[b+7]==="N"&&Q[b+8]==="T"}function he(Q,b){return Q[b+1]==="!"&&Q[b+2]==="A"&&Q[b+3]==="T"&&Q[b+4]==="T"&&Q[b+5]==="L"&&Q[b+6]==="I"&&Q[b+7]==="S"&&Q[b+8]==="T"}function Se(Q,b){return Q[b+1]==="!"&&Q[b+2]==="N"&&Q[b+3]==="O"&&Q[b+4]==="T"&&Q[b+5]==="A"&&Q[b+6]==="T"&&Q[b+7]==="I"&&Q[b+8]==="O"&&Q[b+9]==="N"}function Je(Q){if(i(Q))return Q;throw new Error(`Invalid entity name ${Q}`)}let He=/^[-+]Line truncated
`);let b=new F("!xml"),P=b,j="",q="";for(let J=0;J<Q.length;J++)if(Q[J]==="<")if(Q[J+1]==="/"){let ue=Ic(Q,">",J,"Closing Tag is not closed."),ae=Q.substring(J+2,ue).trim();if(this.options.removeNSPrefix){let zt=ae.indexOf(":");zt!==-1&&(ae=ae.substr(zt+1))}this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&(j=this.saveTextToParentTag(j,P,q));let Ee=q.substring(q.lastIndexOf(".")+1);if(ae&&this.options.unpairedTags.indexOf(ae)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${ae}>`);let Me=0;Ee&&this.options.unpairedTags.indexOf(Ee)!==-1?(Me=q.lastIndexOf(".",q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Me=q.lastIndexOf("."),q=q.substring(0,Me),P=this.tagsNodeStack.pop(),j="",J=ue}else if(Q[J+1]==="?"){let ue=zI(Q,J,!1,"?>");if(!ue)throw new Error("Pi Tag is not closed.");if(j=this.saveTextToParentTag(j,P,q),!(this.options.ignoreDeclaration&&ue.tagName==="?xml"||this.options.ignorePiTags)){let ae=new F(ue.tagName);ae.add(this.options.textNodeName,""),ue.tagName!==ue.tagExp&&ue.attrExpPresent&&(ae[":@"]=this.buildAttributesMap(ue.tagExp,q,ue.tagName)),this.addChild(P,ae,q,J)}J=ue.closeIndex+1}else if(Q.substr(J+1,3)==="!--"){let ue=Ic(Q,"-->",J+4,"Comment is not closed.");if(this.options.commentPropName){let ae=Q.substring(J+4,ue-2);j=this.saveTextToParentTag(j,P,q),P.add(this.options.commentPropName,[{[this.options.textNodeName]:ae}])}J=ue}else if(Q.substr(J+1,2)==="!D"){let ue=W(Q,J);this.docTypeEntities=ue.entities,J=ue.i}else if(Q.substr(J+1,2)==="!["){let ue=Ic(Q,"]]>",J,"CDATA is not closed.")-2,ae=Q.substring(J+9,ue);j=this.saveTextToParentTag(j,P,q);let Ee=this.parseTextData(ae,P.tagname,q,!0,!1,!0,!0);Ee==null&&(Ee=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:ae}]):P.add(this.options.textNodeName,Ee),J=ue+2}else{let ue=zI(Q,J,this.options.removeNSPrefix),ae=ue.tagName,Ee=ue.rawTagName,Me=ue.tagExp,zt=ue.attrExpPresent,bt=ue.closeIndex;this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&j&&P.tagname!=="!xml"&&(j=this.saveTextToParentTag(j,P,q,!1));let pr=P;pr&&this.options.unpairedTags.indexOf(pr.tagname)!==-1&&(P=this.tagsNodeStack.pop(),q=q.substring(0,q.lastIndexOf("."))),ae!==b.tagname&&(q+=q?"."+ae:ae);let hn=J;if(this.isItStopNode(this.options.stopNodes,q,ae)){let Ys="";if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1)ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),J=ue.closeIndex;else if(this.options.unpairedTags.indexOf(ae)!==-1)J=ue.closeIndex;else{let Su=this.readStopNodeData(Q,Ee,bt+1);if(!Su)throw new Error(`Unexpected end of ${Ee}`);J=Su.i,Ys=Su.tagContent}let _a=new F(ae);ae!==Me&&zt&&(_a[":@"]=this.buildAttributesMap(Me,q,ae)),Ys&&(Ys=this.parseTextData(Ys,ae,q,!0,zt,!0,!0)),q=q.substr(0,q.lastIndexOf(".")),_a.add(this.options.textNodeName,Ys),this.addChild(P,_a,q,hn)}else{if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1){ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),this.options.transformTagName&&(ae=this.options.transformTagName(ae));let Ys=new F(ae);ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),q=q.substr(0,q.lastIndexOf("."))}else{let Ys=new F(ae);this.tagsNodeStack.push(P),ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),P=Ys}j="",J=bt}}else j+=Q[J];return b.child};function VI(Q,b,P,j){this.options.captureMetaData||(j=void 0);let q=this.options.updateTag(b.tagname,P,b[":@"]);q===!1||(typeof q=="string"&&(b.tagname=q),Q.addChild(b,j))}let WI=function(Q){if(this.options.processEntities){for(let b in this.docTypeEntities){let P=this.docTypeEntities[b];Q=Q.replace(P.regx,P.val)}for(let b in this.lastEntities){let P=this.lastEntities[b];Q=Q.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let b in this.htmlEntities){let P=this.htmlEntities[b];Q=Q.replace(P.regex,P.val)}Q=Q.replace(this.ampEntity.regex,this.ampEntity.val)}return Q};function id(Q,b,P,j){return Q&&(j===void 0&&(j=b.child.length===0),(Q=this.parseTextData(Q,b.tagname,P,!1,!!b[":@"]&&Object.keys(b[":@"]).length!==0,j))!==void 0&&Q!==""&&b.add(this.options.textNodeName,Q),Q=""),Q}function od(Q,b,P){let j="*."+P;for(let q in Q){let J=Q[q];if(j===J||b===J)return!0}return!1}function Ic(Q,b,P,j){let q=Q.indexOf(b,P);if(q===-1)throw new Error(j);return q+b.length-1}function zI(Q,b,P,j=">"){let q=(function(bt,pr,hn=">"){let Ys,_a="";for(let Su=pr;Su<bt.length;Su++){let Bc=bt[Su];if(Ys)Bc===Ys&&(Ys="");else if(Bc==='"'||Bc==="'")Ys=Bc;else if(Bc===hn[0]){if(!hn[1])return{data:_a,index:Su};if(bt[Su+1]===hn[1])return{data:_a,index:Su}}else Bc===" "&&(Bc=" ");_a+=Bc}})(Q,b+1,j);if(!q)return;let J=q.data,ue=q.index,ae=J.search(/\s/),Ee=J,Me=!0;ae!==-1&&(Ee=J.substring(0,ae),J=J.substring(ae+1).trimStart());let zt=Ee;if(P){let bt=Ee.indexOf(":");bt!==-1&&(Ee=Ee.substr(bt+1),Me=Ee!==q.data.substr(bt+1))}return{tagName:EeLine truncated
`),Pf(Q,b,"",P)}function Pf(Q,b,P,j){let q="",J=!1;for(let ue=0;ue<Q.length;ue++){let ae=Q[ue],Ee=BA(ae);if(Ee===void 0)continue;let Me="";if(Me=P.length===0?Ee:`${P}.${Ee}`,Ee===b.textNodeName){let hn=ae[Ee];Gm(Me,b)||(hn=b.tagValueProcessor(Ee,hn),hn=tB(hn,b)),J&&(q+=j),q+=hn,J=!1;continue}if(Ee===b.cdataPropName){J&&(q+=j),q+=`<![CDATA[${ae[Ee][0][b.textNodeName]}]]>`,J=!1;continue}if(Ee===b.commentPropName){q+=j+`<!--${ae[Ee][0][b.textNodeName]}-->`,J=!0;continue}if(Ee[0]==="?"){let hn=QA(ae[":@"],b),Ys=Ee==="?xml"?"":j,_a=ae[Ee][0][b.textNodeName];_a=_a.length!==0?" "+_a:"",q+=Ys+`<${Ee}${_a}${hn}?>`,J=!0;continue}let zt=j;zt!==""&&(zt+=b.indentBy);let bt=j+`<${Ee}${QA(ae[":@"],b)}`,pr=Pf(ae[Ee],b,Me,zt);b.unpairedTags.indexOf(Ee)!==-1?b.suppressUnpairedNode?q+=bt+">":q+=bt+"/>":pr&&pr.length!==0||!b.suppressEmptyNode?pr&&pr.endsWith(">")?q+=bt+`>${pr}${j}</${Ee}>`:(q+=bt+">",pr&&j!==""&&(pr.includes("/>")||pr.includes("</"))?q+=j+b.indentBy+pr+j:q+=pr,q+=`</${Ee}>`):q+=bt+"/>",J=!0}return q}function BA(Q){let b=Object.keys(Q);for(let P=0;P<b.length;P++){let j=b[P];if(Q.hasOwnProperty(j)&&j!==":@")return j}}function QA(Q,b){let P="";if(Q&&!b.ignoreAttributes)for(let j in Q){if(!Q.hasOwnProperty(j))continue;let q=b.attributeValueProcessor(j,Q[j]);q=tB(q,b),q===!0&&b.suppressBooleanAttributes?P+=` ${j.substr(b.attributeNamePrefix.length)}`:P+=` ${j.substr(b.attributeNamePrefix.length)}="${q}"`}return P}function Gm(Q,b){let P=(Q=Q.substr(0,Q.length-b.textNodeName.length-1)).substr(Q.lastIndexOf(".")+1);for(let j in b.stopNodes)if(b.stopNodes[j]===Q||b.stopNodes[j]==="*."+P)return!0;return!1}function tB(Q,b){if(Q&&Q.length>0&&b.processEntities)for(let P=0;P<b.entities.length;P++){let j=b.entities[P];Q=Q.replace(j.regex,j.val)}return Q}let Ke={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},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};function $(Q){this.options=Object.assign({},Ke,Q),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=er(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=le),this.processTextOrObjNode=M,this.options.format?(this.indentate=ne,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function M(Q,b,P,j){let q=this.j2x(Q,P+1,j.concat(b));return Q[this.options.textNodeName]!==void 0&&Object.keys(Q).length===1?this.buildTextValNode(Q[this.options.textNodeName],b,q.attrStr,P):this.buildObjectNode(q.val,b,q.attrStr,P)}function ne(Q){return this.options.indentBy.repeat(Q)}function le(Q){return!(!Q.startsWith(this.options.attributeNamePrefix)||Q===this.options.textNodeName)&&Q.substr(this.attrPrefixLen)}$.prototype.build=function(Q){return this.options.preserveOrder?eB(Q,this.options):(Array.isArray(Q)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Q={[this.options.arrayNodeName]:Q}),this.j2x(Q,0,[]).val)},$.prototype.j2x=function(Q,b,P){let j="",q="",J=P.join(".");for(let ue in Q)if(Object.prototype.hasOwnProperty.call(Q,ue))if(Q[ue]===void 0)this.isAttribute(ue)&&(q+="");else if(Q[ue]===null)this.isAttribute(ue)||ue===this.options.cdataPropName?q+="":ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(Q[ue]instanceof Date)q+=this.buildTextValNode(Q[ue],ue,"",b);else if(typeof Q[ue]!="object"){let ae=this.isAttribute(ue);if(ae&&!this.ignoreAttributesFn(ae,J))j+=this.buildAttrPairStr(ae,""+Q[ue]);else if(!ae)if(ue===this.options.textNodeName){let Ee=this.options.tagValueProcessor(ue,""+Q[ue]);q+=this.replaceEntitiesValue(Ee)}else q+=this.buildTextValNode(Q[ue],ue,"",b)}else if(Array.isArray(Q[ue])){let ae=Q[ue].length,Ee="",Me="";for(let zt=0;zt<ae;zt++){let bt=Q[ue][zt];if(bt!==void 0)if(bt===null)ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(typeof bt=="object")if(this.options.oneListGroup){let pr=this.j2x(bt,b+1,P.concat(ue));Ee+=pr.val,this.options.attributesGroupName&&bt.hasOwnProperty(this.options.attributesGroupName)&&(Me+=pr.attrStr)}else Ee+=this.processTextOrObjNode(bt,ue,b,P);else if(this.options.oneListGroup){let pr=this.options.tagValueProcessor(ue,bt);pr=this.replaceEntitiesValue(pr),Ee+=pr}else Ee+=this.buildTextValNode(bt,ue,"",b)}this.options.oneListGroup&&(Ee=this.buildObjectNode(Ee,ue,Me,b)),q+=Ee}else if(this.options.attributesGroupName&&ue===this.options.attributesGroupName){let ae=Object.keys(Q[ue]),Ee=ae.length;for(let Me=0;Me<Ee;Me++)j+=this.buildAttrPairStr(ae[Me],""+Q[ue][ae[Me]])}else q+=this.processTextOrObjNode(Q[ue],ue,b,P);return{attrStr:j,val:q}},$.prototype.buildAttrPairStr=function(Q,b){return b=this.options.attributeValueProcessor(Q,""+b),b=this.replaceEntitiesValue(b),this.options.suppressBooleanAttributes&&b==="true"?" "+Q:" "+Q+'="'+b+'"'},$.prototype.buildObjectNode=function(Q,b,P,j){if(Q==="")return b[0]==="?"?this.indentate(j)+"<"+b+P+"?"+this.tagEndChar:this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar;{let q="</"+b+this.tagEndChar,J="";return b[0]==="?"&&(J="?",q=""),!P&&P!==""||Q.indexOf("<")!==-1?this.options.commentPropName!==!1&&b===this.options.commentPropName&&J.length===0?this.indentate(j)+`<!--${Q}-->`+this.newLine:this.indentate(j)+"<"+b+P+J+this.tagEndChar+Q+this.indentate(j)+q:this.indentate(j)+"<"+b+P+J+">"+Q+q}},$.prototype.closeTag=function(Q){let b="";return this.options.unpairedTags.indexOf(Q)!==-1?this.options.suppressUnpairedNode||(b="/"):b=this.options.suppressEmptyNode?"/":`></${Q}`,b},$.prototype.buildTextValNode=function(Q,b,P,j){if(this.options.cdataPropName!==!1&&b===this.options.cdataPropName)return this.indentate(j)+`<![CDATA[${Q}]]>`+this.newLine;if(this.options.commentPropName!==!1&&b===this.options.commentPropName)return this.indentate(j)+`<!--${Q}-->`+this.newLine;if(b[0]==="?")return this.indentate(j)+"<"+b+P+"?"+this.tagEndChar;{let q=this.options.tagValueProcessor(b,Q);return q=this.replaceEntitiesValue(q),q===""?this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar:this.indentate(j)+"<"+b+P+">"+q+"</"+b+this.tagEndChar}},$.prototype.replaceEntitiesValue=function(Q){if(Q&&Q.length>0&&this.options.processEntities)for(let b=0;b<this.options.entities.length;b++){let P=this.options.entities[b];Q=Q.replace(P.regex,P.val)}return Q};let ge={validate:a};FJe.exports=e})()});var cae=f(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});YN.XML_CHARKEY=YN.XML_ATTRKEY=void 0;YN.XML_ATTRKEY="$";YN.XML_CHARKEY="_"});var UJe=f(N8=>{"use strict";Object.defineProperty(N8,"__esModule",{value:!0});N8.stringifyXML=jlr;N8.parseXML=Klr;var uae=MJe(),vJe=cae();function LJe(t){var e;return{attributesGroupName:vJe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:vJe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Wlr(t={}){var e,r;return Object.assign(Object.assign({},LJe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function zlr(t={}){return Object.assign(Object.assign({},LJe(t)),{parseAttributeValue:!1Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ha.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ha.HeaderConstants.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ha.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,i)=>(0,Hdr.compareHeader)(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=(0,sVe.getURLPath)(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=(0,sVe.getURLQueries)(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}};H8.StorageSharedKeyCredentialPolicy=Rae});var iVe=f(q8=>{"use strict";Object.defineProperty(q8,"__esModule",{value:!0});q8.StorageSharedKeyCredential=void 0;var qdr=B("node:crypto"),Gdr=Dae(),Ydr=_8(),xae=class extends Ydr.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Gdr.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,qdr.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};q8.StorageSharedKeyCredential=xae});var oVe=f(G8=>{"use strict";Object.defineProperty(G8,"__esModule",{value:!0});G8.AbortError=void 0;var Tae=class extends Error{constructor(e){super(e),this.name="AbortError"}};G8.AbortError=Tae});var kae=f(Y8=>{"use strict";Object.defineProperty(Y8,"__esModule",{value:!0});Y8.AbortError=void 0;var Jdr=oVe();Object.defineProperty(Y8,"AbortError",{enumerable:!0,get:function(){return Jdr.AbortError}})});var Fae=f(J8=>{"use strict";Object.defineProperty(J8,"__esModule",{value:!0});J8.logger=void 0;var Vdr=A0();J8.logger=(0,Vdr.createClientLogger)("storage-common")});var Mae=f(V8=>{"use strict";Object.defineProperty(V8,"__esModule",{value:!0});V8.StorageRetryPolicyType=void 0;var aVe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(aVe||(V8.StorageRetryPolicyType=aVe={}))});var cVe=f(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0});I2.StorageRetryPolicy=void 0;I2.NewRetryPolicyFactory=jdr;var Wdr=kae(),zdr=C2(),AVe=Cp(),vae=h0(),PE=Fae(),Lae=Mae();function jdr(t){return{create:(e,r)=>new W8(e,r,t)}}var _E={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lae.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Kdr=new Wdr.AbortError("The operation was aborted."),W8=class extends zdr.BaseRequestPolicy{retryOptions;constructor(e,r,n=_E){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:_E.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):_E.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:_E.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:_E.maxRetryDelayInMs):_E.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:_E.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:_E.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=(0,vae.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,vae.setURLParameter)(s.url,AVe.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(PE.logger.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(PE.logger.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 PE.logger.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 PE.logger.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 PE.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return PE.logger.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(AVe.HeaderConstants.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')?(PE.logger.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 Lae.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lae.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return PE.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,vae.delay)(s,n,Kdr)}};I2.StorageRetryPolicy=W8});var _ae=f(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{val Line truncated
`)+`
`+n(i)+s(i),a=(0,Ahr.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ga.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ga.HeaderConstants.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ga.HeaderConstants.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>(0,chr.compareHeader)(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=(0,fVe.getURLPath)(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=(0,fVe.getURLQueries)(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:XN.storageSharedKeyCredentialPolicyName,async sendRequest(i,o){return e(i),o(i)}}}});var mVe=f(ZN=>{"use strict";Object.defineProperty(ZN,"__esModule",{value:!0});ZN.storageRequestFailureDetailsParserPolicyName=void 0;ZN.storageRequestFailureDetailsParserPolicy=lhr;ZN.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function lhr(){return{name:ZN.storageRequestFailureDetailsParserPolicyName,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}}}}});var EVe=f(z8=>{"use strict";Object.defineProperty(z8,"__esModule",{value:!0});z8.UserDelegationKeyCredential=void 0;var dhr=B("node:crypto"),Gae=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,dhr.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};z8.UserDelegationKeyCredential=Gae});var bd=f(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.BaseRequestPolicy=Ks.getCachedDefaultHttpClient=void 0;var fa=(Wn(),$n(Vn));fa.__exportStar(qJe(),Ks);var hhr=GJe();Object.defineProperty(Ks,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return hhr.getCachedDefaultHttpClient}});fa.__exportStar(JJe(),Ks);fa.__exportStar(rVe(),Ks);fa.__exportStar(nVe(),Ks);fa.__exportStar(_8(),Ks);fa.__exportStar(iVe(),Ks);fa.__exportStar(_ae(),Ks);var ghr=C2();Object.defineProperty(Ks,"BaseRequestPolicy",{enumerable:!0,get:function(){return ghr.BaseRequestPolicy}});fa.__exportStar(yae(),Ks);fa.__exportStar(L8(),Ks);fa.__exportStar(uVe(),Ks);fa.__exportStar(lVe(),Ks);fa.__exportStar(gVe(),Ks);fa.__exportStar(Dae(),Ks);fa.__exportStar(pVe(),Ks);fa.__exportStar(mVe(),Ks);fa.__exportStar(EVe(),Ks)});var Gc=f(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.PathStylePorts=at.BlobDoesNotUseCustomerSpecifiedEncryption=at.BlobUsesCustomerSpecifiedEncryptionMsg=at.StorageBlobLoggingAllowedQueryParameters=at.StorageBlobLoggingAllowedHeaderNames=at.DevelopmentConnectionString=at.EncryptionAlgorithmAES25=at.HTTP_VERSION_1_1=at.HTTP_LINE_ENDING=at.BATCH_MAX_PAYLOAD_IN_BYTES=at.BATCH_MAX_REQUEST=at.SIZE_1_MB=at.ETagAny=at.ETagNone=at.HeaderConstants=at.HTTPURLConnection=at.URLConstants=at.StorageOAuthScopes=at.REQUEST_TIMEOUT=at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=at.BLOCK_BLOB_MAX_BLOCKS=at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=at.SERVICE_VERSION=at.SDK_VERSION=void 0;at.SDK_VERSION="12.31.0";at.SERVICE_VERSION="2026-02-06";at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;at.BLOCK_BLOB_MAX_BLOCKS=5e4;at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;at.REQUEST_TIMEOUT=100*1e3;at.StorageOAuthScopes="https://storage.azure.com/.default";at.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};at.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};at.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};at.ETagNone="";at.ETagAny="*";at.SIZE_1_MB=1*1024*1024;at.BATCH_MAX_REQUEST=256;at.BATCH_MAX_PAYLOAD_IN_BYTES=4*at.SIZE_1_MB;at.HTTP_LINE_ENDING=`\r
`;at.HTTP_VERSION_1_1="HTTP/1.1";at.EncryptionAlgorithmAES25="AES256";at.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";at.StorageBlobLoggingAllowedHeaderNames=["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"];at.StorageBlobLoggingAllowedQueryParameters=["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"];at.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";at.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";at.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var OE=f($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.Pipeline=$h.StorageOAuthScopes=void 0;$h.isPipelineLike=phr;$h.newPipeline=mhr;$h.getCoreClientOptions=Chr;$h.getCredentialFromPipeline=yVe;var QVe=w8(),CVe=Ji(),IVe=Kh(),BVe=lae(),Yae=_N(),fhr=R8(),Yc=bd(),B2=Gc();Object.defineProperty($h,"StorageOAuthScopes",{enumerable:!0,get:function(){return B2.StorageOAuthScopes}});function phr(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 j8=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};$h.Pipeline=j8;function mhr(t,e={}){t||(t=new Yc.AnonymousCredential);let r=new j8([],e);return r._credential=t,r}function Ehr(t){let e=[Ihr,bVe,Bhr,Qhr,yhr,bhr,Nhr];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>whr(s));return{wrappedPolicies:(0,QVe.createRequestPolicyFactoryPolicy)(r),afterRetry:n}}}}function Chr(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?(0,QVe.convertHttpClient)(e):(0,Yc.getCachedDefaultHttpClient)(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${B2.SDK_VERSION}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=(0,IVe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:B2.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:B2.StorageBlobLoggingAllowedQueryParameters,logger:fhr.logger.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:BVe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserial Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new C0.SASQueryParameters(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 Ufr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 Pfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 _fr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 Ofr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 Hfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 qfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 I0(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function B0(t){let e=t.version?t.version:cWe.SERVICE_VERSION;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 C3=f(E3=>{"use strict";Object.defineProperty(E3,"__esModule",{value:!0});E3.BlobLeaseClient=void 0;var Gfr=Bs(),tg=Gc(),y2=f0(),m3=nl(),hAe=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=(0,Gfr.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==tg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==tg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async n=>(0,m3.assertResponse)(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!==tg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==tg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=(0,m3.assertResponse)(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!==tg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==tg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,m3.assertResponse)(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!==tg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.i Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${xWe.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=o(c,r);if(l!==void 0)return{response:await e(l).catch(DWe({state:r,stateProxy:n,isOperationError:a})),status:u}}return{response:c,status:u}}async function mpr(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:d,updateState:h,setDelay:g,isDone:p,setErrorAsResult:C}=t,{operationLocation:m}=r.config;if(m!==void 0){let{response:I,status:y}=await ppr({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:m,getResourceLocation:o,isOperationError:A,options:s});if(TWe({status:y,response:I,state:r,stateProxy:n,isDone:p,processResult:l,getError:d,setErrorAsResult:C}),!xWe.terminalStates.includes(y)){let w=u?.(I);w&&g(w);let H=a?.(I,r);if(H!==void 0){let z=m!==H;r.config.operationLocation=H,c?.(H,z)}else c?.(m,!1)}h?.(r,I)}}zE.pollOperation=mpr});var LAe=f(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.pollHttpOperation=Zs.isOperationError=Zs.getResourceLocation=Zs.getOperationStatus=Zs.getOperationLocation=Zs.initHttpOperation=Zs.getStatusFromInitialResponse=Zs.getErrorFromResponse=Zs.parseRetryAfter=Zs.inferLroMode=void 0;var kWe=k3(),FAe=x3();function FWe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function MWe(t){return t.headers.location}function vWe(t){return t.headers["operation-location"]}function LWe(t){return t.headers["azure-asyncoperation"]}function Epr(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function UWe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=vWe(e),o=LWe(e),a=FWe({operationLocation:i,azureAsyncOperation:o}),A=MWe(e),c=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Epr({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:s})}:A!==void 0?{mode:"ResourceLocation",operationLocation:A}:c==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}Zs.inferLroMode=UWe;function PWe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return MAe(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return FAe.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Cpr(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return PWe({status:r,statusCode:t.statusCode})}function Ipr(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return PWe({status:i,statusCode:t.statusCode})}function MAe(t){return t===202?"running":t<300?"succeeded":"failed"}function _We({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Bpr(new Date(e)):r*1e3}}Zs.parseRetryAfter=_We;function OWe(t){let e=GWe(t,"error");if(!e){FAe.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){FAe.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}Zs.getErrorFromResponse=OWe;function Bpr(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function HWe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return MAe(e.rawResponse.statusCode);case"Body":return vAe(e,r);default:return"running"}}let i=s();return i==="running"&&n===void 0?"succeeded":i}Zs.getStatusFromInitialResponse=HWe;async function Qpr(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return(0,kWe.initOperation)({init:async()=>{let o=await s.sendInitialRequest(),a=UWe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:n?({flatResponse:o},a)=>n(o,a):({flatResponse:o})=>o,getOperationStatus:HWe,setErrorAsResult:i})}Zs.initHttpOperation=Qpr;function qWe({rawResponse:t},e){var r;sLine truncated
`):o=[e.accountName,n,s,i,t.startsOn?(0,h4.truncatedISO8061Date)(t.startsOn,!1):"",(0,h4.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,mze.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let a=e.computeHMACSHA256(o);return{sasQueryParameters:new Dmr.SASQueryParameters(r,a,n.toString(),s,i,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}});var yze=f(p4=>{"use strict";Object.defineProperty(p4,"__esModule",{value:!0});p4.BlobServiceClient=void 0;var kmr=_N(),Fmr=Ji(),Cze=Bs(),S2=OE(),Mmr=ace(),f4=nl(),w0=bd(),og=nl(),ag=f0(),vmr=s4(),Lmr=A3(),Ize=c4(),Bze=dce(),Qze=d4(),hce=class t extends Lmr.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let n=(0,f4.extractConnectionStringParts)(e);if(n.kind==="AccountConnString")if(Cze.isNodeLike){let s=new w0.StorageSharedKeyCredential(n.accountName,n.accountKey);r.proxyOptions||(r.proxyOptions=(0,Fmr.getDefaultProxySettings)(n.proxyUri));let i=(0,S2.newPipeline)(s,r);return new t(n.url,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(n.kind==="SASConnString"){let s=(0,S2.newPipeline)(new w0.AnonymousCredential,r);return new t(n.url+"?"+n.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,n){let s;(0,S2.isPipelineLike)(r)?s=r:Cze.isNodeLike&&r instanceof w0.StorageSharedKeyCredential||r instanceof w0.AnonymousCredential||(0,kmr.isTokenCredential)(r)?s=(0,S2.newPipeline)(r,n):s=(0,S2.newPipeline)(new w0.AnonymousCredential,n),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new Mmr.ContainerClient((0,f4.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-createContainer",r,async n=>{let s=this.getContainerClient(e),i=await s.create(n);return{containerClient:s,containerCreateResponse:i}})}async deleteContainer(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async n=>this.getContainerClient(e).delete(n))}async undeleteContainer(e,r,n={}){return ag.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,async s=>{let i=this.getContainerClient(n.destinationContainerName||e),o=i.storageClientContext.container,a=(0,og.assertResponse)(await o.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:i,containerUndeleteResponse:a}})}async getProperties(e={}){return ag.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,og.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-setProperties",r,async n=>(0,og.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions})))}async getStatistics(e={}){return ag.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,og.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return ag.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,og.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async n=>(0,og.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:n.tracingOptions})))}async findBlobsByTagsSegment(e,r,n={}){return ag.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,async s=>{let i=(0,og.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}));return{...i,_response:i._response,blobs:i.blobs.map(a=>{let A="";return a.tags?.blobTagSet.length===1&&(A=a.tags.blobTagSet[0].value),{...a,tags:(0,f4.toTags)(a.tags),tagValue:A}})}})}async*findBlobsByTagsSegments(e,r,n={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,n),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let n;for await(let s of this.findBlobsByTagsSegments(e,n,r))yield*s.blobs}findBlobsByTags(e,r={}){let n={...r},s=this.findBlobsByTagsItems(e,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(e,i.continuationToken,{maxPageSize:i.maxPageSize,...n})}}async*listSegments(e,r={}){let n;if(e||e===void 0)do n=await this.listContainersSegment(e,r),n.containerItems=n.containerItems||[],e=n.continuationToken,yield await n;while(e)}async*listItems(e={}){let r;for await(let n of this.listSegments(r,e))yield*n.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.i 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"}};zA.NetworkError=I4;I4.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var B4=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"}};zA.UsageError=B4;B4.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var Rze=f(jA=>{"use strict";var Hmr=jA&&jA.__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]})),qmr=jA&&jA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gmr=jA&&jA.__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)&&Hmr(e,t,r);return qmr(e,t),e},Ymr=jA&&jA.__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(jA,"__esModule",{value:!0});jA.uploadCacheArchiveSDK=jA.UploadProgress=void 0;var Ice=Gmr(Oc()),Jmr=gce(),Vmr=Cce(),Q4=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);Ice.info(`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()}};jA.UploadProgress=Q4;function Wmr(t,e,r){var n;return Ymr(this,void 0,void 0,function*(){let s=new Jmr.BlobClient(t),i=s.getBlockBlobClient(),o=new Q4((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(),Ice.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Vmr.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ice.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}jA.uploadCacheArchiveSDK=Wmr});var Qce=f(ei=>{"use strict";var zmr=ei&&ei.__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]})),jmr=ei&&ei.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kmr=ei&&ei.__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)&&zmr(e,t,r);return jmr(e,t),e},b4=ei&&ei.__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(ei,"__esModule",{value:!0});ei.retryHttpClientResponse=ei.retryTypedResponse=ei.retry=ei.isRetryableStatusCode=ei.isServerErrorStatusCode=ei.isSuccessStatusCode=void 0;var Dze=Kmr(Oc()),y4=XB(),hS=jw();function Xmr(t){return t?t>=200&&t<300:!1}ei.isSuccessStatusCode=Xmr;function xze(t){return t?t>=500:!0}ei.isServerErrorStatusCode=xze;function Tze(t){return t?[y4.HttpCodes.BadGateway,y4.HttpCodes.ServiceUnavailable,y4.HttpCodes.GatewayTimeout].includes(t):!1}ei.isRetryableStatusCode=Tze;function Zmr(t){return b4(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Bce(t,e,r,n=hS.DefaultRetryAttempts,s=hS.DefaultRetryDelay,i=void 0){return b4(this,void 0,void 0,function*(){let o="",a=1;for(;a<=n;){let A,c,u=!1;try{A=yield e()}catch(l){i&&(A=i(l)),u=!0,o=l.message}if(A&&(c=r(A),!xze(c)))return A;if(c&&(u=Tze(c),o=`Cache service responded with ${c}`),Dze.debug(`${t} - Attempt ${a} of Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])Wc.debug(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function vEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=new SEr.URL(t),s=(0,Dce.getDownloadOptions)(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,R4.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,R4.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,R4.downloadCacheHttpClient)(t,e):yield(0,R4.downloadCacheHttpClient)(t,e)})}mo.downloadCache=vEr;function LEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=xce(),s=pS.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,ZE.retryTypedResponse)("reserveCache",()=>KA(this,void 0,void 0,function*(){return n.postJson(F2("caches"),i)}))})}mo.reserveCache=LEr;function Gze(t,e){return`bytes ${t}-${e}/*`}function UEr(t,e,r,n,s){return KA(this,void 0,void 0,function*(){Wc.debug(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Gze(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Gze(n,s)},o=yield(0,ZE.retryHttpClientResponse)(`uploadChunk (start: ${n}, end: ${s})`,()=>KA(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!(0,ZE.isSuccessStatusCode)(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function PEr(t,e,r,n){return KA(this,void 0,void 0,function*(){let s=pS.getArchiveFileSizeInBytes(r),i=F2(`caches/${e.toString()}`),o=Sce.openSync(r,"r"),a=(0,Dce.getUploadOptions)(n),A=pS.assertDefined("uploadConcurrency",a.uploadConcurrency),c=pS.assertDefined("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];Wc.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>KA(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,g=l+d-1;l+=c,yield UEr(t,i,()=>Sce.createReadStream(r,{fd:o,start:h,end:g,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,g)}})))}finally{Sce.closeSync(o)}})}function _Er(t,e,r){return KA(this,void 0,void 0,function*(){let n={size:r};return yield(0,ZE.retryTypedResponse)("commitCache",()=>KA(this,void 0,void 0,function*(){return t.postJson(F2(`caches/${e.toString()}`),n)}))})}function OEr(t,e,r,n){return KA(this,void 0,void 0,function*(){if((0,Dce.getUploadOptions)(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,REr.uploadCacheArchiveSDK)(r,e,n)}else{let i=xce();Wc.debug("Upload cache"),yield PEr(i,t,e,n),Wc.debug("Commiting cache");let o=pS.getArchiveFileSizeInBytes(e);Wc.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield _Er(i,t,o);if(!(0,ZE.isSuccessStatusCode)(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Wc.info("Cache saved successfully")}})}mo.saveCache=OEr});var D4=f(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.isJsonObject=mS.typeofJsonValue=void 0;function HEr(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}mS.typeofJsonValue=HEr;function qEr(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}mS.isJsonObject=qEr});var T4=f(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.base64encode=ES.base64decode=void 0;var yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),x4=[];for(let t=0;t<yp.length;t++)x4[yp[t].charCodeAt(0)]=t;x4[45]=yp.indexOf("+");x4[95]=yp.indexOf("/");function GEr(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=x4[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)}ES.base64decode=GEr;function YEr(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=yp[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=yp[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=yp[s|n>>6],e+=yp[n&63],r=0;break}return r&&(e+=yp[s],e+="=",r==1&&(e+="=")),e}ES.base64encode=YEr});var Jze=f(k4=>{"use strict";Object.defineProperty(k4,"__esModule",{value:!0});k4.utf8read=void 0;var Tce=t=>String.fromCharCode.apply(String,t);function JEr(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(Tce(n)),s=0);return r.length?(s&&r.push(Tce(n.slice(0,s))),r.join("")):Tce(n.slice(0,s))}k4.utf8read=JEr});var M2=f(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.WireType=Ag.mergeBinaryOptions=Ag.UnknownFieldHandler=void 0;var VEr;(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])})(VEr=Ag.UnknownFieldHandler||(Ag.UnknownFieldHandler={}));function WEr(t,e){return Object.assign(Object.assign({},t),e)}Ag.mergeBinaryOptions=WEr;var zEr;(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"})(zEr=Ag.WireType||(Ag.WireType={}))});var M4=f(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.varint32read=XA.varint32write=XA.int64toString=XA.int64fromString=XA.varint64write=XA.varint64read=void 0;function jEr(){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")}XA.varint64read=jEr;function KEr(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)}}XA.varint64write=KEr;var F4=65536*65536;function XEr(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>=F4&&(s=s+(n/F4|0),n=n%F4)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}XA.int64fromString=XEr;function ZEr(t,e){if(e>>>0<=2097151)return""+(F4*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)}XA.int64toString=ZEr;function $Er(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)}}XA.varint32write=$Er;function eCr(){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}XA.varint32read=eCr});var eC=f($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.PbLong=$E.PbULong=$E.detectBi=void 0;var v2=M4(),_n;function Vze(){let t=new DataView(new ArrayBuffer(8));_n=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}$E.detectBi=Vze;Vze();function Wze(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var zze=/^-?[0-9]+$/,L4=4294967296,v4=2147483648, Line truncated
`)}};aY.RpcError=sue});var oue=f(cY=>{"use strict";Object.defineProperty(cY,"__esModule",{value:!0});cY.mergeRpcOptions=void 0;var bje=lr();function QIr(t,e){if(!e)return t;let r={};AY(t,r),AY(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=bje.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=bje.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},AY(t.meta,r.meta),AY(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}cY.mergeRpcOptions=QIr;function AY(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 Aue=f(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.Deferred=R0.DeferredState=void 0;var lg;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(lg=R0.DeferredState||(R0.DeferredState={}));var aue=class{constructor(e=!0){this._state=lg.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!==lg.PENDING)throw new Error(`cannot resolve ${lg[this.state].toLowerCase()}`);this._resolve(e),this._state=lg.RESOLVED}reject(e){if(this.state!==lg.PENDING)throw new Error(`cannot reject ${lg[this.state].toLowerCase()}`);this._reject(e),this._state=lg.REJECTED}resolvePending(e){this._state===lg.PENDING&&this.resolve(e)}rejectPending(e){this._state===lg.PENDING&&this.reject(e)}};R0.Deferred=aue});var uue=f(uY=>{"use strict";Object.defineProperty(uY,"__esModule",{value:!0});uY.RpcOutputStreamController=void 0;var wje=Aue(),D0=lr(),cue=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){D0.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){D0.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){D0.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(){D0.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;D0.assert(e,"bad state"),D0.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 wje.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;D0.assert(n.state==wje.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};uY.RpcOutputStreamController=cue});var due=f(wS=>{"use strict";var yIr=wS&&wS.__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(wS,"__esModule",{value:!0});wS.UnaryCall=void 0;var lue=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 yIr(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}})}};wS.UnaryCall=lue});var gue=f(NS=>{"use strict";var bIr=NS&&NS.__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(NS,"__esModule",{value:!0});NS.ServerStreamingCall=void 0;var hue=class Line truncated
`));let n=yield Uue(r,"create");yield Pue(n,t)})}pa.createTar=EBr});var Z2=f(vi=>{"use strict";var CBr=vi&&vi.__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]})),IBr=vi&&vi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),K2=vi&&vi.__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)&&CBr(e,t,r);return IBr(e,t),e},qS=vi&&vi.__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(vi,"__esModule",{value:!0});vi.saveCache=vi.restoreCache=vi.isFeatureAvailable=vi.ReserveCacheError=vi.ValidationError=void 0;var dr=K2(Oc()),EY=K2(B("path")),bs=K2(Xw()),OS=K2(Yze()),Yje=K2(Oje()),X2=N4(),nC=Gje(),BBr=jw(),F2n=XB(),sC=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};vi.ValidationError=sC;var j2=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};vi.ReserveCacheError=j2;function Jje(t){if(!t||t.length===0)throw new sC("Path Validation Error: At least one directory or file path is required")}function _ue(t){if(t.length>512)throw new sC(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new sC(`Key Validation Error: ${t} cannot contain commas.`)}function QBr(){return(0,X2.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}vi.isFeatureAvailable=QBr;function yBr(t,e,r,n,s=!1){return qS(this,void 0,void 0,function*(){let i=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${i}`),Jje(t),i==="v2"?yield wBr(t,e,r,n,s):yield bBr(t,e,r,n,s)})}vi.restoreCache=yBr;function bBr(t,e,r,n,s=!1){return qS(this,void 0,void 0,function*(){r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new sC("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of i)_ue(A);let o=yield bs.getCompressionMethod(),a="";try{let A=yield OS.getCacheEntry(i,t,{compressionMethod:o,enableCrossOsArchive:s});if(!A?.archiveLocation)return;if(n?.lookupOnly)return dr.info("Lookup only - skipping download"),A.cacheKey;a=EY.join(yield bs.createTempDirectory(),bs.getCacheFileName(o)),dr.debug(`Archive Path: ${a}`),yield OS.downloadCache(A.archiveLocation,a,n),dr.isDebug()&&(yield(0,nC.listTar)(a,o));let c=bs.getArchiveFileSizeInBytes(a);return dr.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,nC.extractTar)(a,o),dr.info("Cache restored successfully"),new HS(A.cacheKey,c)}finally{try{yield bs.unlinkFile(a)}catch(A){dr.debug(`Failed to delete archive: ${A}`)}}})}function wBr(t,e,r,n,s=!1){return qS(this,void 0,void 0,function*(){n=Object.assign(Object.assign({},n),{useAzureSdk:!0}),r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new sC("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of i)_ue(a);let o="";try{let a=Yje.internalCacheTwirpClient(),A=yield bs.getCompressionMethod(),c={key:e,restoreKeys:r,version:bs.getCacheVersion(t,A,s)},u=yield a.GetCacheEntryDownloadURL(c);if(!u.ok){dr.debug(`Cache not found for version ${c.version} of keys: ${i.join(", ")}`);return}if(c.key!==u.matchedKey?dr.info(`Cache hit for restore-key: ${u.matchedKey}`):dr.info(`Cache hit for: ${u.matchedKey}`),n?.lookupOnly)return dr.info("Lookup only - skipping download"),u.matchedKey;o=EY.join(yield bs.createTempDirectory(),bs.getCacheFileName(A)),dr.debug(`Archive path: ${o}`),dr.debug(`Starting download of archive to: ${o}`),yield OS.downloadCache(u.signedDownloadUrl,o,n);let d=bs.getArchiveFileSizeInBytes(o);return dr.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),dr.isDebug()&&(yield(0,nC.listTar)(o,A)),yield(0,nC.extractTar)(o,A),dr.info("Cache restored successfully"),new HS(u.matchedKey,d)}finally{try{o&&(yield bs.unlinkFile(o))}catch(a){dr.debug(`Failed to delete archive: ${a}`)}}})}function NBr(t,e,r,n=!1){return qS(this,void 0,void 0,function*(){let s=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${s}`),Jje(t),_ue(e),s==="v2"?yield RBr(t,e,r,n):yield SBr(t,e,r,n)})}vi.saveCache=NBr;function SBr(t,e,r,n=!1){var s,i,o,a,A;return qS(this,void 0,void 0,function*(){let c=yield bs.getCompressionMethod(),u=-1,l=yield bs.resolvePaths(t);if(dr.debug("C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function cyr(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(WQr.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function uyr(){return"allowed"}function lyr(){return"success"}function dyr(){return"success"}function hyr(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function gyr(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&&_le(t.origin)&&!_le(dF(t))&&(e=null);break;case"same-origin":WY(t,dF(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function rR(t,e){return t}function fyr(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:rR(t.domainLookupStartTime,r),domainLookupEndTime:rR(t.domainLookupEndTime,r),connectionStartTime:rR(t.connectionStartTime,r),connectionEndTime:rR(t.connectionEndTime,r),secureConnectionStartTime:rR(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function pyr(t){return rR(ZQr.now(),t)}function myr(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 jKe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Eyr(t){return{referrerPolicy:t.referrerPolicy}}function Cyr(t){let e=t.referrerPolicy;U0(e);let r=null;if(t.referrer==="client"){let a=GKe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=Ple(r),s=Ple(r,!0);n.toString().length>4096&&(n=s);let i=WY(t,n),o=lF(n)&&!lF(t.url);switch(e){case"origin":return s??Ple(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=dF(t);return WY(n,a)?n:lF(n)&&!lF(a)?"no-referrer":s}default:return o?"no-referrer":s}}function Ple(t,e){return U0(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 lF(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 Iyr(t,e){if(VY===void 0)return!0;let r=KKe(e);if(r==="no metadata"||r.length===0)return!0;let n=Qyr(r),s=yyr(r,n);for(let i of s){let o=i.algo,a=i.hash,A=VY.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)),byr(A,a))return!0}return!1}var Byr=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function KKe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=Byr.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();JKe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function Qyr(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 yyr(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 byr(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 wyr(t){}function WY(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Nyr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function Syr(t){return t.controller.state==="aborted"}function Ryr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Dyr(t){return tyr[t.toLowerCase()]??t}function xyr(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return U0(typeof e=="string"),e}var Tyr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function XKe(t,e,r=0,n=1){cl Line truncated
`);function abr(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Abr(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 cbr(t,e){jY(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&&KY(t,ibr,i)||i.position===t.length-4&&KY(t,obr,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=ubr(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-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",abr(u)||(u=""),h=new nbr([d],c,{type:u})):h=Zyr(Buffer.from(d)),jY(cXe(A)),jY(typeof h=="string"&&cXe(h)||ebr(h)),s.push(tbr(A,h,c))}}function ubr(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=sR(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Vle(o,!0,!0,a=>a===9||a===32),!$yr.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,sR(a=>a===32||a===9,t,e),Xyr(o)){case"content-disposition":{if(r=n=null,!KY(t,sbr,e)||(e.position+=17,r=dXe(t,e),r===null))return"failure";if(KY(t,lXe,e)){let a=e.position+lXe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=dXe(t,e),n===null))return"failure"}break}case"content-type":{let a=sR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),s=uXe(a);break}case"content-transfer-encoding":{let a=sR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),i=uXe(a);break}default:sR(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function dXe(t,e){jY(t[e.position-1]===34);let r=sR(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 sR(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Vle(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 KY(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}hXe.exports={multipartFormDataParser:cbr,validateBoundary:Abr}});var aR=f((RFn,bXe)=>{"use strict";var fF=Ir(),{ReadableStreamFrom:lbr,isBlobLike:fXe,isReadableStreamLike:dbr,readableStreamClose:hbr,createDeferredPromise:gbr,fullyReadBody:fbr,extractMimeType:pbr,utf8DecodeBytes:EXe}=jc(),{FormData:pXe}=gF(),{kState:oR}=AC(),{webidl:mbr}=Wo(),{Blob:Ebr}=B("node:buffer"),Wle=B("node:assert"),{isErrored:CXe,isDisturbed:Cbr}=B("node:stream"),{isArrayBuffer:Ibr}=B("node:util/types"),{serializeAMimeType:Bbr}=$A(),{multipartFormDataParser:Qbr}=gXe(),zle;try{let t=B("node:crypto");zle=e=>t.randomInt(0,e)}catch{zle=t=>Math.floor(Math.random(t))}var XY=new TextEncoder;function ybr(){}var IXe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,BXe;IXe&&(BXe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Cbr(e)&&!CXe(e)&&e.cancel("Response object has been garbage collected").catch(ybr)}));function QXe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:fXe(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?XY.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>hbr(A))},start(){},type:"bytes"}),Wle(dbr(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(Ibr(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(fF.isFormDataLike(t)){let A=`----formdata-undici-0${`${zle(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=XY.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=XY.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=XY.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(fXe(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(fF.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:lbr(t)}if((typeof s=="string"||fF.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(!CXe(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 bbr(t,e=!1){return t instanceof ReadableStream&&(Wle(!fF.isDisturbed(t),"The body has already been consumed."),Wle(!t.locked,"The stream is locked.")),QXe(t,e)}function wbr(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function Nbr(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Sbr(t){return{blob(){return iR(this,r=>{let n=mXe(this);return n===null?n="":n&&(n=Bbr(n)),new Ebr([r],{type:n})},t)},arrayBuffer(){return iR(this,r=>new Uint8Array(r).buffer,t)},text(){return iR(this,EXe,t)},json(){return iR(this,Dbr,t)},formData(){return iR(this,r=>{let n=mXe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Qbr(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new pXe;return i[oR]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new pXe;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 iR(this,r=>new Uint8Array(r),t)}}}function Rbr(t){Object.assign(t.prototype,Sbr(t))}async function iR(t,e,r){if(mbr.brandCheck(t,r),yXe(t))throw new TypeError("Body is unusable: Body has already been read");Nbr(t[oR]);let n=gbr(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[oR].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await fbr(t[oR].body,i,s),n.promise)}function yXe(t){let e=t[oR].body;return e!=null&&(e.stream.locked||fF.isDisturbed(e.stream))}function Dbr(t){return JSON.parse(EXe(t))}function mXe(t){let e=t[oR].headersList,r=pbr(e);return r==="failure"?null:r}bXe.exports={extractBody:QXe,safelyExtractBody:bbr,cloneBody:wbr,mixinBody:Rbr,streamRegistry:BXe,hasFinalizationRegistry:IXe,bodyUnusable:yXe}});var vXe=f((DFn,MXe)=>{"use strict";var kt=B("node:assert"),Vt=Ir(),{channels:wXe}=zS(),jle=xle(),{RequestContentLengthMismatchError:P0,ResponseContentLengthMismatchError:xbr,RequestAbortedError:TXe,HeadersTimeoutError:Tbr,HeadersOverflowError:kbr,SocketError:n5,InformationalError:AR,BodyTimeoutError:Fbr,HTTPParserError:Mbr,ResponseExceededMaxSizeError:vbr}=sn(),{kUrl:kXe,kReset:ec,kClient:$le,kParser:si,kBlocking:EF,kRunning:ma,kPending:Lbr,kSize:NXe,kWriting:uC,kQueue:Td,kNoRef:pF,kKeepAliveDefaultTimeout:Ubr,kHostHeader:Pbr,kPendingIdx:_br,kRunningIdx:gl,kError:fl,kPipelining:t5,kSocket:cR,kKeepAliveTimeoutValue:s5,kMaxHeadersSize:Kle,kKeepAliveMaxTimeout:Obr,kKeepAliveTimeoutThreshold:Hbr,kHeadersTimeout:qbr,kBodyTimeout:Gbr,kStrictContentLength:ede,kMaxRequests:SXe,kCounter:Ybr,kMaxResponseSize:Jbr,kOnError:Vbr,kResume:cC,kHTTPContext:FXe}=ws(),fg=BKe(),Wbr=Buffer.alloc(0),ZY=Buffer[Symbol.species],$Y=Vt.addListener,zbr=Vt.removeAllListeners,Xle;async function jbr(){let t=process.env.JEST_WORKER_ID?Fle():void 0,e;try{e=await WebAssembly.compile(bKe())}catch{e=await WebAssembly.compile(t||Fle())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onStatus(new ZY(pg.buffer,i,s))||0},wasm_on_message_begin:r=>(kt(zi.ptr===r),zi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onHeaderField(new ZY(pg.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onHeaderValue(new ZY(pg.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(kt(zi.ptr===r),zi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onBody(new ZY(pg.buffer,i,s))||0},wasm_on_message_complete:r=>(kt(zi.ptr===r),zi.onMessageComplete()||0)}})}var Zle=null,tde=jbr();tde.catch();var zi=null,pg=null,e5=0,mg=null,Kbr=0,mF=1,uR=2|mF,r5=4|mF,rde=8|Kbr,nde=class{constructor(e,r,{exports:n}){kt(Number.isFinite(e[Kle])&&e[Kle]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(fg.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,th Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[Pbr],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[t5]&&!h[ec]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return wXe.sendHeaders.hasSubscribers&&wXe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?DXe(g,null,t,e,h,u,p,l):Vt.isBuffer(A)?DXe(g,A,t,e,h,u,p,l):Vt.isBlobLike(A)?typeof A.stream=="function"?xXe(g,A.stream(),t,e,h,u,p,l):rwr(g,A,t,e,h,u,p,l):Vt.isStream(A)?twr(g,A,t,e,h,u,p,l):Vt.isIterable(A)?xXe(g,A,t,e,h,u,p,l):kt(!1),!0}function twr(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===0,"stream body cannot be pipelined");let A=!1,c=new i5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Vt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new TXe;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,kt(s.destroyed||s[uC]&&r[ma]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Vt.destroy(e,g):Vt.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 DXe(t,e,r,n,s,i,o,a){try{e?Vt.isBuffer(e)&&(kt(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[ec]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(kt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[cC]()}catch(A){t(A)}}async function rwr(t,e,r,n,s,i,o,a){kt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new P0;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[ec]=!0),r[cC]()}catch(A){t(A)}}async function xXe(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===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)=>{kt(A===null),s[fl]?h(s[fl]):A=d});s.on("close",c).on("drain",c);let l=new i5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[fl])throw s[fl];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var i5=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[uC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[fl])throw r[fl];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[ede])throw new P0;process.emitWarning(new P0)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ec]=!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[si].timeout&&r[si].timeoutType===uR&&r[si].timeout.refresh&&r[si].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[uC]=!1,e[fl])throw e[fl];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[ede])throw new P0;process.emitWarning(new P0)}e[si].timeout&&e[si].timeoutType===uR&&e[si].timeout.refresh&&e[si].timeout.refresh(),n[cC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[uC]=!1,e&&(kt(n[ma]<=1,"pipeline should only contain this request"),s(e))}};MXe.exports=Xbr});var GXe=f((xFn,qXe)=>{"use strict";var pl=B("node:assert"),{pipeline:nwr}=B("node:stream"),Tr=Ir(),{RequestContentLengthMismatchError:sde,RequestAbortedError:LXe,SocketError:CF,InformationalError:ide}=sn(),{kUrl:o5,kReset:A5,kClient:lR,kRunning:c5,kPending:swr,kQueue:lC,kPendingIdx:ode,kRunningIdx:kd,kError:Md,kSocket:Bo,kStrictContentLength:iwr,kOnError:ade,kMaxConcurrentStreams:HXe,kHTTP2Session:Fd,kResume:dC,kSize:owr,kHTTPContext:awr}=ws(),Mp=Symbol("open streams"),UXe,PXe=!1,a5;try{a5=B("node:http2")}catch{a5={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Awr,HTTP2_HEADER_METHOD:cwr,HTTP2_HEADER_PATH:uwr,HTTP2_HEADER_SCHEME:lwr,HTTP2_HEADER_CONTENT_LENGTH:dwr,HTTP2_HEADER_EXPECT:hwr,HTTP2_HEADER_STATUS:gwr}}=a5;function fwr(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 pwr(t,e){t[Bo]=e,PXe||(PXe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=a5.connect(t[o5],{createConnection:()=>e,peerMaxConcurrentStreams:t[HXe]});r[Mp]=0,r[lR]=t,r[Bo]=e,Tr.addListener(r,"error",Ewr),Tr.addListener(r,"frameError",Cwr),Tr.addListener(r,"end",Iwr),Tr.addListener(r,"goaway",Bwr),Tr.addListener(r,"close",function(){let{[lR]:s}=this,{[Bo]:i}=s,o=this[Bo][Md]||this[Md]||new CF("closed",Tr.getSocketInfo(i));if(s[Fd]=null,s.destroyed){pl(s[swr]===0);let a=s[lC].splice(s[kd]);for(let A=0;A<a.length;A++){let c=a[A];Tr.errorRequest(s,c,o)}}}),r.unref(),t[Fd]=r,e[Fd]=r,Tr.addListener(e,"error",function(s){pl(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Md]=s,this[lR][ade](s)}),Tr.addListener(e,"end",function(){Tr.destroy(this,new CF("other side closed",Tr.getSocketInfo(this)))}),Tr.addListener(e,"close",function(){let s=this[Md]||new CF("closed",Tr.getSocketInfo(this));t[Bo]=null,this[Fd]!=null&&this[Fd].destroy(s),t[ode]=t[kd],pl(t[c5]===0),t.emit("disconnect",t[o5],[t],s),t[dC]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return ywr(t,...s)},resume(){mwr(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function mwr(t){let e=t[Bo];e?.destroyed===!1&&(t[owr]===0&&t[HXe]===0?(e.unref(),t[Fd].unref()):(e.ref(),t[Fd].ref()))}function Ewr(t){pl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bo][Md]=t,this[lR][ade](t)}function Cwr(t,e,r){if(r===0){let n=new ide(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bo][Md]=n,this[lR][ade](n)}}function Iwr(){let t=new CF("other side closed",Tr.getSocketInfo(this[Bo]));this.destroy(t),Tr.destroy(this[Bo],t)}function Bwr(t){let e=this[Md]||new CF(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tr.getSocketInfo(this)),r=this[lR];if(r[Bo]=null,r[awr]=null,this[Fd]!=null&&(this[Fd].destroy(e),this[Fd]=null),Tr.destroy(this[Bo],e),r[kd]<r[lC].length){let n=r[lC][r[kd]];r[lC][r[kd]++]=null,Tr.errorRequest(r,n,e),r[ode]=r[kd]}pl(r[c5]===0),r.emit("disconnect",r[o5],[r],e),r[dC]()}function Qwr(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function ywr(t,e){let r=t[Fd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Tr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[o5];l[Awr]=i||`${h}${g?`:${g}`:""}`,l[cwr]=n;let p=w=>{e.aborted||e.completed||(w=w||new LXe,Tr.errorRequest(t,e,w),d!=null&&Tr.destroy(d,w),Tr.destroy(u,w),t[lC][t[kd]++]=null,t[dC]())};try{e.onConnect(p)}catch(w){Tr.errorRequest(t,e,w)}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[Mp],t[lC][t[kd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Mp],t[lC][t[kd]++]=null}),d.once("close",()=>{r[Mp]-=1,r[Mp]===0&&r.unref()}),!0;l[uwr]=s,l[lwr]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Tr.bodyLength(u);if(Tr.isFormDataLike(u)){UXe??=aR().extractBody;let[w,H]=UXe(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),Qwr(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[iwr])return Tr.errorRequest(t,e,new sde),!1;process.emitWarning(new sde)}m!=null&&(pl(u,"no body must not have content length"),l[dwr]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[hwr]="100-continue",d=r.request(l,{endStream:I,signal:A}) Line truncated
`,this[jwr]=A??3e5,this[zwr]=s??3e5,this[Kwr]=I??!0,this[Xwr]=w,this[lde]=z,this[gC]=null,this[rNr]=W>-1?W:-1,this[sNr]=oe??100,this[yi]=null,this[vd]=[],this[Lp]=0,this[Ld]=0,this[yF]=he=>hde(this,he),this[nNr]=he=>tZe(this,he)}get pipelining(){return this[h5]}set pipelining(e){this[h5]=e,this[yF](!0)}get[NF](){return this[vd].length-this[Ld]}get[wF](){return this[Ld]-this[Lp]}get[bF](){return this[vd].length-this[Lp]}get[Hwr](){return!!this[yi]&&!this[hR]&&!this[yi].destroyed}get[ude](){return!!(this[yi]?.busy(null)||this[bF]>=(eZe(this)||1)||this[NF]>0)}[Owr](e){rZe(this),this.once("connect",e)}[tNr](e,r){let n=e.origin||this[Cg].origin,s=new Mwr(n,e,r);return this[vd].push(s),this[O0]||(_0.bodyLength(s.body)==null&&_0.isIterable(s.body)?(this[O0]=1,queueMicrotask(()=>hde(this))):this[yF](!0)),this[O0]&&this[fC]!==2&&this[ude]&&(this[fC]=2),this[fC]<2}async[$wr](){return new Promise(e=>{this[bF]?this[gC]=e:e(null)})}async[eNr](e){return new Promise(r=>{let n=this[vd].splice(this[Ld]);for(let i=0;i<n.length;i++){let o=n[i];_0.errorRequest(this,o,e)}let s=()=>{this[gC]&&(this[gC](),this[gC]=null),r(null)};this[yi]?(this[yi].destroy(e,s),this[yi]=null):queueMicrotask(s),this[yF]()})}},aNr=d5();function tZe(t,e){if(t[wF]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){vp(t[Ld]===t[Lp]);let r=t[vd].splice(t[Lp]);for(let n=0;n<r.length;n++){let s=r[n];_0.errorRequest(t,s,e)}vp(t[bF]===0)}}async function rZe(t){vp(!t[hR]),vp(!t[yi]);let{host:e,hostname:r,protocol:n,port:s}=t[Cg];if(r[0]==="["){let i=r.indexOf("]");vp(i!==-1);let o=r.substring(1,i);vp($Xe.isIP(o)),r=o}t[hR]=!0,dR.beforeConnect.hasSubscribers&&dR.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[hC],localAddress:t[QF]},connector:t[BF]});try{let i=await new Promise((o,a)=>{t[BF]({host:e,hostname:r,protocol:n,port:s,servername:t[hC],localAddress:t[QF]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){_0.destroy(i.on("error",XXe),new Uwr);return}vp(i);try{t[yi]=i.alpnProtocol==="h2"?await oNr(t,i):await iNr(t,i)}catch(o){throw i.destroy().on("error",XXe),o}t[hR]=!1,i[Zwr]=0,i[lde]=t[lde],i[_wr]=t,i[Gwr]=null,dR.connected.hasSubscribers&&dR.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[hC],localAddress:t[QF]},connector:t[BF],socket:i}),t.emit("connect",t[Cg],[t])}catch(i){if(t.destroyed)return;if(t[hR]=!1,dR.connectError.hasSubscribers&&dR.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[hC],localAddress:t[QF]},connector:t[BF],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(vp(t[wF]===0);t[NF]>0&&t[vd][t[Ld]].servername===t[hC];){let o=t[vd][t[Ld]++];_0.errorRequest(t,o,i)}else tZe(t,i);t.emit("connectionError",t[Cg],[t],i)}t[yF]()}function ZXe(t){t[fC]=0,t.emit("drain",t[Cg],[t])}function hde(t,e){t[O0]!==2&&(t[O0]=2,ANr(t,e),t[O0]=0,t[Lp]>256&&(t[vd].splice(0,t[Lp]),t[Ld]-=t[Lp],t[Lp]=0))}function ANr(t,e){for(;;){if(t.destroyed){vp(t[NF]===0);return}if(t[gC]&&!t[bF]){t[gC](),t[gC]=null;return}if(t[yi]&&t[yi].resume(),t[ude])t[fC]=2;else if(t[fC]===2){e?(t[fC]=1,queueMicrotask(()=>ZXe(t))):ZXe(t);continue}if(t[NF]===0||t[wF]>=(eZe(t)||1))return;let r=t[vd][t[Ld]];if(t[Cg].protocol==="https:"&&t[hC]!==r.servername){if(t[wF]>0)return;t[hC]=r.servername,t[yi]?.destroy(new Lwr("servername changed"),()=>{t[yi]=null,hde(t)})}if(t[hR])return;if(!t[yi]){rZe(t);return}if(t[yi].destroyed||t[yi].busy(r))return;!r.aborted&&t[yi].write(r)?t[Ld]++:t[vd].splice(t[Ld],1)}}nZe.exports=dde});var gde=f((vFn,sZe)=>{"use strict";var g5=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)}};sZe.exports=class{constructor(){this.head=this.tail=new g5}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new g5),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var oZe=f((LFn,iZe)=>{var{kFree:cNr,kConnected:uNr,kPending:lNr,kQueued:dNr,kRunning:hNr,kSize:gNr}=ws(),H0=Symbol("pool"),fde=class{constructor(e){this[H0]=e}get connected(){return this[H0][uNr]}get free(){return this[H0][cNr]}get pending(){return this[H0][lNr]}get queued(){return this[H0][dNr]}get running(){return this[H0][hNr]}get size(){return this[H0][gNr]}};iZe.exports=fde});var Bde=f((UFn,pZe)=>{"use strict";var fNr=ZS(),pNr=gde(),{kConnected:pde,kSize:aZe,kRunning:AZe,kPending:cZe,kQueued:SF,kBusy:mNr,kFree:ENr,kUrl:CNr,kClose:INr,kDestroy:BNr,kDispatch:QNr}=ws(),yNr=oZe(),tc=Symbol("clients"),rA=Symbol("needDrain"),RF=Symbol("queue"),mde=Symbol("closed resolve"),Ede=Symbol("onDrain"),uZe=Symbol("onConnect"),lZe=Symbol("onDisconnec Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};yet.exports=Bhe});var k5=f((lMn,Det)=>{"use strict";var wet=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:jRr}=sn(),KRr=pR();Ret()===void 0&&Net(new KRr);function Net(t){if(!t||typeof t.dispatch!="function")throw new jRr("Argument agent must implement Agent");Object.defineProperty(globalThis,wet,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ret(){return globalThis[wet]}Det.exports={setGlobalDispatcher:Net,getGlobalDispatcher:Ret}});var F5=f((hMn,xet)=>{"use strict";xet.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 ket=f((gMn,Tet)=>{"use strict";var XRr=l5();Tet.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 XRr(r,o,s,i);return r(a,A)}}});var Met=f((fMn,Fet)=>{"use strict";var ZRr=Q5();Fet.exports=t=>e=>function(n,s){return e(n,new ZRr({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Let=f((pMn,vet)=>{"use strict";var $Rr=Ir(),{InvalidArgumentError:eDr,RequestAbortedError:tDr}=sn(),rDr=F5(),Qhe=class extends rDr{#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 eDr("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=$Rr.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new tDr(`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 nDr({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new Qhe({maxSize:i},s);return e(n,o)}}vet.exports=nDr});var _et=f((mMn,Pet)=>{"use strict";var{isIP:sDr}=B("node:net"),{lookup:iDr}=B("node:dns"),oDr=F5(),{InvalidArgumentError:NR,InformationalError:aDr}=sn(),Uet=Math.pow(2,31)-1,yhe=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 aDr("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){iDr(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===Uet?(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===Uet?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 bhe(this,e,r)}},bhe=class extends oDr{#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)=> Line truncated
${i}`;break;case"retry":Ent(i)&&(r[s]=i);break;case"id":Cnt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Ent(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Cnt(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}}};Int.exports={EventSourceStream:cge}});var Dnt=f((zMn,Rnt)=>{"use strict";var{pipeline:fkr}=B("node:stream"),{fetching:pkr}=HF(),{makeRequest:mkr}=DR(),{webidl:Hp}=Wo(),{EventSourceStream:Ekr}=Bnt(),{parseMIMEType:Ckr}=$A(),{createFastMessageEvent:Ikr}=vR(),{isNetworkError:Qnt}=_F(),{delay:Bkr}=age(),{kEnumerableProperty:rQ}=Ir(),{environmentSettingsObject:ynt}=jc(),bnt=!1,wnt=3e3,$F=0,Nnt=1,eM=2,Qkr="anonymous",ykr="use-credentials",OR=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=$F;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hp.util.markAsUncloneable(this);let n="EventSource constructor";Hp.argumentLengthCheck(arguments,1,n),bnt||(bnt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hp.converters.USVString(e,n,"url"),r=Hp.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:wnt};let s=ynt,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=Qkr;r.withCredentials&&(o=ykr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ynt.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=mkr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===eM)return;this.#r=$F;let e={request:this.#s,dispatcher:this.#a},r=n=>{Qnt(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Qnt(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?Ckr(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=Nnt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Ekr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Ikr(A.type,A.options))}});fkr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=pkr(e)}async#c(){this.#r!==eM&&(this.#r=$F,this.dispatchEvent(new Event("error")),await Bkr(this.#o.reconnectionTime),this.#r===$F&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Hp.brandCheck(this,t),this.#r!==eM&&(this.#r=eM,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}},Snt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:$F,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Nnt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:eM,writable:!1}};Object.defineProperties(OR,Snt);Object.defineProperties(OR.prototype,Snt);Object.defineProperties(OR.prototype,{close:rQ,onerror:rQ,onmessage:rQ,onopen:rQ,readyState:rQ,url:rQ,withCredentials:rQ});Hp.converters.EventSourceInitDict=Hp.dictionaryConverter([{key:"withCredentials",converter:Hp.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hp.converters.any}]);Rnt.exports={EventSource:OR,defaultReconnectionTime:wnt}});var uge=f((jMn,vt)=>{"use strict";var bkr=gR(),xnt=iF(),wkr=fR(),Nkr=wZe(),Skr=pR(),Rkr=Mde(),Dkr=jZe(),xkr=t$e(),Tnt=sn(),B6=Ir(),{InvalidArgumentError:I6}=Tnt,HR=H$e(),Tkr=aF(),kkr=fhe(),Fkr=bet(),Mkr=Ehe(),vkr=rhe(),Lkr=Q5(),{getGlobalDispatcher:knt,setGlobalDispatcher:Ukr}=k5(),Pkr=F5(),_kr=l5(),Okr=d5();Object.assign(xnt.prototype,HR);vt.exports.Dispatcher=xnt;vt.exports.Client=bkr;vt.exports.Pool=wkr;vt.exports.BalancedPool=Nkr;vt.exports.Agent=Skr;vt.exports.ProxyAgent=Rkr;vt.exports.EnvHttpProxyAgent=Dkr;vt. Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),xC("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(xC("Creating `tls.Socket`: %o",this.connectOpts),i=GDt.connect(this.connectOpts)):(xC("Creating `net.Socket`: %o",this.connectOpts),i=HDt.connect(this.connectOpts)),await(0,qDt.once)(i,"connect"),i}};AF.protocols=["http","https"];Ua.HttpProxyAgent=AF;function JDt(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var J1e=E(QF=>{"use strict";Object.defineProperty(QF,"__esModule",{value:!0});QF.state=void 0;QF.state={instrumenterImplementation:void 0}});var cDe=E(NF=>{"use strict";Object.defineProperty(NF,"__esModule",{value:!0});NF.state=void 0;NF.state={operationRequestMap:new WeakMap}});var ETe=E((hPr,_Ft)=>{_Ft.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 CTe=E((fPr,mTe)=>{var PFt=ETe();mTe.exports={version:PFt.version}});var KM=E(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});XC.isJsonObject=XC.typeofJsonValue=void 0;function zFt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}XC.typeofJsonValue=zFt;function jFt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}XC.isJsonObject=jFt});var XM=E($C=>{"use strict";Object.defineProperty($C,"__esModule",{value:!0});$C.base64encode=$C.base64decode=void 0;var fd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZM=[];for(let t=0;t<fd.length;t++)ZM[fd[t].charCodeAt(0)]=t;ZM[45]=fd.indexOf("+");ZM[95]=fd.indexOf("/");function KFt(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=ZM[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)}$C.base64decode=KFt;function ZFt(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=fd[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=fd[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=fd[n|s>>6],e+=fd[s&63],r=0;break}return r&&(e+=fd[n],e+="=",r==1&&(e+="=")),e}$C.base64encode=ZFt});var bTe=E($M=>{"use strict";Object.defineProperty($M,"__esModule",{value:!0});$M.utf8read=void 0;var s7=t=>String.fromCharCode.apply(String,t);function XFt(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(s7(s)),n=0);return r.length?(n&&r.push(s7(s.slice(0,n))),r.join("")):s7(s.slice(0,n))}$M.utf8read=XFt});var cS=E(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.WireType=Nu.mergeBinaryOptions=Nu.UnknownFieldHandler=void 0;var $Ft;(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])})($Ft=Nu.UnknownFieldHandler||(Nu.UnknownFieldHandler={}));function eMt(t,e){return Object.assign(Object.assign({},t),e)}Nu.mergeBinaryOptions=eMt;var tMt;(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"})(tMt=Nu.WireType||(Nu.WireType={}))});var tU=E(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.varint32read=to.varint32write=to.int64toString=to.int64fromString=to.varint64write=to.varint64read=void 0;function rMt(){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")}to.varint64read=rMt;function sMt(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)}}to.varint64write=sMt;var eU=65536*65536;function nMt(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>=eU&&(n=n+(s/eU|0),s=s%eU)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}to.int64fromString=nMt;function iMt(t,e){if(e>>>0<=2097151)return""+(eU*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)}to.int64toString=iMt;function oMt(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)}}to.varint32write=oMt;function aMt(){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}to.varint32read=aMt});var ef=E($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.PbLong=$h.PbULong=$h.detectBi=void 0;var uS=tU(),br;function wTe(){let t=new DataView(new ArrayBuffer(8));br=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}$h.detectBi=wTe;wTe();function STe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var NTe=/^-?[0-9]+$/,sU=4294967296,rU=2147483648,nU=c Line truncated
`)}};DU.RpcError=T7});var k7=E(TU=>{"use strict";Object.defineProperty(TU,"__esModule",{value:!0});TU.mergeRpcOptions=void 0;var sxe=Ct();function RUt(t,e){if(!e)return t;let r={};RU(t,r),RU(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=sxe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=sxe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},RU(t.meta,r.meta),RU(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}TU.mergeRpcOptions=RUt;function RU(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 M7=E(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.Deferred=Gp.DeferredState=void 0;var Tu;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Tu=Gp.DeferredState||(Gp.DeferredState={}));var F7=class{constructor(e=!0){this._state=Tu.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!==Tu.PENDING)throw new Error(`cannot resolve ${Tu[this.state].toLowerCase()}`);this._resolve(e),this._state=Tu.RESOLVED}reject(e){if(this.state!==Tu.PENDING)throw new Error(`cannot reject ${Tu[this.state].toLowerCase()}`);this._reject(e),this._state=Tu.REJECTED}resolvePending(e){this._state===Tu.PENDING&&this.resolve(e)}rejectPending(e){this._state===Tu.PENDING&&this.reject(e)}};Gp.Deferred=F7});var v7=E(xU=>{"use strict";Object.defineProperty(xU,"__esModule",{value:!0});xU.RpcOutputStreamController=void 0;var nxe=M7(),Yp=Ct(),U7=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){Yp.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){Yp.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){Yp.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(){Yp.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;Yp.assert(e,"bad state"),Yp.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 nxe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Yp.assert(s.state==nxe.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};xU.RpcOutputStreamController=U7});var _7=E(oI=>{"use strict";var TUt=oI&&oI.__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(oI,"__esModule",{value:!0});oI.UnaryCall=void 0;var L7=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 TUt(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}})}};oI.UnaryCall=L7});var O7=E(aI=>{"use strict";var xUt=aI&&aI.__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(aI,"__esModule",{value:!0});aI.ServerStreamingCall=void 0;var P7=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 Mut=f(Fut=>{"use strict";var Ime=$p().Buffer;Fut._dbcs=em;var jo=-1,kut=-2,Ml=-10,AA=-1e3,fD=new Array(256),$M=-1;for(DJ=0;DJ<256;DJ++)fD[DJ]=jo;var DJ;function em(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]=fD.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(fD.slice(0));var i=this.decodeTables.length;this.decodeTables.push(fD.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[AA-o[n]],A=48;A<=57;A++){if(a[A]===jo)a[A]=AA-s;else if(a[A]>AA)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[AA-a[A]],u=129;u<=254;u++){if(c[u]===jo)c[u]=AA-i;else{if(c[u]===AA-i)continue;if(c[u]>AA)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[AA-c[u]],d=48;d<=57;d++)l[d]===jo&&(l[d]=kut)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function _4r(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(b4r.has(s)){r=s;break}}return r}function O4r(t,e){let r=_4r(e);r!==""&&(t.referrerPolicy=r)}function H4r(){return"allowed"}function q4r(){return"success"}function G4r(){return"success"}function Y4r(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function J4r(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&&MEe(t.origin)&&!MEe(RQ(t))&&(e=null);break;case"same-origin":cv(t,RQ(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function QD(t,e){return t}function V4r(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:QD(t.domainLookupStartTime,r),domainLookupEndTime:QD(t.domainLookupEndTime,r),connectionStartTime:QD(t.connectionStartTime,r),connectionEndTime:QD(t.connectionEndTime,r),secureConnectionStartTime:QD(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function W4r(t){return QD(R4r.now(),t)}function z4r(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 uht(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function j4r(t){return{referrerPolicy:t.referrerPolicy}}function K4r(t){let e=t.referrerPolicy;uv(e);let r=null;if(t.referrer==="client"){let i=iht();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else WC.is.URL(t.referrer)&&(r=t.referrer);let n=FEe(r),s=FEe(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??FEe(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=RQ(t);return cv(n,i)?n:SQ(n)&&!SQ(i)?"no-referrer":s}case"same-origin":return cv(t,n)?n:"no-referrer";case"origin-when-cross-origin":return cv(t,n)?n:s;case"no-referrer-when-downgrade":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":n}}}function FEe(t,e=!1){return uv(WC.is.URL(t)),t=new URL(t),ght(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var X4r=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)$/),Z4r=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function lht(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Z4r(t)):X4r(t)}function $4r(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||lht(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function SQ(t){return WC.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:$4r(t.origin):!1}function eYr(t){}function cv(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function tYr(t){return t.controller.state==="aborted"}function rYr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function nYr(t){return x4r[t.toLowerCase()]??t}var sYr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function dht(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,sYr),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 iYr(t,e,r,n=0,s=1){let i=dht(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return WC.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return WC.brandCheck(this,e),i(this, Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ul(a=>GEe(a)&&a!==59,t,e);i=HEe.decode(o)}return{name:n,value:i}}function DYr(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 lc("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ul(a=>a!==10&&a!==13&&a!==58,t,e);if(o=qEe(o,!0,!0,a=>a===9||a===32),!BYr.test(o.toString()))throw lc("header name does not match the field-name token production");if(t[e.position]!==58)throw lc("expected :");switch(e.position++,Ul(a=>a===32||a===9,t,e),IYr(o)){case"content-disposition":{if(r=n=null,Ul(A=>GEe(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw lc("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=RYr(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw lc("name attribute is required in content-disposition header");break}case"content-type":{let a=Ul(A=>A!==10&&A!==13,t,e);a=qEe(a,!1,!0,A=>A===9||A===32),s=Iht(a);break}case"content-transfer-encoding":{let a=Ul(A=>A!==10&&A!==13,t,e);a=qEe(a,!1,!0,A=>A===9||A===32),i=Iht(a);break}default:Ul(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw lc("expected CRLF");e.position+=2}}function Ul(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function qEe(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 xYr(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 lc(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function TYr(t){return t<=31||t===127}function kYr(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 GEe(t){return t<=127&&t!==32&&t!==9&&!TYr(t)&&!kYr(t)}Bht.exports={multipartFormDataParser:SYr,validateBoundary:NYr}});var lv=f((wGn,yht)=>{"use strict";function FYr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}yht.exports={createDeferredPromise:FYr}});var wD=f((NGn,Rht)=>{"use strict";var VEe=Wt(),{ReadableStreamFrom:MYr,readableStreamClose:vYr,fullyReadBody:LYr,extractMimeType:UYr}=au(),{FormData:bht,setFormDataState:PYr}=$J(),{webidl:jd}=Ko(),YEe=B("node:assert"),{isErrored:JEe,isDisturbed:_Yr}=B("node:stream"),{isUint8Array:OYr}=B("node:util/types"),{serializeAMimeType:HYr}=Ll(),{multipartFormDataParser:qYr}=Qht(),{createDeferredPromise:GYr}=lv(),{parseJSONFromBytes:YYr}=nm(),{utf8DecodeBytes:JYr}=ov(),{runtimeFeatures:VYr}=sm(),WYr=VYr.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),eV=new TextEncoder;function zYr(){}var jYr=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!_Yr(e)&&!JEe(e)&&e.cancel("Response object has been garbage collected").catch(zYr)});function Nht(t,e=!1){let r=null,n=null;jd.is.ReadableStream(t)?r=t:jd.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),YEe(jd.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(jd.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(jd.is.BufferSource(t))i=jd.util.getCopyOfBytesHeldByBufferSource(t);else if(jd.is.FormData(t)){let c=`----formdata-undici-0${`${WYr(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 vFe=E(UFe=>{"use strict";var BZ=yd().Buffer;UFe._dbcs=bd;var xn=-1,MFe=-2,rA=-10,Si=-1e3,vI=new Array(256),eN=-1;for(iL=0;iL<256;iL++)vI[iL]=xn;var iL;function bd(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]=vI.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(vI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(vI.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Si-o[s]],A=48;A<=57;A++){if(a[A]===xn)a[A]=Si-n;else if(a[A]>Si)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Si-a[A]],u=129;u<=254;u++){if(c[u]===xn)c[u]=Si-i;else{if(c[u]===Si-i)continue;if(c[u]>Si)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Si-c[u]],d=48;d<=57;d++)l[d]===xn&&(l[d]=MFe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function hGt(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(XHt.has(n)){r=n;break}}return r}function fGt(t,e){let r=hGt(e);r!==""&&(t.referrerPolicy=r)}function gGt(){return"allowed"}function pGt(){return"success"}function EGt(){return"success"}function mGt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function CGt(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&&UX(t.origin)&&!UX(lE(t))&&(e=null);break;case"same-origin":uN(t,lE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function YI(t,e){return t}function IGt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:YI(t.domainLookupStartTime,r),domainLookupEndTime:YI(t.domainLookupEndTime,r),connectionStartTime:YI(t.connectionStartTime,r),connectionEndTime:YI(t.connectionEndTime,r),secureConnectionStartTime:YI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function BGt(t){return YI(rGt.now(),t)}function QGt(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 dve(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function yGt(t){return{referrerPolicy:t.referrerPolicy}}function bGt(t){let e=t.referrerPolicy;lN(e);let r=null;if(t.referrer==="client"){let i=ave();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Bf.is.URL(t.referrer)&&(r=t.referrer);let s=MX(r),n=MX(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??MX(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=lE(t);return uE(s)&&!uE(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=lE(t);return uN(s,i)?s:uE(s)&&!uE(i)?"no-referrer":n}case"same-origin":return uN(t,s)?s:"no-referrer";case"origin-when-cross-origin":return uN(t,s)?s:n;case"no-referrer-when-downgrade":{let i=lE(t);return uE(s)&&!uE(i)?"no-referrer":s}}}function MX(t,e=!1){return lN(Bf.is.URL(t)),t=new URL(t),pve(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var wGt=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)$/),SGt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function hve(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),SGt(t)):wGt(t)}function NGt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||hve(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function uE(t){return Bf.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:NGt(t.origin):!1}function DGt(t){}function uN(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function RGt(t){return t.controller.state==="aborted"}function TGt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function xGt(t){return nGt[t.toLowerCase()]??t}var kGt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function fve(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,kGt),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 FGt(t,e,r,s=0,n=1){let i=fve(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Bf.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Bf.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=iA(a=>qX(a)&&a!==59,t,e);i=GX.decode(o)}return{name:s,value:i}}function s6t(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 Ao("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=iA(a=>a!==10&&a!==13&&a!==58,t,e);if(o=YX(o,!0,!0,a=>a===9||a===32),!jGt.test(o.toString()))throw Ao("header name does not match the field-name token production");if(t[e.position]!==58)throw Ao("expected :");switch(e.position++,iA(a=>a===32||a===9,t,e),zGt(o)){case"content-disposition":{if(r=s=null,iA(A=>qX(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ao("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=r6t(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Ao("name attribute is required in content-disposition header");break}case"content-type":{let a=iA(A=>A!==10&&A!==13,t,e);a=YX(a,!1,!0,A=>A===9||A===32),n=Qve(a);break}case"content-transfer-encoding":{let a=iA(A=>A!==10&&A!==13,t,e);a=YX(a,!1,!0,A=>A===9||A===32),i=Qve(a);break}default:iA(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ao("expected CRLF");e.position+=2}}function iA(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function YX(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 n6t(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 Ao(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function i6t(t){return t<=31||t===127}function o6t(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 qX(t){return t<=127&&t!==32&&t!==9&&!i6t(t)&&!o6t(t)}yve.exports={multipartFormDataParser:t6t,validateBoundary:e6t}});var dN=E((D6r,wve)=>{"use strict";function a6t(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}wve.exports={createDeferredPromise:a6t}});var JI=E((R6r,Tve)=>{"use strict";var WX=ct(),{ReadableStreamFrom:A6t,readableStreamClose:c6t,fullyReadBody:u6t,extractMimeType:l6t}=zo(),{FormData:Sve,setFormDataState:d6t}=RL(),{webidl:hc}=kn(),VX=B("node:assert"),{isErrored:JX,isDisturbed:h6t}=B("node:stream"),{isUint8Array:f6t}=B("node:util/types"),{serializeAMimeType:g6t}=nA(),{multipartFormDataParser:p6t}=bve(),{createDeferredPromise:E6t}=dN(),{parseJSONFromBytes:m6t}=Nd(),{utf8DecodeBytes:C6t}=aN(),{runtimeFeatures:I6t}=Dd(),B6t=I6t.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),TL=new TextEncoder;function Q6t(){}var y6t=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!h6t(e)&&!JX(e)&&e.cancel("Response object has been garbage collected").catch(Q6t)});function Dve(t,e=!1){let r=null,s=null;hc.is.ReadableStream(t)?r=t:hc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),VX(hc.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(hc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(hc.is.BufferSource(t))i=hc.util.getCopyOfBytesHeldByBufferSource(t);else if(hc.is.FormData(t)){let c=`----formdata-undici-0${`${B6t(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],g=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let y=eV.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let Q=TL.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=eV.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
`);h.push(Q),o+=Q.byteLength}else{let Q=TL.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=eV.encode(`--${c}--\r
`);h.push(C),o+=C.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(jd.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(VEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=jd.is.ReadableStream(t)?t:MYr(t)}return(typeof i=="string"||OYr(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(JEe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!JEe(r)&&n.enqueue(typeof c=="string"?eV.encode(c):new Uint8Array(c));queueMicrotask(()=>vYr(n))})(),[{stream:r,source:i,length:o},a]}function KYr(t,e=!1){return jd.is.ReadableStream(t)&&(YEe(!VEe.isDisturbed(t),"The body has already been consumed."),YEe(!t.locked,"The stream is locked.")),Nht(t,e)}function XYr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function ZYr(t,e){return{blob(){return bD(this,n=>{let s=wht(e(this));return s===null?s="":s&&(s=HYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return bD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return bD(this,JYr,t,e)},json(){return bD(this,YYr,t,e)},formData(){return bD(this,n=>{let s=wht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=qYr(n,s),o=new bht;return PYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new bht;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 bD(this,n=>new Uint8Array(n),t,e)}}}function $Yr(t,e){Object.assign(t.prototype,ZYr(t,e))}function bD(t,e,r,n){try{jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Sht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=GYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(LYr(t.body,o,i),s.promise)}function Sht(t){let e=t.body;return e!=null&&(e.stream.locked||VEe.isDisturbed(e.stream))}function wht(t){let e=t.headersList,r=UYr(e);return r==="failure"?null:r}Rht.exports={extractBody:Nht,safelyExtractBody:KYr,cloneBody:XYr,mixinBody:$Yr,streamRegistry:jYr,bodyUnusable:Sht}});var _ht=f((SGn,Pht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:Dht}=JC(),WEe=kme(),{RequestContentLengthMismatchError:DQ,ResponseContentLengthMismatchError:e5r,RequestAbortedError:vht,HeadersTimeoutError:t5r,HeadersOverflowError:r5r,SocketError:gv,InformationalError:ND,BodyTimeoutError:n5r,HTTPParserError:s5r,ResponseExceededMaxSizeError:i5r}=or(),{kUrl:Lht,kReset:dc,kClient:eCe,kParser:ai,kBlocking:fv,kRunning:Na,kPending:o5r,kSize:xht,kWriting:jC,kQueue:Kd,kNoRef:dv,kKeepAliveDefaultTimeout:a5r,kHostHeader:A5r,kPendingIdx:c5r,kRunningIdx:Pl,kError:_l,kPipelining:nV,kSocket:SD,kKeepAliveTimeoutValue:iV,kMaxHeadersSize:u5r,kKeepAliveMaxTimeout:l5r,kKeepAliveTimeoutThreshold:d5r,kHeadersTimeout:h5r,kBodyTimeout:g5r,kStrictContentLength:KEe,kMaxRequests:Tht,kCounter:f5r,kMaxResponseSize:p5r,kOnError:m5r,kResume:zC,kHTTPContext:Uht,kClosed:XEe}=Mn(),Mg=Rdt(),E5r=Buffer.alloc(0),tV=Buffer[Symbol.species],C5r=Pt.removeAllListeners,zEe;function I5r(){let t=process.env.JEST_WORKER_ID?IEe():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(Tdt())}catch{}return e||(e=new WebAssembly.Module(t||IEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onStatus(new tV(vg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(Ki.ptr===n),Ki.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onHeaderField(new tV(vg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onHeaderValue(new tV(vg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(Ki.ptr===n),Ki.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onBody(new tV(vg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(Ki.ptr===n),Ki.onMessageComplete())}})}var jEe=null,Ki=null,vg=null,rV=0,Lg=null,B5r=0,hv=1,RD=2|hv,sV=4|hv,ZEe=8|B5r,$Ee=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Mg.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[u5r],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[A5r],i?p+=`connection: upgrade\r
`);h.push(Q,I,f),typeof I.size=="number"?o+=Q.byteLength+I.size+f.byteLength:p=!0}let C=TL.encode(`--${c}--\r
`);h.push(C),o+=C.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(hc.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(WX.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=hc.is.ReadableStream(t)?t:A6t(t)}return(typeof i=="string"||f6t(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(JX(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!JX(r)&&s.enqueue(typeof c=="string"?TL.encode(c):new Uint8Array(c));queueMicrotask(()=>c6t(s))})(),[{stream:r,source:i,length:o},a]}function b6t(t,e=!1){return hc.is.ReadableStream(t)&&(VX(!WX.isDisturbed(t),"The body has already been consumed."),VX(!t.locked,"The stream is locked.")),Dve(t,e)}function w6t(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function S6t(t,e){return{blob(){return VI(this,s=>{let n=Nve(e(this));return n===null?n="":n&&(n=g6t(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return VI(this,s=>new Uint8Array(s).buffer,t,e)},text(){return VI(this,C6t,t,e)},json(){return VI(this,m6t,t,e)},formData(){return VI(this,s=>{let n=Nve(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=p6t(s,n),o=new Sve;return d6t(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new Sve;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 VI(this,s=>new Uint8Array(s),t,e)}}}function N6t(t,e){Object.assign(t.prototype,S6t(t,e))}function VI(t,e,r,s){try{hc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Rve(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=E6t(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(u6t(t.body,o,i),n.promise)}function Rve(t){let e=t.body;return e!=null&&(e.stream.locked||WX.isDisturbed(e.stream))}function Nve(t){let e=t.headersList,r=l6t(e);return r==="failure"?null:r}Tve.exports={extractBody:Dve,safelyExtractBody:b6t,cloneBody:w6t,mixinBody:N6t,streamRegistry:y6t,bodyUnusable:Rve}});var Hve=E((T6r,Ove)=>{"use strict";var et=B("node:assert"),tt=ct(),{channels:xve}=Cf(),zX=FZ(),{RequestContentLengthMismatchError:dE,ResponseContentLengthMismatchError:D6t,RequestAbortedError:Lve,HeadersTimeoutError:R6t,HeadersOverflowError:T6t,SocketError:gN,InformationalError:WI,BodyTimeoutError:x6t,HTTPParserError:k6t,ResponseExceededMaxSizeError:F6t}=Et(),{kUrl:_ve,kReset:co,kClient:t$,kParser:Cs,kBlocking:pN,kRunning:$n,kPending:M6t,kSize:kve,kWriting:yf,kQueue:fc,kNoRef:hN,kKeepAliveDefaultTimeout:U6t,kHostHeader:v6t,kPendingIdx:L6t,kRunningIdx:oA,kError:aA,kPipelining:FL,kSocket:zI,kKeepAliveTimeoutValue:UL,kMaxHeadersSize:_6t,kKeepAliveMaxTimeout:P6t,kKeepAliveTimeoutThreshold:O6t,kHeadersTimeout:H6t,kBodyTimeout:G6t,kStrictContentLength:ZX,kMaxRequests:Fve,kCounter:Y6t,kMaxResponseSize:q6t,kOnError:V6t,kResume:Qf,kHTTPContext:Pve,kClosed:XX}=Br(),Hu=TUe(),J6t=Buffer.alloc(0),xL=Buffer[Symbol.species],W6t=tt.removeAllListeners,jX;function z6t(){let t=process.env.JEST_WORKER_ID?BX():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(FUe())}catch{}return e||(e=new WebAssembly.Module(t||BX())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{et(Xs.ptr===s);let o=n-Yu+Gu.byteOffset;return Xs.onStatus(new xL(Gu.buffer,o,i))},wasm_on_message_begin:s=>(et(Xs.ptr===s),Xs.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{et(Xs.ptr===s);let o=n-Yu+Gu.byteOffset;return Xs.onHeaderField(new xL(Gu.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{et(Xs.ptr===s);let o=n-Yu+Gu.byteOffset;return Xs.onHeaderValue(new xL(Gu.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(et(Xs.ptr===s),Xs.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{et(Xs.ptr===s);let o=n-Yu+Gu.byteOffset;return Xs.onBody(new xL(Gu.buffer,o,i))},wasm_on_message_complete:s=>(et(Xs.ptr===s),Xs.onMessageComplete())}})}var KX=null,Xs=null,Gu=null,kL=0,Yu=null,j6t=0,fN=1,jI=2|fN,ML=4|fN,$X=8|j6t,e$=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Hu.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[_6t],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[q6t]}setTi Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[v6t],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[nV]&&!h[dc]?p+=`connection: keep-alive\r
`:t[FL]&&!h[co]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let Q=0;Q<I.length;Q++)p+=`${m}: ${I[Q]}\r
`;else p+=`${m}: ${I}\r
`}return Dht.sendHeaders.hasSubscribers&&Dht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Fht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?Fht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?Mht(g,A.stream(),t,e,h,u,p,l):k5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?T5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?Mht(g,A,t,e,h,u,p,l):Lt(!1),!0}function T5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===0,"stream body cannot be pipelined");let A=!1,c=new oV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new vht;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[jC]&&r[Na]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.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 Fht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`}return xve.sendHeaders.hasSubscribers&&xve.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Uve(f,null,t,e,h,u,p,l):tt.isBuffer(A)?Uve(f,A,t,e,h,u,p,l):tt.isBlobLike(A)?typeof A.stream=="function"?vve(f,A.stream(),t,e,h,u,p,l):o5t(f,A,t,e,h,u,p,l):tt.isStream(A)?i5t(f,A,t,e,h,u,p,l):tt.isIterable(A)?vve(f,A,t,e,h,u,p,l):et(!1),!0}function i5t(t,e,r,s,n,i,o,a){et(i!==0||r[$n]===0,"stream body cannot be pipelined");let A=!1,c=new vL({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){tt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Lve;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,et(n.destroyed||n[yf]&&r[$n]<=1),n.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")?tt.destroy(e,f):tt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.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 Uve(t,e,r,s,n,i,o,a){try{e?tt.isBuffer(e)&&(et(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[dc]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[co]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(Lt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[zC]()}catch(A){t(A)}}async function k5r(t,e,r,n,s,i,o,a){Lt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new DQ;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(et(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Qf]()}catch(A){t(A)}}async function o5t(t,e,r,s,n,i,o,a){et(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new dE;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[dc]=!0),r[zC]()}catch(A){t(A)}}async function Mht(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===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)=>{Lt(A===null),s[_l]?h(s[_l]):A=d});s.on("close",c).on("drain",c);let l=new oV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[_l])throw s[_l];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var oV=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[jC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[_l])throw r[_l];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[KEe])throw new DQ;process.emitWarning(new DQ)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[dc]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[co]=!0),r[Qf]()}catch(A){t(A)}}async function vve(t,e,r,s,n,i,o,a){et(i!==0||r[$n]===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)=>{et(A===null),n[aA]?h(n[aA]):A=d});n.on("close",c).on("drain",c);let l=new vL({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[aA])throw n[aA];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var vL=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[yf]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[aA])throw r[aA];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[ZX])throw new dE;process.emitWarning(new dE)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[co]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===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[ai].timeout&&r[ai].timeoutType===RD&&r[ai].timeout.refresh&&r[ai].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[jC]=!1,e[_l])throw e[_l];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(),s.onBodySent(e),u||r[Cs].timeout&&r[Cs].timeoutType===jI&&r[Cs].timeout.refresh&&r[Cs].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[yf]=!1,e[aA])throw e[aA];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&&s!==r){if(n[KEe])throw new DQ;process.emitWarning(new DQ)}e[ai].timeout&&e[ai].timeoutType===RD&&e[ai].timeout.refresh&&e[ai].timeout.refresh(),n[zC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[jC]=!1,e&&(Lt(n[Na]<=1,"pipeline should only contain this request"),s(e))}};Pht.exports=Q5r});var zht=f((RGn,Wht)=>{"use strict";var Hl=B("node:assert"),{pipeline:F5r}=B("node:stream"),hr=Wt(),{RequestContentLengthMismatchError:sCe,RequestAbortedError:M5r,SocketError:Cv,InformationalError:KC,InvalidArgumentError:v5r}=or(),{kUrl:Ev,kReset:uV,kClient:Au,kRunning:Iv,kPending:L5r,kQueue:XC,kPendingIdx:oCe,kRunningIdx:Xd,kError:cu,kSocket:_s,kStrictContentLength:U5r,kOnError:DD,kMaxConcurrentStreams:AV,kPingInterval:Oht,kHTTP2Session:om,kHTTP2InitialWindowSize:P5r,kHTTP2ConnectionWindowSize:_5r,kResume:Ug,kSize:O5r,kHTTPContext:aCe,kClosed:iCe,kBodyTimeout:H5r,kEnableConnectProtocol:pv,kRemoteSettings:mv,kHTTP2Stream:aV,kHTTP2SessionState:ACe}=Mn(),{channels:Hht}=JC(),Ol=Symbol("open streams"),qht,cV;try{cV=B("node:http2")}catch{cV={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:q5r,HTTP2_HEADER_METHOD:Ght,HTTP2_HEADER_PATH:Yht,HTTP2_HEADER_SCHEME:tCe,HTTP2_HEADER_CONTENT_LENGTH:G5r,HTTP2_HEADER_EXPECT:Y5r,HTTP2_HEADER_STATUS:rCe,HTTP2_HEADER_PROTOCOL:J5r,NGHTTP2_REFUSED_STREAM:V5r,NGHTTP2_CANCEL:W5r}}=cV;function nCe(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 z5r(t,e){t[_s]=e;let r=t[P5r],n=t[_5r],s=cV.connect(t[Ev],{createConnection:()=>e,peerMaxConcurrentStreams:t[AV],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[_s]=e,s[Ol]=0,s[Au]=t,s[_s]=e,s[ACe]={ping:{interval:t[Oht]===0?null:setInterval(Z5r,t[Oht],s).unref()}},s[pv]=!1,s[mv]=!1,n&&hr.addListener(s,"connect",K5r.bind(s,n)),hr.addListener(s,"error",$5r),hr.addListener(s,"frameError",e6r),hr.addListener(s,"end",t6r),hr.addListener(s,"goaway",r6r),hr.addListener(s,"close",n6r),hr.addListener(s,"remoteSettings",X5r),s.unref(),t[om]=s,e[om]=s,hr.addListener(e,"error",i6r),hr.addListener(e,"end",o6r),hr.addListener(e,"close",s6r),e[iCe]=!1,e.on("close",a6r),{version:"h2",defaultPipelining:1/0,write(i){return c6r(t,i)},resume(){j5r(t)},destroy(i,o){e[iCe]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Iv]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[mv]===!1||hr.bodyLength(i.body)!==0&&(hr.isStream(i.body)||hr.isAsyncIterable(i.body)||hr.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[mv]===!1;return!1}}}function j5r(t){let e=t[_s];e?.destroyed===!1&&(t[O5r]===0||t[AV]===0?(e.unref(),t[om].unref()):(e.ref(),t[om].ref()))}function K5r(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function X5r(t){if(this[Au][AV]=t.maxConcurrentStreams??this[Au][AV],this[mv]===!0&&this[pv]===!0&&t.enableConnectProtocol===!1){let e=new KC("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[_s][cu]=e,this[Au][DD](e);return}this[pv]=t.enableConnectProtocol??this[pv],this[mv]=!0,this[Au][Ug]()}function Z5r(t){let e=t[ACe];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[Au],o=this[Au];if(n!=null){let a=new KC(`HTTP/2: "PING" errored - type ${n.message}`);o[cu]=a,i[DD](a)}else i.emit("ping",s)}}function $5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_s][cu]=t,this[Au][DD](t)}function e6r(t,e,r){if(r===0){let n=new KC(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_s][cu]=n,this[Au][DD](n)}}function t6r(){let t=new Cv("other side closed",hr.getSocketInfo(this[_s]));this.destroy(t),hr.destroy(this[_s],t)}function r6r(t){let e=this[cu]||new Cv(`HTTP/2: "GOAWAY" frame received with code ${t}`,hr.getSocketInfo(this[_s])),r=this[Au];if(r[_s]=null,r[aCe]=null,this.close(),this[om]=null,hr.destroy(this[_s],e),r[Xd]<r[XC].length){let n=r[XC][r[Xd]];r[XC][r[Xd]++]=null,hr.errorRequest(r,n,e),r[oCe]=r[Xd]}Hl(r[Iv]===0),r.emit("disconnect",r[Ev],[r],e),r.emit("connectionError",r[Ev],[r],e),r[Ug]()}function n6r(){let{[Au]:t,[ACe]:e}=this,{[_s]:r}=t,n=this[_s][cu]||this[cu]||new Cv("closed",hr.getSocketInfo(r));if(t[_s]=null,t[aCe]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Hl(t[L5r]===0);let s=t[XC].splice(t[Xd]);for(let i=0;i<s.length;i++){let o=s[i];hr.errorRequest(t,o,n)}}}function s6r(){let t=this[cu]||new Cv("closed",hr.getSocketInfo(this)),e=this[om][Au];e[_s]=null,e[aCe]=null,this[om]!==null&&this[om].destroy(t),e[oCe]=e[Xd],Hl(e[Iv]===0),e.emit("disconnect",e[Ev],[e],t),e[Ug]()}function i6r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cu]=t,this[Au][DD](t)}function o6r(){hr.destroy(this,new Cv("other side closed",hr.getSock Line truncated
`;Hht.sendHeaders.publish({request:e,headers:F,socket:n[_s]})}let w=s==="GET"||s==="HEAD"||d===null;A?(h[Y5r]="100-continue",g=n.request(h,{endStream:w,signal:c}),g[aV]=!0,g.once("continue",z)):(g=n.request(h,{endStream:w,signal:c}),g[aV]=!0,z()),++n[Ol],g.setTimeout(r);let H=!1;return g.once("response",F=>{let{[rCe]:W,...U}=F;if(e.onResponseStarted(),H=!0,e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(W),nCe(U),g.resume.bind(g),"")===!1&&g.pause()}),g.on("data",F=>{e.onData(F)===!1&&g.pause()}),g.once("end",()=>{g.removeAllListeners("data"),H?(!e.aborted&&!e.completed&&e.onComplete({}),t[XC][t[Xd]++]=null,t[Ug]()):(m(new KC("HTTP/2: stream half-closed (remote)")),t[XC][t[Xd]++]=null,t[oCe]=t[Xd],t[Ug]())}),g.once("close",()=>{g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref()}),g.once("error",function(F){g.removeAllListeners("data"),m(F)}),g.once("frameError",(F,W)=>{g.removeAllListeners("data"),m(new KC(`HTTP/2: "frameError" received - type ${F}, code ${W}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let F=new KC(`HTTP/2: "stream timeout after ${r}"`);g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref(),m(F)}),g.once("trailers",F=>{e.aborted||e.completed||e.onComplete(F)}),!0;function z(){!d||y===0?Jht(m,g,null,t,e,t[_s],y,I):hr.isBuffer(d)?Jht(m,g,d,t,e,t[_s],y,I):hr.isBlobLike(d)?typeof d.stream=="function"?Vht(m,g,d.stream(),t,e,t[_s],y,I):l6r(m,g,d,t,e,t[_s],y,I):hr.isStream(d)?u6r(m,t[_s],I,g,d,t,e,y):hr.isIterable(d)?Vht(m,g,d,t,e,t[_s],y,I):Hl(!1)}}function Jht(t,e,r,n,s,i,o,a){try{r!=null&&hr.isBuffer(r)&&(Hl(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[uV]=!0),s.onRequestSent(),n[Ug]()}catch(A){t(A)}}function u6r(t,e,r,n,s,i,o,a){Hl(a!==0||i[Iv]===0,"stream body cannot be pipelined");let A=F5r(s,n,u=>{u?(hr.destroy(A,u),t(u)):(hr.removeAllListeners(A),o.onRequestSent(),r||(e[uV]=!0),i[Ug]())});hr.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function l6r(t,e,r,n,s,i,o,a){Hl(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new sCe;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[uV]=!0),n[Ug]()}catch(A){t(A)}}async function Vht(t,e,r,n,s,i,o,a){Hl(o!==0||n[Iv]===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)=>{Hl(A===null),i[cu]?d(i[cu]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[cu])throw i[cu];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[uV]=!0),n[Ug]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Wht.exports=z5r});var rI=f((DGn,ngt)=>{"use strict";var am=B("node:assert"),$ht=B("node:net"),Bv=B("node:http"),xQ=Wt(),{ClientStats:d6r}=iEe(),{channels:xD}=JC(),h6r=pdt(),g6r=ID(),{InvalidArgumentError:us,InformationalError:f6r,ClientDestroyedError:p6r}=or(),m6r=BD(),{kUrl:Pg,kServerName:tI,kClient:E6r,kBusy:cCe,kConnect:C6r,kResuming:TQ,kRunning:wv,kPending:Nv,kSize:Qv,kQueue:Zd,kConnected:I6r,kConnecting:TD,kNeedDrain:$C,kKeepAliveDefaultTimeout:jht,kHostHeader:B6r,kPendingIdx:$d,kRunningIdx:Am,kError:Q6r,kPipelining:lV,kKeepAliveTimeoutValue:y6r,kMaxHeadersSize:b6r,kKeepAliveMaxTimeout:w6r,kKeepAliveTimeoutThreshold:N6r,kHeadersTimeout:S6r,kBodyTimeout:R6r,kStrictContentLength:D6r,kConnector:yv,kMaxRequests:uCe,kCounter:x6r,kClose:T6r,kDestroy:k6r,kDispatch:F6r,kLocalAddress:bv,kMaxResponseSize:M6r,kOnError:v6r,kHTTPContext:wi,kMaxConcurrentStreams:L6r,kHTTP2InitialWindowSize:U6r,kHTTP2ConnectionWindowSize:P6r,kResume:eI,kPingInterval:_6r}=Mn(),O6r=_ht(),H6r=zht(),ZC=Symbol("kClosedResolve"),q6r=Bv&&Bv.maxHeaderSize&&Number.isInteger(Bv.maxHeaderSize)&&Bv.maxHeaderSize>0?()=>Bv.maxHeaderSize:()=>{throw new us("http module not available or http.maxHeaderSize invalid")},Kht=()=>{};function egt(t){return t[lV]??t[wi]?.defaultPipelining??1}var lCe=class extends g6r{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:g,pipelining:p,tls:C,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:w,localAddress:H,maxResponseSize:z,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:W,maxConcurrentStreams:U,allowH2:ee,useH2c:oe,initialWindowSize:Z,connectionWindowSize:he,pingInterval:Se}={}){if(c!==void 0)throw new us("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new us("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new us("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new us("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new us("unsupported maxKeepAliveTimeout, use keepAliveMaxT Line truncated
`,this[R6r]=a??3e5,this[S6r]=n??3e5,this[D6r]=m??!0,this[uCe]=w,this[ZC]=null,this[M6r]=z>-1?z:-1,this[wi]=null,this[L6r]=U??100,this[U6r]=Z??262144,this[P6r]=he??524288,this[_6r]=Se??6e4,this[Zd]=[],this[Am]=0,this[$d]=0,this[eI]=Je=>dCe(this,Je),this[v6r]=Je=>tgt(this,Je)}get pipelining(){return this[lV]}set pipelining(e){this[lV]=e,this[eI](!0)}get stats(){return new d6r(this)}get[Nv](){return this[Zd].length-this[$d]}get[wv](){return this[$d]-this[Am]}get[Qv](){return this[Zd].length-this[Am]}get[I6r](){return!!this[wi]&&!this[TD]&&!this[wi].destroyed}get[cCe](){return!!(this[wi]?.busy(null)||this[Qv]>=(egt(this)||1)||this[Nv]>0)}[C6r](e){rgt(this),this.once("connect",e)}[F6r](e,r){let n=new h6r(this[Pg].origin,e,r);return this[Zd].push(n),this[TQ]||(xQ.bodyLength(n.body)==null&&xQ.isIterable(n.body)?(this[TQ]=1,queueMicrotask(()=>dCe(this))):this[eI](!0)),this[TQ]&&this[$C]!==2&&this[cCe]&&(this[$C]=2),this[$C]<2}[T6r](){return new Promise(e=>{this[Qv]?this[ZC]=e:e(null)})}[k6r](e){return new Promise(r=>{let n=this[Zd].splice(this[$d]);for(let i=0;i<n.length;i++){let o=n[i];xQ.errorRequest(this,o,e)}let s=()=>{this[ZC]&&(this[ZC](),this[ZC]=null),r(null)};this[wi]?(this[wi].destroy(e,s),this[wi]=null):queueMicrotask(s),this[eI]()})}};function tgt(t,e){if(t[wv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){am(t[$d]===t[Am]);let r=t[Zd].splice(t[Am]);for(let n=0;n<r.length;n++){let s=r[n];xQ.errorRequest(t,s,e)}am(t[Qv]===0)}}function rgt(t){am(!t[TD]),am(!t[wi]);let{host:e,hostname:r,protocol:n,port:s}=t[Pg];if(r[0]==="["){let i=r.indexOf("]");am(i!==-1);let o=r.substring(1,i);am($ht.isIPv6(o)),r=o}t[TD]=!0,xD.beforeConnect.hasSubscribers&&xD.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[wi]?.version,servername:t[tI],localAddress:t[bv]},connector:t[yv]}),t[yv]({host:e,hostname:r,protocol:n,port:s,servername:t[tI],localAddress:t[bv]},(i,o)=>{if(i){Xht(t,i,{host:e,hostname:r,protocol:n,port:s}),t[eI]();return}if(t.destroyed){xQ.destroy(o.on("error",Kht),new p6r),t[eI]();return}am(o);try{t[wi]=o.alpnProtocol==="h2"?H6r(t,o):O6r(t,o)}catch(a){o.destroy().on("error",Kht),Xht(t,a,{host:e,hostname:r,protocol:n,port:s}),t[eI]();return}t[TD]=!1,o[x6r]=0,o[uCe]=t[uCe],o[E6r]=t,o[Q6r]=null,xD.connected.hasSubscribers&&xD.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[wi]?.version,servername:t[tI],localAddress:t[bv]},connector:t[yv],socket:o}),t.emit("connect",t[Pg],[t]),t[eI]()})}function Xht(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[TD]=!1,xD.connectError.hasSubscribers&&xD.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[wi]?.version,servername:t[tI],localAddress:t[bv]},connector:t[yv],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(am(t[wv]===0);t[Nv]>0&&t[Zd][t[$d]].servername===t[tI];){let o=t[Zd][t[$d]++];xQ.errorRequest(t,o,e)}else tgt(t,e);t.emit("connectionError",t[Pg],[t],e)}}function Zht(t){t[$C]=0,t.emit("drain",t[Pg],[t])}function dCe(t,e){t[TQ]!==2&&(t[TQ]=2,G6r(t,e),t[TQ]=0,t[Am]>256&&(t[Zd].splice(0,t[Am]),t[$d]-=t[Am],t[Am]=0))}function G6r(t,e){for(;;){if(t.destroyed){am(t[Nv]===0);return}if(t[ZC]&&!t[Qv]){t[ZC](),t[ZC]=null;return}if(t[wi]&&t[wi].resume(),t[cCe])t[$C]=2;else if(t[$C]===2){e?(t[$C]=1,queueMicrotask(()=>Zht(t))):Zht(t);continue}if(t[Nv]===0||t[wv]>=(egt(t)||1))return;let r=t[Zd][t[$d]];if(t[Pg].protocol==="https:"&&t[tI]!==r.servername){if(t[wv]>0)return;t[tI]=r.servername,t[wi]?.destroy(new f6r("servername changed"),()=>{t[wi]=null,dCe(t)})}if(t[TD])return;if(!t[wi]){rgt(t);return}if(t[wi].destroyed||t[wi].busy(r))return;!r.aborted&&t[wi].write(r)?t[$d]++:t[Zd].splice(t[$d],1)}}ngt.exports=lCe});var hCe=f((TGn,sgt)=>{"use strict";var dV=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)}};sgt.exports=class{constructor(){this.head=this.tail=new dV}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new dV),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 hV=f((kGn,hgt)=>{"use strict";var{PoolStats:Y6r}=iEe(),J6r=ID(),V6r=hCe(),{kConnected:gCe,kSize:igt,kRunning:ogt,kPending:agt,kQueued:Sv,kBusy:W6r,kFree:z6r,kUrl:j6r,kClose:K6r,kDestroy:X6r,kDispatch:Z6r}=Mn(),Do=Symbol("clients"),cA=Symbol("needDrain"),Rv=Symbol("queue"),fCe=Symbol("closed resolve"),pCe=Symbol("onDrain"),Agt=Symbol("onConnect"),cgt=Symbol("onDisconnect"),ugt=Symbol("onConnectionError"),mCe=Symbol("get dispatcher"),lgt=Symbol("add client"),dgt=Symbol("remove client"),ECe=class extends J6r{[Rv]=new V6r;[Sv]=0;[Do]=[];[cA]=!1;[pCe](e,r,n){let s=this[Rv],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&n!==r){if(s[ZX])throw new dE;process.emitWarning(new dE)}e[Cs].timeout&&e[Cs].timeoutType===jI&&e[Cs].timeout.refresh&&e[Cs].timeout.refresh(),s[Qf]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[yf]=!1,e&&(et(s[$n]<=1,"pipeline should only contain this request"),n(e))}};Ove.exports=K6t});var Kve=E((x6r,jve)=>{"use strict";var cA=B("node:assert"),{pipeline:a5t}=B("node:stream"),It=ct(),{RequestContentLengthMismatchError:i$,RequestAbortedError:A5t,SocketError:IN,InformationalError:bf,InvalidArgumentError:c5t}=Et(),{kUrl:CN,kReset:OL,kClient:jo,kRunning:BN,kPending:u5t,kQueue:wf,kPendingIdx:a$,kRunningIdx:gc,kError:Ko,kSocket:ns,kStrictContentLength:l5t,kOnError:KI,kMaxConcurrentStreams:_L,kPingInterval:Gve,kHTTP2Session:Td,kHTTP2InitialWindowSize:d5t,kHTTP2ConnectionWindowSize:h5t,kResume:qu,kSize:f5t,kHTTPContext:A$,kClosed:o$,kBodyTimeout:g5t,kEnableConnectProtocol:EN,kRemoteSettings:mN,kHTTP2Stream:LL,kHTTP2SessionState:c$}=Br(),{channels:Yve}=Cf(),AA=Symbol("open streams"),qve,PL;try{PL=B("node:http2")}catch{PL={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:p5t,HTTP2_HEADER_METHOD:Vve,HTTP2_HEADER_PATH:Jve,HTTP2_HEADER_SCHEME:r$,HTTP2_HEADER_CONTENT_LENGTH:E5t,HTTP2_HEADER_EXPECT:m5t,HTTP2_HEADER_STATUS:s$,HTTP2_HEADER_PROTOCOL:C5t,NGHTTP2_REFUSED_STREAM:I5t,NGHTTP2_CANCEL:B5t}}=PL;function n$(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 Q5t(t,e){t[ns]=e;let r=t[d5t],s=t[h5t],n=PL.connect(t[CN],{createConnection:()=>e,peerMaxConcurrentStreams:t[_L],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[ns]=e,n[AA]=0,n[jo]=t,n[ns]=e,n[c$]={ping:{interval:t[Gve]===0?null:setInterval(S5t,t[Gve],n).unref()}},n[EN]=!1,n[mN]=!1,s&&It.addListener(n,"connect",b5t.bind(n,s)),It.addListener(n,"error",N5t),It.addListener(n,"frameError",D5t),It.addListener(n,"end",R5t),It.addListener(n,"goaway",T5t),It.addListener(n,"close",x5t),It.addListener(n,"remoteSettings",w5t),n.unref(),t[Td]=n,e[Td]=n,It.addListener(e,"error",F5t),It.addListener(e,"end",M5t),It.addListener(e,"close",k5t),e[o$]=!1,e.on("close",U5t),{version:"h2",defaultPipelining:1/0,write(i){return L5t(t,i)},resume(){y5t(t)},destroy(i,o){e[o$]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[BN]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[mN]===!1||It.bodyLength(i.body)!==0&&(It.isStream(i.body)||It.isAsyncIterable(i.body)||It.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[mN]===!1;return!1}}}function y5t(t){let e=t[ns];e?.destroyed===!1&&(t[f5t]===0||t[_L]===0?(e.unref(),t[Td].unref()):(e.ref(),t[Td].ref()))}function b5t(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function w5t(t){if(this[jo][_L]=t.maxConcurrentStreams??this[jo][_L],this[mN]===!0&&this[EN]===!0&&t.enableConnectProtocol===!1){let e=new bf("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[ns][Ko]=e,this[jo][KI](e);return}this[EN]=t.enableConnectProtocol??this[EN],this[mN]=!0,this[jo][qu]()}function S5t(t){let e=t[c$];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[jo],o=this[jo];if(s!=null){let a=new bf(`HTTP/2: "PING" errored - type ${s.message}`);o[Ko]=a,i[KI](a)}else i.emit("ping",n)}}function N5t(t){cA(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ns][Ko]=t,this[jo][KI](t)}function D5t(t,e,r){if(r===0){let s=new bf(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ns][Ko]=s,this[jo][KI](s)}}function R5t(){let t=new IN("other side closed",It.getSocketInfo(this[ns]));this.destroy(t),It.destroy(this[ns],t)}function T5t(t){let e=this[Ko]||new IN(`HTTP/2: "GOAWAY" frame received with code ${t}`,It.getSocketInfo(this[ns])),r=this[jo];if(r[ns]=null,r[A$]=null,this.close(),this[Td]=null,It.destroy(this[ns],e),r[gc]<r[wf].length){let s=r[wf][r[gc]];r[wf][r[gc]++]=null,It.errorRequest(r,s,e),r[a$]=r[gc]}cA(r[BN]===0),r.emit("disconnect",r[CN],[r],e),r.emit("connectionError",r[CN],[r],e),r[qu]()}function x5t(){let{[jo]:t,[c$]:e}=this,{[ns]:r}=t,s=this[ns][Ko]||this[Ko]||new IN("closed",It.getSocketInfo(r));if(t[ns]=null,t[A$]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){cA(t[u5t]===0);let n=t[wf].splice(t[gc]);for(let i=0;i<n.length;i++){let o=n[i];It.errorRequest(t,o,s)}}}function k5t(){let t=this[Ko]||new IN("closed",It.getSocketInfo(this)),e=this[Td][jo];e[ns]=null,e[A$]=null,this[Td]!==null&&this[Td].destroy(t),e[a$]=e[gc],cA(e[BN]===0),e.emit("disconnect",e[CN],[e],t),e[qu]()}function F5t(t){cA(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ko]=t,this[jo][KI](t)}function M5t(){It.destroy(this,new IN("other side closed",It.getSocketInfo(this)))}func Line truncated
`;Yve.sendHeaders.publish({request:e,headers:x,socket:s[ns]})}let b=n==="GET"||n==="HEAD"||d===null;A?(h[m5t]="100-continue",f=s.request(h,{endStream:b,signal:c}),f[LL]=!0,f.once("continue",q)):(f=s.request(h,{endStream:b,signal:c}),f[LL]=!0,q()),++s[AA],f.setTimeout(r);let U=!1;return f.once("response",x=>{let{[s$]:P,...F}=x;if(e.onResponseStarted(),U=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),n$(F),f.resume.bind(f),"")===!1&&f.pause()}),f.on("data",x=>{e.onData(x)===!1&&f.pause()}),f.once("end",()=>{f.removeAllListeners("data"),U?(!e.aborted&&!e.completed&&e.onComplete({}),t[wf][t[gc]++]=null,t[qu]()):(m(new bf("HTTP/2: stream half-closed (remote)")),t[wf][t[gc]++]=null,t[a$]=t[gc],t[qu]())}),f.once("close",()=>{f.removeAllListeners("data"),s[AA]-=1,s[AA]===0&&s.unref()}),f.once("error",function(x){f.removeAllListeners("data"),m(x)}),f.once("frameError",(x,P)=>{f.removeAllListeners("data"),m(new bf(`HTTP/2: "frameError" received - type ${x}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let x=new bf(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[AA]-=1,s[AA]===0&&s.unref(),m(x)}),f.once("trailers",x=>{e.aborted||e.completed||e.onComplete(x)}),!0;function q(){!d||Q===0?Wve(m,f,null,t,e,t[ns],Q,I):It.isBuffer(d)?Wve(m,f,d,t,e,t[ns],Q,I):It.isBlobLike(d)?typeof d.stream=="function"?zve(m,f,d.stream(),t,e,t[ns],Q,I):P5t(m,f,d,t,e,t[ns],Q,I):It.isStream(d)?_5t(m,t[ns],I,f,d,t,e,Q):It.isIterable(d)?zve(m,f,d,t,e,t[ns],Q,I):cA(!1)}}function Wve(t,e,r,s,n,i,o,a){try{r!=null&&It.isBuffer(r)&&(cA(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[OL]=!0),n.onRequestSent(),s[qu]()}catch(A){t(A)}}function _5t(t,e,r,s,n,i,o,a){cA(a!==0||i[BN]===0,"stream body cannot be pipelined");let A=a5t(n,s,u=>{u?(It.destroy(A,u),t(u)):(It.removeAllListeners(A),o.onRequestSent(),r||(e[OL]=!0),i[qu]())});It.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function P5t(t,e,r,s,n,i,o,a){cA(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new i$;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[OL]=!0),s[qu]()}catch(A){t(A)}}async function zve(t,e,r,s,n,i,o,a){cA(o!==0||s[BN]===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)=>{cA(A===null),i[Ko]?d(i[Ko]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[Ko])throw i[Ko];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[OL]=!0),s[qu]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}jve.exports=Q5t});var Tf=E((k6r,iLe)=>{"use strict";var xd=B("node:assert"),tLe=B("node:net"),QN=B("node:http"),hE=ct(),{ClientStats:O5t}=oX(),{channels:ZI}=Cf(),H5t=mUe(),G5t=HI(),{InvalidArgumentError:Mr,InformationalError:Y5t,ClientDestroyedError:q5t}=Et(),V5t=GI(),{kUrl:Vu,kServerName:Rf,kClient:J5t,kBusy:u$,kConnect:W5t,kResuming:fE,kRunning:SN,kPending:NN,kSize:yN,kQueue:pc,kConnected:z5t,kConnecting:XI,kNeedDrain:Nf,kKeepAliveDefaultTimeout:Zve,kHostHeader:j5t,kPendingIdx:Ec,kRunningIdx:kd,kError:K5t,kPipelining:HL,kKeepAliveTimeoutValue:Z5t,kMaxHeadersSize:X5t,kKeepAliveMaxTimeout:$5t,kKeepAliveTimeoutThreshold:e9t,kHeadersTimeout:t9t,kBodyTimeout:r9t,kStrictContentLength:s9t,kConnector:bN,kMaxRequests:l$,kCounter:n9t,kClose:i9t,kDestroy:o9t,kDispatch:a9t,kLocalAddress:wN,kMaxResponseSize:A9t,kOnError:c9t,kHTTPContext:ks,kMaxConcurrentStreams:u9t,kHTTP2InitialWindowSize:l9t,kHTTP2ConnectionWindowSize:d9t,kResume:Df,kPingInterval:h9t}=Br(),f9t=Hve(),g9t=Kve(),Sf=Symbol("kClosedResolve"),p9t=QN&&QN.maxHeaderSize&&Number.isInteger(QN.maxHeaderSize)&&QN.maxHeaderSize>0?()=>QN.maxHeaderSize:()=>{throw new Mr("http module not available or http.maxHeaderSize invalid")},Xve=()=>{};function rLe(t){return t[HL]??t[ks]?.defaultPipelining??1}var d$=class extends G5t{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:h,socketPath:f,pipelining:p,tls:C,strictContentLength:m,maxCachedSessions:I,connect:Q,maxRequestsPerClient:b,localAddress:U,maxResponseSize:q,autoSelectFamily:x,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:F,allowH2:W,useH2c:$,initialWindowSize:ee,connectionWindowSize:ae,pingInterval:Be}={}){if(c!==void 0)throw new Mr("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Mr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Mr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new Mr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new Mr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout in Line truncated
`,this[r9t]=a??3e5,this[t9t]=s??3e5,this[s9t]=m??!0,this[l$]=b,this[Sf]=null,this[A9t]=q>-1?q:-1,this[ks]=null,this[u9t]=F??100,this[l9t]=ee??262144,this[d9t]=ae??524288,this[h9t]=Be??6e4,this[pc]=[],this[kd]=0,this[Ec]=0,this[Df]=Me=>h$(this,Me),this[c9t]=Me=>sLe(this,Me)}get pipelining(){return this[HL]}set pipelining(e){this[HL]=e,this[Df](!0)}get stats(){return new O5t(this)}get[NN](){return this[pc].length-this[Ec]}get[SN](){return this[Ec]-this[kd]}get[yN](){return this[pc].length-this[kd]}get[z5t](){return!!this[ks]&&!this[XI]&&!this[ks].destroyed}get[u$](){return!!(this[ks]?.busy(null)||this[yN]>=(rLe(this)||1)||this[NN]>0)}[W5t](e){nLe(this),this.once("connect",e)}[a9t](e,r){let s=new H5t(this[Vu].origin,e,r);return this[pc].push(s),this[fE]||(hE.bodyLength(s.body)==null&&hE.isIterable(s.body)?(this[fE]=1,queueMicrotask(()=>h$(this))):this[Df](!0)),this[fE]&&this[Nf]!==2&&this[u$]&&(this[Nf]=2),this[Nf]<2}[i9t](){return new Promise(e=>{this[yN]?this[Sf]=e:e(null)})}[o9t](e){return new Promise(r=>{let s=this[pc].splice(this[Ec]);for(let i=0;i<s.length;i++){let o=s[i];hE.errorRequest(this,o,e)}let n=()=>{this[Sf]&&(this[Sf](),this[Sf]=null),r(null)};this[ks]?(this[ks].destroy(e,n),this[ks]=null):queueMicrotask(n),this[Df]()})}};function sLe(t,e){if(t[SN]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){xd(t[Ec]===t[kd]);let r=t[pc].splice(t[kd]);for(let s=0;s<r.length;s++){let n=r[s];hE.errorRequest(t,n,e)}xd(t[yN]===0)}}function nLe(t){xd(!t[XI]),xd(!t[ks]);let{host:e,hostname:r,protocol:s,port:n}=t[Vu];if(r[0]==="["){let i=r.indexOf("]");xd(i!==-1);let o=r.substring(1,i);xd(tLe.isIPv6(o)),r=o}t[XI]=!0,ZI.beforeConnect.hasSubscribers&&ZI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ks]?.version,servername:t[Rf],localAddress:t[wN]},connector:t[bN]}),t[bN]({host:e,hostname:r,protocol:s,port:n,servername:t[Rf],localAddress:t[wN]},(i,o)=>{if(i){$ve(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Df]();return}if(t.destroyed){hE.destroy(o.on("error",Xve),new q5t),t[Df]();return}xd(o);try{t[ks]=o.alpnProtocol==="h2"?g9t(t,o):f9t(t,o)}catch(a){o.destroy().on("error",Xve),$ve(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Df]();return}t[XI]=!1,o[n9t]=0,o[l$]=t[l$],o[J5t]=t,o[K5t]=null,ZI.connected.hasSubscribers&&ZI.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ks]?.version,servername:t[Rf],localAddress:t[wN]},connector:t[bN],socket:o}),t.emit("connect",t[Vu],[t]),t[Df]()})}function $ve(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[XI]=!1,ZI.connectError.hasSubscribers&&ZI.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[ks]?.version,servername:t[Rf],localAddress:t[wN]},connector:t[bN],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(xd(t[SN]===0);t[NN]>0&&t[pc][t[Ec]].servername===t[Rf];){let o=t[pc][t[Ec]++];hE.errorRequest(t,o,e)}else sLe(t,e);t.emit("connectionError",t[Vu],[t],e)}}function eLe(t){t[Nf]=0,t.emit("drain",t[Vu],[t])}function h$(t,e){t[fE]!==2&&(t[fE]=2,E9t(t,e),t[fE]=0,t[kd]>256&&(t[pc].splice(0,t[kd]),t[Ec]-=t[kd],t[kd]=0))}function E9t(t,e){for(;;){if(t.destroyed){xd(t[NN]===0);return}if(t[Sf]&&!t[yN]){t[Sf](),t[Sf]=null;return}if(t[ks]&&t[ks].resume(),t[u$])t[Nf]=2;else if(t[Nf]===2){e?(t[Nf]=1,queueMicrotask(()=>eLe(t))):eLe(t);continue}if(t[NN]===0||t[SN]>=(rLe(t)||1))return;let r=t[pc][t[Ec]];if(t[Vu].protocol==="https:"&&t[Rf]!==r.servername){if(t[SN]>0)return;t[Rf]=r.servername,t[ks]?.destroy(new Y5t("servername changed"),()=>{t[ks]=null,h$(t)})}if(t[XI])return;if(!t[ks]){nLe(t);return}if(t[ks].destroyed||t[ks].busy(r))return;!r.aborted&&t[ks].write(r)?t[Ec]++:t[pc].splice(t[Ec],1)}}iLe.exports=d$});var f$=E((M6r,oLe)=>{"use strict";var GL=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)}};oLe.exports=class{constructor(){this.head=this.tail=new GL}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new GL),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 YL=E((U6r,gLe)=>{"use strict";var{PoolStats:m9t}=oX(),C9t=HI(),I9t=f$(),{kConnected:g$,kSize:aLe,kRunning:ALe,kPending:cLe,kQueued:DN,kBusy:B9t,kFree:Q9t,kUrl:y9t,kClose:b9t,kDestroy:w9t,kDispatch:S9t}=Br(),yn=Symbol("clients"),Ni=Symbol("needDrain"),RN=Symbol("queue"),p$=Symbol("closed resolve"),E$=Symbol("onDrain"),uLe=Symbol("onConnect"),lLe=Symbol("onDisconnect"),dLe=Symbol("onConnectionError"),m$=Symbol("get dispatcher"),hLe=Symbol("add client"),fLe=Symbol("remove client"),C$=class extends C9t{[RN]=new I9t;[DN]=0;[yn]=[];[Ni]=!1;[E$](e,r,s){let n=this[RN],i=!1;for(;!i;){let o=n.shift();if(!o)break;th Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";var{InvalidArgumentError:TVr}=or(),{runtimeFeatures:kVr}=sm();function FVr(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 ypt=kVr.has("crypto")?B("node:crypto"):null,MVr=ypt?.hash?t=>ypt.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function wpt(t){return Array.isArray(t)&&(t.length&1)===0}function vVr(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 LVr(t){let e={};if(!t)return e;if(wpt(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 bpt=["record","playback","update"];function UVr(t){if(!bpt.includes(t))throw new TVr(`Invalid snapshot mode: ${t}. Must be one of: ${bpt.join(", ")}`)}Npt.exports={createHeaderFilters:FVr,hashId:MVr,isUndiciHeaders:wpt,normalizeHeaders:LVr,isUrlExcludedFactory:vVr,validateSnapshotMode:UVr}});var vpt=f((a8n,Mpt)=>{"use strict";var{writeFile:PVr,readFile:_Vr,mkdir:OVr}=B("node:fs/promises"),{dirname:HVr,resolve:Spt}=B("node:path"),{setTimeout:qVr,clearTimeout:Rpt}=B("node:timers"),{InvalidArgumentError:Dpt,UndiciError:GVr}=or(),{hashId:YVr,isUrlExcludedFactory:JVr,normalizeHeaders:xpt,createHeaderFilters:Tpt}=kIe();function Ov(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||xpt(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:kpt(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function kpt(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 Fpt(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 Hv(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 YVr(r)}var FIe=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=Tpt(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=JVr(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Ov(e,this.#a,this.matchOptions),s=Hv(n),i=xpt(r.headers),o={statusCode:r.statusCode,headers:Fpt(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=Ov(e,this.#a,this.matchOptions),n=Hv(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 Dpt("Snapshot path is required");try{let n=await _Vr(Spt(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 GVr(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Dpt("Snapshot path is required");let n=Spt(r);await OVr(HVr(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await PVr(n,JS Line truncated
${e.format(r)}`.trim())}};bPe.exports=xee});var Fee=E((c5r,DPe)=>{"use strict";var{InvalidArgumentError:iVt}=Et(),{runtimeFeatures:oVt}=Dd();function aVt(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 wPe=oVt.has("crypto")?B("node:crypto"):null,AVt=wPe?.hash?t=>wPe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function NPe(t){return Array.isArray(t)&&(t.length&1)===0}function cVt(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 uVt(t){let e={};if(!t)return e;if(NPe(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 SPe=["record","playback","update"];function lVt(t){if(!SPe.includes(t))throw new iVt(`Invalid snapshot mode: ${t}. Must be one of: ${SPe.join(", ")}`)}DPe.exports={createHeaderFilters:aVt,hashId:AVt,isUndiciHeaders:NPe,normalizeHeaders:uVt,isUrlExcludedFactory:cVt,validateSnapshotMode:lVt}});var LPe=E((u5r,vPe)=>{"use strict";var{writeFile:dVt,readFile:hVt,mkdir:fVt}=B("node:fs/promises"),{dirname:gVt,resolve:RPe}=B("node:path"),{setTimeout:pVt,clearTimeout:TPe}=B("node:timers"),{InvalidArgumentError:xPe,UndiciError:EVt}=Et(),{hashId:mVt,isUrlExcludedFactory:CVt,normalizeHeaders:kPe,createHeaderFilters:FPe}=Fee();function HN(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||kPe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:MPe(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function MPe(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 UPe(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 GN(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 mVt(r)}var Mee=class{#e;#t;#r=new Map;#s;#n=1/0;#i=!1;#a;constructor(e={}){this.#s=e.snapshotPath,this.#n=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=FPe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=CVt(e.excludeUrls),this.#i&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=HN(e,this.#a,this.matchOptions),n=GN(s),i=kPe(r.headers),o={statusCode:r.statusCode,headers:UPe(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.#n&&!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.#i&&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=HN(e,this.#a,this.matchOptions),s=GN(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 xPe("Snapshot path is required");try{let s=await hVt(RPe(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 EVt(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new xPe("Snapshot path is required");let s=RPe(r);await fVt(gVt(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await dVt(s,JS Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${du} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${$o} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -282,9 +179,9 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_getValuesQuery ON cacheInterceptorV${du}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_deleteByUrlQuery ON cacheInterceptorV${du}(deleteAt);
`),this.#r=this.#n.prepare(`
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${$o}_getValuesQuery ON cacheInterceptorV${$o}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${$o}_deleteByUrlQuery ON cacheInterceptorV${$o}(deleteAt);
`),this.#s=this.#r.prepare(`
SELECT
id,
body,
@@ -297,14 +194,14 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${$o}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${du} SET
`),this.#n=this.#r.prepare(`
UPDATE cacheInterceptorV${$o} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +213,8 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${du} (
`),this.#i=this.#r.prepare(`
INSERT INTO cacheInterceptorV${$o} (
url,
method,
body,
@@ -331,46 +228,92 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${du}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${du}
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${$o} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${$o}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${$o} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${$o}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${$o}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){tBe(e);let r=this.#g(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){tBe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(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){tBe(e),wzr(r);let n=0,s=[],i=this;return new bzr({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.#h(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}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(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(!Nzr(s[l],u[l])){c=!1;break}}if(c)return A}}};function Nzr(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 HQ=f((D8n,Omt)=>{"use strict";var{kConstruct:Szr}=Mn(),{kEnumerableProperty:VD}=Wt(),{iteratorMixin:Rzr,isValidHeaderName:Jv,isValidHeaderValue:vmt}=au(),{webidl:Pr}=Ko(),nBe=B("node:assert"),YV=B("node:util");function Mmt(t){return t===10||t===13||t===9||t===32}function Lmt(t){let e=0,r=t.length;for(;r>e&&Mmt(t.charCodeAt(r-1));)--r;for(;r>e&&Mmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Umt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});sBe(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)sBe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function sBe(t,e,r){if(r=Lmt(r),Jv(e)){if(!vmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(_mt(t)==="immutable")throw new TypeError("immutable");return VV(t).append(e,r,!1)}function Dzr(t){let e=VV(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 Pmt(t,e){return t[0]<e[0]?-1:1}var JV=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.headersMa Line truncated
${i}`;break;case"retry":VCt(i)&&(r[s]=i);break;case"id":WCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&VCt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&WCt(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}}};zCt.exports={EventSourceStream:OBe}});var nIt=f((e3n,rIt)=>{"use strict";var{pipeline:JXr}=B("node:stream"),{fetching:VXr}=Kv(),{makeRequest:WXr}=zD(),{webidl:lA}=Ko(),{EventSourceStream:zXr}=jCt(),{parseMIMEType:jXr}=Ll(),{createFastMessageEvent:KXr}=mW(),{isNetworkError:KCt}=Wv(),{kEnumerableProperty:jQ}=Wt(),{environmentSettingsObject:XCt}=au(),ZCt=!1,$Ct=3e3,rL=0,eIt=1,nL=2,XXr="anonymous",ZXr="use-credentials",sx=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=rL;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),lA.util.markAsUncloneable(this);let n="EventSource constructor";lA.argumentLengthCheck(arguments,1,n),ZCt||(ZCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lA.converters.USVString(e),r=lA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=XCt,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=XXr;r.withCredentials===!0&&(o=ZXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=XCt.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=WXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===nL)return;this.#r=rL;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!KCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(KCt(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?jXr(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=eIt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new zXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(KXr(A.type,A.options))}});JXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=VXr(e)}#c(){this.#r!==nL&&(this.#r=rL,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===rL&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){lA.brandCheck(this,t),this.#r!==nL&&(this.#r=nL,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=lA.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=lA.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=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},tIt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:rL,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:eIt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:nL,writable:!1}};Object.defineProperties(sx,tIt);Object.defineProperties(sx.prototype,tIt);Object.defineProperties(sx.prototype,{close:jQ,onerror:jQ,onmessage:jQ,onopen:jQ,readyState:jQ,url:jQ,withCredentials:jQ});lA.converters.EventSourceInitDict=lA.dictionaryConverter([{key:"withCredentials",converter:lA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lA.converters.any},{key:"node",converter:lA.dictionaryConverter([{key:"reconnectionTime",converter:lA.converters["unsigned long"],defaultValue:()=>$Ct},{key:"dispatcher",converter:lA.converters.any}]),defaultValue:()=>({})}]);rIt.exports={EventSource:sx,defaultReconnectionTime:$Ct}});var cIt=f((t3n,Oe)=>{"use strict";var $Xr=rI(),iIt=nv(),eZr=kD(),tZr=Bgt(),rZr=wgt(),nZr=MQ(),sZr=vCe(),iZr=jgt(),oZr=tft(),aZr=sft(),oIt=or(),TW=Wt(),{InvalidArgumentError:xW}=oIt,ix=_ft(),AZr=BD(),cZr=CIe(),{MockCallHistory:uZr,Mock Line truncated
`)}close(){this.#r.close()}get(e){rte(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){rte(e);let s=this.#h(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#n.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.#u(),this.#i.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){rte(e),$Jt(r);let s=0,n=[],i=this;return new XJt({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.#h(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}#h(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let s=this.#h(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(!eWt(n[l],u[l])){c=!1;break}}if(c)return A}}};function eWt(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 bE=E((k5r,GOe)=>{"use strict";var{kConstruct:tWt}=Br(),{kEnumerableProperty:hB}=ct(),{iteratorMixin:rWt,isValidHeaderName:JN,isValidHeaderValue:LOe}=zo(),{webidl:Pt}=kn(),nte=B("node:assert"),I_=B("node:util");function vOe(t){return t===10||t===13||t===9||t===32}function _Oe(t){let e=0,r=t.length;for(;r>e&&vOe(t.charCodeAt(r-1));)--r;for(;r>e&&vOe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function POe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Pt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});ite(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)ite(t,r[s],e[r[s]])}else throw Pt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function ite(t,e,r){if(r=_Oe(r),JN(e)){if(!LOe(r))throw Pt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(HOe(t)==="immutable")throw new TypeError("immutable");return Q_(t).append(e,r,!1)}function sWt(t){let e=Q_(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 OOe(t,e){return t[0]<e[0]?-1:1}var B_=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.headersMa Line truncated
${i}`;break;case"retry":z8e(i)&&(r[n]=i);break;case"id":j8e(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&z8e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&j8e(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}}};K8e.exports={EventSourceStream:Hte}});var i4e=E((s9r,n4e)=>{"use strict";var{pipeline:CKt}=B("node:stream"),{fetching:IKt}=ZN(),{makeRequest:BKt}=gB(),{webidl:Ri}=kn(),{EventSourceStream:QKt}=Z8e(),{parseMIMEType:yKt}=nA(),{createFastMessageEvent:bKt}=W_(),{isNetworkError:X8e}=zN(),{kEnumerableProperty:kE}=ct(),{environmentSettingsObject:$8e}=zo(),e4e=!1,t4e=3e3,s1=0,r4e=1,n1=2,wKt="anonymous",SKt="use-credentials",wB=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=s1;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Ri.util.markAsUncloneable(this);let s="EventSource constructor";Ri.argumentLengthCheck(arguments,1,s),e4e||(e4e=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ri.converters.USVString(e),r=Ri.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=$8e,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=wKt;r.withCredentials===!0&&(o=SKt,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=$8e.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=BKt(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===n1)return;this.#s=s1;let e={request:this.#n,dispatcher:this.#a},r=s=>{if(!X8e(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(X8e(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?yKt(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=r4e,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new QKt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(bKt(A.type,A.options))}});CKt(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=IKt(e)}#c(){this.#s!==n1&&(this.#s=s1,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===s1&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Ri.brandCheck(this,t),this.#s!==n1&&(this.#s=n1,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Ri.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=Ri.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=Ri.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},s4e={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:s1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:r4e,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:n1,writable:!1}};Object.defineProperties(wB,s4e);Object.defineProperties(wB.prototype,s4e);Object.defineProperties(wB.prototype,{close:kE,onerror:kE,onmessage:kE,onopen:kE,readyState:kE,url:kE,withCredentials:kE});Ri.converters.EventSourceInitDict=Ri.dictionaryConverter([{key:"withCredentials",converter:Ri.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ri.converters.any},{key:"node",converter:Ri.dictionaryConverter([{key:"reconnectionTime",converter:Ri.converters["unsigned long"],defaultValue:()=>t4e},{key:"dispatcher",converter:Ri.converters.any}]),defaultValue:()=>({})}]);n4e.exports={EventSource:wB,defaultReconnectionTime:t4e}});var l4e=E((n9r,Ee)=>{"use strict";var NKt=Tf(),a4e=nN(),DKt=$I(),RKt=yLe(),TKt=NLe(),xKt=EE(),kKt=v$(),FKt=ZLe(),MKt=s_e(),UKt=o_e(),A4e=Et(),aP=ct(),{InvalidArgumentError:oP}=A4e,SB=H_e(),vKt=GI(),LKt=Iee(),{MockCallHistory:_Kt,MockC Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}Oe.exports.fetch=function(e,r=void 0){return BZr(e,r).catch(n=>{throw sIt?AIt(n,sIt):n&&typeof n=="object"&&Error.captureStackTrace(n,Oe.exports.fetch),n})};Oe.exports.Headers=HQ().Headers;Oe.exports.Response=Wv().Response;Oe.exports.Request=zD().Request;Oe.exports.FormData=$J().FormData;var{setGlobalOrigin:QZr,getGlobalOrigin:yZr}=yEe();Oe.exports.setGlobalOrigin=QZr;Oe.exports.getGlobalOrigin=yZr;var{CacheStorage:bZr}=GEt(),{kConstruct:wZr}=Mn();Oe.exports.caches=new bZr(wZr);var{deleteCookie:NZr,getCookies:SZr,getSetCookies:RZr,setCookie:DZr,parseCookie:xZr}=rCt();Oe.exports.deleteCookie=NZr;Oe.exports.getCookies=SZr;Oe.exports.getSetCookies=RZr;Oe.exports.setCookie=DZr;Oe.exports.parseCookie=xZr;var{parseMIMEType:TZr,serializeAMimeType:kZr}=Ll();Oe.exports.parseMIMEType=TZr;Oe.exports.serializeAMimeType=kZr;var{CloseEvent:FZr,ErrorEvent:MZr,MessageEvent:vZr}=mW(),{WebSocket:LZr,ping:UZr}=vCt();Oe.exports.WebSocket=LZr;Oe.exports.CloseEvent=FZr;Oe.exports.ErrorEvent=MZr;Oe.exports.MessageEvent=vZr;Oe.exports.ping=UZr;Oe.exports.WebSocketStream=GCt().WebSocketStream;Oe.exports.WebSocketError=vBe().WebSocketError;Oe.exports.request=sL(ix.request);Oe.exports.stream=sL(ix.stream);Oe.exports.pipeline=sL(ix.pipeline);Oe.exports.connect=sL(ix.connect);Oe.exports.upgrade=sL(ix.upgrade);Oe.exports.MockClient=cZr;Oe.exports.MockCallHistory=uZr;Oe.exports.MockCallHistoryLog=lZr;Oe.exports.MockPool=hZr;Oe.exports.MockAgent=dZr;Oe.exports.SnapshotAgent=gZr;Oe.exports.mockErrors=fZr;var{EventSource:PZr}=nIt();Oe.exports.EventSource=PZr;function _Zr(){globalThis.fetch=Oe.exports.fetch,globalThis.Headers=Oe.exports.Headers,globalThis.Response=Oe.exports.Response,globalThis.Request=Oe.exports.Request,globalThis.FormData=Oe.exports.FormData,globalThis.WebSocket=Oe.exports.WebSocket,globalThis.CloseEvent=Oe.exports.CloseEvent,globalThis.ErrorEvent=Oe.exports.ErrorEvent,globalThis.MessageEvent=Oe.exports.MessageEvent,globalThis.EventSource=Oe.exports.EventSource}Oe.exports.install=_Zr});var iL=f(lI=>{"use strict";lI.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lI.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lI.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lI.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lI.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lI.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lI.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 lIt=f((s3n,uIt)=>{"use strict";var{asciiLowercase:kW,solelyContainsHTTPTokenCodePoints:OZr,soleyContainsHTTPQuotedStringTokenCodePoints:HZr}=iL();uIt.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=kW(String(e)),this._map.get(e)}has(e){return e=kW(String(e)),this._map.has(e)}set(e,r){if(e=kW(String(e)),r=String(r),!OZr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!HZr(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=kW(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 gIt=f((i3n,hIt)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:qZr,removeTrailingHTTPWhitespace:dIt,isHTTPWhitespaceChar:GZr,solelyContainsHTTPTokenCodePoints:HBe,soleyContainsHTTPQuotedStringTokenCodePoints:YZr,asciiLowercase:qBe,collectAnHTTPQuotedString:JZr}=iL();hIt.exports=t=>{t=qZr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!HBe(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=dIt(n),n.length===0||!HBe(n))return null;let s={type:qBe(r),subtype:qBe(n),parameters:new Map};for(;e<t.length;){for(++e;GZr(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=qBe(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=JZr(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=dIt(o),o==="")continue}i.length>0&&HBe(i)&&YZr(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var pIt=f((o3n,fIt)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:VZr}=iL();fIt.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+="=",(!VZr(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var IIt=f((A3n,CIt)=>{"use strict";var WZr=lIt(),zZr=gIt(),jZr=pIt(),{asciiLowercase:mIt,solelyContainsHTTPTokenCodePoints:EIt}=iL();CIt.exports=class{constructor(e){e=String(e);let r=zZr(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 WZr(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=mIt(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!EIt(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=mIt(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!EIt(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return jZr(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 JIt=f((f4n,C$r)=>{C$r.exports={name:"@actions/artifact",version:"6.1.0",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.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/artifact"},scripts:{"audit-moderate":"npm inLine truncated
globstar while`,e,l,r,d,h),this.matchOne(e.slice(l),r.slice(d),n))return this.debug("globstar found match!",l,a,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,l,r,d);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,l,r,d),l===a))}var g;if(typeof c=="string"?(g=u===c,this.debug("string match",c,u,g)):(g=u.match(c),this.debug("pattern match",c,u,g)),!g)return!1}if(i===a&&o===A)return!0;if(i===a)return n;if(o===A)return i===a-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return Oyt(this.pattern,this.options)}parse(e,r){Lj(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return uh;if(e==="")return"";let s="",i=!1,o=!1,a=[],A=[],c,u=!1,l=-1,d=-1,h,g,p,C=e.charAt(0)===".",m=n.dot||C,I=()=>C?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=F=>F.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=()=>{if(c){switch(c){case"*":s+=PNe,i=!0;break;case"?":s+=HNe,i=!0;break;default:s+="\\"+c;break}this.debug("clearStateChar %j %j",c,s),c=!1}};for(let F=0,W;F<e.length&&(W=e.charAt(F));F++){if(this.debug("%s %s %s %j",e,F,s,W),o){if(W==="/")return!1;Uyt[W]&&(s+="\\"),s+=W,o=!1;continue}switch(W){case"/":return!1;case"\\":if(u&&e.charAt(F+1)==="-"){s+=W;continue}w(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,F,s,W),u){this.debug(" in class"),W==="!"&&F===d+1&&(W="^"),s+=W;continue}this.debug("call clearStateChar %j",c),w(),c=W,n.noext&&w();continue;case"(":{if(u){s+="(";continue}if(!c){s+="\\(";continue}let U={type:c,start:F-1,reStart:s.length,open:Lyt[c].open,close:Lyt[c].close};this.debug(this.pattern," ",U),a.push(U),s+=U.open,U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1))),this.debug("plType %j %j",c,s),c=!1;continue}case")":{let U=a[a.length-1];if(u||!U){s+="\\)";continue}a.pop(),w(),i=!0,g=U,s+=g.close,g.type==="!"&&A.push(Object.assign(g,{reEnd:s.length}));continue}case"|":{let U=a[a.length-1];if(u||!U){s+="\\|";continue}w(),s+="|",U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1)));continue}case"[":if(w(),u){s+="\\"+W;continue}u=!0,d=F,l=s.length,s+=W;continue;case"]":if(F===d+1||!u){s+="\\"+W;continue}h=e.substring(d+1,F);try{RegExp("["+$in(Xin(h))+"]"),s+=W}catch{s=s.substring(0,l)+"(?:$.)"}i=!0,u=!1;continue;default:w(),Uyt[W]&&!(W==="^"&&u)&&(s+="\\"),s+=W;break}}for(u&&(h=e.slice(d+1),p=this.parse(h,_Ne),s=s.substring(0,l)+"\\["+p[0],i=i||p[1]),g=a.pop();g;g=a.pop()){let F;F=s.slice(g.reStart+g.open.length),this.debug("setting tail",s,g),F=F.replace(/((?:\\{2}){0,64})(\\?)\|/g,(U,ee,oe)=>(oe||(oe="\\"),ee+ee+oe+"|")),this.debug(`tail=%j
%s`,F,F,g,s);let W=g.type==="*"?PNe:g.type==="?"?HNe:"\\"+g.type;i=!0,s=s.slice(0,g.reStart)+W+"\\("+F}w(),o&&(s+="\\\\");let H=zin[s.charAt(0)];for(let F=A.length-1;F>-1;F--){let W=A[F],U=s.slice(0,W.reStart),ee=s.slice(W.reStart,W.reEnd-8),oe=s.slice(W.reEnd),Z=s.slice(W.reEnd-8,W.reEnd)+oe,he=U.split(")").length,Se=U.split("(").length-he,Je=oe;for(let $t=0;$t<Se;$t++)Je=Je.replace(/\)[+*?]?/,"");oe=Je;let He=oe===""&&r!==_Ne?"(?:$|\\/)":"";s=U+ee+oe+He+Z}if(s!==""&&i&&(s="(?=.)"+s),H&&(s=I()+s),r===_Ne)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Kin(e);let z=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_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?PNe:r.dot?Vin:Win,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Zin(a):a===uh?uh:a._src).reduce((a,A)=>(a[a.length-1]===uh&&A===uh||a.push(A),a),[]),o.forEach((a,A)=>{a!==uh||o[A-1]===uh||(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]=uh))}),o.filter(a=>a!==uh).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;ONe.sep!=="/"&&(e=e.split(ONe.sep).join("/")),e=e.split(Pyt),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 Qu.defaults(e).Minimatch}};Qu.Minimatch=Rx});var Vyt=f((uns,Jyt)=>{Jyt.exports=Yyt;var YNe=B("fs"),{EventEmitter:eon}=B("events"),{Minimatch:GNe}=Hyt(),{resolve:ton}=B("path");function ron(t,e){return new Promise((r,n)=>{YNe.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 qyt(t,e){return new Promise((r,n)=>{(e?YNe.stat:YNe.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?qyt(t,!1):null):r(null):r(o)})})}async function*Gyt(t,e,r,n,s,i){let o=await ron(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 qyt(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*Gyt(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*non(t,e,r,n){yield*Gyt("",t,e,r,n,!0)}function son(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 Uj=class extends eon{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=son(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 GNe(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 GNe(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 GNe(i,{dot:!0}))}this.iterator=non(ton(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)} Line truncated
`,T);T=te===-1?D.length:te}else if(G!==-1&&D[T]==="/"&&D[T+1]==="*"){let te=D.indexOf("*/",T);te!==-1?(T=te+2,G=D.indexOf("*/",T)):(S+=D[T],T++)}else S+=D[T],T++;return S}function Hm(D){let S=KI(D.toString()),T=S.match(zI);if(T||(T=S.match(yT)),!T)throw new Error(`could not parse args in autoInject
${i}`:n.stack}Ee.exports.fetch=function(e,r=void 0){return jKt(e,r).catch(s=>{throw o4e?u4e(s,o4e):s&&typeof s=="object"&&Error.captureStackTrace(s,Ee.exports.fetch),s})};Ee.exports.Headers=bE().Headers;Ee.exports.Response=zN().Response;Ee.exports.Request=gB().Request;Ee.exports.FormData=RL().FormData;var{setGlobalOrigin:KKt,getGlobalOrigin:ZKt}=bX();Ee.exports.setGlobalOrigin=KKt;Ee.exports.getGlobalOrigin=ZKt;var{CacheStorage:XKt}=V3e(),{kConstruct:$Kt}=Br();Ee.exports.caches=new XKt($Kt);var{deleteCookie:eZt,getCookies:tZt,getSetCookies:rZt,setCookie:sZt,parseCookie:nZt}=n8e();Ee.exports.deleteCookie=eZt;Ee.exports.getCookies=tZt;Ee.exports.getSetCookies=rZt;Ee.exports.setCookie=sZt;Ee.exports.parseCookie=nZt;var{parseMIMEType:iZt,serializeAMimeType:oZt}=nA();Ee.exports.parseMIMEType=iZt;Ee.exports.serializeAMimeType=oZt;var{CloseEvent:aZt,ErrorEvent:AZt,MessageEvent:cZt}=W_(),{WebSocket:uZt,ping:lZt}=L8e();Ee.exports.WebSocket=uZt;Ee.exports.CloseEvent=aZt;Ee.exports.ErrorEvent=AZt;Ee.exports.MessageEvent=cZt;Ee.exports.ping=lZt;Ee.exports.WebSocketStream=V8e().WebSocketStream;Ee.exports.WebSocketError=vte().WebSocketError;Ee.exports.request=i1(SB.request);Ee.exports.stream=i1(SB.stream);Ee.exports.pipeline=i1(SB.pipeline);Ee.exports.connect=i1(SB.connect);Ee.exports.upgrade=i1(SB.upgrade);Ee.exports.MockClient=LKt;Ee.exports.MockCallHistory=_Kt;Ee.exports.MockCallHistoryLog=PKt;Ee.exports.MockPool=HKt;Ee.exports.MockAgent=OKt;Ee.exports.SnapshotAgent=GKt;Ee.exports.mockErrors=YKt;var{EventSource:dZt}=i4e();Ee.exports.EventSource=dZt;function hZt(){globalThis.fetch=Ee.exports.fetch,globalThis.Headers=Ee.exports.Headers,globalThis.Response=Ee.exports.Response,globalThis.Request=Ee.exports.Request,globalThis.FormData=Ee.exports.FormData,globalThis.WebSocket=Ee.exports.WebSocket,globalThis.CloseEvent=Ee.exports.CloseEvent,globalThis.ErrorEvent=Ee.exports.ErrorEvent,globalThis.MessageEvent=Ee.exports.MessageEvent,globalThis.EventSource=Ee.exports.EventSource}Ee.exports.install=hZt});var o1=E(Pf=>{"use strict";Pf.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Pf.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Pf.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Pf.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Pf.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Pf.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Pf.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 h4e=E((a9r,d4e)=>{"use strict";var{asciiLowercase:AP,solelyContainsHTTPTokenCodePoints:fZt,soleyContainsHTTPQuotedStringTokenCodePoints:gZt}=o1();d4e.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=AP(String(e)),this._map.get(e)}has(e){return e=AP(String(e)),this._map.has(e)}set(e,r){if(e=AP(String(e)),r=String(r),!fZt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!gZt(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=AP(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 p4e=E((A9r,g4e)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:pZt,removeTrailingHTTPWhitespace:f4e,isHTTPWhitespaceChar:EZt,solelyContainsHTTPTokenCodePoints:Gte,soleyContainsHTTPQuotedStringTokenCodePoints:mZt,asciiLowercase:Yte,collectAnHTTPQuotedString:CZt}=o1();g4e.exports=t=>{t=pZt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Gte(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=f4e(s),s.length===0||!Gte(s))return null;let n={type:Yte(r),subtype:Yte(s),parameters:new Map};for(;e<t.length;){for(++e;EZt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Yte(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=CZt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=f4e(o),o==="")continue}i.length>0&&Gte(i)&&mZt(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var m4e=E((c9r,E4e)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:IZt}=o1();E4e.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+="=",(!IZt(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var Q4e=E((l9r,B4e)=>{"use strict";var BZt=h4e(),QZt=p4e(),yZt=m4e(),{asciiLowercase:C4e,solelyContainsHTTPTokenCodePoints:I4e}=o1();B4e.exports=class{constructor(e){e=String(e);let r=QZt(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 BZt(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=C4e(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!I4e(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=C4e(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!I4e(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return yZt(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 O4e=E($s=>{"use strict";var Kte=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),JZt=Kte(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"),s=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=s;var n=(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=n;var i=(a,A)=>a.isFile()&&o(a,A),o=(a,A)=>{let c=A.uid??process.getuid?.(),u=A.groups??process.getLine truncated
globstar while`,e,l,r,d,h),this.matchOne(e.slice(l),r.slice(d),s))return this.debug("globstar found match!",l,a,h),!0;if(h==="."||h===".."||!n.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,l,r,d);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(s&&(this.debug(`
>>> no match, partial?`,e,l,r,d),l===a))}var f;if(typeof c=="string"?(f=u===c,this.debug("string match",c,u,f)):(f=u.match(c),this.debug("pattern match",c,u,f)),!f)return!1}if(i===a&&o===A)return!0;if(i===a)return s;if(o===A)return i===a-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return lGe(this.pattern,this.options)}parse(e,r){QP(e);let s=this.options;if(e==="**")if(s.noglobstar)e="*";else return Ic;if(e==="")return"";let n="",i=!1,o=!1,a=[],A=[],c,u=!1,l=-1,d=-1,h,f,p,C=e.charAt(0)===".",m=s.dot||C,I=()=>C?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",Q=x=>x.charAt(0)==="."?"":s.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=()=>{if(c){switch(c){case"*":n+=Vre,i=!0;break;case"?":n+=zre,i=!0;break;default:n+="\\"+c;break}this.debug("clearStateChar %j %j",c,n),c=!1}};for(let x=0,P;x<e.length&&(P=e.charAt(x));x++){if(this.debug("%s %s %s %j",e,x,n,P),o){if(P==="/")return!1;AGe[P]&&(n+="\\"),n+=P,o=!1;continue}switch(P){case"/":return!1;case"\\":if(u&&e.charAt(x+1)==="-"){n+=P;continue}b(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,x,n,P),u){this.debug(" in class"),P==="!"&&x===d+1&&(P="^"),n+=P;continue}this.debug("call clearStateChar %j",c),b(),c=P,s.noext&&b();continue;case"(":{if(u){n+="(";continue}if(!c){n+="\\(";continue}let F={type:c,start:x-1,reStart:n.length,open:aGe[c].open,close:aGe[c].close};this.debug(this.pattern," ",F),a.push(F),n+=F.open,F.start===0&&F.type!=="!"&&(C=!0,n+=Q(e.slice(x+1))),this.debug("plType %j %j",c,n),c=!1;continue}case")":{let F=a[a.length-1];if(u||!F){n+="\\)";continue}a.pop(),b(),i=!0,f=F,n+=f.close,f.type==="!"&&A.push(Object.assign(f,{reEnd:n.length}));continue}case"|":{let F=a[a.length-1];if(u||!F){n+="\\|";continue}b(),n+="|",F.start===0&&F.type!=="!"&&(C=!0,n+=Q(e.slice(x+1)));continue}case"[":if(b(),u){n+="\\"+P;continue}u=!0,d=x,l=n.length,n+=P;continue;case"]":if(x===d+1||!u){n+="\\"+P;continue}h=e.substring(d+1,x);try{RegExp("["+n$t(r$t(h))+"]"),n+=P}catch{n=n.substring(0,l)+"(?:$.)"}i=!0,u=!1;continue;default:b(),AGe[P]&&!(P==="^"&&u)&&(n+="\\"),n+=P;break}}for(u&&(h=e.slice(d+1),p=this.parse(h,Jre),n=n.substring(0,l)+"\\["+p[0],i=i||p[1]),f=a.pop();f;f=a.pop()){let x;x=n.slice(f.reStart+f.open.length),this.debug("setting tail",n,f),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(F,W,$)=>($||($="\\"),W+W+$+"|")),this.debug(`tail=%j
%s`,x,x,f,n);let P=f.type==="*"?Vre:f.type==="?"?zre:"\\"+f.type;i=!0,n=n.slice(0,f.reStart)+P+"\\("+x}b(),o&&(n+="\\\\");let U=$Xt[n.charAt(0)];for(let x=A.length-1;x>-1;x--){let P=A[x],F=n.slice(0,P.reStart),W=n.slice(P.reStart,P.reEnd-8),$=n.slice(P.reEnd),ee=n.slice(P.reEnd-8,P.reEnd)+$,ae=F.split(")").length,Be=F.split("(").length-ae,Me=$;for(let Ut=0;Ut<Be;Ut++)Me=Me.replace(/\)[+*?]?/,"");$=Me;let Pe=$===""&&r!==Jre?"(?:$|\\/)":"";n=F+W+$+Pe+ee}if(n!==""&&i&&(n="(?=.)"+n),U&&(n=I()+n),r===Jre)return[n,i];if(s.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return t$t(e);let q=s.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",q),{_glob:e,_src:n})}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,s=r.noglobstar?Vre:r.dot?ZXt:XXt,n=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?s$t(a):a===Ic?Ic:a._src).reduce((a,A)=>(a[a.length-1]===Ic&&A===Ic||a.push(A),a),[]),o.forEach((a,A)=>{a!==Ic||o[A-1]===Ic||(A===0?o.length>1?o[A+1]="(?:\\/|"+s+"\\/)?"+o[A+1]:o[A]=s:A===o.length-1?o[A-1]+="(?:\\/|"+s+")?":(o[A-1]+="(?:\\/|\\/"+s+"\\/)"+o[A+1],o[A+1]=Ic))}),o.filter(a=>a!==Ic).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}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 s=this.options;Wre.sep!=="/"&&(e=e.split(Wre.sep).join("/")),e=e.split(cGe),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<n.length;o++){let a=n[o],A=e;if(s.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return ia.defaults(e).Minimatch}};ia.Minimatch=kB});var EGe=E((cqr,pGe)=>{pGe.exports=gGe;var Zre=B("fs"),{EventEmitter:i$t}=B("events"),{Minimatch:Kre}=dGe(),{resolve:o$t}=B("path");function a$t(t,e){return new Promise((r,s)=>{Zre.readdir(t,{withFileTypes:!0},(n,i)=>{if(n)switch(n.code){case"ENOTDIR":e?s(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:s(n);break}else r(i)})})}function hGe(t,e){return new Promise((r,s)=>{(e?Zre.stat:Zre.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?hGe(t,!1):null):r(null):r(o)})})}async function*fGe(t,e,r,s,n,i){let o=await a$t(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,s=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(s||r)&&(d=await hGe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?n(u)||(yield{relative:u,absolute:l,stats:d},yield*fGe(c,e,r,s,n,!1)):yield{relative:u,absolute:l,stats:d}}}async function*A$t(t,e,r,s){yield*fGe("",t,e,r,s,!0)}function c$t(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 yP=class extends i$t{constructor(e,r,s){if(super(),typeof r=="function"&&(s=r,r=null),this.options=c$t(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(i=>new Kre(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(i=>new Kre(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(i=>new Kre(i,{dot:!0}))}this.iterator=A$t(o$t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,s&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>s(n)),this.on("end",()=>s(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let s=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(s)))&&!this.ignoreMatchers.some(n=>n.match(s))&&(!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 s=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(s+="/",n+="/"),this.options.stat?this.emit("match",{relative:s,absolute:n,stat:e.value.stats}):this.emit("match",{relative:s,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this Line truncated
`,S);S=H===-1?w.length:H}else if(M!==-1&&w[S]==="/"&&w[S+1]==="*"){let H=w.indexOf("*/",S);H!==-1?(S=H+2,M=w.indexOf("*/",S)):(y+=w[S],S++)}else y+=w[S],S++;return y}function kQ(w){let y=xQ(w.toString()),S=y.match(T3);if(S||(S=y.match(x3)),!S)throw new Error(`could not parse args in autoInject
Source:
`+S);let[,G]=T;return G.replace(/\s/g,"").split(jI).map(te=>te.replace(Om,"").trim())}function XI(D,S){var T={};return Object.keys(D).forEach(G=>{var te=D[G],se,ce=h(te),de=!ce&&te.length===1||ce&&te.length===0;if(Array.isArray(te))se=[...te],te=se.pop(),T[G]=se.concat(se.length>0?Ce:te);else if(de)T[G]=te;else{if(se=Hm(te),te.length===0&&!ce&&se.length===0)throw new Error("autoInject task functions require explicit parameters.");ce||se.pop(),T[G]=se.concat(Ce)}function Ce(nt,vr){var Kr=se.map(_r=>nt[_r]);Kr.push(vr),C(te)(...Kr)}}),Ic(T,S)}class ZI{constructor(){this.head=this.tail=null,this.length=0}removeLink(S){return S.prev?S.prev.next=S.next:this.head=S.next,S.next?S.next.prev=S.prev:this.tail=S.prev,S.prev=S.next=null,this.length-=1,S}empty(){for(;this.head;)this.shift();return this}insertAfter(S,T){T.prev=S,T.next=S.next,S.next?S.next.prev=T:this.tail=T,S.next=T,this.length+=1}insertBefore(S,T){T.prev=S.prev,T.next=S,S.prev?S.prev.next=T:this.head=T,S.prev=T,this.length+=1}unshift(S){this.head?this.insertBefore(this.head,S):$I(this,S)}push(S){this.tail?this.insertAfter(this.tail,S):$I(this,S)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var S=this.head;S;)yield S.data,S=S.next}remove(S){for(var T=this.head;T;){var{next:G}=T;S(T)&&this.removeLink(T),T=G}return this}}function $I(D,S){D.length=1,D.head=D.tail=S}function qm(D,S,T){if(S==null)S=1;else if(S===0)throw new RangeError("Concurrency must not be zero");var G=C(D),te=0,se=[];let ce={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function de(wt,tt){ce[wt].push(tt)}function Ce(wt,tt){let Nt=(...Or)=>{nt(wt,Nt),tt(...Or)};ce[wt].push(Nt)}function nt(wt,tt){if(!wt)return Object.keys(ce).forEach(Nt=>ce[Nt]=[]);if(!tt)return ce[wt]=[];ce[wt]=ce[wt].filter(Nt=>Nt!==tt)}function vr(wt,...tt){ce[wt].forEach(Nt=>Nt(...tt))}var Kr=!1;function _r(wt,tt,Nt,Or){if(Or!=null&&typeof Or!="function")throw new Error("task callback must be a function");Xr.started=!0;var fs,so;function Du(nB,...RT){if(nB)return Nt?so(nB):fs();if(RT.length<=1)return fs(RT[0]);fs(RT)}var $y=Xr._createTaskItem(wt,Nt?Du:Or||Du);if(tt?Xr._tasks.unshift($y):Xr._tasks.push($y),Kr||(Kr=!0,c(()=>{Kr=!1,Xr.process()})),Nt||!Or)return new Promise((nB,RT)=>{fs=nB,so=RT})}function Ru(wt){return function(tt,...Nt){te-=1;for(var Or=0,fs=wt.length;Or<fs;Or++){var so=wt[Or],Du=se.indexOf(so);Du===0?se.shift():Du>0&&se.splice(Du,1),so.callback(tt,...Nt),tt!=null&&vr("error",tt,so.data)}te<=Xr.concurrency-Xr.buffer&&vr("unsaturated"),Xr.idle()&&vr("drain"),Xr.process()}}function Zy(wt){return wt.length===0&&Xr.idle()?(c(()=>vr("drain")),!0):!1}let rB=wt=>tt=>{if(!tt)return new Promise((Nt,Or)=>{Ce(wt,(fs,so)=>{if(fs)return Or(fs);Nt(so)})});nt(wt),de(wt,tt)};var ST=!1,Xr={_tasks:new ZI,_createTaskItem(wt,tt){return{data:wt,callback:tt}},*[Symbol.iterator](){yield*Xr._tasks[Symbol.iterator]()},concurrency:S,payload:T,buffer:S/4,started:!1,paused:!1,push(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!1,tt)):_r(wt,!1,!1,tt)},pushAsync(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!0,tt)):_r(wt,!1,!0,tt)},kill(){nt(),Xr._tasks.empty()},unshift(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!1,tt)):_r(wt,!0,!1,tt)},unshiftAsync(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!0,tt)):_r(wt,!0,!0,tt)},remove(wt){Xr._tasks.remove(wt)},process(){if(!ST){for(ST=!0;!Xr.paused&&te<Xr.concurrency&&Xr._tasks.length;){var wt=[],tt=[],Nt=Xr._tasks.length;Xr.payload&&(Nt=Math.min(Nt,Xr.payload));for(var Or=0;Or<Nt;Or++){var fs=Xr._tasks.shift();wt.push(fs),se.push(fs),tt.push(fs.data)}te+=1,Xr._tasks.length===0&&vr("empty"),te===Xr.concurrency&&vr("saturated");var so=Z(Ru(wt));G(tt,so)}ST=!1}},length(){return Xr._tasks.length},running(){return te},workersList(){return se},idle(){return Xr._tasks.length+te===0},pause(){Xr.paused=!0},resume(){Xr.paused!==!1&&(Xr.paused=!1,c(Xr.process))}};return Object.defineProperties(Xr,{saturated:{writable:!1,value:rB("saturated")},unsaturated:{writable:!1,value:rB("unsaturated")},empty:{writable:!1,value:rB("empty")},drain:{writable:!1,value:rB("drain")},error:{writable:!1,value:rB("error")}}),Xr}function eB(D,S){return qm(D,1,S)}function Pf(D,S,T){return qm(D,S,T)}function BA(D,S,T,G){G=z(G);var te=C(T);return qn(D,(se,ce,de)=>{te(S,se,(Ce,nt)=>{S=nt,de(Ce)})},se=>G(se,S))}var QA=m(BA,4);function Gm(...D){var S=D.map(C);return function(...T){var G=this,te=T[T.length-1];return typeof te=="function"?T.pop():te=od(),QA(S,T,(se,ce,de)=>{ce.apply(G,se.concat((Ce,...nt)=>{de(Ce,nt)}))},(se,ce)=>te(se,...ce)),te[id]}}function tB(...D){return Gm(...D.reverse())}function Ke(D,S,T,G){return y(Se(S),D,T,G)}var $=m(Ke,4);function M(D,S,T,G){var te=C(T);return $(D,S,(se,ce)=>{te(se,(de,...Ce)=>de?ce(de):ce(de,Ce))},(se,ce)=>{for(var de=[],Ce=0;Ce<ce.length;Ce++)ce[Ce]&&(de=de.concat(...ce[Ce]));return Line truncated
GFS4: `),console.error(t)});Hs[Zo]||(rbt=global[Zo]||[],sbt(Hs,rbt),Hs.close=(function(t){function e(r,n){return t.call(Hs,r,function(s){s||nbt(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,qj,{value:t}),e})(Hs.close),Hs.closeSync=(function(t){function e(r){t.apply(Hs,arguments),nbt()}return Object.defineProperty(e,qj,{value:t}),e})(Hs.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){By(Hs[Zo]),B("assert").equal(Hs[Zo].length,0)}));var rbt;global[Zo]||sbt(global,Hs[Zo]);zNe.exports=VNe(hon(Hs));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Hs.__patched&&(zNe.exports=VNe(Hs),Hs.__patched=!0);function VNe(t){lon(t),t.gracefulify=VNe,t.createReadStream=H,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(U,ee,oe){return typeof ee=="function"&&(oe=ee,ee=null),Z(U,ee,oe);function Z(he,Se,Je,He){return e(he,Se,function($t){$t&&($t.code==="EMFILE"||$t.code==="ENFILE")?Dx([Z,[he,Se,Je],$t,He||Date.now(),Date.now()]):typeof Je=="function"&&Je.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return n(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return i(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=0),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return a(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(U,ee,oe){typeof ee=="function"&&(oe=ee,ee=null);var Z=u.test(process.version)?function(Je,He,$t,en){return c(Je,he(Je,He,$t,en))}:function(Je,He,$t,en){return c(Je,He,he(Je,He,$t,en))};return Z(U,ee,oe);function he(Se,Je,He,$t){return function(en,er){en&&(en.code==="EMFILE"||en.code==="ENFILE")?Dx([Z,[Se,Je,He],en,$t||Date.now(),Date.now()]):(er&&er.sort&&er.sort(),typeof He=="function"&&He.call(this,en,er))}}}if(process.version.substr(0,4)==="v0.8"){var d=don(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var g=t.WriteStream;g&&(y.prototype=Object.create(g.prototype),y.prototype.open=w),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(U){m=U},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(U){y=U},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(U){p=U},enumerable:!0,configurable:!0});var C=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(U){C=U},enumerable:!0,configurable:!0});function m(U,ee){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.autoClose&&U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe),U.read())})}function y(U,ee){return this instanceof y?(g.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function w(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe))})}function H(U,ee){return new t.ReadStream(U,ee)}function z(U,ee){return new t.WriteStream(U,ee)}var F=t.open;t.open=W;function W(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return F(Se,Je,He,function(er,Ln){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}return t}function Dx(t){By("ENQUEUE",t[0].name,t[1]),Hs[Zo].push(t),WNe()}var Hj;function nbt(){for(var t=Date.now(),e=0;e<Hs[Zo].length;++e)Hs[Zo][e].length>2&&(Hs[Zo][e][3]=t,Hs[Zo][e][4]=t);WNe()}function WNe(){if(clearTimeout(Hj),Hj=void 0,Hs[Zo].length!==0){var t=Hs[Zo].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)By("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){By("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?(By("RETRY",e.name,r),e.apply(null,r.concat([s]))):Hs[Zo].push(t)}Hj===void 0&&(Hj=setTimeout(WNe,0))}}});var Gj=f((fns,ibt)=>{"use strict";var bf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";bf.writable=t=>bf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};UNt.exports={AggregateError:xSe,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 TSe=f((wss,PNt)=>{"use strict";PNt.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 va=f((Nss,HNt)=>{"use strict";var{format:Uun,inspect:A7}=TSe(),{AggregateError:Pun}=xs(),_un=globalThis.AggregateError||Pun,Oun=Symbol("kIsNodeError"),Hun=["string","function","number","object","Function","Object","boolean","bigint","symbol"],qun=/^([A-Z][a-z0-9]*)+$/,Gun="__node_internal_",c7={};function by(t,e){if(!t)throw new c7.ERR_INTERNAL_ASSERTION(e)}function _Nt(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 Yun(t,e,r){if(typeof e=="function")return by(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 by(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:Uun(e,...r)}function ea(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(Yun(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[Oun]=!0,c7[t]=n}function ONt(t){let e=Gun+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Jun(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new _un([e,t],e.message);return r.code=e.code,r}return t||e}var kSe=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new c7.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ea("ERR_ASSERTION","%s",Error);ea("ERR_INVALID_ARG_TYPE",(t,e,r)=>{by(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)by(typeof A=="string","All expected entries have to be of type string"),Hun.includes(A)?s.push(A.toLowerCase()):qun.test(A)?i.push(A):(by(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;defaulLine truncated
globstar while`,e,d,r,h,g),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,A,g),!0;if(g==="."||g===".."||!s.dot&&g.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===A))}let p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=u.test(l),this.debug("pattern match",u,l,p)),!p)return!1}if(o===A&&a===c)return!0;if(o===A)return n;if(a===c)return o===A-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,et.braceExpand)(this.pattern,this.options)}parse(e){(0,X7.assertValidPattern)(e);let r=this.options;if(e==="**")return et.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(ECn))?s=r.dot?ICn:CCn:(n=e.match(ACn))?s=(r.nocase?r.dot?dCn:lCn:r.dot?uCn:cCn)(n[1]):(n=e.match(BCn))?s=(r.nocase?r.dot?yCn:QCn:r.dot?bCn:wCn)(n):(n=e.match(hCn))?s=r.dot?fCn:gCn:(n=e.match(pCn))&&(s=mCn);let i=jTt.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}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?SCn:r.dot?RCn:DCn,s=new Set(r.nocase?["i"]:[]),i=e.map(A=>{let c=A.map(u=>{if(u instanceof RegExp)for(let l of u.flags.split(""))s.add(l);return typeof u=="string"?vCn(u):u===et.GLOBSTAR?et.GLOBSTAR:u._src});return c.forEach((u,l)=>{let d=c[l+1],h=c[l-1];u!==et.GLOBSTAR||h===et.GLOBSTAR||(h===void 0?d!==void 0&&d!==et.GLOBSTAR?c[l+1]="(?:\\/|"+n+"\\/)?"+d:c[l]=n:d===void 0?c[l-1]=h+"(?:\\/|"+n+")?":d!==et.GLOBSTAR&&(c[l-1]=h+"(?:\\/|\\/"+n+"\\/)"+d,c[l+1]=et.GLOBSTAR))}),c.filter(u=>u!==et.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}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;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let A=i[a],c=s;if(n.matchBase&&A.length===1&&(c=[o]),this.matchOne(c,A,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return et.minimatch.defaults(e).Minimatch}};et.Minimatch=Ly;var LCn=rDe();Object.defineProperty(et,"AST",{enumerable:!0,get:function(){return LCn.AST}});var UCn=nDe();Object.defineProperty(et,"escape",{enumerable:!0,get:function(){return UCn.escape}});var PCn=V7();Object.defineProperty(et,"unescape",{enumerable:!0,get:function(){return PCn.unescape}});et.minimatch.AST=jTt.AST;et.minimatch.Minimatch=Ly;et.minimatch.escape=iCn.escape;et.minimatch.unescape=oCn.unescape});var n1t=f($7=>{"use strict";Object.defineProperty($7,"__esModule",{value:!0});$7.LRUCache=void 0;var nT=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e1t=new Set,sDe=typeof process=="object"&&process?process:{},t1t=(t,e,r,n)=>{typeof sDe.emitWarning=="function"?sDe.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},Z7=globalThis.AbortController,$Tt=globalThis.AbortSignal;if(typeof Z7>"u"){$Tt=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},Z7=class{constructor(){e()}signal=new $Tt;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=sDe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,t1t("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var _Cn=t=>!e1t.has(t),kI=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),r1t=t=>kI(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?sT:null:null,sT=class extends Array{constructor(e){super(e),this.fill(0)}},iDe=class t{heap;length;static#e=!1;static create(e){let r=r1t(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},oDe=class t{#e;#t;#n;#r;#s;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#A;#c;#u;#h;#g;#f;#p;#y;#E;#b;#w;#I;#B;#Q; Line truncated
`)),e.linkname&&(r+=uxe(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=uxe(" "+s+"="+n[s]+`
`);return jr.from(r)};pT.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(jr.toString(e.subarray(0,n)),10);if(!s)return r;let i=jr.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};pT.encode=function(e){let r=jr.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),jr.byteLength(n)!==n.length)return null;for(;jr.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 jr.byteLength(n)>100||jr.byteLength(s)>155||e.linkname&&jr.byteLength(e.linkname)>100?null:(jr.write(r,n),jr.write(r,OI(e.mode&$0n,6),100),jr.write(r,OI(e.uid,6),108),jr.write(r,OI(e.gid,6),116),oQn(e.size,r,124),jr.write(r,OI(e.mtime.getTime()/1e3|0,11),136),r[156]=LK+sQn(e.type),e.linkname&&jr.write(r,e.linkname,157),jr.copy(A2t,r,lP),jr.copy(K0n,r,lxe),e.uname&&jr.write(r,e.uname,265),e.gname&&jr.write(r,e.gname,297),jr.write(r,OI(e.devmajor||0,6),329),jr.write(r,OI(e.devminor||0,6),337),s&&jr.write(r,s,345),jr.write(r,OI(u2t(r),6),148),r)};pT.decode=function(e,r,n){let s=e[156]===0?0:e[156]-LK,i=fT(e,0,100,r),o=_I(e,100,8),a=_I(e,108,8),A=_I(e,116,8),c=_I(e,124,12),u=_I(e,136,12),l=nQn(s),d=e[157]===0?null:fT(e,157,100,r),h=fT(e,265,32),g=fT(e,297,32),p=_I(e,329,8),C=_I(e,337,8),m=u2t(e);if(m===256)return null;if(m!==_I(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(eQn(e))e[345]&&(i=fT(e,345,155,r)+"/"+i);else if(!tQn(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:g,devmajor:p,devminor:C,pax:null}};function eQn(t){return jr.equals(A2t,t.subarray(lP,lP+6))}function tQn(t){return jr.equals(X0n,t.subarray(lP,lP+6))&&jr.equals(Z0n,t.subarray(lxe,lxe+2))}function rQn(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function nQn(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 sQn(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 c2t(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function u2t(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 OI(t,e){return t=t.toString(8),t.length>e?j0n.slice(0,e)+" ":z0n.slice(0,e-t.length)+t+" "}function iQn(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function oQn(t,e,r){t.toString(8).length>11?iQn(t,e,r):jr.write(e,OI(t,11),r)}function aQn(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 _I(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return aQn(t);{for(;e<t.length&&t[e]===32;)e++;let n=rQn(c2t(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(jr.toString(t.subarray(e,n)),8)}}function fT(t,e,r,n){return jr.toString(t.subarray(e,c2t(t,0,e,e+r)),n)}function uxe(t){let e=jr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var f2t=f((Zos,g2t)=>{var{Writable:AQn,Readable:cQn,getStreamError:l2t}=cxe(),uQn=zDe(),d2t=uT(),mT=dxe(),lQn=d2t.alloc(0),gxe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new uQn,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 lQn;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 d2t.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)}},fxe=class extends cQn{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(l2t(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=h2t(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},pxe=class extends A Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function aPe(t,e){if(process.env.GITHUB_OUTPUT||"")return DT("OUTPUT",_P(t,e));process.stdout.write(xee.EOL),ad("set-output",{name:t},Eh(e))}function lE(t){process.exitCode=Dee.Failure,F1(t)}function DB(){return process.env.RUNNER_DEBUG==="1"}function Te(t){ad("debug",{},t)}function F1(t,e={}){ad("error",LP(e),t instanceof Error?t.toString():t)}function tr(t,e={}){ad("warning",LP(e),t instanceof Error?t.toString():t)}function APe(t,e={}){ad("notice",LP(e),t instanceof Error?t.toString():t)}function fe(t){process.stdout.write(t+xee.EOL)}function b5t(t){XK("group",t)}function w5t(){XK("endgroup")}function tp(t,e){return y5t(this,void 0,void 0,function*(){b5t(t);let r;try{r=yield e()}finally{w5t()}return r})}function DA(t,e){if(process.env.GITHUB_STATE||"")return DT("STATE",_P(t,e));ad("save-state",{name:t},Eh(e))}function xB(t){return process.env[`STATE_${t}`]||""}import*as WBe from"fs";import*as zBe from"path";import*as vW from"os";var zje=Xe(Z2(),1),DBr="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",xBr="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",TBr="[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.",kBr="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.",jje="[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.",Vje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",FBr="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",Wje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.";var CY=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=DBr;this.cacheCleanupMessage=Wje}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return zje.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=xBr){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Vje}setDisabled(e=TBr){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Vje}setWriteOnly(e=kBr){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=FBr}setCacheCleanupDisabled(e=Wje){this.cacheCleanupMessage=e}entry(e){for(let n of this.cacheEntries)if(n.entryName===e)return n;let r=new IY(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),n=r.cacheEntries;for(let s=0;s<n.length;s++){let i=n[s];n[s]=Object.assign(new IY(i.entryName),i)}return r}},IY=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,n){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=n,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,n){return this.savedKey=e,this.savedSize=r,this.savedTime=n,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};import*as JS from"fs";function Oue(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Te(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Te(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,Te(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Te(`omitBrokenSymbolicLine 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 rF(i));return n.searchPaths.push(...que(n.patterns)),n})}static stat(e,r,n){return Gue(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield JS.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Te(`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 JS.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield JS.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){Te(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as Yue from"crypto";import*as bY from"fs";import*as t7e from"stream";import*as r7e from"util";import*as n7e from"path";var HBr=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())})},qBr=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 s7e(t,e){return HBr(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?fe:Te,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=Yue.createHash("sha256"),g=0;try{for(var p=!0,C=qBr(r.globGenerator()),m;m=yield C.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let I=A;if(u(I),!I.startsWith(`${d}${n7e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(bY.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=Yue.createHash("sha256");yield r7e.promisify(t7e.pipeline)(bY.createReadStream(I),y),h.write(y.digest()),g++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!p&&!i&&(a=C.return)&&(yield a.call(C))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${g} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var i7e=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 aC(t,e){return i7e(this,void 0,void 0,function*(){return yield QY.create(t,e)})}function o7e(t){return i7e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield aC(e,{followSymbolicLinks:i});return s7e(o,r,s)})}import Vp from"path";import ic from"fs";import{readFileSync as GBr,existsSync as YBr}from"fs";import{EOL as JBr}from"os";var VS=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(YBr(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(GBr(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${JBr}`)}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 gge=Xe(Mnt(),1),vnt=Xe(uge(),1),d2r=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 Line truncated
`+y);let[,M]=S;return M.replace(/\s/g,"").split(xD).map(H=>H.replace(kD,"").trim())}function FQ(w,y){var S={};return Object.keys(w).forEach(M=>{var H=w[M],V,z=h(H),j=!z&&H.length===1||z&&H.length===0;if(Array.isArray(H))V=[...H],H=V.pop(),S[M]=V.concat(V.length>0?re:H);else if(j)S[M]=H;else{if(V=kQ(H),H.length===0&&!z&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");z||V.pop(),S[M]=V.concat(re)}function re(De,vt){var Kt=V.map(Ot=>De[Ot]);Kt.push(vt),C(H)(...Kt)}}),TQ(S,y)}class MQ{constructor(){this.head=this.tail=null,this.length=0}removeLink(y){return y.prev?y.prev.next=y.next:this.head=y.next,y.next?y.next.prev=y.prev:this.tail=y.prev,y.prev=y.next=null,this.length-=1,y}empty(){for(;this.head;)this.shift();return this}insertAfter(y,S){S.prev=y,S.next=y.next,y.next?y.next.prev=S:this.tail=S,y.next=S,this.length+=1}insertBefore(y,S){S.prev=y.prev,S.next=y,y.prev?y.prev.next=S:this.head=S,y.prev=S,this.length+=1}unshift(y){this.head?this.insertBefore(this.head,y):UQ(this,y)}push(y){this.tail?this.insertAfter(this.tail,y):UQ(this,y)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var y=this.head;y;)yield y.data,y=y.next}remove(y){for(var S=this.head;S;){var{next:M}=S;y(S)&&this.removeLink(S),S=M}return this}}function UQ(w,y){w.length=1,w.head=w.tail=y}function Em(w,y,S){if(y==null)y=1;else if(y===0)throw new RangeError("Concurrency must not be zero");var M=C(w),H=0,V=[];let z={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,we){z[qe].push(we)}function re(qe,we){let Ve=(...Ht)=>{De(qe,Ve),we(...Ht)};z[qe].push(Ve)}function De(qe,we){if(!qe)return Object.keys(z).forEach(Ve=>z[Ve]=[]);if(!we)return z[qe]=[];z[qe]=z[qe].filter(Ve=>Ve!==we)}function vt(qe,...we){z[qe].forEach(Ve=>Ve(...we))}var Kt=!1;function Ot(qe,we,Ve,Ht){if(Ht!=null&&typeof Ht!="function")throw new Error("task callback must be a function");Zt.started=!0;var Or,nn;function da(fg,...GQ){if(fg)return Ve?nn(fg):Or();if(GQ.length<=1)return Or(GQ[0]);Or(GQ)}var Bm=Zt._createTaskItem(qe,Ve?da:Ht||da);if(we?Zt._tasks.unshift(Bm):Zt._tasks.push(Bm),Kt||(Kt=!0,c(()=>{Kt=!1,Zt.process()})),Ve||!Ht)return new Promise((fg,GQ)=>{Or=fg,nn=GQ})}function la(qe){return function(we,...Ve){H-=1;for(var Ht=0,Or=qe.length;Ht<Or;Ht++){var nn=qe[Ht],da=V.indexOf(nn);da===0?V.shift():da>0&&V.splice(da,1),nn.callback(we,...Ve),we!=null&&vt("error",we,nn.data)}H<=Zt.concurrency-Zt.buffer&&vt("unsaturated"),Zt.idle()&&vt("drain"),Zt.process()}}function Im(qe){return qe.length===0&&Zt.idle()?(c(()=>vt("drain")),!0):!1}let hg=qe=>we=>{if(!we)return new Promise((Ve,Ht)=>{re(qe,(Or,nn)=>{if(Or)return Ht(Or);Ve(nn)})});De(qe),j(qe,we)};var HQ=!1,Zt={_tasks:new MQ,_createTaskItem(qe,we){return{data:qe,callback:we}},*[Symbol.iterator](){yield*Zt._tasks[Symbol.iterator]()},concurrency:y,payload:S,buffer:y/4,started:!1,paused:!1,push(qe,we){return Array.isArray(qe)?Im(qe)?void 0:qe.map(Ve=>Ot(Ve,!1,!1,we)):Ot(qe,!1,!1,we)},pushAsync(qe,we){return Array.isArray(qe)?Im(qe)?void 0:qe.map(Ve=>Ot(Ve,!1,!0,we)):Ot(qe,!1,!0,we)},kill(){De(),Zt._tasks.empty()},unshift(qe,we){return Array.isArray(qe)?Im(qe)?void 0:qe.map(Ve=>Ot(Ve,!0,!1,we)):Ot(qe,!0,!1,we)},unshiftAsync(qe,we){return Array.isArray(qe)?Im(qe)?void 0:qe.map(Ve=>Ot(Ve,!0,!0,we)):Ot(qe,!0,!0,we)},remove(qe){Zt._tasks.remove(qe)},process(){if(!HQ){for(HQ=!0;!Zt.paused&&H<Zt.concurrency&&Zt._tasks.length;){var qe=[],we=[],Ve=Zt._tasks.length;Zt.payload&&(Ve=Math.min(Ve,Zt.payload));for(var Ht=0;Ht<Ve;Ht++){var Or=Zt._tasks.shift();qe.push(Or),V.push(Or),we.push(Or.data)}H+=1,Zt._tasks.length===0&&vt("empty"),H===Zt.concurrency&&vt("saturated");var nn=ee(la(qe));M(we,nn)}HQ=!1}},length(){return Zt._tasks.length},running(){return H},workersList(){return V},idle(){return Zt._tasks.length+H===0},pause(){Zt.paused=!0},resume(){Zt.paused!==!1&&(Zt.paused=!1,c(Zt.process))}};return Object.defineProperties(Zt,{saturated:{writable:!1,value:hg("saturated")},unsaturated:{writable:!1,value:hg("unsaturated")},empty:{writable:!1,value:hg("empty")},drain:{writable:!1,value:hg("drain")},error:{writable:!1,value:hg("error")}}),Zt}function vQ(w,y){return Em(w,1,y)}function mm(w,y,S){return Em(w,y,S)}function ua(w,y,S,M){M=q(M);var H=C(S);return vi(w,(V,z,j)=>{H(y,V,(re,De)=>{y=De,j(re)})},V=>M(V,y))}var BA=m(ua,4);function Cm(...w){var y=w.map(C);return function(...S){var M=this,H=S[S.length-1];return typeof H=="function"?S.pop():H=Ql(),BA(y,S,(V,z,j)=>{z.apply(M,V.concat((re,...De)=>{j(re,De)}))},(V,z)=>H(V,...z)),H[Bl]}}function FD(...w){return Cm(...w.reverse())}function Ne(w,y,S,M){return Q(Be(y),w,S,M)}var O=m(Ne,4);function D(w,y,S,M){var H=C(S);return O(w,y,(V,z)=>{H(V,(j,...re)=>j?z(j):z(j,re))},(V,z)=>{for(var j=[],re=0;re<z.length;re++)z[re]&&(j=j.concat(...z[re]));return M(V,j)})}var G=m(D,4);function K(w,y,S){return G(w,1/0,y,S)}var Z=m(K,3);function Ae(w,y,S){retur Line truncated
GFS4: `),console.error(t)});is[Mn]||(NGe=global[Mn]||[],RGe(is,NGe),is.close=(function(t){function e(r,s){return t.call(is,r,function(n){n||DGe(),typeof s=="function"&&s.apply(this,arguments)})}return Object.defineProperty(e,DP,{value:t}),e})(is.close),is.closeSync=(function(t){function e(r){t.apply(is,arguments),DGe()}return Object.defineProperty(e,DP,{value:t}),e})(is.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){PE(is[Mn]),B("assert").equal(is[Mn].length,0)}));var NGe;global[Mn]||RGe(global,is[Mn]);tse.exports=$re(m$t(is));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!is.__patched&&(tse.exports=$re(is),is.__patched=!0);function $re(t){p$t(t),t.gracefulify=$re,t.createReadStream=U,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(F,W,$){return typeof W=="function"&&($=W,W=null),ee(F,W,$);function ee(ae,Be,Me,Pe){return e(ae,Be,function(Ut){Ut&&(Ut.code==="EMFILE"||Ut.code==="ENFILE")?FB([ee,[ae,Be,Me],Ut,Pe||Date.now(),Date.now()]):typeof Me=="function"&&Me.apply(this,arguments)})}}var s=t.writeFile;t.writeFile=n;function n(F,W,$,ee){return typeof $=="function"&&(ee=$,$=null),ae(F,W,$,ee);function ae(Be,Me,Pe,Ut,Pr){return s(Be,Me,Pe,function(zt){zt&&(zt.code==="EMFILE"||zt.code==="ENFILE")?FB([ae,[Be,Me,Pe,Ut],zt,Pr||Date.now(),Date.now()]):typeof Ut=="function"&&Ut.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(F,W,$,ee){return typeof $=="function"&&(ee=$,$=null),ae(F,W,$,ee);function ae(Be,Me,Pe,Ut,Pr){return i(Be,Me,Pe,function(zt){zt&&(zt.code==="EMFILE"||zt.code==="ENFILE")?FB([ae,[Be,Me,Pe,Ut],zt,Pr||Date.now(),Date.now()]):typeof Ut=="function"&&Ut.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(F,W,$,ee){return typeof $=="function"&&(ee=$,$=0),ae(F,W,$,ee);function ae(Be,Me,Pe,Ut,Pr){return a(Be,Me,Pe,function(zt){zt&&(zt.code==="EMFILE"||zt.code==="ENFILE")?FB([ae,[Be,Me,Pe,Ut],zt,Pr||Date.now(),Date.now()]):typeof Ut=="function"&&Ut.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(F,W,$){typeof W=="function"&&($=W,W=null);var ee=u.test(process.version)?function(Me,Pe,Ut,Pr){return c(Me,ae(Me,Pe,Ut,Pr))}:function(Me,Pe,Ut,Pr){return c(Me,Pe,ae(Me,Pe,Ut,Pr))};return ee(F,W,$);function ae(Be,Me,Pe,Ut){return function(Pr,zt){Pr&&(Pr.code==="EMFILE"||Pr.code==="ENFILE")?FB([ee,[Be,Me,Pe],Pr,Ut||Date.now(),Date.now()]):(zt&&zt.sort&&zt.sort(),typeof Pe=="function"&&Pe.call(this,Pr,zt))}}}if(process.version.substr(0,4)==="v0.8"){var d=E$t(t);m=d.ReadStream,Q=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(Q.prototype=Object.create(f.prototype),Q.prototype.open=b),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(F){m=F},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return Q},set:function(F){Q=F},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(F){p=F},enumerable:!0,configurable:!0});var C=Q;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(F){C=F},enumerable:!0,configurable:!0});function m(F,W){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var F=this;P(F.path,F.flags,F.mode,function(W,$){W?(F.autoClose&&F.destroy(),F.emit("error",W)):(F.fd=$,F.emit("open",$),F.read())})}function Q(F,W){return this instanceof Q?(f.apply(this,arguments),this):Q.apply(Object.create(Q.prototype),arguments)}function b(){var F=this;P(F.path,F.flags,F.mode,function(W,$){W?(F.destroy(),F.emit("error",W)):(F.fd=$,F.emit("open",$))})}function U(F,W){return new t.ReadStream(F,W)}function q(F,W){return new t.WriteStream(F,W)}var x=t.open;t.open=P;function P(F,W,$,ee){return typeof $=="function"&&(ee=$,$=null),ae(F,W,$,ee);function ae(Be,Me,Pe,Ut,Pr){return x(Be,Me,Pe,function(zt,Gs){zt&&(zt.code==="EMFILE"||zt.code==="ENFILE")?FB([ae,[Be,Me,Pe,Ut],zt,Pr||Date.now(),Date.now()]):typeof Ut=="function"&&Ut.apply(this,arguments)})}}return t}function FB(t){PE("ENQUEUE",t[0].name,t[1]),is[Mn].push(t),ese()}var NP;function DGe(){for(var t=Date.now(),e=0;e<is[Mn].length;++e)is[Mn][e].length>2&&(is[Mn][e][3]=t,is[Mn][e][4]=t);ese()}function ese(){if(clearTimeout(NP),NP=void 0,is[Mn].length!==0){var t=is[Mn].shift(),e=t[0],r=t[1],s=t[2],n=t[3],i=t[4];if(n===void 0)PE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){PE("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,s)}else{var a=Date.now()-i,A=Math.max(i-n,1),c=Math.min(A*1.2,100);a>=c?(PE("RETRY",e.name,r),e.apply(null,r.concat([n]))):is[Mn].push(t)}NP===void 0&&(NP=setTimeout(ese,0))}}});var RP=E((fqr,TGe)=>{"use strict";var al=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";al.writable=t=>al(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";al.readable=t=>al(t)&&t.readable!= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};A9e.exports={AggregateError:Lse,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 _se=E((bVr,c9e)=>{"use strict";c9e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,s]){let n=e.shift();return s==="f"?n.toFixed(6):s==="j"?JSON.stringify(n):s==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.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 ai=E((wVr,d9e)=>{"use strict";var{format:Hsr,inspect:zP}=_se(),{AggregateError:Gsr}=Kr(),Ysr=globalThis.AggregateError||Gsr,qsr=Symbol("kIsNodeError"),Vsr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Jsr=/^([A-Z][a-z0-9]*)+$/,Wsr="__node_internal_",jP={};function GE(t,e){if(!t)throw new jP.ERR_INTERNAL_ASSERTION(e)}function u9e(t){let e="",r=t.length,s=t[0]==="-"?1:0;for(;r>=s+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function zsr(t,e,r){if(typeof e=="function")return GE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let s=(e.match(/%[dfijoOs]/g)||[]).length;return GE(s===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${s}).`),r.length===0?e:Hsr(e,...r)}function vn(t,e,r){r||(r=Error);class s extends r{constructor(...i){super(zsr(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(s.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}}),s.prototype.code=t,s.prototype[qsr]=!0,jP[t]=s}function l9e(t){let e=Wsr+t.name;return Object.defineProperty(t,"name",{value:e}),t}function jsr(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new Ysr([e,t],e.message);return r.code=e.code,r}return t||e}var Pse=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new jP.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};vn("ERR_ASSERTION","%s",Error);vn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{GE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let s="The ";t.endsWith(" argument")?s+=`${t} `:s+=`"${t}" ${t.includes(".")?"property":"argument"} `,s+="must be ";let n=[],i=[],o=[];for(let A of e)GE(typeof A=="string","All expected entries have to be of type string"),Vsr.includes(A)?n.push(A.toLowerCase()):Jsr.test(A)?i.push(A):(GE(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=n.indexOf("object");A!==-1&&(n.splice(n,A,1),i.push("Object"))}if(n.length>0){switch(n.length){case 1:s+=`of type ${n[0]}`;break;case 2:s+=`one of type ${n[0]} or ${n[1]}`;break;defaulLine truncated
globstar while`,e,d,r,h,f),this.matchOne(e.slice(d),r.slice(h),s))return this.debug("globstar found match!",d,A,f),!0;if(f==="."||f===".."||!n.dot&&f.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(s&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===A))}let p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=u.test(l),this.debug("pattern match",u,l,p)),!p)return!1}if(o===A&&a===c)return!0;if(o===A)return s;if(a===c)return o===A-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,be.braceExpand)(this.pattern,this.options)}parse(e){(0,LO.assertValidPattern)(e);let r=this.options;if(e==="**")return be.GLOBSTAR;if(e==="")return"";let s,n=null;(s=e.match(bdr))?n=r.dot?Sdr:wdr:(s=e.match(fdr))?n=(r.nocase?r.dot?mdr:Edr:r.dot?pdr:gdr)(s[1]):(s=e.match(Ndr))?n=(r.nocase?r.dot?Rdr:Ddr:r.dot?Tdr:xdr)(s):(s=e.match(Cdr))?n=r.dot?Bdr:Idr:(s=e.match(Qdr))&&(n=ydr);let i=IWe.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:n}),i}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,s=r.noglobstar?Fdr:r.dot?Mdr:Udr,n=new Set(r.nocase?["i"]:[]),i=e.map(A=>{let c=A.map(u=>{if(u instanceof RegExp)for(let l of u.flags.split(""))n.add(l);return typeof u=="string"?Hdr(u):u===be.GLOBSTAR?be.GLOBSTAR:u._src});return c.forEach((u,l)=>{let d=c[l+1],h=c[l-1];u!==be.GLOBSTAR||h===be.GLOBSTAR||(h===void 0?d!==void 0&&d!==be.GLOBSTAR?c[l+1]="(?:\\/|"+s+"\\/)?"+d:c[l]=s:d===void 0?c[l-1]=h+"(?:\\/|"+s+")?":d!==be.GLOBSTAR&&(c[l-1]=h+"(?:\\/|\\/"+s+"\\/)"+d,c[l+1]=be.GLOBSTAR))}),c.filter(u=>u!==be.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}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 s=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let i=this.set;this.debug(this.pattern,"set",i);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<i.length;a++){let A=i[a],c=n;if(s.matchBase&&A.length===1&&(c=[o]),this.matchOne(c,A,r))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return be.minimatch.defaults(e).Minimatch}};be.Minimatch=em;var Gdr=cie();Object.defineProperty(be,"AST",{enumerable:!0,get:function(){return Gdr.AST}});var Ydr=uie();Object.defineProperty(be,"escape",{enumerable:!0,get:function(){return Ydr.escape}});var qdr=kO();Object.defineProperty(be,"unescape",{enumerable:!0,get:function(){return qdr.unescape}});be.minimatch.AST=IWe.AST;be.minimatch.Minimatch=em;be.minimatch.escape=ldr.escape;be.minimatch.unescape=ddr.unescape});var DWe=E(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0});PO.LRUCache=void 0;var aQ=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,wWe=new Set,lie=typeof process=="object"&&process?process:{},SWe=(t,e,r,s)=>{typeof lie.emitWarning=="function"?lie.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},_O=globalThis.AbortController,bWe=globalThis.AbortSignal;if(typeof _O>"u"){bWe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},_O=class{constructor(){e()}signal=new bWe;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let t=lie.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,SWe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Vdr=t=>!wWe.has(t),Zf=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),NWe=t=>Zf(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?AQ:null:null,AQ=class extends Array{constructor(e){super(e),this.fill(0)}},die=class t{heap;length;static#e=!1;static create(e){let r=NWe(e);if(!r)return[];t.#e=!0;let s=new t(e,r);return t.#e=!1,s}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},hie=class t{#e;#t;#r;#s;#n;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#A;#c;#u;#h;#f;#g;#p;#y;#m;#b;#w;#I;#B;#Q; Line truncated
`)),e.linkname&&(r+=Eoe(" linkpath="+e.linkname+`
`));let s=e.pax;if(s)for(let n in s)r+=Eoe(" "+n+"="+s[n]+`
`);return Wt.from(r)};IQ.decodePax=function(e){let r={};for(;e.length;){let s=0;for(;s<e.length&&e[s]!==32;)s++;let n=parseInt(Wt.toString(e.subarray(0,s)),10);if(!n)return r;let i=Wt.toString(e.subarray(s+1,n-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(n)}return r};IQ.encode=function(e){let r=Wt.alloc(512),s=e.name,n="";if(e.typeflag===5&&s[s.length-1]!=="/"&&(s+="/"),Wt.byteLength(s)!==s.length)return null;for(;Wt.byteLength(s)>100;){let i=s.indexOf("/");if(i===-1)return null;n+=n?"/"+s.slice(0,i):s.slice(0,i),s=s.slice(i+1)}return Wt.byteLength(s)>100||Wt.byteLength(n)>155||e.linkname&&Wt.byteLength(e.linkname)>100?null:(Wt.write(r,s),Wt.write(r,ig(e.mode&ipr,6),100),Wt.write(r,ig(e.uid,6),108),Wt.write(r,ig(e.gid,6),116),dpr(e.size,r,124),Wt.write(r,ig(e.mtime.getTime()/1e3|0,11),136),r[156]=Q3+upr(e.type),e.linkname&&Wt.write(r,e.linkname,157),Wt.copy(F7e,r,yD),Wt.copy(rpr,r,moe),e.uname&&Wt.write(r,e.uname,265),e.gname&&Wt.write(r,e.gname,297),Wt.write(r,ig(e.devmajor||0,6),329),Wt.write(r,ig(e.devminor||0,6),337),n&&Wt.write(r,n,345),Wt.write(r,ig(U7e(r),6),148),r)};IQ.decode=function(e,r,s){let n=e[156]===0?0:e[156]-Q3,i=CQ(e,0,100,r),o=ng(e,100,8),a=ng(e,108,8),A=ng(e,116,8),c=ng(e,124,12),u=ng(e,136,12),l=cpr(n),d=e[157]===0?null:CQ(e,157,100,r),h=CQ(e,265,32),f=CQ(e,297,32),p=ng(e,329,8),C=ng(e,337,8),m=U7e(e);if(m===256)return null;if(m!==ng(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(opr(e))e[345]&&(i=CQ(e,345,155,r)+"/"+i);else if(!apr(e)){if(!s)throw new Error("Invalid tar header: unknown format.")}return n===0&&i&&i[i.length-1]==="/"&&(n=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:C,pax:null}};function opr(t){return Wt.equals(F7e,t.subarray(yD,yD+6))}function apr(t){return Wt.equals(spr,t.subarray(yD,yD+6))&&Wt.equals(npr,t.subarray(moe,moe+2))}function Apr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function cpr(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 upr(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 M7e(t,e,r,s){for(;r<s;r++)if(t[r]===e)return r;return s}function U7e(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 ig(t,e){return t=t.toString(8),t.length>e?tpr.slice(0,e)+" ":epr.slice(0,e-t.length)+t+" "}function lpr(t,e,r){e[r]=128;for(let s=11;s>0;s--)e[r+s]=t&255,t=Math.floor(t/256)}function dpr(t,e,r){t.toString(8).length>11?lpr(t,e,r):Wt.write(e,ig(t,11),r)}function hpr(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],s;for(s=t.length-1;s>0;s--){let o=t[s];e?r.push(o):r.push(255-o)}let n=0,i=r.length;for(s=0;s<i;s++)n+=r[s]*Math.pow(256,s);return e?n:-1*n}function ng(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return hpr(t);{for(;e<t.length&&t[e]===32;)e++;let s=Apr(M7e(t,32,e,t.length),t.length,t.length);for(;e<s&&t[e]===0;)e++;return s===e?0:parseInt(Wt.toString(t.subarray(e,s)),8)}}function CQ(t,e,r,s){return Wt.toString(t.subarray(e,M7e(t,0,e,e+r)),s)}function Eoe(t){let e=Wt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var O7e=E((ZWr,P7e)=>{var{Writable:fpr,Readable:gpr,getStreamError:v7e}=poe(),ppr=toe(),L7e=fQ(),BQ=Coe(),Epr=L7e.alloc(0),Boe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new ppr,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 Epr;let r=this._next(e);if(e===r.byteLength)return r;let s=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),s.push(r);return L7e.concat(s)}_next(e){let r=this.queue.peek(),s=r.byteLength-this._offset;if(e>=s){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=s,this.shifted+=s,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Qoe=class extends gpr{constructor(e,r,s){super(),this.header=r,this.offset=s,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(v7e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=_7e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},yoe=class extends f Line truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function Cpe(t,e){if(process.env.GITHUB_OUTPUT||"")return YQ("OUTPUT",rR(t,e));process.stdout.write(CG.EOL),yA("set-output",{name:t},Dc(e))}function Ch(t){process.exitCode=mG.Failure,Gc(t)}function vA(){return process.env.RUNNER_DEBUG==="1"}function Y(t){yA("debug",{},t)}function Gc(t,e={}){yA("error",$D(e),t instanceof Error?t.toString():t)}function it(t,e={}){yA("warning",$D(e),t instanceof Error?t.toString():t)}function Ipe(t,e={}){yA("notice",$D(e),t instanceof Error?t.toString():t)}function te(t){process.stdout.write(t+CG.EOL)}function Xut(t){H3("group",t)}function $ut(){H3("endgroup")}function ax(t,e){return Zut(this,void 0,void 0,function*(){Xut(t);let r;try{r=yield e()}finally{$ut()}return r})}function m0(t,e){if(process.env.GITHUB_STATE||"")return YQ("STATE",rR(t,e));yA("save-state",{name:t},Dc(e))}import*as zte from"fs";import*as jte from"path";import*as lP from"os";import{readFileSync as elt,existsSync as tlt}from"fs";import{EOL as rlt}from"os";var C0=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(tlt(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(elt(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${rlt}`)}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 Y9=le(Jye(),1),Wye=le(P9(),1),yyt=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 zye(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 jye(t){return new Y9.HttpClient().getAgent(t)}function byt(t){return new Y9.HttpClient().getAgentDispatcher(t)}function Kye(t){let e=byt(t);return(s,n)=>yyt(this,void 0,void 0,function*(){return(0,Wye.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function Zye(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ck(){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 uk(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)=>uk.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 Xye(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 $ye(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 ebe=Function.bind,tbe=ebe.bind(ebe);function rbe(t,e,r){let s=tbe($ye,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]=tbe(Xye,null).apply(null,i)})}function Syt(){let t=Symbol("Singular"),e={registry:{}},r=uk.bind(null,e,t);return rbe(r,e,t),r}function Nyt(){let t={registry:{}},e=uk.bind(null,t);return rbe(e,t),e}var sbe={Singular:Syt,Collection:Nyt};var oY=le(rY(),1);var Rbe=le(rY(),1);var Ibt="0.0.0-developm Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var lFr=class extends Error{constructor(t,e,r){super(uFr(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},dFr=["method","baseUrl","url","headers","request","query","mediaType","operationName"],hFr=["query","method","url"],pst=/\/api\/v3\/?$/;function gFr(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(hFr.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)=>dFr.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 pst.test(i)&&(s.url=i.replace(pst,"/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 lFr(s,a,o.data)}return o.data.data})}function Rge(t,e){let r=t.defaults(e);return Object.assign((s,i)=>gFr(r,s,i),{defaults:Rge.bind(null,r),endpoint:r.endpoint})}var gvn=Rge(mst.request,{headers:{"user-agent":`octokit-graphql.js/${cFr} ${N6()}`},method:"POST",url:"/graphql"});function Est(t){return Rge(t,{method:"POST",url:"/graphql"})}var Dge="(?:[a-zA-Z0-9_-]+)",Cst="\\.",Ist=new RegExp(`^${Dge}${Cst}${Dge}${Cst}${Dge}$`),fFr=Ist.test.bind(Ist);async function pFr(t){let e=fFr(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 mFr(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function EFr(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=mFr(t),e(s)}var Bst=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(pFr.bind(null,e),{hook:EFr.bind(null,e)})};var xge="7.0.6";var Qst=()=>{},CFr=console.warn.bind(console),IFr=console.error.bind(console);function BFr(t={}){return typeof t.debug!="function"&&(t.debug=Qst),typeof t.info!="function"&&(t.info=Qst),typeof t.warn!="function"&&(t.warn=CFr),typeof t.error!="function"&&(t.error=IFr),t}var yst=`octokit-core.js/${xge} ${N6()}`,x6=class{static VERSION=xge;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 Jnt.Collection,n={baseUrl:Tge.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} ${yst}`:yst,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Tge.request.defaults(n),this.graphql=Est(this.request).defaults(n),this.log=BFr(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=Bst(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 kge="17.0.0";var QFr={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 Line truncated
See ${r.getDocumentationLink()}`;vst.push(n),lE(n)}function Ust(){DA("deprecation-collector_deprecations",JSON.stringify(Pge)),DA("deprecation-collector_errors",JSON.stringify(vst))}import*as F6 from"path";var _st="GRADLE_ACTION_ID";var oQ=".setup-gradle",M6=class t{getDependencyGraphOption(){let e=Es("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 yg("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Es("artifact-retention-days");return PFr("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(Qo.workflow,Qo.job,Oge())}getReportDirectory(){let e=Es("dependency-graph-report-dir");return F6.resolve(Gp(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return iQ("dependency-graph-exclude-projects")}getIncludeProjects(){return iQ("dependency-graph-include-projects")}getExcludeConfigurations(){return iQ("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return iQ("dependency-graph-include-configurations")}getPluginRepository(){return new v6}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){Te(`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 YR=class{isCacheDisabled(){return Pst.isFeatureAvailable()?yg("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&yg("cache-read-only")}isCacheWriteOnly(){return yg("cache-write-only")}isCacheOverwriteExisting(){return yg("cache-overwrite-existing")}isCacheStrictMatch(){return yg("gradle-home-cache-strict-match")}isCacheCleanupEnabled(){if(this.isCacheReadOnly())return!1;let e=this.getCacheCleanupOption();return e==="always"||e==="on-success"}shouldPerformCacheCleanup(e){let r=this.getCacheCleanupOption();return r==="always"?!0:r==="on-success"?!e:!1}getCacheCleanupOption(){let e=oM("gradle-home-cache-cleanup");if(e!==void 0)return k6("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always":"never";let r=Es("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always";case"on-success":return"on-success";case"never":return"never"}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Es("cache-encryption-key")}getCacheIncludes(){return Tee("gradle-home-cache-includes")}getCacheExcludes(){return Tee("gradle-home-cache-excludes")}};var qd=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return yg("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getBuildScanTermsOfUseUrl(){return Es("build-scan-terms-of-use-url")}getBuildScanTermsOfUseAgree(){return Es("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Es("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Es("develocity-token-expiry")}getDevelocityInjectionEnabled(){return oM("develocity-injection-enabled")}getDevelocityUrl(){return Es("develocity-url")}getDevelocityAllowUntrustedServer(){return oM("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return oM("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return oM("develocity-enforce-url")}getDevelocityPluginVersion(){return Es("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Es("develocity-ccud-plugin-version")}getPluginRepository(){return new v6}verifyTermsOfUseAgreement(){return this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/terms-of-service"&&this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/help/legal-terms-of-use"||this.getBuildScanTermsOfUseAgree()!=="yes"?(tr("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1):!0}},v6=class{getUrl(){return iQ("gradle-plugin-repository-url")}getUsername(){return iQ("gradle-plugin-repository-username")}getPassword(){return iQ("gradle-plugin-repository-password")}},L6=class{getGradleVersion(){return Es("gradle-version")}getBuildRootDirectory(){let e=Gp(),r=Es("build-root-directory");return r===""?F6.re Line truncated
It is likely locked by another process. Output of 'jps -ml':
${await qFr()}`),n;zo(`Attempt to delete ${t} failed. Will try again.`),await HFr(1e3)}}}async function HFr(t){return new Promise(e=>setTimeout(e,t))}async function qFr(){return(await ep("jps",["-lm"])).stdout}var GFr="v1",YFr="GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX",JFr="GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT",VFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB",WFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE",zFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION",H6=class{constructor(e,r){this.key=e,this.restoreKeys=r}};function qge(t,e){let s=`${`${process.env[YFr]||""}${q6(t,GFr)}`}|${jFr()}`,i=`${s}|${KFr()}`,o=`${i}[${XFr()}]`,a=`${o}-${ZFr()}`;return e.isCacheStrictMatch()?new H6(a,[o]):new H6(a,[o,i,s])}function q6(t,e){return`gradle-${t}-${e}`}function jFr(){let t=process.env.RUNNER_OS||"",e=process.env.RUNNER_ARCH||"";return process.env[JFr]||`${t}-${e}`}function KFr(){return process.env[VFr]||Qo.job}function XFr(){let t=process.env[WFr];if(t)return t;let e=Qo.workflow,r=Oge();return Hge([e,r])}function ZFr(){return process.env[zFr]||Qo.sha}import WR from"path";import IM from"fs";import*as Gd from"fs";import*as Jp from"path";var Qat=Xe(iit(),1),uQ=Xe(t9(),1);import*as VR from"fs";import*as gat from"os";import*as DC from"path";var c9=Xe(Z2(),1);import{ok as fUr}from"assert";import*as wg from"path";import*as r9 from"fs";import*as RC from"path";var oUr=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())})},{chmod:aUr,copyFile:AUr,lstat:cUr,mkdir:jot,open:_Ln,readdir:Kot,rename:uUr,rm:Xot,rmdir:OLn,stat:cfe,symlink:lUr,unlink:dUr}=r9.promises,SC=process.platform==="win32";var HLn=r9.constants.O_RDONLY;function Zot(t){if(t=hUr(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return SC?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function ufe(t,e){return oUr(this,void 0,void 0,function*(){let r;try{r=yield cfe(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(SC){let s=RC.extname(t).toUpperCase();if(e.some(i=>i.toUpperCase()===s))return t}else if(zot(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield cfe(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(SC){try{let i=RC.dirname(t),o=RC.basename(t).toUpperCase();for(let a of yield Kot(i))if(o===a.toUpperCase()){t=RC.join(i,a);break}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${i}`)}return t}else if(zot(r))return t}}return""})}function hUr(t){return t=t||"",SC?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function zot(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}var n9=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 $ot(t){return n9(this,void 0,void 0,function*(){if(SC&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Xot(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}function lfe(t){return n9(this,void 0,void 0,function*(){fUr(t,"a path argument must be provided"),yield jot(t,{recursive:!0})})}function mM(t,e){return n9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield mM(t,!1);if(!n)throw SC?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield pUr(t);return r&&r.length>0?r[0]:""})}function pUr(t){return n9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(SC&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(wg.delimiter))s&&e.push(s);if(Zot(t)){let s=yield ufe(t,e);return s?[s]:[]}if(t.includes(wg.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(wg.delimiter))s&&r.push(s);let n=[];for(let s of r){let i=yield ufe(wg.join(s,t),e)Line truncated
`),r,[],s)?new BM(e,n,r):(fe(`Did not restore ${e} with key ${r} to ${n}`),new BM(e,n,void 0))}async extract(e){let r=this.getExtractedCacheEntryDefinitions();zo(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(r,null,2)}`);let n=this.loadExtractedCacheEntries(),s=[];for(let i of r){let o=i.artifactType,a=i.pattern;if(i.notCacheableReason){e.entry(a).markNotSaved(i.notCacheableReason);continue}let c=await(await aC(a,{implicitDescendants:!1})).glob();if(c.length===0){zo(`No files found to cache for ${o}`);continue}if(i.bundle)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry(c,o,a,i.uniqueFileNames,n,e.entry(a))));else for(let u of c)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry([u],o,u,i.uniqueFileNames,n,e.entry(u))))}this.saveMetadataForCacheResults(await Promise.all(s))}async saveExtractedCacheEntry(e,r,n,s,i,o){let a=s?this.createCacheKeyFromFileNames(r,e):await this.createCacheKeyFromFileContents(r,n);i.find(c=>c.artifactType===r&&c.pattern===n)?.cacheKey===a?(zo(`No change to previously restored ${r}. Not saving.`),o.markNotSaved("contents unchanged")):await O6(n.split(`
`),a,o);for(let c of e)cM(c);return new BM(r,n,a)}createCacheKeyFromFileNames(e,r){let n=r.map(i=>WR.relative(this.gradleUserHome,i)),s=Gst(n);return zo(`Generating cache key for ${e} from file names: ${n}`),`${q6(e,bat)}-${s}`}async createCacheKeyFromFileContents(e,r){let n=await o7e(r);return zo(`Generating cache key for ${e} from files matching: ${r}`),`${q6(e,bat)}-${n}`}async awaitForDebugging(e){return aM()&&await e,e}loadExtractedCacheEntries(){let e=this.getCacheMetadataFile();if(!IM.existsSync(e))return[];let r=IM.readFileSync(e,"utf-8");return zo(`Loaded cache metadata for ${this.extractorName}: ${r}`),JSON.parse(r).entries}saveMetadataForCacheResults(e){let r=new Ife;r.entries=e.filter(s=>s.cacheKey!==void 0);let n=JSON.stringify(r);zo(`Saving cache metadata for ${this.extractorName}: ${n}`),IM.writeFileSync(this.getCacheMetadataFile(),n,"utf-8")}getCacheMetadataFile(){let e=WR.resolve(this.gradleUserHome,oQ);return IM.mkdirSync(e,{recursive:!0}),WR.resolve(e,`${this.extractorName}-entry-metadata.json`)}},QM=class extends h9{constructor(e,r){super(e,"gradle-home",r)}async extract(e){return await this.deleteWrapperZips(),super.extract(e)}async deleteWrapperZips(){let e=WR.resolve(this.gradleUserHome,"wrapper/dists/*/*/*.zip"),r=await aC(e,{implicitDescendants:!1});for(let n of await r.glob())zo(`Deleting wrapper zip: ${n}`),await cM(n)}getExtractedCacheEntryDefinitions(){let e=(r,n,s)=>{let i=n.map(o=>{let a=o.endsWith("/"),A=WR.resolve(this.gradleUserHome,o);return a?`${A}/`:A}).join(`
`);return new d9(r,i,s)};return[e("generated-gradle-jars",["caches/*/generated-gradle-jars/*.jar"],!1),e("wrapper-zips",["wrapper/dists/*/*/"],!1),e("java-toolchains",["jdks/*/"],!1),e("dependencies",["caches/modules-*/files-*/*/*/*/*"],!0),e("instrumented-jars",["caches/jars-*/*/"],!0),e("kotlin-dsl",["caches/*/kotlin-dsl/accessors/*/","caches/*/kotlin-dsl/scripts/*/"],!0),e("groovy-dsl",["caches/*/groovy-dsl/*/"],!0),e("transforms",["caches/transforms-4/*/","caches/*/transforms/*/"],!0)]}},yM=class extends h9{constructor(e,r){super(e,"configuration-cache",r)}async restore(e){if(!e.fullyRestored){this.markNotRestored(e,"Gradle User Home was not fully restored");return}if(!this.cacheConfig.getCacheEncryptionKey()){this.markNotRestored(e,"Encryption Key was not provided");return}return await super.restore(e)}markNotRestored(e,r){let n=this.loadExtractedCacheEntries();if(n.length>0){fe(`Not restoring configuration-cache state, as ${r}`);for(let s of n)e.entry(s.pattern).markNotRestored(r);this.saveMetadataForCacheResults([])}}async extract(e){if(!this.cacheConfig.getCacheEncryptionKey()){let r=this.getExtractedCacheEntryDefinitions();if(r.length>0){fe("Not saving configuration-cache state, as no encryption key was provided");for(let n of r)e.entry(n.pattern).markNotSaved("No encryption key provided")}return}await super.extract(e)}getExtractedCacheEntryDefinitions(){let e=this.getConfigCacheDirectoriesWithAssociatedBuildResults();return Object.entries(e).map(([r,n])=>{let s=new d9("configuration-cache",r,!0).withNonUniqueFileNames();return n.find(i=>!xC(i.gradleVersion,"8.6.0"))&&(fe(`Not saving config-cache data for ${r}. Configuration cache data is only saved for Gradle 8.6+`),s.notCacheableBecause("Configuration cache data only saved for Gradle 8.6+")),s})}getConfigCacheDirectoriesWithAssociatedBuildResults(){return Cfe().results.reduce((e,r)=>{let n=WR.resolve(r.rootProjectDir,".gradle/configuration-cache");return IM.existsSync(n)&&(e[n]||(e[n]=[]),e[n].push(r)),e},{})}};import wat from"path";import WUr from"fs";import{fileURLToPath as zUr}from"url";function Nat(...t){let e=wat.dirname(zUr(import.meta.url)),r=wat.resolve(e,"..","..","..","sources","src","resources",...t);return WUr.readFileSync(r,"utf8")}function Sat(){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"?>
`)}var Qbt=class extends Error{constructor(t,e,r){super(Bbt(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},ybt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],bbt=["query","method","url"],Dbe=/\/api\/v3\/?$/;function wbt(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(bbt.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)=>ybt.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 Dbe.test(i)&&(n.url=i.replace(Dbe,"/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 Qbt(n,a,o.data)}return o.data.data})}function sY(t,e){let r=t.defaults(e);return Object.assign((n,i)=>wbt(r,n,i),{defaults:sY.bind(null,r),endpoint:r.endpoint})}var UBr=sY(Rbe.request,{headers:{"user-agent":`octokit-graphql.js/${Ibt} ${ck()}`},method:"POST",url:"/graphql"});function Tbe(t){return sY(t,{method:"POST",url:"/graphql"})}var nY="(?:[a-zA-Z0-9_-]+)",xbe="\\.",kbe=new RegExp(`^${nY}${xbe}${nY}${xbe}${nY}$`),Sbt=kbe.test.bind(kbe);async function Nbt(t){let e=Sbt(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 Dbt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Rbt(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=Dbt(t),e(n)}var Fbe=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(Nbt.bind(null,e),{hook:Rbt.bind(null,e)})};var iY="7.0.6";var Mbe=()=>{},Tbt=console.warn.bind(console),xbt=console.error.bind(console);function kbt(t={}){return typeof t.debug!="function"&&(t.debug=Mbe),typeof t.info!="function"&&(t.info=Mbe),typeof t.warn!="function"&&(t.warn=Tbt),typeof t.error!="function"&&(t.error=xbt),t}var Ube=`octokit-core.js/${iY} ${ck()}`,hk=class{static VERSION=iY;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 sbe.Collection,s={baseUrl:oY.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} ${Ube}`:Ube,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=oY.request.defaults(s),this.graphql=Tbe(this.request).defaults(s),this.log=kbt(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=Fbe(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 aY="17.0.0";var Fbt={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 n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Xb(i));return s.searchPaths.push(...gY(s.patterns)),s})}static stat(e,r,s){return BY(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield IC.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Y(`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 IC.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield IC.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){Y(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Bwt=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 Bk(t,e){return Bwt(this,void 0,void 0,function*(){return yield Ck.create(t,e)})}var ANe=le(aw(),1);import*as vk from"crypto";import*as yC from"fs";import*as gp from"path";import*as cNe from"util";var Aw;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Aw||(Aw={}));var Ci;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ci||(Ci={}));var Fo;(function(t){t.GNU="gnu",t.BSD="bsd"})(Fo||(Fo={}));var Mk=2,Uk=5e3,HY=5e3,GY=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,aNe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,cw="cache.tar",YY="manifest.txt",Cyr=10*Math.pow(1024,3);var QC=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())})},E1t=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)}},m1t="1.0";function uw(){return QC(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=gp.join(s,"actions","temp")}let r=gp.join(e,vk.randomUUID());return yield _g(r),r})}function tu(t){return yC.statSync(t).size}function qY(t){return QC(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 Bk(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=E1t(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=gp.relative(a,n).replace(new RegExp(`\\${gp.sep}`,"g"),"/");Y(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}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 lw(t){return QC(this,void 0,void 0,function*(){return cNe.promisify(yC.unlink)(t)})}function uNe(t){return QC(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),Y(`Checking ${e} ${r.join(" ")}`);try{yield UA(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){Y(n.message)}return s=s.trim(),Y(s),s})}function dw(){return QC(this,void 0,void 0,function*(){let t=yield uNe("zstd",["--quiet"]),e=ANe.clean(t);return Y(`zstd version: ${e}`),t===""?Ci.Gzip:Ci.ZstdWithoutLong})}function Hh(t){return t===Ci.Gzip?Aw.Gzip:Aw.Zstd}function lNe(){return QC(this,void 0,void 0,function*(){return yC.existsSync(GY)?GY:(yield uNe("tar")).toLowerCase().includes("gnu tar")?yo("tar"):""})}function VY(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function bC(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(m1t),vk.createHash("sha256").update(s.join("|")).digest("hex")}function dNe(){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 ZC from"fs";import{URL as OFt}from"url";var ru=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as C1t}from"node:os";import I1t from"node:util";import B1t from"node:process";function hNe(t,...e){B1t.stderr.write(`${I1t.format(t,...e)}${C1t}`)}var fNe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,pNe,JY=[],WY=[],_k=[];fNe&&zY(fNe);var ENe=Object.assign(t=>mNe(t),{enable:zY,enabled:jY,disable:Q1t,log:hNe});function zY(t){pNe=t,JY=[],WY=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?WY.push(r.substring(1)):JY.push(r);for(let r of _k)r.enabled=jY(r.namespace)}function jY(t){if(t.endsWith("*"))return!0;for(let e of WY)if(gNe(t,e))return!1;for(let e of JY)if(gNe(t,e))return!0;return!1}function gNe(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 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 Q1t(){let t=pNe||"";return zY(""),t}function mNe(t){let e=Object.assign(r,{enabled:jY(t),destroy:y1t,log:ENe.log,namespace:t,extend:b1t});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return _k.push(e),e}function y1t(){let t=_k.indexOf(this);return t>=0?(_k.splice(t,1),!0):!1}function b1t(t){let e=mNe(`${this.namespace}:${t}`);return e.log=this.log,e}var wC=ENe;var KY=["verbose","info","warning","error"],CNe={verbose:400,info:300,warning:200,error:100};function INe(t,e){e.log=(...r)=>{t.log(...r)}}function BNe(t){return KY.includes(t)}function w1t(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=wC(t.namespace);n.log=(...u)=>{wC.log(...u)};function i(u){if(u&&!BNe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${KY.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);wC.enable(l.join(","))}r&&(BNe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${KY.join(", ")}.`));function o(u){return!!(s&&CNe[u.level]<=CNe[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(INe(u,d),o(d)){let h=wC.disable();wC.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return INe(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 QNe=w1t({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),S1t=QNe.logger;function hw(t){return QNe.createClientLogger(t)}function Pk(t){return t.toLowerCase()}function*N1t(t){for(let e of t.values())yield[e.name,e.value]}var ZY=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(Pk(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(Pk(e))?.value}has(e){return this._headersMap.has(Pk(e))}delete(e){this._headersMap.delete(Pk(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let s of this._headersMap.values())r[s.name]= Line truncated
${x1t.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Gk(t){return t instanceof Ii?!0:Ep(t)&&t.name==="RestError"}function Ki(t,e){return Buffer.from(t,e)}import tq from"node:http";import rq from"node:https";import wNe from"node:zlib";import{Transform as k1t}from"node:stream";var ka=hw("ts-http-runtime");var F1t={};function fw(t){return t&&typeof t.pipe=="function"}function SNe(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 NNe(t){return t&&typeof t.byteLength=="number"}var Yk=class extends k1t{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}},sq=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new ru("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 KA;ka.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=L1t(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new Yk(f);p.on("error",C=>{ka.error("Error in upload progress",C)}),fw(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=M1t(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?U1t(c,u):c;let h=e.onDownloadProgress;if(h){let f=new Yk(h);f.on("error",p=>{ka.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 v1t(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();fw(a)&&(c=SNe(a));let u=Promise.resolve();fw(A)&&(u=SNe(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ka.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?tq.request(a,A):rq.request(a,A);u.once("error",l=>{c(new Ii(l.message,{code:l.code??Ii.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ru("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&fw(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):NNe(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(ka.error("Unrecognized body type",s),c(new Ii("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?tq.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new tq.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return rq.globalAgent;let n=e.tlsSettings??F1t,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ka.info("No cached TLS Agent exist, creating a new Agent"),i=new rq.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function M1t(t){let e=Mo();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 U1t(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=wNe.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=wNe.createInflate();return t.pipe(s),s}return t}function v1t(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 Ii(`Error reading response as text: ${n.message}`,{code:Ii.PARSE_ERROR}))})})}function L1t(t){return t?Buffer.isBuffer(t)?t.length:fw(t)?null:NNe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function DNe(){return new sq}function qk(){return DNe()}var nq="logPolicy";function Vk(t={}){let e=t.logger??ka.info,r=new KA({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:nq,async sendRequest(s,n){if(!e. Line truncated
`;return e}function iRt(t){return t instanceof Uint8Array?t.byteLength:hF(t)?t.size===-1?void 0:t.size:void 0}function oRt(t){let e=0;for(let r of t){let s=iRt(r);if(s===void 0)return;e+=s}return e}async function aRt(t,e,r){let s=[Ki(`--${r}`,"utf-8"),...e.flatMap(i=>[Ki(`\r
`,"utf-8"),Ki(nRt(i.headers),"utf-8"),Ki(`\r
`,"utf-8"),i.body,Ki(`\r
--${r}`,"utf-8")]),Ki(`--\r
\r
`,"utf-8")],n=oRt(s);n&&t.headers.set("Content-Length",n),t.body=await b1e(s)}var Ew="multipartPolicy",ARt=70,cRt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function uRt(t){if(t.length>ARt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!cRt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function fF(){return{name:Ew,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?uRt(r):r=sRt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await aRt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function gF(){return Hk()}import{EOL as dRt}from"node:os";import hRt from"node:util";import*as w1e from"node:process";function S1e(t,...e){w1e.stderr.write(`${hRt.format(t,...e)}${dRt}`)}var N1e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,D1e,Qq=[],yq=[],pF=[];N1e&&bq(N1e);var R1e=Object.assign(t=>T1e(t),{enable:bq,enabled:wq,disable:fRt,log:S1e});function bq(t){D1e=t,Qq=[],yq=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?yq.push(new RegExp(`^${s.substr(1)}$`)):Qq.push(new RegExp(`^${s}$`));for(let s of pF)s.enabled=wq(s.namespace)}function wq(t){if(t.endsWith("*"))return!0;for(let e of yq)if(e.test(t))return!1;for(let e of Qq)if(e.test(t))return!0;return!1}function fRt(){let t=D1e||"";return bq(""),t}function T1e(t){let e=Object.assign(r,{enabled:wq(t),destroy:gRt,log:R1e.log,namespace:t,extend:pRt});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return pF.push(e),e}function gRt(){let t=pF.indexOf(this);return t>=0?(pF.splice(t,1),!0):!1}function pRt(t){let e=T1e(`${this.namespace}:${t}`);return e.log=this.log,e}var kC=R1e;var k1e=new Set,EF=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Sq,Nq=kC("azure");Nq.log=(...t)=>{kC.log(...t)};var Dq=["verbose","info","warning","error"];EF&&(U1e(EF)?ERt(EF):console.error(`AZURE_LOG_LEVEL set to unknown log level '${EF}'; logging is not enabled. Acceptable values: ${Dq.join(", ")}.`));function ERt(t){if(t&&!U1e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Dq.join(",")}`);Sq=t;let e=[];for(let r of k1e)M1e(r)&&e.push(r.namespace);kC.enable(e.join(","))}var x1e={verbose:400,info:300,warning:200,error:100};function va(t){let e=Nq.extend(t);return F1e(Nq,e),{error:mF(e,"error"),warning:mF(e,"warning"),info:mF(e,"info"),verbose:mF(e,"verbose")}}function F1e(t,e){e.log=(...r)=>{t.log(...r)}}function mF(t,e){let r=Object.assign(t.extend(e),{level:e});if(F1e(t,r),M1e(r)){let s=kC.disable();kC.enable(s+","+r.namespace)}return k1e.add(r),r}function M1e(t){return!!(Sq&&x1e[t.level]<=x1e[Sq])}function U1e(t){return Dq.includes(t)}var nu=va("core-rest-pipeline");function Rq(t={}){return Vk({logger:nu.info,...t})}var Tq=Jk;function xq(t={}){return Wk(t)}import kq from"node:os";import Fq from"node:process";function v1e(){return"User-Agent"}async function L1e(t){if(Fq&&Fq.versions){let e=`${kq.type()} ${kq.release()}; ${kq.arch()}`,r=Fq.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 CF="1.22.2";function bRt(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function _1e(){return v1e()}async function IF(t){let e=new Map;e.set("core-rest-pipeline",CF),await L1e(e);let r=bRt(e);return t?`${t} ${r}`:r}var P1e=_1e(),O1e="userAgentPolicy";function Mq(t={}){let e=IF(t.userAgentPrefix);return{name:O1e,async sendRequest(r,s){return r.headers.has(P1e)||r.headers.set(P1e,await e),s(r)}}}var mw=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Uq(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new mw(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 RRt="The delay was aborted.";function FC(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Uq(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??RRt})}function Yh(t){if(Ep(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 H1e(t){return Ep(t)}function MC(){return pp()}var sr=Ip;var G1e=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--),!$Tt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Ds("InvalidTag",l,Bi(t,i))}let c=zTt(t,i);if(c===!1)return Ds("InvalidAttr","Attributes for '"+A+"' have open quote.",Bi(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=DDe(u,e);if(d===!0)s=!0;else return Ds(d.err.code,d.err.msg,Bi(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Ds("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Bi(t,o));if(r.length===0)return Ds("InvalidTag","Closing tag '"+A+"' has not been opened.",Bi(t,o));{let l=r.pop();if(A!==l.tagName){let d=Bi(t,l.tagStartPos);return Ds("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Bi(t,o))}r.length==0&&(n=!0)}}else return Ds("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Bi(t,i));else{let l=DDe(u,e);if(l!==!0)return Ds(l.err.code,l.err.msg,Bi(t,i-u.length+l.err.line));if(n===!0)return Ds("InvalidXml","Multiple possible root nodes found.",Bi(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=NDe(t,i);continue}else if(t[i+1]==="?"){if(i=SDe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=ZTt(t,i);if(l==-1)return Ds("InvalidChar","char '&' is not expected.",Bi(t,i));i=l}else if(n===!0&&!wDe(t[i]))return Ds("InvalidXml","Extra text at the end",Bi(t,i));t[i]==="<"&&i--}}else{if(wDe(t[i]))continue;return Ds("InvalidChar","char '"+t[i]+"' is not expected.",Bi(t,i))}if(s){if(r.length==1)return Ds("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Bi(t,r[0].tagStartPos));if(r.length>0)return Ds("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ds("InvalidXml","Start tag expected.",1);return!0}function wDe(t){return t===" "||t===" "||t===`
`||t==="\r"}function SDe(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 Ds("InvalidXml","XML declaration allowed only at the start of the document.",Bi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function NDe(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 JTt='"',WTt="'";function zTt(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===JTt||t[e]===WTt)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 jTt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function DDe(t,e){let r=kF(t,jTt),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Ds("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Tw(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Ds("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Tw(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Ds("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Tw(r[n]));let i=r[n][2];if(!XTt(i))return Ds("InvalidAttr","Attribute '"+i+"' is an invalid name.",Tw(r[n]));if(!s.hasOwnProperty(i))s[i]=1;else return Ds("InvalidAttr","Attribute '"+i+"' is repeated.",Tw(r[n]))}return!0}function KTt(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 ZTt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,KTt(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 Ds(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function XTt(t){return Rw(t)}function $Tt(t){return Rw(t)}function Bi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Tw(t){return t.startIndex+t[1].length}var ext={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},RDe=function(t){return Object.assign({},ext,t)};var MF;typeof Symbol!="function"?MF="@@xmlMetadata":MF=Symbol("XML Node Metadata");var _o=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][MF]={startIndex:r})}static getMetaDataSymbol(){return MF}};function lV(t,e){let r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let s=1,n=!1,i=!1,o="";for(;e<t.length;e++)if(t[e]==="<"&&!i){if(n&&sxt(t,e)){e+=7;let a,A;[a,A,e]=txt(t,e+1),A.indexOf("&")===-1&&(r[axt(a)]={regx:RegExp(`&${a};`,"g"),val:A})}else if(n&&nxt(t,e))e+=8;else if(n&&ixt(t,e))e+=8;else if(n&&oxt(t,e))e+=9;else if(rxt)i=!0;else throw new Error("Invalid DOCTYPE");s++,o=""}else if(t[e]===">"){if(i?t[e-1]==="-"&&t[e-2]==="-"&&(i=!1,s--):s--,s===0)break}else t[e]==="["?n=!0:o+=t[e];if(s!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}function txt(t,e){let r="";for(;e<t.length&&t[e]!=="'"&&t[e]!=='"';e++)r+=t[e];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");let s=t[e++],n="";for(;e<t.length&&t[e]!==s;e++)n+=t[e];return[r,n,e]}function rxt(t,e){return t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-"}function sxt(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y"}function nxt(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T"}function ixt(t,e){return t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T"}function oxt(t,e){return t[e+1]==="!"&&t[e+2]==="N"&&Line truncated
`);let e=new _o("!xml"),r=e,s="",n="";for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=bp(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&(s=this.saveTextToParentTag(s,r,n));let c=n.substring(n.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let u=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(u=n.lastIndexOf(".",n.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=n.lastIndexOf("."),n=n.substring(0,u),r=this.tagsNodeStack.pop(),s="",i=a}else if(t[i+1]==="?"){let a=hV(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,r,n),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new _o(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,n,a.tagName)),this.addChild(r,A,n,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=bp(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);s=this.saveTextToParentTag(s,r,n),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=lV(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=bp(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);s=this.saveTextToParentTag(s,r,n);let c=this.parseTextData(A,r.tagname,n,!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=hV(t,i,this.options.removeNSPrefix),A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,n,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),n=n.substring(0,n.lastIndexOf("."))),A!==e.tagname&&(n+=n?"."+A:A);let f=i;if(this.isItStopNode(this.options.stopNodes,n,A)){let p="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),n=n.substr(0,n.length-1),u=A):u=u.substr(0,u.length-1),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,p=m.tagContent}let C=new _o(A);A!==u&&l&&(C[":@"]=this.buildAttributesMap(u,n,A)),p&&(p=this.parseTextData(p,A,n,!0,l,!0,!0)),n=n.substr(0,n.lastIndexOf(".")),C.add(this.options.textNodeName,p),this.addChild(r,C,n,f)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),n=n.substr(0,n.length-1),u=A):u=u.substr(0,u.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));let p=new _o(A);A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,n,A)),this.addChild(r,p,n,f),n=n.substr(0,n.lastIndexOf("."))}else{let p=new _o(A);this.tagsNodeStack.push(r),A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,n,A)),this.addChild(r,p,n,f),r=p}s="",i=d}}else s+=t[i];return e.child};function Cxt(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.updateTag(e.tagname,r,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,s))}var Ixt=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){let r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function Bxt(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function Qxt(t,e,r){let s="*."+r;for(let n in t){let i=t[n];if(s===i||e===i)return!0}return!1}function yxt(t,e,r=">"){let s,n="";for(let i=e;i<t.length;i++){let o=t[i];if(s)o===s&&(s="");else if(o==='"'||o==="'")s=o;else if(o===r[0])if(r[1]){if(t[i+1]===r[1])return{data:n,index:i}}else return{data:n,index:i};else o===" "&&(o=" ");n+=o}}function bp(t,e,r,s){let n=t.indexOf(e,r);if(n===-1)throw new Error(s);return n+e.length-1}function hV(t,e,r,s=">"){let n=yxt(t,e+1,s);if(!n)return;let i=n.data,o=n.index,a=i.search(/\s/),A=i,c=!0;a!==-1&&(A=i.substring(0,a),i=i.substring(a+1).trimStart());let u=A;if(r){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),c=A!==n.data.substr(l+1))}return{tagName:A,tagExp:i,closeIndex:o,attrExpPresent:c,rawTagName:u}}function bxt(t,e,r){let s=r,n=1;for(;r<t.length;r++)if(t[r]==="<")if(t[r+1]==="/"){let i=bp(t,">",r,`${e} is not closed`);if(t.substringLine truncated
`),kDe(t,e,"",r)}function kDe(t,e,r,s){let n="",i=!1;for(let o=0;o<t.length;o++){let a=t[o],A=Dxt(a);if(A===void 0)continue;let c="";if(r.length===0?c=A:c=`${r}.${A}`,A===e.textNodeName){let f=a[A];Rxt(c,e)||(f=e.tagValueProcessor(A,f),f=FDe(f,e)),i&&(n+=s),n+=f,i=!1;continue}else if(A===e.cdataPropName){i&&(n+=s),n+=`<![CDATA[${a[A][0][e.textNodeName]}]]>`,i=!1;continue}else if(A===e.commentPropName){n+=s+`<!--${a[A][0][e.textNodeName]}-->`,i=!0;continue}else if(A[0]==="?"){let f=xDe(a[":@"],e),p=A==="?xml"?"":s,C=a[A][0][e.textNodeName];C=C.length!==0?" "+C:"",n+=p+`<${A}${C}${f}?>`,i=!0;continue}let u=s;u!==""&&(u+=e.indentBy);let l=xDe(a[":@"],e),d=s+`<${A}${l}`,h=kDe(a[A],e,c,u);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?n+=d+">":n+=d+"/>":(!h||h.length===0)&&e.suppressEmptyNode?n+=d+"/>":h&&h.endsWith(">")?n+=d+`>${h}${s}</${A}>`:(n+=d+">",h&&s!==""&&(h.includes("/>")||h.includes("</"))?n+=s+e.indentBy+h+s:n+=h,n+=`</${A}>`),i=!0}return n}function Dxt(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(t.hasOwnProperty(s)&&s!==":@")return s}}function xDe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!t.hasOwnProperty(s))continue;let n=e.attributeValueProcessor(s,t[s]);n=FDe(n,e),n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return r}function Rxt(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let s in e.stopNodes)if(e.stopNodes[s]===t||e.stopNodes[s]==="*."+r)return!0;return!1}function FDe(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}var Txt={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};function ZA(t){this.options=Object.assign({},Txt,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=xw(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Fxt),this.processTextOrObjNode=xxt,this.options.format?(this.indentate=kxt,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ZA.prototype.build=function(t){return this.options.preserveOrder?EV(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};ZA.prototype.j2x=function(t,e,r){let s="",n="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(n+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?n+="":o[0]==="?"?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)n+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))s+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let A=this.options.tagValueProcessor(o,""+t[o]);n+=this.replaceEntitiesValue(A)}else n+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,A="",c="";for(let u=0;u<a;u++){let l=t[o][u];if(!(typeof l>"u"))if(l===null)o[0]==="?"?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof l=="object")if(this.options.oneListGroup){let d=this.j2x(l,e+1,r.concat(o));A+=d.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else A+=this.processTextOrObjNode(l,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,l);d=this.replaceEntitiesValue(d),A+=d}else A+=this.buildTextValNode(l,o,"",e)}this.options.oneListGroup&&(A=this.buildObjectNode(A,o,c,e)),n+=A}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),A=a.length;for(let c=0;c<A;c++)s+=this.buildAttrPairStr(a[c],""+t[o][a[c]])}else n+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:s,val:n}};ZA.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function xxt(t,e,r,s){let n=this.j2x(t,r+1,s.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r):this.buildObjectNode(n.val,e,n.attrStr,r)}ZA.prototype.buildObjectNode=function(t,e,r,s){if(t==="")return e[0]==="?"?this.indentate(s)+"<"+e+r+"?"+this.tagEndChar:this.indentate(s)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let n="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",n=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(s)+"<"+e+r+i+">"+t+n:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(s)+`<!--${t}-->`+this.newLine:this.indentate(s)+"<"+e+r+i+this.tagEndChar+t+this.indentate(s)+n}};ZA.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};ZA.prototype.buildTextValNode=function(t,e,r,s){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(s)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(s)+"<"+e+r+"?"+this.tagEndChar;{let n=this.options.tagValueProcessor(e,t);return n=this.replaceEntitiesValue(n),n===""?this.indentate(s)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(s)+"<"+e+r+">"+n+"</"+e+this.tagEndChar}};ZA.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function kxt(t){return this.options.indentBy.repeat(t)}function Fxt(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var MDe={validate:FF};function LDe(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Mxt(t={}){var e,r;return Object.assign(Object.assign({},LDe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Uxt(t={}){return Object.assign(Object.assign({},LDe(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function UF(t,e={}){let r=Mxt(e),s=new ZA(r),n={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${s.build(n)}`.replace(/\n/g,"")}async function mV(t,e={}){if(!t)throw new Error("Document is empty");let r=MDe.validate(t);if(r!==!0)throw r;let n=new _C(Uxt(e)).parse(t);if(Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(nt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===nt.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(nt.PREFIX_FOR_STORAGE));r.sort((n,i)=>VF(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=GF(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=YF(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 ls=class extends Sp{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new vw(e,r,this)}computeHMACSHA256(e){return Yxt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Np=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Ws=va("storage-common");var La;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(La||(La={}));var zh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:La.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qxt=new Np("The operation was aborted."),Lw=class extends au{retryOptions;constructor(e,r,s=zh){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:zh.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):zh.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:zh.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:zh.maxRetryDelayInMs):zh.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:zh.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:zh.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=HF(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Wh(n.url,id.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Ws.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(Ws.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 Ws.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 Ws.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 Ws.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Ws.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(nt.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')?(Ws.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 La.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case La.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Ws.info(`RetryPolicy: Delay for ${n}ms`),qF(n,s,qxt)}};var _w=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Lw(e,r,this.retryOptions)}};var Vxt="storageBrowserPolicy";function _De(){return{name:Vxt,async sendRequest(t,e){return sr||((t.method==="GET"||t.method==="HEAD")&&(t.url=Wh(t.url,id.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(nt.COOKIE),t.headers.delete(nt.CONTENT_LENGTH)),e(t)}}}var Jxt="StorageCorrectContentLengthPolicy";function PDe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(nt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Jxt,async sendRequest(e,r){return t(e),r(e)}}}var Wxt="storageRetryPolicy",PC={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:La.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},zxt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],jxt=new Np("The operation was aborted.");function ODe(t={}){let e=t.retryPolicyType??PC.retryPolicyType,r=t.maxTries??PC.maxTries,s=t.retryDelayInMs??PC.retryDelayInMs,n=t.maxRetryDelayInMs??PC.maxRetryDelayInMs,i=t.secondaryHost??PC.secondaryHost,o=t.tryTimeoutInMs??PC.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return Ws.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of zxt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+s(i)+n(i),a=Kxt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(nt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===nt.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(nt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>VF(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=GF(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=YF(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:Zxt,async sendRequest(i,o){return e(i),o(i)}}}var Xxt="storageRequestFailureDetailsParserPolicy";function HDe(){return{name:Xxt,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 $xt}from"node:crypto";var JF=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return $xt("sha256",this.key).update(e,"utf8").digest("base64")}};var WF="12.31.0",zF="2026-02-06";var jF="https://storage.azure.com/.default",od={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var XA="",QV="*",e2t=1*1024*1024;var t2t=4*e2t;var GDe="AES256",YDe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",qDe=["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"],VDe=["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"],JDe="BlobUsesCustomerSpecifiedEncryption",WDe="BlobDoesNotUseCustomerSpecifiedEncryption",zDe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function ad(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 Pw=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Rs(t,e={}){t||(t=new Wr);let r=new Pw([],e);return r._credential=t,r}function r2t(t){let e=[s2t,jDe,n2t,i2t,o2t,a2t,c2t];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>A2t(n));return{wrappedPolicies:cV(r),afterRetry:s}}}}function yV(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?uV(e):IV(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${WF}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=yw({...r,loggingOptions:{additionalAllowedHeaderNames:qDe,additionalAllowedQueryParameters:VDe,logger:vF.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:UF,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:mV,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:Pq}),n.addPolicy(PDe()),n.addPolicy(ODe(r.retryOptions),{phase:"Retry"}),n.addPolicy(HDe()),n.addPolicy(_De());let a=r2t(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=bV(t);vo(A)?n.addPolicy(vC({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new sc(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 sFt(t,e){if(t=vp(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=bu.parse(t.permissions.toString()).toString():n=wu.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?nr(t.startsOn,!1):"",t.expiresOn?nr(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?rc(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 sc(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 nFt(t,e){if(t=vp(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=bu.parse(t.permissions.toString()).toString():n=wu.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?nr(t.startsOn,!1):"",t.expiresOn?nr(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?rc(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 sc(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 iFt(t,e){if(t=vp(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=bu.parse(t.permissions.toString()).toString():n=wu.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?nr(t.startsOn,!1):"",t.expiresOn?nr(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?nr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?nr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?rc(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 sc(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 oFt(t,e){if(t=vp(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=bu.parse(t.permissions.toString()).toString():n=wu.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?nr(t.startsOn,!1):"",t.expiresOn?nr(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?nr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?nr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?rc(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 sc(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 aFt(t,e){if(t=vp(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=bu.parse(t.permissions.toString()).toString():n=wu.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?nr(t.startsOn,!1):"",t.expiresOn?nr(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?nr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?nr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?rc(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 sc(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 AFt(t,e){if(t=vp(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=bu.parse(t.permissions.toString()).toString():n=wu.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?nr(t.startsOn,!1):"",t.expiresOn?nr(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?nr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?nr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?rc(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 sc(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 Up(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function vp(t){let e=t.version?t.version:zF;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 Zw=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=MC()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==XA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==XA||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 ye.withSpan("BlobLeaseClient-acquireLease",r,async s=>Le(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!==XA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==XA||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 ye.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=Le(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!==XA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==XA||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 ye.withSpan("BlobLeaseClient-releaseLease",e,async r=>Le(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!==XA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==XA||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 ye.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"}};jC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pp=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"}};Pp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var iS=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var xFt=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())})},Zz=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);te(`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 ATe(t,e,r){return xFt(this,void 0,void 0,function*(){var s;let n=new nc(t),i=n.getBlockBlobClient(),o=new Zz((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(),Y(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new YM(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw it(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as uTe from"buffer";import*as Su from"fs";import*as lTe from"stream";import*as dTe from"util";var qM=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 VM(t){return t?t>=200&&t<300:!1}function kFt(t){return t?t>=500:!0}function FFt(t){return t?[Er.BadGateway,Er.ServiceUnavailable,Er.GatewayTimeout].includes(t):!1}function MFt(t){return qM(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function cTe(t,e,r){return qM(this,arguments,void 0,function*(s,n,i,o=Mk,a=Uk,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield n()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!kFt(d)))return l;if(d&&(h=FFt(d),c=`Cache service responded with ${d}`),Y(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){Y(`${s} - Error is not retryable`);break}yield MFt(a),u++}throw Error(`${s} failed: ${c}`)})}function oS(t,e){return qM(this,arguments,void 0,function*(r,s,n=Mk,i=Uk){return yield cTe(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Oc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function KC(t,e){return qM(this,arguments,void 0,function*(r,s,n=Mk,i=Uk){return yield cTe(r,s,o=>o.message.statusCode,n,i)})}var Ga=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 UFt(t,e){return Ga(this,void 0,void 0,function*(){yield dTe.promisify(lTe.pipeline)(t.message,e)})}var JM=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,Y(`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);te(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])Y(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function t7(t,e,r){return eo(this,void 0,void 0,function*(){let s=new OFt(t),n=pTe(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield fTe(t,e,n):n.concurrentBlobDownloads?yield hTe(t,e,n):yield WM(t,e):yield WM(t,e)})}function yTe(t,e,r){return eo(this,void 0,void 0,function*(){let s=e7(),n=bC(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield oS("reserveCache",()=>eo(this,void 0,void 0,function*(){return s.postJson(AS("caches"),i)}))})}function BTe(t,e){return`bytes ${t}-${e}/*`}function qFt(t,e,r,s,n){return eo(this,void 0,void 0,function*(){Y(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${BTe(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":BTe(s,n)},o=yield KC(`uploadChunk (start: ${s}, end: ${n})`,()=>eo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!VM(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function VFt(t,e,r,s){return eo(this,void 0,void 0,function*(){let n=tu(r),i=AS(`caches/${e.toString()}`),o=ZC.openSync(r,"r"),a=Xz(s),A=VY("uploadConcurrency",a.uploadConcurrency),c=VY("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];Y("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>eo(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),h=l,f=l+d-1;l+=c,yield qFt(t,i,()=>ZC.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{ZC.closeSync(o)}})}function JFt(t,e,r){return eo(this,void 0,void 0,function*(){let s={size:r};return yield oS("commitCache",()=>eo(this,void 0,void 0,function*(){return t.postJson(AS(`caches/${e.toString()}`),s)}))})}function r7(t,e,r,s){return eo(this,void 0,void 0,function*(){if(Xz(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ATe(r,e,s)}else{let i=e7();Y("Upload cache"),yield VFt(i,t,e,s),Y("Commiting cache");let o=tu(e);te(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield JFt(i,t,o);if(!VM(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);te("Cache saved successfully")}})}var pxe=le(W7(),1),xs=le(Ct(),1),Ho=le(Ct(),1),qp=le(Ct(),1),Vp=le(Ct(),1),Jp=le(Ct(),1);var Z7=le(Ct(),1),X7=le(Ct(),1),hxe=le(Ct(),1),fxe=le(Ct(),1),gxe=le(Ct(),1);var z7=le(Ct(),1),j7=le(Ct(),1),uxe=le(Ct(),1),lxe=le(Ct(),1),dxe=le(Ct(),1),K7=class extends dxe.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,lxe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,uxe.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?j7.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,z7.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,z7.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?j7.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},MU=new K7;var $7=class extends gxe.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:()=>MU}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,fxe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,hxe.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(MU.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?X7.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Z7.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MU.internalBinaryWrite(e.scope[i],r.tag(2,Z7.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?X7.UnknownFieldHandler.onWrite Line truncated
`));let s=yield fj(r,"create");yield gj(s,t)})}var hI=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())})},Yo=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},sf=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},LU=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Ixe(t){if(!t||t.length===0)throw new Yo("Path Validation Error: At least one directory or file path is required")}function mj(t){if(t.length>512)throw new Yo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Yo(`Key Validation Error: ${t} cannot contain commas.`)}function Bxe(){return aS()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Qxe(t,e,r,s){return hI(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=aS();return Y(`Cache service version: ${c}`),Ixe(n),c==="v2"?yield cvt(n,i,o,a,A):yield Avt(n,i,o,a,A)})}function Avt(t,e,r,s){return hI(this,arguments,void 0,function*(n,i,o,a,A=!1){o=o||[];let c=[i,...o];if(Y("Resolved Keys:"),Y(JSON.stringify(c)),c.length>10)throw new Yo("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)mj(d);let u=yield dw(),l="";try{let d=yield QTe(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return te("Lookup only - skipping download"),d.cacheKey;l=bS.join(yield uw(),Hh(u)),Y(`Archive Path: ${l}`),yield t7(d.archiveLocation,l,a),vA()&&(yield yS(l,u));let h=tu(l);return te(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield pj(l,u),te("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Yo.name)throw d;h instanceof Oc&&typeof h.statusCode=="number"&&h.statusCode>=500?Gc(`Failed to restore: ${d.message}`):it(`Failed to restore: ${d.message}`)}finally{try{yield lw(l)}catch(d){Y(`Failed to delete archive: ${d}`)}}})}function cvt(t,e,r,s){return hI(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(Y("Resolved Keys:"),Y(JSON.stringify(c)),c.length>10)throw new Yo("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)mj(l);let u="";try{let l=hj(),d=yield dw(),h={key:i,restoreKeys:o,version:bC(n,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){Y(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?te(`Cache hit for restore-key: ${f.matchedKey}`):te(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return te("Lookup only - skipping download"),f.matchedKey;u=bS.join(yield uw(),Hh(d)),Y(`Archive path: ${u}`),Y(`Starting download of archive to: ${u}`),yield t7(f.signedDownloadUrl,u,a);let C=tu(u);return te(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),vA()&&(yield yS(u,d)),yield pj(u,d),te("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Yo.name)throw l;d instanceof Oc&&typeof d.statusCode=="number"&&d.statusCode>=500?Gc(`Failed to restore: ${l.message}`):it(`Failed to restore: ${l.message}`)}finally{try{u&&(yield lw(u))}catch(l){Y(`Failed to delete archive: ${l}`)}}})}function yxe(t,e,r){return hI(this,arguments,void 0,function*(s,n,i,o=!1){let a=aS();return Y(`Cache service version: ${a}`),Ixe(s),mj(n),a==="v2"?yield lvt(s,n,i,o):yield uvt(s,n,i,o)})}function uvt(t,e,r){return hI(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield dw(),h=-1,f=yield qY(s);if(Y("Cache Paths:"),Y(`${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 uw(),C=bS.join(p,Hh(d));Y(`Archive Path: ${C}`);try{yield Ej(p,f,d),vA()&&(yield yS(C,d));let m=10*1024*1024*1024,I=tu(C);if(Y(`File Size: ${I}`),I>m&&!$z())throw new Error(`Cache size of ~${Math.round(I/(1024*1024))} MB (${I} B) is over the 10GB limit, not saving cache.`);Y("Reserving Cache");let Q=yield yTe(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:I});if(!((a=Q?.result)===null||a===void 0)&&a.cacheId)h=(A=Q?.result)===null||A===void 0?void 0:A.cacheId;else throw Q?.statusCode===400?new Error((u=(c=Q?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(I/(1024*1024))} MB (${I} B) is over the data cap limit, not saving cache.`):new sf(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(l=Q?.error)===null||l===void 0?void 0:l.message}`);Y(`Saving Cache (ID: ${h})`),yield r7(h,C,"",i)}catch(m){let I=m;if(I.name===Yo.name)throw m;I.name Line truncated
See ${r.getDocumentationLink()}`;wxe.push(s),Ch(s)}function Nxe(){m0("deprecation-collector_deprecations",JSON.stringify(Cj)),m0("deprecation-collector_errors",JSON.stringify(wxe))}import*as OU from"path";var Dxe="GRADLE_ACTION_ID";var VU=".setup-gradle",HU=class t{getDependencyGraphOption(){let e=Yr("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 ku("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Yr("artifact-retention-days");return pvt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ji.workflow,ji.job,gvt())}getReportDirectory(){let e=Yr("dependency-graph-report-dir");return OU.resolve(pd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return Wp("dependency-graph-exclude-projects")}getIncludeProjects(){return Wp("dependency-graph-include-projects")}getExcludeConfigurations(){return Wp("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return Wp("dependency-graph-include-configurations")}getPluginRepository(){return new GU}static constructJobCorrelator(e,r,s){let n=this.describeMatrix(s),i=n?`${e}-${r}-${n}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){Y(`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 fI=class{isCacheDisabled(){return Bxe()?ku("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&ku("cache-read-only")}isCacheWriteOnly(){return ku("cache-write-only")}isCacheOverwriteExisting(){return ku("cache-overwrite-existing")}isCacheStrictMatch(){return ku("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=wS("gradle-home-cache-cleanup");if(e!==void 0)return PU("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Yr("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 Yr("cache-encryption-key")}getCacheIncludes(){return IG("gradle-home-cache-includes")}getCacheExcludes(){return IG("gradle-home-cache-excludes")}};var ac=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return ku("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getBuildScanTermsOfUseUrl(){return Yr("build-scan-terms-of-use-url")}getBuildScanTermsOfUseAgree(){return Yr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Yr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Yr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return wS("develocity-injection-enabled")}getDevelocityUrl(){return Yr("develocity-url")}getDevelocityAllowUntrustedServer(){return wS("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return wS("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return wS("develocity-enforce-url")}getDevelocityPluginVersion(){return Yr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Yr("develocity-ccud-plugin-version")}getPluginRepository(){return new GU}verifyTermsOfUseAgreement(){return this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/terms-of-service"&&this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/help/legal-terms-of-use"||this.getBuildScanTermsOfUseAgree()!=="yes"?(it("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1):!0}},GU=class{getUrl(){return Wp("gradle-plugin-repository-url")}getUsername(){return Wp("gradle-plugin-repository-username")}getPassword(){return Wp("gradle-plugin-repository-password")}},YU=class{getGradleVersion(){return Yr("gradle-version")}getBuildRootDirectory(){let e=pd(),r=Yr("build-root-directory");return r===""?OU.resolve(e):OU.resolve(e,r)}getDependencyResolutionTask(){return Yr("dependency-resolution-task")||":ForceDependencyResolutionPlugin_resolveAllDependencies"}getAdditionalArguments(){return Yr("additional-arguments Line truncated
${bvt}`}};async function Uxe(t){return t.isCacheDisabled()?new Qj:(await Nvt(),new yj(await wvt()))}async function wvt(){let t=Svt();return await import(Bvt(t).href)}function Svt(){let t=import.meta.dirname,e=Mxe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Fxe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}async function Nvt(){console.warn(yvt)}import zU from"fs";import vxe from"path";var jU=class{constructor(e){this.cacheFile=vxe.resolve(e,VU,"valid-wrappers.json")}load(){if(zU.existsSync(this.cacheFile))try{return JSON.parse(zU.readFileSync(this.cacheFile,"utf-8"))}catch(e){it(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];zU.mkdirSync(vxe.dirname(this.cacheFile),{recursive:!0}),zU.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Gxe=le(Oxe(),1);import*as Hxe from"util";import*as KU from"path";import*as ZU from"fs";var Fvt=Hxe.promisify(ZU.readdir);async function Yxe(t){return(await qxe(t)).filter(r=>(0,Gxe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>KU.relative(t,r)).sort((r,s)=>r.localeCompare(s))}async function qxe(t){let e=await Fvt(t),r=await Promise.all(e.map(async s=>{let n=KU.resolve(t,s),i=ZU.lstatSync(n,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?qxe(n):new Promise(o=>o([n]))}));return Array.prototype.concat(...r)}var Uvt={_useHtmlParser2:!1};function gI(t,e){if(!t)return e??Uvt;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 Wj={};QA(Wj,{contains:()=>dv,extract:()=>RLt,html:()=>wLt,merge:()=>h2e,parseHTML:()=>NLt,root:()=>DLt,text:()=>$p,xml:()=>SLt});var cf={};QA(cf,{DocumentPosition:()=>za,append:()=>aLt,appendChild:()=>oLt,compareDocumentPosition:()=>c2e,existsOne:()=>a2e,filter:()=>II,find:()=>Av,findAll:()=>lLt,findOne:()=>cv,findOneChild:()=>uLt,getAttributeValue:()=>rLt,getChildren:()=>CI,getElementById:()=>gLt,getElements:()=>fLt,getElementsByClassName:()=>pLt,getElementsByTagName:()=>Xp,getElementsByTagType:()=>ELt,getFeed:()=>Jj,getInnerHTML:()=>tLt,getName:()=>nLt,getOuterHTML:()=>i2e,getParent:()=>o2e,getSiblings:()=>qj,getText:()=>iv,hasAttrib:()=>sLt,hasChildren:()=>Cr,innerText:()=>TS,isCDATA:()=>pI,isComment:()=>Zp,isDocument:()=>Wa,isTag:()=>Se,isText:()=>so,nextElementSibling:()=>ov,prepend:()=>cLt,prependChild:()=>ALt,prevElementSibling:()=>av,removeElement:()=>Cd,removeSubsets:()=>mLt,replaceElement:()=>iLt,testElement:()=>hLt,textContent:()=>md,uniqueSort:()=>af});var Ja={};QA(Ja,{CDATA:()=>kj,Comment:()=>Dj,Directive:()=>Nj,Doctype:()=>Fj,ElementType:()=>Lt,Root:()=>wj,Script:()=>Rj,Style:()=>Tj,Tag:()=>xj,Text:()=>Sj,isTag:()=>bj});var Lt;(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"})(Lt||(Lt={}));function bj(t){return t.type===Lt.Tag||t.type===Lt.Script||t.type===Lt.Style}var wj=Lt.Root,Sj=Lt.Text,Nj=Lt.Directive,Dj=Lt.Comment,Rj=Lt.Script,Tj=Lt.Style,xj=Lt.Tag,kj=Lt.CDATA,Fj=Lt.Doctype;var XU=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 EI(this,e)}},SS=class extends XU{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Mu=class extends SS{constructor(){super(...arguments),this.type=Lt.Text}get nodeType(){return 3}},zp=class extends SS{constructor(){super(...arguments),this.type=Lt.Comment}get nodeType(){return 8}},jp=class extends SS{constructor(e,r){super(r),this.name=e,this.type=Lt.Directive}get nodeType(){return 1}},NS=class extends XU{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}},DS=class extends NS{constructor(){super(...arguments),this.type=Lt.CDATA}get nodeType(){return 4}},qo=class extends NS{constructor(){super(...arguments),this.type=Lt.Root}get nodeType(){return 9}},Kp=class extends NS{constructor(e,r,s=[],n=e==="script"?Lt.Script:e==="style"?Lt.Style:Lt.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 Se(t){return bj(t)}function pI(t){return t.type===Lt.CDATA}function so(t){return t.type=== Line truncated
`:iv(t.children):pI(t)?iv(t.children):so(t)?t.data:""}function md(t){return Array.isArray(t)?t.map(md).join(""):Cr(t)&&!Zp(t)?md(t.children):so(t)?t.data:""}function TS(t){return Array.isArray(t)?t.map(TS).join(""):Cr(t)&&(t.type===Lt.Tag||pI(t))?TS(t.children):so(t)?t.data:""}function CI(t){return Cr(t)?t.children:[]}function o2e(t){return t.parent||null}function qj(t){let e=o2e(t);if(e!=null)return CI(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 rLt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function sLt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function nLt(t){return t.name}function ov(t){let{next:e}=t;for(;e!==null&&!Se(e);)({next:e}=e);return e}function av(t){let{prev:e}=t;for(;e!==null&&!Se(e);)({prev:e}=e);return e}function Cd(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 iLt(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 oLt(t,e){if(Cd(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 aLt(t,e){Cd(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 ALt(t,e){if(Cd(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 cLt(t,e){Cd(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 II(t,e,r=!0,s=1/0){return Av(t,Array.isArray(e)?e:[e],r,s)}function Av(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&&Cr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function uLt(t,e){return e.find(t)}function cv(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Se(i)&&t(i))return i;if(r&&Cr(i)&&i.children.length>0){let o=cv(t,i.children,!0);if(o)return o}}return null}function a2e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Se(r)&&t(r)||Cr(r)&&a2e(t,r.children))}function lLt(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]++];Se(i)&&t(i)&&r.push(i),Cr(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var uv={tag_name(t){return typeof t=="function"?e=>Se(e)&&t(e.name):t==="*"?Se:e=>Se(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=>so(e)&&t(e.data):e=>so(e)&&e.data===t}};function Vj(t,e){return typeof e=="function"?r=>Se(r)&&e(r.attribs[t]):r=>Se(r)&&r.attribs[t]===e}function dLt(t,e){return r=>t(r)||e(r)}function A2e(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(uv,r)?uv[r](s):Vj(r,s)});return e.length===0?null:e.reduce(dLt)}function hLt(t,e){let r=A2e(t);return r?r(e):!0}function fLt(t,e,r,s=1/0){let n=A2e(t);return n?II(n,e,r,s):[]}function gLt(t,e,r=!0){return Array.isArray(e)||(e=[e]),cv(Vj("id",t),e,r)}function Xp(t,e,r=!0,s=1/0){return II(uv.tag_name(t),e,r,s)}function pLt(t,e,r=!0,s=1/0){return II(Vj("class",t),e,r,s)}function ELt(t,e,r=!0,s=1/0){return II(uv.tag_type(t),e,r,s)}function mLt(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 za;(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"})(za||(za={}));function c2e(t,e){let r=[],s=[];if(t===e)return 0;let n=Cr(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=Cr(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 za.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?za.FOLLOWING|za.CONTAINED_BY:za.FOLLOWING:a===t?za.PRECEDING|za.CONTAINS:za.PRECEDING}function af(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=c2e(e,r);return s&za.PRECEDING?-1:s&za.FOLLOWING?1:0}),t}function Jj(t){let e=lv(yLt,t);return e?e.name==="feed"?CLt(e):ILt(e):null}function CLt(t){var e;let r=t.children,s={type:"atom",items:Xp("entry",r).map(o=>{var a;let{children:A}=o,c={media:u2e(A)};no(c,"id","id",A),no(c,"title","title",A);let u=(a=lv("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=Af("summary",A)||Af("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 Za=le(uf(),1);var cK={};function uK(t,e){return t===Za.default.falseFunc?Za.default.falseFunc:r=>e.isTag(r)&&t(r)}function lK(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 AK(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 aK=(t,e,r,s,n)=>{let i=n(e,AK(r),s);return i===Za.default.trueFunc?t:i===Za.default.falseFunc?Za.default.falseFunc:o=>i(o)&&t(o)},bv={is:aK,matches:aK,where:aK,not(t,e,r,s,n){let i=n(e,AK(r),s);return i===Za.default.falseFunc?t:i===Za.default.trueFunc?Za.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=AK(r);o.relativeSelector=!0;let a=e.some(u=>u.some(LS))?[cK]:void 0,A=n(e,o,a);if(A===Za.default.falseFunc)return Za.default.falseFunc;let c=uK(A,i);if(a&&A!==Za.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,...lK(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function X2e(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in bv))throw new Error(`Unknown pseudo-class :${o}(${a})`);return bv[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:yv[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,Z2e.parse)(c);return bv.is(t,u,r,s,n)}if(typeof A=="function")return oK(A,o,a,1),u=>A(u,a)&&t(u);if(o in RI)return RI[o](t,a,r,s);if(o in PS){let u=PS[o];return oK(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Xa=le(NI(),1);function dK(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function $2e(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Xa.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Xa.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Xa.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()),W2e[e.action](t,e,r)}case Xa.SelectorType.Pseudo:return X2e(t,e,r,s,n);case Xa.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 Xa.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=dK(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=dK(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=dK(c,i));return!1};case Xa.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Xa.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Xa.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 Xa.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 Xa.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function eke(t,e,r){let s=wv(t,e,r);return uK(s,e.adapter)}function wv(t,e,r){let s=typeof t=="string"?(0,cc.parse)(t):t;return Sv(s,e,r)}function tke(t){return t.type===cc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(tke)))}var f_t={type:cc.SelectorType.Descendant},g_t={type:"_flexibleDescendant"},p_t={type:cc.SelectorType.Pseudo,name:"scope",data:null};function E_t(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===cK||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(Eke,`\r
`)}}).toArray()}var DK={};QA(DK,{extract:()=>kPt});function xPt(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 kPt(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=xPt(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 hf=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}}};hf.prototype.cheerio="[cheerio object]";hf.prototype.splice=Array.prototype.splice;hf.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(hf.prototype,tK,bK,wK,SK,NK,DK);function mke(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=gI(n),a=t(s,o,i,null);class A extends hf{_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&&ja(u))return u;let f=gI(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],C=ja(p)?p:new A(p,null,f);if(C._root=C,!u)return new A(void 0,C,f);let m=typeof u=="string"&&xS(u)?t(u,f,!1,null).children:FPt(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,C,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let Q=u,b=l?typeof l=="string"?xS(l)?new A([t(l,f,!1,null)],C,f):(Q=`${l} ${Q}`,C):ja(l)?l:new A(Array.isArray(l)?l:[l],C,f):C;return b?b.find(Q):I}return Object.assign(c,Wj,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function FPt(t){return!!t.name||t.type===Ja.Root||t.type===Ja.Text||t.type===Ja.Comment}var MPt=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]),Rr="\uFFFD",N;(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"})(N||(N={}));var wi={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function kv(t){return t>=55296&&t<=57343}function Cke(t){return t>=56320&&t<=57343}function Ike(t,e){return(t-55296)*1024+9216+e}function Fv(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Mv(t){return t>=64976&&t<=65007||MPt.has(t)}var J;(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(`
`)}`}},uP=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var FE=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function T4e(t){if(t instanceof AggregateError){Ch("Multiple errors returned");for(let e of t.errors)Gc(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&te(e.stack)}else t instanceof FE?(Ch(String(t)),t.stack&&te(t.stack)):(Ch(String(t)),t instanceof Error&&t.stack&&te(t.stack))}async function x4e(t,e,r){if(!t.doValidateWrappers())return;let s=new jU(r),n=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=s.load(),o=await R4e(e,t.allowSnapshotWrappers(),n,i);if(o.isValid())await ax("All Gradle Wrapper jars are valid",async()=>{Y(`Loaded previously validated checksums from cache: ${i.join(", ")}`),te(o.toDisplayString())});else throw te(o.toDisplayString()),new FE(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);s.save(o.valid.map(a=>a.checksum))}import na from"fs";import ME from"path";function k4e(t,e,r){let s=ME.resolve(e,VU);na.mkdirSync(s,{recursive:!0}),vZt(e),LZt(t),vA()&&_Zt(e),r&&qs("GRADLE_ENCRYPTION_KEY",r)}function vZt(t){let e=ME.resolve(t,"init.d");na.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 s of r){let n=PZt("init-scripts",s),i=ME.resolve(e,s);na.writeFileSync(i,n)}}function LZt(t){let e=OZt();if(e==null)return;let r=ME.resolve(t,".m2"),s=ME.resolve(r,"toolchains.xml");if(!na.existsSync(s))na.mkdirSync(r,{recursive:!0}),na.writeFileSync(s,e),te(`Wrote default JDK locations to ${s}`);else{let n=na.readFileSync(s,"utf8"),i=HZt(n,e);na.writeFileSync(s,i),te(`Merged default JDK locations into ${s}`)}}function _Zt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=ME.resolve(t,"gradle.properties");if(na.existsSync(r)){te(`Merged --info and --stacktrace into existing ${r} file`);let s=na.readFileSync(r,"utf-8");na.writeFileSync(r,`${e}
${s}`)}else te(`Created a new ${r} with --info and --stacktrace`),na.writeFileSync(r,e)}function PZt(...t){let e=import.meta.dirname,r=ME.resolve(e,"..","..","..","sources","src","resources",...t);return na.readFileSync(r,"utf8")}function OZt(){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>
@@ -384,128 +327,63 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Rat(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Dat="restored-cache-key",g9=class{constructor(e,r,n){this.cacheName="home";this.cacheDescription="Gradle User Home";this.userHome=e,this.gradleUserHome=r,this.cacheConfig=n}init(){this.initializeGradleUserHome();let e=this.cacheConfig.getCacheEncryptionKey();e&&mi("GRADLE_ENCRYPTION_KEY",e)}cacheOutputExists(){let e=Vp.resolve(this.gradleUserHome,"caches");return ic.existsSync(e)?(zo(`Cache output exists at ${e}`),!0):!1}async restore(e){let r=e.entry(this.cacheDescription),n=qge(this.cacheName,this.cacheConfig);zo(`Requesting ${this.cacheDescription} with
key:${n.key}
restoreKeys:[${n.restoreKeys}]`);let s=this.getCachePath(),i=await _6(s,n.key,n.restoreKeys,r);if(!i){fe(`${this.cacheDescription} cache not found. Will initialize empty.`);return}DA(Dat,i.key);try{await this.afterRestore(e)}catch(o){tr(`Restore ${this.cacheDescription} failed in 'afterRestore': ${o}`)}}async afterRestore(e){await this.debugReportGradleUserHomeSize("as restored from cache"),await new QM(this.gradleUserHome,this.cacheConfig).restore(e),await new yM(this.gradleUserHome,this.cacheConfig).restore(e),await this.deleteExcludedPaths(),await this.debugReportGradleUserHomeSize("after restoring common artifacts")}async save(e){let r=qge(this.cacheName,this.cacheConfig).key,n=xB(Dat),s=e.entry(this.cacheDescription);if(n&&r===n){fe(`Cache hit occurred on the cache key ${r}, not saving cache.`);for(let o of e.cacheEntries)o===s?o.markNotSaved("cache key not changed"):o.markNotSaved(`referencing '${this.cacheDescription}' cache entry not saved`);return}try{await this.beforeSave(e)}catch(o){tr(`Save ${this.cacheDescription} failed in 'beforeSave': ${o}`);return}let i=this.getCachePath();await O6(i,r,s)}async beforeSave(e){await this.debugReportGradleUserHomeSize("before saving common artifacts"),await this.deleteExcludedPaths(),await Promise.all([new QM(this.gradleUserHome,this.cacheConfig).extract(e),new yM(this.gradleUserHome,this.cacheConfig).extract(e)]),await this.debugReportGradleUserHomeSize("after extracting common artifacts (only 'caches' and 'notifications' will be stored)")}async deleteExcludedPaths(){let e=this.cacheConfig.getCacheExcludes();e.push("caches/*/cc-keystore");let r=e.map(n=>Vp.resolve(this.gradleUserHome,n));for(let n of r){zo(`Removing excluded path: ${n}`);let s=await aC(n,{implicitDescendants:!1});for(let i of await s.glob())zo(`Removing excluded file: ${i}`),await cM(i)}}getCachePath(){let e=this.cacheConfig.getCacheIncludes();e.push(oQ);let r=e.map(n=>this.resolveCachePath(n));return zo(`Using cache paths: ${r}`),r}resolveCachePath(e){return e.startsWith("!")?`!${this.resolveCachePath(e.substring(1))}`:Vp.resolve(this.gradleUserHome,e)}initializeGradleUserHome(){let e=Vp.resolve(this.gradleUserHome,oQ);ic.mkdirSync(e,{recursive:!0}),this.copyInitScripts(),this.registerToolchains(),DB()&&this.configureInfoLogLevel()}copyInitScripts(){let e=Vp.resolve(this.gradleUserHome,"init.d");ic.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=Nat("init-scripts",n),i=Vp.resolve(e,n);ic.writeFileSync(i,s)}}registerToolchains(){let e=Sat();if(e==null)return;let r=Vp.resolve(this.userHome,".m2"),n=Vp.resolve(r,"toolchains.xml");if(!ic.existsSync(n))ic.mkdirSync(r,{recursive:!0}),ic.writeFileSync(n,e),fe(`Wrote default JDK locations to ${n}`);else{let s=ic.readFileSync(n,"utf8"),i=Rat(s,e);ic.writeFileSync(n,i),fe(`Merged default JDK locations into ${n}`)}}configureInfoLogLevel(){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Vp.resolve(this.gradleUserHome,"gradle.properties");if(ic.existsSync(r)){fe(`Merged --info and --stacktrace into existing ${r} file`);let n=ic.readFileSync(r,"utf-8");ic.writeFileSync(r,`${e}
${n}`)}else fe(`Created a new ${r} with --info and --stacktrace`),ic.writeFileSync(r,e)}async debugReportGradleUserHomeSize(e){if(!aM()&&!DB()||!ic.existsSync(this.gradleUserHome))return;let r=await ep("du",["-h","-c","-t","5M"],{cwd:this.gradleUserHome,silent:!0,ignoreReturnCode:!0});fe(`Gradle User Home (directories >5M): ${e}`),fe(r.stdout.trimEnd().replace(/\t/g," ").split(`
`).map(n=>` ${n}`).join(`
`)),fe("-----------------------")}};import f9 from"fs";import bM from"path";var p9=class{constructor(e,r){this.gradleUserHome=e,this.tmpDir=r}async prepare(){let e=Date.now().toString();return DA("clean-timestamp",e),e}async forceCleanup(e){let r=await this.gradleExecutableForCleanup(e),n=xB("clean-timestamp");await this.forceCleanupFilesOlderThan(n,r)}async gradleExecutableForCleanup(e){let r=e.highestGradleVersion();if(r&&xC(r,"8.11"))try{let n=e.results.map(s=>this.findGradleWrapperScript(s)).filter(Boolean);return await ffe(r,n)}catch{fe(`Failed to provision Gradle ${r} for cache cleanup. Falling back to default version.`)}return await ffe("8.11")}findGradleWrapperScript(e){try{let r=A9(e.rootProjectDir);return bM.resolve(e.rootProjectDir,r)}catch(r){return Te(`No Gradle Wrapper found for ${e.rootProjectName}: ${r}`),null}}async forceCleanupFilesOlderThan(e,r){let n=bM.resolve(this.tmpDir,"dummy-cleanup-project");f9.mkdirSync(n,{recursive:!0}),f9.writeFileSync(bM.resolve(n,"settings.gradle"),'rootProject.name = "dummy-cleanup-project"'),f9.writeFileSync(bM.resolve(n,"init.gradle"),`
beforeSettings { settings ->
def cleanupTime = ${e}
settings.caches {
cleanup = Cleanup.ALWAYS
releasedWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
snapshotWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
downloadedResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
createdResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
buildCache.setRemoveUnusedEntriesOlderThan(cleanupTime)
}
}
`),f9.writeFileSync(bM.resolve(n,"build.gradle"),'task("noop") {}'),await tp("Executing Gradle to clean up caches",async()=>{fe(`Cleaning up caches last used before ${e}`),await this.executeCleanupBuild(r,n)})}async executeCleanupBuild(e,r){let n=["-g",this.gradleUserHome,"-I","init.gradle","--info","--no-daemon","--no-scan","--build-cache","-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false","-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true","noop"];await Th(e,n,{cwd:r})}};var Bfe="GRADLE_BUILD_ACTION_CACHE_RESTORED";async function xat(t,e,r,n){if(process.env[Bfe]){fe("Cache only restored on first action step.");return}mi(Bfe,!0);let s=new g9(t,e,n);if(n.isCacheDisabled()){fe("Cache is disabled: will not restore state from previous builds."),s.init(),r.setDisabled();return}if(s.cacheOutputExists()){if(!n.isCacheOverwriteExisting()){fe("Gradle User Home already exists: will not restore from cache."),s.init(),r.setDisabled(jje);return}fe("Gradle User Home already exists: will overwrite with cached contents.")}if(s.init(),DA(Bfe,!0),n.isCacheCleanupEnabled()&&(fe("Preparing cache for cleanup."),await new p9(e,process.env.RUNNER_TEMP).prepare()),n.isCacheWriteOnly()){fe("Cache is write-only: will not restore from cache."),r.setWriteOnly();return}await tp("Restore Gradle state from cache",async()=>{await s.restore(r)})}async function kat(t,e,r){if(t)try{Te("Fetching short-lived token...");let n=await ZUr(t,e,r);if(n!=null&&!n.isEmpty()){Te("Got token(s), setting the access key env vars");let s=n.raw();Kb(s),XUr(s)}else Tat()}catch(n){Tat(),tr(`Failed to fetch short-lived token, reason: ${n}`)}}function XUr(t){[qd.DevelocityAccessKeyEnvVar,qd.GradleEnterpriseAccessKeyEnvVar].forEach(e=>mi(e,t))}function Tat(){tr("Failed to fetch short-lived token for Develocity"),process.env[qd.GradleEnterpriseAccessKeyEnvVar]&&k6(`The ${qd.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`),process.env[qd.DevelocityAccessKeyEnvVar]&&tr(`The ${qd.DevelocityAccessKeyEnvVar} env var should be mapped to a short-lived token`)}async function ZUr(t,e,r){let n=new Promise(a=>a(null)),s=m9.parse(t),i=new Qfe(e);if(s==null)return n;let o=new Array;for(let a of s.keys)try{fe(`Requesting short-lived Develocity access token for ${a.hostname}`);let A=await i.fetchToken(`https://${a.hostname}`,a,r);o.push(A)}catch(A){fe(`Failed to obtain short-lived Develocity access token for ${a.hostname}: ${A}`)}return o.length>0?m9.of(o):n}var Qfe=class{constructor(e){this.maxRetries=3;this.retryInterval=1e3;this.httpc=new Ga("gradle/actions/setup-gradle",void 0,{ignoreSslError:e})}async fetchToken(e,r,n){let s=n?`?expiresInHours=${n}`:"",i=e.endsWith("/")?e:`${e}/`,o={"Content-Type":"application/json",Authorization:`Bearer ${r.key}`},a=0;for(;a<this.maxRetries;){try{let A=`${i}api/auth/token${s}`;Te(`Attempt ${a} to fetch short lived token at ${A}`);let c=await this.httpc.post(A,"",o);if(c.message.statusCode===200){let u=await c.readBody();return new Promise(l=>l({hostname:r.hostname,key:u}))}if(a++,a===this.maxRetries)return new Promise((u,l)=>l(new Error(`Develocity short lived token request failed ${e} with status code ${c.message.statusCode}`)))}catch(A){if(a++,a===this.maxRetries)return new Promise((c,u)=>u(A))}await new Promise(A=>setTimeout(A,this.retryInterval))}return new Promise((A,c)=>c(new Error("Illegal state")))}},m9=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 n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[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)}};async function Fat(t){return TC("DEVELOCITY_INJECTION_INIT_SCRIPT_NAME","gradle-actions.inject-develocity.init.gradle"),TC("DEVELOCITY_INJECTION_CUSTOM_VALUE","gradle-actions"),Ng("DEVELOCITY_INJECTION_ENABLED",t.getDevelocityInjectionEnabled()),Ng("DEVELOCITY_INJECTION_URL",t.getDevelocityUrl()),Ng("DEVELOCITY_INJECTION_ALLOW_UNTRUSTED_SERVER",t.getDevelocityAllowUntrustedServer()),Ng("DEVELOCITY_INJECTION_CAPTURE_FILE_FINGERPRINTS",t.getDevelocityCaptureFileFingerprints()),Ng("DEVELOCITY_INJECTION_ENFORCE_URL",t.getDevelocityEnforceUrl()),Ng("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION",t.getDevelocityPluginVersion()),Ng("DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION",t.getDevelocityCcudPluginVersion()),Ng("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ng("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ng("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword()),t.getBuildScanPublishEnabled()&&(TC("DEVELOCITY_INJECTION_ENABLED","true"),TC("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION","4.3.2"),TC("DEV Line truncated
`:D9(t.children):jR(t)?D9(t.children):oc(t)?t.data:""}function zp(t){return Array.isArray(t)?t.map(zp).join(""):kn(t)&&!gQ(t)?zp(t.children):oc(t)?t.data:""}function DM(t){return Array.isArray(t)?t.map(DM).join(""):kn(t)&&(t.type===Lr.Tag||jR(t))?DM(t.children):oc(t)?t.data:""}function ZR(t){return kn(t)?t.children:[]}function sAt(t){return t.parent||null}function Gfe(t){let e=sAt(t);if(e!=null)return ZR(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 RPr(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function DPr(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function xPr(t){return t.name}function x9(t){let{next:e}=t;for(;e!==null&&!rt(e);)({next:e}=e);return e}function T9(t){let{prev:e}=t;for(;e!==null&&!rt(e);)({prev:e}=e);return e}function jp(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 TPr(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 kPr(t,e){if(jp(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 FPr(t,e){jp(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 MPr(t,e){if(jp(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 vPr(t,e){jp(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 $R(t,e,r=!0,n=1/0){return k9(t,Array.isArray(e)?e:[e],r,n)}function k9(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&&kn(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function LPr(t,e){return e.find(t)}function F9(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(rt(i)&&t(i))return i;if(r&&kn(i)&&i.children.length>0){let o=F9(t,i.children,!0);if(o)return o}}return null}function iAt(t,e){return(Array.isArray(e)?e:[e]).some(r=>rt(r)&&t(r)||kn(r)&&iAt(t,r.children))}function UPr(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]++];rt(i)&&t(i)&&r.push(i),kn(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var M9={tag_name(t){return typeof t=="function"?e=>rt(e)&&t(e.name):t==="*"?rt:e=>rt(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=>oc(e)&&t(e.data):e=>oc(e)&&e.data===t}};function Yfe(t,e){return typeof e=="function"?r=>rt(r)&&e(r.attribs[t]):r=>rt(r)&&r.attribs[t]===e}function PPr(t,e){return r=>t(r)||e(r)}function oAt(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(M9,r)?M9[r](n):Yfe(r,n)});return e.length===0?null:e.reduce(PPr)}function _Pr(t,e){let r=oAt(t);return r?r(e):!0}function OPr(t,e,r,n=1/0){let s=oAt(t);return s?$R(s,e,r,n):[]}function HPr(t,e,r=!0){return Array.isArray(e)||(e=[e]),F9(Yfe("id",t),e,r)}function fQ(t,e,r=!0,n=1/0){return $R(M9.tag_name(t),e,r,n)}function qPr(t,e,r=!0,n=1/0){return $R(Yfe("class",t),e,r,n)}function GPr(t,e,r=!0,n=1/0){return $R(M9.tag_type(t),e,r,n)}function YPr(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 Nl;(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"})(Nl||(Nl={}));function aAt(t,e){let r=[],n=[];if(t===e)return 0;let s=kn(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=kn(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 Nl.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Nl.FOLLOWING|Nl.CONTAINED_BY:Nl.FOLLOWING:a===t?Nl.PRECEDING|Nl.CONTAINS:Nl.PRECEDING}function FC(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=aAt(e,r);return n&Nl.PRECEDING?-1:n&Nl.FOLLOWING?1:0}),t}function Jfe(t){let e=v9(jPr,t);return e?e.name==="feed"?JPr(e):VPr(e):null}function JPr(t){var e;let r=t.children,n={type:"atom",items:fQ("entry",r).map(o=>{var a;let{children:A}=o,c={media:AAt(A)};ac(c,"id","id",A),ac(c,"title","title",A);let u=(a=v9("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=MC("summary",A)||MC(" 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 Dl=Xe(LC(),1);var Ape={};function cpe(t,e){return t===Dl.default.falseFunc?Dl.default.falseFunc:r=>e.isTag(r)&&t(r)}function upe(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 ape(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 ope=(t,e,r,n,s)=>{let i=s(e,ape(r),n);return i===Dl.default.trueFunc?t:i===Dl.default.falseFunc?Dl.default.falseFunc:o=>i(o)&&t(o)},z9={is:ope,matches:ope,where:ope,not(t,e,r,n,s){let i=s(e,ape(r),n);return i===Dl.default.falseFunc?t:i===Dl.default.trueFunc?Dl.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=ape(r);o.relativeSelector=!0;let a=e.some(u=>u.some(LM))?[Ape]:void 0,A=s(e,o,a);if(A===Dl.default.falseFunc)return Dl.default.falseFunc;let c=cpe(A,i);if(a&&A!==Dl.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,...upe(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function KAt(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in z9))throw new Error(`Unknown pseudo-class :${o}(${a})`);return z9[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:W9[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,jAt.parse)(c);return z9.is(t,u,r,n,s)}if(typeof A=="function")return ipe(A,o,a,1),u=>A(u,a)&&t(u);if(o in AD)return AD[o](t,a,r,n);if(o in PM){let u=PM[o];return ipe(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var xl=Xe(oD(),1);function lpe(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function XAt(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case xl.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case xl.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case xl.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()),JAt[e.action](t,e,r)}case xl.SelectorType.Pseudo:return KAt(t,e,r,n,s);case xl.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 xl.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=lpe(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=lpe(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=lpe(c,i));return!1};case xl.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case xl.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case xl.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 xl.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 xl.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function ZAt(t,e,r){let n=j9(t,e,r);return cpe(n,e.adapter)}function j9(t,e,r){let n=typeof t=="string"?(0,Jd.parse)(t):t;return K9(n,e,r)}function $At(t){return t.type===Jd.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some($At)))}var O_r={type:Jd.SelectorType.Descendant},H_r={type:"_flexibleDescendant"},q_r={type:Jd.SelectorType.Pseudo,name:"scope",data:null};function G_r(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===A Line truncated
`)})):{name:s,value:i.replace(fct,`\r
`)}}).toArray()}var Spe={};xu(Spe,{extract:()=>sHr});function nHr(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 sHr(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=nHr(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 _C=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}}};_C.prototype.cheerio="[cheerio object]";_C.prototype.splice=Array.prototype.splice;_C.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(_C.prototype,epe,ype,bpe,wpe,Npe,Spe);function pct(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=zR(s),a=t(n,o,i,null);class A extends _C{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,g){return t(l,d,h,g)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Sl(u))return u;let g=zR(h,o),p=typeof d=="string"?[t(d,g,!1,null)]:"length"in d?d:[d],C=Sl(p)?p:new A(p,null,g);if(C._root=C,!u)return new A(void 0,C,g);let m=typeof u=="string"&&xM(u)?t(u,g,!1,null).children:iHr(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,C,g);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,w=l?typeof l=="string"?xM(l)?new A([t(l,g,!1,null)],C,g):(y=`${l} ${y}`,C):Sl(l)?l:new A(Array.isArray(l)?l:[l],C,g):C;return w?w.find(y):I}return Object.assign(c,Vfe,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function iHr(t){return!!t.name||t.type===bl.Root||t.type===bl.Text||t.type===bl.Comment}var oHr=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]),Zn="\uFFFD",k;(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"})(k||(k={}));var aA={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function rJ(t){return t>=55296&&t<=57343}function mct(t){return t>=56320&&t<=57343}function Ect(t,e){return(t-55296)*1024+9216+e}function nJ(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function sJ(t){return t>=64976&&t<=65007||oHr.has(t)}var Ae;(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-pu 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(`
`)}`}},MW=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var KQ=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function RIt(t){if(t instanceof AggregateError){lE("Multiple errors returned");for(let e of t.errors)F1(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&fe(e.stack)}else t instanceof KQ?(lE(String(t)),t.stack&&fe(t.stack)):(lE(String(t)),t instanceof Error&&t.stack&&fe(t.stack))}async function DIt(t,e,r){if(!t.doValidateWrappers())return;let n=new C9(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await SIt(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await tp("All Gradle Wrapper jars are valid",async()=>{Te(`Loaded previously validated checksums from cache: ${i.join(", ")}`),fe(o.toDisplayString())});else throw fe(o.toDisplayString()),new KQ(`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))}var VBe="GRADLE_BUILD_ACTION_SETUP_COMPLETED",A$r="USER_HOME",c$r="GRADLE_USER_HOME",u$r="CACHE_LISTENER";async function xIt(t,e,r){let n=await TIt(),s=await l$r();if(process.env[VBe])return fe("Gradle setup only performed on first gradle/actions step in workflow."),!1;mi(VBe,!0),DA(VBe,!0),DA(A$r,n),DA(c$r,s);let i=new CY;return await xat(n,s,i,t),DA(u$r,i.stringify()),await DIt(r,Gp(),s),await Fat(e),!0}async function l$r(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Gp();return zBe.resolve(r,t)}let e=zBe.resolve(await TIt(),".gradle");if(WBe.existsSync(e))return fe(`Gradle User Home already exists at ${e}`),mi("GRADLE_USER_HOME",e),e;if(vW.platform()==="win32"&&e.startsWith("C:\\")&&WBe.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return fe(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),mi("GRADLE_USER_HOME",r),r}return mi("GRADLE_USER_HOME",e),e}async function TIt(){let t=await ep("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return fe("Could not determine user.home from java -version output. Using os.homedir()."),vW.homedir();let n=r[1];return Te(`Determined user.home from java -version output: '${n}'`),n}import h$r from"os";function oL(){return 8*1024*1024}function LW(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}function kIt(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}function ox(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}function FIt(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}function MIt(){let t=h$r.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return n<e?(fe("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),n):(fe(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}function vIt(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}function LIt(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}var jBe=Xe(lr(),1),KBe=Xe(lr(),1),UIt=Xe(lr(),1),PIt=Xe(lr(),1),_It=Xe(lr(),1),ax=Xe(lr(),1),OIt=Xe(lr(),1),XBe=class extends OIt.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=ax.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(ax.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),n=e.getTime();return r.seconds=ax.PbLong.from(Math.floor(n/1e3)).toString(),r.nanos=n%1e3*1e6,r}internalJsonWrite(e,r){let n=ax.PbLong.from(e.seconds).toNumber()*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let s="Z";if(e.nanos>0){let i=(e.nanos+1e9).toString().substring(1);i.substring(3)==="000000"?s="."+i.substring(0,3)+"Z":i.substring(6)==="000"?s="."+i.substring(0,6)+"Z":s="."+i+"Z"}return new Date(n).toISOString().replace(".000Z",s)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,_It.typeofJsonValue)(e)+".");let s=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!s)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let i=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[8]:"Z"));if(Number.isNaN(i))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(i<Date.parse("0001-01-01T00:00:00Z")||i>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return n||(n=this.create()),n.seconds=ax.PbLong.from(i/1e3).toString(),n.nanos=0,s[7]&&(n.nanos=parseInt("1"+s[7]+"0".repeat Line truncated
`," Line feed \\n"]]),GIt=new Map([...M0e,["\\"," Backslash \\"],["/"," Forward slash /"]]);function YIt(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of GIt)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function HZt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Wte="GRADLE_BUILD_ACTION_SETUP_COMPLETED",GZt="GRADLE_USER_HOME";async function F4e(t,e,r){let s=await M4e(),n=await qZt();return process.env[Wte]?(te("Gradle setup only performed on first gradle/actions step in workflow."),!1):(qs(Wte,!0),m0(Wte,!0),m0(GZt,n),k4e(s,n,t.getCacheEncryptionKey()),await(await Uxe(t)).restore(n,YZt(t)),await x4e(r,pd(),n),await kxe(e),!0)}function YZt(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 qZt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=pd();return jte.resolve(r,t)}let e=jte.resolve(await M4e(),".gradle");if(zte.existsSync(e))return te(`Gradle User Home already exists at ${e}`),qs("GRADLE_USER_HOME",e),e;if(lP.platform()==="win32"&&e.startsWith("C:\\")&&zte.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return te(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),qs("GRADLE_USER_HOME",r),r}return qs("GRADLE_USER_HOME",e),e}async function M4e(){let t=await Jy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return te("Could not determine user.home from java -version output. Using os.homedir()."),lP.homedir();let s=r[1];return Y(`Determined user.home from java -version output: '${s}'`),s}var BHe=le(K4e(),1),ere=le(aw(),1);import*as NB from"fs";import*as hHe from"os";import*as Of from"path";import*as Xte from"crypto";import*as vE from"fs";var nXt=le(aw(),1);import*as a1 from"path";var fP=le(aw(),1);import*as X4e from"stream";import*as $4e from"util";import{ok as oXt}from"assert";var Z4e=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())})},dP=class{constructor(e,r,s){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(s),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return Z4e(this,void 0,void 0,function*(){let s=1;for(;s<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;te(i.message)}let n=this.getSleepAmount();te(`Waiting ${n} seconds before trying again`),yield this.sleep(n),s++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Z4e(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var UE=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())})},hP=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},aXt=process.platform==="win32",tYr=process.platform==="darwin",AXt="actions/tool-cache";function eHe(t,e,r,s){return UE(this,void 0,void 0,function*(){e=e||a1.join(rHe(),Xte.randomUUID()),yield _g(a1.dirname(e)),Y(`Downloading ${t}`),Y(`Destination ${e}`);let n=3,i=Zte("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Zte("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new dP(n,i,o).execute(()=>UE(this,void 0,void 0,function*(){return yield cXt(t,e||"",r,s)}),A=>!(A instanceof hP&&A.httpStatusCode&&A.httpStatusCode<500&&A.httpStatusCode!==408&&A.httpStatusCode!==429))})}function cXt(t,e,r,s){return UE(this,void 0,void 0,function*(){if(vE.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let n=new cs(AXt,[],{allowRetries:!1});r&&(Y("set auth"),s===void 0&&(s={}),s.authorization=r);let i=yield n.get(t,s);if(i.message.statusCode!==200){let u=new hP(i.message.statusCode);throw Y(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=$4e.promisify(X4e.pipeline),A=Zte("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),c=!1;try{return yield o(A,vE.createWriteStream(e)),Y("download complete"),c=!0,e}finally{if(!c){Y("download failed");try{yield cpe(e)}catch(u){Y(`Failed to delete '${e}'. ${u.message}`)}}}})}function tHe(t,e){return UE(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield dXt(e),aXt?yield uXt(t,e):yield lXt(t,e),e})}function uXt(t,e){return UE(this,void 0,void Line truncated
`," Line feed \\n"]]),MHe=new Map([...Ore,["\\"," Backslash \\"],["/"," Forward slash /"]]);function UHe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of MHe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(GIt.values()).toString()}
Invalid characters include: ${Array.from(MHe.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.`);fe("Artifact name is valid!")}function v0e(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of M0e)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.`);te("Artifact name is valid!")}function Hre(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Ore)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(M0e.values()).toString()}
Invalid characters include: ${Array.from(Ore.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 zIt=Xe(WIt(),1);function Xg(){return`@actions/artifact-${zIt.version}`}var PW=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"}},hm=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},gm=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},dI=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"}},fm=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"}};fm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var XQ=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"}};XQ.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ZQ=class extends Error{};ZQ.prototype.name="InvalidTokenError";function B$r(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 Q$r(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 B$r(e)}catch{return atob(e)}}function jIt(t,e){if(typeof t!="string")throw new ZQ("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 ZQ(`Invalid token specified: missing part #${r+1}`);let s;try{s=Q$r(n)}catch(i){throw new ZQ(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ZQ(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var _W=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Zg(){let t=LW(),e=jIt(t);if(!e.scp)throw _W;let r=e.scp.split(" ");if(r.length===0)throw _W;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw _W;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return Te(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),Te(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw _W}function KIt(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Kb(r),Kb(encodeURIComponent(r)))}catch(e){Te(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function XIt(t){if(typeof t!="object"||t===null){Te("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&KIt(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&KIt(t.signed_url)}var OW=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())})},L0e=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=LW();this.baseUrl=kIt(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Ga(e,[new T1(i)])}request(e,r,n,s){return OW(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Te(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>OW(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 OW(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(),Te(`[Response] - ${a.message.statusCode}`),Te(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(XIt(c),Te(`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(XQ.isUsageErrorMessage(c.msg))throw new XQ;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&Te(`Raw Body: ${s}`),a instanceof XQ)throw a;if(fm.isNetworkErrorCode(a?.code))throw new fm(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);fe(`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?[ao.BadGateway,ao.GatewayTimeout,ao.InternalServerError,ao.ServiceUnavailable,ao.TooManyRequests].includes(e):!1}sleep(e){return OW(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 $g(t){let e=new L0e(Xg(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new UW(e)}import*as cx from"fs";import{normalize as ZIt,resolve as $It}from"path";function eBt(t){if(!cx.existsSync Line truncated
${v$r.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function JW(t){return t instanceof dA?!0:ey(t)&&t.name==="RestError"}function mc(t,e){return Buffer.from(t,e)}import V0e from"node:http";import W0e from"node:https";import gBt from"node:zlib";import{Transform as L$r}from"node:stream";var Vl=AL("ts-http-runtime");var U$r={};function cL(t){return t&&typeof t.pipe=="function"}function fBt(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 pBt(t){return t&&typeof t.byteLength=="number"}var VW=class extends L$r{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}},z0e=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ef("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 rh;Vl.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=H$r(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new VW(g);p.on("error",C=>{Vl.error("Error in upload progress",C)}),cL(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=P$r(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?_$r(c,u):c;let h=e.onDownloadProgress;if(h){let g=new VW(h);g.on("error",p=>{Vl.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await O$r(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();cL(a)&&(c=fBt(a));let u=Promise.resolve();cL(A)&&(u=fBt(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Vl.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?V0e.request(a,A):W0e.request(a,A);u.once("error",l=>{c(new dA(l.message,{code:l.code??dA.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ef("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&cL(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):pBt(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Vl.error("Unrecognized body type",n),c(new dA("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V0e.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V0e.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return W0e.globalAgent;let s=e.tlsSettings??U$r,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Vl.info("No cached TLS Agent exist, creating a new Agent"),i=new W0e.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function P$r(t){let e=mu();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 _$r(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=gBt.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=gBt.createInflate();return t.pipe(n),n}return t}function O$r(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 dA(`Error reading response as text: ${s.message}`,{code:dA.PARSE_ERROR}))})})}function H$r(t){return t?Buffer.isBuffer(t)?t.length:cL(t)?null:pBt(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function mBt(){return new z0e}function WW(){return mBt()}var j0e="logPolicy";function zW(t={}){let e=t.logger??Vl.info,r=new rh({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:j0e,async sendRequest Line truncated
`;return e}function len(t){return t instanceof Uint8Array?t.byteLength:az(t)?t.size===-1?void 0:t.size:void 0}function den(t){let e=0;for(let r of t){let n=len(r);if(n===void 0)return;e+=n}return e}async function hen(t,e,r){let n=[mc(`--${r}`,"utf-8"),...e.flatMap(i=>[mc(`\r
`,"utf-8"),mc(uen(i.headers),"utf-8"),mc(`\r
`,"utf-8"),i.body,mc(`\r
--${r}`,"utf-8")]),mc(`--\r
\r
`,"utf-8")],s=den(n);s&&t.headers.set("Content-Length",s),t.body=await OBt(n)}var lL="multipartPolicy",gen=70,fen=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function pen(t){if(t.length>gen)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!fen.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Az(){return{name:lL,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?pen(r):r=cen(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await hen(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function cz(){return YW()}import{EOL as Een}from"node:os";import Cen from"node:util";import*as HBt from"node:process";function qBt(t,...e){HBt.stderr.write(`${Cen.format(t,...e)}${Een}`)}var GBt=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,YBt,aQe=[],AQe=[],uz=[];GBt&&cQe(GBt);var JBt=Object.assign(t=>VBt(t),{enable:cQe,enabled:uQe,disable:Ien,log:qBt});function cQe(t){YBt=t,aQe=[],AQe=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?AQe.push(new RegExp(`^${n.substr(1)}$`)):aQe.push(new RegExp(`^${n}$`));for(let n of uz)n.enabled=uQe(n.namespace)}function uQe(t){if(t.endsWith("*"))return!0;for(let e of AQe)if(e.test(t))return!1;for(let e of aQe)if(e.test(t))return!0;return!1}function Ien(){let t=YBt||"";return cQe(""),t}function VBt(t){let e=Object.assign(r,{enabled:uQe(t),destroy:Ben,log:JBt.log,namespace:t,extend:Qen});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return uz.push(e),e}function Ben(){let t=uz.indexOf(this);return t>=0?(uz.splice(t,1),!0):!1}function Qen(t){let e=VBt(`${this.namespace}:${t}`);return e.log=this.log,e}var dx=JBt;var zBt=new Set,lz=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,lQe,dQe=dx("azure");dQe.log=(...t)=>{dx.log(...t)};var hQe=["verbose","info","warning","error"];lz&&(XBt(lz)?yen(lz):console.error(`AZURE_LOG_LEVEL set to unknown log level '${lz}'; logging is not enabled. Acceptable values: ${hQe.join(", ")}.`));function yen(t){if(t&&!XBt(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${hQe.join(",")}`);lQe=t;let e=[];for(let r of zBt)KBt(r)&&e.push(r.namespace);dx.enable(e.join(","))}var WBt={verbose:400,info:300,warning:200,error:100};function Wl(t){let e=dQe.extend(t);return jBt(dQe,e),{error:dz(e,"error"),warning:dz(e,"warning"),info:dz(e,"info"),verbose:dz(e,"verbose")}}function jBt(t,e){e.log=(...r)=>{t.log(...r)}}function dz(t,e){let r=Object.assign(t.extend(e),{level:e});if(jBt(t,r),KBt(r)){let n=dx.disable();dx.enable(n+","+r.namespace)}return zBt.add(r),r}function KBt(t){return!!(lQe&&WBt[t.level]<=WBt[lQe])}function XBt(t){return hQe.includes(t)}var tf=Wl("core-rest-pipeline");function gQe(t={}){return zW({logger:tf.info,...t})}var fQe=jW;function pQe(t={}){return KW(t)}import mQe from"node:os";import EQe from"node:process";function ZBt(){return"User-Agent"}async function $Bt(t){if(EQe&&EQe.versions){let e=`${mQe.type()} ${mQe.release()}; ${mQe.arch()}`,r=EQe.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 hz="1.22.2";function xen(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function e0t(){return ZBt()}async function gz(t){let e=new Map;e.set("core-rest-pipeline",hz),await $Bt(e);let r=xen(e);return t?`${t} ${r}`:r}var t0t=e0t(),r0t="userAgentPolicy";function CQe(t={}){let e=gz(t.userAgentPrefix);return{name:r0t,async sendRequest(r,n){return r.headers.has(t0t)||r.headers.set(t0t,await e),n(r)}}}var dL=class extends Error{constructor(e){super(e),this.name="AbortError"}};function IQe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new dL(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 ven="The delay was aborted.";function hx(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return IQe(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??ven})}function hI(t){if(ey(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 n0t(t){return ey(t)}fun 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--),!irn(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Ni("InvalidTag",l,hA(t,i))}let c=ern(t,i);if(c===!1)return Ni("InvalidAttr","Attributes for '"+A+"' have open quote.",hA(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=q0t(u,e);if(d===!0)n=!0;else return Ni(d.err.code,d.err.msg,hA(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Ni("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",hA(t,o));if(r.length===0)return Ni("InvalidTag","Closing tag '"+A+"' has not been opened.",hA(t,o));{let l=r.pop();if(A!==l.tagName){let d=hA(t,l.tagStartPos);return Ni("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",hA(t,o))}r.length==0&&(s=!0)}}else return Ni("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",hA(t,i));else{let l=q0t(u,e);if(l!==!0)return Ni(l.err.code,l.err.msg,hA(t,i-u.length+l.err.line));if(s===!0)return Ni("InvalidXml","Multiple possible root nodes found.",hA(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=H0t(t,i);continue}else if(t[i+1]==="?"){if(i=O0t(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=nrn(t,i);if(l==-1)return Ni("InvalidChar","char '&' is not expected.",hA(t,i));i=l}else if(s===!0&&!_0t(t[i]))return Ni("InvalidXml","Extra text at the end",hA(t,i));t[i]==="<"&&i--}}else{if(_0t(t[i]))continue;return Ni("InvalidChar","char '"+t[i]+"' is not expected.",hA(t,i))}if(n){if(r.length==1)return Ni("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",hA(t,r[0].tagStartPos));if(r.length>0)return Ni("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ni("InvalidXml","Start tag expected.",1);return!0}function _0t(t){return t===" "||t===" "||t===`
`||t==="\r"}function O0t(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 Ni("InvalidXml","XML declaration allowed only at the start of the document.",hA(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function H0t(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 Ztn='"',$tn="'";function ern(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Ztn||t[e]===$tn)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 trn=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function q0t(t,e){let r=bz(t,trn),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ni("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bL(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ni("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bL(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ni("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bL(r[s]));let i=r[s][2];if(!srn(i))return Ni("InvalidAttr","Attribute '"+i+"' is an invalid name.",bL(r[s]));if(!n.hasOwnProperty(i))n[i]=1;else return Ni("InvalidAttr","Attribute '"+i+"' is repeated.",bL(r[s]))}return!0}function rrn(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 nrn(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,rrn(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 Ni(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function srn(t){return yL(t)}function irn(t){return yL(t)}function hA(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bL(t){return t.startIndex+t[1].length}var orn={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},G0t=function(t){return Object.assign({},orn,t)};var Nz;typeof Symbol!="function"?Nz="@@xmlMetadata":Nz=Symbol("XML Node Metadata");var Iu=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][Nz]={startIndex:r})}static getMetaDataSymbol(){return Nz}};function KQe(t,e){let r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1,s=!1,i=!1,o="";for(;e<t.length;e++)if(t[e]==="<"&&!i){if(s&&crn(t,e)){e+=7;let a,A;[a,A,e]=arn(t,e+1),A.indexOf("&")===-1&&(r[hrn(a)]={regx:RegExp(`&${a};`,"g"),val:A})}else if(s&&urn(t,e))e+=8;else if(s&&lrn(t,e))e+=8;else if(s&&drn(t,e))e+=9;else if(Arn)i=!0;else throw new Error("Invalid DOCTYPE");n++,o=""}else if(t[e]===">"){if(i?t[e-1]==="-"&&t[e-2]==="-"&&(i=!1,n--):n--,n===0)break}else t[e]==="["?s=!0:o+=t[e];if(n!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}function arn(t,e){let r="";for(;e<t.length&&t[e]!=="'"&&t[e]!=='"';e++)r+=t[e];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");let n=t[e++],s="";for(;e<t.length&&t[e]!==n;e++)s+=t[e];return[r,s,e]}function Arn(t,e){return t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-"}function crn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y"}function urn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T"}function lrn(t,e){return t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T"}function drn(t,e){return t[e+1]==="!"&&t[e+2]==="N"&Line truncated
`);let e=new Iu("!xml"),r=e,n="",s="";for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=oy(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&(n=this.saveTextToParentTag(n,r,s));let c=s.substring(s.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let u=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=ZQe(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Iu(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,s,a.tagName)),this.addChild(r,A,s,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=oy(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=KQe(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=oy(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,s);let c=this.parseTextData(A,r.tagname,s,!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=ZQe(t,i,this.options.removeNSPrefix),A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,s,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),A!==e.tagname&&(s+=s?"."+A:A);let g=i;if(this.isItStopNode(this.options.stopNodes,s,A)){let p="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),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,p=m.tagContent}let C=new Iu(A);A!==u&&l&&(C[":@"]=this.buildAttributesMap(u,s,A)),p&&(p=this.parseTextData(p,A,s,!0,l,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),C.add(this.options.textNodeName,p),this.addChild(r,C,s,g)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));let p=new Iu(A);A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),s=s.substr(0,s.lastIndexOf("."))}else{let p=new Iu(A);this.tagsNodeStack.push(r),A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),r=p}n="",i=d}}else n+=t[i];return e.child};function wrn(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.updateTag(e.tagname,r,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}var Nrn=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){let r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function Srn(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function Rrn(t,e,r){let n="*."+r;for(let s in t){let i=t[s];if(n===i||e===i)return!0}return!1}function Drn(t,e,r=">"){let n,s="";for(let i=e;i<t.length;i++){let o=t[i];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===r[0])if(r[1]){if(t[i+1]===r[1])return{data:s,index:i}}else return{data:s,index:i};else o===" "&&(o=" ");s+=o}}function oy(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s+e.length-1}function ZQe(t,e,r,n=">"){let s=Drn(t,e+1,n);if(!s)return;let i=s.data,o=s.index,a=i.search(/\s/),A=i,c=!0;a!==-1&&(A=i.substring(0,a),i=i.substring(a+1).trimStart());let u=A;if(r){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),c=A!==s.data.substr(l+1))}return{tagName:A,tagExp:i,closeIndex:o,attrExpPresent:c,rawTagName:u}}function xrn(t,e,r){let n=r,s=1;for(;r<t.length;r++)if(t[r]==="<")if(t[r+1]==="/"){let i=oy(t,">",r,`${e} is not closed`);if(t.substLine truncated
`),V0t(t,e,"",r)}function V0t(t,e,r,n){let s="",i=!1;for(let o=0;o<t.length;o++){let a=t[o],A=Mrn(a);if(A===void 0)continue;let c="";if(r.length===0?c=A:c=`${r}.${A}`,A===e.textNodeName){let g=a[A];vrn(c,e)||(g=e.tagValueProcessor(A,g),g=W0t(g,e)),i&&(s+=n),s+=g,i=!1;continue}else if(A===e.cdataPropName){i&&(s+=n),s+=`<![CDATA[${a[A][0][e.textNodeName]}]]>`,i=!1;continue}else if(A===e.commentPropName){s+=n+`<!--${a[A][0][e.textNodeName]}-->`,i=!0;continue}else if(A[0]==="?"){let g=J0t(a[":@"],e),p=A==="?xml"?"":n,C=a[A][0][e.textNodeName];C=C.length!==0?" "+C:"",s+=p+`<${A}${C}${g}?>`,i=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let l=J0t(a[":@"],e),d=n+`<${A}${l}`,h=V0t(a[A],e,c,u);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?s+=d+">":s+=d+"/>":(!h||h.length===0)&&e.suppressEmptyNode?s+=d+"/>":h&&h.endsWith(">")?s+=d+`>${h}${n}</${A}>`:(s+=d+">",h&&n!==""&&(h.includes("/>")||h.includes("</"))?s+=n+e.indentBy+h+n:s+=h,s+=`</${A}>`),i=!0}return s}function Mrn(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(t.hasOwnProperty(n)&&n!==":@")return n}}function J0t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let s=e.attributeValueProcessor(n,t[n]);s=W0t(s,e),s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function vrn(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function W0t(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}var Lrn={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};function nh(t){this.options=Object.assign({},Lrn,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=wL(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=_rn),this.processTextOrObjNode=Urn,this.options.format?(this.indentate=Prn,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}nh.prototype.build=function(t){return this.options.preserveOrder?rye(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};nh.prototype.j2x=function(t,e,r){let n="",s="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(s+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?s+="":o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)s+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))n+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let A=this.options.tagValueProcessor(o,""+t[o]);s+=this.replaceEntitiesValue(A)}else s+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,A="",c="";for(let u=0;u<a;u++){let l=t[o][u];if(!(typeof l>"u"))if(l===null)o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof l=="object")if(this.options.oneListGroup){let d=this.j2x(l,e+1,r.concat(o));A+=d.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else A+=this.processTextOrObjNode(l,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,l);d=this.replaceEntitiesValue(d),A+=d}else A+=this.buildTextValNode(l,o,"",e)}this.options.oneListGroup&&(A=this.buildObjectNode(A,o,c,e)),s+=A}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),A=a.length;for(let c=0;c<A;c++)n+=this.buildAttrPairStr(a[c],""+t[o][a[c]])}else s+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:n,val:s}};nh.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function Urn(t,e,r,n){let s=this.j2x(t,r+1,n.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,s.attrStr,r):this.buildObjectNode(s.val,e,s.attrStr,r)}nh.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",s=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+i+">"+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+i+this.tagEndChar+t+this.indentate(n)+s}};nh.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};nh.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"</"+e+this.tagEndChar}};nh.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function Prn(t){return this.options.indentBy.repeat(t)}function _rn(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var z0t={validate:wz};function X0t(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Orn(t={}){var e,r;return Object.assign(Object.assign({},X0t(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Hrn(t={}){return Object.assign(Object.assign({},X0t(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function Sz(t,e={}){let r=Orn(e),n=new nh(r),s={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(s)}`.replace(/\n/g,"")}async function nye(t,e={}){if(!t)throw new Error("Document is empty");let r=z0t.validate(t);if(r!==!0)throw r;let s=new Ex(Hrn(e)).parse(t);iLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>Uz(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=Mz(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=vz(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 ci=class extends Ay{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new xL(e,r,this)}computeHMACSHA256(e){return jrn("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var cy=class extends Error{constructor(e){super(e),this.name="AbortError"}};var $i=Wl("storage-common");var zl;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(zl||(zl={}));var EI={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Krn=new cy("The operation was aborted."),TL=class extends sf{retryOptions;constructor(e,r,n=EI){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:EI.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):EI.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:EI.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:EI.maxRetryDelayInMs):EI.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:EI.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:EI.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=Fz(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=mI(s.url,Cm.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if($i.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($i.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 $i.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 $i.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 $i.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return $i.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(qt.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')?($i.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 zl.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case zl.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return $i.info(`RetryPolicy: Delay for ${s}ms`),Lz(s,n,Krn)}};var kL=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new TL(e,r,this.retryOptions)}};var Xrn="storageBrowserPolicy";function Z0t(){return{name:Xrn,async sendRequest(t,e){return un||((t.method==="GET"||t.method==="HEAD")&&(t.url=mI(t.url,Cm.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qt.COOKIE),t.headers.delete(qt.CONTENT_LENGTH)),e(t)}}}var Zrn="StorageCorrectContentLengthPolicy";function $0t(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Zrn,async sendRequest(e,r){return t(e),r(e)}}}var $rn="storageRetryPolicy",Cx={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},enn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],tnn=new cy("The operation was aborted.");function eQt(t={}){let e=t.retryPolicyType??Cx.retryPolicyType,r=t.maxTries??Cx.maxTries,n=t.retryDelayInMs??Cx.retryDelayInMs,s=t.maxRetryDelayInMs??Cx.maxRetryDelayInMs,i=t.secondaryHost??Cx.secondaryHost,o=t.tryTimeoutInMs??Cx.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return $i.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of enn)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=rnn("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>Uz(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=Mz(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=vz(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:nnn,async sendRequest(i,o){return e(i),o(i)}}}var snn="storageRequestFailureDetailsParserPolicy";function tQt(){return{name:snn,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 inn}from"node:crypto";var Pz=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return inn("sha256",this.key).update(e,"utf8").digest("base64")}};var _z="12.31.0",Oz="2026-02-06";var Hz="https://storage.azure.com/.default",Im={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var sh="",aye="*",onn=1*1024*1024;var ann=4*onn;var rQt="AES256",nQt="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",sQt=["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"],iQt=["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"],oQt="BlobUsesCustomerSpecifiedEncryption",aQt="BlobDoesNotUseCustomerSpecifiedEncryption",AQt=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Bm(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 FL=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Si(t,e={}){t||(t=new Rs);let r=new FL([],e);return r._credential=t,r}function Ann(t){let e=[cnn,cQt,unn,lnn,dnn,hnn,fnn];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>gnn(s));return{wrappedPolicies:zQe(r),afterRetry:n}}}}function Aye(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?jQe(e):iye(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${_z}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=mL({...r,loggingOptions:{additionalAllowedHeaderNames:sQt,additionalAllowedQueryParameters:iQt,logger:Rz.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Sz,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:nye,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:bQe}),s.addPolicy($0t()),s.addPolicy(eQt(r.retryOptions),{phase:"Retry"}),s.addPolicy(tQt()),s.addPolicy(Z0t());let a=Ann(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=cye(t);Eu(A)?s.addPolicy(px({credential:A,scopes:r.au Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new ch(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 cin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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 ch(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 uin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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 ch(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 lin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ah(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 ch(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 din(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(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 ch(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 hin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(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 ch(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 gin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ah(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 ch(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 my(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Ey(t){let e=t.version?t.version:Oz;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 JL=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=gx()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-acquireLease",r,async n=>gt(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!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-releaseLease",e,async r=>gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&tr("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);fe(`Redirecting to blob download url: ${wFt(u)}`);try{fe(`Starting download of artifact to: ${r}`);let l=yield NFt(u,r,e?.skipDecompress);fe("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,Te(`Computed digest: ${l.sha256Digest}`),Te(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function DFt(){return BT(this,arguments,void 0,function*(t=FIt()){return(yield Ayn(t))?Te(`Artifact destination folder already exists: ${t}`):(Te(`Artifact destination folder does not exist, creating: ${t}`),yield IFt.mkdir(t,{recursive:!0})),t})}var uyn=5,lyn=[400,401,403,404,422];function QT(t,e=uyn,r=lyn){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 Te(`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 xFt="6.0.0";function jy(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})})}jy.VERSION=xFt;var FFt=Xe(TFt(),1),MFt=Xe(yge(),1),dyn="0.0.0-development";async function kFt(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 hyn(t,e,r,n){let s=new FFt.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(gyn.bind(null,t,e,r),n)}async function gyn(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 MFt.RequestError(s.data.errors[0].message,500,{request:n,response:s});return kFt(t,e,i,n)}return s}function Ky(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",kFt.bind(null,r,t)),t.hook.wrap("request",hyn.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Ky.VERSION=dyn;var vFt=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 OK(t,e,r,n,s){return vFt(this,void 0,void 0,function*(){var i;let[o,a]=QT(sQ),A={log:void 0,userAgent:Xg(),previews:void 0,retry:o,request:a},u=yield Hd(s,A,Ky,jy).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 hm(`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 gm(`Artifact not found for name: ${t}
`)}var PHe=le(_He(),1);function nl(){return`@actions/artifact-${PHe.version}`}var CP=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"}},Ld=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},_d=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Hf=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"}},Pd=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"}};Pd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var LE=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"}};LE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var _E=class extends Error{};_E.prototype.name="InvalidTokenError";function OXt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let s=r.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function HXt(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 OXt(e)}catch{return atob(e)}}function OHe(t,e){if(typeof t!="string")throw new _E("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,s=t.split(".")[r];if(typeof s!="string")throw new _E(`Invalid token specified: missing part #${r+1}`);let n;try{n=HXt(s)}catch(i){throw new _E(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(n)}catch(i){throw new _E(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var IP=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function il(){let t=EP(),e=OHe(t);if(!e.scp)throw IP;let r=e.scp.split(" ");if(r.length===0)throw IP;for(let s of r){let n=s.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw IP;let i={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return Y(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),Y(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw IP}function HHe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(MA(r),MA(encodeURIComponent(r)))}catch(e){Y(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function GHe(t){if(typeof t!="object"||t===null){Y("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&HHe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&HHe(t.signed_url)}var BP=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())})},Gre=class{constructor(e,r,s,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=EP();this.baseUrl=yHe(),r&&(this.maxAttempts=r),s&&(this.baseRetryIntervalMilliseconds=s),n&&(this.retryMultiplier=n),this.httpClient=new cs(e,[new _l(i)])}request(e,r,s,n){return BP(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Y(`[Request] ${r} ${i}`);let o={"Content-Type":s};try{let{body:a}=yield this.retryableRequest(()=>BP(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(n),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return BP(this,void 0,void 0,function*(){let r=0,s="",n="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;n=yield a.readBody(),Y(`[Response] - ${a.message.statusCode}`),Y(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(n);if(GHe(c),Y(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),s=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(LE.isUsageErrorMessage(c.msg))throw new LE;s=`${s}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&Y(`Raw Body: ${n}`),a instanceof LE)throw a;if(Pd.isNetworkErrorCode(a?.code))throw new Pd(a?.code);i=!0,s=a.message}if(!i)throw new Error(`Received non-retryable error: ${s}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${s}`);let o=this.getExponentialRetryTimeMilliseconds(r);te(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${s}. 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?[Er.BadGateway,Er.GatewayTimeout,Er.InternalServerError,Er.ServiceUnavailable,Er.TooManyRequests].includes(e):!1}sleep(e){return BP(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),s=r*this.retryMultiplier;return Math.trunc(Math.random()*(s-r)+r)}};function ol(t){let e=new Gre(nl(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new mP(e)}import*as xB from"fs";import{normalize as YHe,resolve as qHe}from"path";function VHe(t){if(!xB.existsSync(t))throw Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&it("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield s.GetSignedArtifactURL(c);te(`Redirecting to blob download url: ${Kje(u)}`);try{te(`Starting download of artifact to: ${r}`);let l=yield Zje(u,r,e?.skipDecompress);te("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(n=!0,Y(`Computed digest: ${l.sha256Digest}`),Y(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:n}})}function eKe(){return wQ(this,arguments,void 0,function*(t=bHe()){return(yield fEr(t))?Y(`Artifact destination folder already exists: ${t}`):(Y(`Artifact destination folder does not exist, creating: ${t}`),yield Vje.mkdir(t,{recursive:!0})),t})}var pEr=5,EEr=[400,401,403,404,422];function SQ(t,e=pEr,r=EEr){var s;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return Y(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(s=n.doNotRetry)!==null&&s!==void 0?s:"octokit default: [400, 401, 403, 404, 422]"})`),[n,i]}var tKe="6.0.0";function hm(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let s=Date.now(),n=t.request.endpoint.parse(r),i=n.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${n.method} ${i} - ${o.status} with id ${a} in ${Date.now()-s}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${i} - ${o.status} with id ${a} in ${Date.now()-s}ms`),o})})}hm.VERSION=tKe;var nKe=le(rKe(),1),iKe=le(X9(),1),mEr="0.0.0-development";async function sKe(t,e,r,s){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=s.request.retries!=null?s.request.retries:t.retries,i=Math.pow((s.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,i)}throw r}async function CEr(t,e,r,s){let n=new nKe.default;return n.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(s.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),n.schedule(IEr.bind(null,t,e,r),s)}async function IEr(t,e,r,s){let n=await r(r,s);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){let i=new iKe.RequestError(n.data.errors[0].message,500,{request:s,response:n});return sKe(t,e,i,s)}return n}function fm(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",sKe.bind(null,r,t)),t.hook.wrap("request",CEr.bind(null,r,t))),{retry:{retryRequest:(s,n,i)=>(s.request.request=Object.assign({},s.request.request,{retries:n,retryAfter:i}),s)}}}fm.VERSION=mEr;var oKe=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 S3(t,e,r,s,n){return oKe(this,void 0,void 0,function*(){var i;let[o,a]=SQ(cp),A={log:void 0,userAgent:nl(),previews:void 0,retry:o,request:a},u=yield WA(n,A,fm,hm).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:s,run_id:e,name:t});if(u.status!==200)throw new Ld(`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 _d(`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],Te(`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 LFt(t){return vFt(this,void 0,void 0,function*(){var e;let r=$g(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Zg(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Da.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new gm(`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],Y(`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 aKe(t){return oKe(this,void 0,void 0,function*(){var e;let r=ol(),{workflowRunBackendId:s,workflowJobRunBackendId:n}=il(),i={workflowRunBackendId:s,workflowJobRunBackendId:n,nameFilter:ri.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new _d(`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],Te(`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?Ra.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var UFt=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 PFt(t,e,r,n,s){return UFt(this,void 0,void 0,function*(){var i;let[o,a]=QT(sQ),A={log:void 0,userAgent:Xg(),previews:void 0,retry:o,request:a},c=Hd(s,A,Ky,jy),u=yield OK(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 hm(`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 _Ft(t){return UFt(this,void 0,void 0,function*(){let e=$g(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Zg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Da.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new gm(`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],Te(`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 fe(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var OFt=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())})},HK=LIt(),qK=100,fyn=Math.ceil(HK/qK);function HFt(t,e,r,n){return OFt(this,arguments,void 0,function*(s,i,o,a,A=!1){fe(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=QT(sQ),d={log:void 0,userAgent:Xg(),previews:void 0,retry:u,request:l},h=Hd(a,d,Ky,jy),g=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:qK,page:g}),C=Math.ceil(p.total_count/qK),m=p.total_count;m>HK&&(tr(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${HK}. Results will be incomplete as only the first ${HK} artifacts will be returned`),C=fyn);for(let I of p.artifacts)c.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(g++,g;g<=C;g++){Te(`Fetching page ${g} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:qK,page:g});for(let y of I.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=GFt(c)),fe(`Found ${c.length} artifact(s)`),{artifacts:c}})}function qFt(){return OFt(this,arguments,void 0,function*(t=!1){let e=$g(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Zg(),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?Ra.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=GFt(o)),fe(`Found ${o.length} artifact(s)`),{artifacts:o}})}function GFt(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 mP=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())})},pyn=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},Xy=class{uploadArtifact(e,r,n,s){return mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;return _2t(e,r,n,s)}catch(i){throw tr(`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],Y(`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?ti.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var AKe=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 cKe(t,e,r,s,n){return AKe(this,void 0,void 0,function*(){var i;let[o,a]=SQ(cp),A={log:void 0,userAgent:nl(),previews:void 0,retry:o,request:a},c=WA(n,A,fm,hm),u=yield S3(t,e,r,s,n),l=yield c.rest.actions.deleteArtifact({owner:r,repo:s,artifact_id:u.artifact.id});if(l.status!==204)throw new Ld(`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 uKe(t){return AKe(this,void 0,void 0,function*(){let e=ol(),{workflowRunBackendId:r,workflowJobRunBackendId:s}=il(),n={workflowRunBackendId:r,workflowJobRunBackendId:s,nameFilter:ri.create({value:t})},i=yield e.ListArtifacts(n);if(i.artifacts.length===0)throw new _d(`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],Y(`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 te(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var lKe=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())})},N3=NHe(),D3=100,BEr=Math.ceil(N3/D3);function dKe(t,e,r,s){return lKe(this,arguments,void 0,function*(n,i,o,a,A=!1){te(`Fetching artifact list for workflow run ${n} in repository ${i}/${o}`);let c=[],[u,l]=SQ(cp),d={log:void 0,userAgent:nl(),previews:void 0,retry:u,request:l},h=WA(a,d,fm,hm),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:n,per_page:D3,page:f}),C=Math.ceil(p.total_count/D3),m=p.total_count;m>N3&&(it(`Workflow run ${n} has ${m} artifacts, exceeding the limit of ${N3}. Results will be incomplete as only the first ${N3} artifacts will be returned`),C=BEr);for(let I of p.artifacts)c.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=C;f++){Y(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:n,per_page:D3,page:f});for(let Q of I.artifacts)c.push({name:Q.name,id:Q.id,size:Q.size_in_bytes,createdAt:Q.created_at?new Date(Q.created_at):void 0,digest:Q.digest})}return A&&(c=fKe(c)),te(`Found ${c.length} artifact(s)`),{artifacts:c}})}function hKe(){return lKe(this,arguments,void 0,function*(t=!1){let e=ol(),{workflowRunBackendId:r,workflowJobRunBackendId:s}=il(),n={workflowRunBackendId:r,workflowJobRunBackendId:s},o=(yield e.ListArtifacts(n)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ti.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=fKe(o)),te(`Found ${o.length} artifact(s)`),{artifacts:o}})}function fKe(t){t.sort((s,n)=>n.id-s.id);let e=[],r=new Set;for(let s of t)r.has(s.name)||(e.push(s),r.add(s.name));return e}var RD=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())})},QEr=function(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(r[s[n]]=t[s[n]]);return r},gm=class{uploadArtifact(e,r,s,n){return RD(this,void 0,void 0,function*(){try{if(DB())throw new Hf;return uje(e,r,s,n)}catch(i){throw it(`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 mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=pyn(r,["findBy"]);return SFt(e,n,s,i,o)}return RFt(e,r)}catch(n){throw tr(`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 RD(this,void 0,void 0,function*(){try{if(DB())throw new Hf;if(r?.findBy){let{findBy:{repositoryOwner:s,repositoryName:n,token:i}}=r,o=QEr(r,["findBy"]);return Xje(e,s,n,i,o)}return $je(e,r)}catch(s){throw it(`Download Artifact failed with error: ${s}.
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 mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return HFt(r,n,s,i,e?.latest)}return qFt(e?.latest)}catch(r){throw tr(`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).`),s}})}listArtifacts(e){return RD(this,void 0,void 0,function*(){try{if(DB())throw new Hf;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:s,repositoryName:n,token:i}}=e;return dKe(r,s,n,i,e?.latest)}return hKe(e?.latest)}catch(r){throw it(`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 mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return OK(e,n,s,i,o)}return LFt(e)}catch(n){throw tr(`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 RD(this,void 0,void 0,function*(){try{if(DB())throw new Hf;if(r?.findBy){let{findBy:{workflowRunId:s,repositoryOwner:n,repositoryName:i,token:o}}=r;return S3(e,s,n,i,o)}return aKe(e)}catch(s){throw it(`Get Artifact failed with error: ${s}.
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 mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return PFt(e,i,n,s,o)}return _Ft(e)}catch(n){throw tr(`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).`),s}})}deleteArtifact(e,r){return RD(this,void 0,void 0,function*(){try{if(DB())throw new Hf;if(r?.findBy){let{findBy:{repositoryOwner:s,repositoryName:n,workflowRunId:i,token:o}}=r;return cKe(e,i,s,n,o)}return uKe(e)}catch(s){throw it(`Delete Artifact failed with error: ${s}.
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 GAs=new Xy;import*as GK from"path";import kxe from"fs";var JFt="dependency-graph_";async function VFt(t){let e=t.getDependencyGraphOption();if(e==="disabled"){mi("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await Eyn(t);return}fe("Enabling dependency graph generation"),mi("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),IA("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Qo.runId.toString()),IA("GITHUB_DEPENDENCY_GRAPH_REF",Qo.ref),IA("GITHUB_DEPENDENCY_GRAPH_SHA",Syn()),IA("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Gp()),IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),IA("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),IA("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),IA("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),IA("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),IA("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),IA("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),IA("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function IA(t,e){process.env[t]||e!==void 0&&mi(t,e)}async function WFt(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await YFt(t,!1);return;case"generate-submit-and-upload":await YFt(t,!0);return;case"generate-and-upload":await Cyn(t)}}catch(r){jFt(t,e,r)}}async function Eyn(t){if(vxe()){fe("Dependency graph not supported in the ACT environment.");return}try{await zFt(await Iyn(t))}catch(e){jFt(t,"download-and-submit",e)}}async function YFt(t,e){if(vxe()){fe("Dependency graph not supported in the ACT environment.");return}let r=await Fxe();try{await zFt(r)}catch(n){try{await Txe(r,t)}catch(s){fe(String(s))}throw n}e&&await Txe(r,t)}async function Cyn(t){if(vxe()){fe("Dependency graph not supported in the ACT environment.");return}await Txe(await Fxe(),t)}async function Iyn(t){let e=Qo.payload.workflow_run?{token:P6(),workflowRunId:Qo.payload.workflow_run.id,repositoryName:Qo.repo.repo,repositoryOwner:Qo.repo.owner}:void 0,r=new Xy,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(JFt)),s=t.getDownloadArtifactName();s&&(fe(`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});fe(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Fxe()}async function Fxe(){let r=(await(await aC(`${yyn()}/**/*.json`)).glob()).filter(n=>!byn(n));return r.forEach(wyn),fe(`Found dependency graph files: ${r.join(", ")}`),r}async function Txe(t,e){if(t.length===0){fe("No dependency graph files found to upload.");return}let r=Gp(),n=new Xy;for(let s of t){let i=Mxe(s);fe(`Uploading dependency graph file: ${i}`);let o=`${JFt}${GK.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zFt(t){if(t.length===0){fe("No dependency graph files found to submit.");return}for(let e of t)try{await Qyn(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Byn(e,r)),r}}function Byn(t,e){let n=`Dependency submission failed for ${Mxe(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}};var G7r=new gm;import*as R3 from"path";import Poe from"fs";var pKe="dependency-graph_";async function EKe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){qs("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Ui("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await bEr(t);return}te("Enabling dependency graph generation"),qs("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Ui("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Ui("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Ui("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ji.runId.toString()),Ui("GITHUB_DEPENDENCY_GRAPH_REF",ji.ref),Ui("GITHUB_DEPENDENCY_GRAPH_SHA",FEr()),Ui("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",pd()),Ui("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Ui("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Ui("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Ui("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Ui("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Ui("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ui("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ui("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Ui(t,e){process.env[t]||e!==void 0&&qs(t,e)}async function mKe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await gKe(t,!1);return;case"generate-submit-and-upload":await gKe(t,!0);return;case"generate-and-upload":await wEr(t)}}catch(r){IKe(t,e,r)}}async function bEr(t){if(Goe()){te("Dependency graph not supported in the ACT environment.");return}try{await CKe(await SEr(t))}catch(e){IKe(t,"download-and-submit",e)}}async function gKe(t,e){if(Goe()){te("Dependency graph not supported in the ACT environment.");return}let r=await Ooe();try{await CKe(r)}catch(s){try{await _oe(r,t)}catch(n){te(String(n))}throw s}e&&await _oe(r,t)}async function wEr(t){if(Goe()){te("Dependency graph not supported in the ACT environment.");return}await _oe(await Ooe(),t)}async function SEr(t){let e=ji.payload.workflow_run?{token:JU(),workflowRunId:ji.payload.workflow_run.id,repositoryName:ji.repo.repo,repositoryOwner:ji.repo.owner}:void 0,r=new gm,s=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(pKe)),n=t.getDownloadArtifactName();n&&(te(`Filtering for artifacts ending with ${n}`),s=s.filter(i=>i.name.includes(n)));for(let i of s){let o=await r.downloadArtifact(i.id,{findBy:e});te(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Ooe()}async function Ooe(){let r=(await(await Bk(`${REr()}/**/*.json`)).glob()).filter(s=>!TEr(s));return r.forEach(xEr),te(`Found dependency graph files: ${r.join(", ")}`),r}async function _oe(t,e){if(t.length===0){te("No dependency graph files found to upload.");return}let r=pd(),s=new gm;for(let n of t){let i=Hoe(n);te(`Uploading dependency graph file: ${i}`);let o=`${pKe}${R3.basename(n)}`;await s.uploadArtifact(o,[n],r,{retentionDays:e.getArtifactRetentionDays()})}}async function CKe(t){if(t.length===0){te("No dependency graph files found to submit.");return}for(let e of t)try{await DEr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=NEr(e,r)),r}}function NEr(t,e){let s=`Dependency submission failed for ${Hoe(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${s}
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 Qyn(t){let e=Nyn(),r=kxe.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Qo.repo.owner,n.repo=Qo.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=Mxe(t);APe(`Submitted ${i}: ${s.data.message}`)}function yyn(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function byn(t){let e=`${t}.processed`;return kxe.existsSync(e)}function wyn(t){let e=`${t}.processed`;kxe.writeFileSync(e,"")}function jFt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new KQ(r);tr(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Nyn(){return Hd(P6())}function Mxe(t){let e=Gp();return GK.relative(e,t)}function Syn(){let t=Qo;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 vxe(){return process.env.ACT!==void 0}function Lxe(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(Dyn(o[1],o[6],o[0]));while(o!==null);return i}function Dyn(){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}}async function xyn(){try{Ost("gradle/actions/dependency-submission"),await xIt(new YR,new qd,new U6);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new M6;if(await VFt(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new L6,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
`:s}async function DEr(t){let e=kEr(),r=Poe.readFileSync(t,"utf8"),s=JSON.parse(r);s.owner=ji.repo.owner,s.repo=ji.repo.repo;let n=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",s),i=Hoe(t);Ipe(`Submitted ${i}: ${n.data.message}`)}function REr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function TEr(t){let e=`${t}.processed`;return Poe.existsSync(e)}function xEr(t){let e=`${t}.processed`;Poe.writeFileSync(e,"")}function IKe(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new FE(r);it(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function kEr(){return WA(JU())}function Hoe(t){let e=pd();return R3.relative(e,t)}function FEr(){let t=ji;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 Goe(){return process.env.ACT!==void 0}function Yoe(t,e,r){var s=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,n=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=s.exec(n),o!==null&&i.push(UEr(o[1],o[6],o[0]));while(o!==null);return i}function UEr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var s=t[r];if(typeof s=="string")return s}}async function vEr(){try{Rxe("gradle/actions/dependency-submission"),await F4e(new fI,new ac,new qU);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new HU;if(await EKe(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new YU,s=r.getDependencyResolutionTask(),n=r.getAdditionalArguments(),i=`
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
${n}
${s}
`,o=Lxe(i);await yat(r.getGradleVersion(),r.getBuildRootDirectory(),o),await WFt(e),mi("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Ust()}catch(t){RIt(t)}process.exit()}xyn();export{xyn as run};
${n}
`,o=Yoe(i);await QHe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await mKe(e),qs("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Nxe()}catch(t){T4e(t)}process.exit()}vEr();export{vEr as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)