varr5=Object.create;varbC=Object.defineProperty;varn5=Object.getOwnPropertyDescriptor;vars5=Object.getOwnPropertyNames;vari5=Object.getPrototypeOf,o5=Object.prototype.hasOwnProperty;varh=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),a5=(t,e)=>{for(varrine)bC(t,r,{get:e[r],enumerable:!0})},c5=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofs5(e))!o5.call(t,s)&&s!==r&&bC(t,s,{get:()=>e[s],enumerable:!(n=n5(e,s))||n.enumerable});returnt};varB=(t,e,r)=>(r=t!=null?r5(i5(t)):{},c5(e||!t||!t.__esModule?bC(r,"default",{value:t,enumerable:!0}):r,t));varvD=h(Za=>{"use strict";varVwe=require("net"),d5=require("tls"),vC=require("http"),SD=require("https"),m5=require("events"),Jwe=require("assert"),p5=require("util");Za.httpOverHttp=h5;Za.httpsOverHttp=f5;Za.httpOverHttps=g5;Za.httpsOverHttps=y5;functionh5(t){vare=newti(t);returne.request=vC.request,e}functionf5(t){vare=newti(t);returne.request=vC.request,e.createSocket=RD,e.defaultPort=443,e}functiong5(t){vare=newti(t);returne.request=SD.request,e}functiony5(t){vare=newti(t);returne.request=SD.request,e.createSocket=RD,e.defaultPort=443,e}functionti(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||vC.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(vara=PD(s,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(n);return}}n.destroy(),e.removeSocket(n)})}p5.inherits(ti,m5.EventEmitter);ti.prototype.addRequest=function(e,r,n,s){vari=this,o=DC({request:e},i.options,PD(r,n,s));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)}})};ti.prototype.createSocket=function(e,r){varn=this,s={};n.sockets.push(s);vari=DC({},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 "+newBuffer(i.proxyAuth).toString("base64")),Oi("making CONNECT request");varo=n.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){Oi("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),n.removeSocket(s);return}if(m.length>0){Oi("got illegal response body from proxy"),d.destroy();varp=newError("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s);return}returnOi("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}functionA(u){o.removeAllListeners(),Oi(`tunneling socket could not be established, cause=%s
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}functionuc(t,e,r){letn=r.position;for(;n<e.length&&t(e[n]);)++n;returne.subarray(r.position,r.position=n)}functionLI(t,e,r,n){lets=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;returns===0&&i===t.length-1?t:t.subarray(s,i+1)}functionnp(t,e,r){if(t.length<e.length)return!1;for(letn=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}FT.exports={multipartFormDataParser:Tj,validateBoundary:kj}});varpc=h((BNe,WT)=>{"use strict";varPA=ce(),{ReadableStreamFrom:Lj,isBlobLike:UT,isReadableStreamLike:Fj,readableStreamClose:_j,createDeferredPromise:Uj,fullyReadBody:Oj,extractMimeType:qj,utf8DecodeBytes:HT}=Sr(),{FormData:OT}=RA(),{kState:mc}=qi(),{webidl:Hj}=vt(),{Blob:zj}=require("node:buffer"),FI=require("node:assert"),{isErrored:zT,isDisturbed:Gj}=require("node:stream"),{isArrayBuffer:Yj}=require("node:util/types"),{serializeAMimeType:Vj}=or(),{multipartFormDataParser:Jj}=_T(),_I;try{lett=require("node:crypto");_I=e=>t.randomInt(0,e)}catch{_I=t=>Math.floor(Math.random(t))}varsp=newTextEncoder;functionWj(){}varGT=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,YT;GT&&(YT=newFinalizationRegistry(t=>{lete=t.deref();e&&!e.locked&&!Gj(e)&&!zT(e)&&e.cancel("Response object has been garbage collected").catch(Wj)}));functionVT(t,e=!1){letr=null;tinstanceofReadableStream?r=t:UT(t)?r=t.stream():r=newReadableStream({asyncpull(c){letl=typeofs=="string"?sp.encode(s):s;l.byteLength&&c.enqueue(l),queueMicrotask(()=>_j(c))},start(){},type:"bytes"}),FI(Fj(r));letn=null,s=null,i=null,o=null;if(typeoft=="string")s=t,o="text/plain;charset=UTF-8";elseif(tinstanceofURLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";elseif(Yj(t))s=newUint8Array(t.slice());elseif(ArrayBuffer.isView(t))s=newUint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));elseif(PA.isFormDataLike(t)){letc=`----formdata-undici-0${`${_I(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
`);d.push(f),i+=f.byteLength,p&&(i=null),s=t,n=asyncfunction*(){for(letEofd)E.stream?yield*E.stream():yieldE},o=`multipart/form-data; boundary=${c}`}elseif(UT(t))s=t,i=t.size,t.type&&(o=t.type);elseif(typeoft[Symbol.asyncIterator]=="function"){if(e)thrownewTypeError("keepalive");if(PA.isDisturbed(t)||t.locked)thrownewTypeError("Response body object should not be disturbed or locked");r=tinstanceofReadableStream?t:Lj(t)}if((typeofs=="string"||PA.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){letc;r=newReadableStream({asyncstart(){c=n(t)[Symbol.asyncIterator]()},asyncpull(l){let{value:A,done:u}=awaitc.next();if(u)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});elseif(!zT(r)){letd=newUint8Array(A);d.byteLength&&l.enqueue(d)}returnl.desiredSize>0},asynccancel(l){awaitc.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function$j(t,e=!1){returntinstanceofReadableStream&&(FI(!PA.isDisturbed(t),"The body has already been consumed."),FI(!t.locked,"The stream is locked.")),VT(t,e)}functionjj(t,e){let[r,n]=e.stream.tee();returne.stream=r,{stream:n,length:e.length,source:e.source}}functionKj(t){if(t.aborted)thrownewDOMException("The operation was aborted.","AbortError")}functionXj(t){return{blob(){returndc(this,r=>{letn=qT(this);returnn===null?n="":n&&(n=Vj(n)),newzj([r],{type:n})},t)},arrayBuffer(){returndc(this,r=>newUint8Array(r).buffer,t)},text(){returndc(this,HT,t)},json(){returndc(this,eK,t)},formData(){returndc(this,r=>{letn=qT(this);if(n!==null)switch(n.essence){case"multipart/form-data":{lets=Jj(r,n);if(s==="failure")thrownewTypeError("Failed to parse body as FormData.");leti=newOT;returni[mc]=s,i}case"application/x-www-form-urlencoded":{lets=newURLSearchParams(r.toString()),i=newOT;for(let[o,a]ofs)i.append(o,a);returni}}thrownewTypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){returndc(this,r=>newUint8Array(r),t)}}}functionZj(t){Object.assign(t.prototype,Xj(t))}asyncfunctiondc(t,e,r){if(Hj.brandCheck(t,r),JT(t))thrownewTypeError("Body is unusable: Body has already been read");Kj(t[mc]);letn=Uj(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};returnt[mc].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(awaitOj(t[mc].body,i,s),n.promise)}functionJT(t){lete=t[mc].body;returne!=null&&(e.stream.locked||PA.isDisturbed(e.stream))}functioneK(t){returnJSON.parse(HT(t))}functionqT(t){lete=t[mc].headersList,r=qj(e);returnr==="failure"?null:r}WT.exports={extractBody:VT,safelyExtractBody:$j,cloneBody:jj,mixinBody:Zj,streamRegistry:YT,hasFinalizationRegistry:GT,bodyUnusable:JT}});varcM=h((QNe,aM)=>{"use strict";varV=require("node:assert"),Z=ce(),{channels:$T}=tc(),UI=CI(),{RequestContentLengthMismatchError:Uo,ResponseContentLengthMismatchError:jT,RequestAbortedError:sM,HeadersTimeoutError:tK,HeadersOverflowError:rK,SocketError:up,InformationalError:hc,BodyTimeoutError:nK,HTTPParserError:sK,ResponseExceededMaxSizeError:iK}=Ee(),{kUrl:iM,kReset:ar,kClient:cp,kParser:Ye,kBlocking:kA,kRunning:Mt,kPending:oK,kSize:KT,kWriting:zi,kQueue:Rn,kNoRef:vA,kKeepAliveDefaultTimeout:aK,kHostHeader:cK,kPendingIdx:lK,kRunningIdx:rn,kError:Vt,kPipelining:lp,kSocket:fc,kKeepAliveTimeoutValue:dp,kMaxHeadersSize:OI,kKeepAliveMaxTimeout:AK,kKeepAliveTimeoutThreshold:uK,kHeadersTimeout:dK,kBodyTimeout:mK,kStrictContentLength:zI,kMaxRequests:XT,kCounter:pK,kMaxResponseSize:hK,kOnError:ZT,kResume:Hi,kHTTPContext:oM}=Le(),Rr=Yk(),eM=Buffer.alloc(0),ip=Buffer[Symbol.species],op=Z.addListener,fK=Z.removeAllListeners,qI;asyncfunctiongK(){lett=process.env.JEST_WORKER_ID?QI():void0,e;try{e=awaitWebAssembly.compile(Wk())}catch{e=awaitWebAssembly.compile(t||QI())}returnawaitWebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{V(Ge.ptr===r);leti=n-ss+ns.byteOffset;returnGe.onStatus(newip(ns.buffer,i,s))||0},wasm_on_message_begin:r=>(V(Ge.ptr===r),Ge.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{V(Ge.ptr===r);leti=n-ss+ns.byteOffset;returnGe.onH
`}return $T.sendHeaders.hasSubscribers&&$T.sendHeaders.publish({request:e,headers:f,socket:m}),!c||d===0?rM(p,null,t,e,m,A,f,u):Z.isBuffer(c)?rM(p,c,t,e,m,A,f,u):Z.isBlobLike(c)?typeof c.stream=="function"?nM(p,c.stream(),t,e,m,A,f,u):xK(p,c,t,e,m,A,f,u):Z.isStream(c)?QK(p,c,t,e,m,A,f,u):Z.isIterable(c)?nM(p,c,t,e,m,A,f,u):V(!1),!0}function QK(t,e,r,n,s,i,o,a){V(i!==0||r[Mt]===0,"stream body cannot be pipelined");let c=!1,l=new mp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),A=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(f){Z.destroy(this,f)}},u=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!c){let p=new sM;queueMicrotask(()=>m(p))}},m=function(p){if(!c){if(c=!0,V(s.destroyed||s[zi]&&r[Mt]<=1),s.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")?Z.destroy(e,p):Z.destroy(e)}};e.on("data",A).on("end",m).on("error",m).on("close",d),e.resume&&e.resume(),s.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 rM(t,e,r,n,s,i,o,a){try{e?Z.isBuffer(e)&&(V(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length:${i}\r
`,"latin1")),n.onRequestSent(),r[Hi]()}catch(c){t(c)}}async function xK(t,e,r,n,s,i,o,a){V(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Uo;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length:${i}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ar]=!0),r[Hi]()}catch(c){t(c)}}async function nM(t,e,r,n,s,i,o,a){V(i!==0||r[Mt]===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)=>{V(c===null),s[Vt]?m(s[Vt]):c=d});s.on("close",l).on("drain",l);let u=new mp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Vt])throw s[Vt];u.write(d)||await A()}u.end()}catch(d){u.destroy(d)}finally{s.off("close",l).off("drain",l)}}var mp=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[zi]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Vt])throw r[Vt];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(s!==null&&o+l>s){if(i[zI])throw new Uo;process.emitWarning(new Uo)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ar]=!0),s===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[zI])throw new Uo;process.emitWarning(new Uo)}e[Ye].timeout&&e[Ye].timeoutType===gc&&e[Ye].timeout.refresh&&e[Ye].timeout.refresh(),n[Hi]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[zi]=!1,e&&(V(n[Mt]<=1,"pipeline should only contain this request"),s(e))}};aM.exports=EK});var fM=h((xNe,hM)=>{"use strict";var nn=require("node:assert"),{pipeline:bK}=require("node:stream"),Ae=ce(),{RequestContentLengthMismatchError:JI,RequestAbortedError:lM,SocketError:TA,InformationalError:WI}=Ee(),{kUrl:pp,kReset:fp,kClient:yc,kRunning:gp,kPending:wK,kQueue:Gi,kPendingIdx:$I,kRunningIdx:Pn,kError:Dn,kSocket:xt,kStrictContentLength:NK,kOnError:jI,kMaxConcurrentStreams:pM,kHTTP2Session:vn,kResume:Yi,kSize:SK,kHTTPContext:RK}=Le(),ai=Symbol("open streams"),AM,uM=!1,hp;try{hp=require("node:http2")}catch{hp={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:PK,HTTP2_HEADER_METHOD:vK,HTTP2_HEADER_PATH:DK,HTTP2_HEADER_SCHEME:kK,HTTP2_HEADER_CONTENT_LENGTH:TK,HTTP2_HEADER_EXPECT:MK,HTTP2_HEADER_STATUS:LK}}=hp;function FK(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 _K(t,e){t[xt]=e,uM||(uM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=hp.connect(t[pp],{createConnection:()=>e,peerMaxConcurrentStreams:t[pM]});r[ai]=0,r[yc]=t,r[xt]=e,Ae.addListener(r,"error",OK),Ae.addListener(r,"frameError",qK),Ae.addListener(r,"end",HK),Ae.addListener(r,"goaway",zK),Ae.addListener(r,"close",function(){let{[yc]:s}=this,{[xt]:i}=s,o=this[xt][Dn]||this[Dn]||new TA("closed",Ae.getSocketInfo(i));if(s[vn]=null,s.destroyed){nn(s[wK]===0);let a=s[Gi].splice(s[Pn]);for(let c=0;c<a.length;c++){let l=a[c];Ae.errorRequest(s,l,o)}}}),r.unref(),t[vn]=r,e[vn]=r,Ae.addListener(e,"error",function(s){nn(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn]=s,this[yc][jI](s)}),Ae.addListener(e,"end",function(){Ae.destroy(this,new TA("other side closed",Ae.getSocketInfo(this)))}),Ae.addListener(e,"close",function(){let s=this[Dn]||new TA("closed",Ae.getSocketInfo(this));t[xt]=null,this[vn]!=null&&this[vn].destroy(s),t[$I]=t[Pn],nn(t[gp]===0),t.emit("disconnect",t[pp],[t],s),t[Yi]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return YK(t,...s)},resume(){UK(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function UK(t){let e=t[xt];e?.destroyed===!1&&(t[SK]===0&&t[pM]===0?(e.unref(),t[vn].unref()):(e.ref(),t[vn].ref()))}function OK(t){nn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][Dn]=t,this[yc][jI](t)}function qK(t,e,r){if(r===0){let n=new WI(`HTTP/2:"frameError"received-type${t},code${e}`);this[xt][Dn]=n,this[yc][jI](n)}}function HK(){let t=new TA("other side closed",Ae.getSocketInfo(this[xt]));this.destroy(t),Ae.destroy(this[xt],t)}function zK(t){let e=this[Dn]||new TA(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,Ae.getSocketInfo(this)),r=this[yc];if(r[xt]=null,r[RK]=null,this[vn]!=null&&(this[vn].destroy(e),this[vn]=null),Ae.destroy(this[xt],e),r[Pn]<r[Gi].length){let n=r[Gi][r[Pn]];r[Gi][r[Pn]++]=null,Ae.errorRequest(r,n,e),r[$I]=r[Pn]}nn(r[gp]===0),r.emit("disconnect",r[pp],[r],e),r[Yi]()}function GK(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function YK(t,e){let r=t[vn],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:A}=e;if(o)return Ae.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let u={};for(let I=0;I<l.length;I+=2){let w=l[I+0],D=l[I+1];if(Array.isArray(D))for(let F=0;F<D.length;F++)u[w]?u[w]+=`,${D[F]}`:u[w]=D[F];else u[w]=D}let d,{hostname:m,port:p}=t[pp];u[PK]=i||`${m}${p?`:${p}`:""}`,u[vK]=n;let f=I=>{e.aborted||e.completed||(I=I||new lM,Ae.errorRequest(t,e,I),d!=null&&Ae.destroy(d,I),Ae.destroy(A,I),t[Gi][t[Pn]++]=null,t[Yi]())};try{e.onConnect(f)}catch(I){Ae.errorRequest(t,e,I)}if(e.aborted)return!1;if(n==="CONNECT"
`.trim())}};$F.exports=AQ});var Op=h((i0e,e2)=>{"use strict";var KF=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:gee}=Ee(),yee=Qc();ZF()===void 0&&XF(new yee);function XF(t){if(!t||typeof t.dispatch!="function")throw new gee("Argument agent must implement Agent");Object.defineProperty(globalThis,KF,{value:t,writable:!0,enumerable:!1,configurable:!1})}function ZF(){return globalThis[KF]}e2.exports={setGlobalDispatcher:XF,getGlobalDispatcher:ZF}});var qp=h((a0e,t2)=>{"use strict";t2.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 n2=h((c0e,r2)=>{"use strict";var Eee=Ep();r2.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new Eee(r,o,s,i);return r(a,c)}}});var i2=h((l0e,s2)=>{"use strict";var Cee=Pp();s2.exports=t=>e=>function(n,s){return e(n,new Cee({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var a2=h((A0e,o2)=>{"use strict";var Iee=ce(),{InvalidArgumentError:Bee,RequestAbortedError:Qee}=Ee(),xee=qp(),uQ=class extends xee{#e=1024*1024;#t=null;#r=!1;#i=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Bee("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.#n=e}onHeaders(e,r,n,s){let o=Iee.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Qee(`Responsesize(${o})largerthanmaxSize(${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,n,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function bee({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new uQ({maxSize:i},s);return e(n,o)}}o2.exports=bee});var A2=h((u0e,l2)=>{"use strict";var{isIP:wee}=require("node:net"),{lookup:Nee}=require("node:dns"),See=qp(),{InvalidArgumentError:kc,InformationalError:Ree}=Ee(),c2=Math.pow(2,31)-1,dQ=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.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,n){let s=this.#r.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 Ree("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="",n(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${A}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#r.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}`)}}#i(e,r,n){Nee(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===c2?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===
${i}`;break;case"retry":zU(i)&&(r[s]=i);break;case"id":GU(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&zU(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&GU(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}}};YU.exports={EventSourceStream:ZQ}});var e1=h((H0e,ZU)=>{"use strict";var{pipeline:_se}=require("node:stream"),{fetching:Use}=ru(),{makeRequest:Ose}=Lc(),{webidl:pi}=vt(),{EventSourceStream:qse}=VU(),{parseMIMEType:Hse}=or(),{createFastMessageEvent:zse}=Hc(),{isNetworkError:JU}=eu(),{delay:Gse}=KQ(),{kEnumerableProperty:na}=ce(),{environmentSettingsObject:WU}=Sr(),$U=!1,jU=3e3,hu=0,KU=1,fu=2,Yse="anonymous",Vse="use-credentials",Jc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=hu;#s=null;#n=null;#o;#a;constructor(e,r={}){super(),pi.util.markAsUncloneable(this);let n="EventSource constructor";pi.argumentLengthCheck(arguments,1,n),$U||($U=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=pi.converters.USVString(e,n,"url"),r=pi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:jU};let s=WU,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Yse;r.withCredentials&&(o=Vse,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=WU.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=Ose(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===fu)return;this.#i=hu;let e={request:this.#s,dispatcher:this.#o},r=n=>{JU(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(JU(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let s=n.headersList.get("content-type",!0),i=s!==null?Hse(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.#i=KU,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let a=new qse({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(zse(c.type,c.options))}});_se(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Use(e)}async#l(){this.#i!==fu&&(this.#i=hu,this.dispatchEvent(new Event("error")),await Gse(this.#a.reconnectionTime),this.#i===hu&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){pi.brandCheck(this,t),this.#i!==fu&&(this.#i=fu,this.#n.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}},XU={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:hu,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:KU,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:fu,writable:!1}};Object.defineProperties(Jc,XU);Object.defineProperties(Jc.prototype,XU);Obj
%s`,w,w,y,n);varD=y.type==="*"?Zx:y.type==="?"?Xx:"\\"+y.type;s=!0,n=n.slice(0,y.reStart)+D+"\\("+w}p(),i&&(n+="\\\\");varF=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(varae=a.length-1;ae>-1;ae--){varye=a[ae],Qe=n.slice(0,ye.reStart),H=n.slice(ye.reStart,ye.reEnd-8),ee=n.slice(ye.reEnd-8,ye.reEnd),_=n.slice(ye.reEnd);ee+=_;varde=Qe.split("(").length-1,At=_;for(f=0;f<de;f++)At=At.replace(/\)[+*?]?/,"");_=At;varHe="";_===""&&e!==jh&&(He="$");vartt=Qe+H+_+He+ee;n=tt}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===jh)return[n,s];if(!s)returnCle(t);varZs=r.nocase?"i":"";try{varNr=newRegExp("^"+n+"$",Zs)}catch{returnnewRegExp("$.")}returnNr._glob=t,Nr._src=n,Nr}_r.makeRe=function(t,e){returnnewDt(t,e||{}).makeRe()};Dt.prototype.makeRe=Ele;functionEle(){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?Zx:e.dot?ule:dle,n=e.nocase?"i":"",s=t.map(function(i){returni.map(function(o){returno===eb?r:typeofo=="string"?Ile(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=newRegExp(s,n)}catch{this.regexp=!1}returnthis.regexp}_r.match=function(t,e,r){r=r||{};varn=newDt(e,r);returnt=t.filter(function(s){returnn.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Dt.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;varn=this.options;Lu.sep!=="/"&&(e=e.split(Lu.sep).join("/")),e=e.split(eH),this.debug(this.pattern,"split",e);vars=this.set;this.debug(this.pattern,"set",s);vari,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){vara=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);varl=this.matchOne(c,a,r);if(l)returnn.flipNegate?!0:!this.negate}returnn.flipNegate?!1:this.negate};Dt.prototype.matchOne=function(t,e,r){varn=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(vars=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");varc=e[i],l=t[s];if(this.debug(e,c,l),c===!1)return!1;if(c===eb){this.debug("GLOBSTAR",[e,c,l]);varA=s,u=i+1;if(u===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(;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===".."||!n.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(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newMme.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;letn=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&deletethis.sockets[e])}getName(e){returnthis.isSecureEndpoint(e)?Lme.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){lets={...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),ainstanceofjG.Agent)try{returna.addRequest(e,s)}catch(c){returnn(c)}this[ys].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){lete=this[ys].currentSocket;if(this[ys].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[ys].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[ys]&&(this[ys].defaultPort=e)}getprotocol(){returnthis[ys].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[ys]&&(this[ys].protocol=e)}};Hr.Agent=$b});vareY=h(fl=>{"use strict";varFme=fl&&fl.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(fl,"__esModule",{value:!0});fl.parseProxyResponse=void0;var_me=Fme(qf()),Hf=(0,_me.default)("https-proxy-agent:parse-proxy-response");functionUme(t){returnnewPromise((e,r)=>{letn=0,s=[];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(),Hf("onend"),r(newError("Proxy connection ended before receiving CONNECT response"))}functionc(A){o(),Hf("onerror %o",A),r(A)}functionl(A){s.push(A),n+=A.length;letu=Buffer.concat(s,n),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",Jme),r.secureEndpoint?(rd("Upgrading socket connection to TLS"),tY.connect({...nY(rY(r),"host","path","port"),socket:s})):s;s.destroy();letu=newzf.Socket({writable:!1});returnu.readable=!0,e.once("socket",d=>{rd("Replaying proxy buffer for failed request"),(0,Hme.default)(d.listenerCount("data")>0),d.push(A),d.push(null)}),u}};Gf.protocols=["http","https"];fn.HttpsProxyAgent=Gf;functionJme(t){t.resume()}functionnY(t,...e){letr={},n;for(nint)e.includes(n)||(r[n]=t[n]);returnr}});varlY=h(gr=>{"use strict";varWme=gr&&gr.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vars=Object.getOwnPropertyDescriptor(e,r);(!s||("get"ins?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),$me=gr&&gr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aY=gr&&gr.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Wme(e,t,r);return$me(e,t),e};Object.defineProperty(gr,"__esModule",{value:!0});gr.req=gr.json=gr.toBuffer=void0;varjme=aY(require("http")),Kme=aY(require("https"));asyncfunctioncY(t){lete=0,r=[];forawait(letnoft)e+=n.length,r.push(n);returnBuffer.concat(r,e)}gr.toBuffer=cY;asyncfunctionXme(t){letr=(awaitcY(t)).toString("utf8");try{returnJSON.parse(r)}catch(n){lets=n;throws.message+=` (input: ${r})`,s}}gr.json=Xme;functionZme(t,e={}){letn=((typeoft=="string"?t:t.href).startsWith("https:")?Kme:jme).request(t,e),s=newPromise((i,o)=>{n.once("response",i).once("error",o).end()});returnn.then=s.then.bind(s),n}gr.req=Zme});varmY=h(zr=>{"use strict";varuY=zr&&zr.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vars=Object.getOwnPropertyDescriptor(e,r);(!s||("get"ins?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),epe=zr&&zr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dY=zr&&zr.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&uY(e,t,r);returnepe(e,t),e},tpe=zr&&zr.__exportStar||function(t,e){for(varrint)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&uY(e,t,r)};Object.defineProperty(zr,"__esModule",{value:!0});zr.Agent=void0;varrpe=dY(require("net")),AY=dY(require("http")),npe=require("https");tpe(lY(),zr);varEs=Symbol("AgentBaseInternalState"),jb=classextendsAY.Agent{constructor(e){super(e),this[Es]={}}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(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newrpe.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;letn=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&deletethis.sockets[e])}getName(e){return(typeofe.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?npe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){lets={...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),ainstanceofAY.Agent)returna.addRequest(e,s);this[Es].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){lete=this[Es].currentSocket;if(this[Es].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[Es].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[Es]&&(this[Es].defaultPort=e)}getprotocol(){returnthis[Es].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[Es]&&(this[Es].protocol=e)}};zr.Agent=jb});varfY=h(gn=>{"use strict";varspe=gn&&gn.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vars=Object.getOwnPropertyDescriptor(e,r);(!s||("get"ins?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),ipe=gn&&gn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hY=gn&&gn.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&spe(e,t,r);returnipe(e,t),e},ope=gn&&gn.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(gn,"__esModule",{value:!0});gn.HttpProxyAgent=void0;varape=hY(require("net")),cpe=hY(require("tls")),lpe=ope(qf()),Ape=require("events"),upe=mY(),pY=require("url"),gl=(0,lpe.default)("http-proxy-agent"),Yf=classextendsupe.Agent{constructor(e,r){super(r),this.proxy=typeofe=="string"?newpY.URL(e):e,this.proxyHeaders=r?.headers??{},gl("Creating new HttpProxyAgent instance: %o",this.proxy.href);letn=(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?dpe(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=newpY.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(n.username||n.password){letl=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.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);letn,s;gl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(gl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`)+4,e.outputData[0].data=e._header+n.substring(s),gl("Output buffer: %o",e.outputData[0].data));leti;returnthis.proxy.protocol==="https:"?(gl("Creating `tls.Socket`: %o",this.connectOpts),i=cpe.connect(this.connectOpts)):(gl("Creating `net.Socket`: %o",this.connectOpts),i=ape.connect(this.connectOpts)),await(0,Ape.once)(i,"connect"),i}};Yf.protocols=["http","https"];gn.HttpProxyAgent=Yf;functiondpe(t,...e){letr={},n;for(nint)e.includes(n)||(r[n]=t[n]);returnr}});var_Y=h(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.state=void0;ig.state={instrumenterImplementation:void0}});vartV=h(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.state=void0;Ag.state={operationRequestMap:newWeakMap}});vark3=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});varDEe=require("os"),kEe=require("util");functionTEe(t){returnt&&typeoft=="object"&&"default"int?t:{default:t}}varMEe=TEe(kEe);functionLEe(t,...e){process.stderr.write(`${MEe.default.format(t,...e)}${DEe.EOL}`)}varQ3=typeofprocess<"u"&&process.env&&process.env.DEBUG||void0,b3,SR=[],RR=[],Ry=[];Q3&&PR(Q3);varw3=Object.assign(t=>N3(t),{enable:PR,enabled:vR,disable:FEe,log:LEe});functionPR(t){b3=t,SR=[],RR=[];lete=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(letnofr)n.startsWith("-")?RR.push(newRegExp(`^${n.substr(1)}$`)):SR.push(newRegExp(`^${n}$`));for(letnofRy)n.enabled=vR(n.namespace)}functionvR(t){if(t.endsWith("*"))return!0;for(leteofRR)if(e.test(t))return!1;for(leteofSR)if(e.test(t))return!0;return!1}functionFEe(){lett=b3||"";returnPR(""),t}functionN3(t){lete=Object.assign(r,{enabled:vR(t),destroy:_Ee,log:w3.log,namespace:t,extend:UEe});functionr(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}returnRy.push(e),e}function_Ee(){lett=Ry.indexOf(this);returnt>=0?(Ry.splice(t,1),!0):!1}functionUEe(t){lete=N3(`${this.namespace}:${t}`);returne.log=this.log,e}varzd=w3,S3=newSet,Ny=typeofprocess<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void0,Py,vy=zd("azure");vy.log=(...t)=>{zd.log(...t)};varDR=["verbose","info","warning","error"];Ny&&(D3(Ny)?R3(Ny):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Ny}'; logging is not enabled. Acceptable values: ${DR.join(", ")}.`));functionR3(t){if(t&&!D3(t))thrownewError(`Unknown log level '${t}'. Acceptable values: ${DR.join(",")}`);Py=t;lete=[];for(letrofS3)v3(r)&&e.push(r.namespace);zd.enable(e.join(","))}functionOEe(){returnPy}varx3={verbose:400,info:300,warning:200,error:100};functionqEe(t){lete=vy.extend(t);returnP3(vy,e),{error:Sy(e,"error"),warning:Sy(e,"warning"),info:Sy(e,"info"),verbose:Sy(e,"verbose")}}functionP3(t,e){e.log=(...r)=>{t.log(...r)}}functionSy(t,e){letr=Object.assign(t.extend(e),{level:e});if(P3(t,r),v3(r)){letn=zd.disable();zd.enable(n+","+r.namespace)}returnS3.add(r),r}functionv3(t){return!!(Py&&x3[t.level]<=x3[Py])}functionD3(t){returnDR.includes(t)}Ml.AzureLogger=vy;Ml.createClientLogger=qEe;Ml.getLogLevel=OEe;Ml.setLogLevel=R3});varMR=h(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});varLl=newWeakMap,Dy=newWeakMap,Gd=classt{constructor(){this.onabort=null,Ll.set(this,[]),Dy.set(this,!1)}getaborted(){if(!Dy.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");returnDy.get(this)}staticgetnone(){returnnewt}addEventListener(e,r){if(!Ll.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");Ll.get(this).push(r)}removeEventListener(e,r){if(!Ll.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");letn=Ll.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){thrownewError("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};functionT3(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);lete=Ll.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Dy.set(t,!0)}varkR=classextendsError{constructor(e){super(e),this.name="AbortError"}},TR=class{c
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function Lxe(){Object.keys(XE).forEach(function(t){delete XE[t]})}});var eC=h(Ks=>{"usestrict";Ks.__esModule=!0;Ks.HandlebarsEnvironment=Uv;function NW(t){return t&&t.__esModule?t:{default:t}}var Ja=ir(),Fxe=Zr(),Fv=NW(Fxe),_xe=kv(),Uxe=QW(),Oxe=Mv(),ZE=NW(Oxe),qxe=Lv(),Hxe="4.7.9";Ks.VERSION=Hxe;var zxe=8;Ks.COMPILER_REVISION=zxe;var Gxe=7;Ks.LAST_COMPATIBLE_COMPILER_REVISION=Gxe;var Yxe={1:"<=1.0.rc.2",2:"==1.0.0-rc.3",3:"==1.0.0-rc.4",4:"==1.x.x",5:"==2.0.0-alpha.x",6:">=2.0.0-beta.1",7:">=4.0.0<4.3.0",8:">=4.3.0"};Ks.REVISION_CHANGES=Yxe;var _v="[objectObject]";function Uv(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},_xe.registerDefaultHelpers(this),Uxe.registerDefaultDecorators(this)}Uv.prototype={constructor:Uv,logger:ZE.default,log:ZE.default.log,registerHelper:function(e,r){if(Ja.toString.call(e)===_v){if(r)throw new Fv.default("Argnotsupportedwithmultiplehelpers");Ja.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Ja.toString.call(e)===_v)Ja.extend(this.partials,e);else{if(typeof r>"u")throw new Fv.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(Ja.toString.call(e)===_v){if(r)throw new Fv.default("Argnotsupportedwithmultipledecorators");Ja.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){qxe.resetLoggedProperties()}};var Vxe=ZE.default.log;Ks.log=Vxe;Ks.createFrame=Ja.createFrame;Ks.logger=ZE.default});var RW=h((tC,SW)=>{"usestrict";tC.__esModule=!0;function Ov(t){this.string=t}Ov.prototype.toString=Ov.prototype.toHTML=function(){return""+this.string};tC.default=Ov;SW.exports=tC.default});var PW=h(qv=>{"usestrict";qv.__esModule=!0;qv.wrapHelper=Jxe;function Jxe(t,e){if(typeof t!="function")return t;var r=function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)};return r}});var LW=h(Do=>{"usestrict";Do.__esModule=!0;Do.checkRevision=Zxe;Do.template=ebe;Do.wrapProgram=rC;Do.resolvePartial=tbe;Do.invokePartial=rbe;Do.noop=TW;function Wxe(t){return t&&t.__esModule?t:{default:t}}function $xe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var jxe=ir(),cA=$xe(jxe),Kxe=Zr(),Li=Wxe(Kxe),Fi=eC(),vW=kv(),Xxe=PW(),DW=Lv();function Zxe(t){var e=t&&t[0]||1,r=Fi.COMPILER_REVISION;if(!(e>=Fi.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Fi.COMPILER_REVISION))if(e<Fi.LAST_COMPATIBLE_COMPILER_REVISION){var n=Fi.REVISION_CHANGES[r],s=Fi.REVISION_CHANGES[e];throw new Li.default("TemplatewasprecompiledwithanolderversionofHandlebarsthanthecurrentruntime.Pleaseupdateyourprecompilertoanewerversion("+n+")ordowngradeyourruntimetoanolderversion("+s+").")}else throw new Li.default("TemplatewasprecompiledwithanewerversionofHandlebarsthanthecurrentruntime.Pleaseupdateyourruntimetoanewerversion("+t[1]+").")}function ebe(t,e){if(!e)throw new Li.default("Noenvironmentpassedtotemplate");if(!t||!t.main)throw new Li.default("Unknowntemplateobject:"+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(o,a,c){c.hash&&(a=cA.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var A=l.split(`
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functionw1(t,e){if(process.env.GITHUB_OUTPUT||"")returnRC("OUTPUT",PC(t,e));process.stdout.write(hx.EOL),Ui("set-output",{name:t},ei(e))}functionN1(t){process.exitCode=px.Failure,Zc(t)}functionaa(){returnprocess.env.RUNNER_DEBUG==="1"}functionx(t){Ui("debug",{},t)}functionZc(t,e={}){Ui("error",wC(e),tinstanceofError?t.toString():t)}functionht(t,e={}){Ui("warning",wC(e),tinstanceofError?t.toString():t)}functionpe(t){process.stdout.write(t+hx.EOL)}functionFie(t){SC("group",t)}function_ie(){SC("endgroup")}functionds(t,e){returnLie(this,void0,void0,function*(){Fie(t);letr;try{r=yielde()}finally{_ie()}returnr})}functionTh(t,e){if(process.env.GITHUB_STATE||"")returnRC("STATE",PC(t,e));Ui("save-state",{name:t},ei(e))}functionS1(t){returnprocess.env[`STATE_${t}`]||""}varFE=B(require("fs"),1),Cv=B(require("os"),1),Iv=B(require("path"),1);varP1=B(require("os"),1);functionQu(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionv1(t,e,r){letn=newgx(t,e,r);process.stdout.write(n.toString()+P1.EOL)}varR1="::",gx=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=R1+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){lets=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Oie(s)}`)}}returne+=`${R1}${Uie(this.message)}`,e}};functionUie(t){returnQu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionOie(t){returnQu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}vark1=require("os"),xu=require("fs"),yx=function(t,e,r,n){functions(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(A){try{l(n.next(A))}catch(u){o(u)}}functionc(A){try{l(n.throw(A))}catch(u){o(u)}}functionl(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},{access:qie,appendFile:Hie,writeFile:zie}=xu.promises,D1="GITHUB_STEP_SUMMARY";varEx=class{constructor(){this._buffer=""}filePath(){returnyx(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[D1];if(!e)thrownewError(`Unable to find environment variable for $${D1}. Check if your runtime environment supports job summaries.`);try{yieldqie(e,xu.constants.R_OK|xu.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,n={}){lets=Object.entries(n).map(([i,o])=>` ${i}="${o}"`).join("");returnr?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){returnyx(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?zie:Hie)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnyx(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(k1.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(s).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",s=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);returnthis.addRaw(i).addEOL()}addTable(e){letr=e.map(s=>{leti=s.map(o=>{if(typeofo=="string")returnthis.wrap("td",o);let{header:a,data:c,colspan:l,rowspan:A}=o,u=a?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),A&&{rowspan:A});returnthis.wrap(u,c,d)}).join("");returnthis.wrap("tr",i)}).join(""),n=this.wrap("table",r);returnthis.addRaw(n).addEOL()}addDetails(e,r){letn=this.wrap("details",this.wrap("summary",e)+r);returnthis.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.wr
`,"utf-8")],s=wpe(n);s&&t.headers.set("Content-Length",s),t.body=awaitwY(n)}varnd="multipartPolicy",Spe=70,Rpe=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functionPpe(t){if(t.length>Spe)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Rpe.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}functionXf(){return{name:nd,asyncsendRequest(t,e){if(!t.multipartBody)returne(t);if(t.body)thrownewError("multipartBody and regular body cannot be set at the same time");letr=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)thrownewError(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)thrownewError(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);returnr??=o,r?Ppe(r):r=Qpe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),awaitNpe(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}functionZf(){returnBf()}varNY=Ef({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),bMe=NY.logger;functionCs(t){returnNY.createClientLogger(t)}varIs=Cs("core-rest-pipeline");functionnw(t={}){returnSf({logger:Is.info,...t})}varsw=Rf;functioniw(t={}){returnPf(t)}vareg=B(require("node:os"),1),tg=B(require("node:process"),1);functionSY(){return"User-Agent"}asyncfunctionRY(t){if(tg.default&&tg.default.versions){lete=`${eg.default.type()}${eg.default.release()}; ${eg.default.arch()}`,r=tg.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})`)}}varrg="1.22.2";function_pe(t){lete=[];for(let[r,n]oft){lets=n?`${r}/${n}`:r;e.push(s)}returne.join(" ")}functionPY(){returnSY()}asyncfunctionng(t){lete=newMap;e.set("core-rest-pipeline",rg),awaitRY(e);letr=_pe(e);returnt?`${t}${r}`:r}varvY=PY(),DY="userAgentPolicy";functionow(t={}){lete=ng(t.userAgentPrefix);return{name:DY,asyncsendRequest(r,n){returnr.headers.has(vY)||r.headers.set(vY,awaite),n(r)}}}varGr=classextendsError{constructor(e){super(e),this.name="AbortError"}};functionaw(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};returnnewPromise((i,o)=>{functiona(){o(newGr(s??"The operation was aborted."))}functionc(){n?.removeEventListener("abort",l)}functionl(){r?.(),c(),a()}if(n?.aborted)returna();try{t(A=>{c(),i(A)},A=>{c(),o(A)})}catch(A){o(A)}n?.addEventListener("abort",l)})}varzpe="The delay was aborted.";functionsd(t,e){letr,{abortSignal:n,abortErrorMsg:s}=e??{};returnaw(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??zpe})}functiongo(t){if(pa(t))returnt.message;{lete;try{typeoft=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}functionkY(t){returnpa(t)}functionyl(){returnma()}varIe=ga;varTY=Symbol("rawContent");functionlw(t){returntypeoft[TY]=="function"}functionMY(t){returnlw(t)?t[TY]():t}varsg=nd;functionAw(){lett=Xf();return{name:sg,sendRequest:async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)lw(n.body)&&(n.body=MY(n.body));returnt.sendRequest(e,r)}}}varuw=vf;functiondw(){returnDf()}functionmw(t={}){returnMf(t)}functionpw(){returnLf()}functionyo(t){returnXb(t)}functionhw(t,e){returnJf(t,e)}varLY="setClientRequestIdPolicy";functionfw(t="x-ms-client-request-id"){return{name:LY,asyncsendRequest(e,r){returne.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}functiongw(t){returnWf(t)}functionyw(t){return$f(t)}varEl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};functionFY(t={}){lete=newEw(t.parentContext);returnt.span&&(e=e.setValue(El.span,t.span)),t.namespace&&(e=e.setValue(El.namespace,t.namespace)),e}varEw=classt{_contextMap;constructor(e){this._contextMap=einstanceoft?newMap(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--),!mfe(c)){let u;return c.trim().length===0?u="Invalid space after '<'.":u="Tag '"+c+"' is an invalid name.",it("InvalidTag",u,rr(t,i))}let l=cfe(t,i);if(l===!1)return it("InvalidAttr","Attributes for '"+c+"' have open quote.",rr(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=CV(A,e);if(d===!0)n=!0;else return it(d.err.code,d.err.msg,rr(t,u+d.err.line))}else if(a)if(l.tagClosed){if(A.trim().length>0)return it("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",rr(t,o));if(r.length===0)return it("InvalidTag","Closing tag '"+c+"' has not been opened.",rr(t,o));{let u=r.pop();if(c!==u.tagName){let d=rr(t,u.tagStartPos);return it("InvalidTag","Expected closing tag '"+u.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",rr(t,o))}r.length==0&&(s=!0)}}else return it("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",rr(t,i));else{let u=CV(A,e);if(u!==!0)return it(u.err.code,u.err.msg,rr(t,i-A.length+u.err.line));if(s===!0)return it("InvalidXml","Multiple possible root nodes found.",rr(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=EV(t,i);continue}else if(t[i+1]==="?"){if(i=yV(t,++i),i.err)return i}else break;else if(t[i]==="&"){let u=ufe(t,i);if(u==-1)return it("InvalidChar","char '&' is not expected.",rr(t,i));i=u}else if(s===!0&&!gV(t[i]))return it("InvalidXml","Extra text at the end",rr(t,i));t[i]==="<"&&i--}}else{if(gV(t[i]))continue;return it("InvalidChar","char '"+t[i]+"' is not expected.",rr(t,i))}if(n){if(r.length==1)return it("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",rr(t,r[0].tagStartPos));if(r.length>0)return it("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return it("InvalidXml","Start tag expected.",1);return!0}function gV(t){return t===" "||t===" "||t===`
`||t==="\r"}function yV(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 it("InvalidXml","XML declaration allowed only at the start of the document.",rr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function EV(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var ofe='"',afe="'";function cfe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===ofe||t[e]===afe)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 lfe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function CV(t,e){let r=hg(t,lfe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return it("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",fd(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return it("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",fd(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return it("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",fd(r[s]));let i=r[s][2];if(!dfe(i))return it("InvalidAttr","Attribute '"+i+"' is an invalid name.",fd(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return it("InvalidAttr","Attribute '"+i+"' is repeated.",fd(r[s]))}return!0}function Afe(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 ufe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Afe(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 it(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function dfe(t){return Fw(t)}function mfe(t){return Fw(t)}function rr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function fd(t){return t.startIndex+t[1].length}var IV={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},BV={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\
`);let e=new Er("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Ed(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let A=xl(t,">",a,"Closing Tag is not closed."),u=t.substring(a+2,A).trim();if(s.removeNSPrefix){let m=u.indexOf(":");m!==-1&&(u=u.substr(m+1))}u=Yw(s.transformTagName,u,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(u&&s.unpairedTagsSet.has(u))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${u}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=A}else if(l===63){let A=Vw(t,a,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let u=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(u){let d=u[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&A.tagName==="?xml"||s.ignorePiTags)){let d=new Er(A.tagName);d.add(s.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=u),this.addChild(r,d,this.readonlyMatcher,a)}a=A.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let A=xl(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let u=t.substring(a+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:u}])}a=A}else if(l===33&&t.charCodeAt(a+2)===68){let A=i.readDocType(t,a);this.entityDecoder.addInputEntities(A.entities),a=A.i}else if(l===33&&t.charCodeAt(a+2)===91){let A=xl(t,"]]>",a,"CDATA is not closed.")-2,u=t.substring(a+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(u,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:u}]):r.add(s.textNodeName,d),a=A+2}else{let A=Vw(t,a,s.removeNSPrefix);if(!A){let D=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${D}"`)}let u=A.tagName,d=A.rawTagName,m=A.tagExp,p=A.attrExpPresent,f=A.closeIndex;if({tagName:u,tagExp:m}=Yw(s.transformTagName,u,m,s),s.strictReservedNames&&(u===s.commentPropName||u===s.cdataPropName||u===s.textNodeName||u===s.attributesGroupName))throw new Error(`Invalid tag name: ${u}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(g=!0,u[u.length-1]==="/"?(u=u.substr(0,u.length-1),m=u):m=m.substr(0,m.length-1),p=u!==m);let y=null,C={},I;I=Lfe(d),u!==e.tagname&&this.matcher.push(u,{},I),u!==m&&p&&(y=this.buildAttributesMap(m,this.matcher,u),y&&(C=Mfe(y,s))),u!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let w=a;if(this.isCurrentNodeStopNode){let D="";if(g)a=A.closeIndex;else if(s.unpairedTagsSet.has(u))a=A.closeIndex;else{let ae=this.readStopNodeData(t,d,f+1);if(!ae)throw new Error(`Unexpected end of ${d}`);a=ae.i,D=ae.tagContent}let F=new Er(u);y&&(F[":@"]=y),F.add(s.textNodeName,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,w)}else{if(g){({tagName:u,tagExp:m}=Yw(s.transformTagName,u,m,s));let D=new Er(u);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(u)){let D=new Er(u);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=A.closeIndex;continue}else{let D=new Er(u);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,w),r=D}n="",a=f}}}else n+=t[a];return e.child};functi
${a}:${decodeURIComponent(i[a])}`}returnn}};varJe=classextendsba{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewxd(e,r,this)}computeHMACSHA256(e){return(0,ZV.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};vargt=Cs("storage-common");varyn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(yn||(yn={}));varQo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:yn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},hge=newGr("The operation was aborted."),bd=classextendsbs{retryOptions;constructor(e,r,n=Qo){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Qo.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Qo.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Qo.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Qo.maxRetryDelayInMs):Qo.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Qo.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Qo.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,n){lets=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Rg(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Bo(s.url,Qi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leto;try{if(gt.info(`RetryPolicy: =====> Try=${n}${i?"Primary":"Secondary"}`),o=awaitthis._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))returno;r=r||!i&&o.status===404}catch(a){if(gt.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throwa}returnawaitthis.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)returngt.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(s){for(letoofi)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)returngt.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){leto=n?n.status:s?s.statusCode:0;if(!e&&o===404)returngt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)returngt.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){leto=n.headers.get(X.X_MS_CopySourceErrorCode);if(o!==void0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returns?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(gt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,n){lets=0;if(e)switch(this.retryOptions.retryPolicyType){caseyn.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseyn.FIXED:s=this.retryOptions.retryDelayInMs;break}elses=Math.random()*1e3;returngt.info(`RetryPolicy: Delay for ${s}ms`),Dg(s,n,hge)}};varwd=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewbd(e,r,this.retryOptions)}};varfge="storageBrowserPolicy";functioneJ(){return{name:fge,asyncsendRequest(t,e){returnIe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Bo(t.url,Qi.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(X.COOKIE),t.headers.delete(X.CONTENT_LENGTH)),e(t)}}}vargge="StorageCorrectContentLengthPolicy";functiontJ(){functiont(e){e.body&&(typeofe.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(X.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:gge,asyncsendRequest
`}),a}function s(i){let o=Pg(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=vg(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(s);return{sasQueryParameters:newJn(t.version,i,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:s}}functionwEe(t,e){if(t=Ta(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Be(t.startsOn,!1):"",t.expiresOn?Be(t.expiresOn,!1):"",ka(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vn(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:newJn(t.version,o,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:i}}functionNEe(t,e){if(t=Ta(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Be(t.startsOn,!1):"",t.expiresOn?Be(t.expiresOn,!1):"",ka(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vn(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:newJn(t.version,o,s,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}}functionSEe(t,e){if(t=Ta(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Be(t.startsOn,!1):"",t.expiresOn?Be(t.expiresOn,!1):"",ka(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Vn(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:newJn(t.version,o,s,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}}functionREe(t,e){if(t=Ta(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Be(t.startsOn,!1):"",t.expiresOn?Be(t.expiresOn,!1):"",ka(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Vn(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:newJn(t.version,o,s,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}}functionPEe(t,e){if(t=Ta(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Be(t.startsOn,!1):"",t.expiresOn?Be(t.expiresOn,!1):"",ka(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Vn(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:newJn(t.version,o,s,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}}functionvEe(t,e){if(t=Ta(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Be(t.startsOn,!1):"",t.expiresOn?Be(t.expiresOn,!1):"",ka(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Vn(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:newJn(t.version,o,s,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}}functionka(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}functionTa(t){lete=t.version?t.version:Lg;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}varUd=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){letn=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=yl()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Hn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Hn||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.");returnq.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>Y(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Hn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Hn||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.");returnq.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{lets=Y(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));returnthis._leaseId=e,s})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Hn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Hn||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"}};_l.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var _a=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
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"}};_a.isUsageErrorMessage=t=>t?t.includes("insufficientusage"):!1;var $d=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var qCe=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(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},KR=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);pe(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function f4(t,e,r){return qCe(this,void 0,void 0,function*(){var n;let s=new Di(t),i=s.getBlockBlobClient(),o=new KR((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(),x(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new qy(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw ht(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var y4=B(require("buffer"),1),Gs=B(require("fs"),1),E4=B(require("stream"),1),C4=B(require("util"),1);var Hy=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(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function zy(t){return t?t>=200&&t<300:!1}function HCe(t){return t?t>=500:!0}function zCe(t){return t?[Ve.BadGateway,Ve.ServiceUnavailable,Ve.GatewayTimeout].includes(t):!1}function GCe(t){return Hy(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function g4(t,e,r){return Hy(this,arguments,void 0,function*(n,s,i,o=mf,a=pf,c=void 0){let l="",A=1;for(;A<=o;){let u,d,m=!1;try{u=yield s()}catch(p){c&&(u=c(p)),m=!0,l=p.message}if(u&&(d=i(u),!HCe(d)))return u;if(d&&(m=zCe(d),l=`Cache service responded with ${d}`),x(`${n} - Attempt ${A} of ${o} failed with error: ${l}`),!m){x(`${n} - Error is not retryable`);break}yield GCe(a),A++}throw Error(`${n} failed: ${l}`)})}function jd(t,e){return Hy(this,arguments,void 0,function*(r,n,s=mf,i=pf){return yield g4(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof fs)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Ul(t,e){return Hy(this,arguments,void 0,function*(r,n,s=mf,i=pf){return yield g4(r,n,o=>o.message.statusCode,s,i)})}var Qn=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(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function YCe(t,e){return Qn(this,void 0,void 0,function*(){yield C4.promisify(E4.pipeline)(t.message,e)})}var Gy=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSi
Other caches with similar key:`);for(let a of i?.artifactCaches||[])x(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function tP(t,e,r){return Qr(this,void 0,void 0,function*(){let n=new P4.URL(t),s=x4(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield B4(t,e,s):s.concurrentBlobDownloads?yield I4(t,e,s):yield Yy(t,e):yield Yy(t,e)})}function D4(t,e,r){return Qr(this,void 0,void 0,function*(){let n=eP(),s=ll(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield jd("reserveCache",()=>Qr(this,void 0,void 0,function*(){return n.postJson(Xd("caches"),i)}))})}function R4(t,e){return`bytes ${t}-${e}/*`}function ZCe(t,e,r,n,s){return Qr(this,void 0,void 0,function*(){x(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${R4(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":R4(n,s)},o=yield Ul(`uploadChunk (start: ${n}, end: ${s})`,()=>Qr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!zy(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function eIe(t,e,r,n){return Qr(this,void 0,void 0,function*(){let s=hs(r),i=Xd(`caches/${e.toString()}`),o=Ol.openSync(r,"r"),a=XR(n),c=bb("uploadConcurrency",a.uploadConcurrency),l=bb("uploadChunkSize",a.uploadChunkSize),A=[...new Array(c).keys()];x("Awaitingalluploads");let u=0;try{yield Promise.all(A.map(()=>Qr(this,void 0,void 0,function*(){for(;u<s;){let d=Math.min(s-u,l),m=u,p=u+d-1;u+=l,yield ZCe(t,i,()=>Ol.createReadStream(r,{fd:o,start:m,end:p,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),m,p)}})))}finally{Ol.closeSync(o)}})}function tIe(t,e,r){return Qr(this,void 0,void 0,function*(){let n={size:r};return yield jd("commitCache",()=>Qr(this,void 0,void 0,function*(){return t.postJson(Xd(`caches/${e.toString()}`),n)}))})}function rP(t,e,r,n){return Qr(this,void 0,void 0,function*(){if(XR(n).useAzureSdk){if(!r)throw new Error("AzureStorageSDKcanonlybeusedwhenasignedURLisprovided.");yield f4(r,e,n)}else{let i=eP();x("Uploadcache"),yield eIe(i,t,e,n),x("Commitingcache");let o=hs(e);pe(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield tIe(i,t,o);if(!zy(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);pe("Cachesavedsuccessfully")}})}var w8=B(E8(),1),lt=B(ct(),1),jr=B(ct(),1),za=B(ct(),1),Ga=B(ct(),1),Ya=B(ct(),1);var jP=B(ct(),1),KP=B(ct(),1),Q8=B(ct(),1),x8=B(ct(),1),b8=B(ct(),1);var JP=B(ct(),1),WP=B(ct(),1),C8=B(ct(),1),I8=B(ct(),1),B8=B(ct(),1),$P=class extends B8.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,I8.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,C8.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let l=n.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let A=e.skip(c);l!==!1&&(l===!0?WP.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,A)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,JP.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,JP.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?WP.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},DE=new $P;var XP=class extends b8.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:()=>DE}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.O
`));let n=yield mv(r,"create");yield pv(n,t)})}var nA=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(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},jn=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},rA=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},LE=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function P8(t){if(!t||t.length===0)throw new jn("PathValidationError:Atleastonedirectoryorfilepathisrequired")}function gv(t){if(t.length>512)throw new jn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new jn(`Key Validation Error: ${t} cannot contain commas.`)}function yv(){return Kd()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function v8(t,e,r,n){return nA(this,arguments,void 0,function*(s,i,o,a,c=!1){let l=Kd();return x(`Cache service version: ${l}`),P8(s),l==="v2"?yield fQe(s,i,o,a,c):yield hQe(s,i,o,a,c)})}function hQe(t,e,r,n){return nA(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let l=[i,...o];if(x("ResolvedKeys:"),x(JSON.stringify(l)),l.length>10)throw new jn("KeyValidationError:Keysarelimitedtoamaximumof10.");for(let d of l)gv(d);let A=yield ju(),u="";try{let d=yield v4(l,s,{compressionMethod:A,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return pe("Lookuponly-skippingdownload"),d.cacheKey;u=pm.join(yield Wu(),po(A)),x(`Archive Path: ${u}`),yield tP(d.archiveLocation,u,a),aa()&&(yield mm(u,A));let m=hs(u);return pe(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield hv(u,A),pe("Cacherestoredsuccessfully"),d.cacheKey}catch(d){let m=d;if(m.name===jn.name)throw d;m instanceof fs&&typeof m.statusCode=="number"&&m.statusCode>=500?Zc(`Failed to restore: ${d.message}`):ht(`Failed to restore: ${d.message}`)}finally{try{yield $u(u)}catch(d){x(`Failed to delete archive: ${d}`)}}})}function fQe(t,e,r,n){return nA(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[i,...o];if(x("ResolvedKeys:"),x(JSON.stringify(l)),l.length>10)throw new jn("KeyValidationError:Keysarelimitedtoamaximumof10.");for(let u of l)gv(u);let A="";try{let u=dv(),d=yield ju(),m={key:i,restoreKeys:o,version:ll(s,d,c)},p=yield u.GetCacheEntryDownloadURL(m);if(!p.ok){x(`Cache not found for version ${m.version} of keys: ${l.join(",")}`);return}if(m.key!==p.matchedKey?pe(`Cache hit for restore-key: ${p.matchedKey}`):pe(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return pe("Lookuponly-skippingdownload"),p.matchedKey;A=pm.join(yield Wu(),po(d)),x(`Archive path: ${A}`),x(`Starting download of archive to: ${A}`),yield tP(p.signedDownloadUrl,A,a);let E=hs(A);return pe(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),aa()&&(yield mm(A,d)),yield hv(A,d),pe("Cacherestoredsuccessfully"),p.matchedKey}catch(u){let d=u;if(d.name===jn.name)throw u;d instanceof fs&&typeof d.statusCode=="number"&&d.statusCode>=500?Zc(`Failed to restore: ${u.message}`):ht(`Failed to restore: ${u.message}`)}finally{try{A&&(yield $u(A))}catch(u){x(`Failed to delete archive: ${u}`)}}})}function Ev(t,e,r){return nA(this,arguments,void 0,function*(n,s,i,o=!1){let a=Kd();return x(`Cache service version: ${a}`),P8(n),gv(s),a==="v2"?yield yQe(n,s,i,o):yield gQe(n,s,i,o)})}function gQe(t,e,r){return nA(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,l,A,u;let d=yield ju(),m=-1,p=yield xb(n);if(x("CachePaths:"),x(`${JSON.stringify(p)}`),p.length===0)throw new Error("PathValidationError:Path(s)specifiedintheactionforcachingdo(es)notexist,hencenocacheisbeingsaved.");let f=yield Wu(),E=pm.join(f,po(d));x(`Archive Path: ${E}`);try{
`,o).length:u,l?(a===null?0:a.length)+c.length:0,l?c.length+u:0);return d<m},parse:function(n,s,i,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:A,ltrim:u,max_record_size:d,raw:m,relax_quotes:p,rtrim:f,skip_empty_lines:E,to:g,to_line:y}=this.options,{comment:C,escape:I,quote:w,record_delimiter:D}=this.options,{bomSkipped:F,previousBuf:ae,rawBuffer:ye,escapeIsQuote:Qe}=this.state,H;if(ae===void 0)if(n===void 0){o();return}else H=n;else ae!==void 0&&n===void 0?H=ae:H=Buffer.concat([ae,n]);if(F===!1)if(a===!1)this.state.bomSkipped=!0;else if(H.length<3){if(s===!1){this.state.previousBuf=H;return}}else{for(let de in gA)if(gA[de].compare(H,0,gA[de].length)===0){let At=gA[de].length;this.state.bufBytesStart+=At,H=H.slice(At);let He=BD({...this.original_options,encoding:de});for(let tt in He)this.options[tt]=He[tt];({comment:C,escape:I,quote:w}=this.options);break}this.state.bomSkipped=!0}let ee=H.length,_;for(_=0;_<ee&&!this.__needMoreData(_,ee,s);_++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),y!==-1&&this.info.lines>y){this.state.stop=!0,o();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(H,_)&&(D=this.options.record_delimiter);let de=H[_];if(m===!0&&ye.append(de),(de===Fwe||de===_we)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(I!==null&&this.state.quoting===!0&&this.__isEscape(H,_,de)&&_+I.length<ee)if(Qe){if(this.__isQuote(H,_+I.length)){this.state.escaping=!0,_+=I.length-1;continue}}else{this.state.escaping=!0,_+=I.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(H,_))if(this.state.quoting===!0){let tt=H[_+w.length],Zs=f&&this.__isCharTrimable(H,_+w.length),Nr=C!==null&&this.__compareBytes(C,H,_+w.length,tt),Zn=this.__isDelimiter(H,_+w.length,tt),To=D.length===0?this.__autoDiscoverRecordDelimiter(H,_+w.length):this.__isRecordDelimiter(tt,H,_+w.length);if(I!==null&&this.__isEscape(H,_,de)&&this.__isQuote(H,_+I.length))_+=I.length-1;else if(!tt||Zn||To||Nr||Zs){this.state.quoting=!1,this.state.wasQuoting=!0,_+=w.length-1;continue}else if(p===!1){let Xa=this.__error(new ge("CSV_INVALID_CLOSING_QUOTE",["InvalidClosingQuote:",`got "${String.fromCharCode(tt)}"`,`at line ${this.info.lines}`,"insteadofdelimiter,recorddelimiter,trimablecharacter","(ifactivated)orcomment"],this.options,this.__infoField()));if(Xa!==void 0)return Xa}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(w),_+=w.length-1}else if(this.state.field.length!==0){if(p===!1){let tt=this.__infoField(),Zs=Object.keys(gA).map(Zn=>gA[Zn].equals(this.state.field.toString())?Zn:!1).filter(Boolean)[0],Nr=this.__error(new ge("INVALID_OPENING_QUOTE",["InvalidOpeningQuote:",`a quote is found on field ${JSON.stringify(tt.column)} at line ${tt.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,Zs?`(${Zs} bom)`:void 0],this.options,tt,{field:this.state.field}));if(Nr!==void 0)return Nr}}else{this.state.quoting=!0,_+=w.length-1;continue}if(this.state.quoting===!1){let tt=this.__isRecordDelimiter(de,H,_);if(tt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),_+=tt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,_+=tt-1;continue}this.info.bytes=this.state.bufBytesStart+_;let Zn=this.__onField();if(Zn!==void 0)return Zn;this.info.bytes=this.state.bufBytesStart+_+tt;let To=this.__onRecord(i);if(To!==void 0)return To;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,_+=tt-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,H,_,de)!==0){this.state.commenting=!0;continue}let Zs=this.__isDelimiter(