varwW=Object.create;varoy=Object.defineProperty;varxW=Object.getOwnPropertyDescriptor;varNW=Object.getOwnPropertyNames;varSW=Object.getPrototypeOf,RW=Object.prototype.hasOwnProperty;varg=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),TW=(t,e)=>{for(varrine)oy(t,r,{get:e[r],enumerable:!0})},PW=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnofNW(e))!RW.call(t,n)&&n!==r&&oy(t,n,{get:()=>e[n],enumerable:!(s=xW(e,n))||s.enumerable});returnt};varQ=(t,e,r)=>(r=t!=null?wW(SW(t)):{},PW(e||!t||!t.__esModule?oy(r,"default",{value:t,enumerable:!0}):r,t));varIT=g(va=>{"use strict";varuIe=require("net"),LW=require("tls"),my=require("http"),ET=require("https"),UW=require("events"),dIe=require("assert"),_W=require("util");va.httpOverHttp=OW;va.httpsOverHttp=GW;va.httpOverHttps=qW;va.httpsOverHttps=HW;functionOW(t){vare=newOn(t);returne.request=my.request,e}functionGW(t){vare=newOn(t);returne.request=my.request,e.createSocket=yT,e.defaultPort=443,e}functionqW(t){vare=newOn(t);returne.request=ET.request,e}functionHW(t){vare=newOn(t);returne.request=ET.request,e.createSocket=yT,e.defaultPort=443,e}functionOn(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||my.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(vara=CT(n,i,o),c=0,l=e.requests.length;c<l;++c){varA=e.requests[c];if(A.host===a.host&&A.port===a.port){e.requests.splice(c,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}_W.inherits(On,UW.EventEmitter);On.prototype.addRequest=function(e,r,s,n){vari=this,o=py({request:e},i.options,CT(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);functionc(){i.emit("free",a,o)}functionl(A){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};On.prototype.createSocket=function(e,r){vars=this,n={};s.sockets.push(n);vari=py({},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 "+newBuffer(i.proxyAuth).toString("base64")),Qi("making CONNECT request");varo=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",A),o.end();functiona(u){u.upgrade=!0}functionc(u,d,m){process.nextTick(function(){l(u,d,m)})}functionl(u,d,m){if(o.removeAllListeners(),d.removeAllListeners(),u.statusCode!==200){Qi("tunneling socket could not be established, statusCode=%d",u.statusCode),d.destroy();varp=newError("tunneling socket could not be established, statusCode="+u.statusCode);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n);return}if(m.length>0){Qi("got illegal response body from proxy"),d.destroy();varp=newError("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n);return}returnQi("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}functionA(u){o.removeAllListeners(),Qi(`tunneling socket could not be established, cause=%s
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}functionVa(t,e,r){lets=r.position;for(;s<e.length&&t(e[s]);)++s;returne.subarray(r.position,r.position=s)}functionEC(t,e,r,s){letn=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;returnn===0&&i===t.length-1?t:t.subarray(n,i+1)}functionum(t,e,r){if(t.length<e.length)return!1;for(lets=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}ND.exports={multipartFormDataParser:i8,validateBoundary:n8}});varWa=g((GIe,UD)=>{"use strict";vartA=ie(),{ReadableStreamFrom:a8,isBlobLike:RD,isReadableStreamLike:c8,readableStreamClose:l8,createDeferredPromise:A8,fullyReadBody:u8,extractMimeType:d8,utf8DecodeBytes:DD}=Cr(),{FormData:TD}=eA(),{kState:$a}=bi(),{webidl:m8}=Nt(),{Blob:p8}=require("node:buffer"),yC=require("node:assert"),{isErrored:kD,isDisturbed:g8}=require("node:stream"),{isArrayBuffer:f8}=require("node:util/types"),{serializeAMimeType:h8}=tr(),{multipartFormDataParser:E8}=SD(),CC;try{lett=require("node:crypto");CC=e=>t.randomInt(0,e)}catch{CC=t=>Math.floor(Math.random(t))}vardm=newTextEncoder;functiony8(){}varvD=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,MD;vD&&(MD=newFinalizationRegistry(t=>{lete=t.deref();e&&!e.locked&&!g8(e)&&!kD(e)&&e.cancel("Response object has been garbage collected").catch(y8)}));functionFD(t,e=!1){letr=null;tinstanceofReadableStream?r=t:RD(t)?r=t.stream():r=newReadableStream({asyncpull(c){letl=typeofn=="string"?dm.encode(n):n;l.byteLength&&c.enqueue(l),queueMicrotask(()=>l8(c))},start(){},type:"bytes"}),yC(c8(r));lets=null,n=null,i=null,o=null;if(typeoft=="string")n=t,o="text/plain;charset=UTF-8";elseif(tinstanceofURLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";elseif(f8(t))n=newUint8Array(t.slice());elseif(ArrayBuffer.isView(t))n=newUint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));elseif(tA.isFormDataLike(t)){letc=`----formdata-undici-0${`${CC(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
`);d.push(f),i+=f.byteLength,p&&(i=null),n=t,s=asyncfunction*(){for(letyofd)y.stream?yield*y.stream():yieldy},o=`multipart/form-data; boundary=${c}`}elseif(RD(t))n=t,i=t.size,t.type&&(o=t.type);elseif(typeoft[Symbol.asyncIterator]=="function"){if(e)thrownewTypeError("keepalive");if(tA.isDisturbed(t)||t.locked)thrownewTypeError("Response body object should not be disturbed or locked");r=tinstanceofReadableStream?t:a8(t)}if((typeofn=="string"||tA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){letc;r=newReadableStream({asyncstart(){c=s(t)[Symbol.asyncIterator]()},asyncpull(l){let{value:A,done:u}=awaitc.next();if(u)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});elseif(!kD(r)){letd=newUint8Array(A);d.byteLength&&l.enqueue(d)}returnl.desiredSize>0},asynccancel(l){awaitc.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}functionC8(t,e=!1){returntinstanceofReadableStream&&(yC(!tA.isDisturbed(t),"The body has already been consumed."),yC(!t.locked,"The stream is locked.")),FD(t,e)}functionI8(t,e){let[r,s]=e.stream.tee();returne.stream=r,{stream:s,length:e.length,source:e.source}}functionB8(t){if(t.aborted)thrownewDOMException("The operation was aborted.","AbortError")}functionQ8(t){return{blob(){returnJa(this,r=>{lets=PD(this);returns===null?s="":s&&(s=h8(s)),newp8([r],{type:s})},t)},arrayBuffer(){returnJa(this,r=>newUint8Array(r).buffer,t)},text(){returnJa(this,DD,t)},json(){returnJa(this,w8,t)},formData(){returnJa(this,r=>{lets=PD(this);if(s!==null)switch(s.essence){case"multipart/form-data":{letn=E8(r,s);if(n==="failure")thrownewTypeError("Failed to parse body as FormData.");leti=newTD;returni[$a]=n,i}case"application/x-www-form-urlencoded":{letn=newURLSearchParams(r.toString()),i=newTD;for(let[o,a]ofn)i.append(o,a);returni}}thrownewTypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){returnJa(this,r=>newUint8Array(r),t)}}}functionb8(t){Object.assign(t.prototype,Q8(t))}asyncfunctionJa(t,e,r){if(m8.brandCheck(t,r),LD(t))thrownewTypeError("Body is unusable: Body has already been read");B8(t[$a]);lets=A8(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};returnt[$a].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(awaitu8(t[$a].body,i,n),s.promise)}functionLD(t){lete=t[$a].body;returne!=null&&(e.stream.locked||tA.isDisturbed(e.stream))}functionw8(t){returnJSON.parse(DD(t))}functionPD(t){lete=t[$a].headersList,r=d8(e);returnr==="failure"?null:r}UD.exports={extractBody:FD,safelyExtractBody:C8,cloneBody:I8,mixinBody:b8,streamRegistry:MD,hasFinalizationRegistry:vD,bodyUnusable:LD}});varXD=g((qIe,KD)=>{"use strict";varH=require("node:assert"),X=ie(),{channels:_D}=Fa(),IC=rC(),{RequestContentLengthMismatchError:Qo,ResponseContentLengthMismatchError:OD,RequestAbortedError:$D,HeadersTimeoutError:x8,HeadersOverflowError:N8,SocketError:ym,InformationalError:ja,BodyTimeoutError:S8,HTTPParserError:R8,ResponseExceededMaxSizeError:T8}=ge(),{kUrl:WD,kReset:rr,kClient:fm,kParser:He,kBlocking:nA,kRunning:Dt,kPending:P8,kSize:GD,kWriting:xi,kQueue:hs,kNoRef:rA,kKeepAliveDefaultTimeout:D8,kHostHeader:k8,kPendingIdx:v8,kRunningIdx:Jr,kError:qt,kPipelining:hm,kSocket:Ka,kKeepAliveTimeoutValue:Cm,kMaxHeadersSize:BC,kKeepAliveMaxTimeout:M8,kKeepAliveTimeoutThreshold:F8,kHeadersTimeout:L8,kBodyTimeout:U8,kStrictContentLength:wC,kMaxRequests:qD,kCounter:_8,kMaxResponseSize:O8,kOnError:HD,kResume:wi,kHTTPContext:jD}=ke(),Ir=MP(),zD=Buffer.alloc(0),mm=Buffer[Symbol.species],pm=X.addListener,G8=X.removeAllListeners,QC;asyncfunctionq8(){lett=process.env.JEST_WORKER_ID?iC():void0,e;try{e=awaitWebAssembly.compile(UP())}catch{e=awaitWebAssembly.compile(t||iC())}returnawaitWebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{H(qe.ptr===r);leti=s-Ys+zs.byteOffset;returnqe.onStatus(newmm(zs.buffer,i,n))||0},wasm_on_message_begin:r=>(H(qe.ptr===r),qe.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{H(qe.ptr===r);leti=s-Ys+zs.byteOffset;returnqe.onH
`}return _D.sendHeaders.hasSubscribers&&_D.sendHeaders.publish({request:e,headers:f,socket:m}),!c||d===0?VD(p,null,t,e,m,A,f,u):X.isBuffer(c)?VD(p,c,t,e,m,A,f,u):X.isBlobLike(c)?typeof c.stream=="function"?JD(p,c.stream(),t,e,m,A,f,u):W8(p,c,t,e,m,A,f,u):X.isStream(c)?$8(p,c,t,e,m,A,f,u):X.isIterable(c)?JD(p,c,t,e,m,A,f,u):H(!1),!0}function $8(t,e,r,s,n,i,o,a){H(i!==0||r[Dt]===0,"stream body cannot be pipelined");let c=!1,l=new Im({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),A=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(f){X.destroy(this,f)}},u=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!c){let p=new $D;queueMicrotask(()=>m(p))}},m=function(p){if(!c){if(c=!0,H(n.destroyed||n[xi]&&r[Dt]<=1),n.off("drain",u).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",d),!p)try{l.end()}catch(f){p=f}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?X.destroy(e,p):X.destroy(e)}};e.on("data",A).on("end",m).on("error",m).on("close",d),e.resume&&e.resume(),n.on("drain",u).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function VD(t,e,r,s,n,i,o,a){try{e?X.isBuffer(e)&&(H(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length:${i}\r
`,"latin1"):(H(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[wi]()}catch(c){t(c)}}async function W8(t,e,r,s,n,i,o,a){H(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Qo;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length:${i}\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[rr]=!0),r[wi]()}catch(c){t(c)}}async function JD(t,e,r,s,n,i,o,a){H(i!==0||r[Dt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let A=()=>new Promise((d,m)=>{H(c===null),n[qt]?m(n[qt]):c=d});n.on("close",l).on("drain",l);let u=new Im({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[qt])throw n[qt];u.write(d)||await A()}u.end()}catch(d){u.destroy(d)}finally{n.off("close",l).off("drain",l)}}var Im=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[xi]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[qt])throw r[qt];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(i[wC])throw new Qo;process.emitWarning(new Qo)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[rr]=!0),n===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&n!==r){if(s[wC])throw new Qo;process.emitWarning(new Qo)}e[He].timeout&&e[He].timeoutType===Xa&&e[He].timeout.refresh&&e[He].timeout.refresh(),s[wi]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[xi]=!1,e&&(H(s[Dt]<=1,"pipeline should only contain this request"),n(e))}};KD.exports=z8});var ok=g((HIe,ik)=>{"use strict";var $r=require("node:assert"),{pipeline:j8}=require("node:stream"),ce=ie(),{RequestContentLengthMismatchError:RC,RequestAbortedError:ZD,SocketError:iA,InformationalError:TC}=ge(),{kUrl:Bm,kReset:bm,kClient:Za,kRunning:wm,kPending:K8,kQueue:Ni,kPendingIdx:PC,kRunningIdx:Es,kError:Cs,kSocket:Ct,kStrictContentLength:X8,kOnError:DC,kMaxConcurrentStreams:nk,kHTTP2Session:ys,kResume:Si,kSize:Z8,kHTTPContext:eK}=ke(),Vn=Symbol("open streams"),ek,tk=!1,Qm;try{Qm=require("node:http2")}catch{Qm={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tK,HTTP2_HEADER_METHOD:rK,HTTP2_HEADER_PATH:sK,HTTP2_HEADER_SCHEME:nK,HTTP2_HEADER_CONTENT_LENGTH:iK,HTTP2_HEADER_EXPECT:oK,HTTP2_HEADER_STATUS:aK}}=Qm;function cK(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 lK(t,e){t[Ct]=e,tk||(tk=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Qm.connect(t[Bm],{createConnection:()=>e,peerMaxConcurrentStreams:t[nk]});r[Vn]=0,r[Za]=t,r[Ct]=e,ce.addListener(r,"error",uK),ce.addListener(r,"frameError",dK),ce.addListener(r,"end",mK),ce.addListener(r,"goaway",pK),ce.addListener(r,"close",function(){let{[Za]:n}=this,{[Ct]:i}=n,o=this[Ct][Cs]||this[Cs]||new iA("closed",ce.getSocketInfo(i));if(n[ys]=null,n.destroyed){$r(n[K8]===0);let a=n[Ni].splice(n[Es]);for(let c=0;c<a.length;c++){let l=a[c];ce.errorRequest(n,l,o)}}}),r.unref(),t[ys]=r,e[ys]=r,ce.addListener(e,"error",function(n){$r(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Cs]=n,this[Za][DC](n)}),ce.addListener(e,"end",function(){ce.destroy(this,new iA("other side closed",ce.getSocketInfo(this)))}),ce.addListener(e,"close",function(){let n=this[Cs]||new iA("closed",ce.getSocketInfo(this));t[Ct]=null,this[ys]!=null&&this[ys].destroy(n),t[PC]=t[Es],$r(t[wm]===0),t.emit("disconnect",t[Bm],[t],n),t[Si]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return fK(t,...n)},resume(){AK(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function AK(t){let e=t[Ct];e?.destroyed===!1&&(t[Z8]===0&&t[nk]===0?(e.unref(),t[ys].unref()):(e.ref(),t[ys].ref()))}function uK(t){$r(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ct][Cs]=t,this[Za][DC](t)}function dK(t,e,r){if(r===0){let s=new TC(`HTTP/2:"frameError"received-type${t},code${e}`);this[Ct][Cs]=s,this[Za][DC](s)}}function mK(){let t=new iA("other side closed",ce.getSocketInfo(this[Ct]));this.destroy(t),ce.destroy(this[Ct],t)}function pK(t){let e=this[Cs]||new iA(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,ce.getSocketInfo(this)),r=this[Za];if(r[Ct]=null,r[eK]=null,this[ys]!=null&&(this[ys].destroy(e),this[ys]=null),ce.destroy(this[Ct],e),r[Es]<r[Ni].length){let s=r[Ni][r[Es]];r[Ni][r[Es]++]=null,ce.errorRequest(r,s,e),r[PC]=r[Es]}$r(r[wm]===0),r.emit("disconnect",r[Bm],[r],e),r[Si]()}function gK(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function fK(t,e){let r=t[ys],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:A}=e;if(o)return ce.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let u={};for(let I=0;I<l.length;I+=2){let M=l[I+0],$=l[I+1];if(Array.isArray($))for(let W=0;W<$.length;W++)u[M]?u[M]+=`,${$[W]}`:u[M]=$[W];else u[M]=$}let d,{hostname:m,port:p}=t[Bm];u[tK]=i||`${m}${p?`:${p}`:""}`,u[rK]=s;let f=I=>{e.aborted||e.completed||(I=I||new ZD,ce.errorRequest(t,e,I),d!=null&&ce.destroy(d,I),ce.destroy(A,I),t[Ni][t[Es]++]=null,t[Si]())};try{e.onConnect(f)}catch(I){ce.errorRequest(t,e,I)}if(e.aborted)return!1;if(s==="CONNECT"
`.trim())}};_M.exports=VI});var $m=g((bBe,zM)=>{"use strict";var GM=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:q5}=ge(),H5=nc();HM()===void 0&&qM(new H5);function qM(t){if(!t||typeof t.dispatch!="function")throw new q5("Argument agent must implement Agent");Object.defineProperty(globalThis,GM,{value:t,writable:!0,enumerable:!1,configurable:!1})}function HM(){return globalThis[GM]}zM.exports={setGlobalDispatcher:qM,getGlobalDispatcher:HM}});var Wm=g((xBe,YM)=>{"use strict";YM.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 JM=g((NBe,VM)=>{"use strict";var z5=Nm();VM.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let c=new z5(r,o,n,i);return r(a,c)}}});var WM=g((SBe,$M)=>{"use strict";var Y5=Um();$M.exports=t=>e=>function(s,n){return e(s,new Y5({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var KM=g((RBe,jM)=>{"use strict";var V5=ie(),{InvalidArgumentError:J5,RequestAbortedError:$5}=ge(),W5=Wm(),JI=class extends W5{#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new J5("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#s=e}onHeaders(e,r,s,n){let o=V5.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new $5(`Responsesize(${o})largerthanmaxSize(${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function j5({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new JI({maxSize:i},n);return e(s,o)}}jM.exports=j5});var eF=g((TBe,ZM)=>{"use strict";var{isIP:K5}=require("node:net"),{lookup:X5}=require("node:dns"),Z5=Wm(),{InvalidArgumentError:pc,InformationalError:eZ}=ge(),XM=Math.pow(2,31)-1,$I=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.#i,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 eZ("No DNS entries found"));return}this.setRecords(e,a);let c=this.#r.get(e.hostname),l=this.pick(e,c,i.affinity),A;typeof l.port=="number"?A=`:${l.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${A}`)});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}`)}}#i(e,r,s){X5(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===XM?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s]
${i}`;break;case"retry":kU(i)&&(r[n]=i);break;case"id":vU(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&kU(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&vU(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}}};MU.exports={EventSourceStream:MB}});var zU=g((aQe,HU)=>{"use strict";var{pipeline:lte}=require("node:stream"),{fetching:Ate}=NA(),{makeRequest:ute}=hc(),{webidl:Zn}=Nt(),{EventSourceStream:dte}=FU(),{parseMIMEType:mte}=tr(),{createFastMessageEvent:pte}=Qc(),{isNetworkError:LU}=wA(),{delay:gte}=kB(),{kEnumerableProperty:Go}=ie(),{environmentSettingsObject:UU}=Cr(),_U=!1,OU=3e3,OA=0,GU=1,GA=2,fte="anonymous",hte="use-credentials",Sc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=OA;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),Zn.util.markAsUncloneable(this);let s="EventSource constructor";Zn.argumentLengthCheck(arguments,1,s),_U||(_U=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Zn.converters.USVString(e,s,"url"),r=Zn.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:OU};let n=UU,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=fte;r.withCredentials&&(o=hte,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=UU.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=ute(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===GA)return;this.#i=OA;let e={request:this.#n,dispatcher:this.#o},r=s=>{LU(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(LU(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let n=s.headersList.get("content-type",!0),i=n!==null?mte(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.#i=GU,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let a=new dte({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(pte(c.type,c.options))}});lte(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Ate(e)}async#l(){this.#i!==GA&&(this.#i=OA,this.dispatchEvent(new Event("error")),await gte(this.#a.reconnectionTime),this.#i===OA&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){Zn.brandCheck(this,t),this.#i!==GA&&(this.#i=GA,this.#s.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}},qU={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:OA,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:GU,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:GA,writable:!1}};Object.defineProperties(Sc,qU);Object.defineProperties(Sc.prototype,qU);Obj
%s`,M,M,E,s);var$=E.type==="*"?NQ:E.type==="?"?xQ:"\\"+E.type;n=!0,s=s.slice(0,E.reStart)+$+"\\("+M}p(),i&&(s+="\\\\");varW=!1;switch(s.charAt(0)){case"[":case".":case"(":W=!0}for(varpe=a.length-1;pe>-1;pe--){varQe=a[pe],Ge=s.slice(0,Qe.reStart),q=s.slice(Qe.reStart,Qe.reEnd-8),fe=s.slice(Qe.reEnd-8,Qe.reEnd),U=s.slice(Qe.reEnd);fe+=U;varIe=Ge.split("(").length-1,Pt=U;for(f=0;f<Ie;f++)Pt=Pt.replace(/\)[+*?]?/,"");U=Pt;varYr="";U===""&&e!==ng&&(Yr="$");varXe=Ge+q+U+Yr+fe;s=Xe}if(s!==""&&n&&(s="(?=.)"+s),W&&(s=d+s),e===ng)return[s,n];if(!n)returnLie(t);varUn=r.nocase?"i":"";try{varyr=newRegExp("^"+s+"$",Un)}catch{returnnewRegExp("$.")}returnyr._glob=t,yr._src=s,yr}Pr.makeRe=function(t,e){returnnewSt(t,e||{}).makeRe()};St.prototype.makeRe=Fie;functionFie(){if(this.regexp||this.regexp===!1)returnthis.regexp;vart=this.set;if(!t.length)returnthis.regexp=!1,this.regexp;vare=this.options,r=e.noglobstar?NQ:e.dot?Sie:Rie,s=e.nocase?"i":"",n=t.map(function(i){returni.map(function(o){returno===SQ?r:typeofo=="string"?Uie(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=newRegExp(n,s)}catch{this.regexp=!1}returnthis.regexp}Pr.match=function(t,e,r){r=r||{};vars=newSt(e,r);returnt=t.filter(function(n){returns.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};St.prototype.match=function(e,r){if(typeofr>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)returne==="";if(e==="/"&&r)return!0;vars=this.options;su.sep!=="/"&&(e=e.split(su.sep).join("/")),e=e.split(PG),this.debug(this.pattern,"split",e);varn=this.set;this.debug(this.pattern,"set",n);vari,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){vara=n[o],c=e;s.matchBase&&a.length===1&&(c=[i]);varl=this.matchOne(c,a,r);if(l)returns.flipNegate?!0:!this.negate}returns.flipNegate?!1:this.negate};St.prototype.matchOne=function(t,e,r){vars=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(varn=0,i=0,o=t.length,a=e.length;n<o&&i<a;n++,i++){this.debug("matchOne loop");varc=e[i],l=t[n];if(this.debug(e,c,l),c===!1)return!1;if(c===SQ){this.debug("GLOBSTAR",[e,c,l]);varA=n,u=i+1;if(u===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(;A<o;){vard=t[A];if(this.debug(`
globstar while`,t,A,e,u,d),this.matchOne(t.slice(A),e.slice(u),r))returnthis.debug("globstar found match!",A,o,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,A,e,u);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newHle.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;lets=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&deletethis.sockets[e])}getName(e){returnthis.isSecureEndpoint(e)?zle.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){letn={...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),ainstanceofxH.Agent)try{returna.addRequest(e,n)}catch(c){returns(c)}this[sn].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){lete=this[sn].currentSocket;if(this[sn].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[sn].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[sn]&&(this[sn].defaultPort=e)}getprotocol(){returnthis[sn].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[sn]&&(this[sn].protocol=e)}};Mr.Agent=Cb});varTH=g(jc=>{"use strict";varYle=jc&&jc.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(jc,"__esModule",{value:!0});jc.parseProxyResponse=void0;varVle=Yle(Jg()),$g=(0,Vle.default)("https-proxy-agent:parse-proxy-response");functionJle(t){returnnewPromise((e,r)=>{lets=0,n=[];functioni(){letA=t.read();A?l(A):t.once("readable",i)}functiono(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}functiona(){o(),$g("onend"),r(newError("Proxy connection ended before receiving CONNECT response"))}functionc(A){o(),$g("onerror %o",A),r(A)}functionl(A){n.push(A),s+=A.length;letu=Buffer.concat(n,s),d=u.indexOf(`\r
`);let{connect:l,buffered:A}=awaitc;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)returne.once("socket",tAe),r.secureEndpoint?(Iu("Upgrading socket connection to TLS"),PH.connect({...kH(DH(r),"host","path","port"),socket:n})):n;n.destroy();letu=newWg.Socket({writable:!1});returnu.readable=!0,e.once("socket",d=>{Iu("Replaying proxy buffer for failed request"),(0,jle.default)(d.listenerCount("data")>0),d.push(A),d.push(null)}),u}};jg.protocols=["http","https"];is.HttpsProxyAgent=jg;functiontAe(t){t.resume()}functionkH(t,...e){letr={},s;for(sint)e.includes(s)||(r[s]=t[s]);returnr}});var_H=g(ur=>{"use strict";varrAe=ur&&ur.__createBinding||(Object.create?(function(t,e,r,s){s===void0&&(s=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void0&&(s=r),t[s]=e[r]})),sAe=ur&&ur.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LH=ur&&ur.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rAe(e,t,r);returnsAe(e,t),e};Object.defineProperty(ur,"__esModule",{value:!0});ur.req=ur.json=ur.toBuffer=void0;varnAe=LH(require("http")),iAe=LH(require("https"));asyncfunctionUH(t){lete=0,r=[];forawait(letsoft)e+=s.length,r.push(s);returnBuffer.concat(r,e)}ur.toBuffer=UH;asyncfunctionoAe(t){letr=(awaitUH(t)).toString("utf8");try{returnJSON.parse(r)}catch(s){letn=s;thrown.message+=` (input: ${r})`,n}}ur.json=oAe;functionaAe(t,e={}){lets=((typeoft=="string"?t:t.href).startsWith("https:")?iAe:nAe).request(t,e),n=newPromise((i,o)=>{s.once("response",i).once("error",o).end()});returns.then=n.then.bind(n),s}ur.req=aAe});varHH=g(Fr=>{"use strict";varGH=Fr&&Fr.__createBinding||(Object.create?(function(t,e,r,s){s===void0&&(s=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void0&&(s=r),t[s]=e[r]})),cAe=Fr&&Fr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qH=Fr&&Fr.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&GH(e,t,r);returncAe(e,t),e},lAe=Fr&&Fr.__exportStar||function(t,e){for(varrint)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&GH(e,t,r)};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.Agent=void0;varAAe=qH(require("net")),OH=qH(require("http")),uAe=require("https");lAe(_H(),Fr);varnn=Symbol("AgentBaseInternalState"),Ib=classextendsOH.Agent{constructor(e){super(e),this[nn]={}}isSecureEndpoint(e){if(e){if(typeofe.secureEndpoint=="boolean")returne.secureEndpoint;if(typeofe.protocol=="string")returne.protocol==="https:"}let{stack:r}=newError;returntypeofr!="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)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newAAe.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;lets=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&deletethis.sockets[e])}getName(e){return(typeofe.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?uAe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){letn={...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),ainstanceofOH.Agent)returna.addRequest(e,n);this[nn].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){lete=this[nn].currentSocket;if(this[nn].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[nn].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[nn]&&(this[nn].defaultPort=e)}getprotocol(){returnthis[nn].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[nn]&&(this[nn].protocol=e)}};Fr.Agent=Ib});varVH=g(os=>{"use strict";vardAe=os&&os.__createBinding||(Object.create?(function(t,e,r,s){s===void0&&(s=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void0&&(s=r),t[s]=e[r]})),mAe=os&&os.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YH=os&&os.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&dAe(e,t,r);returnmAe(e,t),e},pAe=os&&os.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(os,"__esModule",{value:!0});os.HttpProxyAgent=void0;vargAe=YH(require("net")),fAe=YH(require("tls")),hAe=pAe(Jg()),EAe=require("events"),yAe=HH(),zH=require("url"),Kc=(0,hAe.default)("http-proxy-agent"),Kg=classextendsyAe.Agent{constructor(e,r){super(r),this.proxy=typeofe=="string"?newzH.URL(e):e,this.proxyHeaders=r?.headers??{},Kc("Creating new HttpProxyAgent instance: %o",this.proxy.href);lets=(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?CAe(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=newzH.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);letc=typeofthis.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){letl=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(letlofObject.keys(c)){letA=c[l];A&&e.setHeader(l,A)}}asyncconnect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);lets,n;Kc("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Kc("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Kc("Output buffer: %o",e.outputData[0].data));leti;returnthis.proxy.protocol==="https:"?(Kc("Creating `tls.Socket`: %o",this.connectOpts),i=fAe.connect(this.connectOpts)):(Kc("Creating `net.Socket`: %o",this.connectOpts),i=gAe.connect(this.connectOpts)),await(0,EAe.once)(i,"connect"),i}};Kg.protocols=["http","https"];os.HttpProxyAgent=Kg;functionCAe(t,...e){letr={},s;for(sint)e.includes(s)||(r[s]=t[s]);returnr}});varp2=g(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.state=void0;df.state={instrumenterImplementation:void0}});varP2=g(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.state=void0;hf.state={operationRequestMap:newWeakMap}});varWY=g(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});varTge=require("os"),Pge=require("util");functionDge(t){returnt&&typeoft=="object"&&"default"int?t:{default:t}}varkge=Dge(Pge);functionvge(t,...e){process.stderr.write(`${kge.default.format(t,...e)}${Tge.EOL}`)}var_Y=typeofprocess<"u"&&process.env&&process.env.DEBUG||void0,GY,J0=[],$0=[],vh=[];_Y&&W0(_Y);varqY=Object.assign(t=>HY(t),{enable:W0,enabled:j0,disable:Mge,log:vge});functionW0(t){GY=t,J0=[],$0=[];lete=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(letsofr)s.startsWith("-")?$0.push(newRegExp(`^${s.substr(1)}$`)):J0.push(newRegExp(`^${s}$`));for(letsofvh)s.enabled=j0(s.namespace)}functionj0(t){if(t.endsWith("*"))return!0;for(leteof$0)if(e.test(t))return!1;for(leteofJ0)if(e.test(t))return!0;return!1}functionMge(){lett=GY||"";returnW0(""),t}functionHY(t){lete=Object.assign(r,{enabled:j0(t),destroy:Fge,log:qY.log,namespace:t,extend:Lge});functionr(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}returnvh.push(e),e}functionFge(){lett=vh.indexOf(this);returnt>=0?(vh.splice(t,1),!0):!1}functionLge(t){lete=HY(`${this.namespace}:${t}`);returne.log=this.log,e}varod=qY,zY=newSet,Dh=typeofprocess<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void0,Mh,Fh=od("azure");Fh.log=(...t)=>{od.log(...t)};varK0=["verbose","info","warning","error"];Dh&&($Y(Dh)?YY(Dh):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Dh}'; logging is not enabled. Acceptable values: ${K0.join(", ")}.`));functionYY(t){if(t&&!$Y(t))thrownewError(`Unknown log level '${t}'. Acceptable values: ${K0.join(",")}`);Mh=t;lete=[];for(letrofzY)JY(r)&&e.push(r.namespace);od.enable(e.join(","))}functionUge(){returnMh}varOY={verbose:400,info:300,warning:200,error:100};function_ge(t){lete=Fh.extend(t);returnVY(Fh,e),{error:kh(e,"error"),warning:kh(e,"warning"),info:kh(e,"info"),verbose:kh(e,"verbose")}}functionVY(t,e){e.log=(...r)=>{t.log(...r)}}functionkh(t,e){letr=Object.assign(t.extend(e),{level:e});if(VY(t,r),JY(r)){lets=od.disable();od.enable(s+","+r.namespace)}returnzY.add(r),r}functionJY(t){return!!(Mh&&OY[t.level]<=OY[Mh])}function$Y(t){returnK0.includes(t)}ml.AzureLogger=Fh;ml.createClientLogger=_ge;ml.getLogLevel=Uge;ml.setLogLevel=YY});vareS=g(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});varpl=newWeakMap,Lh=newWeakMap,ad=classt{constructor(){this.onabort=null,pl.set(this,[]),Lh.set(this,!1)}getaborted(){if(!Lh.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");returnLh.get(this)}staticgetnone(){returnnewt}addEventListener(e,r){if(!pl.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");pl.get(this).push(r)}removeEventListener(e,r){if(!pl.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");lets=pl.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){thrownewError("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};functionjY(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);lete=pl.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Lh.set(t,!0)}varX0=classextendsError{constructor(e){super(e),this.name="AbortError"}},Z0=class{c
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new nu(i));return s.searchPaths.push(...QQ(s.patterns)),s})}static stat(e,r,s){return RQ(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Oc.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){B(`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 Oc.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Oc.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){B(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var zie=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(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function LG(t,e){return zie(this,void 0,void 0,function*(){return yield og.create(t,e)})}var Bg=Q(require("crypto"),1),Hc=Q(require("fs"),1),jo=Q(require("path"),1),S1=Q(x1(),1),R1=Q(require("util"),1);var mu;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(mu||(mu={}));var Wt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Wt||(Wt={}));var Dr;(function(t){t.GNU="gnu",t.BSD="bsd"})(Dr||(Dr={}));var Cg=2,Ig=5e3,WQ=5e3,jQ=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,N1=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,pu="cache.tar",KQ="manifest.txt",Hwe=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(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Gce=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIteratorisnotdefined.");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,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},o)}},qce="1.0";function gu(){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=jo.join(s,"actions","temp")}let r=jo.join(e,Bg.randomUUID());return yield Yo(r),r})}function tn(t){return Hc.statSync(t).size}function XQ(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(),c=yield LG(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,A=Gce(c.globGenerator()),u;u=yield A.next(),e=u.done,!e;l=!0){n=u.value,l=!1;let m=jo.relative(a,n).replace(new RegExp(`\\${jo.sep}`,"g"),"/");B(`Matched: ${m}`),m===""?o.push("."):o.push(`${m}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return o})}function fu(t){return qc(this,void 0,void 0,function*(){return R1.promisify(Hc.unlink)(t)})}function T1(t){return qc(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),B(`Checking ${e} ${r.join("")}`);try{yield zi(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){B(n.message)}return s=s.trim(),B(s),s})}function hu(){return qc(this,void 0,void 0,function*(){let t=yield T1("zstd",["--quiet"]),e=S1.clean(t);return B(`zstd version: ${e}`),t===""?Wt.Gzip:Wt.ZstdWithoutLong})}function Xi(t){return t===Wt.Gzip?mu.Gzip:mu.Zstd}function P1(){return qc(this,void 0,void 0,function*(){return Hc.existsSync(jQ)?jQ:(yield T1("tar")).toLowerCase().includes("gnutar")?ar("tar"):""})}function ZQ(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function zc(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(qce),Bg.createHash("sha256").update(s.join("|")).digest("hex")}function D1(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("UnabletogettheACTIONS_RUNTIME_TOKENenvvariable");return t}var El=Q(require("fs"),1),VV=require("url");var rn=class extends Error{constructor(e){super(e),this.name="AbortError"}};var k1=require("node:os"),v1=Q(require("node:util"),1),M1=Q(require("node:process"),1);function F1(t,...e){M1.default.stderr.write(`${v1.default.format(t,...e)}${k1.EOL}`)}var L1=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,_1,eb=[],tb=[],bg=[];L1&&rb(L1);var O1=Object.assign(t=>G1(t),{enable:rb,enabled:sb,disable:Hce,log:F1});function rb(t){_1=t,eb=[],tb=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?tb.push(r.substring(1)):eb.push(r);for(let r of bg)r.enabled=sb(r.namespace)}function sb(t){if(t.endsWith("*"))return!0;for(let e of tb)if(U1(t,e))return!1;for(let e of eb)if(U1(t,e))return!0;return!1}function U1(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],m="";for(let p of e)p==="*"&&m==="*"||(m=p,d.push(p));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-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;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let l=s===t.length,A=n===r.length,u=n===r.length-1&&r[n]==="*";return l&&(A||u)}function Hce(){let t=_1||"";return rb(""),t}function G1(t){let e=Object.assign(r,{enabled:sb(t),destroy:zce,log:O1.log,namespace:t,extend:Yce});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return bg.push(e),e}function zce(){let t=bg.indexOf(this);return t>=0?(bg.splice(t,1),!0):!1}function Yce(t){let e=G1(`${this.namespace}:${t}`);return e.log=this.log,e}var Yc=O1;var nb=["verbose","info","warning","error"],q1={verbose:400,info:300,warning:200,error:100};function H1(t,e){e.log=(...r)=>{t.log(...r)}}function z1(t){return nb.includes(t)}function wg(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=Yc(t.namespace);n.log=(...A)=>{Yc.log(...A)};function i(A){if(A&&!z1(A))throw new Error(`Unknown log level '${A}'. Acceptable values: ${nb.join(",")}`);s=A;let u=[];for(let d of e)o(d)&&u.push(d.namespace);Yc.enable(u.join(","))}r&&(z1(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${nb.join(",")}.`));function o(A){return!!(s&&q1[A.level]<=q1[s])}function a(A,u){let d=Object.assign(A.extend(u),{level:u});if(H1(A,d),o(d)){let m=Yc.disable();Yc.enable(m+","+d.namespace)}return e.add(d),d
${jce.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Rg(t){return t instanceof jt?!0:Xo(t)&&t.name==="RestError"}function lr(t,e){return Buffer.from(t,e)}var Tg=Q(require("node:http"),1),Pg=Q(require("node:https"),1),lb=Q(require("node:zlib"),1),j1=require("node:stream");var ss=Eu("ts-http-runtime");var Kce={};function yu(t){return t&&typeof t.pipe=="function"}function W1(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 K1(t){return t&&typeof t.byteLength=="number"}var Dg=class extends j1.Transform{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}},Ab=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new rn("Theoperationwasaborted.Requesthasalreadybeencanceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let l=new Rs;ss.info(`request to '${l.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 l=tle(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,f=new Dg(p);f.on("error",y=>{ss.error("Errorinuploadprogress",y)}),yu(a)?a.pipe(f):f.end(a),a=f}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let A=Xce(l),d={status:l.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?Zce(l,A):l;let m=e.onDownloadProgress;if(m){let p=new Dg(m);p.on("error",f=>{ss.error("Errorindownloadprogress",f)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ele(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();yu(a)&&(l=W1(a));let A=Promise.resolve();yu(c)&&(A=W1(c)),Promise.all([l,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(u=>{ss.warning("ErrorwhencleaningupabortListeneronhttpRequest",u)})}}}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((c,l)=>{let A=i?Tg.default.request(a,c):Pg.default.request(a,c);A.once("error",u=>{l(new jt(u.message,{code:u.code??jt.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let u=new rn("Theoperationwasaborted.Rejectingfromabortsignalcallbackwhilemakingrequest.");A.destroy(u),l(u)}),s&&yu(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):K1(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(ss.error("Unrecognizedbodytype",s),l(new jt("Unrecognizedbodytype"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Tg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Tg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Pg.default.globalAgent;let n=e.tlsSettings??Kce,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ss.info("NocachedTLSAgentexist,creatinganewAgent"),i=new Pg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function Xce(t){let e=kr();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0])
`;return e}function kAe(t){return t instanceof Uint8Array?t.byteLength:rf(t)?t.size===-1?void 0:t.size:void 0}function vAe(t){let e=0;for(let r of t){let s=kAe(r);if(s===void 0)return;e+=s}return e}async function MAe(t,e,r){let s=[lr(`--${r}`,"utf-8"),...e.flatMap(i=>[lr(`\r
`,"utf-8")],n=vAe(s);n&&t.headers.set("Content-Length",n),t.body=await r2(s)}var Bu="multipartPolicy",FAe=70,LAe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function UAe(t){if(t.length>FAe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!LAe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function nf(){return{name:Bu,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?UAe(r):r=PAe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await MAe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function of(){return Sg()}var s2=wg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),xSe=s2.logger;function on(t){return s2.createClientLogger(t)}var an=on("core-rest-pipeline");function Sb(t={}){return vg({logger:an.info,...t})}var Rb=Mg;function Tb(t={}){return Fg(t)}var af=Q(require("node:os"),1),cf=Q(require("node:process"),1);function n2(){return"User-Agent"}async function i2(t){if(cf.default&&cf.default.versions){let e=`${af.default.type()} ${af.default.release()}; ${af.default.arch()}`,r=cf.default.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 lf="1.22.2";function VAe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function o2(){return n2()}async function Af(t){let e=new Map;e.set("core-rest-pipeline",lf),await i2(e);let r=VAe(e);return t?`${t} ${r}`:r}var a2=o2(),c2="userAgentPolicy";function Pb(t={}){let e=Af(t.userAgentPrefix);return{name:c2,async sendRequest(r,s){return r.headers.has(a2)||r.headers.set(a2,await e),s(r)}}}var Lr=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Db(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Lr(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(A=>{c(),i(A)},A=>{c(),o(A)})}catch(A){o(A)}s?.addEventListener("abort",l)})}var KAe="The delay was aborted.";function Qu(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Db(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??KAe})}function eo(t){if(Xo(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 l2(t){return Xo(t)}function Xc(){return Ko()}var Ee=ta;var A2=Symbol("rawContent");function vb(t){return typeof t[A2]=="function"}function u2(t){return vb(t)?t[A2]():t}var uf=Bu;function Mb(){let t=nf();return{name:uf,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)vb(s.body)&&(s.body=u2(s.body));return t.sendRequest(e,r)}}}var Fb=Lg;function Lb(){return Ug()}function Ub(t={}){return Gg(t)}function _b(){return qg()}function to(t){return Qb(t)}function Ob(t,e){return Zg(t,e)}var d2="setClientRequestIdPolicy";function Gb(t="x-ms-client-request-id"){return{name:d2,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function qb(t){return ef(t)}function Hb(t){return tf(t)}var Zc={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function m2(t={}){let e=new zb(t.parentContext);return t.span&&(e=e.setValue(Zc.span,t.span)),t.namespace&&(e=e.setValue(Zc.namespace,t.namespace)),e}var zb=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Ide(c)){let u;return c.trim().length===0?u="Invalid space after '<'.":u="Tag '"+c+"' is an invalid name.",rt("InvalidTag",u,Kt(t,i))}let l=fde(t,i);if(l===!1)return rt("InvalidAttr","Attributes for '"+c+"' have open quote.",Kt(t,i));let A=l.value;if(i=l.index,A[A.length-1]==="/"){let u=i-A.length;A=A.substring(0,A.length-1);let d=j2(A,e);if(d===!0)s=!0;else return rt(d.err.code,d.err.msg,Kt(t,u+d.err.line))}else if(a)if(l.tagClosed){if(A.trim().length>0)return rt("InvalidTag","Closing tag '"+c+"' can'thaveattributesorinvalidstarting.",Kt(t,o));if(r.length===0)return rt("InvalidTag","Closingtag'"+c+"'hasnotbeenopened.",Kt(t,o));{let u=r.pop();if(c!==u.tagName){let d=Kt(t,u.tagStartPos);return rt("InvalidTag","Expectedclosingtag'"+u.tagName+"'(openedinline"+d.line+",col"+d.col+")insteadofclosingtag'"+c+"'.",Kt(t,o))}r.length==0&&(n=!0)}}else return rt("InvalidTag","Closingtag'"+c+"'doesn't have proper closing.",Kt(t,i));else{let u=j2(A,e);if(u!==!0)return rt(u.err.code,u.err.msg,Kt(t,i-A.length+u.err.line));if(n===!0)return rt("InvalidXml","Multiple possible root nodes found.",Kt(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=W2(t,i);continue}else if(t[i+1]==="?"){if(i=$2(t,++i),i.err)return i}else break;else if(t[i]==="&"){let u=yde(t,i);if(u==-1)return rt("InvalidChar","char '&' is not expected.",Kt(t,i));i=u}else if(n===!0&&!J2(t[i]))return rt("InvalidXml","Extra text at the end",Kt(t,i));t[i]==="<"&&i--}}else{if(J2(t[i]))continue;return rt("InvalidChar","char '"+t[i]+"' is not expected.",Kt(t,i))}if(s){if(r.length==1)return rt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Kt(t,r[0].tagStartPos));if(r.length>0)return rt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return rt("InvalidXml","Start tag expected.",1);return!0}function J2(t){return t===" "||t===" "||t===`
`);let e=new dr("!xml"),r=e,s="",n="";this.entityExpansionCount=0,this.currentExpandedLength=0;let i=new Fu(this.options.processEntities);for(let o=0;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="/"){let c=oa(t,">",o,"ClosingTagisnotclosed."),l=t.substring(o+2,c).trim();if(this.options.removeNSPrefix){let d=l.indexOf(":");d!==-1&&(l=l.substr(d+1))}this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&(s=this.saveTextToParentTag(s,r,n));let A=n.substring(n.lastIndexOf(".")+1);if(l&&this.options.unpairedTags.indexOf(l)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);let u=0;A&&this.options.unpairedTags.indexOf(A)!==-1?(u=n.lastIndexOf(".",n.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=n.lastIndexOf("."),n=n.substring(0,u),r=this.tagsNodeStack.pop(),s="",o=c}else if(t[o+1]==="?"){let c=Aw(t,o,!1,"?>");if(!c)throw new Error("PiTagisnotclosed.");if(s=this.saveTextToParentTag(s,r,n),!(this.options.ignoreDeclaration&&c.tagName==="?xml"||this.options.ignorePiTags)){let l=new dr(c.tagName);l.add(this.options.textNodeName,""),c.tagName!==c.tagExp&&c.attrExpPresent&&(l[":@"]=this.buildAttributesMap(c.tagExp,n,c.tagName)),this.addChild(r,l,n,o)}o=c.closeIndex+1}else if(t.substr(o+1,3)==="!--"){let c=oa(t,"-->",o+4,"Commentisnotclosed.");if(this.options.commentPropName){let l=t.substring(o+4,c-2);s=this.saveTextToParentTag(s,r,n),r.add(this.options.commentPropName,[{[this.options.textNodeName]:l}])}o=c}else if(t.substr(o+1,2)==="!D"){let c=i.readDocType(t,o);this.docTypeEntities=c.entities,o=c.i}else if(t.substr(o+1,2)==="!["){let c=oa(t,"]]>",o,"CDATAisnotclosed.")-2,l=t.substring(o+9,c);s=this.saveTextToParentTag(s,r,n);let A=this.parseTextData(l,r.tagname,n,!0,!1,!0,!0);A==null&&(A=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:l}]):r.add(this.options.textNodeName,A),o=c+2}else{let c=Aw(t,o,this.options.removeNSPrefix),l=c.tagName,A=c.rawTagName,u=c.tagExp,d=c.attrExpPresent,m=c.closeIndex;if(this.options.transformTagName){let y=this.options.transformTagName(l);u===l&&(u=y),l=y}if(this.options.strictReservedNames&&(l===this.options.commentPropName||l===this.options.cdataPropName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,n,!1));let p=r;p&&this.options.unpairedTags.indexOf(p.tagname)!==-1&&(r=this.tagsNodeStack.pop(),n=n.substring(0,n.lastIndexOf("."))),l!==e.tagname&&(n+=n?"."+l:l);let f=o;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,n,l)){let y="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)l[l.length-1]==="/"?(l=l.substr(0,l.length-1),n=n.substr(0,n.length-1),u=l):u=u.substr(0,u.length-1),o=c.closeIndex;else if(this.options.unpairedTags.indexOf(l)!==-1)o=c.closeIndex;else{let E=this.readStopNodeData(t,A,m+1);if(!E)throw new Error(`Unexpected end of ${A}`);o=E.i,y=E.tagContent}let h=new dr(l);l!==u&&d&&(h[":@"]=this.buildAttributesMap(u,n,l)),y&&(y=this.parseTextData(y,l,n,!0,d,!0,!0)),n=n.substr(0,n.lastIndexOf(".")),h.add(this.options.textNodeName,y),this.addChild(r,h,n,f)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){if(l[l.length-1]==="/"?(l=l.substr(0,l.length-1),n=n.substr(0,n.length-1),u=l):u=u.substr(0,u.length-1),this.options.transformTagName){let h=this.options.transformTagName(l);u===l&&(u=h),l=h}let y=new dr(l);l!==u&&d&&(y[":@"]=this.buildAttributesMap(u,n,l)),this.addChild(r,y,n,f),n=n.substr(0,n.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(l)!==-1){let y=new dr(l);l!==u&&d&&(y[":@"]=this.buildAttributesMap(u,n)),this.addChild(r,y,n,f),n=n.substr(0,n.lastIndexOf(".")),o=c.closeIndex;continue}else{let y=new dr(l);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),l!==u&&d&&(y[":@"]=this.buildAttributesMap(u,n,l)),this.addChild(r,y,n,f),r=y}s="",o=m}}else s+=t[o];return e.child};function Lde(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.
${a}:${decodeURIComponent(i[a])}`}returns}};varYe=classextendsca{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewGu(e,r,this)}computeHMACSHA256(e){return(0,gz.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varpt=on("storage-common");varas;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(as||(as={}));varao={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:as.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},mme=newLr("The operation was aborted."),qu=classextendsun{retryOptions;constructor(e,r,s=ao){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:ao.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):ao.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:ao.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:ao.maxRetryDelayInMs):ao.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:ao.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:ao.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,s){letn=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=vf(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=oo(n.url,ci.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leto;try{if(pt.info(`RetryPolicy: =====> Try=${s}${i?"Primary":"Secondary"}`),o=awaitthis._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))returno;r=r||!i&&o.status===404}catch(a){if(pt.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throwa}returnawaitthis.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)returnpt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;leti=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(letoofi)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)returnpt.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){leto=s?s.status:n?n.statusCode:0;if(!e&&o===404)returnpt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)returnpt.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){leto=s.headers.get(K.X_MS_CopySourceErrorCode);if(o!==void0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returnn?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(pt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,s){letn=0;if(e)switch(this.retryOptions.retryPolicyType){caseas.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseas.FIXED:n=this.retryOptions.retryDelayInMs;break}elsen=Math.random()*1e3;returnpt.info(`RetryPolicy: Delay for ${n}ms`),Lf(n,s,mme)}};varHu=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewqu(e,r,this.retryOptions)}};varpme="storageBrowserPolicy";functionfz(){return{name:pme,asyncsendRequest(t,e){returnEe||((t.method==="GET"||t.method==="HEAD")&&(t.url=oo(t.url,ci.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(K.COOKIE),t.headers.delete(K.CONTENT_LENGTH)),e(t)}}}vargme="StorageCorrectContentLengthPolicy";functionhz(){functiont(e){e.body&&(typeofe.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(K.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:gme,asyncsendRequest
`}),a}function n(i){let o=Mf(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Ff(i.url),l={};if(c){let A=[];for(let u in c)if(Object.prototype.hasOwnProperty.call(c,u)){let d=u.toLowerCase();l[d]=c[u],A.push(d)}A.sort();for(let u of A)a+=`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:newMs(t.version,i,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}functionbge(t,e){if(t=ha(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=Sn.parse(t.permissions.toString()).toString():n=Rn.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",fa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?vs(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:newMs(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}functionwge(t,e){if(t=ha(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=Sn.parse(t.permissions.toString()).toString():n=Rn.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",fa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?vs(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:newMs(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void0,void0,void0,t.encryptionScope),stringToSign:i}}functionxge(t,e){if(t=ha(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=Sn.parse(t.permissions.toString()).toString():n=Rn.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?vs(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:newMs(t.version,o,n,void0,void0,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}}functionNge(t,e){if(t=ha(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=Sn.parse(t.permissions.toString()).toString():n=Rn.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?vs(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:newMs(t.version,o,n,void0,void0,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}}functionSge(t,e){if(t=ha(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=Sn.parse(t.permissions.toString()).toString():n=Rn.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?vs(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:newMs(t.version,o,n,void0,void0,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}}functionRge(t,e){if(t=ha(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=Sn.parse(t.permissions.toString()).toString():n=Rn.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?vs(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:newMs(t.version,o,n,void0,void0,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}}functionfa(t,e,r){lets=[`/blob/${t}/${e}`];returnr&&s.push(`/${r}`),s.join("")}functionha(t){lete=t.version?t.version:Gf;if(t.snapshotTime&&e<"2018-11-09")throwRangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void0&&t.snapshotTime)throwRangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void0&&t.versionId)throwRangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throwRangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throwRangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throwRangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throwRangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throwRangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throwRangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");returnt.version=e,t}varrd=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){lets=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Xc()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ts||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ts||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnL.withSpan("BlobLeaseClient-acquireLease",r,asyncs=>G(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ts||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ts||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnL.withSpan("BlobLeaseClient-changeLease",r,asyncs=>{letn=G(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));returnthis._leaseId=e,n})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ts||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ts||e.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfN
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"}};fl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ia=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.